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 V0,tjj,x1j,$C,uql,PLs,q4s,KhC,kC,R89,iL,O4,N1,fz9,$19,blw,Fq,M1,ECL,kKL,ilT,Ol8,zK,Bw,YC,Q0,a9,rs,s99,TK,cw,y0,pw9,ATw,S49,Vn,xj,GKl,IzK,qt,bz,kj,iz,Lhl,Fh1,Mjw,gCT,Xwj,z8C,Bsl,m1j,s$,Y49,pr,Q9K,Whw,A_,oCC,nC4,GY,cTC,FF,g7,Qn,ac,r7,TY,yTC,j99,WU,nr,oc,lzK,Hl9,U11,D1l,cU,e84,ji,lz,HU,d1C,CL1,DE,h88,wwh,uo,ViK,Rd,tih,xt8,KR,uFC,Zrh,Pzh,sA,KEq,RsL,irj,SG,kY0,$t8,sc0,pU0,S$q,Id,ve,Fk,gl,MY,IE8,LEs,Xk,za,Mi1,mT,Yz,Qp,ad,rl,XUh,We,od,yp,lo,He,DT,Y$9,CR,te,uN,QcK,x_,aE4,r_0,ZA,Jb,PD,K8, T7K,qM,WE1,f8,njz,$_,bN,E9,y_s,SV,jcT,lEK,Hr0,c_w,Ae,s9,k_,Ut8,Dt9,dtz,Czw,J_C,IL,vD,L8,hs4,VGq,wU8,tGl,xYK,MM,ukq,ZRL,KT1,BD,XA,qAl,ma,Y_,rp,aL,oL,WD,n8,U9,cD,jV,lN,$Y0,eV,bR4,dp,C8,VG,tV,xV,Je,wp,he,Px,fTl,KP,EzT,ZE,qP,R0,yW,HD,fP,ORj,$V,sdT,Kr,EL,kV,iF,OL,sL,NP,pP,Nlq,AV,pej,S5,Abh,I0,Gm,LP,F2,MP,gP,X2,SAz,ITl,Bx,vzL,LTK,mI,YV,rP,MGh,gz8,Tm,mY4,aTC,Xe0,Qdh,YAz,Blz,zpT,rb1,TlT,Wx,cx,WTq,nP,j5,nzK,lF,yb4,Hx,UL,D3,jdL,e5,lT0,dP,HRs,UYq,CP,DYs,JV,hV,VM,tc,dY8,ZV,hph,epw,PQ,qx,R2,VVq,f9,bx,tV8,uAl, Z8z,Eo,kn,ix,Oo,so,Nx,p9,KaC,q9z,RNK,fAl,Ac,$MK,b8K,SA,GT,I2,vQ,E_j,sLK,Np0,Ael,pD0,S9K,IAq,gH,X8,zT,BQ,mL,QM,a2,MVq,TT,o2,n9,cQ,jA,lx,g_q,HQ,Uo,eA,zNK,Bpl,dH,Jc,hc,VR,tI,uG,Z8,o_q,n_0,ceK,yeT,PO,Ku,jL0,lAl,H8s,q8,RG,fu,$E,bG,sY,pu,GW,Lu,UM4,DMs,mS,eNl,nu,cO,Jez,xPC,V5q,ZP0,lG,HO,hI,qL4,f34,Rah,Vo,xP,$Ps,t$,qN,jc,EVK,bPh,Ek,bc,yR,kP,ic,Ok,sk,km0,NN,OPC,Sz,s0s,IZ,vy,LQ,FH,NPC,zw,gR,px1,MN,XH,AVK,SL0,Gm0,Qo,I3s,vVC,LI9,M51,FIz,YP,aZ,rR,gVq,Xxl,zaT,Tw,BPh,Wy,i8j,ki4,oZ,nQ,Hy,Uk,Q0h,DZ,ez,CQ,a34,rV4, J$,cVs,uA,WI8,nVs,tj,wR,qz,Rj,yVl,bA,j0L,Eb,kv,l3C,UPw,Nz,eaj,Aj,SO,dPL,CFw,vM,FC,VAh,xx0,u8K,gj,Z9h,Mz,PGL,GB,ha4,qYh,Zul,Pxh,uuK,R41,KSz,XC,tA9,mF,$8L,bu0,EEw,kWz,iuK,rj,Ous,WM,sGT,AI8,SY4,oj,nX,cM,HM,I80,Ub,DY,eO,vEq,LSz,Jj,FSC,hj,wj,XOK,BZq,YYs,m8l,QGw,tn,Z7,RN,$S,bq,EB,kS,iq,TZ0,WS9,OB,oET,sB,N5,f2,p2,An,SN,Gl,PU,IN,nE4,L2,Fz,jGw,gz,Xz,zl,l8l,HuK,U8w,D8C,B$,m0,YS,Qv,JIK,CGK,h40,wOw,Vzh,aN,tzl,e44,rz,xNl,uH8,W$,Pcs,Ke9,qks,R50,fZK,n2,$N0,bQ1,EP9,kw4,sZL,iQC,c$,yv,jN,lq,H$,UB,D7,eN,pyl,Jn,C2,dz, hn,A$1,wz,Skl,Gwj,IZK,vP0,Vf,xw,MzT,tO,gPL,uW,Xyj,Zd,PY,K_,qA,Rx,f_,Ykh,z5C,Ew,mNs,kw,BR1,bW,$w,Ow,aZL,p_,NA,vY,L_,MA,Wez,Ft,zC,oP0,BY,r$L,y$0,jZ0,lZT,Qf,ax,rK,HQ4,TC,cY,yf,j9,UNq,lW,HY,Uw,DNz,e59,Dd,dNq,wyq,h50,VOs,tOw,xzs,Ccq,ZXq,e9,dK,C_,PA8,hO,JO,KFs,qb9,R24,xf,fYq,u5,Zy,$zC,PR,Ev9,Kk,bXl,kBq,iXh,OXC,qq,RQ,fk,$f,b5,EI,kf,sjh,i5,OI,sI,Njl,Aj8,Sbz,pk,Sh,AX,IQ,vR,Lk,IYT,vvT,FN,Mq,gk,FF1,MO1,z28,gv4,Bjj,aYL,XN,Qjw,mzK,zI,BR,rj0,m9,Tj9,Yf,ovl,WFh,nvC,cjL,TI,WR,yj0,jjL,lYq,oQ,nk,HXC,cR,UzL,Dzz,dzT, wMh,yV,VNw,tN0,x5s,uzL,Z24,HR,Pqq,K0s,qBT,hX,JX,Ck,RUT,f7L,$5s,wk,VC,to,ES0,KI,$g,bb,ET,kg,ib,i2q,O2l,sNw,OT,Ns,pI,Io,v1,B1,p$j,SBC,An0,Gll,I7C,Th,vSl,L0T,W1,F08,MN1,gS4,X$C,yC,nI,j3,lb,H1,zUq,BzT,m50,UT,D5,YB1,e3,QN9,a7l,rn4,dJ,Tzs,CI,Jo,W0z,oSq,nSs,cnC,yns,jN0,ho,wJ,Vd,xs,U5w,uZ,ZL,D5j,H2s,tR,eUj,Pa,K3,qr,f3,R1,d54,Cqq,Jnh,$s,w$K,bZ,t9q,xAT,utC,Z_9,PWz,KWj,qwl,Rij,iZ,OR,sR,$Al,fdK,b_9,EwK,p3,kCL,AR,i_K,O_s,SU,GX,I1,sxs,va,L3,NKL,FR,Mr,gm,zX,Ba,mV,Ys,Qd,pYw,AO8,Swq,GCC,a1,IdC,LWC,vw8,TX,Wa,M9K,FWw, zi9,Yw1,mAh,o1,Qx8,adz,rOq,WWs,TK4,ow0,n3,nws,cO4,yd,yOw,jxh,ldK,H_j,jU,UAq,lZ,DAz,Ha,UR,dAq,DL,CWT,eU,dm,JO4,his,C3,hR,Vhj,wm,wYw,th8,xqT,uNK,P5L,V_,K9s,uh,ZN,RRs,fyj,Ef4,kIl,P2,KK,qa,Ry,fK,$x,bh,Eq,kx,ih,Oq,sq,Na,Nkh,sQ8,pRl,SIw,AXL,Iy4,Okj,GI9,ikw,pK,AJ,L9L,F9j,Mh9,v2,LK,g9,Sg,XRh,B2,vfl,Bk4,mqC,zRC,mK,Yx,Q_,ay,YIz,gfw,QQT,r9,ayw,rX9,Tk4,W9w,ofh,yX8,jQK,lyC,Hk9,UqT,Dq9,dql,C5s,W2,hR0,oy,Tp,V30,wR8,udw,c2,jg,Pbj,KgL,qTh,Rw1,$s9,Uq,H2,bIj,f5L,khh,OI0,soK,p11,vg4,CK,Lg4,d9,V2,FgK,tm,Zr,Pk,M3L,ggz, X11,EU,zw8,BJl,G6,msw,Qo8,IO,a5s,ros,cow,TJK,MK,gy,Xa,Bk,mm,Ush,Yy,Q2,aO,ewl,Wk,ds0,Cbl,oO,hw4,ck,y2,j0,l6,w1h,Hk,Dr,e0,dy,Cb,VUh,hm,wy,Vb,tt,x6,ut,tUq,xrl,uRs,Z3T,PZq,KV0,Z_,qRs,bt,R9l,fL8,$r8,EO,it,OO,sO,At,Sa,G0,Esw,L0,F6,Mg,kXw,i3w,gI,O38,s1s,z0,LVq,FVj,MU1,Bp,gsh,Xah,mr0,Y6,Q14,YR4,ai,rRT,Tms,WVs,T0,Wp,osT,oi,n0,cp,yb,lt,Hp,UO,D_,C0,Jt,ht,wI,VA,t6,nsK,cRK,yRz,u$,Pc,j1T,fJ,$c,b$,EQ,kc,OQ,sQ,Drw,Nc,pJ,A6,dr8,e9l,lLq,IW,G9,wah,vc,Yc,z9,QA,aW,tgq,ZKw,T9,qqw,Ph0,KKl,fNC,iKj,$as,ExT,kp1,oW,Wc,OKl, cc,yA,jL,sys,d5,N99,CJ,J6,w5,p20,tD,xD,AJT,us,Zk,GpK,qU,fy,$D,bs,E7,kD,is,O7,s7,NU,vxL,py,GF,Se,FK9,zzT,gxl,X2s,B9K,maj,Qyj,aNw,Yq0,T94,Ly,F_,X_,WK4,oxq,gi,zF,cJw,yJh,Uaq,HKT,Qz,aV,ri,TF,W4,ny,ez4,dal,Chz,Dk,ee,JJz,hz0,w2C,wi,VU,tv,V0j,t0h,uaj,P6h,Pr,Kmz,R4,Kq,bU,En,iU,qUL,Gu,I4,vr,Lq,M3,gu,zu,EyC,k64,mH,ibj,Obz,QU,sO8,Nyz,a4,ru,pkq,Aml,G6C,nq,vy8,Lm8,Wr,Fmh,M0z,XkK,gyz,lU,IrK,ByT,mK8,Cq,ep,YU0,QOL,Jv,hv,arL,rm8,t7,Ty4,Wmh,oyq,ny4,Kg,cmK,ym1,jOT,lrC,Hbh,UKL,DK0,eJq,R8,dKK,$p,JmL,hJl,wkl,VaL,ta9,b0, pg,u6h,Kz9,A7,qO1,f_L,xgw,$g9,b0L,E6T,Z04,Pth,Et,kp,NR,R6L,Ot,i0,k00,i0K,O0T,sis,NI0,pph,v6h,At8,vo,X3,Bo,Ma4,z64,Xpq,z5,Q7,BI0,T5,mgq,QiC,y7,YOL,jij,a_0,ytq,Ut,l_w,Dg9,D$,Ho,H0T,UgC,e61,dD,Ct0,Jt0,h6L,wpz,VL8,tLL,xcK,dg4,ZJ1,P$9,KB8,RF8,qQ0,$cL,wD,bJ0,Vy,tC,xr,Ec8,k9T,PZ,Ks,OJC,iJ9,qX,sWK,pcs,SQ8,A60,G94,LBj,IcT,Im,Fc,Ls,FBj,vZ,MX,gF,Xc,MLK,gcl,BZ,zFT,Qy,Yr,rF,T3,WZ,B5h,om,cZ,mcs,jx,HZ,U8,YQ0,QW8,ac9,r64,DK,dF,T50,Cs,JC,hC,ocj,wF,VK,nc0,x$,P7,ZO,uf,K6,qE,jWh,dcl,J6s,eFj,Dcz,C$4,$$,k$,tew,hF0,wc9, Ve4,y6w,$U8,L6,fk4,kF4,RnT,f6,Fh,p6,Iw,byw,sH,HJw,lcs,UcT,EH,q7K,zy,AD9,B7,GF9,IkC,vDz,Y$,LDw,FDK,Mej,X4w,znl,rx,mU4,Ty,Y71,QVq,rDw,TiC,ow,WD9,nD0,n6,cD4,c7,yK,N3,UUK,JDj,ev,w4s,x3K,C6,Zqh,PUT,KHh,qnT,qp,Req,PS,g6j,uv,KD,ZF,Jl,Ov,iv,pD,So,$3L,GP,vS,LD,bqj,EeT,gN,iql,OqL,s4l,Nu9,prj,Av0,Sn0,Guw,IwL,ve1,mx,LHs,YW,az,FH4,Mp9,geq,rN,Xr9,zeL,nD,cS,y3,Bu0,jo,m34,HS,Q4s,Yn8,DF,eo,dN,CD,awh,Jz,hz,rvq,Tuz,wN,V$,cvq,WHh,neh,oel,tq,x9,uP,yvh,j4w,lww,Zp,U3l,d30,ee9,P0,KC,qh,RT,fC,bP,Em,k9,iP,Om,sm,Nh,CUC,Jvw, he9,pC,Aq,SP,Gd,v0,FD,tIl,VI0,g2,xRh,XD,zd,B0,mP,Y9,r2,Td,W0,oT,nC,c0,y$,jP,lP,H0,Um,P0l,eP,CC,K71,Jq,RyT,f$s,$RT,Ep8,igl,uY,OgC,PF,Zj,po1,A7L,St8,p4,A4,I$4,G4,IF,vF,L4,L7T,FQ,Mo,gq,F71,XQ,vp0,z4,BF,gp4,MIL,mi,Y1,Qg,aF,T4,zyz,BD0,oF,n4,yg,jt,mRs,cF,a$1,r7q,TDz,W7j,opj,npC,c7s,HF,lY,Q8L,l$j,Ur,URw,DRw,J4,ey0,et,dq,dR0,h4,J71,wos,wq,VF,VxK,t9,xX9,xu,RAh,K3j,uc9,Pmj,Zss,Zv,PE,KS,qj,Rn,fS,$u,EV,$Xz,k3s,OV,JXh,sV,isw,smL,pS,In,A9,GE,SY,ACj,pZ4,NFj,S81,vE,G39,F3K,LS,Mj,gr9,g_,Xn,zE,BE,XZL,mv,zAC,BFl,QF, WE,on,nS,cE,yF,jY,lM,HE,UV,Dv,eY,d_,KA,mXK,Y8C,qB,RR,fA,$B,br,Ei,Qm8,aKj,kB,NB,W3w,ors,pA,AE,F$,MB,cCh,zk,YB,yCq,lKs,jmq,Hsq,UXw,DXC,eAw,dX8,Cm1,hA1,JCq,wZ9,xE4,Z60,tvT,aR,rd,Knl,PfC,Tk,Wl,oR,qHz,nA,cl,yh,fOC,$El,j8,R3K,lr,kyj,Hl,Ui,Ds,e8,dd,CA,JE,hE,wd,Vc,tU,xM,u2,ZW,P6,KL,q$,RI,fL,$M,b2,Ex,kM,i2,Ox,sx,N$,pL,AU,Sn,Gc,II,v6,LL,Fl,M$,gC,Xl,zc,B6,m2,YM,Qc,aI,rC,Tc,W6,oI,nL,c6,yc,jn,l2,H6,Ux,DW,en,dC,CL,JU,hU,wC,VE,t3,xH,uC,ZC,Pn,Kw,qH,fw,$H,O6L,bC,h,Ez,Rp,kH,iC,Oz,NxL,NH,Alw,sz,SH1,A3,Gyl,GJ,pw,Ip, vn,Lw,MH,v$q,Ln1,Fnw,Mvh,rY,TJ,mY,Wn,X7h,z3l,Bxj,mE4,IO4,YH1,Fp,Qw1,aOz,nw,Hn,cn,Xp,rlC,gY,op,yE,Uz,Wn4,zJ,Bn,lC,j7,o$j,DC,e7,dY,Cw,n$8,J3,h3,wY,Vq,ty,cl0,ylT,lO8,H6l,Zg,Pu,Km,q9,Cfz,h30,Voh,tow,fm,uXK,ZD8,OD,Pv8,sD,N9,pm,Ay,S$,GR,Kxj,RlT,fF1,qv9,$pL,bD9,Fm,M9,zR,m_,Ym,Qq,ab,EWw,ra,TR,Xm,nm,cu,yq,j$,kPs,ob,ODL,l4,szh,NN4,Hu,pSh,UD,Dg,Azh,Svw,e$,GP8,IF4,da,vWz,Lx1,Fxz,Mo8,Cm,Jy,gWl,XSq,hy,wa,Vr,zls,tu,xY,uS,Zi,BNK,Pb,K5,mp0,qF,Yvl,Ra,Qzz,aFK,rz4,TN9,Wxq,oWC,f5,nWC,czL,yzK,$Y,jzw,bS,lF0,E3,HDq,kY,Upw, DpK,iS,Au,el0,S6,Gf,dp0,Ia,CvL,vb,L5,Fw,Jz9,hlT,gw,Xw,VPj,zf,tPj,xhK,wSj,uDL,ZC4,PPz,mQ,KP4,YY,Qr,aa,rw,qm0,Tf,Wb,n5,R$9,cb,yr,fpT,lS,Di,Hb,Ju,hu,$hq,ww,V8,tK,xI,bC1,ZH,Pq,E9K,qf,Rl,dw,fF,$I,bQ,kdj,EG,kI,iQ,iCs,OG,sG,Nf,pF,lQ,UG,DH,eE,dU,OC8,sTK,N2h,p0K,wU,CF,Vl,ts,Aqz,Sm8,Gdw,xJ,ug,Zo,Ip9,v9C,hK,LPw,FPw,Pv,MP4,KO,qu,fO,$J,bg,Ec,kJ,Oc,sc,pO,As,SJ,GO,Nu,z$h,B20,vv,LO,FE,mh4,gW,QTq,XE,zO,apL,Bv,mX,YJ,aM,rqw,Ql,rW,TO,Wv,T2s,cv,o90,n94,cqL,yl,jJ,yqz,jTh,lpC,lg,Uh0,Mu,HCC,DhL,Hv,e$L,Uc,dhw,Do,CP4,Jqw, h$h,w0K,Vt1,eJ,xoh,tt4,dW,hs,uQq,wW,Z4L,VT,PYj,Ki0,tr,qr4,RWs,fjq,$ol,xA,b4l,u_,k4C,PV,KZ,O49,i4j,sF8,Nq9,pFT,Rk,fZ,$A,A4L,Srh,G4h,IjT,v1h,Lij,Fi0,Mtz,g1z,XFl,EP,kA,i_,zWz,Bqs,OP,sP,mo9,NC,pZ,S1,Yrs,G$,Ik,vV,QF4,LZ,aj8,FW,r4C,MC,Tqw,Wiw,gt,o10,n1w,c4j,XW,z$,BV,mJ,YA,y4C,jF8,QT,ak,rt,ljq,T$,WV,ok,nZ,cV,H4l,Uo1,yT,j1,DoC,l_,HV,UP,D9,jw0,eW4,doK,e1,CYT,J4s,hWK,dt,CZ,Jr,hr,wt,Vj,tZ,xG,un,Z2,Pd,wFw,VYL,AZ,Sl,tYT,Gs,Xi,vd,qVw,Eul,Rjj,kET,OS4,sn9,iST,N_q,pE9,A9h,yj,Ivq,Lv8,MY8,gu9,XEK,Hd,Up,B_9,mjl,r9h, D2,T_9,YVh,el,d4,Cd,JZ,ouC,y9l,nuz,HS9,hjl,J9K,Uj4,wE8,w4,ej4,DjC,xBq,PrT,ZAq,fs4,KsK,VI,ta,iA4,Zb,OA0,Gk1,Siq,AE1,Ndh,Lsq,vBC,pl1,z1l,Xl4,Bdl,fn,QR8,mBK,Yi0,sRj,asw,rEh,PT,qb,M84,Fsq,gBs,Td0,Kn,Iss,oBs,cEs,jRw,HAl,e19,dBq,JEK,h1L,Vn1,wl8,P2l,x$w,tns,K2j,fW8,$$C,bLh,EM8,Sr,vu8,OLl,kcq,vT,p68,Fx,Sx1,Gc9,AUC,Mb,IWz,gb,Xx,Ib,z1,GEC,BT,mO,Y5,vMh,L28,QI,F2w,Mnq,gML,a5,rb,T1,WT,o5,nn,cT,yI,jr,X68,zMC,lJ,BCz,HT,Js,UZ,Db,Yxs,m$h,er,QIh,aWs,db,Cn,rUL,Ja,TCs,W24,FvL,NCl,oMq,ha,vu,u4,$5,nM4,cUK,VJ,kk4,x5,yUK, G1,I5,EZ,bJ,hZ,iJ,UBK,CrK,k5,$BT,qxq,jI0,V8h,djs,t5,sI8,ln,HL4,lWl,Wvs,DB1,U$j,RMK,pn,bA9,EB9,u$s,lsl,yEC,lv4,c98,avw,Qnq,zjz,Wsh,CML,ul9,qiL,R1w,sZ,Nb,OZ,ZLs,nB9,eMs,D$s,x0,u3,Zn,P8,K7,f7,Eg,k0,i3,sg,N7,q7,R_,Og,C2z,d$h,p7,S_,JU8,hM1,Gv,I_,v8,L7,FI,M7,gn,XI,xH8,B8,zv,upC,V7h,t7h,ZwK,mk,Y0,PCC,KYL,QJ,qzq,sn,fC4,R_8,bw9,kJ1,iwh,EHq,Ows,pnL,n7,c8,A30,Sz8,yJ,j_,GJ1,ICq,vHK,LYC,H8,Dn,e_,M7l,gHl,BY1,Yz1,Qpj,mHz,J5,wn,h5,aC0,r3w,dn,TYT,WYq,oHw,nHL,C7,lCj,HwK,UH8,jpT,y3s,c3q,DHl,e_4,Xn9,dH0,z_l,CC8,J3T, t$K,h_L,wnC,V$0,Zmq,x90,uml,P48,K_C,tp,fgw,qDh,$90,Rvw,bmq,EmL,kRh,ims,OmC,sbs,NaK,pu0,Ayw,SDh,GR9,Igz,xT,L_1,F_j,M$w,vmT,gmC,Xu0,m9L,ZP,qy,f1,YDw,$T,b8,Eh,TaL,om8,W_9,cyw,d9l,SF,i8,nmq,ry9,agC,Qb4,Ap,Oh,p1,FU,My,hvs,gX,XU,L1,xFL,wuL,V6s,uw8,zt,Bg,PSC,QO,aY,rX,Tt,Wg,oY,n1,KQC,q3w,cg,yO,l8,fiL,$FC,jF,Hg,kf4,i5q,Uh,O5l,dX,saT,C1,hp,Nw0,Jp,wX,pb8,t0,S3z,Gfj,uw,Zh,fB,vY0,KB,$L,EM,LQC,iw,Rt,bw,FQK,OM,M6j,sM,gYw,P_,qv,IiK,kL,Nv,Xbq,zSC,pB,Bw9,A0,S2,GS,It,mFs,LB,v_,Fe,Mv,Y39,QaL,gL,Xe,zS,B_,mu,ai8,YL,QY, ru1,Tw1,at,rL,TS,oY8,WQz,W_,nY9,cuL,yuT,ot,jaz,liw,H5L,UFq,DFL,nB,c_,yY,j2,eS0,dF0,H_,CS0,UM,Dh,JuL,hSz,e2,wbh,VEC,ZFl,PQs,tEL,xfh,ujL,CB,J0,h0,wL,KA1,qGj,VX,Rkw,$fT,fHK,Ze,ue,EI4,kGq,iFj,OF9,Ps,slC,qV,R$,NUj,AKs,SGz,$U,ie,LAw,D94,sh,ME4,gIC,XqC,zkj,BUs,kT,be,mfh,NV,pe,aHj,rKs,TUj,AW,cK8,WAK,oIL,jll,lHq,SH,HFw,yK9,Ufw,Gn,I$,vs,Dfh,ekl,Le,F4,dfC,MV,CQ9,gV,Oy,m$,JK0,evl,yyL,YU,QX,rV,Tn,Ws,o$,ne,a$,jH,wqL,Uy,VJ1,tJh,xu1,uE4,ZOz,De,KXw,eH,RD0,dV,$uq,bO9,foT,qcj,EJ8,kO1,iOz,Vw,OOl,sMC,pv1,t2,Jy1,ui,Scl, IoK,Gt,vJ9,LXs,PK,MJ1,Ny,FXC,jbC,Hmh,U9h,Asj,Ko,ql,Rh,gJz,Xv8,fo,zDw,bi,EJ,kO,ii,OJ,BW0,sJ,Nl,mu9,Ycz,po,A2,SW,Go,Ih,vK,aoj,QMj,Lo,rs4,WXq,Fy,oJj,TWC,li,yw,HK,D1,eW,hW,nJT,eDK,QE,jW,h2,hDz,V1j,m8,xX,BK,up,cK,Ki,P_T,q0,Rg,KJL,qP1,RCj,f9T,fi,$CT,bZ4,$X,EA9,Nt8,sk4,k$K,OZ0,iZL,bp,pV8,Es,ArK,SP8,I9C,vA0,LJ8,zC4,pi,AP,YP8,Sk,GQ,QkK,TtT,WJh,oAl,nAL,Ig,crq,jkq,l91,ag,wVw,eCj,dC9,tlz,r8,x64,Zds,ui0,Pnz,Wi,ci,Kb4,TQ,y9,jk,qp9,f20,EG9,Dx,hP,u1,KN,FbK,Mlq,$8,fN,k8,i1,gGs,B4j,zBl,m64,sj,Oj,Qu0,a2C,rZq,Wb8,Yp4, AM,T4C,oG4,nGh,IK,vz,yZq,Us,pN,SQ,N4q,RBK,Gsj,zD,Ej,TD,ZD,l1,Hz,Uj,tr9,Vrh,Pz,eQ,d3,xb0,CN,ux9,Zn1,qm,XdC,w3,D6L,b1,PJ8,idl,ks1,$6q,V1,x2,Onl,in4,NbK,pTq,Kv,RE,fv,qD,bu,E5,AaC,k2,G1h,iu,v51,ND,Ibl,Ah,Sm,g5q,Gr,Bbq,mb8,Lv,YZz,abh,Tr,oE,nv,y1,raj,jm,lu,em,dr,Cv,Jh,Tb1,hh,wr,cal,V6,tx,ya0,j51,xZ,lbh,Hns,Ubh,Db0,uB,ZJ,eOs,CJT,q4,R3,bB,Ee,JaT,kZ,iB,Oe,se,N4,hOl,wTL,ph,V_C,t_q,Ax,uIq,x7l,Z7j,SB,KkT,P3z,Gq,qg4,I3,v3,RET,$71,b71,E0q,kv8,NnT,i79,Lh,FT,M4,p84,gh,SgC,zq,Gvj,In9,XT,B3,mw,YZ,M_4,X8C,v0z,g0q,zEK, Lk9,Fk0,BnC,m79,rh,Yg0,an1,Wkl,n0L,o0T,lB,jB,DJ,y5l,eB,dh,Ch,lnl,Jx,H70,j_j,hx,eE1,wh,Vi,d7L,ti,C3s,DCq,hCL,hEh,J5K,VFh,w89,tFL,uk,xy9,uU1,Kj1,KG,qT,RJ,RZq,b1K,bk,El,k4,ktj,ET0,fG,i1T,O1T,sYj,pg9,ik,gT9,pG,Ai,QY8,W3,rpl,TX8,Wjw,oT0,nT4,Ge,cpl,IJ,vj,LG,ypK,gG,jYz,lP9,XB,ze,H19,UyK,DyT,eZl,dy1,Bj,MT,C8K,mf,hZs,wg8,V2L,Y4,t2q,xvj,ue9,ZB0,PwL,Ku0,qM8,Rul,fhw,$vz,Qi,ELq,aJ,kS0,Te,OB8,nG,bBL,rG,cj,yi,jM,lk,Hj,Ul,stL,DG,NLl,dG,Ihh,Fu8,M2h,gLw,X_h,hi,zuL,Luz,GS4,BLw,CG,mv0,QtK,eM,Ji,A00,SMh,wG,ahC,r0C,vLh, p_s,TL4,tL,Wuw,xd,ud,oL9,ZQ,y0q,nLT,c0K,Pf,jt1,KV,qI,Re,fV,lhs,HB4,UvC,$d,euC,dv1,bd,Cwj,EE,kd,J09,hu4,w_8,VHL,tHq,xVT,qy0,Ze4,r5L,OE,feK,$V8,Pe8,K$0,u4K,pV,Oe1,NI,sE,Rh8,NVz,ie1,kns,EUh,bes,Sf,pss,Tq,Gb,Ie,vf,AWq,LV,Sys,F9,Gn4,Ue,Ie4,MI,nh,y6,Q_z,zb,mU,F$L,MHw,Yd,ae,Bf,X9,Tb,gS,vUz,L$C,Wf,gUs,Xs1,oJ,iBh,o3,oe,zhT,Qe,BVj,mVh,Yy1,Q$C,nV,cf,ye,rWh,TVq,W$0,oU0,nU4,YML,ld,Hf,UE,jf,yW8,U7h,D71,DQ,j$L,leh,Hej,UV9,ef,DV1,dS,eh1,Cej,CV,JW1,hhK,hL,wsT,JL,uD,xl8,tW4,Piz,Zoq,K84,qJC,uy1,ZS,VWL,RXs,If,f1h,EOq, $l0,boq,LE,Jpj,kos,io8,Oo9,shw,NeC,FG,MQ,gf,pKs,XG,zz,A2s,Bh,SJw,Go8,mc,I1T,vOC,L8C,F8j,Yi,$yh,Q5,XKC,af,gO9,rf,zXq,fP8,$4,Beh,Tz,of,Qh4,YJK,DS,df,ew,r2L,JF,TeK,W8s,hF,wf,y2K,nO8,jh8,l1C,Hoh,Ul9,Dlj,dlw,CiK,J24,eXw,tN,Wh,wK0,oOL,Vk4,c2j,xk,x09,hX4,VD,ur0,ZiL,qsj,EXq,RGj,fxq,kQ4,bij,iiL,Ppz,uj,OiL,KrK,qn,APC,GQK,Ssw,IxC,vX0,Lrz,piw,Fr8,Mk8,Zu,gXj,XiT,zGw,B81,Qg1,Ys8,m08,fp,ax0,T8q,Wrq,oXq,nX9,E2,kk,Wj,cPK,yP0,jgq,U0w,Hi4,lx0,D0s,d0K,Cp8,eGL,Kp,wS,hG4,wiC,VQw,qjq,uLC,ZNj,P1L,Rtq,$mz,s$C,$k,xmC,tQT, fD4,H3,K6q,id,c3,$0K,ONj,iNL,sKT,N39,pzq,AML,rPq,xi,V5,E8K,Sjj,kD1,GDK,dVh,IDq,N8w,sg4,bNj,tF,s2,Nn,L68,pp,F6q,MQ4,g8j,Xzq,ztL,mmj,Yjw,T3q,QKL,rMz,W6l,SD,yMh,n8C,cMz,HNw,UmL,Dm9,etC,dmq,AN,C1w,lDL,o8L,G2,JMC,aDj,htT,Iv,Vml,tm8,xDw,wzs,vt,Pdw,ZVT,RHT,qEL,KU9,fQq,$I8,Lp,bV1,EdT,iVC,OVL,kbl,sez,GbT,pf9,AL9,SE4,IQz,vdK,LUs,Mf1,FU0,gdl,Xfh,zHT,mIK,Qe1,YE0,aQh,BSz,rL4,WUw,odw,cL1,jeL,nd8,gg,lQq,HVL,TS4,UIw,yLz,XS,DIz,eHq,dIL,Cd0,JL4,hHh,wfC,tw8,uGK,ZEz,PD1,Kcq,qS4,Bt,RVh,mR,$QL,bEz,kzT,rg,OEs,sfC,NfT,phl, SSq,AFw,vis,Lcl,T2,ov,Gzq,ISC,FcK,ct,gil,Mwq,Xhh,zV1,BfC,Qfz,mQh,Tf9,yD,YSK,Wcs,jD,yFw,Ht,U2,jf4,lj,lST,Du,DQ8,UQ1,nil,cFw,eVj,dQw,CDs,oiL,JFw,eD,hV9,HE0,iE9,np,VD8,Cp,tD8,xn0,uSl,Zpl,Pjj,KR9,q29,RdK,fuC,$nK,JN,bp8,Ekl,ips,Op1,svC,k24,Ng4,ptC,AN9,S2K,G2z,Iu9,VZ,X0l,vk4,LRC,tw,FR1,MD0,uV,zdj,Bgs,Zt,Y2h,QvT,mnq,Xtj,PJ,xK,gk8,RD,qL,auj,fM,KM,okC,yNj,luz,HpT,Dn8,TgT,jv8,edh,WRL,dnh,CjC,iV,$K,hdz,JNL,Eu,ts8,xLl,cNK,nks,Vs9,uJs,Unq,rNL,Ou,NL,pM,ZM0,Aw,$L9,qu0,bMs,RLl,K1j,EK9,PV4,sDT,k7s,Ss,N$4,Awj,G7j, It1,vKK,Ms9,LM,gKl,L1K,kK,B$L,mLC,z7,tkz,G7,Yuq,QDh,rw9,atl,T$K,zLw,ML,W1T,oK1,nK1,ywh,cww,JP8,jDC,FJ,ltK,ULC,HMl,eLq,DLK,SuL,CVw,dLT,g$,ID,Jw1,m1,wJL,VCC,tCq,xdq,uKT,BJ,NS8,F14,Zjq,v8w,bV,PaL,K5j,qfh,Rm0,fBj,YK,QZ,bjs,Eal,kxq,$dC,ij9,aD,pW8,s7s,N1K,ASL,r$,Sf0,Gxl,IB1,T7,vaC,F5T,MCK,gaC,WJ,L5h,oD,nM,XW0,zms,js,cJ,yZ,B1C,lV,md4,YfT,Q7C,rSq,aBh,CM,W5z,oal,T1w,na0,Jw,cSC,hw,ySq,w$,j70,lBs,ddh,HjT,Ddh,Vk,Ud9,emh,Caj,JSs,hmh,wW0,xa,Vyj,PW,ua,tyC,Kj,qd,ug8,fj,$a,ZY9,R7,P9j,ba,qd9,KNl,ka,ia,Of,$S9,RqC,fUK, sf,bYs,OY0,kM8,ElT,iYw,Nd,NBq,Sds,GMl,pj,IU4,vls,pBL,Afh,MyL,glq,XB4,zq4,BBl,Gx,aU8,TBL,I7,Yd4,QSL,ol4,SC,vW,Lj,mS1,rfL,nlz,FK,Md,cf9,yfl,jSw,g1,lUs,HYL,USq,DS1,eqz,dSl,C9L,wBL,JfK,Vq8,tql,uZK,ZWh,o7,$JT,KGl,q1j,bWw,Et0,f6q,PH0,kUT,OWl,iWh,sPC,I6w,cW,FGL,XIw,gt0,Mq8,S18,GUz,No9,pIC,vt9,yk,jC,Bol,zr,LOj,mJK,HW,DB,QPh,Y1j,LGz,r8l,ToT,WGT,eC,otl,tf,c8h,y84,jP9,HWl,l69,UJ1,xl,u9,DJ4,CHq,J80,KY,dJj,h0w,wIz,e09,qS,$l,VXC,tXj,fY,xW1,ush,Zz1,PTL,qaj,KtL,$Wz,bzl,Rgj,kVq,izh,fIl,kl,i9,OzT,NQT,Od,sX4,p54,Sa8, AQT,GV1,sd,IIK,vql,Lt4,NS,pY,MXh,Ftq,gqw,X5q,BQ4,zgC,mW0,Yaj,QXh,aIw,rQj,Wts,Sy,Af,GM,oqz,nq8,TQ8,HzT,UWq,DWK,CT4,dW8,egz,JQz,hgh,IS,vB,w5h,VT9,tT4,xwC,Ztw,PEl,Fg,Kqs,LY,gB,uPs,qNw,RQj,f4C,$w0,bth,zM,Eh8,kHs,sCq,BB,N0h,Ot1,mN,Yl,pHs,Ak8,GHl,vhK,SNL,I4h,aS,Lq9,MTL,ghw,zQh,B00,rB,TM,mws,Fq8,a40,QC1,YNw,WB,oS,T0j,rk0,nY,cB,WqL,yN,ohK,nhj,ck0,jy,yks,l9,jCq,HB,l40,Dwj,eQ0,dwl,Jk9,hQL,wH9,CE8,tZ8,VZT,xOT,PKC,ey,qF1,KM4,uYL,Zas,Rf9,faT,dB,CY,$Ow,bah,EbC,kL9,ias,Oal,NTl,pGz,MZz,GLl,IaC,ABK,XGj,xt,Z6,YFj, qJ,RP,QAj,zfT,t8,bH,$t,PI,E1,TTs,obL,WMw,kt,KW,VL,rBs,fW,BTl,aaL,cB1,Jf,iH,yB0,jAh,uH,mOl,O1,s1,lah,NJ,pW,A8,HaL,UOT,efT,dO0,DO1,Sq,JBl,CKj,GU,hf9,IP,vI,wGz,VuK,tuz,xi8,u0l,Py9,qXh,KZ4,ZHK,LW,RK4,$iL,f08,FZ,MJ,bHT,kZ0,iHT,go,ERh,OH4,s6C,NAC,pmq,Adj,SX4,GZL,zU,BI,vR4,I0j,LZK,mG,Yt,FZz,Mu9,Xml,gRK,zKK,BAj,miz,aP,YX8,Q6h,a04,rds,TAz,WZ8,nRl,cdL,ydK,oRl,j6L,l0q,HHK,Ui4,DiL,eK8,dij,Cyw,nW,JdK,hKs,wms,xkl,Kys,Z$T,tRK,jq,u1s,VR0,PI9,lH,RY4,qCs,HI,fq4,$kK,b$9,FS,E79,Nvz,pAl,A1z,U1,SCj,eq,Rv,Gg8,CW,Iq0,D6, v7j,LyT,Bvl,VP,mkq,tQ,xq,aqC,Qsh,Fyq,uT,r1s,TvL,o7q,ZI,n7h,c19,y1q,YC4,P5,lql,jsw,Kz,XA8,h8,H$q,Uks,Dkw,eY1,dkl,MRl,g7L,wo,wA1,Vdl,x_9,hYw,POl,Q6,a3,Pt,RrT,fRC,q_C,$_8,td0,Koj,CIw,bT4,ZTj,Eo1,uf8,rS,aeq,wtK,qW,RX,vh,J1w,iTL,p9L,$q,Ag9,S_w,sHq,Ea,GNq,IRz,kN0,vo0,N64,Loh,kq,bT,FoL,goq,Md0,fz,zrq,sa,B6q,iT,NW,Oa,pz,XJT,m_T,aRh,QHq,T6z,Woq,rgj,SX,AQ,nos,cgq,yg4,Jg4,D_4,erz,HTw,V41,lR9,IX,u7l,t48,Zcs,PlK,K4T,Lz,Fs,fmL,RPT,qK4,gQ,CO0,mt,bch,B5,MW,kAs,sUh,Nc8,w90,ics,aX,pCK,d_8,$Gz,Xs,AGq,v5,SK9,GAh,Im1, W5,oX,E3l,nz,c5,v3T,zV,xG0,L4w,F4K,M4h,OcK,g3j,Yq,XCh,QP,s5,zPj,mGw,yP,jX,YK0,QUw,ams,TV,rQ,rGC,Y_s,TcT,W4j,o3K,n3C,cG8,lT,H5,lmj,DGh,dGl,jUj,uv8,Zx0,P74,KCz,q6L,R7j,fl0,bxh,$ej,Ua,DI,eX,EQ8,k_T,ixs,CO,OxK,dQ,sBL,Cz,JQ,Bb,hQ,xm,NMj,Ln,iLL,pNl,uJ,AHh,oM,nO,wb,S6j,G_s,Il0,vQ9,LC4,wQ,Mbj,gQ4,Vu,xh,uE,XNT,mej,Y6C,Z4,QBs,z7j,BMw,alL,rHT,TM9,WCz,oQC,PH,cH0,iDh,Bu,Z9,yHs,jBT,qC,nQ4,Wu,lls,Hxs,Ue0,Kt,IM,e7K,deL,qw,RC,C78,ft,JHs,tk,h7C,wNC,WP9,$h,bE,VKs,EN,kh,tK8,iE,x24,ON,sN,u5l,Zf4,E10,Nw,PX4,q0K,KpT,pt, Rx0,Ak,ST,fXC,$2T,bfL,EFK,kj8,if9,Ofl,NEs,IC,srC,pXs,AYL,S04,Gjz,Fpq,IXz,vF8,Lp0,gFz,zxh,BEK,m21,XXq,vH,Y0j,Qrq,aX9,rYs,TEC,FP,WpL,Mw,g0,XP,oFw,nFh,yYz,jrC,lXs,HfL,D2w,U21,exL,zH,BH,JYK,d2q,CXq,mq,hx4,wX8,Yh,Qu,VSq,aC,tSC,r0,xZ0,TH,WH,uow,oC,nt,ZUs,PRK,cH,yu,KdC,jT,qWj,RbL,D4,fMz,$Z8,bUj,iUl,k81,eT,OUq,sqj,NOC,SVz,ENL,AAh,SWq,IMC,Vjl,R9;V0=function(V){return function(){return Vjl[V].apply(this,arguments)}}; g.xC=function(V,t){return Vjl[V]=t}; tjj=function(V){var t=0;return function(){return t=this.length))return this[V]}; rs=function(V){return V?V:a9}; s99=function(V,t,x){V instanceof String&&(V=String(V));for(var u=V.length-1;u>=0;u--){var Z=V[u];if(t.call(x,Z,u,V))return{wm:u,Bc:Z}}return{wm:-1,Bc:void 0}}; TK=function(V){return V?V:function(t,x){return s99(this,t,x).wm}}; g.o9=function(V,t,x){V=V.split(".");x=x||g.Ww;V[0]in x||typeof x.execScript=="undefined"||x.execScript("var "+V[0]);for(var u;V.length&&(u=V.shift());)V.length||t===void 0?x[u]&&x[u]!==Object.prototype[u]?x=x[u]:x=x[u]={}:x[u]=t}; cw=function(V,t){var x=g.nl("CLOSURE_FLAGS");V=x&&x[V];return V!=null?V:t}; g.nl=function(V,t){V=V.split(".");t=t||g.Ww;for(var x=0;x2){var u=Array.prototype.slice.call(arguments,2);return function(){var Z=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(Z,u);return V.apply(t,Z)}}return function(){return V.apply(t,arguments)}}; g.ej=function(V,t,x){g.ej=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?pw9:ATw;return g.ej.apply(null,arguments)}; g.ds=function(V,t){var x=Array.prototype.slice.call(arguments,1);return function(){var u=x.slice();u.push.apply(u,arguments);return V.apply(this,u)}}; g.JT=function(){return Date.now()}; S49=function(V){return V}; g.hT=function(V,t){function x(){} x.prototype=t.prototype;V.Sd=t.prototype;V.prototype=new x;V.prototype.constructor=V;V.Kv=function(u,Z,P){for(var K=Array(arguments.length-2),R=2;Rt&&x.push(Kr(u,1))}); return x}; qt=function(V){var t=t===void 0?42:t;V=(V==null?void 0:Kr(V,1))||0;return V>0&&t>=V}; g.Rc=function(V){V&&typeof V.dispose=="function"&&V.dispose()}; g.fr=function(V){for(var t=0,x=arguments.length;t>6|192;else{if(P>=55296&&P<=57343){if(P<=56319&&Z=56320&&K<=57343){P=(P-55296)*1024+ K-56320+65536;u[x++]=P>>18|240;u[x++]=P>>12&63|128;u[x++]=P>>6&63|128;u[x++]=P&63|128;continue}else Z--}if(t)throw Error("Found an unpaired surrogate");P=65533}u[x++]=P>>12|224;u[x++]=P>>6&63|128}u[x++]=P&63|128}}V=x===u.length?u:u.subarray(0,x)}return V}; A_=function(V){g.Ww.setTimeout(function(){throw V;},0)}; oCC=function(V){return Array.prototype.map.call(V,function(t){t=t.toString(16);return t.length>1?t:"0"+t}).join("")}; nC4=function(V){for(var t=[],x=0;x>6|192:((Z&64512)==55296&&u+1>18|240,t[x++]=Z>>12&63|128):t[x++]=Z>>12|224,t[x++]=Z>>6&63|128),t[x++]=Z&63|128)}return t}; GY=function(V,t){return V.lastIndexOf(t,0)==0}; cTC=function(V,t){var x=V.length-t.length;return x>=0&&V.indexOf(t,x)==x}; g.vU=function(V){return/^[\s\xa0]*$/.test(V)}; g.Lr=function(V,t){return V.indexOf(t)!=-1}; FF=function(V,t){return g.Lr(V.toLowerCase(),t.toLowerCase())}; g.XF=function(V,t){var x=0;V=Mt(String(V)).split(".");t=Mt(String(t)).split(".");for(var u=Math.max(V.length,t.length),Z=0;x==0&&Zt?1:0}; g.zY=function(){var V=g.Ww.navigator;return V&&(V=V.userAgent)?V:""}; Qn=function(V){return BU||mE?Yj?Yj.brands.some(function(t){return(t=t.brand)&&g.Lr(t,V)}):!1:!1}; ac=function(V){return g.Lr(g.zY(),V)}; r7=function(){return BU||mE?!!Yj&&Yj.brands.length>0:!1}; TY=function(){return r7()?!1:ac("Opera")}; yTC=function(){return r7()?!1:ac("Trident")||ac("MSIE")}; j99=function(){return r7()?Qn("Microsoft Edge"):ac("Edg/")}; WU=function(){return ac("Firefox")||ac("FxiOS")}; nr=function(){return ac("Safari")&&!(oc()||(r7()?0:ac("Coast"))||TY()||(r7()?0:ac("Edge"))||j99()||(r7()?Qn("Opera"):ac("OPR"))||WU()||ac("Silk")||ac("Android"))}; oc=function(){return r7()?Qn("Chromium"):(ac("Chrome")||ac("CriOS"))&&!(r7()?0:ac("Edge"))||ac("Silk")}; lzK=function(){return ac("Android")&&!(oc()||WU()||TY()||ac("Silk"))}; Hl9=function(V){var t={};V.forEach(function(x){t[x[0]]=x[1]}); return function(x){return t[x.find(function(u){return u in t})]||""}}; U11=function(V){var t=g.zY();if(V==="Internet Explorer"){if(yTC())if((V=/rv: *([\d\.]*)/.exec(t))&&V[1])t=V[1];else{V="";var x=/MSIE +([\d\.]+)/.exec(t);if(x&&x[1])if(t=/Trident\/(\d.\d)/.exec(t),x[1]=="7.0")if(t&&t[1])switch(t[1]){case "4.0":V="8.0";break;case "5.0":V="9.0";break;case "6.0":V="10.0";break;case "7.0":V="11.0"}else V="7.0";else V=x[1];t=V}else t="";return t}var u=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");x=[];for(var Z;Z=u.exec(t);)x.push([Z[1],Z[2],Z[3]||void 0]); t=Hl9(x);switch(V){case "Opera":if(TY())return t(["Version","Opera"]);if(r7()?Qn("Opera"):ac("OPR"))return t(["OPR"]);break;case "Microsoft Edge":if(r7()?0:ac("Edge"))return t(["Edge"]);if(j99())return t(["Edg"]);break;case "Chromium":if(oc())return t(["Chrome","CriOS","HeadlessChrome"])}return V==="Firefox"&&WU()||V==="Safari"&&nr()||V==="Android Browser"&&lzK()||V==="Silk"&&ac("Silk")?(t=x[2])&&t[1]||"":""}; D1l=function(V){if(r7()&&V!=="Silk"){var t=Yj.brands.find(function(x){return x.brand===V}); if(!t||!t.version)return NaN;t=t.version.split(".")}else{t=U11(V);if(t==="")return NaN;t=t.split(".")}return t.length===0?NaN:Number(t[0])}; cU=function(){return BU||mE?!!Yj&&!!Yj.platform:!1}; e84=function(){return cU()?Yj.platform==="Android":ac("Android")}; ji=function(){return ac("iPhone")&&!ac("iPod")&&!ac("iPad")}; lz=function(){return ji()||ac("iPad")||ac("iPod")}; HU=function(){return cU()?Yj.platform==="macOS":ac("Macintosh")}; d1C=function(){return cU()?Yj.platform==="Windows":ac("Windows")}; g.U$=function(V){return V[V.length-1]}; CL1=function(V,t){var x=V.length,u=typeof V==="string"?V.split(""):V;for(--x;x>=0;--x)x in u&&t.call(void 0,u[x],x,V)}; g.ei=function(V,t,x){t=DE(V,t,x);return t<0?null:typeof V==="string"?V.charAt(t):V[t]}; DE=function(V,t,x){for(var u=V.length,Z=typeof V==="string"?V.split(""):V,P=0;P=0;u--)if(u in Z&&t.call(x,Z[u],u,V))return u;return-1}; g.Cr=function(V,t){return JTL(V,t)>=0}; h88=function(V){if(!Array.isArray(V))for(var t=V.length-1;t>=0;t--)delete V[t];V.length=0}; g.h_=function(V,t){t=JTL(V,t);var x;(x=t>=0)&&g.J_(V,t);return x}; g.J_=function(V,t){return Array.prototype.splice.call(V,t,1).length==1}; g.w7=function(V,t){t=DE(V,t);t>=0&&g.J_(V,t)}; wwh=function(V,t){var x=0;CL1(V,function(u,Z){t.call(void 0,u,Z,V)&&g.J_(V,Z)&&x++})}; g.Vp=function(V){return Array.prototype.concat.apply([],arguments)}; g.tb=function(V){var t=V.length;if(t>0){for(var x=Array(t),u=0;u>>1),f=void 0;x?f=t.call(void 0,V[R],R,V):f=t(u,V[R]);f>0?Z=R+1:(P=R,K=!f)}return K?Z:-Z-1}; g.fR=function(V,t){V.sort(t||KR)}; xt8=function(V,t){var x=KR;g.fR(V,function(u,Z){return x(t(u),t(Z))})}; g.$z=function(V,t,x){if(!g.jj(V)||!g.jj(t)||V.length!=t.length)return!1;var u=V.length;x=x||uFC;for(var Z=0;Zt?1:V=0})}; g.pR=function(V,t){t===void 0&&(t=0);$t8();t=br8[t];for(var x=Array(Math.floor(V.length/3)),u=t[64]||"",Z=0,P=0;Z>2];K=t[(K&3)<<4|R>>4];R=t[(R&15)<<2|f>>6];f=t[f&63];x[P++]=""+b+K+R+f}b=0;f=u;switch(V.length-Z){case 2:b=V[Z+1],f=t[(b&15)<<2]||u;case 1:V=V[Z],x[P]=""+t[V>>2]+t[(V&3)<<4|b>>4]+f+u}return x.join("")}; g.Ab=function(V,t){if(Ejw&&!t)V=g.Ww.btoa(V);else{for(var x=[],u=0,Z=0;Z255&&(x[u++]=P&255,P>>=8);x[u++]=P}V=g.pR(x,t)}return V}; irj=function(V){var t=[];kY0(V,function(x){t.push(x)}); return t}; SG=function(V){var t=V.length,x=t*3/4;x%3?x=Math.floor(x):g.Lr("=.",V[t-1])&&(x=g.Lr("=.",V[t-2])?x-2:x-1);var u=new Uint8Array(x),Z=0;kY0(V,function(P){u[Z++]=P}); return Z!==x?u.subarray(0,Z):u}; kY0=function(V,t){function x(f){for(;u>4);K!=64&&(t(P<<4&240|K>>2),R!=64&&t(K<<6&192|R))}}; $t8=function(){if(!Ga){Ga={};for(var V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],x=0;x<5;x++){var u=V.concat(t[x].split(""));br8[x]=u;for(var Z=0;Z=V.length)throw Error();}; lo=function(V){var t=S49(jG);return t?V[t]:void 0}; He=function(V){V.R1X=!0;return V}; DT=function(V){var t=V;if(zsz(t)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t))throw Error(String(t));}else if(B7K(t)&&!Number.isSafeInteger(t))throw Error(String(t));return UA?BigInt(V):V=mtL(V)?V?"1":"0":zsz(V)?V.trim()||"0":String(V)}; Y$9=function(V,t){if(V.length>t.length)return!1;if(V.lengthZ)return!1;if(u>>0;eG=t;dl=(V-t)/4294967296>>>0}; te=function(V){if(V<0){CR(0-V);var t=g.G(Jb(eG,dl));V=t.next().value;t=t.next().value;eG=V>>>0;dl=t>>>0}else CR(V)}; uN=function(V,t){var x=t*4294967296+(V>>>0);return Number.isSafeInteger(x)?x:x_(V,t)}; QcK=function(V,t){var x=t&2147483648;x&&(V=~V+1>>>0,t=~t>>>0,V==0&&(t=t+1>>>0));V=uN(V,t);return typeof V==="number"?x?-V:V:x?"-"+V:V}; x_=function(V,t){t>>>=0;V>>>=0;if(t<=2097151)var x=""+(4294967296*t+V);else Yz()?x=""+(BigInt(t)<>>24|t<<8)&16777215,t=t>>16&65535,V=(V&16777215)+x*6777216+t*6710656,x+=t*8147497,t*=2,V>=1E7&&(x+=V/1E7>>>0,V%=1E7),x>=1E7&&(t+=x/1E7>>>0,x%=1E7),x=t+aE4(x)+aE4(V));return x}; aE4=function(V){V=String(V);return"0000000".slice(V.length)+V}; r_0=function(){var V=eG,t=dl;t&2147483648?Yz()?V=""+(BigInt(t|0)<>>0)):(t=g.G(Jb(V,t)),V=t.next().value,t=t.next().value,V="-"+x_(V,t)):V=x_(V,t);return V}; ZA=function(V){if(V.length<16)te(Number(V));else if(Yz())V=BigInt(V),eG=Number(V&BigInt(4294967295))>>>0,dl=Number(V>>BigInt(32)&BigInt(4294967295));else{var t=+(V[0]==="-");dl=eG=0;for(var x=V.length,u=0+t,Z=(x-t)%6+t;Z<=x;u=Z,Z+=6)u=Number(V.slice(u,Z)),dl*=1E6,eG=eG*1E6+u,eG>=4294967296&&(dl+=Math.trunc(eG/4294967296),dl>>>=0,eG>>>=0);t&&(t=g.G(Jb(eG,dl)),V=t.next().value,t=t.next().value,eG=V,dl=t)}}; Jb=function(V,t){t=~t;V?V=~V+1:t+=1;return[V,t]}; PD=function(V,t){throw Error(t===void 0?"unexpected value "+V+"!":t);}; K8=function(V){if(V!=null&&typeof V!=="number")throw Error("Value of float/double field must be a number, found "+typeof V+": "+V);return V}; T7K=function(V){return V.displayName||V.name||"unknown type name"}; qM=function(V){if(V!=null&&typeof V!=="boolean")throw Error("Expected boolean but got "+y0(V)+": "+V);return V}; WE1=function(V){if(V==null||typeof V==="boolean")return V;if(typeof V==="number")return!!V}; f8=function(V){switch(typeof V){case "bigint":return!0;case "number":return RL(V);case "string":return oj4.test(V);default:return!1}}; njz=function(V){if(typeof V!=="number")throw Xk("int32");if(!RL(V))throw Xk("int32");return V|0}; $_=function(V){return V==null?V:njz(V)}; bN=function(V){if(V==null)return V;if(typeof V==="string"&&V)V=+V;else if(typeof V!=="number")return;return RL(V)?V|0:void 0}; E9=function(V){if(V==null)return V;if(typeof V==="string"&&V)V=+V;else if(typeof V!=="number")return;return RL(V)?V>>>0:void 0}; y_s=function(V){var t=0;t=t===void 0?0:t;if(!f8(V))throw Xk("int64");var x=typeof V;switch(t){case 4096:switch(x){case "string":return k_(V);case "bigint":return String(O9(64,V));default:return s9(V)}case 8192:switch(x){case "string":return t=NM(Number(V)),p8(t)?V=DT(t):(t=V.indexOf("."),t!==-1&&(V=V.substring(0,t)),V=Yz()?DT(O9(64,BigInt(V))):DT(c_w(V))),V;case "bigint":return DT(O9(64,V));default:return p8(V)?DT(Ae(V)):DT(s9(V))}case 0:switch(x){case "string":return k_(V);case "bigint":return DT(O9(64, V));default:return Ae(V)}default:return PD(t,"Unknown format requested type for int64")}}; SV=function(V){return V==null?V:y_s(V)}; jcT=function(V){if(V[0]==="-")return!1;var t=V.length;return t<20?!0:t===20&&Number(V.substring(0,6))<184467}; lEK=function(V){var t=V.length;return V[0]==="-"?t<20?!0:t===20&&Number(V.substring(0,7))>-922337:t<19?!0:t===19&&Number(V.substring(0,6))<922337}; Hr0=function(V){if(V<0){te(V);var t=x_(eG,dl);V=Number(t);return p8(V)?V:t}t=String(V);if(jcT(t))return t;te(V);return uN(eG,dl)}; c_w=function(V){if(lEK(V))return V;ZA(V);return r_0()}; Ae=function(V){f8(V);V=NM(V);p8(V)||(te(V),V=QcK(eG,dl));return V}; s9=function(V){f8(V);V=NM(V);if(p8(V))V=String(V);else{var t=String(V);lEK(t)?V=t:(te(V),V=r_0())}return V}; k_=function(V){f8(V);var t=NM(Number(V));if(p8(t))return String(t);t=V.indexOf(".");t!==-1&&(V=V.substring(0,t));return c_w(V)}; Ut8=function(V){if(V==null)return V;if(typeof V==="bigint")return Gi(V)?V=Number(V):(V=O9(64,V),V=Gi(V)?Number(V):String(V)),V;if(f8(V))return typeof V==="number"?Ae(V):k_(V)}; Dt9=function(V){if(V==null)return V;var t=typeof V;if(t==="bigint")return String(O9(64,V));if(f8(V)){if(t==="string")return k_(V);if(t==="number")return Ae(V)}}; dtz=function(V){if(V==null)return V;var t=typeof V;if(t==="bigint")return String(es0(64,V));if(f8(V)){if(t==="string")return f8(V),t=NM(Number(V)),p8(t)&&t>=0?V=String(t):(t=V.indexOf("."),t!==-1&&(V=V.substring(0,t)),jcT(V)||(ZA(V),V=x_(eG,dl))),V;if(t==="number")return f8(V),V=NM(V),V>=0&&p8(V)?V:Hr0(V)}}; Czw=function(V){if(V==null||typeof V=="string"||Id(V)||V instanceof ve)return V}; J_C=function(V){if(typeof V!=="string")throw Error();return V}; IL=function(V){if(V!=null&&typeof V!=="string")throw Error();return V}; vD=function(V){return V==null||typeof V==="string"?V:void 0}; L8=function(V,t){if(!(V instanceof t))throw Error("Expected instanceof "+T7K(t)+" but got "+(V&&T7K(V.constructor)));return V}; hs4=function(V,t,x){if(V!=null&&typeof V==="object"&&V.gs===FA)return V;if(Array.isArray(V)){var u=Ta(V),Z=u;Z===0&&(Z|=x&32);Z|=x&2;Z!==u&&Be(V,Z);return new t(V)}}; VGq=function(V,t){return wU8(t)}; wU8=function(V){switch(typeof V){case "number":return isFinite(V)?V:String(V);case "bigint":return Gi(V)?Number(V):String(V);case "boolean":return V?1:0;case "object":if(V)if(Array.isArray(V)){if(We(V))return}else{if(Id(V))return sc0(V);if(V instanceof ve){var t=V.J;return t==null?"":typeof t==="string"?t:V.J=sc0(t)}}}return V}; tGl=function(V,t,x){var u=Qp(V),Z=u.length,P=t&256?u[Z-1]:void 0;Z+=P?-1:0;for(t=t&512?1:0;t0?void 0:V===0?Poq||(Poq=[0,void 0]):[-V,void 0];case "string":return[0,V];case "object":return V}}; BD=function(V,t,x){V=XA(V,t[0],t[1],x?1:2);t!==gp&&x&&zi(V,16384);return V}; XA=function(V,t,x,u){if(V==null){var Z=96;x?(V=[x],Z|=512):V=[];t&&(Z=Z&-33521665|(t&1023)<<15)}else{if(!Array.isArray(V))throw Error("narr");Z=Ta(V);if(Z&2048)throw Error("farr");if(Z&64)return V;u===1||u===2||(Z|=64);if(x&&(Z|=512,x!==V[0]))throw Error("mid");a:{x=V;if(u=x.length){var P=u-1;if(rl(x[P])){Z|=256;t=P-(Z&512?0:-1);if(t>=1024)throw Error("pvtlmt");Z=Z&-33521665|(t&1023)<<15;break a}}if(t){t=Math.max(t,u-(Z&512?0:-1));if(t>1024)throw Error("spvt");Z=Z&-33521665|(t&1023)<<15}}}Be(V,Z); return V}; qAl=function(V,t,x){x=x===void 0?mT:x;if(V!=null){if(GYz&&V instanceof Uint8Array)return t?V:new Uint8Array(V);if(Array.isArray(V)){var u=Ta(V);if(u&2)return V;t&&(t=u===0||!!(u&32)&&!(u&64||!(u&16)));return t?(Be(V,(u|34)&-12293),V):MM(V,qAl,u&4?mT:x,!0,!0)}V.gs===FA&&(x=V.Ss,u=Ta(x),V=u&2?V:new V.constructor(ma(x,u,!0)));return V}}; ma=function(V,t,x){var u=x||t&2?mT:Mi1,Z=!!(t&32);V=tGl(V,t,function(P){return qAl(P,Z,u)}); zi(V,32|(x?2:0));return V}; Y_=function(V){var t=V.Ss,x=Ta(t);return x&2?new V.constructor(ma(t,x,!1)):V}; rp=function(V,t){V=V.Ss;return aL(V,Ta(V),t)}; aL=function(V,t,x,u){if(x===-1)return null;var Z=x+(t&512?0:-1),P=V.length-1;if(Z>=P&&t&256)return V[P][x];if(u&&t&256&&(t=V[P][x],t!=null)){if(V[Z]!=null&&Ti!=null){var K;V=(K=Rpj)!=null?K:Rpj={};K=V[Ti]||0;K>=4||(V[Ti]=K+1,K=Error(),LEs(K,"incident"),A_(K))}return t}if(Z<=P)return V[Z]}; oL=function(V,t,x){var u=V.Ss,Z=Ta(u);od(Z);WD(u,Z,t,x);return V}; WD=function(V,t,x,u){var Z=t&512?0:-1,P=x+Z,K=V.length-1;if(P>=K&&t&256)return V[K][x]=u,t;if(P<=K)return V[P]=u,t&256&&(V=V[K],x in V&&delete V[x]),t;u!==void 0&&(K=t>>15&1023||536870912,x>=K?u!=null&&(P={},V[K+Z]=(P[x]=u,P),t|=256,Be(V,t)):V[P]=u);return t}; n8=function(V,t,x){return fTl(V,t,x,!1)!==void 0}; U9=function(V,t,x,u,Z,P){var K=V.Ss;V=Ta(K);u=2&V?1:u;P=!!P;Z=cD(K,V,t,Z);var R=Ta(Z);if(!(4&R)){4&R&&(Z=Qp(Z),R=yW(R,V),V=WD(K,V,t,Z));for(var f=0,b=0;f "+V)}; S5=function(V){if(typeof V==="string")return{buffer:S$q(V),qw:!1};if(Array.isArray(V))return{buffer:new Uint8Array(V),qw:!1};if(V.constructor===Uint8Array)return{buffer:V,qw:!1};if(V.constructor===ArrayBuffer)return{buffer:new Uint8Array(V),qw:!1};if(V.constructor===ve)return{buffer:MY(V)||new Uint8Array(0),qw:!0};if(V instanceof Uint8Array)return{buffer:new Uint8Array(V.buffer,V.byteOffset,V.byteLength),qw:!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"); }; Abh=function(V,t){this.S=null;this.G=!1;this.J=this.N=this.W=0;this.init(V,void 0,void 0,t)}; I0=function(V){var t=0,x=0,u=0,Z=V.S,P=V.J;do{var K=Z[P++];t|=(K&127)<32&&(x|=(K&127)>>4);for(u=3;u<32&&K&128;u+=7)K=Z[P++],x|=(K&127)<>>0,x>>>0);throw AV();}; Gm=function(V,t){V.J=t;if(t>V.N)throw pej(V.N,t);}; LP=function(V){var t=V.S,x=V.J,u=t[x++],Z=u&127;if(u&128&&(u=t[x++],Z|=(u&127)<<7,u&128&&(u=t[x++],Z|=(u&127)<<14,u&128&&(u=t[x++],Z|=(u&127)<<21,u&128&&(u=t[x++],Z|=u<<28,u&128&&t[x++]&128&&t[x++]&128&&t[x++]&128&&t[x++]&128&&t[x++]&128)))))throw AV();Gm(V,x);return Z}; F2=function(V){var t=V.S,x=V.J,u=t[x+0],Z=t[x+1],P=t[x+2];t=t[x+3];Gm(V,V.J+4);return(u<<0|Z<<8|P<<16|t<<24)>>>0}; MP=function(V){var t=F2(V);V=F2(V);return uN(t,V)}; gP=function(V){var t=F2(V),x=F2(V);V=(x>>31)*2+1;var u=x>>>20&2047;t=4294967296*(x&1048575)+t;return u==2047?t?NaN:V*Infinity:u==0?V*4.9E-324*t:V*Math.pow(2,u-1075)*(t+4503599627370496)}; X2=function(V){for(var t=0,x=V.J,u=x+10,Z=V.S;xV.N)throw pej(t,V.N-x);V.J=u;return x}; ITl=function(V,t){if(t==0)return Fk();var x=SAz(V,t);V.FE&&V.G?x=V.S.subarray(x,x+t):(V=V.S,t=x+t,x=x===t?new Uint8Array(0):Gaj?V.slice(x,t):new Uint8Array(V.subarray(x,t)));return x.length==0?Fk():new ve(x,LR)}; Bx=function(V,t){if(zm.length){var x=zm.pop();x.init(V,void 0,void 0,t);V=x}else V=new Abh(V,t);this.J=V;this.N=this.J.J;this.S=this.W=-1;vzL(this,t)}; vzL=function(V,t){t=t===void 0?{}:t;V.XP=t.XP===void 0?!1:t.XP}; LTK=function(V){var t=V.J;if(t.J==t.N)return!1;V.N=V.J.J;var x=LP(V.J)>>>0;t=x>>>3;x&=7;if(!(x>=0&&x<=5))throw Nlq(x,V.N);if(t<1)throw Error("Invalid field number: "+t+" (at position "+V.N+")");V.W=t;V.S=x;return!0}; mI=function(V){switch(V.S){case 0:V.S!=0?mI(V):X2(V.J);break;case 1:V=V.J;Gm(V,V.J+8);break;case 2:if(V.S!=2)mI(V);else{var t=LP(V.J)>>>0;V=V.J;Gm(V,V.J+t)}break;case 5:V=V.J;Gm(V,V.J+4);break;case 3:t=V.W;do{if(!LTK(V))throw Error("Unmatched start-group tag: stream EOF");if(V.S==4){if(V.W!=t)throw Error("Unmatched end-group tag");break}mI(V)}while(1);break;default:throw Nlq(V.S,V.N);}}; YV=function(V,t,x){var u=V.J.N,Z=LP(V.J)>>>0,P=V.J.J+Z,K=P-u;K<=0&&(V.J.N=P,x(t,V,void 0,void 0,void 0),K=P-V.J.J);if(K)throw Error("Message parsing ended unexpectedly. Expected to read "+(Z+" bytes, instead read "+(Z-K)+" bytes, either the data ended unexpectedly or the message misreported its own length"));V.J.J=P;V.J.N=u}; rP=function(V){var t=LP(V.J)>>>0;V=V.J;var x=SAz(V,t);V=V.S;if(FTl){var u=V,Z;(Z=QG)||(Z=QG=new TextDecoder("utf-8",{fatal:!0}));t=x+t;u=x===0&&t===u.length?u:u.subarray(x,t);try{var P=Z.decode(u)}catch(b){if(a0===void 0){try{Z.decode(new Uint8Array([128]))}catch(E){}try{Z.decode(new Uint8Array([97])),a0=!0}catch(E){a0=!1}}!a0&&(QG=void 0);throw b;}}else{P=x;t=P+t;x=[];for(var K=null,R,f;P=t?pr():(f=V[P++],R<194||(f&192)!==128?(P--,pr()):x.push((R&31)<<6|f&63)): R<240?P>=t-1?pr():(f=V[P++],(f&192)!==128||R===224&&f<160||R===237&&f>=160||((Z=V[P++])&192)!==128?(P--,pr()):x.push((R&15)<<12|(f&63)<<6|Z&63)):R<=244?P>=t-2?pr():(f=V[P++],(f&192)!==128||(R<<28)+(f-144)>>30!==0||((Z=V[P++])&192)!==128||((u=V[P++])&192)!==128?(P--,pr()):(R=(R&7)<<18|(f&63)<<12|(Z&63)<<6|u&63,R-=65536,x.push((R>>10&1023)+55296,(R&1023)+56320))):pr(),x.length>=8192&&(K=Q9K(K,x),x.length=0);P=Q9K(K,x)}return P}; MGh=function(V){var t=LP(V.J)>>>0;return ITl(V.J,t)}; gz8=function(V){return V}; Tm=function(V){return V}; mY4=function(V,t,x,u){return Xe0(V,t,x,u,zpT,Blz)}; aTC=function(V,t,x,u){return Xe0(V,t,x,u,YAz,Qdh)}; Xe0=function(V,t,x,u,Z,P){if(!x.length&&!u)return 0;for(var K=0,R=0,f=0,b=0,E=0,k=x.length-1;k>=0;k--){var O=x[k];u&&k===x.length-1&&O===u||(b++,O!=null&&f++)}if(u)for(var N in u)k=+N,isNaN(k)||(E+=rb1(k),R++,k>K&&(K=k));b=Z(b,f)+P(R,K,E);N=f;k=R;O=K;for(var p=E,I=x.length-1;I>=0;I--){var L=x[I];if(!(L==null||u&&I===x.length-1&&L===u)){L=I-t;var M=Z(L,N)+P(k,O,p);M=1024||(k--,N++,p-=z.length,K=Z(u,N)+P(k,O,p),K1?V-1:0)}; YAz=function(V,t){return(V>1?V-1:0)+(V-t)*4}; Blz=function(V,t){return V==0?0:9*Math.max(1<<32-Math.clz32(V+V/2-1),4)<=t?V==0?0:V<4?100+(V-1)*16:V<6?148+(V-4)*16:V<12?244+(V-6)*16:V<22?436+(V-12)*19:V<44?820+(V-22)*17:52+32*V:40+4*t}; zpT=function(V){return 40+4*V}; rb1=function(V){return V>=100?V>=1E4?Math.ceil(Math.log10(1+V)):V<1E3?3:4:V<10?1:2}; TlT=function(V){return V}; Wx=function(V,t,x){this.Ss=XA(V,t,x)}; cx=function(V){try{return o0=ZRL,nP(V)}finally{o0=void 0}}; WTq=function(V,t){if(t==null||t=="")return new V;t=JSON.parse(t);if(!Array.isArray(t))throw Error("dnarr");zi(t,32);return new V(t)}; nP=function(V){var t=V.Ss,x=o0(t);t=x!==t;var u=Ta(t?V.Ss:x);if(V=x.length){var Z=x[V-1],P=rl(Z);P?V--:Z=void 0;var K=u&512?0:-1,R=V-K;u=!!yG&&!(u&512);var f,b=(f=yG)!=null?f:Tm;f=u?b(R,K,x,Z):R;u=(R=u&&R!==f)?Array.prototype.slice.call(x,0,V):x;if(P||R){b:{var E=u;var k=Z;var O;P=!1;if(R)for(b=Math.max(0,f+K);b0;V--){O=u[V-1];if(!(O==null||We(O)||ad(O)&&O.size===0))break;M=!0}if(u!==x||E||M){if(!R&&!t)u=Array.prototype.slice.call(u,0,V);else if(M||E||k)u.length=V;k&&u.push(k)}x=u}return x}; j5=function(V,t){this.S=V>>>0;this.J=t>>>0}; nzK=function(V){if(!V)return oz8||(oz8=new j5(0,0));if(!/^\d+$/.test(V))return null;ZA(V);return new j5(eG,dl)}; lF=function(V,t){this.S=V>>>0;this.J=t>>>0}; yb4=function(V){if(!V)return cbw||(cbw=new lF(0,0));if(!/^-?\d+$/.test(V))return null;ZA(V);return new lF(eG,dl)}; Hx=function(){this.J=[]}; UL=function(V,t,x){for(;x>0||t>127;)V.J.push(t&127|128),t=(t>>>7|x<<25)>>>0,x>>>=7;V.J.push(t)}; D3=function(V,t){for(;t>127;)V.J.push(t&127|128),t>>>=7;V.J.push(t)}; jdL=function(V,t){if(t>=0)D3(V,t);else{for(var x=0;x<9;x++)V.J.push(t&127|128),t>>=7;V.J.push(1)}}; e5=function(V,t){V.J.push(t>>>0&255);V.J.push(t>>>8&255);V.J.push(t>>>16&255);V.J.push(t>>>24&255)}; lT0=function(){this.N=[];this.S=0;this.J=new Hx}; dP=function(V,t){t.length!==0&&(V.N.push(t),V.S+=t.length)}; HRs=function(V,t){CP(V,t,2);t=V.J.end();dP(V,t);t.push(V.S);return t}; UYq=function(V,t){var x=t.pop();for(x=V.S+V.J.length()-x;x>127;)t.push(x&127|128),x>>>=7,V.S++;t.push(x);V.S++}; CP=function(V,t,x){D3(V.J,t*8+x)}; DYs=function(V,t,x){if(x!=null){switch(typeof x){case "string":nzK(x)}CP(V,t,1);switch(typeof x){case "number":V=V.J;CR(x);e5(V,eG);e5(V,dl);break;case "bigint":x=BigInt.asUintN(64,x);x=new j5(Number(x&BigInt(4294967295)),Number(x>>BigInt(32)));V=V.J;t=x.J;e5(V,x.S);e5(V,t);break;default:x=nzK(x),V=V.J,t=x.J,e5(V,x.S),e5(V,t)}}}; JV=function(V,t,x){CP(V,t,2);D3(V.J,x.length);dP(V,V.J.end());dP(V,x)}; hV=function(){function V(){throw Error();} Object.setPrototypeOf(V,V.prototype);return V}; VM=function(V,t,x){this.K_=V;this.sx=t;V=S49(wP);this.J=!!V&&x===V||!1}; tc=function(V,t){var x=x===void 0?wP:x;return new VM(V,t,x)}; dY8=function(V,t,x,u,Z){t=epw(t,u);t!=null&&(x=HRs(V,x),Z(t,V),UYq(V,x))}; ZV=function(V,t,x,u){var Z=u[V];if(Z)return Z;Z={};Z.SvX=u;Z.Ql=KT1(u[0]);var P=u[1],K=1;P&&P.constructor===Object&&(Z.extensions=P,P=u[++K],typeof P==="function"&&(Z.MI=!0,xn!=null||(xn=P),ux!=null||(ux=u[K+1]),P=u[K+=2]));for(var R={};P&&Array.isArray(P)&&P.length&&typeof P[0]==="number"&&P[0]>0;){for(var f=0;f>BigInt(32)));UL(V.J,x.S,x.J);break;default:x=yb4(t),UL(V.J,x.S,x.J)}}}; p9=function(V,t,x){t=bN(t);t!=null&&t!=null&&(CP(V,x,0),jdL(V.J,t))}; KaC=function(V,t,x){t=WE1(t);t!=null&&(CP(V,x,0),V.J.J.push(t?1:0))}; q9z=function(V,t,x){t=vD(t);t!=null&&JV(V,x,Whw(t))}; RNK=function(V,t,x,u,Z){t=epw(t,u);t!=null&&(x=HRs(V,x),Z(t,V),UYq(V,x))}; fAl=function(V){return function(){var t=new lT0;uAl(this.Ss,t,ZV($n,f9,bx,V));dP(t,t.J.end());for(var x=new Uint8Array(t.S),u=t.N,Z=u.length,P=0,K=0;K>>31)&4294967295;k=Z[0];var p=Z[1],I=Z[2],L=Z[3],M=Z[4];for(N=0;N<80;N++){if(N<40)if(N<20){var z=L^p&(I^L);var Y=1518500249}else z=p^I^L,Y=1859775393;else N<60?(z=p&I|L&(p|I),Y=2400959708):(z=p^I^L,Y=3395469782);z=((k<<5|k>>>27)&4294967295)+z+M+Y+O[N]&4294967295;M=L;L=I;I=(p<<30|p>>>2)&4294967295;p=k;k=z}Z[0]=Z[0]+k&4294967295;Z[1]=Z[1]+p&4294967295;Z[2]= Z[2]+I&4294967295;Z[3]=Z[3]+L&4294967295;Z[4]=Z[4]+M&4294967295} function x(k,O){if(typeof k==="string"){k=unescape(encodeURIComponent(k));for(var N=[],p=0,I=k.length;p=56;N--)P[N]=O&255,O>>>=8;t(P);for(N=O=0;N<5;N++)for(var p=24;p>=0;p-=8)k[O++]=Z[N]>>p&255;return k} for(var Z=[],P=[],K=[],R=[128],f=1;f<64;++f)R[f]=0;var b,E;V();return{reset:V,update:x,digest:u,I2:function(){for(var k=u(),O="",N=0;N4);Z++)t[Jc(V[Z])]||(x+="\nInner error "+u++ +": ",V[Z].stack&&V[Z].stack.indexOf(V[Z].toString())==0||(x+=typeof V[Z]==="string"?V[Z]:V[Z].message+"\n"),x+=dH(V[Z],t));Z")!=-1&&(V=V.replace(aA4,">")),V.indexOf('"')!=-1&&(V=V.replace(reh,""")),V.indexOf("'")!=-1&&(V=V.replace(TpK,"'")),V.indexOf("\x00")!=-1&&(V=V.replace(Wa4,"�")));return V}; g.xE=function(V){return V==null?"":String(V)}; uG=function(V){for(var t=0,x=0;x>>0;return t}; Z8=function(V){var t=Number(V);return t==0&&g.vU(V)?NaN:t}; o_q=function(V){return String(V).replace(/\-([a-z])/g,function(t,x){return x.toUpperCase()})}; n_0=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; ceK=function(V){return V.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(t,x,u){return x+u.toUpperCase()})}; yeT=function(V){var t=1;V=V.split(":");for(var x=[];t>0&&V.length;)x.push(V.shift()),t--;V.length&&x.push(V.join(":"));return x}; PO=function(V){this.J=V||{cookie:""}}; Ku=function(V){V=(V.J.cookie||"").split(";");for(var t=[],x=[],u,Z,P=0;P/g,">").replace(/"/g,""").replace(/'/g,"'");return n9(V)}; Jez=function(V){var t=cO("");return n9(V.map(function(x){return cQ(cO(x))}).join(cQ(t).toString()))}; xPC=function(V){var t;if(!hNl.test("div"))throw Error("");if(wD1.indexOf("DIV")!==-1)throw Error("");var x="":(V=Jez(t.map(function(u){return u instanceof o2?u:cO(String(u))})),x+=">"+V.toString()+""); return n9(x)}; V5q=function(V){for(var t="",x=Object.keys(V),u=0;u2&&$Ps(Z,K,u,2);return K}; $Ps=function(V,t,x,u){function Z(R){R&&t.appendChild(typeof R==="string"?V.createTextNode(R):R)} for(;u0)Z(P);else{a:{if(P&&typeof P.length=="number"){if(g.lL(P)){var K=typeof P.item=="function"||typeof P.item=="string";break a}if(typeof P==="function"){K=typeof P.item=="function";break a}}K=!1}g.EA(K?g.tb(P):P,Z)}}}; g.uc=function(V){return t$(document,V)}; t$=function(V,t){t=String(t);V.contentType==="application/xhtml+xml"&&(t=t.toLowerCase());return V.createElement(t)}; g.ZZ=function(V){return document.createTextNode(String(V))}; g.Py=function(V,t){V.appendChild(t)}; g.KQ=function(V){for(var t;t=V.firstChild;)V.removeChild(t)}; qN=function(V,t,x){V.insertBefore(t,V.childNodes[x]||null)}; g.RZ=function(V){return V&&V.parentNode?V.parentNode.removeChild(V):null}; g.fQ=function(V,t){if(!V||!t)return!1;if(V.contains&&t.nodeType==1)return V==t||V.contains(t);if(typeof V.compareDocumentPosition!="undefined")return V==t||!!(V.compareDocumentPosition(t)&16);for(;t&&V!=t;)t=t.parentNode;return t==V}; jc=function(V){return V.nodeType==9?V:V.ownerDocument||V.document}; g.$P=function(V,t){if("textContent"in V)V.textContent=t;else if(V.nodeType==3)V.data=String(t);else if(V.firstChild&&V.firstChild.nodeType==3){for(;V.lastChild!=V.firstChild;)V.removeChild(V.lastChild);V.firstChild.data=String(t)}else g.KQ(V),V.appendChild(jc(V).createTextNode(String(t)))}; EVK=function(V){return V.tagName=="A"&&V.hasAttribute("href")||V.tagName=="INPUT"||V.tagName=="TEXTAREA"||V.tagName=="SELECT"||V.tagName=="BUTTON"?!V.disabled&&(!V.hasAttribute("tabindex")||bPh(V)):V.hasAttribute("tabindex")&&bPh(V)}; bPh=function(V){V=V.tabIndex;return typeof V==="number"&&V>=0&&V<32768}; Ek=function(V,t,x){if(!t&&!x)return null;var u=t?String(t).toUpperCase():null;return bc(V,function(Z){return(!u||Z.nodeName==u)&&(!x||typeof Z.className==="string"&&g.Cr(Z.className.split(/\s+/),x))},!0)}; bc=function(V,t,x){V&&!x&&(V=V.parentNode);for(x=0;V;){if(t(V))return V;V=V.parentNode;x++}return null}; yR=function(V){this.J=V||g.Ww.document||document}; kP=function(V){this.Ss=XA(V)}; ic=function(V,t){return oL(V,2,qM(t))}; Ok=function(V){this.Ss=XA(V)}; sk=function(V){this.Ss=XA(V)}; km0=function(V,t){R0(V,Ok,1,t)}; NN=function(V){this.Ss=XA(V)}; OPC=function(V,t){t=t===void 0?iPh:t;if(!pQ){var x;V=(x=V.navigator)==null?void 0:x.userAgentData;if(!V||typeof V.getHighEntropyValues!=="function"||V.brands&&typeof V.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));x=(V.brands||[]).map(function(Z){var P=new Ok;P=sL(P,1,Z.brand);return sL(P,2,Z.version)}); km0(oL(A$,2,qM(V.mobile)),x);pQ=V.getHighEntropyValues(t)}var u=new Set(t);return pQ.then(function(Z){var P=A$.clone();u.has("platform")&&sL(P,3,Z.platform);u.has("platformVersion")&&sL(P,4,Z.platformVersion);u.has("architecture")&&sL(P,5,Z.architecture);u.has("model")&&sL(P,6,Z.model);u.has("uaFullVersion")&&sL(P,7,Z.uaFullVersion);return P}).catch(function(){return A$.clone()})}; Sz=function(V){this.Ss=XA(V)}; s0s=function(V){this.Ss=XA(V)}; IZ=function(V){this.Ss=XA(V,4)}; vy=function(V){this.Ss=XA(V,36)}; LQ=function(V){this.Ss=XA(V,19)}; FH=function(V,t){this.w8=t=t===void 0?!1:t;this.uach=this.locale=null;this.J=new LQ;Number.isInteger(V)&&this.J.bk(V);t||(this.locale=document.documentElement.getAttribute("lang"));NPC(this,new Sz)}; NPC=function(V,t){qP(V.J,Sz,1,t);iF(t,1)||pP(t,1,1);V.w8||(t=MN(V),kV(t,5)||sL(t,5,V.locale));V.uach&&(t=MN(V),KP(t,sk,9)||qP(t,sk,9,V.uach))}; zw=function(V,t){n8(gR(V),NN,11)&&(V=XH(V),pP(V,1,t))}; gR=function(V){return KP(V.J,Sz,1)}; px1=function(V){var t=t===void 0?iPh:t;var x=V.w8?void 0:Vo();x?OPC(x,t).then(function(u){V.uach=u;u=MN(V);qP(u,sk,9,V.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; MN=function(V){V=gR(V);var t=KP(V,NN,11);t||(t=new NN,qP(V,NN,11,t));return t}; XH=function(V){V=MN(V);var t=KP(V,kP,10);t||(t=new kP,ic(t,!1),qP(V,kP,10,t));return t}; AVK=function(V){return g.wZ?"webkit"+V:V.toLowerCase()}; g.By=function(V,t,x,u){this.W=V;this.G=t;this.J=this.N=V;this.B=x||0;this.L=u||2}; g.me=function(V){V.J=Math.min(V.G,V.J*V.L);V.N=Math.min(V.G,V.J+(V.B?Math.round(V.B*(Math.random()-.5)*2*V.J):0));V.S++}; SL0=function(V){this.Ss=XA(V,8)}; Gm0=function(V){this.Ss=XA(V)}; Qo=function(V){g.c.call(this);var t=this;this.componentId="";this.J=[];this.Es="";this.pageId=null;this.L1=this.zU=-1;this.L=this.experimentIds=null;this.Ij=this.wk=this.B=this.W=0;this.dk=1;this.timeoutMillis=0;this.cX=!1;this.logSource=V.logSource;this.vD=V.vD||function(){}; this.N=new FH(V.logSource,V.w8);this.network=V.network||null;this.jN=V.jN||null;this.C=V.rBk||null;this.sessionIndex=V.sessionIndex||null;this.GV=V.GV||!1;this.logger=null;this.withCredentials=!V.KC;this.w8=V.w8||!1;this.X=!this.w8&&!!Vo()&&!!Vo().navigator&&Vo().navigator.sendBeacon!==void 0;this.BX=typeof URLSearchParams!=="undefined"&&!!(new URL(YP())).searchParams&&!!(new URL(YP())).searchParams.set;var x=pP(new Sz,1,1);NPC(this.N,x);this.G=new g.By(1E4,3E5,.1);V=I3s(this,V.qt);this.S=new fu(this.G.getValue(), V);this.Us=new fu(6E5,V);this.GV||this.Us.start();this.w8||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t.i_()}),document.addEventListener("pagehide",this.i_.bind(this)))}; I3s=function(V,t){return V.BX?t?function(){t().then(function(){V.flush()})}:function(){V.flush()}:function(){}}; vVC=function(V){V.C||(V.C=YP());try{return(new URL(V.C)).toString()}catch(t){return(new URL(V.C,Vo().location.origin)).toString()}}; LI9=function(V,t,x){x=x===void 0?V.vD():x;var u={},Z=new URL(vVC(V));x&&(u.Authorization=x);V.sessionIndex&&(u["X-Goog-AuthUser"]=V.sessionIndex,Z.searchParams.set("authuser",V.sessionIndex));V.pageId&&(Object.defineProperty(u,"X-Goog-PageId",{value:V.pageId}),Z.searchParams.set("pageId",V.pageId));return{url:Z.toString(),body:t,cq:1,requestHeaders:u,requestType:"POST",withCredentials:V.withCredentials,timeoutMillis:V.timeoutMillis}}; M51=function(V){FIz(V,function(t,x){t=new URL(t);t.searchParams.set("format","json");var u=!1;try{u=Vo().navigator.sendBeacon(t.toString(),x.jZ())}catch(Z){}u||(V.X=!1);return u})}; FIz=function(V,t){if(V.J.length!==0){var x=new URL(vVC(V));x.searchParams.delete("format");var u=V.vD();u&&x.searchParams.set("auth",u);x.searchParams.set("authuser",V.sessionIndex||"0");for(u=0;u<10&&V.J.length;++u){var Z=V.J.slice(0,32),P=V.N.build(Z,V.W,V.B,V.jN,V.wk,V.Ij);if(!t(x.toString(),P)){++V.B;break}V.W=0;V.B=0;V.wk=0;V.Ij=0;V.J=V.J.slice(Z.length)}V.S.enabled&&V.S.stop()}}; YP=function(){return"https://play.google.com/log?format=json&hasfast=true"}; aZ=function(){this.kA=typeof AbortController!=="undefined"}; rR=function(V,t){g.c.call(this);this.logSource=V;this.sessionIndex=t;this.TQ="https://play.google.com/log?format=json&hasfast=true";this.S=null;this.W=!1;this.network=null;this.componentId="";this.J=this.jN=null;this.N=!1;this.pageId=null}; gVq=function(V,t){V.S=t;return V}; Xxl=function(V,t){V.network=t;return V}; zaT=function(V,t){V.J=t}; Tw=function(V,t,x,u,Z,P,K){V=V===void 0?-1:V;t=t===void 0?"":t;x=x===void 0?"":x;u=u===void 0?!1:u;Z=Z===void 0?"":Z;g.c.call(this);this.logSource=V;this.componentId=t;P?t=P:(V=new rR(V,"0"),V.componentId=t,g.y(this,V),x!==""&&(V.TQ=x),u&&(V.W=!0),Z&&gVq(V,Z),K&&Xxl(V,K),t=V.build());this.J=t}; BPh=function(V){this.J=V}; Wy=function(V,t,x){this.S=V;this.W=t;this.fields=x||[];this.J=new Map}; i8j=function(V){return V.fields.map(function(t){return t.fieldType})}; ki4=function(V){return V.fields.map(function(t){return t.fieldName})}; oZ=function(V,t){Wy.call(this,V,3,t)}; nQ=function(V,t){Wy.call(this,V,2,t)}; g.cy=function(V,t){this.type=V;this.currentTarget=this.target=t;this.defaultPrevented=this.S=!1}; Hy=function(V,t){g.cy.call(this,V?V.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.J=null;V&&this.init(V,t)}; Uk=function(V){return!(!V||!V[mPC])}; Q0h=function(V,t,x,u,Z){this.listener=V;this.proxy=null;this.src=t;this.type=x;this.capture=!!u;this.I5=Z;this.key=++YL0;this.removed=this.dW=!1}; DZ=function(V){V.removed=!0;V.listener=null;V.proxy=null;V.src=null;V.I5=null}; ez=function(V){this.src=V;this.listeners={};this.J=0}; g.dR=function(V,t){var x=t.type;x in V.listeners&&g.h_(V.listeners[x],t)&&(DZ(t),V.listeners[x].length==0&&(delete V.listeners[x],V.J--))}; CQ=function(V,t,x,u){for(var Z=0;Z1)));K=K.next)Z||(P=K);Z&&(x.J==0&&u==1?Z9h(x,t):(P?(u=P,u.next==x.W&&(x.W=u),u.next=u.next.next):Pxh(x),uuK(x,Z,3,t)))}V.N=null}else GB(V,3,t)}; Mz=function(V,t){V.S||V.J!=2&&V.J!=3||Zul(V);V.W?V.W.next=t:V.S=t;V.W=t}; PGL=function(V,t,x,u){var Z=vM(null,null,null);Z.J=new g.Ij(function(P,K){Z.N=t?function(R){try{var f=t.call(u,R);P(f)}catch(b){K(b)}}:P; Z.S=x?function(R){try{var f=x.call(u,R);f===void 0&&R instanceof XC?K(R):P(f)}catch(b){K(b)}}:K}); Z.J.N=V;Mz(V,Z);return Z.J}; GB=function(V,t,x){V.J==0&&(V===x&&(t=3,x=new TypeError("Promise cannot resolve to itself")),V.J=1,ha4(x,V.VZ6,V.PTD,V)||(V.L=x,V.J=t,V.N=null,Zul(V),t!=3||x instanceof XC||KSz(V,x)))}; ha4=function(V,t,x,u){if(V instanceof g.Ij)return u8K(V,t,x,u),!0;if(V)try{var Z=!!V.$goog_Thenable}catch(K){Z=!1}else Z=!1;if(Z)return V.then(t,x,u),!0;if(g.lL(V))try{var P=V.then;if(typeof P==="function")return qYh(V,P,t,x,u),!0}catch(K){return x.call(u,K),!0}return!1}; qYh=function(V,t,x,u,Z){function P(f){R||(R=!0,u.call(Z,f))} function K(f){R||(R=!0,x.call(Z,f))} var R=!1;try{t.call(V,K,P)}catch(f){P(f)}}; Zul=function(V){V.B||(V.B=!0,g.sb(V.sI,V))}; Pxh=function(V){var t=null;V.S&&(t=V.S,V.S=t.next,t.next=null);V.S||(V.W=null);return t}; uuK=function(V,t,x,u){if(x==3&&t.S&&!t.W)for(;V&&V.G;V=V.N)V.G=!1;if(t.J)t.J.N=null,R41(t,x,u);else try{t.W?t.N.call(t.context):R41(t,x,u)}catch(Z){f89.call(null,Z)}yVl(JV4,t)}; R41=function(V,t,x){t==2?V.N.call(V.context,x):V.S&&V.S.call(V.context,x)}; KSz=function(V,t){V.G=!0;g.sb(function(){V.G&&f89.call(null,t)})}; XC=function(V){s$.call(this,V)}; tA9=function(V,t,x){this.promise=V;this.resolve=t;this.reject=x}; g.zB=function(V,t){g.KX.call(this);this.k_=V||1;this.Rf=t||g.Ww;this.QQ=(0,g.ej)(this.FZS,this);this.Iy=g.JT()}; g.BM=function(V,t,x){if(typeof V==="function")x&&(V=(0,g.ej)(V,x));else if(V&&typeof V.handleEvent=="function")V=(0,g.ej)(V.handleEvent,V);else throw Error("Invalid listener argument");return Number(t)>2147483647?-1:g.Ww.setTimeout(V,t||0)}; mF=function(V,t){var x=null;return(new g.Ij(function(u,Z){x=g.BM(function(){u(t)},V); x==-1&&Z(Error("Failed to schedule timer."))})).q9(function(u){g.Ww.clearTimeout(x); throw u;})}; g.aj=function(V){g.c.call(this);this.L=V;this.W=0;this.N=100;this.G=!1;this.S=new Map;this.B=new Set;this.flushInterval=3E4;this.J=new g.zB(this.flushInterval);this.J.listen("tick",this.jq,!1,this);g.y(this,this.J)}; $8L=function(V){V.J.enabled||V.J.start();V.W++;V.W>=V.N&&V.jq()}; bu0=function(V,t){return V.B.has(t)?void 0:V.S.get(t)}; EEw=function(V){for(var t=0;t=0){var P=V[x].substring(0,u);Z=V[x].substring(u+1)}else P=V[x];t(P,Z?VR(Z):"")}}}; DY=function(V,t){if(!t)return V;var x=V.indexOf("#");x<0&&(x=V.length);var u=V.indexOf("?");if(u<0||u>x){u=x;var Z=""}else Z=V.substring(u+1,x);V=[V.slice(0,u),Z,V.slice(x)];x=V[1];V[1]=t?x?x+"&"+t:t:x;return V[0]+(V[1]?"?"+V[1]:"")+V[2]}; eO=function(V,t,x){if(Array.isArray(t))for(var u=0;u=0&&tx)Z=x;u+=t.length+1;return VR(V.slice(u,Z!==-1?Z:0))}; wj=function(V,t){for(var x=V.search(Mc9),u=0,Z,P=[];(Z=FSC(V,u,t,x))>=0;)P.push(V.substring(u,Z)),u=Math.min(V.indexOf("&",Z)+1||x,x);P.push(V.slice(u));return P.join("").replace(gE4,"$1")}; XOK=function(V,t,x){return Jj(wj(V,t),t,x)}; g.Vv=function(V){g.KX.call(this);this.headers=new Map;this.Us=V||null;this.N=!1;this.J=null;this.C="";this.S=0;this.W="";this.G=this.zU=this.X=this.wk=!1;this.Ij=0;this.B=null;this.cX="";this.L=!1}; BZq=function(V,t,x,u,Z,P,K){var R=new g.Vv;z44.push(R);t&&R.listen("complete",t);R.RY("ready",R.b5);P&&(R.Ij=Math.max(0,P));K&&(R.L=K);R.send(V,x,u,Z)}; YYs=function(V,t){V.N=!1;V.J&&(V.G=!0,V.J.abort(),V.G=!1);V.W=t;V.S=5;m8l(V);tn(V)}; m8l=function(V){V.wk||(V.wk=!0,V.dispatchEvent("complete"),V.dispatchEvent("error"))}; QGw=function(V){if(V.N&&typeof xS!="undefined")if(V.X&&g.uq(V)==4)setTimeout(V.uK.bind(V),0);else if(V.dispatchEvent("readystatechange"),V.isComplete()){V.getStatus();V.N=!1;try{if(Z7(V))V.dispatchEvent("complete"),V.dispatchEvent("success");else{V.S=6;try{var t=g.uq(V)>2?V.J.statusText:""}catch(x){t=""}V.W=t+" ["+V.getStatus()+"]";m8l(V)}}finally{tn(V)}}}; tn=function(V,t){if(V.J){V.B&&(clearTimeout(V.B),V.B=null);var x=V.J;V.J=null;t||V.dispatchEvent("ready");try{x.onreadystatechange=null}catch(u){}}}; Z7=function(V){var t=V.getStatus();a:switch(t){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var x=!0;break a;default:x=!1}if(!x){if(t=t===0)V=g.jO(1,String(V.C)),!V&&g.Ww.self&&g.Ww.self.location&&(V=g.Ww.self.location.protocol.slice(0,-1)),t=!a8C.test(V?V.toLowerCase():"");x=t}return x}; g.uq=function(V){return V.J?V.J.readyState:0}; g.P$=function(V){try{return V.J?V.J.responseText:""}catch(t){return""}}; g.K2=function(V){try{if(!V.J)return null;if("response"in V.J)return V.J.response;switch(V.cX){case "":case "text":return V.J.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in V.J)return V.J.mozResponseArrayBuffer}return null}catch(t){return null}}; g.rIz=function(V){var t={};V=(V.J&&g.uq(V)>=2?V.J.getAllResponseHeaders()||"":"").split("\r\n");for(var x=0;x>1,t),W$(V,V.length>>1)]}; Ke9=function(V){var t=g.G(Pcs(V,oN));V=t.next().value;t=t.next().value;return V.toString(16)+t.toString(16)}; qks=function(V,t){var x=Pcs(t);V=new Uint32Array(V.buffer);t=V[0];var u=g.G(x);x=u.next().value;u=u.next().value;for(var Z=1;Z>>8|K<<24,K+=P|0,K^=R+38293,P=P<<3|P>>>29,P^=K,f=f>>>8|f<<24,f+=R|0,f^=b+38293,R=R<<3|R>>>29,R^=f;P=[P,K];V[Z]^=P[0];Z+1=x?(globalThis.sessionStorage.removeItem(V),["e"]):["a",new Uint8Array(u.buffer,t+4)]}; n2=function(V,t,x){x=x===void 0?[]:x;this.maxItems=V;this.J=t===void 0?0:t;this.S=x}; $N0=function(V){var t=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!t)return new n2(V);var x=t.split(",");if(x.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new n2(V);t=x.slice(1);t.length===1&&t[0]===""&&(t=[]);x=Number(x[0]);return isNaN(x)||x<0||x>t.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new n2(V)):new n2(V,x,t)}; bQ1=function(V,t){this.logger=t;try{var x=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(u){x=!1}x&&(this.index=$N0(V))}; EP9=function(V,t,x,u,Z){var P=V.index?EB(V.logger,function(){return R50(V.index,Ke9(t),x,u,Z)},"W"):"u"; V.logger.D3(P)}; kw4=function(V,t,x){var u=g.G(V.index?EB(V.logger,function(){return fZK(Ke9(t),x)},"R"):["u"]),Z=u.next().value; u=u.next().value;V.logger.KZ(Z);return u}; sZL=function(V){function t(){x-=u;x-=Z;x^=Z>>>13;u-=Z;u-=x;u^=x<<8;Z-=x;Z-=u;Z^=u>>>13;x-=u;x-=Z;x^=Z>>>12;u-=Z;u-=x;u^=x<<16;Z-=x;Z-=u;Z^=u>>>5;x-=u;x-=Z;x^=Z>>>3;u-=Z;u-=x;u^=x<<10;Z-=x;Z-=u;Z^=u>>>15} V=iQC(V);for(var x=2654435769,u=2654435769,Z=314159265,P=V.length,K=P,R=0;K>=12;K-=12,R+=12)x+=c$(V,R),u+=c$(V,R+4),Z+=c$(V,R+8),t();Z+=P;switch(K){case 11:Z+=V[R+10]<<24;case 10:Z+=V[R+9]<<16;case 9:Z+=V[R+8]<<8;case 8:u+=V[R+7]<<24;case 7:u+=V[R+6]<<16;case 6:u+=V[R+5]<<8;case 5:u+=V[R+4];case 4:x+=V[R+3]<<24;case 3:x+=V[R+2]<<16;case 2:x+=V[R+1]<<8;case 1:x+=V[R+0]}t();return OQ9.toString(Z)}; iQC=function(V){for(var t=[],x=0;x>7,V.error.code]);u.set(x,4);return u}; Jn=function(){var V=0,t;return function(x){t||(t=new kS);var u=new C2(t,V,1),Z=lq(u,function(){return dz(x)},!0); u.dispose();V++;return Z}}; C2=function(V,t,x){yv.call(this,V);this.W=t;this.clientState=x;this.J="S";this.N="q"}; dz=function(V){return globalThis.TextEncoder?(new TextEncoder).encode(V):g.Si(V)}; hn=function(V,t,x){g.c.call(this);var u=this;this.logger=V;this.onError=t;this.state=x;this.B=0;this.N=void 0;this.addOnDisposeCallback(function(){u.J&&(u.J.dispose(),u.J=void 0)})}; A$1=function(V,t){t=t instanceof Fz?t:new Fz(5,"TVD:error",t);return V.reportError(t)}; wz=function(V,t,x){try{if(V.uD())throw new Fz(21,"BNT:disposed");if(!V.J&&V.N)throw V.N;var u,Z;return(Z=(u=Skl(V,t,x))!=null?u:Gwj(V,t,x))!=null?Z:IZK(V,t,x)}catch(P){if(!t.Cz)throw A$1(V,P);return vP0(V,x,P)}}; Skl=function(V,t,x){var u;return(u=V.J)==null?void 0:lq(u,function(){return Vf(V,t)},x,function(Z){var P; if(V.J instanceof H$&&((P=t.O8)==null?0:P.Ik))try{var K;(K=V.cache)==null||EP9(K,Vf(V,t),Z,t.O8.IV,V.L-120)}catch(R){V.reportError(new Fz(24,"ELX:write",R))}})}; Gwj=function(V,t,x){var u;if((u=t.O8)!=null&&u.Ix)try{var Z,P=(Z=V.cache)==null?void 0:kw4(Z,Vf(V,t),t.O8.IV);return P?x?EB(V.logger,function(){return g.pR(P,2)},"a"):P:void 0}catch(K){V.reportError(new Fz(23,"RXO:read",K))}}; IZK=function(V,t,x){var u={stack:[],error:void 0,hasError:!1};try{if(!t.a8)throw new Fz(29,"SDF:notready");return lq(Vn(u,new C2(V.logger,V.B,V.state)),function(){return Vf(V,t)},x)}catch(Z){u.error=Z,u.hasError=!0}finally{xj(u)}}; vP0=function(V,t,x){var u={stack:[],error:void 0,hasError:!1};try{var Z=A$1(V,x);return lq(Vn(u,new eN(V.logger,Z)),function(){return[]},t)}catch(P){u.error=P,u.hasError=!0}finally{xj(u)}}; Vf=function(V,t){return t.dA?t.dA:t.jM?EB(V.logger,function(){return t.dA=dz(t.jM)},"c"):[]}; xw=function(V){var t;hn.call(this,V.kU.Oj(),(t=V.onError)!=null?t:function(){},0); var x=this;this.W=0;this.S=new g.v$;g.y(this,this.logger);this.kU=V.kU;this.FO=V.FO;this.Jp=Object.assign({},Lej,V.Jp||{});V.X0&&(this.logger instanceof N5||this.logger instanceof iq)&&this.logger.fV(V.X0);this.BV=V.BV||!1;if(FeL(V)){var u=this.kU;this.G=function(){return JIK(u).catch(function(P){P=x.reportError(new Fz(20,"TRG:Disposed",P));x.N=P;var K;(K=x.J)==null||K.dispose();x.J=void 0;x.S.reject(P)})}; h40(u,function(){return void tO(x)}); u.C===2&&tO(this)}else this.G=V.bOj,tO(this);this.logger.Aq("o");var Z=new $S(this.logger,"o");this.S.promise.then(function(){return void Z.done()},function(){}); this.addOnDisposeCallback(function(){return void x.S.reject()})}; MzT=function(V,t){t=t instanceof Fz?t:t instanceof rj?new Fz(11,"EBH:Error",t):new Fz(12,"BSO:Unknown",t);return V.reportError(t)}; tO=function(V){var t,x,u,Z,P,K,R,f,b,E,k,O,N,p;return g.Q(function(I){switch(I.J){case 1:t=void 0;V.W++;x=new g.v$;V.kU instanceof Qv&&V.kU.W.push(x.promise);if(!V.BV){I.FX(2);break}u=new g.v$;setTimeout(function(){return void u.resolve()}); return g.m(I,u.promise,2);case 2:return g.AT(I,4),V.state=5,Z={},P=[],g.m(I,rz(V.kU.snapshot({jM:Z,bY:P}),V.Jp.qOP,function(){return Promise.reject(new Fz(15,"MDA:Timeout"))}),6); case 6:K=I.S;if(V.uD())throw new Fz(20,"MDA:Disposed");R=P[0];V.state=6;return g.m(I,rz(V.logger.aG("g",1,V.FO.hg(K)),V.Jp.o2,function(){return Promise.reject(new Fz(10,"BWB:Timeout"))}),7); case 7:f=I.S;if(V.uD())throw new Fz(20,"BWB:Disposed");V.state=7;t=EB(V.logger,function(){var L=gPL(V,f,x,R);L.S.promise.then(function(){return void V.G()}).catch(function(){}); return L},"i"); g.GK(I,5);break;case 4:b=g.I9(I);E=MzT(V,b);(k=t)==null||k.dispose();x.resolve();if(V.kU instanceof Qv&&V.W<2&&(b instanceof Fz?b.code!==20&&b.code!==10:b instanceof rj?b.code===13:1))return O=(1+Math.random()*.25)*(V.J?6E4:1E3),N=setTimeout(function(){return void V.G()},O),V.addOnDisposeCallback(function(){return void clearTimeout(N)}),I.return(); V.N=E;V.logger.eM(V.J?13:14);V.S.reject(V.N);return I.return();case 5:V.state=8,V.W=0,(p=V.J)==null||p.dispose(),V.J=t,V.S.resolve(),g.pl(I)}})}; gPL=function(V,t,x,u){var Z=EL(t,2)*1E3;if(Z<=0)throw new Fz(31,"TTM:Invalid");if(kV(t,4))return new D7(V.logger,kV(t,4),Z);if(!EL(t,3))return new UB(V.logger,gl(eV(t,1)),Z);if(!u)throw new Fz(4,"PMD:Undefined");u=u(gl(eV(t,1)));if(!(u instanceof Function))throw new Fz(16,"APF:Failed");V.L=Math.floor((Date.now()+Z)/1E3);V=new H$(V.logger,u,EL(t,3),Z);V.addOnDisposeCallback(function(){return void x.resolve()}); return V}; uW=function(V){this.Ss=XA(V)}; Xyj=function(V,t,x){this.vE=V;this.DA=t;this.metadata=x}; Zd=function(V,t){t=t===void 0?{}:t;this.il6=V;this.metadata=t;this.status=null}; PY=function(V,t,x,u,Z){this.name=V;this.methodType="unary";this.requestType=t;this.responseType=x;this.J=u;this.S=Z}; K_=function(V){this.Ss=XA(V)}; qA=function(V){this.Ss=XA(V)}; Rx=function(V){this.Ss=XA(V)}; f_=function(V,t){this.L=V.B6X;this.C=t;this.J=V.xhr;this.N=[];this.G=[];this.B=[];this.W=[];this.S=[];this.L&&z5C(this)}; Ykh=function(V,t){g.h$(V.J,"complete",function(){if(Z7(V.J)){var x=g.P$(V.J);if(t&&V.J.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");x=atob(x)}try{var u=V.C(x)}catch(K){$w(V,new rj(13,"Error when deserializing response data; error: "+K+(", response: "+x)));return}x=kWz(V.J.getStatus());bW(V,Ew(V));x==0?BR1(V,u):$w(V,new rj(x,"Xhr succeeded but the status code is not 200"))}else{x=g.P$(V.J);u=Ew(V);if(x){var Z=mNs(V,x);x=Z.code;var P=Z.details; Z=Z.metadata}else x=2,P="Rpc failed due to xhr error. uri: "+String(V.J.C)+", error code: "+V.J.S+", error: "+V.J.getLastError(),Z=u;bW(V,u);$w(V,new rj(x,P,Z))}})}; z5C=function(V){V.L.zf("data",function(t){if("1"in t){var x=t["1"];try{var u=V.C(x)}catch(Z){$w(V,new rj(13,"Error when deserializing response data; error: "+Z+(", response: "+x)))}u&&BR1(V,u)}if("2"in t)for(t=mNs(V,t["2"]),x=0;x-1&&V.splice(t,1)}; BR1=function(V,t){for(var x=0;x>4&15).toString(16)+(V&15).toString(16)}; Ft=function(V,t){this.S=this.J=null;this.N=V||null;this.W=!!t}; zC=function(V){V.J||(V.J=new Map,V.S=0,V.N&&Ub(V.N,function(t,x){V.add(VR(t),x)}))}; oP0=function(V,t){zC(V);t=BY(V,t);return V.J.has(t)}; g.nPj=function(V,t,x){V.remove(t);x.length>0&&(V.N=null,V.J.set(BY(V,t),g.tb(x)),V.S=V.S+x.length)}; BY=function(V,t){t=String(t);V.W&&(t=t.toLowerCase());return t}; r$L=function(V,t){t&&!V.W&&(zC(V),V.N=null,V.J.forEach(function(x,u){var Z=u.toLowerCase();u!=Z&&(this.remove(u),g.nPj(this,Z,x))},V)); V.W=t}; g.c$l=function(V){var t="";g.IG(V,function(x,u){t+=u;t+=":";t+=x;t+="\r\n"}); return t}; g.mW=function(V,t,x){if(g.YE(x))return V;x=g.c$l(x);if(typeof V==="string")return Jj(V,g.wH(t),x);g.gK(V,t,x);return V}; g.Yw=function(V){g.c.call(this);this.S=V;this.J={}}; y$0=function(V,t,x,u,Z,P){if(Array.isArray(x))for(var K=0;K0&&(t[Z]=u)},V); return t}; Njl=function(V){V=sI(V);var t=[];g.IG(V,function(x,u){u in Object.prototype||typeof x!="undefined"&&t.push([u,":",x].join(""))}); return t}; Aj8=function(V){kf(V,"od",pML);kf(V,"opac",Nq).J=!0;kf(V,"sbeos",Nq).J=!0;kf(V,"prf",Nq).J=!0;kf(V,"mwt",Nq).J=!0;kf(V,"iogeo",Nq)}; Sbz=function(){this.J=this.cJ=null}; pk=function(){}; Sh=function(){if(!AX())throw Error();}; AX=function(){return!(!GI||!GI.performance)}; IQ=function(V){return V?V.passive&&GBK()?V:V.capture||!1:!1}; vR=function(V,t,x,u){return V.addEventListener?(V.addEventListener(t,x,IQ(u)),!0):!1}; Lk=function(V){return V.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[V.visibilityState||V.webkitVisibilityState||V.mozVisibilityState||""]||0}; IYT=function(){}; vvT=function(){return(BU||mE)&&Yj?Yj.mobile:!FN()&&(ac("iPod")||ac("iPhone")||ac("Android")||ac("IEMobile"))}; FN=function(){return(BU||mE)&&Yj?!Yj.mobile&&(ac("iPad")||ac("Android")||ac("Silk")):ac("iPad")||ac("Android")&&!ac("Mobile")||ac("Silk")}; Mq=function(V){try{return!!V&&V.location.href!=null&&KEq(V,"foo")}catch(t){return!1}}; gk=function(V,t){if(V)for(var x in V)Object.prototype.hasOwnProperty.call(V,x)&&t(V[x],x,V)}; FF1=function(){var V=[];gk(LF1,function(t){V.push(t)}); return V}; MO1=function(V){var t,x;return(x=(t=/https?:\/\/[^\/]+/.exec(V))==null?void 0:t[0])!=null?x:""}; z28=function(){var V=gv4("IFRAME"),t={};g.EA(XMT(),function(x){V.sandbox&&V.sandbox.supports&&V.sandbox.supports(x)&&(t[x]=!0)}); return t}; gv4=function(V,t){t=t===void 0?document:t;return t.createElement(String(V).toLowerCase())}; Bjj=function(V){for(var t=V;V&&V!=V.parent;)V=V.parent,Mq(V)&&(t=V);return t}; aYL=function(V){V=V||XN();for(var t=new mzK(g.Ww.location.href,!1),x=null,u=V.length-1,Z=u;Z>=0;--Z){var P=V[Z];!x&&YbC.test(P.url)&&(x=P);if(P.url&&!P.eX){t=P;break}}Z=null;P=V.length&&V[u].url;t.depth!=0&&P&&(Z=V[u]);return new Qjw(t,Z,x)}; XN=function(){var V=g.Ww,t=[],x=null;do{var u=V;if(Mq(u)){var Z=u.location.href;x=u.document&&u.document.referrer||null}else Z=x,x=null;t.push(new mzK(Z||""));try{V=u.parent}catch(P){V=null}}while(V&&u!=V);u=0;for(V=t.length-1;u<=V;++u)t[u].depth=V-u;u=g.Ww;if(u.location&&u.location.ancestorOrigins&&u.location.ancestorOrigins.length==t.length-1)for(V=1;Vt&&(t=x.length);return 3997-t-V.N.length-1}; Yf=function(V,t){this.J=V;this.depth=t}; ovl=function(){function V(R,f){return R==null?f:R} var t=XN(),x=Math.max(t.length-1,0),u=aYL(t);t=u.J;var Z=u.S,P=u.N,K=[];P&&K.push(new Yf([P.url,P.eX?2:0],V(P.depth,1)));Z&&Z!=P&&K.push(new Yf([Z.url,2],0));t.url&&t!=P&&K.push(new Yf([t.url,0],V(t.depth,x)));u=g.QV(K,function(R,f){return K.slice(0,K.length-f)}); !t.url||(P||Z)&&t!=P||(Z=MO1(t.url))&&u.push([new Yf([Z,1],V(t.depth,x))]);u.push([]);return g.QV(u,function(R){return WFh(x,R)})}; WFh=function(V,t){g.aQ(t,function(Z){return Z.depth>=0}); var x=rk(t,function(Z,P){return Math.max(Z,P.depth)},-1),u=Zrh(x+2); u[0]=V;g.EA(t,function(Z){return u[Z.depth+1]=Z.J}); return u}; nvC=function(){var V=V===void 0?ovl():V;return V.map(function(t){return m9(t)})}; cjL=function(V){var t=!1;t=t===void 0?!1:t;GI.google_image_requests||(GI.google_image_requests=[]);var x=gv4("IMG",GI.document);t&&(x.attributionSrc="");x.src=V;GI.google_image_requests.push(x)}; TI=function(V){var t="fJ";if(V.fJ&&V.hasOwnProperty(t))return V.fJ;var x=new V;V.fJ=x;V.hasOwnProperty(t);return x}; WR=function(){this.S=new IYT;this.J=AX()?new Sh:new pk}; yj0=function(){oQ();var V=GI.document;return!!(V&&V.body&&V.body.getBoundingClientRect&&typeof GI.setInterval==="function"&&typeof GI.clearInterval==="function"&&typeof GI.setTimeout==="function"&&typeof GI.clearTimeout==="function")}; jjL=function(){oQ();return nvC()}; lYq=function(){}; oQ=function(){var V=TI(lYq);if(!V.J){if(!GI)throw Error("Context has not been set and window is undefined.");V.J=TI(WR)}return V.J}; nk=function(V){this.Ss=XA(V)}; HXC=function(V){this.N=V;this.J=-1;this.S=this.W=0}; cR=function(V,t){return function(){var x=g.Xq.apply(0,arguments);if(V.J>-1)return t.apply(null,g.v(x));try{return V.J=V.N.J.now(),t.apply(null,g.v(x))}finally{V.W+=V.N.J.now()-V.J,V.J=-1,V.S+=1}}}; UzL=function(V,t){this.S=V;this.N=t;this.J=new HXC(V)}; Dzz=function(){this.J={}}; dzT=function(){var V=yV().flags,t=e2L;V=V.J[t.key];if(t.valueType==="proto"){try{var x=JSON.parse(V);if(Array.isArray(x))return x}catch(u){}return t.defaultValue}return typeof V===typeof t.defaultValue?V:t.defaultValue}; wMh=function(){this.N=void 0;this.S=this.B=0;this.G=-1;this.EZ=new EI;kf(this.EZ,"mv",CAK).J=!0;kf(this.EZ,"omid",Nq);kf(this.EZ,"epoh",Nq).J=!0;kf(this.EZ,"epph",Nq).J=!0;kf(this.EZ,"umt",Nq).J=!0;kf(this.EZ,"phel",Nq).J=!0;kf(this.EZ,"phell",Nq).J=!0;kf(this.EZ,"oseid",JjC).J=!0;var V=this.EZ;V.J.sloi||(V.J.sloi=new $f);V.J.sloi.J=!0;kf(this.EZ,"mm",jh);kf(this.EZ,"ovms",h2h).J=!0;kf(this.EZ,"xdi",Nq).J=!0;kf(this.EZ,"amp",Nq).J=!0;kf(this.EZ,"prf",Nq).J=!0;kf(this.EZ,"gtx",Nq).J=!0;kf(this.EZ, "mvp_lv",Nq).J=!0;kf(this.EZ,"ssmol",Nq).J=!0;kf(this.EZ,"fmd",Nq).J=!0;kf(this.EZ,"gen204simple",Nq);this.J=new UzL(oQ(),this.EZ);this.W=!1;this.flags=new Dzz}; yV=function(){return TI(wMh)}; VNw=function(V,t,x,u){if(Math.random()<(u||V.J))try{if(x instanceof zI)var Z=x;else Z=new zI,gk(x,function(K,R){var f=Z,b=f.W++;K=BR(R,K);f.J.push(b);f.S[b]=K}); var P=Z.dL(V.S,"pagead2.googlesyndication.com","/pagead/gen_204?id="+t+"&");P&&(oQ(),cjL(P))}catch(K){}}; tN0=function(V,t,x){x=x===void 0?{}:x;this.error=V;this.context=t.context;this.msg=t.message||"";this.id=t.id||"jserror";this.meta=x}; x5s=function(){var V=V===void 0?g.Ww:V;return(V=V.performance)&&V.now&&V.timing?Math.floor(V.now()+V.timing.navigationStart):g.JT()}; uzL=function(){var V=V===void 0?g.Ww:V;return(V=V.performance)&&V.now?V.now():null}; Z24=function(V,t,x){this.label=V;this.type=t;this.value=x;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; HR=function(){var V=window;this.events=[];this.S=V||g.Ww;var t=null;V&&(V.google_js_reporting_queue=V.google_js_reporting_queue||[],this.events=V.google_js_reporting_queue,t=V.google_measure_js_timing);this.J=l5()||(t!=null?t:Math.random()<1)}; Pqq=function(V){V&&UI&&l5()&&(UI.clearMarks("goog_"+V.label+"_"+V.uniqueId+"_start"),UI.clearMarks("goog_"+V.label+"_"+V.uniqueId+"_end"))}; K0s=function(){var V=Dy;this.J=eh;this.Hb="jserror";this.At=!0;this.Ci=null;this.S=this.A4;this.DT=V===void 0?null:V}; qBT=function(V,t,x){var u=dk;return cR(yV().J.J,function(){try{if(u.DT&&u.DT.J){var Z=u.DT.start(V.toString(),3);var P=t();u.DT.end(Z)}else P=t()}catch(R){var K=u.At;try{Pqq(Z),K=u.S(V,new Ck(JX(R)),void 0,x)}catch(f){u.A4(217,f)}if(!K)throw R;}return P})()}; hX=function(V,t,x,u){return cR(yV().J.J,function(){var Z=g.Xq.apply(0,arguments);return qBT(V,function(){return t.apply(x,Z)},u)})}; JX=function(V){var t=V.toString();V.name&&t.indexOf(V.name)==-1&&(t+=": "+V.name);V.message&&t.indexOf(V.message)==-1&&(t+=": "+V.message);if(V.stack)a:{V=V.stack;var x=t;try{V.indexOf(x)==-1&&(V=x+"\n"+V);for(var u;V!=u;)u=V,V=V.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");t=V.replace(/\n */g,"\n");break a}catch(Z){t=x;break a}t=void 0}return t}; Ck=function(V){tN0.call(this,Error(V),{message:V})}; RUT=function(){GI&&typeof GI.google_measure_js_timing!="undefined"&&(GI.google_measure_js_timing||Dy.disable())}; f7L=function(V){dk.Ci=function(t){g.EA(V,function(x){x(t)})}}; $5s=function(V,t){return qBT(V,t)}; wk=function(V,t){return hX(V,t)}; VC=function(V,t,x,u){dk.A4(V,t,x,u)}; to=function(){return Date.now()-b2T}; ES0=function(){var V=yV().N,t=xg>=0?to()-xg:-1,x=ub?to()-Z5:-1,u=P1>=0?to()-P1:-1;if(V==947190542)return 100;if(V==79463069)return 200;V=[2E3,4E3];var Z=[250,500,1E3];VC(637,Error(),.001);var P=t;x!=-1&&x1500&&u<4E3?500:K}; KI=function(V,t,x,u){this.top=V;this.right=t;this.bottom=x;this.left=u}; $g=function(V){return V.right-V.left}; bb=function(V,t){return V==t?!0:V&&t?V.top==t.top&&V.right==t.right&&V.bottom==t.bottom&&V.left==t.left:!1}; ET=function(V,t,x){t instanceof g.N8?(V.left+=t.x,V.right+=t.x,V.top+=t.y,V.bottom+=t.y):(V.left+=t,V.right+=t,typeof x==="number"&&(V.top+=x,V.bottom+=x));return V}; kg=function(V,t,x){var u=new KI(0,0,0,0);this.time=V;this.volume=null;this.N=t;this.J=u;this.S=x}; ib=function(V,t,x,u,Z,P,K,R){this.W=V;this.L=t;this.N=x;this.B=u;this.J=Z;this.G=P;this.S=K;this.C=R}; i2q=function(V){var t=V!==V.top,x=V.top===Bjj(V),u=-1,Z=0;if(t&&x&&V.top.mraid){u=3;var P=V.top.mraid}else u=(P=V.mraid)?t?x?2:1:0:-1;P&&(P.IS_GMA_SDK||(Z=2),UM4(klK,function(K){return typeof P[K]==="function"})||(Z=1)); return{qn:P,compatibility:Z,pGS:u}}; O2l=function(){var V=window.document;return V&&typeof V.elementFromPoint==="function"}; sNw=function(V,t,x){V&&t!==null&&t!=t.top&&(t=t.top);try{return(x===void 0?0:x)?(new g.AI(t.innerWidth,t.innerHeight)).round():qL4(t||window).round()}catch(u){return new g.AI(-12245933,-12245933)}}; OT=function(V,t,x){try{V&&(t=t.top);var u=sNw(V,t,x),Z=u.height,P=u.width;if(P===-12245933)return new KI(P,P,P,P);var K=f34(lG(t.document).J),R=K.x,f=K.y;return new KI(f,R+P,f+Z,R)}catch(b){return new KI(-12245933,-12245933,-12245933,-12245933)}}; g.sT=function(V,t,x,u){this.left=V;this.top=t;this.width=x;this.height=u}; Ns=function(V,t){return V==t?!0:V&&t?V.left==t.left&&V.width==t.width&&V.top==t.top&&V.height==t.height:!1}; g.Ao=function(V,t,x){if(typeof t==="string")(t=pI(V,t))&&(V.style[t]=x);else for(var u in t){x=V;var Z=t[u],P=pI(x,u);P&&(x.style[P]=Z)}}; pI=function(V,t){var x=Nzs[t];if(!x){var u=o_q(t);x=u;V.style[u]===void 0&&(u=(g.wZ?"Webkit":S3?"Moz":null)+ceK(u),V.style[u]!==void 0&&(x=u));Nzs[t]=x}return x}; g.Gh=function(V,t){var x=V.style[o_q(t)];return typeof x!=="undefined"?x:V.style[pI(V,t)]||""}; Io=function(V,t){var x=jc(V);return x.defaultView&&x.defaultView.getComputedStyle&&(V=x.defaultView.getComputedStyle(V,null))?V[t]||V.getPropertyValue(t)||"":""}; v1=function(V,t){return Io(V,t)||(V.currentStyle?V.currentStyle[t]:null)||V.style&&V.style[t]}; g.zh=function(V,t,x){if(t instanceof g.N8){var u=t.x;t=t.y}else u=t,t=x;V.style.left=g.LI(u,!1);V.style.top=g.LI(t,!1)}; B1=function(V){try{return V.getBoundingClientRect()}catch(t){return{left:0,top:0,right:0,bottom:0}}}; p$j=function(V){var t=jc(V),x=v1(V,"position"),u=x=="fixed"||x=="absolute";for(V=V.parentNode;V&&V!=t;V=V.parentNode)if(V.nodeType==11&&V.host&&(V=V.host),x=v1(V,"position"),u=u&&x=="static"&&V!=t.documentElement&&V!=t.body,!u&&(V.scrollWidth>V.clientWidth||V.scrollHeight>V.clientHeight||x=="fixed"||x=="absolute"||x=="relative"))return V;return null}; g.mg=function(V){var t=jc(V),x=new g.N8(0,0);if(V==(t?jc(t):document).documentElement)return x;V=B1(V);t=f34(lG(t).J);x.x=V.left+t.x;x.y=V.top+t.y;return x}; SBC=function(V,t){var x=new g.N8(0,0),u=Vo(jc(V));if(!KEq(u,"parent"))return x;do{var Z=u==t?g.mg(V):An0(V);x.x+=Z.x;x.y+=Z.y}while(u&&u!=t&&u!=u.parent&&(V=u.frameElement)&&(u=u.parent));return x}; g.Yg=function(V,t){V=Gll(V);t=Gll(t);return new g.N8(V.x-t.x,V.y-t.y)}; An0=function(V){V=B1(V);return new g.N8(V.left,V.top)}; Gll=function(V){if(V.nodeType==1)return An0(V);V=V.changedTouches?V.changedTouches[0]:V;return new g.N8(V.clientX,V.clientY)}; g.QC=function(V,t,x){if(t instanceof g.AI)x=t.height,t=t.width;else if(x==void 0)throw Error("missing height argument");V.style.width=g.LI(t,!0);V.style.height=g.LI(x,!0)}; g.LI=function(V,t){typeof V=="number"&&(V=(t?Math.round(V):V)+"px");return V}; g.ao=function(V){var t=I7C;if(v1(V,"display")!="none")return t(V);var x=V.style,u=x.display,Z=x.visibility,P=x.position;x.visibility="hidden";x.position="absolute";x.display="inline";V=t(V);x.display=u;x.position=P;x.visibility=Z;return V}; I7C=function(V){var t=V.offsetWidth,x=V.offsetHeight,u=g.wZ&&!t&&!x;return(t===void 0||u)&&V.getBoundingClientRect?(V=B1(V),new g.AI(V.right-V.left,V.bottom-V.top)):new g.AI(t,x)}; g.rJ=function(V,t){V.style.display=t?"":"none"}; Th=function(V,t){t=Math.pow(10,t);return Math.floor(V*t)/t}; vSl=function(V){return new KI(V.top,V.right,V.bottom,V.left)}; L0T=function(V){var t=V.top||0,x=V.left||0;return new KI(t,x+(V.width||0),t+(V.height||0),x)}; W1=function(V){return V!=null&&V>=0&&V<=1}; F08=function(){var V=g.zY();return V?oo("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(t){return FF(V,t)})||FF(V,"OMI/")&&!FF(V,"XiaoMi/")?!0:FF(V,"Presto")&&FF(V,"Linux")&&!FF(V,"X11")&&!FF(V,"Android")&&!FF(V,"Mobi"):!1}; MN1=function(){this.N=!Mq(GI.top);this.isMobileDevice=FN()||vvT();var V=XN();this.domain=V.length>0&&V[V.length-1]!=null&&V[V.length-1].url!=null?g.lA(V[V.length-1].url)||"":"";this.J=new KI(0,0,0,0);this.W=new g.AI(0,0);this.G=new g.AI(0,0);this.L=new KI(0,0,0,0);this.frameOffset=new g.N8(0,0);this.B=0;this.C=!1;this.S=!(!GI||!i2q(GI).qn);this.update(GI)}; gS4=function(V,t){t&&t.screen&&(V.W=new g.AI(t.screen.width,t.screen.height))}; X$C=function(V,t){a:{var x=V.J?new g.AI($g(V.J),V.J.getHeight()):new g.AI(0,0);t=t===void 0?GI:t;t!==null&&t!=t.top&&(t=t.top);var u=0,Z=0;try{var P=t.document,K=P.body,R=P.documentElement;if(P.compatMode=="CSS1Compat"&&R.scrollHeight)u=R.scrollHeight!=x.height?R.scrollHeight:R.offsetHeight,Z=R.scrollWidth!=x.width?R.scrollWidth:R.offsetWidth;else{var f=R.scrollHeight,b=R.scrollWidth,E=R.offsetHeight,k=R.offsetWidth;R.clientHeight!=E&&(f=K.scrollHeight,b=K.scrollWidth,E=K.offsetHeight,k=K.offsetWidth); f>x.height?f>E?(u=f,Z=b):(u=E,Z=k):f0||V.C)return!0;V=oQ().S.isVisible();var t=Lk(c1)===0;return V||t}; nI=function(){return TI(MN1)}; j3=function(V){this.N=V;this.S=0;this.J=null}; lb=function(V,t,x){this.N=V;this.L1=x===void 0?"na":x;this.G=[];this.isInitialized=!1;this.W=new kg(-1,!0,this);this.J=this;this.C=t;this.Ij=this.X=!1;this.Us="uk";this.cX=!1;this.B=!0}; H1=function(V,t){g.Cr(V.G,t)||(V.G.push(t),t.nQ(V.J),t.OH(V.W),t.Hv()&&(V.X=!0))}; zUq=function(V){V=V.J;V.td();V.Um();var t=nI();t.L=OT(!1,V.N,t.isMobileDevice);X$C(nI(),V.N);V.W.J=V.s$()}; BzT=function(V){V.X=V.G.length?oo(V.G,function(t){return t.Hv()}):!1}; m50=function(V){var t=g.tb(V.G);g.EA(t,function(x){x.OH(V.W)})}; UT=function(V){var t=g.tb(V.G);g.EA(t,function(x){x.nQ(V.J)}); V.J!=V||m50(V)}; D5=function(V,t,x,u){this.element=V;this.J=new KI(0,0,0,0);this.N=null;this.B=new KI(0,0,0,0);this.S=t;this.EZ=x;this.cX=u;this.zU=!1;this.timestamp=-1;this.X=new ib(t.W,this.element,this.J,new KI(0,0,0,0),0,0,to(),0);this.G=void 0}; YB1=function(V,t){return V.G?new KI(Math.max(t.top+V.G.top,t.top),Math.min(t.left+V.G.right,t.right),Math.min(t.top+V.G.bottom,t.bottom),Math.max(t.left+V.G.left,t.left)):t.clone()}; e3=function(V){this.G=!1;this.J=V;this.W=function(){}}; QN9=function(V,t,x){this.N=x===void 0?0:x;this.S=V;this.J=t==null?"":t}; a7l=function(V){switch(Math.trunc(V.N)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; rn4=function(V,t){return V.Nt.N?!1:V.St.S?!1:typeof V.Jtypeof t.J?!1:V.J0?u[x]-u[x-1]:u[x]})}; Pa=function(){this.S=new wJ;this.L1=this.Es=0;this.xw=new ho;this.wk=this.L=-1;this.HX=1E3;this.QC=new wJ([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Us=this.zU=-1}; K3=function(V,t){return U5w(V.S,t===void 0?!0:t)}; qr=function(V,t,x,u){var Z=Z===void 0?!1:Z;x=hX(u,x);vR(V,t,x,{capture:Z})}; f3=function(V,t){t=R1(t);return t===0?0:R1(V)/t}; R1=function(V){return Math.max(V.bottom-V.top,0)*Math.max(V.right-V.left,0)}; d54=function(V,t){if(!V||!t)return!1;for(var x=0;V!==null&&x++<100;){if(V===t)return!0;try{if(V=V.parentElement||V){var u=jc(V),Z=u&&Vo(u),P=Z&&Z.frameElement;P&&(V=P)}}catch(K){break}}return!1}; Cqq=function(V,t,x){if(!V||!t)return!1;t=ET(V.clone(),-t.left,-t.top);V=(t.left+t.right)/2;t=(t.top+t.bottom)/2;Mq(window.top)&&window.top&&window.top.document&&(window=window.top);if(!O2l())return!1;V=window.document.elementFromPoint(V,t);if(!V)return!1;t=(t=(t=jc(x))&&t.defaultView&&t.defaultView.frameElement)&&d54(t,V);var u=V===x;V=!u&&V&&bc(V,function(Z){return Z===x}); return!(t||u||V)}; Jnh=function(V,t,x,u){return nI().N?!1:$g(V)<=0||V.getHeight()<=0?!0:x&&u?$5s(208,function(){return Cqq(V,t,x)}):!1}; $s=function(V,t,x){g.c.call(this);this.position=hU1.clone();this.lG=this.y3();this.Tu=-2;this.timeCreated=Date.now();this.PS=-1;this.TW=t;this.bG=null;this.A_=!1;this.uB=null;this.opacity=-1;this.requestSource=x;this.B1w=!1;this.VF=function(){}; this.kO=function(){}; this.FB=new Sbz;this.FB.cJ=V;this.FB.J=V;this.gS=!1;this.zX={r$:null,DK:null};this.Sk=!0;this.Og=null;this.fT=this.xPw=!1;yV().B++;this.Ra=this.Oc();this.BS=-1;this.yc=null;this.hasCompleted=this.PDP=!1;this.EZ=new EI;Aj8(this.EZ);w$K(this);this.requestSource==1?i5(this.EZ,"od",1):i5(this.EZ,"od",0)}; w$K=function(V){V=V.FB.cJ;var t;if(t=V&&V.getAttribute)t=/-[a-z]/.test("googleAvInapp")?!1:V9T&&V.dataset?"googleAvInapp"in V.dataset:V.hasAttribute?V.hasAttribute("data-"+n_0()):!!V.getAttribute("data-"+n_0());t&&(nI().S=!0)}; bZ=function(V,t){t!=V.fT&&(V.fT=t,V=nI(),t?V.B++:V.B>0&&V.B--)}; t9q=function(V,t){if(V.yc){if(t.getName()===V.yc.getName())return;V.yc.dispose();V.yc=null}t=t.create(V.FB.J,V.EZ,V.Hv());if(t=t!=null&&t.observe()?t:null)V.yc=t}; xAT=function(V,t,x){if(!V.bG||V.TW==-1||t.S===-1||V.bG.S===-1)return 0;V=t.S-V.bG.S;return V>x?0:V}; utC=function(V,t,x){if(V.yc){V.yc.UH();var u=V.yc.X,Z=u.W,P=Z.J;if(u.B!=null){var K=u.N;V.uB=new g.N8(K.left-P.left,K.top-P.top)}P=V.XS()?Math.max(u.J,u.G):u.J;K={};Z.volume!==null&&(K.volume=Z.volume);Z=V.GZ(u);V.bG=u;V.ZS(P,t,x,!1,K,Z,u.C)}}; Z_9=function(V){if(V.A_&&V.Og){var t=OI(V.EZ,"od")==1,x=nI().J,u=V.Og,Z=V.yc?V.yc.getName():"ns",P=V.uB,K=new g.AI($g(x),x.getHeight());x=V.XS();V={S8P:Z,uB:P,q8j:K,XS:x,KR:V.Ra.KR,MZS:t};if(t=u.S){t.UH();Z=t.X;P=Z.W.J;var R=K=null;Z.B!=null&&P&&(K=Z.N,K=new g.N8(K.left-P.left,K.top-P.top),R=new g.AI(P.right-P.left,P.bottom-P.top));Z=x?Math.max(Z.J,Z.G):Z.J;x={S8P:t.getName(),uB:K,q8j:R,XS:x,MZS:!1,KR:Z}}else x=null;x&&jN0(u,V,x)}}; PWz=function(V,t,x){t&&(V.VF=t);x&&(V.kO=x)}; g.ER=function(){}; g.ks=function(V){return{value:V,done:!1}}; KWj=function(){this.W=this.J=this.N=this.S=this.G=0}; qwl=function(V){var t={};var x=g.JT()-V.G;t=(t.ptlt=x,t);(x=V.S)&&(t.pnk=x);(x=V.N)&&(t.pnc=x);(x=V.W)&&(t.pnmm=x);(V=V.J)&&(t.pns=V);return t}; Rij=function(){qq.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; iZ=function(V){return W1(V.volume)&&V.volume>0}; OR=function(V,t,x,u){x=x===void 0?!0:x;u=u===void 0?function(){return!0}:u; return function(Z){var P=Z[V];if(Array.isArray(P)&&u(Z))return fdK(P,t,x)}}; sR=function(V,t){return function(x){return t(x)?x[V]:void 0}}; $Al=function(V){return function(t){for(var x=0;x0?P[Z-1]+1:0,u+1).reduce(function(K,R){return K+R},0)})}; b_9=function(){this.S=this.J=""}; EwK=function(){}; p3=function(V,t){var x={};if(V!==void 0)if(t!=null)for(var u in t){var Z=t[u];u in Object.prototype||Z!=null&&(x[u]=typeof Z==="function"?Z(V):V[Z])}else g.WO(x,V);return Jo(CI(new dJ,x))}; kCL=function(){var V={};this.S=(V.vs=[1,0],V.vw=[0,1],V.am=[2,2],V.a=[4,4],V.f=[8,8],V.bm=[16,16],V.b=[32,32],V.avw=[0,64],V.avs=[64,0],V.pv=[256,256],V.gdr=[0,512],V.p=[0,1024],V.r=[0,2048],V.m=[0,4096],V.um=[0,8192],V.ef=[0,16384],V.s=[0,32768],V.pmx=[0,16777216],V.mut=[33554432,33554432],V.umutb=[67108864,67108864],V.tvoff=[134217728,134217728],V);this.J={};for(var t in this.S)this.S[t][1]>0&&(this.J[t]=0);this.N=0}; AR=function(V,t){var x=V.S[t],u=x[1];V.N+=x[0];u>0&&V.J[t]==0&&(V.J[t]=1)}; i_K=function(V){var t=g.Xu(V.S),x=0,u;for(u in V.J)g.Cr(t,u)&&V.J[u]==1&&(x+=V.S[u][1],V.J[u]=2);return x}; O_s=function(V){var t=0,x;for(x in V.J){var u=V.J[x];if(u==1||u==2)t+=V.S[x][1]}return t}; SU=function(){this.J=this.S=0}; GX=function(){Pa.call(this);this.N=new ho;this.dk=this.X=this.cX=0;this.C=-1;this.gk=new ho;this.G=new ho;this.J=new wJ;this.B=this.W=-1;this.Ij=new ho;this.HX=2E3;this.BX=new SU;this.yC=new SU;this.DS=new SU}; I1=function(V,t,x){var u=V.dk;ub||x||V.C==-1||(u+=t-V.C);return u}; sxs=function(){this.N=!1}; va=function(V,t){this.N=!1;this.W=V;this.X=t;this.G=0}; L3=function(V,t){va.call(this,V,t);this.L=[]}; NKL=function(){}; FR=function(){}; Mr=function(V,t,x,u){D5.call(this,V,t,x,u)}; gm=function(V,t,x){D5.call(this,null,V,t,x);this.C=V.isActive();this.L=0}; zX=function(V){return[V.top,V.left,V.bottom,V.right]}; Ba=function(V,t,x,u,Z,P){P=P===void 0?new FR:P;$s.call(this,t,x,u);this.JD=Z;this.HB=0;this.ip={};this.Cl=new kCL;this.cV={};this.SK="";this.DS=null;this.w6=!1;this.J=[];this.Jz=P.S();this.B=P.N();this.W=null;this.N=-1;this.L1=this.X=void 0;this.wk=this.Ij=0;this.Us=-1;this.HX=this.yC=!1;this.cX=this.C=this.S=this.t3=this.Tc=0;new wJ;this.BX=this.dk=0;this.xw=-1;this.xe=0;this.L=g.pX;this.zU=[this.y3()];this.P$=2;this.dK={};this.dK.pause="p";this.dK.resume="r";this.dK.skip="s";this.dK.mute="m";this.dK.unmute= "um";this.dK.exitfullscreen="ef";this.G=null;this.QC=this.gk=!1;this.Fc=Math.floor(Date.now()/1E3-1704067200);this.Es=0}; mV=function(V){V.hasCompleted=!0;V.xe!=0&&(V.xe=3)}; Ys=function(V){return V===void 0?V:Number(V)?Th(V,3):0}; Qd=function(V,t){return V.zU[t!=null&&tMath.max(1E4,V.N/3)?0:t);var x=V.L(V)||{};x=x.currentTime!==void 0?x.currentTime:V.Ij;var u=x-V.Ij,Z=0;u>=0?(V.wk+=t,V.BX+=Math.max(t-u,0),Z=Math.min(u,V.wk)):V.dk+=Math.abs(u);u!=0&&(V.wk=0);V.xw==-1&&u>0&&(V.xw=P1>=0?to()-P1:-1);V.Ij=x;return Z}; Swq=function(V,t){oo(V.B,function(x){return x.W==t.W})||V.B.push(t)}; GCC=function(V){var t=xs(V.G9().J,1);return a1(V,t)}; a1=function(V,t,x){return t>=15E3?!0:V.yC?(x===void 0?0:x)?!0:V.N>0?t>=V.N/2:V.Us>0?t>=V.Us:!1:!1}; IdC=function(V){var t=Th(V.Ra.KR,2),x=V.Cl.N,u=V.Ra,Z=Qd(V),P=Ys(Z.W),K=Ys(Z.B),R=Ys(u.volume),f=Th(Z.L,2),b=Th(Z.wk,2),E=Th(u.KR,2),k=Th(Z.zU,2),O=Th(Z.Us,2);u=Th(u.HQ,2);var N=V.jc().clone().round();V=V.yc&&V.yc.N?(V.yc?V.yc.N:null).clone().round():null;Z=K3(Z,!1);return{OJw:t,P7:x,eJ:P,MS:K,ev:R,RK:f,Hg:b,KR:E,SF:k,Op:O,HQ:u,position:N,Fr:V,iB:Z}}; LWC=function(V,t){vw8(V.J,t,function(){return{OJw:0,P7:void 0,eJ:-1,MS:-1,ev:-1,RK:-1,Hg:-1,KR:-1,SF:-1,Op:-1,HQ:-1,position:void 0,Fr:void 0,iB:[]}}); V.J[t]=IdC(V)}; vw8=function(V,t,x){for(var u=V.length;u0?1:0;k.atos= Vd(b.J);k.ssb=Vd(b.QC,!1);k.amtos=U5w(b.J,!1);k.uac=V.Tc;k.vpt=b.N.J;E=="nio"&&(k.nio=1,k.avms="nio");k.gmm="4";k.gdr=a1(V,b.N.J,!0)?1:0;k.efpf=V.P$;if(E=="gsv"||E=="nis")E=V.yc,E.L>0&&(k.nnut=E.L);k.tcm=pYw(V);k.nmt=V.dk;k.bt=V.BX;k.pst=V.xw;k.vpaid=V.X;k.dur=V.N;k.vmtime=V.Ij;k.is=V.Cl.N;V.J.length>=1&&(k.i0=V.J[0].P7,k.a0=[V.J[0].ev],k.c0=[V.J[0].KR],k.ss0=[V.J[0].HQ],E=V.J[0].position,P=V.J[0].Fr,k.p0=E?zX(E):void 0,E&&P&&!bb(P,E)&&(k.cp0=zX(P)));V.J.length>=2&&(k.i1=V.J[1].P7,k.a1=Wa(V.J[1].eJ, V.J[1].ev,V.J[1].MS),k.c1=Wa(V.J[1].RK,V.J[1].KR,V.J[1].Hg),k.ss1=Wa(V.J[1].SF,V.J[1].HQ,V.J[1].Op),E=V.J[1].position,P=V.J[1].Fr,k.p1=E?zX(E):void 0,E&&P&&!bb(P,E)&&(k.cp1=zX(P)),k.mtos1=V.J[1].iB);V.J.length>=3&&(k.i2=V.J[2].P7,k.a2=Wa(V.J[2].eJ,V.J[2].ev,V.J[2].MS),k.c2=Wa(V.J[2].RK,V.J[2].KR,V.J[2].Hg),k.ss2=Wa(V.J[2].SF,V.J[2].HQ,V.J[2].Op),E=V.J[2].position,P=V.J[2].Fr,k.p2=E?zX(E):void 0,E&&P&&!bb(P,E)&&(k.cp2=zX(P)),k.mtos2=V.J[2].iB);V.J.length>=4&&(k.i3=V.J[3].P7,k.a3=Wa(V.J[3].eJ,V.J[3].ev, V.J[3].MS),k.c3=Wa(V.J[3].RK,V.J[3].KR,V.J[3].Hg),k.ss3=Wa(V.J[3].SF,V.J[3].HQ,V.J[3].Op),E=V.J[3].position,P=V.J[3].Fr,k.p3=E?zX(E):void 0,E&&P&&!bb(P,E)&&(k.cp3=zX(P)),k.mtos3=V.J[3].iB);k.cs=O_s(V.Cl);t&&(k.ic=i_K(V.Cl),k.dvpt=b.N.S,k.dvs=ZL(b.S,.5),k.dfvs=ZL(b.S,1),k.davs=ZL(b.J,.5),k.dafvs=ZL(b.J,1),x&&(b.N.S=0,D5j(b.S),D5j(b.J)),V.gZ()&&(k.dtos=b.cX,k.dav=b.X,k.dtoss=V.HB+1,x&&(b.cX=0,b.X=0,V.HB++)),k.dat=b.G.S,k.dft=b.Ij.S,x&&(b.G.S=0,b.Ij.S=0));k.ps=[R.G.width,R.G.height];k.bs=[$g(R.J),R.J.getHeight()]; k.scs=[R.W.width,R.W.height];k.dom=R.domain;V.t3&&(k.vds=V.t3);if(V.B.length>0||V.Jz)t=g.tb(V.B),V.Jz&&t.push(V.Jz),k.pings=g.QV(t,function(O){return O.toString()}); t=g.QV(g.Nr(V.B,function(O){return O.B()}),function(O){return O.getId()}); ViK(t);k.ces=t;V.S&&(k.vmer=V.S);V.C&&(k.vmmk=V.C);V.cX&&(k.vmiec=V.cX);k.avms=V.yc?V.yc.getName():"ns";V.yc&&g.WO(k,V.yc.aR());u?(k.c=Th(V.Ra.KR,2),k.ss=Th(V.Ra.HQ,2)):k.tth=to()-XYq;k.mc=Th(b.wk,2);k.nc=Th(b.L,2);k.mv=Ys(b.B);k.nv=Ys(b.W);k.lte=Th(V.Tu,2);u=Qd(V,Z);K3(b);k.qmtos=K3(u);k.qnc=Th(u.L,2);k.qmv=Ys(u.B);k.qnv=Ys(u.W);k.qas=u.W>0?1:0;k.qi=V.SK;k.avms||(k.avms="geo");k.psm=b.BX.J;k.psv=b.BX.getValue();k.psfv=b.yC.getValue();k.psa=b.DS.getValue();f=Njl(f.EZ);f.length&&(k.veid=f);V.G&&g.WO(k, qwl(V.G));k.avas=V.Gq();k.vs=V.D9();k.co=zi9(V);k.tm=b.Es;k.tu=b.L1;return k}; FWw=function(V,t){if(g.Cr(BK9,t))return!0;var x=V.ip[t];return x!==void 0?(V.ip[t]=!0,!x):!1}; zi9=function(V){var t=V.Es.toString(10).padStart(2,"0");t=""+V.Fc+t;V.Es<99&&V.Es++;return t}; Yw1=function(){this.J={};var V=Vo();o1(this,V,document);var t=mAh();try{if("1"==t){for(var x=V.parent;x!=V.top;x=x.parent)o1(this,x,x.document);o1(this,V.top,V.top.document)}}catch(u){}}; mAh=function(){var V=document.documentElement;try{if(!Mq(Vo().top))return"2";var t=[],x=Vo(V.ownerDocument);for(V=x;V!=x.top;V=V.parent)if(V.frameElement)t.push(V.frameElement);else break;return t&&t.length!=0?"1":"0"}catch(u){return"2"}}; o1=function(V,t,x){qr(x,"mousedown",function(){return Qx8(V)},301); qr(t,"scroll",function(){return adz(V)},302); qr(x,"touchmove",function(){return rOq(V)},303); qr(x,"mousemove",function(){return TK4(V)},304); qr(x,"keydown",function(){return WWs(V)},305)}; Qx8=function(V){g.IG(V.J,function(t){t.N>1E5||++t.N})}; adz=function(V){g.IG(V.J,function(t){t.J>1E5||++t.J})}; rOq=function(V){g.IG(V.J,function(t){t.J>1E5||++t.J})}; WWs=function(V){g.IG(V.J,function(t){t.S>1E5||++t.S})}; TK4=function(V){g.IG(V.J,function(t){t.W>1E5||++t.W})}; ow0=function(){this.J=[];this.S=[]}; n3=function(V,t){return g.ei(V.J,function(x){return x.SK==t})}; nws=function(V,t){return t?g.ei(V.J,function(x){return x.FB.cJ==t}):null}; cO4=function(V,t){return g.ei(V.S,function(x){return x.S9()==2&&x.SK==t})}; yd=function(){var V=ca;return V.J.length==0?V.S:V.S.length==0?V.J:g.Vp(V.S,V.J)}; yOw=function(V,t){V=t.S9()==1?V.J:V.S;var x=DE(V,function(u){return u==t}); return x!=-1?(V.splice(x,1),t.yc&&t.yc.unobserve(),t.dispose(),!0):!1}; jxh=function(V){var t=ca;if(yOw(t,V)){switch(V.S9()){case 0:var x=function(){return null}; case 2:x=function(){return cO4(t,V.SK)}; break;case 1:x=function(){return n3(t,V.SK)}}for(var u=x();u;u=x())yOw(t,u)}}; ldK=function(V){var t=ca;V=g.Nr(V,function(x){return!nws(t,x.FB.cJ)}); t.J.push.apply(t.J,g.v(V))}; H_j=function(V){var t=[];g.EA(V,function(x){oo(ca.J,function(u){return u.FB.cJ===x.FB.cJ&&u.SK===x.SK})||(ca.J.push(x),t.push(x))})}; jU=function(){this.J=this.S=null}; UAq=function(V,t){function x(u,Z){t(u,Z)} if(V.S==null)return!1;V.J=g.ei(V.S,function(u){return u!=null&&u.hd()}); V.J&&(V.J.init(x)?zUq(V.J.J):t(V.J.J.rU(),V.J));return V.J!=null}; lZ=function(V){V=DAz(V);e3.call(this,V.length?V[V.length-1]:new lb(GI,0));this.N=V;this.S=null}; DAz=function(V){if(!V.length)return[];V=(0,g.Nr)(V,function(x){return x!=null&&x.O3()}); for(var t=1;tx.time?t:x},V[0])}; eU=function(V){V=V===void 0?GI:V;e3.call(this,new lb(V,2))}; dm=function(){var V=JO4();lb.call(this,GI.top,V,"geo")}; JO4=function(){yV();var V=nI();return V.N||V.S?0:2}; his=function(){}; C3=function(){this.done=!1;this.J={eg:0,b2:0,Me8:0,au:0,Cs:-1,rM:0,Dl:0,jt:0,RbD:0};this.G=null;this.B=!1;this.N=null;this.L=0;this.S=new j3(this)}; hR=function(){var V=JR;V.B||(V.B=!0,wYw(V,function(){return V.W.apply(V,g.v(g.Xq.apply(0,arguments)))}),V.W())}; Vhj=function(){TI(his);var V=TI(jU);V.J!=null&&V.J.J?zUq(V.J.J):nI().update(GI)}; wm=function(V,t,x){if(!V.done&&(V.S.cancel(),t.length!=0)){V.N=null;try{Vhj();var u=to();yV().G=u;if(TI(jU).J!=null)for(var Z=0;Z=0?to()-xg:-1,R=to();Z.J.Cs==-1&&(K=R);var f=nI(),b=yV(),E=sI(b.EZ),k=yd();try{if(k.length>0){var O=f.J;O&&(E.bs=[$g(O),O.getHeight()]);var N=f.G;N&&(E.ps=[N.width,N.height]);GI.screen&&(E.scs=[GI.screen.width,GI.screen.height])}else E.url=encodeURIComponent(GI.location.href.substring(0,512)),P.referrer&&(E.referrer=encodeURIComponent(P.referrer.substring(0,512))); E.tt=K;E.pt=xg;E.bin=b.S;GI.google_osd_load_pub_page_exp!==void 0&&(E.olpp=GI.google_osd_load_pub_page_exp);E.deb=[1,Z.J.eg,Z.J.b2,Z.J.au,Z.J.Cs,0,Z.S.S,Z.J.rM,Z.J.Dl,Z.J.jt,Z.J.RbD,-1].join(";");E.tvt=xqT(Z,R);f.S&&(E.inapp=1);if(GI!==null&&GI!=GI.top){k.length>0&&(E.iframe_loc=encodeURIComponent(GI.location.href.substring(0,512)));var p=f.L;E.is=[$g(p),p.getHeight()]}}catch(I){E.error=1}JR.N=E}O=g.rZ(JR.N);N=yV().J;OI(N.N,"prf")==1?(p=new nk,Z=N.J,P=0,Z.J>-1&&(P=Z.N.J.now()-Z.J),p=dp(p,1,K8(Z.W+ P),0),Z=N.J,p=dp(p,5,$_(Z.J>-1?Z.S+1:Z.S),0),p=dp(p,2,SV(N.S.J.N()),"0"),p=dp(p,3,SV(N.S.J.S()),"0"),N=dp(p,4,SV(N.S.J.J()),"0"),p={},N=(p.pf=g.pR(N.J()),p)):N={};g.WO(O,N);g.WO(t,u,x,O,V())}])}; P5L=function(){var V=ZkK||GI;if(!V)return"";var t=[];if(!V.location||!V.location.href)return"";t.push("url="+encodeURIComponent(V.location.href.substring(0,512)));V.document&&V.document.referrer&&t.push("referrer="+encodeURIComponent(V.document.referrer.substring(0,512)));return t.join("&")}; V_=function(){var V="youtube.player.web_20250126_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250126_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250126_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250126_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),t;if(((t=V)==null?void 0:t.length)==2)return V[1];V="youtube.player.web_20250126_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var x;return((x=V)==null?void 0:x.length)==3?"20"+V[1]+V[2]:null}; K9s=function(){return"av.default_js".includes("ima_html5_sdk")?{DO:"ima",rI:null}:"av.default_js".includes("ima_native_sdk")?{DO:"nima",rI:null}:"av.default_js".includes("admob-native-video-javascript")?{DO:"an",rI:null}:"youtube.player.web_20250126_00_RC00".includes("cast_js_sdk")?{DO:"cast",rI:V_()}:"youtube.player.web_20250126_00_RC00".includes("youtube.player.web")?{DO:"yw",rI:V_()}:"youtube.player.web_20250126_00_RC00".includes("outstream_web_client")?{DO:"out",rI:V_()}:"youtube.player.web_20250126_00_RC00".includes("drx_rewarded_web")? {DO:"r",rI:V_()}:"youtube.player.web_20250126_00_RC00".includes("gam_native_web_video")?{DO:"n",rI:V_()}:"youtube.player.web_20250126_00_RC00".includes("admob_interstitial_video")?{DO:"int",rI:V_()}:{DO:"j",rI:null}}; uh=function(V,t){var x={sv:"966"};tJ!==null&&(x.v=tJ);x.cb=qI4;x.nas=ca.J.length;x.msg=V;t!==void 0&&(V=RRs(t))&&(x.e=xx[V]);return x}; ZN=function(V){return GY(V,"custom_metric_viewable")}; RRs=function(V){var t=ZN(V)?"custom_metric_viewable":V.toLowerCase();return mS(rm,function(x){return x==t})}; fyj=function(){this.J=void 0;this.S=!1;this.N=0;this.W=-1;this.G="tos"}; Ef4=function(V){try{var t=V.split(",");return t.length>g.Xu($qj).length?null:rk(t,function(x,u){u=u.toLowerCase().split("=");if(u.length!=2||bkT[u[0]]===void 0||!bkT[u[0]](u[1]))throw Error("Entry ("+u[0]+", "+u[1]+") is invalid.");x[u[0]]=u[1];return x},{})}catch(x){return null}}; kIl=function(V,t){if(V.J==void 0)return 0;switch(V.G){case "mtos":return V.S?uZ(t.J,V.J):uZ(t.S,V.J);case "tos":return V.S?xs(t.J,V.J):xs(t.S,V.J)}return 0}; P2=function(V,t,x,u){va.call(this,t,u);this.L=V;this.C=x}; KK=function(){}; qa=function(V){va.call(this,"fully_viewable_audible_half_duration_impression",V)}; Ry=function(V){this.J=V}; fK=function(V,t){va.call(this,V,t)}; $x=function(V){L3.call(this,"measurable_impression",V)}; bh=function(){Ry.apply(this,arguments)}; Eq=function(V,t,x){gm.call(this,V,t,x)}; kx=function(V){V=V===void 0?GI:V;e3.call(this,new lb(V,2))}; ih=function(V,t,x){gm.call(this,V,t,x)}; Oq=function(V){V=V===void 0?GI:V;e3.call(this,new lb(V,2))}; sq=function(){lb.call(this,GI,2,"mraid");this.BX=0;this.wk=this.zU=!1;this.L=null;this.S=i2q(this.N);this.W.J=new KI(0,0,0,0);this.Es=!1}; Na=function(V,t,x){V.r8("addEventListener",t,x)}; Nkh=function(V){yV().W=!!V.r8("isViewable");Na(V,"viewableChange",ikw);V.r8("getState")==="loading"?Na(V,"ready",Okj):sQ8(V)}; sQ8=function(V){typeof V.S.qn.AFMA_LIDAR==="string"?(V.zU=!0,pRl(V)):(V.S.compatibility=3,V.L="nc",V.HL("w"))}; pRl=function(V){V.wk=!1;var t=OI(yV().EZ,"rmmt")==1,x=!!V.r8("isViewable");(t?!x:1)&&oQ().setTimeout(wk(524,function(){V.wk||(AXL(V),VC(540,Error()),V.L="mt",V.HL("w"))}),500); SIw(V);Na(V,V.S.qn.AFMA_LIDAR,GI9)}; SIw=function(V){var t=OI(yV().EZ,"sneio")==1,x=V.S.qn.AFMA_LIDAR_EXP_1!==void 0,u=V.S.qn.AFMA_LIDAR_EXP_2!==void 0;(t=t&&u)&&(V.S.qn.AFMA_LIDAR_EXP_2=!0);x&&(V.S.qn.AFMA_LIDAR_EXP_1=!t)}; AXL=function(V){V.r8("removeEventListener",V.S.qn.AFMA_LIDAR,GI9);V.zU=!1}; Iy4=function(V,t){if(V.r8("getState")==="loading")return new g.AI(-1,-1);t=V.r8(t);if(!t)return new g.AI(-1,-1);V=parseInt(t.width,10);t=parseInt(t.height,10);return isNaN(V)||isNaN(t)?new g.AI(-1,-1):new g.AI(V,t)}; Okj=function(){try{var V=TI(sq);V.r8("removeEventListener","ready",Okj);sQ8(V)}catch(t){VC(541,t)}}; GI9=function(V,t){try{var x=TI(sq);x.wk=!0;var u=V?new KI(V.y,V.x+V.width,V.y+V.height,V.x):new KI(0,0,0,0);var Z=to(),P=yC();var K=new kg(Z,P,x);K.J=u;K.volume=t;x.OH(K)}catch(R){VC(542,R)}}; ikw=function(V){var t=yV(),x=TI(sq);V&&!t.W&&(t.W=!0,x.Es=!0,x.L&&x.HL("w",!0))}; pK=function(){this.isInitialized=!1;this.J=this.S=null;var V={};this.L=(V.start=this.c6X,V.firstquartile=this.mPw,V.midpoint=this.zyS,V.thirdquartile=this.Fw8,V.complete=this.wXy,V.error=this.i16,V.pause=this.RP,V.resume=this.TC,V.skip=this.fSS,V.viewable_impression=this.IH,V.mute=this.cW,V.unmute=this.cW,V.fullscreen=this.WwS,V.exitfullscreen=this.Nkw,V.fully_viewable_audible_half_duration_impression=this.IH,V.measurable_impression=this.IH,V.abandon=this.RP,V.engagedview=this.IH,V.impression=this.IH, V.creativeview=this.IH,V.progress=this.cW,V.custom_metric_viewable=this.IH,V.bufferstart=this.RP,V.bufferfinish=this.TC,V.audio_measurable=this.IH,V.audio_audible=this.IH,V);V={};this.C=(V.overlay_resize=this.Ysy,V.abandon=this.Ls,V.close=this.Ls,V.collapse=this.Ls,V.overlay_unmeasurable_impression=function(t){return TX(t,"overlay_unmeasurable_impression",yC())},V.overlay_viewable_immediate_impression=function(t){return TX(t,"overlay_viewable_immediate_impression",yC())},V.overlay_unviewable_impression= function(t){return TX(t,"overlay_unviewable_impression",yC())},V.overlay_viewable_end_of_session_impression=function(t){return TX(t,"overlay_viewable_end_of_session_impression",yC())},V); yV().S=3;vfl(this);this.N=null}; AJ=function(V,t,x,u){V=V.Sq(null,u,!0,t);V.W=x;ldK([V]);return V}; L9L=function(V,t,x){OXC(t);var u=V.J;g.EA(t,function(Z){var P=g.QV(Z.criteria,function(K){var R=Ef4(K);if(R==null)K=null;else if(K=new fyj,R.visible!=null&&(K.J=R.visible/100),R.audible!=null&&(K.S=R.audible==1),R.time!=null){var f=R.timetype=="mtos"?"mtos":"tos",b=cTC(R.time,"%")?"%":"ms";R=parseInt(R.time,10);b=="%"&&(R/=100);K.setTime(R,b,f)}return K}); oo(P,function(K){return K==null})||Swq(x,new P2(Z.id,Z.event,P,u))})}; F9j=function(){var V=[],t=yV();V.push(TI(dm));OI(t.EZ,"mvp_lv")&&V.push(TI(sq));t=[new kx,new Oq];t.push(new lZ(V));t.push(new eU(GI));return t}; Mh9=function(V){if(!V.isInitialized){V.isInitialized=!0;try{var t=to(),x=yV(),u=nI();xg=t;x.N=79463069;V.S!=="o"&&(ZkK=Bjj(GI));if(yj0()){JR.J.b2=0;JR.J.Cs=to()-t;var Z=F9j(),P=TI(jU);P.S=Z;UAq(P,function(){Sg()})?JR.done||(th8(),H1(P.J.J,V),hR()):u.N?Sg():hR()}else Gp=!0}catch(K){throw ca.reset(),K; }}}; v2=function(V){JR.S.cancel();Iy=V;JR.done=!0}; LK=function(V){if(V.S)return V.S;var t=TI(jU).J;if(t)switch(t.getName()){case "nis":V.S="n";break;case "gsv":V.S="m"}V.S||(V.S="h");return V.S}; g9=function(V,t,x){if(V.J==null)return t.t3|=4,!1;V=gfw(V.J,x,t);t.t3|=V;return V==0}; Sg=function(){var V=[new eU(GI)],t=TI(jU);t.S=V;UAq(t,function(){v2("i")})?JR.done||(th8(),hR()):v2("i")}; XRh=function(V,t){if(!V.w6){var x=TX(V,"start",yC());x=V.JD.J(x).J;var u={id:"lidarv"};u.r=t;u.sv="966";tJ!==null&&(u.v=tJ);Ub(x,function(Z,P){return u[Z]=Z=="mtos"||Z=="tos"?P:encodeURIComponent(P)}); t=P5L();Ub(t,function(Z,P){return u[Z]=encodeURIComponent(P)}); t="//pagead2.googlesyndication.com/pagead/gen_204?"+Jo(CI(new dJ,u));cnC(t);V.w6=!0}}; B2=function(V,t,x){wm(JR,[V],!yC());LWC(V,x);x!=4&&vw8(V.zU,x,V.y3);return TX(V,t,yC())}; vfl=function(V){uNK(function(){var t=zRC();V.S!=null&&(t.sdk=V.S);var x=TI(jU);x.J!=null&&(t.avms=x.J.getName());return t})}; Bk4=function(V,t,x,u){var Z=nws(ca,x);Z!==null&&Z.SK!==t&&(V.QS(Z),Z=null);Z||(t=V.Sq(x,to(),!1,t),ca.S.length==0&&(yV().N=79463069),H_j([t]),Z=t,Z.W=LK(V),u&&(Z.DS=u));return Z}; mqC=function(V,t){var x=V[t];x!==void 0&&x>0&&(V[t]=Math.floor(x*1E3))}; zRC=function(){var V=nI(),t={},x={},u={};return Object.assign({},(t.sv="966",t),tJ!==null&&(x.v=tJ,x),(u["if"]=V.N?"1":"0",u.nas=String(ca.J.length),u))}; mK=function(V){va.call(this,"audio_audible",V)}; Yx=function(V){L3.call(this,"audio_measurable",V)}; Q_=function(){Ry.apply(this,arguments)}; ay=function(){}; YIz=function(V){this.J=V}; gfw=function(V,t,x){V=V.S();if(typeof V==="function"){var u={};var Z={};u=Object.assign({},tJ!==null&&(u.v=tJ,u),(Z.sv="966",Z.cb=qI4,Z.e=QQT(t),Z));Z=TX(x,t,yC());g.WO(u,Z);x.cV[t]=Z;u=x.S9()==2?nSs(u).join("&"):x.JD.J(u).J;try{return V(x.SK,u,t),0}catch(P){return 2}}else return 1}; QQT=function(V){var t=ZN(V)?"custom_metric_viewable":V;V=mS(rm,function(x){return x==t}); return xx[V]}; r9=function(){pK.call(this);this.B=null;this.G=!1;this.W="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; ayw=function(V,t,x){x=x.opt_configurable_tracking_events;V.J!=null&&Array.isArray(x)&&L9L(V,x,t)}; rX9=function(V,t,x){var u=n3(ca,t);u||(u=x.opt_nativeTime||-1,u=AJ(V,t,LK(V),u),x.opt_osdId&&(u.DS=x.opt_osdId));return u}; Tk4=function(V,t,x){var u=n3(ca,t);u||(u=AJ(V,t,"n",x.opt_nativeTime||-1));return u}; W9w=function(V,t){var x=n3(ca,t);x||(x=AJ(V,t,"h",-1));return x}; ofh=function(V){yV();switch(LK(V)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; yX8=function(V,t,x,u){x=x===void 0?{}:x;var Z={};g.WO(Z,{opt_adElement:void 0,opt_fullscreen:void 0},x);var P=V.OU(t,x);x=P?P.JD:V.Kt();if(Z.opt_bounds)return x.J(uh("ol",u));if(u!==void 0)if(RRs(u)!==void 0)if(Gp)V=uh("ue",u);else if(Mh9(V),Iy=="i")V=uh("i",u),V["if"]=0;else if(t=V.OU(t,Z)){b:{Iy=="i"&&(t.gS=!0);P=Z.opt_fullscreen;P!==void 0&&bZ(t,!!P);var K;if(P=!nI().S)(P=FF(g.zY(),"CrKey")&&!(FF(g.zY(),"CrKey")&&FF(g.zY(),"SmartSpeaker"))||FF(g.zY(),"PlayStation")||FF(g.zY(),"Roku")||F08()||FF(g.zY(), "Xbox"))||(P=g.zY(),P=FF(P,"AppleTV")||FF(P,"Apple TV")||FF(P,"CFNetwork")||FF(P,"tvOS")),P||(P=g.zY(),P=FF(P,"sdk_google_atv_x86")||FF(P,"Android TV")),P=!P;P&&(oQ(),P=Lk(c1)===0);if(K=P){switch(t.S9()){case 1:XRh(t,"pv");break;case 2:V.LU(t)}v2("pv")}P=u.toLowerCase();if(K=!K)K=OI(yV().EZ,"ssmol")&&P==="loaded"?!1:g.Cr(nfL,P);if(K&&t.xe==0){Iy!="i"&&(JR.done=!1);K=Z!==void 0?Z.opt_nativeTime:void 0;P1=K=typeof K==="number"?K:to();t.A_=!0;var R=yC();t.xe=1;t.ip={};t.ip.start=!1;t.ip.firstquartile= !1;t.ip.midpoint=!1;t.ip.thirdquartile=!1;t.ip.complete=!1;t.ip.resume=!1;t.ip.pause=!1;t.ip.skip=!1;t.ip.mute=!1;t.ip.unmute=!1;t.ip.viewable_impression=!1;t.ip.measurable_impression=!1;t.ip.fully_viewable_audible_half_duration_impression=!1;t.ip.fullscreen=!1;t.ip.exitfullscreen=!1;t.HB=0;R||(t.G9().C=K);wm(JR,[t],!R)}(K=t.dK[P])&&AR(t.Cl,K);OI(yV().EZ,"fmd")||g.Cr(cX9,P)&&t.Jz&&t.Jz.S(t,null);switch(t.S9()){case 1:var f=ZN(P)?V.L.custom_metric_viewable:V.L[P];break;case 2:f=V.C[P]}if(f&&(u=f.call(V, t,Z,u),OI(yV().EZ,"fmd")&&g.Cr(cX9,P)&&t.Jz&&t.Jz.S(t,null),u!==void 0)){Z=uh(void 0,P);g.WO(Z,u);u=Z;break b}u=void 0}t.xe==3&&V.QS(t);V=u}else V=uh("nf",u);else V=void 0;else Gp?V=uh("ue"):P?(V=uh(),g.WO(V,M9K(P,!0,!1,!1))):V=uh("nf");return typeof V==="string"?x.J():x.J(V)}; jQK=function(V,t){t&&(V.W=t)}; lyC=function(V){var t={};return t.viewability=V.J,t.googleViewability=V.S,t}; Hk9=function(V,t,x){x=x===void 0?{}:x;V=yX8(TI(r9),t,x,V);return lyC(V)}; UqT=function(V){var t=V.url;V=V.uFw;this.S=t;this.B=V;V=/[?&]dsh=1(&|$)/.test(t);this.W=!V&&/[?&]ae=1(&|$)/.test(t);this.G=!V&&/[?&]ae=2(&|$)/.test(t);if((this.J=/[?&]adurl=([^&]*)/.exec(t))&&this.J[1]){try{var x=decodeURIComponent(this.J[1])}catch(u){x=null}this.N=x}}; Dq9=function(V){V=V.B;if(!V)return"";var t="";V.platform&&(t+="&uap="+encodeURIComponent(V.platform));V.platformVersion&&(t+="&uapv="+encodeURIComponent(V.platformVersion));V.uaFullVersion&&(t+="&uafv="+encodeURIComponent(V.uaFullVersion));V.architecture&&(t+="&uaa="+encodeURIComponent(V.architecture));V.model&&(t+="&uam="+encodeURIComponent(V.model));V.bitness&&(t+="&uab="+encodeURIComponent(V.bitness));V.fullVersionList&&(t+="&uafvl="+encodeURIComponent(V.fullVersionList.map(function(x){return encodeURIComponent(x.brand)+ ";"+encodeURIComponent(x.version)}).join("|"))); typeof V.wow64!=="undefined"&&(t+="&uaw="+Number(V.wow64));return t}; dql=function(V,t,x,u,Z){var P=window,K=x?"//pagead2.googlesyndication.com/bg/"+tI(x)+".js":"";x=P.document;var R={};t&&(R._scs_=t);R._bgu_=K;R._bgp_=u;R._li_="v_h.3.0.0.0";Z&&(R._upb_=Z);(t=P.GoogleTyFxhY)&&typeof t.push=="function"||(t=P.GoogleTyFxhY=[]);t.push(R);t=lG(x).createElement("SCRIPT");t.type="text/javascript";t.async=!0;V=ZP0(eRw,tI(V)+".js");g.DV(t,V);(P=(P.GoogleTyFxhYEET||{})[t.src])?P():x.getElementsByTagName("head")[0].appendChild(t)}; C5s=function(){try{var V,t;return!!((V=window)==null?0:(t=V.top)==null?0:t.location.href)&&!1}catch(x){return!0}}; W2=function(){var V=JXh();V=V===void 0?"bevasrsg":V;return new Promise(function(t){var x=window===window.top?window:C5s()?window:window.top,u=x[V],Z;((Z=u)==null?0:Z.bevasrs)?t(new Tp(u.bevasrs)):(u||(u={},u=(u.nqfbel=[],u),x[V]=u),u.nqfbel.push(function(P){t(new Tp(P))}))})}; hR0=function(V){var t={c:V.jM,e:V.dA,mc:V.a8,me:V.Cz};V.O8&&(t.co={c:V.O8.IV,a:V.O8.Ix,s:V.O8.Ik});return t}; oy=function(V){g.c.call(this);this.wpc=V}; Tp=function(V){g.c.call(this);var t=this;this.kU=V;this.N="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.J=void 0;this.XC=this.kU.p;this.W=this.X3.bind(this);this.addOnDisposeCallback(function(){return void wR8(t)})}; V30=function(V){var t;return g.Q(function(x){if(x.J==1){if(!V.kU.wpc)throw new Fz(30,"NWA");return V.S?x.return(V.S):g.m(x,V.kU.wpc(),2)}t=x.S;V.S=new oy(t);return x.return(V.S)})}; wR8=function(V){V.J!==void 0&&(V.N.forEach(function(t){var x;(x=V.J)==null||x.removeEventListener(t,V.W)}),V.J=void 0)}; udw=function(V){if(g.vU(g.xE(V)))return!1;if(V.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var t=new g.AO(V)}catch(x){return g.ei(t39,function(u){return V.search(u)>0})!=null}return t.B.match(xsq)?!0:g.ei(t39,function(x){return V.match(x)!=null})!=null}; g.nK=function(V,t){return V.replace(ZIw,function(x,u){try{var Z=g.QR(t,u);if(Z==null||Z.toString()==null)return x;Z=Z.toString();if(Z==""||!g.vU(g.xE(Z)))return encodeURIComponent(Z).replace(/%2C/g,",")}catch(P){}return x})}; c2=function(V,t){return Object.is(V,t)}; jg=function(V){var t=y_;y_=V;return t}; Pbj=function(V){if(V.Z7!==void 0){var t=lh;lh=!0;try{for(var x=g.G(V.Z7),u=x.next();!u.done;u=x.next()){var Z=u.value;Z.VM||(V=void 0,Z.VM=!0,Pbj(Z),(V=Z.uo)==null||V.call(Z,Z))}}finally{lh=t}}}; KgL=function(){var V;return((V=y_)==null?void 0:V.Lt)!==!1}; qTh=function(V){V&&(V.z5=0);return jg(V)}; Rw1=function(V,t){jg(t);if(V&&V.wg!==void 0&&V.j9!==void 0&&V.qo!==void 0){if(H2(V))for(t=V.z5;tV.z5;)V.wg.pop(),V.qo.pop(),V.j9.pop()}}; $s9=function(V,t,x){f5L(V);if(V.Z7.length===0&&V.wg!==void 0)for(var u=0;u0}; bIj=function(V){V.wg!=null||(V.wg=[]);V.j9!=null||(V.j9=[]);V.qo!=null||(V.qo=[])}; f5L=function(V){V.Z7!=null||(V.Z7=[]);V.WH!=null||(V.WH=[])}; khh=function(V){function t(){if(lh)throw Error("");if(y_!==null){var u=y_.z5++;bIj(y_);u0?" "+t:t))}}; g.sU=function(V,t){if(V.classList)Array.prototype.forEach.call(t,function(Z){g.OU(V,Z)}); else{var x={};Array.prototype.forEach.call(EU(V),function(Z){x[Z]=!0}); Array.prototype.forEach.call(t,function(Z){x[Z]=!0}); t="";for(var u in x)t+=t.length>0?" "+u:u;g.ky(V,t)}}; g.NK=function(V,t){V.classList?V.classList.remove(t):g.i6(V,t)&&g.ky(V,Array.prototype.filter.call(EU(V),function(x){return x!=t}).join(" "))}; g.pb=function(V,t){V.classList?Array.prototype.forEach.call(t,function(x){g.NK(V,x)}):g.ky(V,Array.prototype.filter.call(EU(V),function(x){return!g.Cr(t,x)}).join(" "))}; g.Am=function(V,t,x){x?g.OU(V,t):g.NK(V,t)}; zw8=function(V,t){var x=!g.i6(V,t);g.Am(V,t,x)}; g.S0=function(){g.KX.call(this);this.J=0;this.endTime=this.startTime=null}; BJl=function(V,t){Array.isArray(t)||(t=[t]);t=t.map(function(x){return typeof x==="string"?x:x.property+" "+x.duration+"s "+x.timing+" "+x.delay+"s"}); g.Ao(V,"transition",t.join(","))}; G6=function(V,t,x,u,Z){g.S0.call(this);this.S=V;this.G=t;this.B=x;this.W=u;this.L=Array.isArray(Z)?Z:[Z]}; msw=function(V,t,x,u){return new G6(V,t,{opacity:x},{opacity:u},{property:"opacity",duration:t,timing:"ease-in",delay:0})}; Qo8=function(V){V=Mt(V);if(V=="")return null;var t=String(V.slice(0,4)).toLowerCase();if(("url("1||V&&V.split(")"),null;if(V.indexOf("(")>0){if(/"|'/.test(V))return null;t=/([\-\w]+)\(/g;for(var x;x=t.exec(V);)if(!(x[1].toLowerCase()in YTj))return null}return V}; IO=function(V,t){V=g.Ww[V];return V&&V.prototype?(t=Object.getOwnPropertyDescriptor(V.prototype,t))&&t.get||null:null}; a5s=function(V){var t=g.Ww.CSSStyleDeclaration;return t&&t.prototype&&t.prototype[V]||null}; ros=function(V,t,x,u){if(V)return V.apply(t,u);if(g.vk&&document.documentMode<10){if(!t[x].call)throw Error("IE Clobbering detected");}else if(typeof t[x]!="function")throw Error("Clobbering detected");return t[x].apply(t,u)}; cow=function(V){if(!V)return"";var t=document.createElement("div").style;TJK(V).forEach(function(x){var u=g.wZ&&x in WgC?x:x.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");GY(u,"--")||GY(u,"var")||(x=ros(ogC,V,V.getPropertyValue?"getPropertyValue":"getAttribute",[x])||"",x=Qo8(x),x!=null&&ros(ngq,t,t.setProperty?"setProperty":"setAttribute",[u,x]))}); return t.cssText||""}; TJK=function(V){g.jj(V)?V=g.tb(V):(V=g.Xu(V),g.h_(V,"cssText"));return V}; g.Fa=function(V){var t,x=t=0,u=!1;V=V.split(yol);for(var Z=0;Z.4?-1:1;return(t==0?null:t)==-1?"rtl":"ltr"}; g.z6=function(V){if(V instanceof MK||V instanceof gy||V instanceof Xa)return V;if(typeof V.next=="function")return new MK(function(){return V}); if(typeof V[Symbol.iterator]=="function")return new MK(function(){return V[Symbol.iterator]()}); if(typeof V.JK=="function")return new MK(function(){return V.JK()}); throw Error("Not an iterator or iterable.");}; MK=function(V){this.S=V}; gy=function(V){this.S=V}; Xa=function(V){MK.call(this,function(){return V}); this.N=V}; Bk=function(V,t,x,u,Z,P,K,R){this.J=V;this.L=t;this.N=x;this.G=u;this.W=Z;this.B=P;this.S=K;this.C=R}; mm=function(V,t){if(t==0)return V.J;if(t==1)return V.S;var x=sY(V.J,V.N,t),u=sY(V.N,V.W,t);V=sY(V.W,V.S,t);x=sY(x,u,t);u=sY(u,V,t);return sY(x,u,t)}; Ush=function(V,t){var x=(t-V.J)/(V.S-V.J);if(x<=0)return 0;if(x>=1)return 1;for(var u=0,Z=1,P=0,K=0;K<8;K++){P=mm(V,x);var R=(mm(V,x+1E-6)-P)/1E-6;if(Math.abs(P-t)<1E-6)return x;if(Math.abs(R)<1E-6)break;else P1E-6&&K<8;K++)P=0}; g.ry=function(V){g.c.call(this);this.B=1;this.N=[];this.W=0;this.J=[];this.S={};this.L=!!V}; ewl=function(V,t,x){g.sb(function(){V.apply(t,x)})}; g.T6=function(V){this.J=V}; Wk=function(V){this.J=V}; ds0=function(V){this.data=V}; Cbl=function(V){return V===void 0||V instanceof ds0?V:new ds0(V)}; oO=function(V){this.J=V}; g.Joz=function(V){var t=V.creation;V=V.expiration;return!!V&&Vg.JT()}; g.nb=function(V){this.J=V}; hw4=function(){}; ck=function(){}; y2=function(V){this.J=V;this.S=null}; j0=function(V){if(V.J==null)throw Error("Storage mechanism: Storage unavailable");var t;((t=V.S)!=null?t:V.isAvailable())||A_(Error("Storage mechanism: Storage unavailable"))}; l6=function(){var V=null;try{V=g.Ww.localStorage||null}catch(t){}y2.call(this,V)}; w1h=function(){var V=null;try{V=g.Ww.sessionStorage||null}catch(t){}y2.call(this,V)}; Hk=function(V,t){this.S=V;this.J=t+"::"}; g.UU=function(V){var t=new l6;return t.isAvailable()?V?new Hk(t,V):t:null}; Dr=function(V,t){this.J=V;this.S=t}; e0=function(V){this.J=[];if(V)a:{if(V instanceof e0){var t=V.ZP();V=V.B2();if(this.J.length<=0){for(var x=this.J,u=0;u>>6:(P<65536?R[x++]=224|P>>>12:(R[x++]=240|P>>>18,R[x++]=128|P>>>12&63),R[x++]=128|P>>> 6&63),R[x++]=128|P&63);return R}; hm=function(V){for(var t=V.length;--t>=0;)V[t]=0}; wy=function(V,t,x,u,Z){this.YO=V;this.D6=t;this.C$=x;this.c5=u;this.w$U=Z;this.F1=V&&V.length}; Vb=function(V,t){this.CC=V;this.pT=0;this.X9=t}; tt=function(V,t){V.EO[V.pending++]=t&255;V.EO[V.pending++]=t>>>8&255}; x6=function(V,t,x){V.Y_>16-x?(V.ub|=t<>16-V.Y_,V.Y_+=x-16):(V.ub|=t<>>=1,x<<=1;while(--t>0);return x>>>1}; xrl=function(V,t,x){var u=Array(16),Z=0,P;for(P=1;P<=15;P++)u[P]=Z=Z+x[P-1]<<1;for(x=0;x<=t;x++)Z=V[x*2+1],Z!==0&&(V[x*2]=tUq(u[Z]++,Z))}; uRs=function(V){var t;for(t=0;t<286;t++)V.h5[t*2]=0;for(t=0;t<30;t++)V.FQ[t*2]=0;for(t=0;t<19;t++)V.DB[t*2]=0;V.h5[512]=1;V.U7=V.So=0;V.dH=V.matches=0}; Z3T=function(V){V.Y_>8?tt(V,V.ub):V.Y_>0&&(V.EO[V.pending++]=V.ub);V.ub=0;V.Y_=0}; PZq=function(V,t,x){Z3T(V);tt(V,x);tt(V,~x);Jm.J0(V.EO,V.window,t,x,V.pending);V.pending+=x}; KV0=function(V,t,x,u){var Z=t*2,P=x*2;return V[Z]>>7)];ut(V,K,x);R=f0[K];R!==0&&(Z-=$6[K],x6(V,Z,R))}}while(u>1;K>=1;K--)Z_(V,x,K);f=P;do K=V.bI[1],V.bI[1]=V.bI[V.OT--],Z_(V,x,1),u=V.bI[1],V.bI[--V.S7]=K,V.bI[--V.S7]=u,x[f*2]=x[K*2]+x[u*2],V.depth[f]=(V.depth[K]>=V.depth[u]?V.depth[K]:V.depth[u])+1,x[K*2+1]=x[u*2+1]=f,V.bI[1]=f++,Z_(V,x,1);while(V.OT>= 2);V.bI[--V.S7]=V.bI[1];K=t.CC;f=t.pT;u=t.X9.YO;Z=t.X9.F1;P=t.X9.D6;var b=t.X9.C$,E=t.X9.w$U,k,O=0;for(k=0;k<=15;k++)V.Tg[k]=0;K[V.bI[V.S7]*2+1]=0;for(t=V.S7+1;t<573;t++){var N=V.bI[t];k=K[K[N*2+1]*2+1]+1;k>E&&(k=E,O++);K[N*2+1]=k;if(!(N>f)){V.Tg[k]++;var p=0;N>=b&&(p=P[N-b]);var I=K[N*2];V.U7+=I*(k+p);Z&&(V.So+=I*(u[N*2+1]+p))}}if(O!==0){do{for(k=E-1;V.Tg[k]===0;)k--;V.Tg[k]--;V.Tg[k+1]+=2;V.Tg[E]--;O-=2}while(O>0);for(k=E;k!==0;k--)for(N=V.Tg[k];N!==0;)u=V.bI[--t],u>f||(K[u*2+1]!==k&&(V.U7+=(k- K[u*2+1])*K[u*2],K[u*2+1]=k),N--)}xrl(x,R,V.Tg)}; R9l=function(V,t,x){var u,Z=-1,P=t[1],K=0,R=7,f=4;P===0&&(R=138,f=3);t[(x+1)*2+1]=65535;for(u=0;u<=x;u++){var b=P;P=t[(u+1)*2+1];++K>>=1)if(t&1&&V.h5[x*2]!==0)return 0;if(V.h5[18]!==0||V.h5[20]!==0||V.h5[26]!==0)return 1;for(x=32;x<256;x++)if(V.h5[x*2]!==0)return 1;return 0}; EO=function(V,t,x){V.EO[V.vu+V.dH*2]=t>>>8&255;V.EO[V.vu+V.dH*2+1]=t&255;V.EO[V.F6+V.dH]=x&255;V.dH++;t===0?V.h5[x*2]++:(V.matches++,t--,V.h5[(Pp[x]+256+1)*2]++,V.FQ[(t<256?Ri[t]:Ri[256+(t>>>7)])*2]++);return V.dH===V.Je-1}; it=function(V,t){V.msg=k6[t];return t}; OO=function(V){for(var t=V.length;--t>=0;)V[t]=0}; sO=function(V){var t=V.state,x=t.pending;x>V.nR&&(x=V.nR);x!==0&&(Jm.J0(V.output,t.EO,t.oY,x,V.gm),V.gm+=x,t.oY+=x,V.QE+=x,V.nR-=x,t.pending-=x,t.pending===0&&(t.oY=0))}; At=function(V,t){var x=V.Fb>=0?V.Fb:-1,u=V.YX-V.Fb,Z=0;if(V.level>0){V.rL.jQ===2&&(V.rL.jQ=$r8(V));bt(V,V.GI);bt(V,V.XE);R9l(V,V.h5,V.GI.pT);R9l(V,V.FQ,V.XE.pT);bt(V,V.X8);for(Z=18;Z>=3&&V.DB[b38[Z]*2+1]===0;Z--);V.U7+=3*(Z+1)+5+5+4;var P=V.U7+3+7>>>3;var K=V.So+3+7>>>3;K<=P&&(P=K)}else P=K=u+5;if(u+4<=P&&x!==-1)x6(V,t?1:0,3),PZq(V,x,u);else if(V.strategy===4||K===P)x6(V,2+(t?1:0),3),qRs(V,Ng,p0);else{x6(V,4+(t?1:0),3);x=V.GI.pT+1;u=V.XE.pT+1;Z+=1;x6(V,x-257,5);x6(V,u-1,5);x6(V,Z-4,4);for(P=0;P>>8&255;V.EO[V.pending++]=t&255}; Esw=function(V,t){var x=V.AA,u=V.YX,Z=V.Ck,P=V.ll,K=V.YX>V.YS-262?V.YX-(V.YS-262):0,R=V.window,f=V.WO,b=V.rB,E=V.YX+258,k=R[u+Z-1],O=R[u+Z];V.Ck>=V.ji&&(x>>=2);P>V.Oh&&(P=V.Oh);do{var N=t;if(R[N+Z]===O&&R[N+Z-1]===k&&R[N]===R[u]&&R[++N]===R[u+1]){u+=2;for(N++;R[++u]===R[++N]&&R[++u]===R[++N]&&R[++u]===R[++N]&&R[++u]===R[++N]&&R[++u]===R[++N]&&R[++u]===R[++N]&&R[++u]===R[++N]&&R[++u]===R[++N]&&uZ){V.Mu=t;Z=N;if(N>=P)break;k=R[u+Z-1];O=R[u+Z]}}}while((t=b[t&f])>K&&--x!== 0);return Z<=V.Oh?Z:V.Oh}; L0=function(V){var t=V.YS,x;do{var u=V.h7-V.Oh-V.YX;if(V.YX>=t+(t-262)){Jm.J0(V.window,V.window,t,t,0);V.Mu-=t;V.YX-=t;V.Fb-=t;var Z=x=V.JV;do{var P=V.head[--Z];V.head[Z]=P>=t?P-t:0}while(--x);Z=x=t;do P=V.rB[--Z],V.rB[Z]=P>=t?P-t:0;while(--x);u+=t}if(V.rL.En===0)break;Z=V.rL;x=V.window;P=V.YX+V.Oh;var K=Z.En;K>u&&(K=u);K===0?x=0:(Z.En-=K,Jm.J0(x,Z.input,Z.Gj,K,P),Z.state.wrap===1?Z.E1=Ii(Z.E1,x,K,P):Z.state.wrap===2&&(Z.E1=vp(Z.E1,x,K,P)),Z.Gj+=K,Z.bR+=K,x=K);V.Oh+=x;if(V.Oh+V.s8>=3)for(u=V.YX-V.s8, V.qU=V.window[u],V.qU=(V.qU<=3&&(V.qU=(V.qU<=3)if(x=EO(V,V.YX-V.Mu,V.YD-3),V.Oh-=V.YD,V.YD<=V.bQ&&V.Oh>=3){V.YD--;do V.YX++,V.qU=(V.qU<=3&&(V.qU=(V.qU<4096)&&(V.YD=2));if(V.Ck>=3&&V.YD<=V.Ck){u=V.YX+V.Oh-3;x=EO(V,V.YX-1-V.Jk,V.Ck-3);V.Oh-=V.Ck-1;V.Ck-=2;do++V.YX<=u&&(V.qU=(V.qU<=3&&V.YX>0&&(u=V.YX-1,x=P[u],x===P[++u]&&x===P[++u]&&x===P[++u])){for(Z=V.YX+258;x===P[++u]&&x===P[++u]&&x===P[++u]&&x===P[++u]&&x===P[++u]&&x===P[++u]&&x===P[++u]&&x===P[++u]&&uV.Oh&&(V.YD=V.Oh)}V.YD>=3?(x=EO(V,1,V.YD-3),V.Oh-=V.YD,V.YX+=V.YD,V.YD=0):(x=EO(V,0,V.window[V.YX]),V.Oh--,V.YX++);if(x&&(At(V,!1),V.rL.nR===0))return 1}V.s8=0;return t=== 4?(At(V,!0),V.rL.nR===0?3:4):V.dH&&(At(V,!1),V.rL.nR===0)?1:2}; i3w=function(V,t){for(var x;;){if(V.Oh===0&&(L0(V),V.Oh===0)){if(t===0)return 1;break}V.YD=0;x=EO(V,0,V.window[V.YX]);V.Oh--;V.YX++;if(x&&(At(V,!1),V.rL.nR===0))return 1}V.s8=0;return t===4?(At(V,!0),V.rL.nR===0?3:4):V.dH&&(At(V,!1),V.rL.nR===0)?1:2}; gI=function(V,t,x,u,Z){this.KD=V;this.IzU=t;this.vXC=x;this.Sh8=u;this.func=Z}; O38=function(){this.rL=null;this.status=0;this.EO=null;this.wrap=this.pending=this.oY=this.DM=0;this.YU=null;this.K7=0;this.method=8;this.P6=-1;this.WO=this.Tb=this.YS=0;this.window=null;this.h7=0;this.head=this.rB=null;this.ll=this.ji=this.strategy=this.level=this.bQ=this.AA=this.Ck=this.Oh=this.Mu=this.YX=this.FZ=this.Jk=this.YD=this.Fb=this.Ho=this.ol=this.Zx=this.JV=this.qU=0;this.h5=new Jm.FG(1146);this.FQ=new Jm.FG(122);this.DB=new Jm.FG(78);OO(this.h5);OO(this.FQ);OO(this.DB);this.X8=this.XE= this.GI=null;this.Tg=new Jm.FG(16);this.bI=new Jm.FG(573);OO(this.bI);this.S7=this.OT=0;this.depth=new Jm.FG(573);OO(this.depth);this.Y_=this.ub=this.s8=this.matches=this.So=this.U7=this.vu=this.dH=this.Je=this.F6=0}; s1s=function(V,t){if(!V||!V.state||t>5||t<0)return V?it(V,-2):-2;var x=V.state;if(!V.output||!V.input&&V.En!==0||x.status===666&&t!==4)return it(V,V.nR===0?-5:-2);x.rL=V;var u=x.P6;x.P6=t;if(x.status===42)if(x.wrap===2)V.E1=0,Sa(x,31),Sa(x,139),Sa(x,8),x.YU?(Sa(x,(x.YU.text?1:0)+(x.YU.XF?2:0)+(x.YU.extra?4:0)+(x.YU.name?8:0)+(x.YU.comment?16:0)),Sa(x,x.YU.time&255),Sa(x,x.YU.time>>8&255),Sa(x,x.YU.time>>16&255),Sa(x,x.YU.time>>24&255),Sa(x,x.level===9?2:x.strategy>=2||x.level<2?4:0),Sa(x,x.YU.os& 255),x.YU.extra&&x.YU.extra.length&&(Sa(x,x.YU.extra.length&255),Sa(x,x.YU.extra.length>>8&255)),x.YU.XF&&(V.E1=vp(V.E1,x.EO,x.pending,0)),x.K7=0,x.status=69):(Sa(x,0),Sa(x,0),Sa(x,0),Sa(x,0),Sa(x,0),Sa(x,x.level===9?2:x.strategy>=2||x.level<2?4:0),Sa(x,3),x.status=113);else{var Z=8+(x.Tb-8<<4)<<8;Z|=(x.strategy>=2||x.level<2?0:x.level<6?1:x.level===6?2:3)<<6;x.YX!==0&&(Z|=32);x.status=113;G0(x,Z+(31-Z%31));x.YX!==0&&(G0(x,V.E1>>>16),G0(x,V.E1&65535));V.E1=1}if(x.status===69)if(x.YU.extra){for(Z= x.pending;x.K7<(x.YU.extra.length&65535)&&(x.pending!==x.DM||(x.YU.XF&&x.pending>Z&&(V.E1=vp(V.E1,x.EO,x.pending-Z,Z)),sO(V),Z=x.pending,x.pending!==x.DM));)Sa(x,x.YU.extra[x.K7]&255),x.K7++;x.YU.XF&&x.pending>Z&&(V.E1=vp(V.E1,x.EO,x.pending-Z,Z));x.K7===x.YU.extra.length&&(x.K7=0,x.status=73)}else x.status=73;if(x.status===73)if(x.YU.name){Z=x.pending;do{if(x.pending===x.DM&&(x.YU.XF&&x.pending>Z&&(V.E1=vp(V.E1,x.EO,x.pending-Z,Z)),sO(V),Z=x.pending,x.pending===x.DM)){var P=1;break}P=x.K7Z&&(V.E1=vp(V.E1,x.EO,x.pending-Z,Z));P===0&&(x.K7=0,x.status=91)}else x.status=91;if(x.status===91)if(x.YU.comment){Z=x.pending;do{if(x.pending===x.DM&&(x.YU.XF&&x.pending>Z&&(V.E1=vp(V.E1,x.EO,x.pending-Z,Z)),sO(V),Z=x.pending,x.pending===x.DM)){P=1;break}P=x.K7Z&&(V.E1=vp(V.E1,x.EO,x.pending-Z,Z));P===0&&(x.status=103)}else x.status= 103;x.status===103&&(x.YU.XF?(x.pending+2>x.DM&&sO(V),x.pending+2<=x.DM&&(Sa(x,V.E1&255),Sa(x,V.E1>>8&255),V.E1=0,x.status=113)):x.status=113);if(x.pending!==0){if(sO(V),V.nR===0)return x.P6=-1,0}else if(V.En===0&&(t<<1)-(t>4?9:0)<=(u<<1)-(u>4?9:0)&&t!==4)return it(V,-5);if(x.status===666&&V.En!==0)return it(V,-5);if(V.En!==0||x.Oh!==0||t!==0&&x.status!==666){u=x.strategy===2?i3w(x,t):x.strategy===3?kXw(x,t):X6[x.level].func(x,t);if(u===3||u===4)x.status=666;if(u===1||u===3)return V.nR===0&&(x.P6= -1),0;if(u===2&&(t===1?(x6(x,2,3),ut(x,256,Ng),x.Y_===16?(tt(x,x.ub),x.ub=0,x.Y_=0):x.Y_>=8&&(x.EO[x.pending++]=x.ub&255,x.ub>>=8,x.Y_-=8)):t!==5&&(x6(x,0,3),PZq(x,0,0),t===3&&(OO(x.head),x.Oh===0&&(x.YX=0,x.Fb=0,x.s8=0))),sO(V),V.nR===0))return x.P6=-1,0}if(t!==4)return 0;if(x.wrap<=0)return 1;x.wrap===2?(Sa(x,V.E1&255),Sa(x,V.E1>>8&255),Sa(x,V.E1>>16&255),Sa(x,V.E1>>24&255),Sa(x,V.bR&255),Sa(x,V.bR>>8&255),Sa(x,V.bR>>16&255),Sa(x,V.bR>>24&255)):(G0(x,V.E1>>>16),G0(x,V.E1&65535));sO(V);x.wrap>0&& (x.wrap=-x.wrap);return x.pending!==0?0:1}; z0=function(V){if(!(this instanceof z0))return new z0(V);V=this.options=Jm.assign({level:-1,method:8,chunkSize:16384,zn:15,zlk:8,strategy:0,e9:""},V||{});V.raw&&V.zn>0?V.zn=-V.zn:V.yz&&V.zn>0&&V.zn<16&&(V.zn+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.rL=new Nml;this.rL.nR=0;var t=this.rL;var x=V.level,u=V.method,Z=V.zn,P=V.zlk,K=V.strategy;if(t){var R=1;x===-1&&(x=6);Z<0?(R=0,Z=-Z):Z>15&&(R=2,Z-=16);if(P<1||P>9||u!==8||Z<8||Z>15||x<0||x>9||K<0||K>4)t=it(t,-2);else{Z===8&&(Z=9); var f=new O38;t.state=f;f.rL=t;f.wrap=R;f.YU=null;f.Tb=Z;f.YS=1<>=7;P<30;P++)for($6[P]=K<<7,Z=0;Z<1<=b.YS&&(t===0&&(OO(b.head),b.YX=0,b.Fb=0,b.s8=0),x=new Jm.a$(b.YS),Jm.J0(x,P,K-b.YS,b.YS,0),P=x,K=b.YS);x=V.En;u=V.Gj;Z=V.input;V.En=K;V.Gj=0;V.input=P;for(L0(b);b.Oh>=3;){P=b.YX;K=b.Oh-2;do b.qU=(b.qU<=-4&&((((((0,x[40])(x[22],x[55]),x[23])(x[51],(0,x[48])(),x[61]),x[32])(x[61],x[46]),x[62])(x[5],x[28]),x[39])(x[59],x[52]),(0,x[23])(x[51],(0,x[26])(),x[61]),1)||((0,x[66])((0,x[36])((0,x[66])((0,x[14])(x[52],x[17]),x[23],x[51], (0,x[44])(),x[52]),x[6],(0,x[33])(x[22]),x[6]),x[39],x[25],x[22]),x[70])(x[29],x[50]),(x[40]<-8||((0,x[45])(x[29]),0))&&(0,x[53])(x[20],x[new Date("1970-01-01T03:15:46.000+03:15")/1E3]),x[37]!=-4&&(0,x[8])(x[32],x[40])}catch(u){(0,x[34])((0,x[30])(x[52],x[new Date("1969-12-31T17:01:07.000-07:00")/1E3])&(0,x[62])(x[19],(0,x[39])(),x[29]),x[30],x[6],x[61])}try{x[27]<-10&&(x[46]<7&&((0,x[30])(x[69],x[67]),1)||(0,x[53])(x[20],x[47])),x[42]!=new Date("1970-01-01T01:14:53.000+01:15")/1E3&&(x[33]===7&&((0,x[31])(x[32], x[22]),1)||(0,x[7])(x[33],x[67])),x[56]!=-1&&(x[27]!==-3&&((0,x[31])(x[20],x[26]),1)||(0,x[30])(x[0],x[20])),x[11]!==-3&&(x[26]==-9&&(((((0,x[30])(x[48],x[32]),x[31])(x[61],x[60]),x[34])((0,x[1])(x[29]),x[62],x[19],(0,x[12])(),x[20]),x[62])(x[19],(0,x[65])(),x[29]),"4")||(((0,x[7])(x[35],x[32]),(0,x[50])((0,x[23])(x[27],x[8]),x[32],x[65],x[17]),x[44])(x[58],x[1]),(0,x[64])(x[52],x[21])))}catch(u){(0,x[44])(x[20],x[new Date("1969-12-31T18:00:08.000-06:00")/1E3])/(0,x[36])(x[52]),(0,x[53])(x[10],(0,x[7])(), x[20]),(0,x[61])(x[20],x[65])}finally{x[55]!=6&&(0,x[66])((0,x[25])((0,x[71])(x[42],x[58]),x[70],x[54],x[67]),x[71],((0,x[70])(x[54],x[6]),(0,x[61])(x[54],x[29]),(0,x[12])(x[28]),x[59])(x[12]),x[67],x[new Date("1969-12-31T16:15:37.000-07:45")/1E3])}try{x[66]!=-4&&(x[45]>-8&&((0,x[26])(x[14],x[12]),1)||(0,x[42])(x[13],(0,x[39])(),x[3])),x[11]<=9&&(0,x[23])((0,x[26])(x[7],x[37]),x[32],x[43]),x[31]<=-9&&(x[52]===6?(0,x[new Date("1969-12-31T20:30:12.000-03:30")/1E3])(x[59]):(0,x[45])(x[60],x[71])),x[10]=== -1?(((0,x[41])((0,x[36])(x[67],x[25]),x[68],(0,x[47])((0,x[28])(x[57],(0,x[5])(),x[67]),x[28],x[57],(0,x[new Date("1969-12-31T15:30:31.000-08:30")/1E3])(),x[33]),x[2],x[67]),x[47])((0,x[28])(x[57],(0,x[31])(),x[33]),x[28],x[57],(0,x[50])(),x[67]),x[19])(x[29],x[66]):((0,x[38])(x[9633+-150*Math.pow(8,new Date("1969-12-31T21:30:02.000-02:30")/1E3)]),x[7])(((0,x[45])(x[58],x[9]),x[11])(x[67]),x[47],(0,x[44])(x[23],x[29]),x[52],x[40],x[58])<=((0,x[45])(x[2]),x[18])(x[5]),x[24]>=8&&(x[32]===-9||((0,x[17])((0,x[2])(x[66], x[3]),x[28],x[35],x[49]),0))&&(0,x[14])((0,x[33])(x[4],(0,x[7])(),x[28]),x[33],x[4],(0,x[30])(),x[66]),x[52]>=-6&&(x[12]==-9?(0,x[50])(x[34]):(0,x[17])(x[53],x[34]))}catch(u){(0,x[9])(x[53],(0,x[32])(),x[42]),(0,x[63])((0,x[72])(x[42]),x[72],x[8]),((0,x[18])(x[8],x[13]),x[26])(x[39]),(0,x[9])(x[53],(0,x[60])(),x[4])}}catch(u){return"2LSt1zJSwlQk50B7OL-_w8_"+V}return t.join("")}; Tms=function(V){return V,"application/json"[15+!!V]}; g.rI=function(V){this.name=V}; WVs=function(V){this.Ss=XA(V)}; T0=function(V){this.Ss=XA(V)}; Wp=function(V){this.Ss=XA(V)}; osT=function(V){this.Ss=XA(V)}; oi=function(V){this.Ss=XA(V)}; n0=function(V){this.Ss=XA(V)}; cp=function(V){this.Ss=XA(V)}; yb=function(V){this.Ss=XA(V)}; lt=function(V){this.Ss=XA(V)}; Hp=function(V){this.Ss=XA(V)}; UO=function(V){this.Ss=XA(V)}; D_=function(V){this.Ss=XA(V)}; C0=function(V){this.Ss=XA(V)}; Jt=function(V){this.Ss=XA(V)}; ht=function(V){this.Ss=XA(V)}; wI=function(V){this.Ss=XA(V,500)}; VA=function(V){this.Ss=XA(V)}; t6=function(V){this.Ss=XA(V)}; nsK=function(V){this.Ss=XA(V)}; cRK=function(){return g.nl("yt.ads.biscotti.lastId_")||""}; yRz=function(V){g.o9("yt.ads.biscotti.lastId_",V)}; u$=function(){var V=arguments,t=xc;V.length>1?t[V[0]]=V[1]:V.length===1&&Object.assign(t,V[0])}; g.Zc=function(V,t){return V in xc?xc[V]:t}; Pc=function(V){var t=xc.EXPERIMENT_FLAGS;return t?t[V]:void 0}; j1T=function(V){KJ.forEach(function(t){return t(V)})}; g.RW=function(V){return V&&window.yterr?function(){try{return V.apply(this,arguments)}catch(t){g.qc(t)}}:V}; g.qc=function(V){var t=g.nl("yt.logging.errors.log");t?t(V,"ERROR",void 0,void 0,void 0,void 0,void 0):(t=g.Zc("ERRORS",[]),t.push([V,"ERROR",void 0,void 0,void 0,void 0,void 0]),u$("ERRORS",t));j1T(V)}; fJ=function(V,t,x,u,Z){var P=g.nl("yt.logging.errors.log");P?P(V,"WARNING",t,x,u,void 0,Z):(P=g.Zc("ERRORS",[]),P.push([V,"WARNING",t,x,u,void 0,Z]),u$("ERRORS",P))}; $c=function(V,t){t=V.split(t);for(var x={},u=0,Z=t.length;u1?V[1]:V[0])):{}}; OQ=function(V,t){return Drw(V,t||{},!0)}; sQ=function(V,t){return Drw(V,t||{},!1)}; Drw=function(V,t,x){var u=V.split("#",2);V=u[0];u=u.length>1?"#"+u[1]:"";var Z=V.split("?",2);V=Z[0];Z=EQ(Z[1]||"");for(var P in t)if(x||!g.zW(Z,P))Z[P]=t[P];return g.CX(V,Z)+u}; Nc=function(V){if(!t)var t=window.location.href;var x=g.jO(1,V),u=g.lA(V);x&&u?(V=V.match(ym),t=t.match(ym),V=V[3]==t[3]&&V[1]==t[1]&&V[4]==t[4]):V=u?g.lA(t)===u&&(Number(g.jO(4,t))||null)===(Number(g.jO(4,V))||null):!0;return V}; pJ=function(V){V||(V=document.location.href);V=g.jO(1,V);return V!==null&&V==="https"}; A6=function(V){V=e9l(V);return V===null?!1:V[0]==="com"&&V[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; dr8=function(V){V=e9l(V);return V===null?!1:V[1]==="google"?!0:V[2]==="google"?V[0]==="au"&&V[1]==="com"?!0:V[0]==="uk"&&V[1]==="co"?!0:!1:!1}; e9l=function(V){V=g.lA(V);return V!==null?V.split(".").reverse():null}; lLq=function(V){return V&&V.match(CZq)?V:VR(V)}; IW=function(V){var t=SL;V=V===void 0?cRK():V;var x=Object,u=x.assign,Z=G9(t);var P=t.J;try{var K=P.screenX;var R=P.screenY}catch(M){}try{var f=P.outerWidth;var b=P.outerHeight}catch(M){}try{var E=P.innerWidth;var k=P.innerHeight}catch(M){}try{var O=P.screenLeft;var N=P.screenTop}catch(M){}try{E=P.innerWidth,k=P.innerHeight}catch(M){}try{var p=P.screen.availWidth;var I=P.screen.availTop}catch(M){}P=[O,N,K,R,p,I,f,b,E,k];K=sNw(!1,t.J.top);R={};var L=L===void 0?g.Ww:L;f=new V2;"SVGElement"in L&&"createElementNS"in L.document&&f.set(0);b=z28();b["allow-top-navigation-by-user-activation"]&&f.set(1);b["allow-popups-to-escape-sandbox"]&&f.set(2);L.crypto&&L.crypto.subtle&&f.set(3);"TextDecoder"in L&&"TextEncoder"in L&&f.set(4);L=FgK(f);t=(R.bc=L,R.bih=K.height,R.biw=K.width,R.brdim=P.join(),R.vis=Lk(t.S),R.wgl=!!GI.WebGLRenderingContext,R);x=u.call(x,Z,t);x.ca_type="image";V&&(x.bid=V);return x}; G9=function(V){var t={};t.dt=JRz;t.flash="0";a:{try{var x=V.J.top.location.href}catch(E){V=2;break a}V=x?x===V.S.location.href?0:1:2}t=(t.frm=V,t);try{t.u_tz=-(new Date).getTimezoneOffset();var u=u===void 0?GI:u;try{var Z=u.history.length}catch(E){Z=0}t.u_his=Z;var P;t.u_h=(P=GI.screen)==null?void 0:P.height;var K;t.u_w=(K=GI.screen)==null?void 0:K.width;var R;t.u_ah=(R=GI.screen)==null?void 0:R.availHeight;var f;t.u_aw=(f=GI.screen)==null?void 0:f.availWidth;var b;t.u_cd=(b=GI.screen)==null?void 0: b.colorDepth}catch(E){}return t}; wah=function(){if(!h9C)return null;var V=h9C();return"open"in V?V:null}; g.LJ=function(V){switch(vc(V)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; vc=function(V){return V&&"status"in V?V.status:-1}; g.FV=function(V,t){typeof V==="function"&&(V=g.RW(V));return window.setTimeout(V,t)}; g.Mc=function(V,t){typeof V==="function"&&(V=g.RW(V));return window.setInterval(V,t)}; g.g5=function(V){window.clearTimeout(V)}; g.XV=function(V){window.clearInterval(V)}; g.Bc=function(V){V=z9(V);return typeof V==="string"&&V==="false"?!1:!!V}; g.mB=function(V,t){V=z9(V);return V===void 0&&t!==void 0?t:Number(V||0)}; Yc=function(){return g.Zc("EXPERIMENTS_TOKEN","")}; z9=function(V){return g.Zc("EXPERIMENT_FLAGS",{})[V]}; QA=function(){for(var V=[],t=g.Zc("EXPERIMENTS_FORCED_FLAGS",{}),x=g.G(Object.keys(t)),u=x.next();!u.done;u=x.next())u=u.value,V.push({key:u,value:String(t[u])});x=g.Zc("EXPERIMENT_FLAGS",{});u=g.G(Object.keys(x));for(var Z=u.next();!Z.done;Z=u.next())Z=Z.value,Z.startsWith("force_")&&t[Z]===void 0&&V.push({key:Z,value:String(x[Z])});return V}; aW=function(V,t,x,u,Z,P,K,R){function f(){(b&&"readyState"in b?b.readyState:0)===4&&t&&g.RW(t)(b)} x=x===void 0?"GET":x;u=u===void 0?"":u;R=R===void 0?!1:R;var b=wah();if(!b)return null;"onloadend"in b?b.addEventListener("loadend",f,!1):b.onreadystatechange=f;g.Bc("debug_forward_web_query_parameters")&&(V=Vg1(V,window.location.search));b.open(x,V,!0);P&&(b.responseType=P);K&&(b.withCredentials=!0);x=x==="POST"&&(window.FormData===void 0||!(u instanceof FormData));if(Z=tgq(V,Z))for(var E in Z)b.setRequestHeader(E,Z[E]),"content-type"===E.toLowerCase()&&(x=!1);x&&b.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");if(R&&"setAttributionReporting"in XMLHttpRequest.prototype){V={eventSourceEligible:!0,triggerEligible:!1};try{b.setAttributionReporting(V)}catch(k){fJ(k)}}b.send(u);return b}; tgq=function(V,t){t=t===void 0?{}:t;var x=Nc(V),u=g.Zc("INNERTUBE_CLIENT_NAME"),Z=g.Bc("web_ajax_ignore_global_headers_if_set"),P;for(P in xaT){var K=g.Zc(xaT[P]),R=P==="X-Goog-AuthUser"||P==="X-Goog-PageId";P!=="X-Goog-Visitor-Id"||K||(K=g.Zc("VISITOR_DATA"));var f;if(!(f=!K)){if(!(f=x||(g.lA(V)?!1:!0))){f=V;var b;if(b=g.Bc("add_auth_headers_to_remarketing_google_dot_com_ping")&&P==="Authorization"&&(u==="TVHTML5"||u==="TVHTML5_UNPLUGGED"||u==="TVHTML5_SIMPLY")&&dr8(f))f=cM(g.jO(5,f))||"",f=f.split("/"), f="/"+(f.length>1?f[1]:""),b=f==="/pagead";f=b?!0:!1}f=!f}f||Z&&t[P]!==void 0||u==="TVHTML5_UNPLUGGED"&&R||(t[P]=K)}"X-Goog-EOM-Visitor-Id"in t&&"X-Goog-Visitor-Id"in t&&delete t["X-Goog-Visitor-Id"];if(x||!g.lA(V))t["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(x||!g.lA(V)){try{var E=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(k){}E&&(t["X-YouTube-Time-Zone"]=E)}document.location.hostname.endsWith("youtubeeducation.com")||!x&&g.lA(V)||(t["X-YouTube-Ad-Signals"]= b$(IW()));return t}; ZKw=function(V,t){var x=g.lA(V);g.Bc("debug_handle_relative_url_for_query_forward_killswitch")||!x&&Nc(V)&&(x=document.location.hostname);var u=cM(g.jO(5,V));u=(x=x&&(x.endsWith("youtube.com")||x.endsWith("youtube-nocookie.com")))&&u&&u.startsWith("/api/");if(!x||u)return V;var Z=EQ(t),P={};g.EA(uOC,function(K){Z[K]&&(P[K]=Z[K])}); return sQ(V,P)}; T9=function(V,t){t.method="POST";t.postParams||(t.postParams={});return g.r5(V,t)}; qqw=function(V,t){if(window.fetch&&t.format!=="XML"){var x={method:t.method||"GET",credentials:"same-origin"};t.headers&&(x.headers=t.headers);t.priority&&(x.priority=t.priority);V=Ph0(V,t);var u=KKl(V,t);u&&(x.body=u);t.withCredentials&&(x.credentials="include");var Z=t.context||g.Ww,P=!1,K;fetch(V,x).then(function(R){if(!P){P=!0;K&&g.g5(K);var f=R.ok,b=function(E){E=E||{};f?t.onSuccess&&t.onSuccess.call(Z,E,R):t.onError&&t.onError.call(Z,E,R);t.onFinish&&t.onFinish.call(Z,E,R)}; (t.format||"JSON")==="JSON"&&(f||R.status>=400&&R.status<500)?R.json().then(b,function(){b(null)}):b(null)}}).catch(function(){t.onError&&t.onError.call(Z,{},{})}); V=t.timeout||0;t.onFetchTimeout&&V>0&&(K=g.FV(function(){P||(P=!0,g.g5(K),t.onFetchTimeout.call(t.context||g.Ww))},V))}else g.r5(V,t)}; g.r5=function(V,t){var x=t.format||"JSON";V=Ph0(V,t);var u=KKl(V,t),Z=!1,P=Rz4(V,function(f){if(!Z){Z=!0;R&&g.g5(R);var b=g.LJ(f),E=null,k=400<=f.status&&f.status<500,O=500<=f.status&&f.status<600;if(b||k||O)E=fNC(V,x,f,t.convertToSafeHtml);b&&(b=$as(x,f,E));E=E||{};k=t.context||g.Ww;b?t.onSuccess&&t.onSuccess.call(k,f,E):t.onError&&t.onError.call(k,f,E);t.onFinish&&t.onFinish.call(k,f,E)}},t.method,u,t.headers,t.responseType,t.withCredentials); u=t.timeout||0;if(t.onTimeout&&u>0){var K=t.onTimeout;var R=g.FV(function(){Z||(Z=!0,P.abort(),g.g5(R),K.call(t.context||g.Ww,P))},u)}return P}; Ph0=function(V,t){t.includeDomain&&(V=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+V);var x=g.Zc("XSRF_FIELD_NAME");if(t=t.urlParams)t[x]&&delete t[x],V=OQ(V,t);return V}; KKl=function(V,t){var x=g.Zc("XSRF_FIELD_NAME"),u=g.Zc("XSRF_TOKEN"),Z=t.postBody||"",P=t.postParams,K=g.Zc("XSRF_FIELD_NAME"),R;t.headers&&(R=t.headers["Content-Type"]);t.excludeXsrf||g.lA(V)&&!t.withCredentials&&g.lA(V)!==document.location.hostname||t.method!=="POST"||R&&R!=="application/x-www-form-urlencoded"||t.postParams&&t.postParams[K]||(P||(P={}),P[x]=u);(g.Bc("ajax_parse_query_data_only_when_filled")&&P&&Object.keys(P).length>0||P)&&typeof Z==="string"&&(Z=EQ(Z),g.WO(Z,P),Z=t.postBodyFormat&& t.postBodyFormat==="JSON"?JSON.stringify(Z):g.dj(Z));P=Z||P&&!g.YE(P);!bKw&&P&&t.method!=="POST"&&(bKw=!0,g.qc(Error("AJAX request with postData should use POST")));return Z}; fNC=function(V,t,x,u){var Z=null;switch(t){case "JSON":try{var P=x.responseText}catch(K){throw u=Error("Error reading responseText"),u.params=V,fJ(u),K;}V=x.getResponseHeader("Content-Type")||"";P&&V.indexOf("json")>=0&&(P.substring(0,5)===")]}'\n"&&(P=P.substring(5)),Z=JSON.parse(P));break;case "XML":if(V=(V=x.responseXML)?ExT(V):null)Z={},g.EA(V.getElementsByTagName("*"),function(K){Z[K.tagName]=kp1(K)})}u&&iKj(Z); return Z}; iKj=function(V){if(g.lL(V))for(var t in V)t==="html_content"||cTC(t,"_html")?V[t]=n9(V[t]):iKj(V[t])}; $as=function(V,t,x){if(t&&t.status===204)return!0;switch(V){case "JSON":return!!x;case "XML":return Number(x&&x.return_code)===0;case "RAW":return!0;default:return!!x}}; ExT=function(V){return V?(V=("responseXML"in V?V.responseXML:V).getElementsByTagName("root"))&&V.length>0?V[0]:null:null}; kp1=function(V){var t="";g.EA(V.childNodes,function(x){t+=x.nodeValue}); return t}; oW=function(V,t){var x=g.rZ(t),u;return(new g.Ij(function(Z,P){x.onSuccess=function(K){g.LJ(K)?Z(new OKl(K)):P(new Wc("Request failed, status="+vc(K),"net.badstatus",K))}; x.onError=function(K){P(new Wc("Unknown request error","net.unknown",K))}; x.onTimeout=function(K){P(new Wc("Request timed out","net.timeout",K))}; u=g.r5(V,x)})).q9(function(Z){if(Z instanceof XC){var P; (P=u)==null||P.abort()}return FC(Z)})}; g.nJ=function(V,t,x,u){function Z(R,f,b){return R.q9(function(E){if(f<=0||vc(E.xhr)===403)return FC(new Wc("Request retried too many times","net.retryexhausted",E.xhr,E));E=Math.pow(2,x-f+1)*b;var k=K>0?Math.min(K,E):E;return P(b).then(function(){return Z(oW(V,t),f-1,k)})})} function P(R){return new g.Ij(function(f){setTimeout(f,R)})} var K=K===void 0?-1:K;return Z(oW(V,t),x-1,u)}; Wc=function(V,t,x){s$.call(this,V+", errorCode="+t);this.errorCode=t;this.xhr=x;this.name="PromiseAjaxError"}; OKl=function(V){this.xhr=V}; cc=function(V){this.J=V===void 0?null:V;this.N=0;this.S=null}; yA=function(V){var t=new cc;V=V===void 0?null:V;t.N=2;t.S=V===void 0?null:V;return t}; jL=function(V){var t=new cc;V=V===void 0?null:V;t.N=1;t.S=V===void 0?null:V;return t}; g.UQ=function(V,t,x,u,Z){l$||Hc.set(""+V,t,{No:x,path:"/",domain:u===void 0?"youtube.com":u,secure:Z===void 0?!1:Z})}; g.Dc=function(V,t){if(!l$)return Hc.get(""+V,t)}; g.eL=function(V,t,x){l$||Hc.remove(""+V,t===void 0?"/":t,x===void 0?"youtube.com":x)}; sys=function(){if(g.Bc("embeds_web_enable_cookie_detection_fix")){if(!g.Ww.navigator.cookieEnabled)return!1}else if(!Hc.isEnabled())return!1;if(!Hc.isEmpty())return!0;g.Bc("embeds_web_enable_cookie_detection_fix")?Hc.set("TESTCOOKIESENABLED","1",{No:60,F56:"none",secure:!0}):Hc.set("TESTCOOKIESENABLED","1",{No:60});if(Hc.get("TESTCOOKIESENABLED")!=="1")return!1;Hc.remove("TESTCOOKIESENABLED");return!0}; g.l=function(V,t){if(V)return V[t.name]}; d5=function(V){var t=g.Zc("INNERTUBE_HOST_OVERRIDE");t&&(V=String(t)+String(HM(V)));return V}; N99=function(V){var t={};g.Bc("json_condensed_response")&&(t.prettyPrint="false");return V=sQ(V,t)}; CJ=function(V,t){var x=x===void 0?{}:x;V={method:t===void 0?"POST":t,mode:Nc(V)?"same-origin":"cors",credentials:Nc(V)?"same-origin":"include"};t={};for(var u=g.G(Object.keys(x)),Z=u.next();!Z.done;Z=u.next())Z=Z.value,x[Z]&&(t[Z]=x[Z]);Object.keys(t).length>0&&(V.headers=t);return V}; J6=function(){var V=/Chrome\/(\d+)/.exec(g.zY());return V?parseFloat(V[1]):NaN}; w5=function(){return g.h6("android")&&g.h6("chrome")&&!(g.h6("trident/")||g.h6("edge/"))&&!g.h6("cobalt")}; p20=function(){return g.h6("armv7")||g.h6("aarch64")||g.h6("android")}; g.Vz=function(){return g.h6("cobalt")}; tD=function(){return g.h6("cobalt")&&g.h6("appletv")}; xD=function(){return g.h6("(ps3; leanback shell)")||g.h6("ps3")&&g.Vz()}; AJT=function(){return g.h6("(ps4; leanback shell)")||g.h6("ps4")&&g.Vz()}; g.Sq8=function(){return g.Vz()&&(g.h6("ps4 vr")||g.h6("ps4 pro vr"))}; us=function(){var V=/WebKit\/([0-9]+)/.exec(g.zY());return!!(V&&parseInt(V[1],10)>=600)}; Zk=function(){var V=/WebKit\/([0-9]+)/.exec(g.zY());return!!(V&&parseInt(V[1],10)>=602)}; GpK=function(){return g.h6("iemobile")||g.h6("windows phone")&&g.h6("edge")}; qU=function(){return(P4||Ky)&&g.h6("applewebkit")&&!g.h6("version")&&(!g.h6("safari")||g.h6("gsa/"))}; fy=function(){return g.RV&&g.h6("version/")}; $D=function(){return g.h6("smart-tv")&&g.h6("samsung")}; g.h6=function(V){var t=g.zY();return t?t.toLowerCase().indexOf(V)>=0:!1}; bs=function(){return jL0()||qU()||fy()?!0:g.Zc("EOM_VISITOR_DATA")?!1:!0}; E7=function(V,t){return t===void 0||t===null?V:t==="1"||t===!0||t===1||t==="True"?!0:!1}; kD=function(V,t,x){for(var u in x)if(x[u]==t)return x[u];return V}; is=function(V,t){return t===void 0||t===null?V:Number(t)}; O7=function(V,t){return t===void 0||t===null?V:t.toString()}; s7=function(V,t){if(t){if(V==="fullwidth")return Infinity;if(V==="fullheight")return 0}return V&&(t=V.match(INh))&&(V=Number(t[2]),t=Number(t[1]),!isNaN(V)&&!isNaN(t)&&V>0)?t/V:NaN}; NU=function(V){var t=V.docid||V.video_id||V.videoId||V.id;if(t)return t;t=V.raw_player_response;t||(V=V.player_response)&&(t=JSON.parse(V));return t&&t.videoDetails&&t.videoDetails.videoId||null}; vxL=function(V){return py(V,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.AD=function(V){return V==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||V==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; py=function(V,t){t=(t===void 0?0:t)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(t="EMBEDDED_PLAYER_MODE_PFL");var x=V.raw_embedded_player_response;if(!x&&(V=V.embedded_player_response))try{x=JSON.parse(V)}catch(u){return t}return x?kD(t,x.embeddedPlayerMode,LKj):t}; GF=function(V){s$.call(this,V.message||V.description||V.name);this.isMissing=V instanceof Se;this.isTimeout=V instanceof Wc&&V.errorCode=="net.timeout";this.isCanceled=V instanceof XC}; Se=function(){s$.call(this,"Biscotti ID is missing from server")}; FK9=function(){if(g.Bc("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!bs())return Error("User has not consented - not fetching biscotti id.");var V=g.Zc("PLAYER_VARS",{});if(g.QR(V,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(vxL(V))return Error("Biscotti id fetching has been disabled for pfl.")}; zzT=function(){var V=FK9();if(V!==void 0)return FC(V);IV||(IV=oW("//googleads.g.doubleclick.net/pagead/id",Mg8).then(gxl).q9(function(t){return X2s(2,t)})); return IV}; gxl=function(V){V=V.xhr.responseText;if(!GY(V,")]}'"))throw new Se;V=JSON.parse(V.substr(4));if((V.type||1)>1)throw new Se;V=V.id;yRz(V);IV=jL(V);B9K(18E5,2);return V}; X2s=function(V,t){t=new GF(t);yRz("");IV=yA(t);V>0&&B9K(12E4,V-1);throw t;}; B9K=function(V,t){g.FV(function(){oW("//googleads.g.doubleclick.net/pagead/id",Mg8).then(gxl,function(x){return X2s(t,x)}).q9(g.pX)},V)}; maj=function(){try{var V=g.nl("yt.ads.biscotti.getId_");return V?V():zzT()}catch(t){return FC(t)}}; Qyj=function(V){V&&(V.dataset?V.dataset[Yq0()]="true":zNK(V))}; aNw=function(V){return V?V.dataset?V.dataset[Yq0()]:V.getAttribute("data-loaded"):null}; Yq0=function(){return rJK.loaded||(rJK.loaded="loaded".replace(/\-([a-z])/g,function(V,t){return t.toUpperCase()}))}; T94=function(){var V=document;if("visibilityState"in V)return V.visibilityState;var t=v4+"VisibilityState";if(t in V)return V[t]}; Ly=function(V,t){var x;oo(V,function(u){x=t[u];return!!x}); return x}; F_=function(V){if(V.requestFullscreen)V=V.requestFullscreen(void 0);else if(V.webkitRequestFullscreen)V=V.webkitRequestFullscreen();else if(V.mozRequestFullScreen)V=V.mozRequestFullScreen();else if(V.msRequestFullscreen)V=V.msRequestFullscreen();else if(V.webkitEnterFullscreen)V=V.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return V instanceof Promise?V:Promise.resolve()}; X_=function(V){var t;g.MU()?gi()==V&&(t=document):t=V;return t&&(V=Ly(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],t))?(t=V.call(t),t instanceof Promise?t:Promise.resolve()):Promise.resolve()}; WK4=function(V){return g.ei(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(t){return"on"+t.toLowerCase()in V})}; oxq=function(){var V=document;return g.ei(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(t){return"on"+t.toLowerCase()in V})}; g.MU=function(){return!!Ly(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; gi=function(V){V=V===void 0?!1:V;var t=Ly(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(V)for(;t&&t.shadowRoot;)t=t.shadowRoot.fullscreenElement;return t?t:null}; zF=function(V){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(V=V||window.event){this.event=V;for(var t in V)t in nx1||(this[t]=V[t]);this.scale=V.scale;this.rotation=V.rotation;var x=V.target||V.srcElement;x&&x.nodeType==3&&(x=x.parentNode);this.target=x;var u=V.relatedTarget; if(u)try{u=u.nodeName?u:null}catch(Z){u=null}else this.type=="mouseover"?u=V.fromElement:this.type=="mouseout"&&(u=V.toElement);this.relatedTarget=u;this.clientX=V.clientX!=void 0?V.clientX:V.pageX;this.clientY=V.clientY!=void 0?V.clientY:V.pageY;this.keyCode=V.keyCode?V.keyCode:V.which;this.charCode=V.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=V.altKey;this.ctrlKey=V.ctrlKey;this.shiftKey=V.shiftKey;this.metaKey=V.metaKey;this.J=V.pageX;this.S=V.pageY}}catch(Z){}}; cJw=function(V){if(document.body&&document.documentElement){var t=document.body.scrollTop+document.documentElement.scrollTop;V.J=V.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);V.S=V.clientY+t}}; yJh=function(V,t,x,u){u=u===void 0?{}:u;V.addEventListener&&(t!="mouseenter"||"onmouseenter"in document?t!="mouseleave"||"onmouseenter"in document?t=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(t="MozMousePixelScroll"):t="mouseout":t="mouseover");return mS(B4,function(Z){var P=typeof Z[4]==="boolean"&&Z[4]==!!u,K=g.lL(Z[4])&&g.lL(u)&&g.aG(Z[4],u);return!!Z.length&&Z[0]==V&&Z[1]==t&&Z[2]==x&&(P||K)})}; g.mD=function(V,t,x,u){u=u===void 0?{}:u;if(!V||!V.addEventListener&&!V.attachEvent)return"";var Z=yJh(V,t,x,u);if(Z)return Z;Z=++jyK.count+"";var P=!(t!="mouseenter"&&t!="mouseleave"||!V.addEventListener||"onmouseenter"in document);var K=P?function(R){R=new zF(R);if(!bc(R.relatedTarget,function(f){return f==V},!0))return R.currentTarget=V,R.type=t,x.call(V,R)}:function(R){R=new zF(R); R.currentTarget=V;return x.call(V,R)}; K=g.RW(K);V.addEventListener?(t=="mouseenter"&&P?t="mouseover":t=="mouseleave"&&P?t="mouseout":t=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(t="MozMousePixelScroll"),lNL()||typeof u==="boolean"?V.addEventListener(t,K,u):V.addEventListener(t,K,!!u.capture)):V.attachEvent("on"+t,K);B4[Z]=[V,t,x,K,u];return Z}; Uaq=function(V){return HKT(V,function(t){return g.i6(t,"ytp-ad-has-logging-urls")})}; HKT=function(V,t){var x=document.body||document;return g.mD(x,"click",function(u){var Z=bc(u.target,function(P){return P===x||t(P)},!0); Z&&Z!==x&&!Z.disabled&&(u.currentTarget=Z,V.call(Z,u))})}; g.YD=function(V){V&&(typeof V=="string"&&(V=[V]),g.EA(V,function(t){if(t in B4){var x=B4[t],u=x[0],Z=x[1],P=x[3];x=x[4];u.removeEventListener?lNL()||typeof x==="boolean"?u.removeEventListener(Z,P,x):u.removeEventListener(Z,P,!!x.capture):u.detachEvent&&u.detachEvent("on"+Z,P);delete B4[t]}}))}; Qz=function(V){for(var t in B4)B4[t][0]==V&&g.YD(t)}; aV=function(V){V=V||window.event;var t;V.composedPath&&typeof V.composedPath==="function"?t=V.composedPath():t=V.path;t&&t.length?V=t[0]:(V=V||window.event,V=V.target||V.srcElement,V.nodeType==3&&(V=V.parentNode));return V}; ri=function(V){this.L=V;this.J=null;this.W=0;this.B=null;this.G=0;this.S=[];for(V=0;V<4;V++)this.S.push(0);this.N=0;this.wk=g.mD(window,"mousemove",(0,g.ej)(this.X,this));this.C=g.Mc((0,g.ej)(this.Ij,this),25)}; TF=function(V){g.c.call(this);this.L=[];this.Tc=V||this}; W4=function(V,t,x,u){for(var Z=0;Z0?x:0;x=u?Date.now()+u*1E3:0;if((u=u?(0,g.c4)():yz())&&window.JSON){typeof t!=="string"&&(t=JSON.stringify(t,void 0));try{u.set(V,t,x)}catch(Z){u.remove(V)}}}; g.ls=function(V){var t=yz(),x=(0,g.c4)();if(!t&&!x||!window.JSON)return null;try{var u=t.get(V)}catch(Z){}if(typeof u!=="string")try{u=x.get(V)}catch(Z){}if(typeof u!=="string")return null;try{u=JSON.parse(u,void 0)}catch(Z){}return u}; dal=function(){var V=(0,g.c4)();if(V&&(V=V.S("yt-player-quality")))return V.creation}; g.H4=function(V){try{var t=yz(),x=(0,g.c4)();t&&t.remove(V);x&&x.remove(V)}catch(u){}}; g.U7=function(){return g.ls("yt-remote-session-screen-id")}; Chz=function(V){var t=this;this.S=void 0;this.J=!1;V.addEventListener("beforeinstallprompt",function(x){x.preventDefault();t.S=x}); V.addEventListener("appinstalled",function(){t.J=!0},{once:!0})}; Dk=function(){if(!g.Ww.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Ww.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Ww.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Ww.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Ww.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(V){return"WEB_DISPLAY_MODE_UNKNOWN"}}; ee=function(){this.tX=!0}; JJz=function(){ee.instance||(ee.instance=new ee);return ee.instance}; hz0=function(V){switch(V){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}}; w2C=function(){this.J=g.Zc("ALT_PREF_COOKIE_NAME","PREF");this.S=g.Zc("ALT_PREF_COOKIE_DOMAIN","youtube.com");var V=g.Dc(this.J);V&&this.parse(V)}; g.Cy=function(){di||(di=new w2C);return di}; g.JD=function(V,t){return!!((V0j("f"+(Math.floor(t/31)+1))||0)&1<0;)switch(V=Av.shift(),V.type){case "ERROR":On.eM(V.payload);break;case "EVENT":On.logEvent(V.eventType,V.payload)}}; Gu=function(V){Sp||(On?On.eM(V):(Av.push({type:"ERROR",payload:V}),Av.length>10&&Av.shift()))}; I4=function(V,t){Sp||(On?On.logEvent(V,t):(Av.push({type:"EVENT",eventType:V,payload:t}),Av.length>10&&Av.shift()))}; vr=function(V){if(V.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; Lq=function(V){return V.substr(0,V.indexOf(":"))||V}; g.FM=function(V,t,x,u,Z){t=t===void 0?{}:t;x=x===void 0?RJ9[V]:x;u=u===void 0?fr9[V]:u;Z=Z===void 0?$KC[V]:Z;g.xe.call(this,x,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:V},t));this.type=V;this.message=x;this.level=u;this.J=Z;Object.setPrototypeOf(this,g.FM.prototype)}; M3=function(V,t){g.FM.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:t,foundObjectStores:V},RJ9.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,M3.prototype)}; gu=function(V,t){var x=Error.call(this);this.message=x.message;"stack"in x&&(this.stack=x.stack);this.index=V;this.objectStore=t;Object.setPrototypeOf(this,gu.prototype)}; zu=function(V,t,x,u){t=Lq(t);var Z=V instanceof Error?V:Error("Unexpected error: "+V);if(Z instanceof g.FM)return Z;V={objectStoreNames:x,dbName:t,dbVersion:u};if(Z.name==="QuotaExceededError")return new g.FM("QUOTA_EXCEEDED",V);if(g.XM&&Z.name==="UnknownError")return new g.FM("QUOTA_MAYBE_EXCEEDED",V);if(Z instanceof gu)return new g.FM("MISSING_INDEX",Object.assign({},V,{objectStore:Z.objectStore,index:Z.index}));if(Z.name==="InvalidStateError"&&bbw.some(function(P){return Z.message.includes(P)}))return new g.FM("EXECUTE_TRANSACTION_ON_CLOSED_DB", V); if(Z.name==="AbortError")return new g.FM("UNKNOWN_ABORT",V,Z.message);Z.args=[Object.assign({},V,{name:"IdbError",pS:Z.name})];Z.level="WARNING";return Z}; g.Br=function(V,t,x){var u=iU();return new g.FM("IDB_NOT_SUPPORTED",{context:{caller:V,publicName:t,version:x,hasSucceededOnce:u==null?void 0:u.hasSucceededOnce}})}; EyC=function(V){if(!V)throw Error();throw V;}; k64=function(V){return V}; mH=function(V){this.J=V}; g.Ye=function(V){function t(Z){if(u.state.status==="PENDING"){u.state={status:"REJECTED",reason:Z};Z=g.G(u.S);for(var P=Z.next();!P.done;P=Z.next())P=P.value,P()}} function x(Z){if(u.state.status==="PENDING"){u.state={status:"FULFILLED",value:Z};Z=g.G(u.J);for(var P=Z.next();!P.done;P=Z.next())P=P.value,P()}} var u=this;this.state={status:"PENDING"};this.J=[];this.S=[];V=V.J;try{V(x,t)}catch(Z){t(Z)}}; ibj=function(V,t,x,u,Z){try{if(V.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var P=x(V.state.value);P instanceof g.Ye?QU(V,t,P,u,Z):u(P)}catch(K){Z(K)}}; Obz=function(V,t,x,u,Z){try{if(V.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var P=x(V.state.reason);P instanceof g.Ye?QU(V,t,P,u,Z):u(P)}catch(K){Z(K)}}; QU=function(V,t,x,u,Z){t===x?Z(new TypeError("Circular promise chain detected.")):x.then(function(P){P instanceof g.Ye?QU(V,t,P,u,Z):u(P)},function(P){Z(P)})}; sO8=function(V,t,x){function u(){x(V.error);P()} function Z(){t(V.result);P()} function P(){try{V.removeEventListener("success",Z),V.removeEventListener("error",u)}catch(K){}} V.addEventListener("success",Z);V.addEventListener("error",u)}; Nyz=function(V){return new Promise(function(t,x){sO8(V,t,x)})}; a4=function(V){return new g.Ye(new mH(function(t,x){sO8(V,t,x)}))}; ru=function(V,t){return new g.Ye(new mH(function(x,u){function Z(){var P=V?t(V):null;P?P.then(function(K){V=K;Z()},u):x()} Z()}))}; pkq=function(V,t){this.request=V;this.cursor=t}; Aml=function(V){return a4(V).then(function(t){return t?new pkq(V,t):null})}; g.SU9=function(V){V.cursor.continue(void 0);return Aml(V.request)}; G6C=function(V,t){this.J=V;this.options=t;this.transactionCount=0;this.N=Math.round((0,g.Tu)());this.S=!1}; g.o4=function(V,t,x){V=V.J.createObjectStore(t,x);return new Wr(V)}; nq=function(V,t){V.J.objectStoreNames.contains(t)&&V.J.deleteObjectStore(t)}; g.jp=function(V,t,x){return g.cr(V,[t],{mode:"readwrite",LI:!0},function(u){return g.yU(u.objectStore(t),x)})}; g.cr=function(V,t,x,u){var Z,P,K,R,f,b,E,k,O,N,p,I;return g.Q(function(L){switch(L.J){case 1:var M={mode:"readonly",LI:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof x==="string"?M.mode=x:Object.assign(M,x);Z=M;V.transactionCount++;P=Z.LI?3:1;K=0;case 2:if(R){L.FX(4);break}K++;f=Math.round((0,g.Tu)());g.AT(L,5);b=V.J.transaction(t,Z.mode);M=new lU(b);M=IrK(M,u);return g.m(L,M,7);case 7:return E=L.S,k=Math.round((0,g.Tu)()),vy8(V,f,k,K,void 0,t.join(),Z),L.return(E);case 5:O=g.I9(L);N=Math.round((0,g.Tu)()); p=zu(O,V.J.name,t.join(),V.J.version);if((I=p instanceof g.FM&&!p.J)||K>=P)vy8(V,f,N,K,p,t.join(),Z),R=p;L.FX(2);break;case 4:return L.return(Promise.reject(R))}})}; vy8=function(V,t,x,u,Z,P,K){t=x-t;Z?(Z instanceof g.FM&&(Z.type==="QUOTA_EXCEEDED"||Z.type==="QUOTA_MAYBE_EXCEEDED")&&I4("QUOTA_EXCEEDED",{dbName:Lq(V.J.name),objectStoreNames:P,transactionCount:V.transactionCount,transactionMode:K.mode}),Z instanceof g.FM&&Z.type==="UNKNOWN_ABORT"&&(x-=V.N,x<0&&x>=2147483648&&(x=0),I4("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:P,transactionDuration:t,transactionCount:V.transactionCount,dbDuration:x}),V.S=!0),Lm8(V,!1,u,P,t,K.tag),Gu(Z)):Lm8(V,!0,u,P,t, K.tag)}; Lm8=function(V,t,x,u,Z,P){I4("TRANSACTION_ENDED",{objectStoreNames:u,connectionHasUnknownAbortedTransaction:V.S,duration:Z,isSuccessful:t,tryCount:x,tag:P===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":P})}; Wr=function(V){this.J=V}; g.Hr=function(V,t,x){V.J.createIndex(t,x,{unique:!1})}; Fmh=function(V,t){return g.Un(V,{query:t},function(x){return x.delete().then(function(){return g.Dw(x)})}).then(function(){})}; M0z=function(V,t,x){var u=[];return g.Un(V,{query:t},function(Z){if(!(x!==void 0&&u.length>=x))return u.push(Z.getValue()),g.Dw(Z)}).then(function(){return u})}; XkK=function(V){return"getAllKeys"in IDBObjectStore.prototype?a4(V.J.getAllKeys(void 0,void 0)):gyz(V)}; gyz=function(V){var t=[];return g.zJK(V,{query:void 0},function(x){t.push(x.cursor.primaryKey);return g.SU9(x)}).then(function(){return t})}; g.yU=function(V,t,x){return a4(V.J.put(t,x))}; g.Un=function(V,t,x){V=V.J.openCursor(t.query,t.direction);return ep(V).then(function(u){return ru(u,x)})}; g.zJK=function(V,t,x){var u=t.query;t=t.direction;V="openKeyCursor"in IDBObjectStore.prototype?V.J.openKeyCursor(u,t):V.J.openCursor(u,t);return Aml(V).then(function(Z){return ru(Z,x)})}; lU=function(V){var t=this;this.J=V;this.N=new Map;this.S=!1;this.done=new Promise(function(x,u){t.J.addEventListener("complete",function(){x()}); t.J.addEventListener("error",function(Z){Z.currentTarget===Z.target&&u(t.J.error)}); t.J.addEventListener("abort",function(){var Z=t.J.error;if(Z)u(Z);else if(!t.S){Z=g.FM;for(var P=t.J.objectStoreNames,K=[],R=0;R=x))return u.push(Z.getValue()),g.Dw(Z)}).then(function(){return u})}; g.du=function(V,t,x){V=V.J.openCursor(t.query===void 0?null:t.query,t.direction===void 0?"next":t.direction);return ep(V).then(function(u){return ru(u,x)})}; Cq=function(V,t){this.request=V;this.cursor=t}; ep=function(V){return a4(V).then(function(t){return t?new Cq(V,t):null})}; g.Dw=function(V){V.cursor.continue(void 0);return ep(V.request)}; YU0=function(V,t,x){return new Promise(function(u,Z){function P(){O||(O=new G6C(K.result,{closed:k}));return O} var K=t!==void 0?self.indexedDB.open(V,t):self.indexedDB.open(V);var R=x.blocked,f=x.blocking,b=x.Y8w,E=x.upgrade,k=x.closed,O;K.addEventListener("upgradeneeded",function(N){try{if(N.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(K.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");N.dataLoss&&N.dataLoss!=="none"&&I4("IDB_DATA_CORRUPTED",{reason:N.dataLossMessage||"unknown reason",dbName:Lq(V)});var p=P(),I=new lU(K.transaction); E&&E(p,function(L){return N.oldVersion=L},I); I.done.catch(function(L){Z(L)})}catch(L){Z(L)}}); K.addEventListener("success",function(){var N=K.result;f&&N.addEventListener("versionchange",function(){f(P())}); N.addEventListener("close",function(){I4("IDB_UNEXPECTEDLY_CLOSED",{dbName:Lq(V),dbVersion:N.version});b&&b()}); u(P())}); K.addEventListener("error",function(){Z(K.error)}); R&&K.addEventListener("blocked",function(){R()})})}; QOL=function(V,t,x){x=x===void 0?{}:x;return YU0(V,t,x)}; Jv=function(V,t){t=t===void 0?{}:t;var x,u,Z,P;return g.Q(function(K){if(K.J==1)return g.AT(K,2),x=self.indexedDB.deleteDatabase(V),u=t,(Z=u.blocked)&&x.addEventListener("blocked",function(){Z()}),g.m(K,Nyz(x),4); if(K.J!=2)return g.GK(K,0);P=g.I9(K);throw zu(P,V,"",-1);})}; hv=function(V,t){this.name=V;this.options=t;this.N=!0;this.G=this.W=0}; arL=function(V,t){return new g.FM("INCOMPATIBLE_DB_VERSION",{dbName:V.name,oldVersion:V.options.version,newVersion:t})}; g.wu=function(V,t){if(!t)throw g.Br("openWithToken",Lq(V.name));return V.open()}; rm8=function(V,t){var x;return g.Q(function(u){if(u.J==1)return g.m(u,g.wu(V7,t),2);x=u.S;return u.return(g.cr(x,["databases"],{LI:!0,mode:"readwrite"},function(Z){var P=Z.objectStore("databases");return P.get(V.actualName).then(function(K){if(K?V.actualName!==K.actualName||V.publicName!==K.publicName||V.userIdentifier!==K.userIdentifier:1)return g.yU(P,V).then(function(){})})}))})}; t7=function(V,t){var x;return g.Q(function(u){if(u.J==1)return V?g.m(u,g.wu(V7,t),2):u.return();x=u.S;return u.return(x.delete("databases",V))})}; Ty4=function(V,t){var x,u;return g.Q(function(Z){return Z.J==1?(x=[],g.m(Z,g.wu(V7,t),2)):Z.J!=3?(u=Z.S,g.m(Z,g.cr(u,["databases"],{LI:!0,mode:"readonly"},function(P){x.length=0;return g.Un(P.objectStore("databases"),{},function(K){V(K.getValue())&&x.push(K.getValue());return g.Dw(K)})}),3)):Z.return(x)})}; Wmh=function(V,t){return Ty4(function(x){return x.publicName===V&&x.userIdentifier!==void 0},t)}; oyq=function(){var V,t,x,u;return g.Q(function(Z){switch(Z.J){case 1:V=iU();if((t=V)==null?0:t.hasSucceededOnce)return Z.return(!0);if(xp&&us()&&!Zk()||g.u0)return Z.return(!1);try{if(x=self,!(x.indexedDB&&x.IDBIndex&&x.IDBKeyRange&&x.IDBObjectStore))return Z.return(!1)}catch(P){return Z.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return Z.return(!1);g.AT(Z,2);u={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.m(Z,rm8(u,Z$),4);case 4:return g.m(Z,t7("yt-idb-test-do-not-use",Z$),5);case 5:return Z.return(!0);case 2:return g.I9(Z),Z.return(!1)}})}; ny4=function(){if(Po!==void 0)return Po;Sp=!0;return Po=oyq().then(function(V){Sp=!1;var t;if((t=ke())!=null&&t.J){var x;t={hasSucceededOnce:((x=iU())==null?void 0:x.hasSucceededOnce)||V};var u;(u=ke())==null||u.set("LAST_RESULT_ENTRY_KEY",t,2592E3,!0)}return V})}; Kg=function(){return g.nl("ytglobal.idbToken_")||void 0}; g.qR=function(){var V=Kg();return V?Promise.resolve(V):ny4().then(function(t){(t=t?Z$:void 0)&&g.o9("ytglobal.idbToken_",t);return t})}; cmK=function(V){if(!g.Zw())throw V=new g.FM("AUTH_INVALID",{dbName:V}),Gu(V),V;var t=g.uU();return{actualName:V+":"+t,publicName:V,userIdentifier:t}}; ym1=function(V,t,x,u){var Z,P,K,R,f,b;return g.Q(function(E){switch(E.J){case 1:return P=(Z=Error().stack)!=null?Z:"",g.m(E,g.qR(),2);case 2:K=E.S;if(!K)throw R=g.Br("openDbImpl",V,t),g.Bc("ytidb_async_stack_killswitch")||(R.stack=R.stack+"\n"+P.substring(P.indexOf("\n")+1)),Gu(R),R;vr(V);f=x?{actualName:V,publicName:V,userIdentifier:void 0}:cmK(V);g.AT(E,3);return g.m(E,rm8(f,K),5);case 5:return g.m(E,QOL(f.actualName,t,u),6);case 6:return E.return(E.S);case 3:return b=g.I9(E),g.AT(E,7),g.m(E,t7(f.actualName, K),9);case 9:g.GK(E,8);break;case 7:g.I9(E);case 8:throw b;}})}; jOT=function(V,t,x){x=x===void 0?{}:x;return ym1(V,t,!1,x)}; lrC=function(V,t,x){x=x===void 0?{}:x;return ym1(V,t,!0,x)}; Hbh=function(V,t){t=t===void 0?{}:t;var x,u;return g.Q(function(Z){if(Z.J==1)return g.m(Z,g.qR(),2);if(Z.J!=3){x=Z.S;if(!x)return Z.return();vr(V);u=cmK(V);return g.m(Z,Jv(u.actualName,t),3)}return g.m(Z,t7(u.actualName,x),0)})}; UKL=function(V,t,x){V=V.map(function(u){return g.Q(function(Z){return Z.J==1?g.m(Z,Jv(u.actualName,t),2):g.m(Z,t7(u.actualName,x),0)})}); return Promise.all(V).then(function(){})}; DK0=function(V){var t=t===void 0?{}:t;var x,u;return g.Q(function(Z){if(Z.J==1)return g.m(Z,g.qR(),2);if(Z.J!=3){x=Z.S;if(!x)return Z.return();vr(V);return g.m(Z,Wmh(V,x),3)}u=Z.S;return g.m(Z,UKL(u,t,x),0)})}; eJq=function(V,t){t=t===void 0?{}:t;var x;return g.Q(function(u){if(u.J==1)return g.m(u,g.qR(),2);if(u.J!=3){x=u.S;if(!x)return u.return();vr(V);return g.m(u,Jv(V,t),3)}return g.m(u,t7(V,x),0)})}; R8=function(V,t){hv.call(this,V,t);this.options=t;vr(V)}; dKK=function(V,t){var x;return function(){x||(x=new R8(V,t));return x}}; g.fg=function(V,t){return dKK(V,t)}; $p=function(V){return g.wu(C6j(),V)}; JmL=function(V,t,x,u){var Z,P,K;return g.Q(function(R){switch(R.J){case 1:return Z={config:V,hashData:t,timestamp:u!==void 0?u:(0,g.Tu)()},g.m(R,$p(x),2);case 2:return P=R.S,g.m(R,P.clear("hotConfigStore"),3);case 3:return g.m(R,g.jp(P,"hotConfigStore",Z),4);case 4:return K=R.S,R.return(K)}})}; hJl=function(V,t,x,u,Z){var P,K,R;return g.Q(function(f){switch(f.J){case 1:return P={config:V,hashData:t,configData:x,timestamp:Z!==void 0?Z:(0,g.Tu)()},g.m(f,$p(u),2);case 2:return K=f.S,g.m(f,K.clear("coldConfigStore"),3);case 3:return g.m(f,g.jp(K,"coldConfigStore",P),4);case 4:return R=f.S,f.return(R)}})}; wkl=function(V){var t,x;return g.Q(function(u){return u.J==1?g.m(u,$p(V),2):u.J!=3?(t=u.S,x=void 0,g.m(u,g.cr(t,["coldConfigStore"],{mode:"readwrite",LI:!0},function(Z){return g.du(Z.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(P){x=P.getValue()})}),3)):u.return(x)})}; VaL=function(V){var t,x;return g.Q(function(u){return u.J==1?g.m(u,$p(V),2):u.J!=3?(t=u.S,x=void 0,g.m(u,g.cr(t,["hotConfigStore"],{mode:"readwrite",LI:!0},function(Z){return g.du(Z.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(P){x=P.getValue()})}),3)):u.return(x)})}; ta9=function(){return g.Q(function(V){return g.m(V,DK0("ytGcfConfig"),0)})}; b0=function(){g.c.call(this);this.S=[];this.J=[];var V=g.nl("yt.gcf.config.hotUpdateCallbacks");V?(this.S=[].concat(g.v(V)),this.J=V):(this.J=[],g.o9("yt.gcf.config.hotUpdateCallbacks",this.J))}; pg=function(){var V=this;this.G=!1;this.N=this.W=0;this.B=new b0;this.Wk={Qls:function(){V.G=!0}, kWS:function(){return V.J}, nHD:function(t){Et(V,t)}, dl:function(t){V.dl(t)}, q7U:function(t){kp(V,t)}, SG:function(){return V.coldHashData}, Y1:function(){return V.hotHashData}, FSw:function(){return V.S}, ifj:function(){return i0()}, m4X:function(){return Ot()}, NZ6:function(){return g.nl("yt.gcf.config.coldHashData")}, WSj:function(){return g.nl("yt.gcf.config.hotHashData")}, hID:function(){xgw(V)}, rzs:function(){V.dl(void 0);NR(V);delete pg.instance}, kfs:function(t){V.N=t}, JsC:function(){return V.N}}}; u6h=function(){if(!pg.instance){var V=new pg;pg.instance=V}return pg.instance}; Kz9=function(V){var t;g.Q(function(x){if(x.J==1)return g.Bc("start_client_gcf")||g.Bc("delete_gcf_config_db")?g.Bc("start_client_gcf")?g.m(x,g.qR(),3):x.FX(2):x.return();x.J!=2&&((t=x.S)&&g.Zw()&&!g.Bc("delete_gcf_config_db")?(V.G=!0,xgw(V)):(Z04(V),Pth(V)));return g.Bc("delete_gcf_config_db")?g.m(x,ta9(),0):x.FX(0)})}; A7=function(){var V;return(V=Ot())!=null?V:g.Zc("RAW_HOT_CONFIG_GROUP")}; qO1=function(V){var t,x,u,Z,P,K;return g.Q(function(R){switch(R.J){case 1:if(V.S)return R.return(Ot());if(!V.G)return t=g.Br("getHotConfig IDB not initialized"),fJ(t),R.return(Promise.reject(t));x=Kg();u=g.Zc("TIME_CREATED_MS");if(!x){Z=g.Br("getHotConfig token error");fJ(Z);R.FX(2);break}return g.m(R,VaL(x),3);case 3:if((P=R.S)&&P.timestamp>u)return Et(V,P.config),V.dl(P.hashData),R.return(Ot());case 2:Pth(V);if(!(x&&V.S&&V.hotHashData)){R.FX(4);break}return g.m(R,JmL(V.S,V.hotHashData,x,u),4);case 4:return V.S? R.return(Ot()):(K=new g.xe("Config not available in ytConfig"),fJ(K),R.return(Promise.reject(K)))}})}; f_L=function(V){var t,x,u,Z,P,K;return g.Q(function(R){switch(R.J){case 1:if(V.J)return R.return(i0());if(!V.G)return t=g.Br("getColdConfig IDB not initialized"),fJ(t),R.return(Promise.reject(t));x=Kg();u=g.Zc("TIME_CREATED_MS");if(!x){Z=g.Br("getColdConfig");fJ(Z);R.FX(2);break}return g.m(R,wkl(x),3);case 3:if((P=R.S)&&P.timestamp>u)return kp(V,P.config),R6L(V,P.configData),NR(V,P.hashData),R.return(i0());case 2:Z04(V);if(!(x&&V.J&&V.coldHashData&&V.configData)){R.FX(4);break}return g.m(R,hJl(V.J, V.coldHashData,V.configData,x,u),4);case 4:return V.J?R.return(i0()):(K=new g.xe("Config not available in ytConfig"),fJ(K),R.return(Promise.reject(K)))}})}; xgw=function(V){if(!V.S||!V.J){if(!Kg()){var t=g.Br("scheduleGetConfigs");fJ(t)}V.W||(V.W=g.w9.dg(function(){return g.Q(function(x){switch(x.J){case 1:return g.AT(x,2),g.m(x,qO1(V),4);case 4:g.GK(x,3);break;case 2:g.I9(x);case 3:return g.AT(x,5),g.m(x,f_L(V),7);case 7:g.GK(x,6);break;case 5:g.I9(x);case 6:V.W&&(V.W=0),g.pl(x)}})},100))}}; $g9=function(V,t,x){var u,Z,P;return g.Q(function(K){switch(K.J){case 1:if(!g.Bc("start_client_gcf")){K.FX(0);break}x&&Et(V,x);V.dl(t);u=Kg();if(!u){K.FX(3);break}if(x){K.FX(4);break}return g.m(K,VaL(u),5);case 5:Z=K.S,x=(P=Z)==null?void 0:P.config;case 4:return g.m(K,JmL(x,t,u),3);case 3:if(x)for(var R=x,f=g.G(V.B.J),b=f.next();!b.done;b=f.next())b=b.value,b(R);g.pl(K)}})}; b0L=function(V,t,x){var u,Z,P,K;return g.Q(function(R){if(R.J==1){if(!g.Bc("start_client_gcf"))return R.FX(0);NR(V,t);return(u=Kg())?x?R.FX(4):g.m(R,wkl(u),5):R.FX(0)}R.J!=4&&(Z=R.S,x=(P=Z)==null?void 0:P.config);if(!x)return R.FX(0);K=x.configData;return g.m(R,hJl(x,t,K,u),0)})}; E6T=function(){var V=u6h(),t=(0,g.Tu)()-V.N;if(!(V.N!==0&&t0&&(t.request={internalExperimentFlags:x});i0K(V,void 0,t);O0T(void 0,t);sis(void 0,t);NI0(V,void 0,t);pph(void 0,t);g.Bc("start_client_gcf")&&At8(void 0,t);g.Zc("DELEGATED_SESSION_ID")&& !g.Bc("pageid_as_header_web")&&(t.user={onBehalfOfUser:g.Zc("DELEGATED_SESSION_ID")});!g.Bc("fill_delegate_context_in_gel_killswitch")&&(V=g.Zc("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(t.user=Object.assign({},t.user,{serializedDelegationContext:V}));V=g.Zc("INNERTUBE_CONTEXT");var u;if(g.Bc("enable_persistent_device_token")&&(V==null?0:(u=V.client)==null?0:u.rolloutToken)){var Z;t.client.rolloutToken=V==null?void 0:(Z=V.client)==null?void 0:Z.rolloutToken}u=Object;Z=u.assign;V=t.client; x={};for(var P=g.G(Object.entries(EQ(g.Zc("DEVICE","")))),K=P.next();!K.done;K=P.next()){var R=g.G(K.value);K=R.next().value;R=R.next().value;K==="cbrand"?x.deviceMake=R:K==="cmodel"?x.deviceModel=R:K==="cbr"?x.browserName=R:K==="cbrver"?x.browserVersion=R:K==="cos"?x.osName=R:K==="cosver"?x.osVersion=R:K==="cplatform"&&(x.platform=R)}t.client=Z.call(u,V,x);return t}; i0K=function(V,t,x){V=V.Dx;if(V==="WEB"||V==="MWEB"||V===1||V===2)if(t){x=KP(t,Wp,96)||new Wp;var u=Dk();u=Object.keys(SOC).indexOf(u);u=u===-1?null:u;u!==null&&pP(x,3,u);qP(t,Wp,96,x)}else x&&(x.client.mainAppWebInfo=(u=x.client.mainAppWebInfo)!=null?u:{},x.client.mainAppWebInfo.webDisplayMode=Dk())}; O0T=function(V,t){var x=g.nl("yt.embedded_player.embed_url");x&&(V?(t=KP(V,lt,7)||new lt,sL(t,4,x),qP(V,lt,7,t)):t&&(t.thirdParty={embedUrl:x}))}; sis=function(V,t){var x;if(g.Bc("web_log_memory_total_kbytes")&&((x=g.Ww.navigator)==null?0:x.deviceMemory)){var u;x=(u=g.Ww.navigator)==null?void 0:u.deviceMemory;V?oL(V,95,SV(x*1E6)):t&&(t.client.memoryTotalKbytes=""+x*1E6)}}; NI0=function(V,t,x){if(V.appInstallData)if(t){var u;x=(u=KP(t,T0,62))!=null?u:new T0;sL(x,6,V.appInstallData);qP(t,T0,62,x)}else x&&(x.client.configInfo=x.client.configInfo||{},x.client.configInfo.appInstallData=V.appInstallData)}; pph=function(V,t){var x=uaj();x&&(V?pP(V,61,G00[x]):t&&(t.client.connectionType=x));g.Bc("web_log_effective_connection_type")&&(x=P6h())&&(V?pP(V,94,I_4[x]):t&&(t.client.effectiveConnectionType=x))}; v6h=function(V,t,x){x=x===void 0?{}:x;var u={};g.Zc("EOM_VISITOR_DATA")?u={"X-Goog-EOM-Visitor-Id":g.Zc("EOM_VISITOR_DATA")}:u={"X-Goog-Visitor-Id":x.visitorData||g.Zc("VISITOR_DATA","")};if(t&&t.includes("www.youtube-nocookie.com"))return u;t=x.jL||g.Zc("AUTHORIZATION");t||(V?t="Bearer "+g.nl("gapi.auth.getToken")().access_token:(V=JJz().qm(I8),g.Bc("pageid_as_header_web")||delete V["X-Goog-PageId"],u=Object.assign({},u,V)));t&&(u.Authorization=t);return u}; At8=function(V,t){var x=E6T();if(x){var u=x.coldConfigData,Z=x.coldHashData;x=x.hotHashData;if(V){var P;t=(P=KP(V,T0,62))!=null?P:new T0;u=sL(t,1,u);sL(u,3,Z).dl(x);qP(V,T0,62,t)}else t&&(t.client.configInfo=t.client.configInfo||{},u&&(t.client.configInfo.coldConfigData=u),Z&&(t.client.configInfo.coldHashData=Z),x&&(t.client.configInfo.hotHashData=x))}}; vo=function(V,t){this.version=V;this.args=t}; X3=function(V,t){this.topic=V;this.J=t}; Bo=function(V,t){var x=z5();x&&x.publish.call(x,V.toString(),V,t)}; Ma4=function(V){var t=Lz1,x=z5();if(!x)return 0;var u=x.subscribe(t.toString(),function(Z,P){var K=g.nl("ytPubsub2Pubsub2SkipSubKey");K&&K==u||(K=function(){if(m7[u])try{if(P&&t instanceof X3&&t!=Z)try{var R=t.J,f=P;if(!f.args||!f.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!R.Nx){var b=new R;R.Nx=b.version}var E=R.Nx}catch(k){}if(!E||f.version!=E)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{P=Reflect.construct(R, g.tb(f.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 "+t.toString()+": "+k.message,k;}V.call(window,P)}catch(k){g.qc(k)}},Fzs[t.toString()]?g.$e()?g.w9.dg(K):g.FV(K,0):K())}); m7[u]=!0;Yp[t.toString()]||(Yp[t.toString()]=[]);Yp[t.toString()].push(u);return u}; z64=function(){var V=g6j,t=Ma4(function(x){V.apply(void 0,arguments);Xpq(t)}); return t}; Xpq=function(V){var t=z5();t&&(typeof V==="number"&&(V=[V]),g.EA(V,function(x){t.unsubscribeByKey(x);delete m7[x]}))}; z5=function(){return g.nl("ytPubsub2Pubsub2Instance")}; Q7=function(V,t,x){x=x===void 0?{sampleRate:.1}:x;Math.random()rtj||K=n6q&&(l0++,g.Bc("abandon_compression_after_N_slow_zips")?jI===g.mB("compression_disable_point")&&l0>ctw&&(ng=!1):ng=!1);ytq(t);u.headers||(u.headers={});u.headers["Content-Encoding"]="gzip";u.postBody=V;u.postParams=void 0;Z(x,u)}; jij=function(V){var t=t===void 0?!1:t;var x=x===void 0?!1:x;var u=(0,g.Tu)(),Z={startTime:u,ticks:{},infos:{}},P=t?g.nl("yt.logging.gzipForFetch",!1):!0;if(ng&&P){if(!V.body)return V;try{var K=x?V.body:typeof V.body==="string"?V.body:JSON.stringify(V.body);P=K;if(!x&&typeof K==="string"){var R=a_0(K);if(R!=null&&(R>rtj||R=n6q)if(l0++,g.Bc("abandon_compression_after_N_slow_zips")||g.Bc("abandon_compression_after_N_slow_zips_lr")){t=l0/jI;var b=ctw/g.mB("compression_disable_point");jI>0&&jI%g.mB("compression_disable_point")===0&&t>=b&&(ng=!1)}else ng=!1;ytq(Z)}}V.headers=Object.assign({},{"Content-Encoding":"gzip"},V.headers||{});V.body=P;return V}catch(E){return fJ(E),V}}else return V}; a_0=function(V){try{return(new Blob(V.split(""))).size}catch(t){return fJ(t),null}}; ytq=function(V){g.Bc("gel_compression_csi_killswitch")||!g.Bc("log_gel_compression_latency")&&!g.Bc("log_gel_compression_latency_lr")||Q7("gel_compression",V,{sampleRate:.1})}; Ut=function(V){var t=this;this.bf=this.J=!1;this.potentialEsfErrorCounter=this.S=0;this.handleError=function(){}; this.eI=function(){}; this.now=Date.now;this.TV=!1;this.Wk={XYX:function(E){t.j3=E}, E9U:function(){t.WW()}, u5:function(){t.iU()}, Tv:function(E){return g.Q(function(k){return g.m(k,t.Tv(E),0)})}, b7:function(E,k){return t.b7(E,k)}, Pz:function(){t.Pz()}}; var x;this.uV=(x=V.uV)!=null?x:100;var u;this.Ak=(u=V.Ak)!=null?u:1;var Z;this.hk=(Z=V.hk)!=null?Z:2592E6;var P;this.WE=(P=V.WE)!=null?P:12E4;var K;this.bO=(K=V.bO)!=null?K:5E3;var R;this.j3=(R=V.j3)!=null?R:void 0;this.Sr=!!V.Sr;var f;this.CN=(f=V.CN)!=null?f:.1;var b;this.i7=(b=V.i7)!=null?b:10;V.handleError&&(this.handleError=V.handleError);V.eI&&(this.eI=V.eI);V.TV&&(this.TV=V.TV);V.bf&&(this.bf=V.bf);this.MP=V.MP;this.p7=V.p7;this.aB=V.aB;this.hB=V.hB;this.sendFn=V.sendFn;this.qa=V.qa;this.OB= V.OB;Ho(this)&&(!this.MP||this.MP("networkless_logging"))&&l_w(this)}; l_w=function(V){Ho(V)&&!V.TV&&(V.J=!0,V.Sr&&Math.random()<=V.CN&&V.aB.L5(V.j3),V.Pz(),V.hB.U8()&&V.WW(),V.hB.listen(V.qa,V.WW.bind(V)),V.hB.listen(V.OB,V.iU.bind(V)))}; Dg9=function(V,t){if(!Ho(V))throw Error("IndexedDB is not supported: updateRequestHandlers");var x=t.options.onError?t.options.onError:function(){}; t.options.onError=function(Z,P){var K,R,f,b;return g.Q(function(E){switch(E.J){case 1:K=H0T(P);(R=UgC(P))&&V.MP&&V.MP("web_enable_error_204")&&V.handleError(Error("Request failed due to compression"),t.url,P);if(!(V.MP&&V.MP("nwl_consider_error_code")&&K||V.MP&&!V.MP("nwl_consider_error_code")&&V.potentialEsfErrorCounter<=V.i7)){E.FX(2);break}if(!V.hB.aT){E.FX(3);break}return g.m(E,V.hB.aT(),3);case 3:if(V.hB.U8()){E.FX(2);break}x(Z,P);if(!V.MP||!V.MP("nwl_consider_error_code")||((f=t)==null?void 0: f.id)===void 0){E.FX(6);break}return g.m(E,V.aB.yv(t.id,V.j3,!1),6);case 6:return E.return();case 2:if(V.MP&&V.MP("nwl_consider_error_code")&&!K&&V.potentialEsfErrorCounter>V.i7)return E.return();V.potentialEsfErrorCounter++;if(((b=t)==null?void 0:b.id)===void 0){E.FX(8);break}return t.sendCount=400&&V<=599?!1:!0}; UgC=function(V){var t;V=V==null?void 0:(t=V.error)==null?void 0:t.code;return!(V!==400&&V!==415)}; e61=function(){if(eI)return eI();var V={};eI=g.fg("LogsDatabaseV2",{WY:(V.LogsRequestsStore={f7:2},V),shared:!1,upgrade:function(t,x,u){x(2)&&g.o4(t,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});x(3);x(5)&&(u=u.objectStore("LogsRequestsStore"),u.J.indexNames.contains("newRequest")&&u.J.deleteIndex("newRequest"),g.Hr(u,"newRequestV2",["status","interface","timestamp"]));x(7)&&nq(t,"sapisid");x(9)&&nq(t,"SWHealthLog")}, version:9});return eI()}; dD=function(V){return g.wu(e61(),V)}; Ct0=function(V,t){var x,u,Z,P;return g.Q(function(K){if(K.J==1)return x={startTime:(0,g.Tu)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.m(K,dD(t),2);if(K.J!=3)return u=K.S,Z=Object.assign({},V,{options:JSON.parse(JSON.stringify(V.options)),interface:g.Zc("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.m(K,g.jp(u,"LogsRequestsStore",Z),3);P=K.S;x.ticks.tc=(0,g.Tu)();dg4(x);return K.return(P)})}; Jt0=function(V,t){var x,u,Z,P,K,R,f,b;return g.Q(function(E){if(E.J==1)return x={startTime:(0,g.Tu)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.m(E,dD(t),2);if(E.J!=3)return u=E.S,Z=g.Zc("INNERTUBE_CONTEXT_CLIENT_NAME",0),P=[V,Z,0],K=[V,Z,(0,g.Tu)()],R=IDBKeyRange.bound(P,K),f="prev",g.Bc("use_fifo_for_networkless")&&(f="next"),b=void 0,g.m(E,g.cr(u,["LogsRequestsStore"],{mode:"readwrite",LI:!0},function(k){return g.du(k.objectStore("LogsRequestsStore").index("newRequestV2"), {query:R,direction:f},function(O){O.getValue()&&(b=O.getValue(),V==="NEW"&&(b.status="QUEUED",O.update(b)))})}),3); x.ticks.tc=(0,g.Tu)();dg4(x);return E.return(b)})}; h6L=function(V,t){var x;return g.Q(function(u){if(u.J==1)return g.m(u,dD(t),2);x=u.S;return u.return(g.cr(x,["LogsRequestsStore"],{mode:"readwrite",LI:!0},function(Z){var P=Z.objectStore("LogsRequestsStore");return P.get(V).then(function(K){if(K)return K.status="QUEUED",g.yU(P,K).then(function(){return K})})}))})}; wpz=function(V,t,x,u){x=x===void 0?!0:x;var Z;return g.Q(function(P){if(P.J==1)return g.m(P,dD(t),2);Z=P.S;return P.return(g.cr(Z,["LogsRequestsStore"],{mode:"readwrite",LI:!0},function(K){var R=K.objectStore("LogsRequestsStore");return R.get(V).then(function(f){return f?(f.status="NEW",x&&(f.sendCount+=1),u!==void 0&&(f.options.compress=u),g.yU(R,f).then(function(){return f})):g.Ye.resolve(void 0)})}))})}; VL8=function(V,t){var x;return g.Q(function(u){if(u.J==1)return g.m(u,dD(t),2);x=u.S;return u.return(x.delete("LogsRequestsStore",V))})}; tLL=function(V){var t,x;return g.Q(function(u){if(u.J==1)return g.m(u,dD(V),2);t=u.S;x=(0,g.Tu)()-2592E6;return g.m(u,g.cr(t,["LogsRequestsStore"],{mode:"readwrite",LI:!0},function(Z){return g.Un(Z.objectStore("LogsRequestsStore"),{},function(P){if(P.getValue().timestamp<=x)return P.delete().then(function(){return g.Dw(P)})})}),0)})}; xcK=function(){g.Q(function(V){return g.m(V,DK0("LogsDatabaseV2"),0)})}; dg4=function(V){g.Bc("nwl_csi_killswitch")||Q7("networkless_performance",V,{sampleRate:1})}; ZJ1=function(V){return g.wu(uVs(),V)}; P$9=function(V){var t,x;g.Q(function(u){if(u.J==1)return g.m(u,ZJ1(V),2);t=u.S;x=(0,g.Tu)()-2592E6;return g.m(u,g.cr(t,["SWHealthLog"],{mode:"readwrite",LI:!0},function(Z){return g.Un(Z.objectStore("SWHealthLog"),{},function(P){if(P.getValue().timestamp<=x)return P.delete().then(function(){return g.Dw(P)})})}),0)})}; KB8=function(V){var t;return g.Q(function(x){if(x.J==1)return g.m(x,ZJ1(V),2);t=x.S;return g.m(x,t.clear("SWHealthLog"),0)})}; g.Cg=function(V,t,x,u,Z,P,K){Z=Z===void 0?"":Z;P=P===void 0?!1:P;K=K===void 0?!1:K;if(V)if(x&&!g.Vz())fJ(new g.xe("Legacy referrer-scrubbed ping detected")),V&&qQ0(V,void 0,{scrubReferrer:!0});else if(Z)aW(V,t,"POST",Z,u);else if(g.Zc("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||u||K)aW(V,t,"GET","",u,void 0,P,K);else{b:{try{var R=new UqT({url:V});if(R.W){if(typeof R.N!=="string"||R.N.length===0)var f=0;else{var b=R.N,E="&act=1&ri=1"+Dq9(R);f={version:3,E58:b,JqX:E?R.J?R.S.slice(0,R.J.index)+E+R.S.slice(R.J.index): R.S+E:R.S}}var k=f}else k=R.G;if(k){var O=cM(g.jO(5,V));var N=!(!O||!O.endsWith("/aclk")||hj(V,"ri")!=="1");break b}}catch(p){}N=!1}N?RF8(V)?(t&&t(),x=!0):x=!1:x=!1;x||qQ0(V,t)}}; RF8=function(V,t){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(V,t===void 0?"":t))return!0}catch(x){}return!1}; qQ0=function(V,t,x){x=x===void 0?{}:x;var u=new Image,Z=""+fcl++;J7[Z]=u;u.onload=u.onerror=function(){t&&J7[Z]&&t();delete J7[Z]}; x.scrubReferrer&&(u.referrerPolicy="no-referrer");u.src=V}; $cL=function(V){var t;return((t=document.featurePolicy)==null?0:t.allowedFeatures().includes("attribution-reporting"))?V+"&nis=6":V+"&nis=5"}; wD=function(){h7||(h7=new En("yt.offline"));return h7}; bJ0=function(V){if(g.Bc("offline_error_handling")){var t=wD().get("errors",!0)||{};t[V.message]={name:V.name,stack:V.stack};V.level&&(t[V.message].level=V.level);wD().set("errors",t,2592E3,!0)}}; Vy=function(){this.J=new Map;this.S=!1}; tC=function(){if(!Vy.instance){var V=g.nl("yt.networkRequestMonitor.instance")||new Vy;g.o9("yt.networkRequestMonitor.instance",V);Vy.instance=V}return Vy.instance}; xr=function(){g.KX.call(this);var V=this;this.S=!1;this.J=Lg4();this.J.listen("networkstatus-online",function(){if(V.S&&g.Bc("offline_error_handling")){var t=wD().get("errors",!0);if(t){for(var x in t)if(t[x]){var u=new g.xe(x,"sent via offline_errors");u.name=t[x].name;u.stack=t[x].stack;u.level=t[x].level;g.qc(u)}wD().set("errors",{},2592E3,!0)}}})}; Ec8=function(){if(!xr.instance){var V=g.nl("yt.networkStatusManager.instance")||new xr;g.o9("yt.networkStatusManager.instance",V);xr.instance=V}return xr.instance}; g.um=function(V){V=V===void 0?{}:V;g.KX.call(this);var t=this;this.J=this.W=0;this.S=Ec8();var x=g.nl("yt.networkStatusManager.instance.listen").bind(this.S);x&&(V.rateLimit?(this.rateLimit=V.rateLimit,x("networkstatus-online",function(){k9T(t,"publicytnetworkstatus-online")}),x("networkstatus-offline",function(){k9T(t,"publicytnetworkstatus-offline")})):(x("networkstatus-online",function(){t.dispatchEvent("publicytnetworkstatus-online")}),x("networkstatus-offline",function(){t.dispatchEvent("publicytnetworkstatus-offline")})))}; k9T=function(V,t){V.rateLimit?V.J?(g.w9.zl(V.W),V.W=g.w9.dg(function(){V.N!==t&&(V.dispatchEvent(t),V.N=t,V.J=(0,g.Tu)())},V.rateLimit-((0,g.Tu)()-V.J))):(V.dispatchEvent(t),V.N=t,V.J=(0,g.Tu)()):V.dispatchEvent(t)}; PZ=function(){var V=Ut.call;ZK||(ZK=new g.um({fWy:!0,BB1:!0}));V.call(Ut,this,{aB:{L5:tLL,V4:VL8,TZ:Jt0,nwk:h6L,yv:wpz,set:Ct0},hB:ZK,handleError:function(t,x,u){var Z,P=u==null?void 0:(Z=u.error)==null?void 0:Z.code;if(P===400||P===415){var K;fJ(new g.xe(t.message,x,u==null?void 0:(K=u.error)==null?void 0:K.code),void 0,void 0,void 0,!0)}else g.qc(t)}, eI:fJ,sendFn:iJ9,now:g.Tu,Ed:bJ0,p7:g.fq(),qa:"publicytnetworkstatus-online",OB:"publicytnetworkstatus-offline",Sr:!0,CN:.1,i7:g.mB("potential_esf_error_limit",10),MP:g.Bc,TV:!(g.Zw()&&g.lA(document.location.toString())!=="www.youtube-nocookie.com")});this.N=new g.v$;g.Bc("networkless_immediately_drop_all_requests")&&xcK();eJq("LogsDatabaseV2")}; Ks=function(){var V=g.nl("yt.networklessRequestController.instance");V||(V=new PZ,g.o9("yt.networklessRequestController.instance",V),g.Bc("networkless_logging")&&g.qR().then(function(t){V.j3=t;l_w(V);V.N.resolve();V.Sr&&Math.random()<=V.CN&&V.j3&&P$9(V.j3);g.Bc("networkless_immediately_drop_sw_health_store")&&OJC(V)})); return V}; OJC=function(V){var t;g.Q(function(x){if(!V.j3)throw t=g.Br("clearSWHealthLogsDb"),t;return x.return(KB8(V.j3).catch(function(u){V.handleError(u)}))})}; iJ9=function(V,t,x,u){u=u===void 0?!1:u;t=g.Bc("web_fp_via_jspb")?Object.assign({},t):t;g.Bc("use_cfr_monitor")&&sWK(V,t);if(g.Bc("use_request_time_ms_header"))t.headers&&Nc(V)&&(t.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Tu)())));else{var Z;if((Z=t.postParams)==null?0:Z.requestTimeMs)t.postParams.requestTimeMs=Math.round((0,g.Tu)())}x&&Object.keys(t).length===0?g.Cg(V):t.compress?t.postBody?(typeof t.postBody!=="string"&&(t.postBody=JSON.stringify(t.postBody)),y7(V,t.postBody, t,g.r5,u)):y7(V,JSON.stringify(t.postParams),t,T9,u):g.r5(V,t)}; qX=function(V,t){g.Bc("use_event_time_ms_header")&&Nc(V)&&(t.headers||(t.headers={}),t.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.Tu)())));return t}; sWK=function(V,t){var x=t.onError?t.onError:function(){}; t.onError=function(Z,P){tC().requestComplete(V,!1);x(Z,P)}; var u=t.onSuccess?t.onSuccess:function(){}; t.onSuccess=function(Z,P){tC().requestComplete(V,!0);u(Z,P)}}; g.Rm=function(V){this.config_=null;V?this.config_=V:k00()&&(this.config_=g.SI())}; g.fs=function(V,t,x,u){function Z(b){try{if((b===void 0?0:b)&&u.retry&&!u.networklessOptions.bypassNetworkless)P.method="POST",u.networklessOptions.writeThenSend?Ks().writeThenSend(f,P):Ks().sendAndWrite(f,P);else if(u.compress){var E=!u.networklessOptions.writeThenSend;if(P.postBody){var k=P.postBody;typeof k!=="string"&&(k=JSON.stringify(P.postBody));y7(f,k,P,g.r5,E)}else y7(f,JSON.stringify(P.postParams),P,T9,E)}else g.Bc("web_all_payloads_via_jspb")?g.r5(f,P):T9(f,P)}catch(O){if(O.name==="InvalidAccessError")fJ(Error("An extension is blocking network request.")); else throw O;}} !g.Zc("VISITOR_DATA")&&t!=="visitor_id"&&Math.random()<.01&&fJ(new g.xe("Missing VISITOR_DATA when sending innertube request.",t,x,u));if(!V.isReady())throw V=new g.xe("innertube xhrclient not ready",t,x,u),g.qc(V),V;var P={headers:u.headers||{},method:"POST",postParams:x,postBody:u.postBody,postBodyFormat:u.postBodyFormat||"JSON",onTimeout:function(){u.onTimeout()}, onFetchTimeout:u.onTimeout,onSuccess:function(b,E){if(u.onSuccess)u.onSuccess(E)}, onFetchSuccess:function(b){if(u.onSuccess)u.onSuccess(b)}, onError:function(b,E){if(u.onError)u.onError(E)}, onFetchError:function(b){if(u.onError)u.onError(b)}, timeout:u.timeout,withCredentials:!0,compress:u.compress};P.headers["Content-Type"]||(P.headers["Content-Type"]="application/json");x="";var K=V.config_.xo;K&&(x=K);K=V.config_.Kr||!1;var R=v6h(K,x,u);Object.assign(P.headers,R);P.headers.Authorization&&!x&&K&&(P.headers["x-origin"]=window.location.origin);var f=OQ(""+x+("/youtubei/"+V.config_.innertubeApiVersion+"/"+t),{alt:"json"});g.nl("ytNetworklessLoggingInitializationOptions")&&N59.isNwlInitialized?ny4().then(function(b){Z(b)}):Z(!1)}; g.im=function(V,t,x){var u=g.$r();if(u&&t){var Z=u.subscribe(V,function(){function P(){bm[Z]&&t.apply&&typeof t.apply=="function"&&t.apply(x||window,K)} var K=arguments;try{g.E8[V]?P():g.FV(P,0)}catch(R){g.qc(R)}},x); bm[Z]=!0;kr[V]||(kr[V]=[]);kr[V].push(Z);return Z}return 0}; pcs=function(V){var t=g.im("LOGGED_IN",function(x){V.apply(void 0,arguments);g.O8(t)})}; g.O8=function(V){var t=g.$r();t&&(typeof V==="number"?V=[V]:typeof V==="string"&&(V=[parseInt(V,10)]),g.EA(V,function(x){t.unsubscribeByKey(x);delete bm[x]}))}; g.s8=function(V,t){var x=g.$r();return x?x.publish.apply(x,arguments):!1}; SQ8=function(V){var t=g.$r();if(t)if(t.clear(V),V)A60(V);else for(var x in kr)A60(x)}; g.$r=function(){return g.Ww.ytPubsubPubsubInstance}; A60=function(V){kr[V]&&(V=kr[V],g.EA(V,function(t){bm[t]&&delete bm[t]}),V.length=0)}; g.NX=function(V,t,x){G94(V,t,x===void 0?null:x)}; G94=function(V,t,x){x=x===void 0?null:x;var u=IcT(V),Z=document.getElementById(u),P=Z&&aNw(Z),K=Z&&!P;P?t&&t():(t&&(P=g.im(u,t),t=""+g.Dz(t),vch[t]=P),K||(Z=LBj(V,u,function(){aNw(Z)||(Qyj(Z),g.s8(u),g.FV(function(){SQ8(u)},0))},x)))}; LBj=function(V,t,x,u){u=u===void 0?null:u;var Z=g.uc("SCRIPT");Z.id=t;Z.onload=function(){x&&setTimeout(x,0)}; Z.onreadystatechange=function(){switch(Z.readyState){case "loaded":case "complete":Z.onload()}}; u&&Z.setAttribute("nonce",u);g.DV(Z,g.Qb(V));V=document.getElementsByTagName("head")[0]||document.body;V.insertBefore(Z,V.firstChild);return Z}; IcT=function(V){var t=document.createElement("a");g.WQ(t,V);V=t.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+uG(V)}; Im=function(V,t){if(V===t)V=!0;else if(Array.isArray(V)&&Array.isArray(t))V=g.$z(V,t,Im);else if(g.lL(V)&&g.lL(t))a:if(g.Xu(V).length!=g.Xu(t).length)V=!1;else{for(var x in V)if(!Im(V[x],t[x])){V=!1;break a}V=!0}else V=!1;return V}; Fc=function(V){var t=g.Xq.apply(1,arguments);if(!vZ(V)||t.some(function(u){return!vZ(u)}))throw Error("Only objects may be merged."); t=g.G(t);for(var x=t.next();!x.done;x=t.next())Ls(V,x.value)}; Ls=function(V,t){for(var x in t)if(vZ(t[x])){if(x in V&&!vZ(V[x]))throw Error("Cannot merge an object into a non-object.");x in V||(V[x]={});Ls(V[x],t[x])}else if(MX(t[x])){if(x in V&&!MX(V[x]))throw Error("Cannot merge an array into a non-array.");x in V||(V[x]=[]);FBj(V[x],t[x])}else V[x]=t[x];return V}; FBj=function(V,t){t=g.G(t);for(var x=t.next();!x.done;x=t.next())x=x.value,vZ(x)?V.push(Ls({},x)):MX(x)?V.push(FBj([],x)):V.push(x);return V}; vZ=function(V){return typeof V==="object"&&!Array.isArray(V)}; MX=function(V){return typeof V==="object"&&Array.isArray(V)}; gF=function(V){g.c.call(this);this.S=V}; Xc=function(V){gF.call(this,!0);this.J=V}; MLK=function(V,t){g.c.call(this);var x=this;this.N=[];this.L=!1;this.S=0;this.G=this.B=this.W=!1;this.Ij=null;var u=(0,g.ej)(V,t);this.J=new g.qK(function(){return u(x.Ij)},300); g.y(this,this.J);this.X=this.C=Infinity}; gcl=function(V,t){if(!t)return!1;for(var x=0;x-1)throw Error("Deps cycle for: "+t);if(V.S.has(t))return V.S.get(t);if(!V.J.has(t)){if(u)return;throw Error("No provider for: "+t);}u=V.J.get(t);x.push(t);if(u.vM!==void 0)var Z=u.vM;else if(u.jB6)Z=u[ns]?mcs(V,u[ns],x):[],Z=u.jB6.apply(u,g.v(Z));else if(u.i4){Z=u.i4;var P=Z[ns]?mcs(V,Z[ns],x):[];Z=new (Function.prototype.bind.apply(Z,[null].concat(g.v(P))))}else throw Error("Could not resolve providers for: "+t);x.pop();u.zIP||V.S.set(t,Z); return Z}; mcs=function(V,t,x){return t?t.map(function(u){return u instanceof WZ?cZ(V,u.key,x,!0):cZ(V,u,x)}):[]}; jx=function(){yy||(yy=new B5h);return yy}; HZ=function(){var V,t;return"h5vcc"in lm&&((V=lm.h5vcc.traceEvent)==null?0:V.traceBegin)&&((t=lm.h5vcc.traceEvent)==null?0:t.traceEnd)?1:"performance"in lm&&lm.performance.mark&&lm.performance.measure?2:0}; U8=function(V){var t=HZ();switch(t){case 1:lm.h5vcc.traceEvent.traceBegin("YTLR",V);break;case 2:lm.performance.mark(V+"-start");break;case 0:break;default:PD(t,"unknown trace type")}}; YQ0=function(V){var t=HZ();switch(t){case 1:lm.h5vcc.traceEvent.traceEnd("YTLR",V);break;case 2:t=V+"-start";var x=V+"-end";lm.performance.mark(x);lm.performance.measure(V,t,x);break;case 0:break;default:PD(t,"unknown trace type")}}; QW8=function(V){var t,x;(x=(t=window).onerror)==null||x.call(t,V.message,"",0,0,V)}; ac9=function(V){var t=this;var x=x===void 0?0:x;var u=u===void 0?g.fq():u;this.N=x;this.scheduler=u;this.S=new g.v$;this.J=V;for(V={DE:0};V.DE=1E3?Z():u>=V?NE||(NE=p6(function(){Z();NE=void 0},0)):P-R>=10&&(hF0(t,x.tier),K.W=P)}; Dcz=function(V,t){if(V.endpoint==="log_event"){g.Bc("more_accurate_gel_parser")&&qE().storePayload({isJspb:!1},V.payload);f6(V);var x=$$(V),u=new Map;u.set(x,[V.payload]);var Z=lcs(V.payload)||"";t&&(OH=new t);return new g.Ij(function(P,K){OH&&OH.isReady()?wc9(u,OH,P,K,{bypassNetworkless:!0},!0,EH(Z)):P()})}}; C$4=function(V,t,x){if(t.endpoint==="log_event"){f6(void 0,t);var u=$$(t,!0),Z=new Map;Z.set(u,[cx(t.payload)]);x&&(OH=new x);return new g.Ij(function(P){OH&&OH.isReady()?Ve4(Z,OH,P,{bypassNetworkless:!0},!0,EH(V)):P()})}}; $$=function(V,t){var x="";if(V.dangerousLogToVisitorSession)x="visitorOnlyApprovedKey";else if(V.cttAuthInfo){if(t===void 0?0:t){t=V.cttAuthInfo.token;x=V.cttAuthInfo;var u=new t6;x.videoId?u.setVideoId(x.videoId):x.playlistId&&VG(u,2,Al,IL(x.playlistId));Sv[t]=u}else t=V.cttAuthInfo,x={},t.videoId?x.videoId=t.videoId:t.playlistId&&(x.playlistId=t.playlistId),Gy[V.cttAuthInfo.token]=x;x=V.cttAuthInfo.token}return x}; k$=function(V,t,x){V=V===void 0?{}:V;t=t===void 0?!1:t;new g.Ij(function(u,Z){var P=sH(t,x),K=P.N;P.N=!1;Iw(P.S);Iw(P.J);P.J=0;OH&&OH.isReady()?x===void 0&&g.Bc("enable_web_tiered_gel")?tew(u,Z,V,t,300,K):tew(u,Z,V,t,x,K):(hF0(t,x),u())})}; tew=function(V,t,x,u,Z,P){var K=OH;x=x===void 0?{}:x;u=u===void 0?!1:u;Z=Z===void 0?200:Z;P=P===void 0?!1:P;var R=new Map,f=new Map,b={isJspb:u,cttAuthInfo:void 0,tier:Z},E={isJspb:u,cttAuthInfo:void 0};if(u){t=g.G(Object.keys(bf));for(Z=t.next();!Z.done;Z=t.next())Z=Z.value,f=g.Bc("enable_web_tiered_gel")?qE().smartExtractMatchingEntries({keys:[b,E],sizeLimit:1E3}):qE().extractMatchingEntries({isJspb:!0,cttAuthInfo:Z}),f.length>0&&R.set(Z,f),(g.Bc("web_fp_via_jspb_and_json")&&x.writeThenSend||!g.Bc("web_fp_via_jspb_and_json"))&& delete bf[Z];Ve4(R,K,V,x,!1,P)}else{R=g.G(Object.keys(bf));for(b=R.next();!b.done;b=R.next())b=b.value,E=g.Bc("enable_web_tiered_gel")?qE().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:b,tier:Z},{isJspb:!1,cttAuthInfo:b}],sizeLimit:1E3}):qE().extractMatchingEntries({isJspb:!1,cttAuthInfo:b}),E.length>0&&f.set(b,E),(g.Bc("web_fp_via_jspb_and_json")&&x.writeThenSend||!g.Bc("web_fp_via_jspb_and_json"))&&delete bf[b];wc9(f,K,V,t,x,!1,P)}}; hF0=function(V,t){function x(){k$({writeThenSend:!0},V,t)} V=V===void 0?!1:V;t=t===void 0?200:t;var u=sH(V,t),Z=u===xU0||u===u_l?5E3:Zyh;g.Bc("web_gel_timeout_cap")&&!u.J&&(Z=p6(function(){x()},Z),u.J=Z); Iw(u.S);Z=g.Zc("LOGGING_BATCH_TIMEOUT",g.mB("web_gel_debounce_ms",1E4));g.Bc("shorten_initial_gel_batch_timeout")&&v7&&(Z=Ps8);Z=p6(function(){g.mB("gel_min_batch_size")>0?qE().getSequenceCount({cttAuthInfo:void 0,isJspb:V,tier:t})>=KDz&&x():x()},Z); u.S=Z}; wc9=function(V,t,x,u,Z,P,K){Z=Z===void 0?{}:Z;var R=Math.round((0,g.Tu)()),f=V.size,b=q7K(K);V=g.G(V);var E=V.next();for(K={};!E.done;K={Mz:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,Dp:void 0,ij:void 0},E=V.next()){var k=g.G(E.value);E=k.next().value;k=k.next().value;K.batchRequest=g.TW({context:g.G5(t.config_||g.SI())});if(!g.jj(k)&&!g.Bc("throw_err_when_logevent_malformed_killswitch")){u();break}K.batchRequest.events=k;(k=Gy[E])&&RnT(K.batchRequest,E,k);delete Gy[E];K.dangerousLogToVisitorSession= E==="visitorOnlyApprovedKey";fk4(K.batchRequest,R,K.dangerousLogToVisitorSession);$U8(Z);K.Dp=function(O){g.Bc("start_client_gcf")&&g.w9.dg(function(){return g.Q(function(N){return g.m(N,byw(O),0)})}); f--;f||x()}; K.Mz=0;K.ij=function(O){return function(){O.Mz++;if(Z.bypassNetworkless&&O.Mz===1)try{g.fs(t,b,O.batchRequest,L6({writeThenSend:!0},O.dangerousLogToVisitorSession,O.Dp,O.ij,P)),v7=!1}catch(N){g.qc(N),u()}f--;f||x()}}(K); try{g.fs(t,b,K.batchRequest,L6(Z,K.dangerousLogToVisitorSession,K.Dp,K.ij,P)),v7=!1}catch(O){g.qc(O),u()}}}; Ve4=function(V,t,x,u,Z,P){u=u===void 0?{}:u;var K=Math.round((0,g.Tu)()),R={value:V.size},f=new Map([].concat(g.v(V)));f=g.G(f);for(var b=f.next();!b.done;b=f.next()){var E=g.G(b.value).next().value,k=V.get(E);b=new nsK;var O=t.config_||g.SI(),N=new D_,p=new oi;sL(p,1,O.jX);sL(p,2,O.r4);pP(p,16,O.dw);sL(p,17,O.innertubeContextClientVersion);if(O.fZ){var I=O.fZ,L=new T0;I.coldConfigData&&sL(L,1,I.coldConfigData);I.appInstallData&&sL(L,6,I.appInstallData);I.coldHashData&&sL(L,3,I.coldHashData);I.hotHashData&& L.dl(I.hotHashData);qP(p,T0,62,L)}(I=g.Ww.devicePixelRatio)&&I!=1&&oL(p,65,K8(I));I=Yc();I!==""&&sL(p,54,I);I=QA();if(I.length>0){L=new yb;for(var M=0;M65535&&(V=1);u$("BATCH_CLIENT_COUNTER",V);return V}; RnT=function(V,t,x){if(x.videoId)var u="VIDEO";else if(x.playlistId)u="PLAYLIST";else return;V.credentialTransferTokenTargetId=x;V.context=V.context||{};V.context.user=V.context.user||{};V.context.user.credentialTransferTokens=[{token:t,scope:u}]}; f6=function(V,t){if(!g.nl("yt.logging.transport.enableScrapingForTest")){var x=z9("il_payload_scraping");if((x!==void 0?String(x):"")==="enable_il_payload_scraping")gx=[],g.o9("yt.logging.transport.enableScrapingForTest",!0),g.o9("yt.logging.transport.scrapedPayloadsForTesting",gx),g.o9("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.o9("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.o9("yt.logging.transport.scrapeClientEvent",!0);else return}x=g.nl("yt.logging.transport.scrapedPayloadsForTesting");var u=g.nl("yt.logging.transport.payloadToScrape");t&&(t=t.payload,(t=g.nl("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(t)())&&x.push(t));t=g.nl("yt.logging.transport.scrapeClientEvent");if(u&&u.length>=1)for(var Z=0;Z0&&Y71(V,t,P)}else Y71(V,t)}; Y71=function(V,t,x){V=QVq(V);t=t?g.dj(t):"";x=x||5;bs()&&g.UQ(V,t,x)}; QVq=function(V){for(var t=g.G(aks),x=t.next();!x.done;x=t.next())V=wj(V,x.value);return"ST-"+uG(V).toString(36)}; rDw=function(V){if(V.name==="JavaException")return!0;V=V.stack;return V.includes("chrome://")||V.includes("chrome-extension://")||V.includes("moz-extension://")}; TiC=function(){this.Lf=[];this.Iw=[]}; ow=function(){if(!W7){var V=W7=new TiC;V.Iw.length=0;V.Lf.length=0;WD9(V,oDK)}return W7}; WD9=function(V,t){t.Iw&&V.Iw.push.apply(V.Iw,t.Iw);t.Lf&&V.Lf.push.apply(V.Lf,t.Lf)}; nD0=function(V){function t(){return V.charCodeAt(u++)} var x=V.length,u=0;do{var Z=n6(t);if(Z===Infinity)break;var P=Z>>3;switch(Z&7){case 0:Z=n6(t);if(P===2)return Z;break;case 1:if(P===2)return;u+=8;break;case 2:Z=n6(t);if(P===2)return V.substr(u,Z);u+=Z;break;case 5:if(P===2)return;u+=4;break;default:return}}while(u500));u++);u=Z}else if(typeof V==="object")for(Z in V){if(V[Z]){var P=Z;var K=V[Z],R=t,f=x;P=typeof K!=="string"||P!=="clickTrackingParams"&&P!=="trackingParams"?0:(K=nD0(atob(K.replace(/-/g,"+").replace(/_/g,"/"))))?c7(P+".ve",K,R,f):0;u+=P;u+=c7(Z,V[Z],t,x);if(u>500)break}}else x[t]=yK(V),u+=x[t].length;else x[t]=yK(V),u+=x[t].length;return u}; c7=function(V,t,x,u){x+="."+V;V=yK(t);u[x]=V;return x.length+V.length}; yK=function(V){try{return(typeof V==="string"?V:String(JSON.stringify(V))).substr(0,500)}catch(t){return"unable to serialize "+typeof V+" ("+t.message+")"}}; N3=function(V){g.jv(V)}; g.lf=function(V){g.jv(V,"WARNING")}; g.jv=function(V,t){var x=x===void 0?{}:x;x.name=g.Zc("INNERTUBE_CONTEXT_CLIENT_NAME",1);x.version=g.Zc("INNERTUBE_CONTEXT_CLIENT_VERSION");t=t===void 0?"ERROR":t;var u=!1;t=t===void 0?"ERROR":t;u=u===void 0?!1:u;if(V){V.hasOwnProperty("level")&&V.level&&(t=V.level);if(g.Bc("console_log_js_exceptions")){var Z=[];Z.push("Name: "+V.name);Z.push("Message: "+V.message);V.hasOwnProperty("params")&&Z.push("Error Params: "+JSON.stringify(V.params));V.hasOwnProperty("args")&&Z.push("Error args: "+JSON.stringify(V.args)); Z.push("File name: "+V.fileName);Z.push("Stacktrace: "+V.stack);window.console.log(Z.join("\n"),V)}if(!(yDl>=5)){Z=jVz;var P=Bpl(V),K=P.message||"Unknown Error",R=P.name||"UnknownError",f=P.stack||V.S||"Not available";if(f.startsWith(R+": "+K)){var b=f.split("\n");b.shift();f=b.join("\n")}b=P.lineNumber||"Not available";P=P.fileName||"Not available";var E=0;if(V.hasOwnProperty("args")&&V.args&&V.args.length)for(var k=0;k=500);k++);else if(V.hasOwnProperty("params")&& V.params){var O=V.params;if(typeof V.params==="object")for(k in O){if(O[k]){var N="params."+k,p=yK(O[k]);x[N]=p;E+=N.length+p.length;if(E>500)break}}else x.params=yK(O)}if(Z.length)for(k=0;k=500);k++);navigator.vendor&&!x.hasOwnProperty("vendor")&&(x["device.vendor"]=navigator.vendor);x={message:K,name:R,lineNumber:b,fileName:P,stack:f,params:x,sampleWeight:1};Z=Number(V.columnNumber);isNaN(Z)||(x.lineNumber=x.lineNumber+":"+Z);if(V.level==="IGNORED")V= 0;else a:{V=ow();Z=g.G(V.Iw);for(K=Z.next();!K.done;K=Z.next())if(K=K.value,x.message&&x.message.match(K.Se)){V=K.weight;break a}V=g.G(V.Lf);for(Z=V.next();!Z.done;Z=V.next())if(Z=Z.value,Z.callback(x)){V=Z.weight;break a}V=1}x.sampleWeight=V;V=g.G(lkC);for(Z=V.next();!Z.done;Z=V.next())if(Z=Z.value,Z.kc[x.name])for(R=g.G(Z.kc[x.name]),K=R.next();!K.done;K=R.next())if(k=K.value,K=x.message.match(k.Cc)){x.params["params.error.original"]=K[0];R=k.groups;k={};for(b=0;b1E3&&g.lf(new g.xe("IL Attach cache exceeded limit"))}R= uv(x,t);hl.has(R)?ZF(x,t):V3.set(R,!0)}}u=u.filter(function(E){E.csn!==t?(E.csn=t,E=!0):E=!1;return E}); x={csn:t,parentVe:x.getAsJson(),childVes:g.QV(u,function(E){return E.getAsJson()})}; t==="UNDEFINED_CSN"?PS("visualElementAttached",P,x):V?zy("visualElementAttached",x,V,P):g.pq("visualElementAttached",x,P)}; PUT=function(V,t,x,u,Z){KD(x,t);u=Jl({cttAuthInfo:rx(t)||void 0},t);x={csn:t,ve:x.getAsJson(),eventType:1};Z&&(x.clientData=Z);t==="UNDEFINED_CSN"?PS("visualElementShown",u,x):V?zy("visualElementShown",x,V,u):g.pq("visualElementShown",x,u)}; KHh=function(V,t,x,u){var Z=(u=u===void 0?!1:u)?16:8;u=Jl({cttAuthInfo:rx(t)||void 0,endOfSequence:u},t);x={csn:t,ve:x.getAsJson(),eventType:Z};t==="UNDEFINED_CSN"?PS("visualElementHidden",u,x):V?zy("visualElementHidden",x,V,u):g.pq("visualElementHidden",x,u)}; qnT=function(V,t,x,u,Z){qp(V,t,x,void 0,u,Z)}; qp=function(V,t,x,u,Z){KD(x,t);u=u||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var P=Jl({cttAuthInfo:rx(t)||void 0},t);x={csn:t,ve:x.getAsJson(),gestureType:u};Z&&(x.clientData=Z);t==="UNDEFINED_CSN"?PS("visualElementGestured",P,x):V?zy("visualElementGestured",x,V,P):g.pq("visualElementGestured",x,P)}; Req=function(){var V=BZ(16);for(var t=[],x=0;x0&&x.push(g.uc("BR"));x.push(g.ZZ(P))}):x.push(g.ZZ(u))}return x}; GP=function(V,t,x,u){if(x==="child"){g.KQ(t);var Z;u===void 0?Z=void 0:Z=!Array.isArray(u)||u&&typeof u.Y==="string"?[u]:u;x=$3L(V,Z);x=g.G(x);for(V=x.next();!V.done;V=x.next())t.appendChild(V.value)}else x==="style"?g.Ao(t,"cssText",u?u:""):u===null||u===void 0?t.removeAttribute(x):(V=u.toString(),x==="href"&&(V=g.Yn(g.rH(V))),t.setAttribute(x,V))}; g.e=function(V){g.Az.call(this,V);this.iq=!0;this.G=!1;this.listeners=[]}; g.Iz=function(V){g.e.call(this,V);this.dk=new g.Np;g.y(this,this.dk)}; vS=function(V,t,x,u,Z,P,K){K=K===void 0?null:K;g.Iz.call(this,t);this.api=V;this.macros={};this.componentType=x;this.L=this.C=null;this.gk=K;this.layoutId=u;this.interactionLoggingClientData=Z;this.aj=P;this.DS=null;this.MZ=new Xc(this.element);g.y(this,this.MZ);this.QC=this.Z(this.element,"click",this.onClick);this.cX=[];this.zU=new MLK(this.onClick,this);g.y(this,this.zU);this.w6=!1;this.BX=this.Ij=null}; LD=function(V,t){V=V===void 0?null:V;t=t===void 0?null:t;if(V==null)return g.lf(Error("Got null or undefined adText object")),"";var x=g.xE(V.text);if(!V.isTemplated)return x;if(t==null)return g.lf(Error("Missing required parameters for a templated message")),x;V=g.G(Object.entries(t));for(t=V.next();!t.done;t=V.next()){var u=g.G(t.value);t=u.next().value;u=u.next().value;x=x.replace("{"+t+"}",u)}return x}; bqj=function(V){V=V===void 0?null:V;return V!=null&&(V=V.thumbnail,V!=null&&V.thumbnails!=null&&V.thumbnails.length!=0&&V.thumbnails[0].url!=null)?g.xE(V.thumbnails[0].url):""}; EeT=function(V){V=V===void 0?null:V;return V!=null&&(V=V.thumbnail,V!=null&&V.thumbnails!=null&&V.thumbnails.length!=0&&V.thumbnails[0].width!=null&&V.thumbnails[0].height!=null)?new g.AI(V.thumbnails[0].width||0,V.thumbnails[0].height||0):new g.AI(0,0)}; g.FX=function(V){if(V.simpleText)return V.simpleText;if(V.runs){var t=[];V=g.G(V.runs);for(var x=V.next();!x.done;x=V.next())x=x.value,x.text&&t.push(x.text);return t.join("")}return""}; g.Mp=function(V){if(V.simpleText)return V=document.createTextNode(V.simpleText),V;var t=[];if(V.runs)for(var x=0;x1){for(var t=[V[0]],x=1;x0&&(this.J=new g.qK(this.Mt,t,this),g.y(this,this.J));this.G=new g.qK(this.Mt,x,this);g.y(this,this.G);this.C=msw(this.S,Z,1,u);g.y(this,this.C);this.L=msw(this.S,0,u,1);g.y(this,this.L);this.W=new TF;g.y(this,this.W)}; Nh=function(V,t,x){this.S=V;this.isAsync=t;this.J=x}; CUC=function(V){switch(V){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:PD(V,"unknown result type")}}; Jvw=function(V,t){var x=1;V.isTrusted===!1&&(x=0);u$("ISDSTAT",x);pC(x,"i.s_",{triggerContext:"sk",metadata:t});return x}; he9=function(V,t){var x=[];t?t.isTrusted===!0?x.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):t.isTrusted===!1?x.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):x.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):x.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");pC(0,"a.s_",{metadata:V,states:x});u$("ASDSTAT",0)}; pC=function(V,t,x){t=wrh[t];var u,Z,P={detected:V===0,source:""+t.S+((u=x.triggerContext)!=null?u:"")+((Z=x.Pj)!=null?Z:""),detectionStates:x.states,durationMs:x.VQ};x.metadata&&(P.contentCpn=x.metadata.contentCpn,P.adCpn=x.metadata.adCpn);g.pq("biscottiBasedDetection",P);t.J!==void 0&&(x=Number(g.Zc("CATSTAT",0)),t.J!==void 0?(t=t.J,V=CUC(V),V=x&~(3<0}; FD=function(V,t,x,u,Z,P){qh.call(this,V,{Y:"div",V:"ytp-ad-skip-button-slot"},"skip-button",t,x,u,Z);var K=this;this.wk=null;this.Us=!1;this.xw=P;this.B=this.api.K().experiments.MP("enable_modern_skip_button_on_web");this.yC=!1;this.N=new g.Iz({Y:"span",vX:["ytp-ad-skip-button-container"]});this.B&&this.N.element.classList.add("ytp-ad-skip-button-container-detached");this.api.T("enable_ad_pod_index_autohide")&&this.N.element.classList.add("ytp-ad-skip-button-container--clean-player");g.y(this,this.N); this.N.t6(this.element);this.S=this.W=null;this.HX=new g.$9(this.N,500,!1,100,function(){return K.hide()}); g.y(this,this.HX);this.Es=new sm(this.N.element,15E3,5E3,.5,.5,this.B);g.y(this,this.Es);this.hide()}; tIl=function(V){V=V.wk&&V.wk.adRendererCommands;return(V&&V.clickCommand&&g.l(V.clickCommand,g.Mh)&&g.l(V.clickCommand,g.Mh).commands||[]).some(function(t){return t.adLifecycleCommand?VI0(t.adLifecycleCommand):!1})}; VI0=function(V){return V.action==="END_LINEAR_AD"||V.action==="END_LINEAR_AD_PLACEMENT"}; g2=function(V,t,x,u,Z,P){qh.call(this,V,{Y:"div",V:"ytp-ad-skip-ad-slot"},"skip-ad",t,x,u,Z);this.wk=P;this.W=!1;this.B=0;this.N=this.S=null;this.hide()}; xRh=function(V,t){V.W||(V.W=!0,V.S&&(t?V.S.Us.hide():V.S.hide()),t?(V=V.N,V.HX.show(),V.show()):V.N.show())}; XD=function(V,t,x,u){y3.call(this,V,t,x,u,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; zd=function(V,t,x,u,Z,P,K){P=P===void 0?!1:P;K=K===void 0?!1:K;vS.call(this,V,{Y:"span",V:"ytp-ad-simple-ad-badge"},"simple-ad-badge",t,x,u);this.N=Z;this.J=this.f1("ytp-ad-simple-ad-badge");(this.S=P)&&this.J.classList.add("ytp-ad-simple-ad-badge--clean-player");K&&this.J.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; B0=function(V,t,x,u,Z){Z=Z===void 0?!1:Z;Ov.call(this,"player-overlay",V,{},t,u);this.videoAdDurationSeconds=x;this.interactionLoggingClientData=u;this.qd=Z}; mP=function(V,t){g.Np.call(this);this.api=V;this.durationMs=t;this.J=null;this.I5=new TF(this);g.y(this,this.I5);this.S=u3L;this.I5.Z(this.api,"presentingplayerstatechange",this.AO);this.J=this.I5.Z(this.api,"onAdPlaybackProgress",this.AJ)}; Y9=function(V){g.Np.call(this);this.J=!1;this.N$=0;this.I5=new TF(this);g.y(this,this.I5);this.durationMs=V;this.jH=new g.zB(100);g.y(this,this.jH);this.I5.Z(this.jH,"tick",this.AJ);this.S={seekableStart:0,seekableEnd:V/1E3,current:0};this.start()}; g.Q$=function(V,t){var x=Math.abs(Math.floor(V)),u=Math.floor(x/86400),Z=Math.floor(x%86400/3600),P=Math.floor(x%3600/60);x=Math.floor(x%60);if(t){t="";u>0&&(t+=" "+u+" Dias");if(u>0||Z>0)t+=" "+Z+" Horas";t+=" "+P+" Minutos";t+=" "+x+" Segundos";u=t.trim()}else{t="";u>0&&(t+=u+":",Z<10&&(t+="0"));if(u>0||Z>0)t+=Z+":",P<10&&(t+="0");t+=P+":";x<10&&(t+="0");u=t+x}return V>=0?u:"-"+u}; g.aT=function(V){return(!("button"in V)||typeof V.button!=="number"||V.button===0)&&!("shiftKey"in V&&V.shiftKey)&&!("altKey"in V&&V.altKey)&&!("metaKey"in V&&V.metaKey)&&!("ctrlKey"in V&&V.ctrlKey)}; r2=function(V,t,x,u,Z,P,K){qh.call(this,V,{Y:"span",V:K?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",t,x,u,Z);this.videoAdDurationSeconds=P;this.S=null;this.api.T("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");K&&this.api.K().S&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.T("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"), xp&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()}; Td=function(V,t,x,u){P0.call(this,V,t,x,u,"ytp-video-ad-top-bar-title","ad-title");V.T("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")}; W0=function(V){this.content=V.content;if(V.commandRuns){V=g.G(V.commandRuns);for(var t=V.next();!t.done;t=V.next())t=t.value,this.loggingDirectives=g.l(t,Zg8),t.onTap&&(this.interaction={onTap:t.onTap})}}; oT=function(V,t,x,u){vS.call(this,V,{Y:"div",V:"ad-simple-attributed-string"},"ad-simple-attributed-string",t,x,u);this.hide()}; nC=function(V,t,x,u,Z){vS.call(this,V,{Y:"span",V:Z?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",t,x,u);this.S=Z;this.adBadgeText=new oT(this.api,this.layoutId,this.interactionLoggingClientData,this.aj);this.adBadgeText.t6(this.element);g.y(this,this.adBadgeText);Z?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.T("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),xp&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))): this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; c0=function(V,t,x,u,Z){vS.call(this,V,{Y:"span",V:"ytp-ad-pod-index"},"ad-pod-index",t,x,u);this.S=Z;this.api.K().S&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.T("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),xp&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()}; y$=function(V,t,x,u){vS.call(this,V,{Y:"div",V:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",t,x,u);this.hide()}; jP=function(V,t){this.S=V;this.J=t}; lP=function(V,t,x){if(!V.getLength())return x!=null?x:Infinity;V=(t-V.S)/V.getLength();return g.EY(V,0,1)}; H0=function(V,t,x,u){u=u===void 0?!1:u;g.Iz.call(this,{Y:"div",V:"ytp-ad-persistent-progress-bar-container",D:[{Y:"div",V:"ytp-ad-persistent-progress-bar"}]});this.api=V;this.S=t;this.N=x;u&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.y(this,this.S);this.progressBar=this.f1("ytp-ad-persistent-progress-bar");this.J=-1;this.Z(V,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; Um=function(V,t,x,u,Z,P){vS.call(this,V,{Y:"div",V:"ytp-ad-player-overlay",D:[{Y:"div",V:"ytp-ad-player-overlay-flyout-cta"},{Y:"div",V:"ytp-ad-player-overlay-instream-info"},{Y:"div",V:"ytp-ad-player-overlay-skip-or-preview"},{Y:"div",V:"ytp-ad-player-overlay-progress-bar"},{Y:"div",V:"ytp-ad-player-overlay-instream-user-sentiment"},{Y:"div",V:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",t,x,u);this.wk=P;this.B=this.f1("ytp-ad-player-overlay-flyout-cta");this.B.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.J=this.f1("ytp-ad-player-overlay-instream-info");this.W=null;P0l(this)&&(V=xP("div"),g.OU(V,"ytp-ad-player-overlay-top-bar-gradients"),this.api.T("disable_ad_preview_for_instream_ads")&&g.OU(V,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),t=this.J,t.parentNode&&t.parentNode.insertBefore(V,t),(t=this.api.getVideoData(2))&&t.isListed&&t.title&&(x=new Td(this.api,this.layoutId,this.interactionLoggingClientData,this.aj),x.t6(V),x.init(iv("ad-title"),{text:t.title},this.macros),g.y(this, x)),this.W=V);this.N=null;this.X=this.f1("ytp-ad-player-overlay-skip-or-preview");this.L1=this.f1("ytp-ad-player-overlay-progress-bar");this.Es=this.f1("ytp-ad-player-overlay-instream-user-sentiment");this.Us=this.f1("ytp-ad-player-overlay-ad-disclosure-banner");this.S=Z;g.y(this,this.S);this.hide()}; P0l=function(V){V=V.api.K();return g.Dp(V)&&V.S}; eP=function(V,t,x){var u={};t&&(u.v=t);x&&(u.list=x);V={name:V,locale:void 0,feature:void 0};for(var Z in u)V[Z]=u[Z];u=g.CX("/sharing_services",V);g.Cg(u)}; g.d2=function(V){V&=16777215;var t=[(V&16711680)>>16,(V&65280)>>8,V&255];V=t[0];var x=t[1];t=t[2];V=Number(V);x=Number(x);t=Number(t);if(V!=(V&255)||x!=(x&255)||t!=(t&255))throw Error('"('+V+","+x+","+t+'") is not a valid RGB color');x=V<<16|x<<8|t;return V<16?"#"+(16777216|x).toString(16).slice(1):"#"+x.toString(16)}; CC=function(V){this.J=new oO(V)}; K71=function(){var V=!1;try{V=!!window.sessionStorage.getItem("session_logininfo")}catch(t){V=!0}return(g.Zc("INNERTUBE_CLIENT_NAME")==="WEB"||g.Zc("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&V}; Jq=function(V){if(g.Zc("LOGGED_IN",!0)&&K71()){var t=g.Zc("VALID_SESSION_TEMPDATA_DOMAINS",[]);var x=g.lA(window.location.href);x&&t.push(x);x=g.lA(V);g.Cr(t,x)||!x&&GY(V,"/")?(t=HM(V),(t=I80(t))?(t=QVq(t),t=(t=g.Dc(t)||null)?EQ(t):{}):t=null):t=null;t==null&&(t={});x=t;var u=void 0;K71()?(u||(u=g.Zc("LOGIN_INFO")),u?(x.session_logininfo=u,x=!0):x=!1):x=!1;x&&Ty(V,t)}}; g.qtK=function(V){var t=t===void 0?{}:t;var x=x===void 0?"":x;var u=u===void 0?window:u;V=g.CX(V,t);Jq(V);x=g.rH(V+x);u=u.location;x=TT(x);x!==void 0&&(u.href=x)}; g.hq=function(V,t,x){t=t===void 0?{}:t;x=x===void 0?!1:x;var u=g.Zc("EVENT_ID");u&&(t.ei||(t.ei=u));t&&Ty(V,t);x||(Jq(V),g.qtK(V))}; g.w2=function(V,t,x,u,Z){Z=Z===void 0?!1:Z;x&&Ty(V,x);x=g.rH(V);var P=g.Yn(x);V!=P&&fJ(Error("Unsafe window.open URL: "+V));V=P;t=t||uG(V).toString(36);try{if(Z){Z=V;Z=$cL(Z);Jq(Z);g.yM(window,Z,t,"attributionsrc");return}}catch(K){g.qc(K)}Jq(V);g.yM(window,x,t,u)}; RyT=function(V){Vg=V}; f$s=function(V){t4=V}; $RT=function(V){x1=V}; Ep8=function(){bg1=x1=t4=Vg=null}; igl=function(){var V=V===void 0?window.location.href:V;if(g.Bc("kevlar_disable_theme_param"))return null;var t=cM(g.jO(5,V));if(g.Bc("enable_dark_theme_only_on_shorts")&&t!=null&&t.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var x=g.i$(V).theme;return k5w.get(x)||null}catch(u){}return null}; uY=function(){this.J={};if(this.S=sys()){var V=g.Dc("CONSISTENCY");V&&OgC(this,{encryptedTokenJarContents:V})}}; OgC=function(V,t){if(t.encryptedTokenJarContents&&(V.J[t.encryptedTokenJarContents]=t,typeof t.expirationSeconds==="string")){var x=Number(t.expirationSeconds);setTimeout(function(){delete V.J[t.encryptedTokenJarContents]},x*1E3); V.S&&g.UQ("CONSISTENCY",t.encryptedTokenJarContents,x,void 0,!0)}}; PF=function(){this.S=-1;var V=g.Zc("LOCATION_PLAYABILITY_TOKEN");g.Zc("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Zj(this))&&(V=this.localStorage.get("yt-location-playability-token"));V&&(this.locationPlayabilityToken=V,this.J=void 0)}; Zj=function(V){return V.localStorage===void 0?new En("yt-client-location"):V.localStorage}; g.K4=function(V,t,x){t=t===void 0?!1:t;x=x===void 0?!1:x;var u=g.Zc("INNERTUBE_CONTEXT");if(!u)return g.jv(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};u=g.TW(u);g.Bc("web_no_tracking_params_in_shell_killswitch")||delete u.clickTracking;u.client||(u.client={});var Z=u.client;Z.clientName==="MWEB"&&Z.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(Z.clientFormFactor=g.Zc("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");Z.screenWidthPoints=window.innerWidth;Z.screenHeightPoints= window.innerHeight;Z.screenPixelDensity=Math.round(window.devicePixelRatio||1);Z.screenDensityFloat=window.devicePixelRatio||1;Z.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var P=P===void 0?!1:P;g.Cy();var K="USER_INTERFACE_THEME_LIGHT";g.JD(0,165)?K="USER_INTERFACE_THEME_DARK":g.JD(0,174)?K="USER_INTERFACE_THEME_LIGHT":!g.Bc("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (K="USER_INTERFACE_THEME_DARK");P=P?K:igl()||K;Z.userInterfaceTheme=P;if(!t){if(P=uaj())Z.connectionType=P;g.Bc("web_log_effective_connection_type")&&(P=P6h())&&(u.client.effectiveConnectionType=P)}var R;if(g.Bc("web_log_memory_total_kbytes")&&((R=g.Ww.navigator)==null?0:R.deviceMemory)){var f;R=(f=g.Ww.navigator)==null?void 0:f.deviceMemory;u.client.memoryTotalKbytes=""+R*1E6}g.Bc("web_gcf_hashes_innertube")&&(P=E6T())&&(f=P.coldConfigData,R=P.coldHashData,P=P.hotHashData,u.client.configInfo=u.client.configInfo|| {},f&&(u.client.configInfo.coldConfigData=f),R&&(u.client.configInfo.coldHashData=R),P&&(u.client.configInfo.hotHashData=P));f=g.i$(g.Ww.location.href);!g.Bc("web_populate_internal_geo_killswitch")&&f.internalcountrycode&&(Z.internalGeo=f.internalcountrycode);Z.clientName==="MWEB"||Z.clientName==="WEB"?(Z.mainAppWebInfo={graftUrl:g.Ww.location.href},g.Bc("kevlar_woffle")&&Chz.instance&&(f=Chz.instance,Z.mainAppWebInfo.pwaInstallabilityStatus=!f.J&&f.S?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),Z.mainAppWebInfo.webDisplayMode=Dk(),Z.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):Z.clientName==="TVHTML5"&&(!g.Bc("web_lr_app_quality_killswitch")&&(f=g.Zc("LIVING_ROOM_APP_QUALITY"))&&(Z.tvAppInfo=Object.assign(Z.tvAppInfo||{},{appQuality:f})),f=g.Zc("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(Z.tvAppInfo=Object.assign(Z.tvAppInfo||{},{certificationScope:f}));if(!g.Bc("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var b=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(r){}b=void 0}b&&(Z.timeZone=b)}(b=Yc())?Z.experimentsToken=b:delete Z.experimentsToken;b=QA();uY.instance||(uY.instance=new uY);u.request=Object.assign({},u.request,{internalExperimentFlags:b,consistencyTokenJars:g.gZ(uY.instance.J)});!g.Bc("web_prequest_context_killswitch")&&(b=g.Zc("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(u.request.externalPrequestContext=b);Z=g.Cy();b=g.JD(0,58);Z=Z.get("gsml","");u.user=Object.assign({}, u.user);b&&(u.user.enableSafetyMode=b);Z&&(u.user.lockedSafetyMode=!0);g.Bc("warm_op_csn_cleanup")?x&&(t=g.aw())&&(u.clientScreenNonce=t):!t&&(t=g.aw())&&(u.clientScreenNonce=t);V&&(u.clickTracking={clickTrackingParams:V});if(V=g.nl("yt.mdx.remote.remoteClient_"))u.remoteClient=V;PF.getInstance().setLocationOnInnerTubeContext(u);try{var E=IW(),k=E.bid;delete E.bid;u.adSignalsInfo={params:[],bid:k};for(var O=g.G(Object.entries(E)),N=O.next();!N.done;N=O.next()){var p=g.G(N.value),I=p.next().value, L=p.next().value;E=I;k=L;V=void 0;(V=u.adSignalsInfo.params)==null||V.push({key:E,value:""+k})}var M,z;if(((M=u.client)==null?void 0:M.clientName)==="TVHTML5"||((z=u.client)==null?void 0:z.clientName)==="TVHTML5_UNPLUGGED"){var Y=g.Zc("INNERTUBE_CONTEXT");Y.adSignalsInfo&&(u.adSignalsInfo.advertisingId=Y.adSignalsInfo.advertisingId,u.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",u.adSignalsInfo.limitAdTracking=Y.adSignalsInfo.limitAdTracking)}}catch(r){g.jv(r)}return u}; po1=function(V,t){if(!V)return!1;var x,u=(x=g.l(V,s8s))==null?void 0:x.signal;if(u&&t.E0)return!!t.E0[u];var Z;if((x=(Z=g.l(V,NDh))==null?void 0:Z.request)&&t.A2)return!!t.A2[x];for(var P in V)if(t.vB[P])return!0;return!1}; A7L=function(V){var t={"Content-Type":"application/json"};g.Zc("EOM_VISITOR_DATA")?t["X-Goog-EOM-Visitor-Id"]=g.Zc("EOM_VISITOR_DATA"):g.Zc("VISITOR_DATA")&&(t["X-Goog-Visitor-Id"]=g.Zc("VISITOR_DATA"));t["X-Youtube-Bootstrap-Logged-In"]=g.Zc("LOGGED_IN",!1);g.Zc("DEBUG_SETTINGS_METADATA")&&(t["X-Debug-Settings-Metadata"]=g.Zc("DEBUG_SETTINGS_METADATA"));V!=="cors"&&((V=g.Zc("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(t["X-Youtube-Client-Name"]=V),(V=g.Zc("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(t["X-Youtube-Client-Version"]= V),(V=g.Zc("CHROME_CONNECTED_HEADER"))&&(t["X-Youtube-Chrome-Connected"]=V),(V=g.Zc("DOMAIN_ADMIN_STATE"))&&(t["X-Youtube-Domain-Admin-State"]=V),g.Zc("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(V=g.Zc("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(t["X-YouTube-Lava-Device-Context"]=V));return t}; St8=function(){this.J={}}; p4=function(){this.mappings=new St8}; A4=function(V){return function(){return new V}}; I$4=function(V){var t=t===void 0?"UNKNOWN_INTERFACE":t;if(V.length===1)return V[0];var x=G5q[t];if(x){x=new RegExp(x);for(var u=g.G(V),Z=u.next();!Z.done;Z=u.next())if(Z=Z.value,x.exec(Z))return Z}var P=[];Object.entries(G5q).forEach(function(K){var R=g.G(K);K=R.next().value;R=R.next().value;t!==K&&P.push(R)}); x=new RegExp(P.join("|"));V.sort(function(K,R){return K.length-R.length}); u=g.G(V);for(Z=u.next();!Z.done;Z=u.next())if(Z=Z.value,!x.exec(Z))return Z;return V[0]}; g.St=function(V){return"/youtubei/v1/"+I$4(V)}; G4=function(){}; IF=function(){}; vF=function(){}; L4=function(V){return g.nl("ytcsi."+(V||"")+"data_")||vp0(V)}; L7T=function(){var V=L4();V.info||(V.info={});return V.info}; FQ=function(V){V=L4(V);V.metadata||(V.metadata={});return V.metadata}; Mo=function(V){V=L4(V);V.tick||(V.tick={});return V.tick}; gq=function(V){V=L4(V);if(V.gel){var t=V.gel;t.gelInfos||(t.gelInfos={});t.gelTicks||(t.gelTicks={})}else V.gel={gelTicks:{},gelInfos:{}};return V.gel}; F71=function(V){V=gq(V);V.gelInfos||(V.gelInfos={});return V.gelInfos}; XQ=function(V){var t=L4(V).nonce;t||(t=g.m3(16),L4(V).nonce=t);return t}; vp0=function(V){var t={tick:{},info:{}};g.o9("ytcsi."+(V||"")+"data_",t);return t}; z4=function(){var V=g.nl("ytcsi.debug");V||(V=[],g.o9("ytcsi.debug",V),g.o9("ytcsi.reference",{}));return V}; BF=function(V){V=V||"";var t=MIL();if(t[V])return t[V];var x=z4(),u={timerName:V,info:{},tick:{},span:{},jspbInfo:[]};x.push(u);return t[V]=u}; gp4=function(V){V=V||"";var t=MIL();t[V]&&delete t[V];var x=z4(),u={timerName:V,info:{},tick:{},span:{},jspbInfo:[]};x.push(u);t[V]=u}; MIL=function(){var V=g.nl("ytcsi.reference");if(V)return V;z4();return g.nl("ytcsi.reference")}; mi=function(V){return XoK[V]||"LATENCY_ACTION_UNKNOWN"}; Y1=function(V,t){vo.call(this,1,arguments);this.jH=t}; Qg=function(){this.J=0}; aF=function(){Qg.instance||(Qg.instance=new Qg);return Qg.instance}; T4=function(V,t){rq[t]=rq[t]||{count:0};var x=rq[t];x.count++;x.time=(0,g.Tu)();V.J||(V.J=g.q3(0,function(){var u=(0,g.Tu)(),Z;for(Z in rq)rq[Z]&&u-rq[Z].time>6E4&&delete rq[Z];V&&(V.J=0)},5E3)); return x.count>5?(x.count===6&&Math.random()*1E5<1&&(x=new g.xe("CSI data exceeded logging limit with key",t.split("_")),t.indexOf("plev")>=0||g.lf(x)),!0):!1}; zyz=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; BD0=function(){var V;if(g.Bc("csi_use_performance_navigation_timing")||g.Bc("csi_use_performance_navigation_timing_tvhtml5")){var t,x,u,Z=WF==null?void 0:(V=WF.getEntriesByType)==null?void 0:(t=V.call(WF,"navigation"))==null?void 0:(x=t[0])==null?void 0:(u=x.toJSON)==null?void 0:u.call(x);Z?(Z.requestStart=oF(Z.requestStart),Z.responseEnd=oF(Z.responseEnd),Z.redirectStart=oF(Z.redirectStart),Z.redirectEnd=oF(Z.redirectEnd),Z.domainLookupEnd=oF(Z.domainLookupEnd),Z.connectStart=oF(Z.connectStart), Z.connectEnd=oF(Z.connectEnd),Z.responseStart=oF(Z.responseStart),Z.secureConnectionStart=oF(Z.secureConnectionStart),Z.domainLookupStart=oF(Z.domainLookupStart),Z.isPerformanceNavigationTiming=!0,V=Z):V=WF.timing}else V=g.Bc("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(WF.timing)):WF.timing;return V}; oF=function(V){return Math.round(n4()+V)}; n4=function(){return(g.Bc("csi_use_time_origin")||g.Bc("csi_use_time_origin_tvhtml5"))&&WF.timeOrigin?Math.floor(WF.timeOrigin):WF.timing.navigationStart}; yg=function(V,t){cF("_start",V,t)}; jt=function(V,t){if(!g.Bc("web_csi_action_sampling_enabled")||!L4(t).actionDisabled){var x=BF(t||"");Fc(x.info,V);V.loadType&&(x=V.loadType,FQ(t).loadType=x);Fc(F71(t),V);x=XQ(t);t=L4(t).cttAuthInfo;aF().info(V,x,t)}}; mRs=function(){var V,t,x,u;return((u=jx().resolve(new WZ(pg))==null?void 0:(V=A7())==null?void 0:(t=V.loggingHotConfig)==null?void 0:(x=t.csiConfig)==null?void 0:x.debugTicks)!=null?u:[]).map(function(Z){return Object.values(Z)[0]})}; cF=function(V,t,x){if(!g.Bc("web_csi_action_sampling_enabled")||!L4(x).actionDisabled){var u=XQ(x),Z;if(Z=g.Bc("web_csi_debug_sample_enabled")&&u){(jx().resolve(new WZ(pg))==null?0:A7())&&!Yts&&(Yts=!0,cF("gcfl",(0,g.Tu)(),x));var P,K,R;Z=(jx().resolve(new WZ(pg))==null?void 0:(P=A7())==null?void 0:(K=P.loggingHotConfig)==null?void 0:(R=K.csiConfig)==null?void 0:R.debugSampleWeight)||0;if(P=Z!==0)b:{P=mRs();if(P.length>0)for(K=0;Kx.duration?u:x},{duration:0}))&&t.startTime>0&&t.responseEnd>0&&(cF("wffs",oF(t.startTime)),cF("wffe",oF(t.responseEnd)))}; npC=function(V,t,x){WF&&WF.measure&&(V.startsWith("measure_")||(V="measure_"+V),x?WF.measure(V,t,x):t?WF.measure(V,t):WF.measure(V))}; c7s=function(V){var t=lY("aft",V);if(t)return t;t=g.Zc((V||"")+"TIMING_AFT_KEYS",["ol"]);for(var x=t.length,u=0;u0&&jt(t);t={isNavigation:!0,actionType:mi(g.Zc("TIMING_ACTION"))};var x=g.Zc("PREVIOUS_ACTION");x&&(t.previousAction=mi(x));if(x=g.Zc("CLIENT_PROTOCOL"))t.httpProtocol=x;if(x=g.Zc("CLIENT_TRANSPORT"))t.transportProtocol=x;(x=g.aw())&&x!=="UNDEFINED_CSN"&&(t.clientScreenNonce=x);x=r7q();if(x===1||x===-1)t.isVisible= !0;x=FQ().loadType==="cold";var u=L7T();x||(x=u.yt_lt==="cold");if(x){t.loadType="cold";x=L7T();u=BD0();var Z=n4(),P=g.Zc("CSI_START_TIMESTAMP_MILLIS",0);P>0&&!g.Bc("embeds_web_enable_csi_start_override_killswitch")&&(Z=P);Z&&(cF("srt",u.responseStart),x.prerender!==1&&yg(Z));x=l$j();x>0&&cF("fpt",x);x=BD0();x.isPerformanceNavigationTiming&&jt({performanceNavigationTiming:!0},void 0);cF("nreqs",x.requestStart,void 0);cF("nress",x.responseStart,void 0);cF("nrese",x.responseEnd,void 0);x.redirectEnd- x.redirectStart>0&&(cF("nrs",x.redirectStart,void 0),cF("nre",x.redirectEnd,void 0));x.domainLookupEnd-x.domainLookupStart>0&&(cF("ndnss",x.domainLookupStart,void 0),cF("ndnse",x.domainLookupEnd,void 0));x.connectEnd-x.connectStart>0&&(cF("ntcps",x.connectStart,void 0),cF("ntcpe",x.connectEnd,void 0));x.secureConnectionStart>=n4()&&x.connectEnd-x.secureConnectionStart>0&&(cF("nstcps",x.secureConnectionStart,void 0),cF("ntcpe",x.connectEnd,void 0));WF&&"getEntriesByType"in WF&&opj();x=[];if(document.querySelector&& WF&&WF.getEntriesByName)for(var K in Dj)Dj.hasOwnProperty(K)&&(u=Dj[K],W7j(K,u)&&x.push(u));if(x.length>0)for(t.resourceInfo=[],K=g.G(x),x=K.next();!x.done;x=K.next())t.resourceInfo.push({resourceCache:x.value})}jt(t);t=gq();t.preLoggedGelInfos||(t.preLoggedGelInfos=[]);K=t.preLoggedGelInfos;t=F71();x=void 0;for(u=0;u-1&&(delete S["@type"],d=S);I&&V.S.has(I)&&V.S.delete(I);((ws=t.config)==null?0:ws.NhS)&&dq(t.config.NhS);if(d||(Ic=V.N)==null||!Ic.iuU(t.input,t.zW)){gs.FX(15);break}return g.m(gs,V.N.z11(t.input,t.zW),16);case 16:d=gs.S;case 15:return RAh(V,d,t),((t_=t.config)==null?0:t_.CvD)&&dq(t.config.CvD),u(),gs.return(d||void 0)}})}; uc9=function(V,t){a:{V=V.eQ;var x,u=(x=g.l(t,s8s))==null?void 0:x.signal;if(u&&V.E0&&(x=V.E0[u])){var Z=x();break a}var P;if((x=(P=g.l(t,NDh))==null?void 0:P.request)&&V.A2&&(P=V.A2[x])){Z=P();break a}for(Z in t)if(V.vB[Z]&&(t=V.vB[Z])){Z=t();break a}Z=void 0}if(Z!==void 0)return Promise.resolve(Z)}; Pmj=function(V,t,x){var u,Z,P,K,R,f,b;return g.Q(function(E){if(E.J==1){P=((u=t)==null?void 0:(Z=u.gJ)==null?void 0:Z.identity)||I8;f=(K=t)==null?void 0:(R=K.gJ)==null?void 0:R.sessionIndex;var k=g.LX(V.J.qm(P,{sessionIndex:f}));return g.m(E,k,2)}b=E.S;return E.return(Promise.resolve(Object.assign({},A7L(x),b)))})}; Zss=function(V,t,x){var u,Z=(t==null?void 0:(u=t.gJ)==null?void 0:u.identity)||I8,P;t=t==null?void 0:(P=t.gJ)==null?void 0:P.sessionIndex;V=V.J.qm(Z,{sessionIndex:t});return Object.assign({},A7L(x),V)}; Zv=function(){}; PE=function(){}; KS=function(V){this.B=V}; qj=function(){}; Rn=function(){}; fS=function(){}; $u=function(){}; g.bM=function(V,t){var x=g.Xq.apply(2,arguments);V=V===void 0?0:V;g.xe.call(this,t,x);this.errorType=V;Object.setPrototypeOf(this,this.constructor.prototype)}; EV=function(V,t,x){this.J=V;this.S=t;this.N=x}; $Xz=function(V,t,x){if(V.J){var u=cM(g.jO(5,wj(t,"key")))||"/UNKNOWN_PATH";V.J.start(u)}V=x;g.Bc("wug_networking_gzip_request")&&(V=jij(x));return new window.Request(t,V)}; g.iM=function(V,t){if(!ku){var x=jx();om(x,{Qn:bsl,i4:EV});var u={vB:{feedbackEndpoint:A4(qj),modifyChannelNotificationPreferenceEndpoint:A4(Rn),playlistEditEndpoint:A4(fS),shareEntityEndpoint:A4(KS),subscribeEndpoint:A4(Zv),unsubscribeEndpoint:A4(PE),webPlayerShareEntityServiceEndpoint:A4($u)}},Z=PF.getInstance(),P={};Z&&(P.client_location=Z);V===void 0&&(V=JJz());t===void 0&&(t=x.resolve(bsl));xX9(u,t,V,P);om(x,{Qn:ErT,vM:t9.instance});ku=x.resolve(ErT)}return ku}; k3s=function(V){var t=new SN;if(V.interpreterJavascript){var x=mr0(V.interpreterJavascript);x=HQ(x).toString();var u=new p2;sL(u,6,x);qP(t,p2,1,u)}else V.interpreterUrl&&(x=Y6(V.interpreterUrl),x=BQ(x).toString(),u=new An,sL(u,4,x),qP(t,An,2,u));V.interpreterHash&&NP(t,3,V.interpreterHash);V.program&&NP(t,4,V.program);V.globalName&&NP(t,5,V.globalName);V.clientExperimentsStateBlob&&NP(t,7,V.clientExperimentsStateBlob);return t}; OV=function(V){var t={};V=V.split("&");V=g.G(V);for(var x=V.next();!x.done;x=V.next())x=x.value.split("="),x.length===2&&(t[x[0]]=x[1]);return t}; JXh=function(){if(g.Bc("bg_st_hr"))return"havuokmhhs-0";var V,t=((V=performance)==null?void 0:V.timeOrigin)||0;return"havuokmhhs-"+Math.floor(t)}; sV=function(V){this.J=V}; isw=function(){return new Promise(function(V){var t=window.top;t.ntpevasrs!==void 0?V(new sV(t.ntpevasrs)):(t.ntpqfbel===void 0&&(t.ntpqfbel=[]),t.ntpqfbel.push(function(x){V(new sV(x))}))})}; smL=function(){if(!g.Bc("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Bc("disable_biscotti_fetch_entirely_for_all_web_clients")&&bs()){var V=g.Zc("PLAYER_VARS",{});if(g.QR(V,"privembed",!1)!="1"&&!vxL(V)){var t=function(){Nj=!0;"google_ad_status"in window?u$("DCLKSTAT",1):u$("DCLKSTAT",2)}; try{g.NX("//static.doubleclick.net/instream/ad_status.js",t)}catch(x){}OsT.push(g.w9.dg(function(){if(!(Nj||"google_ad_status"in window)){try{if(t){var x=""+g.Dz(t),u=vch[x];u&&g.O8(u)}}catch(Z){}Nj=!0;u$("DCLKSTAT",3)}},5E3))}}}; pS=function(){var V=Number(g.Zc("DCLKSTAT",0));return isNaN(V)?0:V}; In=function(V,t,x){var u=this;this.network=V;this.options=t;this.S=x;this.J=null;if(t.BSS){var Z=new g.v$;this.J=Z.promise;g.Ww.ytAtRC&&Kq(function(){var P,K;return g.Q(function(R){if(R.J==1){if(!g.Ww.ytAtRC)return R.return();P=A9(null);return g.m(R,SY(u,P),2)}K=R.S;g.Ww.ytAtRC&&g.Ww.ytAtRC(JSON.stringify(K));g.pl(R)})},2); isw().then(function(P){var K,R,f,b;return g.Q(function(E){if(E.J==1)return P.bindInnertubeChallengeFetcher(function(k){return SY(u,A9(k))}),g.m(E,W2(),2); K=E.S;R=P.getLatestChallengeResponse();f=R.challenge;if(!f)throw Error("BGE_MACIL");b={challenge:f,mQ:OV(f),kU:K,bgChallenge:new SN};Z.resolve(b);P.registerChallengeFetchedCallback(function(k){k=k.challenge;if(!k)throw Error("BGE_MACR");k={challenge:k,mQ:OV(k),kU:K,bgChallenge:new SN};u.J=Promise.resolve(k)}); g.pl(E)})})}else t.preload&&NFj(this,new Promise(function(P){g.q3(0,function(){P(GE(u))},0)}))}; A9=function(V){var t={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};V&&(t.interpreterHash=V);return t}; GE=function(V,t){t=t===void 0?0:t;var x,u,Z,P,K,R,f,b,E,k,O,N;return g.Q(function(p){switch(p.J){case 1:x=A9(Xz().J);if(g.Bc("att_fet_ks"))return g.AT(p,7),g.m(p,SY(V,x),9);g.AT(p,4);return g.m(p,pZ4(V,x),6);case 6:K=p.S;Z=K.zsS;P=K.YLC;u=K;g.GK(p,3);break;case 4:return g.I9(p),g.lf(Error("Failed to fetch attestation challenge after "+(t+" attempts; not retrying for 24h."))),vE(V,864E5),p.return({challenge:"",mQ:{},kU:void 0,bgChallenge:void 0});case 9:u=p.S;if(!u)throw Error("Fetching Attestation challenge returned falsy"); if(!u.challenge)throw Error("Missing Attestation challenge");Z=u.challenge;P=OV(Z);if("c1a"in P&&(!u.bgChallenge||!u.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.GK(p,3);break;case 7:R=g.I9(p);g.lf(R);t++;if(t>=5)return g.lf(Error("Failed to fetch attestation challenge after "+(t+" attempts; not retrying for 24h."))),vE(V,864E5),p.return({challenge:"",mQ:{},kU:void 0,bgChallenge:void 0});f=1E3*Math.pow(2,t-1)+Math.random()*1E3;return p.return(new Promise(function(I){g.q3(0, function(){I(GE(V,t))},f)})); case 3:b=Number(P.t)||7200;vE(V,b*1E3);E=void 0;if(!("c1a"in P&&u.bgChallenge)){p.FX(10);break}k=k3s(u.bgChallenge);g.AT(p,11);return g.m(p,zl(Xz(),k),13);case 13:g.GK(p,12);break;case 11:return O=g.I9(p),g.lf(O),p.return({challenge:Z,mQ:P,kU:E,bgChallenge:k});case 12:return g.AT(p,14),E=new L2({challenge:k,lH:{Ee:"aGIf"}}),g.m(p,E.XC,16);case 16:g.GK(p,10);break;case 14:N=g.I9(p),g.lf(N),E=void 0;case 10:return p.return({challenge:Z,mQ:P,kU:E,bgChallenge:k})}})}; SY=function(V,t){var x;return g.Q(function(u){x=V.S;if(!x||x.U8())return u.return(SY(V.network,t));VF("att_pna",void 0,"attestation_challenge_fetch");return u.return(new Promise(function(Z){x.RY("publicytnetworkstatus-online",function(){SY(V.network,t).then(Z)})}))})}; ACj=function(V){if(!V)throw Error("Fetching Attestation challenge returned falsy");if(!V.challenge)throw Error("Missing Attestation challenge");var t=V.challenge,x=OV(t);if("c1a"in x&&(!V.bgChallenge||!V.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},V,{zsS:t,YLC:x})}; pZ4=function(V,t){var x,u,Z,P,K;return g.Q(function(R){switch(R.J){case 1:x=void 0,u=0,Z={};case 2:if(!(u<5)){R.FX(4);break}if(!(u>0)){R.FX(5);break}Z.l2=1E3*Math.pow(2,u-1)+Math.random()*1E3;return g.m(R,new Promise(function(f){return function(b){g.q3(0,function(){b(void 0)},f.l2)}}(Z)),5); case 5:return g.AT(R,7),g.m(R,SY(V,t),9);case 9:return P=R.S,R.return(ACj(P));case 7:x=K=g.I9(R),K instanceof Error&&g.lf(K);case 8:u++;Z={l2:void 0};R.FX(2);break;case 4:throw x;}})}; NFj=function(V,t){V.J=t}; S81=function(V){var t,x,u;return g.Q(function(Z){if(Z.J==1)return g.m(Z,Promise.race([V.J,null]),2);t=Z.S;var P=GE(V);V.J=P;(x=t)==null||(u=x.kU)==null||u.dispose();g.pl(Z)})}; vE=function(V,t){function x(){var Z;return g.Q(function(P){Z=u-Date.now();return Z<1E3?g.m(P,S81(V),0):(Kq(x,0,Math.min(Z,6E4)),P.FX(0))})} var u=Date.now()+t;x()}; G39=function(V,t){return new Promise(function(x){g.q3(0,function(){x(t())},V)})}; g.IKC=function(V,t){var x;return g.Q(function(u){var Z=g.nl("yt.aba.att");return(x=Z?Z:In.instance!==void 0?In.instance.N.bind(In.instance):null)?u.return(x("ENGAGEMENT_TYPE_PLAYBACK",V,t)):u.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.vrh=function(){var V;return(V=(V=g.nl("yt.aba.att2"))?V:In.instance!==void 0?In.instance.W.bind(In.instance):null)?V():Promise.resolve(!1)}; F3K=function(V,t){var x=g.nl("ytDebugData.callbacks");x||(x={},g.o9("ytDebugData.callbacks",x));if(g.Bc("web_dd_iu")||L3L.includes(V))x[V]=t}; LS=function(){var V=Mxh;var t=t===void 0?[]:t;var x=x===void 0?[]:x;t=FVj.apply(null,[MU1.apply(null,g.v(t))].concat(g.v(x)));this.store=Xah(V,void 0,t)}; g.Fn=function(V,t,x){for(var u=Object.assign({},V),Z=g.G(Object.keys(t)),P=Z.next();!P.done;P=Z.next()){P=P.value;var K=V[P],R=t[P];if(R===void 0)delete u[P];else if(K===void 0)u[P]=R;else if(Array.isArray(R)&&Array.isArray(K))u[P]=x?[].concat(g.v(K),g.v(R)):R;else if(!Array.isArray(R)&&g.lL(R)&&!Array.isArray(K)&&g.lL(K))u[P]=g.Fn(K,R,x);else if(typeof R===typeof K)u[P]=R;else return t=new g.xe("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:P,Ves:K,updateValue:R}),g.jv(t), V}return u}; Mj=function(V){var t=this;V=V===void 0?[]:V;this.wh=[];this.WQ=this.tQ=0;this.rA=void 0;this.totalLength=0;V.forEach(function(x){t.append(x)})}; gr9=function(V,t){return V.wh.length===0?!1:(V=V.wh[V.wh.length-1])&&V.buffer===t.buffer&&V.byteOffset+V.length===t.byteOffset}; g_=function(V,t){t=g.G(t.wh);for(var x=t.next();!x.done;x=t.next())V.append(x.value)}; Xn=function(V,t,x){return V.split(t).q0.split(x).Ir}; zE=function(V){V.rA=void 0;V.tQ=0;V.WQ=0}; BE=function(V,t,x){V.isFocused(t);return t-V.WQ+x<=V.wh[V.tQ].length}; XZL=function(V){if(!V.rA){var t=V.wh[V.tQ];V.rA=new DataView(t.buffer,t.byteOffset,t.length)}return V.rA}; mv=function(V,t,x){V=V.BQ(t===void 0?0:t,x===void 0?-1:x);t=new Uint8Array(V.length);try{t.set(V)}catch(u){for(x=0;x>10;P=56320|P&1023}an[Z++]=P}}P=String.fromCharCode.apply(String,an); Z<1024&&(P=P.substring(0,Z));x.push(P)}return x.join("")}; WE=function(V,t){var x;if((x=TE)==null?0:x.encodeInto)return t=TE.encodeInto(V,t),t.read>6|192:((Z&64512)===55296&&u+1>18|240,t[x++]=Z>>12&63|128):t[x++]=Z>>12|224,t[x++]=Z>>6&63|128),t[x++]=Z&63|128)}return x}; on=function(V){if(TE)return TE.encode(V);var t=new Uint8Array(Math.ceil(V.length*1.2)),x=WE(V,t);t.lengthx&&(t=t.subarray(0,x));return t}; nS=function(V){this.J=V;this.pos=0;this.S=-1}; cE=function(V){var t=V.J.getUint8(V.pos);++V.pos;if(t<128)return t;for(var x=t&127,u=1;t>=128;)t=V.J.getUint8(V.pos),++V.pos,u*=128,x+=(t&127)*u;return x}; yF=function(V,t){var x=V.S;for(V.S=-1;V.J.aV(V.pos,1);){x<0&&(x=cE(V));var u=x>>3,Z=x&7;if(u===t)return!0;if(u>t){V.S=x;break}x=-1;switch(Z){case 0:cE(V);break;case 1:V.pos+=8;break;case 2:u=cE(V);V.pos+=u;break;case 5:V.pos+=4}}return!1}; jY=function(V,t){if(yF(V,t))return cE(V)}; lM=function(V,t){if(yF(V,t))return!!cE(V)}; HE=function(V,t){if(yF(V,t)){t=cE(V);var x=V.J.BQ(V.pos,t);V.pos+=t;return x}}; UV=function(V,t){if(V=HE(V,t))return g.r_(V)}; Dv=function(V,t,x){if(V=HE(V,t))return x(new nS(new Mj([V])))}; eY=function(V,t){for(var x=[];yF(V,t);)x.push(cE(V));return x.length?x:void 0}; d_=function(V,t,x){for(var u=[],Z;Z=HE(V,t);)u.push(x(new nS(new Mj([Z]))));return u.length?u:void 0}; KA=function(V,t){V=V instanceof Uint8Array?new Mj([V]):V;return t(new nS(V))}; mXK=function(V,t,x){if(t&&x&&x.buffer===t.exports.memory.buffer){var u=t.realloc(x.byteOffset,V);if(u)return new Uint8Array(t.exports.memory.buffer,u,V)}V=t?new Uint8Array(t.exports.memory.buffer,t.malloc(V),V):new Uint8Array(V);x&&V.set(x);return V}; Y8C=function(V,t){this.m2=t;this.pos=0;this.S=[];this.J=mXK(V===void 0?4096:V,t);this.view=new DataView(this.J.buffer,this.J.byteOffset,this.J.byteLength)}; qB=function(V,t){t=V.pos+t;if(!(V.J.length>=t)){for(var x=V.J.length*2;x268435455){qB(V,4);for(var x=t&1073741823,u=0;u<4;u++)V.view.setUint8(V.pos,x&127|128),x>>=7,V.pos+=1;t=Math.floor(t/268435456)}for(qB(V,4);t>127;)V.view.setUint8(V.pos,t&127|128),t>>=7,V.pos+=1;V.view.setUint8(V.pos,t);V.pos+=1}; fA=function(V,t,x){x!==void 0&&(RR(V,t*8),RR(V,x))}; $B=function(V,t,x){x!==void 0&&fA(V,t,x?1:0)}; br=function(V,t,x){x!==void 0&&(RR(V,t*8+2),t=x.length,RR(V,t),qB(V,t),V.J.set(x,V.pos),V.pos+=t)}; Ei=function(V,t,x){x!==void 0&&(Qm8(V,t,Math.ceil(Math.log2(x.length*4+2)/7)),qB(V,x.length*1.2),t=WE(x,V.J.subarray(V.pos)),V.pos+t>V.J.length&&(qB(V,t),t=WE(x,V.J.subarray(V.pos))),V.pos+=t,aKj(V))}; Qm8=function(V,t,x){x=x===void 0?2:x;RR(V,t*8+2);V.S.push(V.pos);V.S.push(x);V.pos+=x}; aKj=function(V){for(var t=V.S.pop(),x=V.S.pop(),u=V.pos-x-t;t--;){var Z=t?128:0;V.view.setUint8(x++,u&127|Z);u>>=7}}; kB=function(V,t,x,u,Z){x&&(Qm8(V,t,Z===void 0?3:Z),u(V,x),aKj(V))}; g.ir=function(V,t,x){x=new Y8C(4096,x);t(x,V);return new Uint8Array(x.J.buffer,x.J.byteOffset,x.pos)}; g.Oi=function(V){var t=new nS(new Mj([SG(decodeURIComponent(V))]));V=UV(t,2);t=jY(t,4);var x=rCh[t];if(typeof x==="undefined")throw V=new g.xe("Failed to recognize field number",{name:"EntityKeyHelperError",yqS:t}),g.jv(V),V;return{Aa:t,entityType:x,entityId:V}}; g.si=function(V,t){var x=new Y8C;br(x,2,on(V));V=TFs[t];if(typeof V==="undefined")throw t=new g.xe("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:t}),g.jv(t),t;fA(x,4,V);fA(x,5,1);t=new Uint8Array(x.J.buffer,x.J.byteOffset,x.pos);return encodeURIComponent(g.pR(t))}; NB=function(V,t,x,u){if(u===void 0)return u=Object.assign({},V[t]||{}),x=(delete u[x],u),u={},Object.assign({},V,(u[t]=x,u));var Z={},P={};return Object.assign({},V,(P[t]=Object.assign({},V[t],(Z[x]=u,Z)),P))}; W3w=function(V,t,x,u,Z){var P=V[t];if(P==null||!P[x])return V;u=g.Fn(P[x],u,Z==="REPEATED_FIELDS_MERGE_OPTION_APPEND");Z={};P={};return Object.assign({},V,(P[t]=Object.assign({},V[t],(Z[x]=u,Z)),P))}; ors=function(V,t){V=V===void 0?{}:V;switch(t.type){case "ENTITY_LOADED":return t.payload.reduce(function(u,Z){var P,K=(P=Z.options)==null?void 0:P.persistenceOption;if(K&&K!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&K!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return u;if(!Z.entityKey)return g.jv(Error("Missing entity key")),u;if(Z.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!Z.payload)return g.jv(new g.xe("REPLACE entity mutation is missing a payload",{entityKey:Z.entityKey})),u;var R=g.M8(Z.payload); return NB(u,R,Z.entityKey,Z.payload[R])}if(Z.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{Z=Z.entityKey;try{var f=g.Oi(Z).entityType;R=NB(u,f,Z);break a}catch(k){if(k instanceof Error){g.jv(new g.xe("Failed to deserialize entity key",{entityKey:Z,lj:k.message}));R=u;break a}throw k;}R=void 0}return R}if(Z.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!Z.payload)return g.jv(new g.xe("UPDATE entity mutation is missing a payload",{entityKey:Z.entityKey})),u;R=g.M8(Z.payload);var b,E;return W3w(u,R,Z.entityKey, Z.payload[R],(b=Z.fieldMask)==null?void 0:(E=b.mergeOptions)==null?void 0:E.repeatedFieldsMergeOption)}return u},V); case "REPLACE_ENTITY":var x=t.payload;return NB(V,x.entityType,x.key,x.bd);case "REPLACE_ENTITIES":return Object.keys(t.payload).reduce(function(u,Z){var P=t.payload[Z];return Object.keys(P).reduce(function(K,R){return NB(K,Z,R,P[R])},u)},V); case "UPDATE_ENTITY":return x=t.payload,W3w(V,x.entityType,x.key,x.bd,x.UMs);default:return V}}; pA=function(V,t,x){return V[t]?V[t][x]||null:null}; AE=function(V){return window.Int32Array?new Int32Array(V):Array(V)}; F$=function(V){g.c.call(this);this.counter=[0,0,0,0];this.S=new Uint8Array(16);this.J=16;if(!nr9){var t,x=new Uint8Array(256),u=new Uint8Array(256);var Z=1;for(t=0;t<256;t++)x[Z]=t,u[t]=Z,Z^=Z<<1^(Z>>7&&283);S8=new Uint8Array(256);Gk=AE(256);IR=AE(256);vl=AE(256);LA=AE(256);for(var P=0;P<256;P++){Z=P?u[255^x[P]]:0;Z^=Z<<1^Z<<2^Z<<3^Z<<4;Z=Z&255^Z>>>8^99;S8[P]=Z;t=Z<<1^(Z>>7&&283);var K=t^Z;Gk[P]=t<<24|Z<<16|Z<<8|K;IR[P]=K<<24|Gk[P]>>>8;vl[P]=Z<<24|IR[P]>>>8;LA[P]=Z<<24|vl[P]>>>8}nr9=!0}Z=AE(44);for(x= 0;x<4;x++)Z[x]=V[4*x]<<24|V[4*x+1]<<16|V[4*x+2]<<8|V[4*x+3];for(u=1;x<44;x++)V=Z[x-1],x%4||(V=(S8[V>>16&255]^u)<<24|S8[V>>8&255]<<16|S8[V&255]<<8|S8[V>>>24],u=u<<1^(u>>7&&283)),Z[x]=Z[x-4]^V;this.key=Z}; MB=function(V,t){for(var x=0;x<4;x++)V.counter[x]=t[x*4]<<24|t[x*4+1]<<16|t[x*4+2]<<8|t[x*4+3];V.J=16}; cCh=function(V){for(var t=V.key,x=V.counter[0]^t[0],u=V.counter[1]^t[1],Z=V.counter[2]^t[2],P=V.counter[3]^t[3],K=3;K>=0&&!(V.counter[K]=-~V.counter[K]);K--);for(var R,f,b=4;b<40;)K=Gk[x>>>24]^IR[u>>16&255]^vl[Z>>8&255]^LA[P&255]^t[b++],R=Gk[u>>>24]^IR[Z>>16&255]^vl[P>>8&255]^LA[x&255]^t[b++],f=Gk[Z>>>24]^IR[P>>16&255]^vl[x>>8&255]^LA[u&255]^t[b++],P=Gk[P>>>24]^IR[x>>16&255]^vl[u>>8&255]^LA[Z&255]^t[b++],x=K,u=R,Z=f;V=V.S;K=t[40];V[0]=S8[x>>>24]^K>>>24;V[1]=S8[u>>16&255]^K>>16&255;V[2]=S8[Z>>8&255]^ K>>8&255;V[3]=S8[P&255]^K&255;K=t[41];V[4]=S8[u>>>24]^K>>>24;V[5]=S8[Z>>16&255]^K>>16&255;V[6]=S8[P>>8&255]^K>>8&255;V[7]=S8[x&255]^K&255;K=t[42];V[8]=S8[Z>>>24]^K>>>24;V[9]=S8[P>>16&255]^K>>16&255;V[10]=S8[x>>8&255]^K>>8&255;V[11]=S8[u&255]^K&255;K=t[43];V[12]=S8[P>>>24]^K>>>24;V[13]=S8[x>>16&255]^K>>16&255;V[14]=S8[u>>8&255]^K>>8&255;V[15]=S8[Z&255]^K&255}; zk=function(){if(!gd&&!g.u0){if(X$)return X$;var V;X$=(V=window.crypto)==null?void 0:V.subtle;var t,x,u;if(((t=X$)==null?0:t.importKey)&&((x=X$)==null?0:x.sign)&&((u=X$)==null?0:u.encrypt))return X$;X$=void 0}}; g.Bl=function(V){this.W=V}; g.ms=function(V){this.S=V}; YB=function(V){this.G=new Uint8Array(64);this.N=new Uint8Array(64);this.W=0;this.B=new Uint8Array(64);this.S=0;this.G.set(V);this.N.set(V);for(V=0;V<64;V++)this.G[V]^=92,this.N[V]^=54;this.reset()}; yCq=function(V,t,x){for(var u=V.L,Z=V.J[0],P=V.J[1],K=V.J[2],R=V.J[3],f=V.J[4],b=V.J[5],E=V.J[6],k=V.J[7],O,N,p,I=0;I<64;)I<16?(u[I]=p=t[x]<<24|t[x+1]<<16|t[x+2]<<8|t[x+3],x+=4):(O=u[I-2],N=u[I-15],p=u[I-7]+u[I-16]+((O>>>17|O<<15)^(O>>>19|O<<13)^O>>>10)+((N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3),u[I]=p),O=k+Qh[I]+p+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&b^~f&E),N=((Z>>>2|Z<<30)^(Z>>>13|Z<<19)^(Z>>>22|Z<<10))+(Z&P^Z&K^P&K),k=O+N,R+=O,I++,I<16?(u[I]=p=t[x]<<24|t[x+1]<<16|t[x+2]<<8|t[x+3],x+=4):(O= u[I-2],N=u[I-15],p=u[I-7]+u[I-16]+((O>>>17|O<<15)^(O>>>19|O<<13)^O>>>10)+((N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3),u[I]=p),O=E+Qh[I]+p+((R>>>6|R<<26)^(R>>>11|R<<21)^(R>>>25|R<<7))+(R&f^~R&b),N=((k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10))+(k&Z^k&P^Z&P),E=O+N,K+=O,I++,I<16?(u[I]=p=t[x]<<24|t[x+1]<<16|t[x+2]<<8|t[x+3],x+=4):(O=u[I-2],N=u[I-15],p=u[I-7]+u[I-16]+((O>>>17|O<<15)^(O>>>19|O<<13)^O>>>10)+((N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3),u[I]=p),O=b+Qh[I]+p+((K>>>6|K<<26)^(K>>>11|K<<21)^(K>>>25|K<<7))+(K&R^ ~K&f),N=((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+(E&k^E&Z^k&Z),b=O+N,P+=O,I++,I<16?(u[I]=p=t[x]<<24|t[x+1]<<16|t[x+2]<<8|t[x+3],x+=4):(O=u[I-2],N=u[I-15],p=u[I-7]+u[I-16]+((O>>>17|O<<15)^(O>>>19|O<<13)^O>>>10)+((N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3),u[I]=p),O=f+Qh[I]+p+((P>>>6|P<<26)^(P>>>11|P<<21)^(P>>>25|P<<7))+(P&K^~P&R),N=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&E^b&k^E&k),p=k,k=R,R=p,p=E,E=K,K=p,p=b,b=P,P=p,f=Z+O,Z=O+N,I++;V.J[0]=Z+V.J[0]|0;V.J[1]=P+V.J[1]|0;V.J[2]=K+V.J[2]|0;V.J[3]= R+V.J[3]|0;V.J[4]=f+V.J[4]|0;V.J[5]=b+V.J[5]|0;V.J[6]=E+V.J[6]|0;V.J[7]=k+V.J[7]|0}; lKs=function(V){var t=new Uint8Array(32),x=64-V.S;V.S>55&&(x+=64);var u=new Uint8Array(x);u[0]=128;for(var Z=V.W*8,P=1;P<9;P++){var K=Z%256;u[x-P]=K;Z=(Z-K)/256}V.update(u);for(x=0;x<8;x++)t[x*4]=V.J[x]>>>24,t[x*4+1]=V.J[x]>>>16&255,t[x*4+2]=V.J[x]>>>8&255,t[x*4+3]=V.J[x]&255;jmq(V);return t}; jmq=function(V){V.J=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];V.L=[];V.L.length=64;V.W=0;V.S=0}; Hsq=function(V){this.J=V}; UXw=function(V,t,x){V=new YB(V.J);V.update(t);V.update(x);t=lKs(V);V.update(V.G);V.update(t);t=lKs(V);V.reset();return t}; DXC=function(V){this.S=V}; eAw=function(V,t,x,u){var Z,P,K;return g.Q(function(R){switch(R.J){case 1:if(V.J){R.FX(2);break}return g.m(R,u.importKey("raw",V.S,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:V.J=R.S;case 2:return Z=new Uint8Array(t.length+x.length),Z.set(t),Z.set(x,t.length),P={name:"HMAC",hash:"SHA-256"},g.m(R,u.sign(P,V.J,Z),4);case 4:return K=R.S,R.return(new Uint8Array(K))}})}; dX8=function(V,t,x){V.N||(V.N=new Hsq(V.S));return UXw(V.N,t,x)}; Cm1=function(V,t,x){var u,Z;return g.Q(function(P){if(P.J==1){u=zk();if(!u)return P.return(dX8(V,t,x));g.AT(P,3);return g.m(P,eAw(V,t,x,u),5)}if(P.J!=3)return P.return(P.S);Z=g.I9(P);g.lf(Z);gd=!0;return P.return(dX8(V,t,x))})}; hA1=function(V){for(var t="",x=0;x=1?V[V.length-1]:null;for(var u=g.G(V),Z=u.next();!Z.done;Z=u.next())if(Z=Z.value,Z.width&&Z.height&&(x&&Z.width>=t||!x&&Z.height>=t))return Z;for(t=V.length-1;t>=0;t--)if(x&&V[t].width||!x&&V[t].height)return V[t];return V[0]}; rd=function(){this.state=1;this.kU=null}; Knl=function(V,t,x,u,Z,P){var K=K===void 0?"trayride":K;x?(V.Hk(2),g.NX(x,function(){if(window[K])PfC(V,u,K,Z);else{V.Hk(3);var R=IcT(x),f=document.getElementById(R);f&&(SQ8(R),f.parentNode.removeChild(f));g.lf(new g.xe("Unable to load Botguard","from "+x))}},P)):t?(P=g.uc("SCRIPT"),t instanceof lx?(P.textContent=HQ(t),Uo(P)):P.textContent=t,P.nonce=jA(document),document.head.appendChild(P),document.head.removeChild(P),window[K]?PfC(V,u,K,Z):(V.Hk(4),g.lf(new g.xe("Unable to load Botguard from JS")))): g.lf(new g.xe("Unable to load VM; no url or JS provided"))}; PfC=function(V,t,x,u){V.Hk(5);try{var Z=new L2({program:t,globalName:x,lH:{disable:!g.Bc("att_web_record_metrics"),Ee:"aGIf"}});Z.XC.then(function(){V.Hk(6);u&&u(t)}); V.Yv(Z)}catch(P){V.Hk(7),P instanceof Error&&g.lf(P)}}; Tk=function(){var V=g.nl("yt.abuse.playerAttLoader");return V&&["bgvma","bgvmb","bgvmc"].every(function(t){return t in V})?V:null}; Wl=function(){rd.apply(this,arguments)}; oR=function(){}; qHz=function(V,t,x){for(var u=!1,Z=g.G(V.ib.entries()),P=Z.next();!P.done;P=Z.next())P=g.G(P.value).next().value,P.slotType==="SLOT_TYPE_PLAYER_BYTES"&&P.C1==="core"&&(u=!0);if(u){a:if(!x){V=g.G(V.ib.entries());for(x=V.next();!x.done;x=V.next())if(u=g.G(x.value),x=u.next().value,u=u.next().value,x.slotType==="SLOT_TYPE_IN_PLAYER"&&x.C1==="core"){x=u.layoutId;break a}x=void 0}x?t.EQ(x):Gd("No triggering layout ID available when attempting to mute.")}}; nA=function(V,t){this.xt=V;this.lP=t}; cl=function(){}; yh=function(){}; fOC=function(V){g.c.call(this);var t=this;this.jB=V;this.J=new Map;j8(this,"commandExecutorCommand",function(x,u,Z){R3K(t,x.commands,u,Z)}); j8(this,"clickTrackingParams",function(){})}; $El=function(V,t){j8(V,t.sT(),function(x,u,Z){t.pp(x,u,Z)})}; j8=function(V,t,x){V.uD();V.J.get(t)&&g.jv(Error("Extension name "+t+" already registered"));V.J.set(t,x)}; R3K=function(V,t,x,u){t=t===void 0?[]:t;V.uD();var Z=[],P=[];t=g.G(t);for(var K=t.next();!K.done;K=t.next())K=K.value,g.l(K,b6w)||g.l(K,E$8)?Z.push(K):P.push(K);Z=g.G(Z);for(t=Z.next();!t.done;t=Z.next())lr(V,t.value,x,u);P=g.G(P);for(Z=P.next();!Z.done;Z=P.next())lr(V,Z.value,x,u)}; lr=function(V,t,x,u){V.uD();t.loggingUrls&&kyj(V,"loggingUrls",t.loggingUrls,x,u);t=g.G(Object.entries(t));for(var Z=t.next();!Z.done;Z=t.next()){var P=g.G(Z.value);Z=P.next().value;P=P.next().value;Z==="openPopupAction"?V.jB.get().BY("innertubeCommand",{openPopupAction:P}):Z==="confirmDialogEndpoint"?V.jB.get().BY("innertubeCommand",{confirmDialogEndpoint:P}):i6q.hasOwnProperty(Z)||kyj(V,Z,P,x,u)}}; kyj=function(V,t,x,u,Z){if((V=V.J.get(t))&&typeof V==="function")try{V(x,u,Z)}catch(P){g.jv(P)}else t=new g.xe("Unhandled field",t),g.lf(t)}; Hl=function(V,t,x){this.J9=V;this.J=t;this.TU=x}; Ui=function(V){this.value=V}; Ds=function(V){this.value=V}; e8=function(V){this.value=V}; dd=function(V){this.value=V}; CA=function(V){this.value=V}; JE=function(V){this.value=V}; hE=function(V){this.value=V}; wd=function(){Ui.apply(this,arguments)}; Vc=function(V){this.value=V}; tU=function(V){this.value=V}; xM=function(V){this.value=V}; u2=function(V){this.value=V}; ZW=function(V){this.value=V}; P6=function(V){this.value=V}; KL=function(V){this.value=V}; q$=function(V){this.value=V}; RI=function(V){this.value=V}; fL=function(V){this.value=V}; $M=function(){Ui.apply(this,arguments)}; b2=function(V){this.value=V}; Ex=function(V){this.value=V}; kM=function(V){this.value=V}; i2=function(V){this.value=V}; Ox=function(V){this.value=V}; sx=function(V){this.value=V}; N$=function(V){this.value=V}; pL=function(V){this.value=V}; AU=function(V){this.value=V}; Sn=function(V){this.value=V}; Gc=function(V){this.value=V}; II=function(V){this.value=V}; v6=function(V){this.value=V}; LL=function(V){this.value=V}; Fl=function(V){this.value=V}; M$=function(V){this.value=V}; gC=function(V){this.value=V}; Xl=function(V){this.value=V}; zc=function(V){this.value=V}; B6=function(V){this.value=V}; m2=function(V){this.value=V}; YM=function(V){this.value=V}; Qc=function(V){this.value=V}; aI=function(V){this.value=V}; rC=function(V){this.value=V}; Tc=function(V){this.value=V}; W6=function(V){this.value=V}; oI=function(V){this.value=V}; nL=function(V){this.value=V}; c6=function(V){this.value=V}; yc=function(V){this.value=V}; jn=function(V){this.value=V}; l2=function(V){this.value=V}; H6=function(V){this.value=V}; Ux=function(V){this.value=V}; DW=function(V){this.value=V}; en=function(V){this.value=V}; dC=function(V){this.value=V}; CL=function(){Ui.apply(this,arguments)}; JU=function(V){this.value=V}; hU=function(){Ui.apply(this,arguments)}; wC=function(){Ui.apply(this,arguments)}; VE=function(){Ui.apply(this,arguments)}; t3=function(){Ui.apply(this,arguments)}; xH=function(){Ui.apply(this,arguments)}; uC=function(V){this.value=V}; ZC=function(V){this.value=V}; Pn=function(V){this.value=V}; Kw=function(V){this.value=V}; qH=function(V){this.value=V}; fw=function(V,t,x){if(x&&!x.includes(V.layoutType))return!1;t=g.G(t);for(x=t.next();!x.done;x=t.next())if(!Rp(V.clientMetadata,x.value))return!1;return!0}; $H=function(){return""}; O6L=function(V,t){switch(V){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 t(V),8}}; bC=function(V,t,x,u){u=u===void 0?!1:u;s$.call(this,V);this.fk=x;this.QA=u;this.args=[];t&&this.args.push(t)}; h=function(V,t,x,u){u=u===void 0?!1:u;s$.call(this,V);this.fk=x;this.QA=u;this.args=[];t&&this.args.push(t)}; Ez=function(V){var t=new Map;V.forEach(function(x){t.set(x.getType(),x)}); this.J=t}; Rp=function(V,t){return V.J.has(t)}; kH=function(V,t){V=V.J.get(t);if(V!==void 0)return V.get()}; iC=function(V){return Array.from(V.J.keys())}; Oz=function(V,t,x){if(x&&x!==V.slotType)return!1;t=g.G(t);for(x=t.next();!x.done;x=t.next())if(!Rp(V.clientMetadata,x.value))return!1;return!0}; NxL=function(V){var t;return((t=sw1.get(V))==null?void 0:t.BC)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; NH=function(V,t){var x={type:t.slotType,controlFlowManagerLayer:p7C.get(t.C1)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};t.slotEntryTrigger&&(x.entryTriggerType=t.slotEntryTrigger.triggerType);t.slotPhysicalPosition!==1&&(x.slotPhysicalPosition=t.slotPhysicalPosition);if(V){x.debugData={slotId:t.slotId};if(V=t.slotEntryTrigger)x.debugData.slotEntryTriggerData=sz(V);V=t.slotFulfillmentTriggers;x.debugData.fulfillmentTriggerData=[];V=g.G(V);for(var u=V.next();!u.done;u=V.next())x.debugData.fulfillmentTriggerData.push(sz(u.value)); t=t.slotExpirationTriggers;x.debugData.expirationTriggerData=[];t=g.G(t);for(V=t.next();!V.done;V=t.next())x.debugData.expirationTriggerData.push(sz(V.value))}return x}; Alw=function(V,t){var x={type:t.layoutType,controlFlowManagerLayer:p7C.get(t.C1)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};V&&(x.debugData={layoutId:t.layoutId});return x}; sz=function(V,t){var x={type:V.triggerType};t!=null&&(x.category=t);V.triggeringSlotId!=null&&(x.triggerSourceData||(x.triggerSourceData={}),x.triggerSourceData.associatedSlotId=V.triggeringSlotId);V.triggeringLayoutId!=null&&(x.triggerSourceData||(x.triggerSourceData={}),x.triggerSourceData.associatedLayoutId=V.triggeringLayoutId);return x}; SH1=function(V,t,x,u){t={opportunityType:t};V&&(u||x)&&(u=g.QV(u||[],function(Z){return NH(V,Z)}),t.debugData=Object.assign({},x&&x.length>0?{associatedSlotId:x}:{},u.length>0?{slots:u}:{})); return t}; A3=function(V,t){return function(x){return Gyl(pw(V),t.slotId,t.slotType,t.slotPhysicalPosition,t.C1,t.slotEntryTrigger,t.slotFulfillmentTriggers,t.slotExpirationTriggers,x.layoutId,x.layoutType,x.C1)}}; Gyl=function(V,t,x,u,Z,P,K,R,f,b,E){return{adClientDataEntry:{slotData:NH(V,{slotId:t,slotType:x,slotPhysicalPosition:u,C1:Z,slotEntryTrigger:P,slotFulfillmentTriggers:K,slotExpirationTriggers:R,clientMetadata:new Ez([])}),layoutData:Alw(V,{layoutId:f,layoutType:b,C1:E,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],Rt:new Map,clientMetadata:new Ez([]),Vt:{}})}}}; GJ=function(V){this.WX=V;V=Math.random();var t=this.WX.get();t=g.S7(t.U.K().experiments,"html5_debug_data_log_probability");t=Number.isFinite(t)&&t>=0&&t<=1?t:0;this.J=V1){g.lf(new g.xe("Exit already started",{current:V.currentState}));var x=!1}else x=!0;if(!x)return!1;V.currentState=2;V.J=t;return!0}; Fw=function(V){if(V.currentState!==2)return!1;V.currentState=3;return!0}; Jz9=function(V,t){var x=new Map;V=g.G(V);for(var u=V.next();!u.done;u=V.next()){u=u.value;if(u.layoutType==="LAYOUT_TYPE_MEDIA")var Z="v";else u.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(Z=kH(u.clientMetadata,"metadata_type_linked_in_player_layout_type"),Z=Z==="LAYOUT_TYPE_ENDCAP"||Z==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":Z==="LAYOUT_TYPE_SURVEY"?"s":Z==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):Z="u";x.set(u.layoutId,Z);if(Z==="u"){var P={};Z=t;u=(P.c=u.layoutId,P);Z.U.J6("uct",u)}}V= t.vp();MF={contentCpn:V,tL:x};u={};x=(u.ct=x.size,u.c=V,u);t.U.J6("acc",x)}; hlT=function(){MF={contentCpn:"",tL:new Map}}; gw=function(V){var t;return(t=MF.tL.get(V))!=null?t:"u"}; Xw=function(V,t,x){V.U.J6(t,x);wSj(V)}; VPj=function(V){var t=V.layoutId,x=V.QM;if(V.DP){var u={};Xw(V.J9,"slso",(u.ec=t,u.is=x,u.ctp=gw(t),u))}}; zf=function(V){var t=V.layoutId,x=V.QM;if(V.DP){var u={};Xw(V.J9,"slse",(u.ec=t,u.is=x,u.ctp=gw(t),u))}}; tPj=function(V){var t=V.layoutId,x=V.QM,u=V.J9;V.DP&&(V={},Xw(u,"sleo",(V.xc=t,V.is=x,V.ctp=gw(t),V)),wSj(u))}; xhK=function(V){var t=V.cpn,x=V.J9;V=V.QM;var u=x.vp(),Z={};Xw(x,"ce",(Z.ec=t,Z.ia=t!==u,Z.r=MF.tL.has(t),Z.is=V,Z.ctp=gw(t),Z))}; wSj=function(V){if(V.vp()!==MF.contentCpn){var t={};t=(t.c=MF.contentCpn,t);V.U.J6("ccm",t)}}; uDL=function(V){var t=V.cpn,x=V.J9;V=V.QM;var u=x.vp(),Z={};Xw(x,"cx",(Z.xc=t,Z.ia=t!==u,Z.r=MF.tL.has(t),Z.is=V,Z.ctp=gw(t),Z))}; ZC4=function(V){this.params=V;this.J=new Set}; PPz=function(V,t,x){if(!V.J.has(t)){V.J.add(t);var u={};V.params.Mf.bb(t,Object.assign({},x,(u.p_ac=V.params.adCpn,u.p_isv=V.params.Kws&&V.params.Z8,u)))}}; mQ=function(V,t,x){if(Bb(V.params.Mf.WX.get(),!0)){var u=x.flush,Z={};PPz(V,t,(Z.cts=x.currentTimeSec,Z.f=u,Z))}}; KP4=function(V,t){this.J9=V;this.WX=t}; YY=function(V){var t=[];if(V){V=g.G(Object.entries(V));for(var x=V.next();!x.done;x=V.next()){var u=g.G(x.value);x=u.next().value;u=u.next().value;u!==void 0&&(u=typeof u==="boolean"?""+ +u:(""+u).replace(/[:,=]/g,"_"),t.push(x+"."+u))}}return t.join(";")}; Qr=function(V,t,x){t=t===void 0?{}:t;this.errorCode=V;this.details=t;this.severity=x===void 0?0:x}; aa=function(V){return V===1||V===2}; rw=function(V,t){t=t===void 0?0:t;if(V instanceof Qr)return V;V=V&&V instanceof Error?V:Error(""+V);aa(t)?g.jv(V):g.lf(V);return new Qr(t===1?"player.fatalexception":"player.exception",{name:""+V.name,message:""+V.message},t)}; qm0=function(V,t){function x(){var u=g.Xq.apply(0,arguments);V.removeEventListener("playing",x);t.apply(null,g.v(u))} V.addEventListener("playing",x)}; Tf=function(){var V=g.nl("yt.player.utils.videoElement_");V||(V=g.uc("VIDEO"),g.o9("yt.player.utils.videoElement_",V));return V}; Wb=function(V){var t=Tf();return!!(t&&t.canPlayType&&t.canPlayType(V))}; n5=function(V){if(/opus/.test(V)&&g.oa&&!aO("38")&&!g.Vz())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(V);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(V);if(/webm/.test(V)&&!AJT())return!1;V==='audio/mp4; codecs="mp4a.40.2"'&&(V='video/mp4; codecs="avc1.4d401f"');return!!Wb(V)}; R$9=function(V){try{var t=n5('video/mp4; codecs="avc1.42001E"')||n5('video/webm; codecs="vp9"');return(n5('audio/mp4; codecs="mp4a.40.2"')||n5('audio/webm; codecs="opus"'))&&(t||!V)||Wb('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(x){return"html5.missingapi"}}; cb=function(){var V=Tf();return!(!V.webkitSupportsPresentationMode||typeof V.webkitSetPresentationMode!=="function")}; yr=function(){var V=Tf();try{var t=V.muted;V.muted=!t;return V.muted!==t}catch(x){}return!1}; fpT=function(){var V;return((V=navigator.connection)==null?void 0:V.type)||""}; g.j6=function(){TF.apply(this,arguments)}; lS=function(V,t,x,u,Z,P,K){this.sampleRate=V===void 0?0:V;this.numChannels=t===void 0?0:t;this.spatialAudioType=x===void 0?"SPATIAL_AUDIO_TYPE_NONE":x;this.J=u===void 0?!1:u;this.N=Z===void 0?0:Z;this.S=P===void 0?0:P;this.audioQuality=K===void 0?"AUDIO_QUALITY_UNKNOWN":K}; Di=function(V,t,x,u,Z,P,K,R,f){this.width=V;this.height=t;this.quality=P||Hb(V,t);this.J=g.U3[this.quality];this.fps=x||0;this.stereoLayout=!Z||u!=null&&u!=="UNKNOWN"&&u!=="RECTANGULAR"?0:Z;this.projectionType=u?u==="EQUIRECTANGULAR"&&Z===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":u:"UNKNOWN";(V=K)||(V=g.U3[this.quality],V===0?V="Autom\u00e1tico":(t=this.fps,x=this.projectionType,V=V.toString()+(x==="EQUIRECTANGULAR"||x==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||x==="MESH"?"s":"p")+(t>55?"60":t>49?"50":t> 39?"48":"")));this.qualityLabel=V;this.S=R||"";this.primaries=f||""}; Hb=function(V,t){var x=Math.max(V,t);V=Math.min(V,t);t=e6[0];for(var u=0;u=Math.floor(P*16/9)*1.3||V>=P*1.3)return t;t=Z}return"tiny"}; Ju=function(V,t,x){x=x===void 0?{}:x;this.id=V;this.mimeType=t;x.n1>0||(x.n1=16E3);Object.assign(this,x);V=g.G(this.id.split(";"));this.itag=V.next().value;this.J=V.next().value;this.containerType=dw(t);this.lD=C5[this.itag]||""}; hu=function(V){return V.lD==="9"||V.lD==="("||V.lD==="9h"||V.lD==="(h"}; $hq=function(V){return V.lD==="H"||V.lD==="h"}; ww=function(V){return V.lD==="9h"||V.lD==="(h"}; V8=function(V){return V.lD==="1"||V.lD==="1h"}; tK=function(V){return V.lD==="mac3"||V.lD==="meac3"||V.lD==="m"||V.lD==="i"}; xI=function(V){return V.lD==="MAC3"||V.lD==="MEAC3"||V.lD==="M"||V.lD==="I"}; g.uQ=function(V){return V.containerType===1}; bC1=function(V){return V.lD==="("||V.lD==="(h"||V.lD==="H"}; ZH=function(V){return V.mimeType==="application/x-mpegURL"}; Pq=function(V){V=V.mimeType;return V.includes("vtt")||V.includes("text/mp4")}; g.KF=function(V,t){return{itag:+V.itag,lmt:t?0:V.lastModified,xtags:V.J||""}}; E9K=function(V){var t=navigator.mediaCapabilities;if(t==null||!t.decodingInfo||V.lD==="f")return Promise.resolve();var x={type:V.audio&&V.video?"file":"media-source"};V.video&&(x.video={contentType:V.mimeType,width:V.video.width||640,height:V.video.height||360,bitrate:V.n1*8||1E6,framerate:V.video.fps||30});V.audio&&(x.audio={contentType:V.mimeType,channels:""+(V.audio.numChannels||2),bitrate:V.n1*8||128E3,samplerate:V.audio.sampleRate||44100});return t.decodingInfo(x).then(function(u){V.S=u})}; qf=function(V){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(V)}; Rl=function(V){return/(vp9|vp09|vp8|avc1|av01)/.test(V)}; dw=function(V){return V.indexOf("/mp4")>=0?1:V.indexOf("/webm")>=0?2:V.indexOf("/x-flv")>=0?3:V.indexOf("/vtt")>=0?4:0}; fF=function(V,t,x,u,Z,P){var K=new lS;t in g.U3||(t="small");t==="light"&&(t="tiny");u&&Z?(Z=Number(Z),u=Number(u)):(Z=g.U3[t],u=Math.round(Z*16/9));P=new Di(u,Z,0,null,void 0,t,P);V=unescape(V.replace(/"/g,'"'));return new Ju(x,V,{audio:K,video:P})}; $I=function(V){var t="id="+V.id;V.video&&(t+=", res="+V.video.qualityLabel);var x,u;return t+", byterate=("+((x=V.n8)==null?void 0:x.toFixed(0))+", "+((u=V.n1)==null?void 0:u.toFixed(0))+")"}; bQ=function(V,t){return{start:function(x){return V[x]}, end:function(x){return t[x]}, length:V.length}}; kdj=function(V,t,x){for(var u=[],Z=[],P=0;P=t)return x}catch(u){}return-1}; iQ=function(V,t){return kI(V,t)>=0}; iCs=function(V,t){if(!V)return NaN;t=kI(V,t);return t>=0?V.start(t):NaN}; OG=function(V,t){if(!V)return NaN;t=kI(V,t);return t>=0?V.end(t):NaN}; sG=function(V){return V&&V.length?V.end(V.length-1):NaN}; Nf=function(V,t){V=OG(V,t);return V>=0?V-t:0}; pF=function(V,t,x){for(var u=[],Z=[],P=0;Px||(u.push(Math.max(t,V.start(P))-t),Z.push(Math.min(x,V.end(P))-t));return bQ(u,Z)}; lQ=function(V,t,x,u){g.Np.call(this);var Z=this;this.R5=V;this.start=t;this.end=x;this.isActive=u;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.n0={error:function(){!Z.uD()&&Z.isActive&&Z.publish("error",Z)}, updateend:function(){!Z.uD()&&Z.isActive&&Z.publish("updateend",Z)}}; this.R5.NB(this.n0);this.GO=this.isActive}; UG=function(V,t,x,u,Z,P){g.Np.call(this);var K=this;this.bq=V;this.Tm=t;this.id=x;this.containerType=u;this.lD=Z;this.Z8=P;this.h4=this.le=this.Qe=null;this.Dn=!1;this.appendWindowStart=this.timestampOffset=0;this.J2=bQ([],[]);this.Nm=!1;this.O2=[];this.aI=Hq?[]:void 0;this.I5=function(f){return K.publish(f.type,K)}; var R;if((R=this.bq)==null?0:R.addEventListener)this.bq.addEventListener("updateend",this.I5),this.bq.addEventListener("error",this.I5)}; DH=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; eE=function(V,t){this.zc=V;this.J=t===void 0?!1:t;this.S=!1}; dU=function(V,t,x){x=x===void 0?!1:x;g.c.call(this);this.mediaElement=V;this.VC=t;this.isView=x;this.B=0;this.W=!1;this.G=!0;this.X=0;this.callback=null;this.C=!1;this.VC||(this.Tm=this.mediaElement.m0());this.events=new g.j6(this);g.y(this,this.events);this.N=new eE(this.VC?window.URL.createObjectURL(this.VC):this.Tm.webkitMediaSourceURL,!0);V=this.VC||this.Tm;W4(this.events,V,["sourceopen","webkitsourceopen"],this.rns);W4(this.events,V,["sourceclose","webkitsourceclose"],this.DU6);this.L={updateend:this.Vy}}; OC8=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; sTK=function(V,t){CF(V)?g.sb(function(){t(V)}):V.callback=t}; N2h=function(V,t,x){if(JK){var u;hK(V.mediaElement,{l:"mswssb",sr:(u=V.mediaElement.S8)==null?void 0:u.M$()},!1);t.NB(V.L,V);x.NB(V.L,V)}V.J=t;V.S=x;g.y(V,t);g.y(V,x)}; p0K=function(V,t,x,u){u=t.mimeType+(u===void 0?"":u);var Z=x.mimeType;t=t.lD;x=x.lD;var P;V.Ij=(P=V.VC)==null?void 0:P.addSourceBuffer(Z);var K;V.wk=u.split(";")[0]==="fakesb"?void 0:(K=V.VC)==null?void 0:K.addSourceBuffer(u);V.Tm&&(V.Tm.webkitSourceAddId("0",Z),V.Tm.webkitSourceAddId("1",u));P=new UG(V.Ij,V.Tm,"0",dw(Z),x,!1);u=new UG(V.wk,V.Tm,"1",dw(u),t,!0);N2h(V,P,u)}; wU=function(V){return!!V.J||!!V.S}; CF=function(V){try{return Vl(V)==="open"}catch(t){return!1}}; Vl=function(V){if(V.VC)return V.VC.readyState;switch(V.Tm.webkitSourceState){case V.Tm.SOURCE_OPEN:return"open";case V.Tm.SOURCE_ENDED:return"ended";default:return"closed"}}; ts=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; Aqz=function(V){CF(V)&&(V.VC?V.VC.endOfStream():V.Tm.webkitSourceEndOfStream(V.Tm.EOS_NO_ERROR))}; Sm8=function(V,t,x,u){if(!V.J||!V.S)return null;var Z=V.J.isView()?V.J.R5:V.J,P=V.S.isView()?V.S.R5:V.S,K=new dU(V.mediaElement,V.VC,!0);K.N=V.N;N2h(K,new lQ(Z,t,x,u),new lQ(P,t,x,u));CF(V)||V.J.q3(V.J.SB());return K}; Gdw=function(V){var t;(t=V.J)==null||t.Fk();var x;(x=V.S)==null||x.Fk();V.G=!1}; xJ=function(){var V=this;this.GN=this.wK=Y49;this.promise=new g.Ij(function(t,x){V.wK=t;V.GN=x})}; ug=function(){g.c.call(this);this.mm=!1;this.zc=null;this.L=this.B=!1;this.W=new g.KX;this.S8=null;g.y(this,this.W)}; Zo=function(V){V=V.kT();return V.length<1?NaN:V.end(V.length-1)}; Ip9=function(V){!V.S&&OC8()&&(V.N?V.N.then(function(){return Ip9(V)}):V.QV()||(V.S=V.tK()))}; v9C=function(V){V.S&&(V.S.dispose(),V.S=void 0)}; hK=function(V,t,x){var u;((u=V.S8)==null?0:u.d6())&&V.S8.J6("rms",t,x===void 0?!1:x)}; LPw=function(V,t,x){V.isPaused()||V.getCurrentTime()>t||x>10||(V.play(),g.FV(function(){LPw(V,V.getCurrentTime(),x+1)},500))}; FPw=function(V,t){V.zc&&V.zc.t9(t)||(V.zc&&V.zc.dispose(),V.zc=t)}; Pv=function(V){return Nf(V.oN(),V.getCurrentTime())}; MP4=function(V,t){if(V.IM()===0||V.hasError())return!1;var x=V.getCurrentTime()>0;return t>=0&&(V=V.kT(),V.length||!x)?iQ(V,t):x}; KO=function(V){V.QV()&&(V.S8&&V.S8.g8("rs_s"),xp&&V.getCurrentTime()>0&&V.seekTo(0),V.Bz(),V.load(),FPw(V,null));delete V.N}; qu=function(V){switch(V.xE()){case 2:return"progressive.net.retryexhausted";case 3:return V=V.Nv(),(V==null?0:V.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||g9T&&(V==null?0:V.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.RM=function(V,t,x){this.Mv=t===void 0?null:t;this.seekSource=x===void 0?null:x;this.state=V||64}; fO=function(V,t,x){x=x===void 0?!1:x;return X0l(V,t.getCurrentTime(),(0,g.Tu)(),Pv(t),x)}; $J=function(V,t,x,u){if(!(t===V.state&&x===V.Mv&&u===V.seekSource||t!==void 0&&(t&128&&!x||t&2&&t&16))){var Z;if(Z=t)Z=t||V.state,Z=!!(Z&16||Z&32);V=new g.RM(t,x,Z?u?u:V.seekSource:null)}return V}; bg=function(V,t,x){return $J(V,V.state|t,null,x===void 0?null:x)}; Ec=function(V,t){return $J(V,V.state&~t,null,null)}; kJ=function(V,t,x,u){return $J(V,(V.state|t)&~x,null,u===void 0?null:u)}; g.J=function(V,t){return!!(V.state&t)}; g.ig=function(V,t){return t.state===V.state&&t.Mv===V.Mv}; Oc=function(V){return V.isPlaying()&&!g.J(V,16)&&!g.J(V,32)}; sc=function(V){return g.J(V,128)?-1:g.J(V,2)?0:g.J(V,2048)?3:g.J(V,64)?-1:g.J(V,1)&&!g.J(V,32)?3:g.J(V,8)?1:g.J(V,4)?2:-1}; pO=function(V,t,x,u,Z,P,K,R,f,b,E,k,O,N,p,I,L){g.c.call(this);var M=this;this.WF=V;this.slot=t;this.layout=x;this.TU=u;this.Nj=Z;this.PX=P;this.h6=K;this.hJ=R;this.v$=f;this.M3=b;this.position=k;this.B=O;this.WX=N;this.NG=p;this.CJ=I;this.context=L;this.qv=!0;this.G=!1;this.Xc="not_rendering";this.S=!1;this.N=new vb;V=kH(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.j8=new ra(x.Rt,this.TU,V,x.layoutId);var z;V=((z=Nu(this))==null?void 0:z.progressCommands)||[];this.W=new Mo8(f, V,x.layoutId,function(){return M.pQ()}); this.J=new ZC4({adCpn:this.layout.layoutId,Mf:L.Mf,Kws:this.NG,Z8:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; As=function(V){return{layoutId:V.H3(),QM:V.NG,J9:V.PX.get(),DP:V.hZ()}}; SJ=function(V,t){return t.layoutId!==V.layout.layoutId?(V.WF.nG(V.slot,t,new bC("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+V.layout.layoutId+("and LayoutType: "+V.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; GO=function(V){V.Xc="rendering_start_requested";V.M3(-1)}; Nu=function(V){return kH(V.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; z$h=function(V){Gd("Received layout exit signal when not in layout exit flow.",V.slot,V.layout)}; B20=function(V){var t;return((t=IM(V.PX.get(),2))==null?void 0:t.clientPlaybackNonce)||""}; vv=function(V,t){switch(t){case "normal":V.r6("complete");break;case "skipped":V.r6("skip");break;case "abandoned":yq(V.j8,"impression")&&V.r6("abandon")}}; LO=function(V,t){V.G||(t=new g.IT(t.state,new g.RM),V.G=!0);return t}; FE=function(V,t){S6(t)?V.M3(1):g.LC(t,4)&&!g.LC(t,2)&&V.rY();v0(t,4)<0&&!(v0(t,2)<0)&&V.jk()}; mh4=function(V){V.position===0&&(V.hJ.get(),V=kH(V.layout.clientMetadata,"metadata_type_ad_placement_config").kind,V={adBreakType:Mu(V)},dq("ad_bl"),g.C4(V))}; gW=function(V,t){nm(V.j8,t,!V.S)}; QTq=function(V){var t;return(((t=Nu(V))==null?void 0:t.progressCommands)||[]).findIndex(function(x){return!!g.l(x==null?void 0:x.command,Ym9)})!==-1}; XE=function(V,t){var x=kH(V.clientMetadata,"metadata_type_eligible_for_ssap");return x===void 0?(Gd("Expected SSAP eligibility in PlayerBytes factory",V),!1):t.hZ(x)}; zO=function(V,t){if(!xm(t.get(),"html5_ssap_pass_transition_reason"))return 3;switch(V){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return Gd("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return Gd("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:V}),3;default:PD(V,"unknown layoutExitReason")}}; apL=function(V){Gd("getExitReason: unexpected reason",void 0,void 0,{reason:V})}; Bv=function(V,t){if(xm(t.get(),"html5_ssap_pass_transition_reason"))switch(V){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return apL(V),"abandoned";case 3:case 1:return apL(V),"error";default:PD(V,"unexpected transition reason")}else switch(V){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return Gd("getExitReason: unexpected reason",void 0,void 0,{reason:V}),"error";default:PD(V,"unexpected transition reason")}}; mX=function(V,t,x){h4(V,x)||VF(V,t,x);h4(V,"video_to_ad")||VF(V,t,"video_to_ad");h4(V,"ad_to_video")||VF(V,t,"ad_to_video");h4(V,"ad_to_ad")||VF(V,t,"ad_to_ad")}; YJ=function(V,t,x,u,Z,P,K,R,f,b,E,k,O,N,p,I,L,M){pO.call(this,V,t,x,u,Z,P,K,R,b,E,k,O,N,p,I,L,M);var z=this;this.jB=f;this.Wv=k;this.hV=!0;this.Be=this.N$=0;this.MN=SO(function(){VPj(As(z));z.WF.qj(z.slot,z.layout)}); this.fM=SO(function(){tPj(As(z));z.Xc!=="rendering_stop_requested"&&z.Wv(z);z.layoutExitReason?z.WF.UZ(z.slot,z.layout,z.layoutExitReason):z$h(z)}); this.jH=new g.zB(200);this.jH.listen("tick",function(){z.AJ()}); g.y(this,this.jH)}; aM=function(V){V.Be=Date.now();Ql(V,V.N$);V.jH.start()}; rqw=function(V){V.N$=V.pQ();V.AT(V.N$/1E3,!0);Ql(V,V.N$)}; Ql=function(V,t){t={current:t/1E3,duration:V.pQ()/1E3};V.jB.get().BY("onAdPlaybackProgress",t)}; rW=function(V){YJ.call(this,V.WF,V.slot,V.uI,V.TU,V.Nj,V.PX,V.h6,V.hJ,V.jB,V.v$,V.M3,V.Wv,V.XO,V.If,V.WX,V.NG,V.CJ,V.context)}; TO=function(V){YJ.call(this,V.WF,V.slot,V.uI,V.TU,V.Nj,V.PX,V.h6,V.hJ,V.jB,V.v$,V.M3,V.Wv,V.XO,V.If,V.WX,V.NG,V.CJ,V.context)}; Wv=function(){TO.apply(this,arguments)}; T2s=function(V){return XE(V.slot,V.WX.get())?new Wv(V):new rW(V)}; cv=function(V){pO.call(this,V.callback,V.slot,V.uI,V.TU,V.Nj,V.PX,V.h6,V.hJ,V.v$,V.M3,V.Wv,V.XO,V.If,V.WX,V.NG,V.CJ,V.context);var t=this;this.adCpn="";this.Z$=0;this.IX=!1;this.X1=0;this.MN=SO(function(){VPj(As(t));t.WF.qj(t.slot,t.layout)}); this.fM=SO(function(){tPj(As(t));t.Xc!=="rendering_stop_requested"&&t.Wv(t);t.layoutExitReason?t.WF.UZ(t.slot,t.layout,t.layoutExitReason):z$h(t)}); this.ye=V.ye;this.Xi=V.Xi;this.ZT=V.ZT;this.jB=V.jB;this.Vg=V.Vg;this.Wv=V.Wv;if(!this.hZ()){xm(this.WX.get(),"html5_disable_media_load_timeout")||(this.kh=new g.qK(function(){t.F3("load_timeout",new bC("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); V=oM(this.WX.get());var x=nO(this.WX.get());V&&x&&(this.OF=new g.qK(function(){var u=kH(t.layout.clientMetadata,"metadata_type_preload_player_vars");u&&t.Xi.get().U.preloadVideoByPlayerVars(u,2,300)}))}}; o90=function(V,t){var x=kH(t.clientMetadata,"metadata_type_ad_video_id"),u=kH(t.clientMetadata,"metadata_type_legacy_info_card_vast_extension");x&&u&&V.Vg.get().U.K().Es.add(x,{aQ:u});(t=kH(t.clientMetadata,"metadata_type_sodar_extension_data"))&&cl0(V.ye.get(),t);WP9(V.h6.get(),!1)}; n94=function(V){WP9(V.h6.get(),!0);var t;((t=V.shrunkenPlayerBytesConfig)==null?0:t.shouldRequestShrunkenPlayerBytes)&&V.h6.get().lz(!1)}; cqL=function(V){var t=kH(V.Dz().clientMetadata,"metadata_type_player_bytes_slot_metadata");t===void 0&&Gd("PlayerBytesSlotMetadata is not filled",V.Dz(),V.K1());return(t==null?void 0:t.Sm)===!0}; yl=function(){cv.apply(this,arguments)}; jJ=function(){yl.apply(this,arguments)}; yqz=function(V){return T2s(Object.assign({},V,{WF:V.callback,M3:function(){}}))}; jTh=function(V){return new cv(Object.assign({},V,{M3:function(t){V.jB.get().BY("onAdIntroStateChange",t)}}))}; lpC=function(V){function t(x){V.jB.get().gQ(x)} return XE(V.slot,V.WX.get())?new jJ(Object.assign({},V,{M3:t})):new cv(Object.assign({},V,{M3:t}))}; lg=function(V){for(var t=V.uI,x=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],u=g.G(TR()),Z=u.next();!Z.done;Z=u.next())x.push(Z.value);if(Pb(t,{Ww:x,Xz:["LAYOUT_TYPE_MEDIA_BREAK"]}))return yqz(V);t=V.uI;x=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];u=g.G(TR());for(Z=u.next();!Z.done;Z=u.next())x.push(Z.value);if(Pb(t,{Ww:x,Xz:["LAYOUT_TYPE_MEDIA"]}))return Rp(V.uI.clientMetadata,"metadata_type_ad_intro")?jTh(V):lpC(V)}; Uh0=function(V){var t=kH(V.clientMetadata,"metadata_type_ad_placement_config").kind,x=kH(V.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:V.layoutId,adType:HCC(x),adBreakType:Mu(t)}}; Mu=function(V){switch(V){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"}}; HCC=function(V){switch(V){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; DhL=function(V){try{return new Hv(V.pO,V.slot,V.layout,V.Vc,V.tZ,V.PX,V.zd,V.Xi,V.g6,V.h6,V.IgS,V)}catch(t){}}; Hv=function(V,t,x,u,Z,P,K,R,f,b,E,k){g.c.call(this);this.pO=V;this.slot=t;this.layout=x;this.Vc=u;this.tZ=Z;this.PX=P;this.zd=K;this.Xi=R;this.g6=f;this.h6=b;this.params=k;this.qv=!0;V=lg(E);if(!V)throw Error("Invalid params for sublayout");this.OZ=V}; e$L=function(){this.J=1;this.S=new vb}; Uc=function(V,t,x,u,Z,P,K,R,f,b,E,k,O){g.c.call(this);this.callback=V;this.PX=t;this.zd=x;this.Xi=u;this.h6=Z;this.hJ=P;this.wI=K;this.slot=R;this.layout=f;this.Vc=b;this.BL=E;this.g6=k;this.WX=O;this.qv=!0;this.oV=!1;this.MR=[];this.qL=-1;this.OQ=!1;this.EH=new e$L}; dhw=function(V){var t;return(t=V.layout.gB)!=null?t:kH(V.layout.clientMetadata,"metadata_type_sub_layouts")}; Do=function(V){return{J9:V.PX.get(),QM:!1,DP:V.hZ()}}; CP4=function(V,t,x){if(V.u9()===V.MR.length-1){var u,Z;Gd("Unexpected skip requested during the last sublayout",(u=V.Me())==null?void 0:u.Dz(),(Z=V.Me())==null?void 0:Z.K1(),{requestingSlot:t,requestingLayout:x})}}; Jqw=function(V,t,x){return x.layoutId!==eJ(V,t,x)?(Gd("onSkipRequested for a PlayerBytes layout that is not currently active",V.Dz(),V.K1()),!1):!0}; h$h=function(V){V.u9()===V.MR.length-1&&Gd("Unexpected skip with target requested during the last sublayout")}; w0K=function(V,t,x){return x.renderingContent===void 0&&x.layoutId!==eJ(V,t,x)?(Gd("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",V.Dz(),V.K1(),{requestingSlot:t,requestingLayout:x}),!1):!0}; Vt1=function(V,t,x,u){var Z=kH(t.K1().clientMetadata,"metadata_type_ad_pod_skip_target");if(Z&&Z>0&&Z0)){Gd("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",V.slot,V.layout,{indexToPlay:t,layoutId:V.layout.layoutId});break a}V.qL=t;t=V.Me();if(V.u9()>0&&!V.hZ()){var x=V.hJ.get();x.S=!1;var u={};x.J&&x.videoId&&(u.cttAuthInfo={token:x.J,videoId:x.videoId});J4("ad_to_ad",u)}V.CV(t)}}; hs=function(V){Uc.call(this,V.pO,V.PX,V.zd,V.Xi,V.h6,V.hJ,V.wI,V.slot,V.layout,V.Vc,V.BL,V.g6,V.WX)}; uQq=function(V){(V=V.Me())&&V.Q4()}; wW=function(V){Uc.call(this,V.pO,V.PX,V.zd,V.Xi,V.h6,V.hJ,V.wI,V.slot,V.layout,V.Vc,V.BL,V.g6,V.WX);this.EL=void 0}; Z4L=function(V,t){V.MG()&&!Fw(V.EH.S)||V.callback.UZ(V.slot,V.layout,t)}; VT=function(V){return xm(V.WX.get(),"html5_ssap_pass_transition_reason")}; PYj=function(V,t,x){t.VL().currentState<2&&(x=Bv(x,V.WX),t.Jn(t.K1(),x));x=t.VL().J;V.TL(V.slot,t.K1(),x)}; Ki0=function(V,t){if(V.EH.S.currentState<2){var x=Bv(t,V.WX);x==="error"?V.callback.nG(V.slot,V.layout,new bC("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:t},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):Js(V.BL,V.layout,x)}}; tr=function(V,t,x){t.VL().currentState>=2||(t.Jn(t.K1(),x),Fw(t.VL())&&(TJ(V.wI,V.slot,t.K1(),x),V.EL=void 0))}; qr4=function(V,t){V.EH.J===2&&t!==V.vp()&&Gd("onClipEntered: unknown cpn",V.slot,V.layout,{cpn:t})}; RWs=function(V,t){var x=V.Me();if(x){var u=x.K1().layoutId,Z=V.u9()+1;V.MG()?tr(V,x,t):x.Jn(x.K1(),t);Z>=0&&ZZ&&K.zO(E,Z-u);return E}; Nq9=function(V,t,x){var u=kH(t.clientMetadata,"metadata_type_sodar_extension_data");if(u)try{cl0(x,u)}catch(Z){Gd("Unexpected error when loading Sodar",V,t,{error:Z})}}; pFT=function(V,t,x,u,Z,P,K){Rk(V,t,new g.IT(x,new g.RM),u,Z,K,!1,P)}; Rk=function(V,t,x,u,Z,P,K,R){K=K===void 0?!0:K;S6(x)&&Gf(Z,0,null)&&(!yq(V,"impression")&&R&&R(),V.r6("impression"));yq(V,"impression")&&(g.LC(x,4)&&!g.LC(x,2)&&V.oB("pause"),v0(x,4)<0&&!(v0(x,2)<0)&&V.oB("resume"),g.LC(x,16)&&Z>=.5&&V.oB("seek"),K&&g.LC(x,2)&&fZ(V,x.state,t,u,Z,P))}; fZ=function(V,t,x,u,Z,P,K,R){yq(V,"impression")&&(P?(P=Z-u,P=P>=-1&&P<=2):P=Math.abs(u-Z)<=1,$A(V,t,P?u:Z,x,u,K,R&&P),P&&V.r6("complete"))}; $A=function(V,t,x,u,Z,P,K){cu(V,x*1E3,K);Z<=0||x<=0||(t==null?0:g.J(t,16))||(t==null?0:g.J(t,32))||(Gf(x,Z*.25,u)&&(P&&!yq(V,"first_quartile")&&P("first"),V.r6("first_quartile")),Gf(x,Z*.5,u)&&(P&&!yq(V,"midpoint")&&P("second"),V.r6("midpoint")),Gf(x,Z*.75,u)&&(P&&!yq(V,"third_quartile")&&P("third"),V.r6("third_quartile")))}; A4L=function(V,t){yq(V,"impression")&&V.oB(t?"fullscreen":"end_fullscreen")}; Srh=function(V){yq(V,"impression")&&V.oB("clickthrough")}; G4h=function(V){V.oB("active_view_measurable")}; IjT=function(V){yq(V,"impression")&&!yq(V,"seek")&&V.oB("active_view_fully_viewable_audible_half_duration")}; v1h=function(V){yq(V,"impression")&&!yq(V,"seek")&&V.oB("active_view_viewable")}; Lij=function(V){yq(V,"impression")&&!yq(V,"seek")&&V.oB("audio_audible")}; Fi0=function(V){yq(V,"impression")&&!yq(V,"seek")&&V.oB("audio_measurable")}; Mtz=function(V,t,x,u,Z,P,K,R,f,b,E,k){this.callback=V;this.slot=t;this.layout=x;this.zd=u;this.j8=Z;this.h6=P;this.MM=K;this.Nj=R;this.ye=f;this.WX=b;this.TU=E;this.PX=k;this.hV=!0;this.QP=this.Xc=null;this.adCpn=void 0;this.J=!1}; g1z=function(V,t,x){var u;qC(V.TU.get(),"ads_qua","cpn."+kH(V.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((u=IM(V.PX.get(),2))==null?void 0:u.clientPlaybackNonce)+";qt."+t+";clr."+x)}; XFl=function(V,t){var x,u;qC(V.TU.get(),"ads_imp","cpn."+kH(V.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((x=IM(V.PX.get(),2))==null?void 0:x.clientPlaybackNonce)+";clr."+t+";skp."+!!g.l((u=kH(V.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:u.skipOrPreviewRenderer,b_))}; EP=function(V){return V.WX.get().U.K().experiments.MP("increase_completion_ping_firing_window")&&IM(V.PX.get(),1).R_}; kA=function(V){return{enterMs:kH(V.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:kH(V.clientMetadata,"metadata_type_layout_exit_ms")}}; i_=function(V,t,x,u,Z,P,K,R,f,b,E,k,O,N){u_.call(this,V,t,x,u,Z,K,R,f,b,k);this.MM=P;this.ye=E;this.Nj=O;this.WX=N;this.QP=this.Xc=null}; zWz=function(V,t){var x;qC(V.TU.get(),"ads_imp","acpn."+((x=IM(V.PX.get(),2))==null?void 0:x.clientPlaybackNonce)+";clr."+t)}; Bqs=function(V,t,x){var u;qC(V.TU.get(),"ads_qua","cpn."+kH(V.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((u=IM(V.PX.get(),2))==null?void 0:u.clientPlaybackNonce)+";qt."+t+";clr."+x)}; OP=function(V,t,x,u,Z,P,K,R,f,b,E,k,O,N,p,I,L,M,z,Y,r){this.g6=V;this.Vc=t;this.BL=x;this.PX=u;this.zd=Z;this.h6=P;this.TU=K;this.MM=R;this.pR=f;this.Nj=b;this.ye=E;this.Xi=k;this.ZT=O;this.hJ=N;this.jB=p;this.v$=I;this.Vg=L;this.WX=M;this.J=z;this.context=Y;this.CJ=r}; sP=function(V,t,x,u,Z,P,K,R,f,b,E,k,O,N,p,I,L,M){this.g6=V;this.Vc=t;this.BL=x;this.TU=u;this.Nj=Z;this.ye=P;this.Xi=K;this.PX=R;this.h6=f;this.ZT=b;this.hJ=E;this.jB=k;this.v$=O;this.Vg=N;this.WX=p;this.zd=I;this.context=L;this.CJ=M}; mo9=function(V,t,x,u){Ov.call(this,"survey-interstitial",V,t,x,u)}; NC=function(V,t,x,u,Z){M9.call(this,x,V,t,u);this.TU=Z;V=kH(t.clientMetadata,"metadata_type_ad_placement_config");this.j8=new ra(t.Rt,Z,V,t.layoutId)}; pZ=function(V){return Math.round(V.width)+"x"+Math.round(V.height)}; S1=function(V,t,x){x=x===void 0?Ar:x;x.widthV.width*V.height*.2)return{d0:3,Uu:501,errorMessage:"ad("+pZ(x)+") to container("+pZ(V)+") ratio exceeds limit."};if(x.height>V.height/3-t)return{d0:3,Uu:501,errorMessage:"ad("+pZ(x)+") covers container("+pZ(V)+") center."}}; Yrs=function(V,t){var x=kH(V.clientMetadata,"metadata_type_ad_placement_config");return new ra(V.Rt,t,x,V.layoutId)}; G$=function(V){return kH(V.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; Ik=function(V,t,x,u){Ov.call(this,"invideo-overlay",V,t,x,u);this.interactionLoggingClientData=u}; vV=function(V,t,x,u,Z,P,K,R,f,b,E,k){M9.call(this,P,V,t,Z);this.TU=x;this.W=K;this.h6=R;this.v$=f;this.WX=b;this.B=E;this.G=k;this.j8=Yrs(t,x)}; QF4=function(){var V=["metadata_type_invideo_overlay_ad_renderer"];TR().forEach(function(t){V.push(t)}); return{Ww:V,Xz:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; LZ=function(V,t,x,u,Z,P,K,R,f,b,E,k,O){M9.call(this,P,V,t,Z);this.TU=x;this.W=K;this.C=R;this.h6=f;this.v$=b;this.WX=E;this.B=k;this.G=O;this.j8=Yrs(t,x)}; aj8=function(){for(var V=["metadata_type_invideo_overlay_ad_renderer"],t=g.G(TR()),x=t.next();!x.done;x=t.next())V.push(x.value);return{Ww:V,Xz:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; FW=function(V){this.h6=V;this.J=!1}; r4C=function(V,t,x){Ov.call(this,"survey",V,{},t,x)}; MC=function(V,t,x,u,Z,P,K){M9.call(this,x,V,t,u);this.W=Z;this.h6=P;this.WX=K}; Tqw=function(V,t,x,u,Z,P,K,R,f,b){this.w9=V;this.h6=t;this.TU=x;this.W=u;this.Nj=Z;this.S=P;this.N=K;this.v$=R;this.WX=f;this.J=b}; Wiw=function(V,t,x,u,Z,P,K,R,f,b){this.w9=V;this.h6=t;this.TU=x;this.W=u;this.Nj=Z;this.S=P;this.N=K;this.v$=R;this.WX=f;this.J=b}; gt=function(V,t,x,u,Z,P,K,R,f,b){bS.call(this,V,t,x,u,Z,P,K,f);this.Wx=R;this.PX=b}; o10=function(){var V=lF0();V.Ww.push("metadata_type_ad_info_ad_metadata");return V}; n1w=function(V,t,x,u,Z,P,K){this.w9=V;this.h6=t;this.TU=x;this.S=u;this.Wx=Z;this.J=P;this.PX=K}; c4j=function(V,t,x,u,Z,P,K,R){this.w9=V;this.h6=t;this.TU=x;this.S=u;this.Wx=Z;this.J=P;this.WX=K;this.PX=R}; XW=function(V,t){this.slotId=t;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=V(this.triggerType)}; z$=function(V,t){this.adPodIndex=V;this.J=t.length;this.adBreakLengthSeconds=t.reduce(function(u,Z){return u+Z},0); var x=0;for(V+=1;V0}; AZ=function(V){return!!(V.LwX&&V.slot&&V.layout)}; Sl=function(V){var t,x=(t=V.config)==null?void 0:t.adPlacementConfig;V=V.renderer;return!(!x||x.kind==null||!V)}; tYT=function(V){if(!Pd(V.adLayoutMetadata))return!1;V=V.renderingContent;return g.l(V,NF)||g.l(V,p5)||g.l(V,O3)||g.l(V,s3)?!0:!1}; Gs=function(V){return V.playerVars!==void 0&&V.pings!==void 0&&V.externalVideoId!==void 0}; Xi=function(V){if(!Pd(V.adLayoutMetadata))return!1;V=V.renderingContent;var t=g.l(V,Iu);return t?vd(t):(t=g.l(V,Ld))?Gs(t):(t=g.l(V,Fi))?t.playerVars!==void 0:(t=g.l(V,NF))?t.durationMilliseconds!==void 0:g.l(V,M6)||g.l(V,g4)?!0:!1}; vd=function(V){V=(V.sequentialLayouts||[]).map(function(t){return g.l(t,zs)}); return V.length>0&&V.every(Xi)}; qVw=function(V){if(!Pd(V.adLayoutMetadata))return!1;if(g.l(V.renderingContent,xj0)||g.l(V.renderingContent,unj))return!0;var t=g.l(V.renderingContent,Bd);return g.l(V.renderingContent,YG)||g.l(t==null?void 0:t.sidePanel,ZSK)||g.l(t==null?void 0:t.sidePanel,PM0)||g.l(t==null?void 0:t.sidePanel,KvL)?!0:!1}; Eul=function(V){var t;(t=!V)||(t=V.adSlotMetadata,t=!((t==null?void 0:t.slotId)!==void 0&&(t==null?void 0:t.slotType)!==void 0));if(t||!(Rjj(V)||V.slotEntryTrigger&&V.slotFulfillmentTriggers&&V.slotExpirationTriggers))return!1;var x;V=(x=V.fulfillmentContent)==null?void 0:x.fulfilledLayout;return(x=g.l(V,zs))?Xi(x):(x=g.l(V,Qj))?qVw(x):(x=g.l(V,fvT))?tYT(x):(x=g.l(V,$jw))?wFw(x):(V=g.l(V,bSh))?Pd(V.adLayoutMetadata)?g.l(V.renderingContent,Kd)?!0:!1:!1:!1}; Rjj=function(V){var t;V=g.l((t=V.fulfillmentContent)==null?void 0:t.fulfilledLayout,Qj);var x;return V&&((x=V.adLayoutMetadata)==null?void 0:x.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&V.layoutExitNormalTriggers===void 0}; kET=function(V){var t;return(V==null?void 0:(t=V.adSlotMetadata)==null?void 0:t.slotType)==="SLOT_TYPE_IN_PLAYER"}; OS4=function(V,t){var x;if((x=V.questions)==null||!x.length||!V.playbackCommands||(t===void 0||!t)&&V.questions.length!==1)return!1;V=g.G(V.questions);for(t=V.next();!t.done;t=V.next()){t=t.value;var u=x=void 0,Z=((x=g.l(t,au))==null?void 0:x.surveyAdQuestionCommon)||((u=g.l(t,r4))==null?void 0:u.surveyAdQuestionCommon);if(!iST(Z))return!1}return!0}; sn9=function(V){V=((V==null?void 0:V.playerOverlay)||{}).instreamSurveyAdRenderer;var t;if(V)if(V.playbackCommands&&V.questions&&V.questions.length===1){var x,u=((t=g.l(V.questions[0],au))==null?void 0:t.surveyAdQuestionCommon)||((x=g.l(V.questions[0],r4))==null?void 0:x.surveyAdQuestionCommon);t=iST(u)}else t=!1;else t=!1;return t}; iST=function(V){if(!V)return!1;V=g.l(V.instreamAdPlayerOverlay,Ts);var t=g.l(V==null?void 0:V.skipOrPreviewRenderer,b_),x=g.l(V==null?void 0:V.adInfoRenderer,Wd);return(g.l(V==null?void 0:V.skipOrPreviewRenderer,ou)||t)&&x?!0:!1}; N_q=function(V){return V.linearAds!=null&&Pd(V.adLayoutMetadata)}; pE9=function(V){return V.linearAd!=null&&V.adVideoStart!=null}; A9h=function(V){if(isNaN(Number(V.timeoutSeconds))||!V.text||!V.ctaButton||!g.l(V.ctaButton,g.nd)||!V.brandImage)return!1;var t;return V.backgroundImage&&g.l(V.backgroundImage,cd)&&((t=g.l(V.backgroundImage,cd))==null?0:t.landscape)?!0:!1}; yj=function(V,t,x,u,Z,P,K){g.c.call(this);this.WX=V;this.J=t;this.N=u;this.PX=Z;this.W=P;this.S=K}; Ivq=function(V,t,x){var u,Z=((u=x.adSlots)!=null?u:[]).map(function(R){return g.l(R,jl)}); if(x.mz)if(kH(t.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))Ib(V.J.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},t.slotId); else{if(V.WX.get().U.K().T("h5_check_forecasting_renderer_for_throttled_midroll")){var P=x.lF.filter(function(R){var f;return((f=R.renderer)==null?void 0:f.clientForecastingAdRenderer)!=null}); P.length!==0?SVz(V.S,P,Z,t.slotId,x.ssdaiAdsConfig):Ib(V.J.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},t.slotId)}else Ib(V.J.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},t.slotId); GEC(V.W,t)}else{var K;u={Tf:Math.round(((P=kH(t.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:P.Tf)||0),Gf:(K=kH(t.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:K.Gf};SVz(V.S,x.lF,Z,t.slotId,x.ssdaiAdsConfig,u)}}; Lv8=function(V,t,x,u,Z,P,K){var R=IM(V.PX.get(),1);Ib(V.J.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return vu8(V.N.get(),x,u,Z,R.clientPlaybackNonce,R.f6,R.daiEnabled,R,P,K)},t)}; MY8=function(V,t,x,u,Z,P,K){t=FvL(t,P,Number(u.prefetchMilliseconds)||0,K);V=t instanceof h?t:ln(V,u,Z,t,x);return V instanceof h?V:[V]}; gu9=function(V,t,x,u,Z){var P=vu(V.S.get(),"SLOT_TYPE_AD_BREAK_REQUEST");u=[new H6({getAdBreakUrl:u.getAdBreakUrl,Tf:0,Gf:0}),new Pn(!0)];V=t.pauseDurationMs?t.lactThresholdMs?{slotId:P,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Vj(V.J,P),slotFulfillmentTriggers:[new jF8(V.J)],slotExpirationTriggers:[new D9(V.J,Z),new Jr(V.J,P)],C1:"core",clientMetadata:new Ez(u),adSlotLoggingData:x}:new h("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new h("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return V instanceof h?V:[V]}; XEK=function(V){var t,x;return((t=V.renderer)==null?void 0:(x=t.adBreakServiceRenderer)==null?void 0:x.getAdBreakUrl)!==void 0}; Hd=function(V,t,x){if(V.beforeContentVideoIdStartedTrigger)V=V.beforeContentVideoIdStartedTrigger?new BV($H,t,V.id):new h("Not able to create BeforeContentVideoIdStartedTrigger");else{if(V.layoutIdExitedTrigger){var u;t=(u=V.layoutIdExitedTrigger)!=null&&u.triggeringLayoutId?new T$($H,V.layoutIdExitedTrigger.triggeringLayoutId,V.id):new h("Not able to create LayoutIdExitedTrigger")}else{if(V.layoutExitedForReasonTrigger){var Z,P;((Z=V.layoutExitedForReasonTrigger)==null?0:Z.triggeringLayoutId)&&((P= V.layoutExitedForReasonTrigger)==null?0:P.layoutExitReason)?(t=ljq(V.layoutExitedForReasonTrigger.layoutExitReason),V=t instanceof h?t:new rt($H,V.layoutExitedForReasonTrigger.triggeringLayoutId,[t],V.id)):V=new h("Not able to create LayoutIdExitedForReasonTrigger")}else{if(V.onLayoutSelfExitRequestedTrigger){var K;t=(K=V.onLayoutSelfExitRequestedTrigger)!=null&&K.triggeringLayoutId?new UP($H,V.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,V.id):new h("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(V.onNewPlaybackAfterContentVideoIdTrigger)V= V.onNewPlaybackAfterContentVideoIdTrigger?new D9($H,t,V.id):new h("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(V.skipRequestedTrigger){var R;t=(R=V.skipRequestedTrigger)!=null&&R.triggeringLayoutId?new dt($H,V.skipRequestedTrigger.triggeringLayoutId,V.id):new h("Not able to create SkipRequestedTrigger")}else if(V.slotIdEnteredTrigger){var f;t=(f=V.slotIdEnteredTrigger)!=null&&f.triggeringSlotId?new CZ($H,V.slotIdEnteredTrigger.triggeringSlotId,V.id):new h("Not able to create SlotIdEnteredTrigger")}else if(V.slotIdExitedTrigger){var b; t=(b=V.slotIdExitedTrigger)!=null&&b.triggeringSlotId?new Jr($H,V.slotIdExitedTrigger.triggeringSlotId,V.id):new h("Not able to create SkipRequestedTrigger")}else if(V.surveySubmittedTrigger){var E;t=(E=V.surveySubmittedTrigger)!=null&&E.triggeringLayoutId?new xG($H,V.surveySubmittedTrigger.triggeringLayoutId,V.id):new h("Not able to create SurveySubmittedTrigger")}else{if(V.mediaResumedTrigger)V=V.mediaResumedTrigger&&V.id?new H4l(V.id):new h("Not able to create MediaResumedTrigger");else{if(V.closeRequestedTrigger){var k; t=(k=V.closeRequestedTrigger)!=null&&k.triggeringLayoutId?new mJ($H,V.closeRequestedTrigger.triggeringLayoutId,V.id):new h("Not able to create CloseRequestedTrigger")}else if(V.slotIdScheduledTrigger){var O;t=(O=V.slotIdScheduledTrigger)!=null&&O.triggeringSlotId?new Vj($H,V.slotIdScheduledTrigger.triggeringSlotId,V.id):new h("Not able to create SlotIdScheduledTrigger")}else{if(V.mediaTimeRangeTrigger){var N;u=Number((N=V.mediaTimeRangeTrigger)==null?void 0:N.offsetStartMilliseconds);var p;K=Number((p= V.mediaTimeRangeTrigger)==null?void 0:p.offsetEndMilliseconds);isFinite(u)&&isFinite(K)?(p=K,p===-1&&(p=x),x=u>p?new h("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:u,offsetEndMs:p},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",p===x&&u-500<=p):new Yy(u,p),V=x instanceof h?x:new yT($H,t,x,!1,V.id)):V=new h("Not able to create MediaTimeRangeTrigger")}else if(V.contentVideoIdEndedTrigger)V=V.contentVideoIdEndedTrigger?new YA($H,t,!1,V.id):new h("Not able to create ContentVideoIdEndedTrigger"); else{if(V.layoutIdEnteredTrigger){var I;t=(I=V.layoutIdEnteredTrigger)!=null&&I.triggeringLayoutId?new ak($H,V.layoutIdEnteredTrigger.triggeringLayoutId,V.id):new h("Not able to create LayoutIdEnteredTrigger")}else if(V.timeRelativeToLayoutEnterTrigger){var L;t=(L=V.timeRelativeToLayoutEnterTrigger)!=null&&L.triggeringLayoutId?new un($H,Number(V.timeRelativeToLayoutEnterTrigger.durationMs),V.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,V.id):new h("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(V.onDifferentLayoutIdEnteredTrigger){var M; t=(M=V.onDifferentLayoutIdEnteredTrigger)!=null&&M.triggeringLayoutId&&V.onDifferentLayoutIdEnteredTrigger.slotType&&V.onDifferentLayoutIdEnteredTrigger.layoutType?new l_($H,V.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,V.onDifferentLayoutIdEnteredTrigger.slotType,V.onDifferentLayoutIdEnteredTrigger.layoutType,V.id):new h("Not able to create CloseRequestedTrigger")}else{if(V.liveStreamBreakStartedTrigger)V=V.liveStreamBreakStartedTrigger&&V.id?new cV($H,V.id):new h("Not able to create LiveStreamBreakStartedTrigger"); else if(V.liveStreamBreakEndedTrigger)V=V.liveStreamBreakEndedTrigger&&V.id?new WV($H,V.id):new h("Not able to create LiveStreamBreakEndedTrigger");else{if(V.liveStreamBreakScheduledDurationMatchedTrigger){var z;t=(z=V.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&z.breakDurationMs?new ok(Number(V.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,V.id):new h("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(V.liveStreamBreakScheduledDurationNotMatchedTrigger){var Y; t=(Y=V.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&Y.breakDurationMs?new nZ(Number(V.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,V.id):new h("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(V.newSlotScheduledWithBreakDurationTrigger){var r;t=(r=V.newSlotScheduledWithBreakDurationTrigger)!=null&&r.breakDurationMs?new j1(Number(V.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,V.id):new h("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else t= V.prefetchCacheExpiredTrigger?new e1($H,V.id):new h("Not able to convert an AdsControlflowTrigger.");V=t}t=V}V=t}t=V}V=t}t=V}V=t}t=V}V=t}t=V}V=t}return V}; Up=function(V,t){t.J>=2&&(V.slot_pos=t.adPodIndex);V.autoplay="1"}; B_9=function(V,t,x,u,Z,P,K,R){return t===null?new h("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:t,ActionCompanionAdRenderer:u}):[zjz(V,t,K,P,function(f){var b=f.slotId;f=R(f);var E=u.adLayoutLoggingData,k=new Ez([new Ds(u),new P6(Z)]);b=u4(x.S.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",b);var O={layoutId:b,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",C1:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Rt:new Map, layoutExitNormalTriggers:[new D9(x.J,K)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:"core",clientMetadata:k,Vt:f(O),adLayoutLoggingData:E}})]}; mjl=function(V,t,x,u,Z,P,K,R){return t===null?new h("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:t,TopBannerImageTextIconButtonedLayoutViewModel:u}):[zjz(V,t,K,P,function(f){var b=f.slotId;f=R(f);var E=u.adLayoutLoggingData,k=new Ez([new e8(u),new P6(Z)]);b=u4(x.S.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",b);var O={layoutId:b,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",C1:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", Rt:new Map,layoutExitNormalTriggers:[new D9(x.J,K)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:"core",clientMetadata:k,Vt:f(O),adLayoutLoggingData:E}})]}; r9h=function(V,t,x,u,Z,P){if(!P)for(t=g.G(t),P=t.next();!P.done;P=t.next())P=P.value,D2(V,P.renderer,P.config.adPlacementConfig.kind);V=Array.from(V.values()).filter(function(E){return YVh(E)}); t=[];P=g.G(V);for(var K=P.next(),R={};!K.done;R={iZ:void 0},K=P.next()){R.iZ=K.value;K=g.G(R.iZ.ZR);for(var f=K.next(),b={};!f.done;b={zA:void 0},f=K.next())b.zA=f.value,f=function(E,k){return function(O){return E.zA.xM(O,k.iZ.instreamVideoAdRenderer.elementId,E.zA.Ps)}}(b,R),b.zA.isContentVideoCompanion?t.push(Qnq(x,u,Z,R.iZ.instreamVideoAdRenderer.elementId,b.zA.associatedCompositePlayerBytesLayoutId,b.zA.adSlotLoggingData,f)):V.length>1?t.push(avw(x,u,Z,R.iZ.instreamVideoAdRenderer.elementId,b.zA.adSlotLoggingData, function(E,k){return function(O){return E.zA.xM(O,k.iZ.instreamVideoAdRenderer.elementId,E.zA.Ps,E.zA.associatedCompositePlayerBytesLayoutId)}}(b,R))):t.push(avw(x,u,Z,R.iZ.instreamVideoAdRenderer.elementId,b.zA.adSlotLoggingData,f))}return t}; D2=function(V,t,x){if(t=T_9(t)){t=g.G(t);for(var u=t.next();!u.done;u=t.next())if((u=u.value)&&u.externalVideoId){var Z=el(V,u.externalVideoId);Z.instreamVideoAdRenderer||(Z.instreamVideoAdRenderer=u,Z.Zj=x)}else Gd("InstreamVideoAdRenderer without externalVideoId")}}; T_9=function(V){var t=[],x=V.sandwichedLinearAdRenderer&&V.sandwichedLinearAdRenderer.linearAd&&g.l(V.sandwichedLinearAdRenderer.linearAd,Ld);if(x)return t.push(x),t;if(V.instreamVideoAdRenderer)return t.push(V.instreamVideoAdRenderer),t;if(V.linearAdSequenceRenderer&&V.linearAdSequenceRenderer.linearAds){V=g.G(V.linearAdSequenceRenderer.linearAds);for(x=V.next();!x.done;x=V.next())x=x.value,g.l(x,Ld)&&t.push(g.l(x,Ld));return t}return null}; YVh=function(V){if(V.instreamVideoAdRenderer===void 0)return Gd("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var t=g.G(V.ZR),x=t.next();!x.done;x=t.next()){x=x.value;if(x.xM===void 0)return!1;if(x.Ps===void 0)return Gd("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(V.Zj===void 0||x.fN===void 0||V.Zj!==x.fN&&x.fN!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(V.instreamVideoAdRenderer.elementId===void 0)return Gd("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:V.Zj,"matching APSR kind":x.fN}),!1}return!0}; el=function(V,t){V.has(t)||V.set(t,{instreamVideoAdRenderer:void 0,Zj:void 0,adVideoId:t,ZR:[]});return V.get(t)}; d4=function(V,t,x,u,Z,P,K,R,f){Z?el(V,Z).ZR.push({kt8:t,fN:x,isContentVideoCompanion:u,Ps:K,associatedCompositePlayerBytesLayoutId:P,adSlotLoggingData:R,xM:f}):Gd("Companion AdPlacementSupportedRenderer without adVideoId")}; Cd=function(V){var t=0;V=g.G(V.questions);for(var x=V.next();!x.done;x=V.next())if(x=x.value,x=g.l(x,au)||g.l(x,r4)){var u=void 0;t+=((u=x.surveyAdQuestionCommon)==null?void 0:u.durationMilliseconds)||0}return t}; JZ=function(V){var t,x,u,Z,P=((x=g.l((t=V.questions)==null?void 0:t[0],au))==null?void 0:x.surveyAdQuestionCommon)||((Z=g.l((u=V.questions)==null?void 0:u[0],r4))==null?void 0:Z.surveyAdQuestionCommon),K;t=[].concat(g.v(((K=V.playbackCommands)==null?void 0:K.instreamAdCompleteCommands)||[]),g.v((P==null?void 0:P.timeoutCommands)||[]));var R,f,b,E,k,O,N,p,I,L,M,z,Y,r,n,U,d,uL,q1,w;return{impressionCommands:(R=V.playbackCommands)==null?void 0:R.impressionCommands,errorCommands:(f=V.playbackCommands)== null?void 0:f.errorCommands,muteCommands:(b=V.playbackCommands)==null?void 0:b.muteCommands,unmuteCommands:(E=V.playbackCommands)==null?void 0:E.unmuteCommands,pauseCommands:(k=V.playbackCommands)==null?void 0:k.pauseCommands,rewindCommands:(O=V.playbackCommands)==null?void 0:O.rewindCommands,resumeCommands:(N=V.playbackCommands)==null?void 0:N.resumeCommands,skipCommands:(p=V.playbackCommands)==null?void 0:p.skipCommands,progressCommands:(I=V.playbackCommands)==null?void 0:I.progressCommands,z78:(L= V.playbackCommands)==null?void 0:L.clickthroughCommands,fullscreenCommands:(M=V.playbackCommands)==null?void 0:M.fullscreenCommands,activeViewViewableCommands:(z=V.playbackCommands)==null?void 0:z.activeViewViewableCommands,activeViewMeasurableCommands:(Y=V.playbackCommands)==null?void 0:Y.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(r=V.playbackCommands)==null?void 0:r.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(n=V.playbackCommands)== null?void 0:(U=n.activeViewTracking)==null?void 0:U.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(d=V.playbackCommands)==null?void 0:(uL=d.activeViewTracking)==null?void 0:uL.activeViewAudioMeasurableCommands,endFullscreenCommands:(q1=V.playbackCommands)==null?void 0:q1.endFullscreenCommands,abandonCommands:(w=V.playbackCommands)==null?void 0:w.abandonCommands,completeCommands:t}}; ouC=function(V,t,x,u,Z,P,K){return function(R,f){return Wvs(V,f.slotId,R,P,function(b,E){var k=f.layoutId;b=K(b);return hZ(t,k,E,Z,b,"LAYOUT_TYPE_SURVEY",[new Gc(x),u],x.adLayoutLoggingData)})}}; y9l=function(V,t,x,u,Z,P,K){if(!nuz(V))return new h("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:V});var R=V.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[c98(P,t,x,u,function(f){var b=f.slotId;f=K(f);b=u4(Z.S.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",b);var E={layoutId:b,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",C1:"core"},k=new T$(Z.J,u);return{layoutId:b,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Rt:new Map,layoutExitNormalTriggers:[k], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:"core",clientMetadata:new Ez([new II(R)]),Vt:f(E)}})]}; nuz=function(V){V=g.l(V==null?void 0:V.additionalPlayerOverlay,jns);if(!V)return!1;var t=V.slidingMessages;return V.title&&t&&t.length!==0?!0:!1}; HS9=function(V,t,x,u,Z){var P;if((P=V.playerOverlay)==null||!P.instreamSurveyAdRenderer)return function(){return[]}; if(!sn9(V))return function(){return new h("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:V})}; var K=V.playerOverlay.instreamSurveyAdRenderer,R=Cd(K);return R<=0?function(){return new h("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:K})}:function(f,b){var E=lv4(f,x,u,function(k){var O=k.slotId; k=b(k);var N=JZ(K);O=u4(Z.S.get(),"LAYOUT_TYPE_SURVEY",O);var p={layoutId:O,layoutType:"LAYOUT_TYPE_SURVEY",C1:"core"},I=new T$(Z.J,u),L=new dt(Z.J,O),M=new xG(Z.J,O),z=new doK(Z.J);return{layoutId:O,layoutType:"LAYOUT_TYPE_SURVEY",Rt:new Map,layoutExitNormalTriggers:[I,z],layoutExitSkipTriggers:[L],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[M],d9:[],C1:"core",clientMetadata:new Ez([new Sn(K),new P6(t),new en(R/1E3),new hU(N)]),Vt:k(p),adLayoutLoggingData:K.adLayoutLoggingData}}); f=y9l(V,x,E.slotId,u,Z,f,b);return f instanceof h?f:[E].concat(g.v(f))}}; hjl=function(V,t,x,u,Z,P,K){K=K===void 0?!1:K;var R=[];try{var f=[];if(x.renderer.linearAdSequenceRenderer)var b=function(I){I=Uj4(I.slotId,x,t,Z(I),u,P,K);f=I.mRk;return I.gM}; else if(x.renderer.instreamVideoAdRenderer)b=function(I){var L=I.slotId;I=Z(I);var M=K,z=x.config.adPlacementConfig,Y=DjC(z),r=Y.pC,n=Y.k7;Y=x.renderer.instreamVideoAdRenderer;var U;if(Y==null?0:(U=Y.playerOverlay)==null?0:U.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var d=w4(Y,M);U=Math.min(r+d.videoLengthSeconds*1E3,n);M=new z$(0,[d.videoLengthSeconds]);n=d.videoLengthSeconds;var uL=d.playerVars,q1=d.instreamAdPlayerOverlayRenderer,w=d.playerOverlayLayoutRenderer, H=d.adVideoId,C=ej4(x),S=d.Rt;d=d.zQ;var D=Y==null?void 0:Y.adLayoutLoggingData;Y=Y==null?void 0:Y.sodarExtensionData;L=u4(t.S.get(),"LAYOUT_TYPE_MEDIA",L);var ws={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",C1:"core"};return{layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",Rt:S,layoutExitNormalTriggers:[new WV(t.J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:"core",clientMetadata:new Ez([new b2(u),new YM(n),new Qc(uL),new Tc(r),new W6(U),q1&&new Ex(q1), w&&new kM(w),new P6(z),new $M(H),new KL(M),new jn(C),Y&&new rC(Y),new Xl({current:null}),new nL({}),new t3(d)].filter(djs)),Vt:I(ws),adLayoutLoggingData:D}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var E=CML(V,u,x.adSlotLoggingData,b);R.push(E);for(var k=g.G(f),O=k.next();!O.done;O=k.next()){var N=O.value,p=N(V,Z);if(p instanceof h)return p;R.push.apply(R,g.v(p))}}catch(I){return new h(I,{errorMessage:I.message,AdPlacementRenderer:x,numberOfSurveyRenderers:J9K(x)})}return R}; J9K=function(V){V=(V.renderer.linearAdSequenceRenderer||{}).linearAds;return V!=null&&V.length?V.filter(function(t){var x,u;return((x=g.l(t,Ld))==null?void 0:(u=x.playerOverlay)==null?void 0:u.instreamSurveyAdRenderer)!=null}).length:0}; Uj4=function(V,t,x,u,Z,P,K){var R=t.config.adPlacementConfig,f=DjC(R),b=f.pC,E=f.k7;f=(t.renderer.linearAdSequenceRenderer||{}).linearAds;if(f==null||!f.length)throw new TypeError("Expected linear ads");var k=[],O={lk:b,XO:0,w0U:k};f=f.map(function(p){return wE8(V,p,O,x,u,R,Z,E,K)}).map(function(p,I){I=new z$(I,k); return p(I)}); var N=f.map(function(p){return p.n5}); return{gM:V8h(x,V,b,N,R,ej4(t),u,E,P),mRk:f.map(function(p){return p.N1U})}}; wE8=function(V,t,x,u,Z,P,K,R,f){var b=w4(g.l(t,Ld),f),E=x.lk,k=x.XO,O=Math.min(E+b.videoLengthSeconds*1E3,R);x.lk=O;x.XO++;x.w0U.push(b.videoLengthSeconds);var N,p,I=(N=g.l(t,Ld))==null?void 0:(p=N.playerOverlay)==null?void 0:p.instreamSurveyAdRenderer;if(b.adVideoId==="nPpU29QrbiU"&&I==null)throw new TypeError("Survey slate media has no survey overlay");return function(L){Up(b.playerVars,L);var M,z,Y=b.videoLengthSeconds,r=b.playerVars,n=b.Rt,U=b.zQ,d=b.instreamAdPlayerOverlayRenderer,uL=b.playerOverlayLayoutRenderer, q1=b.adVideoId,w=(M=g.l(t,Ld))==null?void 0:M.adLayoutLoggingData;M=(z=g.l(t,Ld))==null?void 0:z.sodarExtensionData;z=u4(u.S.get(),"LAYOUT_TYPE_MEDIA",V);var H={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA",C1:"adapter"};L={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA",Rt:n,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:"adapter",clientMetadata:new Ez([new b2(K),new YM(Y),new Qc(r),new Tc(E),new W6(O),new oI(k),new Xl({current:null}), d&&new Ex(d),uL&&new kM(uL),new P6(P),new $M(q1),new KL(L),M&&new rC(M),I&&new VE(I),new nL({}),new t3(U)].filter(djs)),Vt:Z(H),adLayoutLoggingData:w};Y=HS9(g.l(t,Ld),P,K,L.layoutId,u);return{n5:L,N1U:Y}}}; w4=function(V,t){if(!V)throw new TypeError("Expected instream video ad renderer");if(!V.playerVars)throw new TypeError("Expected player vars in url encoded string");var x=EQ(V.playerVars),u=Number(x.length_seconds);if(isNaN(u))throw new TypeError("Expected valid length seconds in player vars");var Z=Number(V.trimmedMaxNonSkippableAdDurationMs);u=isNaN(Z)?u:Math.min(u,Z/1E3);Z=V.playerOverlay||{};Z=Z.instreamAdPlayerOverlayRenderer===void 0?null:Z.instreamAdPlayerOverlayRenderer;var P=V.playerOverlay|| {};P=P.playerOverlayLayoutRenderer===void 0?null:P.playerOverlayLayoutRenderer;var K=x.video_id;K||(K=(K=V.externalVideoId)?K:void 0);if(!K)throw new TypeError("Expected valid video id in IVAR");if(t&&u===0){var R;t=(R=t8q[K])!=null?R:u}else t=u;return{playerVars:x,videoLengthSeconds:t,instreamAdPlayerOverlayRenderer:Z,playerOverlayLayoutRenderer:P,adVideoId:K,Rt:V.pings?ab(V.pings):new Map,zQ:Qq(V.pings)}}; ej4=function(V){V=Number(V.driftRecoveryMs);return isNaN(V)||V<=0?null:V}; DjC=function(V){var t=V.adTimeOffset||{};V=t.offsetEndMilliseconds;t=Number(t.offsetStartMilliseconds);if(isNaN(t))throw new TypeError("Expected valid start offset");V=Number(V);if(isNaN(V))throw new TypeError("Expected valid end offset");return{pC:t,k7:V}}; xBq=function(V){var t,x=(t=kH(V.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:t.current;if(!x)return null;t=kH(V.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var u=V.layoutId,Z=kH(V.clientMetadata,"metadata_type_content_cpn"),P=kH(V.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),K=kH(V.clientMetadata,"metadata_type_player_underlay_renderer"),R=kH(V.clientMetadata,"metadata_type_ad_placement_config"),f=kH(V.clientMetadata,"metadata_type_video_length_seconds"); var b=Rp(V.clientMetadata,"metadata_type_layout_enter_ms")&&Rp(V.clientMetadata,"metadata_type_layout_exit_ms")?(kH(V.clientMetadata,"metadata_type_layout_exit_ms")-kH(V.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Rl:u,contentCpn:Z,mY:x,xZ:t,instreamAdPlayerOverlayRenderer:P,instreamAdPlayerUnderlayRenderer:K,adPlacementConfig:R,videoLengthSeconds:f,Xo:b,inPlayerLayoutId:kH(V.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:kH(V.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; PrT=function(V,t,x,u,Z,P,K,R,f,b,E,k,O,N,p){u=vu(u,"SLOT_TYPE_PLAYER_BYTES");V=u$s(Z,V,K,x,u,f,b);if(V instanceof h)return V;var I;b=(I=kH(V.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:I.layoutId;if(!b)return new h("Invalid adNotify layout");t=ZAq(b,Z,P,x,R,t,f,E,k,O,N,p,K);return t instanceof h?t:[V].concat(g.v(t))}; ZAq=function(V,t,x,u,Z,P,K,R,f,b,E,k,O){x=KsK(t,x,u,P,K,R,f,b,E,k,O);if(x instanceof h)return x;V=qiL(t,V,K,Z,x);return V instanceof h?V:[].concat(g.v(V.G4),[V.Dk])}; fs4=function(V,t,x,u,Z,P,K,R,f,b,E,k,O,N){t=KsK(V,t,x,Z,P,R,f,b,E,k,O,N);if(t instanceof h)return t;V=R1w(V,x,P,K,u,R.uq,t);return V instanceof h?V:V.G4.concat(V.Dk)}; KsK=function(V,t,x,u,Z,P,K,R,f,b,E,k){var O=VI(u,x,b);return O instanceof bC?new h(O):b.U.K().experiments.MP("html5_refactor_in_player_slot_generation")?function(N){var p=new z$(0,[O.ZO]);N=$BT(t,O.layoutId,O.Fe,x,ta(O.playerVars,O.PA,P,f,p),O.ZO,Z,p,K(N),R.get(O.Fe.externalVideoId),k);p=[];if(O.Fe.playerOverlay.instreamAdPlayerOverlayRenderer){var I=xBq(N);if(!I)return Gd("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,N),{layout:N,G4:[]}; p=[bA9(V,I.contentCpn,I.Rl,function(M){return x5(t,M.slotId,"core",I,A3(E,M))},I.inPlayerSlotId)].concat(g.v(p)); if(I.instreamAdPlayerUnderlayRenderer&&uJ(b)){var L=I.instreamAdPlayerUnderlayRenderer;p=[EB9(V,I.contentCpn,I.Rl,function(M){return kk4(t,M.slotId,L,I.adPlacementConfig,I.Rl,A3(E,M))})].concat(g.v(p))}}return{layout:N, G4:p}}:function(N){var p=new z$(0,[O.ZO]); return{layout:$BT(t,O.layoutId,O.Fe,x,ta(O.playerVars,O.PA,P,f,p),O.ZO,Z,p,K(N),R.get(O.Fe.externalVideoId),k),G4:[]}}}; VI=function(V,t,x){if(!V.playerVars)return new bC("No playerVars available in InstreamVideoAdRenderer.");var u,Z;if(V.elementId==null||V.playerVars==null||V.playerOverlay==null||((u=V.playerOverlay)==null?void 0:u.instreamAdPlayerOverlayRenderer)==null&&((Z=V.playerOverlay)==null?void 0:Z.playerOverlayLayoutRenderer)==null||V.pings==null||V.externalVideoId==null)return new bC("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:V});u=EQ(V.playerVars);Z=Number(u.length_seconds); isNaN(Z)&&(Z=0,Gd("Expected valid length seconds in player vars but got NaN"));if(x.hZ(t.kind==="AD_PLACEMENT_KIND_START")){if(V.layoutId===void 0)return new bC("Expected server generated layout ID in instreamVideoAdRenderer");t=V.layoutId}else t=V.elementId;return{layoutId:t,Fe:V,playerVars:u,PA:V.playerVars,ZO:Z}}; ta=function(V,t,x,u,Z){V.iv_load_policy=u;t=EQ(t);if(t.cta_conversion_urls)try{V.cta_conversion_urls=JSON.parse(t.cta_conversion_urls)}catch(P){Gd(P)}x.I4&&(V.ctrl=x.I4);x.DD&&(V.ytr=x.DD);x.WD&&(V.ytrcc=x.WD);x.isMdxPlayback&&(V.mdx="1");V.vvt&&(V.vss_credentials_token=V.vvt,x.gH&&(V.vss_credentials_token_type=x.gH),x.mdxEnvironment&&(V.mdx_environment=x.mdxEnvironment));Up(V,Z);return V}; iA4=function(V){var t=new Map;V=g.G(V);for(var x=V.next();!x.done;x=V.next())(x=x.value.renderer.remoteSlotsRenderer)&&x.hostElementId&&t.set(x.hostElementId,x);return t}; Zb=function(V){return V.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; OA0=function(V){return V!=null}; Gk1=function(V,t,x,u,Z,P,K,R,f,b,E,k,O,N){for(var p=[],I=g.G(V),L=I.next();!L.done;L=I.next())if(L=L.value,!Rjj(L)&&!kET(L)){var M=Zb(L)&&!!L.slotEntryTrigger.beforeContentVideoIdStartedTrigger,z=f.hZ(M),Y=sRj(L,b,u,x.f6,z);if(Y instanceof h)return Y;var r=void 0,n={slotId:L.adSlotMetadata.slotId,slotType:L.adSlotMetadata.slotType,slotPhysicalPosition:(r=L.adSlotMetadata.slotPhysicalPosition)!=null?r:1,C1:"core",slotEntryTrigger:Y.slotEntryTrigger,slotFulfillmentTriggers:Y.slotFulfillmentTriggers, slotExpirationTriggers:Y.slotExpirationTriggers},U=g.l(L.fulfillmentContent.fulfilledLayout,zs);if(U){if(!Xi(U))return new h("Invalid PlayerBytesAdLayoutRenderer");r=k&&!(Zb(L)&&L.slotEntryTrigger.beforeContentVideoIdStartedTrigger);Y=Y.slotFulfillmentTriggers.some(function(d){return d instanceof ok}); z=r?Ndh(n,L.adSlotMetadata.triggerEvent,U,x,u,P,b,V,z,O,Y,N):pl1(n,L.adSlotMetadata.triggerEvent,U,t,x,u,Z,P,K,R,f,b,V,E,z,L.adSlotMetadata.triggeringSourceLayoutId);if(z instanceof h)return z;Y=[];Zb(L)&&Y.push(new Kw({Sm:Zb(L)&&!!L.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));r&&Y.push(new nL({}));x.uq&&Y.push(new wC({}));Y.push(new ZC(M));L=Object.assign({},n,{clientMetadata:new Ez(Y),fulfilledLayout:z.layout,adSlotLoggingData:L.adSlotMetadata.adSlotLoggingData});p.push.apply(p,g.v(z.G4)); p.push(L)}else if(M=g.l(L.fulfillmentContent.fulfilledLayout,Qj)){if(!qVw(M))return new h("Invalid PlayerUnderlayAdLayoutRenderer");M=AE1(M,u,x.f6,P,n,L.adSlotMetadata.triggerEvent,L.adSlotMetadata.triggeringSourceLayoutId);if(M instanceof h)return M;L=Object.assign({},n,{clientMetadata:new Ez([]),fulfilledLayout:M,adSlotLoggingData:L.adSlotMetadata.adSlotLoggingData});p.push(L)}else if(M=g.l(L.fulfillmentContent.fulfilledLayout,$jw)){if(!wFw(M))return new h("Invalid AboveFeedAdLayoutRenderer");M= Siq(M,u,x.f6,P,n,L.adSlotMetadata.triggerEvent,L.adSlotMetadata.triggeringSourceLayoutId);if(M instanceof h)return M;L=Object.assign({},n,{clientMetadata:new Ez([]),fulfilledLayout:M,adSlotLoggingData:L.adSlotMetadata.adSlotLoggingData});p.push(L)}else if(M=g.l(L.fulfillmentContent.fulfilledLayout,bSh)){if(!Pd(M.adLayoutMetadata)||!g.l(M.renderingContent,Kd))return new h("Invalid BelowPlayerAdLayoutRenderer");M=Siq(M,u,x.f6,P,n,L.adSlotMetadata.triggerEvent,L.adSlotMetadata.triggeringSourceLayoutId); if(M instanceof h)return M;L=Object.assign({},n,{clientMetadata:new Ez([]),fulfilledLayout:M,adSlotLoggingData:L.adSlotMetadata.adSlotLoggingData});p.push(L)}else return new h("Unable to retrieve a client slot ["+n.slotType+"] from a given AdSlotRenderer")}return p}; Siq=function(V,t,x,u,Z,P,K){var R={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,C1:"core"};t=PT(V,t,x);if(t instanceof h)return t;x=[];x.push(new P6(Kn(P)));P==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&K!==void 0&&x.push(new v6(K));return Object.assign({},R,{renderingContent:V.renderingContent,Rt:new Map([["impression",Iss(V)]])},t,{Vt:A3(u,Z)(R),clientMetadata:new Ez(x),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData})}; AE1=function(V,t,x,u,Z,P,K){if(V.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(K=g.l(V.renderingContent,Bd))if(K=g.l(K.sidePanel,PM0)){var R={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,C1:"core"};t=PT(V,t,x);V=t instanceof h?t:Object.assign({},R,{renderingContent:V.renderingContent,Rt:new Map([["impression",K.impressionPings||[]],["resume",K.resumePings||[]]])},t,{Vt:A3(u,Z)(R),clientMetadata:new Ez([new P6(Kn(P))]),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData})}else V= new h("DismissablePanelTextPortraitImageRenderer is missing");else V=new h("SqueezebackPlayerSidePanelRenderer is missing");else V.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.l(V.renderingContent,xj0)?(K={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,C1:"core"},t=PT(V,t,x),V=t instanceof h?t:Object.assign({},K,{renderingContent:V.renderingContent,Rt:new Map},t,{Vt:A3(u,Z)(K),clientMetadata:new Ez([new P6(Kn(P))]),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData})): V=new h("CounterfactualRenderer is missing"):V.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?V=new h("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):V.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?V=new h("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):V.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.l(V.renderingContent,YG)?(P={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType, C1:"core"},t=PT(V,t,x),V=t instanceof h?t:K?Object.assign({},P,{renderingContent:V.renderingContent,Rt:new Map},t,{Vt:A3(u,Z)(P),clientMetadata:new Ez([new v6(K)]),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData}):new h("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):V=new h("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):V.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.l(V.renderingContent,unj)? (P={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,C1:"core"},t=PT(V,t,x),V=t instanceof h?t:Object.assign({},P,{renderingContent:V.renderingContent,Rt:new Map([])},t,{Vt:A3(u,Z)(P),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Ez([])})):V=new h("AdsEngagementPanelSectionListViewModel is missing"):V=new h("LayoutType ["+V.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return V}; Ndh=function(V,t,x,u,Z,P,K,R,f,b,E,k){if((k==null?void 0:k.Tf)===void 0||(k==null?void 0:k.Gf)===void 0)return new h("Cached ad break range from cue point is missing");var O=PT(x,Z,u.f6);if(O instanceof h)return O;O={layoutExitMuteTriggers:[],layoutExitNormalTriggers:O.layoutExitNormalTriggers,layoutExitSkipTriggers:[],d9:[],layoutExitUserInputSubmittedTriggers:[]};if(g.l(x.renderingContent,Ld))return V=vBC(V,t,x,O,Z,P,R,f,u.f6,K,k.Tf,k.Gf),V instanceof h?V:V.a5===void 0?new h("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:V.layout,G4:[V.a5]};var N=g.l(x.renderingContent,Iu);if(N){if(!Pd(x.adLayoutMetadata))return new h("Invalid ad layout metadata");if(!vd(N))return new h("Invalid sequential layout");N=N.sequentialLayouts.map(function(p){return p.playerBytesAdLayoutRenderer}); V=Lsq(V,t,x,O,N,Z,u,P,K,f,R,b,k.Tf,k.Gf,E);return V instanceof h?V:{layout:V.BB,G4:V.G4}}return new h("Not able to convert a sequential layout")}; Lsq=function(V,t,x,u,Z,P,K,R,f,b,E,k,O,N,p){var I=Fsq(Z,O,N);if(I instanceof h)return I;var L=[],M=[];I=g.G(I);for(var z=I.next();!z.done;z=I.next()){var Y=z.value;z=V;var r=Z[Y.XO],n=Y,U=t;Y=P;var d=K,uL=R,q1=f,w=b,H=E,C=qb(r);if(C instanceof h)z=C;else{var S={layoutId:r.adLayoutMetadata.layoutId,layoutType:r.adLayoutMetadata.layoutType,C1:"adapter"};n=M84(U,r,n,Y);n instanceof h?z=n:(z=Object.assign({},S,R5,{Rt:C,renderingContent:r.renderingContent,clientMetadata:new Ez(n),Vt:A3(uL,z)(S),adLayoutLoggingData:r.adLayoutMetadata.adLayoutLoggingData}), z=(r=fn(H,z,Y,d.f6,uL,q1,w,void 0,!0))?r instanceof h?r:{layout:z,a5:r}:new h("Expecting associatedInPlayerSlot"))}if(z instanceof h)return z;L.push(z.layout);M.push(z.a5)}Z={layoutId:x.adLayoutMetadata.layoutId,layoutType:x.adLayoutMetadata.layoutType,C1:"core"};t=[new jn(Number(x.driftRecoveryMs)),new Tc(O),new W6(N),new P6(Kn(t)),new uC(k),new nL({})];p&&t.push(new qH({}));return{BB:Object.assign({},Z,u,{gB:L,Rt:new Map,clientMetadata:new Ez(t),Vt:A3(R,V)(Z)}),G4:M}}; vBC=function(V,t,x,u,Z,P,K,R,f,b,E,k){if(!Xi(x))return new h("Invalid PlayerBytesAdLayoutRenderer");var O=qb(x);if(O instanceof h)return O;var N={layoutId:x.adLayoutMetadata.layoutId,layoutType:x.adLayoutMetadata.layoutType,C1:"core"},p=g.l(x.renderingContent,Ld);if(!p)return new h("Invalid rendering content for DAI media layout");p=w4(p,!1);E={kC:p,XO:0,lk:E,F2:Math.min(E+p.videoLengthSeconds*1E3,k),PF:new z$(0,[p.videoLengthSeconds])};var I;k=(I=Number(x.driftRecoveryMs))!=null?I:void 0;t=M84(t, x,E,Z,k);if(t instanceof h)return t;V=Object.assign({},N,u,{Rt:O,renderingContent:x.renderingContent,clientMetadata:new Ez(t),Vt:A3(P,V)(N),adLayoutLoggingData:x.adLayoutMetadata.adLayoutLoggingData});return(Z=fn(K,V,Z,f,P,b,R,void 0,!0))?Z instanceof h?Z:{layout:V,a5:Z}:new h("Expecting associatedInPlayerSlot")}; pl1=function(V,t,x,u,Z,P,K,R,f,b,E,k,O,N,p,I){var L=PT(x,P,Z.f6);if(L instanceof h)return L;if(g.l(x.renderingContent,Ld)){f=gBs([x],Z,f);if(f instanceof h)return f;if(f.length!==1)return new h("Only expected one media layout.");V=Xl4(V,t,x,L,f[0],void 0,"core",u,P,K,R,b,O,N,p,Z.f6,k,void 0,I);return V instanceof h?V:{layout:V.layout,G4:V.a5?[V.a5]:[]}}var M=g.l(x.renderingContent,Iu);if(M){if(!Pd(x.adLayoutMetadata))return new h("Invalid ad layout metadata");if(!vd(M))return new h("Invalid sequential layout"); M=M.sequentialLayouts.map(function(z){return z.playerBytesAdLayoutRenderer}); V=z1l(V,t,x.adLayoutMetadata,L,M,u,P,Z,f,K,R,b,E,k,p,O,N,I);return V instanceof h?V:{layout:V.BB,G4:V.G4}}return new h("Not able to convert a sequential layout")}; z1l=function(V,t,x,u,Z,P,K,R,f,b,E,k,O,N,p,I,L,M){var z=new fL({current:null}),Y=gBs(Z,R,f);if(Y instanceof h)return Y;f=[];for(var r=[],n=void 0,U=0;U0&&(U.push(M),U.push(new RI(n.adPodSkipTarget)));(P=b.get(n.externalVideoId))&&U.push(new DW(P));P=U}else P=new h("Invalid vod media renderer")}if(P instanceof h)return P;V=Object.assign({},K,u,{Rt:Y,renderingContent:x.renderingContent,clientMetadata:new Ez(P),Vt:A3(E,V)(K),adLayoutLoggingData:x.adLayoutMetadata.adLayoutLoggingData});x=g.l(x.renderingContent,Ld);if(!x||!Gs(x))return new h("Invalid meida renderer");k=el(k,x.externalVideoId);k.instreamVideoAdRenderer=x;k.Zj="AD_PLACEMENT_KIND_START";return N?(f=fn(O,V,f,I,E,L,p,M,!1),f instanceof h?f:Yi0(V.layoutId,O)&&f?{layout:Object.assign({},V,{clientMetadata:new Ez(P.concat(new sx(f)))})}:{layout:V,a5:f}): {layout:V}}; Bdl=function(V,t,x,u,Z){if(!Xi(t))return new h("Invalid PlayerBytesAdLayoutRenderer");var P=g.l(t.renderingContent,NF);if(!P||P.durationMilliseconds===void 0)return new h("Invalid endcap renderer");var K={layoutId:t.adLayoutMetadata.layoutId,layoutType:t.adLayoutMetadata.layoutType,C1:"adapter"};u=[new dC(P.durationMilliseconds),new hU({impressionCommands:void 0,abandonCommands:P.abandonCommands?[{commandExecutorCommand:P.abandonCommands}]:void 0,completeCommands:P.completionCommands}),new P6(u), new Fl("LAYOUT_TYPE_ENDCAP")];if(Z){u.push(new q$(Z.PF.adPodIndex-1));u.push(new oI(Z.PF.adPodIndex));var R;u.push(new RI((R=Z.adPodSkipTarget)!=null?R:-1))}return Object.assign({},K,R5,{renderingContent:t.renderingContent,clientMetadata:new Ez(u),Rt:P.skipPings?new Map([["skip",P.skipPings]]):new Map,Vt:A3(x,V)(K),adLayoutLoggingData:t.adLayoutMetadata.adLayoutLoggingData})}; fn=function(V,t,x,u,Z,P,K,R,f){V=V.filter(function(E){return E.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&E.adSlotMetadata.triggeringSourceLayoutId===t.layoutId}); if(V.length!==0){if(V.length!==1)return new h("Invalid InPlayer slot association for the given PlayerBytes layout");V=V[0];K=sRj(V,P,x,u,K);if(K instanceof h)return K;var b;P={slotId:V.adSlotMetadata.slotId,slotType:V.adSlotMetadata.slotType,slotPhysicalPosition:(b=V.adSlotMetadata.slotPhysicalPosition)!=null?b:1,C1:"core",slotEntryTrigger:K.slotEntryTrigger,slotFulfillmentTriggers:K.slotFulfillmentTriggers,slotExpirationTriggers:K.slotExpirationTriggers};b=g.l(V.fulfillmentContent.fulfilledLayout, fvT);if(!b||!tYT(b))return new h("Invalid InPlayerAdLayoutRenderer");K={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,C1:"core"};x=PT(b,x,u);if(x instanceof h)return x;u=[];f&&u.push(new nL({}));if(b.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")u.push.apply(u,g.v(QR8(V.adSlotMetadata.triggerEvent,t)));else if(b.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")u.push(new P6(Kn(V.adSlotMetadata.triggerEvent))),R&&u.push(R);else return new h("Not able to parse an SDF InPlayer layout"); Z=Object.assign({},K,x,{renderingContent:b.renderingContent,Rt:new Map,Vt:A3(Z,P)(K),clientMetadata:new Ez(u),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},P,{fulfilledLayout:Z,clientMetadata:new Ez([])})}}; QR8=function(V,t){var x=[];x.push(new P6(Kn(V)));x.push(new v6(t.layoutId));(V=kH(t.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&x.push(new Xl(V));(V=kH(t.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&x.push(new fL(V));(V=kH(t.clientMetadata,"metadata_type_remote_slots_data"))&&x.push(new DW(V));(V=kH(t.clientMetadata,"metadata_type_ad_next_params"))&&x.push(new JE(V));(V=kH(t.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&x.push(new hE(V));(V= kH(t.clientMetadata,"metadata_type_ad_pod_info"))&&x.push(new KL(V));(t=kH(t.clientMetadata,"metadata_type_ad_video_id"))&&x.push(new $M(t));return x}; mBK=function(V,t,x,u,Z,P){function K(b){return $5(t,b)} var R=u.NJ.inPlayerSlotId,f={layoutId:u.NJ.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",C1:"core"};x={slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,C1:"core",slotEntryTrigger:new ak(K,V),slotFulfillmentTriggers:[new CZ(K,R)],slotExpirationTriggers:[new Jr(K,R),new D9(K,x)]};V=Object.assign({},f,{layoutExitNormalTriggers:[new T$(K,V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],Rt:new Map,clientMetadata:new Ez([new pL(u.NJ), new P6(u.adPlacementConfig),Z]),Vt:A3(P,x)(f),adLayoutLoggingData:u.NJ.adLayoutLoggingData});return Object.assign({},x,{clientMetadata:new Ez([new l2(V)])})}; Yi0=function(V,t){t=g.G(t);for(var x=t.next();!x.done;x=t.next())if(x=x.value,x.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var u=g.l(x.fulfillmentContent.fulfilledLayout,Qj);if(u&&(u=g.l(u.renderingContent,Bd))&&u.associatedPlayerBytesLayoutId===V)return x}}; sRj=function(V,t,x,u,Z){var P=asw(Hd(V.slotEntryTrigger,x,u),Z,V,t);if(P instanceof h)return P;for(var K=[],R=g.G(V.slotFulfillmentTriggers),f=R.next();!f.done;f=R.next()){f=Hd(f.value,x,u);if(f instanceof h)return f;K.push(f)}K=rEh(K,Z,V,t);t=[];V=g.G(V.slotExpirationTriggers);for(Z=V.next();!Z.done;Z=V.next()){Z=Hd(Z.value,x,u);if(Z instanceof h)return Z;t.push(Z)}return{slotEntryTrigger:P,slotFulfillmentTriggers:K,slotExpirationTriggers:t}}; asw=function(V,t,x,u){return t&&x.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&V instanceof BV?new XW(function(Z){return $5(u,Z)},x.adSlotMetadata.slotId):V}; rEh=function(V,t,x,u){return t&&x.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?V.map(function(Z){return Z instanceof CZ?new Vj(function(P){return $5(u,P)},x.adSlotMetadata.slotId):Z}):V}; PT=function(V,t,x){for(var u=[],Z=g.G(V.layoutExitNormalTriggers||[]),P=Z.next();!P.done;P=Z.next()){P=Hd(P.value,t,x);if(P instanceof h)return P;u.push(P)}Z=[];P=g.G(V.layoutExitSkipTriggers||[]);for(var K=P.next();!K.done;K=P.next()){K=Hd(K.value,t,x);if(K instanceof h)return K;Z.push(K)}P=[];K=g.G(V.layoutExitMuteTriggers||[]);for(var R=K.next();!R.done;R=K.next()){R=Hd(R.value,t,x);if(R instanceof h)return R;P.push(R)}K=[];V=g.G(V.layoutExitUserInputSubmittedTriggers||[]);for(R=V.next();!R.done;R= V.next()){R=Hd(R.value,t,x);if(R instanceof h)return R;K.push(R)}return{layoutExitNormalTriggers:u,layoutExitSkipTriggers:Z,layoutExitMuteTriggers:P,layoutExitUserInputSubmittedTriggers:K,d9:[]}}; qb=function(V){var t=g.l(V.renderingContent,Ld);if(t==null?0:t.pings)return ab(t.pings);V=g.l(V.renderingContent,NF);return(V==null?0:V.skipPings)?new Map([["skip",V.skipPings]]):new Map}; M84=function(V,t,x,u,Z){t=g.l(t.renderingContent,Ld);if(!t)return new h("Invalid rendering content for DAI media layout");V=[new b2(u),new YM(x.kC.videoLengthSeconds),new Qc(x.kC.playerVars),new Tc(x.lk),new W6(x.F2),new oI(x.XO),new P6(Kn(V)),new $M(x.kC.adVideoId),new KL(x.PF),t.sodarExtensionData&&new rC(t.sodarExtensionData),new Xl({current:null}),new nL({}),new t3(Qq(t.pings))].filter(OA0);Z!==void 0&&V.push(new jn(Z));return V}; Fsq=function(V,t,x){V=V.map(function(f){return w4(g.l(f.renderingContent,Ld),!1)}); var u=V.map(function(f){return f.videoLengthSeconds}),Z=u.map(function(f,b){return new z$(b,u)}),P=t,K=x,R=[]; V.forEach(function(f,b){K=Math.min(P+f.videoLengthSeconds*1E3,x);Up(f.playerVars,Z[b]);R.push({kC:f,lk:P,F2:K,XO:b,PF:Z[b]});P=K}); return R}; gBs=function(V,t,x){for(var u=[],Z=g.G(V),P=Z.next();!P.done;P=Z.next())if(P=g.l(P.value.renderingContent,Ld)){if(!Gs(P))return new h("Invalid vod media renderer");u.push(Td0(P))}Z=u.map(function(k){return k.ZO}); P=[];for(var K=0,R=0;R0?w:-1;else if(S=g.l(C,NF)){C=e19(V,t,x,S,P,I,R,d,w);if(C instanceof h){N=C;break a}C= C(O);L.push(C.uI);M=[].concat(g.v(C.zi),g.v(M));z=[].concat(g.v(C.Ye),g.v(z));C.a5&&(q1=[C.a5].concat(g.v(q1)))}else if(S=g.l(C,M6)){if(N===void 0){N=new h("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:S});break a}C=JEK(V,t,x,P,S,U,R,N,I,xm(E,"supports_multi_step_on_desktop"));if(C instanceof h){N=C;break a}C=C(O);L.push(C.uI);C.a5&&q1.push(C.a5);M=[].concat(g.v(C.zi),g.v(M));z=[].concat(g.v(C.Ye),g.v(z));Y=[].concat(g.v(C.uw),g.v(Y));r=[].concat(g.v(C.EK), g.v(r));n=[U].concat(g.v(n))}else if(C=g.l(C,g4)){C=h1L(V,t,x,P,C,U,R,I);if(C instanceof h){N=C;break a}C=C(O);L.push(C.uI);C.a5&&q1.push(C.a5);z=[].concat(g.v(C.Ye),g.v(z))}else{N=new h("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}N={gB:L,layoutExitSkipTriggers:M,layoutExitUserInputSubmittedTriggers:Y,d9:r,layoutExitMuteTriggers:z,t0:n,G4:q1}}}else a:if(I=K2j(u,x,E),I instanceof h)N=I;else{L=0;M=[];z=[];Y=[];r=[];n=[];U=[];d=new zc({current:null});uL=new fL({current:null}); q1=!1;H=[];w=-1;p=g.G(u);for(C=p.next();!C.done;C=p.next())if(C=C.value,g.l(C,Fi)){C=dBq(t,x,g.l(C,Fi),R);if(C instanceof h){N=C;break a}C=C(O);M.push(C.uI);z=[].concat(g.v(C.zi),g.v(z));Y=[].concat(g.v(C.Ye),g.v(Y));C.a5&&(H=[C.a5].concat(g.v(H)))}else if(g.l(C,Ld)){w=VI(g.l(C,Ld),x,E);if(w instanceof bC){N=new h(w);break a}C=new z$(L,I);C=qxq(t,w.layoutId,w.Fe,x,ta(w.playerVars,w.PA,K,b,C),w.ZO,P,C,R(O),uL,f.get(w.Fe.externalVideoId),void 0,k);L++;M.push(C.uI);z=[].concat(g.v(C.zi),g.v(z));Y=[].concat(g.v(C.Ye), g.v(Y));q1||(U.push(uL),q1=!0);w=(w=w.Fe.adPodSkipTarget)&&w>0?w:-1}else if(g.l(C,NF)){C=e19(V,t,x,g.l(C,NF),P,L,R,uL,w);if(C instanceof h){N=C;break a}C=C(O);M.push(C.uI);z=[].concat(g.v(C.zi),g.v(z));Y=[].concat(g.v(C.Ye),g.v(Y));C.a5&&(H=[C.a5].concat(g.v(H)))}else if(g.l(C,M6)){if(N===void 0){N=new h("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.l(C,M6)});break a}C=JEK(V,t,x,P,g.l(C,M6),d,R,N,L,xm(E,"supports_multi_step_on_desktop")); if(C instanceof h){N=C;break a}C=C(O);M.push(C.uI);C.a5&&H.push(C.a5);z=[].concat(g.v(C.zi),g.v(z));Y=[].concat(g.v(C.Ye),g.v(Y));r=[].concat(g.v(C.uw),g.v(r));n=[].concat(g.v(C.EK),g.v(n));U=[d].concat(g.v(U))}else if(g.l(C,g4)){C=h1L(V,t,x,P,g.l(C,g4),d,R,L);if(C instanceof h){N=C;break a}C=C(O);M.push(C.uI);C.a5&&H.push(C.a5);Y=[].concat(g.v(C.Ye),g.v(Y))}else{N=new h("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}N={gB:M,layoutExitSkipTriggers:z,layoutExitUserInputSubmittedTriggers:r, d9:n,layoutExitMuteTriggers:Y,t0:U,G4:H}}N instanceof h?O=N:(n=O.slotId,I=N.gB,L=N.layoutExitSkipTriggers,M=N.layoutExitMuteTriggers,z=N.layoutExitUserInputSubmittedTriggers,Y=N.t0,O=R(O),r=Z?Z.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",n=Z?Z.layoutId:u4(t.S.get(),r,n),U={layoutId:n,layoutType:r,C1:"core"},O={layout:{layoutId:n,layoutType:r,Rt:new Map,layoutExitNormalTriggers:[new UP(t.J,n)],layoutExitSkipTriggers:L,layoutExitMuteTriggers:M,layoutExitUserInputSubmittedTriggers:z,d9:[],C1:"core", clientMetadata:new Ez([new B6(I)].concat(g.v(Y))),Vt:O(U)},G4:N.G4});return O}}; K2j=function(V,t,x){var u=[];V=g.G(V);for(var Z=V.next();!Z.done;Z=V.next())if(Z=Z.value,g.l(Z,Ld)){Z=VI(g.l(Z,Ld),t,x);if(Z instanceof bC)return new h(Z);u.push(Z.ZO)}return u}; fW8=function(V,t,x,u,Z,P,K,R){if(!OS4(x,R===void 0?!1:R))return new h("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:x});var f=Cd(x);if(f<=0)return new h("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:x});var b=new zc({current:null}),E=ouC(V,t,x,b,u,P,K);return RMK(V,u,P,f,Z,function(k,O){var N=k.slotId,p=JZ(x);k=K(k);var I,L=(I=iJ(t,u,x.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?I: u4(t.S.get(),"LAYOUT_TYPE_MEDIA_BREAK",N);N={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",C1:"core"};I=E(L,O);var M=kH(I.clientMetadata,"metadata_type_fulfilled_layout");M||Gd("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");p=[new P6(u),new dC(f),new hU(p),b];M&&p.push(new Fl(M.layoutType));return{mj1:{layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Rt:new Map,layoutExitNormalTriggers:[new UP(t.J,L)],layoutExitSkipTriggers:[new dt(t.J, O.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new xG(t.J,O.layoutId)],d9:[],C1:"core",clientMetadata:new Ez(p),Vt:k(N)},uXU:I}})}; $$C=function(V){if(!pE9(V))return!1;var t=g.l(V.adVideoStart,Aa);return t?g.l(V.linearAd,Ld)&&AZ(t)?!0:(Gd("Invalid Sandwich with notify"),!1):!1}; bLh=function(V){if(V.linearAds==null)return!1;V=g.l(V.adStart,Aa);return V?AZ(V)?!0:(Gd("Invalid LASR with notify"),!1):!1}; EM8=function(V){if(!N_q(V))return!1;V=g.l(V.adStart,Aa);return V?AZ(V)?!0:(Gd("Invalid LASR with notify"),!1):!1}; Sr=function(V,t,x,u,Z,P,K,R,f,b){this.W=V;this.S=t;this.J=x;this.WX=u;this.I_=Z;this.N=P;this.h6=K;this.UE=R;this.xD=f;this.loadPolicy=b===void 0?1:b}; vu8=function(V,t,x,u,Z,P,K,R,f,b){var E=[];if(t.length===0&&u.length===0&&x.length===0)return E;t=t.filter(Sl);var k=x.filter(Eul),O=u.filter(Sl),N=new Map,p=iA4(t),I=x.some(function(S){var D;return(S==null?void 0:(D=S.adSlotMetadata)==null?void 0:D.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),L=x.some(function(S){var D; return(S==null?void 0:(D=S.adSlotMetadata)==null?void 0:D.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),M=x.some(function(S){var D; return(S==null?void 0:(D=S.adSlotMetadata)==null?void 0:D.slotType)==="SLOT_TYPE_IN_PLAYER"}); x=x.some(function(S){var D,ws;return(S==null?void 0:(D=S.adSlotMetadata)==null?void 0:D.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(S==null?void 0:(ws=S.adSlotMetadata)==null?void 0:ws.slotType)==="SLOT_TYPE_ABOVE_FEED"}); if(I||L||M||x)b=Gk1(k,t,R,Z,p,V.I_.get(),V.loadPolicy,N,V.WX.get(),V.W.get(),M,K,f,b),b instanceof h?Gd(b,void 0,void 0,{contentCpn:Z}):E.push.apply(E,g.v(b));b=g.G(t);for(x=b.next();!x.done;x=b.next())x=x.value,L=kcq(V,N,x,Z,P,K,I,R,p,f,k),L instanceof h?Gd(L,void 0,void 0,{renderer:x.renderer,config:x.config.adPlacementConfig,kind:x.config.adPlacementConfig.kind,contentCpn:Z,daiEnabled:K}):E.push.apply(E,g.v(L));iLL(V.WX.get())||(P=OLl(V,O,Z,R,p,N),E.push.apply(E,g.v(P)));if(V.N===null||K&&!R.Pb){var z, Y,r;V=R.uq&&t.length===1&&((z=t[0].config)==null?void 0:(Y=z.adPlacementConfig)==null?void 0:Y.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((r=t[0].renderer)==null?void 0:r.adBreakServiceRenderer);if(!E.length&&!V){var n,U,d,uL;Gd("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":t.length,contentCpn:Z,"first APR kind":(n=t[0])==null?void 0:(U=n.config)==null?void 0:(d=U.adPlacementConfig)==null?void 0:d.kind,renderer:(uL=t[0])==null?void 0:uL.renderer})}return E}z= u.filter(Sl);E.push.apply(E,g.v(r9h(N,z,V.S.get(),V.N,Z,I)));if(!E.length){var q1,w,H,C;Gd("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":t.length,contentCpn:Z,daiEnabled:K.toString(),"first APR kind":(q1=t[0])==null?void 0:(w=q1.config)==null?void 0:(H=w.adPlacementConfig)==null?void 0:H.kind,renderer:(C=t[0])==null?void 0:C.renderer})}return E}; OLl=function(V,t,x,u,Z,P){function K(O){return A3(V.I_.get(),O)} var R=[];t=g.G(t);for(var f=t.next();!f.done;f=t.next()){f=f.value;var b=f.renderer,E=b.sandwichedLinearAdRenderer,k=b.linearAdSequenceRenderer;E&&$$C(E)?(Gd("Found AdNotify with SandwichedLinearAdRenderer"),k=g.l(E.adVideoStart,Aa),E=g.l(E.linearAd,Ld),D2(P,b,f.config.adPlacementConfig.kind),b=void 0,k=ZAq((b=k)==null?void 0:b.layout.layoutId,V.S.get(),V.J.get(),f.config.adPlacementConfig,f.adSlotLoggingData,E,x,u,K,Z,V.loadPolicy,V.WX.get(),V.I_.get()),k instanceof h?Gd(k):R.push.apply(R,g.v(k))): k&&(!k.adLayoutMetadata&&bLh(k)||k.adLayoutMetadata&&EM8(k))&&(Gd("Found AdNotify with LinearAdSequenceRenderer"),D2(P,b,f.config.adPlacementConfig.kind),b=void 0,E=wl8((b=g.l(k.adStart,Aa))==null?void 0:b.layout.layoutId,V.S.get(),V.J.get(),f.config.adPlacementConfig,f.adSlotLoggingData,k.linearAds,Pd(k.adLayoutMetadata)?k.adLayoutMetadata:void 0,x,u,K,Z,V.loadPolicy,V.WX.get()),E instanceof h?Gd(E):R.push.apply(R,g.v(E)))}return R}; kcq=function(V,t,x,u,Z,P,K,R,f,b,E){function k(M){return A3(V.I_.get(),M)} var O=x.renderer,N=x.config.adPlacementConfig,p=N.kind,I=x.adSlotLoggingData,L=R.Pb&&p==="AD_PLACEMENT_KIND_START";L=P&&!L;if(O.adsEngagementPanelRenderer!=null)return d4(t,x.elementId,p,O.adsEngagementPanelRenderer.isContentVideoEngagementPanel,O.adsEngagementPanelRenderer.adVideoId,O.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,N,I,function(M,z,Y,r){var n=V.J.get(),U=M.slotId,d=O.adsEngagementPanelRenderer;M=A3(V.I_.get(),M);return G1(n,U,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new dd(d),z,Y,d.impressionPings,M,O.adsEngagementPanelRenderer.adLayoutLoggingData,r)}),[]; if(O.adsEngagementPanelLayoutViewModel)return d4(t,x.elementId,p,O.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,O.adsEngagementPanelLayoutViewModel.adVideoId,O.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,N,I,function(M,z,Y,r){var n=V.J.get(),U=M.slotId,d=O.adsEngagementPanelLayoutViewModel;M=A3(V.I_.get(),M);return I5(n,U,"LAYOUT_TYPE_PANEL",new CA(d),z,Y,M,O.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,r)}),[]; if(O.actionCompanionAdRenderer!=null){if(O.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return B_9(V.S.get(),V.N,V.J.get(),O.actionCompanionAdRenderer,N,I,u,k);d4(t,x.elementId,p,O.actionCompanionAdRenderer.isContentVideoCompanion,O.actionCompanionAdRenderer.adVideoId,O.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,N,I,function(M,z,Y,r){var n=V.J.get(),U=M.slotId,d=O.actionCompanionAdRenderer;M=A3(V.I_.get(),M);return G1(n,U,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new Ds(d),z,Y,d.impressionPings,M,O.actionCompanionAdRenderer.adLayoutLoggingData,r)})}else if(O.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(O.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return mjl(V.S.get(),V.N,V.J.get(),O.topBannerImageTextIconButtonedLayoutViewModel,N,I,u,k); d4(t,x.elementId,p,O.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,O.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,O.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,N,I,function(M,z,Y,r){var n=V.J.get(),U=M.slotId,d=O.topBannerImageTextIconButtonedLayoutViewModel;M=A3(V.I_.get(),M);return I5(n,U,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new e8(d),z,Y,M,O.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,r)})}else if(O.imageCompanionAdRenderer)d4(t, x.elementId,p,O.imageCompanionAdRenderer.isContentVideoCompanion,O.imageCompanionAdRenderer.adVideoId,O.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,N,I,function(M,z,Y,r){var n=V.J.get(),U=M.slotId,d=O.imageCompanionAdRenderer; M=A3(V.I_.get(),M);return G1(n,U,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Vc(d),z,Y,d.impressionPings,M,O.imageCompanionAdRenderer.adLayoutLoggingData,r)}); else if(O.bannerImageLayoutViewModel)d4(t,x.elementId,p,O.bannerImageLayoutViewModel.isContentVideoCompanion,O.bannerImageLayoutViewModel.adVideoId,O.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,N,I,function(M,z,Y,r){var n=V.J.get(),U=M.slotId,d=O.bannerImageLayoutViewModel;M=A3(V.I_.get(),M);return I5(n,U,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new tU(d),z,Y,M,O.bannerImageLayoutViewModel.adLayoutLoggingData,r)}); else if(O.shoppingCompanionCarouselRenderer)d4(t,x.elementId,p,O.shoppingCompanionCarouselRenderer.isContentVideoCompanion,O.shoppingCompanionCarouselRenderer.adVideoId,O.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,N,I,function(M,z,Y,r){var n=V.J.get(),U=M.slotId,d=O.shoppingCompanionCarouselRenderer;M=A3(V.I_.get(),M);return G1(n,U,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new xM(d),z,Y,d.impressionPings,M,O.shoppingCompanionCarouselRenderer.adLayoutLoggingData,r)}); else if(O.adBreakServiceRenderer){if(!XEK(x))return[];if(p==="AD_PLACEMENT_KIND_PAUSE")return gu9(V.S.get(),N,I,x.renderer.adBreakServiceRenderer,u);if(p!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&p!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return MY8(V.S.get(),N,I,x.renderer.adBreakServiceRenderer,u,Z,P);R.uq||Gd("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:p,adPlacementConfig:N,daiEnabledForContentVideo:String(P),isServedFromLiveInfra:String(R.uq),clientPlaybackNonce:R.clientPlaybackNonce}); if(p==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!V.h6)return new h("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!V.xD)return new h("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");V.xD.zp({adPlacementRenderer:x,contentCpn:u,f6:Z});Z=V.h6.get().getCurrentTimeSec(1,!1);return sI8(V.S.get(),x.renderer.adBreakServiceRenderer,N,Z,u,I,P)}if(!V.UE)return new h("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); V.UE.zp({adPlacementRenderer:x,contentCpn:u,f6:Z})}else{if(O.clientForecastingAdRenderer)return cEs(V.S.get(),V.J.get(),N,I,O.clientForecastingAdRenderer,u,Z,k);if(O.invideoOverlayAdRenderer)return HAl(V.S.get(),V.J.get(),N,I,O.invideoOverlayAdRenderer,u,Z,k);if(O.instreamAdPlayerOverlayRenderer)return jRw(V.S.get(),V.J.get(),N,I,O.instreamAdPlayerOverlayRenderer,u,k);if((O.linearAdSequenceRenderer||O.instreamVideoAdRenderer)&&L)return hjl(V.S.get(),V.J.get(),x,u,k,b,!V.WX.get().U.K().T("html5_override_ad_video_length_killswitch")); if(O.linearAdSequenceRenderer&&!L){if(K)return[];D2(t,O,p);if(O.linearAdSequenceRenderer.adLayoutMetadata){if(!N_q(O.linearAdSequenceRenderer))return new h("Received invalid LinearAdSequenceRenderer.")}else if(O.linearAdSequenceRenderer.linearAds==null)return new h("Received invalid LinearAdSequenceRenderer.");if(g.l(O.linearAdSequenceRenderer.adStart,Aa)){Gd("Found AdNotify in LinearAdSequenceRenderer");x=g.l(O.linearAdSequenceRenderer.adStart,Aa);if(!VYL(x))return new h("Invalid AdMessageRenderer."); P=O.linearAdSequenceRenderer.linearAds;return Vn1(V.W.get(),V.S.get(),V.J.get(),V.I_.get(),N,I,x,Pd(O.linearAdSequenceRenderer.adLayoutMetadata)?O.linearAdSequenceRenderer.adLayoutMetadata:void 0,P,u,Z,R,k,f,V.loadPolicy,V.WX.get())}return P2l(V.S.get(),V.J.get(),N,I,O.linearAdSequenceRenderer.linearAds,Pd(O.linearAdSequenceRenderer.adLayoutMetadata)?O.linearAdSequenceRenderer.adLayoutMetadata:void 0,u,Z,R,k,f,V.loadPolicy,V.WX.get(),E)}if(!O.remoteSlotsRenderer||P){if(O.instreamVideoAdRenderer&& !L){if(K)return[];D2(t,O,p);return fs4(V.S.get(),V.J.get(),N,I,O.instreamVideoAdRenderer,u,Z,R,k,f,V.loadPolicy,V.WX.get(),V.I_.get(),E)}if(O.instreamSurveyAdRenderer)return fW8(V.S.get(),V.J.get(),O.instreamSurveyAdRenderer,N,I,u,k,xm(V.WX.get(),"supports_multi_step_on_desktop"));if(O.sandwichedLinearAdRenderer!=null)return pE9(O.sandwichedLinearAdRenderer)?g.l(O.sandwichedLinearAdRenderer.adVideoStart,Aa)?(Gd("Found AdNotify in SandwichedLinearAdRenderer"),x=g.l(O.sandwichedLinearAdRenderer.adVideoStart, Aa),VYL(x)?(P=g.l(O.sandwichedLinearAdRenderer.linearAd,Ld))?PrT(x,P,N,V.W.get(),V.S.get(),V.J.get(),V.I_.get(),I,u,Z,R,k,f,V.loadPolicy,V.WX.get()):new h("Missing IVAR from Sandwich"):new h("Invalid AdMessageRenderer.")):P2l(V.S.get(),V.J.get(),N,I,[O.sandwichedLinearAdRenderer.adVideoStart,O.sandwichedLinearAdRenderer.linearAd],void 0,u,Z,R,k,f,V.loadPolicy,V.WX.get()):new h("Received invalid SandwichedLinearAdRenderer.");if(O.videoAdTrackingRenderer!=null)return R=xm(V.WX.get(),"enable_h5_shorts_ad_terminal_events")&& R.Lc,oBs(V.S.get(),V.J.get(),O.videoAdTrackingRenderer,N,I,u,Z,R,k)}}return[]}; vT=function(V,t,x,u,Z,P,K,R){g.c.call(this);var f=this;this.S=V;this.N=t;this.pR=u;this.h6=Z;this.WX=P;this.TU=K;this.zd=R;this.J=null;x.get().addListener(this);this.addOnDisposeCallback(function(){x.uD()||x.get().removeListener(f)}); u.get().addListener(this);this.addOnDisposeCallback(function(){u.uD()||u.get().removeListener(f)})}; p68=function(V,t,x){var u=V.h6.get().getCurrentTimeSec(1,!1);V.WX.get().U.K().d6()&&qC(V.TU.get(),"sdai","onopp.1;evt."+x.event+";start."+x.startSecs.toFixed(3)+";d."+x.To.toFixed(3));Ib(V.S.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var Z=V.N.get(),P=t.adPlacementRenderer.renderer.adBreakServiceRenderer,K=t.contentCpn,R=t.adPlacementRenderer.adSlotLoggingData,f=Ln(V.WX.get()),b=V.TU;if(Z.WX.get().U.K().experiments.MP("enable_smearing_expansion_dai")){var E=g.S7(Z.WX.get().U.K().experiments, "max_prefetch_window_sec_for_livestream_optimization");var k=g.S7(Z.WX.get().U.K().experiments,"min_prefetch_offset_sec_for_livestream_optimization");f={oz:NCl(x),Vw:!1,cueProcessedMs:u*1E3};var O=x.startSecs+x.To;if(u===0)f.OM=new Yy(0,O*1E3);else{k=x.startSecs-k;var N=k-u;f.OM=N<=0?new Yy(k*1E3,O*1E3):new Yy(Math.floor(u+Math.random()*Math.min(N,E))*1E3,O*1E3)}E=f}else E={oz:NCl(x),Vw:!1},O=x.startSecs+x.To,x.startSecs<=u?f=new Yy((x.startSecs-4)*1E3,O*1E3):(k=Math.max(0,x.startSecs-u-10),f=new Yy(Math.floor(u+ Math.random()*(f?u===0?0:Math.min(k,5):k))*1E3,O*1E3)),E.OM=f;Z=ln(Z,P,K,E,R,[new m2(x)]);b.get().U.XZ(E.OM.start/1E3-u,x.startSecs-u);return[Z]})}; Fx=function(V){var t,x=(t=kH(V.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:t.current;if(!x)return null;t=kH(V.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var u=V.layoutId,Z=kH(V.clientMetadata,"metadata_type_content_cpn"),P=kH(V.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),K=kH(V.clientMetadata,"metadata_type_player_overlay_layout_renderer"),R=kH(V.clientMetadata,"metadata_type_player_underlay_renderer"),f=kH(V.clientMetadata, "metadata_type_ad_placement_config"),b=kH(V.clientMetadata,"metadata_type_video_length_seconds");var E=Rp(V.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?kH(V.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Rp(V.clientMetadata,"metadata_type_layout_enter_ms")&&Rp(V.clientMetadata,"metadata_type_layout_exit_ms")?(kH(V.clientMetadata,"metadata_type_layout_exit_ms")-kH(V.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Rl:u,contentCpn:Z,mY:x,xZ:t,instreamAdPlayerOverlayRenderer:P, playerOverlayLayoutRenderer:K,instreamAdPlayerUnderlayRenderer:R,adPlacementConfig:f,videoLengthSeconds:b,Xo:E,inPlayerLayoutId:kH(V.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:kH(V.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Sx1=function(V,t){return AUC(V,t)}; Gc9=function(V,t){t=AUC(V,t);if(!t)return null;var x;t.Xo=(x=kH(V.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:x.adBreakRemainingLengthSeconds;return t}; AUC=function(V,t){var x,u=(x=kH(V.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:x.current;if(!u)return null;x=czL(V,t);return{RL:nWC(V,t),adPlacementConfig:kH(V.clientMetadata,"metadata_type_ad_placement_config"),St:x,contentCpn:kH(V.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:kH(V.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:kH(V.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:kH(V.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Xo:void 0,mY:u,Rl:V.layoutId,videoLengthSeconds:kH(V.clientMetadata,"metadata_type_video_length_seconds")}}; Mb=function(V,t,x,u,Z,P,K,R,f){g.c.call(this);this.W=V;this.B=t;this.G=x;this.N=u;this.J=Z;this.S=P;this.I_=K;this.WX=R;this.PX=f;this.qv=!0}; IWz=function(V,t,x){return EB9(V.J.get(),t.contentCpn,t.Rl,function(u){return kk4(V.S.get(),u.slotId,x,t.adPlacementConfig,t.Rl,A3(V.I_.get(),u))})}; gb=function(V,t,x,u,Z,P,K,R){g.c.call(this);this.S=V;this.J=t;this.N=x;this.WX=u;this.W=Z;this.PX=P;this.h6=K;this.hJ=R}; Xx=function(V){g.c.call(this);this.J=V}; Ib=function(V,t,x,u){V.J().PG(t,u);x=x();V=V.J();V.Al.Jm("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",t,u,x);t=g.G(x);for(x=t.next();!x.done;x=t.next())a:{u=V;x=x.value;u.Al.S0("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",x);u.Al.S0("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",x);try{var Z=u.J;if(g.vU(x.slotId))throw new h("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Xp(Z,x))throw new h("Duplicate registration for slot.",{slotId:x.slotId,slotEntryTriggerType:x.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!Z.LJ.x9.has(x.slotType))throw new h("No fulfillment adapter factory registered for slot of type: "+x.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!Z.LJ.OR.has(x.slotType))throw new h("No SlotAdapterFactory registered for slot of type: "+x.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");Uz(Z,"TRIGGER_CATEGORY_SLOT_ENTRY",x.slotEntryTrigger?[x.slotEntryTrigger]:[]);Uz(Z,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", x.slotFulfillmentTriggers);Uz(Z,"TRIGGER_CATEGORY_SLOT_EXPIRATION",x.slotExpirationTriggers);var P=u.J,K=x.slotType+"_"+x.slotPhysicalPosition,R=cn(P,K);if(Xp(P,x))throw new h("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");R.set(x.slotId,new aOz(x));P.J.set(K,R)}catch(uL){uL instanceof h&&uL.fk?(u.Al.Rz("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",uL.fk,x),Gd(uL,x,void 0,void 0,uL.QA)):(u.Al.Rz("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", x),Gd(uL,x));break a}Xp(u.J,x).B=!0;try{var f=u.J,b=Xp(f,x),E=x.slotEntryTrigger,k=f.LJ.QW.get(E.triggerType);k&&(k.oO("TRIGGER_CATEGORY_SLOT_ENTRY",E,x,null),b.zU.set(E.triggerId,k));for(var O=g.G(x.slotFulfillmentTriggers),N=O.next();!N.done;N=O.next()){var p=N.value,I=f.LJ.QW.get(p.triggerType);I&&(I.oO("TRIGGER_CATEGORY_SLOT_FULFILLMENT",p,x,null),b.Ij.set(p.triggerId,I))}for(var L=g.G(x.slotExpirationTriggers),M=L.next();!M.done;M=L.next()){var z=M.value,Y=f.LJ.QW.get(z.triggerType);Y&&(Y.oO("TRIGGER_CATEGORY_SLOT_EXPIRATION", z,x,null),b.X.set(z.triggerId,Y))}var r=f.LJ.x9.get(x.slotType).get().build(f.N,x);b.L=r;var n=f.LJ.OR.get(x.slotType).get().build(f.G,x);n.init();b.S=n}catch(uL){uL instanceof h&&uL.fk?(u.Al.Rz("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",uL.fk,x),Gd(uL,x,void 0,void 0,uL.QA)):(u.Al.Rz("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",x),Gd(uL,x));Fp(u,x,!0);break a}u.Al.S0("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",x);u.J.xQ(x);for(var U=g.G(u.S),d=U.next();!d.done;d= U.next())d.value.xQ(x);mY(u,x)}}; z1=function(V,t,x,u,Z){g.c.call(this);var P=this;this.S=V;this.N=t;this.ZT=x;this.context=Z;this.J=new Map;u.get().addListener(this);this.addOnDisposeCallback(function(){u.uD()||u.get().removeListener(P)})}; GEC=function(V,t){var x=0x8000000000000;var u=0;for(var Z=g.G(t.slotFulfillmentTriggers),P=Z.next();!P.done;P=Z.next())P=P.value,P instanceof yT?(x=Math.min(x,P.J.start),u=Math.max(u,P.J.end)):Gd("Found unexpected fulfillment trigger for throttled slot.",t,null,{fulfillmentTrigger:P});u=new Yy(x,u);x="throttledadcuerange:"+t.slotId;V.J.set(x,t);V.ZT.get().addCueRange(x,u.start,u.end,!1,V);Bb(V.context.WX.get())&&(t=u.start,u=u.end,Z={},V.context.Mf.bb("tcrr",(Z.cid=x,Z.sm=t,Z.em=u,Z)))}; BT=function(){g.c.apply(this,arguments);this.qv=!0;this.ib=new Map;this.J=new Map}; mO=function(V,t){V=g.G(V.ib.values());for(var x=V.next();!x.done;x=V.next())if(x.value.layoutId===t)return!0;return!1}; Y5=function(V,t){V=g.G(V.J.values());for(var x=V.next();!x.done;x=V.next()){x=g.G(x.value);for(var u=x.next();!u.done;u=x.next())if(u=u.value,u.layoutId===t)return u}Gd("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.vU(t)),layoutId:t})}; vMh=function(){this.J=new Map}; L28=function(V,t){this.callback=V;this.slot=t}; QI=function(){}; F2w=function(V,t,x){this.callback=V;this.slot=t;this.h6=x}; Mnq=function(V,t,x){this.callback=V;this.slot=t;this.h6=x;this.S=!1;this.J=0}; gML=function(V,t,x){this.callback=V;this.slot=t;this.h6=x}; a5=function(V){this.h6=V}; rb=function(V){g.c.call(this);this.Id=V;this.B$=new Map}; T1=function(V,t){for(var x=[],u=g.G(V.B$.values()),Z=u.next();!Z.done;Z=u.next()){Z=Z.value;var P=Z.trigger;P instanceof xG&&P.triggeringLayoutId===t&&x.push(Z)}x.length?Wn(V.Id(),x):Gd("Survey is submitted but no registered triggers can be activated.")}; WT=function(V,t,x){rb.call(this,V);var u=this;this.WX=x;t.get().addListener(this);this.addOnDisposeCallback(function(){t.uD()||t.get().removeListener(u)})}; o5=function(V){g.c.call(this);this.J=V;this.qv=!0;this.B$=new Map;this.G=new Set;this.N=new Set;this.W=new Set;this.B=new Set;this.S=new Set}; nn=function(V){g.c.call(this);this.J=V;this.B$=new Map}; cT=function(V,t){for(var x=[],u=g.G(V.B$.values()),Z=u.next();!Z.done;Z=u.next())Z=Z.value,Z.trigger.J===t.layoutId&&x.push(Z);x.length&&Wn(V.J(),x)}; yI=function(V,t,x){g.c.call(this);var u=this;this.J=V;this.context=x;this.B$=new Map;t.get().addListener(this);this.addOnDisposeCallback(function(){t.uD()||t.get().removeListener(u)})}; jr=function(V,t,x,u,Z){g.c.call(this);var P=this;this.S=V;this.ZT=t;this.h6=x;this.PX=u;this.context=Z;this.qv=!0;this.B$=new Map;this.J=new Set;x.get().addListener(this);this.addOnDisposeCallback(function(){x.uD()||x.get().removeListener(P)})}; X68=function(V,t,x,u,Z,P,K,R,f,b){if(IM(V.PX.get(),1).clientPlaybackNonce!==f)throw new h("Cannot register CueRange-based trigger for different content CPN",{trigger:x});V.B$.set(x.triggerId,{wA:new Z2(t,x,u,Z),cueRangeId:P});V.ZT.get().addCueRange(P,K,R,b,V);Bb(V.context.WX.get())&&(f={},V.context.Mf.bb("crr",(f.ca=t,f.tt=x.triggerType,f.st=u.slotType,f.lt=Z==null?void 0:Z.layoutType,f.cid=P,f.sm=K,f.em=R,f)))}; zMC=function(V,t){V=g.G(V.B$.entries());for(var x=V.next();!x.done;x=V.next()){var u=g.G(x.value);x=u.next().value;u=u.next().value;if(t===u.cueRangeId)return x}return""}; lJ=function(V,t){g.c.call(this);var x=this;this.W=V;this.S=new Map;this.N=new Map;this.J=null;t.get().addListener(this);this.addOnDisposeCallback(function(){t.uD()||t.get().removeListener(x)}); var u;this.J=((u=t.get().fH)==null?void 0:u.slotId)||null}; BCz=function(V,t){var x=[];V=g.G(V.values());for(var u=V.next();!u.done;u=V.next())u=u.value,u.slot.slotId===t&&x.push(u);return x}; HT=function(V){g.c.call(this);this.J=V;this.qv=!0;this.B$=new Map}; Js=function(V,t,x){t=t.layoutId;for(var u=[],Z=g.G(V.B$.values()),P=Z.next();!P.done;P=Z.next())if(P=P.value,P.trigger instanceof UP){var K;if(K=P.trigger.layoutId===t){K=x;var R=g$h.get(P.category);K=R?R===K:!1}K&&u.push(P)}u.length&&Wn(V.J(),u)}; UZ=function(V){g.c.call(this);this.J=V;this.qv=!0;this.B$=new Map}; Db=function(V,t,x,u,Z){g.c.call(this);var P=this;this.G=V;this.pR=t;this.h6=x;this.TU=u;this.J=null;this.qv=!0;this.B$=new Map;this.N=new Map;t.get().addListener(this);this.addOnDisposeCallback(function(){t.uD()||t.get().removeListener(P)}); Z.get().addListener(this);this.addOnDisposeCallback(function(){Z.uD()||Z.get().removeListener(P)})}; Yxs=function(V){V.J&&(V.S&&(V.S.stop(),V.S.start()),m$h(V,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; m$h=function(V,t){for(var x=[],u=g.G(V.B$.values()),Z=u.next();!Z.done;Z=u.next())Z=Z.value,Z.trigger.triggerType===t&&x.push(Z);x.length>0&&Wn(V.G(),x)}; er=function(V,t,x,u,Z){Z=Z===void 0?!0:Z;for(var P=[],K=g.G(V.B$.values()),R=K.next();!R.done;R=K.next()){R=R.value;var f=R.trigger;if(f.triggerType===t){if(f instanceof ok||f instanceof nZ||f instanceof j1){if(Z&&f.breakDurationMs!==x)continue;if(!Z&&f.breakDurationMs===x)continue;if(u.has(f.triggerId))continue}P.push(R)}}P.length>0&&Wn(V.G(),P)}; QIh=function(V){V=V.adPlacementRenderer.config.adPlacementConfig;if(!V.prefetchModeConfig||!V.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;V=Number(V.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(V)||V<=0?0:Math.floor(Math.random()*V)}; aWs=function(V){V=V.adPlacementRenderer.config.adPlacementConfig;if(V.prefetchModeConfig&&V.prefetchModeConfig.cacheFetchRefreshDurationMs&&(V=Number(V.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(V)||V<=0)))return V}; db=function(V){V.J=null;V.B$.clear();V.N.clear();V.S&&V.S.stop();V.W&&V.W.stop()}; Cn=function(V){g.c.call(this);this.N=V;this.qv=!0;this.B$=new Map;this.J=new Map;this.S=new Map}; rUL=function(V,t){var x=[];if(t=V.J.get(t.layoutId)){t=g.G(t);for(var u=t.next();!u.done;u=t.next())(u=V.S.get(u.value.triggerId))&&x.push(u)}return x}; Ja=function(V){g.c.call(this);this.J=V;this.B$=new Map}; TCs=function(V,t){for(var x=[],u=g.G(V.B$.values()),Z=u.next();!Z.done;Z=u.next())Z=Z.value,Z.trigger instanceof XW&&Z.trigger.slotId===t&&x.push(Z);x.length>=1&&Wn(V.J(),x)}; W24=function(V,t){var x={slotId:vu(t,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],C1:"surface",clientMetadata:new Ez([])},u=Object,Z=u.assign;t=u4(t,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",x.slotId);t={layoutId:t,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Rt:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:"surface", clientMetadata:new Ez([]),Vt:Gyl(!1,x.slotId,x.slotType,x.slotPhysicalPosition,x.C1,x.slotEntryTrigger,x.slotFulfillmentTriggers,x.slotExpirationTriggers,t,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return Z.call(u,{},V,{LwX:!0,slot:x,layout:t})}; FvL=function(V,t,x,u){var Z=V.kind;u=u?!1:!V.hideCueRangeMarker;switch(Z){case "AD_PLACEMENT_KIND_START":return u={oz:new Yy(-0x8000000000000,-0x8000000000000),Vw:u},x!=null&&(u.OM=new Yy(-0x8000000000000,-0x8000000000000)),u;case "AD_PLACEMENT_KIND_END":return u={oz:new Yy(0x7ffffffffffff,0x8000000000000),Vw:u},x!=null&&(u.OM=new Yy(Math.max(0,t-x),0x8000000000000)),u;case "AD_PLACEMENT_KIND_MILLISECONDS":Z=V.adTimeOffset;Z.offsetStartMilliseconds||Gd("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); Z.offsetEndMilliseconds||Gd("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");V=Number(Z.offsetStartMilliseconds);Z=Number(Z.offsetEndMilliseconds);Z===-1&&(Z=t);if(Number.isNaN(V)||Number.isNaN(Z)||V>Z)return new h("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:V,offsetEndMs:Z},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",Z===t&&V-500<=Z);u={oz:new Yy(V,Z),Vw:u};if(x!=null){V=Math.max(0,V-x);if(V===Z)return u;u.OM=new Yy(V,Z)}return u; default:return new h("AdPlacementKind not supported in convertToRange.",{kind:Z,adPlacementConfig:V})}}; NCl=function(V){var t=V.startSecs*1E3;return new Yy(t,t+V.To*1E3)}; oMq=function(V){if(!V||!V.adPlacements&&!V.adSlots)return!1;for(var t=g.G(V.adPlacements||[]),x=t.next();!x.done;x=t.next())if(x=x.value)if(x=x.adPlacementRenderer,x!=null&&(x.config&&x.config.adPlacementConfig&&x.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;V=g.G(V.adSlots||[]);for(t=V.next();!t.done;t=V.next()){var u=x=void 0;if(((x=g.l(t.value,jl))==null?void 0:(u=x.adSlotMetadata)==null?void 0:u.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; ha=function(V){this.WX=V;this.S=new Map;this.J=new Map;this.N=new Map}; vu=function(V,t){if(wb(V.WX.get())){var x=V.S.get(t)||0;x++;V.S.set(t,x);return t+"_"+x}return g.m3(16)}; u4=function(V,t,x){if(wb(V.WX.get())){var u=V.J.get(t)||0;u++;V.J.set(t,u);return x+"_"+t+"_"+u}return g.m3(16)}; $5=function(V,t){if(wb(V.WX.get())){var x=V.N.get(t)||0;x++;V.N.set(t,x);return t+"_"+x}return g.m3(16)}; nM4=function(V){var t=[new v6(V.Rl),new gC(V.mY),new P6(V.adPlacementConfig),new YM(V.videoLengthSeconds),new en(V.Xo)];V.instreamAdPlayerOverlayRenderer&&t.push(new Ex(V.instreamAdPlayerOverlayRenderer));V.playerOverlayLayoutRenderer&&t.push(new kM(V.playerOverlayLayoutRenderer));V.xZ&&t.push(new fL(V.xZ));return t}; cUK=function(V,t,x,u,Z,P){V=x.inPlayerLayoutId?x.inPlayerLayoutId:u4(P,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",V);var K,R,f=x.instreamAdPlayerOverlayRenderer?(K=x.instreamAdPlayerOverlayRenderer)==null?void 0:K.adLayoutLoggingData:(R=x.playerOverlayLayoutRenderer)==null?void 0:R.adLayoutLoggingData;K={layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",C1:t};return{layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Rt:new Map,layoutExitNormalTriggers:[new T$(function(b){return $5(P, b)},x.Rl)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:t,clientMetadata:u,Vt:Z(K),adLayoutLoggingData:f}}; VJ=function(V,t){var x=this;this.S=V;this.WX=t;this.J=function(u){return $5(x.S.get(),u)}}; kk4=function(V,t,x,u,Z,P){x=new Ez([new i2(x),new P6(u)]);t=u4(V.S.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",t);u={layoutId:t,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",C1:"core"};return{layoutId:t,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Rt:new Map,layoutExitNormalTriggers:[new T$(function(K){return $5(V.S.get(),K)},Z)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:"core",clientMetadata:x,Vt:P(u),adLayoutLoggingData:void 0}}; x5=function(V,t,x,u,Z){var P=nM4(u);return cUK(t,x,u,new Ez(P),Z,V.S.get())}; yUK=function(V,t,x,u,Z){var P=nM4(u);P.push(new u2(u.RL));P.push(new ZW(u.St));return cUK(t,x,u,new Ez(P),Z,V.S.get())}; G1=function(V,t,x,u,Z,P,K,R,f,b){t=u4(V.S.get(),x,t);var E={layoutId:t,layoutType:x,C1:"core"},k=new Map;K&&k.set("impression",K);K=[new l_(V.J,Z,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];b&&K.push(new rt(V.J,b,["normal"]));return{layoutId:t,layoutType:x,Rt:k,layoutExitNormalTriggers:K,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:"core",clientMetadata:new Ez([u,new P6(P),new v6(Z)]),Vt:R(E),adLayoutLoggingData:f}}; I5=function(V,t,x,u,Z,P,K,R,f){t=u4(V.S.get(),x,t);var b={layoutId:t,layoutType:x,C1:"core"},E=[new l_(V.J,Z,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];f&&E.push(new rt(V.J,f,["normal"]));return{layoutId:t,layoutType:x,Rt:new Map,layoutExitNormalTriggers:E,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:"core",clientMetadata:new Ez([u,new P6(P),new v6(Z)]),Vt:K(b),adLayoutLoggingData:R}}; EZ=function(V,t,x){var u=[];u.push(new HV(V.J,x));t&&u.push(t);return u}; bJ=function(V,t,x,u,Z,P,K){var R={layoutId:t,layoutType:x,C1:"core"};return{layoutId:t,layoutType:x,Rt:new Map,layoutExitNormalTriggers:K,layoutExitSkipTriggers:[new mJ(V.J,t)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:"core",clientMetadata:new Ez([new wd(u),new P6(Z)]),Vt:P(R),adLayoutLoggingData:u.adLayoutLoggingData}}; hZ=function(V,t,x,u,Z,P,K,R){var f={layoutId:t,layoutType:P,C1:"core"};return{layoutId:t,layoutType:P,Rt:new Map,layoutExitNormalTriggers:[new T$(V.J,x)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:"core",clientMetadata:new Ez([new P6(u)].concat(g.v(K))),Vt:Z(f),adLayoutLoggingData:R}}; iJ=function(V,t,x,u){if(V.WX.get().hZ(t.kind==="AD_PLACEMENT_KIND_START"))if(x===void 0)Gd("Expected SSAP layout ID in renderer",void 0,void 0,{caller:u});else return x}; UBK=function(V,t,x,u,Z,P,K,R,f,b,E,k,O){V=k5(V,t,x,Z,P,K,R,f,k,iJ(V,x,u.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),O);t=V.t0;x=new LL(V.HK);u=V.layoutExitSkipTriggers;b>0&&(t.push(x),t.push(new RI(b)),u=[]);t.push(new q$(E));return{uI:{layoutId:V.layoutId,layoutType:V.layoutType,Rt:V.Rt,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:V.C1,clientMetadata:new Ez(t),Vt:V.Vt,adLayoutLoggingData:V.adLayoutLoggingData}, zi:u,Ye:V.layoutExitMuteTriggers,uw:V.layoutExitUserInputSubmittedTriggers,EK:V.d9,a5:V.a5}}; CrK=function(V,t,x,u,Z,P,K,R,f,b){t=k5(V,t,x,u,P,new Map,K,function(E){return R(E,f)},void 0,iJ(V,x,Z.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); V=new xG(V.J,t.HK);x=new LL(t.HK);b=new q$(b);return{uI:{layoutId:t.layoutId,layoutType:t.layoutType,Rt:t.Rt,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:t.C1,clientMetadata:new Ez([].concat(g.v(t.t0),[x,b])),Vt:t.Vt,adLayoutLoggingData:t.adLayoutLoggingData},zi:t.layoutExitSkipTriggers,Ye:t.layoutExitMuteTriggers,uw:[].concat(g.v(t.layoutExitUserInputSubmittedTriggers),[V]),EK:t.d9,a5:t.a5}}; k5=function(V,t,x,u,Z,P,K,R,f,b,E){t=b!=null?b:u4(V.S.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);b={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",C1:"adapter"};R=R(t);var k=kH(R.clientMetadata,"metadata_type_fulfilled_layout");k||Gd("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var O=k?k.layoutId:"";x=[new P6(x),new dC(u),new hU(Z)];k&&x.push(new Fl(k.layoutType));E&&x.push(new oI(E));return{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", Rt:P,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new dt(V.J,O)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:"adapter",t0:x,Vt:K(b),adLayoutLoggingData:f,a5:R,HK:O}}; $BT=function(V,t,x,u,Z,P,K,R,f,b,E){V=jI0(V,t,"core",x,u,Z,P,K,R,f,b,void 0,E);return{layoutId:V.layoutId,layoutType:V.layoutType,Rt:V.Rt,layoutExitNormalTriggers:V.layoutExitNormalTriggers,layoutExitSkipTriggers:V.layoutExitSkipTriggers,layoutExitMuteTriggers:V.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:V.layoutExitUserInputSubmittedTriggers,d9:V.d9,C1:V.C1,clientMetadata:new Ez(V.Y7),Vt:V.Vt,adLayoutLoggingData:V.adLayoutLoggingData}}; qxq=function(V,t,x,u,Z,P,K,R,f,b,E,k,O){t=jI0(V,t,"adapter",x,u,Z,P,K,R,f,E,k,O);u=t.layoutExitSkipTriggers;Z=t.Y7;x.adPodSkipTarget&&x.adPodSkipTarget>0&&(Z.push(b),Z.push(new RI(x.adPodSkipTarget)),u=[]);Z.push(new q$(R.adPodIndex));x.isCritical&&(u=[new rt(V.J,t.layoutId,["error"])].concat(g.v(u)));return{uI:{layoutId:t.layoutId,layoutType:t.layoutType,Rt:t.Rt,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:t.C1,clientMetadata:new Ez(Z), Vt:t.Vt,adLayoutLoggingData:t.adLayoutLoggingData},zi:u,Ye:t.layoutExitMuteTriggers,uw:t.layoutExitUserInputSubmittedTriggers,EK:t.d9}}; jI0=function(V,t,x,u,Z,P,K,R,f,b,E,k,O){var N={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA",C1:x};Z=[new P6(Z),new KL(f),new $M(u.externalVideoId),new b2(R),new hU({impressionCommands:u.impressionCommands,abandonCommands:u.onAbandonCommands,completeCommands:u.completeCommands,progressCommands:u.adVideoProgressCommands}),new Qc(P),new Xl({current:null}),new YM(K)];(P=u.playerOverlay.instreamAdPlayerOverlayRenderer)&&Z.push(new Ex(P));(K=u.playerOverlay.playerOverlayLayoutRenderer)&&Z.push(new kM(K)); k&&Z.push(new aI(k));(k=u.playerUnderlay)&&Z.push(new i2(k));R=vu(V.S.get(),"SLOT_TYPE_IN_PLAYER");k=(k=P?P.elementId:K==null?void 0:K.layoutId)?k:u4(V.S.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",R);Z.push(new LL(k));Z.push(new M$(R));Z.push(new oI(f.adPodIndex));u.adNextParams&&Z.push(new JE(u.adNextParams));u.shrunkenPlayerBytesConfig&&Z.push(new N$(u.shrunkenPlayerBytesConfig));u.clickthroughEndpoint&&Z.push(new hE(u.clickthroughEndpoint));u.legacyInfoCardVastExtension&&Z.push(new CL(u.legacyInfoCardVastExtension)); u.sodarExtensionData&&Z.push(new rC(u.sodarExtensionData));E&&Z.push(new DW(E));Z.push(new t3(Qq(u.pings)));f=ab(u.pings);if(O){a:{O=g.G(O);for(E=O.next();!E.done;E=O.next())if(E=E.value,E.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(P=g.l(E.fulfillmentContent.fulfilledLayout,Qj))&&(P=g.l(P.renderingContent,Bd))&&P.associatedPlayerBytesLayoutId===t){O=E;break a}O=void 0}O&&Z.push(new Ox(O))}return{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA",Rt:f,layoutExitNormalTriggers:[new UP(V.J,t)],layoutExitSkipTriggers:u.skipOffsetMilliseconds? [new dt(V.J,k)]:[],layoutExitMuteTriggers:[new dt(V.J,k)],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:x,Y7:Z,Vt:b(N),adLayoutLoggingData:u.adLayoutLoggingData}}; V8h=function(V,t,x,u,Z,P,K,R,f){u.every(function(E){return fw(E,[],["LAYOUT_TYPE_MEDIA"])})||Gd("Unexpect subLayout type for DAI composite layout"); t=u4(V.S.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",t);var b={layoutId:t,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",C1:"core"};return{layoutId:t,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Rt:new Map,layoutExitNormalTriggers:[new WV(V.J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],d9:[],C1:"core",clientMetadata:new Ez([new Tc(x),new W6(R),new B6(u),new P6(Z),new jn(P),new nL({}),new uC(f)]),Vt:K(b)}}; djs=function(V){return V!=null}; t5=function(V,t,x){var u=this;this.S=V;this.N=t;this.WX=x;this.J=function(Z){return $5(u.S.get(),Z)}}; sI8=function(V,t,x,u,Z,P,K){if(!x.prefetchModeConfig)return new h("AdPlacementConfig for Live Prefetch is missing prefetch_config");x=x.prefetchModeConfig;u*=1E3;var R=[];if(!x.breakLengthMs)return new h("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var f=g.G(x.breakLengthMs),b=f.next();!b.done;b=f.next())if(b=b.value,Number(b)>0){var E=u+Number(x.startTimeOffsetMs),k=E+Number(x.cacheFetchSmearingDurationMs);b={oz:new Yy(k,k+Number(b)),Vw:!1,OM:new Yy(Math.floor(E+Math.random()* Number(x.cacheFetchSmearingDurationMs)),k),cueProcessedMs:u?u:E};E=[];E.push(new qH({}));k=[];k.push(new e1(V.J));k.push(new y4C(V.J));K&&E.push(new nL({}));R.push(ln(V,t,Z,b,P,E,k))}return R}; ln=function(V,t,x,u,Z,P,K){P=P===void 0?[]:P;K=K===void 0?[]:K;var R=vu(V.S.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),f=[];K=g.G(K);for(var b=K.next();!b.done;b=K.next())f.push(b.value);u.OM&&u.OM.start!==u.oz.start&&f.push(new yT(V.J,x,new Yy(u.OM.start,u.oz.start),!1));f.push(new yT(V.J,x,new Yy(u.oz.start,u.oz.end),u.Vw));u={getAdBreakUrl:t.getAdBreakUrl,Tf:u.oz.start,Gf:u.oz.end,cueProcessedMs:u.cueProcessedMs};t=new wt(V.J,R);P=[new H6(u)].concat(g.v(P));return{slotId:R,slotType:"SLOT_TYPE_AD_BREAK_REQUEST", slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:f,slotExpirationTriggers:[new D9(V.J,x),new Jr(V.J,R),new hr(V.J,R)],C1:"core",clientMetadata:new Ez(P),adSlotLoggingData:Z}}; HL4=function(V,t,x){var u=[];x=g.G(x);for(var Z=x.next();!Z.done;Z=x.next())u.push(lWl(V,t,Z.value));return u}; lWl=function(V,t,x){return x.triggeringSlotId!=null&&x.triggeringSlotId===V?x.clone(t):x}; Wvs=function(V,t,x,u,Z){return U$j(V,t,x,u,Z)}; DB1=function(V,t,x,u){var Z=vu(V.S.get(),"SLOT_TYPE_IN_PLAYER");return U$j(V,Z,t,x,u)}; U$j=function(V,t,x,u,Z){var P=new ak(V.J,x),K=[new CZ(V.J,t)];V=[new Jr(V.J,t),new D9(V.J,u)];return{slotId:t,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:P,slotFulfillmentTriggers:K,slotExpirationTriggers:V,C1:"core",clientMetadata:new Ez([new l2(Z({slotId:t,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,C1:"core",slotEntryTrigger:P,slotFulfillmentTriggers:K,slotExpirationTriggers:V},x))]),adSlotLoggingData:void 0}}; RMK=function(V,t,x,u,Z,P){var K=vu(V.S.get(),"SLOT_TYPE_PLAYER_BYTES"),R=vu(V.S.get(),"SLOT_TYPE_IN_PLAYER"),f=u4(V.S.get(),"LAYOUT_TYPE_SURVEY",R);u=x0(V,t,x,u);var b=[new CZ(V.J,K)];x=[new Jr(V.J,K),new D9(V.J,x),new mJ(V.J,f)];if(u instanceof h)return u;R=P({slotId:K,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,C1:"core",slotEntryTrigger:u,slotFulfillmentTriggers:b,slotExpirationTriggers:x},{slotId:R,layoutId:f});P=R.mj1;R=R.uXU;return[{slotId:K,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:sZ(V,t,K,u),slotFulfillmentTriggers:Nb(V,t,K,b),slotExpirationTriggers:x,C1:"core",clientMetadata:new Ez([new l2(P),new ZC(pn(t)),new Kw({Sm:V.Sm(t)})]),adSlotLoggingData:Z},R]}; pn=function(V){return V.kind==="AD_PLACEMENT_KIND_START"}; bA9=function(V,t,x,u,Z){Z=Z?Z:vu(V.S.get(),"SLOT_TYPE_IN_PLAYER");x=new ak(V.J,x);var P=[new CZ(V.J,Z)];V=[new D9(V.J,t),new Jr(V.J,Z)];return{slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:P,slotExpirationTriggers:V,C1:"core",clientMetadata:new Ez([new l2(u({slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,C1:"core",slotEntryTrigger:x,slotFulfillmentTriggers:P,slotExpirationTriggers:V}))])}}; EB9=function(V,t,x,u){var Z=vu(V.S.get(),"SLOT_TYPE_PLAYER_UNDERLAY");x=new ak(V.J,x);var P=[new CZ(V.J,Z)];V=[new D9(V.J,t),new Jr(V.J,Z)];return{slotId:Z,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:P,slotExpirationTriggers:V,C1:"core",clientMetadata:new Ez([new l2(u({slotId:Z,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,C1:"core",slotEntryTrigger:x,slotFulfillmentTriggers:P,slotExpirationTriggers:V}))])}}; u$s=function(V,t,x,u,Z,P,K){var R=vu(V.S.get(),"SLOT_TYPE_IN_PLAYER"),f=u4(V.S.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",R);u=D$s(V,u,P,K,f);if(u instanceof h)return u;K=[new CZ(V.J,R)];Z=[new D9(V.J,P),new CZ(V.J,Z),new tZ(V.J,Z)];x=A3(x,{slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,C1:"core",slotEntryTrigger:u,slotFulfillmentTriggers:K,slotExpirationTriggers:Z});V=V.N.get();P={layoutId:f,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",C1:"core"};t={layoutId:f,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", Rt:new Map,layoutExitNormalTriggers:[new CYT(V.J,f,t.durationMs)],layoutExitSkipTriggers:[new hWK(V.J,f,t.durationMs)],d9:[new J4s(V.J,f)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],C1:"core",clientMetadata:new Ez([new JU(t)]),Vt:x(P)};return{slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,C1:"core",slotEntryTrigger:u,slotFulfillmentTriggers:K,slotExpirationTriggers:Z,clientMetadata:new Ez([new l2(t)])}}; lsl=function(V,t,x,u,Z,P){t=x0(V,t,x,u);if(t instanceof h)return t;var K=t instanceof yT?new DoC(V.J,x,t.J):null;u=vu(V.S.get(),"SLOT_TYPE_IN_PLAYER");var R=[new CZ(V.J,u)];V=[new D9(V.J,x),new Jr(V.J,u)];P=P({slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,C1:"core",slotEntryTrigger:t,slotFulfillmentTriggers:R,slotExpirationTriggers:V},K);return P instanceof bC?new h(P):{slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:R,slotExpirationTriggers:V, C1:"core",clientMetadata:new Ez([new l2(P)]),adSlotLoggingData:Z}}; yEC=function(V,t,x,u){var Z=vu(V.S.get(),"SLOT_TYPE_IN_PLAYER"),P=new BV(V.J,t),K=[new Vj(V.J,Z)];V=[new D9(V.J,t),new Jr(V.J,Z)];return{slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:P,slotFulfillmentTriggers:K,slotExpirationTriggers:V,C1:"core",clientMetadata:new Ez([new l2(u({slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,C1:"core",slotEntryTrigger:P,slotFulfillmentTriggers:K,slotExpirationTriggers:V}))]),adSlotLoggingData:x}}; lv4=function(V,t,x,u){var Z=vu(V.S.get(),"SLOT_TYPE_IN_PLAYER");x=new ak(V.J,x);var P=[new CZ(V.J,Z)],K=[new Jr(V.J,Z),new D9(V.J,t)];P={slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,C1:"core",slotEntryTrigger:x,slotFulfillmentTriggers:P,slotExpirationTriggers:K};return{slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:[new CZ(V.J,Z)],slotExpirationTriggers:[new D9(V.J,t),new Jr(V.J,Z)],C1:"core",clientMetadata:new Ez([new l2(u(P))])}}; c98=function(V,t,x,u,Z){var P=vu(V.S.get(),"SLOT_TYPE_IN_PLAYER");x=new QT(V.J,u,x);u=[new CZ(V.J,P)];V=[new D9(V.J,t)];return{slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:u,slotExpirationTriggers:V,C1:"core",clientMetadata:new Ez([new l2(Z({slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,C1:"core",slotEntryTrigger:x,slotFulfillmentTriggers:u,slotExpirationTriggers:V}))])}}; avw=function(V,t,x,u,Z,P){var K=vu(V.S.get(),t);return u3(V,K,t,new ak(V.J,u),[new D9(V.J,x),new Jr(V.J,K),new rt(V.J,u,["error"])],Z,P)}; Qnq=function(V,t,x,u,Z,P,K){var R=vu(V.S.get(),t);return u3(V,R,t,new rt(V.J,Z,["normal"]),[new D9(V.J,x),new Jr(V.J,R),new rt(V.J,u,["error"])],P,K)}; zjz=function(V,t,x,u,Z){var P=vu(V.S.get(),t);return u3(V,P,t,new BV(V.J,x),[new D9(V.J,x),new Jr(V.J,P)],u,Z)}; Wsh=function(V,t,x,u,Z){x=x?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var P=vu(V.S.get(),x);t=new BV(V.J,t);var K=[new CZ(V.J,P)];V=[new Jr(V.J,P)];return{slotId:P,slotType:x,slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:K,slotExpirationTriggers:V,C1:"core",clientMetadata:new Ez([new l2(Z({slotId:P,slotType:x,slotPhysicalPosition:1,C1:"core",slotEntryTrigger:t,slotFulfillmentTriggers:K,slotExpirationTriggers:V}))]),adSlotLoggingData:u}}; CML=function(V,t,x,u){var Z=vu(V.S.get(),"SLOT_TYPE_PLAYER_BYTES"),P=new cV(V.J),K=[new Vj(V.J,Z)];V=[new D9(V.J,t)];return{slotId:Z,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:P,slotFulfillmentTriggers:K,slotExpirationTriggers:V,C1:"core",clientMetadata:new Ez([new l2(u({slotId:Z,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,C1:"core",slotEntryTrigger:P,slotFulfillmentTriggers:K,slotExpirationTriggers:V})),new nL({})]),adSlotLoggingData:x}}; ul9=function(V,t){return iLL(V.WX.get())?new rt(V.J,t,["normal","error","skipped"]):new rt(V.J,t,["normal"])}; qiL=function(V,t,x,u,Z){t=ul9(V,t);V=OZ(V,t,x);Z=Z({slotId:V.slotId,slotType:V.slotType,slotPhysicalPosition:V.slotPhysicalPosition,slotEntryTrigger:V.slotEntryTrigger,slotFulfillmentTriggers:V.slotFulfillmentTriggers,slotExpirationTriggers:V.slotExpirationTriggers,C1:V.C1});return Z instanceof h?Z:{Dk:Object.assign({},V,{clientMetadata:new Ez([new l2(Z.layout)]),adSlotLoggingData:u}),G4:Z.G4}}; R1w=function(V,t,x,u,Z,P,K){x=ZLs(V,t,x,u);if(x instanceof h)return x;K=K({slotId:x.slotId,slotType:x.slotType,slotPhysicalPosition:x.slotPhysicalPosition,slotEntryTrigger:x.slotEntryTrigger,slotFulfillmentTriggers:x.slotFulfillmentTriggers,slotExpirationTriggers:x.slotExpirationTriggers,C1:x.C1});if(K instanceof h)return K;u=[new ZC(pn(t)),new l2(K.layout),new Kw({Sm:V.Sm(t)})];P&&u.push(new wC({}));return{Dk:{slotId:x.slotId,slotType:x.slotType,slotPhysicalPosition:x.slotPhysicalPosition,slotEntryTrigger:sZ(V, t,x.slotId,x.slotEntryTrigger),slotFulfillmentTriggers:Nb(V,t,x.slotId,x.slotFulfillmentTriggers),slotExpirationTriggers:x.slotExpirationTriggers,C1:x.C1,clientMetadata:new Ez(u),adSlotLoggingData:Z},G4:K.G4}}; sZ=function(V,t,x,u){return V.WX.get().hZ(pn(t))?new XW(V.J,x):u}; Nb=function(V,t,x,u){return V.WX.get().hZ(pn(t))?[new Vj(V.J,x)]:u}; OZ=function(V,t,x){var u=vu(V.S.get(),"SLOT_TYPE_PLAYER_BYTES"),Z=[new CZ(V.J,u)];V=[new Jr(V.J,u),new D9(V.J,x)];return{slotId:u,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:Z,slotExpirationTriggers:V,C1:"core"}}; ZLs=function(V,t,x,u){t=x0(V,t,x,u);return t instanceof h?t:OZ(V,t,x)}; nB9=function(V,t,x,u,Z,P){var K=vu(V.S.get(),"SLOT_TYPE_FORECASTING");t=x0(V,t,x,u);if(t instanceof h)return t;u=[new CZ(V.J,K)];V=[new Jr(V.J,K),new D9(V.J,x)];return{slotId:K,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:u,slotExpirationTriggers:V,C1:"core",clientMetadata:new Ez([new l2(P({slotId:K,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,C1:"core",slotEntryTrigger:t,slotFulfillmentTriggers:u,slotExpirationTriggers:V}))]),adSlotLoggingData:Z}}; eMs=function(V,t,x,u,Z){var P=!t.hideCueRangeMarker;switch(t.kind){case "AD_PLACEMENT_KIND_START":return new BV(V.J,x);case "AD_PLACEMENT_KIND_MILLISECONDS":return V=FvL(t,u),V instanceof h?V:Z(V.oz,P);case "AD_PLACEMENT_KIND_END":return new YA(V.J,x,P);default:return new h("Cannot construct entry trigger",{kind:t.kind})}}; D$s=function(V,t,x,u,Z){return eMs(V,t,x,u,function(P,K){return new Uo1(V.J,x,P,K,Z)})}; x0=function(V,t,x,u){return eMs(V,t,x,u,function(Z,P){return new yT(V.J,x,Z,P)})}; u3=function(V,t,x,u,Z,P,K){V=[new Vj(V.J,t)];return{slotId:t,slotType:x,slotPhysicalPosition:1,slotEntryTrigger:u,slotFulfillmentTriggers:V,slotExpirationTriggers:Z,C1:"core",clientMetadata:new Ez([new l2(K({slotId:t,slotType:x,slotPhysicalPosition:1,C1:"core",slotEntryTrigger:u,slotFulfillmentTriggers:V,slotExpirationTriggers:Z}))]),adSlotLoggingData:P}}; Zn=function(V,t){g.c.call(this);this.WX=V;this.J=t;this.eventCount=0}; P8=function(V,t,x,u){Zn.call(this,V,t);this.WX=V;this.PX=x;this.context=u}; K7=function(){this.J=new Map}; f7=function(V,t){var x=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=V;this.result=t.result;this.error=t.error;t.promise&&t.promise.then(function(u){q7(x,u)},function(u){R_(x,u)})}; Eg=function(V){if($0(V)){if(V instanceof f7)return V;if(b3(V))return new f7("wait",{promise:V})}return new f7("done",{result:V})}; k0=function(V){return new f7("fail",{error:V})}; i3=function(V){try{return Eg(V())}catch(t){return k0(t)}}; sg=function(V,t){var x=new f7("wait",{});V.onSuccess.push(function(u){try{var Z=t(u);q7(x,Z)}catch(P){R_(x,P)}}); V.onFailure.push(function(u){R_(x,u)}); Og(V);return x}; N7=function(V,t){var x=new f7("wait",{});V.onSuccess.push(function(u){q7(x,u)}); V.onFailure.push(function(u){try{var Z=t(u);q7(x,Z)}catch(P){R_(x,P)}}); Og(V);return x}; q7=function(V,t){if($0(t)){if(b3(t)){t.then(function(x){q7(V,x)},function(x){R_(V,x)}); return}if(t instanceof f7){sg(t,function(x){q7(V,x)}); N7(t,function(x){R_(V,x)}); return}}V.currentState="done";V.result=t;Og(V)}; R_=function(V,t){V.currentState="fail";V.error=t;Og(V)}; Og=function(V){if(V.currentState==="done"){var t=V.onSuccess;V.onSuccess=[];V.onFailure=[];t=g.G(t);for(var x=t.next();!x.done;x=t.next())x=x.value,x(V.result)}else if(V.currentState==="fail")for(t=V.onFailure,V.onSuccess=[],V.onFailure=[],t=g.G(t),x=t.next();!x.done;x=t.next())x=x.value,x(V.error)}; C2z=function(V){return function(){return d$h(V.apply(this,g.Xq.apply(0,arguments)))}}; d$h=function(V){return i3(function(){return p7(V,V.next())})}; p7=function(V,t){return t.done?Eg(t.value):N7(sg(t.value.kY,function(x){return p7(V,V.next(x))}),function(x){return p7(V,V.throw(x))})}; S_=function(V){var t=V.hours||0;var x=V.minutes||0,u=V.seconds||0;t=u+x*60+t*3600+(V.days||0)*86400+(V.weeks||0)*604800+(V.months||0)*2629800+(V.years||0)*31557600;t<=0?t={hours:0,minutes:0,seconds:0}:(V=t,t=Math.floor(V/3600),V%=3600,x=Math.floor(V/60),u=Math.floor(V%60),t={hours:t,minutes:x,seconds:u});var Z=t.hours===void 0?0:t.hours;x=t.minutes===void 0?0:t.minutes;V=t.seconds===void 0?0:t.seconds;u=Z>0;t=[];if(u){Z=(new Intl.NumberFormat("en-u-nu-latn")).format(Z);var P=["fr"],K="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(" "); Z="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(A5)?Z.replace(",","\u00a0"):P.includes(A5)?Z.replace(",","\u202f"):K.includes(A5)?Z.replace(",","."):Z;t.push(Z)}u=u===void 0?!1:u;x=(["af","be","lt"].includes(A5)||u)&&x<10?JU8().format(x):(new Intl.NumberFormat("en-u-nu-latn")).format(x);t.push(x);x=JU8().format(V);t.push(x);x=":";"da fi id si sr sr-Latn".split(" ").includes(A5)&&(x=".");return t.join(x)}; JU8=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; hM1=function(V,t){var x,u;V=((x=V.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(u=x.videoAuthorizationToken)==null?void 0:u.credentialTransferTokens)||[];for(x=0;xt;V=x}else V=!1;return V}; Ows=function(V){V=V.split("");Tv.yx(V,62);Tv.jz(V,1);Tv.yx(V,27);return V.join("")}; g.W8=function(V,t){return V.cX+"timedtext_video?ref=player&v="+t.videoId}; g.spj=function(V){var t=this;this.videoData=V;V={};this.J=(V.c1a=function(){var x=[];if(g.a_.isInitialized()){var u="";t.videoData&&t.videoData.Gg&&(u=t.videoData.Gg+("&r1b="+t.videoData.clientPlaybackNonce));var Z={};u=(Z.atr_challenge=u,Z);VF("bg_v",void 0,"player_att");(u=iwh(u))?(VF("bg_s",void 0,"player_att"),x.push("r1a="+u)):(VF("bg_e",void 0,"player_att"),x.push("r1c=2"))}else VF("bg_e",void 0,"player_att"),window.trayride||window.botguard?x.push("r1c=1"):x.push("r1c=4");x.push("r1d="+g.a_.getState()); return x.join("&")},V.c6a=function(x){return"r6a="+(Number(x.c)^pS())},V.c6b=function(x){return"r6b="+(Number(x.c)^Number(g.Zc("CATSTAT",0)))},V); this.videoData&&this.videoData.Gg?this.mQ=EQ(this.videoData.Gg):this.mQ={}}; g.NYC=function(V){if(V.videoData&&V.videoData.Gg){for(var t=[V.videoData.Gg],x=g.G(Object.keys(V.J)),u=x.next();!u.done;u=x.next())u=u.value,V.mQ[u]&&V.J[u]&&(u=V.J[u](V.mQ))&&t.push(u);return t.join("&")}return null}; g.o_=function(V,t){kJ1(V,{HG1:g.S7(t.experiments,"bg_vm_reinit_threshold"),cspNonce:t.cspNonce})}; pnL=function(){var V=XMLHttpRequest.prototype.fetch;return!!V&&V.length===3}; n7=function(V){V=V===void 0?2592E3:V;if(V>0&&!(dal()>(0,g.Tu)()-V*1E3))return 0;V=g.ls("yt-player-quality");if(typeof V==="string"){if(V=g.U3[V],V>0)return V}else if(V instanceof Object)return V.quality;return 0}; c8=function(){var V=g.ls("yt-player-proxima-pref");return V==null?null:V}; A30=function(){var V=g.ls("yt-player-quality");if(V instanceof Object&&V.quality&&V.previousQuality){if(V.quality>V.previousQuality)return 1;if(V.quality0&&t[0]?V.getAutoplayPolicy(t[0]):V.getAutoplayPolicy("mediaelement");if(FY9[x])return FY9[x]}}catch(u){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; e_=function(V){return V.bv||V.Te||V.mutedAutoplay}; M7l=function(V,t){return e_(V)?t!==1&&t!==2&&t!==0?"AUTOPLAY_STATUS_UNAVAILABLE":V.Yc?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; gHl=function(V,t,x){var u=t.K();V.thirdParty||(V.thirdParty={});u.ancestorOrigins&&(V.thirdParty.embeddedPlayerContext=Object.assign({},V.thirdParty.embeddedPlayerContext,{ancestorOrigins:u.ancestorOrigins}));u.T("embeds_enable_autoplay_and_visibility_signals")&&(u.e0!=null&&(V.thirdParty.embeddedPlayerContext=Object.assign({},V.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(u.e0)})),V.thirdParty.embeddedPlayerContext=Object.assign({},V.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:Dn(), autoplayIntended:e_(t),autoplayStatus:M7l(t,x)}))}; BY1=function(V,t){kB(V,2,t.bM,dn,3);kB(V,3,t.Mg,Xn9,3);br(V,4,t.onesieUstreamerConfig);br(V,9,t.h8);kB(V,10,t.i$,C7,3);kB(V,15,t.reloadPlaybackParams,z_l,3)}; Yz1=function(V,t){kB(V,1,t.formatId,J5,3);fA(V,2,t.startTimeMs);fA(V,3,t.durationMs);fA(V,4,t.OE);fA(V,5,t.jd);kB(V,9,t.nFw,mHz,3);kB(V,11,t.xM8,h5,1);kB(V,12,t.n4,h5,1)}; Qpj=function(V,t){Ei(V,1,t.videoId);fA(V,2,t.lmt)}; mHz=function(V,t){if(t.AN)for(var x=0;x>31));fA(V,16,t.CDk);fA(V,17,t.detailedNetworkType);fA(V,18,t.Zl);fA(V,19,t.Pq);fA(V,21,t.exD);fA(V,23,t.f5);fA(V,28,t.zN);fA(V,29,t.tZy);fA(V,34,t.visibility);x=t.playbackRate;if(x!==void 0){var u=new ArrayBuffer(4);(new Float32Array(u))[0]=x;x=(new Uint32Array(u))[0];if(x!==void 0)for(RR(V,285),qB(V,4),u=0;u<4;)V.view.setUint8(V.pos,x&255),x>>=8,V.pos+=1,u+=1}fA(V,36,t.f$); kB(V,38,t.mediaCapabilities,TYT,3);fA(V,39,t.URX);fA(V,40,t.Zm);fA(V,44,t.playerState);$B(V,46,t.W5);fA(V,48,t.WC);fA(V,50,t.SW);fA(V,51,t.TD);fA(V,54,t.pu);$B(V,56,t.F0y);fA(V,57,t.aL);$B(V,58,t.ez);fA(V,59,t.hQ);fA(V,60,t.BH);$B(V,61,t.isPrefetch);fA(V,62,t.Ef);br(V,63,t.sabrLicenseConstraint);fA(V,64,t.r6s);fA(V,66,t.DPS);fA(V,67,t.teX);fA(V,68,t.Rl6);Ei(V,69,t.audioTrackId);$B(V,71,t.wT);kB(V,72,t.j_8,r3w,1);fA(V,74,t.mB);fA(V,75,t.W_)}; TYT=function(V,t){if(t.videoFormatCapabilities)for(var x=0;x>31));Ei(V,2,t.message)}; UH8=function(V,t){fA(V,1,t.clientState);kB(V,2,t.EHX,lCj,1)}; jpT=function(V,t){br(V,1,t.hss);kB(V,2,t.t3j,HwK,3);kB(V,3,t.coldStartInfo,UH8,3)}; y3s=function(V,t){fA(V,1,t.type);br(V,2,t.value)}; c3q=function(V,t){Ei(V,1,t.hl);Ei(V,12,t.deviceMake);Ei(V,13,t.deviceModel);fA(V,16,t.clientName);Ei(V,17,t.clientVersion);Ei(V,18,t.osName);Ei(V,19,t.osVersion)}; DHl=function(V,t){Ei(V,1,t.name);Ei(V,2,t.value)}; e_4=function(V,t){Ei(V,1,t.url);if(t.sQ)for(var x=0;x1&&(this.G=V[1]==="2")}; ZP=function(V,t,x,u,Z){this.S=V;this.J=t;this.N=x;this.reason=u;this.n1=Z===void 0?0:Z}; g.Pg=function(V,t,x,u){return new ZP(g.U3[V]||0,g.U3[t]||0,x,u)}; qy=function(V){if(K1&&V.n1)return!1;var t=g.U3.auto;return V.S===t&&V.J===t}; f1=function(V){return RY[V.J||V.S]||"auto"}; YDw=function(V,t){t=g.U3[t];return V.S<=t&&(!V.J||V.J>=t)}; $T=function(V){return"["+V.S+"-"+V.J+", override: "+(V.N+", reason: "+V.reason+"]")}; b8=function(V,t,x){this.videoInfos=V;this.J=t;this.audioTracks=[];if(this.J){V=new Set;x==null||x({ainfolen:this.J.length});t=g.G(this.J);for(var u=t.next();!u.done;u=t.next())if(u=u.value,!u.H$||V.has(u.H$.id)){var Z=void 0,P=void 0,K=void 0;(K=x)==null||K({atkerr:!!u.H$,itag:u.itag,xtag:u.J,lang:((Z=u.H$)==null?void 0:Z.name)||"",langid:((P=u.H$)==null?void 0:P.id)||""})}else Z=new g.u8(u.id,u.H$),V.add(u.H$.id),this.audioTracks.push(Z);x==null||x({atklen:this.audioTracks.length})}}; Eh=function(){g.c.apply(this,arguments);this.J=null}; TaL=function(V,t,x,u,Z,P,K){if(V.J)return V.J;var R={},f=new Set,b={};if(kT(u)){for(var E in u.J)u.J.hasOwnProperty(E)&&(V=u.J[E],b[V.info.lD]=[V.info]);return b}E=Qb4(t,u,R);P&&Z({aftsrt:i8(E)});for(var k={},O=g.G(Object.keys(E)),N=O.next();!N.done;N=O.next()){N=N.value;for(var p=g.G(E[N]),I=p.next();!I.done;I=p.next()){I=I.value;var L=I.itag,M=void 0,z=N+"_"+(((M=I.video)==null?void 0:M.fps)||0);k.hasOwnProperty(z)?k[z]===!0?b[N].push(I):R[L]=k[z]:(M=Oh(t,I,x,u.isLive,f),M!==!0?(K.add(N),R[L]=M, M==="disablevp9hfr"&&(k[z]="disablevp9hfr")):(b[N]=b[N]||[],b[N].push(I),k[z]=!0))}}P&&Z({bfflt:i8(b)});for(var Y in b)b.hasOwnProperty(Y)&&(u=Y,b[u]&&b[u][0].Z8()&&(b[u]=b[u],b[u]=agC(t,b[u],R),b[u]=ry9(b[u],R)));P&&Z(R);t=g.G(f.values());for(u=t.next();!u.done;u=t.next())(u=x.S.get(u.value))&&--u.Lo;P&&Z({aftflt:i8(b)});V.J=g.vO(b,function(r){return!!r.length}); return V.J}; om8=function(V,t,x,u,Z,P,K,R){R=R===void 0?!1:R;if(t.Fz&&K&&K.length>1&&!(t.hQ>0||t.C)){for(var f=t.S||!!Z,b=f&&t.kX?P:void 0,E=Qb4(t,u),k=[],O=[],N={},p=0;p0&&O&&Z&&(E=[K,x],L=Z.concat(O).filter(function(M){return M})); if(L.length&&!t.ez){p1(L,E);if(f){f=[];t=g.G(L);for(u=t.next();!u.done;u=t.next())f.push(u.value.itag);P({hbdfmt:f.join(".")})}return jL(new b8(L,V,b))}L=evl(t);L=g.ei(L,R);if(!L){if(k[K])return P=k[K],p1(P),jL(new b8(P,V,b));f&&P({novideo:1});return yA()}t.VP&&(L==="1"||L==="1h")&&k[x]&&(K=Ap(k[L]),E=Ap(k[x]),E>K?L=x:E===K&&d9l(k[x])&&(L=x));L==="9"&&k.h&&Ap(k.h)>Ap(k["9"])&&(L="h");t.Fc&&u.isLive&&L==="("&&k.H&&Ap(k["("])<1440&&(L="H");f&&P({vfmly:SF(L)});t=k[L];if(!t.length)return f&&P({novfmly:SF(L)}), yA();p1(t);return jL(new b8(t,V,b))}; cyw=function(V,t){var x=!(!V.m&&!V.M),u=!(!V.mac3&&!V.MAC3),Z=!(!V.meac3&&!V.MEAC3);V=!(!V.i&&!V.I);t.q6=V;return x||u||Z||V}; d9l=function(V){V=g.G(V);for(var t=V.next();!t.done;t=V.next())if(t=t.value,t.itag&&C44.has(t.itag))return!0;return!1}; SF=function(V){switch(V){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return V}}; i8=function(V){var t=[],x;for(x in V)if(V.hasOwnProperty(x)){var u=x;t.push(SF(u));u=g.G(V[u]);for(var Z=u.next();!Z.done;Z=u.next())t.push(Z.value.itag)}return t.join(".")}; nmq=function(V,t,x,u,Z,P){var K={},R={};g.IG(t,function(f,b){f=f.filter(function(E){var k=E.itag;if(!E.Pw)return R[k]="noenc",!1;if(P.P$&&E.lD==="(h"&&P.w6)return R[k]="lichdr",!1;if(E.lD==="("||E.lD==="(h"){if(V.W&&x&&x.flavor==="widevine"){var O=E.mimeType+"; experimental=allowed";(O=!!E.Pw[x.flavor]&&!!x.J[O])||(R[k]=E.Pw[x.flavor]?"unspt":"noflv");return O}if(!Gt(V,IY.CRYPTOBLOCKFORMAT)&&!V.BX||V.zU)return R[k]=V.zU?"disvp":"vpsub",!1}return x&&E.Pw[x.flavor]&&x.J[E.mimeType]?!0:(R[k]=x?E.Pw[x.flavor]? "unspt":"noflv":"nosys",!1)}); f.length&&(K[b]=f)}); u&&Object.entries(R).length&&Z(R);return K}; ry9=function(V,t){var x=rk(V,function(u,Z){return Z.video.fps>32?Math.min(u,Z.video.width):u},Infinity); x32||u.video.widthV.B)return"max"+V.B;if(V.QC&&t.lD==="h"&&t.video&&t.video.J>1080)return"blkhigh264";if(t.lD==="(h"&&!x.B)return"enchdr";if((u===void 0?0:u)&&xI(t)&&!V.dk)return"blk51live";if((t.lD==="MAC3"||t.lD==="mac3")&&!V.W)return"blkac3";if((t.lD==="MEAC3"||t.lD==="meac3")&&!V.G)return"blkeac3";if((t.lD==="M"||t.lD==="m")&&!V.wk)return"blkaac51";if((t.lD=== "so"||t.lD==="sa")&&!V.zU)return"blkamb";if(!V.P$&&t.Pw&&t.Pw.fairplay&&(t.lD==="("||t.lD==="(h"||t.lD==="A"||t.lD==="MEAC3"))return"cbc";if((t.lD==="i"||t.lD==="I")&&!V.CI)return"blkiamf";if(t.itag==="774"&&!V.Us)return"blkouh";var P,K;if(V.yC&&(t.lD==="1"||t.lD==="1h")&&((P=t.video)==null?0:P.J)&&((K=t.video)==null?void 0:K.J)>V.yC)return"av1cap";if((u=x.S.get(t.lD))&&u.Lo>0)return Z.add(t.lD),"byerr";var R;if((R=t.video)==null?0:R.fps>32){if(!x.Us&&!Gt(x,IY.FRAMERATE))return"capHfr";if(V.HX&&t.video.J>= 4320)return"blk8khfr";if(hu(t)){if(V.o5&&t.Pw&&t.video.J>=1440)return"disablevp9hfr";if(V.Qc&&g.h6("appletv5")&&t.Pw)return"atv5sfr"}}if(V.n1&&t.n1>V.n1)return"ratecap";V=Jy1(x,t);return V!==!0?V:!0}; p1=function(V,t){t=t===void 0?[]:t;g.fR(V,function(x,u){var Z=u.n1-x.n1;if(!x.Z8()||!u.Z8())return Z;var P=u.video.height*u.video.width-x.video.height*x.video.width;!P&&t&&t.length>0&&(x=t.indexOf(x.lD)+1,u=t.indexOf(u.lD)+1,P=x===0||u===0?u||-1:x-u);P||(P=Z);return P})}; g.vg=function(V,t){this.S=V;this.W=t===void 0?!1:t;this.N=this.path=this.scheme="";this.J={};this.url=""}; FU=function(V){L1(V);return V.N}; My=function(V){return V.S?V.S.startsWith("local"):V.scheme==="local"}; hvs=function(V){L1(V);return g.Fu(V.J,function(t){return t!==null})}; gX=function(V){L1(V);var t=decodeURIComponent(V.get("mn")||"").split(",");return V.path==="/videoplayback"&&t.length>1&&!!t[1]}; XU=function(V,t){t=t===void 0?!1:t;L1(V);if(V.path!=="/videoplayback"){var x=V.clone();x.set("playerfallback","1");return x}var u=V.dL();x=new g.AO(u);var Z=V.get("fvip"),P=decodeURIComponent(V.get("mn")||"").split(",");if(Z&&P&&P.length>1&&P[1])return u=x.J,V=u.replace(/^[^.]*/,""),g.GC(x,(u.indexOf("rr")===0?"rr":"r")+Z+"---"+P[1]+V),x=new g.vg(x.toString()),x.set("fallback_count","1"),x;if(t)return x=V.clone(),x.set("fallback_count","1"),x;Z=x.J.match("\\.a1\\.googlevideo\\.com$");x.J.match("\\.googlevideo\\.com$")? (g.GC(x,"redirector.googlevideo.com"),u=x.toString()):x.J.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.GC(x,"www.youtube.com"),u=x.toString()):(x=tow(u),q9(x)&&(u=x));x=new g.vg(u);x.set("cmo=pf","1");Z&&x.set("cmo=td","a1.googlevideo.com");return x}; L1=function(V){if(V.S){if(!q9(V.S)&&!V.S.startsWith("local"))throw new g.xe("Untrusted URL",V.S);var t=g.Xt(V.S);V.scheme=t.G;V.N=t.J+(t.N!=null?":"+t.N:"");var x=t.S;if(x.startsWith("/videoplayback"))V.path="/videoplayback",x=x.slice(14);else if(x.startsWith("/initplayback"))V.path="/initplayback",x=x.slice(13);else if(x.startsWith("/api/manifest")){var u=x.indexOf("/",12),Z=x.indexOf("/",u+1);u>0&&Z>0?(V.path=x.slice(0,Z),x=x.slice(Z+1)):(V.path=x,x="")}else V.path=x,x="";u=V.J;V.J=wuL(x);Object.assign(V.J, V6s(t.W.toString()));Object.assign(V.J,u);V.J.file==="index.m3u8"&&(delete V.J.file,V.path+="/file/index.m3u8");V.S="";V.url="";V.W&&(t=Tms(),L1(V),x=V.J[t]||null)&&(x=t69[0](x),V.set(t,x),V.W||Tms(""))}}; xFL=function(V){L1(V);var t=V.scheme+(V.scheme?"://":"//")+V.N+V.path;if(hvs(V)){var x=[];g.IG(V.J,function(u,Z){u!==null&&x.push(Z+"="+u)}); t+="?"+x.join("&")}return t}; wuL=function(V){V=V.split("/");var t=0;V[0]||t++;for(var x={};t0?uw8(t,u.slice(0,Z),u.slice(Z+1)):u&&(t[u]="")}return t}; uw8=function(V,t,x){if(t==="cmo"){var u;(u=x.indexOf("="))>=0?(t="cmo="+x.slice(0,u),x=x.slice(u+1)):(u=x.indexOf("%3D"))>=0&&(t="cmo="+x.slice(0,u),x=x.slice(u+3))}V[t]=x}; zt=function(V){var t=g.l(V,Z59)||V.signatureCipher;V={Jx:!1,Wu:"",Mb:"",s:""};if(!t)return V;t=EQ(t);V.Jx=!0;V.Wu=t.url;V.Mb=t.sp;V.s=t.s;return V}; Bg=function(V,t,x,u,Z,P,K,R,f,b){this.GU=V;this.startTime=t;this.duration=x;this.ingestionTime=u;this.sourceURL=Z;this.iI=f;this.J=b;this.endTime=t+x;this.S=K||0;this.range=P||null;this.pending=R||!1;this.iI=f||null}; g.mj=function(){this.segments=[];this.J=null;this.S=!0;this.N=""}; PSC=function(V,t){if(t>V.C9())V.segments=[];else{var x=DE(V.segments,function(u){return u.GU>=t},V); x>0&&V.segments.splice(0,x)}}; QO=function(V,t,x,u,Z){Z=Z===void 0?!1:Z;this.data=V;this.offset=t;this.size=x;this.type=u;this.J=(this.S=Z)?0:8;this.dataOffset=this.offset+this.J}; aY=function(V){var t=V.data.getUint8(V.offset+V.J);V.J+=1;return t}; rX=function(V){var t=V.data.getUint16(V.offset+V.J);V.J+=2;return t}; Tt=function(V){var t=V.data.getInt32(V.offset+V.J);V.J+=4;return t}; Wg=function(V){var t=V.data.getUint32(V.offset+V.J);V.J+=4;return t}; oY=function(V){var t=V.data;var x=V.offset+V.J;t=t.getUint32(x)*4294967296+t.getUint32(x+4);V.J+=8;return t}; n1=function(V,t){t=t===void 0?NaN:t;if(isNaN(t))var x=V.size;else for(x=V.J;x1?Math.ceil(Z*t):Math.floor(Z*t))}V.skip(1);x=aY(V)<<16|rX(V);if(x&256){u=x&1;Z=x&4;var P=x&512,K=x&1024,R=x&2048;x=Wg(V);u&&V.skip(4);Z&&V.skip(4);u=(P?4:0)+(K?4:0)+(R?4:0);for(Z=0;Z1?Math.ceil(K*t):Math.floor(K*t)),V.skip(u)}}}; dX=function(V){V=new DataView(V.buffer,V.byteOffset,V.byteLength);return(V=g.DP(V,0,1836476516))?g.eF(V):NaN}; saT=function(V){var t=g.DP(V,0,1937011556);if(!t)return null;t=C1(V,t.dataOffset+8,1635148593)||C1(V,t.dataOffset+8,1635135537);if(!t)return null;var x=C1(V,t.dataOffset+78,1936995172),u=C1(V,t.dataOffset+78,1937126244);if(!u)return null;t=null;if(x)switch(x.skip(4),aY(x)){default:t=0;break;case 1:t=2;break;case 2:t=1;break;case 3:t=255}var Z=x=null,P=null;if(u=C1(V,u.dataOffset,1886547818)){var K=C1(V,u.dataOffset,1886546020),R=C1(V,u.dataOffset,2037673328);if(!R&&(R=C1(V,u.dataOffset,1836279920), !R))return null;K&&(K.skip(4),x=Tt(K)/65536,P=Tt(K)/65536,Z=Tt(K)/65536);V=KQC(R);V=new DataView(V.buffer,V.byteOffset+8,V.byteLength-8);return new i5q(t,x,P,Z,V)}return null}; C1=function(V,t,x){for(;Jp(V,t);){var u=hp(V,t);if(u.type===x)return u;t+=u.size}return null}; g.DP=function(V,t,x){for(;Jp(V,t);){var u=hp(V,t);if(u.type===x)return u;t=wX(u.type)?t+8:t+u.size}return null}; g.VY=function(V){if(V.data.getUint8(V.dataOffset)){var t=V.data;V=V.dataOffset+4;t=t.getUint32(V)*4294967296+t.getUint32(V+4)}else t=V.data.getUint32(V.dataOffset+4);return t}; hp=function(V,t){var x=V.getUint32(t),u=V.getUint32(t+4);return new QO(V,t,x,u)}; g.eF=function(V){var t=V.data.getUint8(V.dataOffset)?20:12;return V.data.getUint32(V.dataOffset+t)}; Nw0=function(V){V=new QO(V.data,V.offset,V.size,V.type,V.S);var t=aY(V);V.skip(7);var x=Wg(V);if(t===0){t=Wg(V);var u=Wg(V)}else t=oY(V),u=oY(V);V.skip(2);for(var Z=rX(V),P=[],K=[],R=0;R122)return!1}return!0}; wX=function(V){return V===1701082227||V===1836019558||V===1836019574||V===1835297121||V===1835626086||V===1937007212||V===1953653094||V===1953653099||V===1836475768}; pb8=function(V){V.skip(4);return{Uvw:n1(V,0),value:n1(V,0),ow:Wg(V),aWk:Wg(V),LUk:Wg(V),id:Wg(V),yT:n1(V),offset:V.offset}}; g.Auh=function(V){var t=C1(V,0,1701671783);if(!t)return null;var x=pb8(t),u=x.Uvw;x=Uh(x.yT);if(V=C1(V,t.offset+t.size,1701671783))if(V=pb8(V),V=Uh(V.yT),x&&V){t=g.G(Object.keys(V));for(var Z=t.next();!Z.done;Z=t.next())Z=Z.value,x[Z]=V[Z]}return x?new l8(x,u):null}; t0=function(V,t){for(var x=C1(V,0,t);x;){var u=x;u.type=1936419184;u.data.setUint32(u.offset+4,1936419184);x=C1(V,x.offset+x.size,t)}}; g.xL=function(V,t){for(var x=0,u=[];Jp(V,x);){var Z=hp(V,x);Z.type===t&&u.push(Z);x=wX(Z.type)?x+8:x+Z.size}return u}; S3z=function(V,t){var x=g.DP(V,0,1937011556),u=g.DP(V,0,1953654136);if(!x||!u||V.getUint32(x.offset+12)>=2)return null;var Z=new DataView(t.buffer,t.byteOffset,t.length),P=g.DP(Z,0,1937011556);if(!P)return null;t=Z.getUint32(P.dataOffset+8);u=Z.getUint32(P.dataOffset+12);if(u!==1701733217&&u!==1701733238)return null;u=new q3w(V.byteLength+t);cg(u,V,0,x.offset+12);u.data.setInt32(u.offset,2);u.offset+=4;cg(u,V,x.offset+16,x.size-16);cg(u,Z,Z.byteOffset+P.dataOffset+8,t);cg(u,V,x.offset+x.size,V.byteLength- (x.offset+x.size));x=g.G([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(Z=x.next();!Z.done;Z=x.next())Z=g.DP(V,0,Z.value),u.data.setUint32(Z.offset,Z.size+t);V=g.DP(u.data,0,1953654136);u.data.setUint32(V.offset+16,2);return u.data}; Gfj=function(V){var t=g.DP(V,0,1937011556);if(!t)return null;var x=V.getUint32(t.dataOffset+12);if(x!==1701733217&&x!==1701733238)return null;t=C1(V,t.offset+24+(x===1701733217?28:78),1936289382);if(!t)return null;x=C1(V,t.offset+8,1935894637);if(!x||V.getUint32(x.offset+12)!==1667392371)return null;t=C1(V,t.offset+8,1935894633);if(!t)return null;t=C1(V,t.offset+8,1952804451);if(!t)return null;x=new Uint8Array(16);for(var u=0;u<16;u++)x[u]=V.getInt8(t.offset+16+u);return x}; uw=function(V,t){this.J=V;this.pos=0;this.start=t||0}; Zh=function(V){return V.pos>=V.J.byteLength}; fB=function(V,t,x){var u=new uw(x);if(!P_(u,V))return!1;u=KB(u);if(!qv(u,t))return!1;for(V=0;t;)t>>>=8,V++;t=u.start+u.pos;var Z=Rt(u,!0);u=V+(u.start+u.pos-t)+Z;u=u>9?IiK(u-9,8):IiK(u-2,1);V=t-V;x.setUint8(V++,236);for(t=0;tx;Z++)x=x*256+iw(V),u*=128;return t?x-u:x}; bw=function(V){var t=Rt(V,!0);V.pos+=t}; FQK=function(V){if(!qv(V,440786851,!0))return null;var t=V.pos;Rt(V,!1);var x=Rt(V,!0)+V.pos-t;V.pos=t+x;if(!qv(V,408125543,!1))return null;Rt(V,!0);if(!qv(V,357149030,!0))return null;var u=V.pos;Rt(V,!1);var Z=Rt(V,!0)+V.pos-u;V.pos=u+Z;if(!qv(V,374648427,!0))return null;var P=V.pos;Rt(V,!1);var K=Rt(V,!0)+V.pos-P,R=new Uint8Array(x+12+Z+K),f=new DataView(R.buffer);R.set(new Uint8Array(V.J.buffer,V.J.byteOffset+t,x));f.setUint32(x,408125543);f.setUint32(x+4,33554431);f.setUint32(x+8,4294967295); R.set(new Uint8Array(V.J.buffer,V.J.byteOffset+u,Z),x+12);R.set(new Uint8Array(V.J.buffer,V.J.byteOffset+P,K),x+12+Z);return R}; OM=function(V){var t=V.pos;V.pos=0;var x=1E6;P_(V,[408125543,357149030,2807729])&&(x=$L(V));V.pos=t;return x}; M6j=function(V,t){var x=V.pos;V.pos=0;if(V.J.getUint8(V.pos)!==160&&!sM(V)||!qv(V,160))return V.pos=x,NaN;Rt(V,!0);var u=V.pos;if(!qv(V,161))return V.pos=x,NaN;Rt(V,!0);iw(V);var Z=iw(V)<<8|iw(V);V.pos=u;if(!qv(V,155))return V.pos=x,NaN;u=$L(V);V.pos=x;return(Z+u)*t/1E9}; sM=function(V){if(!gYw(V)||!qv(V,524531317))return!1;Rt(V,!0);return!0}; gYw=function(V){if(V.C7()){if(!qv(V,408125543))return!1;Rt(V,!0)}return!0}; P_=function(V,t){for(var x=0;x0){var u=V6s(t.substring(x+1));g.IG(u,function(Z,P){this.set(P,Z)},V); t=t.substring(0,x)}t=wuL(t);g.IG(t,function(Z,P){this.set(P,Z)},V)}; zSC=function(V){var t=V.Kv.dL(),x=[];g.IG(V.J,function(Z,P){x.push(P+"="+Z)}); if(!x.length)return t;var u=x.join("&");V=hvs(V.Kv)?"&":"?";return t+V+u}; pB=function(V,t){var x=new g.vg(t);(t=x.get("req_id"))&&V.set("req_id",t);g.IG(V.J,function(u,Z){x.set(Z,null)}); return x}; Bw9=function(){this.W=this.N=this.J=this.timedOut=this.started=this.G=this.S=0}; A0=function(V){V.G=(0,g.Tu)();V.started=0;V.timedOut=0;V.J=0}; S2=function(V,t){var x=V.started+V.J*4;t&&(x+=V.N);x=Math.max(0,x-3);return Math.pow(1.6,x)}; GS=function(V,t){V[t]||(V[t]=new Bw9);return V[t]}; It=function(V){this.X=this.L=this.G=this.S=0;this.C=this.B=!1;this.J=V;this.N=V.clone()}; mFs=function(V,t,x){if(My(V.J))return!1;var u=GS(x,FU(V.J));if(u.timedOut<1&&u.J<1)return!1;u=u.timedOut+u.J;V=v_(V,t);x=GS(x,FU(V));return x.timedOut+x.J+01?t=t.Jh:(x=GS(x,Fe(V,V.On(t,x),t)),t=Math.max(V.G,x.timedOut)+t.Hz*(V.S-V.G)+.25*V.L,t=t>3?1E3*Math.pow(1.6,t-3):0);return t===0?!0:V.X+t<(0,g.Tu)()}; Y39=function(V,t,x){V.J.set(t,x);V.N.set(t,x);V.W&&V.W.set(t,x)}; QaL=function(V,t,x,u,Z){++V.S;t&&++V.G;FU(x.Kv).startsWith("redirector.")&&(V.J=V.N.clone(),delete V.W,u.Zw&&delete Z[FU(V.J)])}; gL=function(V){return V?(V.itag||"")+";"+(V.lmt||0)+";"+(V.xtags||""):""}; Xe=function(V,t,x,u){this.initRange=x;this.indexRange=u;this.J=null;this.N=!1;this.B=0;this.W=this.Jg=this.S=null;this.info=t;this.zc=new It(V)}; zS=function(V,t){this.start=V;this.end=t;this.length=t-V+1}; B_=function(V){V=V.split("-");var t=Number(V[0]),x=Number(V[1]);if(!isNaN(t)&&!isNaN(x)&&V.length===2&&(V=new zS(t,x),!isNaN(V.start)&&!isNaN(V.end)&&!isNaN(V.length)&&V.length>0))return V}; mu=function(V,t){return new zS(V,V+t-1)}; ai8=function(V){return V.end==null?{start:String(V.start)}:{start:String(V.start),end:String(V.end)}}; YL=function(V){if(!V)return new zS(0,0);var t=Number(V.start);V=Number(V.end);if(!isNaN(t)&&!isNaN(V)&&(t=new zS(t,V),t.length>0))return t}; QY=function(V,t,x,u,Z,P,K,R,f,b,E,k){u=u===void 0?"":u;this.type=V;this.J=t;this.range=x;this.source=u;this.jK=E;this.clipId=k===void 0?"":k;this.L=[];this.G="";this.GU=-1;this.C=this.X=0;this.G=u;this.GU=Z>=0?Z:-1;this.startTime=P||0;this.duration=K||0;this.S=R||0;this.N=f>=0?f:this.range?this.range.length:NaN;this.W=this.range?this.S+this.N===this.range.length:b===void 0?!!this.N:b;this.range?(this.An=this.startTime+this.duration*this.S/this.range.length,this.B=this.duration*this.N/this.range.length, this.LG=this.An+this.B):ru1(this)}; ru1=function(V){V.An=V.startTime;V.B=V.duration;V.LG=V.An+V.B}; Tw1=function(V,t,x){var u=!(!t||t.J!==V.J||t.type!==V.type||t.GU!==V.GU);return x?u&&!!t&&(V.range&&t.range?t.range.end===V.range.end:t.range===V.range)&&t.S+t.N===V.S+V.N:u}; at=function(V){return V.type===1||V.type===2}; rL=function(V){return V.type===3||V.type===6}; TS=function(V,t){return V.J===t.J?V.range&&t.range?V.range.start+V.S+V.N===t.range.start+t.S:V.GU===t.GU?V.S+V.N===t.S:V.GU+1===t.GU&&t.S===0&&V.W:!1}; oY8=function(V,t){return V.GU!==t.GU&&t.GU!==V.GU+1||V.type!==t.type?!1:TS(V,t)?!0:Math.abs(V.An-t.An)<=1E-6&&V.GU===t.GU?!1:WQz(V,t)}; WQz=function(V,t){return TS(V,t)||Math.abs(V.LG-t.An)<=1E-6||V.GU+1===t.GU&&t.S===0&&V.W?!0:!1}; W_=function(V){return V.GU+(V.W?1:0)}; nY9=function(V){V.length===1||g.aQ(V,function(x){return!!x.range}); for(var t=1;t=t.range.start+t.S&&V.range.start+V.S+V.N<=t.range.start+t.S+t.N:V.GU===t.GU&&V.S>=t.S&&(V.S+V.N<=t.S+t.N||t.W)}; DFL=function(V,t){return V.J!==t.J?!1:V.type===4&&t.type===3&&V.J.h9()?(V=V.J.KE(V),oo(V,function(x){return DFL(x,t)})):V.GU===t.GU&&!!t.N&&t.S+t.N>V.S&&t.S+t.N<=V.S+V.N}; nB=function(V,t){var x=t.GU;V.G="updateWithSegmentInfo";V.GU=x;if(V.startTime!==t.startTime||V.duration!==t.duration)V.startTime=t.startTime+V.X,V.duration=t.duration,ru1(V)}; c_=function(V,t){var x=this;this.qP=V;this.W=this.J=null;this.G=this.YE=NaN;this.On=this.requestId=null;this.Wk={d4X:function(){return x.range}}; this.zc=V[0].J.zc;this.S=t||"";this.qP[0].range&&this.qP[0].N>0&&(cuL(V)?(this.range=nY9(V),this.N=this.range.length):(this.range=this.qP[this.qP.length-1].range,this.N=yuT(V)))}; yY=function(V){return!at(V.qP[V.qP.length-1])}; j2=function(V){return V.qP[V.qP.length-1].type===4}; g.lw=function(V,t,x){x=V.On===null?V.zc.On(t,x,V.qP[0].type):V.On;if(V.J){t=x?XU(V.J,t.Ld):V.J;var u=new Nv(t);u.get("alr")||u.set("alr","yes");V.S&&Xbq(u,V.S)}else/http[s]?:\/\//.test(V.S)?u=new Nv(new g.vg(V.S)):(u=LB(V.zc,x,t),V.S&&Xbq(u,V.S));(t=V.range)?u.set("range",t.toString()):V.qP[0].J.QI()&&V.qP.length===1&&V.qP[0].S&&u.set("range",V.qP[0].S+"-");V.requestId&&u.set("req_id",V.requestId);isNaN(V.YE)||u.set("headm",V.YE.toString());isNaN(V.G)||u.set("mffa",V.G+"ms");V.urlParams&&g.IG(V.urlParams, function(Z,P){u.set(P,Z)}); return u}; eS0=function(V){if(V.range)return V.N;V=V.qP[0];return Math.round(V.B*V.J.info.n1)}; dF0=function(V,t){return Math.max(0,V.qP[0].An-t)}; H_=function(V,t,x,u,Z,P){P=P===void 0?0:P;Xe.call(this,V,t,u,void 0);this.G=x;this.o4=P;this.index=Z||new g.mj}; CS0=function(V,t,x,u,Z){this.GU=V;this.startSecs=t;this.To=x;this.J=u||NaN;this.S=Z||NaN}; UM=function(V,t,x){for(;V;V=V.parentNode)if(V.attributes&&(!x||V.nodeName===x)){var u=V.getAttribute(t);if(u)return u}return""}; Dh=function(V,t){for(;V;V=V.parentNode){var x=V.getElementsByTagName(t);if(x.length>0)return x[0]}return null}; JuL=function(V){if(!V)return 0;var t=V.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return t?(Number(t[2])|0)*3600+(Number(t[4])|0)*60+(Number(t[6])|0):Number(V)|0}; hSz=function(V){return V.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?V+"Z":V}; e2=function(){this.J=[];this.S=null;this.B=0;this.N=[];this.G=!1;this.L="";this.W=-1}; wbh=function(V){var t=V.N;V.N=[];return t}; VEC=function(){this.W=[];this.J=null;this.S={};this.N={}}; ZFl=function(V,t){var x=[];t=Array.from(t.getElementsByTagName("SegmentTimeline"));t=g.G(t);for(var u=t.next();!u.done;u=t.next()){u=u.value;var Z=u.parentNode.parentNode,P=null;Z.nodeName==="Period"?P=tEL(V):Z.nodeName==="AdaptationSet"?(Z=Z.getAttribute("id")||Z.getAttribute("mimetype")||"",P=xfh(V,Z)):Z.nodeName==="Representation"&&(Z=Z.getAttribute("id")||"",P=ujL(V,Z));if(P==null)return;P.update(u);g.xz(x,wbh(P))}g.xz(V.W,x);xt8(V.W,function(K){return K.startSecs*1E3+K.J})}; PQs=function(V){V.J&&(V.J.J=[]);g.IG(V.S,function(t){t.J=[]}); g.IG(V.N,function(t){t.J=[]})}; tEL=function(V){V.J||(V.J=new e2);return V.J}; xfh=function(V,t){V.S[t]||(V.S[t]=new e2);return V.S[t]}; ujL=function(V,t){V.N[t]||(V.N[t]=new e2);return V.N[t]}; CB=function(V){var t=V===void 0?{}:V;V=t.o4===void 0?0:t.o4;var x=t.Fu===void 0?!1:t.Fu;var u=t.Po===void 0?0:t.Po;var Z=t.UL===void 0?0:t.UL;var P=t.JY===void 0?Infinity:t.JY;var K=t.oG===void 0?0:t.oG;var R=t.Gk===void 0?!1:t.Gk;t=t.fK===void 0?!1:t.fK;g.mj.call(this);this.AK=this.Nq=-1;this.vG=V;this.Po=u;this.Fu=x;this.UL=Z;this.JY=P;this.oG=K;((this.Gk=R)||isFinite(P)&&this.JY>0)&&x&&dL&&(this.S=!1,this.N="postLive");this.fK=t}; J0=function(V,t){return Rd(V.segments,function(x){return t-x.GU})}; h0=function(V,t,x){x=x===void 0?{}:x;H_.call(this,V,t,"",void 0,void 0,x.o4||0);this.index=new CB(x)}; wL=function(V,t,x){Xe.call(this,V,t);this.G=x;V=this.index=new g.mj;V.S=!1;V.N="d"}; KA1=function(V,t,x){var u=V.index.MJ(t),Z=V.index.getStartTime(t),P=V.index.getDuration(t);x?P=x=0:x=V.info.n1*P;return new c_([new QY(3,V,void 0,"otfCreateRequestInfoForSegment",t,Z,P,0,x)],u)}; qGj=function(V,t){if(!V.index.isLoaded()){var x=[],u=t.W;t=t.G.split(",").filter(function(E){return E.length>0}); for(var Z=0,P=0,K=0,R=/^(\d+)/,f=/r=(\d+)/,b=0;b0&&(t-=V.timestampOffset);var x=g.xU(V)+t;fHK(V,x);V.timestampOffset=t}; fHK=function(V,t){g.uQ(V.info.J.info)||V.info.J.info.JZ();V.N=t;if(g.uQ(V.info.J.info)){var x=V.zk();V=V.info.J.J;for(var u=NaN,Z=NaN,P=0;Jp(x,P);){var K=hp(x,P);isNaN(u)&&(K.type===1936286840?u=K.data.getUint32(K.dataOffset+8):K.type===1836476516&&(u=g.eF(K)));if(K.type===1952867444){!u&&V&&(u=dX(V));var R=g.VY(K);isNaN(Z)&&(Z=Math.round(t*u)-R);var f=K;R+=Z;if(f.data.getUint8(f.dataOffset)){var b=f.data;f=f.dataOffset+4;b.setUint32(f,Math.floor(R/4294967296));b.setUint32(f+4,R&4294967295)}else f.data.setUint32(f.dataOffset+ 4,R)}P=wX(K.type)?P+8:P+K.size}return!0}x=new uw(V.zk());V=V.G?x:new uw(new DataView(V.info.J.J.buffer));u=OM(V);V=x.pos;x.pos=0;if(sM(x)&&qv(x,231))if(Z=Rt(x,!0),t=Math.floor(t*1E9/u),Math.ceil(Math.log(t)/Math.log(2)/8)>Z)t=!1;else{for(u=Z-1;u>=0;u--)x.J.setUint8(x.pos+u,t&255),t>>>=8;x.pos=V;t=!0}else t=!1;return t}; Ze=function(V,t){t=t===void 0?!1:t;var x=ue(V);V=t?0:V.info.B;return x||V}; ue=function(V){g.uQ(V.info.J.info)||V.info.J.info.JZ();if(V.S&&V.info.type===6)return V.S.o4;if(g.uQ(V.info.J.info)){var t=V.zk();var x=0;t=g.xL(t,1936286840);t=g.G(t);for(var u=t.next();!u.done;u=t.next())u=Nw0(u.value),x+=u.My[0]/u.ow;x=x||NaN;if(!(x>=0))a:{x=V.zk();t=V.info.J.J;for(var Z=u=0,P=0;Jp(x,u);){var K=hp(x,u);if(K.type===1836476516)Z=g.eF(K);else if(K.type===1836019558){!Z&&t&&(Z=dX(t));if(!Z){x=NaN;break a}var R=C1(K.data,K.dataOffset,1953653094),f=R;R=Z;var b=C1(f.data,f.dataOffset, 1952868452);f=C1(f.data,f.dataOffset,1953658222);var E=Tt(b);Tt(b);E&2&&Tt(b);b=E&8?Tt(b):0;var k=Tt(f),O=k&1;E=k&4;var N=k&256,p=k&512,I=k&1024;k&=2048;var L=Wg(f);O&&Tt(f);E&&Tt(f);for(var M=O=0;M2048?"":t.indexOf("https://")===0?t:""}; $U=function(V,t,x){t.match(IHT);return V(t,x).then(function(u){var Z=g.GGL(u.xhr);return Z?$U(V,Z,x):u.xhr})}; ie=function(V,t,x){V=V===void 0?"":V;t=t===void 0?null:t;x=x===void 0?!1:x;g.Np.call(this);var u=this;this.sourceUrl=V;this.isLivePlayback=x;this.DS=this.duration=0;this.isPremiere=this.Gk=this.W=this.isLiveHeadPlayable=this.isLive=this.S=!1;this.JY=this.UL=0;this.isOtf=this.uq=!1;this.dk=(0,g.Tu)();this.Ij=Infinity;this.J={};this.N=new Map;this.state=this.A9=0;this.timeline=null;this.isManifestless=!1;this.zU=[];this.B=null;this.cX=0;this.G="";this.Us=NaN;this.Es=this.CI=this.timestampOffset=this.L= 0;this.e0=this.Bv=NaN;this.IC=0;this.xw=this.X=!1;this.BX=[];this.L1={};this.wk=NaN;this.Wk={QnX:function(R){be(u,R)}}; var Z;this.yC=(Z=t)==null?void 0:Z.MP("html5_use_network_error_code_enums");vIK=!!t&&t.MP("html5_modern_vp9_mime_type");var P;Ey=!((P=t)==null||!P.MP("html5_enable_flush_during_seek"))&&g.Vz();var K;kU=!((K=t)==null||!K.MP("html5_enable_reset_audio_decoder"))&&g.Vz()}; LAw=function(V){return g.Fu(V.J,function(t){return!!t.info.video&&t.info.video.J>=2160})}; D94=function(V){return g.Fu(V.J,function(t){return!!t.info.video&&t.info.video.isHdr()})}; sh=function(V){return g.Fu(V.J,function(t){return!!t.info.Pw})}; g.FA4=function(V){return g.Fu(V.J,function(t){return Pq(t.info)})}; ME4=function(V){return g.Fu(V.J,function(t){return t.info.video?t.info.video.projectionType==="EQUIRECTANGULAR":!1})}; gIC=function(V){return g.Fu(V.J,function(t){return t.info.video?t.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; XqC=function(V){return g.Fu(V.J,function(t){return t.info.video?t.info.video.projectionType==="MESH":!1})}; zkj=function(V){return g.Fu(V.J,function(t){return t.info.video?t.info.video.stereoLayout===1:!1})}; BUs=function(V){return UM4(V.J,function(t){return t.info.video?t.Sw():!0})}; kT=function(V){return g.Fu(V.J,function(t){return My(t.zc.J)})}; be=function(V,t){V.J[t.info.id]=t;V.N.set(gL(g.KF(t.info,V.uq)),t)}; mfh=function(V,t){return gL({itag:t.itag,lmt:V.uq?0:t.lmt||0,xtags:t.xtags})}; NV=function(V,t,x){x=x===void 0?0:x;var u=V.mimeType||"",Z=V.itag;var P=V.xtags;Z=Z?Z.toString():"";P&&(Z+=";"+P);P=Z;if(Rl(u)){var K=V.width||640;Z=V.height||360;var R=V.fps,f=V.qualityLabel,b=V.colorInfo,E=V.projectionType,k;V.stereoLayout&&(k=YGC[V.stereoLayout]);var O=AKs(V)||void 0;if(b==null?0:b.primaries)var N=Ql4[b.primaries]||void 0;K=new Di(K,Z,R,E,k,void 0,f,O,N);u=Oy(u,K,C5[V.itag||""]);Ey&&(u+="; enableflushduringseek=true");kU&&(u+="; enableresetaudiodecoder=true")}var p;if(qf(u)){var I= V.audioSampleRate;k=V.audioTrack;I=new lS(I?+I:void 0,V.audioChannels,V.spatialAudioType,V.isDrc,V.loudnessDb,V.trackAbsoluteLoudnessLkfs,V.audioQuality||"AUDIO_QUALITY_UNKNOWN");k&&(N=k.displayName,Z=k.id,k=k.audioIsDefault,N&&(p=new g.fe(N,Z||"",!!k)))}var L;V.captionTrack&&(f=V.captionTrack,k=f.displayName,N=f.vssId,Z=f.languageCode,R=f.kind,f=f.id,k&&N&&Z&&(L=new NUj(k,N,Z,R,V.xtags,f)));k=Number(V.bitrate)/8;N=Number(V.contentLength);Z=Number(V.lastModified);f=V.drmFamilies;R=V.type;x=x&&N?N/ x:0;V=Number(V.approxDurationMs);if(t&&f){var M={};f=g.G(f);for(b=f.next();!b.done;b=f.next())(b=sy[b.value])&&(M[b]=t[b])}return new Ju(P,u,{audio:I,video:K,H$:p,Pw:M,n1:k,n8:x,contentLength:N,lastModified:Z,captionTrack:L,streamType:R,approxDurationMs:V})}; pe=function(V,t,x){x=x===void 0?0:x;var u=V.type;var Z=V.itag;var P=V.xtags;P&&(Z=V.itag+";"+P);if(Rl(u)){var K=(V.size||"640x360").split("x");K=new Di(+K[0],+K[1],+V.fps,V.projection_type,+V.stereo_layout,void 0,V.quality_label,V.eotf,V.primaries);u=Oy(u,K,C5[V.itag]);Ey&&(u+="; enableflushduringseek=true");kU&&(u+="; enableresetaudiodecoder=true")}var R;if(qf(u)){var f=new lS(+V.audio_sample_rate||void 0,+V.audio_channels||0,V.spatial_audio_type,!!V.drc);V.name&&(R=new g.fe(V.name,V.audio_track_id, V.isDefault==="1"))}var b;V.caption_display_name&&V.caption_vss_id&&V.caption_language_code&&(b=new NUj(V.caption_display_name,V.caption_vss_id,V.caption_language_code,V.caption_kind,V.xtags,V.caption_id));P=Number(V.bitrate)/8;var E=Number(V.clen),k=Number(V.lmt);x=x&&E?E/x:0;if(t&&V.drm_families){var O={};for(var N=g.G(V.drm_families.split(",")),p=N.next();!p.done;p=N.next())p=p.value,O[p]=t[p]}return new Ju(Z,u,{audio:f,video:K,H$:R,Pw:O,n1:P,n8:x,contentLength:E,lastModified:k,captionTrack:b, streamType:V.stream_type,approxDurationMs:Number(V.approx_duration_ms)})}; aHj=function(V){return oo(V,function(t){return"FORMAT_STREAM_TYPE_OTF"===t.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; rKs=function(V){return oo(V,function(t){return"FORMAT_STREAM_TYPE_OTF"===t.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; TUj=function(V,t){return V.timeline?uo(V.timeline.W,t):V.zU.length?uo(V.zU,t):[]}; AW=function(V,t,x){t=t===void 0?"":t;x=x===void 0?"":x;V=new g.vg(V,!0);V.set("alr","yes");x&&(x=Ows(decodeURIComponent(x)),V.set(t,encodeURIComponent(x)));return V}; cK8=function(V,t){var x=UM(t,"id");x=x.replace(":",";");var u=UM(t,"mimeType"),Z=UM(t,"codecs");u=Z?u+'; codecs="'+Z+'"':u;Z=Number(UM(t,"bandwidth"))/8;var P=Number(Dh(t,"BaseURL").getAttribute(V.G+":contentLength")),K=V.duration&&P?P/V.duration:0;if(Rl(u)){var R=Number(UM(t,"width"));var f=Number(UM(t,"height")),b=Number(UM(t,"frameRate")),E=WAK(UM(t,V.G+":projectionType"));a:switch(UM(t,V.G+":stereoLayout")){case "layout_left_right":var k=1;break a;case "layout_top_bottom":k=2;break a;default:k= 0}R=new Di(R,f,b,E,k)}if(qf(u)){var O=Number(UM(t,"audioSamplingRate"));var N=Number(UM(t.getElementsByTagName("AudioChannelConfiguration")[0],"value"));f=oIL(UM(t,V.G+":spatialAudioType"));O=new lS(O,N,f);a:{N=UM(t,"lang")||"und";if(f=Dh(t,"Role"))if(E=UM(f,"value")||"",g.zW(nIj,E)){f=N+"."+nIj[E];b=E==="main";V=UM(t,V.G+":langName")||N+" - "+E;N=new g.fe(V,f,b);break a}N=void 0}}if(t=Dh(t,"ContentProtection"))if(t.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var p={};for(t= t.firstChild;t!=null;t=t.nextSibling)t instanceof Element&&/SystemURL/.test(t.nodeName)&&(V=t.getAttribute("type"),f=t.textContent,V&&f&&(p[V]=f.trim()))}else p=void 0;return new Ju(x,u,{audio:O,video:R,H$:N,Pw:p,n1:Z,n8:K,contentLength:P})}; WAK=function(V){switch(V){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"}}; oIL=function(V){switch(V){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"}}; jll=function(V,t){t=t===void 0?"":t;V.state=1;V.dk=(0,g.Tu)();return SGz(t||V.sourceUrl).then(function(x){if(!V.uD()){V.A9=x.status;x=x.responseText;var u=new DOMParser;x=hc(u,Q14(x),"text/xml").getElementsByTagName("MPD")[0];V.Ij=JuL(UM(x,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(x.attributes){u=g.G(x.attributes);for(var Z=u.next();!Z.done;Z=u.next())if(Z=Z.value,Z.value==="http://youtube.com/yt/2012/10/10"){u=Z.name.split(":")[1];break b}}u=""}V.G=u;V.isLive=V.Ij=V.Ij}; HFw=function(V){V.B&&V.B.stop()}; yK9=function(V){var t=V.Ij;isFinite(t)&&(SH(V)?V.refresh():(t=Math.max(0,V.dk+t-(0,g.Tu)()),V.B||(V.B=new g.qK(V.refresh,t,V),g.y(V,V.B)),V.B.start(t)))}; Ufw=function(V){V=V.J;for(var t in V){var x=V[t].index;if(x.isLoaded())return x.C9()+1}return 0}; Gn=function(V){return V.CI?V.CI-(V.L||V.timestampOffset):0}; I$=function(V){return V.Es?V.Es-(V.L||V.timestampOffset):0}; vs=function(V){if(!isNaN(V.Us))return V.Us;var t=V.J,x;for(x in t){var u=t[x].index;if(u.isLoaded()&&!Pq(t[x].info)){t=0;for(x=u.Px();x<=u.C9();x++)t+=u.getDuration(x);t/=u.lw();t=Math.round(t/.5)*.5;u.lw()>10&&(V.Us=t);return t}if(V.isLive&&(u=t[x],u.o4))return u.o4}return NaN}; Dfh=function(V,t){V=eNl(V.J,function(u){return u.index.isLoaded()}); if(!V)return NaN;V=V.index;var x=V.kE(t);return V.getStartTime(x)===t?t:x=0&&Z.segments.splice(P,1)}}}; dfC=function(V){for(var t in V.J)Pq(V.J[t].info)||PSC(V.J[t].index,Infinity)}; MV=function(V,t,x){for(var u in V.J){var Z=V.J[u].index,P=t,K=x;Z.Fu&&(P&&(Z.Nq=Math.max(Z.Nq,P)),K&&(Z.AK=Math.max(Z.AK||0,K)))}x&&(V.wk=x/1E3)}; CQ9=function(V){V.Es=0;V.CI=0;V.IC=0}; gV=function(V){return V.xw&&V.isManifestless?V.isLiveHeadPlayable:V.isLive}; Oy=function(V,t,x){X4===null&&(X4=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(vIK&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return X4||x!=="9"&&x!=="("?X4||x!=="9h"&&x!=="(h"||(V='video/webm; codecs="vp9.2"'):V='video/webm; codecs="vp9"',V;if(!X4&&!zn||V!=='video/webm; codecs="vp9"'&&V!=='video/webm; codecs="vp9.2"')return V; x="00";var u="08",Z="01",P="01",K="01";V==='video/webm; codecs="vp9.2"'&&(x="02",u="10",t.primaries==="bt2020"&&(K=Z="09"),t.S==="smpte2084"&&(P="16"),t.S==="arib-std-b67"&&(P="18"));return'video/webm; codecs="'+["vp09",x,"51",u,"01",Z,P,K,"00"].join(".")+'"'}; m$=function(V,t,x){V=""+V+(t>49?"p60":t>32?"p48":"");t=yJ()[V];if(t!=null&&t>0)return t;t=Bs.get(V);if(t!=null&&t>0)return t;x=x==null?void 0:x.get(V);return x!=null&&x>0?x:8192}; JK0=function(V){this.Yw=V;this.Td=this.ez=this.L1=this.G=this.W=this.wk=this.Tc=this.DS=this.zU=!1;this.SH=this.Yw.T("html5_disable_aac_preference");this.L=this.B=0;this.QC=!1;this.cX=!0;this.HX=!1;this.hQ=0;this.BX=!1;this.Qt=Infinity;this.Uk=!1;this.VP=!0;this.xw=this.dk=!1;this.J={};this.Fc=this.S=this.C=!1;this.Es=0;this.IC=this.disableAv1=this.w6=this.q6=this.gk=!1;this.kX=this.Yw.d6();this.P$=this.Yw.experiments.MP("html5_enable_vp9_fairplay");this.U1=this.Yw.T("html5_force_av1_for_testing"); this.yC=g.S7(this.Yw.experiments,"html5_av1_ordinal_cap");this.o5=this.Yw.T("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Fz=this.Yw.T("html5_account_onesie_format_selection_during_format_filter");this.n1=g.S7(this.Yw.experiments,"html5_max_byterate");this.X=this.Yw.T("html5_sunset_aac_high_codec_family");this.Us=this.Yw.T("html5_sunset_aac_high_codec_family");this.CI=this.Yw.T("html5_enable_iamf_audio");this.r9=this.Yw.experiments.MP("html5_allow_capability_merge");this.Qc=this.Yw.T("html5_prefer_vp9_sfr")}; evl=function(V){if(V.DS)return["f"];var t="9h 9 h 8 (h ( H *".split(" ");V.BX&&(t.unshift("1"),t.unshift("1h"));V.ez&&t.unshift("h");V.Ij&&(t=(hkC[V.Ij]||[V.Ij]).concat(t));return t}; yyL=function(V){var t=["o","a","A"];V.Es===1&&(V.wk&&(t=["m","M"].concat(t)),V.W&&(t=["mac3","MAC3"].concat(t)),V.G&&(t=["meac3","MEAC3"].concat(t)),V.CI&&(t=["i","I"].concat(t)));V.zU&&(t=["so","sa"].concat(t));!V.Td||V.L1||V.N||V.SH||t.unshift("a");V.Tc&&!V.X&&t.unshift("ah");V.N&&(t=(hkC[V.N]||[V.N]).concat(t));return t}; YU=function(V,t,x,u){t=t===void 0?{}:t;if(u===void 0?0:u)return t.disabled=1,0;if(Gt(V.G,IY.AV1_CODECS)&&Gt(V.G,IY.HEIGHT)&&Gt(V.G,IY.BITRATE))return t.isCapabilityUsable=1,8192;try{var Z=LYC();if(Z)return t.localPref=Z}catch(R){}u=1080;Z=navigator.hardwareConcurrency;Z<=2&&(u=480);t.coreCount=Z;if(Z=g.S7(V.experiments,"html5_default_av1_threshold"))u=t["default"]=Z;!V.T("html5_disable_av1_arm_check")&&p20()&&(t.isArm=1,u=240);if(V=V.G.wk)t.mcap=V,u=Math.max(u,V);if(x){var P,K;if(V=(P=x.videoInfos.find(function(R){return V8(R)}))== null?void 0:(K=P.S)==null?void 0:K.powerEfficient)u=8192,t.isEfficient=1; x=x.videoInfos[0].video;P=Math.min(m$("1",x.fps),m$("1",30));t.perfCap=P;u=Math.min(u,P);x.isHdr()&&!V&&(t.hdr=1,u*=.75)}else x=m$("1",30),t.perfCap30=x,u=Math.min(u,x),x=m$("1",60),t.perfCap60=x,u=Math.min(u,x);return t.av1Threshold=u}; QX=function(V,t,x,u){this.flavor=V;this.keySystem=t;this.S=x;this.experiments=u;this.J={};this.DS=this.keySystemAccess=null;this.OW=this.qx=-1;this.Wp=null;this.N=!!u&&u.MP("edge_nonprefixed_eme");u&&u.MP("html5_enable_vp9_fairplay")}; rV=function(V){return V.N?!1:!V.keySystemAccess&&!!a$()&&V.keySystem==="com.microsoft.playready"}; Tn=function(V){return V.keySystem==="com.microsoft.playready"}; Ws=function(V){return!V.keySystemAccess&&!!a$()&&V.keySystem==="com.apple.fps.1_0"}; o$=function(V){return V.keySystem==="com.youtube.fairplay"}; ne=function(V){return V.keySystem==="com.youtube.fairplay.sbdl"}; g.cs=function(V){return V.flavor==="fairplay"}; a$=function(){var V=window,t=V.MSMediaKeys;us()&&!t&&(t=V.WebKitMediaKeys);return t&&t.isTypeSupported?t:null}; jH=function(V){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.oa&&!g.Vz())return aO("45");if(g.u0||g.vk)return V.MP("edge_nonprefixed_eme");if(g.yX)return aO("47");if(g.XM){if(V.MP("html5_enable_safari_fairplay"))return!1;if(V=g.S7(V,"html5_safari_desktop_eme_min_version"))return aO(V)}return!0}; wqL=function(V,t,x,u){var Z=tD(),P=(x=Z||x&&us())?["com.youtube.fairplay"]:["com.widevine.alpha"];t&&P.unshift("com.youtube.widevine.l3");Z&&u&&P.unshift("com.youtube.fairplay.sbdl");return x?P:V?[].concat(g.v(P),g.v(le.playready)):[].concat(g.v(le.playready),g.v(P))}; Uy=function(){this.S=this.Et=0;this.J=Array.from({length:Hs.length}).fill(0)}; VJ1=function(){}; tJh=function(){this.startTimeMs=(0,g.Tu)();this.J=!1}; xu1=function(){this.J=new VJ1}; uE4=function(V,t,x,u){u=u===void 0?1:u;x>=0&&(t in V.J||(V.J[t]=new Uy),V.J[t].jy(x,u))}; ZOz=function(V,t,x,u,Z){var P=(0,g.Tu)(),K=Z?Z(t):void 0,R;Z=(R=K==null?void 0:K.Et)!=null?R:1;if(Z!==0){var f;R=(f=K==null?void 0:K.profile)!=null?f:x;uE4(V,R,P-u,Z)}return t}; De=function(V,t,x,u,Z){if(t&&typeof t==="object"){var P=function(K){return ZOz(V,K,x,u,Z)}; if(b3(t))return t.then(P);if(PgL(t))return sg(t,P)}return ZOz(V,t,x,u,Z)}; KXw=function(){}; eH=function(V,t,x,u,Z){u=u===void 0?!1:u;g.c.call(this);this.Yw=t;this.useCobaltWidevine=u;this.J6=Z;this.S=[];this.N={};this.J={};this.callback=null;this.G=!1;this.W=[];this.initialize(V,!x)}; RD0=function(V,t){V.callback=t;V.W=[];jH(V.Yw.experiments)?dV(V):qcj(V)}; dV=function(V){if(!V.uD())if(V.S.length===0)V.callback(V.W);else{var t=V.S[0],x=V.N[t],u=foT(V,x);if(Ce&&Ce.keySystem===t&&Ce.I08===JSON.stringify(u))V.J6("remksa",{re:!0}),$uq(V,x,Ce.keySystemAccess);else{var Z,P;V.J6("remksa",{re:!1,ok:(P=(Z=Ce)==null?void 0:Z.keySystem)!=null?P:""});Ce=void 0;(JW.isActive()?JW.oH("emereq",function(){return navigator.requestMediaKeySystemAccess(t,u)}):navigator.requestMediaKeySystemAccess(t,u)).then(I_(function(K){$uq(V,x,K,u)}),I_(function(){V.G=!V.G&&V.N[V.S[0]].flavor=== "widevine"; V.G||V.S.shift();dV(V)}))}}}; $uq=function(V,t,x,u){if(!V.uD()){u&&(Ce={keySystem:t.keySystem,keySystemAccess:x,I08:JSON.stringify(u)});t.keySystemAccess=x;if(Tn(t)){x=Tf();u=g.G(Object.keys(V.J[t.flavor]));for(var Z=u.next();!Z.done;Z=u.next())Z=Z.value,t.J[Z]=!!x.canPlayType(Z)}else{x=t.keySystemAccess.getConfiguration();if(x.audioCapabilities)for(u=g.G(x.audioCapabilities),Z=u.next();!Z.done;Z=u.next())bO9(V,t,Z.value);if(x.videoCapabilities)for(x=g.G(x.videoCapabilities),u=x.next();!u.done;u=x.next())bO9(V,t,u.value)}V.W.push(t); V.useCobaltWidevine||V.T("html5_enable_vp9_fairplay")&&ne(t)?(V.S.shift(),dV(V)):V.callback(V.W)}}; bO9=function(V,t,x){V.T("log_robustness_for_drm")?t.J[x.contentType]=x.robustness||!0:t.J[x.contentType]=!0}; foT=function(V,t){var x={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(V.T("html5_enable_vp9_fairplay")&&o$(t))return x.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),x.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[x];Tn(t)&&(x.initDataTypes=["keyids","cenc"]);for(var u=g.G(Object.keys(V.J[t.flavor])),Z=u.next();!Z.done;Z=u.next()){Z=Z.value;var P=Z.indexOf("audio/")===0,K=P?x.audioCapabilities:x.videoCapabilities;t.flavor!== "widevine"||V.G?K.push({contentType:Z}):P?K.push({contentType:Z,robustness:"SW_SECURE_CRYPTO"}):(g.oa&&g.h6("windows nt")&&!V.T("html5_drm_enable_moho")||K.push({contentType:Z,robustness:"HW_SECURE_ALL"}),P=Z,V.T("html5_enable_cobalt_experimental_vp9_decoder")&&Z.includes("vp09")&&(P=Z+"; experimental=allowed"),K.push({contentType:P,robustness:"SW_SECURE_DECODE"}),hW(V.Yw)==="MWEB"&&(fy()||w5())&&(V.J6("swcrypto",{}),K.push({contentType:Z,robustness:"SW_SECURE_CRYPTO"})))}return[x]}; qcj=function(V){if(a$()&&(g.XM||P4&&V.T("html5_drm_support_ios_mweb")))V.W.push(new QX("fairplay","com.apple.fps.1_0","",V.Yw.experiments));else{var t=EJ8(),x=g.ei(V.S,function(u){var Z=V.N[u],P=!1,K=!1,R;for(R in V.J[Z.flavor])t(R,u)&&(Z.J[R]=!0,P=P||R.indexOf("audio/")===0,K=K||R.indexOf("video/")===0);return P&&K}); x&&V.W.push(V.N[x]);V.S=[]}V.callback(V.W)}; EJ8=function(){var V=a$();if(V){var t=V.isTypeSupported;return function(u,Z){return t(Z,u)}}var x=Tf(); return x&&(x.addKey||x.webkitAddKey)?function(u,Z){return!!x.canPlayType(u,Z)}:function(){return!1}}; kO1=function(V){this.experiments=V;this.J=2048;this.W=0;this.zU=(this.L=this.T("html5_streaming_resilience"))?.5:.25;var t=t===void 0?0:t;this.N=g.S7(this.experiments,"html5_media_time_weight_prop")||t;this.wk=g.S7(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.X=(this.G=this.experiments.MP("html5_consider_end_stall"))&&wV;this.S=this.experiments.MP("html5_measure_max_progress_handling");this.C=this.T("html5_treat_requests_pre_elbow_as_metadata");this.B=this.T("html5_media_time_weight")|| !!this.N;this.Ij=g.S7(this.experiments,"html5_streaming_fallback_byterate");this.T("html5_sabr_live_audio_early_return_fix")&&wV&&(this.J=65536)}; iOz=function(V,t){this.J=void 0;this.experimentIds=V?V.split(","):[];this.flags=$c(t||"","&");V={};t=g.G(this.experimentIds);for(var x=t.next();!x.done;x=t.next())V[x.value]=!0;this.experiments=V}; g.S7=function(V,t){V=V.flags[t];JSON.stringify(V);return Number(V)||0}; Vw=function(V,t){return(V=V.flags[t])?V.toString():""}; OOl=function(V){if(V=V.flags.html5_web_po_experiment_ids)if(V=V.replace(/\[ *(.*?) *\]/,"$1"))return V.split(",").map(Number);return[]}; sMC=function(V){if(V.J)return V.J;if(V.experimentIds.length<=1)return V.J=V.experimentIds,V.J;var t=[].concat(g.v(V.experimentIds)).map(function(u){return Number(u)}); t.sort();for(var x=t.length-1;x>0;--x)t[x]-=t[x-1];V.J=t.map(function(u){return u.toString()}); V.J.unshift("v1");return V.J}; pv1=function(V){return NWq.then(V)}; t2=function(V,t,x){this.experiments=V;this.Us=t;this.BX=x===void 0?!1:x;this.Ij=!!g.nl("cast.receiver.platform.canDisplayType");this.C={};this.L=!1;this.S=new Map;this.B=!0;this.N=this.W=!1;this.J=new Map;this.wk=0;this.zU=this.experiments.MP("html5_disable_vp9_encrypted");V=g.nl("cast.receiver.platform.getValue");this.cX=g.S7(this.experiments,"html5_kaios_max_resolution");this.G=!this.Ij&&V&&V("max-video-resolution-vpx")||null;Asj(this)}; Jy1=function(V,t,x){x=x===void 0?1:x;var u=t.itag;if(u==="0")return!0;var Z=t.mimeType;if(t.JZ()&&tD()&&V.experiments.MP("html5_appletv_disable_vp9"))return"dwebm";if(V8(t)&&V.L)return"dav1";if(t.video&&(t.video.isHdr()||t.video.primaries==="bt2020")&&!(Gt(V,IY.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(u==="338"&&!(g.oa?aO(53):g.yX&&aO(64)))return"dopus"; var P;if(V.cX&&xO&&((P=t.video)==null?void 0:P.J)>V.cX)return"kaios";P=x;P=P===void 0?1:P;x={};t.video&&(t.video.width&&(x[IY.WIDTH.name]=t.video.width),t.video.height&&(x[IY.HEIGHT.name]=t.video.height),t.video.fps&&(x[IY.FRAMERATE.name]=t.video.fps*P),t.video.S&&(x[IY.EOTF.name]=t.video.S),t.n1&&(x[IY.BITRATE.name]=t.n1*8*P),t.lD==="("&&(x[IY.CRYPTOBLOCKFORMAT.name]="subsample"),t.video.projectionType==="EQUIRECTANGULAR"||t.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||t.video.projectionType=== "MESH")&&(x[IY.DECODETOTEXTURE.name]="true");t.audio&&t.audio.numChannels&&(x[IY.CHANNELS.name]=t.audio.numChannels);V.W&&hu(t)&&(x[IY.EXPERIMENTAL.name]="allowed");P=g.G(Object.keys(IY));for(var K=P.next();!K.done;K=P.next()){K=IY[K.value];var R;if(R=x[K.name])if(R=!(K===IY.EOTF&&t.mimeType.indexOf("vp09.02")>0)){R=K;var f=t;R=!(V.experiments.MP("html5_ignore_h264_framerate_cap")&&R===IY.FRAMERATE&&$hq(f))}if(R)if(Gt(V,K))if(V.G){if(V.G[K.name]1080&&t.Pw&&(Z+="; hdcp=2.2");return u==="227"?"hqcenc":u!=="585"&&u!=="588"&&u!=="583"&&u!=="586"&&u!=="584"&&u!=="587"&&u!=="591"&&u!=="592"||V.experiments.MP("html5_enable_new_hvc_enc")?V.isTypeSupported(Z)?!0:"tpus":"newhvc"}; ui=function(){var V=w5()&&!aO(29),t=g.h6("google tv")&&g.h6("chrome")&&!aO(30);return V||t?!1:OC8()}; Scl=function(V,t,x){var u=480;t=g.G(t);for(var Z=t.next();!Z.done;Z=t.next()){Z=Z.value;var P=Z.video.J;P<=1080&&P>u&&Jy1(V,Z,x)===!0&&(u=P)}return u}; g.Z1=function(V,t){t=t===void 0?!1:t;return ui()&&V.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!t&&V.canPlayType(Tf(),"application/x-mpegURL")?!0:!1}; IoK=function(V){GOK(function(){for(var t=g.G(Object.keys(IY)),x=t.next();!x.done;x=t.next())Gt(V,IY[x.value])})}; Gt=function(V,t){t.name in V.C||(V.C[t.name]=vJ9(V,t));return V.C[t.name]}; vJ9=function(V,t){if(V.G)return!!V.G[t.name];if(t===IY.BITRATE&&V.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!V.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(t===IY.AV1_CODECS)return V.isTypeSupported("video/mp4; codecs="+t.valid)&&!V.isTypeSupported("video/mp4; codecs="+t.yL);if(t.video){var x='video/webm; codecs="vp9"';V.isTypeSupported(x)||(x='video/mp4; codecs="avc1.4d401e"')}else x='audio/webm; codecs="opus"', V.isTypeSupported(x)||(x='audio/mp4; codecs="mp4a.40.2"');return V.isTypeSupported(x+"; "+t.name+"="+t.valid)&&!V.isTypeSupported(x+"; "+t.name+"="+t.yL)}; LXs=function(V){V.W||(V.W=!0,PK(V))}; PK=function(V){V.N=!0;V.experiments.MP("html5_ssap_update_capabilities_on_change")&&FXC(V)}; MJ1=function(V,t){var x=0;V.S.has(t)&&(x=V.S.get(t).rN);V.S.set(t,{rN:x+1,Lo:Math.pow(2,x+1)});PK(V)}; Ny=function(V){for(var t=[],x=g.G(V.J.keys()),u=x.next();!u.done;u=x.next()){u=u.value;var Z=V.J.get(u);t.push(u+"_"+Z.maxWidth+"_"+Z.maxHeight)}return t.join(".")}; FXC=function(V){V.X=[];for(var t=g.G(V.J.values()),x=t.next();!x.done;x=t.next()){x=x.value;var u=x.lD;V.experiments.MP("html5_ssap_force_mp4_aac")&&u!=="a"&&u!=="h"||V.S.has(u)||(!V.L||u!=="1"&&u!=="1h")&&V.X.push(x)}}; jbC=function(V,t){for(var x=new Map,u=g.G(V.J.keys()),Z=u.next();!Z.done;Z=u.next()){Z=Z.value;var P=Z.split("_")[0];t.has(P)||x.set(Z,V.J.get(Z))}V.J=x}; Hmh=function(V,t,x){var u,Z=((u=x.video)==null?void 0:u.fps)||0;u=t+"_"+Z;var P=!!x.audio,K={itag:x.itag,lD:t,OL:P};if(P)K.numChannels=x.audio.numChannels;else{var R=x.video;K.maxWidth=R==null?void 0:R.width;K.maxHeight=R==null?void 0:R.height;K.maxFramerate=Z;Gt(V,IY.BITRATE)&&(K.maxBitrateBps=x.n1*8);K.s2=R==null?void 0:R.isHdr()}R=V.J.get(u);R?P||(x=Math.max(R.maxWidth||0,R.maxHeight||0)>Math.max(K.maxWidth||0,K.maxHeight||0)?R:K,t={itag:x.itag,lD:t,OL:P,maxWidth:Math.max(R.maxWidth||0,K.maxWidth|| 0),maxHeight:Math.max(R.maxHeight||0,K.maxHeight||0),maxFramerate:Z,s2:x.s2},Gt(V,IY.BITRATE)&&(t.maxBitrateBps=x.maxBitrateBps),V.J.set(u,t)):V.J.set(u,K)}; U9h=function(V,t,x){var u,Z=((u=x.video)==null?void 0:u.fps)||0;u=t+"_"+Z;var P=!!x.audio,K=V.J.get(u);a:{var R=V.J.get(u),f=!!x.audio;if(R){if(f){var b=!1;break a}var E;if(!f&&((b=x.video)==null?0:b.height)&&R.maxHeight&&R.maxHeight>=((E=x.video)==null?void 0:E.height)){b=!1;break a}}b=!0}b&&(b=x.itag,t=K?K:{itag:b,lD:t,OL:P},P?t.numChannels=x.audio.numChannels:(P=x.video,t.maxWidth=P==null?void 0:P.width,t.maxHeight=P==null?void 0:P.height,t.maxFramerate=Z,Gt(V,IY.BITRATE)&&(t.maxBitrateBps=x.n1* 8),t.s2=P==null?void 0:P.isHdr()),V.J.set(u,t))}; Asj=function(V){var t;(t=navigator.mediaCapabilities)!=null&&t.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(x){x.smooth&&x.powerEfficient&&(V.wk=2160)})}; Ko=function(){g.Np.call(this);this.items={}}; ql=function(){g.Bl.apply(this,arguments)}; Rh=function(){g.ms.apply(this,arguments)}; gJz=function(V,t,x){this.encryptedClientKey=t;this.G=x;this.J=new Uint8Array(V.buffer,0,16);this.N=new Uint8Array(V.buffer,16)}; Xv8=function(V){V.S||(V.S=new ql(V.J));return V.S}; fo=function(V){try{return SG(V)}catch(t){return null}}; zDw=function(V,t){if(!t&&V)try{t=JSON.parse(V)}catch(Z){}if(t){V=t.clientKey?fo(t.clientKey):null;var x=t.encryptedClientKey?fo(t.encryptedClientKey):null,u=t.keyExpiresInSeconds?Number(t.keyExpiresInSeconds)*1E3+(0,g.Tu)():null;V&&x&&u&&(this.J=new gJz(V,x,u));t.onesieUstreamerConfig&&(this.onesieUstreamerConfig=fo(t.onesieUstreamerConfig)||void 0);this.baseUrl=t.baseUrl}}; bi=function(){this.data=new Uint8Array(2048);this.pos=0;$O||($O=on("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; EJ=function(V,t){V.add(t==null||isNaN(t)?0:t+1)}; kO=function(V){this.J=this.S=0;this.alpha=Math.exp(Math.log(.5)/V)}; ii=function(V){this.S=V===void 0?15:V;this.values=new Float64Array(176);this.J=new Float64Array(11);this.N=new Float64Array(16)}; OJ=function(V,t,x,u){x=x===void 0?.5:x;u=u===void 0?0:u;this.resolution=t;this.S=0;this.N=!1;this.VM=!0;this.J=Math.round(V*this.resolution);this.values=Array(this.J);for(V=0;V0)t=V.byterate,this.Ij=!0;else{var u; x=(((u=navigator.connection)==null?void 0:u.downlink)||0)*64*1024;x>0&&(t=x,this.Ij=!0)}this.N.x_(this.policy.B,t);V.delay>0&&this.C.x_(1,Math.min(V.delay,2));V.stall>0&&this.L.x_(1,V.stall);V.init>0&&(this.Es=Math.min(V.init,this.Es));V.interruptions&&(this.W=this.W.concat(V.interruptions),this.W.length>16&&this.W.pop());this.wk=(0,g.Tu)();this.policy.L>0&&(this.L1=new g.qK(this.xw,this.policy.L,this),g.y(this,this.L1),this.L1.start())}; Nl=function(V,t,x,u){V.N.x_(u===void 0?t:u,x/t);V.B=(0,g.Tu)()}; mu9=function(V){V.G||(V.G=(0,g.Tu)());V.policy.X&&(V.B=(0,g.Tu)())}; Ycz=function(V,t){if(V.G){var x=t-V.G;if(x<6E4){if(x>1E3){var u=V.interruptions;u.push(Math.ceil(x));u.sort(function(Z,P){return P-Z}); u.length>16&&u.pop()}V.cX+=x}}V.G=t}; po=function(V,t,x,u,Z,P){P=P===void 0?!1:P;V.BX.x_(t,x/t);V.B=(0,g.Tu)();Z||V.X.x_(1,t-u);P||(V.G=0);V.wk>-1&&(0,g.Tu)()-V.wk>3E4&&QMj(V)}; A2=function(V,t,x){t=Math.max(t,V.S.J);V.L.x_(1,x/t)}; SW=function(V){V=V.C.HG()+V.Us.HG()||0;V=isNaN(V)?.5:V;return V=Math.min(V,5)}; Go=function(V,t,x){isNaN(x)||(V.zU+=x);isNaN(t)||(V.dk+=t)}; Ih=function(V){V=V.N.HG();return V>0?V:1}; vK=function(V,t,x){t=t===void 0?!1:t;x=x===void 0?1048576:x;var u=Ih(V);u=1/((V.L.HG()||0)*V.policy.Ij+1/u);var Z=V.BX.HG();Z=Z>0?Z:1;var P=Math.max(u,Z);V.policy.G>0&&Z=4E3}; rs4=function(V){this.experiments=V;this.J=17;this.N=13E4;this.B=.5;this.S=!1;this.wk=this.T("html5_use_histogram_for_bandwidth");this.W=!1;this.G=g.S7(this.experiments,"html5_auxiliary_estimate_weight");this.Ij=g.S7(this.experiments,"html5_stall_factor")||1;this.L=g.S7(this.experiments,"html5_check_for_idle_network_interval_ms");this.C=this.experiments.MP("html5_trigger_loader_when_idle_network");this.X=this.experiments.MP("html5_sabr_fetch_on_idle_network_preloaded_players")}; WXq=function(V,t){V=V===void 0?{}:V;t=t===void 0?{}:t;g.c.call(this);var x=this;this.values=V;this.M4=t;this.S={};this.N=this.J=0;this.W=new g.qK(function(){TWC(x)},1E4); g.y(this,this.W)}; Fy=function(V,t){oJj(V,t);return V.values[t]&&V.M4[t]?V.values[t]/Math.pow(2,V.J/V.M4[t]):0}; oJj=function(V,t){V.values[t]||(t=Sz8(),V.values=t.values||{},V.M4=t.halfLives||{},V.S=t.values?Object.assign({},t.values):{})}; TWC=function(V){var t=Sz8();if(t.values){t=t.values;for(var x={},u=g.G(Object.keys(V.values)),Z=u.next();!Z.done;Z=u.next())Z=Z.value,t[Z]&&V.S[Z]&&(V.values[Z]+=t[Z]-V.S[Z]),x[Z]=Fy(V,Z);V.S=x}t=V.M4;x={};x.values=V.S;x.halfLives=t;g.je("yt-player-memory",x,2592E3)}; li=function(V,t,x,u,Z){g.c.call(this);this.webPlayerContextConfig=t;this.N0=u;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.yd=this.CI=this.HX=this.T9=this.userDisplayName=this.userDisplayImage=this.oa="";this.J={};this.Qt={};this.controlsType="0";this.Fz=NaN;this.Tc=!1;this.CG=(0,g.Tu)();this.kX=0;this.mM=this.Gt=!1;this.IA=!0;this.preferGapless=this.RM=this.a_=this.N=this.Jh=this.Ve=!1;this.IB=[];this.e5=!0;this.IN=!1;V=V?g.rZ(V):{};t&&t.csiPageType&&(this.csiPageType=t.csiPageType); t&&t.csiServiceName&&(this.csiServiceName=t.csiServiceName);t&&t.preferGapless&&(this.preferGapless=t.preferGapless);this.experiments=new iOz(t?t.serializedExperimentIds:V.fexp,t?t.serializedExperimentFlags:V.fflags);this.forcedExperiments=t?t.serializedForcedExperimentIds:O7("",V.forced_experiments)||void 0;this.cspNonce=(t==null?0:t.cspNonce)?t.cspNonce:O7("",V.csp_nonce);this.T("web_player_deprecated_uvr_killswitch");try{var P=document.location.toString()}catch(d){P=""}this.bv=P;this.ancestorOrigins= (u=window.location.ancestorOrigins)?Array.from(u):[];this.W=E7(!1,t?t.isEmbed:V.is_embed);if(t&&t.device){if(u=t.device,u.androidOsExperience&&(this.J.caoe=""+u.androidOsExperience),u.androidPlayServicesVersion&&(this.J.capsv=""+u.androidPlayServicesVersion),u.brand&&(this.J.cbrand=u.brand),u.browser&&(this.J.cbr=u.browser),u.browserVersion&&(this.J.cbrver=u.browserVersion),u.cobaltReleaseVehicle&&(this.J.ccrv=""+u.cobaltReleaseVehicle),this.J.c=u.interfaceName||"WEB",this.J.cver=u.interfaceVersion|| "html5",u.interfaceTheme&&(this.J.ctheme=u.interfaceTheme),this.J.cplayer=u.interfacePlayerType||"UNIPLAYER",u.model&&(this.J.cmodel=u.model),u.network&&(this.J.cnetwork=u.network),u.os&&(this.J.cos=u.os),u.osVersion&&(this.J.cosver=u.osVersion),u.platform&&(this.J.cplatform=u.platform),P=Vw(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),P==="all"||P==="once")u.chipset&&(this.Qt.cchip=u.chipset),u.cobaltAppVersion&&(this.Qt.ccappver=u.cobaltAppVersion),u.firmwareVersion&&(this.Qt.cfrmver= u.firmwareVersion),u.deviceYear&&(this.Qt.crqyear=u.deviceYear)}else this.J.c=V.c||"web",this.J.cver=V.cver||"html5",this.J.cplayer="UNIPLAYER";this.loaderUrl=t?this.W||nJT(this)&&t.loaderUrl?t.loaderUrl||"":this.bv:this.W||nJT(this)&&V.loaderUrl?O7("",V.loaderUrl):this.bv;this.W&&g.o9("yt.embedded_player.embed_url",this.loaderUrl);this.L=Pu(this.loaderUrl,ysL);u=this.loaderUrl;var K=K===void 0?!1:K;this.Lu=Zg(Pu(u,jMq),u,K,"Trusted Ad Domain URL");this.VP=E7(!1,V.privembed);this.protocol=this.bv.indexOf("http:")=== 0?"http":"https";this.cX=Km((t?t.customBaseYoutubeUrl:V.BASE_YT_URL)||"")||Km(this.bv)||this.protocol+"://www.youtube.com/";K=t?t.eventLabel:V.el;u="detailpage";K==="adunit"?u=this.W?"embedded":"detailpage":K==="embedded"||this.L?u=kD(u,K,lo0):K&&(u="embedded");this.BX=u;zFT();K=null;u=t?t.playerStyle:V.ps;P=g.Cr(HOs,u);!u||P&&!this.L||(K=u);this.playerStyle=K;this.B=g.Cr(HOs,this.playerStyle);this.houseBrandUserStatus=t==null?void 0:t.houseBrandUserStatus;this.wk=this.B&&this.playerStyle!=="play"&& this.playerStyle!=="jamboard";this.Bv=!this.wk;this.L1=E7(!1,V.disableplaybackui);this.disablePaidContentOverlay=E7(!1,t==null?void 0:t.disablePaidContentOverlay);this.disableSeek=E7(!1,t==null?void 0:t.disableSeek);this.enableSpeedOptions=(t==null?void 0:t.enableSpeedOptions)||(Tf().defaultPlaybackRate?Ml||g.RV||xO?g.yX&&aO("20")||g.oa&&aO("4")||g.ge&&aO("11")||Zk():!(g.ge&&!g.h6("chrome")||Ml||g.h6("android")||g.h6("silk")):!1);this.Ld=E7(!1,V.enable_faster_speeds);var R;this.supportsVarispeedExtendedFeatures= (R=t==null?void 0:t.supportsVarispeedExtendedFeatures)!=null?R:!1;this.S=E7(this.playerStyle==="blazer",V.is_html5_mobile_device||t&&t.isMobileDevice);this.xw=qU()||fy();this.Ev=this.T("mweb_allow_background_playback")?!1:this.S&&!this.B;this.dk=yr();this.N4=g.Xy;var f;this.Wp=!!(t==null?0:(f=t.embedsHostFlags)==null?0:f.optOutApiDeprecation);var b;this.A8=!!(t==null?0:(b=t.embedsHostFlags)==null?0:b.allowPfpImaIntegration);this.j$=this.T("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list"); var E;t?t.hideInfo!==void 0&&(E=!t.hideInfo):E=V.showinfo;this.Ju=g.zo(this)&&!this.Wp||E7(!BK(this)&&!m8(this)&&!this.B,E);this.zH=t?!!t.mobileIphoneSupportsInlinePlayback:E7(!1,V.playsinline);R=this.S&&YO&&Qw!=null&&Qw>0&&Qw<=2.3;f=t?t.useNativeControls:V.use_native_controls;this.C=g.zo(this)&&this.S;b=this.S&&!this.C;f=g.ah(this)||!R&&E7(b,f)?"3":"1";this.disableOrganicUi=!(t==null||!t.disableOrganicUi);b=t?t.controlsType:V.controls;this.controlsType=this.disableOrganicUi?"0":b!=="0"&&b!==0?f: "0";this.J5=this.S;this.color=kD("red",t?t.progressBarColor:V.color,Uuq);this.Mq=this.controlsType==="3";this.Td=!this.W;this.Sz=(f=!this.Td&&!m8(this)&&!this.wk&&!this.B&&!BK(this))&&!this.Mq&&this.controlsType==="1";this.SH=g.re(this)&&f&&this.controlsType==="0"&&!this.Sz&&!(t==null?0:t.embedsEnableEmc3ds);this.Yl=this.S4=R;this.r9=(this.controlsType==="3"||this.S||E7(!1,V.use_media_volume))&&!this.C;this.w2=P4&&!g.NY(601)?!1:!0;this.iz=this.W||!1;this.gk=m8(this)?"":(this.loaderUrl||V.post_message_origin|| "").substring(0,128);this.widgetReferrer=O7("",t?t.widgetReferrer:V.widget_referrer);var k;t?t.disableCastApi&&(k=!1):k=V.enablecastapi;k=!this.L||E7(!0,k);R=!0;t&&t.disableMdxCast&&(R=!1);this.pc=this.T("enable_cast_for_web_unplugged")&&g.To(this)&&R||g.Dp(this)&&R||k&&R&&this.controlsType==="1"&&!this.S&&(m8(this)||g.re(this)||g.WK(this));this.zg=!!window.document.pictureInPictureEnabled||cb();k=t?!!t.supportsAutoplayOverride:E7(!1,V.autoplayoverride);this.NR=!(this.S&&!g.zo(this))&&!g.h6("nintendo wiiu")|| k;this.Cv=(t?!!t.enableMutedAutoplay:E7(!1,V.mutedautoplay))&&!1;k=(m8(this)||BK(this))&&this.playerStyle==="blazer";this.QN=t?!!t.disableFullscreen:!E7(!0,V.fs);R=g.AD(g.oh(this))&&g.zo(this);this.P$=!this.QN&&(k||g.MU())&&!R;k=w5()&&aO(58)&&!fy();R=xp||typeof MediaSource==="undefined";this.a4=this.T("uniplayer_block_pip")&&(k||R);k=g.zo(this)&&!this.Wp;var O;t?t.disableRelatedVideos!==void 0&&(O=!t.disableRelatedVideos):O=V.rel;this.q6=k||E7(!this.B,O);this.RA=E7(!1,t?t.enableContentOwnerRelatedVideos: V.co_rel);this.X=fy()&&Qw>0&&Qw<=4.4?"_top":"_blank";this.iT=g.WK(this);this.RO=E7(this.playerStyle==="blazer",t?t.enableCsiLogging:V.enablecsi);switch(this.playerStyle){case "blogger":O="bl";break;case "gmail":O="gm";break;case "gac":O="ga";break;case "books":O="gb";break;case "docs":case "flix":O="gd";break;case "duo":O="gu";break;case "google-live":O="gl";break;case "google-one":O="go";break;case "play":O="gp";break;case "chat":O="hc";break;case "hangouts-meet":O="hm";break;case "photos-edu":case "picasaweb":O= "pw";break;default:O="yt"}this.Ij=O;this.zU=O7("",t?t.authorizedUserIndex:V.authuser);this.IC=g.zo(this)&&(this.VP||!sys()||this.xw);var N;t?t.disableWatchLater!==void 0&&(N=!t.disableWatchLater):N=V.showwatchlater;this.o5=((O=!this.IC)||!!this.zU&&O)&&E7(!this.wk,this.L?N:void 0);this.Qc=t?t.isMobileDevice||!!t.disableKeyboardControls:E7(!1,V.disablekb);this.loop=E7(!1,V.loop);this.pageId=O7("",t?t.initialDelegatedSessionId:V.pageid);this.Wo=E7(!0,V.canplaylive);this.QC=E7(!1,V.livemonitor);this.disableSharing= E7(this.B,t?t.disableSharing:V.ss);(N=t&&this.T("fill_video_container_size_override_from_wpcc")?t.videoContainerOverride:V.video_container_override)?(O=N.split("x"),O.length!==2?N=null:(N=Number(O[0]),O=Number(O[1]),N=isNaN(N)||isNaN(O)||N*O<=0?null:new g.AI(N,O))):N=null;this.iP=N;this.mute=t?!!t.startMuted:E7(!1,V.mute);this.storeUserVolume=!this.mute&&E7(this.controlsType!=="0",t?t.storeUserVolume:V.store_user_volume);N=t?t.annotationsLoadPolicy:V.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:kD(void 0,N,no);this.captionsLanguagePreference=t?t.captionsLanguagePreference||"":O7("",V.cc_lang_pref);N=kD(2,t?t.captionsLanguageLoadPolicy:V.cc_load_policy,no);this.controlsType==="3"&&N===2&&(N=3);this.w6=N;this.Fc=t?t.hl||"en_US":O7("en_US",V.hl);this.region=t?t.contentRegion||"US":O7("US",V.cr);this.hostLanguage=t?t.hostLanguage||"en":O7("en",V.host_language);this.Tt=!this.VP&&Math.random()=480;this.schedule=new sJ(R,new kO1(this.experiments),Z);g.y(this,this.schedule);var p;this.enableSafetyMode=(p=t==null?void 0:t.initialEnableSafetyMode)!=null? p:E7(!1,V.enable_safety_mode);Z=this.L1?!1:m8(this)&&this.playerStyle!=="blazer";var I;t?t.disableAutonav!=null&&(I=!t.disableAutonav):I=V.allow_autonav;this.U1=E7(Z,!this.wk&&I);this.sendVisitorIdHeader=t?!!t.sendVisitorIdHeader:E7(!1,V.send_visitor_id_header);var L;this.playerStyle==="docs"&&(t?L=t.disableNativeContextMenu:L=V.disable_native_context_menu);this.disableNativeContextMenu=E7(!1,L);this.Vh=QE(this)&&this.T("enable_skip_intro_button");this.embedConfig=O7("",t?t.serializedEmbedConfig: V.embed_config);this.Us=py(V,g.zo(this));this.N=this.Us==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(t==null||!t.embedsErrorLinks);this.gi=E7(!1,V.full_window);var M;this.DS=!((M=this.webPlayerContextConfig)==null?0:M.chromeless);var z;this.livingRoomAppMode=kD("LIVING_ROOM_APP_MODE_UNSPECIFIED",V.living_room_app_mode||(t==null?void 0:(z=t.device)==null?void 0:z.livingRoomAppMode),duL);var Y;I=is(NaN,t==null?void 0:(Y=t.device)==null?void 0:Y.deviceYear);isNaN(I)||(this.deviceYear=I);this.transparentBackground= t?!!t.transparentBackground:E7(!1,V.transparent_background);this.showMiniplayerButton=t?!!t.showMiniplayerButton:E7(!1,V.show_miniplayer_button);var r;g.zo(this)&&!(t==null?0:(r=t.embedsHostFlags)==null?0:r.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=t?!!t.externalFullscreen:E7(!1,V.external_fullscreen);this.showMiniplayerUiWhenMinimized=t?!!t.showMiniplayerUiWhenMinimized:E7(!1,V.use_miniplayer_ui);var n;this.IA=(n=V.show_loop_video_toggle)!=null?n:!0;this.aH=Math.random()< 1E-4;this.Qd=V.onesie_hot_config||(t==null?0:t.onesieHotConfig)?new zDw(V.onesie_hot_config,t==null?void 0:t.onesieHotConfig):void 0;this.isTectonic=t?!!t.isTectonic:!!V.isTectonic;this.playerCanaryState=x;this.playerCanaryStage=t==null?void 0:t.canaryStage;this.AZ=new WXq;g.y(this,this.AZ);this.Jh=E7(!1,V.force_gvi);this.datasyncId=(t==null?void 0:t.datasyncId)||g.Zc("DATASYNC_ID");this.kS=g.Zc("LOGGED_IN",!1);this.Vd=(t==null?void 0:t.allowWoffleManagement)||!1;this.gj=Infinity;this.eK=NaN;this.livingRoomPoTokenId= t==null?void 0:t.livingRoomPoTokenId;this.T("html5_high_res_logging_always")?this.a_=!0:this.a_=Math.random()*100=0&&V0&&V.aH&&(u.sort(),g.lf(new g.xe("Player client parameters changed after startup",u)));V.userAge=is(V.userAge,t.user_age);V.oa=O7(V.oa,t.user_display_email);V.userDisplayImage=O7(V.userDisplayImage,t.user_display_image);g.Rb(V.userDisplayImage)||(V.userDisplayImage= "");V.userDisplayName=O7(V.userDisplayName,t.user_display_name);V.T9=O7(V.T9,t.user_gender);V.csiPageType=O7(V.csiPageType,t.csi_page_type);V.csiServiceName=O7(V.csiServiceName,t.csi_service_name);V.RO=E7(V.RO,t.enablecsi);V.pageId=O7(V.pageId,t.pageid);if(x=t.enabled_engage_types)V.enabledEngageTypes=new Set(x.split(","));t.living_room_session_po_token&&(V.w1=t.living_room_session_po_token.toString())}; HK=function(V,t){return!V.B&&w5()&&aO(55)&&V.controlsType==="3"&&!t}; g.UJ=function(V){V=cK(V.cX);return V==="www.youtube-nocookie.com"?"www.youtube.com":V}; D1=function(V,t,x){return V.protocol+"://i1.ytimg.com/vi/"+t+"/"+(x||"hqdefault.jpg")}; eW=function(V){return m8(V)&&!g.To(V)}; g.ah=function(V){return V.T("html5_local_playsinline")?P4&&!g.NY(602)&&!("playsInline"in Tf()):P4&&!V.zH||g.h6("nintendo wiiu")?!0:!1}; hW=function(V){return V.J.c}; g.ap=function(V){return/^TVHTML5/.test(hW(V))}; g.de=function(V){return hW(V)==="TVHTML5"}; nJT=function(V){return hW(V)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; eDK=function(V){return V.J.cmodel==="CHROMECAST ULTRA/STEAK"||V.J.cmodel==="CHROMECAST/STEAK"}; g.Co=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; QE=function(V){return/web/i.test(hW(V))}; g.J2=function(V){return hW(V).toUpperCase()==="WEB"}; jW=function(V){return hW(V)==="WEB_KIDS"}; g.To=function(V){return hW(V)==="WEB_UNPLUGGED"}; h2=function(V){return hW(V)==="TVHTML5_UNPLUGGED"}; g.YH=function(V){return g.To(V)||hW(V)==="TV_UNPLUGGED_CAST"||h2(V)}; g.Dp=function(V){return hW(V)==="WEB_REMIX"}; g.we=function(V){return hW(V)==="WEB_EMBEDDED_PLAYER"}; g.tP=function(V){return(V.deviceIsAudioOnly||!g.oa||xp||V.controlsType==="3"?!1:g.RV?V.W&&g.NY(51):!0)||(V.deviceIsAudioOnly||!g.yX||xp||V.controlsType==="3"?!1:g.RV?V.W&&g.NY(48):g.NY(38))||(V.deviceIsAudioOnly||!g.ge||xp||V.controlsType==="3"?!1:g.RV?V.W&&g.NY(37):g.NY(27))||!V.deviceIsAudioOnly&&g.V9&&!GpK()&&g.NY(11)||!V.deviceIsAudioOnly&&g.XM&&g.NY("604.4")}; hDz=function(V){if(g.re(V)&&YO)return!1;if(g.yX){if(!g.NY(47)||!g.NY(52)&&g.NY(51))return!1}else if(g.XM)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; V1j=function(V,t){return V.enabledEngageTypes.has(t.toString())||wvq.includes(t)}; m8=function(V){return V.BX==="detailpage"}; g.re=function(V){return V.BX==="embedded"}; xX=function(V){return V.BX==="leanback"}; BK=function(V){return V.BX==="adunit"||V.playerStyle==="gvn"}; g.WK=function(V){return V.BX==="profilepage"}; g.zo=function(V){return V.W&&g.re(V)&&!BK(V)&&!V.B}; up=function(V){if(!V.userDisplayImage)return"";var t=V.userDisplayImage.split("/");if(t.length===5)return V=t[t.length-1].split("="),V[1]="s20-c",t[t.length-1]=V.join("="),t.join("/");if(t.length===8)return t.splice(7,0,"s20-c"),t.join("/");if(t.length===9)return t[7]+="-s20-c",t.join("/");g.lf(new g.xe("Profile image not a FIFE URL.",V.userDisplayImage));return V.userDisplayImage}; g.Zx=function(V){var t=g.UJ(V);t1j.includes(t)&&(t="www.youtube.com");return V.protocol+"://"+t}; g.Pi=function(V,t){t=t===void 0?"":t;if(V.N0){var x=new xJ,u,Z=V.N0();Z.signedOut?u="":Z.token?u=Z.token:Z.pendingResult.then(function(P){Z.signedOut?x.resolve(""):x.resolve(P.token)},function(P){g.lf(new g.xe("b189348328_oauth_callback_failed",{error:P})); x.resolve(t)}); return u!==void 0?jL(u):new cc(x)}return jL(t)}; cK=function(V){var t=g.lA(V);return(V=Number(g.jO(4,V))||null)?t+":"+V:t}; Ki=function(V,t){t=t===void 0?!1:t;var x=C5[V],u=xCL[x],Z=uWs[V];if(!Z||!u)return null;t=new Di(t?Z.height:Z.width,t?Z.width:Z.height,Z.fps);u=Oy(u,t,x);return new Ju(V,u,{video:t,n1:Z.bitrate/8})}; P_T=function(V){var t=xCL[C5[V]],x=ZZs[V];return x&&t?new Ju(V,t,{audio:new lS(x.audioSampleRate,x.numChannels)}):null}; q0=function(V){this.J=V}; Rg=function(V,t,x,u){if(x)return yA();x={};var Z=Tf();t=g.G(t);for(var P=t.next();!P.done;P=t.next())if(P=P.value,V.canPlayType(Z,P.getInfo().mimeType)||u){var K=P.J.video.quality;if(!x[K]||x[K].getInfo().JZ())x[K]=P}V=[];x.auto&&V.push(x.auto);u=g.G(e6);for(Z=u.next();!Z.done;Z=u.next())(Z=x[Z.value])&&V.push(Z);return V.length?jL(V):yA()}; KJL=function(V){this.itag=V.itag;this.url=V.url;this.codecs=V.codecs;this.width=V.width;this.height=V.height;this.fps=V.fps;this.bitrate=V.bitrate;var t;this.S=((t=V.audioItag)==null?void 0:t.split(","))||[];this.E3=V.E3;this.Pw=V.Pw||"";this.H$=V.H$;this.audioChannels=V.audioChannels;this.J=""}; qP1=function(V,t,x,u){t=t===void 0?!1:t;x=x===void 0?!0:x;u=u===void 0?{}:u;var Z={};V=g.G(V);for(var P=V.next();!P.done;P=V.next()){P=P.value;if(t&&MediaSource&&MediaSource.isTypeSupported){var K=P.type;P.audio_channels&&(K=K+"; channels="+P.audio_channels);if(!MediaSource.isTypeSupported(K)){u[P.itag]="tpus";continue}}if(x||!P.drm_families||P.eotf!=="smpte2084"&&P.eotf!=="arib-std-b67"){K=void 0;var R={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},f=P.type.match(/codecs="([^"]*)"/); f=f?f[1]:"";P.audio_track_id&&(K=new g.fe(P.name,P.audio_track_id,!!P.is_default));var b=P.eotf;P=new KJL({itag:P.itag,url:P.url,codecs:f,width:Number(P.width),height:Number(P.height),fps:Number(P.fps),bitrate:Number(P.bitrate),audioItag:P.audio_itag,E3:b?R[b]:void 0,Pw:P.drm_families,H$:K,audioChannels:Number(P.audio_channels)});Z[P.itag]=Z[P.itag]||[];Z[P.itag].push(P)}else u[P.itag]="enchdr"}return Z}; RCj=function(V,t,x,u,Z){this.N=V;this.S=t;this.G=x;this.cpn=u;this.B=Z;this.W=0;this.J=""}; f9T=function(V,t){V.N.some(function(x){var u;return((u=x.H$)==null?void 0:u.getId())===t}); V.J=t}; fi=function(V,t,x){V.cpn&&(t=g.CX(t,{cpn:V.cpn}));x&&(t=g.CX(t,{paired:x}));return t}; $CT=function(V,t){V=V.itag.toString();t!==null&&(V+=t.itag.toString());return V}; bZ4=function(V){for(var t=[],x=[],u=g.G(V.S),Z=u.next();!Z.done;Z=u.next())Z=Z.value,Z.bitrate<=V.W?t.push(Z):x.push(Z);t.sort(function(P,K){return K.bitrate-P.bitrate}); x.sort(function(P,K){return P.bitrate-K.bitrate}); V.S=t.concat(x)}; $X=function(V,t,x){this.J=V;this.S=t;this.expiration=x;this.zc=null}; EA9=function(V,t){if(!(xp||us()||tD()))return null;V=qP1(t,V.T("html5_filter_fmp4_in_hls"));if(!V)return null;t=[];for(var x={},u=g.G(Object.keys(V)),Z=u.next();!Z.done;Z=u.next()){Z=g.G(V[Z.value]);for(var P=Z.next();!P.done;P=Z.next()){var K=P.value;K.H$&&(P=K.H$.getId(),x[P]||(K=new g.u8(P,K.H$),x[P]=K,t.push(K)))}}return t.length>0?t:null}; Nt8=function(V,t,x,u,Z,P,K){if(!(xp||us()||tD()))return yA();var R={},f=k$K(x),b=qP1(x,V.T("html5_filter_fmp4_in_hls"),V.G.B,R);if(!b)return K({noplst:1}),yA();iZL(b);x={};var E=(x.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",x),k;x=[];var O=[],N=[],p=null,I="";u=u&&u.match(/hls_timedtext_playlist/)?new KJL({itag:"0",url:u,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,H$:new g.fe("English","en",!1)}):null;for(var L=g.G(Object.keys(b)),M=L.next();!M.done;M=L.next())if(M=M.value,!V.T("html5_disable_drm_hfr_1080")|| M!=="383"&&M!=="373"){M=g.G(b[M]);for(var z=M.next();!z.done;z=M.next())if(z=z.value,z.width){for(var Y=g.G(z.S),r=Y.next();!r.done;r=Y.next())if(r=r.value,b[r]){z.J=r;break}z.J||(z.J=OZ0(b,z));if(Y=b[z.J])if(x.push(z),z.Pw==="fairplay"&&(k=E),r="",z.E3==="PQ"?r="smpte2084":z.E3==="HLG"&&(r="arib-std-b67"),r&&(I=r),N.push(sk4(Y,[z],u,P,z.itag,z.width,z.height,z.fps,f,void 0,void 0,k,r)),!p||z.width*z.height*z.fps>p.width*p.height*p.fps)p=z}else O.push(z)}else R[M]="disdrmhfr";N.reduce(function(n, U){return U.getInfo().isEncrypted()&&n},!0)&&(k=E); Z=Math.max(Z,0);E=p||{};b=E.fps===void 0?0:E.fps;p=E.width===void 0?0:E.width;E=E.height===void 0?0:E.height;L=V.T("html5_native_audio_track_switching");N.push(sk4(O,x,u,P,"93",p,E,b,f,"auto",Z,k,I,L));Object.entries(R).length&&K(R);return Rg(V.G,N,HK(V,t),!1)}; sk4=function(V,t,x,u,Z,P,K,R,f,b,E,k,O,N){for(var p=0,I="",L=g.G(V),M=L.next();!M.done;M=L.next())M=M.value,I||(I=M.itag),M.audioChannels&&M.audioChannels>p&&(p=M.audioChannels,I=M.itag);Z=new Ju(Z,"application/x-mpegURL",{audio:new lS(0,p),video:new Di(P,K,R,null,void 0,b,void 0,O),Pw:k,WK:I});V=new RCj(V,t,x?[x]:[],u,!!N);V.W=E?E:1369843;return new $X(Z,V,f)}; k$K=function(V){V=g.G(V);for(var t=V.next();!t.done;t=V.next())if(t=t.value,t.url&&(t=t.url.split("expire/"),!(t.length<=1)))return+t[1].split("/")[0];return NaN}; OZ0=function(V,t){for(var x=g.G(Object.keys(V)),u=x.next();!u.done;u=x.next()){u=u.value;var Z=V[u][0];if(!Z.width&&Z.Pw===t.Pw&&!Z.audioChannels)return u}return""}; iZL=function(V){for(var t=new Set,x=g.G(Object.values(V)),u=x.next();!u.done;u=x.next())u=u.value,u.length&&(u=u[0],u.height&&u.codecs.startsWith("vp09")&&t.add(u.height));x=[];if(t.size){u=g.G(Object.keys(V));for(var Z=u.next();!Z.done;Z=u.next())if(Z=Z.value,V[Z].length){var P=V[Z][0];P.height&&t.has(P.height)&&!P.codecs.startsWith("vp09")&&x.push(Z)}}t=g.G(x);for(x=t.next();!x.done;x=t.next())delete V[x.value]}; bp=function(V,t){this.J=V;this.S=t}; pV8=function(V,t,x,u){var Z=[];x=g.G(x);for(var P=x.next();!P.done;P=x.next()){var K=P.value;if(K.url){P=new g.vg(K.url,!0);if(K.s){var R=P,f=K.sp,b=Ows(decodeURIComponent(K.s));R.set(f,encodeURIComponent(b))}R=g.G(Object.keys(u));for(f=R.next();!f.done;f=R.next())f=f.value,P.set(f,u[f]);K=fF(K.type,K.quality,K.itag,K.width,K.height);Z.push(new bp(K,P))}}return Rg(V.G,Z,HK(V,t),!1)}; Es=function(V,t){this.J=V;this.S=t}; ArK=function(V,t,x){var u=[];x=g.G(x);for(var Z=x.next();!Z.done;Z=x.next())if((Z=Z.value)&&Z.url){var P=fF(Z.type,"medium","0");u.push(new Es(P,Z.url))}return Rg(V.G,u,HK(V,t),!1)}; SP8=function(V,t){var x=[],u=fF(t.type,"auto",t.itag);x.push(new Es(u,t.url));return Rg(V.G,x,!1,!0)}; I9C=function(V){return V&&G$0[V]?G$0[V]:null}; vA0=function(V){if(V=V.commonConfig)this.url=V.url,this.urlQueryOverride=V.urlQueryOverride,V.ustreamerConfig&&(this.h8=fo(V.ustreamerConfig)||void 0)}; LJ8=function(V,t){var x;if(t=t==null?void 0:(x=t.watchEndpointSupportedOnesieConfig)==null?void 0:x.html5PlaybackOnesieConfig)V.H8=new vA0(t)}; g.kX=function(V){V=V===void 0?{}:V;this.languageCode=V.languageCode||"";this.languageName=V.languageName||null;this.kind=V.kind||"";this.name=V.name===void 0?null:V.name;this.displayName=V.displayName||null;this.id=V.id||null;this.J=V.is_servable||!1;this.isTranslateable=V.is_translateable||!1;this.url=V.url||null;this.vssId=V.vss_id||"";this.isDefault=V.is_default||!1;this.translationLanguage=V.translationLanguage||null;this.xtags=V.xtags||"";this.captionId=V.captionId||""}; g.Os=function(V){var t={languageCode:V.languageCode,languageName:V.languageName,displayName:g.ip(V),kind:V.kind,name:V.name,id:V.id,is_servable:V.J,is_default:V.isDefault,is_translateable:V.isTranslateable,vss_id:V.vssId};V.xtags&&(t.xtags=V.xtags);V.captionId&&(t.captionId=V.captionId);V.translationLanguage&&(t.translationLanguage=V.translationLanguage);return t}; g.N0=function(V){return V.translationLanguage?V.translationLanguage.languageCode:V.languageCode}; g.FJ4=function(V){var t=V.vssId;V.translationLanguage&&t&&(t="t"+t+"."+g.N0(V));return t}; g.ip=function(V){var t=[];if(V.displayName)t.push(V.displayName);else{var x=V.languageName||"";t.push(x);V.kind==="asr"&&x.indexOf("(")===-1&&t.push(" (Legendas autom\u00e1ticas)");V.name&&t.push(" - "+V.name)}V.translationLanguage&&t.push(" >> "+V.translationLanguage.languageName);return t.join("")}; zC4=function(V,t,x,u){V||(V=t&&M1K.hasOwnProperty(t)&&gA1.hasOwnProperty(t)?gA1[t]+"_"+M1K[t]:void 0);t=V;if(!t)return null;V=t.match(XVz);if(!V||V.length!==5)return null;if(V=t.match(XVz)){var Z=Number(V[3]),P=[7,8,10,5,6];V=!(Number(V[1])===1&&Z===8)&&P.indexOf(Z)>=0}else V=!1;return x||u||V?t:null}; pi=function(V,t){for(var x={},u=g.G(Object.keys(Bt1)),Z=u.next();!Z.done;Z=u.next()){Z=Z.value;var P=t?t+Z:Z;P=V[P+"_webp"]||V[P];g.Rb(P)&&(x[Bt1[Z]]=P)}return x}; AP=function(V){var t={};if(!V||!V.thumbnails)return t;V=V.thumbnails.filter(function(R){return!!R.url}); V.sort(function(R,f){return R.width-f.width||R.height-f.height}); for(var x=g.G(Object.keys(mC1)),u=x.next();!u.done;u=x.next()){var Z=Number(u.value);u=mC1[Z];for(var P=g.G(V),K=P.next();!K.done;K=P.next())if(K=K.value,K.width>=Z){Z=YP8(K.url);g.Rb(Z)&&(t[u]=Z);break}}(V=V.pop())&&V.width>=1280&&(V=YP8(V.url),g.Rb(V)&&(t["maxresdefault.jpg"]=V));return t}; YP8=function(V){return V.startsWith("//")?"https:"+V:V}; Sk=function(V){return V&&V.baseUrl||""}; GQ=function(V){V=g.i$(V);for(var t=g.G(Object.keys(V)),x=t.next();!x.done;x=t.next()){x=x.value;var u=V[x];V[x]=Array.isArray(u)?u[0]:u}return V}; QkK=function(V,t){V.botguardData=t.playerAttestationRenderer.botguardData;t=t.playerAttestationRenderer.challenge;t!=null&&(V.Gg=t)}; TtT=function(V,t){t=g.G(t);for(var x=t.next();!x.done;x=t.next()){x=x.value;var u=x.interstitials.map(function(K){var R=g.l(K,a9s);if(R)return{is_yto_interstitial:!0,raw_player_response:R};if(K=g.l(K,rrw))return Object.assign({is_yto_interstitial:!0},EQ(K))}); u=g.G(u);for(var Z=u.next();!Z.done;Z=u.next())switch(Z=Z.value,x.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":V.interstitials=V.interstitials.concat({time:0,playerVars:Z,UM:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":V.interstitials=V.interstitials.concat({time:0x7ffffffffffff,playerVars:Z,UM:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var P=Number(x.podConfig.timeToInsertAtMillis);V.interstitials=V.interstitials.concat({time:P,playerVars:Z, UM:P===0?5:7})}}}; WJh=function(V,t){if(t=t.find(function(x){return!(!x||!x.tooltipRenderer)}))V.tooltipRenderer=t.tooltipRenderer}; oAl=function(V,t){t.subscribeCommand&&(V.subscribeCommand=t.subscribeCommand);t.unsubscribeCommand&&(V.unsubscribeCommand=t.unsubscribeCommand);t.addToWatchLaterCommand&&(V.addToWatchLaterCommand=t.addToWatchLaterCommand);t.removeFromWatchLaterCommand&&(V.removeFromWatchLaterCommand=t.removeFromWatchLaterCommand);t.getSharePanelCommand&&(V.getSharePanelCommand=t.getSharePanelCommand)}; nAL=function(V,t){t!=null?(V.HF=t,V.kD=!0):(V.HF="",V.kD=!1)}; Ig=function(V,t){this.type=V||"";this.id=t||""}; g.vi=function(V){return new Ig(V.substring(0,2),V.substring(2))}; g.Li=function(V,t){this.Yw=V;this.author="";this.xb=null;this.playlistLength=0;this.J=this.sessionData=null;this.X={};this.title="";if(t){this.author=t.author||t.playlist_author||"";this.title=t.playlist_title||"";if(V=t.session_data)this.sessionData=$c(V,"&");var x;this.J=((x=t.thumbnail_ids)==null?void 0:x.split(",")[0])||null;this.X=pi(t,"playlist_");this.videoId=t.video_id||void 0;if(x=t.list)switch(t.listType){case "user_uploads":this.playlistId=(new Ig("UU","PLAYER_"+x)).toString();break;default:if(V= t.playlist_length)this.playlistLength=Number(V)||0;this.playlistId=g.vi(x).toString();if(t=t.video)this.videoId=(t[0]||null).video_id||void 0}else t.playlist&&(this.playlistLength=t.playlist.toString().split(",").length)}}; g.Fr=function(V,t){this.Yw=V;this.cN=this.author="";this.xb=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Nh=this.lengthText="";this.sessionData=null;this.X={};this.title="";if(t){this.ariaLabel=t.aria_label||void 0;this.author=t.author||"";this.cN=t.cN||"";if(V=t.endscreen_autoplay_session_data)this.xb=$c(V,"&");this.KM=t.KM;this.isLivePlayback=t.live_playback==="1";this.isUpcoming=!!t.isUpcoming;if(V=t.length_seconds)this.lengthSeconds=typeof V==="string"?Number(V):V;this.lengthText= t.lengthText||"";this.Nh=t.Nh||"";this.publishedTimeText=t.publishedTimeText||void 0;if(V=t.session_data)this.sessionData=$c(V,"&");this.shortViewCount=t.short_view_count_text||void 0;this.X=pi(t);this.title=t.title||"";this.videoId=t.docid||t.video_id||t.videoId||t.id||void 0;this.watchUrl=t.watchUrl||void 0}}; crq=function(V){var t,x,u=(t=V.getWatchNextResponse())==null?void 0:(x=t.contents)==null?void 0:x.twoColumnWatchNextResults,Z,P,K,R,f;V=(Z=V.getWatchNextResponse())==null?void 0:(P=Z.playerOverlays)==null?void 0:(K=P.playerOverlayRenderer)==null?void 0:(R=K.endScreen)==null?void 0:(f=R.watchNextEndScreenRenderer)==null?void 0:f.results;if(!V){var b,E;V=u==null?void 0:(b=u.endScreen)==null?void 0:(E=b.endScreen)==null?void 0:E.results}return V}; g.g8=function(V){var t,x,u;V=g.l((t=V.getWatchNextResponse())==null?void 0:(x=t.playerOverlays)==null?void 0:(u=x.playerOverlayRenderer)==null?void 0:u.decoratedPlayerBarRenderer,M0);return g.l(V==null?void 0:V.playerBar,yrq)}; jkq=function(V){this.J=V.playback_progress_0s_url;this.N=V.playback_progress_2s_url;this.S=V.playback_progress_10s_url}; l91=function(){if(Xr===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(t){}a:{try{var V=!!self.localStorage}catch(t){V=!1}if(V&&(V=g.UU(g.uU()+"::yt-player"))){Xr=new CC(V);break a}Xr=void 0}}return Xr}; g.zQ=function(){var V=l91();if(!V)return{};try{var t=V.get("yt-player-lv");return JSON.parse(t||"{}")}catch(x){return{}}}; g.HZq=function(V){var t=l91();t&&(V=JSON.stringify(V),t.set("yt-player-lv",V))}; g.Bi=function(V){return g.zQ()[V]||0}; g.mr=function(V,t){var x=g.zQ();t!==x[V]&&(t!==0?x[V]=t:delete x[V],g.HZq(x))}; g.YX=function(V){return g.Q(function(t){return t.return(g.wu(UCl(),V))})}; ag=function(V,t,x,u,Z,P,K,R){var f,b,E,k,O,N;return g.Q(function(p){switch(p.J){case 1:return f=g.Bi(V),f===4?p.return(4):g.m(p,g.qR(),2);case 2:b=p.S;if(!b)throw g.Br("wiac");if(!R||K===void 0){p.FX(3);break}return g.m(p,DCq(R,K),4);case 4:K=p.S;case 3:return E=x.lastModified||"0",g.m(p,g.YX(b),5);case 5:return k=p.S,g.AT(p,6),Q9++,g.m(p,g.cr(k,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",LI:!0},function(I){if(P!==void 0&&K!==void 0){var L=""+V+"|"+t.id+"|"+E+"|"+String(P).padStart(10, "0");L=g.yU(I.objectStore("media"),K,L)}else L=g.Ye.resolve(void 0);var M=eCj(V,t.Z8()),z=eCj(V,!t.Z8()),Y={fmts:dC9(u),format:x||{}};M=g.yU(I.objectStore("index"),Y,M);var r=u.downloadedEndTime===-1;Y=r?I.objectStore("index").get(z):g.Ye.resolve(void 0);var n={fmts:"music",format:{}};I=r&&Z&&!t.Z8()?g.yU(I.objectStore("index"),n,z):g.Ye.resolve(void 0);return g.Ye.all([I,Y,L,M]).then(function(U){U=g.G(U);U.next();U=U.next().value;Q9--;var d=g.Bi(V);if(d!==4&&r&&Z||U!==void 0&&g.C_z(U.fmts))d=1,g.mr(V, d);return d})}),8); case 8:return p.return(p.S);case 6:O=g.I9(p);Q9--;N=g.Bi(V);if(N===4)return p.return(N);g.mr(V,4);throw O;}})}; g.Jr4=function(V){var t,x;return g.Q(function(u){if(u.J==1)return g.m(u,g.qR(),2);if(u.J!=3){t=u.S;if(!t)throw g.Br("ri");return g.m(u,g.YX(t),3)}x=u.S;return u.return(g.cr(x,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(Z){var P=IDBKeyRange.bound(V+"|",V+"~");return Z.objectStore("index").getAll(P).then(function(K){return K.map(function(R){return R?R.format:{}})})}))})}; wVw=function(V,t,x,u,Z){var P,K,R;return g.Q(function(f){if(f.J==1)return g.m(f,g.qR(),2);if(f.J!=3){P=f.S;if(!P)throw g.Br("rc");return g.m(f,g.YX(P),3)}K=f.S;R=g.cr(K,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(b){var E=""+V+"|"+t+"|"+x+"|"+String(u).padStart(10,"0");return b.objectStore("media").get(E)}); return Z?f.return(R.then(function(b){if(b===void 0)throw Error("No data from indexDb");return hCL(Z,b)}).catch(function(b){throw new g.xe("Error while reading chunk: "+b.name+", "+b.message); })):f.return(R)})}; g.C_z=function(V){return V?V==="music"?!0:V.includes("dlt=-1")||!V.includes("dlt="):!1}; eCj=function(V,t){return""+V+"|"+(t?"v":"a")}; dC9=function(V){var t={};return b$((t.dlt=V.downloadedEndTime.toString(),t.mket=V.maxKnownEndTime.toString(),t.avbr=V.averageByteRate.toString(),t))}; tlz=function(V){var t={},x={};V=g.G(V);for(var u=V.next();!u.done;u=V.next()){var Z=u.value,P=Z.split("|");Z.match(g.Vlj)?(u=Number(P.pop()),isNaN(u)?x[Z]="?":(P=P.join("|"),(Z=t[P])?(P=Z[Z.length-1],u===P.end+1?P.end=u:Z.push({start:u,end:u})):t[P]=[{start:u,end:u}])):x[Z]="?"}V=g.G(Object.keys(t));for(u=V.next();!u.done;u=V.next())u=u.value,x[u]=t[u].map(function(K){return K.start+"-"+K.end}).join(","); return x}; r8=function(V){g.Np.call(this);this.J=null;this.N=new dy;this.J=null;this.B=new Set;this.crossOrigin=V||""}; x64=function(V,t,x){for(x=TQ(V,x);x>=0;){var u=V.levels[x];if(u.isLoaded(Wi(u,t))&&(u=g.og(u,t)))return u;x--}return g.og(V.levels[0],t)}; Zds=function(V,t,x){x=TQ(V,x);for(var u,Z;x>=0;x--)if(u=V.levels[x],Z=Wi(u,t),!u.isLoaded(Z)){u=V;var P=x,K=P+"-"+Z;u.B.has(K)||(u.B.add(K),u.N.enqueue(P,{Ns:P,oy:Z}))}ui0(V)}; ui0=function(V){if(!V.J&&!V.N.isEmpty()){var t=V.N.remove();V.J=Pnz(V,t)}}; Pnz=function(V,t){var x=document.createElement("img");V.crossOrigin&&(x.crossOrigin=V.crossOrigin);x.src=V.levels[t.Ns].dL(t.oy);x.onload=function(){var u=t.Ns,Z=t.oy;V.J!==null&&(V.J.onload=null,V.J=null);u=V.levels[u];u.loaded.add(Z);ui0(V);var P=u.columns*u.rows;Z*=P;u=Math.min(Z+P-1,u.Pf()-1);Z=[Z,u];V.publish("l",Z[0],Z[1])}; return x}; g.ni=function(V,t,x,u){this.level=V;this.W=t;this.loaded=new Set;this.level=V;this.W=t;V=x.split("#");this.width=Math.floor(Number(V[0]));this.height=Math.floor(Number(V[1]));this.frameCount=Math.floor(Number(V[2]));this.columns=Math.floor(Number(V[3]));this.rows=Math.floor(Number(V[4]));this.J=Math.floor(Number(V[5]));this.N=V[6];this.signature=V[7];this.videoLength=u}; Wi=function(V,t){return Math.floor(t/(V.columns*V.rows))}; g.og=function(V,t){t>=V.ix()&&V.lR();var x=Wi(V,t),u=V.columns*V.rows,Z=t%u;t=Z%V.columns;Z=Math.floor(Z/V.columns);var P=V.lR()+1-u*x;if(P1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; Kb4=function(V,t,x){return(V=V.levels[t])?V.IQ(x):-1}; TQ=function(V,t){var x=V.W.get(t);if(x)return x;x=V.levels.length;for(var u=0;u=t)return V.W.set(t,u),u;V.W.set(t,x-1);return x-1}; y9=function(V,t,x,u){x=x.split("#");x=[x[1],x[2],0,x[3],x[4],-1,x[0],""].join("#");g.ni.call(this,V,t,x,0);this.S=null;this.G=u?2:0}; jk=function(V,t,x,u){ci.call(this,V,0,void 0,t,!(u===void 0||!u));for(V=0;V(x!=null?x:50)&&(x=Odz.shift())&&Ci.delete(x),x=Z),Z!==x&&V.sR("ssei","dcpn_"+Z+"_"+x+"_"+V.clientPlaybackNonce),x)}; Dx=function(V,t){var x=t.raw_watch_next_response;if(!x){var u=t.watch_next_response;u&&(x=JSON.parse(u))}if(x){V.L1=x;var Z=V.L1.playerCueRangeSet;Z&&g.JP(V,Z);var P=V.L1.playerOverlays;if(P){var K=P.playerOverlayRenderer;if(K){var R=K.autonavToggle;R&&(V.autoplaySwitchButtonRenderer=g.l(R,su9),V.T("web_player_autonav_use_server_provided_state")&&hP(V)&&(V.autonavState=V.autoplaySwitchButtonRenderer.enabled?2:1));var f=K.videoDetails;if(f){var b=f.embeddedPlayerOverlayVideoDetailsRenderer;var E=f.playerOverlayVideoDetailsRenderer; E&&(E.title&&(t.title=g.FX(E.title)),E.subtitle&&(t.subtitle=g.FX(E.subtitle)))}g.re(V.Yw)&&(V.o5=!!K.addToMenu);N4q(V,K.shareButton);K.startPosition&&K.endPosition&&(V.progressBarStartPosition=K.startPosition,V.progressBarEndPosition=K.endPosition);var k=K.gatedActionsOverlayRenderer;k&&(V.Dc=g.l(k,pd4));var O,N,p,I=g.l((O=V.getWatchNextResponse())==null?void 0:(N=O.playerOverlays)==null?void 0:(p=N.playerOverlayRenderer)==null?void 0:p.infoPanel,AZw);if(I){V.ED=Number(I==null?void 0:I.durationMs)|| NaN;if(I==null?0:I.infoPanelOverviewViewModel)V.a_=I==null?void 0:I.infoPanelOverviewViewModel;if(I==null?0:I.infoPanelDetailsViewModel)V.gj=I==null?void 0:I.infoPanelDetailsViewModel}V.showSeekingControls=!!K.showSeekingControls}}var L,M,z=(L=V.getWatchNextResponse())==null?void 0:(M=L.contents)==null?void 0:M.twoColumnWatchNextResults;if(z){var Y=z.desktopOverlay&&g.l(z.desktopOverlay,Sp0);Y&&(Y.suppressShareButton&&(V.showShareButton=!1),Y.suppressWatchLaterButton&&(V.o5=!1))}b&&Gsj(V,t,b);var r= is(0,t.autoplay_count),n=V.getWatchNextResponse(),U,d=(U=n.contents)==null?void 0:U.twoColumnWatchNextResults,uL,q1,w,H=(uL=n.playerOverlays)==null?void 0:(q1=uL.playerOverlayRenderer)==null?void 0:(w=q1.autoplay)==null?void 0:w.playerOverlayAutoplayRenderer,C=crq(V),S,D=(S=n.contents)==null?void 0:S.singleColumnWatchNextResults;if(D){var ws;if(((ws=D.autoplay)==null?0:ws.autoplay)&&!D.playlist){var Ic=D.autoplay.autoplay.sets,t_={},gs=new g.Fr(V.K()),Cl=null,uz;if(Ic){for(var Nt=g.G(Ic),F=Nt.next();!F.done;F= Nt.next()){var X=F.value.autoplayVideoRenderer;if(X&&X.compactVideoRenderer){Cl=X.compactVideoRenderer;break}}if(uz=Ic[0].autoplayVideo){var B=uz.clickTrackingParams;B&&(t_.itct=B);t_.autonav="1";t_.playnext=String(r)}}else t_.feature="related-auto";var a=g.l(uz,g.w8);if(Cl){gs.videoId=Cl.videoId;var W=Cl.shortBylineText;W&&(gs.author=g.FX(W));var tT=Cl.title;tT&&(gs.title=g.FX(tT))}else a!=null&&a.videoId&&(gs.videoId=a.videoId);gs.xb=t_;V.suggestions=[];V.sW=gs}}if(C){for(var Pw=[],Kl=g.G(C),T= Kl.next();!T.done;T=Kl.next()){var bL=T.value,s4=void 0,fl=null;if(bL.endScreenVideoRenderer){var mh=bL.endScreenVideoRenderer,E$=mh.title;fl=new g.Fr(V.K());fl.videoId=mh.videoId;fl.lengthSeconds=mh.lengthInSeconds||0;var yn=mh.publishedTimeText;yn&&(fl.publishedTimeText=g.FX(yn));var io=mh.shortBylineText;io&&(fl.author=g.FX(io));var Hw=mh.shortViewCountText;Hw&&(fl.shortViewCount=g.FX(Hw));if(E$){fl.title=g.FX(E$);var nR=E$.accessibility;if(nR){var bF=nR.accessibilityData;bF&&bF.label&&(fl.ariaLabel= bF.label)}}var QW=mh.navigationEndpoint;if(QW){s4=QW.clickTrackingParams;var UY=g.l(QW,g.w8),kE=g.l(QW,g.Uv);UY?fl.KM=UY:kE!=null&&(fl.watchUrl=kE.url)}var yo=mh.thumbnailOverlays;if(yo)for(var ce=g.G(yo),jz=ce.next();!jz.done;jz=ce.next()){var Gw=jz.value.thumbnailOverlayTimeStatusRenderer;if(Gw)if(Gw.style==="LIVE"){fl.isLivePlayback=!0;break}else if(Gw.style==="UPCOMING"){fl.isUpcoming=!0;break}}fl.X=AP(mh.thumbnail)}else if(bL.endScreenPlaylistRenderer){var iG=bL.endScreenPlaylistRenderer,Yv= iG.navigationEndpoint;if(!Yv)continue;var iN=g.l(Yv,g.w8);if(!iN)continue;var Qm=iN.videoId;fl=new g.Li(V.K());fl.playlistId=iG.playlistId;fl.playlistLength=Number(iG.videoCount)||0;fl.J=Qm||null;fl.videoId=Qm;var WY=iG.title;WY&&(fl.title=g.FX(WY));var ox=iG.shortBylineText;ox&&(fl.author=g.FX(ox));s4=Yv.clickTrackingParams;fl.X=AP(iG.thumbnail)}fl&&(s4&&(fl.sessionData={itct:s4}),Pw.push(fl))}V.suggestions=Pw}if(H){V.hN=!!H.preferImmediateRedirect;V.IN=V.IN||!!H.webShowNewAutonavCountdown;V.Jh= V.Jh||!!H.webShowBigThumbnailEndscreen;if(V.IN||V.Jh){var M5=d||null,wl=new g.Fr(V.K());wl.videoId=H.videoId;var lc=H.videoTitle;if(lc){wl.title=g.FX(lc);var Pe=lc.accessibility;if(Pe){var FO=Pe.accessibilityData;FO&&FO.label&&(wl.ariaLabel=FO.label)}}var ea=H.byline;ea&&(wl.author=g.FX(ea));var OA=H.publishedTimeText;OA&&(wl.publishedTimeText=g.FX(OA));var AK=H.shortViewCountText;AK&&(wl.shortViewCount=g.FX(AK));var SE=H.thumbnailOverlays;if(SE)for(var GG=g.G(SE),qo=GG.next();!qo.done;qo=GG.next()){var qs= qo.value.thumbnailOverlayTimeStatusRenderer;if(qs)if(qs.style==="LIVE"){wl.isLivePlayback=!0;break}else if(qs.style==="UPCOMING"){wl.isUpcoming=!0;break}else if(qs.style==="DEFAULT"&&qs.text){wl.lengthText=g.FX(qs.text);var RF=qs.text.accessibility;if(RF){var f4=RF.accessibilityData;f4&&f4.label&&(wl.Nh=f4.label||"")}break}}wl.X=AP(H.background);var Il=H.nextButton;if(Il){var vq=Il.buttonRenderer;if(vq){var LF=vq.navigationEndpoint;if(LF){var Fj=g.l(LF,g.w8);Fj&&(wl.KM=Fj)}}}if(H.topBadges){var Mf= H.topBadges[0];if(Mf){var gU=g.l(Mf,I2w);gU&&gU.style==="BADGE_STYLE_TYPE_PREMIUM"&&(wl.r9w=!0)}}var Wz=H.alternativeTitle;Wz&&(wl.cN=g.FX(Wz));var Ma={autonav:"1",playnext:String(r)};wl.playlistId&&(Ma.autoplay="1");if(M5){var oK,D8,$1,Xj,bY=(oK=M5.autoplay)==null?void 0:(D8=oK.autoplay)==null?void 0:($1=D8.sets)==null?void 0:(Xj=$1[0])==null?void 0:Xj.autoplayVideo;if(bY){var zG=bY.clickTrackingParams;zG&&(Ma.itct=zG);var Er=g.l(bY,g.w8);Er&&(wl.ph=Er)}}else if(H){var Bq,mA,YI,Q8=(Bq=H.nextButton)== null?void 0:(mA=Bq.buttonRenderer)==null?void 0:(YI=mA.navigationEndpoint)==null?void 0:YI.clickTrackingParams;Q8&&(Ma.itct=Q8)}Ma.itct||(Ma.feature="related-auto");wl.xb=Ma;V.suggestions||(V.suggestions=[]);V.sW=wl}H.countDownSecs!=null&&(V.fB=H.countDownSecs*1E3);H.countDownSecsForFullscreen!=null&&(V.uJ=H.countDownSecsForFullscreen>=0?H.countDownSecsForFullscreen*1E3:-1);V.T("web_autonav_color_transition")&&H.watchToWatchTransitionRenderer&&(V.watchToWatchTransitionRenderer=g.l(H.watchToWatchTransitionRenderer, vGj))}var k1=crq(V);if(k1){var al,nN,rU,iY=k1==null?void 0:(al=k1[0])==null?void 0:(nN=al.endScreenVideoRenderer)==null?void 0:(rU=nN.navigationEndpoint)==null?void 0:rU.clickTrackingParams,TG=g.Va(V);iY&&TG&&(TG.sessionData={itct:iY})}V.L1.currentVideoThumbnail&&(V.X=AP(V.L1.currentVideoThumbnail));var Wq,XO,vx,zp,Or,Lg=(Wq=V.L1)==null?void 0:(XO=Wq.contents)==null?void 0:(vx=XO.twoColumnWatchNextResults)==null?void 0:(zp=vx.results)==null?void 0:(Or=zp.results)==null?void 0:Or.contents;if(Lg&&Lg[1]){var F3, MR,ol,Ro,gD=(F3=Lg[1].videoSecondaryInfoRenderer)==null?void 0:(MR=F3.owner)==null?void 0:(ol=MR.videoOwnerRenderer)==null?void 0:(Ro=ol.thumbnail)==null?void 0:Ro.thumbnails;gD&&gD.length&&(V.profilePicture=gD[gD.length-1].url)}var cz=NU(t),nF,n_=(nF=V.getWatchNextResponse())==null?void 0:nF.onResponseReceivedEndpoints;if(n_)for(var cq=g.G(n_),sr=cq.next();!sr.done;sr=cq.next()){var No=sr.value;g.l(No,tM)&&(V.Nt=g.l(No,tM));var fI=g.l(No,Lb4),y8=void 0;if((y8=fI)==null?0:y8.entityKeys)V.SN=fI.entityKeys|| [],fI.visibleOnLoadKeys&&(V.visibleOnLoadKeys=fI.visibleOnLoadKeys)}if(V.T("web_key_moments_markers")){var jQ=g.x8.getState().entities,jE=g.si("visibility_override","markersVisibilityOverrideEntity");var dI=pA(jQ,"markersVisibilityOverrideEntity",jE);V.HX=(dI==null?void 0:dI.videoId)===(V.videoId||cz)&&(dI==null?0:dI.visibilityOverrideMarkersKey)?dI.visibilityOverrideMarkersKey:V.visibleOnLoadKeys;V.visibleOnLoadKeys=[].concat(g.v(V.HX))}}}; hP=function(V){var t;return((t=V.autoplaySwitchButtonRenderer)==null?void 0:t.enabled)!==void 0}; u1=function(V){return!!(V.N&&V.N.videoInfos&&V.N.videoInfos.length)}; g.RK=function(V){var t=V.C;V.T("html5_gapless_unlimit_format_selection")&&ZD(V)&&(t=!1);var x=!!V.J&&V.J.uq,u=V.Yw,Z=V.QH(),P=Pz(V),K=V.Tc,R=t,f=V.isOtf();t=V.Uk();var b=V.QC,E=V.getUserAudio51Preference(),k=KN(V),O=new JK0(u);if(u.d6()||u.T("html5_logging_format_selection"))O.S=!0;O.DS=P;O.Tc=K&&u.L;O.Es=E;g.h6("windows nt 5.1")&&!g.yX&&(O.ez=!0);if(P=Z)P=g.tP(u)?hDz(u):!1;P&&(O.zU=!0);R&&(O.ez=!0,O.Td=!0);f&&!u.T("html5_otf_prefer_vp9")&&(O.ez=!0);u.playerStyle==="picasaweb"&&(f&&(O.ez=!1),O.cX= !1);b&&(O.ez=!0);Gt(u.G,IY.CHANNELS)&&(u.T("html5_enable_aac51")&&(O.wk=!0),u.T("html5_enable_ac3")&&(O.W=!0),u.T("html5_enable_eac3")&&(O.G=!0),u.T("html5_enable_ac3_gapless")&&(O.L1=!0));u.T("html5_block_8k_hfr")&&(O.HX=!0);O.B=g.S7(u.experiments,"html5_max_selectable_quality_ordinal");O.L=g.S7(u.experiments,"html5_min_selectable_quality_ordinal");xO&&(O.Qt=480);if(x||Z)O.cX=!1;O.QC=!1;O.disableAv1=k;x=YU(u,O.J,void 0,O.disableAv1);x>0&&x<2160&&(DH()||u.T("html5_format_hybridization"))&&(O.J.supportsChangeType= +DH(),O.hQ=x);x>=2160&&(O.BX=!0);LYC()&&(O.J.serveVp9OverAv1IfHigherRes=0,O.VP=!1);O.Uk=t;O.xw=g.u0||$D()&&!t?!1:!0;O.C=u.T("html5_format_hybridization");O.Fc=u.T("html5_disable_encrypted_vp9_live_non_2k_4k");qm(V)&&(O.IC=V.T("html5_prefer_language_over_codec"));tD()&&V.playerResponse&&V.playerResponse.playerConfig&&V.playerResponse.playerConfig.webPlayerConfig&&V.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(O.W=!0,O.G=!0);V.C&&V.isAd()&&(V.BO&&(O.Ij=V.BO),V.vO&&(O.N= V.vO));O.dk=V.isLivePlayback&&V.eZ()&&V.Yw.T("html5_drm_live_audio_51");O.w6=V.a6;return V.Ve=O}; KN=function(V){return V.Yw.T("html5_disable_av1")||V.T("html5_gapless_shorts_disable_av1")&&ZD(V)?!0:!1}; FbK=function(V){dq("drm_pb_s",void 0,V.dk);V.DS||V.J&&sh(V.J);var t={};V.J&&(t=TaL(V.Mx,g.RK(V),V.Yw.G,V.J,function(x){return V.publish("ctmp","fmtflt",x)},!0,new Set)); t=new eH(t,V.Yw,V.zJ,V.useCobaltWidevine?tD()?fN(V):!1:!1,function(x,u){V.J6(x,u)}); g.y(V,t);V.Gt=!1;V.loading=!0;RD0(t,function(x){dq("drm_pb_f",void 0,V.dk);for(var u=g.G(x),Z=u.next();!Z.done;Z=u.next())switch(Z=Z.value,Z.flavor){case "fairplay":Z.DS=V.DS;Z.qx=V.qx;Z.OW=V.OW;break;case "widevine":Z.Wp=V.Wp}V.j$=x;if(V.j$.length>0&&(V.G=V.j$[0],V.Yw.d6())){x={};u=g.G(Object.entries(V.G.J));for(Z=u.next();!Z.done;Z=u.next()){var P=g.G(Z.value);Z=P.next().value;P=P.next().value;var K="unk";(Z=Z.match(/(.*)codecs="(.*)"/))&&(K=Z[2]);x[K]=P}V.J6("drmProbe",x)}V.SA()})}; Mlq=function(V,t){if(t.length===0||$8(V))return null;b1(V,"html5_enable_cobalt_experimental_vp9_decoder")&&(zn=!0);var x=V.Pw;var u=V.lengthSeconds,Z=V.isLivePlayback,P=V.Gk,K=V.Yw,R=rKs(t);if(Z||P){K=K.experiments;u=new ie("",K,!0);u.S=!P;u.uq=!0;u.isManifestless=!0;u.isLive=!P;u.Gk=P;t=g.G(t);for(Z=t.next();!Z.done;Z=t.next()){var f=Z.value;Z=NV(f,x);R=zt(f);R=AW(R.Wu||f.url||"",R.Mb,R.s);var b=R.get("id");b&&b.includes("%7E")&&(u.X=!0);var E=void 0;b=(E=K)==null?void 0:E.MP("html5_max_known_end_time_rebase"); E=Number(f.targetDurationSec||5);f=Number(f.maxDvrDurationSec||14400);var k=Number(R.get("mindsq")||R.get("min_sq")||"0"),O=Number(R.get("maxdsq")||R.get("max_sq")||"0")||Infinity;u.UL=u.UL||k;u.JY=u.JY||O;var N=!Pq(Z);R&&be(u,new h0(R,Z,{o4:E,Fu:N,Po:f,UL:k,JY:O,oG:300,Gk:P,fK:b}))}x=u}else if(R==="FORMAT_STREAM_TYPE_OTF"){u=u===void 0?0:u;P=new ie("",K.experiments,!1);P.duration=u||0;K=g.G(t);for(u=K.next();!u.done;u=K.next())u=u.value,t=NV(u,x,P.duration),Z=zt(u),(Z=AW(Z.Wu||u.url||"",Z.Mb,Z.s))&& (t.streamType==="FORMAT_STREAM_TYPE_OTF"?be(P,new wL(Z,t,"sq/0")):be(P,new R$(Z,t,YL(u.initRange),YL(u.indexRange))));P.isOtf=!0;x=P}else{u=u===void 0?0:u;P=new ie("",K.experiments,!1);P.duration=u||0;K=g.G(t);for(u=K.next();!u.done;u=K.next())R=u.value,u=NV(R,x,P.duration),t=YL(R.initRange),Z=YL(R.indexRange),b=zt(R),(R=AW(b.Wu||R.url||"",b.Mb,b.s))&&be(P,new R$(R,u,t,Z));x=P}P=V.isLivePlayback&&!V.Gk&&!V.BX&&!V.isPremiere;V.T("html5_live_head_playable")&&(!Ej(V)&&P&&V.J6("missingLiveHeadPlayable", {}),V.Yw.Ij==="yt"&&(x.xw=!0));return x}; $8=function(V){return tD()?!fN(V):us()?!(!V.DS||!V.T("html5_enable_safari_fairplay")&&ui()):!1}; fN=function(V){return V.T("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.JP=function(V,t){t=g.G(t);for(var x=t.next();!x.done;x=t.next())if(x=x.value,x.cueRangeSetIdentifier){var u=void 0;V.tI.set(x.cueRangeSetIdentifier,(u=x.playerCueRanges)!=null?u:[])}}; k8=function(V){return!(!V.J||!V.J.isManifestless)}; i1=function(V){return V.Td?V.isLowLatencyLiveStream&&V.J!=null&&vs(V.J)>=5:V.isLowLatencyLiveStream&&V.J!=void 0&&vs(V.J)>=5}; gGs=function(V){return tD()&&fN(V)?!1:$8(V)&&(g.YH(V.Yw)?!V.isLivePlayback:V.hlsvp)||!ui()||V.s_?!0:!1}; B4j=function(V){V.loading=!0;V.qf=!1;if(XdC(V))g.Jr4(V.videoId).then(function(u){zBl(V,u)}).then(function(){V.SA()}); else{q9(V.VP)||g.lf(new g.xe("DASH MPD Origin invalid: ",V.VP));var t=V.VP,x=g.S7(V.Yw.experiments,"dash_manifest_version")||4;t=g.CX(t,{mpd_version:x});V.isLowLatencyLiveStream&&V.latencyClass!=="NORMAL"||(t=g.CX(t,{pacing:0}));lHq(t,V.Yw.experiments,V.isLivePlayback).then(function(u){V.uD()||(Oj(V,u,!0),dq("mrc",void 0,V.dk),V.SA())},function(u){V.uD()||(V.loading=!1,V.publish("dataloaderror",new Qr("manifest.net.retryexhausted",{backend:"manifest", rc:u.status},1)))}); dq("mrs",void 0,V.dk)}}; zBl=function(V,t){var x=t.map(function(f){return f.itag}),u; if((u=V.playerResponse)!=null&&u.streamingData){u=[];if(V.T("html5_offline_always_use_local_formats")){x=0;for(var Z=g.G(t),P=Z.next();!P.done;P=Z.next()){P=P.value;var K=Object.assign({},P);K.signatureCipher="";u.push(K);K=g.G(V.playerResponse.streamingData.adaptiveFormats);for(var R=K.next();!R.done;R=K.next())if(R=R.value,P.itag===R.itag&&P.xtags===R.xtags){x+=1;break}}xE&&(E=N.getInfo().audio.numChannels)}E>2&&V.J6("hlschl",{mn:E});var L;((L=V.Ve)==null?0:L.S)&&V.J6("hlsfmtaf",{itags:k.join(".")});var M;if(V.T("html5_enable_vp9_fairplay")&&((M=V.G)==null?0:ne(M)))for(V.J6("drm",{sbdlfbk:1}),E=g.G(V.j$),k=E.next();!k.done;k=E.next())if(k=k.value,o$(k)){V.G=k;break}AM(V,b)})}return yA()}; rZq=function(V){if(V.isExternallyHostedPodcast&&V.w1){var t=pN(V.w1);if(!t[0])return yA();V.T8=t[0];return SP8(V.Yw,t[0]).then(function(x){AM(V,x)})}return V.mM&&V.RZ?ArK(V.Yw,V.isAd(),V.mM).then(function(x){AM(V,x)}):yA()}; Wb8=function(V){if(V.isExternallyHostedPodcast)return yA();var t=pN(V.w1,V.pL);if(V.hlsvp){var x=qp9(V.hlsvp,V.clientPlaybackNonce,V.Fz);t.push(x)}return pV8(V.Yw,V.isAd(),t,T4C(V)).then(function(u){AM(V,u)})}; Yp4=function(V,t){V.N=t;if(V.N){t=g.G(V.N.videoInfos);for(var x=t.next();!x.done;x=t.next()){x=x.value;var u=x.containerType;u!==0&&(V.bJ[u]=x.id)}}SQ(V);if(V.G&&V.N&&V.N.videoInfos&&!(V.N.videoInfos.length<=0)&&(t=ZH(V.N.videoInfos[0]),V.G.flavor==="fairplay"!==t))for(x=g.G(V.j$),u=x.next();!u.done;u=x.next())if(u=u.value,t===(u.flavor==="fairplay")){V.G=u;break}}; AM=function(V,t){V.q6=t;Yp4(V,new b8(g.QV(V.q6,function(x){return x.getInfo()})))}; T4C=function(V){var t={cpn:V.clientPlaybackNonce,c:V.Yw.J.c,cver:V.Yw.J.cver};V.Ic&&(t.ptk=V.Ic,t.oid=V.zr,t.ptchn=V.Wj,t.pltype=V.Yn,V.p8&&(t.m=V.p8));return t}; g.GD=function(V){return $8(V)&&V.DS?(V={},V.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",V):V.S&&V.S.Pw||null}; oG4=function(V){var t=IK(V);return t&&t.text?g.FX(t.text):V.paidContentOverlayText}; nGh=function(V){var t=IK(V);return t&&t.durationMs?Z8(t.durationMs):V.paidContentOverlayDurationMs}; IK=function(V){var t,x,u;return V.playerResponse&&V.playerResponse.paidContentOverlay&&V.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.l((t=V.L1)==null?void 0:(x=t.playerOverlays)==null?void 0:(u=x.playerOverlayRenderer)==null?void 0:u.playerDisclosure,cZh)||null}; vz=function(V){var t="";if(V.b$)return V.b$;V.isLivePlayback&&(t=V.allowLiveDvr?"dvr":V.isPremiere?"lp":V.BX?"window":"live");V.Gk&&(t="post");return t}; g.LN=function(V,t){return typeof V.keywords[t]!=="string"?null:V.keywords[t]}; yZq=function(V){return!!V.Vd||!!V.s3||!!V.HH||!!V.Oz||V.df||V.L.focEnabled||V.L.rmktEnabled}; g.FL=function(V){return!!(V.VP||V.w1||V.mM||V.hlsvp||V.yI())}; Us=function(V){if(V.T("html5_onesie")&&V.errorCode)return!1;var t=g.Cr(V.cX,"ypc");V.ypcPreview&&(t=!1);return V.s1()&&!V.loading&&(g.FL(V)||g.Cr(V.cX,"heartbeat")||t)}; pN=function(V,t){V=kc(V);var x={};if(t){t=g.G(t.split(","));for(var u=t.next();!u.done;u=t.next())(u=u.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(x[u[1]]={width:u[2],height:u[3]})}t=g.G(V);for(u=t.next();!u.done;u=t.next()){u=u.value;var Z=x[u.itag];Z&&(u.width=Z.width,u.height=Z.height)}return V}; SQ=function(V){var t=V.getAvailableAudioTracks();t=t.concat(V.n6);for(var x=0;x0:t||V.adFormat!=="17_8"||V.isAutonav||g.we(V.Yw)||V.S$?V.Qc?!1:V.Yw.NR||V.Yw.Cv||!g.zo(V.Yw)?!t&&TD(V)==="adunit"&&V.Vd?!1:!0:!1:!1:(V.Qc?0:V.bv)&&g.zo(V.Yw)?!0:!1;V.T("html5_log_detailpage_autoplay")&&TD(V)==="detailpage"&&V.J6("autoplay_info",{autoplay:V.Te,autonav:V.isAutonav,wasDompaused:V.Qc,result:t});return t}; g.DD=function(V){return V.oauthToken||V.Yw.yd}; tr9=function(V){if(V.T("html5_stateful_audio_normalization")){var t=1,x=g.S7(V.Yw.experiments,"html5_default_ad_gain");x&&V.isAd()&&(t=x);var u;if(x=((u=V.W)==null?void 0:u.audio.S)||V.Pd){u=(0,g.Tu)();V.Ld=2;var Z=u-V.Yw.eK<=V.maxStatefulTimeThresholdSec*1E3;V.applyStatefulNormalization&&Z?V.Ld=4:Z||(V.Yw.gj=Infinity,V.Yw.eK=NaN);Z=(V.Ld===4?g.EY(V.Yw.gj,V.minimumLoudnessTargetLkfs,V.loudnessTargetLkfs):V.loudnessTargetLkfs)-x;if(V.Ld!==4){var P,K,R,f,b=((P=V.playerResponse)==null?void 0:(K=P.playerConfig)== null?void 0:(R=K.audioConfig)==null?void 0:(f=R.loudnessNormalizationConfig)==null?void 0:f.statelessLoudnessAdjustmentGain)||0;Z+=b}Z=Math.min(Z,0);V.preserveStatefulLoudnessTarget&&(V.Yw.gj=x+Z,V.Yw.eK=u);V=Math.min(1,Math.pow(10,Z/20))||t}else V=Vrh(V)}else V=Vrh(V);return V}; Vrh=function(V){var t=1,x=g.S7(V.Yw.experiments,"html5_default_ad_gain");x&&V.isAd()&&(t=x);var u;if(x=((u=V.W)==null?void 0:u.audio.N)||V.a4)V.Ld=1;return Math.min(1,Math.pow(10,-x/20))||t}; Pz=function(V){var t=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],x=hW(V.Yw)==="TVHTML5_SIMPLY"&&V.Yw.J.ctheme==="MUSIC";V.iT||!g.Dp(V.Yw)&&!x||!t.includes(V.musicVideoType)&&!V.isExternallyHostedPodcast||(V.iT=!0);if(t=g.Vz())t=/Starboard\/([0-9]+)/.exec(g.zY()),t=(t?parseInt(t[1],10):NaN)<10;x=V.Yw;x=(hW(x)==="TVHTML5_CAST"||hW(x)==="TVHTML5"&&(x.J.cver.startsWith("6.20130725")||x.J.cver.startsWith("6.20130726")))&&V.Yw.J.ctheme==="MUSIC";var u;if(u=!V.iT)x||(x=V.Yw,x=hW(x)=== "TVHTML5"&&x.J.cver.startsWith("7")),u=x;u&&!t&&(t=V.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",x=(V.T("cast_prefer_audio_only_for_atv_and_uploads")||V.T("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&V.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",t||x||V.isExternallyHostedPodcast)&&(V.iT=!0);return V.Yw.deviceIsAudioOnly||V.iT&&V.Yw.L}; eQ=function(V){var t,x,u;return!!((t=V.playerResponse)==null?0:(x=t.playerConfig)==null?0:(u=x.mediaCommonConfig)==null?0:u.splitScreenEligible)}; d3=function(V){var t;return!((t=V.playerResponse)==null||!t.compositePlayabilityStatus)}; xb0=function(V){return isNaN(V)?0:Math.max((Date.now()-V)/1E3-30,0)}; CN=function(V){return!(!V.Sz||!V.Yw.L)&&V.yI()}; ux9=function(V){return V.enablePreroll&&V.enableServerStitchedDai}; Zn1=function(V){return V.T("html5_enable_sabr_from_watch_server")&&V.yu&&!V.rj}; qm=function(V){var t=V.T("html5_enable_sabr_on_drive")&&V.Yw.Ij==="gd";if(V.Z4)return V.T("html5_enable_sabr_from_watch_server")&&V.J6("fds",{fds:!0},!0),!1;if(V.Yw.Ij!=="yt"&&!t)return V.T("html5_enable_sabr_from_watch_server")&&V.J6("dsvn",{ns:V.Yw.Ij},!0),!1;if(V.cotn||!V.J||V.J.isOtf||V.wW&&!V.T("html5_enable_sabr_csdai"))return!1;if(V.T("html5_use_sabr_requests_for_debugging"))return!0;if(V.T("html5_enable_sabr_from_watch_server")){t=V.yu&&!!V.rj;V.J6("esfw",{usbc:V.yu,hsu:!!V.rj},!0);if(!V.T("html5_combine_client_check_for_sabr"))return t; if(t)return!0;V.sR("sabr","esfc")}var x=!V.J.uq&&!V.eZ();t=x&&wV&&V.T("html5_enable_sabr_vod_streaming_xhr");x=x&&!wV&&V.T("html5_enable_sabr_vod_non_streaming_xhr");var u=g.JM(V),Z=V.T("html5_enable_sabr_drm_vod_streaming_xhr")&&wV&&V.eZ()&&!V.J.uq&&(V.kS==="1"?!1:!0);(t=t||x||u||Z)&&!V.rj&&V.J6("sabr",{loc:"m"},!0);return t&&!!V.rj}; g.JM=function(V){var t;if(!(t=wV&&V.uq()&&V.eZ()&&(V.kS==="1"?!1:!0)&&V.T("html5_sabr_live_drm_streaming_xhr"))){t=V.uq()&&!V.eZ()&&wV;var x=V.uq()&&V.latencyClass!=="ULTRALOW"&&!V.isLowLatencyLiveStream&&V.T("html5_sabr_live_normal_latency_streaming_xhr"),u=V.isLowLatencyLiveStream&&V.T("html5_sabr_live_low_latency_streaming_xhr"),Z=V.latencyClass==="ULTRALOW"&&V.T("html5_sabr_live_ultra_low_latency_streaming_xhr");t=t&&(x||u||Z)}x=t;t=V.enableServerStitchedDai&&x&&V.T("html5_enable_sabr_ssdai_streaming_xhr"); x=!V.enableServerStitchedDai&&x;u=V.uq()&&!wV&&V.T("html5_enable_sabr_live_non_streaming_xhr");V=wV&&(V.R_()||eQ(V)&&V.T("html5_enable_sabr_for_lifa_eligible_streams"));return t||x||u||V}; g.d8=function(V){return V.xL&&qm(V)}; XdC=function(V){var t;if(t=!!V.cotn)t=V.videoId,t=!!t&&g.Bi(t)===1;return t&&!V.Sz}; g.hM=function(V){if(!V.J||!V.S||!V.W)return!1;var t=V.J.J,x=!!t[V.S.id]&&My(t[V.S.id].zc.J);t=!!t[V.W.id]&&My(t[V.W.id].zc.J);return(V.S.itag==="0"||x)&&t}; w3=function(V){return V.t$?["OK","LIVE_STREAM_OFFLINE"].includes(V.t$.status):!0}; D6L=function(V){return(V=V.IA)&&V.showError?V.showError:!1}; b1=function(V,t){return V.T(t)?!0:(V.fflags||"").includes(t+"=true")}; PJ8=function(V){return V.T("html5_heartbeat_iff_heartbeat_params_filled")}; idl=function(V,t){t.inlineMetricEnabled&&(V.inlineMetricEnabled=!0);t.playback_progress_0s_url&&(V.Oz=new jkq(t));if(t=t.video_masthead_ad_quartile_urls)V.s3=t.quartile_0_url,V.u2=t.quartile_25_url,V.vj=t.quartile_50_url,V.Bj=t.quartile_75_url,V.Ew=t.quartile_100_url,V.HH=t.quartile_0_urls,V.NL=t.quartile_25_urls,V.WR=t.quartile_50_urls,V.Yu=t.quartile_75_urls,V.wx=t.quartile_100_urls}; ks1=function(V){var t={};V=g.G(V);for(var x=V.next();!x.done;x=V.next()){x=x.value;var u=x.split("=");u.length===2?t[u[0]]=u[1]:t[x]=!0}return t}; $6q=function(V){if(V){if(Voh(V))return V;V=tow(V);if(Voh(V,!0))return V}return""}; g.KOw=function(V){return V.captionsLanguagePreference||V.Yw.captionsLanguagePreference||g.LN(V,"yt:cc_default_lang")||V.Yw.Fc}; V1=function(V){return!(!V.isLivePlayback||!V.hasProgressBarBoundaries())}; g.Va=function(V){var t;return V.sW||((t=V.suggestions)==null?void 0:t[0])||null}; g.th=function(V){return V.kD&&(V.T("embeds_enable_pfp_always_unbranded")||V.Yw.A8)}; x2=function(V,t){V.T("html5_log_autoplay_src")&&ZD(V)&&V.J6("apsrc",{src:t})}; g.uu=function(V){var t,x;return!!((t=V.embeddedPlayerConfig)==null?0:(x=t.embeddedPlayerFlags)==null?0:x.enableMusicUx)}; g.PL=function(V){var t=V.K(),x=g.Zf(t),u=t.gk;(t.T("embeds_web_enable_iframe_api_send_full_embed_url")||t.T("embeds_web_enable_rcat_validation_in_havs")||t.T("embeds_enable_autoplay_and_visibility_signals"))&&g.re(t)&&(u&&(x.thirdParty=Object.assign({},x.thirdParty,{embedUrl:u})),gHl(x,V));if(u=V.Us)x.clickTracking={clickTrackingParams:u};u=x.client||{};var Z="EMBED",P=TD(V);P==="leanback"?Z="WATCH":t.T("gvi_channel_client_screen")&&P==="profilepage"?Z="CHANNEL":V.QC?Z="LIVE_MONITOR":P==="detailpage"? Z="WATCH_FULL_SCREEN":P==="adunit"?Z="ADUNIT":P==="sponsorshipsoffer"&&(Z="UNKNOWN");u.clientScreen=Z;if(t=V.kidsAppInfo)u.kidsAppInfo=JSON.parse(t);(Z=V.Tt)&&!t&&(u.kidsAppInfo={contentSettings:{ageUpMode:qZl[Z]}});if(t=V.s0)u.unpluggedAppInfo={enableFilterMode:!0};(Z=V.unpluggedFilterModeType)&&!t&&(u.unpluggedAppInfo={filterModeType:ROz[Z]});if(t=V.Ij)u.unpluggedLocationInfo=t;x.client=u;u=x.request||{};V.r9&&(u.isPrefetch=!0);if(t=V.mdxEnvironment)u.mdxEnvironment=t;if(t=V.mdxControlMode)u.mdxControlMode= fb4[t];x.request=u;u=x.user||{};if(t=V.wk)u.credentialTransferTokens=[{token:t,scope:"VIDEO"}];if(t=V.gk)u.delegatePurchases={oauthToken:t},u.kidsParent={oauthToken:t};x.user=u;if(u=V.contextParams)x.activePlayers=[{playerContextParams:u}];if(V=V.clientScreenNonce)x.clientScreenNonce=V;return x}; g.Zf=function(V){var t=g.K4(),x=t.client||{};if(V.forcedExperiments){var u=V.forcedExperiments.split(","),Z=[];u=g.G(u);for(var P=u.next();!P.done;P=u.next())Z.push(Number(P.value));x.experimentIds=Z}if(Z=V.homeGroupInfo)x.homeGroupInfo=JSON.parse(Z);if(Z=V.getPlayerType())x.playerType=Z;if(Z=V.J.ctheme)x.theme=Z;if(Z=V.livingRoomAppMode)x.tvAppInfo=Object.assign({},x.tvAppInfo,{livingRoomAppMode:Z});Z=V.deviceYear;V.T("html5_propagate_device_year")&&Z&&(x.tvAppInfo=Object.assign({},x.tvAppInfo,{deviceYear:Z})); if(Z=V.livingRoomPoTokenId)x.tvAppInfo=Object.assign({},x.tvAppInfo,{livingRoomPoTokenId:Z});t.client=x;x=t.user||{};V.enableSafetyMode&&(x=Object.assign({},x,{enableSafetyMode:!0}));V.pageId&&(x=Object.assign({},x,{onBehalfOfUser:V.pageId}));t.user=x;x=V.gk;V.T("embeds_web_enable_iframe_api_send_full_embed_url")||V.T("embeds_web_enable_rcat_validation_in_havs")||V.T("embeds_enable_autoplay_and_visibility_signals")||!x||(t.thirdParty={embedUrl:x});return t}; Onl=function(V,t,x){var u=V.videoId,Z=g.PL(V),P=V.K(),K={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(rF()),referer:document.location.toString(),signatureTimestamp:20115};g.Cy();V.isAutonav&&(K.autonav=!0);g.JD(0,141)&&(K.autonavState=g.JD(0,140)?"STATE_OFF":"STATE_ON");K.autoCaptionsDefaultOn=g.JD(0,66);Uj(V)&&(K.autoplay=!0);P.L&&V.cycToken&&(K.cycToken=V.cycToken);P.enablePrivacyFilter&&(K.enablePrivacyFilter=!0);V.isFling&&(K.fling=!0);var R=V.forceAdsUrl;if(R){var f={},b=[];R=R.split(","); R=g.G(R);for(var E=R.next();!E.done;E=R.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.G(k);for(var O=k.next();!O.done;O=k.next()){var N=g.G(O.value.split("="));O=N.next().value;N=PLs(N);E[O]=N.join("=")}k=E.url;O=E.presetad;N=E.viralresponseurl;var p=Number(E.campaignid);if(E.adtype==="in_display_ad")k&&(f.url=k),O&&(f.presetAd=O),N&&(f.viralAdResponseUrl=N),p&&(f.viralCampaignId=String(p)); else if(E.adtype==="video_ad"){var I={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(E.offset)||0)}};if(E=$bw[E.breaktype])I.breakType=E;k&&(I.url=k);O&&(I.presetAd=O);N&&(I.viralAdResponseUrl=N);p&&(I.viralCampaignId=String(p));b.push(I)}}K.forceAdParameters={videoAds:b,inDisplayAd:f}}V.isInlinePlaybackNoAd&&(K.isInlinePlaybackNoAd=!0);V.isLivingRoomDeeplink&&(K.isLivingRoomDeeplink=!0);f=V.A3;if(f!=null){f={startWalltime:String(f)};if(b=V.eK)f.manifestDuration=String(b||14400);K.liveContext= f}if(V.mutedAutoplay&&(K.mutedAutoplay=!0,V.T("embeds_enable_full_length_inline_muted_autoplay"))){f=P.getWebPlayerContextConfig();var L,M;(f==null?0:(L=f.embedsHostFlags)==null?0:L.allowMutedAutoplayDurationMode)&&(f==null?0:(M=f.embedsHostFlags)==null?0:M.allowMutedAutoplayDurationMode.includes(bnC[V.mutedAutoplayDurationMode]))&&(K.mutedAutoplayDurationMode=bnC[V.mutedAutoplayDurationMode])}if(V.Qc?0:V.bv)K.splay=!0;L=V.vnd;L===5&&(K.vnd=L);L={};if(M=V.isMdxPlayback)L.triggeredByMdx=M;if(M=V.WD)L.skippableAdsSupported= M.split(",").includes("ska");if(b=V.DD){M=V.F5;f=[];b=g.G(Xu0(b));for(R=b.next();!R.done;R=b.next()){R=R.value;E=R.platform;R={applicationState:R.BT?"INACTIVE":"ACTIVE",clientFormFactor:E5j[E]||"UNKNOWN_FORM_FACTOR",clientName:Ba1[R.iV]||"UNKNOWN_INTERFACE",clientVersion:R.deviceVersion||"",platform:k1T[E]||"UNKNOWN_PLATFORM"};E={};if(M){k=void 0;try{k=JSON.parse(M)}catch(z){g.lf(z)}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),R.osName=k.os_name,R.userAgent=k.user_agent,R.windowHeightPoints=k.window_height_points,R.windowWidthPoints=k.window_width_points)}f.push({adSignalsInfo:E,remoteClient:R})}L.remoteContexts=f}M=V.sourceContainerPlaylistId;f=V.serializedMdxMetadata;if(M||f)b={},M&&(b.mdxPlaybackContainerInfo={sourceContainerPlaylistId:M}),f&&(b.serializedMdxMetadata=f),L.mdxPlaybackSourceContext=b;K.mdxContext=L;L=t.width;L>0&&(K.playerWidthPixels= Math.round(L));if(t=t.height)K.playerHeightPixels=Math.round(t);x!==0&&(K.vis=x);if(x=P.widgetReferrer)K.widgetReferrer=x.substring(0,128);g.zo(P)&&K&&(K.ancestorOrigins=P.ancestorOrigins);V.defaultActiveSourceVideoId&&(K.compositeVideoContext={defaultActiveSourceVideoId:V.defaultActiveSourceVideoId});if(P=P.getWebPlayerContextConfig())K.encryptedHostFlags=P.encryptedHostFlags;u={videoId:u,context:Z,playbackContext:{contentPlaybackContext:K}};V.reloadPlaybackParams&&(u.playbackContext.reloadPlaybackContext= {reloadPlaybackParams:V.reloadPlaybackParams});V.contentCheckOk&&(u.contentCheckOk=!0);if(Z=V.clientPlaybackNonce)u.cpn=Z;if(Z=V.playerParams)u.params=Z;if(Z=V.playlistId)u.playlistId=Z;V.racyCheckOk&&(u.racyCheckOk=!0);Z=V.K();if(K=Z.embedConfig)u.serializedThirdPartyEmbedConfig=K;u.captionParams={};K=g.JD(g.Cy(),65);V.deviceCaptionsOn!=null?u.captionParams.deviceCaptionsOn=V.deviceCaptionsOn:g.J2(Z)&&(u.captionParams.deviceCaptionsOn=K!=null?!K:!1);V.A1&&(u.captionParams.deviceCaptionsLangPref= V.A1);V.yj.length?u.captionParams.viewerSelectedCaptionLangs=V.yj:g.J2(Z)&&(K=g.l3(),K==null?0:K.length)&&(u.captionParams.viewerSelectedCaptionLangs=K);K=V.fetchType==="onesie"&&V.T("html5_onesie_attach_po_token");P=V.fetchType!=="onesie"&&V.T("html5_non_onesie_attach_po_token");if(K||P)K=V.K(),K.w1&&(u.serviceIntegrityDimensions={},u.serviceIntegrityDimensions.poToken=K.w1);Z.T("fetch_att_independently")&&(u.attestationRequest={omitBotguardData:!0});if(Z.T("html5_enable_sabr_from_watch_server")|| Z.T("html5_report_supports_vp9_encoding"))u.playbackContext||(u.playbackContext={}),u.playbackContext.devicePlaybackCapabilities=in4(V);return u}; in4=function(V){var t=!(V==null?0:V.Uk())&&(V==null?void 0:V.uq())&&$D(),x;if(x=V==null?0:V.T("html5_report_supports_vp9_encoding")){if(V==null)x=0;else{x=g.RK(V);V=V.K().G;var u=Ki("243");x=u?Oh(x,u,V,!0)===!0:!1}x=x&&!t}return{supportsVp9Encoding:!!x,supportXhr:wV}}; NbK=function(V,t){var x,u,Z;return g.Q(function(P){if(P.J==1)return x={context:g.Zf(V.K()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:V.videoId,cpn:V.clientPlaybackNonce}}]},u=g.St(s5j),g.m(P,g.uM(t,x,u),2);Z=P.S;return P.return(Z)})}; pTq=function(V,t,x){var u=g.S7(t.experiments,"bg_vm_reinit_threshold");(!rn||(0,g.Tu)()-rn>u)&&NbK(V,x).then(function(Z){Z&&(Z=Z.botguardData)&&g.o_(Z,t)},function(Z){V.uD()||(Z=rw(Z),V.J6("attf",Z.details))})}; Kv=function(V,t){g.c.call(this);this.app=V;this.state=t}; RE=function(V,t,x){V.state.J.hasOwnProperty(t)||qD(V,t,x);V.state.L[t]=function(){return x.apply(V,g.Xq.apply(0,arguments))}; V.state.B.add(t)}; fv=function(V,t,x){V.state.J.hasOwnProperty(t)||qD(V,t,x);V.app.K().L&&(V.state.C[t]=function(){return x.apply(V,g.Xq.apply(0,arguments))},V.state.B.add(t))}; qD=function(V,t,x){V.state.J[t]=function(){return x.apply(V,g.Xq.apply(0,arguments))}}; g.$2=function(V,t,x){return V.state.J[t].apply(V.state.J,g.v(x))}; bu=function(){g.ry.call(this);this.G=new Map}; E5=function(){g.c.apply(this,arguments);this.element=null;this.B=new Set;this.L={};this.C={};this.J={};this.X=new Set;this.N=new bu;this.S=new bu;this.W=new bu;this.G=new bu}; AaC=function(V,t,x){typeof V==="string"&&(V={mediaContentUrl:V,startSeconds:t,suggestedQuality:x});a:{if((t=V.mediaContentUrl)&&(t=/\/([ve]|embed)\/([^#?]+)/.exec(t))&&t[2]){t=t[2];break a}t=null}V.videoId=t;return k2(V)}; k2=function(V,t,x){if(typeof V==="string")return{videoId:V,startSeconds:t,suggestedQuality:x};t={};x=g.G(SZ4);for(var u=x.next();!u.done;u=x.next())u=u.value,V[u]&&(t[u]=V[u]);return t}; G1h=function(V,t,x,u){if(g.lL(V)&&!Array.isArray(V)){t="playlist list listType index startSeconds suggestedQuality".split(" ");x={};for(u=0;u32&&u.push("hfr");t.isHdr()&&u.push("hdr");t.primaries==="bt2020"&&u.push("wcg");x.video_quality_features=u}}if(V=V.getPlaylistId())x.list=V;return x}; Ah=function(){iu.apply(this,arguments)}; Sm=function(V,t){var x={};if(V.app.K().wk){V=g.G(FOl);for(var u=V.next();!u.done;u=V.next())u=u.value,t.hasOwnProperty(u)&&(x[u]=t[u]);if(t=x.qoe_cat)V="",typeof t==="string"&&t.length>0&&(V=t.split(",").filter(function(Z){return Mr1.includes(Z)}).join(",")),x.qoe_cat=V; g5q(x)}else for(V=g.G(XTC),u=V.next();!u.done;u=V.next())u=u.value,t.hasOwnProperty(u)&&(x[u]=t[u]);return x}; g5q=function(V){var t=V.raw_player_response;if(!t){var x=V.player_response;x&&(t=JSON.parse(x))}delete V.player_response;delete V.raw_player_response;if(t){V.raw_player_response={streamingData:t.streamingData};var u;if((u=t.playbackTracking)==null?0:u.qoeUrl)V.raw_player_response=Object.assign({},V.raw_player_response,{playbackTracking:{qoeUrl:t.playbackTracking.qoeUrl}});var Z;if((Z=t.videoDetails)==null?0:Z.videoId)V.raw_player_response=Object.assign({},V.raw_player_response,{videoDetails:{videoId:t.videoDetails.videoId}})}}; Gr=function(V,t,x){var u=V.app.eH(x);if(!u)return 0;V=u-V.app.getCurrentTime(x);return t-V}; Bbq=function(V){var t=t===void 0?5:t;return V?zO4[V]||t:t}; g.IE=function(){Ah.apply(this,arguments)}; mb8=function(V){qD(V,"getInternalApiInterface",V.getInternalApiInterface);qD(V,"addEventListener",V.i5);qD(V,"removeEventListener",V.Xrj);qD(V,"cueVideoByPlayerVars",V.l5);qD(V,"loadVideoByPlayerVars",V.H1j);qD(V,"preloadVideoByPlayerVars",V.ZGX);qD(V,"getAdState",V.getAdState);qD(V,"sendAbandonmentPing",V.sendAbandonmentPing);qD(V,"setLoopRange",V.setLoopRange);qD(V,"getLoopRange",V.getLoopRange);qD(V,"setAutonavState",V.setAutonavState);qD(V,"seekTo",V.EQy);qD(V,"seekBy",V.tdC);qD(V,"seekToLiveHead", V.seekToLiveHead);qD(V,"requestSeekToWallTimeSeconds",V.requestSeekToWallTimeSeconds);qD(V,"seekToStreamTime",V.seekToStreamTime);qD(V,"startSeekCsiAction",V.startSeekCsiAction);qD(V,"getStreamTimeOffset",V.getStreamTimeOffset);qD(V,"getVideoData",V.LD);qD(V,"setInlinePreview",V.setInlinePreview);qD(V,"getAppState",V.getAppState);qD(V,"updateLastActiveTime",V.updateLastActiveTime);qD(V,"setBlackout",V.setBlackout);qD(V,"setUserEngagement",V.setUserEngagement);qD(V,"updateSubtitlesUserSettings",V.updateSubtitlesUserSettings); qD(V,"getPresentingPlayerType",V.rO);qD(V,"canPlayType",V.canPlayType);qD(V,"updatePlaylist",V.updatePlaylist);qD(V,"updateVideoData",V.updateVideoData);qD(V,"updateEnvironmentData",V.updateEnvironmentData);qD(V,"sendVideoStatsEngageEvent",V.Th6);qD(V,"productsInVideoVisibilityUpdated",V.productsInVideoVisibilityUpdated);qD(V,"setSafetyMode",V.setSafetyMode);qD(V,"isAtLiveHead",function(t){return V.isAtLiveHead(void 0,t)}); qD(V,"getVideoAspectRatio",V.getVideoAspectRatio);qD(V,"getPreferredQuality",V.getPreferredQuality);qD(V,"getPlaybackQualityLabel",V.getPlaybackQualityLabel);qD(V,"setPlaybackQualityRange",V.xv8);qD(V,"onAdUxClicked",V.onAdUxClicked);qD(V,"getFeedbackProductData",V.getFeedbackProductData);qD(V,"getStoryboardFrame",V.getStoryboardFrame);qD(V,"getStoryboardFrameIndex",V.getStoryboardFrameIndex);qD(V,"getStoryboardLevel",V.getStoryboardLevel);qD(V,"getNumberOfStoryboardLevels",V.getNumberOfStoryboardLevels); qD(V,"getCaptionWindowContainerId",V.getCaptionWindowContainerId);qD(V,"getAvailableQualityLabels",V.getAvailableQualityLabels);qD(V,"addCueRange",V.addCueRange);qD(V,"addUtcCueRange",V.addUtcCueRange);qD(V,"showAirplayPicker",V.showAirplayPicker);qD(V,"dispatchReduxAction",V.dispatchReduxAction);qD(V,"getPlayerResponse",V.Ur);qD(V,"getWatchNextResponse",V.Zb);qD(V,"getHeartbeatResponse",V.WP);qD(V,"getCurrentTime",V.Iq);qD(V,"getDuration",V.f0);qD(V,"getPlayerState",V.getPlayerState);qD(V,"getPlayerStateObject", V.tf);qD(V,"getVideoLoadedFraction",V.getVideoLoadedFraction);qD(V,"getProgressState",V.getProgressState);qD(V,"getVolume",V.getVolume);qD(V,"setVolume",V.pB);qD(V,"isMuted",V.isMuted);qD(V,"mute",V.N_);qD(V,"unMute",V.Ux);qD(V,"loadModule",V.loadModule);qD(V,"unloadModule",V.unloadModule);qD(V,"getOption",V.b1);qD(V,"getOptions",V.getOptions);qD(V,"setOption",V.setOption);qD(V,"loadVideoById",V.FT);qD(V,"loadVideoByUrl",V.U4);qD(V,"playVideo",V.i6);qD(V,"loadPlaylist",V.loadPlaylist);qD(V,"nextVideo", V.nextVideo);qD(V,"previousVideo",V.previousVideo);qD(V,"playVideoAt",V.playVideoAt);qD(V,"getDebugText",V.getDebugText);qD(V,"getWebPlayerContextConfig",V.getWebPlayerContextConfig);qD(V,"notifyShortsAdSwipeEvent",V.notifyShortsAdSwipeEvent);qD(V,"getVideoContentRect",V.getVideoContentRect);qD(V,"setSqueezeback",V.setSqueezeback);qD(V,"toggleSubtitlesOn",V.toggleSubtitlesOn);qD(V,"isSubtitlesOn",V.isSubtitlesOn);qD(V,"reportPlaybackIssue",V.reportPlaybackIssue);qD(V,"setAutonav",V.setAutonav);qD(V, "isNotServable",V.isNotServable);qD(V,"channelSubscribed",V.channelSubscribed);qD(V,"channelUnsubscribed",V.channelUnsubscribed);qD(V,"togglePictureInPicture",V.togglePictureInPicture);qD(V,"supportsGaplessAudio",V.supportsGaplessAudio);qD(V,"supportsGaplessShorts",V.supportsGaplessShorts);qD(V,"enqueueVideoByPlayerVars",function(t){return void V.enqueueVideoByPlayerVars(t)}); qD(V,"clearQueue",V.clearQueue);qD(V,"getAudioTrack",V.QR);qD(V,"setAudioTrack",V.L5w);qD(V,"getAvailableAudioTracks",V.eS);qD(V,"getMaxPlaybackQuality",V.getMaxPlaybackQuality);qD(V,"getUserPlaybackQualityPreference",V.getUserPlaybackQualityPreference);qD(V,"getSubtitlesUserSettings",V.getSubtitlesUserSettings);qD(V,"resetSubtitlesUserSettings",V.resetSubtitlesUserSettings);qD(V,"setMinimized",V.setMinimized);qD(V,"setOverlayVisibility",V.setOverlayVisibility);qD(V,"confirmYpcRental",V.confirmYpcRental); qD(V,"queueNextVideo",V.queueNextVideo);qD(V,"handleExternalCall",V.handleExternalCall);qD(V,"logApiCall",V.logApiCall);qD(V,"isExternalMethodAvailable",V.isExternalMethodAvailable);qD(V,"setScreenLayer",V.setScreenLayer);qD(V,"getCurrentPlaylistSequence",V.getCurrentPlaylistSequence);qD(V,"getPlaylistSequenceForTime",V.getPlaylistSequenceForTime);qD(V,"shouldSendVisibilityState",V.shouldSendVisibilityState);qD(V,"syncVolume",V.syncVolume);qD(V,"highlightSettingsMenuItem",V.highlightSettingsMenuItem); qD(V,"openSettingsMenuItem",V.openSettingsMenuItem);qD(V,"getEmbeddedPlayerResponse",V.getEmbeddedPlayerResponse);qD(V,"getVisibilityState",V.getVisibilityState);qD(V,"isMutedByMutedAutoplay",V.isMutedByMutedAutoplay);V.T("embeds_enable_emc3ds_muted_autoplay")&&qD(V,"isMutedByEmbedsMutedAutoplay",V.isMutedByEmbedsMutedAutoplay);qD(V,"setGlobalCrop",V.setGlobalCrop);qD(V,"setInternalSize",V.setInternalSize);qD(V,"setFauxFullscreen",V.setFauxFullscreen);qD(V,"setAppFullscreen",V.setAppFullscreen)}; Lv=function(V,t,x){V=g.vL(V.z4(),t);return x?(x.addOnDisposeCallback(V),null):V}; g.Fb=function(V,t,x){return V.app.K().Qc?t:g.Lm("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:t,SHORTCUT:x})}; YZz=function(V){V.z4().element.setAttribute("aria-live","polite")}; g.MD=function(V,t){g.IE.call(this,V,t);mb8(this);fv(this,"addEventListener",this.mD);fv(this,"removeEventListener",this.Q_S);fv(this,"cueVideoByPlayerVars",this.XW);fv(this,"loadVideoByPlayerVars",this.O16);fv(this,"preloadVideoByPlayerVars",this.deD);fv(this,"loadVideoById",this.FT);fv(this,"loadVideoByUrl",this.U4);fv(this,"playVideo",this.i6);fv(this,"loadPlaylist",this.loadPlaylist);fv(this,"nextVideo",this.nextVideo);fv(this,"previousVideo",this.previousVideo);fv(this,"playVideoAt",this.playVideoAt); fv(this,"getVideoData",this.yU);fv(this,"seekBy",this.hxs);fv(this,"seekTo",this.vQj);fv(this,"showControls",this.showControls);fv(this,"hideControls",this.hideControls);fv(this,"cancelPlayback",this.cancelPlayback);fv(this,"getProgressState",this.getProgressState);fv(this,"isInline",this.isInline);fv(this,"setInline",this.setInline);fv(this,"setLoopVideo",this.setLoopVideo);fv(this,"getLoopVideo",this.getLoopVideo);fv(this,"getVideoContentRect",this.getVideoContentRect);fv(this,"getVideoStats",this.Vz); fv(this,"getCurrentTime",this.iy);fv(this,"getDuration",this.f0);fv(this,"getPlayerState",this.Er);fv(this,"getVideoLoadedFraction",this.by);fv(this,"mute",this.N_);fv(this,"unMute",this.Ux);fv(this,"setVolume",this.pB);fv(this,"loadModule",this.loadModule);fv(this,"unloadModule",this.unloadModule);fv(this,"getOption",this.b1);fv(this,"getOptions",this.getOptions);fv(this,"setOption",this.setOption);fv(this,"addCueRange",this.addCueRange);fv(this,"getDebugText",this.getDebugText);fv(this,"getStoryboardFormat", this.getStoryboardFormat);fv(this,"toggleFullscreen",this.toggleFullscreen);fv(this,"isFullscreen",this.isFullscreen);fv(this,"getPlayerSize",this.getPlayerSize);fv(this,"toggleSubtitles",this.toggleSubtitles);fv(this,"setCenterCrop",this.setCenterCrop);fv(this,"setFauxFullscreen",this.setFauxFullscreen);fv(this,"setSizeStyle",this.setSizeStyle);fv(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);fv(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);v51(this)}; g.gr=function(V){V=V.Jl();var t=V.S3.get("endscreen");return t&&t.oF()?!0:V.ya()}; g.Xb=function(V,t){V.getPresentingPlayerType()===3?V.publish("mdxautoplaycancel"):V.Os("onAutonavCancelled",t)}; g.BL=function(V){var t=zr(V.Jl());return V.app.Bi&&!V.isFullscreen()||V.getPresentingPlayerType()===3&&t&&t.b9()&&t.wB()||!!V.getPlaylist()}; g.ml=function(V,t){g.$2(V,"addEmbedsConversionTrackingParams",[t])}; g.Q1=function(V){return(V=g.Y2(V.Jl()))?V.oJ():{}}; g.Q5s=function(V){V=(V=V.getVideoData())&&V.S;return!!V&&!(!V.audio||!V.video)&&V.mimeType!=="application/x-mpegURL"}; g.aE=function(V,t,x){V=V.XX().element;var u=Rd(V.children,function(Z){Z=Number(Z.getAttribute("data-layer"));return x-Z||1}); u<0&&(u=-(u+1));qN(V,t,u);t.setAttribute("data-layer",String(x))}; g.rr=function(V){var t=V.K();if(!t.U1)return!1;var x=V.getVideoData();if(!x||V.getPresentingPlayerType()===3)return!1;var u=(!x.isLiveDefaultBroadcast||t.T("allow_poltergust_autoplay"))&&!V1(x);u=x.isLivePlayback&&(!t.T("allow_live_autoplay")||!u);var Z=x.isLivePlayback&&t.T("allow_live_autoplay_on_mweb");V=V.getPlaylist();V=!!V&&V.b9();var P=x.L1&&x.L1.playerOverlays||null;P=!!(P&&P.playerOverlayRenderer&&P.playerOverlayRenderer.autoplay);P=x.kD&&P;return!x.ypcPreview&&(!u||Z)&&!g.Cr(x.cX,"ypc")&& !V&&(!g.zo(t)||P)}; abh=function(V){V=V.app.rk();if(!V)return!1;var t=V.getVideoData();if(!t.S||!t.S.video||t.S.video.J<1080||t.D4)return!1;var x=/^qsa/.test(t.clientPlaybackNonce),u="r";t.S.id.indexOf(";")>=0&&(x=/^[a-p]/.test(t.clientPlaybackNonce),u="x");return x?(V.J6("iqss",{trigger:u},!0),!0):!1}; Tr=function(){ee.apply(this,arguments);this.requestHeaders={}}; oE=function(){WL||(WL=new Tr);return WL}; nv=function(V,t){t?V.requestHeaders.Authorization="Bearer "+t:delete V.requestHeaders.Authorization}; g.cL=function(V,t,x,u){u=u===void 0?!1:u;g.Iz.call(this,t);var Z=this;this.U=V;this.cX=u;this.C=new g.j6(this);this.Ij=new g.$9(this,x,!0,void 0,void 0,function(){Z.Io()}); g.y(this,this.C);g.y(this,this.Ij)}; y1=function(V){var t=V.U.getRootNode();return V.U.T("web_enable_auto_pip")||V.U.T("web_enable_pip_on_miniplayer")||V.U.T("web_shorts_pip")?jc(t):document}; raj=function(V){V.S&&(document.activeElement&&g.fQ(V.element,document.activeElement)&&V.S.focus(),V.S.setAttribute("aria-expanded","false"),V.S=void 0);g.oV(V.C);V.X=void 0}; jm=function(V,t,x){V.bu()?V.Gc():V.aC(t,x)}; lu=function(V,t,x,u){u=new g.e({Y:"div",vX:["ytp-linked-account-popup-button"],mw:u,j:{role:"button",tabindex:"0"}});t=new g.e({Y:"div",V:"ytp-linked-account-popup",j:{role:"dialog","aria-modal":"true",tabindex:"-1"},D:[{Y:"div",V:"ytp-linked-account-popup-title",mw:t},{Y:"div",V:"ytp-linked-account-popup-description",mw:x},{Y:"div",V:"ytp-linked-account-popup-buttons",D:[u]}]});g.cL.call(this,V,{Y:"div",V:"ytp-linked-account-popup-container",D:[t]},100);var Z=this;this.dialog=t;g.y(this,this.dialog); u.listen("click",function(){Z.Gc()}); g.y(this,u);g.aE(this.U,this.element,4);this.hide()}; g.U5=function(V,t,x,u){g.Iz.call(this,V);this.priority=t;x&&g.HL(this,x);u&&this.g9(u)}; g.Df=function(V,t,x,u){V=V===void 0?{}:V;t=t===void 0?[]:t;x=x===void 0?!1:x;u=u===void 0?!1:u;t.push("ytp-menuitem");var Z=V;"role"in Z||(Z.role="menuitem");x||(Z=V,"tabindex"in Z||(Z.tabindex="0"));V={Y:x?"a":"div",vX:t,j:V,D:[{Y:"div",V:"ytp-menuitem-icon",mw:"{{icon}}"},{Y:"div",V:"ytp-menuitem-label",mw:"{{label}}"},{Y:"div",V:"ytp-menuitem-content",mw:"{{content}}"}]};u&&V.D.push({Y:"div",V:"ytp-menuitem-secondary-icon",mw:"{{secondaryIcon}}"});return V}; g.HL=function(V,t){V.updateValue("label",t)}; em=function(V){g.U5.call(this,g.Df({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var t=this;this.U=V;this.S=this.J=!1;this.W$=V.v2();V.createServerVe(this.element,this,!0);this.Z(this.U,"settingsMenuVisibilityChanged",function(x){t.KI(x)}); this.Z(this.U,"videodatachange",this.W);this.listen("click",this.onClick);this.W()}; dr=function(V){return V?g.FX(V):""}; Cv=function(V){g.c.call(this);this.api=V}; Jh=function(V){Cv.call(this,V);var t=this;qD(V,"setAccountLinkState",function(x){t.setAccountLinkState(x)}); qD(V,"updateAccountLinkingConfig",function(x){t.updateAccountLinkingConfig(x)}); V.addEventListener("videodatachange",function(x,u){t.onVideoDataChange(u)}); V.addEventListener("settingsMenuInitialized",function(){t.menuItem=new em(t.api);g.y(t,t.menuItem)})}; Tb1=function(V){this.api=V;this.J={}}; hh=function(V,t,x,u){t in V.J||(x=new g.b4(x,u,{id:t,priority:2,namespace:"appad"}),V.api.gL([x],1),V.J[t]=x)}; wr=function(V){Cv.call(this,V);var t=this;this.events=new g.j6(this);g.y(this,this.events);this.J=new Tb1(this.api);this.events.Z(this.api,"legacyadtrackingpingreset",function(){t.J.J={}}); this.events.Z(this.api,"legacyadtrackingpingchange",function(x){var u=t.J;hh(u,"part2viewed",1,0x8000000000000);hh(u,"engagedview",Math.max(1,x.Fc*1E3),0x8000000000000);if(!x.isLivePlayback){var Z=x.lengthSeconds*1E3;ZD(x)&&u.api.T("html5_shorts_gapless_ads_duration_fix")&&(Z=u.api.getProgressState().seekableEnd*1E3-x.NF);hh(u,"videoplaytime25",Z*.25,Z);hh(u,"videoplaytime50",Z*.5,Z);hh(u,"videoplaytime75",Z*.75,Z);hh(u,"videoplaytime100",Z,0x8000000000000);hh(u,"conversionview",Z,0x8000000000000); hh(u,"videoplaybackstart",1,Z);hh(u,"videoplayback2s",2E3,Z);hh(u,"videoplayback10s",1E4,Z)}}); this.events.Z(this.api,g.km("appad"),this.S);this.events.Z(this.api,g.i4("appad"),this.S)}; cal=function(V,t,x){if(!(x in t))return!1;t=t[x];Array.isArray(t)||(t=[t]);t=g.G(t);for(x=t.next();!x.done;x=t.next()){x=x.value;var u={CPN:V.api.getVideoData().clientPlaybackNonce};x=g.nK(x,u);u=void 0;u=u===void 0?!1:u;(u=Zg(Pu(x,WO8),x,u,"Active View 3rd Party Integration URL"))||(u=void 0,u=u===void 0?!1:u,u=Zg(Pu(x,o54),x,u,"Google/YouTube Brand Lift URL"));u||(u=void 0,u=u===void 0?!1:u,u=Zg(Pu(x,n50),x,u,"Nielsen OCR URL"));g.Cg(x,void 0,u)}return!0}; V6=function(V,t){ya0(V,t).then(function(x){g.Cg(t,void 0,void 0,x)})}; tx=function(V,t){t.forEach(function(x){V6(V,x)})}; ya0=function(V,t){return g.ap(V.api.K())&&A6(t)&&pJ(t)?g.Pi(V.api.K(),g.DD(V.api.getVideoData())).then(function(x){var u;x&&(u={Authorization:"Bearer "+x});return u},void 0):jL()}; j51=function(V){Cv.call(this,V);this.events=new g.j6(V);g.y(this,this.events);this.events.Z(V,"videoready",function(t){if(V.getPresentingPlayerType()===1){var x,u,Z={playerDebugData:{pmlSignal:!!((x=t.getPlayerResponse())==null?0:(u=x.adPlacements)==null?0:u.some(function(P){var K;return P==null?void 0:(K=P.adPlacementRenderer)==null?void 0:K.renderer})), contentCpn:t.clientPlaybackNonce}};g.pq("adsClientStateChange",Z)}})}; xZ=function(V){g.e.call(this,{Y:"button",vX:["ytp-button"],j:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},D:[{Y:"div",V:"ytp-autonav-toggle-button-container",D:[{Y:"div",V:"ytp-autonav-toggle-button",j:{"aria-checked":"true"}}]}]});this.U=V;this.S=[];this.J=!1;this.isChecked=!0;V.createClientVe(this.element,this,113681);this.Z(V,"presentingplayerstatechange",this.nP);this.listen("click",this.onClick);this.U.K().T("web_player_autonav_toggle_always_listen")&& lbh(this);Lv(V,this.element,this);this.nP()}; lbh=function(V){V.S.push(V.Z(V.U,"videodatachange",V.nP));V.S.push(V.Z(V.U,"videoplayerreset",V.nP));V.S.push(V.Z(V.U,"onPlaylistUpdate",V.nP));V.S.push(V.Z(V.U,"autonavchange",V.Zd))}; Hns=function(V){V.isChecked=V.isChecked;V.f1("ytp-autonav-toggle-button").setAttribute("aria-checked",String(V.isChecked));var t=V.isChecked?"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 ativada":"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 desativada";V.updateValue("title",t);V.updateValue("label",t);V.U.lT()}; Ubh=function(V){return V.U.K().T("web_player_autonav_use_server_provided_state")&&hP(V.M6())}; Db0=function(V){Cv.call(this,V);var t=this;this.events=new g.j6(V);g.y(this,this.events);this.events.Z(V,"standardControlsInitialized",function(){var x=new xZ(V);g.y(t,x);V.Rx(x)})}; uB=function(V,t){g.U5.call(this,g.Df({role:"menuitemcheckbox","aria-checked":"false"}),t,V,{Y:"div",V:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; ZJ=function(V,t){V.checked=t;V.element.setAttribute("aria-checked",String(V.checked))}; eOs=function(V){var t=!V.K().QN&&V.getPresentingPlayerType()!==3;return V.isFullscreen()||t}; g.P3=function(V,t,x,u){var Z=V.currentTarget;if((x===void 0||!x)&&g.aT(V))return V.preventDefault(),!0;t.pauseVideo();V=Z.getAttribute("href");g.hq(V,u,!0);return!1}; g.Kh=function(V,t,x){if(eW(t.K())&&t.getPresentingPlayerType()!==2){if(g.aT(x))return t.isFullscreen()&&!t.K().externalFullscreen&&t.toggleFullscreen(),x.preventDefault(),!0}else{var u=g.aT(x);u&&t.pauseVideo();g.hq(V,void 0,!0);u&&(g.w2(V),x.preventDefault())}return!1}; CJT=function(){var V=dbh.includes("pt-BR")?{Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"path",m_:!0,j:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", fill:"#fff"}}]}:{Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"path",m_:!0,j:{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"}}]};V.V="ytp-subtitles-button-icon";return V}; q4=function(){return{Y:"div",V:"ytp-spinner-container",D:[{Y:"div",V:"ytp-spinner-rotator",D:[{Y:"div",V:"ytp-spinner-left",D:[{Y:"div",V:"ytp-spinner-circle"}]},{Y:"div",V:"ytp-spinner-right",D:[{Y:"div",V:"ytp-spinner-circle"}]}]}]}}; R3=function(V){if(document.createRange){var t=document.createRange();t&&(t.selectNodeContents(V),V=window.getSelection())&&(V.removeAllRanges(),V.addRange(t))}}; bB=function(V){var t=V.T("web_player_use_cinematic_label_2")?"Ambiente integrado":"Ilumina\u00e7\u00e3o cinematogr\u00e1fica";uB.call(this,t,g.fh.Mp);var x=this;this.U=V;this.J=!1;this.S=new g.qK(function(){g.NK(x.element,"ytp-menuitem-highlighted")},0); this.W$=V.v2();this.setIcon({Y:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Y:"path",j:{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.N,this);this.listen($Z,this.W);g.y(this,this.S)}; Ee=function(V){Cv.call(this,V);var t=this;this.J=!1;V.addEventListener("settingsMenuInitialized",function(){JaT(t)}); V.addEventListener("highlightSettingsMenu",function(x){JaT(t);var u=t.menuItem;x==="menu_item_cinematic_lighting"&&(g.OU(u.element,"ytp-menuitem-highlighted"),g.OU(u.element,"ytp-menuitem-highlight-transition-enabled"),u.S.start())}); qD(V,"updateCinematicSettings",function(x){t.updateCinematicSettings(x)})}; JaT=function(V){V.menuItem||(V.menuItem=new bB(V.api),g.y(V,V.menuItem),V.menuItem.ZS(V.J))}; kZ=function(V){Cv.call(this,V);var t=this;this.events=new g.j6(V);g.y(this,this.events);this.events.Z(V,"applicationvideodatachange",function(x,u){t.kp(x,u)})}; iB=function(V){Cv.call(this,V);this.events=new g.j6(V);g.y(this,this.events);qD(V,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));qD(V,"setCreatorEndscreenHideButton",this.J.bind(this))}; Oe=function(V,t,x,u){uB.call(this,"Volume est\u00e1vel",g.fh.MV);g.OU(this.element,"ytp-drc-menu-item");this.W$=V.v2();this.W=t;this.J=x;this.hasDrcAudioTrack=u;V.addEventListener("videodatachange",this.S.bind(this));V.T("mta_drc_mutual_exclusion_removal")&&this.Z(V,"onPlaybackAudioChange",this.S);V=this.J()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({Y:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Y:"path",j:{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.N,this);ZJ(this,V);this.W$.Pk(this)}; se=function(V){Cv.call(this,V);var t=this;this.events=new g.j6(V);g.y(this,this.events);V.T("html5_show_drc_toggle")&&V.addEventListener("settingsMenuInitialized",function(){t.menuItem||(t.menuItem=new Oe(t.api,t.setDrcUserPreference.bind(t),t.getDrcUserPreference.bind(t),t.S.bind(t)),g.y(t,t.menuItem))}); qD(this.api,"setDrcUserPreference",function(u){t.setDrcUserPreference(u)}); qD(this.api,"getDrcUserPreference",function(){return t.getDrcUserPreference()}); qD(this.api,"hasDrcAudioTrack",function(){return t.S()}); var x;this.J=(x=g.ls("yt-player-drc-pref"))!=null?x:1;this.updateEnvironmentData()}; N4=function(V){Cv.call(this,V);var t=this;this.J={};this.events=new g.j6(V);g.y(this,this.events);this.events.Z(V,"videodatachange",function(){t.onVideoDataChange()}); this.events.Z(V,g.km("embargo"),function(x){t.api.M0(!0);var u,Z=(u=t.J[x.id])!=null?u:[];u=g.G(Z);for(Z=u.next();!Z.done;Z=u.next()){var P=Z.value;t.api.hideControls();t.api.KG("auth",2,"This video isn't available in your current playback area",YY({embargoed:1,id:x.id,idx:x.S,start:x.start}));Z=void 0;(P=(Z=P.embargo)==null?void 0:Z.onTrigger)&&t.api.Os("innertubeCommand",P)}})}; hOl=function(V,t){var x;return(x=t.onEnter)==null?void 0:x.some(V.S)}; wTL=function(V,t){t=g.G(t);for(var x=t.next();!x.done;x=t.next()){x=x.value;var u=void 0,Z=Number((u=x.playbackPosition)==null?void 0:u.utcTimeMillis)/1E3,P=void 0;u=Z+Number((P=x.duration)==null?void 0:P.seconds);P="embargo_"+Z;V.api.addUtcCueRange(P,Z,u,"embargo",!1);x.onEnter&&(V.J[P]=x.onEnter.filter(V.S))}}; ph=function(V){Cv.call(this,V);var t=this;this.J=[];this.events=new g.j6(V);g.y(this,this.events);qD(V,"addEmbedsConversionTrackingParams",function(x){t.api.K().j$&&t.addEmbedsConversionTrackingParams(x)}); this.events.Z(V,"veClickLogged",function(x){t.api.hasVe(x)&&(x=Kr(x.visualElement.getAsJspb(),2),t.J.push(x))})}; V_C=function(V){Cv.call(this,V);qD(V,"isEmbedsShortsMode",function(){return V.isEmbedsShortsMode()})}; t_q=function(V){Cv.call(this,V);var t=this;this.events=new g.j6(V);g.y(this,this.events);this.events.Z(V,"initialvideodatacreated",function(x){XI(gn(),16623);t.J=g.aw();var u=V.K().NR&&!x.Qc;if(Hz(x)&&u){XI(gn(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(x.getWatchNextResponse()){var Z,P=(Z=x.getWatchNextResponse())==null?void 0:Z.trackingParams;P&&B8(P)}if(x.getPlayerResponse()){var K;(x=(K=x.getPlayerResponse())==null?void 0:K.trackingParams)&&B8(x)}}else XI(gn(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),x.getEmbeddedPlayerResponse()&&(K=(P=x.getEmbeddedPlayerResponse())==null?void 0:P.trackingParams)&&B8(K)}); this.events.Z(V,"loadvideo",function(){XI(gn(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:t.J})}); this.events.Z(V,"cuevideo",function(){XI(gn(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:t.J})}); this.events.Z(V,"largeplaybuttonclicked",function(x){XI(gn(),27240,x.visualElement)}); this.events.Z(V,"playlistnextbuttonclicked",function(x){XI(gn(),27240,x.visualElement)}); this.events.Z(V,"playlistprevbuttonclicked",function(x){XI(gn(),27240,x.visualElement)}); this.events.Z(V,"playlistautonextvideo",function(){XI(gn(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; Ax=function(V,t){g.c.call(this);var x=this;this.J=null;this.N=t;t=[];for(var u=0;u<=100;u++)t.push(u/100);t={threshold:t,trackVisibility:!0,delay:1E3};(this.S=window.IntersectionObserver?new IntersectionObserver(function(Z){Z=Z[Z.length-1];typeof Z.isVisible==="undefined"?document.visibilityState==="visible"&&Z.isIntersecting&&Z.intersectionRatio>0?x.J=Z.intersectionRatio:document.visibilityState==="hidden"?x.J=0:x.J=null:x.J=Z.isVisible?Z.intersectionRatio:0;typeof x.N==="function"&&x.N(x.J)},t): null)&&this.S.observe(V)}; uIq=function(V){Cv.call(this,V);var t=this;this.events=new g.j6(V);g.y(this,this.events);this.events.Z(V,"applicationInitialized",function(){x7l(t)})}; x7l=function(V){var t=V.api.getRootNode(),x=t;if(!V.api.T("embeds_emc3ds_inview_ks")){var u;x=V.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((u=t.parentElement)==null?void 0:u.parentElement)||t:t}V.J=new Ax(x,function(Z){Z!=null&&(V.api.K().e0=Z)}); g.y(V,V.J);V.events.Z(V.api,"videoStatsPingCreated",function(Z){var P=V.J;P=P.J==null?null:Math.round(P.J*100)/100;Z.inview=P!=null?P:void 0;P=V.api.getPlayerSize();if(P.height>0&&P.width>0){P=[Math.round(P.width),Math.round(P.height)];var K=g.Co();K>1&&P.push(K);P=P.join(":")}else P=void 0;Z.size=P})}; Z7j=function(V){var t;return((t=((V==null?void 0:V.messageRenderers)||[]).find(function(x){return!!x.timeCounterRenderer}))==null?void 0:t.timeCounterRenderer)||null}; SB=function(V){g.e.call(this,{Y:"div",vX:["ytp-player-content","ytp-iv-player-content"],D:[{Y:"div",V:"ytp-free-preview-countdown-timer",D:[{Y:"span",mw:"{{label}}"},{Y:"span",V:"ytp-free-preview-countdown-timer-separator",mw:"\u2022"},{Y:"span",mw:"{{duration}}"}]}]});this.api=V;this.J=null;this.N=this.S=0;this.Z(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; KkT=function(V,t){V.J||(V.S=t,V.N=(0,g.Tu)(),V.J=new g.Kb(function(){P3z(V)},null),P3z(V))}; P3z=function(V){var t=Math,x=t.round,u=Math.min((0,g.Tu)()-V.N,V.S);t=x.call(t,(V.S-u)/1E3);V.updateValue("duration",S_({seconds:t}));t<=0&&V.J?Gq(V):V.J&&V.J.start()}; Gq=function(V){V.J&&(V.J.dispose(),V.J=null)}; qg4=function(V){Cv.call(this,V);var t=this;this.events=new g.j6(V);g.y(this,this.events);this.events.Z(V,"basechromeinitialized",function(){t.J=new SB(V);g.y(t,t.J);g.aE(V,t.J.element,4);t.J.hide()})}; I3=function(V){g.e.call(this,{Y:"button",vX:["ytp-fullerscreen-edu-button","ytp-button"],D:[{Y:"div",vX:["ytp-fullerscreen-edu-text"],mw:"Role para ver detalhes"},{Y:"div",vX:["ytp-fullerscreen-edu-chevron"],D:[{Y:"svg",j:{height:"100%",viewBox:"0 0 24 24",width:"100%"},D:[{Y:"path",j:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],j:{"data-priority":"1"}});this.A6=V;this.J=new g.$9(this,250,void 0,100);this.N=this.S=!1;V.createClientVe(this.element,this,61214);g.y(this, this.J);this.Z(V,"fullscreentoggled",this.ZS);this.Z(V,"presentingplayerstatechange",this.ZS);this.listen("click",this.onClick);this.ZS()}; v3=function(V){Cv.call(this,V);var t=this;this.events=new g.j6(V);g.y(this,this.events);qD(this.api,"updateFullerscreenEduButtonSubtleModeState",function(u){t.updateFullerscreenEduButtonSubtleModeState(u)}); qD(this.api,"updateFullerscreenEduButtonVisibility",function(u){t.updateFullerscreenEduButtonVisibility(u)}); var x=V.K();V.T("external_fullscreen_with_edu")&&x.externalFullscreen&&eW(x)&&x.controlsType==="1"&&this.events.Z(V,"standardControlsInitialized",function(){t.J=new I3(V);g.y(t,t.J);V.Rx(t.J)})}; RET=function(V){g.e.call(this,{Y:"div",V:"ytp-gated-actions-overlay",D:[{Y:"div",V:"ytp-gated-actions-overlay-background",D:[{Y:"div",V:"ytp-gated-actions-overlay-background-overlay"}]},{Y:"button",vX:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],j:{"aria-label":"Fechar"},D:[g.BS()]},{Y:"div",V:"ytp-gated-actions-overlay-bar",D:[{Y:"div",V:"ytp-gated-actions-overlay-text-container",D:[{Y:"div",V:"ytp-gated-actions-overlay-title",mw:"{{title}}"},{Y:"div",V:"ytp-gated-actions-overlay-subtitle", mw:"{{subtitle}}"}]},{Y:"div",V:"ytp-gated-actions-overlay-button-container"}]}]});var t=this;this.api=V;this.background=this.f1("ytp-gated-actions-overlay-background");this.S=this.f1("ytp-gated-actions-overlay-button-container");this.J=[];this.Z(this.f1("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){t.api.Os("onCloseMiniplayer")}); this.hide()}; $71=function(V,t){var x=0;x=0;for(var u={};x Z&&(Z=R.width,P="url("+R.url+")")}x.background.style.backgroundImage=P;$71(x,u.actionButtons||[]);x.show()}else x.hide()}); g.aE(this.api,this.J.element,4)}; E0q=function(V){Cv.call(this,V);var t=this;this.J=null;this.events=new g.j6(V);g.y(this,this.events);var x=V.K();x.ke=!1;x.DS=!1;x.e5=!1;fv(V,"resetSubtitlesUserSettings",function(){V.resetSubtitlesUserSettings()}); fv(V,"getSubtitlesUserSettings",function(){return V.getSubtitlesUserSettings()}); fv(V,"updateSubtitlesUserSettings",function(P){V.updateSubtitlesUserSettings(P)}); fv(V,"getCaptionTracks",function(){return V.getOption("captions","tracklist",{includeAsr:!0})}); fv(V,"getAvailableQualityLevels",function(){return V.getAvailableQualityLevels()}); fv(V,"getPreferredQuality",function(){return V.getPreferredQuality()}); fv(V,"getPlaybackQuality",function(){return V.getPlaybackQuality()}); fv(V,"setPlaybackQuality",function(P){V.setPlaybackQuality(P)}); var u=this.api.Xl(),Z=u.subscribe("visibilitystatechange",function(){V.oC("onPictureInPictureChange",u.Q2())}); this.addOnDisposeCallback(function(){u.P0(Z)}); fv(V,"setRootNodeClickAction",function(P){t.J=P}); this.events.Z(V.getRootNode(),"click",function(){switch(t.J){case "togglePictureInPicture":V.togglePictureInPicture();break;case "play":V.playVideo()}})}; kv8=function(V){Cv.call(this,V);V=V.K();V.IB.push("flix");V.DS=!1;V.ke=!1}; NnT=function(V){Cv.call(this,V);var t=this;this.J={};this.events=new g.j6(V);g.y(this,this.events);this.events.Z(V,"applicationInitialized",function(){t.J=i79(O7z)}); this.events.Z(V,"onPlaybackStartExternal",function(){var x=Object.assign({},t.J,i79(s_C));t.api.J6("hbp_csi",x,!0,1)})}; i79=function(V){var t={},x=g.RW(lY)("_start",void 0);if(x){V=g.G(V);for(var u=V.next();!u.done;u=V.next()){u=u.value;var Z=g.RW(lY)(u,void 0);Z&&(t[u]=Math.round(Z-x))}}return t}; Lh=function(V){Cv.call(this,V);var t=this;fv(this.api,"getSphericalProperties",function(){return t.getSphericalProperties()}); fv(this.api,"setSphericalProperties",function(){t.setSphericalProperties.apply(t,g.v(g.Xq.apply(0,arguments)))}); RE(this.api,"getSphericalProperties",function(){return t.api.getPresentingPlayerType()===2?{}:t.getSphericalProperties()}); RE(this.api,"setSphericalProperties",function(){var x=g.Xq.apply(0,arguments);t.api.getPresentingPlayerType()!==2&&t.setSphericalProperties.apply(t,g.v(x))})}; FT=function(V){Cv.call(this,V);qD(V,"createClientVe",this.createClientVe.bind(this));qD(V,"createServerVe",this.createServerVe.bind(this));qD(V,"destroyVe",this.destroyVe.bind(this));qD(V,"hasVe",this.hasVe.bind(this));qD(V,"logClick",this.logClick.bind(this));qD(V,"logVisibility",this.logVisibility.bind(this));qD(V,"setTrackingParams",this.setTrackingParams.bind(this))}; M4=function(V,t,x,u){function Z(K){var R=!(K.status!==204&&K.status!==200&&!K.response),f;K={succ:""+ +R,rc:K.status,lb:((f=K.response)==null?void 0:f.byteLength)||0,rt:((0,g.Tu)()-P).toFixed(),shost:g.lA(V),trigger:t};p84(K,V);x&&x(K);u&&!R&&u(new Qr("pathprobe.net",K))} var P=(0,g.Tu)();g.r5(V,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:Z,onTimeout:Z})}; p84=function(V,t){var x;((x=window.performance)==null?0:x.getEntriesByName)&&(t=performance.getEntriesByName(t))&&t.length&&(t=t[0],V.pedns=(t.domainLookupEnd-t.startTime).toFixed(),V.pecon=(t.connectEnd-t.domainLookupEnd).toFixed(),V.perqs=(t.requestStart-t.connectEnd).toFixed(),A5L&&(V.perqsa=t.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; gh=function(V,t){this.Fi=V;this.policy=t;this.playbackRate=1}; SgC=function(V,t){var x=Math.min(2.5,SW(V.Fi));V=XT(V);return t-x*V}; zq=function(V,t,x,u,Z){Z=Z===void 0?!1:Z;if(V.policy.Yl)return Math.ceil(V.policy.Yl*t);V.policy.Sz&&(u=Math.abs(u));u/=V.playbackRate;var P=1/vK(V.Fi);x=Math.max(.9*(u-3),SW(V.Fi)+V.Fi.S.J*P)/P*.8/(t+x);x=Math.min(x,u);V.policy.rj>0&&Z&&(x=Math.max(x,V.policy.rj));return Gvj(V,x,t)}; Gvj=function(V,t,x){return Math.ceil(Math.max(Math.max(V.policy.Qd,V.policy.Ic*x),Math.min(Math.min(V.policy.dk,31*x),Math.ceil(t*x))))||V.policy.Qd}; In9=function(V,t,x){x=zq(V,t.J.info.n1,x.J.info.n1,0);var u=SW(V.Fi)+x/vK(V.Fi);return Math.max(u,u+V.policy.AI-x/t.J.info.n1)}; XT=function(V){return vK(V.Fi,!V.policy.pc,V.policy.SN)}; B3=function(V){return XT(V)/V.playbackRate}; mw=function(V,t,x){var u=V.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],Z=V.policy.playbackStartPolicy.startMinReadaheadPolicy||[];V=Infinity;t=g.G(t&&u.length>0?u:Z);for(u=t.next();!u.done;u=t.next())u=u.value,Z=u.minReadaheadMs||0,x<(u.minBandwidthBytesPerSec||0)||V>Z&&(V=Z);return V0&&(this.S=x.yA)}; M_4=function(V,t,x,u,Z){if(!u.info.W){if(x.length===0)x.push(u);else{var P;(V=(P=x.pop())==null?void 0:g.tW(P,u))?x.push(V):x.push(u)}return Z}var K;(x=(K=x.pop())==null?void 0:g.tW(K,u))||(x=u);if(V.policy.Fz&&x.info.S)return V.logger&&V.logger({incompleteSegment:x.info.N6()}),Z;K=V.NE(x);u=K.formatId;Z=K.GU;x=K.clipId;P=K.zE;K=K.startTimeMs;if(!V.policy.iT&&V.policy.S&&V.K9){var R=Q6(V.K9,x);K+=R}u={clipId:x,formatId:u,startTimeMs:K,durationMs:P,OE:Z,jd:Z,cA:K,fE:P};Z=v0z(t,u.startTimeMs);(x=Z>= 0?t[Z]:null)&&Lk9(V,x,u)?u=x:(Z+=1,t.splice(Z,0,u));x=0;for(P=Z+1;P=b+K.S?K=!0:E+K.S=0?V:-V-2}; g0q=function(V,t){if(V.bq){var x=V.bq.O1();if(x.length!==0){if(V.N&&t){var u=V.N,Z=u.info.An;!iQ(x,Z)&&u.info.B>0&&(0,g.Tu)()-V.B<5E3&&(V.logger&&V.logger({dend:u.info.N6()}),x=kdj(x,Z,Z+.01))}V.policy.zH&&V.logger&&V.logger({cbri:""+V.J});u=[];for(var P=Z=0;Z=K){var E=0;if(V.K9){var k=a3(V.K9,f*1E3);k&&(E=k.ym/1E3)}k=Object.assign({},V.pI[P]);var O=V.bD.N.get(gL(V.pI[P].formatId)), N=Math.max(f,K);K=O.index.kE(N+V.S/1E3-E);f=O.index.getStartTime(K)+E;var p=K+ +(Math.abs(f-N)>V.S/1E3);N=p+V.W;p=(O.index.getStartTime(p)+E)*1E3;P!==V.J||t?(k.OE=N,k.startTimeMs=p):(V.logger&&V.logger({pEvict:"1",og:k.startTimeMs,adj:f*1E3}),k.OE=K+V.W,k.startTimeMs=f*1E3);k.cA=k.startTimeMs;K=void 0;f=((K=V.N)==null?void 0:K.info.duration)||11;P===V.J&&RV.S/1E3);K=f+V.W;E=(O.index.Ag(f)+E)*1E3;k.jd=K;k.durationMs=E-k.startTimeMs;k.fE=k.durationMs;k.OE<=k.jd&&u.push(k)}bV.S)return!1;if(Fk0(V,t.formatId,x.formatId))return t.durationMs=Math.max(u,Z)-t.startTimeMs,t.fE=t.durationMs,t.jd=Math.max(t.jd,x.jd),!0;if(Math.abs(t.startTimeMs-x.startTimeMs)<=V.S){if(t.durationMs>x.durationMs+V.S){V=t.formatId;var P=t.OE,K=t.jd;t.formatId=x.formatId;t.durationMs=x.durationMs;t.OE=x.OE;t.fE=x.durationMs;t.jd=x.jd;x.formatId=V;x.startTimeMs=Z;x.cA=Z;x.durationMs=u-Z;x.fE=x.durationMs; x.OE=P;x.jd=K;return!1}t.formatId=x.formatId;return!0}u>x.startTimeMs&&(t.durationMs=x.startTimeMs-t.startTimeMs,t.fE=t.durationMs,V.policy.iJ&&t.clipId===x.clipId&&(t.jd=x.OE-1));return!1}; Fk0=function(V,t,x){return t.itag!==x.itag||t.xtags!==x.xtags?!1:V.bD.uq||t.lmt===x.lmt}; BnC=function(V,t,x){if(V.logger){for(var u=[],Z=0;Z=0&&nh(V.audioTrack,V.J)>=0&&P?((V.videoTrack.G||V.audioTrack.G)&&V.iD.J6("iterativeSeeking",{status:"done",count:V.seekCount}),V.videoTrack.G=!1,V.audioTrack.G=!1):u&&g.sb(function(){if(V.S||!V.policy.Fc)jB(V);else{var K=t.startTime,R=t.duration;if(!V.policy.B){var f=x?V.videoTrack.G:V.audioTrack.G,b=V.videoTrack.B!==-1&&V.audioTrack.B!==-1,E=V.J>=K&&V.J432E3&&CQ9(V.bD);V.N&&(Z=V.N,V.N=0);g.sb(function(){V.policy.B||lB(V,Z,102)}); V.iD.J6("initManifestlessSync",{st:Z,ost:Z+V.iD.SB(),a:V.audioTrack.B,v:V.videoTrack.B});V.W&&(V.W.resolve(Z+.1),V.W=null);V.policy.B&&lB(V,Z,102)}}}; DJ=function(V,t){var x=this;this.It=V;this.requestNumber=++c5w;this.J=this.now();this.Ij=this.C=NaN;this.L=this.J;this.N=this.CI=this.G=0;this.B=this.J;this.DS=this.Us=this.yC=this.IC=this.Qt=this.zU=this.S=this.W=0;this.X=this.isActive=!1;this.Fc=this.QC=0;this.Wk={wYX:function(){return x.uP}}; this.Fi=t.Fi;this.snapshot=aoj(this.Fi);this.policy=this.Fi.S;this.MB=!!t.MB;this.aF=t.aF;this.Kx=t.Kx||0;this.vG=t.vG||0;t.IJ&&(this.cX=new bi);var u;this.uP=(u=t.uP)!=null?u:!1;this.MB||mu9(this.Fi)}; y5l=function(V){V.yC=Math.max(V.yC,V.G-V.Qt);V.Us=Math.max(V.Us,V.L-V.IC);V.zU=0}; eB=function(V,t,x){Ycz(V.Fi,t);V.cX&&(V.cX.add(Math.ceil(t)-Math.ceil(V.L)),V.cX.add(Math.max(0,Math.ceil(x/1024)-Math.ceil(V.G/1024))));var u=t-V.L,Z=x-V.G;V.CI=Z;V.DS=Math.max(V.DS,Z/(u+.01)*1E3);V.L=t;V.G=x;V.zU&&x>V.zU&&y5l(V)}; dh=function(V,t){V.url=t;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; Ch=function(V,t){DJ.call(this,V,t);this.Tc=this.P$=!1;this.BX=this.wk=Infinity;this.Es=NaN;this.w6=!1;this.HX=NaN;this.kX=this.L1=this.dk=0;this.KQ=t.KQ||1;this.XR=t.XR||this.KQ;this.sV=t.sV;this.GU=t.GU;this.YE=t.YE;j_j(this);this.b6(this.J);this.gk=(this.HX-this.J)/1E3}; lnl=function(V){var t=V.L1||V.dk;return t?V.snapshot.delay+Math.min(V.vG,(V.Ij-V.C)/1E3)+t:V.gk}; Jx=function(V,t,x){if(!V.MB){t=Math.max(t,.01);var u=V.Kx?Math.max(t,x/V.Kx):t,Z=V.Fi.S.N;Z&&(u=t,V.Kx&&(u=Math.max(t,x/V.Kx*Z)));Nl(V.Fi,t,x,u)}}; H70=function(V){return(V.B-V.J)/1E3}; j_j=function(V){V.Es=V.J+V.snapshot.delay*1E3;V.w6=!1}; hx=function(V,t){if(V.sV&&V.GU!==void 0&&V.YE!==void 0){var x=Math,u=x.min,Z=V.wk;var P=V.sV;var K=V.J;if(U7h(P,V.GU))P=t;else{var R=0;P.z9&&(R=.2);P=K+(P.vG+R)*1E3}V.wk=u.call(x,Z,P);x=Math;u=x.min;Z=V.BX;P=V.sV;K=V.J;R=D71(P,V.GU,V.YE);R!==2&&(t=R?t:K+P.vG*1E3,P.z9&&(t+=P.vG*1E3));V.BX=u.call(x,Z,t);V.wk<=V.J?j_j(V):(V.Es=V.wk,V.w6=!0)}}; eE1=function(V,t){if(V.aV(t,1)){var x=V.getUint8(t);x=x<128?1:x<192?2:x<224?3:x<240?4:5}else x=0;if(x<1||!V.aV(t,x))return[-1,t];if(x===1)V=V.getUint8(t++);else if(x===2)x=V.getUint8(t++),V=V.getUint8(t++),V=(x&63)+64*V;else if(x===3){x=V.getUint8(t++);var u=V.getUint8(t++);V=V.getUint8(t++);V=(x&31)+32*(u+256*V)}else if(x===4){x=V.getUint8(t++);u=V.getUint8(t++);var Z=V.getUint8(t++);V=V.getUint8(t++);V=(x&15)+16*(u+256*(Z+256*V))}else x=t+1,V.focus(x),BE(V,x,4)?V=XZL(V).getUint32(x-V.WQ,!0):(u= V.getUint8(x+2)+256*V.getUint8(x+3),V=V.getUint8(x)+256*(V.getUint8(x+1)+256*u)),t+=5;return[V,t]}; wh=function(V){this.It=V;this.J=new Mj}; Vi=function(V,t){this.info=V;this.callback=t;this.state=1;this.FC=this.Py=!1;this.YQ=null}; d7L=function(V){return g.aQ(V.info.qP,function(t){return t.type===3})}; ti=function(V,t,x,u){var Z=this;u=u===void 0?{}:u;this.policy=t;this.It=x;this.status=0;this.J=new Mj;this.S=0;this.uD=this.W=this.N=!1;this.xhr=new XMLHttpRequest;this.xhr.open(u.method||"GET",V);if(u.headers)for(V=u.headers,t=g.G(Object.keys(V)),x=t.next();!x.done;x=t.next())x=x.value,this.xhr.setRequestHeader(x,V[x]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return Z.II()}; this.xhr.onload=function(){return Z.onDone()}; this.xhr.onerror=function(){return Z.onError()}; this.xhr.fetch(function(P){Z.J.append(P);Z.S+=P.length;P=(0,g.Tu)();Z.It.FY(P,Z.S)},function(){},u.body||null)}; C3s=function(V,t){this.S=(new TextEncoder).encode(V);this.J=(new TextEncoder).encode(t)}; DCq=function(V,t){var x,u,Z;return g.Q(function(P){if(P.J==1){if(!t)return P.return(t);x=x4.J3();u=new g.Bl(V.S);return g.m(P,u.encrypt(t,V.J),2)}Z=P.S;x4.y4("woe",x,Math.ceil(t.byteLength/16));return P.return(Z)})}; hCL=function(V,t){var x,u,Z;return g.Q(function(P){if(P.J==1){if(!t)return P.return(t);x=x4.J3();u=new g.Bl(V.S);return g.m(P,u.decrypt(t,V.J),2)}Z=P.S;x4.y4("wod",x,Math.ceil(t.byteLength/16));return P.return(Z)})}; hEh=function(V,t){var x=this;this.J=V;this.It=t;this.loaded=this.status=0;this.error="";V=B_(this.J.get("range")||"");if(!V)throw Error("bad range");this.range=V;this.S=new Mj;J5K(this).then(function(){x.It.QL()},function(u){x.error=""+u||"unknown_err"; x.It.QL()})}; J5K=function(V){var t,x,u,Z,P,K,R,f,b,E,k,O,N,p,I;return g.Q(function(L){if(L.J==1){V.status=200;t=V.J.get("docid");x=VR(V.J.get("fmtid")||"");u=V.J.get("lmt")||"0";Z=+(V.J.get("csz")||0);if(!t||!x||!Z)throw Error("Invalid local URL");V.J.get("ck")&&V.J.get("civ")&&(P=new C3s(V.J.get("ck"),V.J.get("civ")));K=V.range;R=Math.floor(K.start/Z);f=Math.floor(K.end/Z);b=R}if(L.J!=5)return b<=f?g.m(L,wVw(t,x,u,b,P),5):L.FX(0);E=L.S;if(E===void 0)throw Error("invariant: data is undefined");k=b*Z;O=(b+1)*Z; N=Math.max(0,K.start-k);p=Math.min(K.end+1,O)-(N+k);I=new Uint8Array(E.buffer,N,p);V.S.append(I);V.loaded+=p;V.loaded0&&(Z.J=Math.min(Z.J+K,10),Z.S=P);Z.J>0?(Z.J--,Z=!0):Z=!1;if(Z)typeof u==="function"&&(u=u()),console.log("plyr."+t,u);else{var R;u=((R=qhh.get(t))!=null?R:0)+1;qhh.set(t,u);u%100===1&&console.warn("plyr","plyr."+t+" is chatty, dropping logs.")}}}; Kj1=function(){this.J=10;this.S=Date.now()}; KG=function(V,t){g.c.call(this);var x=this;this.policy=V;this.qP=t;this.S=0;this.J=null;this.sL=[];this.N=null;this.Wk={RH:function(){return x.qP}}; this.qP.length===1||g.aQ(this.qP,function(u){return!!u.range})}; qT=function(V,t,x){V.J&&(g_(V.J,t),t=V.J,V.J=null);for(var u=0,Z=0,P=g.G(V.qP),K=P.next();!K.done;K=P.next())if(K=K.value,K.range&&u+K.N<=V.S)u+=K.N;else{t.getLength();if(at(K)&&!x&&V.S+t.getLength()-Z=400?(V.lastError="net.badstatus",!0):(Z===void 0?0:Z)?(V.lastError="ump.spsrejectfailure",!0):x||u!==void 0&&u?!1:(V.lastError=t===204?"net.nocontent":"net.connect",!0)}; k4=function(V,t){if(V.policy.Vj)return!1;var x=t.getResponseHeader("content-type"),u=t.Xr();V=!u||u<=V.policy.BO;return(!t.kd()||!x||x.indexOf("text/plain")!==-1)&&V}; ktj=function(V,t){var x="";t=t.nS();t.getLength()<=V.policy.BO&&(x=ET0(V,t.BQ()));return x}; ET0=function(V,t){var x=QF(t);return q9(x)?(V.logger.debug(function(){return"Redirecting to "+x}),x):""}; fG=function(V){return GS(V.N,FU(V.cw.Kv))}; i1T=function(V){var t=V.timing.Bo();t.shost=FU(V.cw.Kv);return t}; O1T=function(V,t){return(V==null?void 0:V.maxWidth)>(t==null?void 0:t.maxWidth)||(V==null?void 0:V.maxHeight)>(t==null?void 0:t.maxHeight)}; sYj=function(V,t){for(var x=g.G(t.keys()),u=x.next();!u.done;u=x.next())if(u=t.get(u.value),u.length!==0){g.fR(u,function(R,f){return f.maxFramerate-R.maxFramerate}); for(var Z=[u[0]],P=0,K=1;KV.J||x.push(u)}return x}; ik=function(V,t,x){var u=Ap0[V]||[];x.T("html5_shorts_onesie_mismatched_fix")&&(u=Shj[V]||[]);t.push.apply(t,g.v(u));x.T("html5_early_media_for_drm")&&t.push.apply(t,g.v(Gt1[V]||[]))}; gT9=function(V,t){var x=g.RK(V),u=V.K(),Z=u.G;u=u.T("html5_shorts_onesie_mismatched_fix");var P=V.Lc();if(u){if(!Z.N){if(P&&Ol)return Ol;if(sl)return sl}}else if(sl&&!Z.N)return sl;var K=[],R=[],f={},b=NT.concat(IPC);u&&(b=NT.concat(vTw));V.T("html5_early_media_for_drm")&&(b=b.concat(Ljj),V.T("allow_vp9_1080p_mq_enc")&&b.push(Fj0));var E=[].concat(g.v(MFL));if(x.X)for(var k=0;kx.hQ)){var I=g.S7(V.K().experiments,"html5_drm_byterate_soft_cap");I>0&&bC1(p)&&p.n1>I||(k?(K.push(N),ik(N,K,V)):(p=Oh(x,p,Z),p===!0?(k=!0,K.push(N),ik(N,K,V)):f[N]=p))}}}E=g.G(E);for(b=E.next();!b.done;b=E.next())for(b=g.G(b.value),k=b.next();!k.done;k=b.next())if(k= k.value,(O=P_T(k))&&O.audio&&(V.T("html5_onesie_51_audio")||!tK(O)&&!xI(O)))if(O=Oh(x,O,Z),O===!0){R.push(k);ik(k,R,V);break}else f[k]=O;x.S&&t("orfmts",f);if(u)return Z.N&&(Z.N=!1,Ol=sl=void 0),P?Ol={video:K,audio:R}:sl={video:K,audio:R};sl={video:K,audio:R};Z.N=!1;return sl}; g.BXl=function(V,t,x){var u=x.G,Z=[],P=[],K=x.T("html5_shorts_onesie_mismatched_fix");V=V.Lc();var R=NT.concat(IPC);K&&(R=NT.concat(vTw));x.T("html5_early_media_for_drm")&&(R=R.concat(Ljj),x.T("allow_vp9_1080p_mq_enc")&&R.push(Fj0));var f=[].concat(g.v(MFL));if(t.X)for(var b=0;b0&&bC1(k)&&k.n1>O)&&Oh(t,k,u)===!0){Z.push({videoCodec:Xgq[C5[E]],maxWidth:k.video.width,maxHeight:k.video.height,maxFramerate:k.video.fps});break}}}}K=g.G(f);for(V=K.next();!V.done;V=K.next())for(V=g.G(V.value),f=V.next();!f.done;f=V.next())if(f=f.value,(R=P_T(f))&&R.audio&&(x.T("html5_onesie_51_audio")||!tK(R)&&!xI(R))&&Oh(t,R,u)=== !0){P.push({audioCodec:zZ0[C5[f]],numChannels:R.audio.numChannels});break}return{videoFormatCapabilities:Z,audioFormatCapabilities:P}}; pG=function(V){var t={},x=V.S8,u=V.Yw,Z=x.getVideoData(),P=n7(0),K=x.getPlayerSize(),R=x.getVisibilityState();P&&(t.CDk=P,t.lastManualDirection=A30(),P=dal()||0,P>0&&(P=(u.T("html5_use_date_now_for_local_storage")?Date.now():(0,g.Tu)())-P,u.T("html5_use_date_now_for_local_storage")?P>0&&(t.timeSinceLastManualFormatSelectionMs=P):t.timeSinceLastManualFormatSelectionMs=P));t.exD=n7();P=u.T("html5_use_streamer_bandwidth_for_low_latency_live")&&Z.isLowLatencyLiveStream;if(u.schedule.Ij&&!P){var f;P=u.T("html5_disable_bandwidth_cofactors_for_sabr_live")? !((f=V.kK)==null||!f.pc):!1;t.f5=vK(u.schedule,!P)}f=g.Co();var b=g.U3.medium,E=Math.floor(b*16/9);P=Z.Lc()?b:E;b=Z.Lc()?E:b;t.Zl=Math.max(K.width*f,P);t.Pq=Math.max(K.height*f,b);t.visibility=R;t.URX=rF();t.f$=x.al()*1E3;var k;if((k=V.kK)==null?0:k.ED){K=V.S8.u0(!0);var O,N,p,I,L,M;t.j_8={defaultPolicy:((O=K.Ja)==null?void 0:O.J)||0,smooth:((N=K.Hlj)==null?void 0:N.J)||0,visibility:((p=K.lgU)==null?void 0:p.J)||0,GE:((I=K.TE)==null?void 0:I.J)||0,performance:((L=K.IP)==null?void 0:L.J)||0,speed:((M= K.XG8)==null?void 0:M.J)||0}}else{var z;if((z=V.kK)==null?0:z.N4){var Y;t.Ef=((Y=V.S8.u0().IP)==null?void 0:Y.J)||0}}u.T("html5_enable_sabr_drm_hd720p")&&V.sabrLicenseConstraint&&(t.sabrLicenseConstraint=V.sabrLicenseConstraint);if(u.T("html5_onesie_media_capabilities")||u.T("html5_enable_server_format_filter"))t.Zm=3;u.T("html5_onesie_audio_only_playback")&&Pz(Z)&&(t.Zm=1);var r;((r=V.kK)==null?0:r.J5)&&Z.uq()&&V.A6C&&(t.Zm=t.Zm===void 0?7:t.Zm|4);O=Z.Ve?Z.Ve:g.RK(Z);u.T("html5_onesie_media_capabilities")&& (t.mediaCapabilities=g.BXl(Z,O,u));var n;if((n=V.kK)==null?0:n.J&&n.Qc){p=u.G;n=[];N=[];I=new Map;u.T("html5_ssap_update_capabilities_on_change")?(p.X||FXC(p),L=p.X||[]):L=Array.from(p.J.values());L=g.G(L);for(M=L.next();!M.done;M=L.next())r=M.value,r.OL?N.push({audioCodec:zZ0[r.lD],numChannels:r.numChannels,spatialCapabilityBitmask:my8[r.lD]}):(K=Xgq[r.lD],M={videoCodec:K,maxWidth:r.maxWidth||0,maxHeight:r.maxHeight||0,maxFramerate:r.maxFramerate||0,is10BitSupported:r.s2||!1},r.maxBitrateBps&&(M.maxBitrateBps= r.maxBitrateBps,R=Ki(r.itag),k=void 0,((k=R)==null?0:k.video)&&Oh(O,R,p)===!0&&(R=R.n1*8,R>M.maxBitrateBps&&(M.maxBitrateBps=R))),r=K+"_"+r.s2,K=I.get(r)||[],K.push(M),I.set(r,K));n=sYj(n,I);p={};u.T("html5_ssff_denylist_opus_low")&&(p={itagDenylist:[249,350]});t.mediaCapabilities={videoFormatCapabilities:n,audioFormatCapabilities:N,hdrModeBitmask:3,perPlaybackAttributes:p}}var U;if((U=V.kK)==null?0:U.J){t.ez=O.ez;var d;t.hQ=(d=V.kK)==null?void 0:d.hQ}u.IN&&(t.W5=u.IN);t.zN=V.uX;t.mB=V.mB;t.W_=V.W_; t.WC=V.WC;if(u.T("html5_fix_time_since_last_seek_reporting")?V.GW!==void 0:V.GW)t.tZy=(0,g.Tu)()-V.GW;V.isPrefetch&&u.T("html5_report_prefetch_requests")&&(t.isPrefetch=!0);wV||(t.F0y=!0);U=SW(u.schedule)*1E3;U>0&&(t.aL=U);var uL;((uL=V.kK)==null?0:uL.CH)&&V.BH&&V.BH0?q1:u.schedule.interruptions[0]||0);var w;if((w=V.kK)==null?0:w.CI)t.wT=V.wT;var H;((H=V.kK)==null?0:H.LK)&&Z.N4&&(t.audioTrackId=Z.N4);var C;if((C=V.kK)==null?0:C.ZC)if(V=fpT())t.detailedNetworkType=Yh1[V]||Yh1.other;return t}; Ai=function(V,t,x,u,Z,P,K){var R={};t&&(R.Ei=t);if(!V)return R;R.playbackCookie=x==null?void 0:x.playbackCookie;Z&&(R.kW=Z);R.fP=[];R.iR=[];if(K==null?0:K.size)for(t=g.G(K.values()),x=t.next();!x.done;x=t.next())R.iR.push(x.value);if((g.d8(V)||V.vn)&&V.sabrContextUpdates.size>0)for(t=g.G(V.sabrContextUpdates.values()),x=t.next();!x.done;x=t.next())QY8(R,x.value,u);qm(V)&&!g.d8(V)&&V.T("html5_enable_sabr_request_pipelining")&&P&&QY8(R,P,u);V.Vu&&(R.MdC=V.Vu);u=V.K().J;R.clientInfo={clientName:aPT[u.c.toUpperCase()]|| 0};u.cbrand&&(R.clientInfo.deviceMake=u.cbrand);u.cmodel&&(R.clientInfo.deviceModel=u.cmodel);u.cver&&(R.clientInfo.clientVersion=u.cver);u.cos&&(R.clientInfo.osName=u.cos);u.cosver&&(R.clientInfo.osVersion=u.cosver);u=V.K();u.T("html5_sabr_enable_server_xtag_selection")&&u.Fc&&(R.clientInfo.hl=u.Fc);V.h8&&(R.h8=V.h8);return R}; QY8=function(V,t,x){var u=t.type||0;(x==null?0:x.has(u))?V.iR.push(t):V.fP.push(u)}; W3=function(V,t,x,u,Z,P){var K=P===void 0?{}:P;var R=K.pw===void 0?[]:K.pw;var f=K.qb===void 0?!1:K.qb;var b=K.JR===void 0?0:K.JR;var E=K.poToken===void 0?"":K.poToken;var k=K.ac===void 0?void 0:K.ac;var O=K.eU===void 0?"":K.eU;var N=K.AB===void 0?0:K.AB;var p=K.WL===void 0?new Uint8Array(0):K.WL;var I=K.gX===void 0?!1:K.gX;P=K.V1===void 0?0:K.V1;K=K.Ei===void 0?void 0:K.Ei;Vi.call(this,t,Z);var L=this;this.policy=V;this.logger=new g.ZG("dash/request");this.h0=this.A9=0;this.D1=!1;this.AK=this.Nq= null;this.Yo=!1;this.WL=this.AB=null;this.Fg=this.Oo=!1;this.VS=null;this.V1=this.AL=0;this.Rc=!1;this.Wk={Hk:function(z){L.Hk(z)}, slw:function(){return L.YQ}, JLs:function(z){L.YQ=z}, RIy:function(z){L.A9=z}, e1j:function(z){L.Gd.lastError=z}, zP:function(){return L.xhr}}; this.timing=new Ch(this,x);this.qb=f;this.AB=N;this.WL=p;this.cw=g.lw(this.info,this.policy,u);this.cw.set("rn",this.uL().toString());this.cw.set("rbuf",(b*1E3).toFixed().toString());this.qb&&this.cw.set("smb","1");this.policy.w2&&E&&this.cw.set("pot",E);O&&this.cw.set("bbs",O);this.policy.useUmp&&!My(this.cw.Kv)&&(this.Xb=new wh(this),this.cw.set("ump","1"),this.cw.set("srfvp","1"));if(V=this.policy.iM?this.policy.f_&&!isNaN(this.info.YE)&&this.info.YE>this.policy.F5?!1:!0:!1)t=null,this.policy.KP&& this.policy.t5?t=[1]:I&&(t=[]),t!=null&&(this.policy.Yc&&t.push(2),this.cw.set("defsel",t.join(",")));this.Gd=new RJ(this,this.policy,this.cw,this.info.zc,this.timing,this.logger,u,k);this.pw=R||null;this.FC=rpl(this);RZq(this.Gd);u=void 0;if(this.policy.rf||this.Xb||this.policy.Es)u={method:"POST"},R=(0,g.SM)([120,0]),k={},this.policy.g5&&K&&(K=Ai(void 0,K),k.i$=K),this.policy.Oz&&this.WL&&(k.videoPlaybackUstreamerConfig=this.WL),this.policy.Es&&(K=this.info.W)&&Object.assign(k,K),Object.keys(k).length> 0?u.body=g.ir(k,g.VO):u.body=R;if(this.AB&&this.WL){this.cw.set("iwts","1");u={method:"POST"};K={WC:this.AB*1E3};var M;R=(M=this.info.W)==null?void 0:M.H2;M=g.ir({bM:K,H2:R||void 0,videoPlaybackUstreamerConfig:this.WL},g.VO);u.body=M}try{this.xhr=uk(this.cw,this.policy.C,this.timing,V,u),this.Gd.S.start(),P&&(this.ER=new g.qK(this.Ph,P,this),this.ER.start(P+(this.timing.Fi.C.HG()||0)*1E3)),this.policy.HO&&dh(this.timing,this.dL()),this.logger.debug(function(){return"Sent, itag="+L.cw.get("itag")+ " seg="+L.info.qP[0].GU+" range="+L.cw.get("range")+" time="+Math.round(L.info.qP[0].An)+"-"+Math.round(g.U$(L.info.qP).LG)+" rtp="+(L.timing.jr()-Date.now()).toFixed(0)}),g.sb(function(){})}catch(z){TX8(this,z,!0)}}; rpl=function(V){if(!(j2(V.info)&&V.info.uP()&&V.policy.Ve&&V.pw)||V.info.zc.S>=2||n7()>0||!vHK())return!1;var t=V.cw.get("aitags");if(!t)return!1;t=VR(t).split(",");for(var x=[],u=g.G(V.pw),Z=u.next();!Z.done;Z=u.next())Z=Z.value,g.Cr(t,Z)&&x.push(Z);if(!x.length)return!1;V.cw.set("altitags",g.wH(x.join(",")));return!0}; TX8=function(V,t,x){x=x===void 0?!1:x;g.jv(t);V.Gd.lastError="player.exception";V.errorMessage=t.name+"_"+t.message;x?g.sb(function(){bk(V.Gd)}):bk(V.Gd)}; Wjw=function(V,t){V.timing.X=!0;V.xhr.kd()&&V.timing.yD();if(V.policy.q6){var x;(x=V.ER)==null||x.stop()}qT(V.YQ,t,!1)}; oT0=function(V,t){V.info=t;if(V.YQ){var x=V.YQ;t=t.qP;(t.length!==x.qP.length||t.length0){t=g.G(t.qP);for(var x=t.next();!x.done;x=t.next()){var u=void 0;V+=((u=x.value.range)==null?void 0:u.length)||0}return V}if(t.zM.length>0)for(x=g.G(t.zM),u=x.next();!u.done;u=x.next())V+=u.value.ZW||0;return V+t.Vk}; XB=function(V,t){if(FB){var x=0;V=V.sZ.get(t);if(V==null||!V.AQ)return 0;V=g.G(V.AQ.values());for(t=V.next();!t.done;t=V.next())x+=t.value.data.getLength();return x}return((x=V.sZ.get(t))==null?void 0:x.sL.getLength())||0}; ze=function(V,t){V=V.sZ.get(t);if(FB){if(V==null||!V.O_)return!1;t=V.AQ.size>0;return V.h$.length>0||t}return!(V==null||!V.O_)&&!(V==null||!V.sL.getLength())}; H19=function(V,t){var x=V.sZ.get(t),u=lP9(V,t),Z=!u&&!!x.bytesReceived;if(FB){var P;if((P=V.bD)==null?0:P.uq){V=g.G(x.AQ.values());for(t=V.next();!t.done;t=V.next())if(!t.value.XQ)return!1;return Z}}else if(P=V.HD(t),Z&&V.J&&P!==void 0)return P;return(Z||x.bytesReceived===u)&&x.mW+XB(V,t)===x.bytesReceived}; UyK=function(V,t,x){V.sZ.set(t,{sL:new Mj,mW:0,bytesReceived:0,Vk:0,Ul:!1,lI:!1,HD:!1,OL:x,qZ:[],qP:[],zM:[],O_:!1,AQ:new Map,r_:new Map,h$:[]});V.logger.debug(function(){return"[initStream] formatId: "+t})}; DyT=function(V,t,x,u){x.qP.push.apply(x.qP,g.v(u));if(FB){x.r_.has(t)||x.r_.set(t,[]);var Z;(Z=x.r_.get(t)).push.apply(Z,g.v(u))}else if(x.YQ)for(V=g.G(u),t=V.next();!t.done;t=V.next())x.YQ.qP.push(t.value);else{x.YQ=new KG(V.kK,[].concat(g.v(x.qP)));var P;((P=V.kK)==null?0:P.eK)&&g.y(V,x.YQ)}}; eZl=function(V,t,x){var u,Z=(u=V.bD)==null?void 0:u.N.get(t);if(!Z)return[];if(x.C7){var P;return((P=Z.AR(0,x.clipId))==null?void 0:P.qP)||[]}if(Z.P2()){var K=x.startMs,R=x.durationMs,f=1E3,b;if(((b=V.kK)==null?0:b.J)&&x.timeRange){var E;K=(E=x.timeRange.gh)!=null?E:-1;var k;R=(k=x.timeRange.bX)!=null?k:-1;var O;f=(O=x.timeRange.ow)!=null?O:-1}if(x.rR<0||x.J8<0||R<0||K<0||x.ZW<0||f<0)return gG(V,t),[];V=mu(x.rR,x.ZW);t=x.EG||0;return[new QY(3,Z,V,"makeSliceInfosMediaBytes",x.J8-1,K/f,R/f,t,V.length- t,void 0,x.jK,x.clipId)]}if(x.J8<0)return gG(V,t),[];var N;return((N=V.bD)==null?0:N.uq)?(t=Z.o4,b=t*Z.info.n1,E=((K=V.kK)==null?0:K.Fz)?x.EG:void 0,((f=V.kK)==null?0:f.cO)&&x.timeRange&&!E&&(R=x.timeRange.gh/x.timeRange.ow),[new QY(3,Z,void 0,"makeSliceInfosMediaBytes",x.J8,R,t,E,b,!0,x.jK,x.clipId)]):[]}; dy1=function(V,t,x){V.bD=t;V.kK=x;t=g.G(V.sZ);for(x=t.next();!x.done;x=t.next()){var u=g.G(x.value);x=u.next().value;u=u.next().value;for(var Z=g.G(u.qZ),P=Z.next();!P.done;P=Z.next()){P=P.value;var K=eZl(V,x,P);DyT(V,P.mU,u,K)}}}; Bj=function(V,t,x,u){V.logger.debug(function(){return"[addStreamData] formatId: "+x+",headerId: "+t+" bytes: "+u.getLength()}); (V=V.sZ.get(x))&&!V.lI&&(FB?(V.AQ.has(t)||V.AQ.set(t,{data:new Mj,Am:0,XQ:!1}),g_(V.AQ.get(t).data,u)):g_(V.sL,u),V.bytesReceived+=u.getLength(),V.Ul=!0)}; MT=function(V,t){V.logger.debug(function(){return"[closeStream] formatId: "+t}); var x=V.sZ.get(t);x&&!x.lI&&(x.lI=!0,x.dh&&x.dh(),C8K(V)&&V.W.QT())}; C8K=function(V){V=g.G(V.sZ.values());for(var t=V.next();!t.done;t=V.next())if(!t.value.lI)return!1;return!0}; mf=function(V,t,x,u,Z,P,K,R){g.c.call(this);this.policy=V;this.info=t;this.bD=x;this.It=Z;this.ZA=R;this.logger=new g.ZG("sabr");this.Xb=new wh(this);this.xx=new vj(this);this.gb=new LG(this);this.state=1;this.Z1=!1;this.Vv=0;this.clipId="";this.jm=this.wj=-1;this.EY=0;this.r7=-1;this.Rc=this.Ch=!1;this.WU=0;this.Mi=!1;this.policy.nw?this.ih=new Ge(this,P):this.ih=new Ch(this,P);this.cw=this.policy.CI?t.KB:Jpj(t,this.policy,u);this.cw.set("rn",""+this.uL());this.cw.set("alr","yes");dy1(this.gb,x, V);this.Gd=new RJ(this,this.policy,this.cw,t.zc,this.ih,this.logger,u,K,this.policy.enableServerDrivenRequestCancellation);RZq(this.Gd);var f;if((f=this.policy)==null?0:f.eK)g.y(this,this.gb),g.y(this,this.Gd);V=t.S;t={method:"POST",body:V};V&&(this.EY=V.length);try{this.xhr=uk(this.cw,this.policy.C,this.ih,wV,t),this.policy.HO&&dh(this.ih,this.dL()),this.Gd.S.start()}catch(b){g.lf(b)}}; hZs=function(V){V.policy.HH&&V.dX&&!V.Mi?V.Mi=!0:V.ih.yD()}; wg8=function(V,t){var x=-1,u=-1,Z=-1,P;if((P=V.AD)==null?0:P.items)for(V=g.G(V.AD.items),P=V.next();!P.done;P=V.next())P=P.value,t=R,f=V.bD.isManifestless&&V.policy.p8, K){var b;if(((b=V.J)==null?void 0:b.iI.event)==="predictStart"&&V.J.GUV.G&&(V.G=NaN,V.L=NaN);if(V.J&&V.J.GU===t)if(u=V.J,!V.policy.U_||Z&&u){var K=u.iI;P=Z.Gw(K);K.event==="predictStart"&&(V.wk=t);V.J6("sdai",{onqevt:K.event,sq:t,mt:x,gab:P,cst:K.startSecs,cueid:V.policy.TT&&(P||K.event==="start")?K.identifier:void 0});if(P)if(K.event!=="predictStart")K.event==="start"&&V.wk===t-1&&V.J6("sdai",{gabonstart:t}), u.JF?rG(V,4,"cue"):(V.G=t,V.L=x,V.J6("sdai",{joinad:V.S,sg:V.G,st:V.L.toFixed(3)}),V.X=Date.now(),rG(V,2,"join"),Z.kz(u.iI));else{var R=t+Math.max(Math.ceil(-K.J/5E3),1);P=Math.floor(x-K.J/1E3);V.policy.G?V.N=P:V.W=R;V.J6("sdai",{onpred:x,estsq:R,estmt:P.toFixed(3)});V.policy.N0&&Wj(V.iD,P,P,R);V.X=Date.now();rG(V,3,"predict");Z.kz(u.iI)}else V.S===1?((R=V.B)==null?0:R.kM(x))?(Wj(V.iD,x,x,t),rG(V,4,"sk2had")):rG(V,5,"nogab"):K.event==="predictStart"&&(V.policy.G&&V.N>0?(x=Math.floor(x-K.J/1E3),V.N!== x&&V.J6("sdai",{updateSt:x,old:V.N}),V.N=x):V.W>0&&(x=t+Math.max(Math.ceil(-K.J/5E3),1),V.W!==x&&(V.J6("sdai",{updateSt:x,old:V.W}),V.W=x)));var f,b;if(V.R_&&K.event==="start"&&((f=V.J)==null?void 0:f.iI.event)!=="predictStart"&&((b=V.J)==null?void 0:b.GU)===t-1){var E;V.J6("sdai",{ovlpst:(E=V.J)==null?void 0:E.iI.event,sq:t})}}else V.J6("sdai",{nulldec:1,sq:t,mt:x.toFixed(3),evt:(u==null?void 0:(K=u.iI)==null?void 0:K.event)||"none"});else V.S===1&&rG(V,5,"noad")}; OB8=function(V,t,x){if(V.S===1||V.S===2)return!1;if(V.S!==0&&t===V.audioTrack){if(V.policy.G)return iBh(V.videoTrack,x)||iBh(V.videoTrack,x+1);V=oJ(V.videoTrack);if(x>(V?V.GU:-1))return!1}return!0}; nG=function(V,t,x){return(x<0||x===V.G)&&!isNaN(V.L)?V.L:t}; bBL=function(V,t){if(V.J){var x=V.J.iI.To-(t.startTime+V.C-V.J.iI.startSecs);x<=0||(x=new yO(V.J.iI.startSecs-(isNaN(V.C)?0:V.C),x,V.J.iI.context,V.J.iI.identifier,"stop",V.J.iI.J+t.duration*1E3),V.J6("cuepointdiscontinuity",{segNum:t.GU}),aJ(V,x,t.GU))}}; rG=function(V,t,x){V.S!==t&&(V.J6("sdai",{setsst:t,old:V.S,r:x}),V.S=t)}; cj=function(V,t,x,u){(u===void 0?0:u)?rG(V,1,"seek"):t>0&&Math.abs(t-x)>=5&&V.S===4&&rG(V,5,"sk2t."+t.toFixed(2)+";ct."+x.toFixed(2))}; yi=function(V,t,x){this.audio=V;this.video=t;this.reason=x}; jM=function(V,t,x){this.J=V;this.reason=t;this.token=x;this.videoId=void 0}; lk=function(V,t,x){g.c.call(this);this.policy=V;this.W=t;this.J6=x;this.N=new Map;this.G=0;this.B=!1;this.J="";this.S=!1}; Hj=function(V,t,x){if(x===void 0?0:x)V.B=!0;++V.G;x=6E4*Math.pow(2,V.G);x=(0,g.Tu)()+x;V.N.set(t.info.id,x)}; Ul=function(V){for(var t=g.G(V.N.entries()),x=t.next();!x.done;x=t.next()){var u=g.G(x.value);x=u.next().value;u=u.next().value;u<(0,g.Tu)()&&V.N.delete(x)}return V.N}; stL=function(V){return V.B&&Ul(V).size>0}; DG=function(V,t){V.J!==t&&(V.J=t,V.S=!0)}; NLl=function(V,t){var x;t&&(x=g.ei(V.W.J,function(Z){return Z.id===t})); if(!x&&(x=g.ei(V.W.J,function(Z){var P;return!((P=Z.H$)==null||!P.isDefault)}),t)){var u; V.J6("iaf",{id:t,sid:(u=x)==null?void 0:u.id})}return x}; dG=function(V,t,x,u,Z,P){var K=this;P=P===void 0?[]:P;this.iD=V;this.zU=t;this.policy=x;this.bD=u;this.B=Z;this.HX=P;this.logger=new g.ZG("dash/abr");this.J=lp;this.N=this.L=null;this.X=-1;this.Es=!1;this.nextVideo=this.S=null;this.W=[];this.dk=new Set;this.BX={};this.yC=new kO(1);this.C=0;this.xw=this.wk=this.Ij=!1;this.cX=0;this.DS=!1;this.Us=new Set;this.L1=!1;this.Wk={sY:function(){eM(K)}}; this.G=new lk(this.policy,Z,function(R,f){K.iD.J6(R,f)})}; Ihh=function(V,t,x){CG(V,t);t=NLl(V.G,x);x||t||(t=p_s(V));t=t||V.B.J[0];V.S=V.bD.J[t.id];eM(V);V.L=V.S;A00(V);SMh(V);V.N=V.nextVideo;V.L=V.S;return GS4(V)}; Fu8=function(V,t){if(vLh(V,t))return null;if(t.reason==="m"&&t.isLocked())return V.logger.debug(function(){return"User sets constraint to: "+$T(t)}),CG(V,t),V.C=V.W.length-1,eM(V),Ji(V),V.wk=V.wk||V.N!==V.nextVideo,V.N=V.nextVideo,new yi(V.S,V.N,t.reason); t.reason==="r"&&(V.X=-1);CG(V,t);Ji(V);if(t.reason==="r"&&V.nextVideo===V.N)return new yi(V.S,V.nextVideo,t.reason);Luz(V);return null}; M2h=function(V,t,x){V.S=V.bD.J[t];V.L=V.S;return new yi(V.L,V.N,x?"t":"m")}; gLw=function(V,t){if(t.info.video){if(V.N!==t)return V.N=t,GS4(V)}else V.xw=V.L!==t,V.L=t;return null}; X_h=function(V,t){if(t.J.info.video&&t.W){var x=(t.S+t.N)/t.duration,u=t.J.info.n1;x&&u&&(V.yC.x_(1,x/u),V.policy.N&&x/u>1.5&&V.iD.J6("overshoot",{sq:t.GU,br:x,max:u}))}}; hi=function(V,t,x){Hj(V.G,t,x===void 0?!1:x);V.X=-1;CG(V,V.J)}; zuL=function(V,t){return new yi(V.L,V.N,t||V.J.reason)}; Luz=function(V){if(V.N&&V.nextVideo&&wG(V,V.N.info)V.policy.hQ,R=Z<=V.policy.hQ?V8(u):hu(u);if(!P||K||R)x[Z]=u}return x}; CG=function(V,t){V.J=t;var x=V.B.videoInfos;if(!V.J.isLocked()){var u=(0,g.Tu)();x=g.Nr(x,function(R){if(R.n1>this.policy.n1)return!1;var f=this.bD.J[R.id];return Ul(this.G).get(R.id)>u?!1:f.zc.S>4||f.B>4?(this.logger.debug(function(){return"Remove "+$I(R)+"; 4 load failures"}),!1):this.Us.has(+R.itag)?!1:!0},V); stL(V.G)&&(x=g.Nr(x,function(R){return R.video.width<=854&&R.video.height<=480}))}x.length||(x=V.B.videoInfos); var Z=x;V.policy.kH&&(Z=mv0(V,Z,t));Z=g.Nr(Z,t.W,t);if(V.J.isLocked()&&V.G.J){var P=g.ei(x,function(R){return R.id===V.G.J}); P?Z=[P]:DG(V.G,"")}V.policy.kH||(Z=mv0(V,Z,t));Z.length||(Z=[x[0]]);Z.sort(function(R,f){return wG(V,R)-wG(V,f)}); t={};for(x=1;xt.Xa.video.width?(g.J_(Z,x),x--):wG(V,t.Tz)*V.policy.X>wG(V,t.Xa)&&(g.J_(Z,x-1),x--);var K=Z[Z.length-1];V.DS=!!V.N&&!!V.N.info&&V.N.info.lD!==K.lD;V.logger.debug(function(){return"Constraint: "+$T(V.J)+", "+Z.length+" fmts selectable, max selectable fmt: "+$I(K)}); V.W=Z;V.dk.clear();t=!1;for(x=0;x=1080&&(t=!0);YML(V.policy,K,V.bD.uq)}; mv0=function(V,t,x){var u=x.reason==="m"||x.reason==="s";V.policy.TK&&Ve&&g.XM&&(!u||x.J<1080)&&(t=t.filter(function(b){return b.video&&(!b.S||b.S.powerEfficient)})); if(t.length>0)if(DH()){var Z=BLw(V,t);t=t.filter(function(b){return!!b&&!!b.video&&b.lD===Z[b.video.J].lD})}else{var P,K,R=(P=t[0])==null?void 0:(K=P.video)==null?void 0:K.J; if(R){x=t.filter(function(b){return!!b&&!!b.video&&b.video.J===R}); var f=BLw(V,x)[R].lD;t=t.filter(function(b){return!!b&&!!b.video&&b.lD===f})}}return t}; QtK=function(V,t){for(var x=0;x+1u}; eM=function(V){if(!V.S||!V.policy.W&&!V.S.info.H$){var t=V.B.J;V.S&&(t=t.filter(function(u){return u.audio.J===V.S.info.audio.J}),t.length||(t=V.B.J)); V.S=V.bD.J[t[0].id];if(t.length>1){if(V.policy.Ju){if(V.policy.Tc)return;var x=g.ei(t,function(u){return u.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); x&&(V.S=V.bD.J[x.id])}x=!1;if(x=V.policy.SH?!0:V.J.isLocked()?V.J.J<240:QtK(V,V.S))V.S=V.bD.J[g.U$(t).id]}}}; Ji=function(V){if(!V.nextVideo||!V.policy.W)if(V.J.isLocked())V.nextVideo=V.J.J<=360?V.bD.J[V.W[0].id]:V.bD.J[g.U$(V.W).id],V.logger.debug(function(){return"Select max fmt: "+$I(V.nextVideo.info)}); else{for(var t=Math.min(V.C,V.W.length-1),x=B3(V.zU),u=wG(V,V.S.info),Z=x/V.policy.Ij-u;t>0&&!(wG(V,V.W[t])<=Z);t--);for(var P=x/V.policy.X-u;t=P);t++);V.nextVideo=V.bD.J[V.W[t].id];V.C!==t&&V.logger.info(function(){return"Adapt to: "+$I(V.nextVideo.info)+", bandwidth: "+x.toFixed(0)+", bandwidth to downgrade: "+Z.toFixed(0)+", bandwidth to upgrade: "+P.toFixed(0)+", constraint: "+$T(V.J)}); V.C=t}}; A00=function(V){var t=V.policy.Ij,x=B3(V.zU),u=x/t-wG(V,V.S.info);t=g.d7(V.W,function(Z){return wG(this,Z)P?Z=0:u[K]>V.buffered[K]&&(K===P-1?Z=2:K===P-2&&u[K+1]>V.buffered[K+1]&&(Z=3))}V.J.add(t<<3|(x&&4)|Z);t=Math.ceil(V.track.al()*1E3);V.J.add(t-V.G);V.G=t;if(Z===1)for(V.J.add(P),K=t=0;K=2&&V.J.add(u[P- 1]-V.buffered[P-1]);x&&V.J.add(x);V.buffered=u}; ud=function(V,t,x){var u=this;this.policy=V;this.J=t;this.cX=x;this.W=this.S=0;this.Qe=null;this.Ij=new Set;this.X=[];this.indexRange=this.initRange=null;this.C=new xJ;this.wk=this.zU=!1;this.Wk={V4P:function(){return u.N}, Xvy:function(){return u.chunkSize}, M9U:function(){return u.L}, jH6:function(){return u.B}}; (t=oL9(this))?(this.chunkSize=t.csz,this.N=Math.floor(t.clen/t.csz),this.L=t.ck,this.B=t.civ):(this.chunkSize=V.o6,this.N=0,this.L=g.m3(16),this.B=g.m3(16));this.G=new Uint8Array(this.chunkSize);this.L&&this.B&&(this.crypto=new C3s(this.L,this.B))}; oL9=function(V){if(V.policy.IN&&V.policy.ME)for(var t=g.G(V.policy.IN),x=t.next(),u={};!x.done;u={h2:void 0,yq:void 0},x=t.next())if(x=g.i$(x.value),u.h2=+x.clen,u.yq=+x.csz,u.h2>0&&u.yq>0&&V.policy.W===x.docid&&V.J.info.id===x.fmtid&&V.J.info.lastModified===+x.lmt)return V={},V.clen=u.h2,V.csz=u.yq,V.ck=x.ck,V.civ=x.civ,V}; ZQ=function(V){return!!V.Qe&&V.Qe.hY()}; y0q=function(V,t){if(!ZQ(V)&&!V.uD()){if(!(V.zU||(V.zU=!0,V.N>0))){var x=Pf(V);x=ag(V.policy.W,V.J.info,KV(V),x,V.policy.HX);qI(V,x)}if(t.info.type===1){if(V.Qe){Re(V,Error("Woffle: Expect INIT slices to always start us off"));return}V.initRange=mu(0,t.J.getLength())}else if(t.info.type===2)V.Qe&&V.Qe.type===1||Re(V,Error("Woffle: Index before init")),V.indexRange=mu(V.initRange.end+1,t.J.getLength());else if(t.info.type===3){if(!V.Qe){Re(V,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(V.Qe.type===3&&!TS(V.Qe,t.info)&&(V.X=[],t.info.GU!==W_(V.Qe)||t.info.S!==0))return;if(t.info.W){x=g.G(V.X);for(var u=x.next();!u.done;u=x.next())nLT(V,u.value);V.X=[]}else{V.X.push(t);V.Qe=t.info;return}}else{Re(V,Error("Woffle: Unexpected slice type"));return}V.Qe=t.info;nLT(V,t);c0K(V)}}; nLT=function(V,t){var x=0,u=t.J.BQ();if(V.W=u.length)return;if(x<0)throw Error("Missing data");V.W=V.N;V.S=0}for(Z={};x0){var K=u.getUint32(x+28);P+=K*16+4}var R=u.getUint32(x+P-4);try{var f=DvT(t.subarray(x+P,x+P+R));if(f!==null){var b=f;break a}}catch(E){}}x+=Z}b=null;break a}catch(E){b=null;break a}b=void 0}if(b!=null)for(t=E9(rp(b,7)),t==null||V.JZ||(V.cryptoPeriodIndex=t),t=E9(rp(b,10)),t!=null&&t>0&&!V.JZ&&(V.J=t),b=U9(b, 2,$Y0,void 0===kaT?2:4),b=g.G(b),t=b.next();!t.done;t=b.next())V.N.push(g.pR(gl(t.value),4))}; dv1=function(V){return isNaN(V.cryptoPeriodIndex)?g.pR(V.initData):""+V.cryptoPeriodIndex}; bd=function(V,t,x){var u=x===void 0?{}:x;x=u.videoDuration===void 0?0:u.videoDuration;var Z=u.lE===void 0?void 0:u.lE;u=u.NS===void 0?!1:u.NS;this.videoId=V;this.status=t;this.videoDuration=x;this.lE=Z;this.NS=u}; Cwj=function(V,t,x,u,Z){this.videoId=V;this.Yg=t;this.S=x;this.bytesDownloaded=u;this.J=Z}; EE=function(V){this.J=V;this.offset=0}; kd=function(V){if(V.offset>=V.J.getLength())throw Error();return V.J.getUint8(V.offset++)}; J09=function(V,t){t=t===void 0?!1:t;var x=kd(V);if(x===1){t=-1;for(x=0;x<7;x++){var u=kd(V);t===-1&&u!==255&&(t=0);t>-1&&(t=t*256+u)}return t}u=128;for(var Z=0;Z<6&&u>x;Z++)x=x*256+kd(V),u*=128;return t?x:x-u}; hu4=function(V){try{var t=J09(V,!0),x=J09(V,!1);return{id:t,size:x}}catch(u){return{id:-1,size:-1}}}; w_8=function(V){for(var t=new EE(V),x=-1,u=0,Z=0;!u||!Z;){var P=hu4(t),K=P.id;P=P.size;if(K<0)return;if(K===176){if(P!==2)return;u=t.EJ()}else if(K===186){if(P!==2)return;Z=t.EJ()}K===374648427?x=t.EJ()+P:K!==408125543&&K!==174&&K!==224&&t.skip(P)}t=mv(V,0,x);x=new DataView(t.buffer);x.setUint16(u,3840);x.setUint16(Z,2160);u=new Mj([t]);g_(u,V);return u}; VHL=function(V,t,x){var u=this;this.iD=V;this.policy=t;this.B=x;this.logger=new g.ZG("dash");this.S=[];this.J=null;this.zU=-1;this.X=0;this.Us=NaN;this.Ij=0;this.N=NaN;this.C=this.Es=0;this.DS=-1;this.BX=this.G=this.W=this.cX=null;this.yC=this.xw=NaN;this.L=this.wk=this.dk=this.HX=null;this.QC=!1;this.L1=this.timestampOffset=0;this.Wk={VU:function(){return u.S}}; if(this.policy.W){var Z=this.B,P=this.policy.W;this.policy.HX&&V.J6("atv",{ap:this.policy.HX});this.L=new ud(this.policy,Z,function(K,R,f){id(V,new bd(u.policy.W,2,{lE:new Cwj(P,K,Z.info,R,f)}))}); this.L.C.promise.then(function(K){u.L=null;K===1?id(V,new bd(u.policy.W,K)):u.iD.J6("offlineerr",{status:K.toString()})},function(K){var R=(K.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); K instanceof fV&&!K.J?(u.logger.info(function(){return"Assertion failed: "+R}),u.iD.J6("offlinenwerr",{em:R}),OE(u),id(V,new bd(u.policy.W,4))):(u.logger.info(function(){return"Failed to write to disk: "+R}),u.iD.J6("dldbwerr",{em:R}),OE(u),id(V,new bd(u.policy.W,4,{NS:!0})))})}}; tHq=function(V){return V.S.length?V.S[0]:null}; xVT=function(V,t){return V.S.some(function(x){return x.info.GU===t})}; qy0=function(V,t,x,u){u=u===void 0?0:u;if(V.G){var Z=V.G.S+V.G.N;if(x.info.S>0)if(x.info.GU===V.G.GU&&x.info.S=0&&V.G.GU>=0&&!TS(V.G,x.info))throw new g.xe("improper_continuation",V.G.N6(),x.info.N6());oY8(V.G,x.info)||sE(V,"d")}else if(x.info.S>0)throw new g.xe("continuation_of_null",x.info.N6());V.G=x.info;V.B=x.info.J;if(x.info.S===0){if(V.J)if(!V.iD.isOffline()||V.policy.gi)V.iD.J6("slice_not_fully_processed",{buffered:V.J.info.N6(), push:x.info.N6()});else throw new g.xe("slice_not_fully_processed",V.J.info.N6(),x.info.N6());NI(V);V.Es=u}else{if(V.Es&&u&&V.Es!==u)throw V=new g.xe("lmt_mismatch",x.info.GU,V.Es,u),V.level="WARNING",V;!x.info.J.P2()&&V.W&&(u=x.info,Z=V.W.wj,u.G="updateWithEmsg",u.GU=Z)}if(V.J){u=g.tW(V.J,x);if(!u)throw new g.xe("failed_to_merge",V.J.info.N6(),x.info.N6());V.J=u}else V.J=x;a:{x=g.uQ(V.J.info.J.info);if(V.J.info.type!==3){if(!V.J.info.W)break a;V.J.info.type===6?u4K(V,t,V.J):Ze4(V,V.J);V.J=null}for(;V.J;){u= V.J.J.getLength();if(V.zU<=0&&V.X===0){var P=V.J.J,K=-1;Z=-1;if(x){for(var R=0;R+80))break;if(k!==408125543)if(k===524531317)R=!0,E>=0&&(Z=P.EJ()+E,f=!0);else{if(R&&(k===160||k===163)&&(K<0&&(K=b),f))break;k===163&&(K=Math.max(0,K),Z=P.EJ()+E);if(k===160){K<0&&(Z=K=P.EJ()+E);break}P.skip(E)}}K<0&&(Z=-1)}if(K< 0)break;V.zU=K;V.X=Z-K}if(V.zU>u)break;V.zU?(u=Pe8(V,V.zU),u.G&&K$0(V,u),u4K(V,t,u),pV(V,u),V.zU=0):V.X&&(u=Pe8(V,V.X<0?Infinity:V.X),V.X-=u.J.getLength(),pV(V,u))}}V.J&&V.J.info.W&&(pV(V,V.J),V.J=null)}; Ze4=function(V,t){!t.info.J.P2()&&t.info.S===0&&(g.uQ(t.info.J.info)||t.info.J.info.JZ())&&iFj(t);if(t.info.type===1)try{K$0(V,t),Rh8(V,t)}catch(Z){g.jv(Z);var x=ot(t.info);x.hms="1";V.iD.handleError("fmt.unparseable",x||{},1)}x=t.info.J;x.hC(t);V.L&&y0q(V.L,t);if(x.h9()&&V.policy.J)a:{V=V.iD.bD;t=t.info.clipId;x=g.KF(x.info,V.uq);if(t){var u=mfh(V,x);if(V.L1[u])break a;V.L1[u]=t}V.BX.push(x)}}; r5L=function(V,t,x){if(V.S.length!==0&&(x||V.S.some(function(P){return P.info.An=Sf(K)+R):t=V.getDuration()>=K.getDuration(),t=!t;t&&bes(x)&&(t=V.cX,AL?(R=EI4(x),K=1/R,R=Sf(V,R),t=Sf(t)+K-R):t=t.getDuration()- V.getDuration(),t=1+t/x.info.duration,O5l(x.zk(),t))}else{K=!1;V.W||(iFj(x),x.S&&(V.W=x.S,K=!0,P=x.info,u=x.S.wj,P.G="updateWithEmsg",P.GU=u,P=x.S,P.hY&&(u=V.B.index,u.S=!P.hY,u.N="emsg"),P=x.info.J.info,u=x.zk(),g.uQ(P)?t0(u,1701671783):P.JZ()&&fB([408125543],307544935,u)));a:if((P=Ze(x,V.policy.Qt))&&kGq(x))R=EUh(V,x),V.C+=R,P-=R,V.Ij+=P,V.N=V.policy.gj?V.N+P:NaN;else{if(V.policy.Vu){if(u=f=V.iD.xF(g.xU(x),1),V.N>=0&&x.info.type!==6){if(V.policy.gj&&isNaN(V.xw)){g.lf(new g.xe("Missing duration while processing previous chunk", x.info.N6()));V.iD.isOffline()&&!V.policy.gi||kns(V,x,u);sE(V,"m");break a}var b=f-V.N,E=b-V.C,k=x.info.GU,O=V.BX?V.BX.GU:-1,N=V.yC,p=V.xw,I=V.policy.uF&&b>V.policy.uF,L=Math.abs(E)>10,M=Math.abs(V.N-u)<1E-7;if(Math.abs(E)>1E-4){V.L1+=1;var z=(Z=V.W)==null?void 0:Hg(Z);Z={audio:""+ +V.OL(),sq:k.toFixed(),sliceStart:f,lastSq:O.toFixed(),lastSliceStart:N,lastSliceDuration:p,totalDrift:(b*1E3).toFixed(),segDrift:(E*1E3).toFixed(),skipRewrite:""+ +(I||L)};if(z==null?0:z.length)Z.adCpn=z[0];V.iD.handleError("qoe.avsync", Z);V.DS=k}I||L||M||(u=V.N);Z=EUh(V,x,f);P-=Z;V.C=b+Z;V.policy.N&&(E&&!M||Z)&&(b=(R=V.W)==null?void 0:Hg(R),V.iD.J6("discontinuityRewrite",{adCpn:(b==null?0:b.length)?b.join("."):"",itag:x.info.J.info.itag,sq:x.info.GU,originalStartTime:f,rewrittenStartTime:u,startTimeAdjustment:u-f,segDrift:(E*1E3).toFixed(),originalDuration:P+Z,rewrittenDuration:P,durationAdjustment:Z}))}}else u=isNaN(V.N)?x.info.startTime:V.N;kns(V,x,u)&&(V.Ij+=P,V.N=u+P,V.policy.hM&&V.L1>=V.policy.hM&&(V.L1=0,V.iD.Rn({resetForRewrites:"count"})))}V.BX= x.info;V.xw=ue(x);x.N>=0&&(V.yC=x.N);if(K&&V.W){K=ie1(V,!0);nB(x.info,K);V.J&&nB(V.J.info,K);t=g.G(t);for(R=t.next();!R.done;R=t.next())R=R.value,Z=void 0,V.policy.B&&R.GU!==((Z=V.W)==null?void 0:Z.wj)||nB(R,K);(x.info.W||V.J&&V.J.info.W)&&x.info.type!==6||(V.wk=K,V.policy.yC?(t=Oe1(V.W),V.iD.PK(V.B,K,t)):(t=V.iD,t.bD.isManifestless&&s$C(t,K,null,!!V.B.info.video)),V.policy.IB||NVz(V))}}Rh8(V,x);V.timestampOffset&&$fT(x,V.timestampOffset)}; pV=function(V,t){if(t.info.W){V.HX=t.info;if(V.W){var x=V.W,u=ie1(V,!1);x=Oe1(x);V.iD.PK(V.B,u,x);V.wk||V.policy.IB||NVz(V);V.wk=null}NI(V)}V.L&&y0q(V.L,t);if(u=V.n7())if(u=g.tW(u,t,V.policy.Nn)){V.S.pop();V.S.push(u);return}V.S.push(t)}; Oe1=function(V){if(V.JF()){var t=V.data["Stitched-Video-Id"]?V.data["Stitched-Video-Id"].split(",").slice(0,-1):[],x=Hg(V),u=[];if(V.data["Stitched-Video-Duration-Us"])for(var Z=g.G(V.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),P=Z.next();!P.done;P=Z.next())u.push((Number(P.value)||0)/1E6);Z=[];if(V.data["Stitched-Video-Start-Frame-Index"]){P=g.G(V.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var K=P.next();!K.done;K=P.next())Z.push(Number(K.value)||0)}Z=[]; if(V.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(P=g.G(V.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),K=P.next();!K.done;K=P.next())Z.push((Number(K.value)||0)/1E6);V=new UvC(t,x,u,Z,g.b5l(V),g.EYz(V))}else V=null;return V}; NI=function(V){V.J=null;V.zU=-1;V.X=0;V.W=null;V.Us=NaN;V.Ij=0;V.wk=null}; sE=function(V,t){t={rst4disc:t,cd:V.C.toFixed(3),sq:V.BX?V.BX.GU:-1};V.N=NaN;V.C=0;V.DS=-1;V.BX=null;V.yC=NaN;V.xw=NaN;V.dk=null;V.iD.J6("mdstm",t)}; Rh8=function(V,t){if(V.B.info.Pw){if(t.info.J.info.JZ()){var x=new uw(t.zk());if(P_(x,[408125543,374648427,174,28032,25152,20533,18402])){var u=Rt(x,!0);x=u!==16?null:kL(x,u)}else x=null;u="webm"}else t.info.L=lhs(t.zk()),x=HB4(t.info.L),u="cenc";x&&x.length&&(x=new $d(x,u),V.policy.mu&&g.uQ(t.info.J.info)&&(u=Gfj(t.zk()))&&(x.S=u),x.JZ=t.info.J.info.JZ(),t.S&&t.S.cryptoPeriodIndex&&(x.cryptoPeriodIndex=t.S.cryptoPeriodIndex),t.S&&t.S.S&&(x.J=t.S.S),V.iD.Lq(x))}}; NVz=function(V){var t=V.W,x=fiL(t);x&&(x.startSecs+=V.Us,V.iD.L4(V.B,x,t.wj,t.JF()))}; ie1=function(V,t){var x,u=V.W;if(x=fiL(u))x.startSecs+=V.Us;var Z=V.Us,P=t?u.o4:V.Ij;V=V.policy.s0&&u.JF()?2:1;return new Bg(u.wj,Z,P,u.ingestionTime,"sq/"+u.wj,void 0,void 0,t,x,V)}; kns=function(V,t,x){if(!fHK(t,x))return t=ot(t.info),t.smst="1",V.iD.handleError("fmt.unparseable",t||{},1),!1;isNaN(V.Us)&&(V.Us=x);return!0}; EUh=function(V,t,x){var u=0;if(t.info.J.info.JZ()&&!kGq(t))return 0;if(V.cX&&!V.OL()){var Z=0;x&&g.uQ(t.info.J.info)?Z=x-V.N:t.info.J.info.JZ()&&(Z=V.C);var P=t.info.GU;x=Ze(t,V.policy.Qt);var K=V.cX;var R=K.DS;K=K.C;var f=Math.abs(K-Z)>.02;if((P===R||P>R&&P>V.DS)&&f){u=Math.max(.95,Math.min(1.05,(x-(K-Z))/x));if(g.uQ(t.info.J.info))O5l(t.zk(),u);else if(t.info.J.info.JZ()&&(P=Z-K,!g.uQ(t.info.J.info)&&(t.info.J.info.JZ(),u=new uw(t.zk()),R=t.G?u:new uw(new DataView(t.info.J.J.buffer)),Ze(t,!0)))){var b= P*1E3,E=OM(R);R=u.pos;u.pos=0;if(u.J.getUint8(u.pos)===160||sM(u))if(qv(u,160))if(Rt(u,!0),qv(u,155)){if(P=u.pos,f=Rt(u,!0),u.pos=P,b=b*1E9/E,E=$L(u),b=E+Math.max(-E*.7,Math.min(E,b)),b=Math.sign(b)*Math.floor(Math.abs(b)),!(Math.ceil(Math.log(b)/Math.log(2)/8)>f)){u.pos=P+1;for(P=f-1;P>=0;P--)u.J.setUint8(u.pos+P,b&255),b>>>=8;u.pos=R}}else u.pos=R;else u.pos=R;else u.pos=R}u=Ze(t,V.policy.Qt);u=x-u}u&&t.info.J.info.JZ()&&V.iD.J6("webmDurationAdjustment",{durationAdjustment:u,videoDrift:Z+u,audioDrift:K})}return u}; bes=function(V){return V.info.J.P2()&&V.info.GU===V.info.J.index.C9()}; Sf=function(V,t){t=(t=t===void 0?0:t)?Math.round(V.timestampOffset*t)/t:V.timestampOffset;V.B.W&&t&&(t+=V.B.W.J);return t+V.getDuration()}; pss=function(V,t){t<0||(V.S.forEach(function(x){$fT(x,t)}),V.timestampOffset=t)}; Tq=function(V,t,x,u,Z){Vi.call(this,x,Z);var P=this;this.policy=V;this.formatId=t;this.gb=u;this.lastError=null;this.dh=function(){P.uD()||(P.gb.sZ.has(P.formatId)?(P.isComplete()||P.J.start(),ze(P.gb,P.formatId)&&P.nT(2),P.gb.lI(P.formatId)&&(H19(P.gb,P.formatId)?P.Hk(4):(P.lastError="net.closed",P.Hk(5)))):(P.lastError="player.exception",P.Hk(5)))}; this.J=new g.qK(function(){P.isComplete()||(P.lastError="net.timeout",P.Hk(5))},this.policy.Ce); this.J.start();ypK(this.gb,this.formatId,this.dh);g.sb(this.dh)}; Gb=function(V,t,x,u){g.c.call(this);var Z=this;this.iD=V;this.policy=t;this.J=x;this.timing=u;this.logger=new g.ZG("dash");this.N=[];this.zU=[];this.S=this.bq=null;this.Es=!1;this.L1=this.dk=0;this.B=-1;this.wk=!1;this.Us=-1;this.cX=this.BX=null;this.Ij=NaN;this.Wk={rr:function(){return Z.W}, bfD:function(){return Z.N}, Ouk:function(){return Z.C}}; this.W=new VHL(V,t,x);this.policy.J&&(this.C=new YZ(this.W,this.iD.getManifest(),this.policy,function(P){Z.policy.RR&&Z.J6("buftl",P)})); this.policy.QC&&(this.X=new tL(this));this.n1=x.info.n1;this.L=this.policy.zU?!1:x.uH();this.isManifestless=x.uH();this.G=this.L;g.y(this,this.BX)}; Ie=function(V,t,x){x=x===void 0?!1:x;t&&AL&&pss(V.W,t.Ng());if(!x){var u;(u=V.C)==null||m79(u)}V.bq=t;(t=V.C)!=null&&(t.bq=V.bq)}; vf=function(V){var t=V.bq&&V.bq.Ih();if(V.policy.Fq){if((V=V.C)==null)V=void 0;else{var x;V=(x=V.N)==null?void 0:x.info}return V||null}return t}; AWq=function(V){for(var t={},x=0;x4&&V.zU.shift()}; Sys=function(V,t){if(t.rH()){var x=t.Hp();x=g.G(x);for(var u=x.next();!u.done;u=x.next())u=u.value,V.policy.N&&t instanceof Tq&&V.J6("omblss",{s:u.info.N6()}),F9(V,t.info.qP,u,t.JC())}}; F9=function(V,t,x,u){u=u===void 0?0:u;isNaN(V.Ij)||(V.J6("aswm",{sq:t[0].GU,id:t[0].J.info.itag,xtag:t[0].J.info.J,ep:Date.now()-V.Ij}),V.Ij=NaN);switch(x.info.type){case 1:case 2:Gn4(V,x);break;case 4:var Z=x.info.J,P=Z.VO(x),K;((K=V.S)==null?0:K.type===4)&&UFq(x.info,V.S)&&(V.S=Z.KE(V.S).pop());x=g.G(P);for(Z=x.next();!Z.done;Z=x.next())F9(V,t,Z.value,u);break;case 3:x.info.J.info.video?(Z=V.timing,Z.cX||(Z.cX=(0,g.Tu)(),mX("fvb_r",Z.cX,Z.J))):(Z=V.timing,Z.B||(Z.B=(0,g.Tu)(),mX("fab_r",Z.B,Z.J))); qy0(V.W,t,x,u);V.policy.J&&Ie4(V);break;case 6:qy0(V.W,t,x,u),V.S=x.info}}; Gn4=function(V,t){if(t.info.type===1)if(t.info.J.info.video){var x=V.timing;x.BX||(x.BX=(0,g.Tu)(),mX("vis_r",x.BX,x.J))}else x=V.timing,x.C||(x.C=(0,g.Tu)(),mX("ais_r",x.C,x.J));Ze4(V.W,t);V=V.iD;V.videoTrack.J.h9()&&V.audioTrack.J.h9()&&V.policy.J&&!V.bD.uq&&(t=V.audioTrack.getDuration(),x=V.videoTrack.getDuration(),Math.abs(t-x)>1&&V.J6("trBug",{af:""+g.KF(V.audioTrack.J.info,!1),vf:""+g.KF(V.videoTrack.J.info,!1),a:""+t,v:""+x}))}; Ue=function(V){return tHq(V.W)}; Ie4=function(V){V.N.length?V.S=g.U$(g.U$(V.N).info.qP):V.W.S.length?V.S=V.W.n7().info:V.S=vf(V)}; MI=function(V,t){var x={pI:[],aM:[]},u;if((V=V.C)==null)V=void 0;else{BnC(V,V.pI,"og");g0q(V,t);BnC(V,V.pI,"trim");var Z=zEK(V);t=Z.pI;Z=Z.Cx;for(var P=[],K=0;K0){var O=kI(k,f);O>=0&&(E=(k.end(O)-f+.1)*1E3)}P.push({formatId:g.KF(R.info.J.info,V.bD.uq),jK:R.info.jK, sequenceNumber:R.info.GU+V.W,EU:b,il:R.info.N,OX:E})}V={pI:t,aM:P}}return(u=V)!=null?u:x}; nh=function(V,t,x){x=x===void 0?!1:x;if(V.bq){var u=V.bq.O1(),Z=OG(u,t),P=NaN,K=vf(V);K&&(P=OG(u,K.J.index.getStartTime(K.GU)));if(Z===P&&V.S&&V.S.N&&vUz(gS(V),0))return t}V=L$C(V,t,x);return V>=0?V:NaN}; y6=function(V,t,x){V.J.h9();var u=L$C(V,t);if(u>=0)return u;var Z;(Z=V.C)==null||X8C(Z,t,x);x=Math;u=x.min;Z=V.W;if(Z.L)if(Z=Z.L,Z.Qe&&Z.Qe.type===3)Z=Z.Qe.startTime;else if(Z.N>0){var P=Z.J.index;P=g.qY(P.offsets.subarray(0,P.count),Z.N*Z.chunkSize);Z=Z.J.index.getStartTime(P>=0?P:Math.max(0,-P-2))}else Z=0;else Z=Infinity;t=u.call(x,t,Z);if(V.policy.S){var K,R;x=(K=V.iD.pG())==null?void 0:(R=a3(K,t))==null?void 0:R.clipId;V.S=V.J.Dq(t,void 0,x).qP[0]}else V.S=V.policy.zU?null:V.J.Dq(t).qP[0];X9(V)&& V.bq&&V.bq.abort();V.L1=0;return V.S?V.S.startTime:t}; Q_z=function(V){V.L=!0;V.G=!0;V.B=-1;y6(V,Infinity)}; zb=function(V){for(var t=0,x=g.G(V.N),u=x.next();!u.done;u=x.next())t+=eS0(u.value.info);return t+=feK(V.W)}; mU=function(V,t){t=t===void 0?!1:t;var x=V.iD.getCurrentTime(),u=V.W.n7(),Z=(u==null?void 0:u.info.LG)||0;V.policy.Js&&(u==null?0:u.info.J.uH())&&!u.info.W&&(Z=u.info.An);if(V.policy.S&&u&&u.info.clipId){var P,K=(((P=V.iD.pG())==null?void 0:Q6(P,u.info.clipId))||0)/1E3;Z+=K}if(!V.bq)return V.policy.J&&t&&!isNaN(x)&&u?Z-x:0;if((P=vf(V))&&Bf(V,P))return P.LG;K=V.bq.O1(!0);if(t&&u)return P=0,V.policy.J&&(P=Nf(K,Z+.02)),P+Z-x;Z=Nf(K,x);V.policy.BR&&P&&(t=kI(K,x),K=kI(K,P.An-.02),t===K&&(x=P.LG-x,V.policy.N&& x>Z+.02&&V.J6("abh",{bh:Z,bhtls:x}),Z=Math.max(Z,x)));return Z}; F$L=function(V){var t=vf(V);return t?t.LG-V.iD.getCurrentTime():0}; MHw=function(V,t){if(V.N.length){if(V.N[0].info.qP[0].startTime<=t)return;o3(V)}for(var x=V.W,u=x.S.length-1;u>=0;u--)x.S[u].info.startTime>t&&x.S.pop();Ie4(V);V.S&&t=0;K--){var R=Z.S[K];R.info.GU>=t&&(Z.S.pop(),Z.N-=Ze(R,Z.policy.Qt),P=R.info)}P&&(Z.G=Z.S.length>0?Z.S[Z.S.length-1].info:Z.dk,Z.S.length!==0||Z.G||sE(Z,"r"));Z.iD.J6("mdstm",{rollbk:1,itag:P?P.J.info.itag:"",popped:P?P.GU:-1,sq:t,lastslc:Z.G?Z.G.GU:-1,lastfraget:Z.N.toFixed(3)});if(V.policy.J)return V.S=null,!0;u>x?y6(V,u):V.S=V.J.Nk(t-1,!1).qP[0]}catch(f){return t=rw(f),t.details.reason= "rollbkerr",V.iD.handleError(t.errorCode,t.details,t.severity),!1}return!0}; ae=function(V,t){var x;for(x=0;x0?x||t.GU>=V.Us:x}; Tb=function(V){var t;return X9(V)||Bf(V,(t=V.W.n7())==null?void 0:t.info)}; gS=function(V){var t=[],x=vf(V);x&&t.push(x);t=g.Vp(t,V.W.RH());x=g.G(V.N);for(var u=x.next();!u.done;u=x.next()){u=u.value;for(var Z=g.G(u.info.qP),P=Z.next(),K={};!P.done;K={Y6:void 0},P=Z.next())K.Y6=P.value,u.Py&&(t=g.Nr(t,function(R){return function(f){return!UFq(f,R.Y6)}}(K))),(rL(K.Y6)||K.Y6.type===4)&&t.push(K.Y6)}V.S&&!Tw1(V.S,g.U$(t),V.S.J.P2())&&t.push(V.S); return t}; vUz=function(V,t){if(!V.length)return!1;for(t+=1;t=t){t=P;break a}}t=Z}return t<0?NaN:vUz(V,x?t:0)?V[t].startTime:NaN}; Wf=function(V){return!(!V.S||V.S.J===V.J)}; gUs=function(V){return Wf(V)&&V.J.h9()&&V.S.J.info.n1t&&u.LG1080&&!V.Ds&&(V.L1=36700160,V.gk=5242880,V.dk=Math.max(4194304,V.dk),V.Ds=!0);t.video.J>2160&&!V.rJ&&(V.L1=104857600,V.n1=13107200,V.rJ=!0);g.S7(V.Yw.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?t.isEncrypted()&&g.Vz()&&g.h6("samsung")&&(g.h6("kant")||g.h6("muse"))&&(V.n1=g.S7(V.Yw.experiments,"html5_samsung_kant_limit_max_bitrate")):t.isEncrypted()&&g.Vz()&&g.h6("kant")&&(V.n1=1310720);V.Bv!==0&&t.isEncrypted()&&(V.n1=V.Bv);V.Lu!==0&&t.isEncrypted()&& x&&(V.n1=V.Lu);t.n1&&(V.SN=Math.max(V.Qd,Math.min(V.dk,5*t.n1)))}; ld=function(V){return V.J&&V.oA&&V.playbackStartPolicy}; Hf=function(V){return V.S||V.J&&V.Qc}; UE=function(V,t,x,u){V.oA&&(V.playbackStartPolicy=t,V.ws=x,V.XD=u)}; jf=function(V,t,x){x=x===void 0?0:x;return g.S7(V.Yw.experiments,t)||x}; yW8=function(V){var t=V===void 0?{}:V;V=t.t5;var x=t.z9;var u=t.vG;var Z=t.C9;t=t.TX;this.t5=V;this.z9=x;this.vG=u;this.C9=Z;this.TX=t}; U7h=function(V,t){if(t<0)return!0;var x=V.C9();return t0)return 2;if(t<0)return 1;x=V.C9();return t(0,g.Tu)()?0:1}; ef=function(V,t,x,u,Z,P,K,R,f,b,E,k,O,N){N=N===void 0?null:N;g.c.call(this);var p=this;this.iD=V;this.policy=t;this.videoTrack=x;this.audioTrack=u;this.W=Z;this.J=P;this.timing=K;this.G=R;this.schedule=f;this.bD=b;this.N=E;this.Ij=k;this.gX=O;this.WL=N;this.wk=!1;this.eU="";this.sV=null;this.YE=NaN;this.zU=!1;this.S=null;this.AB=this.X=NaN;this.V1=this.B=0;this.logger=new g.ZG("dash");this.Wk={w$:function(I,L){return p.w$(I,L)}}; this.policy.sW>0&&(this.eU=g.m3(this.policy.sW));this.policy.qf&&(this.C=new DQ(this.iD,this.policy,this.schedule),g.y(this,this.C))}; DV1=function(V,t,x){var u=t.S?t.S.J.zc:t.J.zc;var Z=V.W,P;(P=!V.policy.Pg)||(P=FU(u.J)===FU(u.N));P?u=!1:(Z=GS(Z,FU(u.N)),P=6E4*Math.pow(Z.W,1.6),(0,g.Tu)()=Z.W?(Z.J6("sdai",{haltrq:P+1,est:Z.W}),u=!1):u=Z.S!==2;if(!u||!Mv(t.S?t.S.J.zc:t.J.zc,V.policy,V.W,V.iD.dT())||V.iD.isSuspended&&(!Lo(V.schedule)||V.iD.nN))return!1;if(V.policy.W&&Q9>=5)return g.RO(V.iD.IY),!1;if(V.bD.isManifestless){if(t.N.length>0&&t.S&&t.S.GU===-1||t.N.length>=V.policy.UW||!V.policy.vn&&t.N.length>0&&!V.policy.C.z9)return!1;if(t.L)return!V.bD.isLive||!isNaN(V.YE)}if(Yy1(t))return V.logger.debug("Pending request with server-selectable format found"), !1;if(!t.S){if(!t.J.h9())return!1;y6(t,V.iD.getCurrentTime())}if(Ue(t)&&(t.n7()!==Ue(t)||V.iD.isSuspended))return!1;Z=(u=V.policy.mJ)&&!t.N.length&&mU(t,!0)=V.policy.vO)return!1;u=t.S;if(!u)return!0;u.type===4&&u.J.h9()&&(t.S=g.U$(u.J.KE(u)),u=t.S);if(!u.hY()&&!u.J.wS(u))return!1;P=V.bD.Gk||V.bD.W;if(V.bD.isManifestless&&P){P=t.J.index.C9();var K=x.J.index.C9(); P=Math.min(P,K);if(t.J.index.ZV()>0&&P>0&&u.GU>=P)return t.Us=P,x.Us=P,!1}if(u.J.info.audio&&u.type===4||u.hY())return!1;P=!t.G&&!x.G;if(Z=!Z)Z=u.LG,Z=!!(x.S&&!Bf(x,x.S)&&x.S.LGeh1(V,t)?(eh1(V,t),!1):(V=t.bq)&&V.isLocked()?!1:!0}; eh1=function(V,t){var x=V.J;x=x.J?x.J.iI:null;if(V.policy.Us&&x)return x.startSecs+x.To+15;t=c3(V.iD,t);V.policy.P$>0&&(x=((0,g.Tu)()-V.iD.GW)/1E3,t=Math.min(t,V.policy.P$+V.policy.T9*x));x=V.iD.getCurrentTime()+t;return V.policy.jh&&(t=dVh(V.iD)+V.policy.jh,t=0||t.zc.aJ("defrag")==="1"||t.zc.aJ("otf")==="1"){t=null;break a}Z=mu(0,4096)}Z=new c_([new QY(5,u.J,Z,"createProbeRequestInfo"+u.G,u.GU)],t.S);Z.On=x;Z.J=t.J;t=Z}t&&CV(V,t)}}; CV=function(V,t){V.iD.Ht(t);var x=eS0(t),u=V.iD.Cn();x={Fi:V.schedule,KQ:x,XR:SgC(V.G,x),uP:at(t.qP[0]),MB:My(t.zc.J),IJ:V.policy.N,aF:function(K,R){V.iD.JP(K,R)}}; if(V.schedule.S.B){var Z,P;x.Kx=(((Z=V.videoTrack.J)==null?void 0:Z.info.n1)||0)+(((P=V.audioTrack.J)==null?void 0:P.info.n1)||0)}V.sV&&(x.GU=t.qP[0].GU,x.YE=t.YE,x.sV=V.sV);u={JR:dF0(t,V.iD.getCurrentTime()),pw:V.policy.Ve&&j2(t)&&t.qP[0].J.info.video?r0C(V.N):void 0,qb:V.policy.Us,poToken:V.iD.e$(),ac:V.iD.Xk(),eU:V.eU,AB:isNaN(V.AB)?null:V.AB,WL:V.WL,gX:V.gX,V1:V.V1,Ei:u};return new W3(V.policy,t,x,V.W,function(K,R){try{a:{var f=K.info.qP[0].J,b=f.info.video?V.videoTrack:V.audioTrack;if(!(K.state>= 2)||K.isComplete()||K.Cf()||!(!V.iD.VC||V.iD.isSuspended||mU(b)>3)){var E=Hej(K,V.policy,V.W);E===1&&(V.zU=!0);Cej(V,K,E);if(K.isComplete()||K.uD()&&R<3){if(V.policy.N){var k=K.timing.Bo();k.rst=K.state;k.strm=K.xhr.kd();k.cncl=K.xhr&&K.Gd.W?1:0;V.iD.J6("rqs",k)}K.D1&&V.iD.J6("sbwe3",{},!0)}if(!V.uD()&&K.state>=2){fhw(V.timing,K,f);var O=V.iD;V.AB&&K.VS&&O&&(V.AB=NaN,V.iD.Wm(K.VS),V.iD.zV(),V.iD.J6("cabrUtcSeek",{mediaTimeSeconds:K.VS}));K.DL&&V.AB&&K.DL&&!K.DL.action&&(V.iD.F9(V.AB),V.AB=NaN,V.iD.J6("cabrUtcSeekFallback", {targetUtcTimeSeconds:V.AB}));K.Q1&&V.iD.PJ(K.Q1);V.policy.q6&&(V.V1=K.V1);if(K.state===3){ae(b,K);j2(K.info)&&JL(V,b,f,!0);if(V.S){var N=K.info.CQ();N&&V.S.Gl(K.info.qP[0].GU,f.info.id,N)}V.iD.LR()}else if(K.isComplete()&&K.info.qP[0].type===5){if(K.state!==4)K.Pp()&&V.iD.handleError(K.xE(),K.kF());else{var p=(K.info.qP[0].J.info.video?V.videoTrack:V.audioTrack).N[0]||null;p&&p instanceof W3&&p.Cf()&&p.Sh(!0)}K.dispose()}else{K.Pp()||JW1(V,K);var I;((I=K.xN)==null?0:I.itagDenylist)&&V.iD.bB(K.xN.itagDenylist); if(K.state===4)hL(V,K),V.J&&kS0(V.J,K.info,V.S);else if(V.policy.iM&&K.rH()&&!K.isComplete()&&!hL(V,K)&&!K.Pp())break a;K.Pp()&&(hhK(V,K),isNaN(V.AB)||(V.iD.F9(V.AB),V.AB=NaN));V.policy.IC&&!K.isComplete()?wS(V.iD):V.iD.LR();var L=UV9(K,V.policy,V.W);Cej(V,K,L)}}}}}catch(M){R=V.wk?1:0,V.wk=!0,K=aa(R),R=rw(M,R),V.iD.handleError(R.errorCode,R.details,R.severity),K||V.iD.rg()}},u)}; JW1=function(V,t){if(t.FC&&t.state>=2&&t.state!==3){var x=t.xhr.getResponseHeader("X-Response-Itag");if(x){V.logger.debug(function(){return"Applying streamer-selected format "+x}); var u=ahC(V.N,x),Z=t.info.N;Z&&(Z-=u.MK(),u.N=!0,t.info.qP[0].J.N=!1,oT0(t,u.AR(Z)),V5(V.iD,V.videoTrack,u),Q$C(V.videoTrack,u),V.iD.p4(u.info.video.quality),(Z=t.JC())&&u.info.lastModified&&u.info.lastModified!==+Z&&ae(V.videoTrack,t))}else t.FC=!1}}; hhK=function(V,t){var x=t.info.qP[0].J,u=t.xE();if(My(x.zc.J)){var Z=g.Ab(t.Nv(),3);V.iD.J6("dldbrerr",{em:Z||"none"})}Z=t.info.qP[0].GU;var P=nG(V.J,t.info.qP[0].An,Z);u==="net.badstatus"&&(V.B+=1);if(t.canRetry()&&tF(V.iD)){if(!(t.info.zc.S>=V.policy.Ky&&V.S&&t.info.isDecorated()&&u==="net.badstatus"&&V.S.Z_(P,Z))){Z=(x.info.video&&x.zc.S>1||t.A9===410||t.A9===500||t.A9===503)&&!(Ul(V.N.G).size>0)&&!My(x.zc.J);P=t.kF();var K=x.info.video?V.videoTrack:V.audioTrack;Z&&(P.stun="1");V.iD.handleError(u, P);V.uD()||(Z&&(V.logger.debug(function(){return"Stunning format "+x.info.id}),hi(V.N,x)),ae(K,t),V.iD.LR())}}else K=1,V.S&&t.info.isDecorated()&&u==="net.badstatus"&&V.S.Z_(P,Z)&&(K=0),V.bD.isLive&&t.xE()==="net.badstatus"&&V.B<=V.policy.yd*2?(dfC(V.bD),V.bD.Gk||V.bD.isPremiere?H3(V.iD,0,{xK:"badStatusWorkaround"}):V.bD.W?H3(V.iD,V.bD.Es,{xK:"badStatusWorkaround", xF:!0}):xi(V.iD)):V.iD.handleError(u,t.kF(),K)}; hL=function(V,t){if(V.policy.useUmp&&t.uD())return!1;try{var x=t.info.qP[0].J,u=x.info.video?V.videoTrack:V.audioTrack;if(V.bD.isManifestless&&u){V.B=0;u.L&&(t.uD(),t.isComplete()||t.rH(),u.L=!1);t.v1()&&V.iD.Yb.x_(1,t.v1());var Z=t.ZV(),P=t.hS();MV(V.bD,Z,P)}if(t.info.uP()&&!yY(t.info))for(var K=g.G(t.Hp()),R=K.next();!R.done;R=K.next())Gn4(u,R.value);for(V.iD.getCurrentTime();u.N.length&&u.N[0].state===4;){var f=u.N.shift();Sys(u,f);u.dk=f.zZ()}u.N.length&&Sys(u,u.N[0]);var b=!!Ue(u);b&&t instanceof Tq&&(x.info.OL()?xvj(V.timing):t2q(V.timing));return b}catch(E){t=t.kF();t.origin="hrhs";a:{V=V.iD;x=E;if(x instanceof Error){t.msg||(t.msg=""+x.message);t.name||(t.name=""+x.name);if(x instanceof g.xe&&x.args)for(u=g.G(Object.entries(x.args)),Z=u.next();!Z.done;Z=u.next())P=g.G(Z.value),Z=P.next().value,P=P.next().value,t["arg"+Z]=""+P;g.lf(x);if(x.level==="WARNING"){V.S8.Rn(t);break a}}V.handleError("fmt.unplayable",t,1)}return!1}}; wsT=function(V){var t=V.videoTrack.J.index;V.sV=new yW8({t5:V.policy.t5,z9:V.policy.C.z9,vG:t.U2(),C9:function(){return t.C9()}, TX:function(){return t.TX()}})}; JL=function(V,t,x,u){if(!(x.h9()||x.LT()||x.N||!Mv(x.zc,V.policy,V.W)||x.info.lD==="f"||V.policy.J)){if(u){u=V.G;var Z=x.info;u=Gvj(u,Z.video?u.policy.EW:u.policy.iP,Z.n1)}else u=0;u=x.AR(u);V=CV(V,u);yY(u)&&LV(t,V);x.N=!0}}; uD=function(V,t,x,u,Z,P,K,R){g.c.call(this);var f=this;this.iD=V;this.kK=t;this.videoTrack=x;this.audioTrack=u;this.bD=Z;this.X=P;this.isAudioOnly=K;this.L=R;this.S=lp;this.zU=!1;this.logger=new g.ZG("sabr");this.C=this.wk=this.Ij=!1;this.videoInfos=this.G=this.X.videoInfos;this.N=this.cX=this.X.J;this.J=new lk(t,P,function(b,E){f.iD.J6(b,E)}); this.kK.RM||VWL(this);this.isAudioOnly&&tW4(this,this.bD.J["0"])}; xl8=function(V,t){var x=[];t=g.G(t);for(var u=t.next();!u.done;u=t.next())x.push(g.KF(u.value,V.bD.uq));return x}; tW4=function(V,t,x){t!==V.W&&(V.W&&(V.zU=!0),V.W=t,V.LS(t,V.videoTrack,x))}; Piz=function(V,t){V.logger.debug("setConstraint: "+$T(t));Hf(V.kK)&&(V.wk=t.reason==="m"||t.reason==="l"?!0:!1);t.reason==="m"?t.isLocked()&&uy1(V,t.J):Zoq(V,t)?ZS(V,t.S,t.J):V.videoInfos=V.G;V.S=t}; Zoq=function(V,t){return V.kK.N4&&t.reason==="b"||V.kK.nZ?!1:V.kK.I6?!0:t.reason==="l"||t.reason==="b"||t.reason==="o"}; K84=function(V,t){return t.isLocked()&&V.J.S||V.S===void 0?!1:t.t9(V.S)}; qJC=function(V,t){var x,u=(x=V.W)==null?void 0:x.info.video.J;return V.zU?!0:V.W?t!==u?!0:!V.J.S||V.kK.a4&&V.J.J===V.W.info.itag?!1:!0:!1}; uy1=function(V,t){var x=V.J.J;if(x){V.videoInfos=V.G;var u=g.ei(V.videoInfos,function(Z){return Z.id===x}); u&&u.video.J===t?V.videoInfos=[u]:(u=V.videoInfos.map(function(Z){return Z.id}),V.iD.J6("sabrpf",{pfid:""+x, vfids:""+u.join(".")}),ZS(V,t,t),DG(V.J,""))}else ZS(V,t,t)}; ZS=function(V,t,x){V.videoInfos=V.G;V.videoInfos=g.Nr(V.videoInfos,function(u){return u.video.J>=t&&u.video.J<=x})}; VWL=function(V){var t=NLl(V.J,V.L);t&&(V.N=[t])}; RXs=function(V,t,x){if(V.kK.RM){if(V.L){var u=g.Nr(V.N,function(Z){return Z.id===V.L}); return If(u,x).includes(t)}u=g.Nr(V.N,function(Z){var P;return!((P=Z.H$)==null||!P.isDefault)}); if(u.length>0)return If(u,x).includes(t)}return If(V.N,x).includes(t)}; If=function(V,t){return V.map(function(x){return gL(g.KF(x,t))})}; f1h=function(V){var t;if((t=V.S)==null?0:t.isLocked())return V.videoInfos;var x=Ul(V.J);t=g.Nr(V.videoInfos,function(u){return u.n1>V.kK.n1?!1:!x.has(u.id)}); stL(V.J)&&(t=g.Nr(t,function(u){return u.video.width<=854&&u.video.height<=480})); return t}; EOq=function(V,t,x,u){var Z=V.bD,P=V.S8.getVideoData(),K=g.d8(P),R=V.BZ,f=pG({Yw:P.K(),S8:V.S8,uX:V.uX,kK:V.kK,GW:V.GW,BH:V.BH,SW:V.SW,TD:V.TD,pu:V.pu,isPrefetch:V.isPrefetch,Ef:V.Ef,sabrLicenseConstraint:P.sabrLicenseConstraint,WC:V.WC,wT:V.wT,mB:V.mB,W_:V.W_,A6C:!!R}),b=Ai(P,V.Ei,V.nextRequestPolicy,V.Tl,V.kW,V.J9U,V.M5);u&&x&&(u=b.iR?b.iR.map(function(I){return I.type}):[],x("ssap",{stmctxt:u.join("_"), unsntctxt:b.fP?b.fP.join("_"):""}));u=V.vZ;var E=V.GR;if(E===void 0&&u===void 0){var k;E=$l0(Z.uq,(k=V.FW)==null?void 0:k.video);var O;u=$l0(Z.uq,(O=V.FW)==null?void 0:O.audio)}if(P.WL)var N=P.WL;P={bM:f,aM:V.aM,vZ:u,GR:E,BZ:R,videoPlaybackUstreamerConfig:N,i$:b};V.H2&&(P.H2=V.H2);if(K&&t){K=new Map;var p=g.G(Z.BX);for(R=p.next();!R.done;R=p.next())R=R.value,(f=Z.L1[mfh(Z,R)]||"")?(K.has(f)||K.set(f,[]),K.get(f).push(R)):x&&x("ssap",{nocid4fmt:(R.itag||"")+"_"+(R.lmt||0)+"_"+(R.xtags||"")});Z=new Map; p=g.G(V.pI);for(R=p.next();!R.done;R=p.next())R=R.value,f=R.startTimeMs||0,b=void 0,k=(b=t)==null?void 0:a3(b,f),b=k.clipId,k=k.ym,b?(Z.has(b)||(O=K.get(b)||[],Z.set(b,{clipId:b,pI:[],pH:O})),k!==0&&(R.startTimeMs=f-k),Z.get(b).pI.push(R)):x&&(b=void 0,x("ssap",{nocid4range:"1",fmt:((b=R.formatId)==null?void 0:b.itag)||"",st:f.toFixed(3),d:(R.durationMs||0).toFixed(3),timeline:vh(t)}));P.oi=[];Z=g.G(Z.entries());for(K=Z.next();!K.done;K=Z.next())K=g.G(K.value),K.next(),K=K.next().value,P.oi.push(K); if(V.pI.length&&!P.oi.length){x&&x("ssap",{nobfrange:"1",br:boq(V.pI),timeline:vh(t)});return}V.Vl&&(P.Vl=V.Vl);V.LZ&&(P.LZ=V.LZ)}else P.pI=V.pI,P.pH=Z.BX,K&&((p=V.pI)==null?void 0:p.length)>0&&!t&&x&&x("ssap",{bldmistlm:"1"});return P}; $l0=function(V,t){return t?[g.KF(t.info,V)]:[]}; boq=function(V){var t="";V=g.G(V);for(var x=V.next();!x.done;x=V.next()){x=x.value;var u=void 0,Z=void 0,P=void 0;t+="fmt."+(((u=x.formatId)==null?void 0:u.itag)||"")+"_"+(((Z=x.formatId)==null?void 0:Z.lmt)||0)+"_"+(((P=x.formatId)==null?void 0:P.xtags)||"")+";st."+(x.startTimeMs||0).toFixed(3)+";d."+(x.durationMs||0).toFixed(3)+";"}return t}; LE=function(V,t,x){var u=this;this.requestType=V;this.zc=t;this.It=x;this.S=null;this.Wk={IWS:function(){var Z;return(Z=u.data)==null?void 0:Z.isPrefetch}, kW:function(){var Z;return(Z=u.data)==null?void 0:Z.kW}}}; Jpj=function(V,t,x){t=LB(V.zc,kos(V,t,x),t);V.IF()&&t.set("probe","1");return t}; kos=function(V,t,x){V.On===void 0&&(V.On=V.zc.On(t,x));return V.On}; io8=function(V){var t,x;return((t=V.J)==null?void 0:(x=t.bM)==null?void 0:x.zN)||0}; Oo9=function(V){var t,x;return!!((t=V.J)==null?0:(x=t.bM)==null?0:x.WC)}; shw=function(V){var t={},x=[],u=[];if(!V.data)return t;for(var Z=0;Z0;f--)x.push(R)}x.length!==K?t.error=!0:(P=x.slice(-P),x.length=Z,Qh4(t,x,P));break;case 1:Qh4(t,nE,ch);break;case 0:df(t, t.J&7);x=DS(t,16);Z=DS(t,16);(x^Z)!==65535&&(t.error=!0);t.output.set(t.data.subarray(t.S,t.S+x),t.N);t.S+=x;t.N+=x;break;default:t.error=!0}V.N>V.output.length&&(V.output=new Uint8Array(V.N*2),V.N=0,V.S=0,V.W=!1,V.J=0,V.register=0)}V.output.length!==V.N&&(V.output=V.output.subarray(0,V.N));return V.error?new Uint8Array(0):V.output}; Qh4=function(V,t,x){t=ew(t);x=ew(x);for(var u=V.data,Z=V.output,P=V.N,K=V.register,R=V.J,f=V.S;;){if(R<15){if(f>u.length){V.error=!0;break}K|=(u[f+1]<<8)+u[f]<>=7;b<0;)b=t[(K&1)-b],K>>=1;else K>>=b&15;R-=b&15;b>>=4;if(b<256)Z[P++]=b;else if(V.register=K,V.J=R,V.S=f,b>256){K=jw[b];K+=DS(V,y5[b]);f=YJK(V,x);R=Hh[f];R+=DS(V,lD[f]);if(a1j&&Kx.length&&(V.error=!0);V.register|=(x[u+1]<<8)+x[u]<=0)return df(V,x&15),x>>4;for(df(V,7);x<0;)x=t[DS(V,1)-x];return x>>4}; DS=function(V,t){for(;V.J=V.data.length)return V.error=!0,0;V.register|=V.data[V.S++]<>=t;V.J-=t;return x}; df=function(V,t){V.J-=t;V.register>>=t}; ew=function(V){for(var t=[],x=g.G(V),u=x.next();!u.done;u=x.next())u=u.value,t[u]||(t[u]=0),t[u]++;var Z=t[0]=0;x=[];var P=0;u=0;for(var K=1;K7&&(P+=t[K]);for(Z=1;Z>f&1;R=P<<4|K;if(K<=7)for(f=1<<7-K;f--;)u[f<>=7;K--;){u[f]||(u[f]=-t,t+=2);var b=Z&1;Z>>=1;f=b-u[f]}u[f]=R}}return u}; r2L=function(V){var t,x,u,Z,P,K,R;return g.Q(function(f){switch(f.J){case 1:if(!("DecompressionStream"in window))return f.return(g.CE(new g.US(V)));t=new DecompressionStream("gzip");x=t.writable.getWriter();x.write(V);x.close();u=t.readable.getReader();Z=new Mj([]);case 2:return g.m(f,u.read(),5);case 5:P=f.S;K=P.value;if(R=P.done){f.FX(4);break}Z.append(K);f.FX(2);break;case 4:return f.return(Z.BQ())}})}; JF=function(V,t){this.J=V;this.m2=t}; TeK=function(V){return N7(N7(i3(function(){return sg(V.m2,function(t){return V.Ax(V.J,t)})}),function(){return V.b8(V.J)}),function(){return V.Lr(V.J)})}; W8s=function(V,t){return TeK(new JF(V,t))}; hF=function(V){IJ.call(this,"onesie");this.f9=V;this.J={};this.N=!0;this.W=null;this.queue=new Tz(this);this.G={};this.B=C2z(function(t,x){var u=this;return function P(){var K,R,f,b,E,k,O,N,p,I,L,M,z,Y,r,n,U,d,uL,q1;return kKL(P,function(w){switch(w.J){case 1:g.Sj(w,2);u.f9.Z2();K=function(H){return function(C){throw{name:H,message:C};}}; R=t.BQ();g.AT(w,4,5);if(!x){w.FX(7);break}return fz9(w,N7(oOL(u.f9,R,u.iv),K("DecryptError")).wait(),8);case 8:f=w.S;case 7:if(!u.f9.enableCompression){w.FX(9);break}return fz9(w,N7(W8s((k=f)!=null?k:R,u.f9.K().qf),K("DecompressError")).wait(),10);case 10:b=w.S;case 9:E=KA((N=(O=b)!=null?O:f)!=null?N:R,dH0);case 5:g.vw(w,0,2);if(I=(p=u.f9.K())==null?void 0:p.m2)((L=f)==null?void 0:L.buffer)===I.exports.memory.buffer&&I.free(f.byteOffset),((M=b)==null?void 0:M.buffer)===I.exports.memory.buffer&&I.free(b.byteOffset); g.Ll(w,6);break;case 4:throw Y=z=g.I9(w),new Qr("onesie.response.parse",{name:(d=Y.name)!=null?d:"unknown",message:(uL=Y.message)!=null?uL:"unknown",wasm:((r=u.f9.K())==null?0:r.m2)?((n=u.f9.K())==null?0:(U=n.m2)==null?0:U.Uv)?"1js":"1":"0",enc:u.N,gz:u.f9.enableCompression,webcrypto:!!zk()});case 6:return nO8(E),q1=g.r_(E.body),w.return(q1);case 2:g.vw(w),g.Ll(w,0)}})}()})}; wf=function(V){var t=V.queue;t.J.length&&t.J[0].isEncrypted&&!t.S&&(t.J.length=0);t=g.G(Object.keys(V.J));for(var x=t.next();!x.done;x=t.next()){x=x.value;var u=V.J[x];if(!u.S_){var Z=V.queue;Z.J.push({videoId:u.videoId,formatId:x,isEncrypted:!1});Z.S||of(Z)}}}; y2K=function(V,t){var x=t.getLength(),u=!1;switch(V.W){case 0:V.f9.T("html5_future_onesie_ump_handler_on_player_response")?N7(sg(V.B(t,V.N),function(Z){c2j(V.f9,Z)}),function(Z){V.f9.HL(Z)}):V.Z2(t,V.N).then(function(Z){c2j(V.f9,Z)},function(Z){V.f9.HL(Z)}); break;case 2:V.NU("ormk");t=t.BQ();V.queue.decrypt(t);break;default:u=!0}V.f9.Lx&&V.f9.J6("ombup","id.11;pt."+V.W+";len."+x+(u?";ignored.1":""));V.W=null}; nO8=function(V){if(V.y6!==1)throw new Qr("onesie.response.badproxystatus",{st:V.y6,webcrypto:!!zk(),textencoder:!!g.Ww.TextEncoder});if(V.E5!==200)throw new Qr("onesie.response.badstatus",{st:V.E5});}; jh8=function(V){return new Promise(function(t){setTimeout(t,V)})}; l1C=function(V,t){var x=V.K();x=V.r9&&x.T("html5_onesie_preload_use_content_owner");var u=V.H8,Z=Vw(t.Rj.experiments,"debug_bandaid_hostname");if(Z)t=Q5(t,Z);else if((x===void 0?0:x)&&(u==null?0:u.url)&&!t.S){var P=FU(new g.vg(u.url));t=Q5(t,P)}else t=(P=t.J.get(0))==null?void 0:P.location.clone();if(t&&V.videoId){P=fo(V.videoId);V=[];if(P)for(P=g.G(P),x=P.next();!x.done;x=P.next())V.push(x.value.toString(16).padStart(2,"0"));t.set("id",V.join(""));return t}}; Hoh=function(V,t,x){x=x===void 0?0:x;var u,Z;return g.Q(function(P){if(P.J==1)return u=[],u.push(t.load()),x>0&&u.push(jh8(x)),g.m(P,Promise.race(u),2);Z=l1C(V,t);return P.return(Z)})}; Ul9=function(V,t,x,u){u=u===void 0?!1:u;V.set("cpn",t.clientPlaybackNonce);V.set("opr","1");var Z=t.K();V.set("por","1");zk()||V.set("onem","1");t.startSeconds>0&&V.set("osts",""+t.startSeconds);u||(Z.T("html5_onesie_disable_partial_segments")&&V.set("oses","1"),t=Z.T("html5_gapless_onesie_no_media_bytes")&&ZD(t)&&t.r9,x&&!t?(t=x.audio,V.set("pvi",x.video.join(",")),Z.T("html5_onesie_disable_audio_bytes")||V.set("pai",t.join(",")),wV||V.set("osh","1")):(V.set("oad","0"),V.set("ovd","0"),V.set("oaad", "0"),V.set("oavd","0")))}; Dlj=function(V,t,x,u,Z){Z=Z===void 0?!1:Z;var P="https://youtubei.googleapis.com/youtubei/"+t.n6.innertubeApiVersion+"/player",K=[{name:"Content-Type",value:"application/json"}];u&&K.push({name:"Authorization",value:"Bearer "+u});K.push({name:"User-Agent",value:g.zY()});g.Zc("EOM_VISITOR_DATA")?K.push({name:"X-Goog-EOM-Visitor-Id",value:g.Zc("EOM_VISITOR_DATA")}):(x=x.visitorData||g.Zc("VISITOR_DATA"))&&K.push({name:"X-Goog-Visitor-Id",value:x});(x=g.Zc("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&K.push({name:"X-YouTube-Lava-Device-Context", value:x});(t=Vw(t.experiments,"debug_sherlog_username"))&&K.push({name:"X-Youtube-Sherlog-Username",value:t});V=on(JSON.stringify(V));return{url:P,sQ:K,postBody:V,DeU:Z,eA:Z}}; dlw=function(V,t,x,u,Z,P){var K=g.ir(V,e_4,V.eA?void 0:x.m2),R={encryptedClientKey:t.J.encryptedClientKey,Co:!0,jC:!0,nt:eXw(x,!!V.eA),Np:x.experiments.MP("html5_use_jsonformatter_to_parse_player_response")};if(V.eA)R.ZJP=K;else{V=t.encrypt(K);var f;if(((f=x.m2)==null?void 0:f.exports.memory.buffer)===K.buffer&&V.byteOffset!==K.byteOffset){var b;(b=x.m2)==null||b.free(K.byteOffset)}var E;V=((E=x.m2)==null?void 0:E.jP(V))||V;K=R.ou=V;(0,g.Tu)();K=UXw(new Hsq(t.J.N),K,t.iv);R.tx=K;R.iv=t.iv}t=u.getVideoData(); x=pG({Yw:x,S8:u,uX:t.startSeconds*1E3});Z={Mg:R,bM:x,onesieUstreamerConfig:Z,h8:P,i$:Ai(t)};t.reloadPlaybackParams&&(Z.reloadPlaybackParams=t.reloadPlaybackParams);return Z}; CiK=function(V,t,x){var u,Z,P;return g.Q(function(K){if(K.J==1)return u=g.ir(t,e_4),g.m(K,vOC(x,u),2);if(K.J!=3)return Z=K.S,g.m(K,L8C(x,Z),3);P=K.S;return K.return({ou:Z,encryptedClientKey:x.J.encryptedClientKey,iv:x.iv,tx:P,Co:!0,jC:!0,nt:eXw(V,!!t.eA),Np:V.experiments.MP("html5_use_jsonformatter_to_parse_player_response")})})}; J24=function(V,t,x,u,Z,P){var K,R,f,b;return g.Q(function(E){if(E.J==1)return g.m(E,CiK(x,V,t),2);K=E.S;R=u.getVideoData();f=pG({Yw:x,S8:u,uX:R.startSeconds*1E3});b={Mg:K,bM:f,onesieUstreamerConfig:Z,h8:P,i$:Ai(R)};R.reloadPlaybackParams&&(b.reloadPlaybackParams=R.reloadPlaybackParams);return E.return(b)})}; eXw=function(V,t){V=vK(V.schedule,!0);t=t||!!zk()&&V>1572864;return"DecompressionStream"in window||!t}; tN=function(V,t){g.c.call(this);var x=this;this.S8=V;this.playerRequest=t;this.Rj=this.S8.K();this.videoData=this.S8.getVideoData();this.logger=new g.ZG("onesie");this.Lx=this.Rj.d6();this.Ct=this.Rj.Qd;this.zB=new mc(this.Ct.J,this.Rj.qf,NeC(this.Rj));this.xhr=null;this.state=1;this.nu=new xJ;this.z0=!1;this.playerResponse="";this.Xb=new wh(this);this.yW=new hF(this);this.Y0=this.Rj.T("html5_onesie_check_timeout");this.zL=new g.qK(this.T3,500,this);this.Cw=new g.qK(this.TP,1E4,this);this.M_=new g.qK(function(){if(!x.isComplete()){var u= VD(x);x.HL(new Qr("net.timeout",u))}},g.S7(this.Rj.experiments,"html5_onesie_request_timeout_ms")); this.s9=new g.qK(this.iI1,2E3,this);this.xd="";this.tV=this.aX=!1;this.IG=this.S8.Xk();this.OP="";this.cZ=this.T("html5_onesie_wait_for_media_availability");this.enableCompression=this.Pe=this.hF=!1;this.Xf=[];this.jm=this.wj=-1;g.y(this.videoData,this);g.y(this,this.zL);g.y(this,this.Cw);g.y(this,this.s9);g.y(this,this.zB);V=ui();wV&&V&&!this.Rj.T("html5_disable_onesie_media_bytes")&&(this.WG=new Map);this.NT=new Map;this.Hh=new Map;this.uO=new Map;this.z2=new Map}; Wh=function(V,t){var x;return(x=V.WG)==null?void 0:x.get(t)}; wK0=function(V,t,x){var u;return g.Q(function(Z){if(Z.J==1)return V.NU("oprd_s"),hX4(V)?g.m(Z,F8j(V.zB,t,x),3):(u=V.zB.decrypt(t,x),Z.FX(2));Z.J!=2&&(u=Z.S);V.NU("oprd_c");return Z.return(u)})}; oOL=function(V,t,x){V.NU("oprd_s");t=I1T(V.zB).encrypt(t,x);sg(t,function(){V.NU("oprd_c")}); return t}; Vk4=function(V){return V.T("html5_onesie_host_probing")||V.Lx?wV:!1}; c2j=function(V,t){V.NU("oprr");V.playerResponse=t;V.Pe||(V.cZ=!1);xk(V)}; xk=function(V){if(!V.playerResponse)return!1;if(V.hF)return!0;var t=V.videoData.T("html5_onesie_audio_only_playback")&&Pz(V.videoData);if(V.WG&&V.cZ){if(!V.WG.has(V.xd))return!1;var x=V.WG.get(V.xd),u;if(u=x){u=!1;for(var Z=g.G(x.sZ.keys()),P=Z.next();!P.done;P=Z.next())if(P=x.sZ.get(P.value))for(var K=g.G(P.zM),R=K.next();!R.done;R=K.next())R.value.ZW>0&&(P.OL?u=!0:t=!0);u=!(t&&u)}if(u)return!1}V.NU("ofr");V.nu.resolve(V.playerResponse);if(!V.Y0){var f;(f=V.M_)==null||f.start();V.Cw.start()}return V.hF= !0}; x09=function(V){if(V.WG&&!V.T("html5_onesie_media_capabilities")){V.NU("ogsf_s");var t=gT9(V.S8.getVideoData(),function(u,Z){V.J6(u,Z)}),x=tkz(V.S8); t.video=pg9(x,t.video);V.NU("ogsf_c");if(t.video.length)return t;V.J6("ombspf","l."+x.S+";u."+x.J+";o."+x.N+";r."+x.reason)}}; hX4=function(V,t){return V.T("html5_onesie_sync_request_encryption")||(t==null?0:t.eA)||g.we(V.Rj)&&V.T("html5_embed_onesie_use_sync_encryption")?!1:!!zk()}; VD=function(V){if(!V.ih)return{};var t=V.ih.Bo(),x;t.d=(x=V.ih.cX)==null?void 0:x.jZ();t.shost=V.KB;t.ty="o";return t}; ur0=function(V,t){var x,u;(u=(V=(x=V.WG)==null?void 0:x.get(t))==null)||(t=V.N?!1:V.N=!0,u=!t);return!u}; ZiL=function(V,t,x,u,Z,P,K,R,f,b,E){g.c.call(this);var k=this;this.S8=V;this.iD=t;this.policy=x;this.audioTrack=u;this.videoTrack=Z;this.bD=P;this.Fi=K;this.DS=R;this.N=f;this.timing=b;this.X=E;this.J=[];this.B={};this.dk=this.xw=!1;this.Tl=new Set;this.G=this.L1=this.Ij=this.pu=0;this.W=null;this.zU={pI:[],aM:[]};this.cX={pI:[],aM:[]};this.L=null;this.Es=[];this.Wk={KSS:function(){return k.J}, e7U:function(){return k.B}, WUX:function(){k.J.length=0}, U4D:function(){return k.Tl}, YT8:function(){return k.Ij}, gH1:function(O){k.Ij=O}, SHP:function(O){k.G=O}, lO:function(O){k.L=O}}; this.videoData=this.S8.getVideoData();this.policy.qf&&(this.BX=new DQ(this.iD,this.policy,this.Fi),g.y(this,this.BX))}; qsj=function(V,t){t=t===void 0?!1:t;if(Ppz(V,t)){V.policy.L&&V.iD.J6("sabrcrq",{create:1});var x=new LE(0,V.bD.C,V);V.policy.CG>0&&V.G++;t=KrK(V,x,t);V.J.push(t);var u;(u=V.BX)==null||j$L(u,V.bD.C)}}; EXq=function(V,t){var x=RGj(V);if(V.policy.Yt){var u=V.zU;var Z=V.cX}else u=uj(V,V.audioTrack),Z=uj(V,V.videoTrack);var P=[].concat(g.v(u.pI),g.v(Z.pI));fxq(V)&&P.push.apply(P,g.v(V.Es));var K=[].concat(g.v(u.aM),g.v(Z.aM)),R=V.iD.Cn(),f,b,E=V.S8,k=V.bD,O=V.S,N=V.Tl,p=V.policy,I=V.iD.GW,L=dVh(V.iD)*1E3,M=(f=V.Us)==null?void 0:f.SW;f=(b=V.Us)==null?void 0:b.TD;var z;b=Number((z=V.N.W)==null?void 0:z.info.itag)||0;var Y;z=Number((Y=V.N.B)==null?void 0:Y.info.itag)||0;t={S8:E,bD:k,pI:P,aM:K,uX:x,nextRequestPolicy:O, Tl:N,kK:p,GW:I,BH:L,SW:M,TD:f,pu:V.pu,isPrefetch:t||V.iD.isSuspended,Vl:b,LZ:z,Ei:R,M5:V.S8.G2()};x=V.iD.e$();P=fo(x);x&&(t.kW=P);if(x=V.S8.VI())t.WC=x*1E3;var r;x=V.N;P=x.Ij;if((x.kK.S&&x.kK.Vf||((r=x.kK)==null?0:r.J&&r.Qc))&&!P)for(r=g.G(x.N),K=r.next();!K.done;K=r.next())if(K.value.H$){P=!0;break}r=Hf(x.kK)&&!P?[]:xl8(x,x.N);t.vZ=r;r=V.N;Hf(r.kK)&&!r.wk?r=[]:(x=f1h(r),x.length===0&&(x=r.G),r=xl8(r,x));t.GR=r;t.BZ=fxq(V)?[V.L]:void 0;V.policy.fB&&(t.mB=$0K(V.iD,V.audioTrack),t.W_=$0K(V.iD,V.videoTrack)); if(V.policy.G){u=bij(V,u.pI,Z.pI);var n;if(Z=(n=V.W)==null?void 0:n.SX(u))t.H2=Z}V.policy.wk&&V.J.length>0&&V.J[0].Ip()&&(t.J9U=V.J[0].ea());return t}; RGj=function(V){var t,x=V.policy.B&&((t=V.iD)==null?void 0:t.r5());t=V.iD.getCurrentTime()||0;t=kQ4(V,t);var u=V.iD.SB()||0;t+=u;u=zD(V.videoData)||g.XL(V.videoData);var Z=0;x?(u&&(Z=Number.MAX_SAFE_INTEGER),V.videoData.BX&&(Z=Math.ceil(V.videoData.Es*1E3))):Z=Math.ceil(t*1E3);return Math.min(Number.MAX_SAFE_INTEGER,Z)}; fxq=function(V){return V.policy.J5&&V.videoData.uq()&&!!V.L}; kQ4=function(V,t){if(V.iD.isSeeking())return t;var x=V.S8.Bw();if(!x)return t;x=x.oN();if(x.length===0||iQ(x,t))return t;if(!nV(V.videoTrack,t)&&!nV(V.audioTrack,t))return V.iD.J6("sundrn",{b:0,lt:t}),t;for(var u=t,Z=Infinity,P=0;Pt)){var K=t-x.end(P);K=20)?(V.iD.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),t):u}; bij=function(V,t,x){var u=V.iD.getCurrentTime()||0;t=iiL(V,t,u);V=iiL(V,x,u);return Math.min(t,V)}; iiL=function(V,t,x){V=V.iD.SB()||0;t=g.G(t);for(var u=t.next();!u.done;u=t.next()){var Z=u.value;u=Z.startTimeMs?Z.startTimeMs/1E3-V:0;Z=u+(Z.durationMs?Z.durationMs/1E3:0);if(u<=x&&x<=Z)return Z}return x}; Ppz=function(V,t){if(V.policy.CG>0){var x=Math.floor((0,g.Tu)()/1E4);if(x===V.L1){if(V.G>=V.policy.CG){if(V.G===V.policy.CG){var u={reason:"toomanyrequests"};u.limit=V.G;V.iD.handleError("player.exception",u);V.G+=1}return!1}}else V.L1=x,V.G=0}t=!t&&!Lo(V.Fi);if(V.iD.isSuspended&&(V.iD.nN||t)||V.wk&&(0,g.Tu)()0&&(!V.policy.wk||V.J.length!==1||!V.J[0].Ip()))return!1;var Z;if((Z=V.bD.C)==null||!Mv(Z,V.policy,V.B,V.iD.dT()))return!1;Z=V.policy.wW&&V.policy.S&&V.iD.pG();if(Tb(V.audioTrack)&& Tb(V.videoTrack)&&!Z)return!1;if(V.policy.S&&V.C&&!V.iD.pG())return V.bb("ssap",{pauseontlm:1}),!1;if(Zu(V,V.audioTrack)&&Zu(V,V.videoTrack))return V.policy.N&&V.iD.J6("sabrHeap",{a:""+zb(V.audioTrack),v:""+zb(V.videoTrack)}),!1;if(Z=V.policy.G)Z=!1,V.X.S===2?Z=!0:V.X.S===3&&(RGj(V),V.iD.SB(),t=bij(V,MI(V.audioTrack,V.iD.isSeeking()).pI,MI(V.videoTrack,V.iD.isSeeking()).pI),x=V.X,t>=x.N?(x.J6("sdai",{haltrq:t,est:x.N}),t=!0):t=!1,t&&(Z=!0)),Z&&V.policy.L&&V.iD.J6("sabrcrq",{waitad:1});if(Z)return!1; V.policy.Yt&&(V.zU=uj(V,V.audioTrack),V.cX=uj(V,V.videoTrack));if(!V.S)return V.policy.L&&V.iD.J6("sabrcrq",{nopolicy:1}),!0;if(V.S8.VI())return V.policy.L&&V.iD.J6("sabrcrq",{utc:1}),!0;if(V.N.C)return V.policy.L&&V.iD.J6("sabrcrq",{audio:1}),!0;if(!V.S.targetAudioReadaheadMs||!V.S.targetVideoReadaheadMs)return V.policy.L&&V.iD.J6("sabrcrq",{noreadahead:1}),!0;if(V.policy.B&&V.iD.r5())return V.policy.L&&V.iD.J6("sabrcrq",{seekToHead:1}),!0;Z=Math.min(c3(V.iD,V.audioTrack)*1E3,V.S.targetAudioReadaheadMs); t=Math.min(c3(V.iD,V.videoTrack)*1E3,V.S.targetVideoReadaheadMs);var P=Math.min(Z,t);x=mU(V.audioTrack,!0)*1E3;var K=mU(V.videoTrack,!0)*1E3;if(V.policy.Yt){var R=V.S8.getCurrentTime()*1E3;var f=OiL(V.zU.pI,R);R=OiL(V.cX.pI,R)}else f=x,R=K;var b=ft||u>=0&&Z.OE>u+1)break;x=Math.max(x,Z.startTimeMs+Z.durationMs);u=Math.max(u,Z.jd)}return Math.max(0,x-t)}; KrK=function(V,t,x){var u={Fi:V.Fi,aF:function(f,b){V.S8.JP(f,b)}, uP:V.policy.Ev,IJ:V.policy.N};V.Fi.S.B&&(u.Kx=(V.videoTrack.J.info.n1||0)+(V.audioTrack.J.info.n1||0));V.policy.RO&&(u.vG=V.audioTrack.J.index.U2(),u.uP=!1);var Z=kos(t,V.policy,V.B)?2:1;Z!==V.Ij&&(V.Ij=Z,piw(V));x=EXq(V,x);if((V.policy.S||V.policy.wk)&&V.policy.N&&x.Tl){for(var P=Z="",K=g.G(x.Tl),R=K.next();!R.done;R=K.next())R=R.value,V.videoData.sabrContextUpdates.has(R)?Z+="_"+R:P+="_"+R;V.iD.J6("sabrbldrqs",{ctxts:Z,misctxts:P})}t.setData(x,V.iD.pG(),V.policy,V.B)||!V.policy.S&&!V.policy.wk|| V.iD.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);u=new mf(V.policy,t,V.bD,V.B,V,u,V.iD.Xk(),V.policy.iT?V.iD.pG():void 0);Y4(V.timing);V.policy.L&&V.iD.J6("sabrcrq",{rn:u.uL(),probe:t.IF()});return u}; qn=function(V,t){if(t.uD()||V.uD())V.policy.j$||(V.policy.B?Kp(V.iD):V.iD.LR());else{if(V.policy.N&&t.isComplete()&&t instanceof mf){var x=V.iD,u=x.J6,Z,P,K=Object.assign(t.ih.Bo(),{rst:t.state,strm:t.xhr.kd(),d:(Z=t.ih.cX)==null?void 0:Z.jZ(),cncl:t.xhr&&t.Gd.W?1:0,rqb:t.EY,cwt:t.WU,swt:(P=t.dX)==null?void 0:P.Lj});Z=Object.assign(shw(t.info),K);u.call(x,"rqs",Z)}if(t.isComplete()&&t.IF()&&t instanceof mf)V.policy.Td?t.HT()?(t.dispose(),V.J.length===0?V.iD.LR():(V=V.J[0],V instanceof mf&&V.Cf()&& V.Sh(!1))):t.Pp()&&V.iD.handleError(t.xE(),t.kF()):(t.dispose(),V.iD.LR());else{if(t.oX())t instanceof mf&&fhw(V.timing,t),piw(V),APC(V);else if(t.Pp())x=V.S8.VI(),t instanceof mf&&Oo9(t.info)&&x&&V.iD.F9(x),t instanceof tN?V.J.pop():(x=1,t.canRetry()&&tF(V.iD)&&(Ssw(V,t),x=0),V.iD.handleError(t.xE(),t.kF(),x));else{if(V.iD.isSuspended&&!t.isComplete())return;APC(V)}t.uD()||t instanceof tN||(t.isComplete()?x=UV9(t,V.policy,V.B):(x=Hej(t,V.policy,V.B),x===1&&(V.xw=!0)),x!==0&&(u=new LE(1,t.info.zc), u.On=x===2,KrK(V,u)));V.policy.IC&&!t.isComplete()?wS(V.iD):V.iD.LR()}}}; APC=function(V){for(;V.J.length&&V.J[0].VH(V.Pr());){var t=V.J.shift();GQK(V,t);if(V.policy.G){var x=V;if(!x.policy.yC&&t.VH(x.Pr())){var u=t.uL();if(x.yC!==u){var Z=t.K0();t=Z.wj;var P=Z.jm;Z=Z.isDecorated;!x.W||P<0||(x.yC=u,u=nG(x.X,P/1E3,t),P=x.iD.SB()||0,Te(x.X,t,u-P,Z,x.W))}}}}V.J.length&&GQK(V,V.J[0])}; GQK=function(V,t){var x=new Set(t.sH(V.Pr()));x=g.G(x);for(var u=x.next();!u.done;u=x.next()){var Z=u.value;if(!(u=!(t instanceof tN))){u=V.N;var P=u.bD.uq,K=If(u.videoInfos,P);u=RXs(u,Z,P)||K.includes(Z)}if(u&&(u=t.RH(Z,V.Pr()),P=V.policy.J5&&Pq(u[0].J.info),(!(!P&&V.policy.bJ&&u.length>0&&(u[0].J.info.OL()?mU(V.audioTrack):mU(V.videoTrack))>3)||t.isComplete())&&t.rH(Z,V.Pr()))){Z=t.Hp(Z,V.Pr());if(V.policy.S){K=u[0].J.info;var R=V.iD.pG();if(R&&K){var f=t.m$();R.api.T("html5_ssap_set_format_info_on_video_data")&& f===rS(R)&&(K.OL()?R.playback.getVideoData().W=K:R.playback.getVideoData().S=K);if(R=Rv(R.timeline,f))if(R=R[0].getVideoData())K.OL()?R.W=K:R.S=K}}Z=g.G(Z);for(K=Z.next();!K.done;K=Z.next())if(K=K.value,V.policy.N&&t instanceof tN&&V.iD.J6("omblss",{s:K.info.N6()}),P)R=V,R.videoData.uq()&&R.L&&gL(R.L)===gL(g.KF(K.info.J.info,R.bD.uq))&&R.S8.publish("sabrCaptionsDataLoaded",K,R.MF.bind(R));else{R=K.info.J.info.OL();var b=K.info.J;if(R){f=void 0;var E=V.N,k=(f=t.QZ(V.Pr()))==null?void 0:f.token;E.C= !1;b!==E.B&&(E.B=b,E.LS(b,E.audioTrack,k))}else f=void 0,tW4(V.N,b,(f=t.QZ(V.Pr()))==null?void 0:f.token);f=R?V.audioTrack:V.videoTrack;t instanceof tN&&(f.L=!1,t instanceof tN&&(R?xvj(V.timing):t2q(V.timing)));if(V.policy.Pc)try{F9(f,u,K)}catch(O){K=rw(O),V.iD.handleError(K.errorCode,K.details,K.severity),f.rg(),V.Az(!1,"pushSlice"),Kp(V.iD)}else F9(f,u,K)}}}}; Ssw=function(V,t){V.policy.wk?V.J.splice(V.J.indexOf(t)).forEach(function(x){x.dispose()}):(V.J.pop(),t==null||t.dispose())}; IxC=function(V,t,x){for(var u=[],Z=0;Z0)for(var t=g.G(V.videoData.sabrContextUpdates.keys()),x=t.next();!x.done;x=t.next()){x=x.value;var u=void 0;((u=V.videoData.sabrContextUpdates.get(x))==null?0:u.sendByDefault)&&V.Tl.add(x)}if(V.policy.wk&&V.J.length)for(t=g.G(V.J),x=t.next();!x.done;x=t.next())(x=x.value.ea())&&x.type&&x.sendByDefault&&V.Tl.add(x.type)}; Fr8=function(V){V.policy.VP&&(V.Us=void 0,V.pu=0)}; Mk8=function(V,t){if(t.Pp()||t.uD()){var x=V.iD,u=x.J6,Z=t.state;V=V.Pr();var P,K;if((t=(P=t.WG)==null?void 0:P.get(V))==null)t=void 0;else{P=0;V=t.sH();for(var R=0;R=V.policy.Yr,K=!1;if(P){var R=0;!isNaN(t)&&t>V.G&&(R=t-V.G,V.G=t);R/Z=V.policy.Wp&&!V.N;if(!P&&!x&&m08(V,t))return NaN;x&&(V.N=!0);a:{u=K;x=(0,g.Tu)()/1E3-(V.h0.HG()||0)-V.L.J-V.policy.r9;P=V.S.startTime;x=P+x;if(u){if(isNaN(t)){fp(V,NaN,"n",t);P=NaN;break a}u=t-V.policy.mM;u=P.An&&u<=P.LG){u=!0;break a}u=!1}u=!u}if(u)return V.J6("ostmf",{ct:V.getCurrentTime(),a:t.J.info.OL()}),!1;(V=V.wk)!=null&&(V.sZ.get(x).O_=!0);return!0}; oXq=function(V){if(!V.bD.uq)return!0;var t=V.S8.getVideoData();if(t.T("html5_skip_live_preroll_onesie")&&V.S8.fu()||t.T("html5_skip_live_preroll_onesie_post_live")&&V.S8.fu()&&(t.Gk||t.isPremiere))return V.J6("ombpa",{}),!1;var x,u;if(V.policy.Hu&&!!((x=V.Ij)==null?0:(u=x.Wh)==null?0:u.AZX)!==V.bD.Gk)return V.J6("ombplmm",{}),!1;x=t.P$||t.liveUtcStartSeconds||t.U1;if(V.bD.Gk&&x)return V.J6("ombplst",{}),!1;if(V.bD.X)return V.J6("ombab",{}),!1;x=Date.now();return gV(V.bD)&&!isNaN(V.zU)&&x-V.zU>V.policy.yj* 1E3?(V.J6("ombttl",{}),!1):V.bD.UL&&V.bD.W||!V.policy.CK&&V.bD.isPremiere||!(sj(t)===0||V.policy.J&&t.T("html5_enable_onesie_media_for_sabr_proxima_optin"))||t.T("html5_disable_onesie_media_for_mosaic")&&d3(t)||t.T("html5_disable_onesie_media_for_ssdai")&&t.isDaiEnabled()&&t.enableServerStitchedDai?!1:!0}; nX9=function(V,t){var x=t.J,u=V.bD.uq;if(oXq(V))if(V.wk&&V.wk.sZ.has(gL(g.KF(x.info,u)))){if(u=gL(g.KF(x.info,u)),Wrq(V,t)){var Z=new c_(V.wk.RH(u)),P=function(K){try{if(K.Pp())V.handleError(K.xE(),K.kF()),ae(t,K),j2(K.info)&&JL(V.G,t,x,!0),V.LR();else if(hL(V.G,K)){var R;(R=V.W)==null||kS0(R,K.info,V.C);V.LR()}}catch(f){K=rw(f),V.handleError(K.errorCode,K.details,K.severity),V.rg()}}; x.N=!0;yY(Z)&&(LV(t,new Tq(V.policy,u,Z,V.wk,P)),Y4(V.timing))}}else V.J6("ombfmt",{})}; E2=function(V,t){t=t||V.videoTrack&&V.videoTrack.S&&V.videoTrack.S.startTime||V.getCurrentTime();var x=V5,u=V.videoTrack,Z=V.J;t=Z.nextVideo&&Z.nextVideo.index.kE(t)||0;Z.cX!==t&&(Z.BX={},Z.cX=t,CG(Z,Z.J));t=!Z.J.isLocked()&&Z.X>-1&&(0,g.Tu)()-Z.Xt.J&&t.reason==="b";u||Z||x?(V.S8.Rn({reattachOnConstraint:u?"u":Z?"drm":"perf",lo:t.S,up:t.J}),V.policy.a4||(V.S.J.S=!1)):(V.policy.a4&&(V.S.J.S=!1),Kp(V))}}else if(!vLh(V.J,t)&&V.videoTrack){V.logger.debug(function(){return"Setting constraint: r="+t.reason+" u="+t.J}); x=V.J.J;eGL(V,Fu8(V.J,t));E2(V);u=t.isLocked()&&t.reason==="m"&&V.J.wk;Z=V.policy.Cv&&t.reason==="l"&&Wf(V.videoTrack);x=x.J>t.J&&t.reason==="b";var P=V.J.DS&&!DH();u||Z||x||P?V.S8.Rn({reattachOnConstraint:u?"u":Z?"drm":P?"codec":"perf"}):Kp(V)}}; Cp8=function(V,t,x){if((!V.VC||CF(V.VC)&&!V.policy.A8)&&!V.D0.isSeeking()&&(V.policy.J||Wf(t)&&t.J.h9()&&V.J.Ij)){var u=V.getCurrentTime()+In9(V.X,t,x);V.logger.debug(function(){return"Clearing back to "+u.toFixed(3)}); MHw(t,u)}}; eGL=function(V,t){t&&(V.logger.debug(function(){return"Logging new format: "+$I(t.video.info)}),JP8(V.S8,new jM(t.video,t.reason))); if(V.J.xw){var x=zuL(V.J,"a");V.S8.xj(new jM(x.audio,x.reason))}}; Kp=function(V){g.RO(V.w6)}; wS=function(V){V.policy.IC&&V.policy.iM&&Math.min(F$L(V.videoTrack),F$L(V.audioTrack))*1E3>V.policy.ML?g.RO(V.Tc):V.LR()}; hG4=function(V,t){var x=(0,g.Tu)()-t,u=mU(V.audioTrack,!0)*1E3,Z=mU(V.videoTrack,!0)*1E3;V.logger.debug(function(){return"Appends paused for "+x}); if(V.policy.N&&(V.J6("apdpe",{dur:x.toFixed(),abuf:u.toFixed(),vbuf:Z.toFixed()}),ld(V.policy))){var P=B3(V.X);V.J6("sdps",{ct:t,ah:u.toFixed(),vh:Z.toFixed(),mr:mw(V.X,V.XG,P),bw:P.toFixed(),js:V.isSeeking(),re:+V.XG,ps:(V.policy.ws||"").toString(),rn:(V.policy.XD||"").toString()})}}; wiC=function(V){if(V.policy.S&&cf(V.videoTrack)&&cf(V.audioTrack))return"ssap";if(Yy1(V.videoTrack))return V.logger.debug("Pausing appends for server-selectable format"),"ssf";if(V.policy.xw&&ye(V.videoTrack)&&ye(V.audioTrack))return"updateEnd";if(Tb(V.audioTrack)||Tb(V.videoTrack)&&V.videoTrack.J.info.lD!=="f")return"";if(V.D0.isSeeking()){var t=V.X;var x=V.videoTrack;var u=V.audioTrack;if(t.policy.J){var Z=t.policy.QN;ld(t.policy)&&(Z=mw(t,!1,B3(t)));t=Z;x=mU(u,!0)>=t&&mU(x,!0)>=t}else x.N.length|| u.N.length?(Z=x.J.info.n1+u.J.info.n1,Z=10*(1-B3(t)/Z),t=Math.max(Z,t.policy.QN),x=mU(u,!0)>=t&&mU(x,!0)>=t):x=!0;if(!x)return"abr";x=V.videoTrack;if(x.N.length>0&&x.W.S.length===1&&tHq(x.W).info.B360);u=ld(V.policy)&&V.policy.iz;if(!V.XG||!u&&x)return"";x=V.policy.ke;ld(V.policy)&&(x=mw(V.X,V.XG,B3(V.X)));x=Xs1(V.videoTrack, V.getCurrentTime(),x)||Xs1(V.audioTrack,V.getCurrentTime(),x);return ld(V.policy)?x?"mbnm":"":(V.videoTrack.N.length>0||V.audioTrack.N.length>0||dS(V.G,V.videoTrack,V.audioTrack)||dS(V.G,V.audioTrack,V.videoTrack))&&x?"nord":""}; VQw=function(V){if(V.L){var t=V.L.LR(V.audioTrack,sG(V.VC.S.O1()));t&&V.S8.seekTo(t,{Mw:!0,xK:"pollSubsegmentReadahead",xF:!0})}}; qjq=function(V,t,x){if(V.policy.xw&&ye(t))return!1;if(x.qg())return!0;if(!x.KN())return!1;var u=Ue(t);if(!u||u.info.type===6)return!1;var Z=V.policy.vR;if(Z&&!u.info.W){var P=u.info.An-V.getCurrentTime();if(u.info.BP)return V.policy.J&&uLC(V,t),V.policy.RV&&r5L(t.W,P,!1),!1;ZNj(V,t);var R;V.policy.AZ&&x===((R=V.VC)==null?void 0:R.J)&&V.DS&&(x.l0()===0?(V.DS=!1,V.policy.AZ=!1):V.yC=x.l0());if(!P1L(V,x,u,t))return!1;V.policy.xw&&u.info.hY()?(V.S8.K().d6()&&V.J6("eosl",{ls:u.info.N6()}), u.isLocked=!0):(t.rl(u),X_h(V.J,u.info),V.logger.debug(function(){return"Appended "+u.info.N6()+", buffered: "+EG(x.O1())})); Z&&K6q(V,u.info.J.Jg);return!0}; uLC=function(V,t){t===V.videoTrack?V.Es=V.Es||(0,g.Tu)():V.Us=V.Us||(0,g.Tu)()}; ZNj=function(V,t){t===V.videoTrack?V.Es=0:V.Us=0}; P1L=function(V,t,x,u){var Z=V.policy.QC?(0,g.Tu)():0,P=x.G&&x.info.J.J||void 0,K=x.J;x.G&&(K=Rtq(V,x,K)||K);var R=K.BQ();K=V.policy.QC?(0,g.Tu)():0;t=fD4(V,t,R,x.info,P);(u=u.X)!=null&&(P=x.info,Z=K-Z,K=(0,g.Tu)()-K,!u.S||oY8(u.S,P)&&u.S.GU===P.GU||u.flush(),u.W+=Z,u.N+=K,Z=1,!u.S&&P.S&&(Z=2),xd(u,Z,t),K=Math.ceil(P.S/1024),Z===2&&u.J.add(K),u.J.add(Math.ceil((P.S+P.N)/1024)-K),u.S=P);V.cX=0;if(t===0)return V.L1&&(V.logger.debug("Retry succeed, back to normal append logic."),V.L1=!1,V.gk=!1),V.QC= 0,!0;if(t===2||t===5)return $mz(V,"checked",t,x.info),!1;if(t===1){if(!V.L1)return V.logger.debug("QuotaExceeded, retrying."),V.L1=!0,!1;if(!V.gk)return V.gk=!0,V.S8.seekTo(V.getCurrentTime(),{xK:"quotaExceeded",xF:!0}),!1;x.info.Z8()?(Z=V.policy,Z.L1=Math.floor(Z.L1*.8),Z.cX=Math.floor(Z.cX*.8)):(Z=V.policy,Z.gk=Math.floor(Z.gk*.8),Z.cX=Math.floor(Z.cX*.8));V.policy.J?Hj(V.S.J,x.info.J,!1):hi(V.J,x.info.J)}V.S8.Rn({reattachOnAppend:t});return!1}; Rtq=function(V,t,x){var u;if(u=V.policy.x8&&V.VC&&!V.VC.C&&!V.S8.wO())t=t.info.J.info,u=t.JZ()&&hu(t)&&t.video&&t.video.width<3840&&t.video.width>t.video.height;if(u&&(V.VC.C=!0,n5('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return x=w_8(x),V.policy.N&&V.J6("sp4k",{s:!!x}),x}; $mz=function(V,t,x,u){var Z="fmt.unplayable",P=1;x===5||x===3?(Z="fmt.unparseable",V.policy.J?!u.J.info.video||Ul(V.S.J).size>0||Hj(V.S.J,u.J,!1):!u.J.info.video||Ul(V.J.G).size>0||hi(V.J,u.J)):x===2&&(V.QC<15?(V.QC++,Z="html5.invalidstate",P=0):Z="fmt.unplayable");u=ot(u);var K;u.mrs=(K=V.VC)==null?void 0:Vl(K);u.origin=t;u.reason=x;V.handleError(Z,u,P)}; s$C=function(V,t,x,u,Z){var P=V.bD;var K=V.policy.J,R=!1,f=-1,b;for(b in P.J){var E=Pq(P.J[b].info)||P.J[b].info.Z8();if(u===E)if(E=P.J[b].index,E.bL(t.GU)){R=E;var k=t,O=R.UJ(k.GU);O&&O.startTime!==k.startTime?(R.segments=[],R.Su(k),R=!0):R=!1;R?f=t.GU:!t.pending&&K&&(k=E.getDuration(t.GU),k!==t.duration&&(P.publish("clienttemp","mfldurUpdate",{itag:P.J[b].info.itag,seg:t.GU,od:k,nd:t.duration},!1),E.Su(t),R=!0))}else E.Su(t),R=!0}f>=0&&(K={},P.publish("clienttemp","resetMflIndex",(K[u?"v":"a"]= f,K),!1));P=R;n0L(V.D0,t,u,P);V.W.PK(t,x,u,Z);t.GU===V.bD.UL&&P&&I$(V.bD)&&t.startTime>I$(V.bD)&&(V.bD.Es=t.startTime+(isNaN(V.timestampOffset)?0:V.timestampOffset),V.D0.isSeeking()&&V.D0.J 5)return V.cX=0,V.S8.Rn({initSegStuck:1,as:u.info.N6()}),!0}else V.cX=0,V.P$=u;V.policy.DH&&(x.abort(),(K=t.X)!=null&&(xd(K,4),K.flush()));Z=fD4(V,x,P,f,Z);var b;(b=t.X)==null||Wuw(b,Z,f);if(Z!==0)return bNj(V,Z,u),!0;u.info.Z8()?PwL(V.timing):Ku0(V.timing);V.logger.debug(function(){return"Appended init for "+u.info.J.info.id}); K6q(V,u.info.J.Jg);return x.VN()}; tQT=function(V,t,x){if(t.GX()==null){V=vf(V);if(!(t=!V||V.J!==x.info.J)){a:if(V=V.L,x=x.info.L,V.length!==x.length)x=!1;else{for(t=0;t1)return 6;f.BX=new g.qK(function(){var E=Ue(f);V.uD()||E==null||!E.isLocked?V.S8.K().d6()&&V.J6("eosl",{delayA:E==null?void 0:E.info.N6()}):E8K(f)?(V.S8.K().d6()&&V.J6("eosl",{dunlock:E==null?void 0:E.info.N6()}),kD1(V, f===V.audioTrack)):(V.J6("nue",{ls:E.info.N6()}),E.info.C+=1,V.VC&&V.BA())},1E4,V); V.S8.K().d6()&&V.J6("eosl",{delayS:u.N6()});f.BX.start()}if(V.policy.nO&&(u==null?0:u.hY())){var b;if((b=f.cX)==null?0:b.isActive())g.fb(f.cX),V.J6("sbac",{as:u.N6()});f.cX=new g.qK(function(){V.J6("sbum5s",{as:u.N6()})},5E3,V); f.cX.start()}V.policy.tM&&(u==null?void 0:u.J)instanceof H_&&u.hY()&&V.J6("poseos",{itag:u.J.info.itag,seg:u.GU,lseg:u.J.index.C9(),es:u.J.index.N});t.appendBuffer(x,u,Z)}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 t=Object.assign({name:"QuotaExceededError",buffered:EG(t.O1()).replace(/,/g,"_"),vheap:zb(V.videoTrack),aheap:zb(V.audioTrack),message:g.Ab(E.message,3),track:V.VC?t===V.VC.S?"v": "a":"u"},ax0()),V.handleError("player.exception",t),1;g.jv(E)}return 4}return V.VC.lI()?3:0}; H3=function(V,t,x){V.S8.seekTo(t,x)}; K6q=function(V,t){t&&V.S8.Lq(new $d(t.key,t.type))}; id=function(V,t){V.S8.VJ(t)}; c3=function(V,t){if(V.L1&&!V.XG)return 3;if(V.isSuspended)return 1;var x;if((x=V.VC)==null?0:x.VC&&x.VC.streaming===!1)return 4;x=(t.J.info.audio?V.policy.gk:V.policy.L1)/(t.n1*V.policy.Gt);if(V.policy.dJ>0&&V.VC&&CF(V.VC)&&(t=t.J.info.video?V.VC.S:V.VC.J)&&!t.VN()){t=t.O1();var u=kI(t,V.getCurrentTime());u>=0&&(t=V.getCurrentTime()-t.start(u),x+=Math.max(0,Math.min(t-V.policy.dJ,V.policy.GT)))}V.policy.cX>0&&(x=Math.min(x,V.policy.cX));return x}; $0K=function(V,t){return(c3(V,t)+V.policy.gW)*t.n1}; ONj=function(V){V.xw&&!V.isSuspended&&Lo(V.schedule)&&(iNL(V,V.xw),V.xw="")}; iNL=function(V,t){M4(t,"cms",function(x){V.policy.N&&V.J6("pathprobe",x)},function(x){V.S8.handleError(x)})}; sKT=function(V,t){if(V.VC&&V.VC.W&&!V.VC.lI()&&(t.JR=mU(V.videoTrack),t.S=mU(V.audioTrack),V.policy.N)){var x=zb(V.videoTrack),u=zb(V.audioTrack),Z=EG(V.VC.S.O1(),"_",5),P=EG(V.VC.J.O1(),"_",5);Object.assign(t.J,{lvq:x,laq:u,lvb:Z,lab:P})}t.bandwidthEstimate=XT(V.X);var K;(K=V.audioTrack.X)==null||K.flush();var R;(R=V.videoTrack.X)==null||R.flush();V.logger.debug(function(){return YY(t.J)})}; N39=function(V,t){V.C=t;V.W&&(V.W.B=t);V.C.Fp(V.videoTrack.J.info.JZ());V.G.S=V.C;V.policy.G&&(V.N.W=V.C)}; pzq=function(V,t){if(V.VC&&V.VC.S){if(V.policy.b$){var x=W$0(V.audioTrack);if(x&&x.OL()){var u=V.S8;u.gx&&(u.gx.J=x,u.Zz(u.gx.videoId).e7(u.gx))}}V.policy.A3&&(x=W$0(V.videoTrack))&&x.Z8()&&(u=V.S8,u.tp&&(u.tp.J=x,u.Zz(u.tp.videoId).WA(u.tp)));t-=isNaN(V.timestampOffset)?0:V.timestampOffset;V.getCurrentTime()!==t&&V.resume();V.D0.isSeeking()&&V.VC&&!V.VC.lI()&&(x=V.getCurrentTime()<=t&&t=t&&rPq(V,u.startTime,!1)}); return x&&x.startTimeV.getCurrentTime())return x.start/1E3;return Infinity}; IDq=function(V){var t=vf(V.videoTrack),x=vf(V.audioTrack);return t&&!TVq(V.videoTrack)?t.startTime:x&&!TVq(V.audioTrack)?x.startTime:NaN}; N8w=function(V){if(V.S8.getVideoData().isLivePlayback)return!1;var t=V.S8.Bw();if(!t)return!1;t=t.getDuration();return sg4(V,t)}; sg4=function(V,t){if(!V.VC||!V.VC.J||!V.VC.S)return!1;var x=V.getCurrentTime(),u=V.VC.J.O1();V=V.VC.S.O1();u=u?OG(u,x):x;x=V?OG(V,x):x;x=Math.min(u,x);return isNaN(x)?!1:x>=t-.01}; bNj=function(V,t,x){V.policy.LP&&ZD(V.S8.getVideoData())?(V.S8.I8()||$mz(V,"sepInit",t,x.info),v8w(V.S8,"sie")):$mz(V,"sepInit",t,x.info)}; tF=function(V){return V.S8.dT()0){var Z=u.J.shift();F6q(u,Z.info)}u.J.length>0&&(Z=u.J[0].time-(0,g.Tu)(),u.S.start(Math.max(0,Z)))}},0); g.y(this,this.S);t.subscribe("widevine_set_need_key_info",this.G,this)}; F6q=function(V,t){a:{var x=t.cryptoPeriodIndex;if(isNaN(x)&&V.N.size>0)x=!0;else{for(var u=g.G(V.N.values()),Z=u.next();!Z.done;Z=u.next())if(Z.value.cryptoPeriodIndex===x){x=!0;break a}x=!1}}V.publish("log_qoe",{wvagt:"reqnews",canskip:x});x||V.publish("rotated_need_key_info_ready",t)}; MQ4=function(){var V={};var t=V.url;var x=V.interval;V=V.retries;this.url=t;this.interval=x;this.retries=V}; g8j=function(V,t){this.statusCode=V;this.message=t;this.S=this.heartbeatParams=this.errorMessage=null;this.J={};this.nextFairplayKeyId=null}; Xzq=function(V,t,x){x=x===void 0?"":x;g.c.call(this);this.message=V;this.requestNumber=t;this.jH=x;this.onError=this.onSuccess=null;this.J=new g.By(5E3,2E4,.2)}; ztL=function(V,t,x){V.onSuccess=t;V.onError=x}; mmj=function(V,t,x,u){var Z={timeout:3E4,onSuccess:function(P){if(!V.uD()){dq("drm_net_r",void 0,V.jH);var K=P.status==="LICENSE_STATUS_OK"?0:9999,R=null;if(P.license)try{R=SG(P.license)}catch(p){g.jv(p)}if(K!==0||R){R=new g8j(K,R);K!==0&&P.reason&&(R.errorMessage=P.reason);if(P.authorizedFormats){K={};for(var f=[],b={},E=g.G(P.authorizedFormats),k=E.next();!k.done;k=E.next())if(k=k.value,k.trackType&&k.keyId){var O=B3L[k.trackType];if(O){O==="HD"&&P.isHd720&&(O="HD720");k.isHdr&&(O+="HDR");K[O]|| (f.push(O),K[O]=!0);var N=null;try{N=SG(k.keyId)}catch(p){g.jv(p)}N&&(b[g.pR(N,4)]=O)}}R.S=f;R.J=b}P.nextFairplayKeyId&&(R.nextFairplayKeyId=P.nextFairplayKeyId);P.sabrLicenseConstraint&&(R.sabrLicenseConstraint=SG(P.sabrLicenseConstraint));P=R}else P=null;if(P)V.onSuccess(P,V.requestNumber);else V.onError(V,"drm.net","t.p;p.i")}}, onError:function(P){if(!V.uD())if(P&&P.error)P=P.error,V.onError(V,"drm.net.badstatus","t.r;p.i;c."+P.code+";s."+P.status,P.code);else V.onError(V,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){V.onError(V,"drm.net","rt.req."+V.requestNumber)}}; u&&(Z.jL="Bearer "+u);g.fs(x,"player/get_drm_license",t,Z)}; Yjw=function(V,t,x,u){g.Np.call(this);this.videoData=V;this.Rj=t;this.X=x;this.sessionId=u;this.G={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.L=this.wk=!1;this.N=null;this.cX=[];this.W=[];this.C=!1;this.J={};this.zU=NaN;this.status="";this.B=NaN;this.S=V.G;this.cryptoPeriodIndex=x.cryptoPeriodIndex;V={};Object.assign(V,this.Rj.J);V.cpn=this.videoData.clientPlaybackNonce;this.videoData.wk&&(V.vvt=this.videoData.wk,this.videoData.mdxEnvironment&&(V.mdx_environment=this.videoData.mdxEnvironment)); this.Rj.zU&&(V.authuser=this.Rj.zU);this.Rj.pageId&&(V.pageid=this.Rj.pageId);isNaN(this.cryptoPeriodIndex)||(V.cpi=this.cryptoPeriodIndex.toString());var Z=(Z=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.zY()))?Z[1]:"";Z==="ATV"&&(V.cdt=Z);this.G=V;this.G.session_id=u;this.Ij=!0;this.S.flavor==="widevine"&&(this.G.hdr="1");this.S.flavor==="playready"&&(t=Number(Vw(t.experiments,"playready_first_play_expiration")),!isNaN(t)&&t>=0&&(this.G.mfpe=""+t),this.Ij=!1);t="";g.cs(this.S)?ne(this.S)?(u=x.S)&&(t="https://www.youtube.com/api/drm/fps?ek="+ oCC(u)):(t=x.initData.subarray(4),t=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2),t=String.fromCharCode.apply(null,t).replace("skd://","https://")):t=this.S.S;this.baseUrl=t;this.fairplayKeyId=hj(this.baseUrl,"ek")||"";if(t=hj(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(t);this.Us=this.videoData.T("html5_use_drm_retry");this.cX=x.JZ?[g.pR(x.initData,4)]:x.N;AN(this,{sessioninit:x.cryptoPeriodIndex});this.status="in"}; T3q=function(V,t){AN(V,{createkeysession:1});V.status="gr";dq("drm_gk_s",void 0,V.videoData.dk);V.url=QKL(V);try{V.N=t.createSession(V.X,function(x){AN(V,{m:x})})}catch(x){t="t.g"; x instanceof DOMException&&(t+=";c."+x.code);V.publish("licenseerror","drm.unavailable",1,t,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}V.N&&(aDj(V.N,function(x,u){rMz(V,x,u)},function(x,u,Z){if(!V.uD()){u=void 0; var P=1;g.cs(V.S)&&g.To(V.Rj)&&V.Rj.T("html5_enable_safari_fairplay")&&Z===1212433232&&(u="ERROR_HDCP",P=V.Rj.T("html5_safari_fairplay_ignore_hdcp")?0:P);V.error("drm.keyerror",P,x,u)}},function(){V.uD()||(AN(V,{onkyadd:1}),V.L||(V.publish("sessionready"),V.L=!0))},function(x){V.ZQ(x)}),g.y(V,V.N))}; QKL=function(V){var t=V.baseUrl;h30(t)||V.error("drm.net",2,"t.x");if(!hj(t,"fexp")){var x=["23898307","23914062","23916106","23883098"].filter(function(Z){return V.Rj.experiments.experiments[Z]}); x.length>0&&(V.G.fexp=x.join())}x=g.G(Object.keys(V.G));for(var u=x.next();!u.done;u=x.next())u=u.value,t=XOK(t,u,V.G[u]);return t}; rMz=function(V,t,x){if(!V.uD())if(t){AN(V,{onkmtyp:x});V.status="km";switch(x){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":W6l(V,t);return;default:V.publish("ctmp","message_type",{t:x,l:t.byteLength})}V.wk||(dq("drm_gk_f",void 0,V.videoData.dk),V.wk=!0,V.publish("newsession",V));if(Tn(V.S)&&(t=o8L(t),!t))return;t=new Xzq(t,++V.requestNumber,V.videoData.dk);ztL(t,function(u){n8C(V,u)},function(u,Z,P){if(!V.uD()){var K=0,R; (R=u.J.S>=3)||(R=V.Us&&(0,g.Tu)()-V.zU>36E4);R&&(K=1,Z="drm.net.retryexhausted");AN(V,{onlcsrqerr:Z,info:P});V.error(Z,K,P);V.shouldRetry(aa(K),u)&&cMz(V,u)}}); g.y(V,t);yMh(V,t)}else V.error("drm.unavailable",1,"km.empty")}; W6l=function(V,t){AN(V,{sdpvrq:1});V.B=Date.now();if(V.S.flavor!=="widevine")V.error("drm.provision",1,"e.flavor;f."+V.S.flavor+";l."+t.byteLength);else{var x={cpn:V.videoData.clientPlaybackNonce};Object.assign(x,V.Rj.J);x=g.CX("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",x);t={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, t)}),responseType:"arraybuffer"};g.nJ(x,t,3,500).then(I_(function(u){u=u.xhr;if(!V.uD()){u=new Uint8Array(u.response);var Z=String.fromCharCode.apply(null,u);try{var P=JSON.parse(Z)}catch(K){}P&&P.signedResponse?(V.publish("ctmp","drminfo",{provisioning:1}),P=(Date.now()-V.B)/1E3,V.B=NaN,V.publish("ctmp","provs",{et:P.toFixed(3)}),V.N&&V.N.update(u)):(P=P&&P.error&&P.error.message,u="e.parse",P&&(u+=";m."+P),V.error("drm.provision",1,u))}}),I_(function(u){V.uD()||V.error("drm.provision",1,"e."+u.errorCode+ ";c."+(u.xhr&&u.xhr.status))}))}}; SD=function(V){var t;if(t=V.Ij&&V.N!=null)V=V.N,t=!(!V.J||!V.J.keyStatuses);return t}; yMh=function(V,t){V.status="km";dq("drm_net_s",void 0,V.videoData.dk);var x=new g.Rm(V.Rj.n6),u={context:g.G5(x.config_||g.SI())};u.drmSystem=jKz[V.S.flavor];u.videoId=V.videoData.videoId;u.cpn=V.videoData.clientPlaybackNonce;u.sessionId=V.sessionId;u.licenseRequest=g.pR(t.message);u.drmParams=V.videoData.drmParams;isNaN(V.cryptoPeriodIndex)||(u.isKeyRotated=!0,u.cryptoPeriodIndex=V.cryptoPeriodIndex);var Z,P,K=!!((Z=V.videoData.S)==null?0:(P=Z.video)==null?0:P.isHdr());u.drmVideoFeature=K?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(u.context&&u.context.client){if(Z=V.Rj.J)u.context.client.deviceMake=Z.cbrand,u.context.client.deviceModel=Z.cmodel,u.context.client.browserName=Z.cbr,u.context.client.browserVersion=Z.cbrver,u.context.client.osName=Z.cos,u.context.client.osVersion=Z.cosver;u.context.user=u.context.user||{};u.context.request=u.context.request||{};V.videoData.wk&&(u.context.user.credentialTransferTokens=[{token:V.videoData.wk,scope:"VIDEO"}]);u.context.request.mdxEnvironment=V.videoData.mdxEnvironment|| u.context.request.mdxEnvironment;V.videoData.gk&&(u.context.user.kidsParent={oauthToken:V.videoData.gk});g.cs(V.S)&&(u.fairplayKeyId=g.pR(nC4(V.fairplayKeyId)));g.Pi(V.Rj,g.DD(V.videoData)).then(function(R){mmj(t,u,x,R);V.status="rs"})}else V.error("drm.net",2,"t.r;ic.0")}; n8C=function(V,t){if(!V.uD())if(AN(V,{onlcsrsp:1}),V.status="rr",t.statusCode!==0)V.error("drm.auth",1,"t.f;c."+t.statusCode,t.errorMessage||void 0);else{dq("drm_kr_s",void 0,V.videoData.dk);if(t.heartbeatParams&&t.heartbeatParams.url&&V.videoData.T("outertube_streaming_data_always_use_staging_license_service")){var x=V.S.S.match(/(.*)youtube.com/g);x&&(t.heartbeatParams.url=x[0]+t.heartbeatParams.url)}t.heartbeatParams&&V.publish("newlicense",t.heartbeatParams);t.S&&(V.W=t.S,V.videoData.ME||V.publish("newlicense", new MQ4),V.videoData.ME=!0,V.C=oo(V.W,function(u){return u.includes("HDR")})); t.J&&(V.Rj.T("html5_enable_vp9_fairplay")&&ne(V.S)?(x=g.pR(nC4(V.fairplayKeyId),4),V.J[x]={type:t.J[x],status:"unknown"}):V.J=Lu(t.J,function(u){return{type:u,status:"unknown"}})); o$(V.S)&&(t.message=BFl(g.pR(t.message)));V.N&&(AN(V,{updtks:1}),V.status="ku",V.N.update(t.message).then(function(){dq("drm_kr_f",void 0,V.videoData.dk);SD(V)||(AN(V,{ksApiUnsup:1}),V.publish("keystatuseschange",V))},function(u){u="msuf.req."+V.requestNumber+";msg."+g.Ab(u.message,3); V.error("drm.keyerror",1,u)})); V.L&&(V.zU=(0,g.Tu)());g.cs(V.S)&&V.publish("fairplay_next_need_key_info",V.baseUrl,t.nextFairplayKeyId);V.Rj.T("html5_enable_vp9_fairplay")&&ne(V.S)&&V.publish("qualitychange",lDL(V.W));t.sabrLicenseConstraint&&V.publish("sabrlicenseconstraint",t.sabrLicenseConstraint)}}; cMz=function(V,t){var x=t.J.getValue();x=new g.qK(function(){yMh(V,t)},x); g.y(V,x);x.start();g.me(t.J);AN(V,{rtyrq:1})}; HNw=function(V,t){for(var x=[],u=g.G(Object.keys(V.J)),Z=u.next();!Z.done;Z=u.next())Z=Z.value,x.push(Z+"_"+V.J[Z].type+"_"+V.J[Z].status);return x.join(t)}; UmL=function(V){var t={};t[V.status]=SD(V)?HNw(V,"."):V.W.join(".");return t}; Dm9=function(V,t){switch(V){case "highres":case "hd2880":V="UHD2";break;case "hd2160":case "hd1440":V="UHD1";break;case "hd1080":case "hd720":V="HD";break;case "large":case "medium":case "small":case "light":case "tiny":V="SD";break;default:return""}t&&(V+="HDR");return V}; etC=function(V,t){for(var x in V.J)if(V.J[x].status==="usable"&&V.J[x].type===t)return!0;return!1}; dmq=function(V,t){for(var x in V.J)if(V.J[x].type===t)return V.J[x].status}; AN=function(V,t){var x=x===void 0?!1:x;YY(t);(x||V.Rj.d6())&&V.publish("ctmp","drmlog",t)}; C1w=function(V){var t=V[0];V[0]=V[3];V[3]=t;t=V[1];V[1]=V[2];V[2]=t;t=V[4];V[4]=V[5];V[5]=t;t=V[6];V[6]=V[7];V[7]=t}; lDL=function(V){return g.Cr(V,"UHD2")||g.Cr(V,"UHD2HDR")?"highres":g.Cr(V,"UHD1")||g.Cr(V,"UHD1HDR")?"hd2160":g.Cr(V,"HD")||g.Cr(V,"HDHDR")?"hd1080":g.Cr(V,"HD720")||g.Cr(V,"HD720HDR")?"hd720":"large"}; o8L=function(V){for(var t="",x=0;x'.charCodeAt(u);V=V.N.createSession("video/mp4",t,x);return new G2(null,null,null,null,V)}; xDw=function(V,t){var x=V.B[t.sessionId];!x&&V.W&&(x=V.W,V.W=null,x.sessionId=t.sessionId,V.B[t.sessionId]=x);return x}; wzs=function(V,t){var x=V.subarray(4);x=new Uint16Array(x.buffer,x.byteOffset,x.byteLength/2);x=String.fromCharCode.apply(null,x).match(/ek=([0-9a-f]+)/)[1];for(var u="",Z=0;Z=0&&V.push(u);V=parseFloat(V.join("."))}else V=NaN;V>19.2999?(V=x.qx,x=x.OW,x>=V&&(x=V*.75),t=(V-x)*.5,x=new Nn(t,V,V-t-x,this)):x=null;break a;case "widevine":x=new pp(t,this,V);break a;default:x=null}if(this.G=x)g.y(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.xn,this),this.G.subscribe("log_qoe",this.Un,this);jH(this.Rj.experiments);this.Un({cks:this.J.getInfo()})}; ZVT=function(V){var t=V.W.MH();t?t.then(I_(function(){KU9(V)}),I_(function(x){if(!V.uD()){g.jv(x); var u="t.a";x instanceof DOMException&&(u+=";n."+x.name+";m."+x.message);V.publish("licenseerror","drm.unavailable",1,u,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(V.Un({mdkrdy:1}),V.X=!0); V.Ij&&(t=V.Ij.MH())}; RHT=function(V,t,x){V.L1=!0;x=new $d(t,x);V.Rj.T("html5_eme_loader_sync")&&(V.B.get(t)||V.B.set(t,x));qEL(V,x)}; qEL=function(V,t){if(!V.uD()){V.Un({onInitData:1});if(V.Rj.T("html5_eme_loader_sync")&&V.videoData.N&&V.videoData.N.J){var x=V.L.get(t.initData);t=V.B.get(t.initData);if(!x||!t)return;t=x;x=t.initData;V.B.remove(x);V.L.remove(x)}V.Un({initd:t.initData.length,ct:t.contentType});if(V.J.flavor==="widevine")if(V.Us&&!V.videoData.isLivePlayback)Lp(V);else{if(!(V.Rj.T("vp9_drm_live")&&V.videoData.isLivePlayback&&t.JZ)){V.Us=!0;x=t.cryptoPeriodIndex;var u=t.J;euC(t);t.JZ||(u&&t.J!==u?V.publish("ctmp","cpsmm", {emsg:u,pssh:t.J}):x&&t.cryptoPeriodIndex!==x&&V.publish("ctmp","cpimm",{emsg:x,pssh:t.cryptoPeriodIndex}));V.publish("widevine_set_need_key_info",t)}}else V.xn(t)}}; KU9=function(V){if(!V.uD())if(V.Rj.T("html5_drm_set_server_cert")||ne(V.J)){var t=V.W.setServerCertificate();t?t.then(I_(function(x){V.Rj.d6()&&V.publish("ctmp","ssc",{success:x})}),I_(function(x){V.publish("ctmp","ssce",{n:x.name, m:x.message})})).then(I_(function(){fQq(V)})):fQq(V)}else fQq(V)}; fQq=function(V){V.uD()||(V.X=!0,V.Un({onmdkrdy:1}),Lp(V))}; $I8=function(V){return V.J.flavor==="widevine"&&V.videoData.T("html5_drm_cpi_license_key")}; Lp=function(V){if((V.L1||V.Rj.T("html5_widevine_use_fake_pssh"))&&V.X&&!V.cX){for(;V.N.length;){var t=V.N[0],x=$I8(V)?dv1(t):g.pR(t.initData);if(ne(V.J)&&!t.S)V.N.shift();else{if(V.S.get(x))if(V.J.flavor!=="fairplay"||ne(V.J)){V.N.shift();continue}else V.S.delete(x);euC(t);break}}V.N.length&&V.createSession(V.N[0])}}; bV1=function(V){var t;if(t=g.Vz()){var x;t=!((x=V.W.S)==null||!x.getMetrics)}t&&(t=V.W.getMetrics())&&(t=g.r_(t),V.publish("ctmp","drm",{metrics:t}))}; EdT=function(){var V=T94();return!(!V||V==="visible")}; iVC=function(V){var t=kbl();t&&document.addEventListener(t,V,!1)}; OVL=function(V){var t=kbl();t&&document.removeEventListener(t,V,!1)}; kbl=function(){if(document.visibilityState)var V="visibilitychange";else{if(!document[v4+"VisibilityState"])return"";V=v4+"visibilitychange"}return V}; sez=function(V){g.c.call(this);var t=this;this.S8=V;this.Q_=0;this.B=this.S=this.G=!1;this.W=0;this.Yw=this.S8.K();this.videoData=this.S8.getVideoData();this.N=g.S7(this.Yw.experiments,"html5_delayed_retry_count");this.J=new g.qK(function(){t.S8.OO()},g.S7(this.Yw.experiments,"html5_delayed_retry_delay_ms")); g.y(this,this.J)}; GbT=function(V,t,x){var u=V.videoData.S,Z=V.videoData.W;ZD(V.S8.getVideoData())&&V.Yw.T("html5_gapless_fallback_on_qoe_restart")&&v8w(V.S8,"pe");if((t==="progressive.net.retryexhausted"||t==="fmt.unplayable"||t==="fmt.decode")&&!V.S8.D7.G&&u&&u.itag==="22")return V.S8.D7.G=!0,V.p9("qoe.restart",{reason:"fmt.unplayable.22"}),V.S8.iF(),!0;var P=!1;if(V.videoData.isExternallyHostedPodcast){if(P=V.videoData.T8)x.mimeType=P.type,V.J6("3pp",{url:P.url});x.ns="3pp";V.S8.KG(t,1,"VIDEO_UNAVAILABLE",YY((new Qr(t, x,1)).details));return!0}var K=V.Q_+3E4<(0,g.Tu)()||V.J.isActive();if(V.Yw.T("html5_empty_src")&&V.videoData.isAd()&&t==="fmt.unplayable"&&/Empty src/.test(""+x.msg))return x.origin="emptysrc",V.p9("auth",x),!0;K||FS(V.S8.Xl())||(x.nonfg="paused",K=!0,V.S8.pauseVideo());(t==="fmt.decode"||t==="fmt.unplayable")&&(Z==null?0:tK(Z)||xI(Z))&&(MJ1(V.Yw.G,Z.lD),x.acfallexp=Z.lD,P=K=!0);!K&&V.N>0&&(V.J.start(),K=!0,x.delayed="1",--V.N);Z=V.S8.iD;!K&&((u==null?0:V8(u))||(u==null?0:hu(u)))&&(MJ1(V.Yw.G,u.lD), P=K=!0,x.cfallexp=u.lD);if(V.Yw.T("html5_ssap_ignore_decode_error_for_next_video")&&g.d8(V.videoData)&&t==="fmt.unplayable"&&x.cid&&x.ccid&&FS(V.S8.Xl())){if(x.cid!==x.ccid)return x.ignerr="1",V.p9("ssap.transitionfailure",x),!0;V.p9("ssap.transitionfailure",x);if(NS8(V.S8,t))return!0}if(!K)return pf9(V,x);if(V.Yw.T("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.d8(V.videoData)&&t==="fmt.unplayable"&&x.cid&&x.ccid&&x.cid!==x.ccid&&FS(V.S8.Xl())&&(V.p9("ssap.transitionfailure",x),NS8(V.S8, t)))return!0;K=!1;V.G?V.Q_=(0,g.Tu)():K=V.G=!0;var R=V.videoData;if(R.yC){R=R.yC.F4();var f=Date.now()/1E3+1800;R=R6048E5&&FU0(V,"signature");return!1}; FU0=function(V,t){try{window.location.reload(),V.p9("qoe.restart",{detail:"pr."+t})}catch(x){}}; gdl=function(V,t){t=t===void 0?"fmt.noneavailable":t;var x=V.Yw.G;x.B=!1;PK(x);V.p9("qoe.restart",{e:t,detail:"hdr"});V.S8.OO(!0)}; Xfh=function(V,t,x,u,Z,P){this.videoData=V;this.J=t;this.reason=x;this.S=u;this.token=Z;this.videoId=P}; zHT=function(V,t,x){this.Rj=V;this.nE=t;this.S8=x;this.C=this.B=this.J=this.W=this.L=this.S=0;this.G=!1;this.X=g.S7(this.Rj.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.N=new Map}; mIK=function(V,t,x){!V.Rj.T("html5_tv_ignore_capable_constraint")&&g.ap(V.Rj)&&(x=x.compose(BSz(V,t)));return x}; Qe1=function(V,t){var x,u=YE0(V,(x=t.J)==null?void 0:x.videoInfos);x=V.S8.getPlaybackRate();return x>1&&u?(V=Scl(V.Rj.G,t.J.videoInfos,x),new ZP(0,V,!0,"o")):new ZP(0,0,!1,"o")}; YE0=function(V,t){return t&&g.ap(V.Rj)?t.some(function(x){return x.video.fps>32}):!1}; aQh=function(V,t){var x=V.S8.V3();V.T("html5_use_video_quality_cap_for_ustreamer_constraint")&&x&&x.BM>0&&qy(t.videoData.f8)&&(V=x.BM,t.videoData.f8=new ZP(0,V,!1,"u"));return t.videoData.f8}; BSz=function(V,t){if(g.ap(V.Rj)&&Gt(V.Rj.G,IY.HEIGHT))var x=t.J.videoInfos[0].video.J;else{var u=!!t.J.J;var Z;g.ah(V.Rj)&&(Z=window.screen&&window.screen.width?new g.AI(window.screen.width,window.screen.height):null);Z||(Z=V.Rj.iP?V.Rj.iP.clone():V.nE.g1());(P4||Ve||u)&&Z.scale(g.Co());u=Z;Pz(t.videoData)||CN(t.videoData);t=t.J.videoInfos;if(t.length){Z=g.S7(V.Rj.experiments,"html5_override_oversend_fraction")||.85;var P=t[0].video;P.projectionType!=="MESH"&&P.projectionType!=="EQUIRECTANGULAR"&& P.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||YO||(Z=.45);V=g.S7(V.Rj.experiments,"html5_viewport_undersend_maximum");for(P=0;P0&&(x=Math.min(x,u));if(u=g.S7(V.Rj.experiments,"html5_max_vertical_resolution")){V=4320;for(Z=0;Z u&&(V=Math.min(V,P.video.J));if(V<4320){for(Z=u=0;Z32){Z=!0;break a}}Z=!1}Z&&(x=Math.min(x,u));(u=g.S7(V.Rj.experiments,"html5_live_quality_cap"))&&t.videoData.isLivePlayback&&(x=Math.min(x,u));x=TS4(V,t,x);V=g.S7(V.Rj.experiments,"html5_byterate_soft_cap");return new ZP(0,x===4320?0:x,!1,"d",V)}; odw=function(V){var t,x,u,Z;return g.Q(function(P){switch(P.J){case 1:return V.J.J&&typeof((t=navigator.mediaCapabilities)==null?void 0:t.decodingInfo)==="function"?g.m(P,Promise.resolve(),2):P.return(Promise.resolve());case 2:x=g.G(V.J.videoInfos),u=x.next();case 3:if(u.done){P.FX(0);break}Z=u.value;return g.m(P,E9K(Z),4);case 4:u=x.next(),P.FX(3)}})}; cL1=function(V,t){if(!t.videoData.S||V.T("html5_disable_performance_downgrade"))return!1;Date.now()-V.L>6E4&&(V.S=0);V.S++;V.L=Date.now();if(V.S!==4)return!1;nd8(V,t.videoData.S);return!0}; jeL=function(V,t,x,u){if(!t||!x||!t.videoData.S)return!1;var Z=g.S7(V.Rj.experiments,"html5_df_downgrade_thresh"),P=V.T("html5_log_media_perf_info");if(!((0,g.Tu)()-V.W<5E3?0:P||Z>0))return!1;var K=((0,g.Tu)()-V.W)/1E3;V.W=(0,g.Tu)();x=x.getVideoPlaybackQuality();if(!x)return!1;var R=x.droppedVideoFrames-V.B,f=x.totalVideoFrames-V.C;V.B=x.droppedVideoFrames;V.C=x.totalVideoFrames;var b=x.displayCompositedVideoFrames===0?0:x.displayCompositedVideoFrames||-1;P&&V.Rj.d6()&&V.S8.J6("ddf",{dr:x.droppedVideoFrames, de:x.totalVideoFrames,comp:b});if(u)return V.J=0,!1;if((f-R)/K>V.X||!Z||g.ap(V.Rj))return!1;V.J=(f>60?R/f:0)>Z?V.J+1:0;if(V.J!==3)return!1;nd8(V,t.videoData.S);V.S8.J6("dfd",Object.assign({dr:x.droppedVideoFrames,de:x.totalVideoFrames},yLz()));return!0}; nd8=function(V,t){var x=t.lD,u=t.video.fps,Z=t.video.J-1,P=V.N;t=""+x+(u>49?"p60":u>32?"p48":"");x=m$(x,u,P);Z>0&&(x=Math.min(x,Z));if(!Mn.has(t)&&j_().includes(t)){var K=x;x=yJ();+x[t]>0&&(K=Math.min(+x[t],K));x[t]!==K&&(x[t]=K,g.je("yt-player-performance-cap",x,2592E3))}else if(Mn.has(t)||P==null){a:{K=K===void 0?!0:K;u=j_().slice();if(K){if(u.includes(t))break a;u.push(t)}else{if(!u.includes(t))break a;u.splice(u.indexOf(t),1)}g.je("yt-player-performance-cap-active-set",u,2592E3)}Bs.set(t,x)}else Mn.add(t), P==null||P.set(t,x);V.S8.fd()}; gg=function(V,t){if(!t.J.J)return V.G?new ZP(0,360,!1,"b"):lp;for(var x=!1,u=!1,Z=g.G(t.J.videoInfos),P=Z.next();!P.done;P=Z.next())V8(P.value)?x=!0:u=!0;x=x&&u;u=0;Z=g.S7(V.Rj.experiments,"html5_performance_cap_floor");Z=V.Rj.S?240:Z;t=g.G(t.J.videoInfos);for(P=t.next();!P.done;P=t.next()){var K=P.value;if(!x||!V8(K))if(P=m$(K.lD,K.video.fps,V.N),K=K.video.J,Math.max(P,Z)>=K){u=K;break}}return new ZP(0,u,!1,"b")}; lQq=function(V,t){var x=V.S8.Xl();return x.isInline()&&!t.Ke?new ZP(0,480,!1,"v"):x.isBackground()&&rF()/1E3>60&&!g.ap(V.Rj)?new ZP(0,360,!1,"v"):lp}; HVL=function(V,t,x){if(V.Rj.experiments.MP("html5_disable_client_autonav_cap_for_onesie")&&t.fetchType==="onesie"||g.ap(V.Rj)&&(n7(-1)>=1080||t.osid))return lp;var u=g.S7(V.Rj.experiments,"html5_autonav_quality_cap"),Z=g.S7(V.Rj.experiments,"html5_autonav_cap_idle_secs");return u&&t.isAutonav&&rF()/1E3>Z?(x&&(u=TS4(V,x,u)),new ZP(0,u,!1,"e")):lp}; TS4=function(V,t,x){if(V.T("html5_optimality_defaults_chooses_next_higher")&&x)for(V=t.J.videoInfos,t=1;t=0||(V.provider.S8.getVisibilityState()===3?V.G=!0:(V.J=g.z2(V.provider),V.delay.start()))}; eHq=function(V){if(!(V.S<0)){var t=g.z2(V.provider),x=t-V.W;V.W=t;V.playerState.state===8?V.playTimeSecs+=x:V.playerState.isBuffering()&&!g.J(V.playerState,16)&&(V.rebufferTimeSecs+=x)}}; dIL=function(V){var t;switch((t=V.Rj.playerCanaryStage)==null?void 0:t.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"}}; Cd0=function(V){return window.PressureObserver&&new window.PressureObserver(V)}; JL4=function(V,t){t=t===void 0?Cd0:t;g.c.call(this);var x=this;if(V)try{this.J=t(function(P){x.S=P.at(-1)}); var u;this.N=(u=this.J)==null?void 0:u.observe("cpu",{sampleInterval:2E3})}catch(P){P instanceof DOMException&&(this.W=P)}else{this.J=t(function(P){x.S=P.at(-1)}); var Z;this.N=(Z=this.J)==null?void 0:Z.observe("cpu",{sampleInterval:2E3})}}; hHh=function(V){var t={},x=window.h5vcc;t.hwConcurrency=navigator.hardwareConcurrency;V.W&&(t.cpe=V.W.message);V.S&&(t.cpt=V.S.time,t.cps=V.S.state);if(x==null?0:x.cVal)t.cb2s=x.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),t.cb5s=x.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),t.cb30s=x.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return t}; wfC=function(V){var t;g.Q(function(x){if(x.J==1)return g.m(x,V.N,2);(t=V.J)==null||t.disconnect();g.pl(x)})}; tw8=function(V,t){t?Vw8.test(V):(V=g.i$(V),Object.keys(V).includes("cpn"))}; uGK=function(V,t,x,u,Z,P,K){var R={format:"RAW"},f={};if(Nc(V)&&pJ()){if(K){var b;((b=xQ4.uaChPolyfill)==null?void 0:b.state.type)!==2?K=null:(K=xQ4.uaChPolyfill.state.data.values,K={"Synth-Sec-CH-UA-Arch":K.architecture,"Synth-Sec-CH-UA-Model":K.model,"Synth-Sec-CH-UA-Platform":K.platform,"Synth-Sec-CH-UA-Platform-Version":K.platformVersion,"Synth-Sec-CH-UA-Full-Version":K.uaFullVersion});f=Object.assign(f,K);R.withCredentials=!0}(K=g.Zc("EOM_VISITOR_DATA"))?f["X-Goog-EOM-Visitor-Id"]=K:u?f["X-Goog-Visitor-Id"]= u:g.Zc("VISITOR_DATA")&&(f["X-Goog-Visitor-Id"]=g.Zc("VISITOR_DATA"));x&&(f["X-Goog-PageId"]=x);(u=t.zU)&&!h2(t)&&(f["X-Goog-AuthUser"]=u);Z&&(f.Authorization="Bearer "+Z);t.T("enable_datasync_id_header_in_web_vss_pings")&&t.kS&&t.datasyncId&&(f["X-YouTube-DataSync-Id"]=t.datasyncId);K||f["X-Goog-Visitor-Id"]||Z||x||u?R.withCredentials=!0:t.T("html5_send_cpn_with_options")&&Vw8.test(V)&&(R.withCredentials=!0)}Object.keys(f).length>0&&(R.headers=f);P&&(R.onFinish=P);return Object.keys(R).length>1? R:null}; ZEz=function(V,t,x,u,Z,P,K,R){pJ()&&x.token&&(V=OQ(V,{ctt:x.token,cttype:x.lW,mdx_environment:x.mdxEnvironment}));u.T("net_pings_low_priority")&&(t||(t={}),t.priority="low");P||R&&u.T("nwl_skip_retry")?(t==null?t={}:tw8(V,u.T("html5_assert_cpn_with_regex")),K?Ks().sendAndWrite(V,t):Ks().sendThenWrite(V,t,R)):t?(tw8(V,u.T("html5_assert_cpn_with_regex")),u.T("net_pings_use_fetch")?qqw(V,t):g.r5(V,t)):g.Cg(V,Z)}; PD1=function(V){for(var t=[],x=0;x0&&x>0&&!V.S&&V.N<1E7)try{V.W=V.G({sampleInterval:t,maxBufferSize:x});var u;(u=V.W)==null||u.addEventListener("samplebufferfull",function(){return g.Q(function(Z){if(Z.J==1)return g.m(Z,V.stop(),2);RVh(V);g.pl(Z)})})}catch(Z){V.S=qS4(Z.message)}}; mR=function(V,t){var x,u;return!!((x=window.h5vcc)==null?0:(u=x.settings)==null?0:u.set(V,t))}; $QL=function(){var V,t,x,u=(V=window.h5vcc)==null?void 0:(t=V.settings)==null?void 0:(x=t.getPersistentSettingAsString)==null?void 0:x.call(t,"cpu_usage_tracker_intervals");if(u!=null){var Z;V=(Z=JSON.parse(u))!=null?Z:[];Z=V.filter(function(b){return b.type==="total"}).map(function(b){return b.seconds}); t=g.G(fSz);for(x=t.next();!x.done;x=t.next())x=x.value,Z.indexOf(x)===-1&&V.push({type:"total",seconds:x});var P,K;(P=window.h5vcc)==null||(K=P.settings)==null||K.set("cpu_usage_tracker_intervals_enabled",1);var R,f;(R=window.h5vcc)==null||(f=R.settings)==null||f.set("cpu_usage_tracker_intervals",JSON.stringify(V))}}; bEz=function(){var V=window.H5vccPlatformService,t="";if(V&&V.has("dev.cobalt.coat.clientloginfo")&&(V=V.open("dev.cobalt.coat.clientloginfo",function(){}))){var x=V.send(new ArrayBuffer(0)); x&&(t=String.fromCharCode.apply(String,g.v(new Uint8Array(x))));V.close()}return t}; g.av=function(V,t){g.c.call(this);var x=this;this.provider=V;this.logger=new g.ZG("qoe");this.J={};this.sequenceNumber=1;this.B=NaN;this.lh="N";this.X=this.b3=this.TB=this.Fc=this.G=0;this.kX=this.Es=this.L=this.dk="";this.IC=this.L1=NaN;this.Qt=0;this.VP=-1;this.Td=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.gk=this.isEmbargoed=this.Us=this.isOffline=this.isBuffering=!1;this.r9=[];this.wk=null;this.QC=this.N=this.HX=this.C=!1;this.S=-1;this.DS=!1;this.Fz=new g.qK(this.nD,750,this);this.Ij=this.adCpn= this.zU=this.contentCpn="";this.adFormat=void 0;this.o5=0;this.q6=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.SH=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.Tc=!1;this.CI=NaN;this.BX=0;this.w6=!1;this.cX=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.P$=!1;this.Wk={hv:function(Z){x.hv(Z)}, hVj:function(){return x.W}, vp:function(){return x.contentCpn}, g5X:function(){return x.zU}, reportStats:function(){x.reportStats()}, qvj:function(){return x.J.cat}, aJ:function(Z){return x.J[Z]}, HfD:function(){return x.cX}}; var u=g.S7(this.provider.Rj.experiments,"html5_qoe_proto_mock_length");u&&!Yk.length&&(Yk=PD1(u));g.y(this,this.Fz);try{navigator.getBattery().then(function(Z){x.wk=Z})}catch(Z){}g.QD(this,0,"vps",["N"]); V.Rj.d6()&&(this.BX=(0,g.Tu)(),this.CI=g.Mc(function(){var Z=(0,g.Tu)(),P=Z-x.BX;P>500&&x.J6("vmlock",{diff:P.toFixed()});x.BX=Z},250)); V.S8.pG()&&t&&(this.cX=t-Math.round(g.z2(V)*1E3));this.provider.videoData.I4&&(this.remoteControlMode=Eiw[this.provider.videoData.I4]||0);this.provider.videoData.DD&&(t=m9L(this.provider.videoData.DD),t==null?0:t.length)&&(this.remoteConnectedDevices=t);if(V.Rj.d6()||V.T("html5_log_cpu_info"))this.yC=new JL4(V.T("html5_catch_cpu_info_errors")),g.y(this,this.yC);t=g.S7(V.Rj.experiments,"html5_js_self_profiler_sample_interval_ms");V=g.S7(V.Rj.experiments,"html5_js_self_profiler_max_samples");t>0&&V> 0&&(this.xw=new Bt(t,V),g.y(this,this.xw))}; g.QD=function(V,t,x,u){var Z=V.J[x];Z||(Z=[],V.J[x]=Z);Z.push(t.toFixed(3)+":"+u.join(":"))}; kzT=function(V,t){var x=V.adCpn||V.provider.videoData.clientPlaybackNonce,u=V.provider.getCurrentTime(x);g.QD(V,t,"cmt",[u.toFixed(3)]);u=V.provider.o_(x);if(V.W&&u*1E3>V.W.qs+100&&V.W){var Z=V.W;x=Z.isAd;u=u*1E3-Z.qs;V.qE=t*1E3-Z.zxw-u-Z.qLs;Z=(0,g.Tu)()-u;t=V.qE;u=V.provider.videoData;var P=u.isAd();if(x||P){P=(x?"ad":"video")+"_to_"+(P?"ad":"video");var K={};u.B&&(K.cttAuthInfo={token:u.B,videoId:u.videoId});K.startTime=Z-t;J4(P,K);g.C4({targetVideoId:u.videoId,targetCpn:u.clientPlaybackNonce}, P);dq("pbs",Z,P)}else Z=V.provider.S8.d1(),Z.B!==u.clientPlaybackNonce?(Z.G=u.clientPlaybackNonce,Z.S=t):u.Lc()||g.lf(new g.xe("CSI timing logged before gllat",{cpn:u.clientPlaybackNonce}));V.J6("gllat",{l:V.qE.toFixed(),prev_ad:+x});delete V.W}}; rg=function(V,t){t=t===void 0?NaN:t;t=t>=0?t:g.z2(V.provider);var x=V.provider.S8.c7(),u=x.O7-(V.L1||0);u>0&&g.QD(V,t,"bwm",[u,(x.R9-(V.IC||0)).toFixed(3)]);isNaN(V.L1)&&x.O7&&V.isOffline&&V.hv(!1);V.L1=x.O7;V.IC=x.R9;isNaN(x.bandwidthEstimate)||g.QD(V,t,"bwe",[x.bandwidthEstimate.toFixed(0)]);V.provider.Rj.d6()&&Object.keys(x.J).length!==0&&V.J6("bwinfo",x.J);if(V.provider.Rj.d6()||V.provider.Rj.T("html5_log_meminfo"))u=ax0(),Object.values(u).some(function(P){return P!==void 0})&&V.J6("meminfo", u); if(V.provider.Rj.d6()||V.provider.Rj.T("html5_log_cpu_info")){var Z;(u=(Z=V.yC)==null?void 0:hHh(Z))&&Object.values(u).some(function(P){return P!=null})&&V.J6("cpuinfo",u)}V.xw&&V.J6("jsprof",V.xw.flush()); V.wk&&g.QD(V,t,"bat",[V.wk.level,V.wk.charging?"1":"0"]);Z=V.provider.S8.getVisibilityState();V.VP!==Z&&(g.QD(V,t,"vis",[Z]),V.VP=Z);kzT(V,t);(Z=iE9(V.provider))&&Z!==V.Qt&&(g.QD(V,t,"conn",[Z]),V.Qt=Z);OEs(V,t,x)}; OEs=function(V,t,x){if(!isNaN(x.JR)){var u=x.JR;x.S96E3&&(new g.qK(V.reportStats,0,V)).start()}; phl=function(V){V.provider.videoData.r9&&T2(V,"prefetch");V.provider.videoData.Qt&&V.J6("reload",{r:V.provider.videoData.reloadReason,ct:V.provider.videoData.Qt});V.provider.videoData.QC&&T2(V,"monitor");V.provider.videoData.isLivePlayback&&T2(V,"live");wV&&T2(V,"streaming");V.provider.videoData.I4&&V.J6("ctrl",{mode:V.provider.videoData.I4},!0);if(V.provider.videoData.DD){var t=V.provider.videoData.DD.replace(/,/g,"_");V.J6("ytp",{type:t},!0)}V.provider.videoData.qI&&(t=V.provider.videoData.qI.replace(/,/g, "."),V.J6("ytrexp",{ids:t},!0));var x=V.provider.videoData;t=V.provider.Rj.T("enable_white_noise")||V.provider.Rj.T("enable_webgl_noop");x=g.Nm(x)||g.Bz(x)||g.m6(x)||g.Y8(x);(t||x)&&(t=(0,g.Wt)())&&(V.J.gpu=[t]);CN(V.provider.videoData)&&g.QD(V,g.z2(V.provider),"dt",["1"]);V.provider.Rj.d6()&&(t=(0,g.Tu)()-V.provider.Rj.CG,V.J6("playerage",{secs:Math.pow(1.6,Math.round(Math.log(t/1E3)/Math.log(1.6))).toFixed()}));V.N=!0;V.B=g.Mc(function(){V.reportStats()},1E4)}; SSq=function(V,t,x){var u=g.z2(V.provider);AFw(V,u,t,0,x);rg(V,u);NfT(V)}; AFw=function(V,t,x,u,Z){var P=V.provider.Rj.J.cbrver;V.provider.Rj.J.cbr==="Chrome"&&/^96[.]/.test(P)&&x==="net.badstatus"&&/rc\.500/.test(Z)&&Gzq(V,3);V.provider.Rj.T("html5_use_ump")&&/b248180278/.test(Z)&&Gzq(V,4);P=V.provider.getCurrentTime(V.adCpn||V.provider.videoData.clientPlaybackNonce);u=u===1?"fatal":"";x=[x,u,P.toFixed(3)];u&&(Z+=";a6s."+pS());Z&&x.push(ISC(Z));g.QD(V,t,"error",x);V.N=!0}; vis=function(V){V.S>=0||(V.provider.Rj.Ve||V.provider.S8.getVisibilityState()!==3?V.S=g.z2(V.provider):V.DS=!0)}; Lcl=function(V,t,x,u){if(x!==V.lh){t=10&&V.playTimeSecs<=180&&(V.J.qoealert=["1"],V.gk=!0)),x!=="B"||V.lh!=="PL"&&V.lh!=="PB"||(V.isBuffering=!0),V.G=t);V.lh==="PL"&&(x==="B"||x==="S")||V.provider.Rj.d6()?rg(V,t):(V.Tc||x!=="PL"||(V.Tc=!0,OEs(V,t,V.provider.S8.c7())),kzT(V,t));x==="PL"&&g.RO(V.Fz);var Z=[x];x==="S"&&u&&Z.push("ss."+u);g.QD(V,t,"vps",Z);V.lh=x; V.Fc=t;V.G=t;V.N=!0}}; T2=function(V,t){var x=V.J.cat||[];x.push(t);V.J.cat=x}; ov=function(V,t,x,u,Z,P){var K=g.z2(V.provider);x!==1&&x!==3&&x!==5||g.QD(V,K,"vps",[V.lh]);var R=V.J.xvt||[];R.push("t."+K.toFixed(3)+";m."+P.toFixed(3)+";g."+t+";tt."+x+";np.0;c."+u+";d."+Z);V.J.xvt=R}; Gzq=function(V,t){if(!V.QC){var x=V.J.fcnz;x||(x=[],V.J.fcnz=x);x.push(String(t));V.QC=!0}}; ISC=function(V){/[^a-zA-Z0-9;.!_-]/.test(V)&&(V=V.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return V}; FcK=function(V){this.provider=V;this.L=!1;this.J=0;this.W=-1;this.TW=NaN;this.N=0;this.segments=[];this.B=this.G=0;this.previouslyEnded=!1;this.X=this.provider.S8.getVolume();this.C=this.provider.S8.isMuted()?1:0;this.S=np(this.provider)}; ct=function(V){V.S.startTime=V.N;V.S.endTime=V.J;var t=!1;V.segments.length&&g.U$(V.segments).isEmpty()?(V.segments[V.segments.length-1].previouslyEnded&&(V.S.previouslyEnded=!0),V.segments[V.segments.length-1]=V.S,t=!0):V.segments.length&&V.S.isEmpty()||(V.segments.push(V.S),t=!0);t?V.S.endTime===0&&(V.previouslyEnded=!1):V.S.previouslyEnded&&(V.previouslyEnded=!0);V.G+=V.J-V.N;V.S=np(V.provider);V.S.previouslyEnded=V.previouslyEnded;V.previouslyEnded=!1;V.N=V.J}; gil=function(V){Mwq(V);V.B=g.Mc(function(){V.update()},100); V.TW=g.z2(V.provider);V.S=np(V.provider)}; Mwq=function(V){g.XV(V.B);V.B=NaN}; Xhh=function(V,t,x){x-=V.TW;return t===V.J&&x>.5}; zV1=function(V,t,x,u){this.Rj=t;this.kX=x;this.segments=[];this.experimentIds=[];this.xw=this.P$=this.isFinal=this.delayThresholdMet=this.Tc=this.VP=this.autoplay=this.autonav=!1;this.Qt="yt";this.B=[];this.L=this.X=null;this.sendVisitorIdHeader=this.DS=!1;this.C=this.pageId="";this.G=x==="watchtime";this.N=x==="playback";this.zU=x==="atr";this.AZ=x==="engage";this.sendVisitorIdHeader=!1;this.uri=this.zU?"/api/stats/"+x:"//"+t.Nn+"/api/stats/"+x;u&&(this.P$=u.fs,u.rtn&&(this.L=u.rtn),this.G?(this.playerState= u.state,u.rti>0&&(this.X=u.rti)):(this.Ve=u.mos,this.IN=u.volume,u.at&&(this.adType=u.at)),u.autonav&&(this.autonav=u.autonav),u.inview!=null&&(this.Td=u.inview),u.size&&(this.IC=u.size),u.playerwidth&&(this.playerWidth=u.playerwidth),u.playerheight&&(this.playerHeight=u.playerheight));this.SH=g.rZ(t.J);this.C=Vw(t.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.C==="all"||this.C==="once")this.w6=g.rZ(t.Qt);this.bv=t.gk;this.experimentIds=sMC(t.experiments);this.dk=t.Fc;this.Qt=t.Ij;this.region= t.region;this.userAge=t.userAge;this.HX=t.T9;this.r9=rF();this.sendVisitorIdHeader=t.sendVisitorIdHeader;this.cX=t.T("vss_pings_using_networkless")||t.T("kevlar_woffle");this.a_=t.T("vss_final_ping_send_and_write");this.Us=t.T("vss_use_send_and_write");this.pageId=t.pageId;this.CG=t.T("vss_playback_use_send_and_write");t.livingRoomAppMode&&(this.livingRoomAppMode=t.livingRoomAppMode);this.Qc=t.W&&t.T("embeds_append_synth_ch_headers");g.zo(t)&&(this.Es=t.Us);g.AD(g.oh(t))&&this.B.push(1);this.accessToken= g.DD(V);V.A8[this.kX]?this.W=V.A8[this.kX]:V.A8.playback&&(this.W=V.A8.playback);this.adFormat=V.adFormat;this.adQueryId=V.adQueryId;this.autoplay=Uj(V);this.N&&(this.VP=(V.T("html5_enable_log_server_autoplay")||V.T("enable_cleanup_masthead_autoplay_hack_fix"))&&V.S$&&TD(V)==="adunit"?!0:!1);this.autonav=V.isAutonav||this.autonav;this.contentVideoId=l1(V);this.clientPlaybackNonce=V.clientPlaybackNonce;this.Tc=V.kD;V.B&&(this.Ij=V.B,this.gk=V.gH);V.mdxEnvironment&&(this.mdxEnvironment=V.mdxEnvironment); this.J=V.Cv;this.Fc=V.Fc;V.S&&(this.q6=V.S.itag,V.W&&V.W.itag!==this.q6&&(this.QC=V.W.itag));V.J&&kT(V.J)&&(this.offlineDownloadUserChoice="1");this.eventLabel=TD(V);this.xw=V.Qc?!1:V.bv;this.o5=V.e5;if(t=vz(V))this.IB=t;this.U1=V.uF;this.partnerId=V.partnerId;this.eventId=V.eventId;this.playlistId=V.u4||V.playlistId;this.GD=V.GD;this.I4=V.I4;this.DD=V.DD;this.aH=V.aH;this.subscribed=V.subscribed;this.videoId=V.videoId;this.videoMetadata=V.videoMetadata;this.visitorData=V.visitorData;this.osid=V.osid; this.KP=V.KP;this.referrer=V.referrer;this.Ev=V.U5||V.Ev;this.yC=V.mJ;this.Ky=V.Ky;this.userGenderAge=V.userGenderAge;this.Zs=V.Zs;this.embedsRct=V.embedsRct;this.embedsRctn=V.embedsRctn;g.zo(this.Rj)&&V.mutedAutoplay&&(V.T("embeds_enable_full_length_inline_muted_autoplay")&&V.mutedAutoplayDurationMode===2&&V.limitedPlaybackDurationInSeconds===0&&V.endSeconds===0?this.B.push(7):this.B.push(2));V.isEmbedsShortsMode(new g.AI(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.B.push(3);g.uu(V)&& this.B.push(4);this.L1=V.gW;V.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=V.compositeLiveIngestionOffsetToken)}; BfC=function(V,t){var x=V.sendVisitorIdHeader?V.visitorData:void 0;return g.Pi(V.Rj,V.accessToken).then(function(u){return uGK(V.uri,V.Rj,V.pageId,x,u,t,V.Qc)})}; Qfz=function(V,t){return function(){V.Rj.T("html5_simplify_pings")?(V.J=V.BX,V.Fz=t(),V.r9=0,V.send()):BfC(V).then(function(x){var u=mQh(V);u.cmt=u.len;u.lact="0";var Z=t().toFixed(3);u.rt=Number(Z).toString();u=g.CX(V.uri,u);V.Rj.T("vss_through_gel_double")&&YSK(u);V.cX?(x==null&&(x={}),V.Us?Ks().sendAndWrite(u,x):Ks().sendThenWrite(u,x)):x?g.r5(u,x):g.Cg(u)})}}; mQh=function(V){var t={ns:V.Qt,el:V.eventLabel,cpn:V.clientPlaybackNonce,ver:2,cmt:V.S(V.J),fmt:V.q6,fs:V.P$?"1":"0",rt:V.S(V.Fz),adformat:V.adFormat,content_v:V.contentVideoId,euri:V.bv,lact:V.r9,live:V.IB,cl:(719997054).toString(),mos:V.Ve,state:V.playerState,volume:V.IN};V.subscribed&&(t.subscribed="1");Object.assign(t,V.SH);V.C==="all"?Object.assign(t,V.w6):V.C==="once"&&V.N&&Object.assign(t,V.w6);V.autoplay&&(t.autoplay="1");V.VP&&(t.sautoplay="1");V.Tc&&(t.dni="1");!V.G&&V.Es&&(t.epm=aS8[V.Es]); V.isFinal&&(t["final"]="1");V.xw&&(t.splay="1");V.Fc&&(t.delay=V.Fc);V.dk&&(t.hl=V.dk);V.region&&(t.cr=V.region);V.userGenderAge&&(t.uga=V.userGenderAge);V.userAge!==void 0&&V.HX&&(t.uga=V.HX+V.userAge);V.BX!==void 0&&(t.len=V.S(V.BX));!V.G&&V.experimentIds.length>0&&(t.fexp=V.experimentIds.toString());V.L!==null&&(t.rtn=V.S(V.L));V.Ev&&(t.feature=V.Ev);V.I4&&(t.ctrl=V.I4);V.DD&&(t.ytr=V.DD);V.QC&&(t.afmt=V.QC);V.offlineDownloadUserChoice&&(t.ODUC=V.offlineDownloadUserChoice);V.CI&&(t.lio=V.S(V.CI)); V.G?(t.idpj=V.o5,t.ldpj=V.U1,V.delayThresholdMet&&(t.dtm="1"),V.X!=null&&(t.rti=V.S(V.X)),V.Zs&&(t.ald=V.Zs),V.compositeLiveIngestionOffsetToken&&(t.clio=V.compositeLiveIngestionOffsetToken)):V.adType!==void 0&&(t.at=V.adType);V.IC&&(V.N||V.G)&&(t.size=V.IC);V.N&&V.B.length&&(t.pbstyle=V.B.join(","));V.Td!=null&&(V.N||V.G)&&(t.inview=V.S(V.Td));V.G&&(t.volume=yD(V,g.QV(V.segments,function(u){return u.volume})),t.st=yD(V,g.QV(V.segments,function(u){return u.startTime})),t.et=yD(V,g.QV(V.segments,function(u){return u.endTime})), oo(V.segments,function(u){return u.playbackRate!==1})&&(t.rate=yD(V,g.QV(V.segments,function(u){return u.playbackRate}))),oo(V.segments,function(u){return u.J!=="-"})&&(t.als=g.QV(V.segments,function(u){return u.J}).join(",")),oo(V.segments,function(u){return u.previouslyEnded})&&(t.pe=g.QV(V.segments,function(u){return""+ +u.previouslyEnded}).join(","))); t.muted=yD(V,g.QV(V.segments,function(u){return u.muted?1:0})); oo(V.segments,function(u){return u.visibilityState!==0})&&(t.vis=yD(V,g.QV(V.segments,function(u){return u.visibilityState}))); oo(V.segments,function(u){return u.connectionType!==0})&&(t.conn=yD(V,g.QV(V.segments,function(u){return u.connectionType}))); oo(V.segments,function(u){return u.S!==0})&&(t.blo=yD(V,g.QV(V.segments,function(u){return u.S}))); oo(V.segments,function(u){return!!u.N})&&(t.blo=g.QV(V.segments,function(u){return u.N}).join(",")); oo(V.segments,function(u){return!!u.compositeLiveStatusToken})&&(t.cbs=g.QV(V.segments,function(u){return u.compositeLiveStatusToken}).join(",")); oo(V.segments,function(u){return u.G!=="-"})&&(t.cc=g.QV(V.segments,function(u){return u.G}).join(",")); oo(V.segments,function(u){return u.clipId!=="-"})&&(t.clipid=g.QV(V.segments,function(u){return u.clipId}).join(",")); if(oo(V.segments,function(u){return!!u.W})){var x="au"; V.N&&(x="au_d");t[x]=g.QV(V.segments,function(u){return u.W}).join(",")}pJ()&&V.Ij&&(t.ctt=V.Ij,t.cttype=V.gk,t.mdx_environment=V.mdxEnvironment); V.AZ&&(t.etype=V.wk!==void 0?V.wk:0);V.yC&&(t.uoo=V.yC);V.livingRoomAppMode&&V.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(t.clram=rFl[V.livingRoomAppMode]||V.livingRoomAppMode);V.W?Tf9(V,t):(t.docid=V.videoId,t.referrer=V.referrer,t.ei=V.eventId,t.of=V.KP,t.osid=V.osid,t.vm=V.videoMetadata,V.adQueryId&&(t.aqi=V.adQueryId),V.autonav&&(t.autonav="1"),V.playlistId&&(t.list=V.playlistId),V.aH&&(t.ssrt="1"),V.Ky&&(t.upt=V.Ky));V.N&&(V.embedsRct&&(t.rct=V.embedsRct),V.embedsRctn&&(t.rctn= V.embedsRctn),V.compositeLiveIngestionOffsetToken&&(t.clio=V.compositeLiveIngestionOffsetToken));V.L1&&(t.host_cpn=V.L1);return t}; Tf9=function(V,t){if(t&&V.W){var x=new Set(["q","feature","mos"]),u=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),Z=new Set(["aqi","autonav","list","ssrt","upt"]);V.W.ns==="3pp"&&(t.ns="3pp");for(var P=g.G(Object.keys(V.W)),K=P.next();!K.done;K=P.next())K=K.value,u.has(K)||x.has(K)||Z.has(K)&&!V.W[K]||(t[K]=V.W[K])}}; yD=function(V,t){return g.QV(t,V.S).join(",")}; YSK=function(V){V.indexOf("watchtime")!==-1&&g.pq("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:V}})}; Wcs=function(V,t){V.attestationResponse&&BfC(V).then(function(x){x=x||{};x.method="POST";x.postParams={atr:V.attestationResponse};V.cX?V.Us?Ks().sendAndWrite(t,x):Ks().sendThenWrite(t,x):g.r5(t,x)})}; jD=function(V){g.c.call(this);this.provider=V;this.B="paused";this.G=NaN;this.L=[10,10,10,40];this.X=this.C=0;this.wk=this.cX=this.zU=this.Ij=this.N=!1;this.S=this.W=NaN;this.J=new FcK(V)}; yFw=function(V){if(!V.N){V.provider.videoData.Ug===16623&&g.lf(Error("Playback for EmbedPage"));var t=lj(V,"playback");a:{if(V.provider.Rj.T("web_player_use_server_vss_schedule")){var x,u=(x=V.provider.videoData.getPlayerResponse())==null?void 0:x.playbackTracking,Z=u==null?void 0:u.videostatsScheduledFlushWalltimeSeconds;u=u==null?void 0:u.videostatsDefaultFlushIntervalSeconds;if(Z&&Z.length>0&&u){x=[];var P=V.provider.videoData.e5,K=V.provider.videoData.uF,R=-P;Z=g.G(Z);for(var f=Z.next();!f.done;f= Z.next())f=f.value,x.push(f-R),R=f;x.push(u+K-P);x.push(u);V.L=x;break a}}V.L=[10+V.provider.videoData.e5,10,10,40+V.provider.videoData.uF-V.provider.videoData.e5,40]}gil(V.J);t.L=Ht(V);V.S>0&&(t.J-=V.S);t.send();V.provider.videoData.Ic&&(t=V.provider.Rj,u=V.provider.videoData,x={html5:"1",video_id:u.videoId,cpn:u.clientPlaybackNonce,ei:u.eventId,ptk:u.Ic,oid:u.zr,ptchn:u.Wj,pltype:u.Yn,content_v:l1(u)},u.p8&&Object.assign(x,{m:u.p8}),t=g.CX(t.cX+"ptracking",x),oiL(V,t));V.provider.videoData.Fc|| (nil(V),cFw(V),V.cF());V.N=!0;t=V.J;t.J=t.provider.S8.o_();t.TW=g.z2(t.provider);!(t.N===0&&t.J<5)&&t.J-t.N>2&&(t.N=t.J);t.L=!0;V.provider.Rj.T("html5_log_vss_details")&&V.provider.S8.J6("vssinit",{})}}; Ht=function(V,t){t=t===void 0?NaN:t;var x=g.z2(V.provider);t=isNaN(t)?x:t;t=Math.ceil(t);var u=V.L[V.C];V.C+11E3;!(P.length>1)&&P[0].isEmpty()||R||(K.L=Ht(V,Z));K.send();V.X++}},(Z-x)*1E3); return V.W=Z}; U2=function(V){g.g5(V.G);V.G=NaN}; jf4=function(V){V.J.update();V=V.J;V.segments.length&&V.J===V.N||ct(V);var t=V.segments;V.segments=[];return t}; lj=function(V,t){var x=HE0(V.provider);Object.assign(x,{state:V.B});t=new zV1(V.provider.videoData,V.provider.Rj,t,x);t.J=V.provider.S8.o_();x=V.provider.videoData.clientPlaybackNonce;t.J=V.provider.S8.Tq(x);V.provider.videoData.isLivePlayback||(t.BX=V.provider.S8.getDuration(x));V.provider.videoData.J&&(x=V.provider.videoData.J.eH(t.J))&&(t.CI=x-t.J);t.Fz=g.z2(V.provider);t.segments=[np(V.provider)];return t}; lST=function(V,t){var x=lj(V,"watchtime");UQ1(V)&&(x.delayThresholdMet=!0,V.zU=!0);if(V.S>0){for(var u=g.G(t),Z=u.next();!Z.done;Z=u.next())Z=Z.value,Z.startTime-=V.S,Z.endTime-=V.S;x.J-=V.S}else x.J=V.J.Ca();x.segments=t;return x}; Du=function(V,t){var x=DQ8(V,!isNaN(V.W));t&&(V.W=NaN);return x}; DQ8=function(V,t){var x=lST(V,jf4(V));!isNaN(V.W)&&t&&(x.X=V.W);return x}; UQ1=function(V){var t;if(t=V.provider.videoData.isLoaded()&&V.provider.videoData.Fc&&V.N&&!V.zU)t=V.J,t=t.G+t.provider.S8.o_()-t.N>=V.provider.videoData.Fc;return!!t}; nil=function(V){V.provider.videoData.youtubeRemarketingUrl&&!V.cX&&(oiL(V,V.provider.videoData.youtubeRemarketingUrl),V.cX=!0)}; cFw=function(V){V.provider.videoData.googleRemarketingUrl&&!V.wk&&(oiL(V,V.provider.videoData.googleRemarketingUrl),V.wk=!0)}; eVj=function(V){V.provider.Rj.T("html5_log_vss_details")&&V.provider.S8.J6("vssfi",{});if(!V.uD()&&V.N){V.B="paused";var t=Du(V);t.isFinal=!0;t.send();V.dispose()}}; dQw=function(V,t){if(!V.uD())if(g.J(t.state,2)||g.J(t.state,512)){if(V.B="paused",g.LC(t,2)||g.LC(t,512))g.LC(t,2)&&(V.J.previouslyEnded=!0),V.N&&(U2(V),Du(V).send(),V.W=NaN)}else if(g.J(t.state,8)){V.B="playing";var x=V.N&&isNaN(V.G)?Ht(V):NaN;!isNaN(x)&&(v0(t,64)<0||v0(t,512)<0)&&(V=DQ8(V,!1),V.L=x,V.send())}else V.B="paused"}; CDs=function(V,t,x){if(!V.Ij){x||(x=lj(V,"atr"));x.attestationResponse=t;try{x.send()}catch(u){if(u.message!=="Unknown Error")throw u;}V.Ij=!0}}; oiL=function(V,t){var x=V.provider.Rj;g.Pi(V.provider.Rj,g.DD(V.provider.videoData)).then(function(u){var Z=V.provider.Rj.pageId,P=V.provider.Rj.sendVisitorIdHeader?V.provider.videoData.visitorData:void 0,K=V.provider.Rj.T("vss_pings_using_networkless")||V.provider.Rj.T("kevlar_woffle"),R=V.provider.Rj.T("allow_skip_networkless");u=uGK(t,x,Z,P,u);ZEz(t,u,{token:V.provider.videoData.B,lW:V.provider.videoData.gH,mdxEnvironment:V.provider.videoData.mdxEnvironment},x,void 0,K&&!R,!1,!0)})}; JFw=function(){this.endTime=this.startTime=-1;this.G="-";this.playbackRate=1;this.visibilityState=0;this.W="";this.S=0;this.compositeLiveStatusToken=this.N=void 0;this.volume=this.connectionType=0;this.muted=!1;this.J=this.clipId="-";this.previouslyEnded=!1}; eD=function(V,t,x){this.videoData=V;this.Rj=t;this.S8=x;this.J=void 0}; g.z2=function(V){return hV9(V)()}; hV9=function(V){if(!V.J){var t=g.ds(function(u){var Z=(0,g.Tu)();u&&Z<=631152E6&&(V.S8.J6("ytnerror",{issue:28799967,value:""+Z}),Z=(new Date).getTime()+2);return Z},V.Rj.T("html5_validate_yt_now")),x=t(); V.J=function(){return Math.round(t()-x)/1E3}; V.S8.xI()}return V.J}; HE0=function(V){var t=V.S8.rZ()||{};t.fs=V.S8.F_();t.volume=V.S8.getVolume();t.muted=V.S8.isMuted()?1:0;t.mos=t.muted;t.clipid=V.S8.ax();var x;t.playerheight=((x=V.S8.getPlayerSize())==null?void 0:x.height)||0;var u;t.playerwidth=((u=V.S8.getPlayerSize())==null?void 0:u.width)||0;V=V.videoData;x={};V.S&&(x.fmt=V.S.itag,V.W&&(V.Td?V.W.itag!==V.S.itag:V.W.itag!=V.S.itag)&&(x.afmt=V.W.itag));x.ei=V.eventId;x.list=V.playlistId;x.cpn=V.clientPlaybackNonce;V.videoId&&(x.v=V.videoId);V.gi&&(x.infringe=1); (V.Qc?0:V.bv)&&(x.splay=1);(u=vz(V))&&(x.live=u);V.S$&&(x.sautoplay=1);V.Te&&(x.autoplay=1);V.GD&&(x.sdetail=V.GD);V.partnerId&&(x.partnerid=V.partnerId);V.osid&&(x.osid=V.osid);V.xu&&(x.cc=g.FJ4(V.xu));return Object.assign(t,x)}; iE9=function(V){var t=fpT();if(t)return whj[t]||whj.other;if(g.ap(V.Rj)){V=navigator.userAgent;if(/[Ww]ireless[)]/.test(V))return 3;if(/[Ww]ired[)]/.test(V))return 30}return 0}; np=function(V){var t=new JFw,x;t.G=((x=HE0(V).cc)==null?void 0:x.toString())||"-";t.playbackRate=V.S8.getPlaybackRate();x=V.S8.getVisibilityState();x!==0&&(t.visibilityState=x);V.Rj.Tc&&(t.S=1);t.N=V.videoData.UW;t.compositeLiveStatusToken=V.videoData.compositeLiveStatusToken;x=V.S8.getAudioTrack();x.H$&&x.H$.id&&x.H$.id!=="und"&&(t.W=x.H$.id);t.connectionType=iE9(V);t.volume=V.S8.getVolume();t.muted=V.S8.isMuted();t.clipId=V.S8.ax()||"-";t.J=V.videoData.mu||"-";return t}; g.dg=function(V,t){g.c.call(this);var x=this;this.provider=V;this.W=!1;this.N=new Map;this.lh=new g.RM;this.Wk={PMC:function(){return x.qoe}, poP:function(){return x.J}, zVP:function(){return x.S}}; this.provider.videoData.s1()&&!this.provider.videoData.mM&&(this.J=new jD(this.provider),this.J.S=this.provider.videoData.SH/1E3,g.y(this,this.J),this.qoe=new g.av(this.provider,t),g.y(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.rh=this.provider.videoData.clientPlaybackNonce)&&this.N.set(this.rh,this.J));if(V.Rj.playerCanaryState==="canary"||V.Rj.playerCanaryState==="holdback")this.S=new XS(this.provider),g.y(this,this.S)}; VD8=function(V){return!!V.J&&!!V.qoe}; Cp=function(V){V.S&&DIz(V.S);V.qoe&&vis(V.qoe)}; tD8=function(V){if(V.qoe){V=V.qoe;for(var t=V.provider.videoData,x=V.provider.Rj,u=g.G(x.IB),Z=u.next();!Z.done;Z=u.next())T2(V,Z.value);if(V.provider.T("html5_enable_qoe_cat_list"))for(u=g.G(t.iz),Z=u.next();!Z.done;Z=u.next())T2(V,Z.value);else t.IB&&T2(V,V.provider.videoData.IB);t.uq()&&(u=t.J,k8(t)&&T2(V,"manifestless"),u&&vs(u)&&T2(V,"live-segment-"+vs(u).toFixed(1)));qm(t)?T2(V,"sabr"):V.gV(sj(t));if(eQ(t)||t.R_())t.R_()&&T2(V,"ssa"),T2(V,"lifa");t.gatewayExperimentGroup&&(u=t.gatewayExperimentGroup, u==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?u="spkadtrt":u==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(u="spkadctrl"),T2(V,u));x.Ij!=="yt"&&(V.J.len=[t.lengthSeconds.toFixed(2)]);t.cotn&&!CN(t)&&V.hv(!0);x.d6()&&(t=bEz())&&V.J6("cblt",{m:t});if(x.T("html5_log_screen_diagonal")){x=V.J6;var P;t=((P=window.H5vccScreen)==null?0:P.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;x.call(V,"cbltdiag",{v:t})}}}; xn0=function(V){if(V.provider.S8.pG()){if(V.W)return;V.W=!0}V.J&&yFw(V.J);if(V.S){V=V.S;var t=g.z2(V.provider);V.J<0&&(V.J=t,V.delay.start());V.S=t;V.W=t}}; uSl=function(V,t){V.J&&(V=V.J,t===58?V.J.update():V.N&&(U2(V),Du(V).send(),V.W=NaN))}; Zpl=function(V,t){if(g.LC(t,1024)||g.LC(t,512)||g.LC(t,4)){if(V.S){var x=V.S;x.S>=0||(x.J=-1,x.delay.stop())}V.qoe&&(x=V.qoe,x.C||(x.S=-1))}if(V.provider.videoData.enableServerStitchedDai&&V.rh){var u;(u=V.N.get(V.rh))==null||dQw(u,t)}else V.J&&dQw(V.J,t);if(V.qoe){u=V.qoe;x=t.state;var Z=g.z2(u.provider),P=u.getPlayerState(x);Lcl(u,Z,P,x.seekSource||void 0);P=x.Mv;g.J(x,128)&&P&&(P.cz=P.cz||"",AFw(u,Z,P.errorCode,P.sb,P.cz));(g.J(x,2)||g.J(x,128))&&u.reportStats(Z);x.isPlaying()&&!u.C&&(u.S>=0&& (u.J.user_intent=[u.S.toString()]),u.C=!0);NfT(u)}V.S&&(u=V.S,eHq(u),u.playerState=t.state,u.S>=0&&g.LC(t,16)&&u.seekCount++,t.state.isError()&&u.send());V.provider.S8.pG()&&(V.lh=t.state)}; Pjj=function(V){if(V.provider.videoData.enableServerStitchedDai&&V.rh){var t;(t=V.N.get(V.rh))!=null&&ct(t.J)}else V.J&&ct(V.J.J)}; KR9=function(V){V.S&&V.S.send();if(V.qoe){var t=V.qoe;if(t.N){t.lh==="PL"&&(t.lh="N");var x=g.z2(t.provider);g.QD(t,x,"vps",[t.lh]);t.C||(t.S>=0&&(t.J.user_intent=[t.S.toString()]),t.C=!0);t.provider.Rj.d6()&&t.J6("finalized",{});t.Us=!0;t.reportStats(x)}}if(V.provider.videoData.enableServerStitchedDai)for(t=g.G(V.N.values()),x=t.next();!x.done;x=t.next())eVj(x.value);else V.J&&eVj(V.J);V.dispose()}; q29=function(V,t){V.J&&CDs(V.J,t)}; RdK=function(V){if(!V.J)return null;var t=lj(V.J,"atr");return function(x){V.J&&CDs(V.J,x,t)}}; fuC=function(V,t,x,u){x.adFormat=x.kX;var Z=t.S8;t=new jD(new eD(x,t.Rj,{getDuration:function(){return x.lengthSeconds}, getCurrentTime:function(){return Z.getCurrentTime()}, o_:function(){return Z.o_()}, Tq:function(){return Z.Tq()}, pG:function(){return Z.pG()}, c7:function(){return Z.c7()}, getPlayerSize:function(){return Z.getPlayerSize()}, getAudioTrack:function(){return x.getAudioTrack()}, getPlaybackRate:function(){return Z.getPlaybackRate()}, E2:function(){return Z.E2()}, getVisibilityState:function(){return Z.getVisibilityState()}, d1:function(){return Z.d1()}, rZ:function(){return Z.rZ()}, getVolume:function(){return Z.getVolume()}, isMuted:function(){return Z.isMuted()}, F_:function(){return Z.F_()}, ax:function(){return Z.ax()}, getProximaLatencyPreference:function(){return Z.getProximaLatencyPreference()}, xI:function(){Z.xI()}, J6:function(P,K){Z.J6(P,K)}, hH:function(){return Z.hH()}})); t.S=u;g.y(V,t);return t}; $nK=function(){this.JR=0;this.N=this.R9=this.O7=this.S=NaN;this.J={};this.bandwidthEstimate=NaN}; JN=function(V,t,x){g.c.call(this);var u=this;this.Rj=V;this.S8=t;this.S=x;this.J=new Map;this.rh="";this.Wk={ZP:function(){return Array.from(u.J.keys())}}}; bp8=function(V,t){V.J.has(t)&&(KR9(V.J.get(t)),V.J.delete(t))}; Ekl=function(){this.J=g.ED;this.array=[]}; ips=function(V,t,x){var u=[];for(t=k24(V,t);tx)break}return u}; Op1=function(V,t){var x=[];V=g.G(V.array);for(var u=V.next();!u.done&&!(u=u.value,u.contains(t)&&x.push(u),u.start>t);u=V.next());return x}; svC=function(V){return V.array.slice(k24(V,0x7ffffffffffff),V.array.length)}; k24=function(V,t){V=Rd(V.array,function(x){return t-x.start||1}); return V<0?-(V+1):V}; Ng4=function(V,t){var x=NaN;V=g.G(V.array);for(var u=V.next();!u.done;u=V.next())if(u=u.value,u.contains(t)&&(isNaN(x)||u.endt&&(isNaN(x)||u.startV.mediaTime+V.G&&t1)V.W=!0;if((Z===void 0?0:Z)||isNaN(V.S))V.S=t;if(V.J)t!==V.mediaTime&&(V.J=!1);else if(t>0&&V.mediaTime===t){Z=1500;if(V.Rj.T("html5_buffer_underrun_transition_fix")){Z=g.S7(V.Rj.experiments,"html5_min_playback_advance_for_steady_state_secs");var P=g.S7(V.Rj.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");Z=Z>0&&P>0&&Math.abs(t-V.S)(u||!V.W?Z:400)}V.mediaTime=t;V.N=x;return!1}; vk4=function(V,t){this.videoData=V;this.J=t}; LRC=function(V,t,x){return t.Tx(x).then(function(){return jL(new vk4(t,t.N))},function(u){u instanceof Error&&g.lf(u); var Z=Wb('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),P=n5('audio/mp4; codecs="mp4a.40.2"'),K=Z||P,R=t.isLivePlayback&&!g.Z1(V.G,!0);u="fmt.noneavailable";R?u="html5.unsupportedlive":K||(u="html5.missingapi");K=R||!K?2:1;Z={buildRej:"1",a:t.yI(),d:!!t.VP,drm:t.eZ(),f18:t.w1.indexOf("itag=18")>=0,c18:Z};t.J&&(t.eZ()?(Z.f142=!!t.J.J["142"],Z.f149=!!t.J.J["149"],Z.f279=!!t.J.J["279"]):(Z.f133=!!t.J.J["133"],Z.f140=!!t.J.J["140"],Z.f242=!!t.J.J["242"]),Z.cAAC=P,Z.cAVC=n5('video/mp4; codecs="avc1.42001E"'), Z.cVP9=n5('video/webm; codecs="vp9"'));t.G&&(Z.drmsys=t.G.keySystem,P=0,t.G.J&&(P=Object.keys(t.G.J).length),Z.drmst=P);return new Qr(u,Z,K)})}; tw=function(V){this.data=window.Float32Array?new Float32Array(V):Array(V);this.S=this.J=V-1}; FR1=function(V){return V.data[V.J]||0}; MD0=function(V){this.G=V;this.N=this.S=0;this.W=new tw(50)}; uV=function(V,t,x){g.Np.call(this);this.videoData=V;this.experiments=t;this.B=x;this.S=[];this.W=0;this.N=!0;this.G=!1;this.L=0;x=new gk8;V.latencyClass==="ULTRALOW"&&(x.W=!1);V.QC?x.S=3:g.XL(V)&&(x.S=2);V.latencyClass==="NORMAL"&&(x.G=!0);var u=g.S7(t,"html5_liveness_drift_proxima_override");if(sj(V)!==0&&u){x.J=u;var Z;((Z=V.J)==null?0:LAw(Z))&&x.J--}qm(V)&&t.MP("html5_sabr_parse_live_metadata_playback_boundaries")&&(x.L=!0);if(g.h6("trident/")||g.h6("edge/"))Z=g.S7(t,"html5_platform_minimum_readahead_seconds")|| 3,x.N=Math.max(x.N,Z);g.S7(t,"html5_minimum_readahead_seconds")&&(x.N=g.S7(t,"html5_minimum_readahead_seconds"));g.S7(t,"html5_maximum_readahead_seconds")&&(x.B=g.S7(t,"html5_maximum_readahead_seconds"));t.MP("html5_force_adaptive_readahead")&&(x.W=!0);if(t=g.S7(t,"html5_liveness_drift_chunk_override"))x.J=t;i1(V)&&(x.J=(x.J+1)/5,V.latencyClass==="LOW"&&(x.J*=2));this.policy=x;this.C=this.policy.S!==1;this.J=xK(this,Xtj(this,isNaN(V.liveChunkReadahead)?3:V.liveChunkReadahead,V))}; zdj=function(V,t){if(t)return t=V.videoData,t=Xtj(V,isNaN(t.liveChunkReadahead)?3:t.liveChunkReadahead,t),xK(V,t);if(V.S.length){if(Math.min.apply(null,V.S)>1)return xK(V,V.J-1);if(V.policy.W)return xK(V,V.J+1)}return V.J}; Bgs=function(V,t){if(!V.S.length)return!1;var x=V.J;V.J=zdj(V,t===void 0?!1:t);if(t=x!==V.J)V.S=[],V.W=0;return t}; Zt=function(V,t){return t>=V.GH()-mnq(V)}; Y2h=function(V,t,x){t=Zt(V,t);x||t?t&&(V.N=!0):V.N=!1;V.C=V.policy.S===2||V.policy.S===3&&V.N}; QvT=function(V,t){t=Zt(V,t);V.G!==t&&V.publish("livestatusshift",t);V.G=t}; mnq=function(V){var t=V.policy.J;V.G||(t=Math.max(t-1,0));return t*PJ(V)}; Xtj=function(V,t,x){x.QC&&t--;i1(x)&&(t=1);if(sj(x)!==0&&(V=g.S7(V.experiments,"html5_live_chunk_readahead_proxima_override"))){t=V;var u;((u=x.J)==null?0:LAw(u))&&t++}return t}; PJ=function(V){return V.videoData.J?vs(V.videoData.J)||5:5}; xK=function(V,t){t=Math.max(Math.max(1,Math.ceil(V.policy.N/PJ(V))),t);return Math.min(Math.min(8,Math.floor(V.policy.B/PJ(V))),t)}; gk8=function(){this.N=0;this.B=Infinity;this.W=!0;this.J=2;this.S=1;this.L=this.G=!1}; RD=function(V){g.c.call(this);this.S8=V;this.J=0;this.S=null;this.B=this.W=0;this.N={};this.Rj=this.S8.K();this.G=new g.qK(this.LR,1E3,this);this.QC=new KM({delayMs:g.S7(this.Rj.experiments,"html5_seek_timeout_delay_ms")});this.Us=new KM({delayMs:g.S7(this.Rj.experiments,"html5_long_rebuffer_threshold_ms")});this.gk=qL(this,"html5_seek_set_cmt");this.dk=qL(this,"html5_seek_jiggle_cmt");this.DS=qL(this,"html5_seek_new_elem");this.CI=qL(this,"html5_unreported_seek_reseek");this.zU=qL(this,"html5_long_rebuffer_jiggle_cmt"); this.BX=qL(this,"html5_long_rebuffer_ssap_clip_not_match");this.cX=new KM({delayMs:2E4});this.xw=qL(this,"html5_seek_new_elem_shorts");this.HX=qL(this,"html5_seek_new_media_source_shorts_reuse");this.yC=qL(this,"html5_seek_new_media_element_shorts_reuse");this.L1=qL(this,"html5_reseek_after_time_jump");this.C=qL(this,"html5_gapless_handoff_close_end_long_rebuffer");this.Ij=qL(this,"html5_gapless_slow_seek");this.X=qL(this,"html5_gapless_slice_append_stuck");this.wk=qL(this,"html5_gapless_slow_start"); this.L=qL(this,"html5_ads_preroll_lock_timeout");this.P$=qL(this,"html5_ssap_ad_longrebuffer_new_element");this.Tc=new KM({delayMs:g.S7(this.Rj.experiments,"html5_skip_slow_ad_delay_ms")||5E3,T1:!this.Rj.T("html5_report_slow_ads_as_error")});this.w6=new KM({delayMs:g.S7(this.Rj.experiments,"html5_skip_slow_ad_delay_ms")||5E3,T1:!this.Rj.T("html5_skip_slow_buffering_ad")});this.Fc=new KM({delayMs:g.S7(this.Rj.experiments,"html5_slow_start_timeout_delay_ms")});this.Es=qL(this,"html5_slow_start_no_media_source"); g.y(this,this.G)}; qL=function(V,t){var x=g.S7(V.Rj.experiments,t+"_delay_ms");V=V.Rj.T(t+"_cfl");return new KM({delayMs:x,T1:V})}; auj=function(V,t){V.J=t}; fM=function(V,t,x,u,Z,P,K,R){t.test(x)?(V.p9(Z,t,K),t.T1||P()):(t.Ts&&t.S&&!t.W?(x=(0,g.Tu)(),u?t.J||(t.J=x):t.J=0,P=!u&&x-t.S>t.Ts,x=t.J&&x-t.J>t.TN||P?t.W=!0:!1):x=!1,x&&(R=Object.assign({},V.nI(t),R),R.wn=K,R.we=Z,R.wsuc=u,V.S8.J6("workaroundReport",R),u&&(t.reset(),V.N[Z]=!1)))}; KM=function(V){var t=V===void 0?{}:V;V=t.delayMs===void 0?0:t.delayMs;var x=t.TN===void 0?1E3:t.TN;var u=t.Ts===void 0?3E4:t.Ts;t=t.T1===void 0?!1:t.T1;this.J=this.S=this.N=this.startTimestamp=0;this.W=!1;this.G=Math.ceil(V/1E3);this.TN=x;this.Ts=u;this.T1=t}; okC=function(V){g.c.call(this);var t=this;this.S8=V;this.B=this.J=this.iD=this.mediaElement=this.playbackData=null;this.W=0;this.G=this.Ij=this.N=null;this.wk=!1;this.Tc=0;this.C=!1;this.timestampOffset=0;this.L=!0;this.dk=0;this.DS=this.Fc=!1;this.X=0;this.HX=!1;this.zU=0;this.Rj=this.S8.K();this.videoData=this.S8.getVideoData();this.policy=new rNL;this.cX=new RD(this.S8);this.QC=this.L1=this.Es=this.S=NaN;this.BX=new g.qK(function(){TgT(t,!1)},2E3); this.w6=new g.qK(function(){$K(t)}); this.xw=new g.qK(function(){t.wk=!0;WRL(t,{})}); this.gk=NaN;this.Us=new g.qK(function(){var x=t.Rj.AZ;x.J+=1E4/36E5;x.J-x.N>1/6&&(TWC(x),x.N=x.J);t.Us.start()},1E4); g.y(this,this.cX);g.y(this,this.BX);g.y(this,this.xw);g.y(this,this.w6);g.y(this,this.Us)}; yNj=function(V,t){V.playbackData=t;V.videoData.isLivePlayback&&(V.B=new MD0(function(){a:{if(V.playbackData&&V.playbackData.J.J){if(k8(V.videoData)&&V.iD){var x=V.iD.Yb.HG()||0;break a}if(V.videoData.J){x=V.videoData.J.cX;break a}}x=0}return x}),V.J=new uV(V.videoData,V.Rj.experiments,function(){return V.uh(!0)})); bV(V.S8)?(t=nks(V),t.vc?(V.T("html5_sabr_enable_utc_seek_requests")&&qm(V.videoData)&&V.Cq(t.vc,t.startSeconds),V.W=t.startSeconds):t.startSeconds>0&&V.seekTo(t.startSeconds,{xK:"seektimeline_startPlayback",seekSource:15}),V.L=!1):cNK(V)||(V.W=V.W||(g.d8(V.videoData)?0:V.videoData.startSeconds)||0)}; luz=function(V,t){(V.iD=t)?jv8(V,!0):Eu(V)}; HpT=function(V,t){g.RO(V.cX.G);V.T("html5_exponential_memory_for_sticky")&&(t.state.isPlaying()?g.RO(V.Us):V.Us.stop());if(V.mediaElement)if(t.oldState.state===8&&Oc(t.state)&&t.state.isBuffering()){t=V.mediaElement.getCurrentTime();var x=V.mediaElement.oN();var u=V.T("manifestless_post_live_ufph")||V.T("manifestless_post_live")?kI(x,Math.max(t-3.5,0)):kI(x,t-3.5);u>=0&&t>x.end(u)-1.1&&u+10?(kK(V.S8,V.getCurrentTime()+V.videoData.limitedPlaybackDurationInSeconds),V.DS=!0):V.videoData.isLivePlayback&&V.videoData.endSeconds>0&&(kK(V.S8,V.getCurrentTime()+V.videoData.endSeconds),V.DS=!0))}; Dn8=function(V,t){var x=V.getCurrentTime(),u=V.isAtLiveHead(x);if(V.B&&u){var Z=V.B;if(Z.J&&!(x>=Z.S&&x50&&Z.S.shift())),Z=V.J,Y2h(Z,x,t===void 0?!0:t),QvT(Z,x),t&&TgT(V,!0));u!==V.Fc&&(t=V.getCurrentTime()-V.QC<=500,x=V.Tc>=1E3,t||x||(t=V.S8.Zz(),t.qoe&&(t=t.qoe,x=g.z2(t.provider), g.QD(t,x,"lh",[u?"1":"0"])),V.Fc=u,V.Tc++,V.QC=V.getCurrentTime()))}; TgT=function(V,t){if(V.J){var x=V.J;var u=V.getCurrentTime();!Zt(x,u)&&x.hq()?(x.policy.G&&(x.policy.J=Math.max(x.policy.J+1,10)),x=Infinity):x=u0&&Zo(V.mediaElement)>0&&(V.S=iV(V,V.S,!1)),!V.mediaElement||!hdz(V))V.w6.start(750);else if(!isNaN(V.S)&&isFinite(V.S)){var t=V.L1-(V.S-V.timestampOffset);if(!(t===0||V.T("html5_enable_new_seek_timeline_logic")&&Math.abs(t)<.005))if(t=V.mediaElement.getCurrentTime()-V.S,Math.abs(t)<=V.dk||V.T("html5_enable_new_seek_timeline_logic")&&Math.abs(t)<.005)V.N&&V.N.resolve(V.mediaElement.getCurrentTime()); else{if(V.videoData.DJ)V.videoData.DJ=!1;else if(!Ej(V.videoData)&&V.S>=V.uh()-.1){V.S=V.uh();V.N.resolve(V.uh());V.S8.zD();return}try{var x=V.S-V.timestampOffset;V.mediaElement.seekTo(x);V.cX.J=x;V.L1=x;V.W=V.S;V.T("html5_enable_new_seek_timeline_logic")&&(V.C=!1)}catch(u){}}}}; hdz=function(V){if(!V.mediaElement||V.mediaElement.IM()===0||V.mediaElement.hasError())return!1;var t=V.mediaElement.getCurrentTime()>0;if(!(V.videoData.N&&V.videoData.N.J||V.videoData.isLivePlayback)&&V.videoData.eZ())return t;if(V.S>=0){var x=V.mediaElement.kT();if(x.length||!t)return iQ(x,V.S-V.timestampOffset)}return t}; JNL=function(V,t){V.G&&(V.G.resolve(t),V.S8.sP(),V.Rj.d6()&&(t=V.nI(),t["native"]=""+ +V.C,t.otgt=""+(V.S+V.timestampOffset),V.S8.J6("seekEnd",t)));Eu(V)}; Eu=function(V){V.S=NaN;V.L1=NaN;V.N=null;V.Ij=null;V.G=null;V.wk=!1;V.C=!1;V.dk=0;V.BX.stop();V.xw.stop()}; ts8=function(V,t,x){var u=V.mediaElement,Z=t.type;switch(Z){case "seeking":var P=u.getCurrentTime()+V.timestampOffset;if(!V.N||V.C&&P!==V.S){var K=!!V.N;V.N=new xJ;V.T("html5_enable_new_seek_timeline_logic")&&V.N.then(function(f){JNL(V,f)},function(){Eu(V)}); if(V.videoData.isAd()){var R;he9({adCpn:V.videoData.clientPlaybackNonce,contentCpn:(R=V.videoData.gW)!=null?R:""},t.J)}V.L1=P;auj(V.cX,u.getCurrentTime());V.seekTo(P,{seekSource:104,xK:"seektimeline_mediaElementEvent"});x&&wtK(x,P*1E3,!!K);V.C=!0}break;case "seeked":V.N&&V.N.resolve(V.mediaElement.getCurrentTime());break;case "loadedmetadata":bV(V.S8)||Vs9(V);$K(V);break;case "progress":$K(V);break;case "pause":V.X=V.getCurrentTime()}V.X&&((Z==="play"||Z==="playing"||Z==="timeupdate"||Z==="progress")&& V.getCurrentTime()-V.X>10&&(V.T("html5_enable_new_media_element_puase_jump")?(V.S8.p9(new Qr("qoe.restart",{reason:"pauseJump"})),V.S8.OO()):V.seekTo(V.X,{xK:"pauseJump"})),Z!=="pause"&&Z!=="play"&&Z!=="playing"&&Z!=="progress"&&(V.X=0))}; xLl=function(V){return(zD(V.videoData)||!!V.videoData.liveUtcStartSeconds)&&(!!V.videoData.liveUtcStartSeconds||cNK(V))&&!!V.videoData.J}; cNK=function(V){return!!V.videoData.startSeconds&&isFinite(V.videoData.startSeconds)&&V.videoData.startSeconds>1E9}; nks=function(V){var t=0,x=NaN,u="";if(!V.L)return{startSeconds:t,vc:x,source:u};V.videoData.BX?t=V.videoData.Es:Ej(V.videoData)&&(t=Infinity);if(g.XL(V.videoData))return{startSeconds:t,vc:x,source:u};V.videoData.startSeconds?(u="ss",t=V.videoData.startSeconds):V.videoData.U1&&(u="stss",t=V.videoData.U1);V.videoData.liveUtcStartSeconds&&(x=V.videoData.liveUtcStartSeconds);if(isFinite(t)&&(t>V.uh()||tV.uh()||x 0?(u.onesie="0",V.handleError(new Qr("html5.missingapi",u)),!1):!0}; bMs=function(V){var t=oE();nv(t,V);return g.iM(t,PCC())}; RLl=function(V,t){var x,u,Z,P,K,R,f,b,E,k,O,N,p,I,L,M,z,Y,r,n,U,d,uL,q1,w,H;return g.Q(function(C){if(C.J==1)return t.fetchType="onesie",x=Onl(t,V.getPlayerSize(),V.getVisibilityState()),u=new tN(V,x),g.m(C,u.fetch(),2);Z=C.S;P={player_response:Z};t.loading=!1;K=V.yP.tj;if(u.WG){R=g.G(u.WG.entries());for(f=R.next();!f.done;f=R.next())b=f.value,E=g.G(b),k=E.next().value,O=E.next().value,N=k,p=O,K.J.set(N,p,180),N===t.videoId&&(I=p.sH(),t.Zh=I);K.FO=u}L=g.G(u.NT.entries());for(M=L.next();!M.done;M= L.next())z=M.value,Y=g.G(z),r=Y.next().value,n=Y.next().value,U=r,d=n,K.S.set(U,d,180);g.ek(t,P,!0);if(t.loading||Us(t))return C.return(Promise.resolve());K.J.removeAll();K.S.removeAll();t.Zh=[];uL={};q1="onesie.response";w=0;t.errorCode?(q1="auth",uL.ec=t.errorCode,uL.ed=t.errorDetail,uL.es=t.L7||"",w=2):(uL.successButUnplayable="1",uL.disposed=""+ +t.uD(),uL.afmts=""+ +/adaptiveFormats/.test(Z),uL.cpn=t.clientPlaybackNonce);H=new Qr(q1,uL,w);return C.return(Promise.reject(H))})}; K1j=function(V,t){var x,u,Z,P,K,R,f,b,E,k,O;return g.Q(function(N){switch(N.J){case 1:x=t.isAd(),u=!x,Z=x?1:3,P=0;case 2:if(!(P0)){N.FX(5);break}return g.m(N,mF(5E3),6);case 6:K=new g.xe("Retrying OnePlatform request",{attempt:P}),g.lf(K);case 5:return g.AT(N,7),g.m(N,EK9(V,t),9);case 9:return N.return();case 7:R=g.I9(N);f=rw(R);b=f.errorCode;E=V.K();k=E.T("html5_use_network_error_code_enums")?401:"401";u&&b==="manifest.net.badstatus"&&f.details.rc===k&&(u=!1,P===Z-1&&(Z+= 1));if(P===Z-1)return O=k7s(x,f.details),O.details.backend="op",O.details.originec=b,N.return(Promise.reject(O));if(b==="auth"||b==="manifest.net.retryexhausted")return N.return(Promise.reject(f));V.handleError(f);if(aa(f.severity)){N.FX(4);break}case 3:P++;N.FX(2);break;case 4:return N.return(Promise.reject(k7s(x,{backend:"op"})))}})}; EK9=function(V,t){function x(q1){q1.readyState===2&&V.NU("ps_c")} var u,Z,P,K,R,f,b,E,k,O,N,p,I,L,M,z,Y,r,n,U,d,uL;return g.Q(function(q1){switch(q1.J){case 1:t.fetchType="gp";u=V.K();Z=g.Pi(u,g.DD(t));if(!Z.J){P=Z.getValue();q1.FX(2);break}return g.m(q1,Z.J,3);case 3:P=q1.S;case 2:return K=P,R=bMs(K),f=Onl(t,V.getPlayerSize(),V.getVisibilityState()),b=g.St(iML),E=g.DD(t),k=(0,g.Tu)(),O=!1,N="empty",p=0,V.NU("psns"),I={II:x},g.m(q1,g.uM(R,f,b,void 0,I),4);case 4:L=q1.S;V.NU("psnr");if(t.uD())return q1.return();L?"error"in L&&L.error?(O=!0,N="esf:"+L.error.message, p=L.error.code):L.errorMetadata&&(O=!0,N="its",p=L.errorMetadata.status):O=!0;if(O)return M=0,z=((0,g.Tu)()-k).toFixed(),Y={},Y=u.T("html5_use_network_error_code_enums")?{backend:"op",rc:p,rt:z,reason:N,has_kpt:t.gk?"1":"0",has_mdx_env:t.mdxEnvironment?"1":"0",has_omit_key_flag:g.Zc("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:u.pageId?"1":"0",has_token:E?"1":"0",has_vvt:t.wk?"1":"0",is_mdx:t.isMdxPlayback?"1":"0",mdx_ctrl:t.I4||"",token_eq:E===g.DD(t)?"1":"0"}:{backend:"op", rc:""+p,rt:z,reason:N,has_kpt:t.gk?"1":"0",has_mdx_env:t.mdxEnvironment?"1":"0",has_omit_key_flag:g.Zc("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:u.pageId?"1":"0",has_token:E?"1":"0",has_vvt:t.wk?"1":"0",is_mdx:t.isMdxPlayback?"1":"0",mdx_ctrl:t.I4||"",token_eq:E===g.DD(t)?"1":"0"},r="manifest.net.connect",p===429?(r="auth",M=2):p>200&&(r="manifest.net.badstatus",p===400&&(M=2)),q1.return(Promise.reject(new Qr(r,Y,M)));t.loading=!1;g.ek(t,{raw_player_response:L},!0); n=L;g.re(t.K())&&n&&n.trackingParams&&B8(n.trackingParams);if(t.errorCode)return U={ec:t.errorCode,ed:t.errorDetail,es:t.L7||""},q1.return(Promise.reject(new Qr("auth",U,2)));if(!t.loading&&!Us(t))return d=t.isAd()?"auth":"manifest.net.retryexhausted",uL=t.isAd()?2:1,q1.return(Promise.reject(new Qr(d,{successButUnplayable:"1",hasMedia:g.FL(t)?"1":"0"},uL)));g.pl(q1)}})}; PV4=function(V,t,x){function u(p){p=rw(p);if(aa(p.severity))return Promise.reject(p);V.handleError(p);return!1} function Z(){return!0} var P,K,R,f,b,E,k,O,N;return g.Q(function(p){switch(p.J){case 1:var I=V.K(),L=V.getPlayerSize(),M=V.getVisibilityState();V.isFullscreen();var z=window.location.search;if(t.partnerId===38&&I.playerStyle==="books")z=t.videoId.indexOf(":"),z=g.CX("//play.google.com/books/volumes/"+t.videoId.slice(0,z)+"/content/media",{aid:t.videoId.slice(z+1),sig:t.ej});else if(t.partnerId===30&&I.playerStyle==="docs")z=g.CX("https://docs.google.com/get_video_info",{docid:t.videoId,authuser:t.xR,authkey:t.Xv,eurl:I.gk}); else if(t.partnerId===33&&I.playerStyle==="google-live")z=g.CX("//google-liveplayer.appspot.com/get_video_info",{key:t.videoId});else{I.Ij!=="yt"&&g.jv(Error("getVideoInfoUrl for invalid namespace: "+I.Ij));var Y={html5:"1",video_id:t.videoId,cpn:t.clientPlaybackNonce,eurl:I.gk,ps:I.playerStyle,el:TD(t),hl:I.Fc,list:t.playlistId,agcid:t.vg,aqi:t.adQueryId,sts:20115,lact:rF()};Object.assign(Y,I.J);I.forcedExperiments&&(Y.forced_experiments=I.forcedExperiments);t.wk?(Y.vvt=t.wk,t.mdxEnvironment&&(Y.mdx_environment= t.mdxEnvironment)):g.DD(t)&&(Y.access_token=g.DD(t));t.adFormat&&(Y.adformat=t.adFormat);t.slotPosition>=0&&(Y.slot_pos=t.slotPosition);t.breakType&&(Y.break_type=t.breakType);t.zT!==null&&(Y.ad_id=t.zT);t.U_!==null&&(Y.ad_sys=t.U_);t.Hu!==null&&(Y.encoded_ad_playback_context=t.Hu);I.captionsLanguagePreference&&(Y.cc_lang_pref=I.captionsLanguagePreference);I.w6&&I.w6!==2&&(Y.cc_load_policy=I.w6);var r=g.JD(g.Cy(),65);g.J2(I)&&r!=null&&!r&&(Y.device_captions_on="1");I.mute&&(Y.mute=I.mute);t.annotationsLoadPolicy&& I.annotationsLoadPolicy!==2&&(Y.iv_load_policy=t.annotationsLoadPolicy);t.HO&&(Y.endscreen_ad_tracking=t.HO);(r=I.Es.get(t.videoId))&&r.mP&&(Y.ic_track=r.mP);t.Us&&(Y.itct=t.Us);Uj(t)&&(Y.autoplay="1");t.mutedAutoplay&&(Y.mutedautoplay=t.mutedAutoplay);t.isAutonav&&(Y.autonav="1");t.wf&&(Y.noiba="1");t.isMdxPlayback&&(Y.mdx="1",Y.ytr=t.DD);t.mdxControlMode&&(Y.mdx_control_mode=t.mdxControlMode);t.WD&&(Y.ytrcc=t.WD);t.TK&&(Y.utpsa="1");t.isFling&&(Y.is_fling="1");t.isInlinePlaybackNoAd&&(Y.mute="1"); t.vnd&&(Y.vnd=t.vnd);t.forceAdsUrl&&(r=t.forceAdsUrl.split("|").length===3,Y.force_ad_params=r?t.forceAdsUrl:"||"+t.forceAdsUrl);t.r9&&(Y.preload=t.r9);L.width&&(Y.width=L.width);L.height&&(Y.height=L.height);(t.Qc?0:t.bv)&&(Y.splay="1");t.ypcPreview&&(Y.ypc_preview="1");l1(t)&&(Y.content_v=l1(t));t.QC&&(Y.livemonitor=1);I.zU&&(Y.authuser=I.zU);I.pageId&&(Y.pageid=I.pageId);I.HX&&(Y.ei=I.HX);I.W&&(Y.iframe="1");t.contentCheckOk&&(Y.cco="1");t.racyCheckOk&&(Y.rco="1");I.L&&t.A3&&(Y.live_start_walltime= t.A3);I.L&&t.eK&&(Y.live_manifest_duration=t.eK);I.L&&t.playerParams&&(Y.player_params=t.playerParams);I.L&&t.cycToken&&(Y.cyc=t.cycToken);I.L&&t.Le&&(Y.tkn=t.Le);M!==0&&(Y.vis=M);I.enableSafetyMode&&(Y.enable_safety_mode="1");t.gk&&(Y.kpt=t.gk);t.Tt&&(Y.kids_age_up_mode=t.Tt);t.kidsAppInfo&&(Y.kids_app_info=t.kidsAppInfo);t.s0&&(Y.upg_content_filter_mode="1");I.widgetReferrer&&(Y.widget_referrer=I.widgetReferrer.substring(0,128));t.Ij?(L=t.Ij.latitudeE7!=null&&t.Ij.longitudeE7!=null?t.Ij.latitudeE7+ ","+t.Ij.longitudeE7:",",L+=","+(t.Ij.clientPermissionState||0)+","+(t.Ij.locationRadiusMeters||"")+","+(t.Ij.locationOverrideToken||"")):L=null;L&&(Y.uloc=L);t.iP&&(Y.internalipoverride=t.iP);I.embedConfig&&(Y.embed_config=I.embedConfig);I.RA&&(Y.co_rel="1");I.ancestorOrigins.length>0&&(Y.ancestor_origins=Array.from(I.ancestorOrigins).join(","));I.homeGroupInfo!==void 0&&(Y.home_group_info=I.homeGroupInfo);I.livingRoomAppMode!==void 0&&(Y.living_room_app_mode=I.livingRoomAppMode);I.enablePrivacyFilter&& (Y.enable_privacy_filter="1");t.isLivingRoomDeeplink&&(Y.is_living_room_deeplink="1");t.Ds&&t.rJ&&(Y.clip=t.Ds,Y.clipt=t.rJ);t.o9&&(Y.disable_watch_next="1");t.w2&&(Y.forced_by_var="1");for(var n in Y)!OM0.has(n)&&Y[n]&&String(Y[n]).length>512&&(g.lf(Error("GVI param too long: "+n)),Y[n]="");n=I.cX;g.To(I)&&(n=Km(n.replace(/\b(?:www|web)([.-])/,"tv$1"))||I.cX);I=g.CX(n+"get_video_info",Y);z&&(I=ZKw(I,z));z=I}P=z;R=(K=t.isAd())?1:3;f=0;case 2:if(!(f0)){p.FX(5);break}return g.m(p, mF(5E3),6);case 6:E={playerretry:f,playerretrysrc:x},K||(E.recover="embedded"),b=sQ(P,E);case 5:return g.m(p,sDT(t,b).then(Z,u),7);case 7:if(k=p.S)return p.return();f++;p.FX(2);break;case 4:O=K?"auth":"manifest.net.retryexhausted";N=K?2:1;if(!K&&Math.random()<1E-4)try{g.lf(new g.xe("b/152131571",btoa(P)))}catch(U){}return p.return(Promise.reject(new Qr(O,{backend:"gvi"},N)))}})}; sDT=function(V,t){function x(L){return u(L.xhr)} function u(L){if(!V.uD()){L=L?L.status:-1;var M=0,z=((0,g.Tu)()-E).toFixed();z=Z.T("html5_use_network_error_code_enums")?{backend:"gvi",rc:L,rt:z}:{backend:"gvi",rc:""+L,rt:z};var Y="manifest.net.connect";L===429?(Y="auth",M=2):L>200&&(Y="manifest.net.badstatus",L===400&&(M=2));return Promise.reject(new Qr(Y,z,M))}} var Z,P,K,R,f,b,E,k,O,N,p,I;return g.Q(function(L){if(L.J==1){V.fetchType="gvi";Z=V.K();var M={};V.F5&&(M.ytrext=V.F5);(R=g.YE(M)?void 0:M)?(P={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:R},K=sQ(t,{action_display_post:1})):(P={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},K=t);f={};Z.sendVisitorIdHeader&&V.visitorData&&(f["X-Goog-Visitor-Id"]=V.visitorData);(b=Vw(Z.experiments,"debug_sherlog_username"))&&(f["X-Youtube-Sherlog-Username"]=b);Object.keys(f).length> 0&&(P.headers=f);E=(0,g.Tu)();return g.m(L,$U(oW,K,P).then(void 0,x),2)}k=L.S;if(!k||!k.responseText)return L.return(u(k));V.loading=!1;O=EQ(k.responseText);g.ek(V,O,!0);if(V.errorCode)return N={ec:V.errorCode,ed:V.errorDetail,es:V.L7||""},L.return(Promise.reject(new Qr("auth",N,2)));if(!V.loading&&!Us(V))return p=V.isAd()?"auth":"manifest.net.retryexhausted",I=V.isAd()?2:1,L.return(Promise.reject(new Qr(p,{successButUnplayable:"1"},I)));g.pl(L)})}; k7s=function(V,t){return new Qr(V?"auth":"manifest.net.retryexhausted",t,V?2:1)}; Ss=function(V,t,x){x=x===void 0?!1:x;var u,Z,P,K;g.Q(function(R){if(R.J==1){u=V.K();if(x&&(!g.we(u)||TD(t)!=="embedded")||t.o9||TD(t)!=="adunit"&&(g.ap(u)||jW(u)||g.Dp(u)||g.To(u)||hW(u)==="WEB_CREATOR"))return R.return();Z=g.Pi(u,g.DD(t));return Z.J?g.m(R,Z.J,3):(P=Z.getValue(),R.FX(2))}R.J!=2&&(P=R.S);K=P;return R.return(N$4(V,t,K))})}; N$4=function(V,t,x){var u,Z,P,K,R;return g.Q(function(f){if(f.J==1){g.AT(f,2);u=bMs(x);var b=t.K();g.Cy();var E={context:g.PL(t),videoId:t.videoId,racyCheckOk:t.racyCheckOk,contentCheckOk:t.contentCheckOk,autonavState:"STATE_NONE"};TD(t)==="adunit"&&(E.isAdPlayback=!0);b.embedConfig&&(E.serializedThirdPartyEmbedConfig=b.embedConfig);b.RA&&(E.showContentOwnerOnly=!0);t.V0&&(E.showShortsOnly=!0);g.JD(0,141)&&(E.autonavState=g.JD(0,140)?"STATE_OFF":"STATE_ON");if(g.J2(b)){var k=g.JD(0,65);k=k!=null? !k:!1;var O=!!g.ls("yt-player-sticky-caption");E.captionsRequested=k&&O}var N;if(b=(N=b.getWebPlayerContextConfig())==null?void 0:N.encryptedHostFlags)E.playbackContext={encryptedHostFlags:b};Z=E;P=g.St(pJK);V.NU("wn_s");return g.m(f,g.uM(u,Z,P),4)}if(f.J!=2)return K=f.S,V.NU("wn_r"),!K||"error"in K&&K.error||(R=K,g.re(t.K())&&R.trackingParams&&B8(R.trackingParams),g.ek(t,{raw_watch_next_response:K},!1)),g.GK(f,0);g.I9(f);g.pl(f)})}; Awj=function(V){V.NU("vir");V.NU("ps_s");VF("vir",void 0,"video_to_ad");var t=$L9(V);t.then(function(){V.NU("virc");VF("virc",void 0,"video_to_ad");V.NU("ps_r");VF("ps_r",void 0,"video_to_ad")},function(){V.NU("virc"); VF("virc",void 0,"video_to_ad")}); return t}; g.vJ=function(V,t,x,u,Z,P,K,R,f,b){f=f===void 0?new g.Hi(V):f;b=b===void 0?!0:b;g.Np.call(this);var E=this;this.Rj=V;this.playerType=t;this.Uh=x;this.nE=u;this.getVisibilityState=P;this.visibility=K;this.yP=R;this.videoData=f;this.Eq=b;this.logger=new g.ZG("VideoPlayer");this.Ig=new Iu9(this.Rj);this.Hw=null;this.Ui=new vt;this.Zq=null;this.D7=new zHT(this.Rj,this.nE,this);this.RX=!0;this.VC=this.iD=null;this.Cu=[];this.uA=new Aw;this.RN=this.rQ=null;this.vY=new Aw;this.eF=null;this.cT=this.Jj=!1; this.RT=NaN;this.O9=!1;this.playerState=new g.RM;this.IT=[];this.h3=new g.j6;this.hh=new sez(this);this.mediaElement=null;this.Yj=new g.qK(this.EKj,15E3,this);this.Ol=this.cK=!1;this.Mh=NaN;this.uf=!1;this.Hs=0;this.KL=!1;this.TI=NaN;this.rd=new Ou(new Map([["bufferhealth",function(){return Unq(E.Bk)}], ["bandwidth",function(){return E.Ec()}], ["networkactivity",function(){return E.Rj.schedule.zU}], ["livelatency",function(){return E.isAtLiveHead()&&E.isPlaying()?SuL(E):NaN}], ["rawlivelatency",function(){return SuL(E)}]])); this.Q_=0;this.loop=!1;this.playbackRate=1;this.gw=0;this.Bk=new okC(this);this.Hj=!1;this.Sx=[];this.t4=this.q7=0;this.jw=this.ek=!1;this.R9=this.O7=0;this.lf=-1;this.D$="";this.AU=new g.qK(this.aq,0,this);this.z7=!1;this.e8=this.K9=null;this.Gcj=[this.h3,this.AU,this.Yj,this.rd];this.tp=this.gx=null;this.e3=function(){var k=E.Zz();k.provider.Rj.Ve||k.provider.S8.getVisibilityState()===3||(k.provider.Rj.Ve=!0);Pjj(k);if(k.S){var O=k.S;O.G&&O.J<0&&O.provider.S8.getVisibilityState()!==3&&DIz(O)}k.qoe&& (k=k.qoe,k.DS&&k.S<0&&k.provider.Rj.Ve&&vis(k),k.N&&rg(k));E.iD&&G7(E);E.Rj.Ev&&!E.videoData.backgroundable&&E.mediaElement&&!E.F$()&&(E.isBackground()&&E.mediaElement.e6()?(E.J6("bgmobile",{suspend:1}),E.oM(!0,!0)):E.isBackground()||ID(E)&&E.J6("bgmobile",{resume:1}))}; this.Wk={ZQ:function(k){E.ZQ(k)}, QwP:function(k){E.Hw=k}, uGU:function(){return E.CT}, q2:function(){return E.Dy}, tK:function(){return E.VC}, o5s:function(){return E.ON}, pvP:function(){return E.qH}, Tl6:function(){}, K:function(){return E.Rj}, Bw:function(){return E.mediaElement}, L6y:function(k){E.D2(k)}, jl1:function(){return E.nE}}; this.logger.debug(function(){return"creating, type "+t}); this.X$=new g.hN(function(){return E.getCurrentTime()},function(){return E.getPlaybackRate()},function(){return E.getPlayerState()},function(k,O){k!==g.km("endcr")||g.J(E.playerState,32)||E.zD(); Z(k,O,E.playerType)},function(k,O){g.d8(E.videoData)&&E.J6(k,O)}); g.y(this,this.X$);g.y(this,this.Bk);G7j(this,f);this.videoData.subscribe("dataupdated",this.RsD,this);this.videoData.subscribe("dataloaded",this.YM,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.J6,this);this.videoData.subscribe("ctmpstr",this.sR,this);this.pN();iVC(this.e3);this.visibility.subscribe("visibilitystatechange",this.e3);this.ON=new g.qK(this.sj,g.S7(this.Rj.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.qH= new g.qK(this.sj,g.S7(this.Rj.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.Go=new g.wg(this)}; G7j=function(V,t){if(V.playerType===2||V.Rj.Lu)t.RZ=!0;var x=zC4(t.kX,t.cO,V.Rj.W,V.Rj.L);x&&(t.adFormat=x);V.playerType===2&&(t.Te=!0);if(V.isFullscreen()||V.Rj.W)x=g.ls("yt-player-autonavstate"),t.autonavState=x||(V.Rj.W?2:V.videoData.autonavState);t.endSeconds&&t.endSeconds>t.startSeconds&&kK(V,t.endSeconds)}; It1=function(V){KR9(V.CT);g.Rc(V.CT);for(var t=V.Dy,x=g.G(t.J.values()),u=x.next();!u.done;u=x.next())KR9(u.value);t.J.clear();g.Rc(V.Dy)}; vKK=function(V){var t=V.videoData;Awj(V).then(void 0,function(x){V.videoData!==t||t.uD()||(x=rw(x),x.errorCode==="auth"&&V.videoData.errorDetail?V.KG(x.errorCode,2,unescape(V.videoData.errorReason),YY(x.details),V.videoData.errorDetail,V.videoData.L7||void 0):V.handleError(x))})}; Ms9=function(V){if(!g.J(V.playerState,128))if(V.videoData.isLoaded(),V.logger.debug("finished loading playback data"),V.Cu=g.tb(V.videoData.cX),g.FL(V.videoData)){V.Uh.tick("bpd_s");LM(V).then(function(){V.Uh.tick("bpd_c");if(!V.uD()){V.Jj&&(V.YK(bg(bg(V.playerState,512),1)),ID(V));var u=V.videoData;u.endSeconds&&u.endSeconds>u.startSeconds&&kK(V,u.endSeconds);V.uA.finished=!0;FJ(V,"dataloaded");V.vY.iC()&&L1K(V);UIw(V.D7,V.RN)}}); V.T("html5_log_media_perf_info")&&V.J6("loudness",{v:V.videoData.a4.toFixed(3)},!0);var t,x=(t=V.mediaElement)==null?void 0:t.m0();x&&"disablePictureInPicture"in x&&V.T("html5_disable_pip_with_standard_api")&&(x.disablePictureInPicture=V.Rj.a4&&!V.videoData.backgroundable);F14(V)}else FJ(V,"dataloaded")}; LM=function(V){ML(V);V.RN=null;var t=LRC(V.Rj,V.videoData,V.F$());V.rQ=t;V.rQ.then(function(x){gKl(V,x)},function(x){V.uD()||(x=rw(x),V.visibility.isBackground()?(g$(V,"vp_none_avail"),V.rQ=null,V.uA.reset()):(V.uA.finished=!0,V.KG(x.errorCode,x.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",YY(x.details))))}); return t}; gKl=function(V,t){if(!V.uD()&&!t.videoData.uD()){V.logger.debug("finished building playback data");V.RN=t;yNj(V.Bk,V.RN);if(V.videoData.isLivePlayback){var x=XJT(V.yP.tj,V.videoData.videoId)||V.iD&&!isNaN(V.iD.zU);x=V.T("html5_onesie_live")&&x;bV(V)||V.videoData.P$>0&&!k8(V.videoData)||x||V.seekTo(V.uh(),{xK:"videoplayer_playbackData",seekSource:18})}if(V.videoData.N.J){if(V.T("html5_sabr_report_missing_url_as_error")&&Zn1(V.videoData)){V.handleError(new Qr("fmt.missing",{missabrurl:"1"},2));return}V.iD? g.lf(Error("Duplicated Loader")):(x=g.S7(V.Rj.experiments,"html5_onesie_defer_content_loader_ms"))&&V.fu()&&XJT(V.yP.tj,V.videoData.I1)?g.FV(function(){V.uD()||V.iD||zLw(V)},x):zLw(V)}else!V.videoData.N.J&&CN(V.videoData)&&V.VJ(new bd(V.videoData.videoId||"",4)); V.lA();odw(t).then(function(){var u={};V.fd(u);V.Rj.d6()&&V.T("html5_log_media_perf_info")&&V.J6("av1Info",u);G7(V)})}}; L1K=function(V){V.uD();V.logger.debug("try finish readying playback");if(V.vY.finished)V.logger.debug("already finished readying");else if(V.uA.finished)if(g.J(V.playerState,128))V.logger.debug("cannot finish readying because of error");else if(V.Cu.length)V.logger.debug(function(){return"cannot finish readying because of pending preroll: "+V.Cu}); else if(V.X$.started||AN9(V.X$),V.Ah())V.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{V.iD&&(V.cT=$vz(V.iD.timing));V.vY.finished||(V.vY.finished=!0);var t=V.T("html5_onesie_live")&&V.iD&&!isNaN(V.iD.zU);!V.videoData.isLivePlayback||V.videoData.P$>0&&!k8(V.videoData)||t||bV(V)||(V.logger.debug("seek to head for live"),V.seekTo(Infinity,{xK:"videoplayer_readying",seekSource:18}),V.isBackground()&&(V.Ol=!0));tD8(V.Zz());V.logger.debug("finished readying playback"); V.publish("playbackready",V);h4("pl_c",V.Uh.timerName)||(V.Uh.tick("pl_c"),VF("pl_c",void 0,"video_to_ad"));h4("pbr",V.Uh.timerName)||(V.Uh.tick("pbr"),VF("pbr",void 0,"video_to_ad"))}else V.logger.debug("playback data not loaded")}; kK=function(V,t){V.Zq&&B$L(V);V.Zq=new g.b4(t*1E3,0x7ffffffffffff);V.Zq.namespace="endcr";V.addCueRange(V.Zq)}; B$L=function(V){V.removeCueRange(V.Zq);V.Zq=null}; mLC=function(V,t,x,u,Z){var P=V.Zz(Z),K=g.d8(V.videoData)?P.getVideoData():V.videoData;K.S=x;var R=g.XJ(V);x=new Xfh(K,x,t,R?R.itag:"",u);V.Rj.experiments.MP("html5_refactor_sabr_video_format_selection_logging")?(x.videoId=Z,V.tp=x):P.WA(x);Z=V.D7;Z.S=0;Z.J=0;V.publish("internalvideoformatchange",K,t==="m")}; g.XJ=function(V){var t=z7(V);return qy(t)||!V.RN?null:g.ei(V.RN.J.videoInfos,function(x){return t.W(x)})}; z7=function(V){if(V.RN){var t=V.D7;var x=V.RN;V=V.LH();if(t.S8.Xl().isInline())var u=lp;else t.T("html5_exponential_memory_for_sticky")?u=Fy(t.Rj.AZ,"sticky-lifetime")<.5?"auto":RY[n7()]:u=RY[n7()],u=g.Pg("auto",u,!1,"s");if(qy(u)){if(u=BSz(t,x).compose(rL4(t,x)).compose(WUw(t,x)).compose(lQq(t,x.videoData)).compose(HVL(t,x.videoData,x)).compose(gg(t,x)).compose(Qe1(t,x)),qy(V)||t.T("html5_apply_pbr_cap_for_drm"))u=u.compose(aQh(t,x))}else t.T("html5_perf_cap_override_sticky")&&(u=u.compose(gg(t, x))),t.T("html5_ustreamer_cap_override_sticky")&&(u=u.compose(aQh(t,x)));u=u.compose(Qe1(t,x));t=x.videoData.Yr.compose(u).compose(x.videoData.Hz).compose(V)}else t=lp;return t}; tkz=function(V){var t=V.D7;V=V.videoData;var x=lQq(t,V);t.T("html5_disable_client_autonav_cap_for_onesie")||x.compose(HVL(t,V));return x}; G7=function(V){if(V.videoData.N&&V.videoData.N.J){var t=z7(V);V.iD&&d0K(V.iD,t)}}; Yuq=function(V){var t;return!!(V.T("html5_native_audio_track_switching")&&g.XM&&((t=V.videoData.S)==null?0:ZH(t)))}; QDh=function(V){if(!Yuq(V))return!1;var t;V=(t=V.mediaElement)==null?void 0:t.audioTracks();return!!(V&&V.length>1)}; rw9=function(V){var t=atl(V);if(t)return V.videoData.getAvailableAudioTracks().find(function(x){return x.H$.getName()===t})}; atl=function(V){var t;if(V=(t=V.mediaElement)==null?void 0:t.audioTracks())for(t=0;t0&&(t.IN=u.hM)); t.Cv=u.Qd;t.hQ=YU(x,{},u.N||void 0,KN(u));t.HX=Pz(u)&&g.Dp(x);t.zT=x.T("html5_catch_errors_for_rollback");qm(u)&&(x.T("html5_sabr_allow_video_keyframe_without_audio")&&(t.o5=!0),x.T("html5_sabr_report_partial_segment_estimated_duration")&&(t.hR=!0),t.J=!0,t.Wo=x.T("html5_sabr_enable_utc_seek_requests"),t.S4=x.T("html5_sabr_enable_live_clock_offset"),t.iz=x.T("html5_disable_client_resume_policy_for_sabr"),t.yu=x.T("html5_trigger_loader_when_idle_network"),t.a9=x.T("html5_sabr_parse_live_metadata_playback_boundaries"), t.C8=x.T("html5_enable_platform_backpressure_with_sabr"),t.Vh=x.T("html5_consume_onesie_next_request_policy_for_sabr"),t.CH=x.T("html5_sabr_report_next_ad_break_time"),t.RR=x.T("html5_log_high_res_buffer_timeline"),t.RV=x.T("html5_remove_stuck_slices_beyond_max_buffer_limits"),t.Fq=x.T("html5_gapless_sabr_btl_last_slice")&&ZD(u),k8(u)?(t.qx=!0,t.Ev=x.T("html5_disable_variability_tracker_for_live"),t.DS=x.T("html5_sabr_use_accurate_slice_info_params"),x.T("html5_simplified_backup_timeout_sabr_live")&& (t.e0=!0,t.a_=t.Qi)):t.Td=x.T("html5_probe_request_on_sabr_request_progress"),t.Mx=x.T("html5_serve_start_seconds_seek_for_post_live_sabr"),t.kX=x.T("html5_flush_index_on_updated_timestamp_offset"),t.wk=x.T("html5_enable_sabr_request_pipelining")&&!g.d8(u),t.Js=x.T("html5_ignore_partial_segment_from_live_readahead"),t.tM=x.T("html5_use_non_active_broadcast_for_post_live"),t.BX=x.T("html5_use_centralized_player_time"),t.oa=x.T("html5_consume_onesie_sabr_seek"),t.zU=x.T("html5_enable_sabr_seek_loader_refactor"), t.cO=x.T("html5_update_segment_start_time_from_media_header"),u.enableServerStitchedDai&&(t.G=!0,t.GD=x.T("html5_reset_server_stitch_state_for_non_sabr_seek"),t.OW=x.T("html5_remove_ssdai_append_pause"),t.yC=x.T("html5_consume_ssdai_info_with_streaming"),t.kS=x.T("html5_process_all_cuepoints")));t.B=t.J&&x.T("html5_sabr_live");Gt(x.G,IY.BITRATE)&&(t.n1=NaN);if(R=g.S7(x.experiments,"html5_request_size_max_kb"))t.dk=R*1024;x.G.W?t.bv="; "+IY.EXPERIMENTAL.name+"=allowed":x.T("html5_enable_cobalt_tunnel_mode")&& (t.bv="; tunnelmode=true");R=u.serverPlaybackStartConfig;(R==null?0:R.enable)&&(R==null?0:R.playbackStartPolicy)&&(t.oA=!0,UE(t,R.playbackStartPolicy,2));R=T$K(V);V.Ui.removeAll();a:{x=V.yP.tj;if(u=V.videoData.videoId)if(Z=x.J.get(u)){x.J.remove(u);x=Z;break a}x=void 0}V.iD=new g.bj(V,V.Rj.schedule,t,V.videoData.J,V.videoData.N,z7(V),R,V.videoData.enableServerStitchedDai,x,V.videoData.dk);t=V.videoData.T("html5_disable_preload_for_ssdai_with_preroll")&&V.videoData.isLivePlayback&&V.fu()?!0:V.Jj&& g.ap(V.Rj)&&V.videoData.isLivePlayback;V.iD.initialize(V.getCurrentTime(),z7(V),t);V.videoData.probeUrl&&(V.iD.xw=V.videoData.probeUrl);if(V.Cu.length||V.Jj)V.videoData.cotn||BJ(V,!1);luz(V.Bk,V.iD);V.K9&&N39(V.iD,new g.O2(V.K9));V.e8&&(V.iD.Zv(V.e8),V.Bk.L=!1);g.hM(V.videoData)&&(V=V.iD,V.policy.yd=V.policy.Ke)}; ML=function(V){V.iD&&(V.iD.dispose(),V.iD=null,luz(V.Bk,null));V.M$()?W1T(V):V.bA()}; W1T=function(V){if(V.VC)if(V.logger.debug("release media source"),V.P3(),V.VC.G)try{V.Rj.d6()&&V.J6("rms",{l:"vprms",sr:V.M$(),rs:Vl(V.VC)});V.VC.clear();var t;(t=V.mediaElement)!=null&&(t.S=V.VC);V.VC=null}catch(x){t=new g.xe("Error while clearing Media Source in VideoPlayer: "+x.name+", "+x.message),t=rw(t),V.handleError(t),V.bA()}else V.bA()}; oK1=function(V,t){t=t===void 0?!1:t;if(V.VC)return V.VC.N;V.logger.debug("update media source");a:{t=t===void 0?!1:t;try{g.Vz()&&V.videoData.QH()&&v9C(V.mediaElement);var x=V.mediaElement.tK(V.Kf(),V.La())}catch(Z){if(GbT(V.hh,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",Z);V.KG("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}V.AP(x,!1,!1,t)}var u;return((u=V.tK())==null?void 0:u.N)||null}; nK1=function(V,t){t=t===void 0?!1:t;if(V.iD){var x=V.getCurrentTime()-V.SB();V.iD.seek(x,{nf:t}).q9(function(){})}else zLw(V)}; ywh=function(V,t,x,u){x=x===void 0?!1:x;u=u===void 0?!1:u;if(V.VC&&(!t||V.VC===t)){V.logger.debug("media source opened");var Z=V.getDuration();!Z&&k8(V.videoData)&&(Z=25200);if(V.VC.isView){var P=Z;V.logger.debug(function(){return"Set media source duration to "+P+", video duration "+Z}); P>V.VC.getDuration()&&cww(V,P)}else cww(V,Z);U0w(V.iD,V.VC,x,u);V.publish("mediasourceattached")}}; cww=function(V,t){if(V.VC){V.VC.qq(t);var x;(x=V.iD)!=null&&x.policy.BX&&(x.B=t)}}; JP8=function(V,t){mLC(V,t.reason,t.J.info,t.token,t.videoId)}; jDC=function(V,t){V.Rj.experiments.MP("enable_adb_handling_in_sabr")&&(V.pauseVideo(!0),V.qz(),t&&V.KG("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; FJ=function(V,t){V.publish("internalvideodatachange",t===void 0?"dataupdated":t,V,V.videoData)}; ltK=function(V){for(var t=g.G("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),x=t.next();!x.done;x=t.next())V.h3.Z(V.mediaElement,x.value,V.D2,V);V.Rj.Yt&&V.mediaElement.VA()&&(V.h3.Z(V.mediaElement,"webkitplaybacktargetavailabilitychanged",V.Vsj,V),V.h3.Z(V.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",V.PqX,V))}; ULC=function(V){g.XV(V.RT);HMl(V)||(V.RT=g.Mc(function(){return HMl(V)},100))}; HMl=function(V){var t=V.mediaElement;t&&V.cK&&!V.videoData.zU&&!h4("vfp",V.Uh.timerName)&&t.IM()>=2&&!t.isEnded()&&sG(t.oN())>0&&V.Uh.tick("vfp");return(t=V.mediaElement)&&!V.videoData.zU&&t.getDuration()>0&&(t.isPaused()&&t.IM()>=2&&sG(t.oN())>0&&(h4("pbp",V.Uh.timerName)||V.Uh.tick("pbp"),!V.videoData.RO||V.O9||t.isSeeking()||(V.O9=!0,V.publish("onPlaybackPauseAtStart"))),t=t.getCurrentTime(),VZ(V.Ig,t))?(V.UG(),!0):!1}; eLq=function(V){V.Zz().dh();if(Ej(V.videoData)&&Date.now()>V.gw+6283){if(!(!V.isAtLiveHead()||V.videoData.J&&SH(V.videoData.J))){var t=V.Zz();if(t.qoe){t=t.qoe;var x=t.provider.S8.c7(),u=g.z2(t.provider);OEs(t,u,x);x=x.N;isNaN(x)||g.QD(t,u,"e2el",[x.toFixed(3)])}}V.T("html5_alc_live_log_rawlat")?(t=V.videoData,t=g.YH(t.K())?!0:g.de(t.K())?t.kS==="6":!1):t=g.YH(V.Rj);t&&V.J6("rawlat",{l:pM(V.rd,"rawlivelatency").toFixed(3)});V.gw=Date.now()}V.videoData.S&&ZH(V.videoData.S)&&(t=V.x4())&&t.videoHeight!== V.t4&&(V.t4=t.videoHeight,mLC(V,"a",DLK(V,V.videoData.yC)))}; DLK=function(V,t){if(t.J.video.quality==="auto"&&ZH(t.getInfo())&&V.videoData.q6)for(var x=g.G(V.videoData.q6),u=x.next();!u.done;u=x.next())if(u=u.value,u.getHeight()===V.t4&&u.J.video.quality!=="auto")return u.getInfo();return t.getInfo()}; SuL=function(V){if(!Ej(V.videoData))return NaN;var t=0;V.iD&&V.videoData.J&&(t=k8(V.videoData)?V.iD.Yb.HG()||0:V.videoData.J.cX);return(0,g.Tu)()/1E3-V.eH()-t}; CVw=function(V){V.mediaElement&&V.mediaElement.F$()&&(V.TI=(0,g.Tu)());V.Rj.N4?g.FV(function(){dLT(V)},0):dLT(V)}; dLT=function(V){var t;if((t=V.VC)==null||!t.VW()){if(V.mediaElement)try{V.eF=V.mediaElement.playVideo()}catch(u){g$(V,"err."+u)}if(V.eF){var x=V.eF;x.then(void 0,function(u){V.logger.debug(function(){return"playMediaElement failed: "+u}); if(!g.J(V.playerState,4)&&!g.J(V.playerState,256)&&V.eF===x)if(u&&u.name==="AbortError"&&u.message&&u.message.includes("load"))V.logger.debug(function(){return"ignore play media element failure: "+u.message}); else{var Z="promise";u&&u.name&&(Z+=";m."+u.name);g$(V,Z);V.Hj=!0;V.videoData.Qc=!0}})}}}; g$=function(V,t){g.J(V.playerState,128)||(V.YK(kJ(V.playerState,1028,9)),V.J6("dompaused",{r:t}),V.publish("onAutoplayBlocked"))}; ID=function(V,t){t=t===void 0?!1:t;if(!V.mediaElement||!V.videoData.N)return!1;var x=t;x=x===void 0?!1:x;var u=null;var Z;if((Z=V.videoData.N)==null?0:Z.J){u=oK1(V,x);var P;(P=V.iD)==null||P.resume()}else ML(V),V.videoData.yC&&(u=V.videoData.yC.Qb());Z=V.mediaElement.e6();x=!1;Z&&Z.t9(u)||(Jw1(V,u),x=!0);g.J(V.playerState,2)||(u=V.Bk,t=t===void 0?!1:t,u.G||!(u.W>0)||u.mediaElement&&u.mediaElement.getCurrentTime()>0||(t={xK:"seektimeline_resumeTime",nf:t},u.videoData.zU||(t.seekSource=15),u.seekTo(u.W, t)));a:{t=x;if(qm(V.videoData)){if(!V.videoData.eZ())break a}else if(!g.GD(V.videoData))break a;if(V.mediaElement)if((u=V.videoData.G)&&V.mediaElement.VA()){Z=V.mediaElement.m0();if(V.Hw)if(Z!==V.Hw.element)m1(V);else if(t&&u.flavor==="fairplay"&&!tD())m1(V);else break a;if(V.T("html5_report_error_for_unsupported_tvos_widevine")&&tD()&&u.flavor==="widevine")V.KG("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{V.Hw=new Pdw(Z,V.videoData,V.Rj);V.Hw.subscribe("licenseerror", V.Ab,V);V.Hw.subscribe("qualitychange",V.tBk,V);V.Hw.subscribe("heartbeatparams",V.Lw,V);V.Hw.subscribe("keystatuseschange",V.ZQ,V);V.Hw.subscribe("ctmp",V.J6,V);V.T("html5_widevine_use_fake_pssh")&&!V.videoData.isLivePlayback&&u.flavor==="widevine"&&V.Hw.Lq(new $d(hLw,"cenc",!1));t=g.G(V.Ui.keys);for(u=t.next();!u.done;u=t.next())u=V.Ui.get(u.value),V.Hw.Lq(u);V.T("html5_eme_loader_sync")||V.Ui.removeAll()}}else V.KG("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return x}; Jw1=function(V,t){V.Uh.tick("vta");VF("vta",void 0,"video_to_ad");V.getCurrentTime()>0&&edh(V.Bk,V.getCurrentTime());V.mediaElement.activate(t);V.VC&&bU(0,4);!V.videoData.zU&&V.playerState.isOrWillBePlaying()&&V.Yj.start();if(Yuq(V)){var x;if(t=(x=V.mediaElement)==null?void 0:x.audioTracks())t.onchange=function(){V.publish("internalaudioformatchange",V.videoData,!0)}}}; m1=function(V){V.Hw&&(V.Hw.dispose(),V.Hw=null)}; wJL=function(V){var t=t===void 0?!1:t;V.logger.debug("reattachVideoSource");V.mediaElement&&(V.VC?(m1(V),V.bA(),oK1(V,t)):(V.videoData.yC&&V.videoData.yC.Xj(),V.mediaElement.stopVideo()),V.playVideo())}; VCC=function(V,t){V.Rj.T("html5_log_rebuffer_reason")&&(t={r:t,lact:rF()},V.mediaElement&&(t.bh=Pv(V.mediaElement)),V.J6("bufreason",t))}; tCq=function(V,t){if(V.Rj.d6()&&V.mediaElement){var x=V.mediaElement.nI();x.omt=(V.mediaElement.getCurrentTime()+V.SB()).toFixed(3);x.ps=V.playerState.state.toString(16);x.rt=(g.z2(V.Zz().provider)*1E3).toFixed();x.e=t;V.Sx[V.q7++%5]=x}try{if(t==="timeupdate"||t==="progress")return}catch(u){}V.logger.debug(function(){return"video element event "+t})}; xdq=function(V){if(V.Rj.d6()){V.Sx.sort(function(u,Z){return+u.rt-+Z.rt}); for(var t=g.G(V.Sx),x=t.next();!x.done;x=t.next())x=x.value,V.J6("vpe",Object.assign({t:x.rt},x));V.Sx=[];V.q7=0}}; uKT=function(V){if(g.h6("cobalt")&&g.h6("nintendo switch")){var t=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;V.J6("nxdock",{d:t})}}; BJ=function(V,t){var x;(x=V.iD)==null||kk(x,t)}; NS8=function(V,t){return g.d8(V.videoData)&&V.e8?V.e8.handleError(t,void 0):!1}; F14=function(V){b1(V.videoData,"html5_set_debugging_opt_in")&&(V=g.Cy(),g.JD(0,183)||(wi(183,!0),V.save()))}; Zjq=function(V){return g.d8(V.videoData)&&V.e8?Pt(V.e8):V.videoData.uh()}; v8w=function(V,t){V.yP.gg()||(V.J6("sgap",{f:t}),V.yP.clearQueue(!1,t==="pe"))}; bV=function(V){return V.T("html5_disable_video_player_initiated_seeks")&&qm(V.videoData)}; PaL=function(V){Cv.call(this,V);var t=this;this.events=new g.j6(V);g.y(this,this.events);qD(this.api,"isLifaAdPlaying",function(){return t.api.isLifaAdPlaying()}); this.events.Z(V,"serverstitchedvideochange",function(){t.api.isLifaAdPlaying()?(t.playbackRate=t.api.getPlaybackRate(),t.api.setPlaybackRate(1)):t.api.setPlaybackRate(t.playbackRate)}); this.playbackRate=1}; K5j=function(V){Cv.call(this,V);var t=this;this.events=new g.j6(V);g.y(this,this.events);qD(this.api,"seekToChapterWithAnimation",function(x){t.seekToChapterWithAnimation(x)}); qD(this.api,"seekToTimeWithAnimation",function(x,u){t.seekToTimeWithAnimation(x,u)}); qD(this.api,"renderChapterSeekingAnimation",function(x,u,Z){t.api.renderChapterSeekingAnimation(x,u,Z)}); qD(this.api,"setMacroMarkers",function(x){t.setMacroMarkers(V,x)}); qD(this.api,"changeMarkerVisibility",function(x,u,Z){t.changeMarkerVisibility(x,u,Z)}); qD(this.api,"isSameMarkerTypeVisible",function(x){return t.isSameMarkerTypeVisible(x)})}; qfh=function(V,t,x){var u=V.api.getCurrentTime()*1E30&&Z>0&&(x.width+=Z,g.Ao(t.element,"width",x.width+"px")));V.size=x}}; g.es=function(V,t){var x=V.J[V.J.length-1];x!==t&&(V.J.push(t),Q7C(V,x,t))}; g.d$=function(V){if(!(V.J.length<=1)){var t=V.J.pop(),x=V.J[0];V.J=[x];Q7C(V,t,x,!0)}}; Q7C=function(V,t,x,u){aBh(V);t&&(t.unsubscribe("size-change",V.U3,V),t.unsubscribe("back",V.JQ,V));x.subscribe("size-change",V.U3,V);x.subscribe("back",V.JQ,V);if(V.iq){g.OU(x.element,u?"ytp-panel-animate-back":"ytp-panel-animate-forward");x.t6(V.element);x.focus();V.element.scrollLeft=0;V.element.scrollTop=0;var Z=V.size;YfT(V);g.QC(V.element,Z);V.B=new g.qK(function(){rSq(V,t,x,u)},20,V); V.B.start()}else x.t6(V.element),t&&t.detach()}; rSq=function(V,t,x,u){V.B.dispose();V.B=null;g.OU(V.element,"ytp-popup-animating");u?(g.OU(t.element,"ytp-panel-animate-forward"),g.NK(x.element,"ytp-panel-animate-back")):(g.OU(t.element,"ytp-panel-animate-back"),g.NK(x.element,"ytp-panel-animate-forward"));g.QC(V.element,V.size);V.L=new g.qK(function(){g.NK(V.element,"ytp-popup-animating");t.detach();g.pb(t.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);V.L.dispose();V.L=null},250,V); V.L.start()}; aBh=function(V){V.B&&g.fb(V.B);V.L&&g.fb(V.L)}; CM=function(V){g.Dt.call(this,V,"ytp-shopping-product-menu");this.wb=new g.HJ(this.U);g.y(this,this.wb);this.hide();g.es(this,this.wb);g.aE(this.U,this.element,4)}; W5z=function(V,t,x){var u,Z=t==null?void 0:(u=t.text)==null?void 0:u.simpleText;Z&&(x=T1w(V,x,Z,t==null?void 0:t.icon,t==null?void 0:t.secondaryIcon),t.navigationEndpoint&&x.listen("click",function(){V.U.Os("innertubeCommand",t.navigationEndpoint);V.hide()},V))}; oal=function(V,t,x){var u,Z=t==null?void 0:(u=t.text)==null?void 0:u.simpleText;Z&&T1w(V,x,Z,t==null?void 0:t.icon).listen("click",function(){var P;(t==null?void 0:(P=t.icon)==null?void 0:P.iconType)==="HIDE"?V.U.publish("featuredproductdismissed"):t.serviceEndpoint&&V.U.Os("innertubeCommand",t.serviceEndpoint);V.hide()},V)}; T1w=function(V,t,x,u,Z){t=new g.U5(g.Df({},[],!1,!!Z),t,x);Z&&t.updateValue("secondaryIcon",na0(Z));t.setIcon(na0(u));g.y(V,t);V.wb.Pk(t,!0);return t}; na0=function(V){if(!V)return null;switch(V.iconType){case "ACCOUNT_CIRCLE":return{Y:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Y:"path",j:{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{Y:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Y:"path",j:{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 Sn0();case "HIDE":return{Y:"svg",j:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Y:"g",D:[{Y:"path",j:{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 az()}}; Jw=function(V){js.call(this,V,!1,!0);this.isCounterfactual=this.S=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.C=!0;this.overflowButton=new g.e({Y:"button",vX:["ytp-featured-product-overflow-icon","ytp-button"],j:{"aria-haspopup":"true"}});this.overflowButton.hide();g.y(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.e({Y:"img",V:"ytp-suggested-action-badge-img",j:{src:"{{url}}"}}); this.thumbnailImage.hide();g.y(this,this.thumbnailImage);this.thumbnailIcon=new g.e({Y:"div",V:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.y(this,this.thumbnailIcon);this.banner=new g.e({Y:"a",V:"ytp-suggested-action-container",D:[this.thumbnailImage,this.thumbnailIcon,{Y:"div",V:"ytp-suggested-action-details",D:[{Y:"text",V:"ytp-suggested-action-title",mw:"{{title}}"},{Y:"text",V:"ytp-suggested-action-subtitle",mw:"{{subtitle}}"},{Y:"text",V:"ytp-suggested-action-metadata-text", mw:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.y(this,this.banner);this.banner.t6(this.N.element);this.Z(this.U,"videodatachange",this.onVideoDataChange);this.Z(this.U,g.km("suggested_action_view_model"),this.i9D);this.Z(this.U,g.i4("suggested_action_view_model"),this.m6s);this.Z(this.overflowButton.element,"click",this.aD);this.Z(V,"featuredproductdismissed",this.BJ);this.U.createServerVe(this.banner.element,this.banner,!0)}; cSC=function(V){V.isInitialized&&(V.enabled=V.isVisible,V.wk=V.isVisible,yZ(V),V.kt(),V.thumbnailImage.RC(V.isVisible),V.shouldHideDismissButton||V.dismissButton.RC(V.isVisible),V.shouldShowOverflowButton&&V.overflowButton.RC(V.isVisible))}; hw=function(){Jw.apply(this,arguments)}; ySq=function(V){Cv.call(this,V);this.J=new hw(this.api);g.y(this,this.J);g.aE(this.api,this.J.element,4)}; w$=function(V){Cv.call(this,V);var t=this;this.S="";this.N=!0;this.J=this.api.T("html5_enable_audio_track_stickiness_phase_two");var x=new g.j6(V);g.y(this,x);x.Z(V,"internalaudioformatchange",function(u,Z){j70(t,u,Z)}); x.Z(V,"videoplayerreset",function(){var u;(t.S||t.J&&((u=H8())==null?0:u.size))&&lBs(t)}); x.Z(V,"videodatachange",function(u,Z){t.onVideoDataChange(u,Z)})}; j70=function(V,t,x){if(x){var u="";HjT(V,t)&&(u=t,V.J||(V.S=t),V.api.T("html5_sabr_enable_server_xtag_selection")&&(x=V.api.getVideoData(void 0,!0)))&&(x.N4=t);V.J&&u&&Ud9(V,u)&&Ddh(V)!==u&&(emh([{settingItemId:Vk(V),settingOptionValue:{stringValue:t}}]),sg(V.tY(),function(Z){Z60(Z,Vk(V),{stringValue:u})}))}}; lBs=function(V){if(V.J){var t;(t=Ddh(V))&&Ud9(V,t)&&(V=V.api.getVideoData(void 0,!0))&&(V.N4=t)}else if(t=V.api.getVideoData(void 0,!0))t.N4=V.S}; ddh=function(V){N7(sg(sg(V.tY(),function(t){return xE4(t,[Vk(V)])}),function(t){if(t){t=g.G(t); for(var x=t.next();!x.done;x=t.next()){var u=x.value;x=u.key;u=u.value;x&&u&&emh([{settingItemId:x,settingOptionValue:u}])}}}),function(){V.N=!0})}; HjT=function(V,t){V=V.api.getAvailableAudioTracks();V=g.G(V);for(var x=V.next();!x.done;x=V.next())if(x=x.value,x.getLanguageInfo().getId()===t)return x;return null}; Ddh=function(V){V=Vk(V);var t=H8();V=t?t.get(V):void 0;return V&&V.stringValue?V.stringValue:""}; Vk=function(V){var t=(484).toString();V.api.K().kS&&(t=(483).toString());return t}; Ud9=function(V,t){var x;return t.split(".")[0]!==""&&((x=V.api.getVideoData())==null?void 0:!d3(x))}; emh=function(V){var t=H8();t||(t=new Map);V=g.G(V);for(var x=V.next();!x.done;x=V.next())x=x.value,t.set(x.settingItemId,x.settingOptionValue);t=JSON.stringify(Object.fromEntries(t));g.je("yt-player-user-settings",t,2592E3)}; g.tS=function(V,t,x,u,Z,P,K){g.U5.call(this,g.Df({"aria-haspopup":"true"}),t,V);this.W$=u;this.C=!1;this.N=null;this.options={};this.S=new g.HJ(x,void 0,V,Z,P,K);g.y(this,this.S);this.listen("keydown",this.Cg);this.listen("click",this.open)}; Caj=function(V){if(V.N){var t=V.options[V.N];t.element.getAttribute("aria-checked");t.element.setAttribute("aria-checked","false");V.N=null}}; JSs=function(V,t){g.tS.call(this,"Timer de suspens\u00e3o",g.fh.SLEEP_TIMER,V,t);this.U=V;this.X={};this.B=this.M2("Off");this.L=this.J="";V.T("web_settings_menu_icons")&&this.setIcon({Y:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Y:"path",j:{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.W=new g.e({Y:"div",vX:["ytp-menuitem-label-wrapper"],D:[{Y:"div",mw:"Fim do v\u00eddeo"},{Y:"div",vX:["ytp-menuitem-sublabel"],mw:"{{content}}"}]});g.y(this,this.W);this.listen("click",this.onClick);this.Z(V,"videodatachange",this.onVideoDataChange);this.Z(V,"presentingplayerstatechange",this.ZS);this.Z(V,"settingsMenuVisibilityChanged",this.xUC);V.createClientVe(this.element,this,218889);this.ZS();this.U.Os("onSleepTimerFeatureAvailable")}; hmh=function(V){var t="Off 10 15 20 30 45 60".split(" "),x;((x=V.U.getVideoData())==null?0:x.isLivePlayback)||t.push("End of video");x=V.U.getPlaylist();var u;x&&((u=x.listId)==null?void 0:u.type)!=="RD"&&t.push("End of playlist");V.i9(g.QV(t,V.M2));V.X=g.kz(t,V.M2,V);t=V.M2("End of video");V.options[t]&&g.HL(V.options[t],V.W)}; wW0=function(V,t){var x=V.X[t],u=x==="End of video"||x==="End of playlist";x==="Off"&&(V.J="");V.U.getPlayerState()!==0&&V.U.getPlayerState()!==5||!u?(V.B=t,g.tS.prototype.SZ.call(V,t),V.ze(t),V.U.Os("onSleepTimerSettingsChanged",x)):V.U.Os("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"O v\u00eddeo j\u00e1 terminou"}}}}})}; xa=function(V){Cv.call(this,V);var t=this;V.addEventListener("settingsMenuInitialized",function(){t.menuItem||(t.menuItem=new JSs(t.api,t.api.v2()),g.y(t,t.menuItem))}); V.addEventListener("openSettingsMenuItem",function(x){if(x==="menu_item_sleep_timer"){if(!t.menuItem){var u;(u=t.api.v2())==null||u.aC()}t.menuItem.open()}}); qD(V,"resetSleepTimerMenuSettings",function(){t.resetSleepTimerMenuSettings()}); qD(V,"setSleepTimerTimeLeft",function(x){t.setSleepTimerTimeLeft(x)}); qD(V,"setVideoTimeLeft",function(x){t.setVideoTimeLeft(x)})}; Vyj=function(V){Cv.call(this,V);var t=this;this.events=new g.j6(V);g.y(this,this.events);this.events.Z(V,"onSnackbarMessage",function(x){switch(x){case 1:x=t.api.getPlayerStateObject(),x.isBuffering()&&g.J(x,8)&&g.J(x,16)&&t.api.Os("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.ZB=function(V,t,x,u,Z){t=t===void 0?!1:t;u=u===void 0?!1:u;Z=Z===void 0?!1:Z;g.Np.call(this);this.X=Z;this.L=!1;this.W=new TF(this);this.G=this.B=null;this.N=this.S=!1;g.y(this,this.W);this.target=V;this.J=t;this.C=x||V;this.L=u;t&&(g.wZ&&this.target.setAttribute("draggable","true"),Z||(this.target.style.touchAction="none"));ua(this)}; PW=function(V){g.oV(V.W,!V.J)}; ua=function(V){V.G=null;V.B=null;V.Z(Kj("over"),V.uS);V.Z("touchstart",V.Ws);V.J&&V.Z(Kj("down"),V.tsy)}; tyC=function(V,t){for(var x=0;xZ.start&&x>=5;M+=Y}p=M.substr(0,4)+" "+M.substr(4,4)+" "+M.substr(8,4)+" "+(M.substr(12,4)+" "+M.substr(16, 4))}else p="";f={video_id_and_cpn:String(t.videoId)+" / "+p,codecs:"",dims_and_frames:"",bandwidth_kbps:f.toFixed(0)+" Kbps",buffer_health_seconds:E.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:k?"":"display:none",drm:k,debug_info:x,extra_debug_info:"",bandwidth_style:N,network_activity_style:N,network_activity_bytes:b.toFixed(0)+" KB",shader_info:O,shader_info_style:O?"":"display:none",playback_categories:""};b=u.clientWidth+"x"+u.clientHeight+(Z>1?"*"+Z.toFixed(2):"");E="-";K.totalVideoFrames&& (E=(K.droppedVideoFrames||0)+" dropped of "+K.totalVideoFrames);f.dims_and_frames=b+" / "+E;V=V.getVolume();K=tr9(t);var n;b=((n=t.W)==null?0:n.audio.J)?"DRC":Math.round(V*K)+"%";n=Math.round(V)+"% / "+b;V=t.a4.toFixed(1);isFinite(Number(V))&&(n+=" (content loudness "+V+"dB)");f.volume=n;f.resolution=u.videoWidth+"x"+u.videoHeight;if(u=t.S){if(n=u.video)V=n.fps,V>1&&(f.resolution+="@"+V),(V=P.me8)&&V.video&&(f.resolution+=" / "+V.video.width+"x"+V.video.height,V.video.fps>1&&(f.resolution+="@"+V.video.fps)), f.codecs=KNl(u),!t.W||u.audio&&u.video?u.WK&&(f.codecs+=" / "+u.WK+"A"):f.codecs+=" / "+KNl(t.W),n.S||n.primaries?(V=n.S||"unknown",V==="smpte2084"?V+=" (PQ)":V==="arib-std-b67"&&(V+=" (HLG)"),f.color=V+" / "+(n.primaries||"unknown"),f.color_style=""):f.color_style="display:none";if(u.debugInfo)for(f.fmt_debug_info="",u=g.G(u.debugInfo),n=u.next();!n.done;n=u.next())n=n.value,f.fmt_debug_info+=n.label+":"+n.text+" ";f.fmt_debug_info_style=f.fmt_debug_info&&f.fmt_debug_info.length>0?"":"display:none"}u= t.isLivePlayback;n=t.Gk;f.live_mode_style=u||n?"":"display:none";f.live_latency_style=u?"":"display:none";if(n)f.live_mode="Post-Live"+(k8(t)?" Manifestless":"");else if(u){n=pM(R,"livelatency");f.live_latency_secs=n.toFixed(2)+"s";u=k8(t)?"Manifestless, ":"";t.BX&&(u+="Windowed, ");V="Uncertain";if(n>=0&&n<120)if(t.latencyClass&&t.latencyClass!=="UNKNOWN")switch(t.latencyClass){case "NORMAL":V="Optimized for Normal Latency";break;case "LOW":V="Optimized for Low Latency";break;case "ULTRALOW":V="Optimized for Ultra Low Latency"; break;default:V="Unknown Latency Setting"}else V=t.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";u+=V;(n=P.LsX)&&(u+=", seq "+n.sequence);f.live_mode=u}!P.isGapless||ZD(t)&&P.gg||(f.playback_categories+="Gapless ");f.playback_categories_style=f.playback_categories?"":"display:none";f.bandwidth_samples=NL(R,"bandwidth");f.network_activity_samples=NL(R,"networkactivity");f.live_latency_samples=NL(R,"livelatency");f.buffer_health_samples=NL(R,"bufferhealth");P=g.hM(t); if(t.cotn||P)f.cotn_and_local_media=(t.cotn?t.cotn:"null")+" / "+P;f.cotn_and_local_media_style=f.cotn_and_local_media?"":"display:none";b1(t,"web_player_release_debug")?(f.release_name="youtube.player.web_20250126_00_RC00",f.release_style=""):f.release_style="display:none";f.debug_info&&I.length>0&&f.debug_info.length+I.length<=60?f.debug_info+=" "+I:f.extra_debug_info=I;f.extra_debug_info_style=f.extra_debug_info&&f.extra_debug_info.length>0?"":"display:none";return f}; KNl=function(V){var t=/codecs="([^"]*)"/.exec(V.mimeType);return t&&t[1]?t[1]+" ("+V.itag+")":V.itag}; ka=function(V,t,x,u,Z){g.e.call(this,{Y:"div",V:"ytp-horizonchart"});this.L=t;this.sampleCount=x;this.W=u;this.B=Z;this.index=0;this.heightPx=-1;this.N=this.S=null;this.J=Math.round(V/x);this.element.style.width=this.J*this.sampleCount+"px";this.element.style.height=this.L+"em"}; ia=function(V,t){if(V.heightPx===-1){var x=null;try{x=g.uc("CANVAS"),V.S=x.getContext("2d")}catch(R){}if(V.S){var u=V.J*V.sampleCount;V.N=x;V.N.width=u;V.N.style.width=u+"px";V.element.appendChild(V.N)}else for(V.sampleCount=Math.floor(V.sampleCount/4),V.J*=4,x=0;x1?2:1,V.N.height=V.heightPx*x,V.N.style.height= V.heightPx+"px",V.S.scale(1,x)));t=g.G(t);for(u=t.next();!u.done;u=t.next()){x=V;var Z=V.index,P=u.value;for(u=0;u+20&&g.KQ(t.N.element);u.classList.add("ytp-timely-actions-overlay");t.N.element.appendChild(u)}); g.y(this,this.N);g.aE(this.api,this.N.element,4)}; GMl=function(V){V.timelyActions&&(V.W=V.timelyActions.reduce(function(t,x){if(x.cueRangeId===void 0)return t;t[x.cueRangeId]=0;return t},{}))}; pj=function(V,t){if(V.timelyActions){V=g.G(V.timelyActions);for(var x=V.next();!x.done;x=V.next())if(x=x.value,x.cueRangeId===t)return x}}; IU4=function(V,t){if((V=pj(V,t))&&V.onCueRangeExit)return ev(V.onCueRangeExit)}; vls=function(V){if(V.J!==void 0){var t=(t=pj(V,V.J))&&t.onCueRangeEnter?ev(t.onCueRangeEnter):void 0;var x=pj(V,V.J);if(x&&x.additionalTrigger){var u=!1;for(var Z=g.G(x.additionalTrigger),P=Z.next();!P.done;P=Z.next())P=P.value,P.type&&P.args&&V.B[P.type]!==void 0&&(u=u||V.B[P.type](P.args))}else u=!0;t&&u&&(V.api.Os("innertubeCommand",t),V.setTimeout(x),V.W[V.J]!==void 0&&V.W[V.J]++)}}; pBL=function(V,t){return V.S===void 0?!1:t.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(t.seekLengthMilliseconds)===5E3?V.S===72:t.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(t.seekLengthMilliseconds)===1E4?V.S===74:t.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(t.seekLengthMilliseconds)===5E3?V.S===71:t.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(t.seekLengthMilliseconds)===1E4?V.S===73:!1}; Afh=function(V){if(V=V.getWatchNextResponse()){var t,x;V=(t=V.playerOverlays)==null?void 0:(x=t.playerOverlayRenderer)==null?void 0:x.timelyActionsOverlayViewModel;t=g.l(V,LN9);if(t!=null&&t.timelyActions)return t==null?void 0:t.timelyActions.map(function(u){return g.l(u,FNL)}).filter(function(u){return!!u})}}; MyL=function(V){Cv.call(this,V);var t=this;RE(this.api,"getPlaybackRate",function(){return t.api.getPlaybackRate()}); RE(this.api,"setPlaybackRate",function(x){typeof x==="number"&&t.api.setPlaybackRate(x)})}; glq=function(V){V=V.dL();if(!V)return!1;V=g.i$(V).exp||"";return V.includes("xpv")||V.includes("xpe")}; XB4=function(V){V=g.G(g.AS(V,!0));for(var t=V.next();!t.done;t=V.next())if(glq(t.value))return!0;return!1}; zq4=function(V,t){V=g.G(g.AS(V,!0));for(var x=V.next();!x.done;x=V.next())if(x=x.value,glq(x)){var u={potc:"1",pot:t};x.url&&(x.url=OQ(x.url,u))}}; BBl=function(V){var t=new ZXq,x={},u=(x["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",x);return new YS(t,V,function(){return u})}; Gx=function(V){Cv.call(this,V);var t=this;this.useLivingRoomPoToken=!1;this.W=new g.v$;this.Uh=null;this.L=!1;this.N=null;this.G=!1;var x=V.K().getWebPlayerContextConfig();this.events=new g.j6(V);g.y(this,this.events);this.events.Z(V,"spsumpreject",function(u,Z,P){t.G=Z;u&&t.L&&!t.N&&(t.T("html5_generate_content_po_token")&&P?t.FH(P):t.T("html5_generate_session_po_token")&&mS1(t));t.N||t.api.J6("stp",{s:+t.L,b:+t.G})}); this.events.Z(V,"poTokenVideoBindingChange",function(u){t.FH(u)}); this.useLivingRoomPoToken=!(x==null||!x.useLivingRoomPoToken);V.addEventListener("csiinitialized",function(){t.Uh=V.d1();var u=(t.T("html5_generate_session_po_token")||t.T("html5_generate_content_po_token"))&&!t.useLivingRoomPoToken;try{if(t.T("html5_use_shared_owl_instance"))Yd4(t);else if(u){t.Uh.FJ("pot_isc");t.T("html5_new_wpo_client")||QSL(t);var Z=g.S7(t.api.K().experiments,"html5_webpo_kaios_defer_timeout_ms");Z?(t.T("html5_new_wpo_client")&&(t.S=Jn()),g.FV(function(){SC(t)},Z)):t.T("html5_webpo_idle_priority_job")? (t.T("html5_new_wpo_client")&&(t.S=Jn()),g.q3(g.fq(),function(){SC(t)})):SC(t)}}catch(P){P instanceof Error&&g.lf(P)}}); V.addEventListener("trackListLoaded",this.Ge.bind(this));V.iW(this)}; aU8=function(V){var t=Vw(V.experiments,"html5_web_po_request_key");return t?t:g.ap(V)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; TBL=function(V,t){var x=new xw(t);return Object.assign({},rfL(V,x),{uD:function(){return x.uD()}, dispose:function(){return void x.dispose()}})}; I7=function(V,t){if(V.T("html5_webpo_bge_ctmp")){var x,u={hwpo:!!V.J,hwpor:!((x=V.J)==null||!x.isReady())};V.api.J6(t,u)}}; Yd4=function(V){var t,x;g.Q(function(u){if(u.J==1)return I7(V,"swpo_i"),V.S=Jn(),vW(V),g.m(u,W2(),2);if(u.J!=3)return t=u.S,I7(V,"swpo_co"),g.m(u,V30(t),3);x=u.S;V.J=rfL(V,x);I7(V,"swpo_cc");V.J.ready().then(function(){V.W.resolve();I7(V,"swpo_re")}); g.FV(function(){SC(V);I7(V,"swpo_si")},0); g.pl(u)})}; QSL=function(V){var t=V.api.K(),x=aU8(t),u=BBl(x);t=new PR({zR:x,FO:u,onEvent:function(Z){(Z=WNj[Z])&&V.Uh.FJ(Z)}, onError:g.lf,PN:OOl(t.experiments),hc:function(){return void V.api.J6("itr",{})}, l81:t.experiments.MP("html5_web_po_disable_remote_logging")});t.ready().then(function(){return void V.W.resolve()}); g.y(V,t);V.J=t}; ol4=function(V){var t=V.api.K(),x=BBl(aU8(t)),u=x.hg.bind(x);x.hg=function(R){var f;return g.Q(function(b){if(b.J==1)return g.m(b,u(R),2);f=b.S;V.api.J6("itr",{});return b.return(f)})}; try{var Z=new Qv({FO:x,Jp:{maxAttempts:5},lH:{disable:t.experiments.MP("html5_web_po_disable_remote_logging"),yR:OOl(t.experiments),clC:V.T("wpo_dis_lfdms")?0:1E3},N9j:g.lf});var P=TBL(V,{kU:Z,FO:x,onError:g.lf});P.ready().then(function(){return void V.W.resolve()}); g.y(V,Z);g.y(V,P);V.J=P}catch(R){g.lf(R);var K;(K=Z)==null||K.dispose()}}; SC=function(V){var t=V.api.K();V.Uh.FJ("pot_ist");V.J?V.J.start():V.T("html5_new_wpo_client")&&ol4(V);V.T("html5_bandaid_attach_content_po_token")||(V.T("html5_generate_session_po_token")&&(vW(V),mS1(V)),t=g.S7(t.experiments,"html5_session_po_token_interval_time_ms")||0,t>0&&(V.B=g.Mc(function(){vW(V)},t)),V.L=!0)}; vW=function(V){var t,x,u,Z;g.Q(function(P){if(!V.T("html5_generate_session_po_token")||V.useLivingRoomPoToken)return P.return();t=V.api.K();x=g.Zc("EOM_VISITOR_DATA")||g.Zc("VISITOR_DATA");u=t.kS?t.datasyncId:x;Z=Vw(t.experiments,"html5_mock_content_binding_for_session_token")||t.livingRoomPoTokenId||u;t.w1=Lj(V,Z);g.pl(P)})}; Lj=function(V,t){if(!V.J)return V.S?V.S(t):"";try{var x=V.J.isReady();V.Uh.FJ(x?"pot_cms":"pot_csms");var u="";u=V.T("html5_web_po_token_disable_caching")?V.J.iA({jM:t}):V.J.iA({jM:t,O8:{IV:t,eyC:150,Ix:!0,Ik:!0}});V.Uh.FJ(x?"pot_cmf":"pot_csmf");if(x){var Z;(Z=V.N)==null||Z.resolve();V.N=null;if(V.G){V.G=!1;var P;(P=V.api.app.rk())==null||P.H6(!1)}}return u}catch(K){return g.lf(K),""}}; mS1=function(V){V.J&&(V.N=new xJ,V.J.ready().then(function(){V.Uh.FJ("pot_if");vW(V)}))}; rfL=function(V,t){V.T("html5_web_po_token_disable_caching")||t.d7(150);var x=!1;t.m7().finally(function(){x=!0}); return{isReady:function(){return x}, iA:function(u){return t.iA({jM:u.jM,a8:!0,Cz:!0,O8:u.O8?{IV:u.O8.IV,Ix:u.O8.Ix,Ik:u.O8.Ik}:void 0})}, ready:function(){return g.Q(function(u){if(u.J==1)return g.AT(u,2),g.m(u,t.m7(),4);if(u.J!=2)return g.GK(u,0);g.I9(u);g.pl(u)})}, start:function(){}}}; nlz=function(V){Cv.call(this,V);var t=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.j6(V);g.y(this,this.events);this.events.Z(V,"heartbeatRequest",function(x){if(t.freePreviewUsageDetails.length||t.freePreviewWatchedDuration!==null)x.heartbeatRequestParams||(x.heartbeatRequestParams={}),x.heartbeatRequestParams.unpluggedParams||(x.heartbeatRequestParams.unpluggedParams={}),t.freePreviewUsageDetails.length>0?x.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= t.freePreviewUsageDetails:x.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+t.freePreviewWatchedDuration}}); qD(V,"setFreePreviewWatchedDuration",function(x){t.freePreviewWatchedDuration=x}); qD(V,"setFreePreviewUsageDetails",function(x){t.freePreviewUsageDetails=x})}; FK=function(V){g.c.call(this);this.features=[];var t=this.J,x=new FT(V),u=new Jh(V),Z=new r$(V),P=new Gx(V);var K=g.YH(V.K())?void 0:new N4(V);var R=new aD(V),f=new $S9(V),b=new MyL(V),E=new Lh(V);var k=g.YH(V.K())?new nlz(V):void 0;var O=V.T("html5_enable_ssap")?new P9j(V):void 0;var N=V.T("web_cinematic_watch_settings")&&(N=V.K().getWebPlayerContextConfig())!=null&&N.cinematicSettingsAvailable?new Ee(V):void 0;var p=new v3(V);var I=V.T("enable_courses_player_overlay_purchase")?new b71(V):void 0; var L=g.J2(V.K())?new qg4(V):void 0;var M=new ph(V);var z=V.K().W?new t_q(V):void 0;var Y=g.zo(V.K())?new V_C(V):void 0;var r=V.T("web_player_move_autonav_toggle")&&V.K().U1?new Db0(V):void 0;var n=g.J2(V.K())?new K5j(V):void 0;var U=V.T("web_enable_speedmaster")&&g.J2(V.K())?new fj(V):void 0;var d=V.K().gi?void 0:new NBq(V);var uL=V.T("report_pml_debug_signal")?new j51(V):void 0;var q1=new ASL(V),w=new nM(V);var H=V.T("enable_web_player_player_in_bar_feature")&&g.Dp(V.K())?new zms(V):void 0;var C= V.K().playerStyle==="flix"?new kv8(V):void 0;var S=navigator.mediaSession&&window.MediaMetadata&&V.K().ke?new YK(V):void 0;var D=V.T("html5_enable_drc")&&!V.K().B?new se(V):void 0;var ws=new wr(V),Ic;a:{var t_=V.K();if(t_.B&&(t_=(Ic=t_.getWebPlayerContextConfig())==null?void 0:Ic.houseBrandEnvironment,t_==="apps-elements"||t_==="apps-elements-flix")){Ic=new E0q(V);break a}Ic=void 0}t_=g.J2(V.K())?new ySq(V):void 0;var gs=V.T("html5_enable_d6de4")?new T7(V):void 0;var Cl=g.J2(V.K())&&V.T("web_sleep_timer")? new xa(V):void 0;var uz=g.zo(V.K())?new uIq(V):void 0;var Nt=new w$(V),F=new kZ(V),X=new PaL(V);var B=V.K().B?new NnT(V):void 0;var a=V.T("enable_sabr_snackbar_message")?new Vyj(V):void 0;var W=V.T("web_enable_timely_actions")?new Sds(V):void 0;t.call(this,x,u,Z,P,K,R,f,b,E,k,O,N,p,I,L,M,z,Y,r,n,U,d,uL,q1,w,H,C,S,D,ws,Ic,t_,gs,Cl,uz,void 0,Nt,F,X,B,a,W,new iB(V))}; Md=function(){this.S=this.J=NaN}; cf9=function(V,t){this.Rj=V;this.timerName="";this.N=!1;this.S=NaN;this.W=new Md;this.J=t||null;this.N=!1}; yfl=function(V,t,x){var u=g.re(t.Yw)&&!t.Yw.B;if(t.Yw.RO&&(m8(t.Yw)||t.Yw.BX==="shortspage"||xX(t.Yw)||u)&&!V.N){V.N=!0;V.B=t.clientPlaybackNonce;g.Zc("TIMING_ACTION")||u$("TIMING_ACTION",V.Rj.csiPageType);V.Rj.csiServiceName&&u$("CSI_SERVICE_NAME",V.Rj.csiServiceName);if(V.J){u=V.J.d1();for(var Z=g.G(Object.keys(u)),P=Z.next();!P.done;P=Z.next())P=P.value,dq(P,u[P],V.timerName);u=g.RW(TDz)(V.J.Ok);g.C4(u,V.timerName);u=V.J;u.S={};u.Ok={}}g.C4({playerInfo:{visibilityState:g.RW(r7q)()},playerType:"LATENCY_PLAYER_HTML5"}, V.timerName);V.G!==t.clientPlaybackNonce||Number.isNaN(V.S)||(h4("_start",V.timerName)?x=g.RW(lY)("_start",V.timerName)+V.S:g.lf(new g.xe("attempted to log gapless pbs before CSI timeline started",{cpn:t.clientPlaybackNonce})));x&&!h4("pbs",V.timerName)&&V.tick("pbs",x)}}; jSw=function(V,t,x,u,Z,P,K){V=(V===x?"video":"ad")+"_to_"+(t===x?"video":"ad");if(V!=="video_to_ad"||P!=null&&P.zU){P=V==="ad_to_video"?P:u;x=P==null?void 0:P.qN;var R={};if(u==null?0:u.B)R.cttAuthInfo={token:u.B,videoId:u.videoId};Z&&(R.startTime=Z);J4(V,R);var f,b,E;u={targetVideoId:(f=u==null?void 0:u.videoId)!=null?f:"empty_video",targetCpn:t,adVideoId:(b=P==null?void 0:P.videoId)!=null?b:"empty_video",adClientPlaybackNonce:(E=x==null?void 0:x.cpn)!=null?E:P==null?void 0:P.clientPlaybackNonce}; x&&(u.adBreakType=x.adBreakType,u.adType=x.adType);g.C4(u,V);dq("pbs",K!=null?K:(0,g.Tu)(),V)}}; g1=function(V){DRw();URw();V.timerName=""}; lUs=function(V){if(V.J){var t=V.J;t.S={};t.Ok={}}V.N=!1;V.G=void 0;V.S=NaN}; HYL=function(V,t){g.Np.call(this);this.Yw=V;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.J=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.X={};this.S=0;if(V=t.session_data)this.sessionData=$c(V,"&");this.index=Math.max(0,Number(t.index)||0);this.loop=!!t.loop;this.startSeconds=Number(t.startSeconds)||0;this.title=t.playlist_title||"";this.description=t.playlist_description||"";this.author= t.author||t.playlist_author||"";t.video_id&&(this.items[this.index]=t);if(V=t.api)typeof V==="string"&&V.length===16?t.list="PL"+V:t.playlist=V;if(V=t.list)switch(t.listType){case "user_uploads":this.listId=new Ig("UU","PLAYER_"+V);break;default:var x=t.playlist_length;x&&(this.length=Number(x)||0);this.listId=g.vi(V);if(V=t.video)this.items=V.slice(0),this.loaded=!0}else if(t.playlist){V=t.playlist.toString().split(",");this.index>0&&(this.items=[]);V=g.G(V);for(x=V.next();!x.done;x=V.next())(x= x.value)&&this.items.push({video_id:x});this.length=this.items.length;if(V=t.video)this.items=V.slice(0),this.loaded=!0}this.setShuffle(!!t.shuffle);if(V=t.suggestedQuality)this.quality=V;this.X=pi(t,"playlist_");this.N=(t=t.thumbnail_ids)?t.split(","):[]}; USq=function(V){return!!(V.playlist||V.list||V.api)}; DS1=function(V){var t=V.index+1;return t>=V.length?0:t}; eqz=function(V){var t=V.index-1;return t<0?V.length-1:t}; g.XK=function(V,t,x,u){t=t!==void 0?t:V.index;t=V.items&&t in V.items?V.items[V.order[t]]:null;var Z=null;t&&(x&&(t.autoplay="1"),u&&(t.autonav="1"),Z=new g.Hi(V.Yw,t),g.y(V,Z),Z.RA=!0,Z.startSeconds=V.startSeconds||Z.clipStart||0,V.listId&&(Z.playlistId=V.listId.toString()));return Z}; dSl=function(V,t){V.index=g.EY(t,0,V.length-1);V.startSeconds=0}; C9L=function(V,t){if(t.video&&t.video.length){V.title=t.title||"";V.description=t.description;V.views=t.views;V.likes=t.likes;V.dislikes=t.dislikes;V.author=t.author||"";var x=t.loop;x&&(V.loop=x);x=g.XK(V);V.items=[];for(var u=g.G(t.video),Z=u.next();!Z.done;Z=u.next())if(Z=Z.value)Z.video_id=Z.encrypted_id,V.items.push(Z);V.length=V.items.length;(t=t.index)?V.index=t:V.findIndex(x);V.setShuffle(!1);V.loaded=!0;V.S++;V.J&&V.J()}}; wBL=function(V,t){var x,u,Z,P,K,R,f;return g.Q(function(b){if(b.J==1){x=g.iM();var E=V.K(),k={context:g.PL(V),playbackContext:{contentPlaybackContext:{ancestorOrigins:E.ancestorOrigins}}},O=E.getWebPlayerContextConfig();if(O==null?0:O.encryptedHostFlags)k.playbackContext.contentPlaybackContext.encryptedHostFlags=O.encryptedHostFlags;if(O==null?0:O.hideInfo)k.playerParams={showinfo:!1};E=E.embedConfig;O=t.docid||t.video_id||t.videoId||t.id;if(!O){O=t.raw_embedded_player_response;if(!O){var N=t.embedded_player_response; N&&(O=JSON.parse(N))}if(O){var p,I,L,M,z,Y;O=((Y=g.l((p=O)==null?void 0:(I=p.embedPreview)==null?void 0:(L=I.thumbnailPreviewRenderer)==null?void 0:(M=L.playButton)==null?void 0:(z=M.buttonRenderer)==null?void 0:z.navigationEndpoint,g.w8))==null?void 0:Y.videoId)||null}else O=null}p=(p=O)?p:void 0;I=V.playlistId?V.playlistId:t.list;L=t.listType;if(I){var r;L==="user_uploads"?r={username:I}:r={playlistId:I};JfK(E,p,t,r);k.playlistRequest=r}else t.playlist?(r={templistVideoIds:t.playlist.toString().split(",")}, JfK(E,p,t,r),k.playlistRequest=r):p&&(r={videoId:p},E&&(r.serializedThirdPartyEmbedConfig=E),k.singleVideoRequest=r);u=k;Z=g.St(hqq);g.AT(b,2);return g.m(b,g.uM(x,u,Z),4)}if(b.J!=2)return P=b.S,K=V.K(),t.raw_embedded_player_response=P,K.Us=py(t,g.zo(K)),K.N=K.Us==="EMBEDDED_PLAYER_MODE_PFL",P&&(R=P,R.trackingParams&&B8(R.trackingParams)),b.return(new g.Hi(K,t));f=g.I9(b);f instanceof Error||(f=Error("b259802748"));g.jv(f);return b.return(V)})}; JfK=function(V,t,x,u){x.index&&(u.playlistIndex=String(Number(x.index)+1));u.videoId=t?t:"";V&&(u.serializedThirdPartyEmbedConfig=V)}; g.BW=function(V,t){zx.get(V);zx.set(V,t)}; g.m5=function(V){g.Np.call(this);this.loaded=!1;this.player=V}; Vq8=function(){this.S=[];this.J=[]}; g.AS=function(V,t){return t?V.J.concat(V.S):V.J}; g.Ya=function(V,t){switch(t.kind){case "asr":tql(t,V.S);break;default:tql(t,V.J)}}; tql=function(V,t){g.ei(t,function(x){return V.t9(x)})||t.push(V)}; g.Qk=function(V){g.c.call(this);this.A6=V;this.S=new Vq8;this.W=null;this.G=[];this.C=[]}; g.a7=function(V,t,x){g.Qk.call(this,V);this.videoData=t;this.audioTrack=x;this.J=null;this.N=!1;this.G=t.C8;this.C=t.TT;this.N=g.ya(t)}; g.r1=function(V,t){return Pq(V.info)?t?V.info.itag===t:!0:!1}; g.xJK=function(V,t){if(V.J!=null&&g.YH(t.K())&&!V.J.isManifestless&&V.J.J.rawcc!=null)return!0;if(!V.uq())return!1;t=!!V.J&&V.J.isManifestless&&Object.values(V.J.J).some(function(x){return g.r1(x,"386")}); V=!!V.J&&!V.J.isManifestless&&g.FA4(V.J);return t||V}; g.Tx=function(V,t,x,u,Z,P){g.Qk.call(this,V);this.videoId=x;this.G0=Z;this.eventId=P;this.B={};this.J=null;V=u||g.i$(t).hl||"";V=V.split("_").join("-");this.N=OQ(t,{hl:V})}; uZK=function(V,t){this.S=V;this.J=t;this.onFailure=void 0}; ZWh=function(V,t){return{SI:V.SI&&t.SI,m2:V.m2&&t.m2,sync:V.sync&&t.sync,streaming:V.streaming&&t.streaming}}; o7=function(V,t){var x=PH0,u=this;this.path=V;this.N=t;this.W=x;this.capabilities={SI:!!this.N,m2:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.G=new uZK([{name:"compileStreaming",condition:function(Z){return!!u.S&&Z.streaming}, uZ:WW.vW("wmcx",function(){return WebAssembly.compileStreaming(fetch(u.path))}), onFailure:function(){return u.capabilities.streaming=!1}}, {name:"sync",condition:function(Z){return Z.sync}, uZ:function(){return sg(KGl(u),WW.vW("wmcs",function(Z){return new WebAssembly.Module(Z)}))}, onFailure:function(){return u.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, uZ:function(){return sg(KGl(u),WW.vW("wmca",function(Z){return WebAssembly.compile(Z)}))}, onFailure:function(){return u.capabilities.m2=!1}}]); this.B=new uZK([{name:"instantiateStreaming",condition:function(Z){return Z.m2&&Z.streaming&&!u.S&&!u.J}, uZ:function(Z,P){return WW.oH("wmix",function(){return WebAssembly.instantiateStreaming(fetch(u.path),P)}).then(function(K){u.J=Eg(K.module); return{instance:K.instance,Uv:!1}})}, onFailure:function(){return u.capabilities.streaming=!1}}, {name:"sync",condition:function(Z){return Z.m2&&Z.sync}, uZ:function(Z,P){return sg(q1j(u,Z),WW.vW("wmis",function(K){return{instance:new WebAssembly.Instance(K,P),Uv:!1}}))}, onFailure:function(){return u.capabilities.sync=!1}}, {name:"async",condition:function(Z){return Z.m2}, uZ:function(Z,P){return sg(sg(q1j(u,Z),WW.vW("wmia",function(K){return WebAssembly.instantiate(K,P)})),function(K){return{instance:K, Uv:!1}})}, onFailure:function(){return u.capabilities.m2=!1}}, {name:"asmjs",condition:function(Z){return Z.SI}, uZ:function(Z,P){return Eg(WW.oH("wmij",function(){return u.N(P)}).then(function(K){return{instance:{exports:K}, Uv:!0}}))}, onFailure:function(){return u.capabilities.SI=!1}}],function(Z,P,K){return u.W(K,Z.instance.exports)})}; $JT=function(V){var t=R01;return t.instantiate(V?ZWh(t.capabilities,V):t.capabilities,new f6q)}; KGl=function(V){if(V.S)return V.S;var t=fetch(V.path).then(function(x){return x.arrayBuffer()}).then(function(x){V.S=Eg(x); return x}).then(void 0,function(x){g.lf(Error("wasm module fetch failure: "+x.message,{cause:x})); V.S=void 0;throw x;}); V.S=Eg(t);return V.S}; q1j=function(V,t){if(!t.m2)return k0(Error("wasm unavailable"));if(V.J)return V.J;V.J=N7(sg(V.compile(t),function(x){V.J=Eg(x);return x}),function(x){g.lf(Error("wasm module compile failure: "+x.message,{cause:x})); V.J=void 0;throw x;}); return V.J}; bWw=function(){}; Et0=function(){var V=this;this.proc_exit=function(){}; this.fd_write=function(t,x,u){if(!V.exports)return 1;t=new Uint32Array(V.exports.memory.buffer,x,u*2);x=[];for(var Z=0;Z=11;V=V.api.K().C&&d1;return!(!t&&!V)}; KY=function(V,t){return!V.api.isInline()&&!CHq(V,aV(t))&&g.aT(t)}; dJj=function(V){V.aN.JM();if(V.w0&&V.PB)V.PB=!1;else if(!V.api.K().L1&&!V.dZ()){var t=V.api.getPlayerStateObject();g.J(t,2)&&g.gr(V.api)||V.ai(t);!V.api.K().P$||t.isCued()||g.J(t,1024)?V.HY():V.J1.isActive()?(V.xs(),V.J1.stop()):V.J1.start()}}; h0w=function(V,t){var x;if((x=V.api.getVideoData())==null?0:x.mutedAutoplay){var u,Z;if((u=t.target)==null?0:(Z=u.className)==null?0:Z.includes("ytp-info-panel"))return!1}return g.aT(t)&&V.api.isMutedByMutedAutoplay()?(V.api.unMute(),V.api.getPresentingPlayerType()===2&&V.api.playVideo(),t=V.api.getPlayerStateObject(),!g.J(t,4)||g.J(t,8)||g.J(t,2)||V.HY(),!0):!1}; wIz=function(V,t,x){V.api.isFullscreen()?x<1-t&&V.api.toggleFullscreen():x>1+t&&V.api.toggleFullscreen()}; e09=function(V){var t=w5()&&J6()>=67&&!V.api.K().C;V=V.api.K().disableOrganicUi;return!g.h6("tizen")&&!xO&&!t&&!V}; qS=function(V,t){t=t===void 0?2:t;g.Np.call(this);this.api=V;this.J=null;this.I5=new TF(this);g.y(this,this.I5);this.S=u3L;this.I5.Z(this.api,"presentingplayerstatechange",this.pg);this.J=this.I5.Z(this.api,"progresssync",this.AJ);this.UM=t;this.UM===1&&this.AJ()}; g.RS=function(V){g.e.call(this,{Y:"div",D:[{Y:"div",V:"ytp-bezel-text-wrapper",D:[{Y:"div",V:"ytp-bezel-text",mw:"{{title}}"}]},{Y:"div",V:"ytp-bezel",j:{role:"status","aria-label":"{{label}}"},D:[{Y:"div",V:"ytp-bezel-icon",mw:"{{icon}}"}]}]});this.U=V;this.S=new g.qK(this.show,10,this);this.J=new g.qK(this.hide,500,this);g.y(this,this.S);g.y(this,this.J);this.hide()}; $l=function(V,t,x){if(t<=0){x=nD();t="som desativado";var u=0}else x=x?{Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"path",m_:!0,j:{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"}}]}:{Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"path",m_:!0,j:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},u=Math.floor(t),t=u+"volume";fY(V,x,t,u+"%")}; VXC=function(V,t){t=t?{Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{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"}}]}:Av0();var x=V.U.getPlaybackRate(),u=g.Lm("A velocidade do v\u00eddeo \u00e9 $RATE",{RATE:String(x)});fY(V,t,u,x+"x")}; tXj=function(V,t){t=t?"Legendas/legendas ocultas ativadas":"Legendas/legendas ocultas desativadas";fY(V,CJT(),t)}; fY=function(V,t,x,u){u=u===void 0?"":u;V.updateValue("label",x===void 0?"":x);V.updateValue("icon",t);g.$y(V.J);V.S.start();V.updateValue("title",u);g.Am(V.element,"ytp-bezel-text-hide",!u)}; xW1=function(V,t){g.e.call(this,{Y:"button",vX:["ytp-button","ytp-cards-button"],j:{"aria-label":"Exibir cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.zo(V.K()))},D:[{Y:"span",V:"ytp-cards-button-icon-default",D:[{Y:"div",V:"ytp-cards-button-icon",D:[V.K().T("player_new_info_card_format")?IwL():{Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{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"}}]}]}, {Y:"div",V:"ytp-cards-button-title",mw:"Informa\u00e7\u00f5es"}]},{Y:"span",V:"ytp-cards-button-icon-shopping",D:[{Y:"div",V:"ytp-cards-button-icon",D:[{Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"path",V:"ytp-svg-shadow",j:{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"}},{Y:"path",V:"ytp-svg-fill",j:{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"}},{Y:"path",V:"ytp-svg-shadow-fill",j:{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"}}]}]},{Y:"div", V:"ytp-cards-button-title",mw:"Compras"}]}]});this.U=V;this.N=t;this.J=null;this.S=new g.$9(this,250,!0,100);g.y(this,this.S);g.Am(this.N,"ytp-show-cards-title",g.zo(V.K()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.F_8);this.d_(!0)}; ush=function(V,t){g.e.call(this,{Y:"div",V:"ytp-cards-teaser",D:[{Y:"div",V:"ytp-cards-teaser-box"},{Y:"div",V:"ytp-cards-teaser-text",D:V.K().T("player_new_info_card_format")?[{Y:"button",V:"ytp-cards-teaser-info-icon",j:{"aria-label":"Exibir cards","aria-haspopup":"true"},D:[IwL()]},{Y:"span",V:"ytp-cards-teaser-label",mw:"{{text}}"},{Y:"button",V:"ytp-cards-teaser-close-button",j:{"aria-label":"Fechar"},D:[g.BS()]}]:[{Y:"span",V:"ytp-cards-teaser-label",mw:"{{text}}"}]}]});var x=this;this.U=V; this.W0=t;this.W=new g.$9(this,250,!1,250);this.J=null;this.C=new g.qK(this.VBC,300,this);this.L=new g.qK(this.AJ6,2E3,this);this.B=[];this.S=null;this.X=new g.qK(function(){x.element.style.margin="0"},250); this.onClickCommand=this.N=null;g.y(this,this.W);g.y(this,this.C);g.y(this,this.L);g.y(this,this.X);V.K().T("player_new_info_card_format")?(g.OU(V.getRootNode(),"ytp-cards-teaser-dismissible"),this.Z(this.f1("ytp-cards-teaser-close-button"),"click",this.Hl),this.Z(this.f1("ytp-cards-teaser-info-icon"),"click",this.oE),this.Z(this.f1("ytp-cards-teaser-label"),"click",this.oE)):this.listen("click",this.oE);this.Z(t.element,"mouseover",this.r3);this.Z(t.element,"mouseout",this.Dd);this.Z(V,"cardsteasershow", this.pwj);this.Z(V,"cardsteaserhide",this.Gc);this.Z(V,"cardstatechange",this.QK);this.Z(V,"presentingplayerstatechange",this.QK);this.Z(V,"appresize",this.zz);this.Z(V,"onShowControls",this.zz);this.Z(V,"onHideControls",this.Ay);this.listen("mouseenter",this.O6)}; Zz1=function(V){g.e.call(this,{Y:"button",vX:[b9.BUTTON,b9.TITLE_NOTIFICATIONS],j:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},D:[{Y:"div",V:b9.TITLE_NOTIFICATIONS_ON,j:{title:"Deixar de receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"},D:[g.Q3()]},{Y:"div",V:b9.TITLE_NOTIFICATIONS_OFF,j:{title:"Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"}, D:[{Y:"svg",j:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},D:[{Y:"path",j:{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=V;this.J=!1;V.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")}; PTL=function(V,t){V.J=t;V.element.classList.toggle(b9.NOTIFICATIONS_ENABLED,V.J);var x=V.api.getVideoData();x?(t=t?x.PR:x.AI)?(V=V.api.tY())?xu(V,t):g.jv(Error("No innertube service available when updating notification preferences.")):g.jv(Error("No update preferences command available.")):g.jv(Error("No video data when updating notification preferences."))}; qaj=function(V,t,x){var u=u===void 0?800:u;var Z=Z===void 0?600:Z;V=KtL(V,t);if(V=g.yM(window,V,"loginPopup","width="+u+",height="+Z+",resizable=yes,scrollbars=yes"))pcs(function(){x()}),V.moveTo((screen.width-u)/2,(screen.height-Z)/2)}; KtL=function(V,t){var x=document.location.protocol;return LSz(x+"//"+V+"/signin?context=popup","feature",t,"next",x+"//"+location.hostname+"/post_login")}; g.Ed=function(V,t,x,u,Z,P,K,R,f,b,E,k){V=V.charAt(0)+V.substring(1).toLowerCase();x=x.charAt(0)+x.substring(1).toLowerCase();if(t==="0"||t==="-1")t=null;if(u==="0"||u==="-1")u=null;var O=E.K(),N=O.userDisplayName&&g.re(O);g.e.call(this,{Y:"div",vX:["ytp-button","ytp-sb"],D:[{Y:"div",V:"ytp-sb-subscribe",j:N?{title:g.Lm("Inscrever-se como $USER_NAME",{USER_NAME:O.userDisplayName}),"aria-label":"Inscrever-se no canal","data-tooltip-image":up(O),"data-tooltip-opaque":String(g.zo(O)),tabindex:"0",role:"button"}: {"aria-label":"Inscrever-se no canal"},D:[{Y:"div",V:"ytp-sb-text",D:[{Y:"div",V:"ytp-sb-icon"},V]},t?{Y:"div",V:"ytp-sb-count",mw:t}:""]},{Y:"div",V:"ytp-sb-unsubscribe",j:N?{title:g.Lm("Inscrito como $USER_NAME",{USER_NAME:O.userDisplayName}),"aria-label":"Cancelar inscri\u00e7\u00e3o no canal","data-tooltip-image":up(O),"data-tooltip-opaque":String(g.zo(O)),tabindex:"0",role:"button"}:{"aria-label":"Cancelar inscri\u00e7\u00e3o no canal"},D:[{Y:"div",V:"ytp-sb-text",D:[{Y:"div",V:"ytp-sb-icon"}, x]},u?{Y:"div",V:"ytp-sb-count",mw:u}:""]}],j:{"aria-live":"polite"}});var p=this;this.channelId=K;this.U=E;this.N=k;var I=this.f1("ytp-sb-subscribe"),L=this.f1("ytp-sb-unsubscribe");P&&g.OU(this.element,"ytp-sb-classic");if(Z){R?this.J():this.S();var M=function(){if(O.zU){var Y=p.channelId;if(f||b){var r={c:Y};var n;g.a_.isInitialized()&&(n=iwh(r));r=n||"";if(n=E.getVideoData())if(n=n.subscribeCommand){var U=E.tY();U?(xu(U,n,{botguardResponse:r,feature:f}),E.Os("SUBSCRIBE",Y)):g.jv(Error("No innertube service available when updating subscriptions."))}else g.jv(Error("No subscribe command in videoData.")); else g.jv(Error("No video data available when updating subscription."))}L.focus();L.removeAttribute("aria-hidden");I.setAttribute("aria-hidden","true")}else qaj(g.UJ(p.U.K()),"sb_button",p.W)},z=function(){var Y=p.channelId; if(f||b){var r=E.getVideoData();xu(E.tY(),r.unsubscribeCommand,{feature:f});E.Os("UNSUBSCRIBE",Y)}I.focus();I.removeAttribute("aria-hidden");L.setAttribute("aria-hidden","true")}; this.Z(I,"click",M);this.Z(L,"click",z);this.Z(I,"keypress",function(Y){Y.keyCode===13&&M(Y)}); this.Z(L,"keypress",function(Y){Y.keyCode===13&&z(Y)}); this.Z(E,"SUBSCRIBE",this.J);this.Z(E,"UNSUBSCRIBE",this.S);this.N&&N&&(YZz(E),Lv(E,I,this),Lv(E,L,this))}else g.OU(I,"ytp-sb-disabled"),g.OU(L,"ytp-sb-disabled")}; $Wz=function(V){g.e.call(this,{Y:"div",V:"ytp-title-channel",D:[{Y:"div",V:"ytp-title-beacon"},{Y:"a",V:"ytp-title-channel-logo",j:{href:"{{channelLink}}",target:V.K().X,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{Y:"div",V:"ytp-title-expanded-overlay",j:{"aria-hidden":"{{flyoutUnfocusable}}"},D:[{Y:"div",V:"ytp-title-expanded-heading",D:[{Y:"div",V:"ytp-title-expanded-title",D:[{Y:"a",mw:"{{expandedTitle}}",j:{href:"{{channelTitleLink}}",target:V.K().X,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{Y:"div",V:"ytp-title-expanded-subtitle",mw:"{{expandedSubtitle}}",j:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var t=this;this.api=V;this.channel=this.f1("ytp-title-channel");this.S=this.f1("ytp-title-channel-logo");this.channelName=this.f1("ytp-title-expanded-title");this.B=this.f1("ytp-title-expanded-overlay");this.N=this.J=this.subscribeButton=null;this.W=!1;V.createClientVe(this.S,this,36925);V.createClientVe(this.channelName,this, 37220);g.zo(this.api.K())&&Rgj(this);this.Z(V,"videodatachange",this.ZS);this.Z(V,"videoplayerreset",this.ZS);this.Z(this.channelName,"click",function(x){t.api.logClick(t.channelName);g.yM(window,fIl(t));x.preventDefault()}); this.Z(this.S,"click",this.HIw);this.ZS()}; bzl=function(V){if(!V.api.K().IC){var t=V.api.getVideoData(),x=new g.Ed("Inscreva-se",null,"Inscrito",null,!0,!1,t.Qm,t.subscribed,"channel_avatar",null,V.api,!0);V.api.createServerVe(x.element,V);var u;V.api.setTrackingParams(x.element,((u=t.subscribeButtonRenderer)==null?void 0:u.trackingParams)||null);V.Z(x.element,"click",function(){V.api.logClick(x.element)}); V.subscribeButton=x;g.y(V,V.subscribeButton);V.subscribeButton.t6(V.B);V.subscribeButton.hide();var Z=new Zz1(V.api);V.J=Z;g.y(V,Z);Z.t6(V.B);Z.hide();V.Z(V.api,"SUBSCRIBE",function(){t.N0&&(Z.show(),V.api.logVisibility(Z.element,!0))}); V.Z(V.api,"UNSUBSCRIBE",function(){t.N0&&(Z.hide(),V.api.logVisibility(Z.element,!1),PTL(Z,!1))})}}; Rgj=function(V){var t=V.api.K();bzl(V);V.updateValue("flyoutUnfocusable","true");V.updateValue("channelTitleFocusable","-1");V.updateValue("shouldHideExpandedTitleForA11y","true");V.updateValue("shouldHideExpandedSubtitleForA11y","true");t.S||t.xw||(V.Z(V.channel,"mouseenter",V.Im),V.Z(V.channel,"mouseleave",V.uU),V.Z(V.channel,"focusin",V.Im),V.Z(V.channel,"focusout",function(x){V.channel.contains(x.relatedTarget)||V.uU()})); V.N=new g.qK(function(){V.isExpanded()&&(V.api.logVisibility(V.channelName,!1),V.subscribeButton&&(V.subscribeButton.hide(),V.api.logVisibility(V.subscribeButton.element,!1)),V.J&&(V.J.hide(),V.api.logVisibility(V.J.element,!1)),V.channel.classList.remove("ytp-title-expanded"),V.channel.classList.add("ytp-title-show-collapsed"))},500); g.y(V,V.N);V.Z(V.channel,Eqq,function(){kVq(V)}); V.Z(V.api,"onHideControls",V.xm);V.Z(V.api,"appresize",V.xm);V.Z(V.api,"fullscreentoggled",V.xm)}; kVq=function(V){V.channel.classList.remove("ytp-title-show-collapsed");V.channel.classList.remove("ytp-title-show-expanded")}; izh=function(V){var t=V.api.getPlayerSize();return g.zo(V.api.K())&&t.width>=524}; fIl=function(V){var t=V.api.K(),x=V.api.getVideoData(),u=g.Zx(t)+x.w6;g.uu(x)&&(u="https://music.youtube.com"+x.w6);if(!g.zo(t))return u;t={};g.$2(V.api,"addEmbedsConversionTrackingParams",[t]);return g.CX(u,t)}; kl=function(V){var t=g.Df({"aria-haspopup":"true"});g.U5.call(this,t,V);this.listen("keydown",this.J)}; i9=function(V,t){V.element.setAttribute("aria-haspopup",String(t))}; OzT=function(V,t){g.e.call(this,{Y:"div",V:"ytp-user-info-panel",j:{"aria-label":"Informa\u00e7\u00f5es do usu\u00e1rio"},D:V.K().zU&&!V.T("embeds_web_always_enable_signed_out_state")?[{Y:"div",V:"ytp-user-info-panel-icon",mw:"{{icon}}"},{Y:"div",V:"ytp-user-info-panel-content",D:[{Y:"div",V:"ytp-user-info-panel-info",j:{tabIndex:"{{userInfoFocusable}}",role:"text"},mw:"{{watchingAsUsername}}"},{Y:"div",V:"ytp-user-info-panel-info",j:{tabIndex:"{{userInfoFocusable2}}",role:"text"},mw:"{{watchingAsEmail}}"}]}]: [{Y:"div",V:"ytp-user-info-panel-icon",mw:"{{icon}}"},{Y:"div",V:"ytp-user-info-panel-content",D:[{Y:"div",D:[{Y:"text",j:{tabIndex:"{{userInfoFocusable}}"},mw:"Conta desconectada"}]},{Y:"div",V:"ytp-user-info-panel-login",D:[{Y:"a",j:{tabIndex:"{{userInfoFocusable2}}",role:"button"},mw:V.K().IC?"":"Fazer login no YouTube"}]}]}]});this.A6=V;this.J=t;V.K().zU||V.K().IC||this.Z(this.f1("ytp-user-info-panel-login"),"click",this.lN);this.closeButton=new g.e({Y:"button",vX:["ytp-collapse","ytp-button"], j:{title:"Fechar"},D:[g.oz()]});this.closeButton.t6(this.element);g.y(this,this.closeButton);this.Z(window,"blur",this.hide);this.Z(document,"click",this.qr);this.ZS()}; NQT=function(V,t,x){g.HJ.call(this,V);this.W$=t;this.xU=x;this.getVideoUrl=new kl(6);this.xG=new kl(5);this.Au=new kl(4);this.nI=new kl(3);this.mT=new g.U5(g.Df({href:"{{href}}",target:this.U.K().X},void 0,!0),2,"Resolver problemas de reprodu\u00e7\u00e3o");this.showVideoInfo=new g.U5(g.Df(),1,"Estat\u00edsticas para nerds");this.G1=new g.Iz({Y:"div",vX:["ytp-copytext","ytp-no-contextmenu"],j:{draggable:"false",tabindex:"1"},mw:"{{text}}"});this.Bb=new lV(this.U,this.G1);this.FV=this.k9=null;g.zo(this.U.K())&& (this.closeButton=new g.e({Y:"button",vX:["ytp-collapse","ytp-button"],j:{title:"Fechar"},D:[g.oz()]}),g.y(this,this.closeButton),this.closeButton.t6(this.element),this.closeButton.listen("click",this.dM,this));g.zo(this.U.K())&&(this.OV=new g.U5(g.Df(),8,"Conta"),g.y(this,this.OV),this.Pk(this.OV,!0),this.OV.listen("click",this.K28,this),V.createClientVe(this.OV.element,this.OV,137682));this.U.K().IA&&(this.Kk=new uB("Loop",7),g.y(this,this.Kk),this.Pk(this.Kk,!0),this.Kk.listen("click",this.vKU, this),V.createClientVe(this.Kk.element,this.Kk,28661));g.y(this,this.getVideoUrl);this.Pk(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.fT1,this);V.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.y(this,this.xG);this.Pk(this.xG,!0);this.xG.listen("click",this.cJX,this);V.createClientVe(this.xG.element,this.xG,28660);g.y(this,this.Au);this.Pk(this.Au,!0);this.Au.listen("click",this.YZS,this);V.createClientVe(this.Au.element,this.Au,28658);g.y(this,this.nI);this.Pk(this.nI, !0);this.nI.listen("click",this.zXX,this);g.y(this,this.mT);this.Pk(this.mT,!0);this.mT.listen("click",this.W2s,this);g.y(this,this.showVideoInfo);this.Pk(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.s58,this);g.y(this,this.G1);this.G1.listen("click",this.kcX,this);g.y(this,this.Bb);t=document.queryCommandSupported&&document.queryCommandSupported("copy");D1l("Chromium")>=43&&(t=!0);D1l("Firefox")<=40&&(t=!1);t&&(this.k9=new g.e({Y:"textarea",V:"ytp-html5-clipboard",j:{readonly:"", tabindex:"-1"}}),g.y(this,this.k9),this.k9.t6(this.element));var u;(u=this.OV)==null||u.setIcon(Mp9());var Z;(Z=this.Kk)==null||Z.setIcon({Y:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Y:"path",j:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.nI.setIcon({Y:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Y:"path",j:{"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.mT.setIcon(Sn0());this.showVideoInfo.setIcon(Guw());this.Z(V,"onLoopChange",this.onLoopChange);this.Z(V,"videodatachange",this.onVideoDataChange);sX4(this);this.oT(this.U.getVideoData())}; Od=function(V,t){var x=!1;if(V.k9){var u=V.k9.element;u.value=t;u.select();try{x=document.execCommand("copy")}catch(Z){}}x?V.W$.Gc():(V.G1.g9(t,"text"),g.es(V.W$,V.Bb),R3(V.G1.element),V.k9&&(V.k9=null,sX4(V)));return x}; sX4=function(V){var t=!!V.k9;g.HL(V.nI,t?"Copiar informa\u00e7\u00f5es de depura\u00e7\u00e3o":"Ver informa\u00e7\u00f5es sobre depura\u00e7\u00e3o");i9(V.nI,!t);g.HL(V.Au,t?"Copiar c\u00f3digo de incorpora\u00e7\u00e3o":"Ver c\u00f3digo de incorpora\u00e7\u00e3o");i9(V.Au,!t);g.HL(V.getVideoUrl,t?"Copiar URL do v\u00eddeo":"Ver URL do v\u00eddeo");i9(V.getVideoUrl,!t);g.HL(V.xG,t?"Copiar URL do v\u00eddeo no momento atual":"Ver URL do v\u00eddeo no tempo atual");i9(V.xG,!t);V.Au.setIcon(t?Nu9(): null);V.getVideoUrl.setIcon(t?mx():null);V.xG.setIcon(t?mx():null)}; p54=function(V){return g.zo(V.U.K())?V.OV:V.Kk}; Sa8=function(V,t){g.Dt.call(this,V);this.xU=t;this.W=new g.j6(this);this.wk=new g.qK(this.kks,1E3,this);this.zU=this.N=null;g.y(this,this.W);g.y(this,this.wk);V.createClientVe(this.element,this,28656);g.OU(this.element,"ytp-contextmenu");AQT(this);this.hide()}; AQT=function(V){g.oV(V.W);var t=V.U.K();t.playerStyle==="gvn"||t.S||t.xw||(t=V.U.XX(),V.W.Z(t,"contextmenu",V.lzU),V.W.Z(t,"touchstart",V.k$,null,!0),V.W.Z(t,"touchmove",V.Zr,null,!0),V.W.Z(t,"touchend",V.Zr,null,!0))}; GV1=function(V){V.U.isFullscreen()?g.aE(V.U,V.element,10):V.t6(y1(V).body)}; sd=function(V,t,x){x=x===void 0?240:x;g.e.call(this,{Y:"button",vX:["ytp-button","ytp-copylink-button"],j:{title:"{{title-attr}}","data-tooltip-opaque":String(g.zo(V.K()))},D:[{Y:"div",V:"ytp-copylink-icon",mw:"{{icon}}"},{Y:"div",V:"ytp-copylink-title",mw:"Copiar link",j:{"aria-hidden":"true"}}]});this.api=V;this.J=t;this.S=x;this.visible=!1;this.tooltip=this.J.z4();t=V.K();this.tooltip.element.setAttribute("aria-live","polite");g.Am(this.element,"ytp-show-copylink-title",g.zo(t));V.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.Z(V,"videodatachange",this.ZS);this.Z(V,"videoplayerreset",this.ZS);this.Z(V,"appresize",this.ZS);this.ZS();this.addOnDisposeCallback(g.vL(this.tooltip,this.element))}; IIK=function(V){var t=V.api.K(),x=V.api.getVideoData(),u=V.api.XX().getPlayerSize().width;t=t.N;return!!x.videoId&&u>=V.S&&x.Mq&&!g.th(x)&&!V.api.isEmbedsShortsMode()&&!t}; vql=function(V){V.updateValue("icon",gN());if(V.api.K().S)V.tooltip.CF(V.element,"Link copiado para a \u00e1rea de transfer\u00eancia");else{V.updateValue("title-attr","Link copiado para a \u00e1rea de transfer\u00eancia");V.tooltip.lT();V.tooltip.CF(V.element);var t=V.listen("mouseleave",function(){V.vk(t);V.ZS();V.tooltip.N3()})}}; Lt4=function(V,t){return g.Q(function(x){if(x.J==1)return g.AT(x,2),g.m(x,navigator.clipboard.writeText(t),4);if(x.J!=2)return x.return(!0);g.I9(x);var u=x.return,Z=!1,P=g.uc("TEXTAREA");P.value=t;P.setAttribute("readonly","");var K=V.api.getRootNode();K.appendChild(P);if(xp){var R=window.getSelection();R.removeAllRanges();var f=document.createRange();f.selectNodeContents(P);R.addRange(f);P.setSelectionRange(0,t.length)}else P.select();try{Z=document.execCommand("copy")}catch(b){}K.removeChild(P); return u.call(x,Z)})}; NS=function(V){g.e.call(this,{Y:"div",V:"ytp-doubletap-ui-legacy",D:[{Y:"div",V:"ytp-doubletap-fast-forward-ve"},{Y:"div",V:"ytp-doubletap-rewind-ve"},{Y:"div",V:"ytp-doubletap-static-circle",D:[{Y:"div",V:"ytp-doubletap-ripple"}]},{Y:"div",V:"ytp-doubletap-overlay-a11y"},{Y:"div",V:"ytp-doubletap-seek-info-container",D:[{Y:"div",V:"ytp-doubletap-arrows-container",D:[{Y:"span",V:"ytp-doubletap-base-arrow"},{Y:"span",V:"ytp-doubletap-base-arrow"},{Y:"span",V:"ytp-doubletap-base-arrow"}]},{Y:"div", V:"ytp-doubletap-tooltip",D:[{Y:"div",V:"ytp-seek-icon-text-container",D:[{Y:"div",V:"ytp-seek-icon",mw:"{{seekIcon}}"},{Y:"div",V:"ytp-chapter-seek-text-legacy",mw:"{{seekText}}"}]},{Y:"div",V:"ytp-doubletap-tooltip-label",mw:"{{seekTime}}"}]}]}]});this.U=V;this.W=new g.qK(this.show,10,this);this.S=new g.qK(this.hide,700,this);this.L=this.N=0;this.Ij=this.B=!1;this.J=this.f1("ytp-doubletap-static-circle");g.y(this,this.W);g.y(this,this.S);this.hide();this.C=this.f1("ytp-doubletap-fast-forward-ve"); this.X=this.f1("ytp-doubletap-rewind-ve");this.U.createClientVe(this.C,this,28240);this.U.createClientVe(this.X,this,28239);this.U.logVisibility(this.C,!0);this.U.logVisibility(this.X,!0);this.B=V.T("web_show_cumulative_seek_time");this.Ij=V.T("web_center_static_circles")}; pY=function(V,t,x,u){if(u=u===void 0?null:u){var Z=t===-1?V.X.visualElement:V.C.visualElement;u={seekData:u};var P=g.aw();P&&g.RW(qp)(void 0,P,Z,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",u,void 0)}V.N=t===V.L?V.N+x:x;V.L=t;Z=V.U.XX().getPlayerSize();V.B?V.S.stop():g.$y(V.S);V.W.start();V.element.setAttribute("data-side",t===-1?"back":"forward");g.OU(V.element,"ytp-time-seeking");V.J.style.width="110px";V.J.style.height="110px";u=Z.width*.1-15;t===1?V.Ij?(V.J.style.right=u+"px",V.J.style.left=""): (V.J.style.right="",V.J.style.left=Z.width*.8-30+"px"):t===-1&&(V.Ij?(V.J.style.right="",V.J.style.left=u+"px"):(V.J.style.right="",V.J.style.left=Z.width*.1-15+"px"));V.J.style.top=Z.height*.5+15+"px";Ftq(V,V.B?V.N:x)}; MXh=function(V,t,x,u){u=u===void 0?null:u;g.$y(V.S);V.W.start();switch(t){case -1:t="back";break;case 1:t="forward";break;default:t=""}V.element.setAttribute("data-side",t);V.J.style.width="0";V.J.style.height="0";g.OU(V.element,"ytp-chapter-seek");V.updateValue("seekText",x);V.updateValue("seekTime","");x=V.f1("ytp-seek-icon");if(u){a:if(u){switch(u){case "PREMIUM_STANDALONE":u={Y:"svg",j:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},D:[{Y:"path",j:{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"}},{Y:"path",j:{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":u={Y:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Y:"rect",j:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{Y:"rect",j:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{Y:"path",j:{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"}},{Y:"defs",D:[{Y:"linearGradient",j:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},D:[{Y:"stop",j:{offset:"0.3","stop-color":"#E1002D"}},{Y:"stop",j:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}u=void 0}else u=null;V.updateValue("seekIcon",u);x.style.display="inline-block"}else x.style.display="none"}; Ftq=function(V,t){t=g.Lm("$TOTAL_SEEK_TIME segundos",{TOTAL_SEEK_TIME:t.toString()});V.updateValue("seekTime",t)}; gqw=function(V){js.call(this,V,!1,!0);this.cX=[];this.P$=[];this.C=!0;this.badge.element.classList.add("ytp-featured-product");this.Us=new g.e({Y:"div",V:"ytp-featured-product-open-in-new"});g.y(this,this.Us);this.countdownTimer=new g.e({Y:"text",V:"ytp-featured-product-countdown",mw:"{{content}}"});this.countdownTimer.hide();g.y(this,this.countdownTimer);this.S=new g.e({Y:"div",V:"ytp-featured-product-trending",D:[{Y:"div",V:"ytp-featured-product-trending-icon"},{Y:"text",V:"ytp-featured-product-trending-text", mw:"{{trendingOffer}}"}]});this.S.hide();g.y(this,this.S);this.overflowButton=new g.e({Y:"button",vX:["ytp-featured-product-overflow-icon","ytp-button"],j:{"aria-haspopup":"true"}});this.overflowButton.hide();g.y(this,this.overflowButton);this.L=new g.e({Y:"text",V:"ytp-featured-product-exclusive-countdown",mw:"{{content}}",j:{id:"exclusiveCountdown","aria-hidden":"true"}});this.L.hide();g.y(this,this.L);this.B=new g.e({Y:"div",V:"ytp-featured-product-exclusive-container",j:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, D:[{Y:"div",V:"ytp-featured-product-exclusive-badge-container",D:[{Y:"div",V:"ytp-featured-product-exclusive-badge",D:[{Y:"text",V:"ytp-featured-product-exclusive-badge-text",mw:"{{exclusive}}",j:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.L]});this.B.hide();g.y(this,this.B);this.banner=new g.e({Y:"a",V:"ytp-featured-product-container",D:[{Y:"div",V:"ytp-featured-product-thumbnail",D:[{Y:"img",j:{src:"{{thumbnail}}"}},this.Us]},{Y:"div",V:"ytp-featured-product-details",D:[{Y:"text",V:"ytp-featured-product-title", mw:"{{title}}"},this.U.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Y:"div",V:"ytp-featured-product-price-container",j:{"aria-label":"{{priceA11yText}}"},D:[{Y:"text",V:"ytp-featured-product-price-when-promotion-text-enabled",mw:"{{price}}",j:{"aria-hidden":"true"}},{Y:"text",V:"ytp-featured-product-promotion-text",mw:"{{promotionText}}",j:{"aria-hidden":"true"}}]}:{Y:"div",j:{"aria-label":"{{priceA11yText}}"},D:[{Y:"text",V:"ytp-featured-product-price",mw:"{{price}}", j:{"aria-hidden":"true"}},{Y:"text",V:"ytp-featured-product-sales-original-price",mw:"{{salesOriginalPrice}}",j:{"aria-hidden":"true"}},{Y:"text",V:"ytp-featured-product-price-drop-reference-price",mw:"{{priceDropReferencePrice}}",j:{"aria-hidden":"true"}}]},this.U.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Y:"div",V:"ytp-featured-product-when-promotion-text-enabled",D:[{Y:"text",V:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",mw:"{{affiliateDisclaimer}}"}, this.S,{Y:"text",V:"ytp-featured-product-vendor-when-promotion-text-enabled",mw:"{{vendor}}"}]}:{Y:"div",D:[{Y:"text",V:"ytp-featured-product-affiliate-disclaimer",mw:"{{affiliateDisclaimer}}"},this.U.T("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.B:null,this.S,{Y:"text",V:"ytp-featured-product-vendor",mw:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.y(this,this.banner);this.banner.t6(this.N.element);this.Z(this.U,g.km("featured_product"),this.Vd1);this.Z(this.U, g.i4("featured_product"),this.w_);this.Z(this.U,"videodatachange",this.onVideoDataChange);this.Z(this.overflowButton.element,"click",this.Qy);this.Z(V,"featuredproductdismissed",this.BJ)}; X5q=function(V){var t,x;V=(t=V.J)==null?void 0:(x=t.bannerData)==null?void 0:x.itemData;var u,Z,P;return(V==null||!V.affiliateDisclaimer)&&(V==null?0:(u=V.exclusivesData)==null?0:u.exclusiveOfferLabelText)&&(V==null?0:(Z=V.exclusivesData)==null?0:Z.expirationTimestampMs)&&(V==null?0:(P=V.exclusivesData)==null?0:P.exclusiveOfferCountdownText)?!0:!1}; BQ4=function(V){var t,x,u,Z,P=(t=V.J)==null?void 0:(x=t.bannerData)==null?void 0:(u=x.itemData)==null?void 0:(Z=u.exclusivesData)==null?void 0:Z.expirationTimestampMs;t=(Number(P)-Date.now())/1E3;if(t>0){if(t<604800){var K,R,f,b;x=(K=V.J)==null?void 0:(R=K.bannerData)==null?void 0:(f=R.itemData)==null?void 0:(b=f.exclusivesData)==null?void 0:b.exclusiveOfferCountdownText;if(x!==void 0)for(K=Date.now(),R=g.G(x),f=R.next();!f.done;f=R.next())if(f=f.value,f!==void 0&&f.text!==void 0&&(b=Number(f.textDisplayStartTimestampMs), !isNaN(b)&&K>=b)){f.insertCountdown?(t=f.text.replace(/\$0/,String(S_({seconds:t}))),V.L.g9(t)):V.L.g9(f.text);V.L.show();break}}var E,k,O,N;V.B.update({exclusive:(E=V.J)==null?void 0:(k=E.bannerData)==null?void 0:(O=k.itemData)==null?void 0:(N=O.exclusivesData)==null?void 0:N.exclusiveOfferLabelText});V.B.show();Af(V);var p;(p=V.CI)==null||p.start()}else zgC(V)}; zgC=function(V){var t;(t=V.CI)==null||t.stop();V.L.hide();V.B.hide();Sy(V)}; mW0=function(V){var t,x,u=(t=V.J)==null?void 0:(x=t.bannerData)==null?void 0:x.itemData;return V.U.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(u==null||!u.priceReplacementText)&&(u==null?0:u.promotionText)?u==null?void 0:u.promotionText.content:null}; Yaj=function(V){var t,x,u=(t=V.J)==null?void 0:(x=t.bannerData)==null?void 0:x.itemData,Z,P;if(!(u!=null&&u.priceReplacementText||V.U.T("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(u==null?0:(Z=u.dealsData)==null?0:(P=Z.sales)==null?0:P.originalPrice)){var K,R;return u==null?void 0:(K=u.dealsData)==null?void 0:(R=K.sales)==null?void 0:R.originalPrice}return null}; QXh=function(V){var t,x,u=(t=V.J)==null?void 0:(x=t.bannerData)==null?void 0:x.itemData,Z,P,K,R;if(!((u==null?0:u.priceReplacementText)||V.U.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(u==null?0:(Z=u.dealsData)==null?0:(P=Z.sales)==null?0:P.originalPrice))&&(u==null?0:(K=u.dealsData)==null?0:(R=K.priceDrop)==null?0:R.referencePrice)){var f,b;return u==null?void 0:(f=u.dealsData)==null?void 0:(b=f.priceDrop)==null?void 0:b.referencePrice}return null}; aIw=function(V){var t,x,u=(t=V.J)==null?void 0:(x=t.bannerData)==null?void 0:x.itemData;if(u==null?0:u.priceReplacementText)return u==null?void 0:u.priceReplacementText;if((u==null?0:u.promotionText)&&V.U.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var Z;return(u==null?void 0:u.price)+" "+(u==null?void 0:(Z=u.promotionText)==null?void 0:Z.content)}var P,K;if(u==null?0:(P=u.dealsData)==null?0:(K=P.sales)==null?0:K.originalPrice){var R,f;return u==null?void 0:(R=u.dealsData)== null?void 0:(f=R.sales)==null?void 0:f.salesPriceAccessibilityLabel}var b,E;if(u==null?0:(b=u.dealsData)==null?0:(E=b.priceDrop)==null?0:E.referencePrice){var k,O;return(u==null?void 0:u.price)+" "+(u==null?void 0:(k=u.dealsData)==null?void 0:(O=k.priceDrop)==null?void 0:O.referencePrice)}return u==null?void 0:u.price}; rQj=function(V){if(V.U.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var t,x,u;return V.S.iq?null:(t=V.J)==null?void 0:(x=t.bannerData)==null?void 0:(u=x.itemData)==null?void 0:u.vendorName}var Z,P,K,R,f,b;return V.S.iq||V.B.iq||((Z=V.J)==null?0:(P=Z.bannerData)==null?0:(K=P.itemData)==null?0:K.affiliateDisclaimer)?null:(R=V.J)==null?void 0:(f=R.bannerData)==null?void 0:(b=f.itemData)==null?void 0:b.vendorName}; Wts=function(V,t){GM(V);if(t){var x=g.x8.getState().entities;x=pA(x,"featuredProductsEntity",t);if(x!=null&&x.productsData){t=[];x=g.G(x.productsData);for(var u=x.next();!u.done;u=x.next()){u=u.value;var Z=void 0;if((Z=u)!=null&&Z.identifier&&u.featuredSegments){V.cX.push(u);var P=void 0;Z=g.G((P=u)==null?void 0:P.featuredSegments);for(P=Z.next();!P.done;P=Z.next()){var K=P.value;P=TQ8(K.startTimeSec);P!==void 0&&(K=TQ8(K.endTimeSec),t.push(new g.b4(P*1E3,K===void 0?0x7ffffffffffff:K*1E3,{id:u.identifier, namespace:"featured_product"})))}}}V.U.gL(t)}}}; Sy=function(V){if(V.trendingOfferEntityKey){var t=g.x8.getState().entities;if(t=pA(t,"trendingOfferEntity",V.trendingOfferEntityKey)){var x,u,Z;t.encodedSkuId!==((x=V.J)==null?void 0:(u=x.bannerData)==null?void 0:(Z=u.itemData)==null?void 0:Z.encodedOfferSkuId)?Af(V):(V.S.update({trendingOffer:t.shortLabel+" \u2022 "+t.countLabel}),V.S.show(),V.banner.update({vendor:rQj(V)}))}else Af(V)}else Af(V)}; Af=function(V){V.S.hide();V.banner.update({vendor:rQj(V)})}; GM=function(V){V.cX=[];V.w_();V.U.CR("featured_product")}; oqz=function(V){var t,x,u,Z,P=(t=V.J)==null?void 0:(x=t.bannerData)==null?void 0:(u=x.itemData)==null?void 0:(Z=u.hiddenProductOptions)==null?void 0:Z.dropTimestampMs;t=(Number(P)-Date.now())/1E3;V.countdownTimer.g9(S_({seconds:t}));if(t>0){var K;(K=V.Fc)==null||K.start()}}; nq8=function(V){var t;(t=V.Fc)==null||t.stop();V.countdownTimer.hide()}; TQ8=function(V){if(V!==void 0&&V.trim()!==""&&(V=Math.trunc(Number(V.trim())),!(isNaN(V)||V<0)))return V}; HzT=function(V,t,x){g.e.call(this,{Y:"div",vX:["ytp-info-panel-action-item"],D:[{Y:"div",V:"ytp-info-panel-action-item-disclaimer",mw:"{{disclaimer}}"},{Y:"a",vX:["ytp-info-panel-action-item-button","ytp-button"],j:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},D:[{Y:"div",V:"ytp-info-panel-action-item-icon",mw:"{{icon}}"},{Y:"div",V:"ytp-info-panel-action-item-label",mw:"{{label}}"}]}]});this.U=V;this.J=x;this.disclaimer=this.f1("ytp-info-panel-action-item-disclaimer");this.button= this.f1("ytp-info-panel-action-item-button");this.s1=!1;this.U.createServerVe(this.element,this,!0);this.listen("click",this.onClick);V="";x=g.l(t==null?void 0:t.onTap,UH);var u=g.l(x,g.Uv);this.s1=!1;u?(V=u.url||"",V.startsWith("//")&&(V="https:"+V),this.s1=!0,g.WQ(this.button,g.rH(V))):(u=g.l(x,cQq))&&!this.J?((V=u.phoneNumbers)&&V.length>0?(V="sms:"+V[0],u.messageText&&(V+="?&body="+encodeURI(u.messageText))):V="",this.s1=!0,g.WQ(this.button,g.rH(V,[yQz]))):(x=g.l(x,jX9))&&!this.J&&(V=x.phoneNumber? "tel:"+x.phoneNumber:"",this.s1=!0,g.WQ(this.button,g.rH(V,[lIK])));var Z;if(x=(Z=t.disclaimerText)==null?void 0:Z.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var P;this.update({label:(P=t.bodyText)==null?void 0:P.content,icon:az(),disclaimer:x})}else{this.disclaimer.style.display="none";var K;this.update({label:(K=t.bodyText)==null?void 0:K.content,icon:az()})}this.U.setTrackingParams(this.element,t.trackingParams||null);this.s1&&(this.S={externalLinkData:{url:V}})}; UWq=function(V,t){var x=pD();g.cL.call(this,V,{Y:"div",V:"ytp-info-panel-detail-skrim",D:[{Y:"div",V:"ytp-info-panel-detail",j:{role:"dialog",id:x},D:[{Y:"div",V:"ytp-info-panel-detail-header",D:[{Y:"div",V:"ytp-info-panel-detail-title",mw:"{{title}}"},{Y:"button",vX:["ytp-info-panel-detail-close","ytp-button"],j:{"aria-label":"Fechar"},D:[g.BS()]}]},{Y:"div",V:"ytp-info-panel-detail-body",mw:"{{body}}"},{Y:"div",V:"ytp-info-panel-detail-items"}]}]},250);this.J=t;this.items=this.f1("ytp-info-panel-detail-items"); this.N=new g.j6(this);this.itemData=[];this.W=x;this.Z(this.f1("ytp-info-panel-detail-close"),"click",this.Gc);this.Z(this.f1("ytp-info-panel-detail-skrim"),"click",this.Gc);this.Z(this.f1("ytp-info-panel-detail"),"click",function(u){u.stopPropagation()}); g.y(this,this.N);this.U.createServerVe(this.element,this,!0);this.Z(V,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",V.getVideoData());this.hide()}; DWK=function(V,t){V=g.G(V.itemData);for(var x=V.next();!x.done;x=V.next())x=x.value,x.U.logVisibility(x.element,t)}; CT4=function(V,t){g.e.call(this,{Y:"div",V:"ytp-info-panel-preview",j:{"aria-live":"assertive","aria-atomic":"true","aria-owns":t.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.zo(V.K()))},D:[{Y:"div",V:"ytp-info-panel-preview-text",mw:"{{text}}"},{Y:"div",V:"ytp-info-panel-preview-chevron",mw:"{{chevron}}"}]});var x=this;this.U=V;this.lh=this.J=this.videoId=null;this.W=this.showControls=this.S=!1;this.Z(this.element,"click",function(){V.logClick(x.element);V.dZ();jm(t)}); this.N=new g.$9(this,250,!1,100);g.y(this,this.N);this.U.createServerVe(this.element,this,!0);this.Z(V,"videodatachange",this.onVideoDataChange);this.Z(V,"presentingplayerstatechange",this.JE);this.Z(this.U,"paidcontentoverlayvisibilitychange",this.wp);this.Z(this.U,"infopaneldetailvisibilitychange",this.wp);var u=V.getVideoData()||{};egz(u)&&dW8(this,u);this.Z(V,"onShowControls",this.RW);this.Z(V,"onHideControls",this.gF)}; dW8=function(V,t){if(!t.NR||!V.U.Ah()){var x=t.ED||1E4,u=egz(t);V.J?t.videoId&&t.videoId!==V.videoId&&(g.$y(V.J),V.videoId=t.videoId,u?(JQz(V,x,t),V.aC()):(V.Gc(),V.J.dispose(),V.J=null)):u&&(t.videoId&&(V.videoId=t.videoId),JQz(V,x,t),V.aC())}}; egz=function(V){var t,x,u,Z;return!!((t=V.a_)==null?0:(x=t.title)==null?0:x.content)||!!((u=V.a_)==null?0:(Z=u.bodyText)==null?0:Z.content)}; JQz=function(V,t,x){V.J&&V.J.dispose();V.J=new g.qK(V.sNX,t,V);g.y(V,V.J);var u;t=((u=x.a_)==null?void 0:u.trackingParams)||null;V.U.setTrackingParams(V.element,t);var Z;var P,K;if(x==null?0:(P=x.a_)==null?0:(K=P.title)==null?0:K.content){var R;u=(Z=x.a_)==null?void 0:(R=Z.title)==null?void 0:R.content;var f,b;if((f=x.a_)==null?0:(b=f.bodyText)==null?0:b.content)u+=" \u2022 ";Z=u}else Z="";var E,k;x=((E=x.a_)==null?void 0:(k=E.bodyText)==null?void 0:k.content)||"";V.update({text:Z+x,chevron:g.zP()})}; hgh=function(V,t){V.J&&(g.J(t,8)?(V.S=!0,V.aC(),V.J.start()):(g.J(t,2)||g.J(t,64))&&V.videoId&&(V.videoId=null))}; IS=function(V){var t=null;try{t=V.toLocaleString("pt-BR",{style:"percent"})}catch(x){t=V.toLocaleString(void 0,{style:"percent"})}return t}; vB=function(V,t){var x=0;V=g.G(V);for(var u=V.next();!(u.done||u.value.startTime>t);u=V.next())x++;return x===0?x:x-1}; w5h=function(V,t){for(var x=0,u=g.G(V),Z=u.next();!Z.done;Z=u.next()){Z=Z.value;if(t=Z.timeRangeStartMillis&&t0?t[0]:null;var x=g.JI("ytp-chrome-bottom"),u=g.JI("ytp-ad-module");V.W=!(x==null||!x.contains(t));V.C=!(u==null||!u.contains(t));V.X=!(t==null||!t.hasAttribute("data-tooltip-target-fixed"));return t}; sCq=function(V,t,x){if(!V.B){if(t){V.tooltipRenderer=t;t=V.tooltipRenderer.text;var u=!1,Z;(t==null?0:(Z=t.runs)==null?0:Z.length)&&t.runs[0].text&&(V.update({title:t.runs[0].text.toString()}),u=!0);g.rJ(V.title,u);t=V.tooltipRenderer.detailsText;Z=!1;var P;if((t==null?0:(P=t.runs)==null?0:P.length)&&t.runs[0].text){u=t.runs[0].text.toString();P=u.indexOf("$TARGET_ICON");if(P>-1)if(V.tooltipRenderer.targetId){t=[];u=u.split("$TARGET_ICON");var K=new g.Az({Y:"span",V:"ytp-promotooltip-details-icon", D:[itL[V.tooltipRenderer.targetId]]});g.y(V,K);for(var R=[],f=g.G(u),b=f.next();!b.done;b=f.next())b=new g.Az({Y:"span",V:"ytp-promotooltip-details-component",mw:b.value}),g.y(V,b),R.push(b);u.length===2?(t.push(R[0].element),t.push(K.element),t.push(R[1].element)):u.length===1&&(P===0?(t.push(K.element),t.push(R[0].element)):(t.push(R[0].element),t.push(K.element)));P=t.length?t:null}else P=null;else P=u;if(P){if(typeof P!=="string")for(g.KQ(V.details),Z=g.G(P),P=Z.next();!P.done;P=Z.next())V.details.appendChild(P.value); else V.update({details:P});Z=!0}}g.rJ(V.details,Z);Z=V.tooltipRenderer.acceptButton;P=!1;var E,k,O;((E=g.l(Z,g.nd))==null?0:(k=E.text)==null?0:(O=k.runs)==null?0:O.length)&&g.l(Z,g.nd).text.runs[0].text&&(V.update({acceptButtonText:g.l(Z,g.nd).text.runs[0].text.toString()}),P=!0);g.rJ(V.acceptButton,P);E=V.tooltipRenderer.dismissButton;k=!1;var N,p,I;((N=g.l(E,g.nd))==null?0:(p=N.text)==null?0:(I=p.runs)==null?0:I.length)&&g.l(E,g.nd).text.runs[0].text&&(V.update({dismissButtonText:g.l(E,g.nd).text.runs[0].text.toString()}), k=!0);g.rJ(V.dismissButton,k)}x&&(V.N=x);V.J=kHs(V);V.L=!1;V.U.K().T("web_player_hide_nitrate_promo_tooltip")||V.RC(!0);Ot1(V);V.iq&&!V.Ij&&(V.Ij=!0,V.Wk.TR(0));V.S&&V.U.logVisibility(V.element,V.iq)}}; BB=function(V){V.RC(!1);V.S&&V.U.logVisibility(V.element,V.iq)}; N0h=function(V){var t,x,u,Z=((t=g.l(V.acceptButton,g.nd))==null?void 0:(x=t.text)==null?void 0:(u=x.runs)==null?void 0:u.length)&&!!g.l(V.acceptButton,g.nd).text.runs[0].text,P,K,R;t=((P=g.l(V.dismissButton,g.nd))==null?void 0:(K=P.text)==null?void 0:(R=K.runs)==null?void 0:R.length)&&!!g.l(V.dismissButton,g.nd).text.runs[0].text;return Z||t}; Ot1=function(V){var t;if(!(t=!V.J)){t=V.J;var x=window.getComputedStyle(t);t=x.display==="none"||x.visibility==="hidden"||t.getAttribute("aria-hidden")==="true"}if(t||V.U.isMinimized())V.RC(!1);else if(t=g.ao(V.J),t.width&&t.height){V.U.rV(V.element,V.J);var u=V.U.XX().getPlayerSize().height;x=g.ao(V.f1("ytp-promotooltip-container")).height;V.W?V.element.style.top=u-x-t.height-12+"px":V.X||(u=V.U.Gi().height-x-t.height-12,V.element.style.top=u+"px");u=V.f1("ytp-promotooltip-pointer");var Z=g.Yg(V.J, V.U.getRootNode()),P=Number(V.element.style.left.replace(/[^\d\.]/g,""));V=V.U.isFullscreen()?18:12;u.style.left=Z.x-P+t.width/2-V+"px";u.style.top=x+"px"}else V.RC(!1)}; mN=function(V){g.e.call(this,{Y:"button",vX:["ytp-replay-button","ytp-button"],j:{title:"Reiniciar"},D:[g.TP()]});this.U=V;this.Z(V,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Hk(V.getPlayerStateObject());Lv(this.U,this.element,this)}; Yl=function(V,t){t=t===void 0?240:t;g.e.call(this,{Y:"button",vX:["ytp-button","ytp-search-button"],j:{title:"Pesquisar","data-tooltip-opaque":String(g.zo(V.K()))},D:[{Y:"div",V:"ytp-search-icon",mw:"{{icon}}"},{Y:"div",V:"ytp-search-title",mw:"Pesquisar"}]});this.api=V;this.S=t;this.visible=!1;this.updateValue("icon",{Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},D:[{Y:"path",V:"ytp-svg-fill",j:{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"}}]}); V.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.J();this.Z(V,"appresize",this.J);this.Z(V,"videodatachange",this.J);Lv(V,this.element,this)}; g.QN=function(V,t,x,u){u=u===void 0?240:u;g.e.call(this,{Y:"button",vX:["ytp-button","ytp-share-button"],j:{title:"Compartilhar","aria-haspopup":"true","aria-owns":x.element.id,"data-tooltip-opaque":String(g.zo(V.K()))},D:[{Y:"div",V:"ytp-share-icon",mw:"{{icon}}"},{Y:"div",V:"ytp-share-title",mw:"Compartilhar"}]});this.api=V;this.J=t;this.N=x;this.W=u;this.S=this.visible=!1;this.tooltip=this.J.z4();V.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.Z(V,"videodatachange", this.ZS);this.Z(V,"videoplayerreset",this.ZS);this.Z(V,"appresize",this.ZS);this.Z(V,"presentingplayerstatechange",this.ZS);this.ZS();this.addOnDisposeCallback(g.vL(this.tooltip,this.element))}; pHs=function(V){var t=V.api.K(),x=V.api.getVideoData(),u=g.zo(t)&&g.BL(V.api)&&g.J(V.api.getPlayerStateObject(),128);t=t.N||t.disableSharing&&V.api.getPresentingPlayerType()!==2||!x.showShareButton||x.Mq||u||g.th(x)||V.S;u=V.api.XX().getPlayerSize().width;return!!x.videoId&&u>=V.W&&!t}; Ak8=function(V,t){t.name!=="InvalidStateError"&&t.name!=="AbortError"&&(t.name==="NotAllowedError"?(V.J.dZ(),jm(V.N,V.element,!1)):g.jv(t))}; GHl=function(V,t){var x=pD(),u=V.K();x={Y:"div",V:"ytp-share-panel",j:{id:pD(),role:"dialog","aria-labelledby":x},D:[{Y:"div",V:"ytp-share-panel-inner-content",D:[{Y:"div",V:"ytp-share-panel-title",j:{id:x},mw:"Compartilhar"},{Y:"a",vX:["ytp-share-panel-link","ytp-no-contextmenu"],j:{href:"{{link}}",target:u.X,title:"Compartilhar link","aria-label":"{{shareLinkWithUrl}}"},mw:"{{linkText}}"},{Y:"label",V:"ytp-share-panel-include-playlist",D:[{Y:"input",V:"ytp-share-panel-include-playlist-checkbox", j:{type:"checkbox",checked:"true"}},"Incluir lista de reprodu\u00e7\u00e3o"]},{Y:"div",V:"ytp-share-panel-loading-spinner",D:[q4()]},{Y:"div",V:"ytp-share-panel-service-buttons",mw:"{{buttons}}"},{Y:"div",V:"ytp-share-panel-error",mw:"Ocorreu um erro ao recuperar informa\u00e7\u00f5es de compartilhamento. Tente novamente mais tarde."}]},{Y:"button",vX:["ytp-share-panel-close","ytp-button"],j:{title:"Fechar"},D:[g.BS()]}]};g.cL.call(this,V,x,250);var Z=this;this.moreButton=null;this.api=V;this.tooltip= t.z4();this.N=[];this.B=this.f1("ytp-share-panel-inner-content");this.closeButton=this.f1("ytp-share-panel-close");this.Z(this.closeButton,"click",this.Gc);this.addOnDisposeCallback(g.vL(this.tooltip,this.closeButton));this.W=this.f1("ytp-share-panel-include-playlist-checkbox");this.Z(this.W,"click",this.ZS);this.J=this.f1("ytp-share-panel-link");this.addOnDisposeCallback(g.vL(this.tooltip,this.J));this.api.createClientVe(this.J,this,164503);this.Z(this.J,"click",function(P){P.preventDefault();Z.api.logClick(Z.J); var K=Z.api.getVideoUrl(!0,!0,!1,!1);K=SNL(Z,K);g.Kh(K,Z.api,P)&&Z.api.Os("SHARE_CLICKED")}); this.listen("click",this.mK);this.Z(V,"videoplayerreset",this.hide);this.Z(V,"fullscreentoggled",this.onFullscreenToggled);this.Z(V,"onLoopRangeChange",this.gw8);this.hide()}; vhK=function(V,t){I4h(V);for(var x=t.links||t.shareTargets,u=0,Z={},P=0;P'),(I=N.document)&&I.write&&(I.write(cQ(p)),I.close()))):((N=g.yM(N,I,O,Y))&&p.noopener&&(N.opener=null),N&&p.noreferrer&&(N.opener=null));N&&(N.opener||(N.opener=window),N.focus());k.preventDefault()}}}(Z)); Z.OJ.addOnDisposeCallback(g.vL(V.tooltip,Z.OJ.element));R==="Facebook"?V.api.createClientVe(Z.OJ.element,Z.OJ,164504):R==="Twitter"&&V.api.createClientVe(Z.OJ.element,Z.OJ,164505);V.Z(Z.OJ.element,"click",function(E){return function(){V.api.logClick(E.OJ.element)}}(Z)); V.api.logVisibility(Z.OJ.element,!0);V.N.push(Z.OJ);u++}}var f=t.more||t.moreLink,b=new g.e({Y:"a",vX:["ytp-share-panel-service-button","ytp-button"],D:[{Y:"span",V:"ytp-share-panel-service-button-more",D:[{Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},D:[{Y:"rect",j:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{Y:"path",j:{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"}}]}]}],j:{href:f,target:"_blank",title:"Mais"}});b.listen("click",function(E){var k=f;V.api.logClick(V.moreButton.element);k=SNL(V,k);g.Kh(k,V.api,E)&&V.api.Os("SHARE_CLICKED")}); b.addOnDisposeCallback(g.vL(V.tooltip,b.element));V.api.createClientVe(b.element,b,164506);V.Z(b.element,"click",function(){V.api.logClick(b.element)}); V.api.logVisibility(b.element,!0);V.N.push(b);V.moreButton=b;V.updateValue("buttons",V.N)}; SNL=function(V,t){var x={};g.zo(V.api.K())&&(g.$2(V.api,"addEmbedsConversionTrackingParams",[x]),t=g.CX(t,x));return t}; I4h=function(V){for(var t=g.G(V.N),x=t.next();!x.done;x=t.next())x=x.value,x.detach(),g.Rc(x);V.N=[]}; aS=function(V){return V===void 0||V.startSec===void 0||V.endSec===void 0?!1:!0}; Lq9=function(V,t){V.startSec+=t;V.endSec+=t}; MTL=function(V){js.call(this,V);this.S=this.J=this.isContentForward=this.L=!1;Fq8(this);this.Z(this.U,"changeProductsInVideoVisibility",this.pkX);this.Z(this.U,"videodatachange",this.onVideoDataChange)}; ghw=function(V){V.B&&V.BX.element.removeChild(V.B.element);V.B=void 0}; zQh=function(V,t){return t.map(function(x){var u,Z;if((x=(u=g.l(x,XH4))==null?void 0:(Z=u.thumbnail)==null?void 0:Z.thumbnails)&&x.length!==0)return x[0].url}).filter(function(x){return x!==void 0}).map(function(x){x=new g.e({Y:"img", V:"ytp-suggested-action-product-thumbnail",j:{alt:"",src:x}});g.y(V,x);return x})}; B00=function(V,t){V.isContentForward=t;g.Am(V.badge.element,"ytp-suggested-action-badge-content-forward",t)}; rB=function(V){var t=V.isContentForward&&!V.l7();g.Am(V.badge.element,"ytp-suggested-action-badge-preview-collapsed",t&&V.J);g.Am(V.badge.element,"ytp-suggested-action-badge-preview-expanded",t&&V.S)}; TM=function(V,t,x){return new g.b4(V*1E3,t*1E3,{priority:9,namespace:x})}; mws=function(V){V.U.CR("shopping_overlay_visible");V.U.CR("shopping_overlay_preview_collapsed");V.U.CR("shopping_overlay_preview_expanded");V.U.CR("shopping_overlay_expanded")}; Fq8=function(V){V.Z(V.U,g.km("shopping_overlay_visible"),function(){V.e3(!0)}); V.Z(V.U,g.i4("shopping_overlay_visible"),function(){V.e3(!1)}); V.Z(V.U,g.km("shopping_overlay_expanded"),function(){V.wk=!0;yZ(V)}); V.Z(V.U,g.i4("shopping_overlay_expanded"),function(){V.wk=!1;yZ(V)}); V.Z(V.U,g.km("shopping_overlay_preview_collapsed"),function(){V.J=!0;rB(V)}); V.Z(V.U,g.i4("shopping_overlay_preview_collapsed"),function(){V.J=!1;rB(V)}); V.Z(V.U,g.km("shopping_overlay_preview_expanded"),function(){V.S=!0;rB(V)}); V.Z(V.U,g.i4("shopping_overlay_preview_expanded"),function(){V.S=!1;rB(V)})}; a40=function(V){g.e.call(this,{Y:"div",V:"ytp-shorts-title-channel",D:[{Y:"a",V:"ytp-shorts-title-channel-logo",j:{href:"{{channelLink}}",target:V.K().X,"aria-label":"{{channelLogoLabel}}"}},{Y:"div",V:"ytp-shorts-title-expanded-heading",D:[{Y:"div",V:"ytp-shorts-title-expanded-title",D:[{Y:"a",mw:"{{expandedTitle}}",j:{href:"{{channelTitleLink}}",target:V.K().X,tabIndex:"0"}}]}]}]});var t=this;this.api=V;this.J=this.f1("ytp-shorts-title-channel-logo");this.channelName=this.f1("ytp-shorts-title-expanded-title"); this.subscribeButton=null;V.createClientVe(this.J,this,36925);this.Z(this.J,"click",function(x){t.api.logClick(t.J);g.yM(window,YNw(t));x.preventDefault()}); V.createClientVe(this.channelName,this,37220);this.Z(this.channelName,"click",function(x){t.api.logClick(t.channelName);g.yM(window,YNw(t));x.preventDefault()}); QC1(this);this.Z(V,"videodatachange",this.ZS);this.Z(V,"videoplayerreset",this.ZS);this.ZS()}; QC1=function(V){if(!V.api.K().IC){var t=V.api.getVideoData(),x=new g.Ed("Inscreva-se",null,"Inscrito",null,!0,!1,t.Qm,t.subscribed,"channel_avatar",null,V.api,!0);V.api.createServerVe(x.element,V);var u;V.api.setTrackingParams(x.element,((u=t.subscribeButtonRenderer)==null?void 0:u.trackingParams)||null);V.Z(x.element,"click",function(){V.api.logClick(x.element)}); V.subscribeButton=x;g.y(V,V.subscribeButton);V.subscribeButton.t6(V.element)}}; YNw=function(V){var t=V.api.K(),x=V.api.getVideoData();x=g.Zx(t)+x.w6;if(!g.zo(t))return x;t={};g.$2(V.api,"addEmbedsConversionTrackingParams",[t]);return g.CX(x,t)}; WB=function(V){g.cL.call(this,V,{Y:"button",vX:["ytp-skip-intro-button","ytp-popup","ytp-button"],D:[{Y:"div",V:"ytp-skip-intro-button-text",mw:"Pular introdu\u00e7\u00e3o"}]},100);var t=this;this.N=!1;this.J=new g.qK(function(){t.hide()},5E3); this.CG=this.T9=NaN;g.y(this,this.J);this.L=function(){t.show()}; this.B=function(){t.hide()}; this.W=function(){var x=t.U.getCurrentTime();x>t.T9/1E3&&x0?{Y:"svg",j:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},D:[{Y:"path",vX:["ytp-circle-arrow","ytp-svg-fill"],j:{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"}}, {Y:"text",vX:["ytp-jump-button-text","ytp-svg-fill"],j:{x:"7.05",y:"15.05"}}]}:{Y:"svg",j:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},D:[{Y:"path",vX:["ytp-circle-arrow","ytp-svg-fill"],j:{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"}}, {Y:"text",vX:["ytp-jump-button-text","ytp-svg-fill"],j:{x:"6.5",y:"15"}}]}]});var x=this;this.U=V;this.J=t;this.S=new g.qK(function(){x.N?(x.N=!1,x.S.start()):x.element.classList.remove("ytp-jump-spin","backwards")},250); this.N=!1;(t=t>0)?this.U.createClientVe(this.element,this,36843):this.U.createClientVe(this.element,this,36844);var u=g.Lm(t?"Avance $SECONDS segundos. (\u2192)":"Volte $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.J).toString()});this.update({title:u,"data-title-no-tooltip":u,"aria-keyshortcuts":t?"\u2192":"\u2190"});this.W=this.element.querySelector(".ytp-jump-button-text");this.W.textContent=Math.abs(this.J).toString();this.listen("click",this.onClick,this);Lv(V,this.element,this)}; yks=function(V,t){t?V.element.classList.add("ytp-jump-button-enabled"):V.element.classList.remove("ytp-jump-button-enabled");V.U.logVisibility(V.element,t);V.U.lT()}; l9=function(V,t){nY.call(this,V,t,"timedMarkerCueRange","Momentos importantes da visualiza\u00e7\u00e3o");this.Z(V,g.i4("timedMarkerCueRange"),this.AJ);this.Z(V,"updatemarkervisibility",this.updateVideoData)}; jCq=function(V){var t,x=(t=V.U.getVideoData())==null?void 0:t.HX;if(x)for(V=V.W.L1,x=g.G(x),t=x.next();!t.done;t=x.next())if(t=V[t.value]){var u=void 0,Z=void 0,P=void 0;if(((u=t.onTap)==null?void 0:(Z=u.innertubeCommand)==null?void 0:(P=Z.changeEngagementPanelVisibilityAction)==null?void 0:P.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return t}}; HB=function(V){var t=V.T("web_enable_pip_on_miniplayer");g.e.call(this,{Y:"button",vX:["ytp-miniplayer-button","ytp-button"],j:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"5","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},D:[t?{Y:"svg",j:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},D:[{Y:"g",j:{transform:"translate(96, -96) scale(0.8)"},D:[{Y:"path",m_:!0,j:{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"}}]}]}: geq()]});this.U=V;this.visible=!1;this.listen("click",this.onClick);this.Z(V,"fullscreentoggled",this.ZS);this.updateValue("title",g.Fb(V,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});Lv(V,this.element,this);V.createClientVe(this.element,this,62946);this.ZS()}; l40=function(V,t,x){x=x===void 0?!1:x;g.e.call(this,{Y:"button",vX:["ytp-mute-button","ytp-button"],j:V.K().dk?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},mw:"{{icon}}"});this.U=V;this.Us=x;this.J=null;this.W=this.X=this.B=this.wk=NaN;this.zU=this.L=null;this.N=[];this.S=[];this.visible=!1;this.C=null;x=this.U.K();this.updateValue("icon",nD());this.tooltip=t.z4();this.J=new g.Az({Y:"svg",j:{height:"100%", version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"defs",D:[{Y:"clipPath",j:{id:"ytp-svg-volume-animation-mask"},D:[{Y:"path",j:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{Y:"path",j:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{Y:"path",V:"ytp-svg-volume-animation-mover",j:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{Y:"clipPath",j:{id:"ytp-svg-volume-animation-slash-mask"},D:[{Y:"path",V:"ytp-svg-volume-animation-mover",j:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]}, {Y:"path",m_:!0,vX:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],j:{"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"}},{Y:"path",m_:!0,vX:["ytp-svg-fill","ytp-svg-volume-animation-hider"],j:{"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.y(this,this.J);this.L=this.J.f1("ytp-svg-volume-animation-speaker"); this.zU=this.L.getAttribute("d");this.N=g.dZ("ytp-svg-volume-animation-mover",this.J.element);this.S=g.dZ("ytp-svg-volume-animation-hider",this.J.element);this.cX=new sf;g.y(this,this.cX);this.Ij=new sf;g.y(this,this.Ij);this.listen("click",this.PgD);this.Z(V,"appresize",this.j1);this.Z(V,"onVolumeChange",this.onVolumeChange);var u=null;x.dk?this.addOnDisposeCallback(g.vL(t.z4(),this.element)):(t="Seu navegador n\u00e3o suporta a altera\u00e7\u00e3o de volume. $BEGIN_LINKSaiba mais$END_LINK".split(/\$(BEGIN|END)_LINK/), u=new g.cL(V,{Y:"span",vX:["ytp-popup","ytp-generic-popup"],j:{tabindex:"0"},D:[t[0],{Y:"a",j:{href:"https://support.google.com/youtube/?p=noaudio",target:x.X},mw:t[2]},t[4]]},100,!0),g.y(this,u),u.hide(),u.subscribe("show",function(Z){V.Pu(u,Z)}),g.aE(V,u.element,4)); this.message=u;V.createClientVe(this.element,this,28662);this.j1(V.XX().getPlayerSize());this.setVolume(V.getVolume(),V.isMuted())}; Dwj=function(V,t){V.wk=t;var x=V.zU;t&&(x+=iYw(Htj,UwK,t));V.L.setAttribute("d",x)}; eQ0=function(V,t){V.X=t;for(var x=20*t,u=0;u=3&&V.U.getPresentingPlayerType()!==2}; wH9=function(V){var t=zr(V.U.Jl());return t?V.J?t.b9():t.wB():!1}; CE8=function(V){var t={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},x=V.playlist!=null&&V.playlist.b9();x=g.BL(V.U)&&(!V.J||x);var u=V.J&&g.rr(V.U),Z=wH9(V),P=V.J&&V.U.getPresentingPlayerType()===5,K=g.Fb(V.U,"Pr\u00f3ximo","SHIFT+n"),R=g.Fb(V.U,"Anterior","SHIFT+p");if(P)t.title="Iniciar v\u00eddeo";else if(V.N)t.title="Reiniciar";else if(x){var f=null;V.playlist&&(f=g.XK(V.playlist,V.J?DS1(V.playlist):eqz(V.playlist)));if(f){if(f.videoId){var b= V.playlist.listId;t.url=V.U.K().getVideoUrl(f.videoId,b?b.toString():void 0)}t.text=f.title;t.duration=f.lengthText?f.lengthText:f.lengthSeconds?g.Q$(f.lengthSeconds):null;t.preview=f.zm("mqdefault.jpg")}V.J?(t.title=K,t["data-title-no-tooltip"]="Pr\u00f3ximo",t["aria-keyshortcuts"]="SHIFT+n"):(t.title=R,t["data-title-no-tooltip"]="Anterior",t["aria-keyshortcuts"]="SHIFT+p")}else if(u){if(R=(f=V.videoData)==null?void 0:g.Va(f))t.url=R.Lk(),t.text=R.title,t.duration=R.lengthText?R.lengthText:R.lengthSeconds? g.Q$(R.lengthSeconds):null,t.preview=R.zm("mqdefault.jpg");t.title=K;t["data-title-no-tooltip"]="Pr\u00f3ximo";t["aria-keyshortcuts"]="SHIFT+n"}t.disabled=!u&&!x&&!Z&&!P;V.update(t);V.L=!!t.url;u||x||V.N||Z||P?V.S||(V.S=g.vL(V.tooltip,V.element),V.B=V.listen("click",V.onClick,V)):V.S&&(V.S(),V.S=null,V.vk(V.B),V.B=null);V.tooltip.lT();g.Am(V.element,"ytp-playlist-ui",V.J&&x)}; tZ8=function(V,t){g.e.call(this,{Y:"div",V:"ytp-fine-scrubbing",D:[{Y:"div",V:"ytp-fine-scrubbing-draggable",D:[{Y:"div",V:"ytp-fine-scrubbing-thumbnails",j:{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}}"}}]},{Y:"div",j:{"aria-hidden":"true"},V:"ytp-fine-scrubbing-cursor"},{Y:"div",V:"ytp-fine-scrubbing-seek-time",j:{"aria-hidden":"true"}, mw:"{{seekTime}}"},{Y:"div",V:"ytp-fine-scrubbing-play",D:[rN()],j:{title:"Reproduzir desta posi\u00e7\u00e3o",role:"button"}},{Y:"div",V:"ytp-fine-scrubbing-dismiss",D:[g.BS()],j:{title:"Sair da busca precisa",role:"button"}}]});var x=this;this.api=V;this.B=this.f1("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.f1("ytp-fine-scrubbing-dismiss");this.zU=this.f1("ytp-fine-scrubbing-draggable");this.playButton=this.f1("ytp-fine-scrubbing-play");this.thumbnails=[];this.S=[];this.Es=this.J=0; this.BX=void 0;this.Ij=NaN;this.L1=this.X=this.N=this.C=0;this.W=[];this.interval=this.frameCount=0;this.L=160;this.scale=1;this.dk=0;this.isEnabled=this.Us=!1;VZT(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.vL(t,this.dismissButton));this.addOnDisposeCallback(g.vL(t,this.playButton));this.cX=new g.ZB(this.zU,!0);this.cX.subscribe("dragstart",this.tU,this);this.cX.subscribe("dragmove",this.UN,this);this.cX.subscribe("dragend",this.z8,this);this.Z(V,"SEEK_COMPLETE",this.ND);V.T("web_fix_fine_scrubbing_false_play")&& this.Z(V,"rootnodemousedown",function(u){x.wk=u}); this.B.addEventListener("keydown",function(){}); g.y(this,this.cX);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.B,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; VZT=function(V,t){var x=g.Q$(t),u=g.Lm("Procurar $PROGRESS",{PROGRESS:g.Q$(t,!0)});V.update({ariamin:0,ariamax:Math.floor(V.api.getDuration()),arianow:Math.floor(t),arianowtext:u,seekTime:x})}; xOT=function(V){V.Ij=NaN;V.X=0;V.C=V.N}; PKC=function(V){var t=V.api.vQ();if(t){var x=90*V.scale,u=TQ(t,160*V.scale);if(t=t.levels[u]){V.L=t.width;if(!V.W.length){u=[];for(var Z=Wi(t,t.lR()),P=t.columns*t.rows,K=t.frameCount,R=0;R<=Z;R++)for(var f=KV.W.length;)u= void 0,(u=V.thumbnails.pop())==null||u.dispose();for(;V.thumbnails.lengthx.length;)u=void 0,(u=V.S.pop())==null||u.dispose(); for(;V.S.length-x?-t/x*V.interval*.5:-(t+x/2)/x*V.interval}; KM4=function(V){return-((V.B.offsetWidth||(V.frameCount-1)*V.L*V.scale)-V.J/2)}; uYL=function(){g.e.call(this,{Y:"div",V:"ytp-fine-scrubbing-thumbnail"})}; Zas=function(){g.e.call(this,{Y:"div",V:"ytp-fine-scrubbing-chapter-title",D:[{Y:"div",V:"ytp-fine-scrubbing-chapter-title-content",mw:"{{chapterTitle}}"}]})}; Rf9=function(V){g.e.call(this,{Y:"div",V:"ytp-heat-map-chapter",D:[{Y:"svg",V:"ytp-heat-map-svg",j:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},D:[{Y:"defs",D:[{Y:"clipPath",j:{id:"{{id}}"},D:[{Y:"path",V:"ytp-heat-map-path",j:{d:"",fill:"white"}}]}]},{Y:"rect",V:"ytp-heat-map-graph",j:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{Y:"rect",V:"ytp-heat-map-hover",j:{"clip-path":"url(#hm_1)",fill:"white", "fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{Y:"rect",V:"ytp-heat-map-play",j:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=V;this.L=this.f1("ytp-heat-map-svg");this.N=this.f1("ytp-heat-map-path");this.B=this.f1("ytp-heat-map-graph");this.W=this.f1("ytp-heat-map-play");this.S=this.f1("ytp-heat-map-hover");this.s1=!1;this.J=60;V=""+g.Dz(this);this.update({id:V});V="url(#"+V+")";this.B.setAttribute("clip-path",V);this.W.setAttribute("clip-path",V);this.S.setAttribute("clip-path", V);this.api.T("web_heat_map_v2")&&g.OU(this.api.getRootNode(),"ytp-heat-map-v2")}; faT=function(V,t){t>0&&(V.J=t,V.L.style.height=V.J+"px")}; dB=function(){g.e.call(this,{Y:"div",V:"ytp-chapter-hover-container",D:[{Y:"div",V:"ytp-progress-bar-padding"},{Y:"div",V:"ytp-progress-list",D:[{Y:"div",vX:["ytp-play-progress","ytp-swatch-background-color"]},{Y:"div",V:"ytp-progress-linear-live-buffer"},{Y:"div",V:"ytp-load-progress"},{Y:"div",V:"ytp-hover-progress"},{Y:"div",V:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.S=this.f1("ytp-progress-list");this.B=this.f1("ytp-progress-linear-live-buffer"); this.W=this.f1("ytp-ad-progress-list");this.L=this.f1("ytp-load-progress");this.C=this.f1("ytp-play-progress");this.N=this.f1("ytp-hover-progress");this.J=this.f1("ytp-chapter-hover-container")}; CY=function(V,t){g.Ao(V.J,"width",t)}; $Ow=function(V,t){g.Ao(V.J,"margin-right",t+"px")}; bah=function(){this.S=this.position=this.N=this.J=this.W=this.width=NaN}; EbC=function(){g.e.call(this,{Y:"div",V:"ytp-timed-marker"});this.J=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.hf=function(V,t){g.Iz.call(this,{Y:"div",V:"ytp-progress-bar-container",j:{"aria-disabled":"true"},D:[{Y:"div",vX:["ytp-heat-map-container"],D:[{Y:"div",V:"ytp-heat-map-edu"}]},{Y:"div",vX:["ytp-progress-bar"],j:{tabindex:"0",role:"slider","aria-label":"Bot\u00e3o deslizante de busca","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},D:[{Y:"div",V:"ytp-chapters-container"},{Y:"div",V:"ytp-timed-markers-container"},{Y:"div", V:"ytp-clip-start-exclude"},{Y:"div",V:"ytp-clip-end-exclude"},{Y:"div",V:"ytp-scrubber-container",D:[{Y:"div",vX:["ytp-scrubber-button","ytp-swatch-background-color"],D:[{Y:"div",V:"ytp-scrubber-pull-indicator"},{Y:"img",vX:["ytp-decorated-scrubber-button"]}]}]}]},{Y:"div",vX:["ytp-fine-scrubbing-container"],D:[{Y:"div",V:"ytp-fine-scrubbing-edu"}]},{Y:"div",V:"ytp-bound-time-left",mw:"{{boundTimeLeft}}"},{Y:"div",V:"ytp-bound-time-right",mw:"{{boundTimeRight}}"},{Y:"div",V:"ytp-clip-start",j:{title:"{{clipstarttitle}}"}, mw:"{{clipstarticon}}"},{Y:"div",V:"ytp-clip-end",j:{title:"{{clipendtitle}}"},mw:"{{clipendicon}}"}]});this.api=V;this.Ve=!1;this.SH=this.iT=this.xw=this.L=this.w1=0;this.o5=null;this.Es={};this.P$={};this.clipEnd=Infinity;this.w6=this.f1("ytp-clip-end");this.Qt=new g.ZB(this.w6,!0);this.kX=this.f1("ytp-clip-end-exclude");this.IC=this.f1("ytp-clip-start-exclude");this.clipStart=0;this.Fc=this.f1("ytp-clip-start");this.Td=new g.ZB(this.Fc,!0);this.X=this.HX=0;this.progressBar=this.f1("ytp-progress-bar"); this.gk={};this.L1={};this.CI=this.f1("ytp-chapters-container");this.IN=this.f1("ytp-timed-markers-container");this.J=[];this.B=[];this.bv={};this.a_=null;this.zU=-1;this.QC=this.cX=0;this.C=null;this.U1=this.f1("ytp-scrubber-button");this.VP=this.f1("ytp-decorated-scrubber-button");this.NR=this.f1("ytp-scrubber-container");this.yC=new g.N8;this.CG=new bah;this.N=new jP(0,0);this.fI=null;this.Ij=this.AZ=!1;this.IB=null;this.wk=this.f1("ytp-heat-map-container");this.r9=this.f1("ytp-heat-map-edu"); this.W=[];this.heatMarkersDecorations=[];this.DS=this.f1("ytp-fine-scrubbing-container");this.Fz=this.f1("ytp-fine-scrubbing-edu");this.S=void 0;this.Us=this.q6=this.BX=!1;this.tooltip=t.z4();this.addOnDisposeCallback(g.vL(this.tooltip,this.w6));g.y(this,this.Qt);this.Qt.subscribe("hoverstart",this.JG,this);this.Qt.subscribe("hoverend",this.R0,this);this.Z(this.w6,"click",this.vz);this.addOnDisposeCallback(g.vL(this.tooltip,this.Fc));g.y(this,this.Td);this.Td.subscribe("hoverstart",this.JG,this); this.Td.subscribe("hoverend",this.R0,this);this.Z(this.Fc,"click",this.vz);kL9(this);this.Z(V,"resize",this.lq);this.Z(V,"presentingplayerstatechange",this.Xh);this.Z(V,"videodatachange",this.HN);this.Z(V,"videoplayerreset",this.ly);this.Z(V,"cuerangesadded",this.agw);this.Z(V,"cuerangesremoved",this.gDD);this.Z(V,"onLoopRangeChange",this.MO);this.Z(V,"innertubeCommand",this.onClickCommand);this.Z(V,g.km("timedMarkerCueRange"),this.q18);this.Z(V,"updatemarkervisibility",this.nW);this.Z(V,"serverstitchedvideochange", this.CTs);this.updateVideoData(V.getVideoData(),!0);this.MO(V.getLoopRange());Jf(this)&&!this.S&&(this.S=new tZ8(this.api,this.tooltip),V=g.mg(this.element).x||0,this.S.lq(V,this.L),this.S.t6(this.DS),g.y(this,this.S),this.Z(this.S.dismissButton,"click",this.ES),this.Z(this.S.playButton,"click",this.NK),this.Z(this.S.element,"dblclick",this.NK));this.api.createClientVe(this.wk,this,139609,!0);this.api.createClientVe(this.r9,this,140127,!0);this.api.createClientVe(this.Fz,this,151179,!0);this.api.createClientVe(this.progressBar, this,38856,!0)}; kL9=function(V){if(V.J.length===0){var t=new dB;V.J.push(t);g.y(V,t);t.t6(V.CI,0)}for(;V.J.length>1;)V.J.pop().dispose();CY(V.J[0],"100%");V.J[0].startTime=0;V.J[0].title=""}; ias=function(V){var t=t===void 0?NaN:t;var x=new Rf9(V.api);V.W.push(x);g.y(V,x);x.t6(V.wk);t>=0&&(x.element.style.width=t+"px")}; Oal=function(V){for(;V.B.length;)V.B.pop().dispose()}; NTl=function(V){var t,x,u,Z,P;return(P=g.l((Z=g.l((t=V.getWatchNextResponse())==null?void 0:(x=t.playerOverlays)==null?void 0:(u=x.playerOverlayRenderer)==null?void 0:u.decoratedPlayerBarRenderer,M0))==null?void 0:Z.playerBar,sAz))==null?void 0:P.chapters}; pGz=function(V){for(var t=V.J,x=[],u=0;u=K&&I<=E&&P.push(O)}f>0&&(V.wk.style.height=f+"px");K=V.W[u];E=P;O=Z;p=f;I=u===0;I=I===void 0?!1:I;faT(K,p);k=E;N=K.J;I=I===void 0?!1:I;var L=1E3/k.length,M=[];M.push({x:0,y:100});for(var z=0;z0&&(x=P[P.length-1])}g.wB(V);R=[];t=g.G(t.heatMarkersDecorations||[]);for(Z=t.next();!Z.done;Z=t.next())if(Z=g.l(Z.value,FM4))f=Z.label,u=x=b=void 0,R.push({visibleTimeRangeStartMillis:(b= Z.visibleTimeRangeStartMillis)!=null?b:-1,visibleTimeRangeEndMillis:(x=Z.visibleTimeRangeEndMillis)!=null?x:-1,decorationTimeMillis:(u=Z.decorationTimeMillis)!=null?u:NaN,label:f?g.FX(f):""});V.heatMarkersDecorations=R}}; GLl=function(V,t){V.B.push(t);g.y(V,t);t.t6(V.IN,V.IN.children.length)}; IaC=function(V,t){t=g.G(t);for(var x=t.next();!x.done;x=t.next()){x=x.value;var u=VL(V,x.timeRangeStartMillis/(V.N.J*1E3),t8(V));g.Ao(x.element,"transform","translateX("+u+"px) scaleX(0.6)")}}; ABK=function(V,t){var x=0,u=!1;t=g.G(t);for(var Z=t.next();!Z.done;Z=t.next()){Z=Z.value;if(g.l(Z,gbj)){Z=g.l(Z,gbj);var P={startTime:NaN,title:null,onActiveCommand:void 0},K=Z.title;P.title=K?g.FX(K):"";K=Z.timeRangeStartMillis;K!=null&&(P.startTime=K);P.onActiveCommand=Z.onActiveCommand;Z=P;x===0&&Z.startTime!==0&&(V.J[x].startTime=0,V.J[x].title="",V.J[x].onActiveCommand=Z.onActiveCommand,x++,u=!0);V.J.length<=x&&(P=new dB,V.J.push(P),g.y(V,P),P.t6(V.CI,V.CI.children.length));V.J[x].startTime= Z.startTime;V.J[x].title=Z.title?Z.title:"";V.J[x].onActiveCommand=Z.onActiveCommand;V.J[x].index=u?x-1:x}x++}for(;x=0;u--)if(V.J[u].width>0){$Ow(V.J[u],0);var Z=Math.floor(V.J[u].width);V.J[u].width=Z;CY(V.J[u],Z+"px");break}V.J[x].width=0;CY(V.J[x],"0")}else x===V.J.length-1?(u=Math.floor(V.J[x].width+t),V.J[x].width=u,CY(V.J[x],u+"px")):(t=V.J[x].width+t,u=Math.round(t),t-=u,V.J[x].width=u,CY(V.J[x],u+"px"));x=0;if(V.W.length===V.J.length)for(t=0;t< V.W.length;t++)u=V.J[t].width,V.W[t].element.style.width=u+"px",V.W[t].element.style.left=x+"px",x+=u+uH(V);V.api.T("delhi_modern_web_player")&&(V.J.length===1?V.J[0].S.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(V.J[0].S.classList.remove("ytp-progress-bar-end"),V.J[0].S.classList.add("ytp-progress-bar-start"),V.J[V.J.length-1].S.classList.add("ytp-progress-bar-end")))}; XGj=function(V,t){var x=0,u=!1,Z=V.J.length,P=V.N.J*1E3;P===0&&(P=V.api.getProgressState().seekableEnd*1E3);if(P>0&&V.L>0){for(var K=V.L-uH(V)*V.cX,R=V.QC===0?3:K*V.QC,f=g.G(V.J),b=f.next();!b.done;b=f.next())b.value.width=0;for(;x1);b=(P===0?0:f/P*K)+V.J[x].width;if(b>R)V.J[x].width=b;else{V.J[x].width=0;var E=V,k=x,O=E.J[k-1];O!==void 0&&O.width>0? O.width+=b:kV.QC&&(V.QC=f/P),u=!0)}x++}}return u}; xt=function(V){if(V.L){var t=V.api.getProgressState(),x=V.api.getVideoData();if(!(x&&x.enableServerStitchedDai&&x.enablePreroll)||isFinite(t.current)){var u;if(((u=V.api.getVideoData())==null?0:V1(u))&&t.airingStart&&t.airingEnd)var Z=Z6(V,t.airingStart,t.airingEnd);else if(V.api.getPresentingPlayerType()===2&&V.api.K().T("show_preskip_progress_bar_for_skippable_ads")){var P,K,R;Z=(x=(Z=V.api.getVideoData())==null?void 0:(P=Z.getPlayerResponse())==null?void 0:(K=P.playerConfig)==null?void 0:(R=K.webPlayerConfig)== null?void 0:R.skippableAdProgressBarDuration)?Z6(V,t.seekableStart,x/1E3):Z6(V,t.seekableStart,t.seekableEnd)}else Z=Z6(V,t.seekableStart,t.seekableEnd);P=lP(Z,t.loaded,0);t=lP(Z,t.current,0);K=V.N.S!==Z.S||V.N.J!==Z.J;V.N=Z;PI(V,t,P);K&&zfT(V);BTl(V)}}}; Z6=function(V,t,x){return mOl(V)?new jP(Math.max(t,V.fI.startTimeMs/1E3),Math.min(x,V.fI.endTimeMs/1E3)):new jP(t,x)}; YFj=function(V,t){var x;if(((x=V.fI)==null?void 0:x.type)==="repeatChapter"||(t==null?void 0:t.type)==="repeatChapter")t&&(t=V.J[vB(V.J,t.startTimeMs)],g.Am(t.J,"ytp-repeating-chapter",!1)),V.fI&&(t=V.J[vB(V.J,V.fI.startTimeMs)],g.Am(t.J,"ytp-repeating-chapter",!0)),V.J.forEach(function(u){g.Am(u.J,"ytp-exp-chapter-hover-container",!V.fI)})}; qJ=function(V,t){var x=V.N;x=x.S+t.S*x.getLength();if(V.J.length>1){x=KW(V,t.N,!0);for(var u=0,Z=0;Z0&&(u+=V.J[Z].width,u+=uH(V));x=(V.J[x].startTime+(t.N-u)/V.J[x].width*((x===V.J.length-1?V.N.J*1E3:V.J[x+1].startTime)-V.J[x].startTime))/1E3||0}return x}; RP=function(V,t,x,u,Z){t=t<0?0:Math.floor(Math.min(t,V.api.getDuration())*1E3);x=x<0?0:Math.floor(Math.min(x,V.api.getDuration())*1E3);V=V.progressBar.visualElement;u={seekData:{startMediaTimeMs:t,endMediaTimeMs:x,seekSource:u}};(t=g.aw())&&g.RW(qp)(void 0,t,V,Z,u,void 0)}; QAj=function(V,t,x){if(x>=V.J.length)return!1;var u=V.L-uH(V)*V.cX;return Math.abs(t-V.J[x].startTime/1E3)/V.N.J*u<4}; zfT=function(V){V.U1.style.removeProperty("height");for(var t=g.G(Object.keys(V.Es)),x=t.next();!x.done;x=t.next())aaL(V,x.value);fW(V);PI(V,V.X,V.HX)}; t8=function(V){var t=V.yC.x;t=g.EY(t,0,V.L);V.CG.update(t,V.L);return V.CG}; bH=function(V){return(V.Ij?135:90)-$t(V)}; $t=function(V){var t=48,x=V.api.K();V.Ij?t=54:g.zo(x)&&!x.S?t=40:V.api.T("delhi_modern_web_player")&&(t=68);return t}; PI=function(V,t,x){V.X=t;V.HX=x;var u=t8(V),Z=V.N.J;var P=V.N;P=P.S+V.X*P.getLength();var K=g.Lm("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.Q$(P,!0),DURATION:g.Q$(Z,!0)}),R=vB(V.J,P*1E3);R=V.J[R].title;V.update({ariamin:Math.floor(V.N.S),ariamax:Math.floor(Z),arianow:Math.floor(P),arianowtext:R?R+" "+K:K});Z=V.clipStart;P=V.clipEnd;V.fI&&V.api.getPresentingPlayerType()!==2&&(Z=V.fI.startTimeMs/1E3,P=V.fI.endTimeMs/1E3);Z=lP(V.N,Z,0);R=lP(V.N,P,1);K=V.api.getVideoData();P=g.EY(t,Z,R);x=(K==null? 0:g.hM(K))?1:g.EY(x,Z,R);t=VL(V,t,u);g.Ao(V.NR,"transform","translateX("+t+"px)");E1(V,u,Z,P,"PLAY_PROGRESS");(K==null?0:V1(K))?(t=V.api.getProgressState().seekableEnd)&&E1(V,u,P,lP(V.N,t),"LIVE_BUFFER"):E1(V,u,Z,x,"LOAD_PROGRESS");if(V.api.T("web_player_heat_map_played_bar")){var f;(f=V.W[0])!=null&&f.W.setAttribute("width",(P*100).toFixed(2)+"%")}}; E1=function(V,t,x,u,Z){var P=V.J.length,K=t.J-V.cX*uH(V),R=x*K;x=KW(V,R);var f=u*K;K=KW(V,f);Z==="HOVER_PROGRESS"&&(K=KW(V,t.J*u,!0),f=t.J*u-rBs(V,t.J*u)*uH(V));u=Math.max(R-TTs(V,x),0);for(R=x;R=V.J.length)return V.L;for(var x=0,u=0;u0||V.kX.clientWidth>0?(P=t.clientWidth/x,V=-1*V.IC.clientWidth/x):(P/=x,V=-1*V.J[Z].element.offsetLeft/x),g.Ao(t,"background-size",P+"px"),g.Ao(t,"background-position-x",V+"px"))}; kt=function(V,t,x,u,Z){Z||V.api.K().S?t.style.width=x+"px":g.Ao(t,"transform","scalex("+(u?x/u:0)+")")}; KW=function(V,t,x){var u=0;(x===void 0?0:x)&&(t-=rBs(V,t)*uH(V));x=g.G(V.J);for(var Z=x.next();!Z.done;Z=x.next()){Z=Z.value;if(t>Z.width)t-=Z.width;else break;u++}return u===V.J.length?u-1:u}; VL=function(V,t,x){var u=t*V.N.J*1E3;for(var Z=-1,P=g.G(V.J),K=P.next();!K.done;K=P.next())K=K.value,u>K.startTime&&K.width>0&&Z++;u=Z<0?0:Z;Z=x.J-uH(V)*V.cX;return t*Z+uH(V)*u+x.W}; rBs=function(V,t){for(var x=V.J.length,u=0,Z=g.G(V.J),P=Z.next();!P.done;P=Z.next())if(P=P.value,P.width!==0)if(t>P.width)t-=P.width,t-=uH(V),u++;else break;return u===x?x-1:u}; g.nbL=function(V,t,x,u){var Z=V.L!==x,P=V.Ij!==u;V.w1=t;V.L=x;V.Ij=u;Jf(V)&&(t=V.S)!=null&&(t.scale=u?1.5:1);zfT(V);V.J.length===1&&(V.J[0].width=x||0);Z&&g.wB(V);V.S&&P&&Jf(V)&&(V.S.isEnabled&&(x=V.Ij?135:90,u=x-$t(V),V.DS.style.height=x+"px",g.Ao(V.wk,"transform","translateY("+-u+"px)"),g.Ao(V.progressBar,"transform","translateY("+-u+"px)")),PKC(V.S))}; fW=function(V){var t=!!V.fI&&V.api.getPresentingPlayerType()!==2,x=V.clipStart,u=V.clipEnd,Z=!0,P=!0;t&&V.fI?(x=V.fI.startTimeMs/1E3,u=V.fI.endTimeMs/1E3):(Z=x>V.N.S,P=V.N.J>0&&uV.X);g.Am(V.U1,"ytp-scrubber-button-hover",x===u&&V.J.length>1);if(V.api.T("web_player_heat_map_played_bar")){var P;(P=V.W[0])!=null&&P.S.setAttribute("width",(t.S*100).toFixed(2)+"%")}}}; aaL=function(V,t){var x=V.Es[t];t=V.P$[t];var u=t8(V),Z=lP(V.N,x.start/1E3,0),P=ZD8(x,V.Ij)/u.width;var K=lP(V.N,x.end/1E3,1);P!==Number.POSITIVE_INFINITY&&(Z=g.EY(Z,0,K-P));K=Math.min(K,Z+P);x.color&&(t.style.background=x.color);x=Z;t.style.left=Math.max(x*u.J+u.W,0)+"px";kt(V,t,g.EY((K-x)*u.J+u.W,0,u.width),u.width,!0)}; cB1=function(V,t){var x=t.getId();V.Es[x]===t&&(g.RZ(V.P$[x]),delete V.Es[x],delete V.P$[x])}; Jf=function(V){var t=g.J2(V.api.K())&&(V.api.T("web_enable_pip_on_miniplayer")||V.api.T("web_enable_auto_pip")),x;return!((x=V.api.getVideoData())==null?0:x.isLivePlayback)&&!V.api.isMinimized()&&!V.api.isInline()&&(!V.api.Q2()||!t)}; iH=function(V){V.S&&(V.S.disable(),V.xw=0,V.wk.style.removeProperty("transform"),V.progressBar.style.removeProperty("transform"),V.DS.style.removeProperty("height"),V.element.parentElement&&V.element.parentElement.style.removeProperty("height"))}; yB0=function(V,t){var x=t/bH(V)*$t(V);g.Ao(V.progressBar,"transform","translateY("+-t+"px)");g.Ao(V.wk,"transform","translateY("+-t+"px)");g.Ao(V.DS,"transform","translateY("+x+"px)");V.DS.style.height=t+x+"px";V.element.parentElement&&(V.element.parentElement.style.height=$t(V)-x+"px")}; jAh=function(V,t){t?V.C||(V.element.removeAttribute("aria-disabled"),V.C=new g.ZB(V.progressBar,!0),V.C.subscribe("hovermove",V.qZ1,V),V.C.subscribe("hoverend",V.O9C,V),V.C.subscribe("dragstart",V.H9j,V),V.C.subscribe("dragmove",V.XkU,V),V.C.subscribe("dragend",V.lTC,V),V.IB=V.listen("keydown",V.fY)):V.C&&(V.element.setAttribute("aria-disabled","true"),V.vk(V.IB),V.C.cancel(),V.C.dispose(),V.C=null)}; uH=function(V){return V.api.T("delhi_modern_web_player")?4:V.Ij?3:2}; mOl=function(V){var t;return!((t=V.fI)==null||!t.postId)&&V.api.getPresentingPlayerType()!==2}; O1=function(V,t){g.e.call(this,{Y:"button",vX:["ytp-remote-button","ytp-button"],j:{title:"Reproduzir na TV","aria-haspopup":"true","data-priority":"8"},mw:"{{icon}}"});this.U=V;this.W$=t;this.J=null;this.Z(V,"onMdxReceiversChange",this.ZS);this.Z(V,"presentingplayerstatechange",this.ZS);this.Z(V,"appresize",this.ZS);V.createClientVe(this.element,this,139118);this.ZS();this.listen("click",this.S,this);Lv(V,this.element,this)}; s1=function(V,t){g.e.call(this,{Y:"button",vX:["ytp-button","ytp-settings-button"],j:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":pD(),title:"Detalhes","data-tooltip-target-id":"ytp-settings-button"},D:[g.WS()]});this.U=V;this.W$=t;this.S=!0;this.listen("click",this.N);this.Z(V,"onPlaybackQualityChange",this.updateBadge);this.Z(V,"videodatachange",this.updateBadge);this.Z(V,"webglsettingschanged",this.updateBadge);this.Z(V,"appresize",this.J);Lv(V,this.element,this);this.U.createClientVe(this.element, this,28663);this.updateBadge();this.J(V.XX().getPlayerSize())}; lah=function(V,t){V.S=!!t;V.J(V.U.XX().getPlayerSize())}; NJ=function(V,t){uB.call(this,"Anota\u00e7\u00f5es",g.fh.b4);this.U=V;this.W$=t;this.J=!1;V.T("web_settings_menu_icons")&&this.setIcon({Y:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Y:"path",j:{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.Z(V,"videodatachange",this.ZS);this.Z(V,"onApiChange",this.ZS);this.subscribe("select",this.onSelect,this);this.ZS()}; pW=function(V,t){g.tS.call(this,"Faixa de \u00e1udio",g.fh.AUDIO,V,t);this.U=V;this.tracks={};g.OU(this.element,"ytp-audio-menu-item");this.countLabel=new g.e({Y:"div",D:[{Y:"span",mw:"Faixa de \u00e1udio"},{Y:"span",V:"ytp-menuitem-label-count",mw:"{{content}}"}]});V.T("web_settings_menu_icons")&&this.setIcon({Y:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Y:"path",j:{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.y(this,this.countLabel);g.HL(this,this.countLabel);this.Z(V,"videodatachange",this.ZS);this.Z(V,"onPlaybackAudioChange",this.ZS);this.ZS()}; A8=function(V,t){uB.call(this,"Reprodu\u00e7\u00e3o autom\u00e1tica",g.fh.dn);this.U=V;this.W$=t;this.J=!1;this.N=[];this.Z(V,"presentingplayerstatechange",this.S);this.subscribe("select",this.onSelect,this);V.createClientVe(this.element,this,113682);this.S()}; HaL=function(V,t){g.U5.call(this,g.Df({"aria-haspopup":"false"}),0,"Mais op\u00e7\u00f5es");this.U=V;this.W$=t;this.Z(this.element,"click",this.onClick);this.W$.Pk(this)}; UOT=function(V,t){var x;g.J2(V.K())&&(x={Y:"div",V:"ytp-panel-footer-content",D:[{Y:"span",mw:"Ajuste a qualidade do download em "},{Y:"a",V:"ytp-panel-footer-content-link",mw:"Detalhes",j:{href:"/account_downloads"}}]});g.tS.call(this,"Qualidade",g.fh.aW,V,t,void 0,void 0,x);this.U=V;this.zU={};this.X={};this.W={};this.cX=new Set;this.J=this.B=!1;this.L="unknown";this.Ij="";this.wk=new g.um;g.y(this,this.wk);this.B=this.U.T("web_player_use_new_api_for_quality_pullback");this.J=this.U.T("web_player_enable_premium_hbr_playback_cap"); V.T("web_settings_menu_icons")&&this.setIcon({Y:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Y:"path",j:{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.OU(this.S.element,"ytp-quality-menu");this.Z(V,"videodatachange",this.R6);this.Z(V,"videoplayerreset",this.R6);this.Z(V,"onPlaybackQualityChange",this.o3);this.R6();V.createClientVe(this.element,this,137721)}; efT=function(V,t,x){var u=V.zU[t],Z=g.U3[t];return DO1(V,u?u.qualityLabel:Z?Z+"p":"Autom\u00e1tico",t,x)}; dO0=function(V,t,x,u,Z){var P=(t=V.J?V.W[t]:V.X[t])&&t.quality,K=t&&t.qualityLabel;K=K?K:"Autom\u00e1tico";u&&(K="("+K);V=DO1(V,K,P||"",Z);u&&V.D.push(")");(u=(u=t&&t.paygatedQualityDetails)&&u.paygatedIndicatorText)&&x&&V.D.push({Y:"div",V:"ytp-premium-label",mw:u});return V}; DO1=function(V,t,x,u){t={Y:"span",vX:u,D:[t]};var Z;u="ytp-swatch-color";if(V.B||V.J)u="ytp-swatch-color-white";x==="highres"?Z="8K":x==="hd2880"?Z="5K":x==="hd2160"?Z="4K":x.indexOf("hd")===0&&x!=="hd720"&&(Z="HD");Z&&(t.D.push(" "),t.D.push({Y:"sup",V:u,mw:Z}));return t}; Sq=function(V,t,x,u,Z){var P={Y:"div",V:"ytp-input-slider-section",D:[{Y:"input",V:"ytp-input-slider",j:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};Z&&P.D.unshift(Z);g.e.call(this,P);this.N=V;this.W=t;this.B=x;this.initialValue=u;this.header=Z;this.J=this.f1("ytp-input-slider");this.S=u?u:V;this.init();this.Z(this.J,"input",this.L)}; JBl=function(V,t){V.S=t;V.updateValue("slidervalue",V.S);V.J.valueAsNumber=V.S;CKj(V,t)}; CKj=function(V,t){V.J.style.setProperty("--yt-slider-shape-gradient-percent",(t-V.N)/(V.W-V.N)*100+"%")}; GU=function(V){Sq.call(this,V.getAvailablePlaybackRates()[0],V.getAvailablePlaybackRates()[V.getAvailablePlaybackRates().length-1],.05,V.getPlaybackRate(),{Y:"div",V:"ytp-speedslider-indicator-container",D:[{Y:"div",V:"ytp-speedslider-badge"},{Y:"p",V:"ytp-speedslider-text"}]});this.U=V;this.X=dPL(this.wk,this);g.OU(this.J,"ytp-speedslider");this.C=this.f1("ytp-speedslider-text");this.cX=this.f1("ytp-speedslider-badge");hf9(this);this.Z(this.J,"change",this.zU);this.Z(this.J,"keydown",this.Ij)}; hf9=function(V){V.C.textContent=V.S+"x";V.cX.classList.toggle("ytp-speedslider-premium-badge",V.S>2&&V.U.T("enable_web_premium_varispeed"))}; IP=function(V,t,x,u,Z,P,K){g.e.call(this,{Y:"div",V:"ytp-slider-section",j:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},D:[{Y:"div",V:"ytp-slider",D:[{Y:"div",V:"ytp-slider-handle"}]}]});this.C=V;this.X=t;this.S=x;this.N=u;this.Ij=Z;this.Us=P;this.range=this.N-this.S;this.BX=this.f1("ytp-slider-section");this.W=this.f1("ytp-slider");this.wk=this.f1("ytp-slider-handle");this.L=new g.ZB(this.W, !0);this.J=K?K:x;g.y(this,this.L);this.L.subscribe("dragmove",this.FK,this);this.Z(this.element,"keydown",this.UC);this.Z(this.element,"wheel",this.cI);this.init()}; vI=function(V){IP.call(this,.05,.05,V.getAvailablePlaybackRates()[0],V.getAvailablePlaybackRates()[V.getAvailablePlaybackRates().length-1],150,20,V.getPlaybackRate());this.U=V;this.B=g.uc("P");this.cX=dPL(this.zU,this);g.OU(this.W,"ytp-speedslider");g.OU(this.B,"ytp-speedslider-text");V=this.B;var t=this.W;t.parentNode&&t.parentNode.insertBefore(V,t.nextSibling);wGz(this);this.Z(this.U,"onPlaybackRateChange",this.updateValues)}; wGz=function(V){V.B.textContent=VuK(V,V.J)+"x"}; VuK=function(V,t){V=Number(g.EY(t,V.S,V.N).toFixed(2));t=Math.floor((V+.001)*100%5+2E-15);var x=V;t!==0&&(x=V-t*.01);return Number(x.toFixed(2))}; tuz=function(V){g.Iz.call(this,{Y:"div",V:"ytp-speedslider-component"});V.T("web_settings_use_input_slider")?this.J=new GU(V):this.J=new vI(V);g.y(this,this.J);this.element.appendChild(this.J.element)}; xi8=function(V){var t=new tuz(V);lV.call(this,V,t,"Personalizado");g.y(this,t)}; u0l=function(V,t){var x=new xi8(V);g.tS.call(this,"Velocidade da reprodu\u00e7\u00e3o",g.fh.jg,V,t,LW(V)?void 0:"Personalizado",LW(V)?void 0:function(){g.es(t,x)}); var u=this;this.B=!1;g.y(this,x);this.L=new GU(V);g.y(this,this.L);V.T("web_settings_menu_icons")&&this.setIcon({Y:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{Y:"path",j:{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.U=V;this.B=!1;this.Ij=null;LW(V)?(this.J=g.Lm("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.U.getPlaybackRate().toString()}),this.W=this.U.getPlaybackRate()):this.W=this.J=null;this.X=this.U.getAvailablePlaybackRates();this.Z(V,"presentingplayerstatechange",this.ZS);var Z;((Z=this.U.getVideoData())==null?0:Z.R_())&&this.Z(V,"serverstitchedvideochange",this.ZS);this.Z(this.L.J,"change",function(){u.B=!0;u.ZS()}); this.ZS()}; Py9=function(V,t){var x=ZHK(t);V.J&&(V.B||t===V.W)?(V.ze(V.J),V.g9(t.toString())):V.ze(x)}; qXh=function(V){V.i9(V.X.map(ZHK));V.J=null;V.W=null;var t=V.U.getPlaybackRate();if(!V.X.includes(t)||LW(V.U))KZ4(V,t),V.ze(V.J)}; KZ4=function(V,t){V.W=t;V.J=g.Lm("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:t.toString()});t=V.X.map(ZHK);t.unshift(V.J);V.i9(t)}; ZHK=function(V){return V.toString()}; LW=function(V){return V.T("web_settings_menu_surface_custom_playback")}; RK4=function(V){return V.T("web_settings_menu_surface_custom_playback")&&V.T("web_settings_use_input_slider")}; $iL=function(V,t,x,u){var Z=new g.HJ(t,void 0,"Modifica\u00e7\u00e3o do v\u00eddeo");g.tS.call(this,u.text||"",V,t,x,"Modifica\u00e7\u00e3o do v\u00eddeo",function(){g.es(x,Z)}); var P=this;g.OU(this.element,"ytp-subtitles-options-menu-item");this.setting=u.option.toString();V=u.options;this.settings=g.kz(V,this.pm,this);this.B=Z;g.y(this,this.B);t=new g.U5({Y:"div",V:"ytp-menuitemtitle",mw:"Permitir um estilo de legenda diferente se especificado pelo v\u00eddeo."},0);g.y(this,t);this.B.Pk(t,!0);this.W=new g.U5({Y:"div",V:"ytp-menuitem",j:{role:"menuitemradio",tabindex:"0"},D:[{Y:"div",V:"ytp-menuitem-label",mw:"Ativ."}]},-1);g.y(this,this.W);this.B.Pk(this.W,!0);this.Z(this.W.element, "click",function(){f08(P,!0)}); this.J=new g.U5({Y:"div",V:"ytp-menuitem",j:{role:"menuitemradio",tabindex:"0"},D:[{Y:"div",V:"ytp-menuitem-label",mw:"Desat"}]},-2);g.y(this,this.J);this.B.Pk(this.J,!0);this.Z(this.J.element,"click",function(){f08(P,!1)}); this.i9(g.QV(V,this.pm))}; f08=function(V,t){V.publish("settingChange",V.setting+"Override",!t);V.W$.JQ()}; FZ=function(V,t){g.HJ.call(this,V,void 0,"Op\u00e7\u00f5es");var x=this;this.hj={};for(var u=0;u=0);if(!(t<0||t===V.W)){V.W=t;t=243*V.scale;var x=141*V.scale,u=x64(V.S,V.W,t);WqL(V.bg,u,t,x,!0);V.zU.start()}}; WZ8=function(V){var t=V.J;V.type===3&&V.cX.stop();V.api.removeEventListener("appresize",V.wk);V.X||t.setAttribute("title",V.N);V.N="";V.J=null}; nRl=function(V){g.e.call(this,{Y:"button",vX:["ytp-watch-later-button","ytp-button"],j:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.zo(V.K()))},D:[{Y:"div",V:"ytp-watch-later-icon",mw:"{{icon}}"},{Y:"div",V:"ytp-watch-later-title",mw:"Assistir mais tarde"}]});this.U=V;this.icon=null;this.visible=this.isRequestPending=this.J=!1;YZz(V);V.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.Z(V,"videoplayerreset",this.onReset);this.Z(V, "appresize",this.Sv);this.Z(V,"videodatachange",this.Sv);this.Z(V,"presentingplayerstatechange",this.Sv);this.Sv();V=this.U.K();var t=g.ls("yt-player-watch-later-pending");V.W&&t?(ICq(),oRl(this)):this.ZS(2);g.Am(this.element,"ytp-show-watch-later-title",g.zo(V));Lv(this.U,this.element,this)}; cdL=function(V){var t=V.U.getPlayerSize(),x=V.U.K(),u=V.U.getVideoData(),Z=g.zo(x)&&g.BL(V.U)&&g.J(V.U.getPlayerStateObject(),128),P=x.N;return x.o5&&t.width>=240&&!u.isAd()&&u.o5&&!Z&&!g.th(u)&&!V.U.isEmbedsShortsMode()&&!P}; ydK=function(V,t){qaj(g.UJ(V.U.K()),"wl_button",function(){ICq({videoId:t});window.location.reload()})}; oRl=function(V){if(!V.isRequestPending){V.isRequestPending=!0;V.ZS(3);var t=V.U.getVideoData();t=V.J?t.removeFromWatchLaterCommand:t.addToWatchLaterCommand;var x=V.U.tY(),u=V.J?function(){V.J=!1;V.isRequestPending=!1;V.ZS(2);V.U.K().L&&V.U.Os("WATCH_LATER_VIDEO_REMOVED")}:function(){V.J=!0; V.isRequestPending=!1;V.ZS(1);V.U.K().S&&V.U.CF(V.element);V.U.K().L&&V.U.Os("WATCH_LATER_VIDEO_ADDED")}; xu(x,t).then(u,function(){V.isRequestPending=!1;V.ZS(4,"Ocorreu um erro. Tente novamente mais tarde.");V.U.K().L&&V.U.Os("WATCH_LATER_ERROR","Ocorreu um erro. Tente novamente mais tarde.")})}}; j6L=function(V,t){if(t!==V.icon){switch(t){case 3:var x=q4();break;case 1:x=gN();break;case 2:x={Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{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:x={Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"path", m_:!0,j:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}V.updateValue("icon",x);V.icon=t}}; g.TU=function(){g.ZU.apply(this,arguments);this.Up=(this.lM=g.zo(this.api.K()))&&(this.api.K().S||fy()||qU());this.cB=48;this.FP=69;this.h_=this.fv=null;this.uC=[];this.SV=this.mX=this.Iv=this.cD=this.xU=null;this.S6=[];this.contextMenu=this.Kl=this.overflowButton=this.Ia=this.W0=this.searchButton=this.copyLinkButton=this.shareButton=this.EM=this.RB=this.title=this.channelAvatar=this.vA=this.tooltip=null;this.lx=!1;this.Xx=this.wV=this.Mm=this.pM=null;this.kI=this.ZK=this.Vq=!1}; l0q=function(V){var t=V.api.K(),x=g.J(V.api.getPlayerStateObject(),128);return t.W&&x&&!V.api.isFullscreen()}; HHK=function(V){if(V.XJ()&&!V.api.isEmbedsShortsMode()&&V.Ia){var t=V.api.T("web_player_hide_overflow_button_if_empty_menu");!V.EM||t&&!cdL(V.EM)||RQj(V.Ia,V.EM);!V.shareButton||t&&!pHs(V.shareButton)||RQj(V.Ia,V.shareButton);!V.copyLinkButton||t&&!IIK(V.copyLinkButton)||RQj(V.Ia,V.copyLinkButton)}else{if(V.Ia){t=V.Ia;for(var x=g.G(t.actionButtons),u=x.next();!u.done;u=x.next())u.value.detach();t.actionButtons=[]}V.searchButton&&!g.fQ(V.RB.element,V.searchButton.element)&&V.searchButton.t6(V.RB.element); V.EM&&!g.fQ(V.RB.element,V.EM.element)&&V.EM.t6(V.RB.element);V.shareButton&&!g.fQ(V.RB.element,V.shareButton.element)&&V.shareButton.t6(V.RB.element);V.copyLinkButton&&!g.fQ(V.RB.element,V.copyLinkButton.element)&&V.copyLinkButton.t6(V.RB.element)}}; Ui4=function(V,t,x){t=x?t.lastElementChild:t.firstElementChild;for(var u=null;t;){if(Io(t,"display")!=="none"&&t.getAttribute("aria-hidden")!=="true"){var Z=void 0;t.tabIndex>=0?Z=t:Z=Ui4(V,t,x);Z&&(u?x?Z.tabIndex>u.tabIndex&&(u=Z):Z.tabIndexu/1E3+1)return{msg:"in-the-past"};if(P.isLivePlayback&&!isFinite(u))return{msg:"live-infinite"};(u=t.Bw())&&u.isView()&&(u=u.mediaElement);if(u&&u.PD().length>12&&g.GD(Z))return{msg:"played-ranges"};if(!Z.N)return null;if(!K)return{msg:"no-pvd-formats"};if(!Z.N.J||!K.J)return{msg:"non-dash"};u=K.videoInfos[0];var R=Z.N.videoInfos[0];V.L&&ZD(P)&&(u=t.Kf(),R= x.Kf());if(!u||!R)return{msg:"no-video-info"};if(V.N&&(V8(u)||V8(R)))return{msg:"av1"};t=V.J&&P.Lc()&&DH();if(R.containerType!==u.containerType)if(t)P.J6("sgap",{ierr:"container"});else return{msg:"container"};if(V.S&&!t&&(R.lD!==u.lD||R.lD===""||u.lD===""))return{msg:"codec"};if(V.W&&R.video&&u.video&&Math.abs(R.video.width/R.video.height-u.video.width/u.video.height)>.01)return{msg:"ratio"};if(g.GD(P)&&g.GD(Z))return{msg:"content-protection"};K=K.J[0];Z=Z.N.J[0];x=K.audio;var f=Z.audio;if(x.sampleRate!== f.sampleRate&&!g.oa)if(t)P.J6("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:K.itag,cr:x.sampleRate,ni:Z.itag,nr:f.sampleRate};return(x.numChannels||2)!==(f.numChannels||2)?{msg:"channel-count"}:V.G&&P.Lc()&&u.video.fps!==R.video.fps?{msg:"fps"}:null}; Cyw=function(V,t,x){var u=V.getVideoData(),Z=t.getVideoData();if(!u.K().supportsGaplessShorts())return{nq:"env"};if(x.B){if(u.Te&&!u.isAd()||Z.Te&&!Z.isAd())return{nq:"autoplay"}}else if(u.Te||Z.Te)return{nq:"autoplay"};if(!u.C)return{nq:"client"};if(!V.gg())return{nq:"no-empty"};V=dij(x,V,t,Infinity);return V!=null?{nq:V.msg}:null}; nW=function(V){g.c.call(this);this.app=V;this.G=this.W=this.S=this.J=null;this.N=1;this.events=new g.j6(this);this.events.Z(this.app.A6,g.i4("gaplessshortslooprange"),this.C);g.y(this,this.events)}; JdK=function(){this.W=this.B=this.N=this.L=this.G=this.S=this.J=!1}; hKs=function(V){var t=new JdK;t.J=V.T("h5_gapless_support_types_diff");t.G=V.T("h5_gapless_error_on_fps_diff");t.L=V.T("html5_gapless_use_format_info_fix");t.N=V.T("html5_gapless_disable_on_av1")&&!V.T("html5_gapless_enable_on_av1");t.S=V.T("html5_gapless_check_codec_diff_strictly");t.B=V.T("html5_gapless_on_ad_autoplay");t.W=V.T("html5_gapless_disable_diff_aspect_radio");return t}; g.cI=function(V,t,x,u){u=u===void 0?!1:u;ug.call(this);this.mediaElement=V;this.start=t;this.end=x;this.J=u}; wms=function(V,t,x,u,Z,P){P=P===void 0?0:P;g.c.call(this);var K=this;this.policy=V;this.J=t;this.S=x;this.yP=Z;this.G=P;this.W=this.N=null;this.currentVideoDuration=this.B=-1;this.L=!1;this.nu=new xJ;this.kV=u-t.SB()*1E3;this.nu.then(void 0,function(){}); this.timeout=new g.qK(function(){K.Qg("timeout")},1E4); g.y(this,this.timeout);this.C=isFinite(u);this.status={status:0,error:null}}; xkl=function(V){var t,x,u,Z,P,K,R,f,b,E;return g.Q(function(k){if(k.J==1){if(V.uD())return k.return(Promise.reject(Error(V.status.error||"disposed")));V.timeout.start();t=g.yL.J3();return g.m(k,V.nu,2)}g.yL.y4("gtfta",t);x=V.J.Bw();if(x.isEnded())return V.Qg("ended_in_finishTransition"),k.return(Promise.reject(Error(V.status.error||"")));if(!V.W||!CF(V.W))return V.Qg("next_mse_closed"),k.return(Promise.reject(Error(V.status.error||"")));if(V.S.tK()!==V.W)return V.Qg("next_mse_mismatch"),k.return(Promise.reject(Error(V.status.error|| "")));u=VR0(V);Z=u.O4;P=u.VY;K=u.pA;V.J.AY(!1,!0);R=tRK(x,Z,K,!V.S.getVideoData().isAd());V.S.setMediaElement(R);(f=V.J.ZE())&&V.S.cC(f.TB,f.b3);V.C&&(V.S.seekTo(V.S.getCurrentTime()+.001,{Mw:!0,Xp:3,xK:"gapless_pseudo"}),R.play(),jL());b=x.nI();b.cpn=V.J.getVideoData().clientPlaybackNonce;b.st=""+Z;b.et=""+K;V.S.J6("gapless",b);V.J.J6("gaplessTo",{cpn:V.S.getVideoData().clientPlaybackNonce});E=V.J.getPlayerType()===V.S.getPlayerType();V.J.tv(P,!0,!1,E,V.S.getVideoData().clientPlaybackNonce);V.S.tv(V.S.getCurrentTime(), !0,!0,E,V.J.getVideoData().clientPlaybackNonce);V.S.rq();g.sb(function(){!V.S.getVideoData().zU&&V.S.getPlayerState().isOrWillBePlaying()&&V.S.UG()}); jq(V,6);V.dispose();return k.return(Promise.resolve())})}; Kys=function(V){if(V.S.getVideoData().N){var t=V.yP.K().T("html5_gapless_suspend_next_loader")&&V.G===1;V.S.AP(V.W,t,u1s(V));jq(V,3);Z$T(V);var x=PI9(V);t=x.UA;x=x.Q0;t.subscribe("updateend",V.k8,V);x.subscribe("updateend",V.k8,V);V.k8(t);V.k8(x)}}; Z$T=function(V){V.J.unsubscribe("internalvideodatachange",V.Ut,V);V.S.unsubscribe("internalvideodatachange",V.Ut,V);V.yP.K().T("html5_gapless_use_format_info_fix")&&(V.J.unsubscribe("internalvideoformatchange",V.Ut,V),V.S.unsubscribe("internalvideoformatchange",V.Ut,V));V.J.unsubscribe("mediasourceattached",V.Ut,V);V.S.unsubscribe("statechange",V.qO,V)}; tRK=function(V,t,x,u){V=V.isView()?V.mediaElement:V;return new g.cI(V,t,x,u)}; jq=function(V,t){t<=V.status.status||(V.status={status:t,error:null},t===5&&V.nu.resolve())}; u1s=function(V){return V.yP.K().T("html5_gapless_no_clear_buffer_timeline")&&V.G===1&&qm(V.J.getVideoData())}; VR0=function(V){var t=V.J.Bw();t=t.isView()?t.start:0;var x=V.J.getVideoData().isLivePlayback?Infinity:V.J.Du(!0);x=Math.min(V.kV/1E3,x)+t;var u=V.C?100:0;V=x-V.S.o_()+u;return{QG:t,O4:V,VY:x,pA:Infinity}}; PI9=function(V){return{UA:V.N.J.R5,Q0:V.N.S.R5}}; lH=function(V){g.c.call(this);var t=this;this.app=V;this.G=this.S=this.L=this.J=null;this.X=!1;this.N=this.W=null;this.C=hKs(this.app.K());this.B=function(){g.sb(function(){qCs(t)})}}; RY4=function(V,t,x,u,Z){u=u===void 0?0:u;Z=Z===void 0?0:Z;var P=t.Go;V.gg()||HI(V);V.W=new xJ;V.J=P;V.L=t;t=x;var K=Z===0;K=K===void 0?!0:K;var R=V.app.rk(),f=R.getVideoData().isLivePlayback?Infinity:R.Du(!0)*1E3;t>f&&(t=f-200,V.X=!0);K&&R.getCurrentTime()>=t/1E3?V.B():(V.S=R,K&&(K=t,t=V.S,V.app.A6.addEventListener(g.km("vqueued"),V.B),K=isFinite(K)||K/1E3>t.getDuration()?K:0x8000000000000,V.G=new g.b4(K,0x8000000000000,{namespace:"vqueued"}),t.addCueRange(V.G)));K=u/=1E3;t=P.getVideoData().J;u&& t&&V.S&&(R=u,f=0,P.getVideoData().isLivePlayback&&(K=Math.min(x/1E3,V.S.Du(!0)),f=Math.max(0,K-V.S.getCurrentTime()),R=Math.min(u,P.Du()+f)),K=Dfh(t,R)||u,K!==u&&V.J.J6("qvaln",{st:u,at:K,rm:f,ct:R}));P=K;u=V.J;u.getVideoData().r9=!0;u.getVideoData().C=!0;u.lC(!0);t={};V.S&&(t=V.S.al(),K=V.S.getVideoData().clientPlaybackNonce,t={crt:(t*1E3).toFixed(),cpn:K});u.J6("queued",t);P!==0&&u.seekTo(P+.01,{Mw:!0,Xp:3,xK:"videoqueuer_queued"});V.N=new wms(V.C,V.app.rk(),V.J,x,V.app,Z);x=V.N;x.status.status!== Infinity&&(jq(x,1),x.J.subscribe("internalvideodatachange",x.Ut,x),x.S.subscribe("internalvideodatachange",x.Ut,x),x.yP.K().T("html5_gapless_use_format_info_fix")&&(x.J.subscribe("internalvideoformatchange",x.Ut,x),x.S.subscribe("internalvideoformatchange",x.Ut,x)),x.J.subscribe("mediasourceattached",x.Ut,x),x.S.subscribe("statechange",x.qO,x),x.J.subscribe("newelementrequired",x.zY,x),x.Ut());return V.W}; qCs=function(V){var t,x,u,Z,P,K,R,f,b;g.Q(function(E){switch(E.J){case 1:if(V.uD()||!V.W||!V.J)return E.return();V.X&&V.app.rk().zD(!0,!1);x=V.app.K().T("html5_force_csdai_gapful_transition")&&((t=V.app.rk())==null?void 0:t.getVideoData().isDaiEnabled());u=null;if(!V.N||x){E.FX(2);break}g.AT(E,3);return g.m(E,xkl(V.N),5);case 5:g.GK(E,2);break;case 3:u=Z=g.I9(E);case 2:if(!V.J)return E.return();g.yL.oH("vqsp",function(){V.app.CO(V.L)}); if(!V.J)return E.return();P=V.J.Bw();V.app.K().T("html5_gapless_seek_on_negative_time")&&P&&P.getCurrentTime()<-.01&&V.J.seekTo(0);g.yL.oH("vqpv",function(){V.app.playVideo()}); if(u||x)V.J?(K=u?u.message:"forced",(R=V.S)==null||R.J6("gapfulfbk",{r:K}),V.J.vy(K)):(f=V.S)==null||f.J6("gapsp",{});b=V.W;HI(V);b&&b.resolve();return E.return(Promise.resolve())}})}; HI=function(V,t){t=t===void 0?!1:t;if(V.S){if(V.G){var x=V.S;V.app.A6.removeEventListener(g.km("vqueued"),V.B);x.removeCueRange(V.G)}V.S=null;V.G=null}V.N&&(V.N.status.status!==6&&(x=V.N,x.status.status!==Infinity&&x.G!==1&&x.Qg("Canceled")),V.N=null);V.W=null;V.J&&!t&&V.J!==V.app.c$()&&V.J!==V.app.rk()&&V.J.S8.dispose();V.J&&t&&V.J.bA();V.J=null;V.L=null;V.X=!1}; fq4=function(V){var t;return((t=V.N)==null?void 0:t.currentVideoDuration)||-1}; $kK=function(V,t,x){if(V.gg())return"qie";if(V.J==null||V.J.S8.uD()||V.J.getVideoData()==null)return"qpd";if(t.videoId!==V.J.Pr())return"vinm";if(fq4(V)<=0)return"ivd";if(x!==1)return"upt";if((x=V.N)==null)V=void 0;else if(x.getStatus().status!==5)V="niss";else if(dij(x.policy,x.J,x.S,x.kV)!=null)V="pge";else{t=PI9(x);V=t.UA;var u=t.Q0;t=g.S7(x.yP.K().experiments,"html5_shorts_gapless_next_buffer_in_seconds");x=x.B+t;u=iQ(u.O1(),x);V=iQ(V.O1(),x);V=!(t>0)||u&&V?null:"neb"}return V!=null?V:null}; b$9=function(){g.Np.call(this);var V=this;this.fullscreen=0;this.W=this.N=this.pictureInPicture=this.J=this.S=this.inline=!1;this.G=function(){V.e3()}; iVC(this.G);this.B=this.getVisibilityState(this.F$(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Q2(),this.EF(),this.bH(),this.A5())}; FS=function(V){return!(V.isMinimized()||V.isInline()||V.isBackground()||V.Q2()||V.EF()||V.bH()||V.A5())}; E79=function(V,t){g.c.call(this);this.G=this.N=this.B=this.J=null;this.W=V;this.S=t}; Nvz=function(V){var t=V.experiments,x=t.MP.bind(t);kgK=x("html5_use_async_stopVideo");i$h=x("html5_pause_for_async_stopVideo");O$1=x("html5_not_reset_media_source");x("html5_listen_for_audio_output_changed")&&(g9T=!0);JK=x("html5_not_reset_media_source");ss9=x("html5_not_reset_media_source");Hq=x("html5_retain_source_buffer_appends_for_debugging");xSj=x("web_enable_auto_pip")||x("web_enable_pip_on_miniplayer");x("html5_mediastream_applies_timestamp_offset")&&(AL=!0);var u=g.S7(t,"html5_cobalt_override_quic"); u&&mR("QUIC",+(u>0));(u=g.S7(t,"html5_cobalt_audio_write_ahead_ms"))&&mR("Media.AudioWriteDurationLocal",u);(u=x("html5_cobalt_enable_decode_to_texture"))&&mR("Media.PlayerConfiguration.DecodeToTexturePreferred",u?1:0);(V.d6()||x("html5_log_cpu_info"))&&$QL();Error.stackTraceLimit=50;var Z=g.S7(t,"html5_idle_rate_limit_ms");Z&&Object.defineProperty(window,"requestIdleCallback",{value:function(P){return window.setTimeout(P,Z)}}); IoK(V.G);FB=x("html5_use_ump_request_slicer");A5L=x("html5_record_now");x("html5_disable_streaming_xhr")&&(wV=!1);x("html5_byterate_constraints")&&(K1=!0);x("html5_use_non_active_broadcast_for_post_live")&&(dL=!0);x("html5_sunset_aac_high_codec_family")&&(C5["141"]="a")}; pAl=function(V){return V.slice(12).replace(/_[a-z]/g,function(t){return t.toUpperCase().replace("_","")}).replace("Dot",".")}; A1z=function(V){var t={},x;for(x in V.experiments.flags)if(x.startsWith("cobalt_h5vcc")){var u=pAl(x),Z=g.S7(V.experiments,x);u&&Z&&(t[u]=mR(u,Z))}return t}; U1=function(V,t,x,u,Z){Z=Z===void 0?[]:Z;g.c.call(this);this.Rj=V;this.xX=t;this.W=x;this.segments=Z;this.J=void 0;this.S=new Map;Z.length&&(this.J=Z[0])}; SCj=function(V){if(!(V.segments.length<2)){var t=V.segments.shift();if(t){var x=t.J,u=[];if(x.size){x=g.G(x.values());for(var Z=x.next();!Z.done;Z=x.next()){Z=g.G(Z.value);for(var P=Z.next();!P.done;P=Z.next()){P=P.value;for(var K=g.G(P.segments),R=K.next();!R.done;R=K.next())(R=D6(R.value))&&u.push(R);P.removeAll()}}}(x=D6(t))&&u.push(x);u=g.G(u);for(x=u.next();!x.done;x=u.next())V.S.delete(x.value);t.dispose()}}}; eq=function(V,t,x,u){if(!V.J||t>x)return!1;t=new U1(V.Rj,t,x,V.J,u);u=g.G(u);for(x=u.next();!x.done;x=u.next()){x=x.value;var Z=D6(x);Z&&Z!==D6(V.J)&&V.S.set(Z,[x])}V=V.J;V.J.has(t.uv())?V.J.get(t.uv()).push(t):V.J.set(t.uv(),[t]);return!0}; Rv=function(V,t){return V.S.get(t)}; Gg8=function(V,t,x){V.S.set(t,x)}; CW=function(V,t,x,u,Z,P){return new Iq0(x,x+(u||0),!u,t,V,Z,P)}; Iq0=function(V,t,x,u,Z,P,K){g.c.call(this);this.xX=V;this.N=t;this.S=x;this.type=u;this.W=Z;this.videoData=P;this.pZ=K;this.J=new Map;SQ(P)}; D6=function(V){return V.videoData.clientPlaybackNonce}; v7j=function(V){if(V.J.size)for(var t=g.G(V.J.values()),x=t.next();!x.done;x=t.next()){x=g.G(x.value);for(var u=x.next();!u.done;u=x.next())u.value.dispose()}V.J.clear()}; LyT=function(V){this.end=this.start=V}; g.J8=function(V,t,x,u){g.c.call(this);var Z=this;this.api=V;this.Rj=t;this.app=u;this.Es=new Map;this.yC=new Map;this.L1=new Map;this.S=new Map;this.W=[];this.G=[];this.N=new Map;this.Qt=new Map;this.X=new Map;this.HX=null;this.kX=NaN;this.Fc=this.CI=null;this.P$=new g.qK(function(){Fyq(Z,Z.kX,Z.CI||void 0)}); this.events=new g.j6(this);this.w6=15E3;this.wk=new g.qK(function(){Z.Us=!0;Z.playback.El(Z.w6);MRl(Z);Z.KH(!1)},this.w6); this.Us=!1;this.B=new Map;this.Tc=[];this.Ij=null;this.U1=new Set;this.BX=[];this.IC=[];this.q6=[];this.Fz=[];this.J=void 0;this.DS=0;this.xw=!0;this.zU=!1;this.dk=[];this.r9=new Set;this.o5=new Set;this.SH=new Set;this.UV=0;this.QC=new Set;this.VP=0;this.GA=this.Td=!1;this.Eh=this.C="";this.gk=null;this.Wk={CzX:function(){return Z.S}, QHX:function(){return Z.W}, rqX:function(){return Z.N}, L$:function(P){Z.onCueRangeEnter(Z.S.get(P))}, dq1:function(P){Z.onCueRangeExit(Z.S.get(P))}, OO1:function(P,K){Z.S.set(P,K)}, lW1:function(P){Z.Eh=P}, Q8:function(){return Z.Q8()}, Dqj:function(P){return Z.X.get(P)}}; this.playback=x.Go;this.playback.getPlayerType();this.playback.z6(this);this.cX=this.Rj.d6();g.y(this,this.P$);g.y(this,this.events);g.y(this,this.wk);this.events.Z(this.api,g.km("serverstitchedcuerange"),this.onCueRangeEnter);this.events.Z(this.api,g.i4("serverstitchedcuerange"),this.onCueRangeExit)}; Bvl=function(V,t,x,u,Z,P,K,R){var f=g7L(V,P,P+Z);V.Us&&V.playback.J6("sdai",{adaftto:1});x||V.playback.J6("sdai",{missadcon:1,enter:P,len:Z,aid:R});V.L&&!V.L.zx&&(V.L.zx=R);V.GA&&V.playback.J6("sdai",{adfbk:1,enter:P,len:Z,aid:R});var b=V.playback;K=K===void 0?P+Z:K;P===K&&!Z&&V.Rj.T("html5_allow_zero_duration_ads_on_timeline")&&V.playback.J6("sdai",{attl0d:1});P>K&&h8(V,{reason:"enterTime_greater_than_return",xX:P,wL:K});var E=b.L9()*1E3;Pb&&h8(V,{reason:"parent_return_greater_than_content_duration",wL:K,PAy:b});b=null;E=g.qY(V.G,{wL:P},function(k,O){return k.wL-O.wL}); E>=0&&(b=V.G[E],b.wL>P&&XA8(V,t.video_id||"",P,K,b));if(f&&b)for(E=0;E.5&&V.playback.J6("sdai",{ttdtb:1,delta:K,cpn:Z.cpn,enter:t.adCpn,exit:x.adCpn,seek:u,skip:P});V.api.T("html5_ssdai_enable_media_end_cue_range")&&V.api.qM();if(t.isAd&&x.isAd){Z=!!P;if(t.adCpn&&x.adCpn){var R=V.N.get(t.adCpn);var f=V.N.get(x.adCpn)}Z?V.playback.J6("sdai",{igtransskip:1,enter:t.adCpn,exit:x.adCpn,seek:u,skip:P}):YC4(V,f,R,x.VV,t.VV,u,Z)}else if(!t.isAd&&x.isAd){V.Eh=Z.cpn;V.api.publish("serverstitchedvideochange"); R=VP(V,"a2c");V.playback.J6("sdai",R);V.UV=0;if(R=x.ZZ)V.DS=R.end;var b;x.adCpn&&(b=V.N.get(x.adCpn));b&&V.playback.ZL(b,Z,x.VV,t.VV,u,!!P)}else if(t.isAd&&!x.isAd){var E;t.adCpn&&(E=V.N.get(t.adCpn));E&&(V.DS=0,V.Eh=E.cpn,mkq(V,E),b=VP(V,"c2a",E),V.playback.J6("sdai",b),V.UV=1,V.playback.ZL(Z,E,x.VV,t.VV,u,!!P))}}; xq=function(V,t,x){x=x===void 0?0:x;var u=g.qY(V.G,{xX:(t+x)*1E3},function(R,f){return R.xX-f.xX}); u=u<0?(u+2)*-1:u;if(u>=0)for(var Z=t*1E3,P=u;P<=u+1&&P=K.xX-x*1E3&&Z<=K.wL+x*1E3)return{W2:K,vJ:t}}return{W2:void 0,vJ:t}}; aqC=function(V,t){var x="";(t=Qsh(V,t))&&(x=t.getId());return x?V.N.get(x):void 0}; Qsh=function(V,t){if(V.Eh){var x=V.S.get(V.Eh);if(x&&x.start-200<=t&&x.end+200>=t)return x}V=g.G(V.S.values());for(x=V.next();!x.done;x=V.next())if(x=x.value,x.start<=t&&x.end>=t)return x}; Fyq=function(V,t,x){var u=V.Fc||V.app.rk().getPlayerState();uT(V,!0);V.playback.seekTo(t,x);V=V.app.rk();t=V.getPlayerState();u.isOrWillBePlaying()&&!t.isOrWillBePlaying()?V.playVideo():u.isPaused()&&!t.isPaused()&&V.pauseVideo()}; uT=function(V,t){V.kX=NaN;V.CI=null;V.P$.stop();V.HX&&t&&V.HX.Dm();V.Fc=null;V.HX=null}; r1s=function(V){var t=t===void 0?-1:t;var x=x===void 0?Infinity:x;for(var u=[],Z=g.G(V.G),P=Z.next();!P.done;P=Z.next())P=P.value,(P.xXx)&&u.push(P);V.G=u;u=g.G(V.S.values());for(Z=u.next();!Z.done;Z=u.next())Z=Z.value,Z.start>=t&&Z.end<=x&&(V.playback.removeCueRange(Z),V.S.delete(Z.getId()),V.playback.J6("sdai",{rmAdCR:1}));u=xq(V,t/1E3);t=u.W2;u=u.vJ;if(t&&(u=u*1E3-t.xX,Z=t.xX+u,t.durationMs=u,t.wL=Z,u=V.S.get(t.cpn))){Z=g.G(V.W);for(P=Z.next();!P.done;P=Z.next())P=P.value,P.start===u.end? P.start=t.xX+t.durationMs:P.end===u.start&&(P.end=t.xX);u.start=t.xX;u.end=t.xX+t.durationMs}if(t=xq(V,x/1E3).W2){var K;u="playback_timelinePlaybackId_"+t.QP+"_video_id_"+((K=t.videoData)==null?void 0:K.videoId)+"_durationMs_"+t.durationMs+"_enterTimeMs_"+t.xX+"_parentReturnTimeMs_"+t.wL;V.eM("Invalid_clearEndTimeMs_"+x+"_that_falls_during_"+u+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; TvL=function(V){V.Es.clear();V.yC.clear();V.L1.clear();V.S.clear();V.W=[];V.G=[];V.N.clear();V.Qt.clear();V.X.clear();V.B.clear();V.Tc=[];V.Ij=null;V.U1.clear();V.BX=[];V.IC=[];V.q6=[];V.Fz=[];V.dk=[];V.r9.clear();V.o5.clear();V.SH.clear();V.QC.clear();V.Us=!1;V.J=void 0;V.DS=0;V.xw=!0;V.zU=!1;V.UV=0;V.VP=0;V.Td=!1;V.GA=!1;V.C="";V.wk.isActive()&&wo(V)}; o7q=function(V,t,x,u,Z,P){if(!V.GA)if(g.Wy0(V,x))V.cX&&V.playback.J6("sdai",{gdu:"undec",seg:x,itag:Z});else if(t=ZI(V,t,x,u,P),!(V.playback.getVideoData().R_()&&(t==null?0:t.TG)))return t}; ZI=function(V,t,x,u,Z){var P=V.B.get(x);if(!P){if(P=n7h(V,t))return P;t=P5(V,x-1,u!=null?u:2);if(Z)return V.playback.J6("sdai",{misscue:Z,sq:x,type:u,prevsstate:t==null?void 0:t.eb,prevrecord:V.B.has(x-1)}),V.B.get(x-1);if((t==null?void 0:t.eb)===2)return V.playback.J6("sdai",{adnf:1,sq:x,type:u,prevrecord:V.B.has(x-1)}),V.B.get(x-1)}return P}; n7h=function(V,t){t+=V.Jq();if(V.Rj.T("html5_lifa_overdecorate_fix"))a:{var x=1;x=x===void 0?0:x;var u=t*1E3;V=g.G(V.G);for(var Z=V.next();!Z.done;Z=V.next()){Z=Z.value;var P=Z.Xq?Z.Xq*1E3:Z.xX;if(u>=Z.xX-x*1E3&&u<=P+Z.durationMs+x*1E3){x={W2:Z,vJ:t};break a}}x={W2:void 0,vJ:t}}else V.Rj.T("html5_use_time_without_threshold_first")&&(x=xq(V,t)),V.Rj.T("html5_use_time_without_threshold_first")&&((u=x)==null?0:u.W2)||(x=xq(V,t,1));var K;return(K=x)==null?void 0:K.W2}; c19=function(V,t){t=t===void 0?"":t;var x=fo(t)||void 0;if(!t||!x){var u;V.playback.J6("sdai",{adcfg:(u=t)==null?void 0:u.length,dcfg:x==null?void 0:x.length})}return x}; y1q=function(V){if(V.dk.length)for(var t=g.G(V.dk),x=t.next();!x.done;x=t.next())V.onCueRangeExit(x.value);t=g.G(V.S.values());for(x=t.next();!x.done;x=t.next())V.playback.removeCueRange(x.value);t=g.G(V.W);for(x=t.next();!x.done;x=t.next())V.playback.removeCueRange(x.value);V.S.clear();V.W=[];V.Es.clear();V.yC.clear();V.L1.clear();V.J||(V.xw=!0)}; YC4=function(V,t,x,u,Z,P,K){if(t&&x){V.Eh=x.cpn;mkq(V,x);var R=VP(V,"a2a",x);V.playback.J6("sdai",R);V.UV++;V.playback.ZL(t,x,u||0,Z||0,!!P,!!K)}else V.playback.J6("sdai",{misspbkonadtrans:1,enter:(x==null?void 0:x.cpn)||"",exit:(t==null?void 0:t.cpn)||"",seek:P,skip:K})}; P5=function(V,t,x){if(x===1){if(V.Es.has(t))return V.Es.get(t)}else{if(x===2&&V.yC.has(t))return V.yC.get(t);if(x===3&&V.L1.has(t))return V.L1.get(t)}}; lql=function(V,t,x,u){if(u)for(u=0;ux){var P=Z.end;Z.end=t;jsw(V,x,P)}else if(Z.start>=t&&Z.startx)Z.start=x;else if(Z.end>t&&Z.end<=x&&Z.start=t&&Z.end<=x){V.playback.removeCueRange(Z);if(V.dk.includes(Z))V.onCueRangeExit(Z);V.W.splice(u,1);continue}u++}else jsw(V,t,x)}; jsw=function(V,t,x){t=V.Hn(t,x);x=!0;g.bo(V.W,t,function(K,R){return K.start-R.start}); for(var u=0;u0){var Z=V.W[u],P=V.W[u-1];if(Math.round(P.end/1E3)>=Math.round(Z.start/1E3)){P.end=Z.end;Z!==t?V.playback.removeCueRange(Z):x=!1;V.W.splice(u,1);continue}}u++}if(x)for(V.playback.addCueRange(t),t=V.playback.tR("serverstitchedcuerange",36E5),t=g.G(t),x=t.next();!x.done;x=t.next())V.S.delete(x.value.getId())}; Kz=function(V,t,x){if(x===void 0||!x){x=g.G(V.Tc);for(var u=x.next();!u.done;u=x.next()){u=u.value;if(t>=u.start&&t<=u.end)return;if(t===u.end+1){u.end+=1;return}}V.Tc.push(new LyT(t))}}; g.Wy0=function(V,t){V=g.G(V.Tc);for(var x=V.next();!x.done;x=V.next())if(x=x.value,t>=x.start&&t<=x.end)return!0;return!1}; XA8=function(V,t,x,u,Z){var P;t={reason:"overlapping_playbacks",Gf8:t,xX:x,wL:u,Pzw:Z.QP,Zu1:((P=Z.videoData)==null?void 0:P.videoId)||"",buC:Z.durationMs,AqS:Z.xX,V96:Z.wL};h8(V,t)}; h8=function(V,t,x){V.playback.u6(t,x)}; H$q=function(V,t){var x=[];V=V.X.get(t);if(!V)return[];V=g.G(V);for(t=V.next();!t.done;t=V.next())t=t.value,t.cpn&&x.push(t.cpn);return x}; Uks=function(V,t,x){var u=0;V=V.X.get(x);if(!V)return-1;V=g.G(V);for(x=V.next();!x.done;x=V.next()){if(x.value.cpn===t)return u;u++}return-1}; Dkw=function(V,t){var x=[];V=V.X.get(t);if(!V)return[];V=g.G(V);for(var u=V.next();!u.done;u=V.next())t=void 0,(u=(t=u.value.videoData)==null?void 0:t.videoId)&&x.push(u);return x}; eY1=function(V,t){var x=0;V=V.X.get(t);if(!V)return 0;V=g.G(V);for(t=V.next();!t.done;t=V.next())t=t.value,t.durationMs!==0&&t.wL!==t.xX&&x++;return x}; dkl=function(V,t,x){var u=!1;if(x&&(x=V.X.get(x))){x=g.G(x);for(var Z=x.next();!Z.done;Z=x.next())Z=Z.value,Z.durationMs!==0&&Z.wL!==Z.xX&&(Z=Z.cpn,t===Z&&(u=!0),u&&!V.o5.has(Z)&&(V.playback.J6("sdai",{decoratedAd:Z}),V.o5.add(Z)))}}; MRl=function(V){V.cX&&V.playback.J6("sdai",{adf:"0_"+((new Date).getTime()/1E3-V.VP)+"_isTimeout_"+V.Us})}; g7L=function(V,t,x){if(V.BX.length)for(var u=g.G(V.BX),Z=u.next(),P={};!Z.done;P={A0:void 0},Z=u.next()){P.A0=Z.value;Z=P.A0.startSecs*1E3;var K=P.A0.To*1E3+Z;if(t>Z&&tZ&&x0&&u>t*1E3+V.BhX)&&(u=td0(V,x))){t=!1;x=void 0;u=g.G(u.segments);for(Z=u.next();!Z.done;Z=u.next()){Z=Z.value;if(t){x=Z;break}D6(Z)===V.Eh&&(t=!0)}u=void 0;if(x)u=D6(x);else if(t){var P;u=(P=V.timeline.J)==null?void 0:D6(P)}if(u)V.finishSegmentByCpn(V.Eh,u,2,void 0);else{var K;V.api.J6("ssap",{mfnc:1,mfncc:(K=V.timeline.J)== null?void 0:D6(K)})}}}}; hYw=function(V){return V.api.T("html5_force_ssap_gapful_switch")||V.api.T("html5_ssap_enable_legacy_browser_logic")&&!DH()}; POl=function(V,t,x,u){V.zK.set(t,u);uf8(V,t,x);ZTj(V,x)}; Q6=function(V,t){V=Rv(V.timeline,t);return(V==null?0:V.length)?V[0].uv():0}; a3=function(V,t){var x=x===void 0?!1:x;var u=V.timeline.J;if(!u)return{clipId:"",ym:0};var Z=Koj(V,t,x);if(Z)return{clipId:D6(Z)||"",ym:Z.uv()};V.api.J6("mci",{cs:D6(u),mt:t,tl:vh(V),invt:!!x});return{clipId:"",ym:0}}; Pt=function(V){var t=V.timeline.J;if(!t)return 0;V=0;if(t.J.size===0)return(t.Ue()-t.uv())/1E3;t=t.J.values();t=g.G(t);for(var x=t.next();!x.done;x=t.next()){x=g.G(x.value);for(var u=x.next();!u.done;u=x.next())u=u.value,V+=(u.Ue()-u.uv())/1E3}return V}; RrT=function(V,t){return(V=q_C(V,t*1E3))?V.uv():0}; fRC=function(V,t){var x=Rv(V.timeline,t);t=0;if(x==null?0:x.length)for(V=g.G(x),x=V.next();!x.done;x=V.next())x=x.value,t+=(x.Ue()-x.uv())/1E3;else return Pt(V);return t}; q_C=function(V,t){if(V=Rv(V.timeline,V.Eh)){V=g.G(V);for(var x=V.next();!x.done;x=V.next())if(x=x.value,x.uv()<=t&&x.Ue()>=t)return x}}; $_8=function(V){var t=V.playback.getVideoData();V.Eh&&(V=V.vx.get(V.Eh))&&(t=V);return t}; td0=function(V,t,x){x=x===void 0?!1:x;var u=V.timeline.J;if(u){u=u.J;var Z=Array.from(u.keys());g.fR(Z);t=g.qY(Z,t);t=u.get(Z[t<0?(t+2)*-1:t]);if(!x&&t){x=g.G(t);for(t=x.next();!t.done;t=x.next())if(t=t.value,t.uv()!==t.Ue())return t;return V.timeline}return t&&t.length>0?t[t.length-1]:void 0}}; Koj=function(V,t,x){x=x===void 0?!1:x;var u=td0(V,t,x);if(u){if(V=u.segments,V.length){for(var Z=g.G(V),P=Z.next();!P.done;P=Z.next())if(P=P.value,P.uv()<=t&&P.Ue()>t)return P;if(x&&u.uv()===u.Ue())return V[0]}}else V.api.J6("ssap",{ctnf:1})}; CIw=function(V,t){var x;if(V.uR)for(x=V.Mo.shift();x&&x!==V.uR;)x=V.Mo.shift();else x=V.Mo.shift();if(x){if(V.sE.has(x))bT4(V,x);else if(t===3||t===4)V.fS.stop(),V.api.playVideo(1,V.api.T("html5_ssap_keep_media_on_finish_segment"));V.zK.set(V.Eh,t);V.api.J6("ssap",{onvftn:1});ZTj(V,x);return!1}V.api.J6("ssap",{onvftv:1});V.fS.stop();return!0}; bT4=function(V,t){t=Rv(V.timeline,t);if(t==null?0:t.length)V.api.pauseVideo(),V.fS.start(t[0].pZ)}; ZTj=function(V,t){var x=V.playback.getVideoData(),u=x.clientPlaybackNonce;V.T_&&(V.events.vk(V.T_),V.T_=null,V.playback.KU());var Z=V.Eh,P=!1;if(Z==="")Z=u,P=!0;else if(Z===void 0){var K=V.playback.S8.q2().rh;K&&V.timeline.S.has(K)&&(Z=K);V.api.J6("ssap",{mcc:Z+";"+t});V.playback.p9(new Qr("ssap.timelineerror",{e:"missing_current_cpn",pcpn:Z,ccpn:t}))}if(Z===t)P&&x&&Eo1(V,x,P);else{K=V.zK.get(Z);if(!P&&(!K||K!==3&&K!==5&&K!==6&&K!==7)){var R=V.api.qM(V.Eh);V.api.J6("ssap",{nmec:R,cpc:V.Eh,ec:t})}K&& K!==2||qW(V);V.Eh=t;qW(V);t=Rv(V.timeline,V.Eh);if(t==null?0:t.length){t=t[0];R=t.getType();Z!==u&&(V.AV=Z,x=V.vx.get(Z));K?V.zK.delete(Z):K=P?1:2;V.api.T("html5_ssap_pacf_qoe_ctmp")&&R===2&&!t.S&&(V.T_=V.events.Z(V.api,"onVideoProgress",V.JZk));V.api.J6("ssapt",{ostro:K,pcpn:Z,ccpn:V.Eh});a:{var f=V.Eh;if(!V.cQ.has(f))for(var b=g.G(V.cQ),E=b.next();!E.done;E=b.next()){var k=g.G(E.value);E=k.next().value;k=k.next().value;if(k.getId().includes(f)){f=E;break a}}}E=f;b=V.api.K().T("html5_ssap_insert_su_before_nonvideo")&& E!==V.Eh;k=V.playback.S8.q2();if(k.rh!==E){var O=k.Zz(k.rh);f=k.Zz(E);k.rh=E;f!==O&&(O.qoe&&(E=O.qoe,E.provider.Rj.d6()&&E.J6("ssap",{qoesus:"1",vid:E.provider.videoData.videoId}),b&&(b=g.z2(E.provider),Lcl(E,b,"SU")),isNaN(E.B)||g.XV(E.B)),f.resume())}b=Math.max(0,RX(V,Z));f=V.playback.getCurrentTime();E=Math.max(0,f-Q6(V,V.Eh)/1E3);f=t.getVideoData();var N=K===3||K===5||K===6||K===7;V.api.T("html5_ssap_skip_illegal_seeking")&&(k=V.playback.getPlayerState(),k=!g.J(k,8)&&g.J(k,16),N=N||k,k&&V.api.J6("ssap", {iis:1}));var p=V.playback;k=Z;O=V.Eh;var I=V.playback.getPlayerState();p=p.S8.q2();if(k!==O){var L=p.Zz(k),M=p.Zz(O),z,Y=k===((z=L.getVideoData())==null?void 0:z.clientPlaybackNonce),r;z=O===((r=M.getVideoData())==null?void 0:r.clientPlaybackNonce);var n;r=Y?((n=L.getVideoData())==null?void 0:n.videoId)||"":"nvd";var U;n=z?((U=M.getVideoData())==null?void 0:U.videoId)||"":"nvd";Y&&(U=L.qoe)!=null&&(ov(U,4,N?4:0,O,n,b),U.reportStats());z&&(Cp(M),(U=M.qoe)!=null&&(ov(U,4,N?5:1,k,r,E),U.reportStats()), Zpl(M,new g.IT(I,M.lh)),xn0(M));bp8(p,k)}V.api.J6("ssapt",{ostri:K,pcpn:Z,ccpn:V.Eh});var d;U=Z;n=V.Eh;r=(d=V.Wc.get(Z))!=null?d:(0,g.Tu)();jSw(U,n,u,f,r,x);V.Wc.delete(Z);P?x=void 0:x||V.api.J6("ssap",{pvdm:Z+";"+V.Eh,pvdmc:V.Eh===u?"1":"0"});V.api.J6("ssap",{tpac:Z+";"+V.Eh,tpcc:u,tpv:(f==null?0:f.s1())?"1":"0"},!1,1);V.api.K().T("html5_ssap_cleanup_player_switch_ad_player")&&V.api.z1();V.api.publish("videodatachange","newdata",f,R,x,K);t.S||V.playback.getVideoData().publish("dataupdated");V.sE.delete(Z); V.uR="";f&&R===1?Eo1(V,f):V.playback.J6("ssap",{nis:V.Eh});R===2?V.UV++:V.UV=0}}}; Eo1=function(V,t,x){x=x===void 0?!1:x;if(t.startSeconds&&V.JX){var u=t.startSeconds;t=Rv(V.timeline,t.clientPlaybackNonce);if(t==null?0:t.length)u+=t[0].uv()/1E3,V.api.T("htm5_ssap_ignore_initial_seek_if_too_big")&&u>=V.Ca()||(V.playback.seekTo(u,{VE:!0}),V.JX=!1,V.playback.J6("ssap",{is:V.Eh,co:x?"1":"0",tse:u.toFixed()}))}}; uf8=function(V,t,x){t=Rv(V.timeline,t);if(t!=null&&t.length&&(t=td0(V,t[0].uv()))){t=g.G(t.segments);for(var u=t.next();!u.done;u=t.next()){u=u.value;if(D6(u)===x)break;if(u=D6(u)){var Z=V.cQ.get(u);Z&&V.playback.removeCueRange(Z);V.cQ.delete(u)}}}}; rS=function(V){return V.playback.getVideoData().clientPlaybackNonce}; aeq=function(V,t){if(V.Qw&&V.Eh!==t)return!1;if(V.wN)return!0;if(t=V.cQ.get(t))if(t=t.getId().split(","),t.length>1)for(var x=0;x0?V:0)}; RX=function(V,t){t=t||V.Eh;var x=V.vx.get(t);return x?x.Cv:t!==rS(V)?0:V.playback.getVideoData().Cv}; vh=function(V){var t=V.Eh;t||(t=V.playback.getVideoData().clientPlaybackNonce);var x,u,Z=Array.from((u=(x=V.timeline.J)==null?void 0:x.J.values())!=null?u:[]);x=[];if(Z==null?0:Z.length)for(u=g.G(Z),Z=u.next();!Z.done;Z=u.next())if(Z=Z.value,Z.length&&Z[0]&&(Z=Z[0].segments,Z.length)){Z=g.G(Z);for(var P=Z.next();!P.done;P=Z.next()){var K=P.value;P="st."+K.uv()+";";P+="et."+K.Ue()+";";var R=D6(K);R&&(P+="cpn."+R+";",P+="a."+(t===R?1:0)+";");if(K=K.getVideoData())R=void 0,P+="vid."+((R=K.videoId)!= null?R:"nvd");x.push(P)}}return(x.length?x.join(","):"empty."+t)+";cpcpn."+V.Bp()}; J1w=function(V){V.playback.JT(Array.from(V.cQ.values()));V.cQ.clear()}; iTL=function(V,t,x,u){g.c.call(this);var Z=this;this.api=V;this.Rj=t;this.cX=x;this.app=u;this.G=new Map;this.J=[];this.N=this.L=null;this.Ij=NaN;this.B=this.W=this.X=null;this.C=new g.qK(function(){kN0(Z,Z.Ij,Z.X||void 0)}); this.wk=[];this.zU=new g.qK(function(){var P=Z.wk.pop();if(P){var K=P.QP,R=P.playerVars;P=P.playerType;R&&(R.prefer_gapless=!0,Z.api.preloadVideoByPlayerVars(R,P,NaN,"",K),Z.wk.length&&g.RO(Z.zU,4500))}}); this.events=new g.j6(this);this.Wk={lQX:function(){return Z.J}}; this.S=x.Go;this.S.getPlayerType();g.y(this,this.C);g.y(this,this.zU);g.y(this,this.events);this.events.Z(this.api,g.km("childplayback"),this.onCueRangeEnter);this.events.Z(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.Z(this.api,"presentingplayerstatechange",this.SM)}; p9L=function(V,t,x,u,Z,P){var K=t.cpn,R=t.docid||t.video_id||t.videoId||t.id,f=V.S;P=P===void 0?Z+u:P;if(Z>P)return fz(V,"enterAfterReturn enterTimeMs="+Z+" is greater than parentReturnTimeMs="+P.toFixed(3),K,R),"";var b=f.L9()*1E3;if(Zb)return f="returnAfterDuration parentReturnTimeMs="+P.toFixed(3)+" is greater than parentDurationMs="+b+". And timestampOffset in seconds is "+ f.SB(),fz(V,f,K,R),"";b=null;for(var E=g.G(V.J),k=E.next();!k.done;k=E.next()){k=k.value;if(Z>=k.xX&&Zk.xX)return fz(V,"overlappingReturn",K,R),"";if(P===k.xX)return fz(V,"outOfOrder",K,R),"";Z===k.wL&&(b=k)}K="cs_childplayback_"+OTK++;R={ZZ:$q(u,!0),kV:Infinity,target:null};var O={QP:K,playerVars:t,playerType:x,durationMs:u,xX:Z,wL:P,V$:R};V.J=V.J.concat(O).sort(function(I,L){return I.xX-L.xX}); b?sHq(V,b,{ZZ:$q(b.durationMs,!0),kV:b.V$.kV,target:O}):(t={ZZ:$q(Z,!1),kV:Z,target:O},V.G.set(t.ZZ,t),f.addCueRange(t.ZZ));t=!0;if(V.S===V.app.rk()&&(f=f.getCurrentTime()*1E3,f>=O.xX&&ft)break;if(P>t)return{W2:u,vJ:t-Z};x=P-u.wL/1E3}return{W2:null,vJ:t-x}}; kN0=function(V,t,x){x=x===void 0?{}:x;var u=V.B||V.app.rk().getPlayerState();kq(V,!0);t=isFinite(t)?t:V.S.GH();var Z=IRz(V,t);t=Z.vJ;var P=(Z=Z.W2)&&!bT(V,Z)||!Z&&V.S!==V.app.rk(),K=t*1E3;K=V.N&&V.N.start<=K&&K<=V.N.end;!P&&K||Ea(V);Z?N64(V,Z,t,x,u):vo0(V,t,x,u)}; vo0=function(V,t,x,u){var Z=V.S;Z!==V.app.rk()&&V.app.eN();Z.seekTo(t,Object.assign({},{xK:"application_timelinemanager"},x));Loh(V,u)}; N64=function(V,t,x,u,Z){var P=bT(V,t);if(!P){t.playerVars.prefer_gapless=!0;V.Rj.T("html5_enable_ssap_entity_id")&&(t.playerVars.cached_load=!0);var K=new g.Hi(V.Rj,t.playerVars);K.QP=t.QP;V.api.fq(K,t.playerType)}K=V.app.rk();P||K.addCueRange(t.V$.ZZ);K.seekTo(x,Object.assign({},{xK:"application_timelinemanager"},u));Loh(V,Z)}; Loh=function(V,t){V=V.app.rk();var x=V.getPlayerState();t.isOrWillBePlaying()&&!x.isOrWillBePlaying()?V.playVideo():t.isPaused()&&!x.isPaused()&&V.pauseVideo()}; kq=function(V,t){V.Ij=NaN;V.X=null;V.C.stop();V.W&&t&&V.W.Dm();V.B=null;V.W=null}; bT=function(V,t){V=V.app.rk();return!!V&&V.getVideoData().QP===t.QP}; FoL=function(V){var t=V.J.find(function(Z){return bT(V,Z)}); if(t){var x=V.app.rk();Ea(V);var u=new g.RM(8);t=GNq(V,t)/1E3;vo0(V,t,{},u);x.J6("forceParentTransition",{childPlayback:1});V.S.J6("forceParentTransition",{parentPlayback:1})}}; goq=function(V,t,x){t=t===void 0?-1:t;x=x===void 0?Infinity:x;for(var u=t,Z=x,P=g.G(V.G),K=P.next();!K.done;K=P.next()){var R=g.G(K.value);K=R.next().value;R=R.next().value;R.kV>=u&&R.target&&R.target.wL<=Z&&(V.S.removeCueRange(K),V.G.delete(K))}u=t;Z=x;P=[];K=g.G(V.J);for(R=K.next();!R.done;R=K.next())if(R=R.value,R.xX>=u&&R.wL<=Z){var f=V;f.L===R&&Ea(f);bT(f,R)&&f.app.eN()}else P.push(R);V.J=P;u=IRz(V,t/1E3);t=u.W2;u=u.vJ;t&&(u*=1E3,Md0(V,t,u,t.wL===t.xX+t.durationMs?t.xX+u:t.wL));(t=IRz(V,x/1E3).W2)&& fz(V,"Invalid clearEndTimeMs="+x+" that falls during playback={timelinePlaybackId="+(t.QP+" video_id="+t.playerVars.video_id+" durationMs="+t.durationMs+" enterTimeMs="+t.xX+" parentReturnTimeMs="+t.wL+"}.Child playbacks can only have duration updated not their start."))}; Md0=function(V,t,x,u){t.durationMs=x;t.wL=u;u={ZZ:$q(x,!0),kV:x,target:null};sHq(V,t,u);bT(V,t)&&V.app.rk().getCurrentTime()*1E3>x&&(t=GNq(V,t)/1E3,x=V.app.rk().getPlayerState(),vo0(V,t,{},x))}; fz=function(V,t,x,u){V.S.J6("timelineerror",{e:t,cpn:x?x:void 0,videoId:u?u:void 0})}; zrq=function(V){V&&V!=="web"&&X9j.includes(V)}; sa=function(V,t){g.c.call(this);var x=this;this.data=[];this.N=V||NaN;this.S=t||null;this.J=new g.qK(function(){iT(x);Oa(x)}); g.y(this,this.J)}; B6q=function(V){iT(V);return V.data.map(function(t){return t.value})}; iT=function(V){var t=(0,g.Tu)();V.data.forEach(function(x){x.expireP?{width:t.width,height:t.width/Z,aspectRatio:Z}:ZZ?V.width=V.height*x:xf;if(SX(V)){var b=T6z(V);var E=isNaN(b)||g.u0||Ve&&g.XM||f;xp&&!g.NY(601)?b=Z.aspectRatio:E=E||P.controlsType==="3";E?f?(E=P.T("place_shrunken_video_on_left_of_player")?16:V.getPlayerSize().width-t.width-16,b=Math.max((V.getPlayerSize().height-t.height)/2,0),E=new g.sT(E,b,t.width, t.height),V.JJ.style.setProperty("border-radius","12px")):E=new g.sT(0,0,t.width,t.height):(x=Z.aspectRatio/b,E=new g.sT((t.width-Z.width/x)/2,(t.height-Z.height)/2,Z.width/x,Z.height),x===1&&g.XM&&(b=E.width-t.height*b,b>0&&(E.width+=b,E.height+=b)));g.Am(V.element,"ytp-fit-cover-video",Math.max(E.width-Z.width,E.height-Z.height)<1);if(R||V.Re)V.JJ.style.display="";V.Yp=!0}else{E=-t.height;xp?E*=window.devicePixelRatio:g.V9&&(E-=window.screen.height);E=new g.sT(0,E,t.width,t.height);if(R||V.Re)V.JJ.style.display= "none";V.Yp=!1}Ns(V.Wz,E)||(V.Wz=E,g.To(P)?(V.JJ.style.setProperty("width",E.width+"px","important"),V.JJ.style.setProperty("height",E.height+"px","important")):g.QC(V.JJ,E.getSize()),u=new g.N8(E.left,E.top),g.zh(V.JJ,Math.round(u.x),Math.round(u.y)),u=!0);t=new g.sT((t.width-Z.width)/2,(t.height-Z.height)/2,Z.width,Z.height);Ns(V.GB,t)||(V.GB=t,u=!0);g.Ao(V.JJ,"transform",x===1?"":"scaleX("+x+")");K&&f!==V.wX&&(f&&(V.JJ.addEventListener($Z,V.CS),V.JJ.addEventListener("transitioncancel",V.CS),V.JJ.classList.add(g.Ug.VIDEO_CONTAINER_TRANSITIONING)), V.wX=f,V.app.A6.publish("playerUnderlayVisibilityChange",V.wX?"transitioning":"hidden"));return u}; cgq=function(){this.csn=g.aw();this.clientPlaybackNonce=null;this.elements=new Set;this.N=new Set;this.J=new Set;this.S=new Set}; yg4=function(V){if(V.csn!==g.aw())if(V.csn==="UNDEFINED_CSN")V.csn=g.aw();else{var t=g.aw(),x=g.QK();if(t&&x){V.csn=t;for(var u=g.G(V.elements),Z=u.next();!Z.done;Z=u.next())(Z=Z.value.visualElement)&&Z.isClientVe()&&t&&x&&(g.Bc("combine_ve_grafts")?zv(gn(),Z,x):g.RW(g.xW)(void 0,t,x,Z))}if(t)for(V=g.G(V.J),x=V.next();!x.done;x=V.next())(x=x.value.visualElement)&&x.isClientVe()&&g.$W(t,x)}}; g.GV=function(V,t,x,u){g.c.call(this);var Z=this;this.logger=new g.ZG("App");this.Qx=this.Bi=!1;this.YB={};this.CE=[];this.Zt=!1;this.oU=null;this.intentionalPlayback=!1;this.eW=!0;this.Bm=!1;this.SR=this.EB=null;this.E4=!0;this.mediaElement=this.fI=null;this.mG=NaN;this.DI=!1;this.MU=this.u$=this.e8=this.DZ=this.screenLayer=this.playlist=null;this.Qv=[];this.Wk={pG:function(){return Z.e8}, Zv:function(K){Z.e8=K}, sN:function(K,R){Z.e8&&Z.e8.sN(K,R)}}; this.logger.debug("constructor begin");this.config=ez4(t||{});this.webPlayerContextConfig=x;qUL();t=this.config.args||{};this.Rj=new li(t,x,x?x.canaryState:this.config.assets.player_canary_state,u,this);g.y(this,this.Rj);Nvz(this.Rj);u=A1z(this.Rj);this.Rj.d6()&&this.Rj.T("html5_record_h5vcc_flags")&&this.Qv.push({key:"h5vcc",value:u});this.Rj.experiments.MP("jspb_serialize_with_worker")&&jWh();this.Rj.experiments.MP("gzip_gel_with_worker")&&QiC();this.Rj.S&&!jHT&&(window.addEventListener(Ml?"touchstart": "click",eK8,{capture:!0,passive:!0}),jHT=!0);this.T("html5_onesie")&&(this.ac=new Yi(this.Rj),g.y(this,this.ac));this.Ie=E7(m8(this.Rj)&&!0,t.enablesizebutton);this.We=E7(!1,t.player_wide);this.visibility=new b$9;g.y(this,this.visibility);this.T("web_log_theater_mode_visibility")&&this.l3(E7(!1,t.player_wide));this.Bi=E7(!1,t.external_list);this.events=new g.j6(this);g.y(this,this.events);this.T("start_client_gcf")&&(om(jx(),{Qn:pg,vM:u6h()}),this.yG=jx().resolve(pg),Kz9(this.yG));this.a8w=new bu; g.y(this,this.a8w);this.q4=new cgq;u=new E5;this.A6=new g.MD(this,u);g.y(this,this.A6);this.template=new aRh(this);g.y(this,this.template);this.appState=1;this.PL=lR9(this);g.y(this,u);u={};this.jp=(u.internalvideodatachange=this.kp,u.playbackready=this.K0k,u.playbackstarted=this.stD,u.statechange=this.yl6,u);this.jS=new FK(this.A6);this.Tk=HTw(this);u=this.T("html5_load_wasm");t=this.T("html5_allow_asmjs");if(u&&U_L||t)this.Rj.qf=QPh(this.Tk,t),N7(sg(this.Rj.qf,function(K){Z.Rj.m2=K;var R;(R=Z.rk())== null||R.J6("wasm",{a:K.Uv})}),function(K){g.lf(K); K="message"in K&&K.message||K.toString()||"";var R;(R=Z.rk())==null||R.J6("wasm",{e:K})}); else if(u&&!U_L){var P;(P=this.rk())==null||P.J6("wasm",{e:"wasm unavailable"})}this.Uh=new cf9(this.Rj,this.Tk);this.A6.publish("csiinitialized");P=10;g.ap(this.Rj)&&(P=3);h2(this.Rj)&&(P=g.S7(this.Rj.experiments,"tvhtml5_unplugged_preload_cache_size"));P=new sa(P,function(K){var R=K.Go;R!==g.pv(Z,K.getPlayerType())&&R.S8.dispose()}); g.y(this,P);this.n9=new E79(P,{});P=D_4(this);this.n9.CB(P);erz(this);P={};this.eO=(P.airplayactivechange=this.onAirPlayActiveChange,P.airplayavailabilitychange=this.onAirPlayAvailabilityChange,P.beginseeking=this.g$,P.sabrCaptionsDataLoaded=this.Aj,P.endseeking=this.wq,P.internalAbandon=this.bE,P.internalaudioformatchange=this.e7,P.internalvideodatachange=this.onVideoDataChange,P.internalvideoformatchange=this.WA,P.liveviewshift=this.hXs,P.playbackstalledatstart=this.j5P,P.progresssync=this.QCP, P.onAbnormalityDetected=this.qz,P.onSnackbarMessage=this.onSnackbarMessage,P.onLoadProgress=this.onLoadProgress,P.SEEK_COMPLETE=this.ND,P.SEEK_TO=this.VHD,P.onVideoProgress=this.onVideoProgress,P.onLoadedMetadata=this.onLoadedMetadata,P.onAutoplayBlocked=this.onAutoplayBlocked,P.onPlaybackPauseAtStart=this.rJU,P.playbackready=this.jCX,P.statechange=this.K3,P.newelementrequired=this.YP,P.heartbeatparams=this.Lw,P.videoelementevent=this.D2,P.drmoutputrestricted=this.onDrmOutputRestricted,P.signatureexpired= this.ynk,P.nonfatalerror=this.x6s,P.reloadplayer=this.iRX,P);this.UR=new g.j6(this);g.y(this,this.UR);this.tj=new pz;g.y(this,this.tj);this.wr=this.UU=-1;this.Vo=new g.qK(this.template.resize,16,this.template);g.y(this,this.Vo);this.K9=new iTL(this.A6,this.Rj,this.n9.J,this);this.DQ=new U1(this.Rj);this.q$=new lH(this);g.y(this,this.q$);this.L_=new nW(this);g.y(this,this.L_);zrq(this.Rj.J.c);this.events.Z(this.A6,g.km("appapi"),this.ZIX);this.events.Z(this.A6,g.i4("appapi"),this.djk);this.events.Z(this.A6, g.km("appprogressboundary"),this.kd8);this.events.Z(this.A6,g.i4("applooprange"),this.xB);this.events.Z(this.A6,"presentingplayerstatechange",this.SM);this.events.Z(this.A6,"resize",this.za6);this.template.t6(HO(document,V));this.events.Z(this.A6,"offlineslatestatechange",this.sCX);this.T("html5_enable_sabr_live_captions")&&(this.events.Z(this.A6,"sabrCaptionsTrackChanged",this.GkP),this.events.Z(this.A6,"sabrCaptionsBufferedRangesUpdated",this.BLX));this.Tk.U.K().Vd&&cW(this.Tk,"offline");this.Rj.DS&& g.BW("ux",g.WI);V=g.S7(this.Rj.experiments,"html5_defer_fetch_att_ms");this.rG=new g.qK(this.oDU,V,this);g.y(this,this.rG);this.M6().s1()&&(g.U7()&&this.M6().cX.push("remote"),d_8(this));this.Uh.tick("fs");CO0(this);this.Rj.DS&&cW(this.Tk,"ux",!0);g.zo(this.Tk.U.K())&&cW(this.Tk,"embed");this.T("web_player_sentinel_is_uniplayer")||g.lf(new g.xe("Player experiment flags missing","web_player_sentinel_is_uniplayer"));V=this.T("web_player_sentinel_yt_experiments_sync");P=g.Bc("web_player_sentinel_yt_experiments_sync"); V!==P&&g.lf(new g.xe("b/195699950",{yt:V,player:P}));x||g.lf(new g.xe("b/179532961"));this.qW=Jg4(this);if(x=g.S7(this.Rj.experiments,"html5_block_pip_safari_delay"))this.Uc=new g.qK(this.Ru,x,this),g.y(this,this.Uc);l$=this.Rj.VP;x=g.S7(this.Rj.experiments,"html5_performance_impact_profiling_timer_ms");x>0&&(this.M7=new g.zB(x),g.y(this,this.M7),this.events.Z(this.M7,"tick",function(){Z.o0&&hrC.y4("apit",Z.o0);Z.o0=hrC.J3()})); this.A6.publish("applicationInitialized");this.logger.debug("constructor end")}; Jg4=function(V){function t(x){x.stack&&x.stack.indexOf("player")!==-1&&(V.rk()||V.c$()).Na(x)} H7.subscribe("handleError",t);KJ.push(t);return function(){H7.unsubscribe("handleError",t);var x=KJ.indexOf(t);x!==-1&&KJ.splice(x,1)}}; D_4=function(V){var t=new g.Hi(V.Rj,V.config.args);V.A6.publish("initialvideodatacreated",t);return V.LQ(1,t)}; erz=function(V){var t=V.c$();t.setPlaybackRate(V.Rj.W?1:w90(V,Number(g.ls("yt-player-playback-rate"))||1));t.NB(V.jp,V);t.x6()}; HTw=function(V){var t="",x=Y_s(V);x.indexOf("//")===0&&(x=V.Rj.protocol+":"+x);var u=x.lastIndexOf("/base.js");u!==-1&&(t=x.substring(0,u+1));if(x=Error().stack)if(x=x.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))x=x[1],x.includes(t)||g.lf(Error("Player module URL mismatch: "+(x+" vs "+t+".")));t=new sPC(V.A6,t);V41(V,t);return t}; V41=function(V,t){var x={};x=(x.destroyed=function(){V.onApiChange()},x); t.N=x}; lR9=function(V){if(V.Rj.storeUserVolume){V=g.ls("yt-player-volume")||{};var t=V.volume;V={volume:isNaN(t)?100:g.EY(Math.floor(t),0,100),muted:!!V.muted}}else V={volume:100,muted:V.Rj.mute};return V}; IX=function(V){V.mediaElement=V.Rj.deviceIsAudioOnly?new g.Ef(g.uc("AUDIO")):oP.pop()||new g.Ef(g.uc("VIDEO"));g.y(V,V.mediaElement);var t=V.rk();t&&t.setMediaElement(V.mediaElement);try{V.Rj.r9?(V.u$&&V.events.vk(V.u$),V.u$=V.events.Z(V.mediaElement,"volumechange",V.b9w)):(V.mediaElement.oI(V.PL.muted),V.mediaElement.setVolume(V.PL.volume/100))}catch(Z){V.Qg("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(Z&&typeof Z==="object"&&"message"in Z&&typeof Z.message==="string"&&Z.message.replace(/[;:,]/g, "_")));return}g.oV(V.UR);t48(V);t=V.template;var x=V.mediaElement.m0();t.JJ=x;t.iG=!1;t.JJ.parentNode||qN(t.B3,t.JJ,0);t.Wz=new g.sT(0,0,0,0);nos(t);AQ(t);x=t.JJ;g.OU(x,"video-stream");g.OU(x,g.Ug.MAIN_VIDEO);var u=t.app.K();u.QN&&x.setAttribute("data-no-fullscreen","true");u.T("html5_local_playsinline")?"playsInline"in Tf()&&(x.playsInline=!0):u.zH&&(x.setAttribute("webkit-playsinline",""),x.setAttribute("playsinline",""));u.S4&&t.JJ&&t.Z(x,"click",x.play,x);try{V.mediaElement.activate()}catch(Z){V.Qg("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(Z&&typeof Z==="object"&&"message"in Z&&typeof Z.message==="string"&&Z.message.replace(/[;:,]/g,"_")))}}; u7l=function(V){if(!xG0(V)){var t=V.c$().Bw();t&&(t=t.y8(),t instanceof Promise&&t.catch(function(){})); v5(V,sc(V.getPlayerStateObject()))}}; t48=function(V){var t=V.mediaElement;cb()?V.UR.Z(t,"webkitpresentationmodechanged",V.L2y):window.document.pictureInPictureEnabled&&(V.UR.Z(t,"enterpictureinpicture",function(){V.Y8(!0)}),V.UR.Z(t,"leavepictureinpicture",function(){V.Y8(!1)})); P4&&(V.UR.Z(t,"webkitbeginfullscreen",function(){V.pk(3)}),V.UR.Z(t,"webkitendfullscreen",function(){V.pk(0)}))}; Zcs=function(V,t){var x=t.Go,u=x.getPlayerType(),Z=V.n9.S[u]||null;x!==V.c$()&&x!==(Z==null?void 0:Z.Go)&&(Z==null||Z.dispose(),V.n9.S[u]=t)}; PlK=function(V,t){t=t===void 0?!0:t;V.logger.debug("start clear presenting player");var x;if(x=V.MU){x=V.MU;var u=V.mediaElement;x=!!u&&u===x.mediaElement}x&&(V.AY(),IX(V));if(x=V.rk())x.AY(!t),x.PC(V.eO,V),x.getPlayerType()!==1&&x.S8.dispose();t=V.n9;t.N=null;t.G=null;V.logger.debug("finish clear presenting player")}; g.pv=function(V,t){var x;return((x=V.C0(t))==null?void 0:x.Go)||null}; K4T=function(V,t,x,u){V=V.LQ(t,x,u);V.x6();return V}; Lz=function(V,t){return V.Xt(t)?V.c$():t}; Fs=function(V,t){var x=V.rk(),u=V.c$();return x&&t===u&&V.Xt(t)&&V.Xt(x)?x:t}; fmL=function(V){V.logger.debug("start application playback");if(V.c$().getPlayerState().isError())V.logger.debug("start application playback done, player in error state");else{var t=MW(V);V.M6().isLoaded();t&&V.Ov(6);qK4(V);Mq8(V.Tk)||RPT(V)}}; RPT=function(V){if(!MW(V)){var t=jC(V.Tk);t&&!t.created&&No9(V.Tk)&&(V.logger.debug("reload ad module"),t.create())}}; qK4=function(V){V.logger.debug("start presenter playback");var t=V.getVideoData(),x=V.Tk;Mq8(x)||x.Zo();!U_L&&x.U.T("html5_allow_asmjs")&&Y1j(x);cW(x,"embed");cW(x,"kids");cW(x,"remote");cW(x,"miniplayer");cW(x,"offline");cW(x,"unplugged");cW(x,"ypc",!1,!0);cW(x,"ypc_clickwrap",!1,!0);cW(x,"yto",!1,!0);cW(x,"webgl",!1,!0);gt0(x)||(cW(x,"captions",!0),cW(x,"endscreen"),x.uW()||x.oQ(),cW(x,"creatorendscreen",!0));x.GF();V.A6.publish("videoready",t)}; gQ=function(V){V=V.M6();V.s1();return Hz(V)}; CO0=function(V){V.logger.debug("start prepare initial playback");V.MC();var t=V.config.args;IX(V);var x=V.M6();V.A6.T4("onVolumeChange",V.PL);if(t&&USq(t)){var u=eW(V.Rj);u&&!V.Bi&&(t.fetch=0);var Z=g.zo(V.Rj);Z&&!V.Bi&&(t.fetch=0);Xs(V,t);g.zo(V.Rj)&&V.Uh.tick("ep_pr_s");if(!u||V.Bi)if(Z&&!V.Bi)$Gz(V);else if(!x.s1())V.playlist.onReady(function(){zV(V)})}V.CO(V.n9.J); g.J(V.c$().getPlayerState(),128)||(t=R$9(!V.Rj.deviceIsAudioOnly),t==="fmt.noneavailable"?V.Qg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):t==="html5.missingapi"?V.Qg(t,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):x&&x.s1()&&gQ(V)&&(V.Rj.NR||V.Rj.Cv)?B5(V):x.vR?V.T("embeds_enable_full_length_inline_muted_autoplay")?V.A6.mutedAutoplay({durationMode:x.mutedAutoplayDurationMode}):V.A6.mutedAutoplay():g.ls("yt-player-playback-on-reload")?(g.pq("embedsItpPlayedOnReload",{playedOnReload:!0, isLoggedIn:!!V.Rj.zU}),g.je("yt-player-playback-on-reload",!1),B5(V)):xX(V.Rj)||bch(V),g.J2(V.Rj)||hW(V.Rj)==="MWEB"?(g.q3(g.fq(),function(){mt(V)}),g.q3(g.fq(),function(){smL()})):(mt(V),smL()),V.logger.debug("finish prepare initial playback"))}; mt=function(V){if(!V.T("use_rta_for_player"))if(V.T("fetch_att_independently"))g.RO(V.rG);else{var t=V.getVideoData().botguardData;t&&g.o_(t,V.Rj,V.getVideoData().Gg||"")}}; bch=function(V){V.logger.debug("start initialize to CUED mode");V.A6.publish("initializingmode");V.Ov(2);V.T("embeds_web_enable_defer_loading_remote_js")&&g.we(V.Rj)?g.q3(g.fq(),function(){cW(V.Tk,"remote")}):cW(V.Tk,"remote"); cW(V.Tk,"miniplayer");V.logger.debug("initialized to CUED mode")}; B5=function(V){V.logger.debug("start initialize application playback");var t=V.c$();if(g.J(t.getPlayerState(),128))return!1;var x=t.getVideoData();gQ(V)&&V.Rj.Cv&&(oP.length&&V.Qx?(Yq(V,{muted:!1,volume:V.PL.volume},!1),QP(V,!1)):oP.length||V.PL.muted||(Yq(V,{muted:!0,volume:V.PL.volume},!1),QP(V,!0)));gQ(V)&&g.zo(V.Rj)&&x.mutedAutoplay&&(Yq(V,{muted:!0,volume:V.PL.volume},!1),QP(V,!0));x.nZ&&Yq(V,{muted:!0,volume:V.PL.volume},!1);E3l(V,1,x,!1);V.A6.publish("initializingmode");V.CO(V.n9.J);V.Ov(3); var u;if(!(u=!V.Rj.w2)){if(u=V.MU){u=V.MU;var Z=V.mediaElement;u=!!Z&&Z===u.mediaElement}u=u&&V.Zt}u&&(V.AY(),IX(V),t.setMediaElement(V.mediaElement));t.pF();if(g.J(t.getPlayerState(),128))return!1;x.RO||v5(V,3);return V.Zt=!0}; MW=function(V){V=zr(V.Tk);return!!V&&V.loaded}; kAs=function(V,t){if(!V.fI)return!1;var x=V.fI.startTimeMs*.001-1,u=V.fI.endTimeMs*.001;V.fI.type==="repeatChapter"&&u--;return Math.abs(t-x)<=1E-6||Math.abs(t-u)<=1E-6||t>=x&&t<=u}; sUh=function(V){var t=V.rk();t&&ZD(t.getVideoData())&&!t.tF()&&(t=ics(V)*1E3-V.getVideoData().NF,V.T("html5_gapless_new_slr")?(V=V.L_,OcK(V.app,"gaplessshortslooprange"),t=new g.b4(0,t,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(V=V.app.rk())&&V.addCueRange(t)):V.setLoopRange({startTimeMs:0,endTimeMs:t,type:"shortsLoop"}))}; Nc8=function(V){var t=V.c$();if(!(g.J(t.getPlayerState(),64)&&V.M6().isLivePlayback&&V.fI.startTimeMs<5E3)){if(V.fI.type==="repeatChapter"){var x,u=(x=LOj(V.Jl()))==null?void 0:x.cL(),Z;x=(Z=V.getVideoData())==null?void 0:Z.ke;u instanceof g.ZU&&x&&(Z=x[vB(x,V.fI.startTimeMs)],u.renderChapterSeekingAnimation(0,Z.title));isNaN(Number(V.fI.loopCount))?V.fI.loopCount=0:V.fI.loopCount++;V.fI.loopCount===1&&V.A6.Os("innertubeCommand",V.getVideoData().wE)}u={xK:"application_loopRangeStart"};if(V.fI.type=== "clips"||V.fI.type==="shortsLoop")u.seekSource=58;t.seekTo(V.fI.startTimeMs*.001,u)}}; w90=function(V,t){var x=V.A6.getAvailablePlaybackRates();t=Number(t.toFixed(2));V=x[0];x=x[x.length-1];t<=V?t=V:t>=x?t=x:(V=Math.floor(t*100+.001)%5,t=V===0?t:Math.floor((t-V*.01)*100+.001)/100);return t}; ics=function(V,t){t=g.pv(V,t);if(!t)return 0;t=Lz(V,t);return aX(V,t.Du(),t)}; aX=function(V,t,x){if(V.Xt(x)){x=x.getVideoData();if(rQ(V))x=t;else{V=V.K9;for(var u=g.G(V.J),Z=u.next();!Z.done;Z=u.next())if(Z=Z.value,x.QP===Z.QP){t+=Z.xX/1E3;break}u=t;V=g.G(V.J);for(Z=V.next();!Z.done;Z=V.next()){Z=Z.value;if(x.QP===Z.QP)break;var P=Z.xX/1E3;if(P1&&(Z=!1);if(!V.DI||Z!==t){x=x.lock(Z?"portrait":"landscape");if(x!=null)x["catch"](function(){}); V.DI=!0}}else V.DI&&(V.DI=!1,x.unlock())}; yP=function(V,t,x){V.A6.publish(t,x);var u=g.ap(V.Rj)||g.To(V.Rj)||g.Dp(V.Rj);if(x&&u){switch(t){case "cuerangemarkersupdated":var Z="onCueRangeMarkersUpdated";break;case "cuerangesadded":Z="onCueRangesAdded";break;case "cuerangesremoved":Z="onCueRangesRemoved"}Z&&V.A6.Os(Z,x.map(function(P){return{getId:function(){return this.id}, end:P.end,id:P.getId(),namespace:P.namespace==="ad"?"ad":"",start:P.start,style:P.style,visible:P.visible}}))}}; jX=function(V,t,x,u,Z,P){x=x===void 0?!0:x;var K=g.pv(V,Z);K&&(K.getPlayerType()===2&&!V.Xt(K)||g.XL(K.getVideoData()))||(V.getPresentingPlayerType()===3?zr(V.Tk).TM("control_seek",t,x):(K&&K===V.c$()&&V.fI&&!kAs(V,t)&&V.setLoopRange(null),V.seekTo(t,x,u,Z,P)))}; YK0=function(V,t,x,u){x&&(V.AY(),IX(V));x=V.rk();x.v4(t);var Z=V.getVideoData(),P={};P.video_id=Z.videoId;P.adformat=Z.adFormat;if(!Z.isLivePlayback||V.T("html5_reload_live_playback_to_current_time"))P.start=x.getCurrentTime(),P.resume="1";Z.isLivePlayback&&k8(Z)&&g.YH(V.Rj)&&(P.live_utc_start=x.eH(),P.resume="1");Z.wk&&(P.vvt=Z.wk);Z.B&&(P.vss_credentials_token=Z.B,P.vss_credentials_token_type=Z.gH);Z.oauthToken&&(P.oauth_token=Z.oauthToken);Z.w2&&(P.force_gvi=Z.w2);P.autoplay=1;P.reload_count=Z.Qt+ 1;P.reload_reason=t;Z.mJ&&(P.unplugged_partner_opt_out=Z.mJ);Z.oa&&(P.ypc_is_premiere_trailer=Z.oa);Z.playerParams&&(P.player_params=Z.playerParams);V.loadVideoByPlayerVars(P,void 0,!0,void 0,void 0,u);t==="signature"&&V.DZ&&RPT(V)}; QUw=function(V,t){V.M6().autonavState=t;g.je("yt-player-autonavstate",t);V.A6.publish("autonavchange",t)}; ams=function(V){var t=V.getVideoData().gi,x=V.Rj.Tc,u=V.isInline()&&!V.getVideoData().ZC,Z=V.mediaElement;t||x||u?Z.Of():(Z.Qq(),Yq(V,V.PL))}; TV=function(V){var t=jC(V.Jl());t&&t.created&&(V.logger.debug("reset ad module"),t.destroy())}; rQ=function(V){return V.getVideoData().enableServerStitchedDai&&!!V.DZ}; rGC=function(V,t){t.bounds=V.getBoundingClientRect();for(var x=g.G(["display","opacity","visibility","zIndex"]),u=x.next();!u.done;u=x.next())u=u.value,t[u]=Io(V,u);t.hidden=!!V.hidden}; Y_s=function(V){if(V.webPlayerContextConfig){var t=V.webPlayerContextConfig.trustedJsUrl;return t?Y6(t).toString():V.webPlayerContextConfig.jsUrl}return V.config.assets&&V.config.assets.js?V.config.assets.js:""}; TcT=function(V,t){var x=g.pv(V,1);if(x){if(x.getVideoData().clientPlaybackNonce===t)return x;if((V=V.q$.J)&&V.getVideoData().clientPlaybackNonce===t)return V}return null}; W4j=function(V){return V.name==="TypeError"&&V.stack.includes("/s/player/")&&J6()<=105}; o3K=function(V){return V.isTimeout?"NO_BID":"ERR_BID"}; n3C=function(){var V=null;maj().then(function(t){return V=t},function(t){return V=o3K(t)}); return V}; cG8=function(){var V=mF(1E3,"NO_BID");return gj(VAh([maj(),V]).q9(o3K),function(){V.cancel()})}; lT=function(V){return V.U1?g.JD(g.Cy(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; H5=function(V){this.player=V;this.N=this.J=1}; lmj=function(V,t,x,u,Z,P){t.client||(t.client={});V.player.K().T("h5_remove_url_for_get_ad_break")||(t.client.originalUrl=x);var K=Nc(x),R=g.lA(x)?!1:!0;(K||R)&&typeof Intl!=="undefined"&&(t.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);R=g.lA(x)?!1:!0;if(K||R||u!==""){var f={};x=b$(IW(u)).split("&");var b=new Map;x.forEach(function(E){E=E.split("=");E.length>1&&b.set(E[0].toString(),decodeURIComponent(E[1].toString()))}); b.has("bid")&&(f.bid=b.get("bid"));f.params=[];yG9.forEach(function(E){b.has(E)&&(E={key:E,value:b.get(E)},f.params.push(E))}); jUj(V,f);t.adSignalsInfo=f}t.client.unpluggedAppInfo||(t.client.unpluggedAppInfo={});t.client.unpluggedAppInfo.enableFilterMode=!1;x=Z.J.cosver;x!=null&&x!=="cosver"&&(t.client.osVersion=x);x=Z.J.cplatform;x!=null&&x!=="cplatform"&&x!==""&&(t.client.platform=x);x=Z.J.cmodel;x!=null&&x!=="cmodel"&&(t.client.deviceModel=x);x=Z.J.cplayer;x!=null&&x!=="cplayer"&&(t.client.playerType=x);x=Z.J.cbrand;x!=null&&x!=="cbrand"&&(t.client.deviceMake=x);t.user||(t.user={});t.user.lockedSafetyMode=!1;(Z.T("embeds_web_enable_iframe_api_send_full_embed_url")|| Z.T("embeds_enable_autoplay_and_visibility_signals"))&&g.re(Z)&&gHl(t,P,V.player.getPlayerState(1))}; DGh=function(V,t){var x=!1;if(t==="")return x;t.split(",").forEach(function(u){var Z={},P={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},K="ACTIVE";u[0]==="!"&&(u=u.substring(1),K="INACTIVE");u=u.split("-");u.length<3||(u[0]in Hcl&&(P.clientName=Hcl[u[0]]),u[1]in UG9&&(P.platform=UG9[u[1]]),P.applicationState=K,P.clientVersion=u.length>2?u[2]:"",Z.remoteClient=P,V.remoteContexts?V.remoteContexts.push(Z):V.remoteContexts=[Z],x=!0)}); return x}; dGl=function(V){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in eP1))return!1;V=V.split(RegExp("[:&]"));var t=eP1.FLAG_AUTO_CAPTIONS_DEFAULT_ON,x="f"+(1+Math.floor(t/31)).toString();t=1<=2?K[1]:"";var R=JGL.test(t),f=hP0.exec(t);f=f!=null&&f.length>=2?f[1]:"";var b=wCT.exec(t);b=b!=null&&b.length>=2&&!Number.isNaN(Number(b[1]))?Number(b[1]):1;var E=Vbq.exec(t);E=E!=null&&E.length>=2?E[1]:"0";var k=cK(V.player.K().cX),O=V.player.getVideoData(1),N=g.K4(O.Us,!0),p="BISCOTTI_ID"in x?x.BISCOTTI_ID:"";lmj(V,N,t,p.toString(),V.player.K(), O);O={splay:!1,lactMilliseconds:x.LACT.toString(),playerHeightPixels:Math.trunc(x.P_H),playerWidthPixels:Math.trunc(x.P_W),vis:Math.trunc(x.VIS),signatureTimestamp:20115,autonavState:lT(V.player.K())};u&&(u={},DGh(u,x.YT_REMOTE)&&(O.mdxContext=u));if(u=tbw.includes(k)?void 0:g.Dc("PREF")){for(var I=u.split(RegExp("[:&]")),L=0,M=I.length;L1&&z[1].toUpperCase()==="TRUE"){N.user.lockedSafetyMode=!0;break}}O.autoCaptionsDefaultOn= dGl(u)}t=xes.exec(t);(t=t!=null&&t.length>=2?t[1]:"")&&f&&(N.user.credentialTransferTokens=[{token:t,scope:"VIDEO"}]);t={contentPlaybackContext:O};K={adBlock:Math.trunc(x.AD_BLOCK),params:K,breakIndex:b,breakPositionMs:E,clientPlaybackNonce:x.CPN,topLevelDomain:k,isProxyAdTagRequest:R,context:N,adSignalsInfoString:b$(IW(p.toString())),overridePlaybackContext:t};Z!==void 0&&(K.cueProcessedMs=Math.round(Z).toString());f&&(K.videoId=f);x.LIVE_TARGETING_CONTEXT&&(K.liveTargetingParams=x.LIVE_TARGETING_CONTEXT); x.AD_BREAK_LENGTH&&(K.breakLengthMs=Math.trunc(x.AD_BREAK_LENGTH*1E3).toString());P&&(K.driftFromHeadMs=P.toString());K.currentMediaTimeMs=Math.round(V.player.getCurrentTime(1)*1E3);(V=V.player.getGetAdBreakContext())&&(K.getAdBreakContext=V);return K}; Zx0=function(){H5.apply(this,arguments)}; P74=function(V,t,x,u,Z){var P=x.Y4;var K=x.ZZ;var R=V.player.K().rj,f=0;x.cueProcessedMs&&K&&!P&&(x=K.end-K.start,x>0&&(f=Math.floor(x/1E3)));var b={AD_BLOCK:Z,AD_BREAK_LENGTH:P?P.To:f,AUTONAV_STATE:lT(V.player.K()),CA_TYPE:"image",CPN:V.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:V.player.d2()*1E3,LACT:rF(),LIVE_INDEX:P?V.N++:1,LIVE_TARGETING_CONTEXT:P&&P.context?P.context:"",MIDROLL_POS:K?Math.round(K.start/1E3):0,MIDROLL_POS_MS:K?Math.round(K.start):0,VIS:V.player.getVisibilityState(), P_H:V.player.XX().g1().height,P_W:V.player.XX().g1().width,YT_REMOTE:R?R.join(","):""},E=G9(SL);Object.keys(E).forEach(function(k){E[k]!=null&&(b[k.toUpperCase()]=E[k].toString())}); u!==""&&(b.BISCOTTI_ID=u);u={};A6(t)&&(u.sts="20115",(V=V.player.K().forcedExperiments)&&(u.forced_experiments=V));return sQ(g.nK(t,b),u)}; KCz=function(V,t){var x=V.player.K(),u,Z=(u=V.player.getVideoData(1))==null?void 0:u.oauthToken;return g.Pi(x,Z).then(function(P){if(P&&pJ()){var K=oE();nv(K,P)}return g.uM(V.player.tY(K),t,"/youtubei/v1/player/ad_break").then(function(R){return R})})}; q6L=function(V){this.TU=V}; R7j=function(V){this.U=V}; fl0=function(V){this.TU=V}; bxh=function(V){g.c.call(this);this.J=V;this.G8=$ej(this)}; $ej=function(V){var t=new fOC(V.J.jB);g.y(V,t);V=g.G([new q6L(V.J.TU),new R7j(V.J.U),new fl0(V.J.TU),new nA(V.J.xt,V.J.lP),new yh,new Hl(V.J.J9,V.J.EV,V.J.TU),new cl,new oR]);for(var x=V.next();!x.done;x=V.next())$El(t,x.value);V=g.G(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(x=V.next();!x.done;x=V.next())j8(t,x.value,function(){}); return t}; Ua=function(V){var t=V.PX,x=V.WX;V=V.I_;var u=new vMh,Z={Mf:new KP4(t.get(),x),WX:x};return{Al:new P8(x,V,t,Z),context:Z,CJ:u}}; DI=function(V,t,x,u,Z){g.c.call(this);this.S=t;this.h6=x;this.PX=u;this.pR=Z;this.listeners=[];var P=new TF(this);g.y(this,P);P.Z(V,"internalAbandon",this.bE);this.addOnDisposeCallback(function(){g.oV(P)})}; eX=function(V){this.U=V;this.adVideoId=this.J=this.videoId=this.adCpn=this.contentCpn=null;this.G=!0;this.S=this.N=!1;this.adFormat=null;this.W="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; EQ8=function(V){V.contentCpn=null;V.adCpn=null;V.videoId=null;V.adVideoId=null;V.adFormat=null;V.W="AD_PLACEMENT_KIND_UNKNOWN";V.actionType="unknown_type";V.N=!1;V.S=!1}; k_T=function(V,t){V=g.G(t);for(t=V.next();!t.done;t=V.next())if((t=t.value.renderer)&&(t.instreamVideoAdRenderer||t.linearAdSequenceRenderer||t.sandwichedLinearAdRenderer||t.instreamSurveyAdRenderer)){dq("ad_i");g.C4({isMonetized:!0});break}}; ixs=function(V){var t;(t=V.U.getVideoData(1))!=null&&t.zU&&(V.S=!1,t={},V.J&&V.videoId&&(t.cttAuthInfo={token:V.J,videoId:V.videoId}),J4("video_to_ad",t))}; CO=function(V){V.S=!1;var t={};V.J&&V.videoId&&(t.cttAuthInfo={token:V.J,videoId:V.videoId});J4("ad_to_video",t);OxK(V)}; OxK=function(V){if(V.N)if(V.W==="AD_PLACEMENT_KIND_START"&&V.actionType==="video_to_ad")Ur("video_to_ad");else{var t={adBreakType:Mu(V.W),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:V.videoStreamType};V.actionType==="ad_to_video"?(V.contentCpn&&(t.targetCpn=V.contentCpn),V.videoId&&(t.targetVideoId=V.videoId)):(V.adCpn&&(t.targetCpn=V.adCpn),V.adVideoId&&(t.targetVideoId=V.adVideoId));V.adFormat&&(t.adType=V.adFormat);V.contentCpn&& (t.clientPlaybackNonce=V.contentCpn);V.videoId&&(t.videoId=V.videoId);V.adCpn&&(t.adClientPlaybackNonce=V.adCpn);V.adVideoId&&(t.adVideoId=V.adVideoId);g.C4(t,V.actionType)}}; dQ=function(V){g.c.call(this);this.U=V;this.J=new Map;this.S=new TF(this);g.y(this,this.S);this.S.Z(this.U,g.km("ad"),this.onCueRangeEnter,this);this.S.Z(this.U,g.i4("ad"),this.onCueRangeExit,this)}; sBL=function(V,t,x,u,Z){g.b4.call(this,t,x,{id:V,namespace:"ad",priority:Z,visible:u})}; Cz=function(V){this.U=V}; JQ=function(V){this.U=V;g.S7(this.U.K().experiments,"tv_pacf_logging_sample_rate")}; Bb=function(V,t){t=t===void 0?!1:t;return V.U.K().T("html5_ssap_force_ads_ctmp")?!0:(t||V.U.K().d6())&&V.U.K().T("html5_ssap_pacf_qoe_ctmp")}; hQ=function(V){var t,x;return(x=(t=V.U.getVideoData(1))==null?void 0:g.d8(t))!=null?x:!1}; xm=function(V,t){return V.U.K().T(t)}; NMj=function(V){return V.U.K().T("substitute_ad_cpn_macro_in_ssdai")}; Ln=function(V){var t,x,u;return((t=V.U.getVideoData(1).getPlayerResponse())==null?void 0:(x=t.playerConfig)==null?void 0:(u=x.daiConfig)==null?void 0:u.enableServerStitchedDai)||!1}; iLL=function(V){return V.U.K().T("html5_enable_vod_slar_with_notify_pacf")}; pNl=function(V){return V.U.K().T("html5_recognize_predict_start_cue_point")}; uJ=function(V){return V.U.K().experiments.MP("enable_desktop_player_underlay")}; AHh=function(V){return V.U.K().experiments.MP("html5_load_empty_player_in_media_break_sub_lra")}; oM=function(V){return V.U.K().experiments.MP("html5_load_ads_instead_of_cue")}; nO=function(V){return V.U.K().experiments.MP("html5_preload_ads")}; wb=function(V){return V.U.K().experiments.MP("enable_ads_control_flow_deterministic_id_generation")}; S6j=function(V){return V.U.K().experiments.MP("enable_desktop_discovery_video_abandon_pings")||g.de(V.U.K())}; G_s=function(V){return V.U.K().experiments.MP("enable_progres_commands_lr_feeds")}; Il0=function(V){return V.U.K().experiments.MP("html5_cuepoint_identifier_logging")}; vQ9=function(V){switch(V){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}}; LC4=function(){g.Np.call(this);var V=this;this.J={};this.addOnDisposeCallback(function(){for(var t=g.G(Object.keys(V.J)),x=t.next();!x.done;x=t.next())delete V.J[x.value]})}; wQ=function(){if(FC1===null){FC1=new LC4;TI(r9).S="b";var V=TI(r9),t=LK(V)=="h"||LK(V)=="b",x=!(yV(),!1);t&&x&&(V.G=!0,V.B=new Yw1)}return FC1}; Mbj=function(V,t,x){V.J[t]=x}; gQ4=function(V){switch(V){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}}; Vu=function(V,t,x){this.h6=V;this.U=t;this.WX=x;this.S=new Set;this.J=new Map;wQ().subscribe("adactiveviewmeasurable",this.Vs,this);wQ().subscribe("adfullyviewableaudiblehalfdurationimpression",this.A$,this);wQ().subscribe("adviewableimpression",this.PH,this);wQ().subscribe("adaudioaudible",this.L2,this);wQ().subscribe("adaudiomeasurable",this.bS,this)}; xh=function(V,t,x){var u=x.zQ,Z=x.hp,P=x.listener,K=x.gt;x=x.DP===void 0?!1:x.DP;if(V.J.has(t))Gd("Unexpected registration of layout in LidarApi");else{if(K){if(V.S.has(K))return;V.S.add(K)}V.J.set(t,P);i5(yV().EZ,"fmd",1);jQK(TI(r9),u);var R=x?t:void 0;Mbj(wQ(),t,{P1:function(){if(!Z)return{};var f=V.U.getPresentingPlayerType(!0),b;return(b=V.U.getVideoData(f))!=null&&b.isAd()?{currentTime:V.h6.get().getCurrentTimeSec(f,!1,R),duration:Z,isPlaying:tk(V.h6.get(),f).isPlaying(),isVpaid:!1,isYouTube:!0, volume:V.h6.get().isMuted()?0:V.h6.get().getVolume()/100}:{}}})}}; uE=function(V,t){V.J.has(t)?(V.J.delete(t),delete wQ().J[t]):Gd("Unexpected unregistration of layout in LidarApi")}; XNT=function(V,t){if(V.U.isLifaAdPlaying()){var x=V.U.Gi(!0,!0);V.wJ(t,x.width*.5*1.1,x.height*.25*1.1,x.width*.5*.9,x.height*.5*.9)}}; mej=function(V,t,x){var u={};z7j(V,u,t,x);BMw(u);u.LACT=Z4(function(){return rF().toString()}); u.VIS=Z4(function(){return V.getVisibilityState().toString()}); u.SDKV="h.3.0";u.VOL=Z4(function(){return V.isMuted()?"0":Math.round(V.getVolume()).toString()}); u.VED="";return u}; Y6C=function(V,t){var x={};if(t)return x;if(!V.kind)return g.jv(Error("AdPlacementConfig without kind")),x;if(V.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||V.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!V.adTimeOffset||!V.adTimeOffset.offsetStartMilliseconds)return g.jv(Error("malformed AdPlacementConfig")),x;x.MIDROLL_POS=Z4(Nz(Math.round(Z8(V.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else x.MIDROLL_POS=Z4(Nz("0"));return x}; Z4=function(V){return{toString:function(){return V()}}}; QBs=function(V,t,x){function u(R,f){(f=x[f])&&(P[R]=f)} function Z(R,f){(f=x[f])&&(P[R]=K(f))} if(!x||g.YE(x))return V;var P=Object.assign({},V),K=t?encodeURIComponent:function(R){return R}; Z("DV_VIEWABILITY","doubleVerifyViewability");Z("IAS_VIEWABILITY","integralAdsViewability");Z("MOAT_INIT","moatInit");Z("MOAT_VIEWABILITY","moatViewability");u("GOOGLE_VIEWABILITY","googleViewability");u("VIEWABILITY","viewability");return P}; z7j=function(V,t,x,u){t.CPN=Z4(function(){var Z;(Z=V.getVideoData(1))?Z=Z.clientPlaybackNonce:(g.lf(Error("Video data is null.")),Z=null);return Z}); t.AD_MT=Z4(function(){if(u!=null)var Z=u;else{var P=x;V.K().T("html5_ssap_use_cpn_to_get_time")||(P=void 0);if(V.K().T("enable_h5_shorts_ad_fill_ad_mt_macro")||V.K().T("enable_desktop_discovery_pings_ad_mt_macro")||g.de(V.K())){var K=V.getPresentingPlayerType(!0),R;Z=((R=V.getVideoData(K))==null?0:R.isAd())?alL(V,K,P):0}else Z=alL(V,2,P)}return Math.round(Math.max(0,Z*1E3)).toString()}); t.MT=Z4(function(){return Math.round(Math.max(0,V.getCurrentTime(1,!1)*1E3)).toString()}); t.P_H=Z4(function(){return V.XX().g1().height.toString()}); t.P_W=Z4(function(){return V.XX().g1().width.toString()}); t.PV_H=Z4(function(){return V.XX().getVideoContentRect().height.toString()}); t.PV_W=Z4(function(){return V.XX().getVideoContentRect().width.toString()})}; BMw=function(V){V.CONN=Z4(Nz("0"));V.WT=Z4(function(){return Date.now().toString()})}; alL=function(V,t,x){return x!==void 0?V.getCurrentTime(t,!1,x):V.getCurrentTime(t,!1)}; rHT=function(){}; TM9=function(V,t,x,u,Z){var P,K,R,f,b,E,k,O,N,p,I,L,M;g.Q(function(z){switch(z.J){case 1:P=!!t.scrubReferrer;K=g.nK(t.baseUrl,QBs(x,P,u));R={};if(!t.headers){z.FX(2);break}f=V.W();if(!f.J){b=f.getValue();z.FX(3);break}return g.m(z,f.J,4);case 4:b=z.S;case 3:E=b;k=g.G(t.headers);for(O=k.next();!O.done;O=k.next())switch(N=O.value,N.headerType){case "VISITOR_ID":g.Zc("VISITOR_DATA")&&(R["X-Goog-Visitor-Id"]=g.Zc("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Zc("EOM_VISITOR_DATA")&&(R["X-Goog-EOM-Visitor-Id"]= g.Zc("EOM_VISITOR_DATA"));break;case "USER_AUTH":E&&(R.Authorization="Bearer "+E);break;case "PLUS_PAGE_ID":(p=V.G())&&(R["X-Goog-PageId"]=p);break;case "AUTH_USER":I=V.J();!E&&I&&(R["X-Goog-AuthUser"]=I);break;case "DATASYNC_ID":if(L=void 0,(L=V.N())==null?0:L.MP("enable_datasync_id_header_in_web_vss_pings"))M=V.S(),Nc(K)&&g.Zc("LOGGED_IN")&&M&&(R["X-YouTube-DataSync-Id"]=M)}"X-Goog-EOM-Visitor-Id"in R&&"X-Goog-Visitor-Id"in R&&delete R["X-Goog-Visitor-Id"];case 2:g.Cg(K,void 0,P,Object.keys(R).length!== 0?R:void 0,"",!0,Z),g.pl(z)}})}; WCz=function(V,t,x,u,Z){this.W=V;this.G=t;this.J=x;this.S=u;this.N=Z}; oQC=function(V,t){this.J=V;this.WX=t}; PH=function(V,t,x,u,Z,P,K){var R=R===void 0?new WCz(function(){var f=V.K(),b=V.getVideoData(1);return g.Pi(f,b?g.DD(b):"")},function(){return V.K().pageId},function(){return V.K().zU},function(){var f; return(f=V.K().datasyncId)!=null?f:""},function(){return V.K().experiments}):R; this.U=V;this.S=t;this.Nj=x;this.PX=u;this.Al=Z;this.WX=P;this.CJ=K;this.W=R;this.g_=null;this.J=new Map;this.N=new oQC(R,this.WX)}; cH0=function(V,t,x,u,Z){var P=Y5(V.S.get(),x);P?(x=Wu(V,nQ4(P),P,void 0,void 0,u),t.hasOwnProperty("baseUrl")?V.W.send(t,x):V.N.send(t,x,{},Z)):Gd("Trying to ping from an unknown layout",void 0,void 0,{layoutId:x})}; iDh=function(V,t,x,u,Z,P){u=u===void 0?[]:u;var K=Y5(V.S.get(),t);if(K){var R=V.Nj.get().oB(t,x),f=Wu(V,nQ4(K),K,Z,P);u.forEach(function(b,E){b.baseUrl&&(V.N.send(b.baseUrl,f,R,b.attributionSrcMode),b.serializedAdPingMetadata&&V.Al.Rw("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,K,new eW4(b,E),void 0,void 0,K.adLayoutLoggingData))})}else Gd("Trying to track from an unknown layout.",void 0,void 0,{layoutId:t, trackingType:x})}; Bu=function(V,t){V.U.sendVideoStatsEngageEvent(t,void 0,2)}; Z9=function(V,t){g.pq("adsClientStateChange",t)}; yHs=function(V,t){V.J.has(t.H3())?Gd("Trying to register an existing AdErrorInfoSupplier."):V.J.set(t.H3(),t)}; jBT=function(V,t){V.J.delete(t.H3())||Gd("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; qC=function(V,t,x){typeof x==="string"?V.U.getVideoData(1).sR(t,x):V.U.getVideoData(1).J6(t,x)}; nQ4=function(V){var t=kH(V.clientMetadata,"metadata_type_ad_placement_config");V=kH(V.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:t,dP:V}}; Wu=function(V,t,x,u,Z,P){var K=x?lls(V):{},R=x?Hxs(V,x.layoutId):{},f=Ue0(V),b,E=Z!=null?Z:(b=IM(V.PX.get(),2))==null?void 0:b.clientPlaybackNonce;V.U.K().T("enable_player_logging_lr_home_infeed_ads")&&!E&&(E=IM(V.PX.get(),1).clientPlaybackNonce);Z=void 0;if(x){var k;if((k=V.CJ.J.get(x.layoutId))==null?0:k.DP)Z=x.layoutId}k={};V=Object.assign({},mej(V.U,Z,u),Y6C(t.adPlacementConfig,(x==null?void 0:x.renderingContent)!==void 0),R,K,f,(k.FINAL=Z4(function(){return"1"}),k.AD_CPN=Z4(function(){return E|| ""}),k)); (x==null?void 0:x.renderingContent)!==void 0||(V.SLOT_POS=Z4(function(){return(t.dP||0).toString()})); x={};P=Object.assign({},V,P);V=g.G(Object.values(DeK));for(u=V.next();!u.done;u=V.next())u=u.value,K=P[u],K!=null&&K.toString()!=null&&(x[u]=K.toString());return x}; lls=function(V){var t={},x,u=(x=V.g_)==null?void 0:x.N$/1E3;u!=null&&(t.SURVEY_ELAPSED_MS=Z4(function(){return Math.round(u*1E3).toString()})); t.SURVEY_LOCAL_TIME_EPOCH_S=Z4(function(){return Math.round(Date.now()/1E3).toString()}); return t}; Hxs=function(V,t){V=V.J.get(t);if(!V)return{};V=V.tH();if(!V)return{};t={};return t.YT_ERROR_CODE=V.d0.toString(),t.ERRORCODE=V.Uu.toString(),t.ERROR_MSG=V.errorMessage,t}; Ue0=function(V){var t={},x=V.U.getVideoData(1);t.ASR=Z4(function(){var u;return(u=x==null?void 0:x.xr)!=null?u:null}); t.EI=Z4(function(){var u;return(u=x==null?void 0:x.eventId)!=null?u:null}); return t}; Kt=function(V,t,x){g.c.call(this);this.U=V;this.MM=t;this.WX=x;this.listeners=[];this.Gu=null;this.Ki=new Map;t=new g.j6(this);g.y(this,t);t.Z(V,"videodatachange",this.ea8);t.Z(V,"serverstitchedvideochange",this.PhC);this.fH=IM(this)}; IM=function(V,t){var x=V.U.getVideoData(t);return x?V.Tx(x,t||V.U.getPresentingPlayerType(!0)):null}; e7K=function(V,t,x){var u=V.Tx(t,x);V.fH=u;V.listeners.forEach(function(Z){Z.KS(u)})}; deL=function(V){switch(V){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}}; qw=function(V,t,x){g.c.call(this);this.U=V;this.PX=t;this.WX=x;this.listeners=[];this.Ub=[];this.J=function(){Gd("Called 'doUnlockPreroll' before it's initialized.")}; t=new TF(this);x=new g.j6(this);g.y(this,x);g.y(this,t);t.Z(V,"progresssync",this.gK1);t.Z(V,"presentingplayerstatechange",this.oKP);t.Z(V,"fullscreentoggled",this.onFullscreenToggled);t.Z(V,"onVolumeChange",this.onVolumeChange);t.Z(V,"minimized",this.E8);t.Z(V,"overlayvisibilitychange",this.dj);t.Z(V,"shortsadswipe",this.Kc);t.Z(V,"resize",this.lq);x.Z(V,g.km("appad"),this.Pi)}; RC=function(V){hQ(V.WX.get())||V.J()}; C78=function(V,t){V.Ub=V.Ub.filter(function(x){return x!==t})}; ft=function(V,t,x){return V.getCurrentTimeSec(t,x)}; JHs=function(V,t){var x;t=(x=V.PX.get().Ki.get(t))!=null?x:null;if(t===null)return Gd("Expected ad video start time on playback timeline"),0;V=V.U.getCurrentTime(2,!0);return V0){var P=t.end.toString();Z.forEach(function(K){(K=K.config&&K.config.adPlacementConfig)&&K.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&K.adTimeOffset&&K.adTimeOffset.offsetEndMilliseconds==="-1"&&K.adTimeOffset.offsetEndMilliseconds!==P&&(K.adTimeOffset.offsetEndMilliseconds=P)}); u.map(function(K){return g.l(K,jl)}).forEach(function(K){var R; (K=K==null?void 0:(R=K.slotEntryTrigger)==null?void 0:R.mediaTimeRangeTrigger)&&K.offsetEndMilliseconds==="-1"&&(K.offsetEndMilliseconds=P)})}return{lF:Z, adSlots:u,mz:!1,ssdaiAdsConfig:V.ssdaiAdsConfig}}; iE=function(V){g.c.call(this);this.U=V;this.listeners=[];this.J=new TF(this);g.y(this,this.J);this.J.Z(this.U,"aduxclicked",this.onAdUxClicked);this.J.Z(this.U,"aduxmouseover",this.X6);this.J.Z(this.U,"aduxmouseout",this.lQ);this.J.Z(this.U,"muteadaccepted",this.AlX)}; x24=function(V,t,x){t=g.QV(t,function(u){return new Tuz(u,x,u.id)}); V.U.Os("onAdUxUpdate",t)}; ON=function(V,t){V=g.G(V.listeners);for(var x=V.next();!x.done;x=V.next())t(x.value)}; sN=function(V,t){this.S=V;this.N=t===void 0?!1:t;this.J={}}; u5l=function(V,t){var x=V.startSecs+V.To;x=x<=0?null:x;if(x===null)return null;switch(V.event){case "start":case "continue":case "stop":break;case "predictStart":if(t)break;return null;default:return null}t=Math.max(V.startSecs,0);return{Hq:new Yy(t,x),Tks:new yO(t,x-t,V.context,V.identifier,V.event,V.J)}}; Zf4=function(){this.J=[]}; E10=function(V,t,x){var u=g.qY(V.J,t);if(u>=0)return t;t=-u-1;return t>=V.J.length||V.J[t]>x?null:V.J[t]}; Nw=function(V,t,x){g.c.call(this);this.U=V;this.WX=t;this.TU=x;this.listeners=[];this.W=!1;this.Yi=[];this.S=null;this.G=new sN(this,pNl(t.get()));this.N=new Zf4;this.J=null}; PX4=function(V,t){V.Yi.push(t);for(var x=!1,u=g.G(V.listeners),Z=u.next();!Z.done;Z=u.next())x=Z.value.V5(t)||x;V.W=x;Il0(V.WX.get())&&qC(V.TU.get(),"onci","cpi."+t.identifier+";cpe."+t.event+";cps."+t.startSecs+";cbi."+x)}; q0K=function(V,t){Z9(V.TU.get(),{cuepointTrigger:{event:KpT(t.event),cuepointId:t.identifier,totalCueDurationMs:t.To*1E3,playheadTimeMs:t.J,cueStartTimeMs:t.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:V.U.getVideoData(1).clientPlaybackNonce}})}; KpT=function(V){switch(V){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 PD(V,"Unexpected cuepoint event")}}; pt=function(V){this.U=V}; Rx0=function(V,t){V.U.cueVideoByPlayerVars(t,2)}; Ak=function(V){this.U=V}; ST=function(V){this.U=V}; fXC=function(V){switch(V){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:PD(V,"unknown transitionReason")}}; $2T=function(V){this.U=V}; bfL=function(V,t,x,u,Z){g.c.call(this);var P=this,K=dY(function(){return new ha(P.WX)}); g.y(this,K);var R=dY(function(){return new VJ(K,P.WX)}); g.y(this,R);var f=dY(function(){return new BT}); g.y(this,f);var b=dY(function(){return new Xx(V)}); g.y(this,b);var E=dY(function(){return new t5(K,R,P.WX)}); g.y(this,E);var k=dY(function(){return new K7}); g.y(this,k);this.w9=dY(function(){return new iE(t)}); g.y(this,this.w9);this.v$=dY(function(){return new J3(Z)}); g.y(this,this.v$);this.hJ=dY(function(){return new eX(t)}); g.y(this,this.hJ);this.ZT=dY(function(){return new dQ(t)}); g.y(this,this.ZT);this.Xi=dY(function(){return new pt(t)}); g.y(this,this.Xi);this.jB=dY(function(){return new Cz(t)}); g.y(this,this.jB);this.WX=dY(function(){return new JQ(t)}); g.y(this,this.WX);var O=dY(function(){return new kh(u)}); g.y(this,O);var N=dY(function(){return new GJ(P.WX)}); g.y(this,N);this.Vg=dY(function(){return new Ak(t)}); g.y(this,this.Vg);this.Ot=dY(function(){return new Vq}); g.y(this,this.Ot);this.PX=dY(function(){return new Kt(t,k,P.WX)}); g.y(this,this.PX);var p=Ua({PX:this.PX,WX:this.WX,I_:N}),I=p.context,L=p.CJ;this.Al=p.Al;this.pR=dY(function(){return new Nw(t,P.WX,P.TU)}); g.y(this,this.pR);this.zd=dY(function(){return new ST(t)}); g.y(this,this.zd);this.h6=dY(function(){return new qw(t,P.PX,P.WX)}); g.y(this,this.h6);p=dY(function(){return new Sr(K,E,R,P.WX,N,"SLOT_TYPE_ABOVE_FEED",P.h6,P.UE,P.xD)}); g.y(this,p);this.ye=dY(function(){return new ty(P.WX)}); this.Nj=dY(function(){return new Vu(P.h6,t,P.WX)}); g.y(this,this.Nj);this.TU=dY(function(){return new PH(t,f,P.Nj,P.PX,P.Al,P.WX,L)}); g.y(this,this.TU);this.j0=new Mb(Fx,GH,function(z,Y,r,n){return x5(R.get(),z,Y,r,n)},b,E,R,N,this.WX,this.PX); g.y(this,this.j0);this.fR=new gb(b,p,x,this.WX,V,this.PX,this.h6,this.hJ);g.y(this,this.fR);var M=new DI(t,this.fR,this.h6,this.PX,this.pR);this.BG=dY(function(){return M}); this.Zk=M;this.UE=new vT(b,E,this.BG,this.pR,this.h6,this.WX,this.TU,this.zd);g.y(this,this.UE);this.sO=new z1(b,E,this.ZT,this.BG,I);g.y(this,this.sO);this.hn=new yj(this.WX,b,E,p,this.PX,this.sO,x);g.y(this,this.hn);this.N9=dY(function(){return new S$(O,R,N,P.WX,P.TU,P.h6,P.zd)}); g.y(this,this.N9);this.fG=dY(function(){return new GR}); g.y(this,this.fG);this.mZ=new WT(V,this.w9,this.WX);g.y(this,this.mZ);this.Mj=new o5(V);g.y(this,this.Mj);this.mR=new nn(V);g.y(this,this.mR);this.Zg=new yI(V,this.BG,I);g.y(this,this.Zg);this.rb=new jr(V,this.ZT,this.h6,this.PX,I);g.y(this,this.rb);this.zj=new lJ(V,this.PX);g.y(this,this.zj);this.xD=new Db(V,this.pR,this.h6,this.TU,this.BG);g.y(this,this.xD);this.tZ=new HT(V);g.y(this,this.tZ);this.Vc=new Ja(V);g.y(this,this.Vc);this.C6=new UZ(V);g.y(this,this.C6);this.Ly=new Cn(V);g.y(this,this.Ly); this.Vc=new Ja(V);g.y(this,this.Vc);this.Wr=dY(function(){return new QI}); g.y(this,this.Wr);this.M9=dY(function(){return new a5(P.h6)}); g.y(this,this.M9);this.Lh=dY(function(){return new aFK(P.w9,P.TU,V,f,P.Nj)}); g.y(this,this.Lh);this.wi=dY(function(){return new K5(P.hn,b,K)}); g.y(this,this.wi);this.EE=dY(function(){return new f5(P.WX,P.TU,P.tZ,P.Nj)}); g.y(this,this.EE);this.ri=dY(function(){return new OP(V,P.Vc,P.tZ,P.PX,P.zd,P.h6,P.TU,k,P.pR,P.Nj,P.ye,P.Xi,P.ZT,P.hJ,P.jB,P.v$,P.Vg,P.WX,f,I,L)}); g.y(this,this.ri);this.NZ=dY(function(){return new CvL(P.h6,P.TU,P.v$,P.WX,P.Nj)}); g.y(this,this.NZ);this.Q$=dY(function(){return new Tqw(P.w9,P.h6,P.TU,f,P.Nj,P.mR,P.Ly,P.v$,P.WX,x)}); g.y(this,this.Q$);this.lV=dY(function(){return new rz4(P.w9,P.TU,f)}); g.y(this,this.lV);this.Vp=new EN(V,this.Ot,K);g.y(this,this.Vp);this.LJ={Y3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.hn],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.UE],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.j0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fR],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.sO]]),x9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N9],["SLOT_TYPE_ABOVE_FEED",this.fG],["SLOT_TYPE_FORECASTING",this.fG], ["SLOT_TYPE_IN_PLAYER",this.fG],["SLOT_TYPE_PLAYER_BYTES",this.fG],["SLOT_TYPE_PLAYER_UNDERLAY",this.fG],["SLOT_TYPE_PLAYBACK_TRACKING",this.fG],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.fG]]),QW:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.mZ],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.mZ],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Mj],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Mj],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Mj],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Mj],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Mj],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Mj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Mj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Mj],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Mj],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Mj],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Mj],["TRIGGER_TYPE_CLOSE_REQUESTED",this.mR],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Zg],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.rb],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.rb],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.rb],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.rb],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.rb],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.rb],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.rb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.zj],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.zj],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.tZ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Zg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.C6],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Ly],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Vc],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.xD],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.xD],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.xD],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.xD],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.xD]]),OR:new Map([["SLOT_TYPE_ABOVE_FEED",this.Wr], ["SLOT_TYPE_AD_BREAK_REQUEST",this.Wr],["SLOT_TYPE_FORECASTING",this.Wr],["SLOT_TYPE_IN_PLAYER",this.Wr],["SLOT_TYPE_PLAYER_BYTES",this.M9],["SLOT_TYPE_PLAYER_UNDERLAY",this.Wr],["SLOT_TYPE_PLAYBACK_TRACKING",this.Wr],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Wr]]),zw:new Map([["SLOT_TYPE_ABOVE_FEED",this.Lh],["SLOT_TYPE_AD_BREAK_REQUEST",this.wi],["SLOT_TYPE_FORECASTING",this.EE],["SLOT_TYPE_PLAYER_BYTES",this.ri],["SLOT_TYPE_PLAYBACK_TRACKING",this.NZ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.NZ],["SLOT_TYPE_IN_PLAYER",this.Q$],["SLOT_TYPE_PLAYER_UNDERLAY",this.lV]])};this.listeners=[f.get()];this.KT={hn:this.hn,EV:this.WX.get(),aj:this.v$.get(),u3:this.h6.get(),fR:this.fR,jW:K.get(),nL:this.Ot.get(),lP:this.mZ,xt:f.get(),J9:this.PX.get()}}; EFK=function(V,t,x,u,Z){g.c.call(this);var P=this,K=dY(function(){return new ha(P.WX)}); g.y(this,K);var R=dY(function(){return new VJ(K,P.WX)}); g.y(this,R);var f=dY(function(){return new BT}); g.y(this,f);var b=dY(function(){return new Xx(V)}); g.y(this,b);var E=dY(function(){return new t5(K,R,P.WX)}); g.y(this,E);var k=dY(function(){return new K7}); g.y(this,k);this.w9=dY(function(){return new iE(t)}); g.y(this,this.w9);this.v$=dY(function(){return new J3(Z)}); g.y(this,this.v$);this.hJ=dY(function(){return new eX(t)}); g.y(this,this.hJ);this.ZT=dY(function(){return new dQ(t)}); g.y(this,this.ZT);this.Xi=dY(function(){return new pt(t)}); g.y(this,this.Xi);this.jB=dY(function(){return new Cz(t)}); g.y(this,this.jB);this.WX=dY(function(){return new JQ(t)}); g.y(this,this.WX);var O=dY(function(){return new kh(u)}); g.y(this,O);var N=dY(function(){return new GJ(P.WX)}); g.y(this,N);var p=dY(function(){return new Sr(K,E,R,P.WX,N,null,null,P.UE,P.xD)}); g.y(this,p);this.Vg=dY(function(){return new Ak(t)}); g.y(this,this.Vg);this.Ot=dY(function(){return new Vq}); g.y(this,this.Ot);this.PX=dY(function(){return new Kt(t,k,P.WX)}); g.y(this,this.PX);var I=Ua({PX:this.PX,WX:this.WX,I_:N}),L=I.context,M=I.CJ;this.Al=I.Al;this.pR=dY(function(){return new Nw(t,P.WX,P.TU)}); this.h6=dY(function(){return new qw(t,P.PX,P.WX)}); g.y(this,this.h6);this.Nj=dY(function(){return new Vu(P.h6,t,P.WX)}); g.y(this,this.Nj);this.TU=dY(function(){return new PH(t,f,P.Nj,P.PX,P.Al,P.WX,M)}); g.y(this,this.TU);this.ye=dY(function(){return new ty(P.WX)}); g.y(this,this.ye);this.j0=new Mb(Fx,GH,function(Y,r,n,U){return x5(R.get(),Y,r,n,U)},b,E,R,N,this.WX,this.PX); g.y(this,this.j0);this.fR=new gb(b,p,x,this.WX,V,this.PX,this.h6,this.hJ);g.y(this,this.fR);var z=new DI(t,this.fR,this.h6,this.PX,this.pR);this.BG=dY(function(){return z}); this.Zk=z;this.UE=new vT(b,E,this.BG,this.pR,this.h6,this.WX,this.TU);g.y(this,this.UE);this.sO=new z1(b,E,this.ZT,this.BG,L);g.y(this,this.sO);this.hn=new yj(this.WX,b,E,p,this.PX,this.sO,x);g.y(this,this.hn);this.N9=dY(function(){return new S$(O,R,N,P.WX,P.TU,P.h6)}); g.y(this,this.N9);this.fG=dY(function(){return new GR}); g.y(this,this.fG);this.mZ=new WT(V,this.w9,this.WX);g.y(this,this.mZ);this.Mj=new o5(V);g.y(this,this.Mj);this.mR=new nn(V);g.y(this,this.mR);this.Zg=new yI(V,this.BG,L);g.y(this,this.Zg);this.rb=new jr(V,this.ZT,this.h6,this.PX,L);g.y(this,this.rb);this.tZ=new HT(V);g.y(this,this.tZ);this.C6=new UZ(V);g.y(this,this.C6);this.Ly=new Cn(V);g.y(this,this.Ly);this.zd=dY(function(){return new ST(t)}); g.y(this,this.zd);this.Vc=new Ja(V);g.y(this,this.Vc);this.xD=new Db(V,this.pR,this.h6,this.TU,this.BG);g.y(this,this.xD);this.Wr=dY(function(){return new QI}); g.y(this,this.Wr);this.M9=dY(function(){return new a5(P.h6)}); g.y(this,this.M9);this.wi=dY(function(){return new K5(P.hn,b,K)}); g.y(this,this.wi);this.EE=dY(function(){return new f5(P.WX,P.TU,P.tZ,P.Nj)}); g.y(this,this.EE);this.Q$=dY(function(){return new Wiw(P.w9,P.h6,P.TU,f,P.Nj,P.mR,P.Ly,P.v$,P.WX,x)}); g.y(this,this.Q$);this.ri=dY(function(){return new sP(V,P.Vc,P.tZ,P.TU,P.Nj,P.ye,P.Xi,P.PX,P.h6,P.ZT,P.hJ,P.jB,P.v$,P.Vg,P.WX,P.zd,L,M)}); g.y(this,this.ri);this.Vp=new EN(V,this.Ot,K);g.y(this,this.Vp);this.LJ={Y3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.hn],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.UE],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.j0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fR],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.sO]]),x9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N9],["SLOT_TYPE_FORECASTING",this.fG],["SLOT_TYPE_IN_PLAYER",this.fG], ["SLOT_TYPE_PLAYER_BYTES",this.fG]]),QW:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.mZ],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Mj],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Mj],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Mj],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Mj],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Mj],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Mj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Mj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Mj],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Mj], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Mj],["TRIGGER_TYPE_CLOSE_REQUESTED",this.mR],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Zg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.rb],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.rb],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.rb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.tZ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Zg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.C6],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.Ly],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Vc],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.xD],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.xD],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.xD],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.xD],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.xD]]),OR:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wr],["SLOT_TYPE_FORECASTING",this.Wr],["SLOT_TYPE_IN_PLAYER",this.Wr],["SLOT_TYPE_PLAYER_BYTES",this.M9]]), zw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wi],["SLOT_TYPE_FORECASTING",this.EE],["SLOT_TYPE_IN_PLAYER",this.Q$],["SLOT_TYPE_PLAYER_BYTES",this.ri]])};this.listeners=[f.get()];this.KT={hn:this.hn,EV:this.WX.get(),aj:this.v$.get(),u3:this.h6.get(),fR:this.fR,jW:K.get(),nL:this.Ot.get(),lP:this.mZ,xt:f.get(),J9:this.PX.get()}}; kj8=function(V,t,x,u,Z){g.c.call(this);var P=this,K=dY(function(){return new ha(P.WX)}); g.y(this,K);var R=dY(function(){return new VJ(K,P.WX)}); g.y(this,R);var f=dY(function(){return new BT}); g.y(this,f);var b=dY(function(){return new Xx(V)}); g.y(this,b);var E=dY(function(){return new t5(K,R,P.WX)}); g.y(this,E);var k=dY(function(){return new K7}); g.y(this,k);this.w9=dY(function(){return new iE(t)}); g.y(this,this.w9);this.v$=dY(function(){return new J3(Z)}); g.y(this,this.v$);this.hJ=dY(function(){return new eX(t)}); g.y(this,this.hJ);this.ZT=dY(function(){return new dQ(t)}); g.y(this,this.ZT);this.Xi=dY(function(){return new pt(t)}); g.y(this,this.Xi);this.jB=dY(function(){return new Cz(t)}); g.y(this,this.jB);this.WX=dY(function(){return new JQ(t)}); g.y(this,this.WX);var O=dY(function(){return new kh(u)}); g.y(this,O);var N=dY(function(){return new GJ(P.WX)}); g.y(this,N);var p=dY(function(){return new Sr(K,E,R,P.WX,N,null,null,null,null)}); g.y(this,p);this.Vg=dY(function(){return new Ak(t)}); g.y(this,this.Vg);this.PX=dY(function(){return new Kt(t,k,P.WX)}); g.y(this,this.PX);var I=Ua({PX:this.PX,WX:this.WX,I_:N}),L=I.context,M=I.CJ;this.Al=I.Al;this.h6=dY(function(){return new qw(t,P.PX,P.WX)}); g.y(this,this.h6);this.Nj=dY(function(){return new Vu(P.h6,t,P.WX)}); g.y(this,this.Nj);this.TU=dY(function(){return new PH(t,f,P.Nj,P.PX,P.Al,P.WX,M)}); g.y(this,this.TU);this.ye=dY(function(){return new ty(P.WX)}); g.y(this,this.ye);this.j0=new Mb(Fx,GH,function(Y,r,n,U){return x5(R.get(),Y,r,n,U)},b,E,R,N,this.WX,this.PX); g.y(this,this.j0);this.fR=new gb(b,p,x,this.WX,V,this.PX,this.h6,this.hJ);g.y(this,this.fR);var z=new DI(t,this.fR,this.h6,this.PX);this.BG=dY(function(){return z}); this.Zk=z;this.sO=new z1(b,E,this.ZT,this.BG,L);g.y(this,this.sO);this.hn=new yj(this.WX,b,E,p,this.PX,this.sO,x);g.y(this,this.hn);this.N9=dY(function(){return new S$(O,R,N,P.WX,P.TU,P.h6)}); g.y(this,this.N9);this.fG=dY(function(){return new GR}); g.y(this,this.fG);this.mZ=new WT(V,this.w9,this.WX);g.y(this,this.mZ);this.Mj=new o5(V);g.y(this,this.Mj);this.Zg=new yI(V,this.BG,L);g.y(this,this.Zg);this.rb=new jr(V,this.ZT,this.h6,this.PX,L);g.y(this,this.rb);this.tZ=new HT(V);g.y(this,this.tZ);this.C6=new UZ(V);g.y(this,this.C6);this.zd=dY(function(){return new ST(t)}); g.y(this,this.zd);this.Vc=new Ja(V);g.y(this,this.Vc);this.Wr=dY(function(){return new QI}); g.y(this,this.Wr);this.M9=dY(function(){return new a5(P.h6)}); g.y(this,this.M9);this.wi=dY(function(){return new K5(P.hn,b,K)}); g.y(this,this.wi);this.EE=dY(function(){return new f5(P.WX,P.TU,P.tZ,P.Nj)}); g.y(this,this.EE);this.jO=dY(function(){return new el0(P.w9,P.h6,P.TU,f,x,P.WX)}); g.y(this,this.jO);this.ri=dY(function(){return new sP(V,P.Vc,P.tZ,P.TU,P.Nj,P.ye,P.Xi,P.PX,P.h6,P.ZT,P.hJ,P.jB,P.v$,P.Vg,P.WX,P.zd,L,M)}); g.y(this,this.ri);this.LJ={Y3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.hn],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.j0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fR],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.sO]]),x9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N9],["SLOT_TYPE_FORECASTING",this.fG],["SLOT_TYPE_IN_PLAYER",this.fG],["SLOT_TYPE_PLAYER_BYTES",this.fG]]),QW:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.mZ],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Mj],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Mj],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Mj],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Mj],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Mj],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Mj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Mj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Mj],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Mj],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Zg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.rb],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.rb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.tZ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Zg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.C6],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Vc]]),OR:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wr],["SLOT_TYPE_ABOVE_FEED",this.Wr],["SLOT_TYPE_FORECASTING",this.Wr],["SLOT_TYPE_IN_PLAYER",this.Wr],["SLOT_TYPE_PLAYER_BYTES",this.M9]]),zw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wi],["SLOT_TYPE_FORECASTING",this.EE],["SLOT_TYPE_IN_PLAYER", this.jO],["SLOT_TYPE_PLAYER_BYTES",this.ri]])};this.listeners=[f.get()];this.KT={hn:this.hn,EV:this.WX.get(),aj:this.v$.get(),u3:this.h6.get(),fR:this.fR,jW:K.get(),nL:null,lP:this.mZ,xt:f.get(),J9:this.PX.get()}}; if9=function(V,t,x,u,Z){g.c.call(this);var P=this,K=dY(function(){return new ha(P.WX)}); g.y(this,K);var R=dY(function(){return new VJ(K,P.WX)}); g.y(this,R);var f=dY(function(){return new BT}); g.y(this,f);var b=dY(function(){return new Xx(V)}); g.y(this,b);var E=dY(function(){return new t5(K,R,P.WX)}); g.y(this,E);var k=dY(function(){return new K7}); g.y(this,k);this.Wx=dY(function(){return new $2T(t)}); g.y(this,this.Wx);this.w9=dY(function(){return new iE(t)}); g.y(this,this.w9);this.v$=dY(function(){return new J3(Z)}); g.y(this,this.v$);this.hJ=dY(function(){return new eX(t)}); g.y(this,this.hJ);this.ZT=dY(function(){return new dQ(t)}); g.y(this,this.ZT);this.Xi=dY(function(){return new pt(t)}); g.y(this,this.Xi);this.jB=dY(function(){return new Cz(t)}); g.y(this,this.jB);this.WX=dY(function(){return new JQ(t)}); g.y(this,this.WX);var O=dY(function(){return new kh(u)}); g.y(this,O);var N=dY(function(){return new GJ(P.WX)}); g.y(this,N);var p=dY(function(){return new Sr(K,E,R,P.WX,N,null,null,null,null)}); g.y(this,p);this.Vg=dY(function(){return new Ak(t)}); g.y(this,this.Vg);this.PX=dY(function(){return new Kt(t,k,P.WX)}); g.y(this,this.PX);var I=Ua({PX:this.PX,WX:this.WX,I_:N}),L=I.context,M=I.CJ;this.Al=I.Al;this.h6=dY(function(){return new qw(t,P.PX,P.WX)}); g.y(this,this.h6);this.Nj=dY(function(){return new Vu(P.h6,t,P.WX)}); g.y(this,this.Nj);this.TU=dY(function(){return new PH(t,f,P.Nj,P.PX,P.Al,P.WX,M)}); g.y(this,this.TU);this.ye=dY(function(){return new ty(P.WX)}); g.y(this,this.ye);this.j0=new Mb(Sx1,GH,function(Y,r,n,U){return yUK(R.get(),Y,r,n,U)},b,E,R,N,this.WX,this.PX); g.y(this,this.j0);this.fR=new gb(b,p,x,this.WX,V,this.PX,this.h6,this.hJ);g.y(this,this.fR);var z=new DI(t,this.fR,this.h6,this.PX);this.BG=dY(function(){return z}); this.Zk=z;this.sO=new z1(b,E,this.ZT,this.BG,L);g.y(this,this.sO);this.hn=new yj(this.WX,b,E,p,this.PX,this.sO,x);g.y(this,this.hn);this.N9=dY(function(){return new S$(O,R,N,P.WX,P.TU,P.h6)}); g.y(this,this.N9);this.fG=dY(function(){return new GR}); g.y(this,this.fG);this.mZ=new WT(V,this.w9,this.WX);g.y(this,this.mZ);this.Mj=new o5(V);g.y(this,this.Mj);this.Zg=new yI(V,this.BG,L);g.y(this,this.Zg);this.rb=new jr(V,this.ZT,this.h6,this.PX,L);g.y(this,this.rb);this.tZ=new HT(V);g.y(this,this.tZ);this.C6=new UZ(V);g.y(this,this.C6);this.zd=dY(function(){return new ST(t)}); g.y(this,this.zd);this.Vc=new Ja(V);g.y(this,this.Vc);this.Wr=dY(function(){return new QI}); g.y(this,this.Wr);this.M9=dY(function(){return new a5(P.h6)}); g.y(this,this.M9);this.wi=dY(function(){return new K5(P.hn,b,K)}); g.y(this,this.wi);this.EE=dY(function(){return new f5(P.WX,P.TU,P.tZ,P.Nj)}); g.y(this,this.EE);this.ri=dY(function(){return new sP(V,P.Vc,P.tZ,P.TU,P.Nj,P.ye,P.Xi,P.PX,P.h6,P.ZT,P.hJ,P.jB,P.v$,P.Vg,P.WX,P.zd,L,M)}); g.y(this,this.ri);this.Ud=dY(function(){return new n1w(P.w9,P.h6,P.TU,f,P.Wx,x,P.PX)}); g.y(this,this.Ud);this.LJ={Y3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.hn],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.j0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fR],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.sO]]),x9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N9],["SLOT_TYPE_FORECASTING",this.fG],["SLOT_TYPE_IN_PLAYER",this.fG],["SLOT_TYPE_PLAYER_BYTES",this.fG]]),QW:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.mZ],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Mj],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Mj],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Mj],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Mj],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Mj],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Mj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Mj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Mj],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Mj],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Zg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.rb],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.rb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.tZ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Zg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.C6],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Vc]]),OR:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wr],["SLOT_TYPE_FORECASTING",this.Wr],["SLOT_TYPE_IN_PLAYER",this.Wr],["SLOT_TYPE_PLAYER_BYTES",this.M9]]),zw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wi],["SLOT_TYPE_FORECASTING",this.EE],["SLOT_TYPE_IN_PLAYER",this.Ud],["SLOT_TYPE_PLAYER_BYTES", this.ri]])};this.listeners=[f.get()];this.KT={hn:this.hn,EV:this.WX.get(),aj:this.v$.get(),u3:this.h6.get(),fR:this.fR,jW:K.get(),nL:null,lP:this.mZ,xt:f.get(),J9:this.PX.get()}}; Ofl=function(V,t,x,u,Z){g.c.call(this);var P=this,K=dY(function(){return new ha(P.WX)}); g.y(this,K);var R=dY(function(){return new VJ(K,P.WX)}); g.y(this,R);var f=dY(function(){return new BT}); g.y(this,f);var b=dY(function(){return new Xx(V)}); g.y(this,b);var E=dY(function(){return new t5(K,R,P.WX)}); g.y(this,E);var k=dY(function(){return new K7}); g.y(this,k);this.Wx=dY(function(){return new $2T(t)}); g.y(this,this.Wx);this.w9=dY(function(){return new iE(t)}); g.y(this,this.w9);this.v$=dY(function(){return new J3(Z)}); g.y(this,this.v$);this.hJ=dY(function(){return new eX(t)}); g.y(this,this.hJ);this.ZT=dY(function(){return new dQ(t)}); g.y(this,this.ZT);this.Xi=dY(function(){return new pt(t)}); g.y(this,this.Xi);this.jB=dY(function(){return new Cz(t)}); g.y(this,this.jB);this.WX=dY(function(){return new JQ(t)}); g.y(this,this.WX);var O=dY(function(){return new kh(u)}); g.y(this,O);var N=dY(function(){return new GJ(P.WX)}); g.y(this,N);this.Vg=dY(function(){return new Ak(t)}); g.y(this,this.Vg);this.PX=dY(function(){return new Kt(t,k,P.WX)}); g.y(this,this.PX);var p=Ua({PX:this.PX,WX:this.WX,I_:N}),I=p.context,L=p.CJ;this.Al=p.Al;this.pR=dY(function(){return new Nw(t,P.WX,P.TU)}); g.y(this,this.pR);this.zd=dY(function(){return new ST(t)}); g.y(this,this.zd);this.h6=dY(function(){return new qw(t,P.PX,P.WX)}); g.y(this,this.h6);p=dY(function(){return new Sr(K,E,R,P.WX,N,null,P.h6,P.UE,P.xD,3)}); g.y(this,p);this.ye=dY(function(){return new ty(P.WX)}); this.Nj=dY(function(){return new Vu(P.h6,t,P.WX)}); g.y(this,this.Nj);this.TU=dY(function(){return new PH(t,f,P.Nj,P.PX,P.Al,P.WX,L)}); g.y(this,this.TU);this.fR=new gb(b,p,x,this.WX,V,this.PX,this.h6,this.hJ);g.y(this,this.fR);var M=new DI(t,this.fR,this.h6,this.PX,this.pR);this.BG=dY(function(){return M}); this.Zk=M;this.j0=new Mb(Gc9,GH,function(z,Y,r,n){return yUK(R.get(),z,Y,r,n)},b,E,R,N,this.WX,this.PX); g.y(this,this.j0);this.UE=new vT(b,E,this.BG,this.pR,this.h6,this.WX,this.TU,this.zd);g.y(this,this.UE);this.sO=new z1(b,E,this.ZT,this.BG,I);g.y(this,this.sO);this.hn=new yj(this.WX,b,E,p,this.PX,this.sO,x);g.y(this,this.hn);this.N9=dY(function(){return new S$(O,R,N,P.WX,P.TU,P.h6,P.zd)}); g.y(this,this.N9);this.fG=dY(function(){return new GR}); g.y(this,this.fG);this.mZ=new WT(V,this.w9,this.WX);g.y(this,this.mZ);this.Mj=new o5(V);g.y(this,this.Mj);this.Zg=new yI(V,this.BG,I);g.y(this,this.Zg);this.rb=new jr(V,this.ZT,this.h6,this.PX,I);g.y(this,this.rb);this.zj=new lJ(V,this.PX);g.y(this,this.zj);this.xD=new Db(V,this.pR,this.h6,this.TU,this.BG);g.y(this,this.xD);this.tZ=new HT(V);g.y(this,this.tZ);this.C6=new UZ(V);g.y(this,this.C6);this.Vc=new Ja(V);g.y(this,this.Vc);this.Wr=dY(function(){return new QI}); g.y(this,this.Wr);this.M9=dY(function(){return new a5(P.h6)}); g.y(this,this.M9);this.wi=dY(function(){return new K5(P.hn,b,K)}); g.y(this,this.wi);this.EE=dY(function(){return new f5(P.WX,P.TU,P.tZ,P.Nj)}); g.y(this,this.EE);this.ri=dY(function(){return new OP(V,P.Vc,P.tZ,P.PX,P.zd,P.h6,P.TU,k,P.pR,P.Nj,P.ye,P.Xi,P.ZT,P.hJ,P.jB,P.v$,P.Vg,P.WX,f,I,L)}); g.y(this,this.ri);this.Q$=dY(function(){return new c4j(P.w9,P.h6,P.TU,f,P.Wx,x,P.WX,P.PX)}); g.y(this,this.Q$);this.LJ={Y3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.hn],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.UE],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.j0],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fR],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.sO]]),x9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N9],["SLOT_TYPE_FORECASTING",this.fG],["SLOT_TYPE_IN_PLAYER",this.fG],["SLOT_TYPE_PLAYER_BYTES",this.fG]]),QW:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.mZ],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Mj],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Mj],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Mj],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Mj],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Mj],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Mj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Mj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Mj],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Mj],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Zg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.rb],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.rb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.zj],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.zj],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.tZ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Zg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.C6],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Vc],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.xD],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.xD],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.xD],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.xD],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.xD]]),OR:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wr],["SLOT_TYPE_FORECASTING",this.Wr],["SLOT_TYPE_IN_PLAYER",this.Wr],["SLOT_TYPE_PLAYER_BYTES",this.M9]]),zw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wi],["SLOT_TYPE_FORECASTING",this.EE],["SLOT_TYPE_PLAYER_BYTES",this.ri],["SLOT_TYPE_IN_PLAYER",this.Q$]])};this.listeners=[f.get()]; this.KT={hn:this.hn,EV:this.WX.get(),aj:this.v$.get(),u3:this.h6.get(),fR:this.fR,jW:K.get(),nL:null,lP:this.mZ,xt:f.get(),J9:this.PX.get()}}; NEs=function(V,t,x,u){function Z(){return P.S} g.c.call(this);var P=this;V.K().experiments.MP("html5_dispose_of_manager_before_dependency")?(this.J=srC(Z,V,t,x,u),this.S=(new Cw(this.J)).N(),g.y(this,this.S),g.y(this,this.J)):(this.J=srC(Z,V,t,x,u),g.y(this,this.J),this.S=(new Cw(this.J)).N(),g.y(this,this.S))}; IC=function(V){return V.J.KT}; srC=function(V,t,x,u,Z){try{var P=t.K();if(g.J2(P))var K=new bfL(V,t,x,u,Z);else if(g.we(P))K=new EFK(V,t,x,u,Z);else if(jW(P))K=new kj8(V,t,x,u,Z);else if(g.Dp(P))K=new if9(V,t,x,u,Z);else if(g.To(P))K=new Ofl(V,t,x,u,Z);else throw new TypeError("Unknown web interface");return K}catch(R){return K=t.K(),Gd("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:K.J.cplatform,interface:K.J.c,eV8:K.J.cver,nlS:K.J.ctheme,glX:K.J.cplayer,K6X:K.playerStyle}),new VKs(V,t,x,u,Z)}}; pXs=function(V){wN.call(this,V)}; AYL=function(V,t,x,u,Z){qh.call(this,V,{Y:"div",V:"ytp-ad-timed-pie-countdown-container",D:[{Y:"svg",V:"ytp-ad-timed-pie-countdown",j:{viewBox:"0 0 20 20"},D:[{Y:"circle",V:"ytp-ad-timed-pie-countdown-background",j:{r:"10",cx:"10",cy:"10"}},{Y:"circle",V:"ytp-ad-timed-pie-countdown-inner",j:{r:"5",cx:"10",cy:"10"}},{Y:"circle",V:"ytp-ad-timed-pie-countdown-outer",j:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",t,x,u,Z);this.W=this.f1("ytp-ad-timed-pie-countdown-container");this.N=this.f1("ytp-ad-timed-pie-countdown-inner"); this.B=this.f1("ytp-ad-timed-pie-countdown-outer");this.S=Math.ceil(2*Math.PI*5);this.hide()}; S04=function(V,t,x,u,Z,P){vS.call(this,V,{Y:"div",V:"ytp-ad-action-interstitial",j:{tabindex:"0"},D:[{Y:"div",V:"ytp-ad-action-interstitial-background-container"},{Y:"div",V:"ytp-ad-action-interstitial-slot",D:[{Y:"div",V:"ytp-ad-action-interstitial-instream-info"},{Y:"div",V:"ytp-ad-action-interstitial-card",D:[{Y:"div",V:"ytp-ad-action-interstitial-image-container"},{Y:"div",V:"ytp-ad-action-interstitial-headline-container"},{Y:"div",V:"ytp-ad-action-interstitial-description-container"},{Y:"div", V:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",t,x,u);this.T6=Z;this.qd=P;this.navigationEndpoint=this.J=this.skipButton=this.S=this.actionButton=null;this.L1=this.f1("ytp-ad-action-interstitial-instream-info");this.Es=this.f1("ytp-ad-action-interstitial-image-container");this.X=new dN(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,"ytp-ad-action-interstitial-image");g.y(this,this.X);this.X.t6(this.Es);this.Us=this.f1("ytp-ad-action-interstitial-headline-container"); this.B=new P0(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,"ytp-ad-action-interstitial-headline");g.y(this,this.B);this.B.t6(this.Us);this.wk=this.f1("ytp-ad-action-interstitial-description-container");this.N=new P0(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,"ytp-ad-action-interstitial-description");g.y(this,this.N);this.N.t6(this.wk);this.HX=this.f1("ytp-ad-action-interstitial-background-container");this.xw=new dN(this.api,this.layoutId,this.interactionLoggingClientData, this.aj,"ytp-ad-action-interstitial-background",!0);g.y(this,this.xw);this.xw.t6(this.HX);this.yC=this.f1("ytp-ad-action-interstitial-action-button-container");this.slot=this.f1("ytp-ad-action-interstitial-slot");this.D8=this.f1("ytp-ad-action-interstitial-card");this.W=new TF;g.y(this,this.W);this.hide()}; Gjz=function(V){var t=g.JI("html5-video-player");t&&g.Am(t,"ytp-ad-display-override",V)}; Fpq=function(V,t,x,u){vS.call(this,V,{Y:"div",V:"ytp-ad-overlay-slot",D:[{Y:"div",V:"ytp-ad-overlay-container"}]},"invideo-overlay",t,x,u);this.X=[];this.HX=this.Us=this.W=this.yC=this.L1=null;this.xw=!1;this.B=null;this.wk=0;V=this.f1("ytp-ad-overlay-container");this.Es=new sm(V,45E3,6E3,.3,.4);g.y(this,this.Es);this.N=IXz(this);g.y(this,this.N);this.N.t6(V);this.S=vF8(this);g.y(this,this.S);this.S.t6(V);this.J=Lp0(this);g.y(this,this.J);this.J.t6(V);this.hide()}; IXz=function(V){var t=new g.Iz({Y:"div",V:"ytp-ad-text-overlay",D:[{Y:"div",V:"ytp-ad-overlay-ad-info-button-container"},{Y:"div",V:"ytp-ad-overlay-close-container",D:[{Y:"button",V:"ytp-ad-overlay-close-button",D:[cS(MK0)]}]},{Y:"div",V:"ytp-ad-overlay-title",mw:"{{title}}"},{Y:"div",V:"ytp-ad-overlay-desc",mw:"{{description}}"},{Y:"div",vX:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],mw:"{{displayUrl}}"}]});V.Z(t.f1("ytp-ad-overlay-title"),"click",function(x){vH(V,t.element,x)}); V.Z(t.f1("ytp-ad-overlay-link"),"click",function(x){vH(V,t.element,x)}); V.Z(t.f1("ytp-ad-overlay-close-container"),"click",V.hU);t.hide();return t}; vF8=function(V){var t=new g.Iz({Y:"div",vX:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],D:[{Y:"div",V:"ytp-ad-overlay-ad-info-button-container"},{Y:"div",V:"ytp-ad-overlay-close-container",D:[{Y:"button",V:"ytp-ad-overlay-close-button",D:[cS(MK0)]}]},{Y:"div",V:"ytp-ad-overlay-text-image",D:[{Y:"img",j:{src:"{{imageUrl}}"}}]},{Y:"div",V:"ytp-ad-overlay-title",mw:"{{title}}"},{Y:"div",V:"ytp-ad-overlay-desc",mw:"{{description}}"},{Y:"div",vX:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], mw:"{{displayUrl}}"}]});V.Z(t.f1("ytp-ad-overlay-title"),"click",function(x){vH(V,t.element,x)}); V.Z(t.f1("ytp-ad-overlay-link"),"click",function(x){vH(V,t.element,x)}); V.Z(t.f1("ytp-ad-overlay-close-container"),"click",V.hU);V.Z(t.f1("ytp-ad-overlay-text-image"),"click",V.HRk);t.hide();return t}; Lp0=function(V){var t=new g.Iz({Y:"div",V:"ytp-ad-image-overlay",D:[{Y:"div",V:"ytp-ad-overlay-ad-info-button-container"},{Y:"div",V:"ytp-ad-overlay-close-container",D:[{Y:"button",V:"ytp-ad-overlay-close-button",D:[cS(MK0)]}]},{Y:"div",V:"ytp-ad-overlay-image",D:[{Y:"img",j:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});V.Z(t.f1("ytp-ad-overlay-image"),"click",function(x){vH(V,t.element,x)}); V.Z(t.f1("ytp-ad-overlay-close-container"),"click",V.hU);t.hide();return t}; gFz=function(V,t){if(t){var x=g.l(t,Wd)||null;x==null?g.jv(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(t=g.JI("video-ads ytp-ad-module")||null,t==null?g.jv(Error("Could not locate the root ads container element to attach the ad info dialog.")):(V.Us=new g.Iz({Y:"div",V:"ytp-ad-overlay-ad-info-dialog-container"}),g.y(V,V.Us),V.Us.t6(t),t=new Zp(V.api,V.layoutId,V.interactionLoggingClientData,V.aj,V.Us.element,!1),g.y(V,t),t.init(iv("ad-info-hover-text-button"),x,V.macros), V.B?(t.t6(V.B,0),t.subscribe("f",V.L06,V),t.subscribe("e",V.Ac,V),V.Z(V.B,"click",V.bI8),V.Z(g.JI("ytp-ad-button",t.element),"click",function(){var u;if(g.l((u=g.l(x.button,g.nd))==null?void 0:u.serviceEndpoint,D3z))V.xw=V.api.getPlayerState(1)===2,V.api.pauseVideo();else V.api.onAdUxClicked("ad-info-hover-text-button",V.layoutId)}),V.HX=t):g.jv(Error("Ad info button container within overlay ad was not present."))))}else g.lf(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; zxh=function(V,t){if(XXq(V,Lt)||V.api.isMinimized())return!1;var x=LD(t.title),u=LD(t.description);if(g.vU(x)||g.vU(u))return!1;V.createServerVe(V.N.element,t.trackingParams||null);V.N.updateValue("title",LD(t.title));V.N.updateValue("description",LD(t.description));V.N.updateValue("displayUrl",LD(t.displayUrl));t.navigationEndpoint&&g.xz(V.X,t.navigationEndpoint);V.N.show();V.Es.start();V.logVisibility(V.N.element,!0);V.Z(V.N.element,"mouseover",function(){V.wk++}); return!0}; BEK=function(V,t){if(XXq(V,Lt)||V.api.isMinimized())return!1;var x=LD(t.title),u=LD(t.description);if(g.vU(x)||g.vU(u))return!1;V.createServerVe(V.S.element,t.trackingParams||null);V.S.updateValue("title",LD(t.title));V.S.updateValue("description",LD(t.description));V.S.updateValue("displayUrl",LD(t.displayUrl));V.S.updateValue("imageUrl",bqj(t.image));t.navigationEndpoint&&g.xz(V.X,t.navigationEndpoint);V.yC=t.imageNavigationEndpoint||null;V.S.show();V.Es.start();V.logVisibility(V.S.element,!0); V.Z(V.S.element,"mouseover",function(){V.wk++}); return!0}; m21=function(V,t){if(V.api.isMinimized())return!1;var x=EeT(t.image),u=x;x.width0?(t=new H0(V.api,V.J),t.t6(V.playerOverlay), g.y(V,t)):g.jv(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(t)))}}else g.jv(Error("addCommonComponents() needs to be called before starting countdown."))}; jrC=function(V){function t(x){return{toString:function(){return x()}}} V.macros.SURVEY_LOCAL_TIME_EPOCH_S=t(function(){var x=new Date;return(Math.round(x.valueOf()/1E3)+-1*x.getTimezoneOffset()*60).toString()}); V.macros.SURVEY_ELAPSED_MS=t(function(){return(Date.now()-V.N).toString()})}; lXs=function(V,t,x,u,Z){XP.call(this,V,t,x,u,"survey-question-multi-select");this.wk=Z;this.noneOfTheAbove=null;this.submitEndpoints=[];this.B=null;this.hide()}; HfL=function(V,t,x){V.noneOfTheAbove=new WpL(V.api,V.layoutId,V.interactionLoggingClientData,V.aj);V.noneOfTheAbove.t6(V.answers);V.noneOfTheAbove.init(iv("survey-none-of-the-above"),t,x)}; D2w=function(V){V.S.forEach(function(t){t.J.toggleButton(!1)}); U21(V,!0)}; U21=function(V,t){var x=V.W;V=exL(V);t=t===void 0?!1:t;x.J&&(V?x.J.hide():x.J.show(),t&&x.J instanceof g2&&!x.J.W&&xRh(x.J,!1));x.S&&(V?x.S.show():x.S.hide())}; exL=function(V){return V.S.some(function(t){return t.J.isToggled()})||V.noneOfTheAbove.button.isToggled()}; zH=function(V,t,x,u,Z){XP.call(this,V,t,x,u,"survey-question-single-select",function(K){P.api.K().T("supports_multi_step_on_desktop")&&Z([K])}); var P=this;this.hide()}; BH=function(V,t,x,u){vS.call(this,V,{Y:"div",V:"ytp-ad-survey",D:[{Y:"div",V:"ytp-ad-survey-questions"}]},"survey",t,x,u);this.questions=[];this.S=[];this.conditioningRules=[];this.J=0;this.B=this.f1("ytp-ad-survey-questions");this.api.K().T("fix_survey_color_contrast_on_destop")&&this.f1("ytp-ad-survey").classList.add("color-contrast-fix");this.api.K().T("web_enable_speedmaster")&&this.f1("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; JYK=function(V,t){var x=V.S[t],u;(u=V.N)==null||u.dispose();g.l(x,r4)?d2q(V,g.l(x,r4),V.macros):g.l(x,au)&&CXq(V,g.l(x,au),V.macros);V.J=t}; d2q=function(V,t,x){var u=new zH(V.api,V.layoutId,V.interactionLoggingClientData,V.aj,V.W.bind(V));u.t6(V.B);u.init(iv("survey-question-single-select"),t,x);V.api.K().T("supports_multi_step_on_desktop")?V.N=u:V.questions.push(u);g.y(V,u)}; CXq=function(V,t,x){var u=new lXs(V.api,V.layoutId,V.interactionLoggingClientData,V.aj,V.W.bind(V));u.t6(V.B);u.init(iv("survey-question-multi-select"),t,x);V.api.K().T("supports_multi_step_on_desktop")?V.N=u:V.questions.push(u);g.y(V,u)}; mq=function(V,t,x,u){vS.call(this,V,{Y:"div",V:"ytp-ad-survey-interstitial",D:[{Y:"div",V:"ytp-ad-survey-interstitial-contents",D:[{Y:"div",V:"ytp-ad-survey-interstitial-logo",D:[{Y:"div",V:"ytp-ad-survey-interstitial-logo-image"}]},{Y:"div",V:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",t,x,u);this.J=this.actionButton=null;this.interstitial=this.f1("ytp-ad-survey-interstitial");this.S=this.f1("ytp-ad-survey-interstitial-contents");this.text=this.f1("ytp-ad-survey-interstitial-text"); this.logoImage=this.f1("ytp-ad-survey-interstitial-logo-image");this.transition=new g.$9(this,500,!1,300);g.y(this,this.transition)}; hx4=function(V,t){t=t&&eo(t)||"";if(g.vU(t))g.lf(Error("Found ThumbnailDetails without valid image URL"));else{var x=V.style;V=V.style.cssText;var u=document.implementation.createHTMLDocument("").createElement("DIV");u.style.cssText=V;V=cow(u.style);x.cssText=[V,'background-image:url("'+t+'");'].join("")}}; wX8=function(V){var t=g.JI("html5-video-player");t&&g.Am(t,"ytp-ad-display-override",V)}; Yh=function(V,t,x,u,Z,P){P=P===void 0?0:P;qh.call(this,V,{Y:"div",V:"ytp-preview-ad",D:[{Y:"div",V:"ytp-preview-ad__text"}]},"preview-ad",t,x,u,Z);var K=this;this.wk=P;this.S=0;this.W=-1;this.N=this.f1("ytp-preview-ad__text");switch(this.wk){case 1:this.N.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.$9(this,400,!1,100,function(){K.hide()}); g.y(this,this.transition);this.hide()}; Qu=function(V,t,x,u){vS.call(this,V,{Y:"img",V:"ytp-ad-avatar"},"ad-avatar",t,x,u);this.hide()}; VSq=function(V){switch(V.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}}; aC=function(V,t,x,u,Z,P){Z=Z===void 0?!1:Z;P=P===void 0?!1:P;vS.call(this,V,{Y:"button",V:"ytp-ad-button-vm"},"ad-button",t,x,u);this.buttonText=this.buttonIcon=null;this.hide();this.J=Z;this.S=P}; tSC=function(V,t,x,u,Z){qh.call(this,V,{Y:"div",vX:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],D:[{Y:"div",V:"ytp-ad-avatar-lockup-card__avatar_and_text_container",D:[{Y:"div",V:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",t,x,u,Z);this.startMilliseconds=0;this.adAvatar=new Qu(this.api,this.layoutId,this.interactionLoggingClientData,this.aj);g.y(this,this.adAvatar);qN(this.element,this.adAvatar.element,0);this.headline=new oT(this.api,this.layoutId, this.interactionLoggingClientData,this.aj);g.y(this,this.headline);this.headline.t6(this.f1("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new oT(this.api,this.layoutId,this.interactionLoggingClientData,this.aj);g.y(this,this.description);this.description.t6(this.f1("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new aC(this.api, this.layoutId,this.interactionLoggingClientData,this.aj);g.y(this,this.adButton);this.adButton.t6(this.element);this.hide()}; r0=function(V,t,x,u){vS.call(this,V,{Y:"button",V:"ytp-skip-ad-button",D:[{Y:"div",V:"ytp-skip-ad-button__text"}]},"skip-button",t,x,u);var Z=this;this.S=!1;this.W=this.f1("ytp-skip-ad-button__text");this.transition=new g.$9(this,500,!1,100,function(){Z.hide()}); g.y(this,this.transition);this.J=new sm(this.element,15E3,5E3,.5,.5,!0);g.y(this,this.J);this.hide()}; xZ0=function(V,t,x,u,Z){qh.call(this,V,{Y:"div",V:"ytp-skip-ad"},"skip-ad",t,x,u,Z);this.skipOffsetMilliseconds=0;this.W=this.isSkippable=!1;var P;if((P=this.api.getVideoData())==null?0:P.isDaiEnabled())this.W=this.api.K().T("clean_player_style_fix_on_web");if(this.W||!this.api.K().experiments.MP("disable_ad_preview_for_instream_ads"))this.S=new Yh(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.J),g.y(this,this.S),this.S.t6(this.element);this.N=new r0(this.api,this.layoutId, this.interactionLoggingClientData,this.aj);g.y(this,this.N);this.N.t6(this.element);this.hide()}; TH=function(V,t,x,u){vS.call(this,V,{Y:"div",V:"ytp-visit-advertiser-link"},"visit-advertiser-link",t,x,u);this.hide();this.api.T("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.T("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")}; WH=function(V,t,x,u,Z){vS.call(this,V,{Y:"div",V:"ytp-ad-player-overlay-layout",D:[{Y:"div",V:"ytp-ad-player-overlay-layout__player-card-container"},{Y:"div",V:"ytp-ad-player-overlay-layout__ad-info-container"},{Y:"div",V:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{Y:"div",V:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",t,x,u);this.S=Z;this.Us=this.f1("ytp-ad-player-overlay-layout__player-card-container");this.J=this.f1("ytp-ad-player-overlay-layout__ad-info-container"); this.X=this.f1("ytp-ad-player-overlay-layout__skip-or-preview-container");this.wk=this.f1("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; uow=function(V,t,x,u){vS.call(this,V,{Y:"div",V:"ytp-ad-grid-card-text",D:[{Y:"div",V:"ytp-ad-grid-card-text__metadata",D:[{Y:"div",V:"ytp-ad-grid-card-text__metadata__headline"},{Y:"div",V:"ytp-ad-grid-card-text__metadata__description",D:[{Y:"div",V:"ytp-ad-grid-card-text__metadata__description__line"},{Y:"div",V:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{Y:"div",V:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",t,x,u);this.headline=new oT(this.api,this.layoutId,this.interactionLoggingClientData, this.aj);g.y(this,this.headline);this.headline.t6(this.f1("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new aC(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,!0);g.y(this,this.moreInfoButton);this.moreInfoButton.t6(this.f1("ytp-ad-grid-card-text__button"))}; oC=function(V,t,x,u){vS.call(this,V,{Y:"div",V:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",t,x,u);this.J=[]}; nt=function(V,t,x,u,Z,P,K){qh.call(this,V,P,K,t,x,u,Z);this.playerProgressOffsetMs=0;this.S=!1}; ZUs=function(V){var t=g.JI("html5-video-player");t&&g.Am(t,"ytp-ad-display-override",V)}; PRK=function(V,t,x,u,Z){nt.call(this,V,t,x,u,Z,{Y:"div",V:"ytp-display-underlay-text-grid-cards",D:[{Y:"div",V:"ytp-display-underlay-text-grid-cards__content_container",D:[{Y:"div",V:"ytp-display-underlay-text-grid-cards__content_container__header",D:[{Y:"div",V:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{Y:"div",V:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{Y:"div",V:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {Y:"div",V:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new oC(this.api,this.layoutId,this.interactionLoggingClientData,this.aj);g.y(this,this.adGridCardCollection);this.adGridCardCollection.t6(this.f1("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new aC(this.api,this.layoutId,this.interactionLoggingClientData,this.aj);g.y(this,this.adButton);this.adButton.t6(this.f1("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.N=this.f1("ytp-display-underlay-text-grid-cards__content_container");this.W=this.f1("ytp-display-underlay-text-grid-cards__content_container__header")}; cH=function(V,t,x,u){vS.call(this,V,{Y:"div",V:"ytp-ad-details-line"},"ad-details-line",t,x,u);this.J=[];this.hide()}; yu=function(V,t,x,u){vS.call(this,V,{Y:"div",V:"ytp-image-background",D:[{Y:"img",V:"ytp-image-background-image"}]},"image-background",t,x,u);this.hide()}; KdC=function(V,t,x,u,Z){qh.call(this,V,{Y:"svg",V:"ytp-timed-pie-countdown",j:{viewBox:"0 0 20 20"},D:[{Y:"circle",V:"ytp-timed-pie-countdown__background",j:{r:"10",cx:"10",cy:"10"}},{Y:"circle",V:"ytp-timed-pie-countdown__inner",j:{r:"5",cx:"10",cy:"10"}},{Y:"circle",V:"ytp-timed-pie-countdown__outer",j:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",t,x,u,Z);this.N=this.f1("ytp-timed-pie-countdown__inner");this.S=Math.ceil(2*Math.PI*5);this.hide()}; jT=function(V,t,x,u){vS.call(this,V,{Y:"div",V:"ytp-video-interstitial-buttoned-centered-layout",j:{tabindex:"0"},D:[{Y:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content",D:[{Y:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{Y:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",D:[{Y:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{Y:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {Y:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{Y:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{Y:"div",V:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",t,x,u);this.S=null;this.W=this.f1("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.N=new TF;g.y(this,this.N);this.hide()}; qWj=function(V){var t=g.JI("html5-video-player");t&&g.Am(t,"ytp-ad-display-override",V)}; RbL=function(V){if(!V.adAvatar||!g.l(V.adAvatar,lE))return g.jv(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!V.headline)return g.jv(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!V.adBadge||!g.l(V.adBadge,HH))return g.jv(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!V.adButton||!g.l(V.adButton,UN))return g.jv(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!V.adInfoRenderer|| !g.l(V.adInfoRenderer,Wd))return g.jv(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;V=V.durationMilliseconds||0;return typeof V!=="number"||V<=0?(g.jv(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+V)),!1):!0}; D4=function(V,t,x){wN.call(this,V);this.api=V;this.aj=t;this.S={};V=new g.e({Y:"div",vX:["video-ads","ytp-ad-module"]});g.y(this,V);xO&&g.OU(V.element,"ytp-ads-tiny-mode");this.G=new Xc(V.element);g.y(this,this.G);g.aE(this.api,V.element,4);uJ(x)&&(x=new g.e({Y:"div",vX:["ytp-ad-underlay"]}),g.y(this,x),this.N=new Xc(x.element),g.y(this,this.N),g.aE(this.api,x.element,0));g.y(this,m34())}; fMz=function(V,t){V=g.QR(V.S,t.id,null);V==null&&g.lf(Error("Component not found for element id: "+t.id));return V||null}; $Z8=function(V){g.m5.call(this,V);var t=this;this.S=null;this.created=!1;this.N=V.K().T("h5_use_refactored_get_ad_break")?new Zx0(this.player):new H5(this.player);this.W=function(){if(t.S!=null)return t.S;var u=new bxh({lP:IC(t.J).lP,J9:IC(t.J).J9,U:t.player,EV:IC(t.J).EV,TU:t.J.J.TU,xt:IC(t.J).xt,jB:t.J.J.jB});t.S=u.G8;return t.S}; this.J=new NEs(this.player,this,this.N,this.W);g.y(this,this.J);var x=V.K();!QE(x)||g.To(x)||jW(x)||(g.y(this,new D4(V,IC(this.J).aj,IC(this.J).EV)),g.y(this,new pXs(V)))}; bUj=function(V){V.created!==V.loaded&&Gd("Created and loaded are out of sync")}; iUl=function(V){g.m5.prototype.load.call(V);var t=IC(V.J).EV;try{V.player.getRootNode().classList.add("ad-created")}catch(f){Gd(f instanceof Error?f:String(f))}var x=V.player.getVideoData(1),u=x&&x.videoId||"",Z=x&&x.getPlayerResponse()||{},P=(!V.player.K().experiments.MP("debug_ignore_ad_placements")&&Z&&Z.adPlacements||[]).map(function(f){return f.adPlacementRenderer}),K=((Z==null?void 0:Z.adSlots)||[]).map(function(f){return g.l(f,jl)}); Z=Z.playerConfig&&Z.playerConfig.daiConfig&&Z.playerConfig.daiConfig.enableDai||!1;x&&x.uq();P=ENL(P,K,t,IC(V.J).jW);K=x&&x.clientPlaybackNonce||"";x=x&&x.sM||!1;if(Bb(t,!0)&&x){var R;t={};(R=V.player.getVideoData())==null||R.J6("p_cpb",(t.cc=K,t))}R=1E3*V.player.getDuration(1);k81(V);V.J.J.Zk.ZD(K,R,x,P.lB,P.dG,P.lB,Z,u)}; k81=function(V){var t,x;if(x=(t=V.player.getVideoData(1))==null||!t.sM)t=V.player.K(),x=QE(t)&&!g.YH(t)&&t.playerStyle==="desktop-polymer";x&&(V=V.player.getInternalApi(),V.addEventListener("updateKevlarOrC3Companion",RyT),V.addEventListener("updateEngagementPanelAction",f$s),V.addEventListener("changeEngagementPanelVisibility",$RT),window.addEventListener("yt-navigate-start",Ep8))}; eT=function(V,t){t===V.WN&&(V.WN=void 0)}; OUq=function(V){var t=IC(V.J).fR,x=t.W().RU("SLOT_TYPE_PLAYER_BYTES",1);t=IM(t.PX.get(),1).clientPlaybackNonce;var u=!1;x=g.G(x);for(var Z=x.next();!Z.done;Z=x.next()){Z=Z.value;var P=Z.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Z.slotEntryTrigger instanceof BV?Z.slotEntryTrigger.I9:void 0;P&&P===t&&(u&&Gd("More than 1 preroll playerBytes slot detected",Z),u=!0)}u||RC(IC(V.J).u3)}; sqj=function(V){if(hQ(IC(V.J).EV))return!0;var t="";V=g.G(IC(V.J).xt.ib.keys());for(var x=V.next();!x.done;x=V.next()){x=x.value;if(x.slotType==="SLOT_TYPE_PLAYER_BYTES"&&x.C1==="core")return!0;t+=x.slotType+" "}Math.random()<.01&&Gd("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:t});return!1}; NOC=function(V){V=g.G(IC(V.J).xt.ib.values());for(var t=V.next();!t.done;t=V.next())if(t.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; SVz=function(V,t,x,u,Z,P){x=x===void 0?[]:x;u=u===void 0?"":u;Z=Z===void 0?"":Z;var K=IC(V.J).EV,R=V.player.getVideoData(1);R&&R.getPlayerResponse();R&&R.uq();x=ENL(t,x,K,IC(V.J).jW);Lv8(IC(V.J).hn,u,x.lB,x.dG,t,Z,P)}; ENL=function(V,t,x,u){t={lB:[],dG:t};V=g.G(V);for(var Z=V.next();!Z.done;Z=V.next())if((Z=Z.value)&&Z.renderer!=null){var P=Z.renderer;if(!x.U.K().T("html5_enable_vod_lasr_with_notify_pacf")){var K=void 0,R=void 0,f=void 0,b=void 0,E=u;g.l((b=P.sandwichedLinearAdRenderer)==null?void 0:b.adVideoStart,Aa)?(K=g.l((f=P.sandwichedLinearAdRenderer)==null?void 0:f.adVideoStart,Aa),K=W24(K,E),g.dx(P.sandwichedLinearAdRenderer.adVideoStart,Aa,K)):g.l((R=P.linearAdSequenceRenderer)==null?void 0:R.adStart,Aa)&& (f=g.l((K=P.linearAdSequenceRenderer)==null?void 0:K.adStart,Aa),K=W24(f,E),g.dx(P.linearAdSequenceRenderer.adStart,Aa,K))}t.lB.push(Z)}return t}; g.d0=function(V){if(typeof DOMParser!="undefined")return hc(new DOMParser,Q14(V),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.Ct=function(V){g.c.call(this);this.callback=V;this.J=new Bk(0,0,.4,0,.2,1,1,1);this.delay=new g.Kb(this.next,window,this);g.y(this,this.delay)}; g.pP0=function(V){var t=V.K();return t.q6&&!t.N&&g.zo(t)?V.isEmbedsShortsMode()?(V=V.Gi(),Math.min(V.width,V.height)>=315):!V.XJ():!1}; g.Jk=function(V){g.e.call(this,{Y:"div",V:"ytp-more-videos-view",j:{tabIndex:"-1"}});var t=this;this.api=V;this.S=!0;this.N=new g.j6(this);this.J=[];this.suggestionData=[];this.columns=this.containerWidth=this.C=this.W=this.scrollPosition=0;this.title=new g.e({Y:"h2",V:"ytp-related-title",mw:"{{title}}"});this.previous=new g.e({Y:"button",vX:["ytp-button","ytp-previous"],j:{"aria-label":"Mostrar v\u00eddeos sugeridos anteriores"},D:[g.XX()]});this.L=new g.Ct(function(x){t.suggestions.element.scrollLeft= -x}); this.next=new g.e({Y:"button",vX:["ytp-button","ytp-next"],j:{"aria-label":"Mostrar mais v\u00eddeos sugeridos"},D:[g.zP()]});g.y(this,this.N);this.B=V.K().W;g.y(this,this.title);this.title.t6(this.element);this.suggestions=new g.e({Y:"div",V:"ytp-suggestions"});g.y(this,this.suggestions);this.suggestions.t6(this.element);g.y(this,this.previous);this.previous.t6(this.element);this.previous.listen("click",this.Yk,this);g.y(this,this.L);AAh(this);g.y(this,this.next);this.next.t6(this.element);this.next.listen("click", this.zS,this);this.N.Z(this.api,"appresize",this.lq);this.N.Z(this.api,"fullscreentoggled",this.dV);this.N.Z(this.api,"videodatachange",this.onVideoDataChange);this.lq(this.api.XX().getPlayerSize());this.onVideoDataChange()}; AAh=function(V){for(var t={Nu:0};t.Nu<16;t={Nu:t.Nu},++t.Nu){var x=new g.e({Y:"a",V:"ytp-suggestion-link",j:{href:"{{link}}",target:V.api.K().X,"aria-label":"{{aria_label}}"},D:[{Y:"div",V:"ytp-suggestion-image"},{Y:"div",V:"ytp-suggestion-overlay",j:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},D:[{Y:"div",V:"ytp-suggestion-title",mw:"{{title}}"},{Y:"div",V:"ytp-suggestion-author",mw:"{{author_and_views}}"},{Y:"div",j:{"data-is-live":"{{is_live}}"},V:"ytp-suggestion-duration", mw:"{{duration}}"}]}]});g.y(V,x);var u=x.f1("ytp-suggestion-link");g.Ao(u,"transitionDelay",t.Nu/20+"s");V.N.Z(u,"click",function(Z){return function(P){var K=Z.Nu;if(V.S){var R=V.suggestionData[K],f=R.sessionData;V.B&&V.api.T("web_player_log_click_before_generating_ve_conversion_params")?(V.api.logClick(V.J[K].element),K=R.Lk(),R={},g.ml(V.api,R),K=g.CX(K,R),g.Kh(K,V.api,P)):g.P3(P,V.api,V.B,f||void 0)&&V.api.vF(R.videoId,f,R.playlistId)}else P.preventDefault(),document.activeElement.blur()}}(t)); x.t6(V.suggestions.element);V.J.push(x);V.api.createServerVe(x.element,x)}}; SWq=function(V){if(V.api.K().T("web_player_log_click_before_generating_ve_conversion_params"))for(var t=Math.floor(-V.scrollPosition/(V.W+8)),x=Math.min(t+V.columns,V.suggestionData.length)-1;t<=x;t++)V.api.logVisibility(V.J[t].element,!0)}; g.hk=function(V){var t=V.api.yV()?32:16;t=V.C/2+t;V.next.element.style.bottom=t+"px";V.previous.element.style.bottom=t+"px";t=V.scrollPosition;var x=V.containerWidth-V.suggestionData.length*(V.W+8);g.Am(V.element,"ytp-scroll-min",t>=0);g.Am(V.element,"ytp-scroll-max",t<=x)}; IMC=function(V){for(var t=V.suggestionData.length,x=0;x>>0)+"_",Z=0;return t}); $C("Symbol.iterator",function(V){if(V)return V;V=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),x=0;x=P}}); $C("String.prototype.endsWith",function(V){return V?V:function(t,x){var u=zK(this,t,"endsWith");t+="";x===void 0&&(x=u.length);x=Math.max(0,Math.min(x|0,u.length));for(var Z=t.length;Z>0&&x>0;)if(u[--x]!=t[--Z])return!1;return Z<=0}}); $C("Array.prototype.entries",function(V){return V?V:function(){return Bw(this,function(t,x){return[t,x]})}}); $C("Math.imul",function(V){return V?V:function(t,x){t=Number(t);x=Number(x);var u=t&65535,Z=x&65535;return u*Z+((t>>>16&65535)*Z+u*(x>>>16&65535)<<16>>>0)|0}}); $C("Math.trunc",function(V){return V?V:function(t){t=Number(t);if(isNaN(t)||t===Infinity||t===-Infinity||t===0)return t;var x=Math.floor(Math.abs(t));return t<0?-x:x}}); $C("Number.isNaN",function(V){return V?V:function(t){return typeof t==="number"&&isNaN(t)}}); $C("Array.prototype.keys",function(V){return V?V:function(){return Bw(this,function(t){return t})}}); $C("Array.prototype.values",function(V){return V?V:function(){return Bw(this,function(t,x){return x})}}); $C("Array.prototype.fill",function(V){return V?V:function(t,x,u){var Z=this.length||0;x<0&&(x=Math.max(0,Z+x));if(u==null||u>Z)u=Z;u=Number(u);u<0&&(u=Math.max(0,Z+u));for(x=Number(x||0);x>>0;if(t===0)return 32;var x=0;(t&4294901760)===0&&(t<<=16,x+=16);(t&4278190080)===0&&(t<<=8,x+=8);(t&4026531840)===0&&(t<<=4,x+=4);(t&3221225472)===0&&(t<<=2,x+=2);(t&2147483648)===0&&x++;return x}}); $C("Math.log10",function(V){return V?V:function(t){return Math.log(t)/Math.LN10}}); $C("Object.fromEntries",function(V){return V?V:function(t){var x={};if(!(Symbol.iterator in t))throw new TypeError(""+t+" is not iterable");t=t[Symbol.iterator].call(t);for(var u=t.next();!u.done;u=t.next()){u=u.value;if(Object(u)!==u)throw new TypeError("iterable for fromEntries should yield objects");x[u[0]]=u[1]}return x}}); $C("String.prototype.replaceAll",function(V){return V?V:function(t,x){if(t instanceof RegExp&&!t.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return t instanceof RegExp?this.replace(t,x):this.replace(new RegExp(String(t).replace(/([-()\[\]{}+?*.$\^|,:#1342177279)throw new RangeError("Invalid count value");t|=0;for(var u="";t;)if(t&1&&(u+=x),t>>>=1)x+=x;return u}}); $C("Promise.prototype.finally",function(V){return V?V:function(t){return this.then(function(x){return Promise.resolve(t()).then(function(){return x})},function(x){return Promise.resolve(t()).then(function(){throw x; })})}}); $C("String.prototype.padStart",function(V){return V?V:function(t,x){var u=zK(this,null,"padStart");t-=u.length;x=x!==void 0?String(x):" ";return(t>0&&x?x.repeat(Math.ceil(t/x.length)).substring(0,t):"")+u}}); $C("Array.prototype.findIndex",function(V){return V?V:function(t,x){return Ol8(this,t,x).wm}}); $C("Math.sign",function(V){return V?V:function(t){t=Number(t);return t===0||isNaN(t)?t:t>0?1:-1}}); $C("WeakSet",function(V){function t(x){this.J=new WeakMap;if(x){x=g.G(x);for(var u;!(u=x.next()).done;)this.add(u.value)}} if(function(){if(!V||!Object.seal)return!1;try{var x=Object.seal({}),u=Object.seal({}),Z=new V([x]);if(!Z.has(x)||Z.has(u))return!1;Z.delete(x);Z.add(u);return!Z.has(x)&&Z.has(u)}catch(P){return!1}}())return V; t.prototype.add=function(x){this.J.set(x,!0);return this}; t.prototype.has=function(x){return this.J.has(x)}; t.prototype.delete=function(x){return this.J.delete(x)}; return t}); $C("Array.prototype.copyWithin",function(V){function t(x){x=Number(x);return x===Infinity||x===-Infinity?x:x|0} return V?V:function(x,u,Z){var P=this.length;x=t(x);u=t(u);Z=Z===void 0?P:t(Z);x=x<0?Math.max(P+x,0):Math.min(x,P);u=u<0?Math.max(P+u,0):Math.min(u,P);Z=Z<0?Math.max(P+Z,0):Math.min(Z,P);if(xu;)--Z in this?this[--x]=this[Z]:delete this[--x];return this}}); $C("Int8Array.prototype.copyWithin",Q0);$C("Uint8Array.prototype.copyWithin",Q0);$C("Uint8ClampedArray.prototype.copyWithin",Q0);$C("Int16Array.prototype.copyWithin",Q0);$C("Uint16Array.prototype.copyWithin",Q0);$C("Int32Array.prototype.copyWithin",Q0);$C("Uint32Array.prototype.copyWithin",Q0);$C("Float32Array.prototype.copyWithin",Q0);$C("Float64Array.prototype.copyWithin",Q0);$C("Array.prototype.at",function(V){return V?V:a9}); $C("Int8Array.prototype.at",rs);$C("Uint8Array.prototype.at",rs);$C("Uint8ClampedArray.prototype.at",rs);$C("Int16Array.prototype.at",rs);$C("Uint16Array.prototype.at",rs);$C("Int32Array.prototype.at",rs);$C("Uint32Array.prototype.at",rs);$C("Float32Array.prototype.at",rs);$C("Float64Array.prototype.at",rs);$C("String.prototype.at",function(V){return V?V:a9}); $C("Array.prototype.findLastIndex",function(V){return V?V:function(t,x){return s99(this,t,x).wm}}); $C("Int8Array.prototype.findLastIndex",TK);$C("Uint8Array.prototype.findLastIndex",TK);$C("Uint8ClampedArray.prototype.findLastIndex",TK);$C("Int16Array.prototype.findLastIndex",TK);$C("Uint16Array.prototype.findLastIndex",TK);$C("Int32Array.prototype.findLastIndex",TK);$C("Uint32Array.prototype.findLastIndex",TK);$C("Float32Array.prototype.findLastIndex",TK);$C("Float64Array.prototype.findLastIndex",TK);$C("Number.parseInt",function(V){return V||parseInt});var xS,U4,NsK;xS=xS||{};g.Ww=this||self;U4="closure_uid_"+(Math.random()*1E9>>>0);NsK=0;g.c.prototype.Js=!1;g.c.prototype.uD=function(){return this.Js}; g.c.prototype.dispose=function(){this.Js||(this.Js=!0,this.NP())}; g.c.prototype[Symbol.dispose]=function(){this.dispose()}; g.c.prototype.addOnDisposeCallback=function(V,t){this.Js?t!==void 0?V.call(t):V():(this.oA||(this.oA=[]),t&&(V=V.bind(t)),this.oA.push(V))}; g.c.prototype.NP=function(){if(this.oA)for(;this.oA.length;)this.oA.shift()()};var vCh;g.A(kj,g.c);kj.prototype.share=function(){if(this.uD())throw Error("E:AD");this.W++;return this}; kj.prototype.dispose=function(){--this.W||g.c.prototype.dispose.call(this)}; vCh=Symbol.dispose;Lhl.prototype.jy=function(V,t){this.J.jy("/client_streamz/bg/frs",V,t)}; Fh1.prototype.jy=function(V,t,x,u,Z,P){this.J.jy("/client_streamz/bg/wrl",V,t,x,u,Z,P)}; Mjw.prototype.J=function(V,t){this.S.nx("/client_streamz/bg/ec",V,t)}; gCT.prototype.jy=function(V,t,x,u){this.J.jy("/client_streamz/bg/el",V,t,x,u)}; Xwj.prototype.J=function(V,t,x){this.S.nx("/client_streamz/bg/cec",V,t,x)}; z8C.prototype.J=function(V,t,x){this.S.nx("/client_streamz/bg/po/csc",V,t,x)}; Bsl.prototype.J=function(V,t,x){this.S.nx("/client_streamz/bg/po/ctav",V,t,x)}; m1j.prototype.J=function(V,t,x){this.S.nx("/client_streamz/bg/po/cwsc",V,t,x)};g.hT(s$,Error);s$.prototype.name="CustomError";var PFq;var a0=void 0,QG,FTl=typeof TextDecoder!=="undefined",Tsl,rT0=typeof String.prototype.isWellFormed==="function",az9=typeof TextEncoder!=="undefined";var Mt=String.prototype.trim?function(V){return V.trim()}:function(V){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(V)[1]},Y9h=/&/g,QLT=//g,reh=/"/g,TpK=/'/g,Wa4=/\x00/g,mMT=/[\x00&<>"']/;var zbs=cw(1,!0),BU=cw(610401301,!1);cw(899588437,!1);cw(188588736,!0);cw(651175828,!1);cw(653718497,zbs);cw(660014094,zbs);cw(2147483644,!1);cw(2147483645,!1);cw(2147483646,zbs);cw(2147483647,!0);var mE=!!g.nl("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Yj,BOs=g.Ww.navigator;Yj=BOs?BOs.userAgentData||null:null;var JTL,rk,oo;JTL=Array.prototype.indexOf?function(V,t){return Array.prototype.indexOf.call(V,t,void 0)}:function(V,t){if(typeof V==="string")return typeof t!=="string"||t.length!=1?-1:V.indexOf(t,0); for(var x=0;x=0;x--)if(x in V&&V[x]===t)return x;return-1}; g.EA=Array.prototype.forEach?function(V,t,x){Array.prototype.forEach.call(V,t,x)}:function(V,t,x){for(var u=V.length,Z=typeof V==="string"?V.split(""):V,P=0;PparseFloat(TO4)){rAK=String(w0);break a}}rAK=TO4}var fEh=rAK,q$C={};var P4,Ky;g.yX=WU();P4=ji()||ac("iPod");Ky=ac("iPad");g.Xy=lzK();g.oa=oc();g.XM=nr()&&!lz();var br8={},Ga=null,Ejw=S3||g.wZ||typeof g.Ww.btoa=="function";var GYz=typeof Uint8Array!=="undefined",OrL=!g.vk&&typeof btoa==="function",A_s=/[-_.]/g,N7h={"-":"+",_:"/",".":"="},LR={};ve.prototype.isEmpty=function(){return this.J==null}; ve.prototype.sizeBytes=function(){var V=MY(this);return V?V.length:0}; var vj4;var Rpj=void 0;var uF=typeof Symbol==="function"&&typeof Symbol()==="symbol",FEw=new Set,Vt=za("jas",void 0,!0,!0),Ti=za(void 0,"2ex"),Z3=za(void 0,"1oa",!0),jG=za(void 0,Symbol(),!0);Math.max.apply(Math,g.v(Object.values({ub6:1,hPC:2,tyw:4,zeD:8,WQS:16,SJX:32,Bj8:64,aP6:128,Z6C:256,Puj:512,EtC:1024,c5X:2048,b7P:4096,U9w:8192,x$X:16384})));var zi=uF?function(V,t){V[Vt]|=t}:function(V,t){V.Y5!==void 0?V.Y5|=t:Object.defineProperties(V,{Y5:{value:t, configurable:!0,writable:!0,enumerable:!1}})},iRw=uF?function(V,t){V[Vt]&=~t}:function(V,t){V.Y5!==void 0&&(V.Y5&=~t)},Ta=uF?function(V){return V[Vt]|0}:function(V){return V.Y5|0},Be=uF?function(V,t){V[Vt]=t}:function(V,t){V.Y5!==void 0?V.Y5=t:Object.defineProperties(V,{Y5:{value:t, configurable:!0,writable:!0,enumerable:!1}})};var FA={},gjz={},DA,nNC=[];Be(nNC,55);DA=Object.freeze(nNC);var kaT=Object.freeze({});var B7K=He(function(V){return typeof V==="number"}),zsz=He(function(V){return typeof V==="string"}),mtL=He(function(V){return typeof V==="boolean"}),b3=He(function(V){return V!=null&&typeof V==="object"&&typeof V.then==="function"}),$0=He(function(V){return!!V&&(typeof V==="object"||typeof V==="function")});var UA=typeof g.Ww.BigInt==="function"&&typeof g.Ww.BigInt(0)==="bigint";var Gi=He(function(V){return UA?V>=cAj&&V<=yAz:V[0]==="-"?Y$9(V,jqw):Y$9(V,lMj)}),jqw=Number.MIN_SAFE_INTEGER.toString(),cAj=UA?BigInt(Number.MIN_SAFE_INTEGER):void 0,lMj=Number.MAX_SAFE_INTEGER.toString(),yAz=UA?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Gaj=typeof Uint8Array.prototype.slice==="function",eG=0,dl=0,PNj;var O9=typeof BigInt==="function"?BigInt.asIntN:void 0,es0=typeof BigInt==="function"?BigInt.asUintN:void 0,p8=Number.isSafeInteger,RL=Number.isFinite,NM=Math.trunc,oj4=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var gp,Poq;g.q=Abh.prototype;g.q.init=function(V,t,x,u){u=u===void 0?{}:u;this.FE=u.FE===void 0?!1:u.FE;V&&(V=S5(V),this.S=V.buffer,this.G=V.qw,this.W=t||0,this.N=x!==void 0?this.W+x:this.S.length,this.J=this.W)}; g.q.free=function(){this.clear();zm.length<100&&zm.push(this)}; g.q.clear=function(){this.S=null;this.G=!1;this.J=this.N=this.W=0;this.FE=!1}; g.q.reset=function(){this.J=this.W}; g.q.zk=function(){var V=this.B;V||(V=this.S,V=this.B=new DataView(V.buffer,V.byteOffset,V.byteLength));return V}; var zm=[];Bx.prototype.free=function(){this.J.clear();this.S=this.W=-1;tB.length<100&&tB.push(this)}; Bx.prototype.reset=function(){this.J.reset();this.N=this.J.J;this.S=this.W=-1}; var tB=[];var yG,o0;g.q=Wx.prototype;g.q.toJSON=function(){var V=!o0;try{return V&&(o0=ZRL),nP(this)}finally{V&&(o0=void 0)}}; g.q.jZ=function(V){try{return o0=TlT,V&&(yG=V===Tm||V!==gz8&&V!==mY4&&V!==aTC?Tm:V),JSON.stringify(nP(this),VGq)}finally{V&&(yG=void 0),o0=void 0}}; g.q.clone=function(){var V=this.Ss;return new this.constructor(ma(V,Ta(V),!1))}; g.q.qw=function(){return!!(Ta(this.Ss)&2)}; g.q.gs=FA;g.q.toString=function(){try{return o0=TlT,nP(this).toString()}finally{o0=void 0}};var oz8,cbw;Hx.prototype.length=function(){return this.J.length}; Hx.prototype.end=function(){var V=this.J;this.J=[];return V};var wP=hV(),HUT=hV(),UZ9=hV(),DZ9=hV(),ebs=hV(),dZz=hV(),CRT=hV(),JA4=hV();var CoT=tc(function(V,t,x,u,Z){if(V.S!==2)return!1;YV(V,Px(t,u,x),Z);return!0},dY8),JbL=tc(function(V,t,x,u,Z){if(V.S!==2)return!1; YV(V,Px(t,u,x,!0),Z);return!0},dY8),$n=Symbol(),K9=Symbol(),wej=Symbol(),xMj=Symbol(),xn,ux;var hb0=kn(function(V,t,x){if(V.S!==1)return!1;Oo(t,x,gP(V.J));return!0},so,CRT),wPz=kn(function(V,t,x){if(V.S!==1)return!1; V=gP(V.J);Oo(t,x,V===0?void 0:V);return!0},so,CRT),Vjr=kn(function(V,t,x,u){if(V.S!==1)return!1; tV(t,x,u,gP(V.J));return!0},so,CRT),tji=kn(function(V,t,x){if(V.S!==0)return!1; Oo(t,x,I0(V.J));return!0},Nx,ebs),x1i=kn(function(V,t,x){if(V.S!==0)return!1; V=I0(V.J);Oo(t,x,V===0?void 0:V);return!0},Nx,ebs),uqr=kn(function(V,t,x,u){if(V.S!==0)return!1; tV(t,x,u,I0(V.J));return!0},Nx,ebs),Zl_=kn(function(V,t,x){if(V.S!==0)return!1; Oo(t,x,LP(V.J));return!0},p9,DZ9),PL7=kn(function(V,t,x){if(V.S!==0)return!1; V=LP(V.J);Oo(t,x,V===0?void 0:V);return!0},p9,DZ9),Khj=kn(function(V,t,x,u){if(V.S!==0)return!1; tV(t,x,u,LP(V.J));return!0},p9,DZ9),q47=kn(function(V,t,x){if(V.S!==1)return!1; Oo(t,x,MP(V.J));return!0},function(V,t,x){DYs(V,x,dtz(t))},dZz),R8c=ix(function(V,t,x){if(V.S!==1&&V.S!==2)return!1; t=C8(t,Ta(t),x,!1,!1);if(V.S==2)for(x=LP(V.J)>>>0,x=V.J.J+x;V.J.J>>0);return!0},function(V,t,x){t=E9(t); t!=null&&t!=null&&(CP(V,x,0),D3(V.J,t))},hV()),Ols=kn(function(V,t,x){if(V.S!==0)return!1; Oo(t,x,LP(V.J));return!0},function(V,t,x){t=bN(t); t!=null&&(t=parseInt(t,10),CP(V,x,0),jdL(V.J,t))},hV());g.A($MK,Wx);g.A(SA,Wx);var F8=[1,2,3];var s9c=[0,F8,ECz,Khj,$1c];var NsY=[0,uK,[0,hb0,tji]];g.A(GT,Wx);var L9=[1,2,3];var pwc=[0,L9,uqr,Vjr,PG,NsY];g.A(I2,Wx);var ATU=[0,uK,s9c,pwc];var S4c=[0,[1,2,3],PG,[0,xb,-1,fzc],PG,[0,xb,-1,Zl_,fzc],PG,[0,xb]];g.A(vQ,Wx);vQ.prototype.sT=function(){var V=U9(this,3,vD,3,void 0,!0);yp(V);return V[void 0]};vQ.prototype.J=fAl([0,xb,S4c,blU,uK,ATU,q47,R8c]);g.A(E_j,Wx);var Gi8=globalThis.trustedTypes,Mx;X8.prototype.toString=function(){return this.J+""};mL.prototype.toString=function(){return this.J}; var LaL=new mL("about:invalid#zClosurez");var lIK=a2("tel"),yQz=a2("sms"),v_z=[a2("data"),a2("http"),a2("https"),a2("mailto"),a2("ftp"),new QM(function(V){return/^[^:]*([/?#]|$)/.test(V)})],Fa8=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;o2.prototype.toString=function(){return this.J+""};lx.prototype.toString=function(){return this.J+""};eA.prototype.toString=function(){return this.J};var C9={};g.GKr=String.prototype.repeat?function(V,t){return V.repeat(t)}:function(V,t){return Array(t+1).join(V)};g.q=PO.prototype;g.q.isEnabled=function(){if(!g.Ww.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{No:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.q.set=function(V,t,x){var u=!1;if(typeof x==="object"){var Z=x.F56;u=x.secure||!1;var P=x.domain||void 0;var K=x.path||void 0;var R=x.No}if(/[;=\s]/.test(V))throw Error('Invalid cookie name "'+V+'"');if(/[;\r\n]/.test(t))throw Error('Invalid cookie value "'+t+'"');R===void 0&&(R=-1);x=P?";domain="+P:"";K=K?";path="+K:"";u=u?";secure":"";R=R<0?"":R==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+R*1E3)).toUTCString();this.J.cookie=V+"="+t+x+K+R+u+(Z!=null?";samesite="+ Z:"")}; g.q.get=function(V,t){for(var x=V+"=",u=(this.J.cookie||"").split(";"),Z=0,P;Z=0;t--)this.remove(V[t])}; var Hc=new PO(typeof document=="undefined"?null:document);q8.prototype.compress=function(V){var t,x,u,Z;return g.Q(function(P){switch(P.J){case 1:return t=new CompressionStream("gzip"),x=(new Response(t.readable)).arrayBuffer(),u=t.writable.getWriter(),g.m(P,u.write((new TextEncoder).encode(V)),2);case 2:return g.m(P,u.close(),3);case 3:return Z=Uint8Array,g.m(P,x,4);case 4:return P.return(new Z(P.S))}})}; q8.prototype.isSupported=function(V){return V<1024?!1:typeof CompressionStream!=="undefined"};g.A(RG,Wx);fu.prototype.setInterval=function(V){this.intervalMs=V;this.jH&&this.enabled?(this.stop(),this.start()):this.jH&&this.stop()}; fu.prototype.start=function(){var V=this;this.enabled=!0;this.jH||(this.jH=setTimeout(function(){V.tick()},this.intervalMs),this.S=this.J())}; fu.prototype.stop=function(){this.enabled=!1;this.jH&&(clearTimeout(this.jH),this.jH=void 0)}; fu.prototype.tick=function(){var V=this;if(this.enabled){var t=Math.max(this.J()-this.S,0);t0&&(K=XH(this),oL(K,3,$_(x)));n8(gR(this),NN,11)&&Z>0&&(x=XH(this),oL(x,4,$_(Z)));n8(gR(this),NN,11)&&P>0&&(Z=XH(this), oL(Z,5,$_(P)));P=this.J.clone();Z=Date.now().toString();P=oL(P,4,SV(Z));V=R0(P,vy,3,V.slice());u&&(P=new $E,u=oL(P,13,$_(u)),P=new bG,u=qP(P,$E,2,u),P=new IZ,u=qP(P,bG,1,u),u=pP(u,2,9),qP(V,IZ,18,u));t&&OL(V,14,t);return V};var TPj=function(){if(!g.Ww.addEventListener||!Object.defineProperty)return!1;var V=!1,t=Object.defineProperty({},"passive",{get:function(){V=!0}}); try{var x=function(){}; g.Ww.addEventListener("test",x,t);g.Ww.removeEventListener("test",x,t)}catch(u){}return V}();var Eqq=AVK("AnimationEnd"),$Z=AVK("TransitionEnd");g.By.prototype.S=0;g.By.prototype.reset=function(){this.J=this.N=this.W;this.S=0}; g.By.prototype.getValue=function(){return this.N};g.A(SL0,Wx);var IzY=Ac(SL0);g.A(Gm0,Wx);var qO=new function(){this.J=Gm0;this.isRepeated=0;this.S=KP;this.defaultValue=void 0};g.A(Qo,g.c);g.q=Qo.prototype;g.q.NP=function(){this.i_();this.S.stop();this.Us.stop();g.c.prototype.NP.call(this)}; g.q.dispatch=function(V){if(V instanceof vy)this.log(V);else try{var t=new vy,x=V.jZ();var u=sL(t,8,x);this.log(u)}catch(Z){}}; g.q.log=function(V){if(this.BX){V=V.clone();var t=this.dk++;V=OL(V,21,t);this.componentId&&sL(V,26,this.componentId);t=V;if(ORj(t)==null){var x=Date.now();x=Number.isFinite(x)?x.toString():"0";oL(t,1,SV(x))}Ut8(rp(t,15))!=null||OL(t,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(x=this.experimentIds.clone(),qP(t,RG,16,x));t=this.J.length-1E3+1;t>0&&(this.J.splice(0,t),this.W+=t);this.J.push(V);this.GV||this.S.enabled||this.S.start()}}; g.q.flush=function(V,t){var x=this;if(this.J.length===0)V&&V();else if(this.cX&&this.X)zw(this.N,3),M51(this);else{var u=Date.now();if(this.L1>u&&this.zU0&&(x.zU=Date.now(),x.L1=x.zU+I);O=qO.J?qO.S(O,qO.J,175237375,!0):qO.S(O,175237375,null,!0);if(O=O===null?void 0:O)O=Kr(O,1,-1),O!==-1&&(x.G=new g.By(O<1?1:O,3E5,.1),x.S.setInterval(x.G.getValue()))}}V&&V();x.B=0},b=function(k, O){var N=ZE(Z,vy,3); var p;var I=(p=Ut8(rp(Z,14)))!=null?p:void 0;g.me(x.G);x.S.setInterval(x.G.getValue());k===401&&P&&(x.Es=P);I&&(x.W+=I);O===void 0&&(O=x.isRetryable(k));O&&(x.J=N.concat(x.J),x.GV||x.S.enabled||x.S.start());t&&t("net-send-failed",k);++x.B},E=function(){x.network&&x.network.send(R,f,b)}; K?K.then(function(k){R.requestHeaders["Content-Encoding"]="gzip";R.requestHeaders["Content-Type"]="application/binary";R.body=k;R.cq=2;E()},function(){E()}):E()}}}}; g.q.i_=function(){var V=this.N;n8(gR(V),NN,11)&&ic(XH(V),!0);this.flush();V=this.N;n8(gR(V),NN,11)&&ic(XH(V),!1)}; g.q.isRetryable=function(V){return 500<=V&&V<600||V===401||V===0};aZ.prototype.send=function(V,t,x){var u=this,Z,P,K,R,f,b,E,k,O,N;return g.Q(function(p){switch(p.J){case 1:return P=(Z=u.kA?new AbortController:void 0)?setTimeout(function(){Z.abort()},V.timeoutMillis):void 0,g.AT(p,2,3),K=Object.assign({},{method:V.requestType, headers:Object.assign({},V.requestHeaders)},V.body&&{body:V.body},V.withCredentials&&{credentials:"include"},{signal:V.timeoutMillis&&Z?Z.signal:null}),g.m(p,fetch(V.url,K),5);case 5:R=p.S;if(R.status!==200){(f=x)==null||f(R.status);p.FX(3);break}if((b=t)==null){p.FX(7);break}return g.m(p,R.text(),8);case 8:b(p.S);case 7:case 3:g.vw(p);clearTimeout(P);g.Ll(p,0);break;case 2:E=g.I9(p);switch((k=E)==null?void 0:k.name){case "AbortError":(O=x)==null||O(408);break;default:(N=x)==null||N(400)}p.FX(3)}})}; aZ.prototype.Hf=function(){return 4};g.A(rR,g.c);rR.prototype.KC=function(){this.G=!0;return this}; rR.prototype.build=function(){this.network||(this.network=new aZ);var V=new Qo({logSource:this.logSource,vD:this.vD?this.vD:H8s,sessionIndex:this.sessionIndex,rBk:this.TQ,w8:this.W,GV:!1,KC:this.G,qt:this.qt,network:this.network});g.y(this,V);if(this.S){var t=this.S,x=MN(V.N);sL(x,7,t)}V.L=new q8;this.componentId&&(V.componentId=this.componentId);this.jN&&(V.jN=this.jN);this.pageId&&(V.pageId=this.pageId);this.J&&((x=this.J)?(V.experimentIds||(V.experimentIds=new RG),t=V.experimentIds,x=x.jZ(),sL(t, 4,x)):V.experimentIds&&oL(V.experimentIds,4));this.N&&(V.cX=V.X);px1(V.N);this.network.bk&&this.network.bk(this.logSource);this.network.y91&&this.network.y91(V);return V};g.A(Tw,g.c);Tw.prototype.flush=function(V){V=V||[];if(V.length){for(var t=new E_j,x=[],u=0;u-1?(t=V[K],x||(t.dW=!1)):(t=new Q0h(t,this.src,P,!!u,Z),t.dW=x,V.push(t));return t}; g.q.remove=function(V,t,x,u){V=V.toString();if(!(V in this.listeners))return!1;var Z=this.listeners[V];t=CQ(Z,t,x,u);return t>-1?(DZ(Z[t]),g.J_(Z,t),Z.length==0&&(delete this.listeners[V],this.J--),!0):!1}; g.q.removeAll=function(V){V=V&&V.toString();var t=0,x;for(x in this.listeners)if(!V||x==V){for(var u=this.listeners[x],Z=0;Z-1?V[Z]:null}; g.q.hasListener=function(V,t){var x=V!==void 0,u=x?V.toString():"",Z=t!==void 0;return g.Fu(this.listeners,function(P){for(var K=0;K>>0);g.hT(g.KX,g.c);g.KX.prototype[mPC]=!0;g.q=g.KX.prototype;g.q.addEventListener=function(V,t,x,u){g.h$(this,V,t,x,u)}; g.q.removeEventListener=function(V,t,x,u){cVs(this,V,t,x,u)}; g.q.dispatchEvent=function(V){var t=this.gq;if(t){var x=[];for(var u=1;t;t=t.gq)x.push(t),++u}t=this.nY;u=V.type||V;if(typeof V==="string")V=new g.cy(V,t);else if(V instanceof g.cy)V.target=V.target||t;else{var Z=V;V=new g.cy(u,t);g.WO(V,Z)}Z=!0;var P;if(x)for(P=x.length-1;!V.S&&P>=0;P--){var K=V.currentTarget=x[P];Z=qz(K,u,!0,V)&&Z}V.S||(K=V.currentTarget=t,Z=qz(K,u,!0,V)&&Z,V.S||(Z=qz(K,u,!1,V)&&Z));if(x)for(P=0;!V.S&&P0){this.S--;var V=this.J;this.J=V.next;V.next=null}else V=this.N();return V};var $v;Eb.prototype.add=function(V,t){var x=DPz.get();x.set(V,t);this.S?this.S.next=x:this.J=x;this.S=x}; Eb.prototype.remove=function(){var V=null;this.J&&(V=this.J,this.J=this.J.next,this.J||(this.S=null),V.next=null);return V}; var DPz=new Rj(function(){return new kv},function(V){return V.reset()}); kv.prototype.set=function(V,t){this.J=V;this.scope=t;this.next=null}; kv.prototype.reset=function(){this.next=this.scope=this.J=null};var iA,Ob=!1,HPK=new Eb;CFw.prototype.reset=function(){this.context=this.S=this.N=this.J=null;this.W=!1}; var JV4=new Rj(function(){return new CFw},function(V){V.reset()}); g.Ij.prototype.then=function(V,t,x){return PGL(this,fX(typeof V==="function"?V:null),fX(typeof t==="function"?t:null),x)}; g.Ij.prototype.$goog_Thenable=!0;g.q=g.Ij.prototype;g.q.finally=function(V){var t=this;V=fX(V);return new Promise(function(x,u){u8K(t,function(Z){V();x(Z)},function(Z){V(); u(Z)})})}; g.q.q9=function(V,t){return PGL(this,null,fX(V),t)}; g.q.catch=g.Ij.prototype.q9;g.q.cancel=function(V){if(this.J==0){var t=new XC(V);g.sb(function(){Z9h(this,t)},this)}}; g.q.VZ6=function(V){this.J=0;GB(this,2,V)}; g.q.PTD=function(V){this.J=0;GB(this,3,V)}; g.q.sI=function(){for(var V;V=Pxh(this);)uuK(this,V,this.J,this.L);this.B=!1}; var f89=A_;g.hT(XC,s$);XC.prototype.name="cancel";g.hT(g.zB,g.KX);g.q=g.zB.prototype;g.q.enabled=!1;g.q.DT=null;g.q.setInterval=function(V){this.k_=V;this.DT&&this.enabled?(this.stop(),this.start()):this.DT&&this.stop()}; g.q.FZS=function(){if(this.enabled){var V=g.JT()-this.Iy;V>0&&V0&&(this.getStatus(),this.B=setTimeout(this.Bl.bind(this), this.Ij)),this.getStatus(),this.X=!0,this.J.send(V),this.X=!1}catch(K){this.getStatus(),YYs(this,K)}}; g.q.Bl=function(){typeof xS!="undefined"&&this.J&&(this.W="Timed out after "+this.Ij+"ms, aborting",this.S=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.q.abort=function(V){this.J&&this.N&&(this.getStatus(),this.N=!1,this.G=!0,this.J.abort(),this.G=!1,this.S=V||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),tn(this))}; g.q.NP=function(){this.J&&(this.N&&(this.N=!1,this.G=!0,this.J.abort(),this.G=!1),tn(this,!0));g.Vv.Sd.NP.call(this)}; g.q.uK=function(){this.uD()||(this.zU||this.X||this.G?QGw(this):this.Raw())}; g.q.Raw=function(){QGw(this)}; g.q.isActive=function(){return!!this.J}; g.q.isComplete=function(){return g.uq(this)==4}; g.q.getStatus=function(){try{return g.uq(this)>2?this.J.status:-1}catch(V){return-1}}; g.q.getResponseHeader=function(V){if(this.J&&this.isComplete())return V=this.J.getResponseHeader(V),V===null?void 0:V}; g.q.getLastError=function(){return typeof this.W==="string"?this.W:String(this.W)};RN.prototype.send=function(V,t,x){t=t===void 0?function(){}:t; x=x===void 0?function(){}:x; BZq(V.url,function(u){u=u.target;Z7(u)?t(g.P$(u)):x(u.getStatus())},V.requestType,V.body,V.requestHeaders,V.timeoutMillis,V.withCredentials)}; RN.prototype.Hf=function(){return 1};$S.prototype.done=function(){this.logger.cH(this.event,f2()-this.startTime)}; g.A(bq,kj);g.A(kS,bq);g.q=kS.prototype;g.q.SU=function(){}; g.q.Aq=function(){}; g.q.cH=function(){}; g.q.eM=function(){}; g.q.dR=function(){}; g.q.aG=function(V,t,x){return x}; g.q.jJ=function(){}; g.q.KZ=function(){}; g.q.D3=function(){}; g.q.h1=function(){}; g.A(iq,bq);g.q=iq.prototype;g.q.update=function(V){this.logger.dispose();this.logger=V}; g.q.Aq=function(V){this.logger.Aq(V)}; g.q.cH=function(V,t){this.logger.cH(V,t)}; g.q.eM=function(V){this.logger.eM(V)}; g.q.dR=function(){this.logger.dR()}; g.q.aG=function(V,t,x){return this.logger.aG(V,t,x)}; g.q.jJ=function(V){this.logger.jJ(V)}; g.q.KZ=function(V){this.logger.KZ(V)}; g.q.D3=function(V){this.logger.D3(V)}; g.q.h1=function(V){this.logger.h1(V)}; g.q.fV=function(V){this.logger instanceof N5&&this.logger.fV(V)}; g.q.SU=function(V){this.logger.SU(V)}; g.A(OB,g.c);g.A(sB,bq);g.q=sB.prototype;g.q.fV=function(V){this.X0=V}; g.q.SU=function(V){this.metrics.Oly.jy(V,this.Ee)}; g.q.Aq=function(V){this.metrics.eventCount.J(V,this.Ee)}; g.q.cH=function(V,t){this.metrics.K$.jy(t,V,this.X0,this.Ee)}; g.q.eM=function(V){this.metrics.errorCount.J(V,this.X0,this.Ee)}; g.q.aG=function(V,t,x){function u(K){if(!Z.uD()){var R=f2()-P;Z.metrics.X01.jy(R,V,t,K,Z.X0,Z.Ee)}} var Z=this,P=f2();x.then(function(){u(0)},function(K){K instanceof rj?u(K.code):u(-1)}); return x}; g.q.jJ=function(V){this.metrics.QBk.J(V,this.X0,this.Ee)}; g.q.KZ=function(V){this.metrics.Uq.J(V,this.X0,this.Ee)}; g.q.D3=function(V){this.metrics.kmC.J(V,this.X0,this.Ee)}; g.A(N5,sB);N5.prototype.h1=function(V){var t=this;this.J.dispose();this.S&&this.service.dispose();this.service=this.options.Nl("42",this.options.PN.concat(V));this.J=new OB(function(){return void t.service.jq()},this.options.yl); this.metrics=TZ0(this.service);this.N=V}; N5.prototype.dR=function(){oET(this.J)};g.A(p2,Wx);g.A(An,Wx);g.A(SN,Wx);var Fht=Ac(SN),cI0=function(V){return He(function(t){return t instanceof V&&!(Ta(t.Ss)&2)})}(SN); SN.messageId="bfkj";g.A(Gl,Wx);g.A(PU,Wx);g.A(IN,Wx);var yIs=Ac(IN);g.A(L2,g.c);L2.prototype.snapshot=function(V){if(this.uD())throw Error("Already disposed");this.logger.Aq("n");var t=this.logger.share();return this.N.then(function(x){var u=x.z3;return new Promise(function(Z){var P=new $S(t,"n");u(function(K){P.done();t.SU(K.length);t.dR();t.dispose();Z(K)},[V.jM, V.bW,V.bY,V.Pm])})})}; L2.prototype.sA=function(V){var t=this;if(this.uD())throw Error("Already disposed");this.logger.Aq("n");var x=EB(this.logger,function(){return t.W([V.jM,V.bW,V.bY,V.Pm])},"n"); this.logger.SU(x.length);this.logger.dR();return x}; L2.prototype.X3=function(V){this.N.then(function(t){var x;(x=t.cZw)==null||x(V)})}; L2.prototype.Oj=function(){return this.logger.share()}; g.A(Fz,Error);g.A(B$,Wx);g.A(m0,Wx);YS.prototype.ag=function(V,t){var x=this,u,Z,P,K,R;return g.Q(function(f){if(f.J==1){var b=new B$;u=NP(b,1,x.zR);V&&NP(u,2,V);t&&NP(u,3,t);Z=x.J();return g.m(f,x.client.create(u,Z),2)}P=f.S;K=gl(eV(P,2));if(K.length){b=f.return;var E=new Uint8Array(K.length);for(var k=0;k0;)t[x++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(V%62),V=Math.floor(V/62);return t.join("")}};var NRz;g.A(yv,g.c);yv.prototype.iA=function(V,t){var x=this.wl(V);t==null||t(x);return EB(this.logger,function(){return g.pR(x,2)},this.N)}; NRz=Symbol.dispose;g.A(H$,yv);H$.prototype.wl=function(V,t){var x=this;this.logger.Aq(this.J);++this.G>=this.B&&this.S.resolve();var u=V();V=EB(this.logger,function(){return x.W(u)},"C"); if(V===void 0)throw new Fz(17,"YNJ:Undefined");if(!(V instanceof Uint8Array))throw new Fz(18,"ODM:Invalid");t==null||t(V);return V}; g.A(UB,yv);UB.prototype.wl=function(){return this.W}; g.A(D7,yv);D7.prototype.wl=function(){var V=this;return EB(this.logger,function(){return SG(V.W)},"d")}; D7.prototype.iA=function(){return this.W}; g.A(eN,yv);eN.prototype.wl=function(){if(this.W)return this.W;this.W=pyl(this,function(V){return"_"+sZL(V)}); return pyl(this,function(V){return V})}; g.A(C2,yv);C2.prototype.wl=function(V){var t=V();if(t.length>118)throw new Fz(19,"DFO:Invalid");V=Math.floor(Date.now()/1E3);var x=[Math.random()*255,Math.random()*255],u=x.concat([this.W&255,this.clientState],[V>>24&255,V>>16&255,V>>8&255,V&255]);V=new Uint8Array(2+u.length+t.length);V[0]=34;V[1]=u.length+t.length;V.set(u,2);V.set(t,2+u.length);t=V.subarray(2);for(u=x=x.length;u150))try{this.cache=new bQ1(V,this.logger)}catch(t){this.reportError(new Fz(22,"GBJ:init",t))}}; hn.prototype.reportError=function(V){this.logger.eM(V.code);this.onError(V);return V}; g.A(xw,hn);xw.prototype.m7=function(){return this.S.promise}; xw.prototype.wl=function(V){return wz(this,Object.assign({},V),!1)}; xw.prototype.iA=function(V){return wz(this,Object.assign({},V),!0)}; var FeL=function(V){return He(function(t){if(!$0(t))return!1;for(var x=g.G(Object.entries(V)),u=x.next();!u.done;u=x.next()){var Z=g.G(u.value);u=Z.next().value;Z=Z.next().value;if(!(u in t)){if(Z.S7C===!0)continue;return!1}if(!Z(t[u]))return!1}return!0})}({kU:function(V){return He(function(t){return t instanceof V})}(Qv)},"");g.A(uW,Wx);var Xwi=Ac(uW);Xyj.prototype.getMetadata=function(){return this.metadata};Zd.prototype.getMetadata=function(){return this.metadata}; Zd.prototype.getStatus=function(){return this.status};PY.prototype.L=function(V,t){t=t===void 0?{}:t;return new Xyj(V,this,t)}; PY.prototype.getName=function(){return this.name};var z8j=new PY("/google.internal.waa.v1.Waa/Create",B$,uW,function(V){return V.jZ()},Xwi);g.A(K_,Wx);var MjU=new PY("/google.internal.waa.v1.Waa/GenerateIT",m0,K_,function(V){return V.jZ()},Ac(K_));var uCh=new Set(["SAPISIDHASH","APISIDHASH"]);var J$j=Promise;g.A(qA,Wx);qA.prototype.getValue=function(){var V=rp(this,2);if(Array.isArray(V)||V instanceof Wx)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return eV(this,2)};g.A(Rx,Wx);Rx.prototype.getMessage=function(){return kV(this,2)}; var QZq=Ac(Rx);f_.prototype.zf=function(V,t){V=="data"?this.N.push(t):V=="metadata"?this.G.push(t):V=="status"?this.B.push(t):V=="end"?this.W.push(t):V=="error"&&this.S.push(t);return this}; f_.prototype.removeListener=function(V,t){V=="data"?kw(this.N,t):V=="metadata"?kw(this.G,t):V=="status"?kw(this.B,t):V=="end"?kw(this.W,t):V=="error"&&kw(this.S,t);return this}; f_.prototype.cancel=function(){this.J.abort()}; f_.prototype.cancel=f_.prototype.cancel;f_.prototype.removeListener=f_.prototype.removeListener;f_.prototype.on=f_.prototype.zf;g.hT(g.iW,SY4);g.iW.prototype.J=function(){var V=new Ow(this.W,this.N);this.S&&V.setCredentialsMode(this.S);return V}; g.iW.prototype.setCredentialsMode=function(V){this.S=V}; g.hT(Ow,g.KX);g.q=Ow.prototype;g.q.open=function(V,t){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Ij=V;this.X=t;this.readyState=1;NA(this)}; g.q.send=function(V){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.J=!0;var t={headers:this.C,method:this.Ij,credentials:this.G,cache:void 0};V&&(t.body=V);(this.wk||g.Ww).fetch(new Request(this.X,t)).then(this.J6k.bind(this),this.Rr.bind(this))}; g.q.abort=function(){this.response=this.responseText="";this.C=new Headers;this.status=0;this.N&&this.N.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.J&&this.readyState!=4&&(this.J=!1,p_(this));this.readyState=0}; g.q.J6k=function(V){if(this.J&&(this.W=V,this.S||(this.status=this.W.status,this.statusText=this.W.statusText,this.S=V.headers,this.readyState=2,NA(this)),this.J&&(this.readyState=3,NA(this),this.J)))if(this.responseType==="arraybuffer")V.arrayBuffer().then(this.eG.bind(this),this.Rr.bind(this));else if(typeof g.Ww.ReadableStream!=="undefined"&&"body"in V){this.N=V.body.getReader();if(this.B){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.L=new TextDecoder;aZL(this)}else V.text().then(this.Ry6.bind(this),this.Rr.bind(this))}; g.q.Mc=function(V){if(this.J){if(this.B&&V.value)this.response.push(V.value);else if(!this.B){var t=V.value?V.value:new Uint8Array(0);if(t=this.L.decode(t,{stream:!V.done}))this.response=this.responseText+=t}V.done?p_(this):NA(this);this.readyState==3&&aZL(this)}}; g.q.Ry6=function(V){this.J&&(this.response=this.responseText=V,p_(this))}; g.q.eG=function(V){this.J&&(this.response=V,p_(this))}; g.q.Rr=function(){this.J&&p_(this)}; g.q.setRequestHeader=function(V,t){this.C.append(V,t)}; g.q.getResponseHeader=function(V){return this.S?this.S.get(V.toLowerCase())||"":""}; g.q.getAllResponseHeaders=function(){if(!this.S)return"";for(var V=[],t=this.S.entries(),x=t.next();!x.done;)x=x.value,V.push(x[0]+": "+x[1]),x=t.next();return V.join("\r\n")}; g.q.setCredentialsMode=function(V){this.G=V}; Object.defineProperty(Ow.prototype,"withCredentials",{get:function(){return this.G==="include"}, set:function(V){this.setCredentialsMode(V?"include":"same-origin")}});g.AO.prototype.toString=function(){var V=[],t=this.G;t&&V.push(MA(t,Bsr,!0),":");var x=this.J;if(x||t=="file")V.push("//"),(t=this.C)&&V.push(MA(t,Bsr,!0),"@"),V.push(g.wH(x).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),x=this.N,x!=null&&V.push(":",String(x));if(x=this.S)this.J&&x.charAt(0)!="/"&&V.push("/"),V.push(MA(x,x.charAt(0)=="/"?m1i:Y4c,!0));(x=this.W.toString())&&V.push("?",x);(x=this.B)&&V.push("#",MA(x,Q9Y));return V.join("")}; g.AO.prototype.resolve=function(V){var t=this.clone(),x=!!V.G;x?g.S9(t,V.G):x=!!V.C;x?t.C=V.C:x=!!V.J;x?g.GC(t,V.J):x=V.N!=null;var u=V.S;if(x)g.Ix(t,V.N);else if(x=!!V.S){if(u.charAt(0)!="/")if(this.J&&!this.S)u="/"+u;else{var Z=t.S.lastIndexOf("/");Z!=-1&&(u=t.S.slice(0,Z+1)+u)}Z=u;if(Z==".."||Z==".")u="";else if(g.Lr(Z,"./")||g.Lr(Z,"/.")){u=GY(Z,"/");Z=Z.split("/");for(var P=[],K=0;K1||P.length==1&&P[0]!="")&&P.pop(), u&&K==Z.length&&P.push("")):(P.push(R),u=!0)}u=P.join("/")}else u=Z}x?t.S=u:x=V.W.toString()!=="";x?vY(t,V.W.clone()):x=!!V.B;x&&(t.B=V.B);return t}; g.AO.prototype.clone=function(){return new g.AO(this)}; var Bsr=/[#\/\?@]/g,Y4c=/[#\?:]/g,m1i=/[#\?]/g,TRl=/[#\?@]/g,Q9Y=/#/g;g.q=Ft.prototype;g.q.add=function(V,t){zC(this);this.N=null;V=BY(this,V);var x=this.J.get(V);x||this.J.set(V,x=[]);x.push(t);this.S=this.S+1;return this}; g.q.remove=function(V){zC(this);V=BY(this,V);return this.J.has(V)?(this.N=null,this.S=this.S-this.J.get(V).length,this.J.delete(V)):!1}; g.q.clear=function(){this.J=this.N=null;this.S=0}; g.q.isEmpty=function(){zC(this);return this.S==0}; g.q.forEach=function(V,t){zC(this);this.J.forEach(function(x,u){x.forEach(function(Z){V.call(t,Z,u,this)},this)},this)}; g.q.ZP=function(){zC(this);for(var V=Array.from(this.J.values()),t=Array.from(this.J.keys()),x=[],u=0;u0?String(V[0]):t}; g.q.toString=function(){if(this.N)return this.N;if(!this.J)return"";for(var V=[],t=Array.from(this.J.keys()),x=0;x>>3;P.N!=1&&P.N!=2&&P.N!=15&&ax(P,K,R,"unexpected tag");P.J=1;P.S=0;P.W=0} function x(f){P.W++;P.W==5&&f&240&&ax(P,K,R,"message length too long");P.S|=(f&127)<<(P.W-1)*7;f&128||(P.J=2,P.C=0,typeof Uint8Array!=="undefined"?P.G=new Uint8Array(P.S):P.G=Array(P.S),P.S==0&&Z())} function u(f){P.G[P.C++]=f;P.C==P.S&&Z()} function Z(){if(P.N<15){var f={};f[P.N]=P.G;P.L.push(f)}P.J=0} for(var P=this,K=V instanceof Array?V:new Uint8Array(V),R=0;R0?V:null};rK.prototype.isInputValid=function(){return this.J===null}; rK.prototype.Nv=function(){return this.J}; rK.prototype.Wn=function(){return!1}; rK.prototype.parse=function(V){this.J!==null&&HQ4(this,V,"stream already broken");var t=null;try{var x=this.N;x.N||lZT(x,V,"stream already broken");x.J+=V;var u=Math.floor(x.J.length/4);if(u==0)var Z=null;else{try{var P=irj(x.J.slice(0,u*4))}catch(K){lZT(x,x.J,K.message)}x.S+=u*4;x.J=x.J.slice(u*4);Z=P}t=Z===null?null:this.W.parse(Z)}catch(K){HQ4(this,V,K.message)}this.S+=V.length;return t};var rTn={INIT:0,ZJ:1,Gz:2,Qu:3,GK:4,BW:5,STRING:6,EN:7,nm:8,fh:9,cj:10,F8:11,Ai:12,V7:13,PM:14,Zf:15,JN:16,SL:17,IZ:18,y9:19,Bs:20};g.q=cY.prototype;g.q.isInputValid=function(){return this.G!=3}; g.q.Nv=function(){return this.X}; g.q.done=function(){return this.G===2}; g.q.Wn=function(){return!1}; g.q.parse=function(V){function t(){for(;O0;)if(p=V[O++], P.C===4?P.C=0:P.C++,!p)break a;if(p==='"'&&!P.L){P.J=u();break}if(p==="\\"&&!P.L&&(P.L=!0,p=V[O++],!p))break;if(P.L)if(P.L=!1,p==="u"&&(P.C=1),p=V[O++])continue;else break;R.lastIndex=O;p=R.exec(V);if(!p){O=V.length+1;break}O=p.index+1;p=V[p.index];if(!p)break}P.N+=O-I;continue;case f.fh:if(!p)continue;p==="r"?P.J=f.cj:yf(P,V,O);continue;case f.cj:if(!p)continue;p==="u"?P.J=f.F8:yf(P,V,O);continue;case f.F8:if(!p)continue;p==="e"?P.J=u():yf(P,V,O);continue;case f.Ai:if(!p)continue;p==="a"?P.J=f.V7: yf(P,V,O);continue;case f.V7:if(!p)continue;p==="l"?P.J=f.PM:yf(P,V,O);continue;case f.PM:if(!p)continue;p==="s"?P.J=f.Zf:yf(P,V,O);continue;case f.Zf:if(!p)continue;p==="e"?P.J=u():yf(P,V,O);continue;case f.JN:if(!p)continue;p==="u"?P.J=f.SL:yf(P,V,O);continue;case f.SL:if(!p)continue;p==="l"?P.J=f.IZ:yf(P,V,O);continue;case f.IZ:if(!p)continue;p==="l"?P.J=u():yf(P,V,O);continue;case f.y9:p==="."?P.J=f.Bs:yf(P,V,O);continue;case f.Bs:if("0123456789.eE+-".indexOf(p)!==-1)continue;else O--,P.N--,P.J= u();continue;default:yf(P,V,O)}}} function u(){var p=K.pop();return p!=null?p:f.ZJ} function Z(p){P.S>1||(p||(p=k===-1?P.W+V.substring(E,O):V.substring(k,O)),P.Ij?P.B.push(p):P.B.push(JSON.parse(p)),k=O)} for(var P=this,K=P.wk,R=P.zU,f=rTn,b=V.length,E=0,k=-1,O=0;O0?(N=P.B,P.B=[],N):null}return null};j9.prototype.isInputValid=function(){return this.G===null}; j9.prototype.Nv=function(){return this.G}; j9.prototype.Wn=function(){return!1}; j9.prototype.parse=function(V){function t(f){P.S=6;P.G="The stream is broken @"+P.J+"/"+K+". Error: "+f+". With input:\n";throw Error(P.G);} function x(){P.N=new cY({ev1:!0,SS:!0})} function u(f){if(f)for(var b=0;b1)&&t("extra status: "+f);P.B=!0;var b={};b[2]=f[0];P.W.push(b)}} for(var P=this,K=0;K0?(V=P.W,P.W=[],V):null};lW.prototype.zP=function(){return this.J}; lW.prototype.getStatus=function(){return this.G}; lW.prototype.Ij=function(V){V=V.target;try{if(V==this.J)a:{var t=g.uq(this.J),x=this.J.S,u=this.J.getStatus(),Z=g.P$(this.J);V=[];if(g.K2(this.J)instanceof Array){var P=g.K2(this.J);P.length>0&&P[0]instanceof Uint8Array&&(this.X=!0,V=P)}if(!(t<3||t==3&&!Z&&V.length==0))if(u=u==200||u==206,t==4&&(x==8?HY(this,7):x==7?HY(this,8):u||HY(this,3)),this.S||(this.S=UNq(this.J),this.S==null&&HY(this,5)),this.G>2)Uw(this);else{if(V.length>this.N){var K=V.length;x=[];try{if(this.S.Wn())for(var R=0;Rthis.N){R=Z.slice(this.N);this.N=Z.length;try{var b=this.S.parse(R);b!=null&&this.W&&this.W(b)}catch(E){HY(this,5);Uw(this);break a}}t==4?(Z.length!= 0||this.X?HY(this,2):HY(this,4),Uw(this)):HY(this,1)}}}catch(E){HY(this,6),Uw(this)}};g.q=DNz.prototype;g.q.zf=function(V,t){var x=this.S[V];x||(x=[],this.S[V]=x);x.push(t);return this}; g.q.addListener=function(V,t){this.zf(V,t);return this}; g.q.removeListener=function(V,t){var x=this.S[V];x&&g.h_(x,t);(V=this.J[V])&&g.h_(V,t);return this}; g.q.once=function(V,t){var x=this.J[V];x||(x=[],this.J[V]=x);x.push(t);return this}; g.q.QtU=function(V){var t=this.S.data;t&&e59(V,t);(t=this.J.data)&&e59(V,t);this.J.data=[]}; g.q.MHX=function(){switch(this.N.getStatus()){case 1:Dd(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Dd(this,"error");break;case 8:Dd(this,"close");break;case 2:Dd(this,"end")}};dNq.prototype.serverStreaming=function(V,t,x,u){var Z=this,P=V.substring(0,V.length-u.name.length);return Ccq(function(K){var R=K.DA,f=K.getMetadata(),b=VOs(Z,!1);f=tOw(Z,f,b,P+R.getName());var E=xzs(b,R.S,!0);K=R.J(K.vE);b.send(f,"POST",K);return E},this.W).call(this,u.L(t,x))};ZXq.prototype.create=function(V,t){return wyq(this.J,this.S+"/$rpc/google.internal.waa.v1.Waa/Create",V,t||{},z8j)};var Tsr=1,tX=new WeakMap;g.A(e9,g.c);e9.prototype.signal=function(){var V=new C_(!1);this.signals.add(V);g.y(this,V);return V}; e9.prototype.Vx=function(V){return dK(this,V).Vx()}; g.A(C_,g.c);g.q=C_.prototype;g.q.MH=function(){var V=this,t=Tsr++;JO(function(){PA8(V,t)}); return t}; g.q.detach=function(V){var t=this;JO(function(){var x=t.slots.get(V);x&&x.dc()})}; g.q.value=function(V){return this.promise(!0,V)}; g.q.Vx=function(){return this.JA}; g.q.next=function(V){return this.promise(!1,V)}; g.q.promise=function(V,t){var x=this,u=xx0();JO(function(){if(x.uD())u.reject(new XC("Signal initially disposed"));else if(t&&t.uD())u.reject(new XC("Owner initially disposed"));else if(V&&x.gG&&x.ww)u.resolve(x.JA);else if(x.yw.add(u),gj(u.promise,function(){x.yw.delete(u)}),t){var Z=function(){u.reject(new XC("Owner asynchronously disposed"))}; gj(u.promise,function(){var P=tX.get(t);P&&g.h_(P,Z)}); R24(t,Z)}}); return u.promise}; g.q.NP=function(){var V=this;g.c.prototype.NP.call(this);JO(function(){for(var t=g.G(V.slots.values()),x=t.next();!x.done;x=t.next())x=x.value.dc,x();V.slots.clear();t=g.G(V.yw);for(x=t.next();!x.done;x=t.next())x.value.reject(new XC("Signal asynchronously disposed"));V.yw.clear()})}; var wK=[],VV=!1;g.A(xf,g.c);xf.prototype.start=function(){var V=this;if(this.uD())throw new Zy("Cannot start a disposed timer.");if(!this.B){this.W=0;if(this.L){var t=Date.now();this.handle=setInterval(function(){V.W=V.milliseconds>0?Math.trunc((Date.now()-t)/V.milliseconds):V.W+1;var x;(x=V.S)==null||x.resolve();V.S=void 0;if(V.N){var u;(u=V.J)!=null&&hO(dK(u,V.N),V)}V.It.jT(V)},this.milliseconds)}else this.handle=setTimeout(function(){V.state=3; V.handle=void 0;V.W=1;var x;(x=V.S)==null||x.resolve();V.S=void 0;if(V.N){var u;(u=V.J)!=null&&hO(dK(u,V.N),V)}V.It.jT(V)},this.milliseconds); this.state=1}}; xf.prototype.cancel=function(){if(this.B){this.clear();this.state=2;var V;(V=this.S)==null||V.reject(new u5);var t;(t=this.It.eR)==null||t.call(this);if(this.G){var x;(x=this.J)!=null&&hO(dK(x,this.G))}}}; xf.prototype.NP=function(){this.clear();var V;(V=this.S)==null||V.reject(new Zy);this.state=4;g.c.prototype.NP.call(this)}; xf.prototype.clear=function(){this.L?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; g.Zz.Object.defineProperties(xf.prototype,{B:{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.W}}, C:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.S!=null||(this.S=new g.v$),this.S.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new u5("Timer has been cancelled."));case 4:return Promise.reject(new Zy("Timer has been disposed."));default:PD(this.state)}}}, jT:{configurable:!0,enumerable:!0,get:function(){if(this.uD())throw new Zy("Cannot attach a signal to a disposed timer.");this.N||(this.J!=null||(this.J=new e9(this)),this.N=this.J.signal());return this.N}}, eR:{configurable:!0,enumerable:!0,get:function(){if(this.uD())throw new Zy("Cannot attach a signal to a disposed timer.");this.G||(this.J!=null||(this.J=new e9(this)),this.G=this.J.signal());return this.G}}}); g.A(u5,s$);g.A(Zy,s$);g.A(PR,hn);g.q=PR.prototype;g.q.isReady=function(){return!!this.J}; g.q.ready=function(){var V=this;return g.Q(function(t){return g.m(t,V.S.promise,0)})}; g.q.ag=function(V){return bXl(this,this.logger.aG("c",V===void 0?1:V,this.FO.ag(Xz().J,null)),new Fz(10,"JVZ:Timeout"))}; g.q.prefetch=function(){this.state===1&&(this.LL=this.ag())}; g.q.start=function(){if(this.state===1){this.state=2;var V=new $S(this.logger,"r");this.ready().finally(function(){return void V.done()}); kBq(this)}}; g.q.wl=function(V){iXh(this,V);return wz(this,$zC(V),!1)}; g.q.iA=function(V){iXh(this,V);return wz(this,$zC(V),!0)};var pML={NONE:0,OcU:1},h2h={l4:0,X2k:1,lM8:2,kis:3},jh={A7:"a",j4X:"d",VIDEO:"v"};qq.prototype.isVisible=function(){return this.lZ?this.KR>=.3:this.KR>=.5};var Nq={Tjj:0,WLk:1},CAK={NONE:0,QOD:1,t0w:2};RQ.prototype.getValue=function(){return this.S}; g.A(fk,RQ);fk.prototype.N=function(V){this.S===null&&g.BO(this.W,V)&&(this.S=V)}; g.A($f,RQ);$f.prototype.N=function(V){this.S===null&&typeof V==="number"&&(this.S=V)}; g.A(b5,RQ);b5.prototype.N=function(V){this.S===null&&typeof V==="string"&&(this.S=V)};EI.prototype.disable=function(){this.S=!1}; EI.prototype.enable=function(){this.S=!0}; EI.prototype.isEnabled=function(){return this.S}; EI.prototype.reset=function(){this.J={};this.S=!0;this.N={}};var c1=document,GI=window;var V9T=!g.vk&&!nr();pk.prototype.now=function(){return 0}; pk.prototype.S=function(){return 0}; pk.prototype.N=function(){return 0}; pk.prototype.J=function(){return 0};g.A(Sh,pk);Sh.prototype.now=function(){return AX()&&GI.performance.now?GI.performance.now():pk.prototype.now.call(this)}; Sh.prototype.S=function(){return AX()&&GI.performance.memory?GI.performance.memory.totalJSHeapSize||0:pk.prototype.S.call(this)}; Sh.prototype.N=function(){return AX()&&GI.performance.memory?GI.performance.memory.usedJSHeapSize||0:pk.prototype.N.call(this)}; Sh.prototype.J=function(){return AX()&&GI.performance.memory?GI.performance.memory.jsHeapSizeLimit||0:pk.prototype.J.call(this)};var GBK=Aj(function(){var V=!1;try{var t=Object.defineProperty({},"passive",{get:function(){V=!0}}); g.Ww.addEventListener("test",null,t)}catch(x){}return V});IYT.prototype.isVisible=function(){return Lk(c1)===1};var LF1={Ye6:"allow-forms",fB8:"allow-modals",cYP:"allow-orientation-lock",FXw:"allow-pointer-lock",UfX:"allow-popups",tMX:"allow-popups-to-escape-sandbox",hBw:"allow-presentation",E_8:"allow-same-origin",ulj:"allow-scripts",v_S:"allow-top-navigation",Bgk:"allow-top-navigation-by-user-activation"},XMT=Aj(function(){return FF1()});var YbC=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");zI.prototype.dL=function(V,t,x){V=V+"//"+t+x;var u=Tj9(this)-x.length;if(u<0)return"";this.J.sort(function(b,E){return b-E}); x=null;t="";for(var Z=0;Z=f.length){u-=f.length;V+=f;t=this.N;break}x=x==null?P:x}}u="";x!=null&&(u=""+t+"trn="+x);return V+u};WR.prototype.setInterval=function(V,t){return GI.setInterval(V,t)}; WR.prototype.clearInterval=function(V){GI.clearInterval(V)}; WR.prototype.setTimeout=function(V,t){return GI.setTimeout(V,t)}; WR.prototype.clearTimeout=function(V){GI.clearTimeout(V)};g.A(nk,Wx);nk.prototype.J=fAl([0,wPz,x1i,-2,PL7]);var JjC={ZxC:1,XK:2,kHk:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};wMh.prototype.Fj=function(V){if(typeof V==="string"&&V.length!=0){var t=this.EZ;if(t.S){V=V.split("&");for(var x=V.length-1;x>=0;x--){var u=V[x].split("="),Z=decodeURIComponent(u[0]);u.length>1?(u=decodeURIComponent(u[1]),u=/^[0-9]+$/g.exec(u)?parseInt(u,10):u):u=1;(Z=t.J[Z])&&Z.N(u)}}}};var RA=null;var UI=g.Ww.performance,WhU=!!(UI&&UI.mark&&UI.measure&&UI.clearMarks),l5=Aj(function(){var V;if(V=WhU){var t;if(RA===null){RA="";try{V="";try{V=g.Ww.top.location.hash}catch(x){V=g.Ww.location.hash}V&&(RA=(t=V.match(/\bdeid=([\d,]+)/))?t[1]:"")}catch(x){}}t=RA;V=!!t.indexOf&&t.indexOf("1337")>=0}return V}); HR.prototype.disable=function(){this.J=!1;this.events!==this.S.google_js_reporting_queue&&(l5()&&g.EA(this.events,Pqq),this.events.length=0)}; HR.prototype.start=function(V,t){if(!this.J)return null;var x=uzL()||x5s();V=new Z24(V,t,x);t="goog_"+V.label+"_"+V.uniqueId+"_start";UI&&l5()&&UI.mark(t);return V}; HR.prototype.end=function(V){if(this.J&&typeof V.value==="number"){var t=uzL()||x5s();V.duration=t-V.value;t="goog_"+V.label+"_"+V.uniqueId+"_end";UI&&l5()&&UI.mark(t);!this.J||this.events.length>2048||this.events.push(V)}};K0s.prototype.A4=function(V,t,x,u,Z){Z=Z||this.Hb;try{var P=new zI;P.J.push(1);P.S[1]=BR("context",V);t.error&&t.meta&&t.id||(t=new Ck(JX(t)));if(t.msg){var K=t.msg.substring(0,512);P.J.push(2);P.S[2]=BR("msg",K)}var R=t.meta||{};if(this.Ci)try{this.Ci(R)}catch(N){}if(u)try{u(R)}catch(N){}u=[R];P.J.push(3);P.S[3]=u;var f=aYL();if(f.S){var b=f.S.url||"";P.J.push(4);P.S[4]=BR("top",b)}var E={url:f.J.url||""};if(f.J.url){var k=f.J.url.match(ym);var O=nX(k[1],null,k[3],k[4])}else O="";b=[E,{url:O}];P.J.push(5); P.S[5]=b;VNw(this.J,Z,P,x)}catch(N){try{VNw(this.J,Z,{context:"ecmserr",rctx:V,msg:JX(N),url:f&&f.J.url},x)}catch(p){}}return this.At}; g.A(Ck,tN0);var eh,dk,Dy=new HR;eh=new function(){var V="https:";GI&&GI.location&&GI.location.protocol==="http:"&&(V="http:");this.S=V;this.J=.01}; dk=new K0s;GI&&GI.document&&(GI.document.readyState=="complete"?RUT():Dy.J&&vR(GI,"load",function(){RUT()}));var b2T=Date.now(),Z5=-1,xg=-1,XYq,P1=-1,ub=!1;g.q=KI.prototype;g.q.getHeight=function(){return this.bottom-this.top}; g.q.clone=function(){return new KI(this.top,this.right,this.bottom,this.left)}; g.q.contains=function(V){return this&&V?V instanceof KI?V.left>=this.left&&V.right<=this.right&&V.top>=this.top&&V.bottom<=this.bottom:V.x>=this.left&&V.x<=this.right&&V.y>=this.top&&V.y<=this.bottom:!1}; g.q.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.q.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.q.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.q.scale=function(V,t){t=typeof t==="number"?t:V;this.left*=V;this.right*=V;this.top*=t;this.bottom*=t;return this};kg.prototype.t9=function(V,t){return!!V&&(!(t===void 0?0:t)||this.volume==V.volume)&&this.N==V.N&&bb(this.J,V.J)&&!0};ib.prototype.m0=function(){return this.L}; ib.prototype.t9=function(V,t){return this.W.t9(V.W,t===void 0?!1:t)&&this.L==V.L&&bb(this.N,V.N)&&bb(this.B,V.B)&&this.J==V.J&&this.G==V.G&&this.S==V.S&&this.C==V.C};var oCj={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},rm={oW:"start",R1:"firstquartile",xA:"midpoint",pY:"thirdquartile",COMPLETE:"complete",ERROR:"error",ZX:"metric",PAUSE:"pause",CY:"resume",DX:"skip",lr:"viewable_impression",sC:"mute",OC:"unmute",Jw:"fullscreen",QX:"exitfullscreen",Cb:"bufferstart",yX:"bufferfinish",SY:"fully_viewable_audible_half_duration_impression",V9:"measurable_impression",Lb:"abandon",kR:"engagedview",mF:"impression",HV:"creativeview",AE:"loaded", szw:"progress",CLOSE:"close",u01:"collapse",t5P:"overlay_resize",hej:"overlay_unmeasurable_impression",EVU:"overlay_unviewable_impression",vVw:"overlay_viewable_immediate_impression",uOw:"overlay_viewable_end_of_session_impression",Od:"custom_metric_viewable",VX:"audio_audible",Zc:"audio_measurable",PV:"audio_impression"},nfL="start firstquartile midpoint thirdquartile resume loaded".split(" "),cX9=["start","firstquartile","midpoint","thirdquartile"],BK9=["abandon"],xx={UNKNOWN:-1,oW:0,R1:1,xA:2, pY:3,COMPLETE:4,ZX:5,PAUSE:6,CY:7,DX:8,lr:9,sC:10,OC:11,Jw:12,QX:13,SY:14,V9:15,Lb:16,kR:17,mF:18,HV:19,AE:20,Od:21,Cb:22,yX:23,PV:27,Zc:28,VX:29};var klK={JYU:"addEventListener",Ee6:"getMaxSize",uB6:"getScreenSize",veP:"getState",Bik:"getVersion",p2C:"removeEventListener",vtj:"isViewable"};g.q=g.sT.prototype;g.q.clone=function(){return new g.sT(this.left,this.top,this.width,this.height)}; g.q.contains=function(V){return V instanceof g.N8?V.x>=this.left&&V.x<=this.left+this.width&&V.y>=this.top&&V.y<=this.top+this.height:this.left<=V.left&&this.left+this.width>=V.left+V.width&&this.top<=V.top&&this.top+this.height>=V.top+V.height}; g.q.getSize=function(){return new g.AI(this.width,this.height)}; g.q.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.q.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.q.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.q.scale=function(V,t){t=typeof t==="number"?t:V;this.left*=V;this.width*=V;this.top*=t;this.height*=t;return this};var Nzs={};MN1.prototype.update=function(V){V&&V.document&&(this.L=OT(!1,V,this.isMobileDevice),this.J=OT(!0,V,this.isMobileDevice),X$C(this,V),gS4(this,V))};j3.prototype.cancel=function(){oQ().clearTimeout(this.J);this.J=null}; j3.prototype.schedule=function(){var V=this,t=oQ(),x=yV().J.J;this.J=t.setTimeout(cR(x,wk(143,function(){V.S++;V.N.sample()})),ES0())};g.q=lb.prototype;g.q.O3=function(){return!1}; g.q.initialize=function(){return this.isInitialized=!0}; g.q.rU=function(){return this.J.Us}; g.q.v7=function(){return this.J.Ij}; g.q.HL=function(V,t){if(!this.Ij||(t===void 0?0:t))this.Ij=!0,this.Us=V,this.C=0,this.J!=this||UT(this)}; g.q.getName=function(){return this.J.L1}; g.q.aR=function(){return this.J.E$()}; g.q.E$=function(){return{}}; g.q.j4=function(){return this.J.C}; g.q.Um=function(){var V=nI();V.J=OT(!0,this.N,V.isMobileDevice)}; g.q.td=function(){gS4(nI(),this.N)}; g.q.s$=function(){return this.W.J}; g.q.sample=function(){}; g.q.isActive=function(){return this.J.B}; g.q.nQ=function(V){var t=this.J;this.J=V.j4()>=this.C?V:this;t!==this.J?(this.B=this.J.B,UT(this)):this.B!==this.J.B&&(this.B=this.J.B,UT(this))}; g.q.OH=function(V){if(V.S===this.J){var t=!this.W.t9(V,this.X);this.W=V;t&&m50(this)}}; g.q.Hv=function(){return this.X}; g.q.dispose=function(){this.cX=!0}; g.q.uD=function(){return this.cX};g.q=D5.prototype;g.q.observe=function(){return!0}; g.q.unobserve=function(){}; g.q.wJ=function(V){this.G=V}; g.q.dispose=function(){if(!this.uD()){var V=this.S;g.h_(V.G,this);V.X&&this.Hv()&&BzT(V);this.unobserve();this.zU=!0}}; g.q.uD=function(){return this.zU}; g.q.aR=function(){return this.S.aR()}; g.q.j4=function(){return this.S.j4()}; g.q.rU=function(){return this.S.rU()}; g.q.v7=function(){return this.S.v7()}; g.q.nQ=function(){}; g.q.OH=function(){this.UH()}; g.q.Hv=function(){return this.cX};g.q=e3.prototype;g.q.j4=function(){return this.J.j4()}; g.q.rU=function(){return this.J.rU()}; g.q.v7=function(){return this.J.v7()}; g.q.create=function(V,t,x){var u=null;this.J&&(u=this.gf(V,t,x),H1(this.J,u));return u}; g.q.hd=function(){return this.ql()}; g.q.ql=function(){return!1}; g.q.init=function(V){return this.J.initialize()?(H1(this.J,this),this.W=V,!0):!1}; g.q.nQ=function(V){V.j4()==0&&this.W(V.rU(),this)}; g.q.OH=function(){}; g.q.Hv=function(){return!1}; g.q.dispose=function(){this.G=!0}; g.q.uD=function(){return this.G}; g.q.aR=function(){return{}};dJ.prototype.add=function(V,t,x){++this.N;V=new QN9(V,t,x);this.J.push(new QN9(V.S,V.J,V.N+this.N/4096));this.S=!0;return this};oSq.prototype.toString=function(){var V="//pagead2.googlesyndication.com//pagead/gen_204",t=Jo(this.J);t.length>0&&(V+="?"+t);return V};ho.prototype.update=function(V,t,x){V&&(this.J+=t,this.S+=t,this.W+=t,this.N=Math.max(this.N,this.W));if(x===void 0?!V:x)this.W=0};var l7s=[1,.75,.5,.3,0];wJ.prototype.update=function(V,t,x,u,Z,P){P=P===void 0?!0:P;t=Z?Math.min(V,t):t;for(Z=0;Z0&&t>=K;K=!(V>0&&V>=K)||x;this.J[Z].update(P&&R,u,!P||K)}};Pa.prototype.update=function(V,t,x,u){this.L=this.L!=-1?Math.min(this.L,t.KR):t.KR;this.wk=Math.max(this.wk,t.KR);this.zU=this.zU!=-1?Math.min(this.zU,t.HQ):t.HQ;this.Us=Math.max(this.Us,t.HQ);this.QC.update(t.HQ,x.HQ,t.J,V,u);this.Es+=V;t.KR===0&&(this.L1+=V);this.S.update(t.KR,x.KR,t.J,V,u);x=u||x.lZ!=t.lZ?x.isVisible()&&t.isVisible():x.isVisible();t=!t.isVisible()||t.J;this.xw.update(x,V,t)}; Pa.prototype.gZ=function(){return this.xw.N>=this.HX};if(c1&&c1.URL){var nC$=c1.URL,cTj;if(cTj=!!nC$){var yTj;a:{if(nC$){var j9c=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var fa=j9c.exec(decodeURIComponent(nC$));if(fa){yTj=fa[1]&&fa[1].length>1?fa[1].substring(1):"true";break a}}catch(V){}}yTj=""}cTj=yTj.length>0}dk.At=!cTj};var lzY=new KI(0,0,0,0);var hU1=new KI(0,0,0,0);g.A($s,g.c);g.q=$s.prototype; g.q.NP=function(){if(this.FB.J){if(this.zX.r$){var V=this.FB.J;V.removeEventListener&&V.removeEventListener("mouseover",this.zX.r$,IQ());this.zX.r$=null}this.zX.DK&&(V=this.FB.J,V.removeEventListener&&V.removeEventListener("mouseout",this.zX.DK,IQ()),this.zX.DK=null)}this.Og&&this.Og.dispose();this.yc&&this.yc.dispose();delete this.lG;delete this.VF;delete this.kO;delete this.FB.cJ;delete this.FB.J;delete this.zX;delete this.Og;delete this.yc;delete this.EZ;g.c.prototype.NP.call(this)}; g.q.jc=function(){return this.yc?this.yc.J:this.position}; g.q.Fj=function(V){yV().Fj(V)}; g.q.Hv=function(){return!1}; g.q.y3=function(){return new Pa}; g.q.G9=function(){return this.lG}; g.q.GZ=function(V){return xAT(this,V,1E4)}; g.q.ZS=function(V,t,x,u,Z,P,K){this.gS||(this.A_&&(V=this.Rp(V,x,Z,K),u=u&&this.Ra.KR>=(this.lZ()?.3:.5),this.Yf(P,V,u),this.TW=t,V.KR>0&&-1===this.BS&&(this.BS=t),this.PS==-1&&this.gZ()&&(this.PS=t),this.Tu==-2&&(this.Tu=R1(this.jc())?V.KR:-1),this.Ra=V),this.VF(this))}; g.q.Yf=function(V,t,x){this.G9().update(V,t,this.Ra,x)}; g.q.Oc=function(){return new qq}; g.q.Rp=function(V,t,x,u){x=this.Oc();x.J=t;t=oQ().S;t=Lk(c1)===0?-1:t.isVisible()?0:1;x.S=t;x.KR=this.GL(V);x.lZ=this.lZ();x.HQ=u;return x}; g.q.GL=function(V){return this.opacity===0&&OI(this.EZ,"opac")===1?0:V}; g.q.lZ=function(){return!1}; g.q.XS=function(){return this.PDP||this.xPw}; g.q.uS=function(){to()}; g.q.kN=function(){to()}; g.q.S9=function(){return 0}; g.q.gZ=function(){return this.lG.gZ()}; g.q.D9=function(){var V=this.A_;V=(this.hasCompleted||this.uD())&&!V;var t=yV().S!==2||this.B1w;return this.gS||t&&V?2:this.gZ()?4:3}; g.q.Gq=function(){return 0};g.ER.prototype.next=function(){return g.$b}; g.$b={done:!0,value:void 0};g.ER.prototype.JK=function(){return this};g.A(Rij,qq);var bK=$Al([void 0,1,2,3,4,8,16]),EF=$Al([void 0,4,8,16]),Hlc={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:sR("p0",EF),p1:sR("p1",EF),p2:sR("p2",EF),p3:sR("p3",EF),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:OR("mtos1",[0,2,4],!1,EF),mtos2:OR("mtos2",[0,2,4],!1,EF),mtos3:OR("mtos3",[0,2,4],!1,EF),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:sR("a0",EF),a1:sR("a1",EF),a2:sR("a2",EF),a3:sR("a3",EF),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:sR("c0",EF),c1:sR("c1",EF),c2:sR("c2",EF),c3:sR("c3",EF),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:sR("qmtos",bK),qnc:sR("qnc",bK),qmv:sR("qmv",bK),qnv:sR("qnv",bK), 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:sR("ss0",EF),ss1:sR("ss1",EF),ss2:sR("ss2",EF),ss3:sR("ss3",EF),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"},U1t=Object.assign({},Hlc,{avid:Nz("audio"),avas:"avas",vs:"vs"}),D1r={atos:"atos",avt:OR("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(V,t){return function(x){return x[V]===void 0&&t!==void 0?t:x[V]}}("ss",0), t:"t"};SU.prototype.getValue=function(){return this.S}; SU.prototype.update=function(V,t){V>=32||(this.J&1<=.5;W1(t.volume)&&(this.W=this.W!=-1?Math.min(this.W,t.volume):t.volume,this.B=Math.max(this.B,t.volume));P&&(this.cX+=V,this.X+=Z?V:0);this.J.update(t.KR,x.KR,t.J,V,u,Z);this.N.update(!0,V);this.G.update(Z,V);this.Ij.update(x.fullscreen,V);this.gk.update(Z&&!P,V);V=Math.floor(t.mediaTime/1E3);this.BX.update(V,t.isVisible());this.yC.update(V,t.KR>=1);this.DS.update(V, iZ(t))}};sxs.prototype.S=function(V){this.N||(this.J(V)?(V=gfw(this.X,this.W,V),this.G|=V,V=V==0):V=!1,this.N=V)};g.A(va,sxs);va.prototype.J=function(){return!0}; va.prototype.B=function(){return!1}; va.prototype.getId=function(){var V=this,t=mS(rm,function(x){return x==V.W}); return xx[t].toString()}; va.prototype.toString=function(){var V="";this.B()&&(V+="c");this.N&&(V+="s");this.G>0&&(V+=":"+this.G);return this.getId()+V};g.A(L3,va);L3.prototype.S=function(V,t){t=t===void 0?null:t;t!=null&&this.L.push(t);va.prototype.S.call(this,V)};g.A(FR,NKL);FR.prototype.S=function(){return null}; FR.prototype.N=function(){return[]};g.A(Mr,D5);g.q=Mr.prototype;g.q.SQ=function(){if(this.element){var V=this.element,t=this.S.J.N;try{try{var x=vSl(V.getBoundingClientRect())}catch(b){x=new KI(0,0,0,0)}var u=x.right-x.left,Z=x.bottom-x.top,P=SBC(V,t),K=P.x,R=P.y;var f=new KI(Math.round(R),Math.round(K+u),Math.round(R+Z),Math.round(K))}catch(b){f=lzY.clone()}this.N=f;this.J=YB1(this,this.N)}}; g.q.nh=function(){this.B=this.S.W.J}; g.q.Dt=function(V){var t=OI(this.EZ,"od")==1;return Jnh(V,this.B,this.element,t)}; g.q.eL=function(){this.timestamp=to()}; g.q.UH=function(){this.eL();this.SQ();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var V=this.element;var t=new g.AI(V.videoWidth,V.videoHeight);V=this.J;var x=$g(V),u=V.getHeight(),Z=t.width;t=t.height;Z<=0||t<=0||x<=0||u<=0||(Z/=t,t=x/u,V=V.clone(),Z>t?(x/=Z,u=(u-x)/2,u>0&&(u=V.top+u,V.top=Math.round(u),V.bottom=Math.round(u+x))):(u*=Z,x=Math.round((x-u)/2),x>0&&(x=V.left+x,V.left=Math.round(x),V.right=Math.round(x+u))));this.J=V}this.nh(); V=this.J;x=this.B;V=V.left<=x.right&&x.left<=V.right&&V.top<=x.bottom&&x.top<=V.bottom?new KI(Math.max(V.top,x.top),Math.min(V.right,x.right),Math.min(V.bottom,x.bottom),Math.max(V.left,x.left)):new KI(0,0,0,0);x=V.top>=V.bottom||V.left>=V.right?new KI(0,0,0,0):V;V=this.S.W;t=Z=u=0;if((this.J.bottom-this.J.top)*(this.J.right-this.J.left)>0)if(this.Dt(x))x=new KI(0,0,0,0);else{u=nI().W;t=new KI(0,u.height,u.width,0);var P;u=f3(x,(P=this.G)!=null?P:this.J);Z=f3(x,nI().J);t=f3(x,t)}P=x.top>=x.bottom|| x.left>=x.right?new KI(0,0,0,0):ET(x,-this.J.left,-this.J.top);yC()||(Z=u=0);this.X=new ib(V,this.element,this.J,P,u,Z,this.timestamp,t)}; g.q.getName=function(){return this.S.getName()};var e8$=new KI(0,0,0,0);g.A(gm,Mr);g.q=gm.prototype;g.q.observe=function(){this.W();return!0}; g.q.OH=function(){Mr.prototype.UH.call(this)}; g.q.eL=function(){}; g.q.SQ=function(){}; g.q.UH=function(){this.W();Mr.prototype.UH.call(this)}; g.q.nQ=function(V){V=V.isActive();V!==this.C&&(V?this.W():(nI().J=new KI(0,0,0,0),this.J=new KI(0,0,0,0),this.B=new KI(0,0,0,0),this.timestamp=-1));this.C=V};var kb={},gwj=(kb.firstquartile=0,kb.midpoint=1,kb.thirdquartile=2,kb.complete=3,kb);g.A(Ba,$s);g.q=Ba.prototype;g.q.Hv=function(){return!0}; g.q.Mn=function(){return this.xe==2}; g.q.GZ=function(V){return xAT(this,V,Math.max(1E4,this.N/3))}; g.q.ZS=function(V,t,x,u,Z,P,K){var R=this,f=this.L(this)||{};g.WO(f,Z);this.N=f.duration||this.N;this.X=f.isVpaid||this.X;this.L1=f.isYouTube||this.L1;oQ();this.QC=!1;Z=AO8(this,t);pYw(this)===1&&(P=Z);$s.prototype.ZS.call(this,V,t,x,u,f,P,K);this.Jz&&this.Jz.N&&g.EA(this.B,function(b){b.S(R)})}; g.q.Yf=function(V,t,x){$s.prototype.Yf.call(this,V,t,x);Qd(this).update(V,t,this.Ra,x);this.HX=iZ(this.Ra)&&iZ(t);this.Us==-1&&this.yC&&(this.Us=this.G9().N.J);this.Cl.N=0;V=this.gZ();t.isVisible()&&AR(this.Cl,"vs");V&&AR(this.Cl,"vw");W1(t.volume)&&AR(this.Cl,"am");iZ(t)?AR(this.Cl,"a"):AR(this.Cl,"mut");this.fT&&AR(this.Cl,"f");t.S!=-1&&(AR(this.Cl,"bm"),t.S==1&&(AR(this.Cl,"b"),iZ(t)&&AR(this.Cl,"umutb")));iZ(t)&&t.isVisible()&&AR(this.Cl,"avs");this.HX&&V&&AR(this.Cl,"avw");t.KR>0&&AR(this.Cl, "pv");a1(this,this.G9().N.J,!0)&&AR(this.Cl,"gdr");uZ(this.G9().S,1)>=2E3&&AR(this.Cl,"pmx");this.QC&&AR(this.Cl,"tvoff")}; g.q.y3=function(){return new GX}; g.q.G9=function(){return this.lG}; g.q.Oc=function(){return new Rij}; g.q.Rp=function(V,t,x,u){V=$s.prototype.Rp.call(this,V,t,x,u===void 0?-1:u);V.fullscreen=this.fT;V.paused=this.Mn();V.volume=x.volume;W1(V.volume)||(this.Tc++,t=this.Ra,W1(t.volume)&&(V.volume=t.volume));x=x.currentTime;V.mediaTime=x!==void 0&&x>=0?x:-1;return V}; g.q.GL=function(V){return nI(),this.fT?1:$s.prototype.GL.call(this,V)}; g.q.S9=function(){return 1}; g.q.getDuration=function(){return this.N}; g.q.D9=function(){return this.gS?2:GCC(this)?5:this.gZ()?4:3}; g.q.Gq=function(){return this.gk?this.G9().G.N>=2E3?4:3:2}; g.q.wJ=function(V){this.yc&&this.yc.wJ(V)};var d1j=g.JT();ow0.prototype.reset=function(){this.J=[];this.S=[]}; var ca=TI(ow0);g.A(lZ,e3);g.q=lZ.prototype;g.q.getName=function(){return(this.S?this.S:this.J).getName()}; g.q.aR=function(){return(this.S?this.S:this.J).aR()}; g.q.j4=function(){return(this.S?this.S:this.J).j4()}; g.q.init=function(V){var t=!1;(0,g.EA)(this.N,function(x){x.initialize()&&(t=!0)}); t&&(this.W=V,H1(this.J,this));return t}; g.q.dispose=function(){(0,g.EA)(this.N,function(V){V.dispose()}); e3.prototype.dispose.call(this)}; g.q.hd=function(){return oo(this.N,function(V){return V.O3()})}; g.q.ql=function(){return oo(this.N,function(V){return V.O3()})}; g.q.gf=function(V,t,x){return new Mr(V,this.J,t,x)}; g.q.OH=function(V){this.S=V.S};var eil={threshold:[0,.3,.5,.75,1]};g.A(Ha,Mr);g.q=Ha.prototype;g.q.observe=function(){var V=this;this.wk||(this.wk=to());if($5s(298,function(){return dAq(V)}))return!0; this.S.HL("msf");return!1}; g.q.unobserve=function(){if(this.W&&this.element)try{this.W.unobserve(this.element),this.C?(this.C.unobserve(this.element),this.C=null):this.L&&(this.L.disconnect(),this.L=null)}catch(V){}}; g.q.UH=function(){var V=UR(this);V.length>0&&DL(this,V);Mr.prototype.UH.call(this)}; g.q.SQ=function(){}; g.q.Dt=function(){return!1}; g.q.nh=function(){}; g.q.aR=function(){var V={};return Object.assign(this.S.aR(),(V.niot_obs=this.wk,V.niot_cbk=this.Ij,V))}; g.q.getName=function(){return"nio"};g.A(eU,e3);eU.prototype.getName=function(){return"nio"}; eU.prototype.ql=function(){return!nI().S&&this.J.J.N.IntersectionObserver!=null}; eU.prototype.gf=function(V,t,x){return new Ha(V,this.J,t,x)};g.A(dm,lb);dm.prototype.s$=function(){return nI().J}; dm.prototype.O3=function(){var V=JO4();this.C!==V&&(this.J!=this&&V>this.J.C&&(this.J=this,UT(this)),this.C=V);return V==2};C3.prototype.sample=function(){wm(this,yd(),!1)}; C3.prototype.W=function(){var V=yC(),t=to();V?(ub||(Z5=t,g.EA(ca.J,function(x){var u=x.G9();u.dk=I1(u,t,x.xe!=1)})),ub=!0):(this.L=xqT(this,t),ub=!1,XYq=t,g.EA(ca.J,function(x){x.A_&&(x.G9().C=t)})); wm(this,yd(),!V)}; var JR=TI(C3);var ZkK=null,Iy="",Gp=!1;var qI4=K9s().DO,tJ=K9s().rI;var $qj={zF6:"visible",HvS:"audible",PPS:"time",Z78:"timetype"},bkT={visible:function(V){return/^(100|[0-9]{1,2})$/.test(V)}, audible:function(V){return V=="0"||V=="1"}, timetype:function(V){return V=="mtos"||V=="tos"}, time:function(V){return/^(100|[0-9]{1,2})%$/.test(V)||/^([0-9])+ms$/.test(V)}}; fyj.prototype.setTime=function(V,t,x){t=="ms"?(this.N=V,this.W=-1):(this.N=-1,this.W=V);this.G=x===void 0?"tos":x;return this};g.A(P2,va);P2.prototype.getId=function(){return this.L}; P2.prototype.B=function(){return!0}; P2.prototype.J=function(V){var t=V.G9(),x=V.getDuration();return oo(this.C,function(u){if(u.J!=void 0)var Z=kIl(u,t);else b:{switch(u.G){case "mtos":Z=u.S?t.G.N:t.N.J;break b;case "tos":Z=u.S?t.G.J:t.N.J;break b}Z=0}Z==0?u=!1:(u=u.N!=-1?u.N:x!==void 0&&x>0?u.W*x:-1,u=u!=-1&&Z>=u);return u})};g.A(KK,EwK);KK.prototype.J=function(V){var t=new b_9;t.J=p3(V,Hlc);t.S=p3(V,D1r);return t};g.A(qa,va);qa.prototype.J=function(V){return GCC(V)};g.A(Ry,NKL);g.A(fK,va);fK.prototype.J=function(V){return V.G9().gZ()};g.A($x,L3);$x.prototype.J=function(V){var t=g.Cr(this.L,OI(yV().EZ,"ovms"));return!V.gS&&(V.xe!=0||t)};g.A(bh,Ry);bh.prototype.S=function(){return new $x(this.J)}; bh.prototype.N=function(){return[new fK("viewable_impression",this.J),new qa(this.J)]};g.A(Eq,gm);Eq.prototype.W=function(){var V=g.nl("ima.admob.getViewability"),t=OI(this.EZ,"queryid");typeof V==="function"&&t&&V(t)}; Eq.prototype.getName=function(){return"gsv"};g.A(kx,e3);kx.prototype.getName=function(){return"gsv"}; kx.prototype.ql=function(){var V=nI();yV();return V.S&&!1}; kx.prototype.gf=function(V,t,x){return new Eq(this.J,t,x)};g.A(ih,gm);ih.prototype.W=function(){var V=this,t=g.nl("ima.bridge.getNativeViewability"),x=OI(this.EZ,"queryid");typeof t==="function"&&x&&t(x,function(u){g.YE(u)&&V.L++;var Z=u.opt_nativeViewVisibleBounds||{},P=u.opt_nativeViewHidden;V.J=L0T(u.opt_nativeViewBounds||{});var K=V.S.W;K.J=P?e8$.clone():L0T(Z);V.timestamp=u.opt_nativeTime||-1;nI().J=K.J;u=u.opt_nativeVolume;u!==void 0&&(K.volume=u)})}; ih.prototype.getName=function(){return"nis"};g.A(Oq,e3);Oq.prototype.getName=function(){return"nis"}; Oq.prototype.ql=function(){var V=nI();yV();return V.S&&!1}; Oq.prototype.gf=function(V,t,x){return new ih(this.J,t,x)};g.A(sq,lb);g.q=sq.prototype;g.q.O3=function(){return this.S.qn!=null}; g.q.E$=function(){var V={};this.BX&&(V.mraid=this.BX);this.zU&&(V.mlc=1);V.mtop=this.S.pGS;this.L&&(V.mse=this.L);this.Es&&(V.msc=1);V.mcp=this.S.compatibility;return V}; g.q.r8=function(V){var t=g.Xq.apply(1,arguments);try{return this.S.qn[V].apply(this.S.qn,t)}catch(x){VC(538,x,.01,function(u){u.method=V})}}; g.q.initialize=function(){var V=this;if(this.isInitialized)return!this.v7();this.isInitialized=!0;if(this.S.compatibility===2)return this.L="ng",this.HL("w"),!1;if(this.S.compatibility===1)return this.L="mm",this.HL("w"),!1;nI().C=!0;this.N.document.readyState&&this.N.document.readyState=="complete"?Nkh(this):qr(this.N,"load",function(){oQ().setTimeout(wk(292,function(){return Nkh(V)}),100)},292); return!0}; g.q.Um=function(){var V=nI(),t=Iy4(this,"getMaxSize");V.J=new KI(0,t.width,t.height,0)}; g.q.td=function(){nI().W=Iy4(this,"getScreenSize")}; g.q.dispose=function(){AXL(this);lb.prototype.dispose.call(this)};var e2L=new function(V,t){this.key=V;this.defaultValue=t===void 0?!1:t;this.valueType="boolean"}("45378663");g.q=pK.prototype;g.q.QS=function(V){bZ(V,!1);jxh(V)}; g.q.OU=function(){}; g.q.Sq=function(V,t,x,u){var Z=this;V=new Ba(GI,V,x?t:-1,7,this.Kt(),this.TF());V.SK=u;sjh(V.EZ);i5(V.EZ,"queryid",V.SK);V.Fj("");PWz(V,function(){return Z.l1.apply(Z,g.v(g.Xq.apply(0,arguments)))},function(){return Z.ISw.apply(Z,g.v(g.Xq.apply(0,arguments)))}); (u=TI(jU).J)&&t9q(V,u);this.N&&(V.wJ(this.N),this.N=null);V.FB.cJ&&TI(his);return V}; g.q.nQ=function(V){switch(V.j4()){case 0:if(V=TI(jU).J)V=V.J,g.h_(V.G,this),V.X&&this.Hv()&&BzT(V);Sg();break;case 2:hR()}}; g.q.OH=function(){}; g.q.Hv=function(){return!1}; g.q.ISw=function(V,t){V.gS=!0;switch(V.S9()){case 1:XRh(V,t);break;case 2:this.LU(V)}}; g.q.c6X=function(V){var t=V.L(V);t&&(t=t.volume,V.gk=W1(t)&&t>0);LWC(V,0);return TX(V,"start",yC())}; g.q.cW=function(V,t,x){wm(JR,[V],!yC());return this.IH(V,t,x)}; g.q.IH=function(V,t,x){return TX(V,x,yC())}; g.q.mPw=function(V){return B2(V,"firstquartile",1)}; g.q.zyS=function(V){V.yC=!0;return B2(V,"midpoint",2)}; g.q.Fw8=function(V){return B2(V,"thirdquartile",3)}; g.q.wXy=function(V){var t=B2(V,"complete",4);mV(V);return t}; g.q.i16=function(V){V.xe=3;return TX(V,"error",yC())}; g.q.TC=function(V,t,x){t=yC();if(V.Mn()&&!t){var u=V.G9(),Z=to();u.C=Z}wm(JR,[V],!t);V.Mn()&&(V.xe=1);return TX(V,x,t)}; g.q.fSS=function(V,t){t=this.cW(V,t||{},"skip");mV(V);return t}; g.q.WwS=function(V,t){bZ(V,!0);return this.cW(V,t||{},"fullscreen")}; g.q.Nkw=function(V,t){bZ(V,!1);return this.cW(V,t||{},"exitfullscreen")}; g.q.RP=function(V,t,x){t=V.G9();var u=to();t.dk=I1(t,u,V.xe!=1);wm(JR,[V],!yC());V.xe==1&&(V.xe=2);return TX(V,x,yC())}; g.q.Ysy=function(V){wm(JR,[V],!yC());return V.S()}; g.q.Ls=function(V){wm(JR,[V],!yC());this.UY(V);mV(V);return V.S()}; g.q.l1=function(){}; g.q.LU=function(){}; g.q.UY=function(){}; g.q.Em=function(){}; g.q.sf=function(){}; g.q.TF=function(){this.J||(this.J=this.sf());return this.J==null?new FR:new bh(this.J)}; g.q.Kt=function(){return new KK};g.A(mK,va);mK.prototype.J=function(V){return V.Gq()==4};g.A(Yx,L3);Yx.prototype.J=function(V){V=V.Gq();return V==3||V==4};g.A(Q_,Ry);Q_.prototype.S=function(){return new Yx(this.J)}; Q_.prototype.N=function(){return[new mK(this.J)]};g.A(ay,EwK);ay.prototype.J=function(V){V&&(V.e===28&&(V=Object.assign({},V,{avas:3})),V.vs===4||V.vs===5)&&(V=Object.assign({},V,{vs:3}));var t=new b_9;t.J=p3(V,U1t);t.S=p3(V,D1r);return t};YIz.prototype.S=function(){return g.nl(this.J)};g.A(r9,pK);g.q=r9.prototype;g.q.OU=function(V,t){var x=this,u=TI(jU);if(u.J!=null)switch(u.J.getName()){case "nis":var Z=Tk4(this,V,t);break;case "gsv":Z=rX9(this,V,t);break;case "exc":Z=W9w(this,V)}Z||(t.opt_overlayAdElement?Z=void 0:t.opt_adElement&&(Z=Bk4(this,V,t.opt_adElement,t.opt_osdId)));Z&&Z.S9()==1&&(Z.L==g.pX&&(Z.L=function(P){return x.Em(P)}),ayw(this,Z,t)); return Z}; g.q.Em=function(V){V.S=0;V.cX=0;if(V.W=="h"||V.W=="n"){yV();V.DS&&(yV(),LK(this)!="h"&&LK(this));var t=g.nl("ima.common.getVideoMetadata");if(typeof t==="function")try{var x=t(V.SK)}catch(Z){V.S|=4}else V.S|=2}else if(V.W=="b")if(t=g.nl("ytads.bulleit.getVideoMetadata"),typeof t==="function")try{x=t(V.SK)}catch(Z){V.S|=4}else V.S|=2;else if(V.W=="ml")if(t=g.nl("ima.common.getVideoMetadata"),typeof t==="function")try{x=t(V.SK)}catch(Z){V.S|=4}else V.S|=2;else V.S|=1;V.S||(x===void 0?V.S|=8:x===null? V.S|=16:g.YE(x)?V.S|=32:x.errorCode!=null&&(V.cX=x.errorCode,V.S|=64));x==null&&(x={});t=x;V.C=0;for(var u in oCj)t[u]==null&&(V.C|=oCj[u]);mqC(t,"currentTime");mqC(t,"duration");W1(x.volume)&&W1()&&(x.volume*=NaN);return x}; g.q.sf=function(){yV();LK(this)!="h"&&LK(this);var V=ofh(this);return V!=null?new YIz(V):null}; g.q.LU=function(V){!V.J&&V.gS&&g9(this,V,"overlay_unmeasurable_impression")&&(V.J=!0)}; g.q.UY=function(V){V.Sk&&(V.gZ()?g9(this,V,"overlay_viewable_end_of_session_impression"):g9(this,V,"overlay_unviewable_impression"),V.Sk=!1)}; g.q.l1=function(){}; g.q.Sq=function(V,t,x,u){if(dzT()){var Z=OI(yV().EZ,"mm"),P={};(Z=(P[jh.A7]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",P[jh.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",P)[Z])&&jQK(this,Z);this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&VC(1044,Error())}V=pK.prototype.Sq.call(this,V,t,x,u);this.G&&(t=this.B,V.G==null&&(V.G=new KWj),t.J[V.SK]=V.G,V.G.G=d1j);return V}; g.q.QS=function(V){V&&V.S9()==1&&this.G&&delete this.B.J[V.SK];return pK.prototype.QS.call(this,V)}; g.q.TF=function(){this.J||(this.J=this.sf());return this.J==null?new FR:this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Q_(this.J):new bh(this.J)}; g.q.Kt=function(){return this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new ay:new KK}; g.q.wJ=function(V,t,x,u,Z){t=new KI(x,t+u,x+Z,t);(V=n3(ca,V))?V.wJ(t):this.N=t}; var CLt=hX(193,Hk9,void 0,zRC);g.o9("Goog_AdSense_Lidar_sendVastEvent",CLt);var JTz=wk(194,function(V,t){t=t===void 0?{}:t;V=yX8(TI(r9),V,t);return lyC(V)}); g.o9("Goog_AdSense_Lidar_getViewability",JTz);var h8s=hX(195,function(){return jjL()}); g.o9("Goog_AdSense_Lidar_getUrlSignalsArray",h8s);var wwE=wk(196,function(){return JSON.stringify(jjL())}); g.o9("Goog_AdSense_Lidar_getUrlSignalsList",wwE);var eRw=q4s(["//tpc.googlesyndication.com/sodar/",""]);g.A(oy,g.c);oy.prototype.m7=function(){return this.wpc.f()}; oy.prototype.d7=function(V){this.wpc.c(V)}; oy.prototype.wl=function(V){return this.wpc.m(hR0(V))}; oy.prototype.iA=function(V){return this.wpc.mws(hR0(V))}; g.A(Tp,g.c);Tp.prototype.snapshot=function(V){return this.kU.s(Object.assign({},V.jM&&{c:V.jM},V.bW&&{s:V.bW},V.Pm!==void 0&&{p:V.Pm}))}; Tp.prototype.X3=function(V){this.kU.e(V)}; Tp.prototype.Oj=function(){return this.kU.l()};var JRz=(new Date).getTime();var t39="://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(" "),xsq=/\bocr\b/;var ZIw=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var STs=0,Aol=0,Gh1=0;var y_=null,lh=!1,iIl=1,DN=Symbol("SIGNAL"),eg={version:0,mM6:0,VM:!1,wg:void 0,qo:void 0,j9:void 0,z5:0,Z7:void 0,WH:void 0,Lt:!1,EX:!1,kind:"unknown",Sl:function(){return!1}, Ib:function(){}, uo:function(){}, cqD:function(){}};var iK=Symbol("UNSET"),OF=Symbol("COMPUTING"),sF=Symbol("ERRORED");Object.assign({},eg,{value:iK,VM:!0,error:null,US:c2,kind:"computed",Sl:function(V){return V.value===iK||V.value===OF}, Ib:function(V){if(V.value===OF)throw Error("Detected cycle in computations.");var t=V.value;V.value=OF;var x=qTh(V),u=!1;try{var Z=V.K5();jg(null);u=t!==iK&&t!==sF&&Z!==sF&&V.US(t,Z)}catch(P){Z=sF,V.error=P}finally{Rw1(V,x)}u?V.value=t:(V.value=Z,V.version++)}});var EgK=Object.assign({},eg,{US:c2,value:void 0,kind:"signal"});Object.assign({},eg,{value:iK,VM:!0,error:null,US:c2,Sl:function(V){return V.value===iK||V.value===OF}, Ib:function(V){if(V.value===OF)throw Error("Detected cycle in computations.");var t=V.value;V.value=OF;var x=qTh(V);try{var u=V.source();var Z=V.K5(u,t===iK||t===sF?void 0:{source:V.l0X,value:t});V.l0X=u}catch(P){Z=sF,V.error=P}finally{Rw1(V,x)}t!==iK&&Z!==sF&&V.US(t,Z)?V.value=t:(V.value=Z,V.version++)}});Object.assign({},eg,{EX:!0,Lt:!1,uo:function(V){V.schedule!==null&&V.schedule(V.DMk)}, qTw:!1,mqw:function(){}});soK(!0);soK(!1);var NJT=Object.assign({},{attributes:{},handleError:function(V){throw V;}},{u_1:!0, v5P:!0,UI:!1,NlX:!1,R78:!1,FUC:!1});var I5C=Symbol("updater");g.A(CK,g.KX);CK.prototype.dispose=function(){window.removeEventListener("offline",this.N);window.removeEventListener("online",this.N);this.p7.zl(this.G);delete CK.instance}; CK.prototype.U8=function(){return this.J}; CK.prototype.LR=function(){var V=this;this.G=this.p7.dg(function(){var t;return g.Q(function(x){if(x.J==1)return V.J?((t=window.navigator)==null?0:t.onLine)?x.FX(3):g.m(x,d9(V),3):g.m(x,d9(V),3);V.LR();g.pl(x)})},3E4)};V2.prototype.set=function(V,t){t=t===void 0?!0:t;0<=V&&V<52&&Number.isInteger(V)&&this.data[V]!==t&&(this.data[V]=t,this.J=-1)}; V2.prototype.get=function(V){return!!this.data[V]};var u6;g.hT(g.Kb,g.c);g.q=g.Kb.prototype;g.q.start=function(){this.stop();this.W=!1;var V=M3L(this),t=ggz(this);V&&!t&&this.S.mozRequestAnimationFrame?(this.J=g.h$(this.S,"MozBeforePaint",this.N),this.S.mozRequestAnimationFrame(null),this.W=!0):this.J=V&&t?V.call(this.S,this.N):this.S.setTimeout(eaj(this.N),20)}; g.q.stop=function(){if(this.isActive()){var V=M3L(this),t=ggz(this);V&&!t&&this.S.mozRequestAnimationFrame?uA(this.J):V&&t?t.call(this.S,this.J):this.S.clearTimeout(this.J)}this.J=null}; g.q.isActive=function(){return this.J!=null}; g.q.G$=function(){this.W&&this.J&&uA(this.J);this.J=null;this.B.call(this.G,g.JT())}; g.q.NP=function(){this.stop();g.Kb.Sd.NP.call(this)};g.hT(g.qK,g.c);g.q=g.qK.prototype;g.q.l$=0;g.q.NP=function(){g.qK.Sd.NP.call(this);this.stop();delete this.J;delete this.S}; g.q.start=function(V){this.stop();this.l$=g.BM(this.N,V!==void 0?V:this.k_)}; g.q.stop=function(){this.isActive()&&g.Ww.clearTimeout(this.l$);this.l$=0}; g.q.isActive=function(){return this.l$!=0}; g.q.us=function(){this.l$=0;this.J&&this.J.call(this.S)};g.b6.prototype[Symbol.iterator]=function(){return this}; g.b6.prototype.next=function(){var V=this.J.next();return{value:V.done?void 0:this.S.call(void 0,V.value),done:V.done}};g.hT(g.S0,g.KX);g.q=g.S0.prototype;g.q.isPlaying=function(){return this.J==1}; g.q.isPaused=function(){return this.J==-1}; g.q.vK=function(){this.TA("begin")}; g.q.YH=function(){this.TA("end")}; g.q.onFinish=function(){this.TA("finish")}; g.q.onStop=function(){this.TA("stop")}; g.q.TA=function(V){this.dispatchEvent(V)};var ViY=Aj(function(){var V=g.uc("DIV"),t=g.wZ?"-webkit":S3?"-moz":null,x="transition:opacity 1s linear;";t&&(x+=t+"-transition:opacity 1s linear;");t=xPC({style:x});if(V.nodeType===1&&/^(script|style)$/i.test(V.tagName))throw Error("");V.innerHTML=cQ(t);return g.Gh(V.firstChild,"transition")!=""});g.hT(G6,g.S0);g.q=G6.prototype;g.q.play=function(){if(this.isPlaying())return!1;this.vK();this.TA("play");this.startTime=g.JT();this.J=1;if(ViY())return g.Ao(this.S,this.B),this.N=g.BM(this.vDS,void 0,this),!0;this.JU(!1);return!1}; g.q.vDS=function(){g.ao(this.S);BJl(this.S,this.L);g.Ao(this.S,this.W);this.N=g.BM((0,g.ej)(this.JU,this,!1),this.G*1E3)}; g.q.stop=function(){this.isPlaying()&&this.JU(!0)}; g.q.JU=function(V){g.Ao(this.S,"transition","");g.Ww.clearTimeout(this.N);g.Ao(this.S,this.W);this.endTime=g.JT();this.J=0;if(V)this.onStop();else this.onFinish();this.YH()}; g.q.NP=function(){this.stop();G6.Sd.NP.call(this)}; g.q.pause=function(){};var YTj={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};IO("Element","attributes")||IO("Node","attributes");IO("Element","innerHTML")||IO("HTMLElement","innerHTML");IO("Node","nodeName");IO("Node","nodeType");IO("Node","parentNode");IO("Node","childNodes");IO("HTMLElement","style")||IO("Element","style");IO("HTMLStyleElement","sheet");var ogC=a5s("getPropertyValue"),ngq=a5s("setProperty");IO("Element","namespaceURI")||IO("Node","namespaceURI");var WgC={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var l5j,G8q,joT,yol,HIh;l5j=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]");G8q=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.tiE=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.Lb=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]");joT=/^http:\/\/.*/;g.xts=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");yol=/\s+/;HIh=/[\d\u06f0-\u06f9]/;MK.prototype.JK=function(){return new gy(this.S())}; MK.prototype[Symbol.iterator]=function(){return new Xa(this.S())}; MK.prototype.J=function(){return new Xa(this.S())}; g.A(gy,g.ER);gy.prototype.next=function(){return this.S.next()}; gy.prototype[Symbol.iterator]=function(){return new Xa(this.S)}; gy.prototype.J=function(){return new Xa(this.S)}; g.A(Xa,MK);Xa.prototype.next=function(){return this.N.next()};Bk.prototype.clone=function(){return new Bk(this.J,this.L,this.N,this.G,this.W,this.B,this.S,this.C)}; Bk.prototype.t9=function(V){return this.J==V.J&&this.L==V.L&&this.N==V.N&&this.G==V.G&&this.W==V.W&&this.B==V.B&&this.S==V.S&&this.C==V.C};Yy.prototype.clone=function(){return new Yy(this.start,this.end)}; Yy.prototype.getLength=function(){return this.end-this.start};(function(){if(Bcz){var V=/Windows NT ([0-9.]+)/;return(V=V.exec(g.zY()))?V[1]:"0"}return Ve?(V=/1[0|1][_.][0-9_.]+/,(V=V.exec(g.zY()))?V[0].replace(/_/g,"."):"10"):g.RV?(V=/Android\s+([^\);]+)(\)|;)/,(V=V.exec(g.zY()))?V[1]:""):YW9||Qq8||aMj?(V=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(V=V.exec(g.zY()))?V[1].replace(/_/g,"."):""):""})();var Ds0=function(){if(g.yX)return Q2(/Firefox\/([0-9.]+)/);if(g.vk||g.u0||g.ge)return fEh;if(g.oa){if(lz()||HU()){var V=Q2(/CriOS\/([0-9.]+)/);if(V)return V}return Q2(/Chrome\/([0-9.]+)/)}if(g.XM&&!lz())return Q2(/Version\/([0-9.]+)/);if(P4||Ky){if(V=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.zY()))return V[1]+"."+V[2]}else if(g.Xy)return(V=Q2(/Android\s+([0-9.]+)/))?V:Q2(/Version\/([0-9.]+)/);return""}();g.hT(g.ry,g.c);g.q=g.ry.prototype;g.q.subscribe=function(V,t,x){var u=this.S[V];u||(u=this.S[V]=[]);var Z=this.B;this.J[Z]=V;this.J[Z+1]=t;this.J[Z+2]=x;this.B=Z+3;u.push(Z);return Z}; g.q.unsubscribe=function(V,t,x){if(V=this.S[V]){var u=this.J;if(V=V.find(function(Z){return u[Z+1]==t&&u[Z+2]==x}))return this.P0(V)}return!1}; g.q.P0=function(V){var t=this.J[V];if(t){var x=this.S[t];this.W!=0?(this.N.push(V),this.J[V+1]=function(){}):(x&&g.h_(x,V),delete this.J[V],delete this.J[V+1],delete this.J[V+2])}return!!t}; g.q.publish=function(V,t){var x=this.S[V];if(x){var u=Array(arguments.length-1),Z=arguments.length,P;for(P=1;P0&&this.W==0)for(;x=this.N.pop();)this.P0(x)}}return P!=0}return!1}; g.q.clear=function(V){if(V){var t=this.S[V];t&&(t.forEach(this.P0,this),delete this.S[V])}else this.J.length=0,this.S={}}; g.q.NP=function(){g.ry.Sd.NP.call(this);this.clear();this.N.length=0};g.T6.prototype.set=function(V,t){t===void 0?this.J.remove(V):this.J.set(V,g.TB(t))}; g.T6.prototype.get=function(V){try{var t=this.J.get(V)}catch(x){return}if(t!==null)try{return JSON.parse(t)}catch(x){throw"Storage: Invalid value was encountered";}}; g.T6.prototype.remove=function(V){this.J.remove(V)};g.hT(Wk,g.T6);Wk.prototype.set=function(V,t){Wk.Sd.set.call(this,V,Cbl(t))}; Wk.prototype.S=function(V){V=Wk.Sd.get.call(this,V);if(V===void 0||V instanceof Object)return V;throw"Storage: Invalid value was encountered";}; Wk.prototype.get=function(V){if(V=this.S(V)){if(V=V.data,V===void 0)throw"Storage: Invalid value was encountered";}else V=void 0;return V};g.hT(oO,Wk);oO.prototype.set=function(V,t,x){if(t=Cbl(t)){if(x){if(x=x.length)return g.$b;var Z=x.key(t++);if(V)return g.ks(Z);Z=x.getItem(Z);if(typeof Z!=="string")throw"Storage mechanism: Invalid value was encountered";return g.ks(Z)}; return u}; g.q.clear=function(){j0(this);this.J.clear()}; g.q.key=function(V){j0(this);return this.J.key(V)};g.hT(l6,y2);g.hT(w1h,y2);g.hT(Hk,ck);Hk.prototype.set=function(V,t){this.S.set(this.J+V,t)}; Hk.prototype.get=function(V){return this.S.get(this.J+V)}; Hk.prototype.remove=function(V){this.S.remove(this.J+V)}; Hk.prototype.JK=function(V){var t=this.S[Symbol.iterator](),x=this,u=new g.ER;u.next=function(){var Z=t.next();if(Z.done)return Z;for(Z=Z.value;Z.slice(0,x.J.length)!=x.J;){Z=t.next();if(Z.done)return Z;Z=Z.value}return g.ks(V?Z.slice(x.J.length):x.S.get(Z))}; return u};Dr.prototype.getValue=function(){return this.S}; Dr.prototype.clone=function(){return new Dr(this.J,this.S)};g.q=e0.prototype;g.q.s8=function(V,t){var x=this.J;x.push(new Dr(V,t));V=x.length-1;t=this.J;for(x=t[V];V>0;){var u=V-1>>1;if(t[u].J>x.J)t[V]=t[u],V=u;else break}t[V]=x}; g.q.remove=function(){var V=this.J,t=V.length,x=V[0];if(!(t<=0)){if(t==1)V.length=0;else{V[0]=V.pop();V=0;t=this.J;for(var u=t.length,Z=t[V];V>1;){var P=V*2+1,K=V*2+2;P=KZ.J)break;t[V]=t[P];V=P}t[V]=Z}return x.getValue()}}; g.q.B2=function(){for(var V=this.J,t=[],x=V.length,u=0;u>>16&65535|0;for(var P;x!==0;){P=x>2E3?2E3:x;x-=P;do Z=Z+t[u++]|0,V=V+Z|0;while(--P);Z%=65521;V%=65521}return Z|V<<16|0};for(var vp={},NO,q$j=[],pa=0;pa<256;pa++){NO=pa;for(var Rsz=0;Rsz<8;Rsz++)NO=NO&1?3988292384^NO>>>1:NO>>>1;q$j[pa]=NO}vp=function(V,t,x,u){x=u+x;for(V^=-1;u>>8^q$j[(V^t[u])&255];return V^-1};var k6={};k6={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 K0=[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],f0=[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],IL1=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],b38=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ng=Array(576);hm(Ng);var p0=Array(60);hm(p0);var Ri=Array(512);hm(Ri);var Pp=Array(256);hm(Pp);var qg=Array(29);hm(qg);var $6=Array(30);hm($6);var AR8,SRl,GXj,pa8=!1;var X6;X6=[new gI(0,0,0,0,function(V,t){var x=65535;for(x>V.DM-5&&(x=V.DM-5);;){if(V.Oh<=1){L0(V);if(V.Oh===0&&t===0)return 1;if(V.Oh===0)break}V.YX+=V.Oh;V.Oh=0;var u=V.Fb+x;if(V.YX===0||V.YX>=u)if(V.Oh=V.YX-u,V.YX=u,At(V,!1),V.rL.nR===0)return 1;if(V.YX-V.Fb>=V.YS-262&&(At(V,!1),V.rL.nR===0))return 1}V.s8=0;if(t===4)return At(V,!0),V.rL.nR===0?3:4;V.YX>V.Fb&&At(V,!1);return 1}), new gI(4,4,8,4,F6),new gI(4,5,16,8,F6),new gI(4,6,32,32,F6),new gI(4,4,16,16,Mg),new gI(8,16,32,32,Mg),new gI(8,16,128,128,Mg),new gI(8,32,128,256,Mg),new gI(32,128,258,1024,Mg),new gI(32,258,258,4096,Mg)];var Nml={};Nml=function(){this.input=null;this.bR=this.En=this.Gj=0;this.output=null;this.QE=this.nR=this.gm=0;this.msg="";this.state=null;this.jQ=2;this.E1=0};var vs0=Object.prototype.toString; z0.prototype.push=function(V,t){var x=this.rL,u=this.options.chunkSize;if(this.ended)return!1;var Z=t===~~t?t:t===!0?4:0;typeof V==="string"?x.input=VUh(V):vs0.call(V)==="[object ArrayBuffer]"?x.input=new Uint8Array(V):x.input=V;x.Gj=0;x.En=x.input.length;do{x.nR===0&&(x.output=new Jm.a$(u),x.gm=0,x.nR=u);V=s1s(x,Z);if(V!==1&&V!==0)return this.YH(V),this.ended=!0,!1;if(x.nR===0||x.En===0&&(Z===4||Z===2))if(this.options.e9==="string"){var P=Jm.LV(x.output,x.gm);t=P;P=P.length;if(P<65537&&(t.subarray&& KEF||!t.subarray))t=String.fromCharCode.apply(null,Jm.LV(t,P));else{for(var K="",R=0;R0||x.nR===0)&&V!==1);if(Z===4)return(x=this.rL)&&x.state?(u=x.state.status,u!==42&&u!==69&&u!==73&&u!==91&&u!==103&&u!==113&&u!==666?V=it(x,-2):(x.state=null,V=u===113?it(x,-3):0)):V=-2,this.YH(V),this.ended=!0,V===0;Z===2&&(this.YH(0),x.nR=0);return!0}; z0.prototype.YH=function(V){V===0&&(this.result=this.options.e9==="string"?this.chunks.join(""):Jm.JS(this.chunks));this.chunks=[];this.err=V;this.msg=this.rL.msg};var mz="@@redux/INIT"+Bp(),z9q="@@redux/REPLACE"+Bp();var Bm0=typeof Symbol==="function"&&Symbol.observable||"@@observable";var fEE=[0,kKz,-3,Ka];g.A(ai,Wx);ai.prototype.getType=function(){return iF(this,11)};var DvT=function(){var V=[0,Ols,il_,xb,kKz,xb,-1,Ka,kKz,Ka,-1,Ols,Ka,il_,uK,fEE,xb,-1,Ka];return function(t,x){if(tB.length){var u=tB.pop();vzL(u,x);u.J.init(t,void 0,void 0,x);t=u}else t=new Bx(t,x);try{var Z=new ai,P=Z.Ss;R2(V)(P,t);var K=Z}finally{t.free()}return K}}();var aLh=-2106119134;var D3z=new g.rI("adInfoDialogEndpoint");var E$8=new g.rI("adPingingEndpoint");var Ym9=new g.rI("crossDeviceProgressCommand");var Kd=new g.rI("actionCompanionAdRenderer");var NF=new g.rI("adActionInterstitialRenderer");var $ts=new g.rI("adDurationRemainingRenderer");var Wd=new g.rI("adHoverTextButtonRenderer");var Hqq=new g.rI("adInfoDialogRenderer");var Aa=new g.rI("adMessageRenderer");var ou=new g.rI("adPreviewRenderer");var Ru=new g.rI("adsEngagementPanelRenderer");var PM0=new g.rI("dismissablePanelTextPortraitImageRenderer");var unj=new g.rI("adsEngagementPanelSectionListViewModel");var brs=new g.rI("flyoutCtaRenderer");var q6=new g.rI("imageCompanionAdRenderer");var O3=new g.rI("instreamAdPlayerOverlayRenderer");var cY1=new g.rI("instreamSurveyAdBackgroundImageRenderer");var Ts=new g.rI("instreamSurveyAdPlayerOverlayRenderer");var M6=new g.rI("instreamSurveyAdRenderer"),r4=new g.rI("instreamSurveyAdSingleSelectQuestionRenderer"),au=new g.rI("instreamSurveyAdMultiSelectQuestionRenderer"),AB=new g.rI("instreamSurveyAdAnswerRenderer"),EjU=new g.rI("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var Ld=new g.rI("instreamVideoAdRenderer");var kYn=new g.rI("textOverlayAdContentRenderer"),iri=new g.rI("enhancedTextOverlayAdContentRenderer"),Orz=new g.rI("imageOverlayAdContentRenderer");var s3=new g.rI("playerOverlayLayoutRenderer");var p5=new g.rI("videoInterstitialButtonedCenteredLayoutRenderer");var $jw=new g.rI("aboveFeedAdLayoutRenderer");var bSh=new g.rI("belowPlayerAdLayoutRenderer");var fvT=new g.rI("inPlayerAdLayoutRenderer");var zs=new g.rI("playerBytesAdLayoutRenderer");var Qj=new g.rI("playerUnderlayAdLayoutRenderer");var Fi=new g.rI("adIntroRenderer");var Iu=new g.rI("playerBytesSequentialLayoutRenderer");var jns=new g.rI("slidingTextPlayerOverlayRenderer");var g4=new g.rI("surveyTextInterstitialRenderer");var scn=new g.rI("simpleAdBadgeRenderer");var b_=new g.rI("skipAdRenderer"),N7E=new g.rI("skipButtonRenderer");var jl=new g.rI("adSlotRenderer");var Bd=new g.rI("squeezebackPlayerSidePanelRenderer");var pUn=new g.rI("timedPieCountdownRenderer");var lE=new g.rI("adAvatarViewModel");var HH=new g.rI("adBadgeViewModel");var UN=new g.rI("adButtonViewModel");var A_7=new g.rI("adDetailsLineViewModel");var S$F=new g.rI("adDisclosureBannerViewModel");var GYE=new g.rI("adPodIndexViewModel");var IEs=new g.rI("imageBackgroundViewModel");var vj$=new g.rI("adGridCardCollectionViewModel");var LE7=new g.rI("adGridCardTextViewModel");var FEU=new g.rI("adPreviewViewModel");var Mit=new g.rI("playerAdAvatarLockupCardButtonedViewModel");var gjE=new g.rI("skipAdButtonViewModel");var XUE=new g.rI("skipAdViewModel");var zsE=new g.rI("timedPieCountdownViewModel");var B7Y=new g.rI("visitAdvertiserLinkViewModel");var fd=new g.rI("bannerImageLayoutViewModel");var $G=new g.rI("topBannerImageTextIconButtonedLayoutViewModel");var bn=new g.rI("adsEngagementPanelLayoutViewModel");var YG=new g.rI("displayUnderlayTextGridCardsLayoutViewModel");g.Mm=new g.rI("browseEndpoint");var mtz=new g.rI("confirmDialogEndpoint");var Oyw=new g.rI("rawColdConfigGroup");var iy1=new g.rI("rawHotConfigGroup");g.Mh=new g.rI("commandExecutorCommand");g.A(WVs,Wx);var Duq={nGw:0,YMD:1,GtP:32,PiS:61,aOS:67,xBX:103,dBX:86,BIC:42,TIX:60,c8w:62,V$C:73,bdC:76,KVC:88,snj:90,CiU:99,uej:98,y8s:100,A88:102,DBP:41,r81:69,jnk:70,M$X:71,IMw:2,w2w:27,ANDROID:3,LXk:54,bvC:14,aBw:91,AYD:55,VMD:24,PpS:20,ZvX:18,xfw:21,KXX:104,Dfw:30,MMk:29,o_X:28,id1:101,pLC:34,Cpy:36,dfw:38,IOS:5,eF8:15,zP8:92,RP6:40,SVS:25,Ies:17,wpS:19,ikX:64,NyS:66,m0y:26,feU:22,ch6:33,FMs:68,U0X:35,WMX:53,YVw:37,Jhk:39,ruP:7,jAw:57,Mz6:43,pxP:59,oGs:93,jaS:74,H7C:75,O7S:85,qtU:65,Xx1:80,kAk:8,CPs:10, gGk:58,QA8:63,lPj:72,rYk:23,HdD:11,OdS:13,tKy:12,Dny:16,vFy:56,Zdk:31,ReX:77,Gl1:84,LVX:87,LLw:89,Tiw:94,MyD:95};g.A(T0,Wx);T0.prototype.SG=function(){return kV(this,3)}; T0.prototype.Y1=function(){return kV(this,5)}; T0.prototype.dl=function(V){return sL(this,5,V)};g.A(Wp,Wx);g.A(osT,Wx);g.A(oi,Wx);g.q=oi.prototype;g.q.getDeviceId=function(){return kV(this,6)}; g.q.D_=function(V){var t=U9(this,9,bN,3,void 0,!0);yp(t,V);return t[V]}; g.q.getPlayerType=function(){return iF(this,36)}; g.q.setHomeGroupInfo=function(V){return qP(this,osT,81,V)}; g.q.clearLocationPlayabilityToken=function(){return oL(this,89)};g.A(n0,Wx);n0.prototype.getValue=function(){return kV(this,xV(this,ED0)===2?2:-1)}; var ED0=[2,3,4,5,6];g.A(cp,Wx);cp.prototype.setTrackingParams=function(V){return oL(this,1,XUh(V,!1))};g.A(yb,Wx);g.A(lt,Wx);lt.prototype.D_=function(V){var t=U9(this,5,E9,3,void 0,!0);yp(t,V);return t[V]};g.A(Hp,Wx);Hp.prototype.getToken=function(){return $V(this,2)}; Hp.prototype.setToken=function(V){return sL(this,2,V)};g.A(UO,Wx);UO.prototype.setSafetyMode=function(V){return pP(this,5,V)};g.A(D_,Wx);D_.prototype.LF=function(V){return qP(this,oi,1,V)};var cd=new g.rI("thumbnailLandscapePortraitRenderer");g.Y$c=new g.rI("changeEngagementPanelVisibilityAction");var NDh=new g.rI("continuationCommand");g.QcY=new g.rI("openPopupAction");g.SZ=new g.rI("webCommandMetadata");var I2w=new g.rI("metadataBadgeRenderer");var s8s=new g.rI("signalServiceEndpoint");var UH=new g.rI("innertubeCommand");var Zg8=new g.rI("loggingDirectives");var LKj={Q4k:"EMBEDDED_PLAYER_MODE_UNKNOWN",lDD:"EMBEDDED_PLAYER_MODE_DEFAULT",k96:"EMBEDDED_PLAYER_MODE_PFP",Xi6:"EMBEDDED_PLAYER_MODE_PFL"};var d6s=new g.rI("channelThumbnailEndpoint");var eBl=new g.rI("embeddedPlayerErrorMessageRenderer");var l20=new g.rI("embeddedPlayerOverlayVideoDetailsRenderer"),Cn1=new g.rI("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),JZs=new g.rI("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var AZw=new g.rI("embedsInfoPanelRenderer");var aE$=new g.rI("feedbackEndpoint");var r_n=new g.rI("callToActionButtonViewModel");var T7Y=new g.rI("interactionLoggingCommandMetadata");var SOC={EFU:"WEB_DISPLAY_MODE_UNKNOWN",FV8:"WEB_DISPLAY_MODE_BROWSER",t$U:"WEB_DISPLAY_MODE_MINIMAL_UI",hvk:"WEB_DISPLAY_MODE_STANDALONE",UBU:"WEB_DISPLAY_MODE_FULLSCREEN"};g.A(C0,Wx);C0.prototype.getPlayerType=function(){return iF(this,7)}; C0.prototype.Pr=function(){return kV(this,19)}; C0.prototype.setVideoId=function(V){return sL(this,19,V)};g.A(Jt,Wx);g.A(ht,Wx);g.A(wI,Wx); var WEt=[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];var oj$=new g.rI("loggingContext");g.A(VA,Wx);g.A(t6,Wx);t6.prototype.Pr=function(){return $V(this,xV(this,Al)===1?1:-1)}; t6.prototype.setVideoId=function(V){return VG(this,1,Al,IL(V))}; t6.prototype.getPlaylistId=function(){return $V(this,xV(this,Al)===2?2:-1)}; var Al=[1,2];g.A(nsK,Wx);var tM=new g.rI("changeKeyedMarkersVisibilityCommand");var njE=new g.rI("changeMarkersVisibilityCommand");var Lb4=new g.rI("loadMarkersCommand");var c_U=new g.rI("suggestedActionDataViewModel");var FNL=new g.rI("timelyActionViewModel");var LN9=new g.rI("timelyActionsOverlayViewModel");var XH4=new g.rI("productListItemRenderer");var y_7=new g.rI("shoppingOverlayRenderer");var HdL=new g.rI("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var jc_=new g.rI("adFeedbackEndpoint");var lEY=new g.rI("menuEndpoint");var jX9=new g.rI("phoneDialerEndpoint");var cQq=new g.rI("sendSmsEndpoint");var juh=new g.rI("copyTextEndpoint");var Hrn=new g.rI("shareEndpoint"),Uts=new g.rI("shareEntityEndpoint"),Dtc=new g.rI("shareEntityServiceEndpoint"),esn=new g.rI("webPlayerShareEntityServiceEndpoint");g.Uv=new g.rI("urlEndpoint");g.w8=new g.rI("watchEndpoint");var dtE=new g.rI("watchPlaylistEndpoint");g.CzU=new g.rI("offlineOrchestrationActionCommand");var OjT=new g.rI("compositeVideoOverlayRenderer");var J_j=new g.rI("miniplayerRenderer");var cZh=new g.rI("paidContentOverlayRenderer");var hs$=new g.rI("playerMutedAutoplayOverlayRenderer"),wUs=new g.rI("playerMutedAutoplayEndScreenRenderer");var a9s=new g.rI("unserializedPlayerResponse"),VGF=new g.rI("unserializedPlayerResponse");var tGr=new g.rI("playlistEditEndpoint");var GL;g.nd=new g.rI("buttonRenderer");GL=new g.rI("toggleButtonRenderer");var xj0=new g.rI("counterfactualRenderer");var xYY=new g.rI("resolveUrlCommandMetadata");var ukF=new g.rI("modifyChannelNotificationPreferenceEndpoint");var b6w=new g.rI("pingingEndpoint");var ZRz=new g.rI("unsubscribeEndpoint");g.g3=new g.rI("subscribeButtonRenderer");var PoF=new g.rI("subscribeEndpoint");var fn0=new g.rI("buttonViewModel");var ZSK=new g.rI("qrCodeRenderer");var duL={KMs:"LIVING_ROOM_APP_MODE_UNSPECIFIED",ZkU:"LIVING_ROOM_APP_MODE_MAIN",P98:"LIVING_ROOM_APP_MODE_KIDS",d0U:"LIVING_ROOM_APP_MODE_MUSIC",x0j:"LIVING_ROOM_APP_MODE_UNPLUGGED",Vy8:"LIVING_ROOM_APP_MODE_GAMING"};var su9=new g.rI("autoplaySwitchButtonRenderer");var M0,sAz,yrq,gbj;M0=new g.rI("decoratedPlayerBarRenderer");sAz=new g.rI("chapteredPlayerBarRenderer");yrq=new g.rI("multiMarkersPlayerBarRenderer");gbj=new g.rI("chapterRenderer");g.SFz=new g.rI("markerRenderer");var KTt=new g.rI("decoratedPlayheadRenderer");var Sp0=new g.rI("desktopOverlayConfigRenderer");var KvL=new g.rI("engagementPanelSectionListRenderer");var pd4=new g.rI("gatedActionsOverlayViewModel");var LM4=new g.rI("heatMarkerRenderer");var vbT=new g.rI("heatmapRenderer");var vGj=new g.rI("watchToWatchTransitionRenderer");var U69=new g.rI("playlistPanelRenderer");var qAr=new g.rI("productUpsellSuggestedActionViewModel");var Rpi=new g.rI("suggestedActionTimeRangeTrigger"),fTr=new g.rI("suggestedActionsRenderer"),$Yn=new g.rI("suggestedActionRenderer");var FM4=new g.rI("timedMarkerDecorationRenderer");var Z59=new g.rI("cipher");var rrw=new g.rI("playerVars");var bR$=new g.rI("playerVars");var IA=g.Ww.window,Ez_,ka_,xc=(IA==null?void 0:(Ez_=IA.yt)==null?void 0:Ez_.config_)||(IA==null?void 0:(ka_=IA.ytcfg)==null?void 0:ka_.data_)||{};g.o9("yt.config_",xc);var KJ=[];var CZq=/^[\w.]*$/,Ur4={q:!0,search_query:!0},H39=String($c);var SL=new function(){var V=window.document;this.J=window;this.S=V}; g.o9("yt.ads_.signals_.getAdSignalsString",function(V){return b$(IW(V))});g.JT();var h9C="XMLHttpRequest"in g.Ww?function(){return new XMLHttpRequest}:null;var iRU="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.v(iRU);var xaT={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"},uOC="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.v(iRU)),bKw=!1,Vg1=ZKw,Rz4=aW;g.A(Wc,s$);cc.prototype.then=function(V,t,x){return this.J?this.J.then(V,t,x):this.N===1&&V?(V=V.call(x,this.S))&&typeof V.then==="function"?V:jL(V):this.N===2&&t?(V=t.call(x,this.S))&&typeof V.then==="function"?V:yA(V):this}; cc.prototype.getValue=function(){return this.S}; cc.prototype.$goog_Thenable=!0;var l$=!1;var xp=P4||Ky;var INh=/^([0-9\.]+):([0-9\.]+)$/;g.A(GF,s$);GF.prototype.name="BiscottiError";g.A(Se,s$);Se.prototype.name="BiscottiMissingError";var Mg8={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},IV=null;var XD1=q4s(["data-"]),rJK={};var ORi=0,v4=g.wZ?"webkit":S3?"moz":g.vk?"ms":g.ge?"o":"",sd_=g.nl("ytDomDomGetNextId")||function(){return++ORi}; g.o9("ytDomDomGetNextId",sd_);var nx1={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};zF.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; zF.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; zF.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var B4=g.Ww.ytEventsEventsListeners||{};g.o9("ytEventsEventsListeners",B4);var jyK=g.Ww.ytEventsEventsCounter||{count:0};g.o9("ytEventsEventsCounter",jyK);var Das=Aj(function(){var V=!1;try{var t=Object.defineProperty({},"passive",{get:function(){V=!0}}); window.addEventListener("test",null,t)}catch(x){}return V}),lNL=Aj(function(){var V=!1; try{var t=Object.defineProperty({},"capture",{get:function(){V=!0}}); window.addEventListener("test",null,t)}catch(x){}return V});var vG;vG=window;g.Tu=vG.ytcsi&&vG.ytcsi.now?vG.ytcsi.now:vG.performance&&vG.performance.timing&&vG.performance.now&&vG.performance.timing.navigationStart?function(){return vG.performance.timing.navigationStart+vG.performance.now()}:function(){return(new Date).getTime()};g.hT(ri,g.c);ri.prototype.X=function(V){V.J===void 0&&cJw(V);var t=V.J;V.S===void 0&&cJw(V);this.J=new g.N8(t,V.S)}; ri.prototype.jc=function(){return this.J||new g.N8}; ri.prototype.Ij=function(){if(this.J){var V=(0,g.Tu)();if(this.W!=0){var t=this.B,x=this.J,u=t.x-x.x;t=t.y-x.y;u=Math.sqrt(u*u+t*t)/(V-this.W);this.S[this.N]=Math.abs((u-this.G)/this.G)>.5?1:0;for(x=t=0;x<4;x++)t+=this.S[x]||0;t>=3&&this.L();this.G=u}this.W=V;this.B=this.J;this.N=(this.N+1)%4}}; ri.prototype.NP=function(){g.XV(this.C);g.YD(this.wk)};g.A(TF,g.c);TF.prototype.Z=function(V,t,x,u,Z){x=g.RW((0,g.ej)(x,u||this.Tc));x={target:V,name:t,callback:x};var P;Z&&Das()&&(P={passive:!0});V.addEventListener(t,x.callback,P);this.L.push(x);return x}; TF.prototype.vk=function(V){for(var t=0;t=n.f7)||L.J.version>=U||L.J.objectStoreNames.contains(r)||z.push(r)}f=z;if(f.length===0){I.FX(5);break}b=Object.keys(x.options.WY); E=R.objectStoreNames();if(x.Gx.options.version+1)throw O.close(),x.N=!1,arL(x,N);return I.return(O);case 8:throw t(), k instanceof Error&&!g.Bc("ytidb_async_stack_killswitch")&&(k.stack=k.stack+"\n"+K.substring(K.indexOf("\n")+1)),zu(k,x.name,"",(p=x.options.version)!=null?p:-1);}})} function t(){x.J===u&&(x.J=void 0)} var x=this;if(!this.N)throw arL(this);if(this.J)return this.J;var u,Z={blocking:function(P){P.close()}, closed:t,Y8w:t,upgrade:this.options.upgrade};return this.J=u=V()};var V7=new hv("YtIdbMeta",{WY:{databases:{f7:1}},upgrade:function(V,t){t(1)&&g.o4(V,"databases",{keyPath:"actualName"})}});var Po,Z$=new function(){}(new function(){});new g.v$;g.A(R8,hv);R8.prototype.S=function(V,t,x){x=x===void 0?{}:x;return(this.options.shared?lrC:jOT)(V,t,Object.assign({},x))}; R8.prototype.delete=function(V){V=V===void 0?{}:V;return(this.options.shared?eJq:Hbh)(this.name,V)};var FTr={},C6j=g.fg("ytGcfConfig",{WY:(FTr.coldConfigStore={f7:1},FTr.hotConfigStore={f7:1},FTr),shared:!1,upgrade:function(V,t){t(1)&&(g.Hr(g.o4(V,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Hr(g.o4(V,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.A(b0,g.c);b0.prototype.NP=function(){for(var V=g.G(this.S),t=V.next();!t.done;t=V.next()){var x=this.J;t=x.indexOf(t.value);t>=0&&x.splice(t,1)}this.S.length=0;g.c.prototype.NP.call(this)};pg.prototype.dl=function(V){this.hotHashData=V;g.o9("yt.gcf.config.hotHashData",this.hotHashData||null)};var MGE=typeof TextEncoder!=="undefined"?new TextEncoder:null,o64=MGE?function(V){return MGE.encode(V)}:function(V){V=g.Si(V); for(var t=new Uint8Array(V.length),x=0;x=t?!1:!0}; g.q.Pz=function(){var V=this;if(!Ho(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.aB.TZ("QUEUED",this.j3).then(function(t){t&&!V.b7(t,V.WE)?V.p7.dg(function(){return g.Q(function(x){if(x.J==1)return t.id===void 0?x.FX(2):g.m(x,V.aB.yv(t.id,V.j3),2);V.Pz();g.pl(x)})}):V.hB.U8()&&V.WW()})};var eI;var p4T={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};var Xen={},uVs=g.fg("ServiceWorkerLogsDatabase",{WY:(Xen.SWHealthLog={f7:1},Xen),shared:!0,upgrade:function(V,t){t(1)&&g.Hr(g.o4(V,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var J7={},fcl=0;var h7;Vy.prototype.requestComplete=function(V,t){t&&(this.S=!0);V=this.removeParams(V);this.J.get(V)||this.J.set(V,t)}; Vy.prototype.isEndpointCFR=function(V){V=this.removeParams(V);return(V=this.J.get(V))?!1:V===!1&&this.S?!0:null}; Vy.prototype.removeParams=function(V){return V.split("?")[0]}; Vy.prototype.removeParams=Vy.prototype.removeParams;Vy.prototype.isEndpointCFR=Vy.prototype.isEndpointCFR;Vy.prototype.requestComplete=Vy.prototype.requestComplete;Vy.getInstance=tC;g.A(xr,g.KX);g.q=xr.prototype;g.q.U8=function(){return this.J.U8()}; g.q.vH=function(V){this.J.J=V}; g.q.du=function(){var V=window.navigator.onLine;return V===void 0?!0:V}; g.q.FM=function(){this.S=!0}; g.q.listen=function(V,t){return this.J.listen(V,t)}; g.q.aT=function(V){V=d9(this.J,V);V.then(function(t){g.Bc("use_cfr_monitor")&&tC().requestComplete("generate_204",t)}); return V}; xr.prototype.sendNetworkCheckRequest=xr.prototype.aT;xr.prototype.listen=xr.prototype.listen;xr.prototype.enableErrorFlushing=xr.prototype.FM;xr.prototype.getWindowStatus=xr.prototype.du;xr.prototype.networkStatusHint=xr.prototype.vH;xr.prototype.isNetworkAvailable=xr.prototype.U8;xr.getInstance=Ec8;g.A(g.um,g.KX);g.um.prototype.U8=function(){var V=g.nl("yt.networkStatusManager.instance.isNetworkAvailable");return V?V.bind(this.S)():!0}; g.um.prototype.vH=function(V){var t=g.nl("yt.networkStatusManager.instance.networkStatusHint").bind(this.S);t&&t(V)}; g.um.prototype.aT=function(V){var t=this,x;return g.Q(function(u){x=g.nl("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(t.S);return g.Bc("skip_network_check_if_cfr")&&tC().isEndpointCFR("generate_204")?u.return(new Promise(function(Z){var P;t.vH(((P=window.navigator)==null?void 0:P.onLine)||!0);Z(t.U8())})):x?u.return(x(V)):u.return(!0)})};var ZK;g.A(PZ,Ut);PZ.prototype.writeThenSend=function(V,t){t||(t={});t=qX(V,t);g.Zw()||(this.J=!1);Ut.prototype.writeThenSend.call(this,V,t)}; PZ.prototype.sendThenWrite=function(V,t,x){t||(t={});t=qX(V,t);g.Zw()||(this.J=!1);Ut.prototype.sendThenWrite.call(this,V,t,x)}; PZ.prototype.sendAndWrite=function(V,t){t||(t={});t=qX(V,t);g.Zw()||(this.J=!1);Ut.prototype.sendAndWrite.call(this,V,t)}; PZ.prototype.awaitInitialization=function(){return this.N.promise};var N59=g.Ww.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.o9("ytNetworklessLoggingInitializationOptions",N59);g.Rm.prototype.isReady=function(){!this.config_&&k00()&&(this.config_=g.SI());return!!this.config_};var zp_,bm,kr;zp_=g.Ww.ytPubsubPubsubInstance||new g.ry;bm=g.Ww.ytPubsubPubsubSubscribedKeys||{};kr=g.Ww.ytPubsubPubsubTopicToKeys||{};g.E8=g.Ww.ytPubsubPubsubIsSynchronous||{};g.ry.prototype.subscribe=g.ry.prototype.subscribe;g.ry.prototype.unsubscribeByKey=g.ry.prototype.P0;g.ry.prototype.publish=g.ry.prototype.publish;g.ry.prototype.clear=g.ry.prototype.clear;g.o9("ytPubsubPubsubInstance",zp_);g.o9("ytPubsubPubsubTopicToKeys",kr);g.o9("ytPubsubPubsubIsSynchronous",g.E8); g.o9("ytPubsubPubsubSubscribedKeys",bm);var vch={};g.A(gF,g.c);gF.prototype.append=function(V){if(!this.S)throw Error("This does not support the append operation");V=V.m0();this.m0().appendChild(V)}; g.A(Xc,gF);Xc.prototype.m0=function(){return this.J};g.A(MLK,g.c);var z3=Date.now().toString();var am={};var ns=Symbol("injectionDeps");T3.prototype.toString=function(){return"InjectionToken("+this.name+")"}; B5h.prototype.resolve=function(V){return V instanceof WZ?cZ(this,V.key,[],!0):cZ(this,V,[])};var yy;var lm=window;var ex=g.Bc("web_enable_lifecycle_monitoring")&&HZ()!==0,WB0=g.Bc("web_enable_lifecycle_monitoring");ac9.prototype.cancel=function(){for(var V=g.G(this.J),t=V.next();!t.done;t=V.next())t=t.value,t.jobId===void 0||t.zs||this.scheduler.zl(t.jobId),t.zs=!0;this.S.resolve()};g.q=dF.prototype;g.q.install=function(V){this.plugins.push(V);return this}; g.q.uninstall=function(){var V=this;g.Xq.apply(0,arguments).forEach(function(t){t=V.plugins.indexOf(t);t>-1&&V.plugins.splice(t,1)})}; g.q.transition=function(V,t){var x=this;ex&&YQ0(this.state);var u=this.transitions.find(function(P){return Array.isArray(P.from)?P.from.find(function(K){return K===x.state&&P.e9===V}):P.from===x.state&&P.e9===V}); if(u){this.S&&(r64(this.S),this.S=void 0);ocj(this,V,t);this.state=V;ex&&U8(this.state);u=u.action.bind(this);var Z=this.plugins.filter(function(P){return P[V]}).map(function(P){return P[V]}); u(T50(this,Z),t)}else throw Error("no transition specified from "+this.state+" to "+V);}; g.q.W5S=function(V){var t=g.Xq.apply(1,arguments);g.fq();for(var x=g.G(V),u=x.next(),Z={};!u.done;Z={eD:void 0},u=x.next())Z.eD=u.value,Kmz(function(P){return function(){JC(P.eD.name);wF(function(){return P.eD.callback.apply(P.eD,g.v(t))}); hC(P.eD.name)}}(Z))}; g.q.mvC=function(V){var t=g.Xq.apply(1,arguments),x,u,Z,P;return g.Q(function(K){K.J==1&&(g.fq(),x=g.G(V),u=x.next(),Z={});if(K.J!=3){if(u.done)return K.FX(0);Z.Yd=u.value;Z.Ek=void 0;P=function(R){return function(){JC(R.Yd.name);var f=wF(function(){return R.Yd.callback.apply(R.Yd,g.v(t))}); b3(f)?R.Ek=g.Bc("web_lifecycle_error_handling_killswitch")?f.then(function(){hC(R.Yd.name)}):f.then(function(){hC(R.Yd.name)},function(b){QW8(b); hC(R.Yd.name)}):hC(R.Yd.name)}}(Z); Kmz(P);return Z.Ek?g.m(K,Z.Ek,3):K.FX(3)}Z={Yd:void 0,Ek:void 0};u=x.next();return K.FX(2)})}; g.q.qF=function(V){var t=g.Xq.apply(1,arguments),x=this,u=V.map(function(Z){return{fz:function(){JC(Z.name);wF(function(){return Z.callback.apply(Z,g.v(t))}); hC(Z.name)}, priority:Cs(x,Z)}}); u.length&&(this.S=new ac9(u))}; g.Zz.Object.defineProperties(dF.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var tl;g.A(VK,dF);VK.prototype.G=function(V,t){var x=this;this.J=g.q3(0,function(){x.currentState==="application_navigating"&&x.transition("none")},5E3); V(t==null?void 0:t.event)}; VK.prototype.B=function(V,t){this.J&&(g.w9.zl(this.J),this.J=null);V(t==null?void 0:t.event)};var gx=[];g.o9("yt.logging.transport.getScrapedGelPayloads",function(){return gx});x$.prototype.storePayload=function(V,t){V=uf(V);this.store[V]?this.store[V].push(t):(this.S={},this.store[V]=[t]);this.J++;g.Bc("more_accurate_gel_parser")&&(t=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(t));return V}; x$.prototype.smartExtractMatchingEntries=function(V){if(!V.keys.length)return[];for(var t=P7(this,V.keys.splice(0,1)[0]),x=[],u=0;u=0){u=!1;break a}}u=!0}u&&(t=ev(t))&&this.tP(t)}}; g.q.iO=function(V){return V}; g.q.bN=function(V){var t=this.zU;t.L=!0;t.S=V.touches.length;t.J.isActive()&&(t.J.stop(),t.G=!0);V=V.touches;t.B=gcl(t,V)||V.length!=1;var x=V.item(0);t.B||!x?(t.C=Infinity,t.X=Infinity):(t.C=x.clientX,t.X=x.clientY);for(x=t.N.length=0;x=0)}if(x||V&&Math.pow(V.clientX-t.C,2)+Math.pow(V.clientY-t.X,2)>25)t.W=!0}; g.q.T$=function(V){if(this.zU){var t=this.zU,x=V.changedTouches;x&&t.L&&t.S==1&&!t.W&&!t.G&&!t.B&&gcl(t,x)&&(t.Ij=V,t.J.start());t.S=V.touches.length;t.S===0&&(t.L=!1,t.W=!1,t.N.length=0);t.G=!1}}; g.q.tP=function(V){this.layoutId?this.aj.executeCommand(V,this.layoutId):g.jv(new g.xe("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.q.createServerVe=function(V,t){this.api.createServerVe(V,this);this.api.setTrackingParams(V,t)}; g.q.logVisibility=function(V,t){this.api.hasVe(V)&&this.api.logVisibility(V,t,this.interactionLoggingClientData)}; g.q.NP=function(){this.clear(null);this.vk(this.QC);for(var V=g.G(this.cX),t=V.next();!t.done;t=V.next())this.vk(t.value);g.Iz.prototype.NP.call(this)};g.A(y3,vS); y3.prototype.init=function(V,t,x){vS.prototype.init.call(this,V,t,x);this.J=t;if(t.text==null&&t.icon==null)g.lf(Error("ButtonRenderer did not have text or an icon set."));else{switch(t.style||null){case "STYLE_UNKNOWN":V="ytp-ad-button-link";break;default:V=null}V!=null&&g.OU(this.element,V);t.text!=null&&(V=g.FX(t.text),g.vU(V)||(this.element.setAttribute("aria-label",V),this.N=new g.Iz({Y:"span",V:"ytp-ad-button-text",mw:V}),g.y(this,this.N),this.N.t6(this.element)));t.accessibilityData&&t.accessibilityData.accessibilityData&& t.accessibilityData.accessibilityData.label&&!g.vU(t.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",t.accessibilityData.accessibilityData.label);t.icon!=null&&(t=cS(t.icon,this.W),t!=null&&(this.S=new g.Iz({Y:"span",V:"ytp-ad-button-icon",D:[t]}),g.y(this,this.S)),this.B?qN(this.element,this.S.element,0):this.S.t6(this.element))}}; y3.prototype.clear=function(){this.hide()}; y3.prototype.onClick=function(V){vS.prototype.onClick.call(this,V);V=g.G(Bu0(this));for(var t=V.next();!t.done;t=V.next())t=t.value,this.layoutId?this.aj.executeCommand(t,this.layoutId):g.jv(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.A(jo,g.c);jo.prototype.NP=function(){this.S&&g.YD(this.S);this.J.clear();lv=null;g.c.prototype.NP.call(this)}; jo.prototype.register=function(V,t){t&&this.J.set(V,t)}; var lv=null;g.A(DF,vS); DF.prototype.init=function(V,t,x){vS.prototype.init.call(this,V,t,x);V=t.hoverText||null;t=t.button&&g.l(t.button,g.nd)||null;t==null?g.jv(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new y3(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,void 0,void 0,void 0,void 0,this.N),g.y(this,this.button),this.button.init(iv("button"),t,this.macros),V&&this.button.element.setAttribute("aria-label",g.FX(V)),this.button.t6(this.element),this.X&&!g.i6(this.button.element, "ytp-ad-clickable")&&g.OU(this.button.element,"ytp-ad-clickable"),this.N&&(g.OU(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.T("clean_player_style_fix_on_web")&&g.OU(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),V&&(this.S=new g.Iz({Y:"div",V:"ytp-ad-hover-text-container"}),this.B&&(t=new g.Iz({Y:"div",V:"ytp-ad-hover-text-callout"}),t.t6(this.S.element),g.y(this,t)),g.y(this,this.S),this.S.t6(this.element),t=HS(V),qN(this.S.element,t,0)), this.show())}; DF.prototype.hide=function(){this.button&&this.button.hide();this.S&&this.S.hide();vS.prototype.hide.call(this)}; DF.prototype.show=function(){this.button&&this.button.show();vS.prototype.show.call(this)};g.A(dN,vS); dN.prototype.init=function(V,t,x){vS.prototype.init.call(this,V,t,x);x=(V=t.thumbnail)&&eo(V)||"";g.vU(x)?Math.random()<.01&&g.lf(Error("Found AdImage without valid image URL")):(this.J?g.Ao(this.element,"backgroundImage","url("+x+")"):hI(this.element,{src:x}),hI(this.element,{alt:V&&V.accessibility&&V.accessibility.label||""}),t&&t.adRendererCommands&&t.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; dN.prototype.clear=function(){this.hide()};g.A(CD,vS);g.q=CD.prototype;g.q.hide=function(){vS.prototype.hide.call(this);this.N&&this.N.focus()}; g.q.show=function(){this.N=document.activeElement;vS.prototype.show.call(this);this.W.focus()}; g.q.init=function(V,t,x){vS.prototype.init.call(this,V,t,x);this.S=t;t.dialogMessages||t.title!=null?t.confirmLabel==null?g.jv(Error("ConfirmDialogRenderer.confirmLabel was not set.")):t.cancelLabel==null?g.jv(Error("ConfirmDialogRenderer.cancelLabel was not set.")):awh(this,t):g.jv(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.q.clear=function(){g.oV(this.J);this.hide()}; g.q.nz=function(){this.hide()}; g.q.Sp=function(){var V=this.S.cancelEndpoint;V&&(this.layoutId?this.aj.executeCommand(V,this.layoutId):g.jv(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.q.eP=function(){var V=this.S.confirmNavigationEndpoint||this.S.confirmEndpoint;V&&(this.layoutId?this.aj.executeCommand(V,this.layoutId):g.jv(Error("Missing layoutId for confirm dialog.")));this.hide()};g.A(Jz,vS);g.q=Jz.prototype; g.q.init=function(V,t,x){vS.prototype.init.call(this,V,t,x);this.N=t;if(t.defaultText==null&&t.defaultIcon==null)g.jv(Error("ToggleButtonRenderer must have either text or icon set."));else if(t.defaultIcon==null&&t.toggledIcon!=null)g.jv(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(t.style){switch(t.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":V="ytp-ad-toggle-button-default-style";break;default:V=null}V!=null&&g.OU(this.W,V)}V={};t.defaultText? (x=g.FX(t.defaultText),g.vU(x)||(V.buttonText=x,this.api.K().experiments.MP("a11y_h5_associate_survey_question")||this.J.setAttribute("aria-label",x),this.api.K().experiments.MP("fix_h5_toggle_button_a11y")&&this.S.setAttribute("aria-label",x))):g.rJ(this.Us,!1);t.defaultTooltip&&(V.tooltipText=t.defaultTooltip,this.J.hasAttribute("aria-label")||this.S.setAttribute("aria-label",t.defaultTooltip));t.defaultIcon?(x=cS(t.defaultIcon),this.updateValue("untoggledIconTemplateSpec",x),t.toggledIcon?(this.wk= !0,x=cS(t.toggledIcon),this.updateValue("toggledIconTemplateSpec",x)):(g.rJ(this.X,!0),g.rJ(this.B,!1)),g.rJ(this.J,!1)):g.rJ(this.S,!1);g.YE(V)||this.update(V);t.isToggled&&(g.OU(this.W,"ytp-ad-toggle-button-toggled"),this.toggleButton(t.isToggled));hz(this);this.Z(this.element,"change",this.v9);this.show()}}; g.q.onClick=function(V){this.cX.length>0&&(this.toggleButton(!this.isToggled()),this.v9());vS.prototype.onClick.call(this,V)}; g.q.v9=function(){g.Am(this.W,"ytp-ad-toggle-button-toggled",this.isToggled());for(var V=g.G(rvq(this,this.isToggled())),t=V.next();!t.done;t=V.next())t=t.value,this.layoutId?this.aj.executeCommand(t,this.layoutId):g.jv(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);hz(this)}; g.q.clear=function(){this.hide()}; g.q.toggleButton=function(V){g.Am(this.W,"ytp-ad-toggle-button-toggled",V);this.J.checked=V;hz(this)}; g.q.isToggled=function(){return this.J.checked};g.A(wN,TF);wN.prototype.B=function(V){if(Array.isArray(V)){V=g.G(V);for(var t=V.next();!t.done;t=V.next())t=t.value,t instanceof Tuz&&this.W(t)}};g.A(V$,vS);g.q=V$.prototype;g.q.init=function(V,t,x){vS.prototype.init.call(this,V,t,x);t.reasons?t.confirmLabel==null?g.jv(Error("AdFeedbackRenderer.confirmLabel was not set.")):(t.cancelLabel==null&&g.lf(Error("AdFeedbackRenderer.cancelLabel was not set.")),t.title==null&&g.lf(Error("AdFeedbackRenderer.title was not set.")),cvq(this,t)):g.jv(Error("AdFeedbackRenderer.reasons were not set."))}; g.q.clear=function(){Qz(this.B);Qz(this.X);this.W.length=0;this.hide()}; g.q.hide=function(){this.J&&this.J.hide();this.S&&this.S.hide();vS.prototype.hide.call(this);this.N&&this.N.focus()}; g.q.show=function(){this.J&&this.J.show();this.S&&this.S.show();this.N=document.activeElement;vS.prototype.show.call(this);this.B.focus()}; g.q.SO=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.q.nUs=function(){this.hide()}; tq.prototype.m0=function(){return this.J.element}; tq.prototype.getCommand=function(){return this.S}; tq.prototype.isChecked=function(){return this.N.checked};g.A(x9,CD);x9.prototype.nz=function(V){CD.prototype.nz.call(this,V);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; x9.prototype.Sp=function(V){CD.prototype.Sp.call(this,V);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; x9.prototype.eP=function(V){CD.prototype.eP.call(this,V);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.A(uP,vS);g.q=uP.prototype; g.q.init=function(V,t,x){vS.prototype.init.call(this,V,t,x);this.B=t;if(t.dialogMessage==null&&t.title==null)g.jv(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{t.confirmLabel==null&&g.lf(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(V=t.closeOverlayRenderer&&g.l(t.closeOverlayRenderer,g.nd)||null)this.J=new y3(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.y(this,this.J),this.J.init(iv("button"),V,this.macros),this.J.t6(this.element);t.title&&(V=g.FX(t.title),this.updateValue("title",V));if(t.adReasons)for(V=t.adReasons,x=0;x=this.Es?(this.Us.hide(),this.xw=!0,this.publish("i")):this.N&&this.N.isTemplated()&&(V=Math.max(0,Math.ceil((this.Es-V)/1E3)),V!=this.yC&&(KC(this.N,{TIME_REMAINING:String(V)}),this.yC=V)))}};g.A(iP,qh);g.q=iP.prototype; g.q.init=function(V,t,x){qh.prototype.init.call(this,V,t,x);if(t.image&&t.image.thumbnail)if(t.headline)if(t.description)if((V=t.actionButton&&g.l(t.actionButton,g.nd))&&V.navigationEndpoint){var u=this.api.getVideoData(2);if(u!=null)if(t.image&&t.image.thumbnail){var Z=t.image.thumbnail.thumbnails;Z!=null&&Z.length>0&&g.vU(g.xE(Z[0].url))&&(Z[0].url=u.profilePicture)}else g.lf(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.N.init(iv("ad-image"),t.image,x);this.B.init(iv("ad-text"), t.headline,x);this.W.init(iv("ad-text"),t.description,x);this.S.init(iv("button"),V,x);x=Pk(this.S.element);Zr(this.S.element,x+" This link opens in new tab");this.wk=V.navigationEndpoint;this.api.GG()||this.show();this.api.K().T("enable_larger_flyout_cta_on_desktop")&&(this.f1("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.f1("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.f1("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.f1("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.f1("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.f1("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.S.element.classList.add("ytp-flyout-cta-action-button-large"),this.S.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.f1("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.Gy.bind(this));this.Us=t.startMs||0;RT(this)}else g.jv(Error("FlyoutCtaRenderer has no valid action button."));else g.jv(Error("FlyoutCtaRenderer has no description AdText."));else g.jv(Error("FlyoutCtaRenderer has no headline AdText."));else g.lf(Error("FlyoutCtaRenderer has no image."))}; g.q.onClick=function(V){qh.prototype.onClick.call(this,V);this.api.pauseVideo();!g.fQ(this.S.element,V.target)&&this.wk&&(this.layoutId?this.aj.executeCommand(this.wk,this.layoutId):g.jv(Error("Missing layoutId for flyout cta.")))}; g.q.De=function(){if(this.J){var V=this.J.getProgressState();(V&&V.current||this.Es)&&1E3*V.current>=this.Us&&(fC(this),g.NK(this.element,"ytp-flyout-cta-inactive"),this.S.element.removeAttribute("tabIndex"))}}; g.q.j5=function(){this.clear()}; g.q.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Gy.bind(this))}; g.q.show=function(){this.S&&this.S.show();qh.prototype.show.call(this)}; g.q.hide=function(){this.S&&this.S.hide();qh.prototype.hide.call(this)}; g.q.Gy=function(V){V=="hidden"?this.show():this.hide()};g.A(Om,vS);g.q=Om.prototype; g.q.init=function(V,t,x){vS.prototype.init.call(this,V,t,x);this.J=t;if(this.J.rectangle)for(V=this.J.likeButton&&g.l(this.J.likeButton,GL),t=this.J.dislikeButton&&g.l(this.J.dislikeButton,GL),this.N.init(iv("toggle-button"),V,x),this.S.init(iv("toggle-button"),t,x),this.Z(this.element,"change",this.Ty),this.W.show(100),this.show(),x=g.G(this.J&&this.J.impressionCommands||[]),V=x.next();!V.done;V=x.next())V=V.value,this.layoutId?this.aj.executeCommand(V,this.layoutId):g.jv(Error("Missing layoutId for instream user sentiment."))}; g.q.clear=function(){this.hide()}; g.q.hide=function(){this.N.hide();this.S.hide();vS.prototype.hide.call(this)}; g.q.show=function(){this.N.show();this.S.show();vS.prototype.show.call(this)}; g.q.Ty=function(){zw8(this.element,"ytp-ad-instream-user-sentiment-selected");this.J.postMessageAction&&this.api.Os("onYtShowToast",this.J.postMessageAction);this.W.hide()}; g.q.onClick=function(V){this.cX.length>0&&this.Ty();vS.prototype.onClick.call(this,V)};g.A(sm,g.c);g.q=sm.prototype;g.q.NP=function(){this.reset();g.c.prototype.NP.call(this)}; g.q.reset=function(){g.oV(this.W);this.B=!1;this.J&&this.J.stop();this.G.stop();this.N&&(this.N=!1,this.L.play())}; g.q.start=function(){this.reset();this.W.Z(this.S,"mouseover",this.Ad,this);this.W.Z(this.S,"mouseout",this.Lm,this);this.Ij&&(this.W.Z(this.S,"focusin",this.Ad,this),this.W.Z(this.S,"focusout",this.Lm,this));this.J?this.J.start():(this.B=this.N=!0,g.Ao(this.S,{opacity:this.X}))}; g.q.Ad=function(){this.N&&(this.N=!1,this.L.play());this.G.stop();this.J&&this.J.stop()}; g.q.Lm=function(){this.B?this.G.start():this.J&&this.J.start()}; g.q.Mt=function(){this.N||(this.N=!0,this.C.play(),this.B=!0)};var wrh=[new Nh("b.f_",!1,0),new Nh("j.s_",!1,2),new Nh("r.s_",!1,4),new Nh("e.h_",!1,6),new Nh("i.s_",!0,8),new Nh("s.t_",!1,10),new Nh("p.h_",!1,12),new Nh("s.i_",!1,14),new Nh("f.i_",!1,16),new Nh("a.b_",!1,18),new Nh("a.o_",!1),new Nh("g.o_",!1,22),new Nh("p.i_",!1,24),new Nh("p.m_",!1),new Nh("i.k_",!0,28),new Nh("n.k_",!0,20),new Nh("i.f_",!1),new Nh("a.s_",!0),new Nh("m.c_",!1),new Nh("n.h_",!1,26),new Nh("o.p_",!1)].reduce(function(V,t){V[t.S]=t;return V},{});g.A(FD,qh);g.q=FD.prototype; g.q.init=function(V,t,x){qh.prototype.init.call(this,V,t,x);this.wk=t;(this.Us=tIl(this))&&g.lf(Error("hasAdControlInClickCommands_ is true."));if(!t||g.YE(t))g.jv(Error("SkipButtonRenderer was not specified or empty."));else if(!t.message||g.YE(t.message))g.jv(Error("SkipButtonRenderer.message was not specified or empty."));else{V=this.B?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};t=cS(V);t==null?g.jv(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+V.iconType+".")): (this.W=new g.Iz({Y:"button",vX:[this.B?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],D:[{Y:"span",V:this.B?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",D:[t]}]}),g.y(this,this.W),this.W.t6(this.N.element),this.S=new P0(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,"ytp-ad-skip-button-text"),this.B&&this.S.element.classList.add("ytp-ad-skip-button-text-centered"),this.S.init(iv("ad-text"),this.wk.message,x),g.y(this,this.S),qN(this.W.element,this.S.element, 0));var u=u===void 0?null:u;x=this.api.K();!(this.cX.length>0)&&x.S&&(xO?0:"ontouchstart"in document.documentElement&&(vvT()||FN()))&&(this.vk(this.QC),u&&this.vk(u),this.cX=[this.Z(this.element,"touchstart",this.bN,this),this.Z(this.element,"touchmove",this.Lg,this),this.Z(this.element,"touchend",this.T$,this)])}}; g.q.clear=function(){this.Es.reset();this.hide()}; g.q.hide=function(){this.N.hide();this.S&&this.S.hide();fC(this);qh.prototype.hide.call(this)}; g.q.onClick=function(V){if(this.W!=null){if(V){var t=V||window.event;t.returnValue=!1;t.preventDefault&&t.preventDefault()}var x;if(Jvw(V,{contentCpn:((x=this.api.getVideoData(1))==null?void 0:x.clientPlaybackNonce)||""})===0)this.api.Os("onAbnormalityDetected");else if(qh.prototype.onClick.call(this,V),this.publish("j"),this.api.Os("onAdSkip"),this.xw||!this.Us)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.q.iO=function(V){if(!this.xw)return this.Us&&Gd("SkipButton click commands not pruned while ALC exist"),V;var t,x=(t=g.l(V,g.Mh))==null?void 0:t.commands;if(!x)return V;V=[];for(t=0;t=this.B&&xRh(this,!0)};g.A(XD,y3);XD.prototype.init=function(V,t,x){y3.prototype.init.call(this,V,t,x);V=!1;t.text!=null&&(V=g.FX(t.text),V=!g.vU(V));V?t.navigationEndpoint==null?g.lf(Error("No visit advertiser clickthrough provided in renderer,")):t.style!=="STYLE_UNKNOWN"?g.lf(Error("Button style was not a link-style type in renderer,")):this.show():g.lf(Error("No visit advertiser text was present in the renderer."))};g.A(zd,vS); zd.prototype.init=function(V,t,x){vS.prototype.init.call(this,V,t,x);V=t.text;g.vU(LD(V))?g.lf(Error("SimpleAdBadgeRenderer has invalid or empty text")):(V&&V.text&&(t=V.text,this.N&&!this.S&&(t=this.api.K(),t=V.text+" "+(t&&t.S?"\u2022":"\u00b7")),t={text:t,isTemplated:V.isTemplated},V.style&&(t.style=V.style),V.targetId&&(t.targetId=V.targetId),V=new P0(this.api,this.layoutId,this.interactionLoggingClientData,this.aj),V.init(iv("simple-ad-badge"),t,x),V.t6(this.element),g.y(this,V)),this.show())}; zd.prototype.clear=function(){this.hide()};g.A(B0,Ov);g.A(mP,g.Np);g.q=mP.prototype;g.q.Ln=function(){return this.durationMs}; g.q.stop=function(){this.J&&this.I5.vk(this.J)}; g.q.AJ=function(V){this.S={seekableStart:0,seekableEnd:this.durationMs/1E3,current:V.current};this.publish("h")}; g.q.getProgressState=function(){return this.S}; g.q.AO=function(V){g.LC(V,2)&&this.publish("g")};g.A(Y9,g.Np);g.q=Y9.prototype;g.q.Ln=function(){return this.durationMs}; g.q.start=function(){this.J||(this.J=!0,this.jH.start())}; g.q.stop=function(){this.J&&(this.J=!1,this.jH.stop())}; g.q.AJ=function(){this.N$+=100;var V=!1;this.N$>this.durationMs&&(this.N$=this.durationMs,this.jH.stop(),V=!0);this.S={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.N$/1E3};this.publish("h");V&&this.publish("g")}; g.q.getProgressState=function(){return this.S};g.A(r2,qh);g.q=r2.prototype;g.q.init=function(V,t,x){qh.prototype.init.call(this,V,t,x);var u;if(t==null?0:(u=t.templatedCountdown)==null?0:u.templatedAdText){V=t.templatedCountdown.templatedAdText;if(!V.isTemplated){g.lf(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.S=new P0(this.api,this.layoutId,this.interactionLoggingClientData,this.aj);this.S.init(iv("ad-text"),V,{});this.S.t6(this.element);g.y(this,this.S)}this.show()}; g.q.clear=function(){this.hide()}; g.q.hide=function(){fC(this);qh.prototype.hide.call(this)}; g.q.j5=function(){this.hide()}; g.q.De=function(){if(this.J!=null){var V=this.J.getProgressState();if(V!=null&&V.current!=null&&this.S){var t=this.J instanceof mP?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:V.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.J instanceof Y9?V.seekableEnd:this.api.getDuration(2,!1);V=V.current;t=this.api.K().experiments.MP("enable_player_overlay_non_negative_remaining_duration_on_web")?Math.max(t-V,0):t-V;KC(this.S,{FORMATTED_AD_DURATION_REMAINING:String(g.Q$(t)), TIME_REMAINING:String(Math.ceil(t))})}}}; g.q.show=function(){RT(this);qh.prototype.show.call(this)};g.A(Td,P0);Td.prototype.onClick=function(V){P0.prototype.onClick.call(this,V);this.api.onAdUxClicked(this.componentType)};g.A(oT,vS);oT.prototype.init=function(V,t){vS.prototype.init.call(this,V,t,{});if(V=t.content){g.$P(this.element,V);var x,u;t=((x=t.interaction)==null?void 0:(u=x.accessibility)==null?void 0:u.label)||V;this.element.setAttribute("aria-label",t)}else g.jv(Error("AdSimpleAttributedString does not have text content"))}; oT.prototype.clear=function(){this.hide()}; oT.prototype.onClick=function(V){vS.prototype.onClick.call(this,V)};g.A(nC,vS); nC.prototype.init=function(V,t){vS.prototype.init.call(this,V,t,{});(V=t.label)&&V.content&&!g.vU(V.content)?(this.adBadgeText.init(iv("ad-simple-attributed-string"),new W0(V)),(t=t.adPodIndex)&&t.content&&!g.vU(t.content)&&(this.J=new oT(this.api,this.layoutId,this.interactionLoggingClientData,this.aj),this.J.t6(this.element),g.y(this,this.J),this.J.element.classList.add("ytp-ad-badge__pod-index"),this.J.init(iv("ad-simple-attributed-string"),new W0(t))),this.element.classList.add(this.S?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.jv(Error("No label is returned in AdBadgeViewModel."))}; nC.prototype.show=function(){this.adBadgeText.show();var V;(V=this.J)==null||V.show();vS.prototype.show.call(this)}; nC.prototype.hide=function(){this.adBadgeText.hide();var V;(V=this.J)==null||V.hide();vS.prototype.hide.call(this)};g.A(c0,vS); c0.prototype.init=function(V,t){vS.prototype.init.call(this,V,t,{});(V=t.adPodIndex)&&V.content&&!g.vU(V.content)&&(this.J=new oT(this.api,this.layoutId,this.interactionLoggingClientData,this.aj),this.J.t6(this.element),g.y(this,this.J),this.J.init(iv("ad-simple-attributed-string"),new W0(V)),(this.api.K().T("clean_player_style_fix_on_web")?t.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.S||t.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.T("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()}; c0.prototype.show=function(){var V;(V=this.J)==null||V.show();vS.prototype.show.call(this)}; c0.prototype.hide=function(){var V;(V=this.J)==null||V.hide();vS.prototype.hide.call(this)};g.A(y$,vS); y$.prototype.init=function(V,t){vS.prototype.init.call(this,V,t,{});if(t!=null&&t.text){var x;if(((x=t.text)==null?0:x.content)&&!g.vU(t.text.content)){this.J=new g.Iz({Y:"div",V:"ytp-ad-disclosure-banner__text",mw:t.text.content});g.y(this,this.J);this.J.t6(this.element);var u,Z;V=((u=t.interaction)==null?void 0:(Z=u.accessibility)==null?void 0:Z.label)||t.text.content;this.element.setAttribute("aria-label",V);var P;if((P=t.interaction)==null?0:P.onTap)this.S=new g.Iz({Y:"div",V:"ytp-ad-disclosure-banner__chevron",D:[g.zP()]}), g.y(this,this.S),this.S.t6(this.element);this.show()}}else g.jv(Error("No banner text found in AdDisclosureBanner."))}; y$.prototype.clear=function(){this.hide()};jP.prototype.getLength=function(){return this.J-this.S};g.A(H0,g.Iz);H0.prototype.AJ=function(){var V=this.S.getProgressState(),t=V.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.K().T("show_preskip_progress_bar_for_skippable_ads")&&(t=this.N?this.N/1E3:V.seekableEnd);V=lP(new jP(V.seekableStart,t),V.current,0);this.progressBar.style.width=V*100+"%"}; H0.prototype.onStateChange=function(){g.To(this.api.K())||(this.api.getPresentingPlayerType()===2?this.J===-1&&(this.show(),this.J=this.S.subscribe("h",this.AJ,this),this.AJ()):this.J!==-1&&(this.hide(),this.S.P0(this.J),this.J=-1))};g.A(Um,vS); Um.prototype.init=function(V,t,x,u){vS.prototype.init.call(this,V,t,x);x=!0;if(t.skipOrPreviewRenderer){var Z=t.skipOrPreviewRenderer;V=g.l(Z,b_);Z=g.l(Z,ou);V?(Z=new g2(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.S,this.wk),Z.t6(this.X),Z.init(iv("skip-button"),V,this.macros),g.y(this,Z)):Z&&!this.api.K().experiments.MP("disable_ad_preview_for_instream_ads")&&(V=new Em(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.S,!1),V.t6(this.X),V.init(iv("ad-preview"),Z, this.macros),k9(V),g.y(this,V));if(V=g.l(t.skipOrPreviewRenderer,b_)){x=!1;var P=V.skipOffsetMilliseconds}}t.brandInteractionRenderer&&(V=t.brandInteractionRenderer.brandInteractionRenderer,Z=new Om(this.api,this.layoutId,this.interactionLoggingClientData,this.aj),Z.t6(this.Es),Z.init(iv("instream-user-sentiment"),V,this.macros),g.y(this,Z));if(V=g.l(t,brs))if(V=g.l(V,brs))Z=new iP(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.S,!!t.showWithoutLinkedMediaLayout),g.y(this,Z), Z.t6(this.B),Z.init(iv("flyout-cta"),V,this.macros);V=(this.api.K().T("disable_ad_duration_remaining_for_instream_video_ads")||t.adPodIndex!==void 0)&&!1;u=u&&u.videoAdDurationSeconds;if(t.adBadgeRenderer){var K=t.adBadgeRenderer;Z=g.l(K,HH);Z!=null?(K=new nC(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,V),g.y(this,K),K.t6(this.J),K.init(iv("ad-badge"),Z,this.macros),this.N=K.element):(Z=K.simpleAdBadgeRenderer,Z==null&&(Z={text:{text:"An\u00fancio",isTemplated:!1}}),K=new zd(this.api, this.layoutId,this.interactionLoggingClientData,this.aj,!0),g.y(this,K),K.t6(this.J),K.init(iv("simple-ad-badge"),Z,this.macros))}t.adPodIndex&&(Z=g.l(t.adPodIndex,GYE),Z!=null&&(x=new c0(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,x),g.y(this,x),x.t6(this.J),x.init(iv("ad-pod-index"),Z)));t.adDurationRemaining&&!t.showWithoutLinkedMediaLayout&&(x=t.adDurationRemaining.adDurationRemainingRenderer,x==null&&(x={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}", isTemplated:!0}}}),u=new r2(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.S,u,V),g.y(this,u),u.t6(this.J),u.init(iv("ad-duration-remaining"),x,this.macros),V&&u.element.classList.add("ytp-ad-duration-remaining-autohide"));t.adInfoRenderer&&(u=g.l(t.adInfoRenderer,Wd))&&(x=new Zp(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.element,void 0,V),g.y(this,x),this.api.K().T("enable_ad_pod_index_autohide")&&this.N!==null?this.J.insertBefore(x.element,this.N.nextSibling): x.t6(this.J),x.init(iv("ad-info-hover-text-button"),u,this.macros));t.visitAdvertiserRenderer&&(x=g.l(t.visitAdvertiserRenderer,g.nd))&&(Z=P0l(this)&&this.W?this.W:this.J)&&(u=new XD(this.api,this.layoutId,this.interactionLoggingClientData,this.aj),g.y(this,u),u.t6(Z),u.init(iv("visit-advertiser"),x,this.macros),tm(u.element),x=Pk(u.element),Zr(u.element,x+" This link opens in new tab"));!(u=this.api.K())||g.ah(u)||u.controlsType!="3"&&!u.disableOrganicUi||(P=new H0(this.api,this.S,P,V),P.t6(this.L1), g.y(this,P));t.adDisclosureBannerRenderer&&(t=g.l(t.adDisclosureBannerRenderer,S$F))&&(P=new y$(this.api,this.layoutId,this.interactionLoggingClientData,this.aj),P.t6(this.Us),P.init(iv("ad-disclosure-banner"),t),g.y(this,P));this.api.K().T("enable_updated_html5_player_focus_style")&&g.OU(this.element,"ytp-ad-player-overlay-updated-focus-style");V&&this.api.K().S&&this.J.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()}; Um.prototype.clear=function(){this.hide()};CC.prototype.set=function(V,t,x){x=x!==void 0?Date.now()+x:void 0;this.J.set(V,t,x)}; CC.prototype.get=function(V){return this.J.get(V)}; CC.prototype.remove=function(V){this.J.remove(V)};var Vg=null,t4=null,x1=null,bg1=null;g.o9("yt.www.ads.eventcache.getLastCompanionData",function(){return Vg}); g.o9("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.o9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return t4}); g.o9("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return x1}); g.o9("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return bg1});var k5w=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);uY.prototype.handleResponse=function(V,t){if(!t)throw Error("request needs to be passed into ConsistencyService");var x,u;t=((x=t.zW.context)==null?void 0:(u=x.request)==null?void 0:u.consistencyTokenJars)||[];var Z;(V=(Z=V.responseContext)==null?void 0:Z.consistencyTokenJar)&&this.replace(t,V)}; uY.prototype.replace=function(V,t){V=g.G(V);for(var x=V.next();!x.done;x=V.next())delete this.J[x.value.encryptedTokenJarContents];OgC(this,t)};var Tl_=window.location.hostname.split(".").slice(-2).join("."),XY;PF.getInstance=function(){XY=g.nl("yt.clientLocationService.instance");XY||(XY=new PF,g.o9("yt.clientLocationService.instance",XY));return XY}; g.q=PF.prototype; g.q.setLocationOnInnerTubeContext=function(V){V.client||(V.client={});if(this.J)V.client.locationInfo||(V.client.locationInfo={}),V.client.locationInfo.latitudeE7=Math.floor(this.J.coords.latitude*1E7),V.client.locationInfo.longitudeE7=Math.floor(this.J.coords.longitude*1E7),V.client.locationInfo.horizontalAccuracyMeters=Math.round(this.J.coords.accuracy),V.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.N||this.locationPlayabilityToken)V.client.locationPlayabilityToken=this.N|| this.locationPlayabilityToken}; g.q.handleResponse=function(V){var t;V=(t=V.responseContext)==null?void 0:t.locationPlayabilityToken;V!==void 0&&(this.locationPlayabilityToken=V,this.J=void 0,g.Zc("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Zj(this))&&this.localStorage.set("yt-location-playability-token",V,15552E3):g.UQ("YT_CL",JSON.stringify({loctok:V}),15552E3,Tl_,!0))}; g.q.clearLocationPlayabilityToken=function(V){V==="TVHTML5"?(this.localStorage=Zj(this))&&this.localStorage.remove("yt-location-playability-token"):g.eL("YT_CL");this.N=void 0;this.S!==-1&&(clearTimeout(this.S),this.S=-1)}; g.q.getCurrentPositionFromGeolocation=function(){var V=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var t=!1,x=1E4;g.Zc("INNERTUBE_CLIENT_NAME")==="MWEB"&&(t=!0,x=15E3);return new Promise(function(u,Z){navigator.geolocation.getCurrentPosition(function(P){V.J=P;u(P)},function(P){Z(P)},{enableHighAccuracy:t, maximumAge:0,timeout:x})})}; g.q.createUnpluggedLocationInfo=function(V){var t={};V=V.coords;if(V==null?0:V.latitude)t.latitudeE7=Math.floor(V.latitude*1E7);if(V==null?0:V.longitude)t.longitudeE7=Math.floor(V.longitude*1E7);if(V==null?0:V.accuracy)t.locationRadiusMeters=Math.round(V.accuracy);return t}; g.q.createLocationInfo=function(V){var t={};V=V.coords;if(V==null?0:V.latitude)t.latitudeE7=Math.floor(V.latitude*1E7);if(V==null?0:V.longitude)t.longitudeE7=Math.floor(V.longitude*1E7);return t};g.q=St8.prototype;g.q.contains=function(V){return Object.prototype.hasOwnProperty.call(this.J,V)}; g.q.get=function(V){if(this.contains(V))return this.J[V]}; g.q.set=function(V,t){this.J[V]=t}; g.q.ZP=function(){return Object.keys(this.J)}; g.q.remove=function(V){delete this.J[V]};p4.prototype.getModuleId=function(V){return V.serviceId.getModuleId()}; p4.prototype.get=function(V){a:{var t=this.mappings.get(V.toString());switch(t.type){case "mapping":V=t.value;break a;case "factory":t=t.value();this.mappings.set(V.toString(),{type:"mapping",value:t});V=t;break a;default:V=PD(t)}}return V}; p4.prototype.registerService=function(V,t){this.mappings.set(V.toString(),{type:"mapping",value:t});return V}; new p4;var zL={},G5q=(zL.WEB_UNPLUGGED="^unplugged/",zL.WEB_UNPLUGGED_ONBOARDING="^unplugged/",zL.WEB_UNPLUGGED_OPS="^unplugged/",zL.WEB_UNPLUGGED_PUBLIC="^unplugged/",zL.WEB_CREATOR="^creator/",zL.WEB_KIDS="^kids/",zL.WEB_EXPERIMENTS="^experiments/",zL.WEB_MUSIC="^music/",zL.WEB_REMIX="^music/",zL.WEB_MUSIC_EMBEDDED_PLAYER="^music/",zL.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",zL);G4.prototype.G=function(V,t,x){t=t===void 0?{}:t;x=x===void 0?I8:x;var u={context:g.K4(V.clickTrackingParams,!1,this.W)};var Z=this.S(V);if(Z){this.J(u,Z,t);var P;t=g.St(this.N());(Z=(P=g.l(V.commandMetadata,g.SZ))==null?void 0:P.apiUrl)&&(t=Z);P=N99(d5(t));V=Object.assign({},{command:V},void 0);u={input:P,DU:CJ(P),zW:u,config:V};u.config.gJ?u.config.gJ.identity=x:u.config.gJ={identity:x};return u}g.jv(new g.xe("Error: Failed to create Request from Command.",V))}; g.Zz.Object.defineProperties(G4.prototype,{W:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.A(IF,G4);g.A(vF,IF);vF.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",DU:CJ("/getDatasyncIdsEndpoint","GET"),zW:{}}}; vF.prototype.N=function(){return[]}; vF.prototype.S=function(){}; vF.prototype.J=function(){};var WTF={},tx0=(WTF.GET_DATASYNC_IDS=A4(vF),WTF);var BG={},ozs=(BG["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",BG["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",BG["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",BG["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",BG["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",BG["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",BG["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", BG["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",BG["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",BG["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",BG["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",BG["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",BG["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",BG["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",BG["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", BG["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",BG["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",BG["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",BG["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",BG["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",BG["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",BG["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", BG["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",BG.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",BG["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",BG["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",BG["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",BG["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",BG["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",BG["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", BG["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",BG["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",BG["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",BG["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",BG["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",BG["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",BG["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",BG["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",BG["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",BG["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",BG.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",BG["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",BG["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",BG["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",BG["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",BG["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",BG["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",BG["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",BG["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",BG["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",BG["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",BG["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",BG["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",BG["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",BG["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",BG["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",BG["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",BG["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",BG["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",BG["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",BG["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",BG["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", BG["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",BG["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",BG["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",BG["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",BG["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",BG["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",BG["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",BG["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",BG["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", BG["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",BG["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",BG["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",BG["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",BG["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",BG["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",BG["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",BG["video.translations"]= "LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",BG),mM={},XoK=(mM.auto_search="LATENCY_ACTION_AUTO_SEARCH",mM.ad_to_ad="LATENCY_ACTION_AD_TO_AD",mM.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",mM.app_startup="LATENCY_ACTION_APP_STARTUP",mM.browse="LATENCY_ACTION_BROWSE",mM.cast_splash="LATENCY_ACTION_CAST_SPLASH",mM.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",mM.channels="LATENCY_ACTION_CHANNELS",mM.chips="LATENCY_ACTION_CHIPS",mM.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",mM.direct_playback= "LATENCY_ACTION_DIRECT_PLAYBACK",mM.editor="LATENCY_ACTION_EDITOR",mM.embed="LATENCY_ACTION_EMBED",mM.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",mM.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",mM.explore="LATENCY_ACTION_EXPLORE",mM.favorites="LATENCY_ACTION_FAVORITES",mM.home="LATENCY_ACTION_HOME",mM.inboarding="LATENCY_ACTION_INBOARDING",mM.library="LATENCY_ACTION_LIBRARY",mM.live="LATENCY_ACTION_LIVE",mM.live_pagination="LATENCY_ACTION_LIVE_PAGINATION", mM.management="LATENCY_ACTION_MANAGEMENT",mM.mini_app="LATENCY_ACTION_MINI_APP_PLAY",mM.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",mM.onboarding="LATENCY_ACTION_ONBOARDING",mM.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",mM.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",mM.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",mM.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",mM.prebuffer="LATENCY_ACTION_PREBUFFER",mM.prefetch= "LATENCY_ACTION_PREFETCH",mM.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",mM.profile_switcher="LATENCY_ACTION_LOGIN",mM.projects="LATENCY_ACTION_PROJECTS",mM.reel_watch="LATENCY_ACTION_REEL_WATCH",mM.results="LATENCY_ACTION_RESULTS",mM.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",mM.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",mM.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",mM.review="LATENCY_ACTION_REVIEW",mM.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",mM.search_ui= "LATENCY_ACTION_SEARCH_UI",mM.search_suggest="LATENCY_ACTION_SUGGEST",mM.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",mM.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",mM.seek="LATENCY_ACTION_PLAYER_SEEK",mM.settings="LATENCY_ACTION_SETTINGS",mM.store="LATENCY_ACTION_STORE",mM.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",mM.tenx="LATENCY_ACTION_TENX",mM.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",mM.watch="LATENCY_ACTION_WATCH",mM.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN", mM["watch,watch7"]="LATENCY_ACTION_WATCH",mM["watch,watch7_html5"]="LATENCY_ACTION_WATCH",mM["watch,watch7ad"]="LATENCY_ACTION_WATCH",mM["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",mM.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",mM.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",mM.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",mM.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",mM.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",mM.gel_compression="LATENCY_ACTION_GEL_COMPRESSION", mM.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",mM.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",mM);Object.assign(XoK,ozs);g.A(Y1,vo);var j8C=new X3("aft-recorded",Y1);var nzY=g.Ww.ytLoggingGelSequenceIdObj_||{};g.o9("ytLoggingGelSequenceIdObj_",nzY);var rq=g.Ww.ytLoggingLatencyUsageStats_||{};g.o9("ytLoggingLatencyUsageStats_",rq);Qg.prototype.tick=function(V,t,x,u){T4(this,"tick_"+V+"_"+t)||g.pq("latencyActionTicked",{tickName:V,clientActionNonce:t},{timestamp:x,cttAuthInfo:u})}; Qg.prototype.info=function(V,t,x){var u=Object.keys(V).join("");T4(this,"info_"+u+"_"+t)||(V=Object.assign({},V),V.clientActionNonce=t,g.pq("latencyActionInfo",V,{cttAuthInfo:x}))}; Qg.prototype.jspbInfo=function(V,t,x){for(var u="",Z=0;Z=Z.length?(t.append(Z),V-=Z.length):V?(t.append(new Uint8Array(Z.buffer,Z.byteOffset,V)),x.append(new Uint8Array(Z.buffer,Z.byteOffset+V,Z.length-V)),V=0):x.append(Z);return{Ir:t,q0:x}}; g.q.isFocused=function(V){return V>=this.WQ&&V=64&&(this.B.set(V.subarray(0,64-this.S),this.S),t=64-this.S,this.S=0,yCq(this,this.B,0));for(;t+64<=x;t+=64)yCq(this,V,t);t=this.start&&(V=2&&x.ssdaiAdsConfig&&Gd("Unexpected ad placement renderers length",V.slot,null,{length:u.length});u.some(function(Z){var P,K,R,f;return!!((P=Z.renderer)==null?0:(K=P.linearAdSequenceRenderer)==null?0:(R=K.linearAds)==null?0:R.length)||!((f=Z.renderer)==null||!f.instreamVideoAdRenderer)})||Pv8(V)})}; OD.prototype.w7=function(){H6l(this.J)};sD.prototype.CM=function(){var V=this;lO8(this.S,function(){var t=kH(V.slot.clientMetadata,"metadata_type_ad_break_request_data");return t.cueProcessedMs?V.J.get().fetch({uY:t.getAdBreakUrl,Do:new g.b4(t.Tf,t.Gf),cueProcessedMs:t.cueProcessedMs}):V.J.get().fetch({uY:t.getAdBreakUrl,Do:new g.b4(t.Tf,t.Gf)})})}; sD.prototype.w7=function(){H6l(this.S)};N9.prototype.CM=function(){var V=this.slot.clientMetadata,t,x=(t=this.slot.fulfilledLayout)!=null?t:kH(V,"metadata_type_fulfilled_layout");v$q(this.callback,this.slot,x)}; N9.prototype.w7=function(){MH(this.callback,this.slot,new h("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")};Ay.prototype.build=function(V,t){return t.fulfilledLayout||pm(t,{Ww:["metadata_type_fulfilled_layout"]})?new N9(V,t):this.N(V,t)};g.A(S$,Ay); S$.prototype.N=function(V,t){if(pm(t,{Ww:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new OD(V,t,this.J,this.S,this.I_,this.WX,this.TU,this.h6,this.zd);if(pm(t,{Ww:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new sD(V,t,this.J,this.S,this.I_,this.WX);throw new h("Unsupported slot with type: "+t.slotType+" and client metadata: "+iC(t.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.A(GR,Ay);GR.prototype.N=function(V,t){throw new h("Unsupported slot with type: "+t.slotType+" and client metadata: "+iC(t.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.q=Kxj.prototype;g.q.Dz=function(){return this.slot}; g.q.K1=function(){return this.layout}; g.q.init=function(){}; g.q.release=function(){}; g.q.startRendering=function(V){if(V.layoutId!==this.layout.layoutId)this.callback.nG(this.slot,V,new bC("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 t=kH(V.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.qj(this.slot,V),Ivq(this.N, this.slot,t)):Gd("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,V)}}; g.q.Jn=function(V,t){V.layoutId!==this.layout.layoutId?this.callback.nG(this.slot,V,new bC("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.UZ(this.slot,V,t),RlT(this),fF1(this))};g.A(M9,g.Np);g.q=M9.prototype;g.q.Dz=function(){return this.S.slot}; g.q.K1=function(){return this.S.layout}; g.q.init=function(){this.N.get().addListener(this)}; g.q.release=function(){this.N.get().removeListener(this);this.dispose()}; g.q.EQ=function(){}; g.q.tC=function(){}; g.q.UQ=function(){}; g.q.Q3=function(){}; g.q.startRendering=function(V){var t=this;Fm(this.S,V,function(){return void t.kB()})}; g.q.kB=function(){this.N.get().kB(this.J)}; g.q.Jn=function(V,t){var x=this;Fm(this.S,V,function(){var u=x.N.get();x24(u,x.J,3);x.J=[];x.callback.UZ(x.slot,V,t)})}; g.q.NP=function(){this.N.uD()||this.N.get().removeListener(this);g.Np.prototype.NP.call(this)}; g.Zz.Object.defineProperties(M9.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.S.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.S.layout}}});ra.prototype.oB=function(V,t){t=t===void 0?!1:t;var x=(this.N.get(V)||[]).concat();if(t=t&&EWw(V)){var u=this.N.get(t);u&&x.push.apply(x,g.v(u))}ob(this,V,x);this.J.add(V);t&&this.J.add(t)}; ra.prototype.r6=function(V,t){t=t===void 0?!1:t;if(!this.J.has(V)){var x=t&&EWw(V);x&&(t=!this.J.has(x));this.oB(V,t)}};g.A(ODL,Ov);g.A(l4,M9);g.q=l4.prototype;g.q.m5=function(V,t){m_("ads-engagement-panel-layout",V,this.B.get().ib,this.TU.get(),this.W,this.G,this.Dz(),this.K1(),t)}; g.q.startRendering=function(V){zR(this.j8,this.Dz(),this.K1(),g.l(this.K1().renderingContent,bn),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(t,x,u,Z,P){return new ODL(t,x,u,Z,P)},this.J); M9.prototype.startRendering.call(this,V)}; g.q.qj=function(V,t){this.G===t.layoutId&&(this.W===null?this.W=this.TU.get().KJ():Gd("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.q.UZ=function(){}; g.q.xQ=function(){}; g.q.Gm=function(){}; g.q.uT=function(){}; g.q.vr=function(){}; g.q.Br=function(){}; g.q.v0=function(){}; g.q.B0=function(){}; g.q.kQ=function(){}; g.q.zo=function(){}; g.q.PG=function(){}; g.q.NP=function(){Lw(this.g6(),this);M9.prototype.NP.call(this)};g.A(NN4,Ov);g.A(Hu,M9);g.q=Hu.prototype;g.q.m5=function(V,t){m_("banner-image",V,this.B.get().ib,this.TU.get(),this.W,this.G,this.Dz(),this.K1(),t)}; g.q.startRendering=function(V){zR(this.j8,this.Dz(),this.K1(),g.l(this.K1().renderingContent,fd),this.callback,"metadata_type_banner_image_layout_view_model",function(t,x,u,Z,P){return new NN4(t,x,u,Z,P)},this.J); M9.prototype.startRendering.call(this,V)}; g.q.qj=function(V,t){this.G===t.layoutId&&(this.W===null?this.W=this.TU.get().KJ():Gd("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.q.UZ=function(){}; g.q.xQ=function(){}; g.q.Gm=function(){}; g.q.uT=function(){}; g.q.vr=function(){}; g.q.Br=function(){}; g.q.v0=function(){}; g.q.B0=function(){}; g.q.kQ=function(){}; g.q.zo=function(){}; g.q.PG=function(){}; g.q.NP=function(){Lw(this.g6(),this);M9.prototype.NP.call(this)};g.A(UD,Ov);g.A(Dg,M9);g.q=Dg.prototype;g.q.m5=function(V,t){m_("action-companion",V,this.B.get().ib,this.TU.get(),this.W,this.G,this.Dz(),this.K1(),t)}; g.q.startRendering=function(V){zR(this.j8,this.Dz(),this.K1(),g.l(this.K1().renderingContent,Kd),this.callback,"metadata_type_action_companion_ad_renderer",function(t,x,u,Z,P){return new UD(t,x,u,Z,P)},this.J); M9.prototype.startRendering.call(this,V)}; g.q.qj=function(V,t){t.layoutId===this.layout.layoutId?this.j8.r6("impression"):this.G===t.layoutId&&(this.W===null?this.W=this.TU.get().KJ():Gd("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.q.UZ=function(){}; g.q.xQ=function(){}; g.q.Gm=function(){}; g.q.uT=function(){}; g.q.vr=function(){}; g.q.Br=function(){}; g.q.v0=function(){}; g.q.B0=function(){}; g.q.kQ=function(){}; g.q.zo=function(){}; g.q.PG=function(){}; g.q.NP=function(){Lw(this.g6(),this);M9.prototype.NP.call(this)};g.A(Svw,Ov);g.A(e$,M9);g.q=e$.prototype;g.q.m5=function(V,t){m_("image-companion",V,this.B.get().ib,this.TU.get(),this.W,this.G,this.Dz(),this.K1(),t)}; g.q.startRendering=function(V){zR(this.j8,this.Dz(),this.K1(),g.l(this.K1().renderingContent,q6),this.callback,"metadata_type_image_companion_ad_renderer",function(t,x,u,Z,P){return new Svw(t,x,u,Z,P)},this.J); M9.prototype.startRendering.call(this,V)}; g.q.qj=function(V,t){t.layoutId===this.layout.layoutId?this.j8.r6("impression"):this.G===t.layoutId&&(this.W===null?this.W=this.TU.get().KJ():Gd("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.q.UZ=function(){}; g.q.xQ=function(){}; g.q.Gm=function(){}; g.q.uT=function(){}; g.q.vr=function(){}; g.q.Br=function(){}; g.q.v0=function(){}; g.q.B0=function(){}; g.q.kQ=function(){}; g.q.zo=function(){}; g.q.PG=function(){}; g.q.NP=function(){Lw(this.g6(),this);M9.prototype.NP.call(this)};g.A(IF4,Ov);g.A(da,M9);g.q=da.prototype;g.q.m5=function(V,t){m_("shopping-companion",V,this.B.get().ib,this.TU.get(),this.W,this.G,this.Dz(),this.K1(),t)}; g.q.startRendering=function(V){zR(this.j8,this.Dz(),this.K1(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(t,x,u,Z,P){return new IF4(t,x,u,Z,P)},this.J); M9.prototype.startRendering.call(this,V)}; g.q.qj=function(V,t){t.layoutId===this.layout.layoutId?this.j8.r6("impression"):this.G===t.layoutId&&(this.W===null?this.W=this.TU.get().KJ():Gd("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.q.UZ=function(){}; g.q.xQ=function(){}; g.q.Gm=function(){}; g.q.uT=function(){}; g.q.vr=function(){}; g.q.Br=function(){}; g.q.v0=function(){}; g.q.B0=function(){}; g.q.kQ=function(){}; g.q.zo=function(){}; g.q.PG=function(){}; g.q.NP=function(){Lw(this.g6(),this);M9.prototype.NP.call(this)};g.A(Jy,M9);g.q=Jy.prototype;g.q.startRendering=function(V){zR(this.j8,this.Dz(),this.K1(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(t,x,u,Z,P){return new UD(t,x,u,Z,P)},this.J); M9.prototype.startRendering.call(this,V)}; g.q.qj=function(){}; g.q.UZ=function(){}; g.q.xQ=function(){}; g.q.Gm=function(){}; g.q.uT=function(){}; g.q.vr=function(){}; g.q.Br=function(){}; g.q.v0=function(){}; g.q.B0=function(){}; g.q.kQ=function(){}; g.q.zo=function(){}; g.q.PG=function(){}; g.q.NP=function(){Lw(this.g6(),this);M9.prototype.NP.call(this)}; g.q.m5=function(){};g.q=XSq.prototype;g.q.Dz=function(){return this.slot}; g.q.K1=function(){return this.layout}; g.q.init=function(){this.h6.get().addListener(this);this.h6.get().Ub.push(this);var V=kH(this.layout.clientMetadata,"metadata_type_video_length_seconds"),t=kH(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Ym(this.layout.Rt)&&xh(this.Nj.get(),this.layout.layoutId,{zQ:t,hp:V,listener:this})}; g.q.release=function(){this.h6.get().removeListener(this);C78(this.h6.get(),this);Ym(this.layout.Rt)&&uE(this.Nj.get(),this.layout.layoutId)}; g.q.startRendering=function(V){this.callback.qj(this.slot,V)}; g.q.Jn=function(V,t){S6j(this.WX.get())&&!this.J&&(this.j8.r6("abandon"),this.J=!0);this.callback.UZ(this.slot,V,t)}; g.q.Pi=function(V){switch(V.id){case "part2viewed":this.j8.r6("start");this.j8.r6("impression");break;case "videoplaytime25":this.j8.r6("first_quartile");break;case "videoplaytime50":this.j8.r6("midpoint");break;case "videoplaytime75":this.j8.r6("third_quartile");break;case "videoplaytime100":S6j(this.WX.get())?this.J||(this.j8.r6("complete"),this.J=!0):this.j8.r6("complete");j$(this.j8)&&cu(this.j8,Infinity,!0);G_s(this.WX.get())&&Cm(this.S,Infinity,!0);break;case "engagedview":j$(this.j8)||this.j8.r6("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Gd("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.q.onVolumeChange=function(){}; g.q.R4=function(){}; g.q.E8=function(){}; g.q.dj=function(){}; g.q.onFullscreenToggled=function(){}; g.q.Z0=function(){}; g.q.vL=function(){}; g.q.RS=function(V){G_s(this.WX.get())&&Cm(this.S,V*1E3,!1);j$(this.j8)&&cu(this.j8,V*1E3,!1)}; g.q.Kc=function(){}; g.q.Vs=function(){this.j8.r6("active_view_measurable")}; g.q.PH=function(){this.j8.r6("active_view_viewable")}; g.q.A$=function(){this.j8.r6("active_view_fully_viewable_audible_half_duration")}; g.q.bS=function(){this.j8.r6("audio_measurable")}; g.q.L2=function(){this.j8.r6("audio_audible")};g.A(hy,M9);g.q=hy.prototype;g.q.init=function(){M9.prototype.init.call(this);var V=kH(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),t={adsClientData:this.layout.Vt};this.J.push(new B0(V,this.layout.layoutId,kH(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),t,!0))}; g.q.Pv=function(){this.W||this.h6.get().resumeVideo(1)}; g.q.startRendering=function(V){M9.prototype.startRendering.call(this,V);$h(this.h6.get(),"ad-showing");this.callback.qj(this.slot,V);this.G.WN=this}; g.q.Jn=function(V,t){M9.prototype.Jn.call(this,V,t);bE(this.h6.get(),"ad-showing");eT(this.G,this)}; g.q.m5=function(V){switch(V){case "ad-info-icon-button":(this.W=this.h6.get().Mn(1))||this.h6.get().pauseVideo();break;case "visit-advertiser":this.h6.get().pauseVideo()}}; g.q.NP=function(){M9.prototype.NP.call(this)};g.A(wa,Ov);g.A(Vr,M9);g.q=Vr.prototype;g.q.startRendering=function(V){zR(this.j8,this.Dz(),this.K1(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(t,x,u,Z,P){return new wa(t,x,u,Z,P)},this.J); M9.prototype.startRendering.call(this,V)}; g.q.qj=function(){}; g.q.UZ=function(){}; g.q.xQ=function(){}; g.q.Gm=function(){}; g.q.uT=function(){}; g.q.vr=function(){}; g.q.Br=function(){}; g.q.v0=function(){}; g.q.B0=function(){}; g.q.kQ=function(){}; g.q.zo=function(){}; g.q.PG=function(){}; g.q.NP=function(){Lw(this.g6(),this);M9.prototype.NP.call(this)}; g.q.m5=function(){};g.A(tu,Ov);g.A(xY,M9);xY.prototype.init=function(){M9.prototype.init.call(this);this.J.push(new tu(g.l(this.layout.renderingContent,YG),this.layout.layoutId,{adsClientData:this.layout.Vt}))}; xY.prototype.m5=function(){mO(this.W.get(),this.G)&&Bu(this.TU.get(),3)}; xY.prototype.startRendering=function(V){M9.prototype.startRendering.call(this,V);this.callback.qj(this.slot,V)}; xY.prototype.NP=function(){M9.prototype.NP.call(this)};g.A(uS,Ov);g.A(Zi,M9);Zi.prototype.init=function(){M9.prototype.init.call(this);var V=g.l(this.layout.renderingContent,NF)||kH(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),t=Xm(this.j8);this.J.push(new uS(V,t,this.layout.layoutId,{adsClientData:this.layout.Vt},!0,!0))}; Zi.prototype.startRendering=function(V){M9.prototype.startRendering.call(this,V);this.callback.qj(this.slot,V)}; Zi.prototype.m5=function(V,t){if(t===this.layout.layoutId)switch(V){case "skip-button":var x;(V=(x=kH(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:x.current)&&V.yn(this.Dz(),this.layout)}}; Zi.prototype.NP=function(){M9.prototype.NP.call(this)};K5.prototype.build=function(V,t,x,u){if(Pb(u,{Ww:["metadata_type_ad_break_response_data"],Xz:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new Kxj(V,x,u,this.S,this.N,this.J);throw new bC("Unsupported layout with type: "+u.layoutType+" and client metadata: "+iC(u.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.A(mp0,Ov);g.A(qF,M9);g.q=qF.prototype;g.q.m5=function(V,t){m_("ads-engagement-panel",V,this.B.get().ib,this.TU.get(),this.W,this.G,this.Dz(),this.K1(),t)}; g.q.startRendering=function(V){zR(this.j8,this.Dz(),this.K1(),g.l(this.K1().renderingContent,Ru),this.callback,"metadata_type_ads_engagement_panel_renderer",function(t,x,u,Z,P){return new mp0(t,x,u,Z,P)},this.J); M9.prototype.startRendering.call(this,V)}; g.q.qj=function(V,t){t.layoutId===this.layout.layoutId?this.j8.r6("impression"):this.G===t.layoutId&&(this.W===null?this.W=this.TU.get().KJ():Gd("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.q.UZ=function(){}; g.q.xQ=function(){}; g.q.Gm=function(){}; g.q.uT=function(){}; g.q.vr=function(){}; g.q.Br=function(){}; g.q.v0=function(){}; g.q.B0=function(){}; g.q.kQ=function(){}; g.q.zo=function(){}; g.q.PG=function(){}; g.q.NP=function(){Lw(this.g6(),this);M9.prototype.NP.call(this)};g.A(Ra,M9);g.q=Ra.prototype;g.q.m5=function(V,t){m_("top-banner-image-text-icon-buttoned",V,this.B.get().ib,this.TU.get(),this.W,this.G,this.Dz(),this.K1(),t)}; g.q.startRendering=function(V){zR(this.j8,this.Dz(),this.K1(),g.l(this.K1().renderingContent,$G),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(t,x,u,Z,P){return new wa(t,x,u,Z,P)},this.J); M9.prototype.startRendering.call(this,V)}; g.q.qj=function(V,t){this.G===t.layoutId&&(this.W===null?this.W=this.TU.get().KJ():Gd("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.q.UZ=function(){}; g.q.xQ=function(){}; g.q.Gm=function(){}; g.q.uT=function(){}; g.q.vr=function(){}; g.q.Br=function(){}; g.q.v0=function(){}; g.q.B0=function(){}; g.q.kQ=function(){}; g.q.zo=function(){}; g.q.PG=function(){}; g.q.NP=function(){Lw(this.g6(),this);M9.prototype.NP.call(this)};aFK.prototype.build=function(V,t,x,u){if(Pb(u,Yvl())||g.l(u.renderingContent,Ru)!==void 0)return new qF(V,x,u,this.w9,this.TU,this.g6,this.Nj,this.J);if(Pb(u,Azh())||g.l(u.renderingContent,Kd)!==void 0)return new Dg(V,x,u,this.w9,this.TU,this.g6,this.Nj,this.J);if(Pb(u,GP8())||g.l(u.renderingContent,q6)!==void 0)return new e$(V,x,u,this.w9,this.TU,this.g6,this.Nj,this.J);if(Pb(u,vWz()))return new da(V,x,u,this.w9,this.TU,this.g6,this.Nj,this.J);if(Pb(u,gWl()))return new Jy(V,x,u,this.w9,this.TU,this.g6, this.Nj,this.J);if(Pb(u,pSh())||g.l(u.renderingContent,fd)!==void 0)return new Hu(V,x,u,this.w9,this.TU,this.g6,this.Nj,this.J);if(Pb(u,Qzz())||g.l(u.renderingContent,$G)!==void 0)return new Ra(V,x,u,this.w9,this.TU,this.g6,this.Nj,this.J);if(Pb(u,zls()))return new Vr(V,x,u,this.w9,this.TU,this.g6,this.Nj,this.J);if(Pb(u,szh())||g.l(u.renderingContent,bn)!==void 0)return new l4(V,x,u,this.w9,this.TU,this.g6,this.Nj,this.J);throw new bC("Unsupported layout with type: "+u.layoutType+" and client metadata: "+ iC(u.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};rz4.prototype.build=function(V,t,x,u){if(Pb(u,{Ww:["metadata_type_linked_player_bytes_layout_id"],Xz:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new xY(V,x,u,this.w9,this.TU,this.J);throw new bC("Unsupported layout with type: "+u.layoutType+" and client metadata: "+iC(u.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.q=TN9.prototype;g.q.Dz=function(){return this.slot}; g.q.K1=function(){return this.layout}; g.q.init=function(){}; g.q.release=function(){}; g.q.startRendering=function(V){V.layoutId!==this.layout.layoutId?this.callback.nG(this.slot,V,new bC("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.qj(this.slot,V),this.j8.r6("impression"),Js(this.BL,V,"normal"))}; g.q.Jn=function(V,t){V.layoutId!==this.layout.layoutId?this.callback.nG(this.slot,V,new bC("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.UZ(this.slot,V,t)};g.q=oWC.prototype;g.q.Dz=function(){return this.slot}; g.q.K1=function(){return this.layout}; g.q.init=function(){}; g.q.release=function(){}; g.q.startRendering=function(V){V.layoutId!==this.layout.layoutId?this.callback.nG(this.slot,V,new bC("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.qj(this.slot,V),this.j8.r6("impression"),Js(this.BL,V,"normal"))}; g.q.Jn=function(V,t){V.layoutId!==this.layout.layoutId?this.callback.nG(this.slot,V,new bC("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.UZ(this.slot,V,t)};f5.prototype.build=function(V,t,x,u){if(!this.WX.get().U.K().T("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Pb(u,Wxq()))return new TN9(V,x,u,this.TU,this.BL)}else if(Pb(u,{Ww:[],Xz:["LAYOUT_TYPE_FORECASTING"]}))return new oWC(V,x,u,this.TU,this.BL);throw new bC("Unsupported layout with type: "+u.layoutType+" and client metadata: "+iC(u.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.A(yzK,Ov);g.A($Y,M9);g.q=$Y.prototype;g.q.init=function(){M9.prototype.init.call(this);var V=g.l(this.layout.renderingContent,s3)||kH(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),t={adsClientData:this.layout.Vt};this.J.push(new yzK(V,kH(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,t))}; g.q.Pv=function(){this.W||this.h6.get().resumeVideo(2)}; g.q.startRendering=function(V){M9.prototype.startRendering.call(this,V);this.callback.qj(this.slot,V);this.G.WN=this}; g.q.Jn=function(V,t){M9.prototype.Jn.call(this,V,t);eT(this.G,this)}; g.q.m5=function(V){if(mO(this.B.get(),this.L))switch(V){case "visit-advertiser-link":Bu(this.TU.get(),3)}switch(V){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.W||this.h6.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.W=this.h6.get().Mn(2))||this.h6.get().pauseVideo();break;case "visit-advertiser-link":this.h6.get().pauseVideo();jzw(this).Gs();break;case "skip-button":if(V=jzw(this), this.layout.renderingContent&&!Rp(this.layout.clientMetadata,"metadata_type_dai")||!V.hV){var t;(V=(t=kH(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:t.current)&&V.yn(this.Dz(),this.layout)}else Gd("Requesting to skip by LegacyPlayerBytes when components enabled"),V.sz(this.Dz(),this.layout)}}; g.q.NP=function(){M9.prototype.NP.call(this)};g.A(bS,M9);g.q=bS.prototype;g.q.init=function(){M9.prototype.init.call(this);var V=g.l(this.layout.renderingContent,O3)||kH(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),t={adsClientData:this.layout.Vt},x;(x=!!this.layout.renderingContent)||(x=!E3(this).hV);this.J.push(new B0(V,this.layout.layoutId,kH(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),t,x))}; g.q.Pv=function(){this.W||this.h6.get().resumeVideo(2)}; g.q.startRendering=function(V){M9.prototype.startRendering.call(this,V);this.callback.qj(this.slot,V);this.G.WN=this}; g.q.Jn=function(V,t){M9.prototype.Jn.call(this,V,t);eT(this.G,this)}; g.q.m5=function(V){if(mO(this.B.get(),this.L))switch(V){case "visit-advertiser":Bu(this.TU.get(),3)}switch(V){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.W||this.h6.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.W=this.h6.get().Mn(2))||this.h6.get().pauseVideo();break;case "visit-advertiser":this.h6.get().pauseVideo();E3(this).Gs();break;case "skip-button":if(V=E3(this),this.layout.renderingContent&& !Rp(this.layout.clientMetadata,"metadata_type_dai")||!V.hV){var t;(V=(t=kH(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:t.current)&&V.yn(this.Dz(),this.layout)}else Gd("Requesting to skip by LegacyPlayerBytes"),V.sz(this.Dz(),this.layout)}}; g.q.NP=function(){M9.prototype.NP.call(this)};g.A(HDq,Ov);g.A(kY,M9);g.q=kY.prototype;g.q.startRendering=function(V){var t=this;Fm(this.S,V,function(){t.J.push(new HDq(kH(t.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),V.layoutId,V.Vt));t.kB();t.callback.qj(t.slot,V);g.J(tk(t.h6.get(),1),512)&&t.callback.nG(t.Dz(),t.K1(),new bC("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.q.vL=function(){}; g.q.Z0=function(V){if(V.state.isError()){var t;this.callback.nG(this.Dz(),this.K1(),new bC("A player error happened during adNotify",{playerErrorCode:(t=V.state.Mv)==null?void 0:t.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.q.onFullscreenToggled=function(){}; g.q.E8=function(){}; g.q.dj=function(){}; g.q.R4=function(){}; g.q.onVolumeChange=function(){}; g.q.Pi=function(){}; g.q.Kc=function(){}; g.q.m5=function(){};g.A(DpK,Ov);g.A(iS,M9);iS.prototype.init=function(){M9.prototype.init.call(this);var V=g.l(this.layout.renderingContent,p5),t=Xm(this.j8);this.J.push(new DpK(V,t,this.layout.layoutId,{adsClientData:this.layout.Vt}))}; iS.prototype.startRendering=function(V){M9.prototype.startRendering.call(this,V);this.callback.qj(this.slot,V)}; iS.prototype.m5=function(V,t){if(t===this.layout.layoutId)switch(V){case "skip-button":var x;(V=(x=kH(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:x.current)&&V.yn(this.Dz(),this.layout)}}; iS.prototype.NP=function(){M9.prototype.NP.call(this)};el0.prototype.build=function(V,t,x,u){if(V=Au(V,x,u,this.w9,this.h6,this.TU,this.S,this.J,this.WX))return V;throw new bC("Unsupported layout with type: "+u.layoutType+" and client metadata: "+iC(u.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.q=dp0.prototype;g.q.Dz=function(){return this.slot}; g.q.K1=function(){return this.layout}; g.q.init=function(){this.h6.get().addListener(this);this.h6.get().Ub.push(this);var V=kH(this.layout.clientMetadata,"metadata_type_video_length_seconds"),t=kH(this.layout.clientMetadata,"metadata_type_active_view_traffic_type"),x=kH(this.layout.clientMetadata,"metadata_type_active_view_identifier");Ym(this.layout.Rt)&&xh(this.Nj.get(),this.layout.layoutId,{zQ:t,hp:V,listener:this,gt:x})}; g.q.release=function(){this.h6.get().removeListener(this);C78(this.h6.get(),this);Ym(this.layout.Rt)&&uE(this.Nj.get(),this.layout.layoutId)}; g.q.startRendering=function(V){this.callback.qj(this.slot,V)}; g.q.Jn=function(V,t){Ia(this,"abandon");this.callback.UZ(this.slot,V,t)}; g.q.Pi=function(V){switch(V.id){case "part2viewed":this.j8.r6("start");this.j8.r6("impression");break;case "videoplaytime25":this.j8.r6("first_quartile");break;case "videoplaytime50":this.j8.r6("midpoint");break;case "videoplaytime75":this.j8.r6("third_quartile");break;case "videoplaytime100":Ia(this,"complete");j$(this.j8)&&cu(this.j8,Infinity,!0);break;case "engagedview":j$(this.j8)||this.j8.r6("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Gd("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.q.onVolumeChange=function(){}; g.q.R4=function(){}; g.q.E8=function(){}; g.q.dj=function(){}; g.q.onFullscreenToggled=function(){}; g.q.Z0=function(V){this.J||(g.LC(V,4)&&!g.LC(V,2)?nm(this.j8,"pause"):v0(V,4)<0&&!(v0(V,2)<0)&&nm(this.j8,"resume"))}; g.q.vL=function(){}; g.q.RS=function(V){j$(this.j8)&&cu(this.j8,V*1E3,!1)}; g.q.Kc=function(){Ia(this,"swipe")}; g.q.Vs=function(){this.j8.r6("active_view_measurable")}; g.q.PH=function(){this.j8.r6("active_view_viewable")}; g.q.A$=function(){this.j8.r6("active_view_fully_viewable_audible_half_duration")}; g.q.bS=function(){this.j8.r6("audio_measurable")}; g.q.L2=function(){this.j8.r6("audio_audible")};CvL.prototype.build=function(V,t,x,u){t=["metadata_type_ad_placement_config"];for(var Z=g.G(TR()),P=Z.next();!P.done;P=Z.next())t.push(P.value);if(Pb(u,{Ww:t,Xz:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return x.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new dp0(V,x,u,this.h6,this.TU,this.WX,this.Nj):new XSq(V,x,u,this.h6,this.TU,this.v$,this.WX,this.Nj);throw new bC("Unsupported layout with type: "+u.layoutType+" and client metadata: "+iC(u.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory."); };var MF={contentCpn:"",tL:new Map};KP4.prototype.bb=function(V,t){var x={};t=Object.assign({},t,(x.cc=this.J9.vp(),x));this.J9.U.J6(V,t)};var uAr,TL; uAr={Gew:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",OvC:"AUTHENTICATION_MALFORMED",qeP:"AUTHENTICATION_MISSING",XLw:"BAD_REQUEST",JQS:"CAST_SESSION_DEVICE_MISMATCHED",SnC:"CAST_SESSION_VIDEO_MISMATCHED",IDX:"CAST_TOKEN_EXPIRED",wiw:"CAST_TOKEN_FAILED",ick:"CAST_TOKEN_MALFORMED",Nj1:"CGI_PARAMS_MALFORMED",m$w:"CGI_PARAMS_MISSING",s41:"DEVICE_FALLBACK",J5U:"GENERIC_WITH_LINK_AND_CPN",SEs:"ERROR_HDCP",I7w:"LICENSE",i6X:"VIDEO_UNAVAILABLE",f7D:"FORMAT_UNAVAILABLE",hFC:"GEO_FAILURE", y51:"HTML5_AUDIO_RENDERER_ERROR",a71:"GENERIC_WITHOUT_LINK",Cus:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",D9s:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",r5D:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",jO6:"HTML5_SPS_UMP_STATUS_REJECTED",geX:"INVALID_DRM_MESSAGE",aM8:"PURCHASE_NOT_FOUND",CLP:"PURCHASE_REFUNDED",Hxk:"RENTAL_EXPIRED",QzS:"RETRYABLE_ERROR",wxX:"SERVER_ERROR",FhP:"SIGNATURE_EXPIRED",B2C:"STOPPED_BY_ANOTHER_PLAYBACK",GAw:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",T2k:"STREAMING_NOT_ALLOWED", Lh1:"STREAM_LICENSE_NOT_FOUND",xnC:"TOO_MANY_REQUESTS",Khw:"TOO_MANY_REQUESTS_WITH_LINK",sAS:"TOO_MANY_STREAMS_PER_ENTITLEMENT",yu6:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",SMw:"VIDEO_FORBIDDEN",IOs:"VIDEO_NOT_FOUND",g_X:"BROWSER_OR_EXTENSION_ERROR"};TL={}; g.VN=(TL.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.",TL.DEVICE_FALLBACK="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel neste dispositivo.",TL.GENERIC_WITH_LINK_AND_CPN="Ocorreu um erro. Tente novamente mais tarde. (ID de reprodu\u00e7\u00e3o: $CPN) $BEGIN_LINKSaiba mais$END_LINK", TL.LICENSE="Ocorreu um erro ao licenciar este v\u00eddeo.",TL.VIDEO_UNAVAILABLE="V\u00eddeo indispon\u00edvel",TL.FORMAT_UNAVAILABLE="O v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel na qualidade selecionada. Tente novamente mais tarde.",TL.GEO_FAILURE="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel em seu pa\u00eds.",TL.HTML5_AUDIO_RENDERER_ERROR="Erro ao renderizar \u00e1udio. Reinicie seu computador.",TL.GENERIC_WITHOUT_LINK="Ocorreu um erro. Tente novamente mais tarde.",TL.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "Este formato de v\u00eddeo n\u00e3o \u00e9 suportado.",TL.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",TL.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",TL.HTML5_SPS_UMP_STATUS_REJECTED="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK", TL.INVALID_DRM_MESSAGE="A mensagem espec\u00edfica do sistema de DRM (gest\u00e3o de direitos digitais) \u00e9 inv\u00e1lida.",TL.PURCHASE_NOT_FOUND="Este v\u00eddeo requer pagamento.",TL.PURCHASE_REFUNDED="A compra deste v\u00eddeo foi estornada.",TL.RENTAL_EXPIRED="O aluguel deste v\u00eddeo expirou.",TL.CAST_SESSION_DEVICE_MISMATCHED="O dispositivo na sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.",TL.CAST_SESSION_VIDEO_MISMATCHED="O v\u00eddeo da sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.", TL.CAST_TOKEN_FAILED="Sess\u00e3o de transmiss\u00e3o n\u00e3o dispon\u00edvel. Atualize ou tente novamente mais tarde.",TL.CAST_TOKEN_EXPIRED="A sess\u00e3o de transmiss\u00e3o expirou. Atualize.",TL.CAST_TOKEN_MALFORMED="Sess\u00e3o de transmiss\u00e3o inv\u00e1lida. Atualize ou tente novamente mais tarde.",TL.SERVER_ERROR="Ocorreu um erro interno do servidor. Tente novamente mais tarde.",TL.STOPPED_BY_ANOTHER_PLAYBACK="Sua conta est\u00e1 reproduzindo este v\u00eddeo em outro local. Recarregue esta p\u00e1gina para continuar assistindo.", TL.STREAM_LICENSE_NOT_FOUND="Reprodu\u00e7\u00e3o de v\u00eddeo interrompida. Tente novamente.",TL.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Foram utilizados muitos dispositivos/endere\u00e7os IP no per\u00edodo de 24 horas.",TL.STREAMING_NOT_ALLOWED="Reprodu\u00e7\u00e3o n\u00e3o permitida porque este v\u00eddeo est\u00e1 fixado a outro dispositivo.",TL.RETRYABLE_ERROR="Ocorreu um erro tempor\u00e1rio no servidor. Tente novamente mais tarde.",TL.TOO_MANY_REQUESTS="Fa\u00e7a login para assistir este v\u00eddeo.", TL.TOO_MANY_REQUESTS_WITH_LINK="$BEGIN_LINKClique aqui$END_LINK para assistir este v\u00eddeo no YouTube.",TL.TOO_MANY_STREAMS_PER_USER="A reprodu\u00e7\u00e3o foi interrompida porque est\u00e3o sendo exibidos muitos v\u00eddeos da mesma conta.",TL.TOO_MANY_STREAMS_PER_ENTITLEMENT="A reprodu\u00e7\u00e3o foi interrompida porque este v\u00eddeo foi reproduzido em muitos dispositivos.",TL.UNSUPPORTED_DEVICE="A reprodu\u00e7\u00e3o n\u00e3o \u00e9 compat\u00edvel com este dispositivo.",TL.VIDEO_FORBIDDEN= "O acesso a este v\u00eddeo \u00e9 proibido.",TL.VIDEO_NOT_FOUND="N\u00e3o foi poss\u00edvel localizar o v\u00eddeo.",TL.BROWSER_OR_EXTENSION_ERROR="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK",TL);var Z8E;var PNi=g.zY(),Kaj=PNi.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Kaj||Kaj.length<2)Z8E=void 0;else{var q9E=PNi.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Z8E=q9E&&q9E.length===6?Number(q9E[5].replace("_",".")):0}var PB=Z8E,d1=PB>=0;g.A(g.j6,TF);g.j6.prototype.Z=function(V,t,x,u,Z){return TF.prototype.Z.call(this,V,t,x,u,Z)};var WG={},sy=(WG.FAIRPLAY="fairplay",WG.PLAYREADY="playready",WG.WIDEVINE="widevine",WG.CLEARKEY=null,WG.FLASHACCESS=null,WG.UNKNOWN=null,WG.WIDEVINE_CLASSIC=null,WG);lS.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var oA={},IY=(oA.WIDTH={name:"width",video:!0,valid:640,yL:99999},oA.HEIGHT={name:"height",video:!0,valid:360,yL:99999},oA.FRAMERATE={name:"framerate",video:!0,valid:30,yL:9999},oA.BITRATE={name:"bitrate",video:!0,valid:3E5,yL:2E9},oA.EOTF={name:"eotf",video:!0,valid:"bt709",yL:"catavision"},oA.CHANNELS={name:"channels",video:!1,valid:2,yL:99},oA.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",yL:"invalidformat"},oA.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", yL:"nope"},oA.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",yL:"av99.0.05M.08"},oA.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",yL:"invalid"},oA);var RNY=["h","H"],fAr=["9","("],$MY=["9h","(h"],b8Y=["8","*"],E_i=["a","A"],ki$=["o","O"],i8i=["m","M"],O8s=["mac3","MAC3"],sLY=["meac3","MEAC3"],na={},hkC=(na.h=RNY,na.H=RNY,na["9"]=fAr,na["("]=fAr,na["9h"]=$MY,na["(h"]=$MY,na["8"]=b8Y,na["*"]=b8Y,na.a=E_i,na.A=E_i,na.o=ki$,na.O=ki$,na.m=i8i,na.M=i8i,na.mac3=O8s,na.MAC3=O8s,na.meac3=sLY,na.MEAC3=sLY,na),Npn=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),lgK=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var cG={},C5=(cG["0"]="f",cG["160"]="h",cG["133"]="h",cG["134"]="h",cG["135"]="h",cG["136"]="h",cG["137"]="h",cG["264"]="h",cG["266"]="h",cG["138"]="h",cG["298"]="h",cG["299"]="h",cG["304"]="h",cG["305"]="h",cG["214"]="h",cG["216"]="h",cG["374"]="h",cG["375"]="h",cG["140"]="a",cG["141"]="ah",cG["327"]="sa",cG["258"]="m",cG["380"]="mac3",cG["328"]="meac3",cG["161"]="H",cG["142"]="H",cG["143"]="H",cG["144"]="H",cG["222"]="H",cG["223"]="H",cG["145"]="H",cG["224"]="H",cG["225"]="H",cG["146"]="H",cG["226"]= "H",cG["227"]="H",cG["147"]="H",cG["384"]="H",cG["376"]="H",cG["385"]="H",cG["377"]="H",cG["149"]="A",cG["261"]="M",cG["381"]="MAC3",cG["329"]="MEAC3",cG["598"]="9",cG["278"]="9",cG["242"]="9",cG["243"]="9",cG["244"]="9",cG["775"]="9",cG["776"]="9",cG["777"]="9",cG["778"]="9",cG["779"]="9",cG["780"]="9",cG["781"]="9",cG["782"]="9",cG["783"]="9",cG["247"]="9",cG["248"]="9",cG["353"]="9",cG["355"]="9",cG["356"]="9",cG["271"]="9",cG["577"]="9",cG["313"]="9",cG["579"]="9",cG["272"]="9",cG["302"]="9", cG["303"]="9",cG["407"]="9",cG["408"]="9",cG["308"]="9",cG["315"]="9",cG["330"]="9h",cG["331"]="9h",cG["332"]="9h",cG["333"]="9h",cG["334"]="9h",cG["335"]="9h",cG["336"]="9h",cG["337"]="9h",cG["338"]="so",cG["600"]="o",cG["250"]="o",cG["251"]="o",cG["774"]="o",cG["194"]="*",cG["195"]="*",cG["220"]="*",cG["221"]="*",cG["196"]="*",cG["197"]="*",cG["279"]="(",cG["280"]="(",cG["317"]="(",cG["318"]="(",cG["273"]="(",cG["274"]="(",cG["357"]="(",cG["358"]="(",cG["275"]="(",cG["359"]="(",cG["360"]="(",cG["276"]= "(",cG["583"]="(",cG["584"]="(",cG["314"]="(",cG["585"]="(",cG["561"]="(",cG["277"]="(",cG["361"]="(h",cG["362"]="(h",cG["363"]="(h",cG["364"]="(h",cG["365"]="(h",cG["366"]="(h",cG["591"]="(h",cG["592"]="(h",cG["367"]="(h",cG["586"]="(h",cG["587"]="(h",cG["368"]="(h",cG["588"]="(h",cG["562"]="(h",cG["409"]="(",cG["410"]="(",cG["411"]="(",cG["412"]="(",cG["557"]="(",cG["558"]="(",cG["394"]="1",cG["395"]="1",cG["396"]="1",cG["397"]="1",cG["398"]="1",cG["399"]="1",cG["720"]="1",cG["721"]="1",cG["400"]= "1",cG["401"]="1",cG["571"]="1",cG["402"]="1",cG["694"]="1h",cG["695"]="1h",cG["696"]="1h",cG["697"]="1h",cG["698"]="1h",cG["699"]="1h",cG["700"]="1h",cG["701"]="1h",cG["702"]="1h",cG["703"]="1h",cG["386"]="3",cG["387"]="w",cG["406"]="6",cG["787"]="1",cG["788"]="1",cG["645"]="(",cG["646"]="(",cG["647"]="(",cG["648"]="(",cG["649"]="(",cG["650"]="(",cG["651"]="(",cG["652"]="(",cG["653"]="(",cG["654"]="(",cG["655"]="(",cG["656"]="(",cG["657"]="(",cG["658"]="(",cG["659"]="(",cG["660"]="(",cG["661"]="(", cG["662"]="(",cG["663"]="(",cG["664"]="(",cG["665"]="(",cG["666"]="(",cG["667"]="(",cG["668"]="(",cG["669"]="(",cG["670"]="(",cG["671"]="(",cG["672"]="(",cG["673"]="(",cG["674"]="(h",cG["675"]="(h",cG["676"]="(h",cG["677"]="(h",cG["678"]="(h",cG["679"]="(h",cG["680"]="(h",cG["681"]="(h",cG["682"]="(h",cG["683"]="(h",cG["684"]="(h",cG["685"]="(h",cG["686"]="(h",cG["687"]="(h",cG["688"]="A",cG["689"]="A",cG["690"]="A",cG["691"]="MEAC3",cG["773"]="i",cG["806"]="I",cG["805"]="I",cG);var jZ={},YGC=(jZ.STEREO_LAYOUT_UNKNOWN=0,jZ.STEREO_LAYOUT_LEFT_RIGHT=1,jZ.STEREO_LAYOUT_TOP_BOTTOM=2,jZ);var lK,RY;lK={};g.U3=(lK.auto=0,lK.tiny=144,lK.light=144,lK.small=240,lK.medium=360,lK.large=480,lK.hd720=720,lK.hd1080=1080,lK.hd1440=1440,lK.hd2160=2160,lK.hd2880=2880,lK.highres=4320,lK);RY={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var e6="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Di.prototype.isHdr=function(){return this.S==="smpte2084"||this.S==="arib-std-b67"};Ju.prototype.JZ=function(){return this.containerType===2}; Ju.prototype.isEncrypted=function(){return!!this.Pw}; Ju.prototype.OL=function(){return!!this.audio}; Ju.prototype.Z8=function(){return!!this.video};g.A(lQ,g.Np);g.q=lQ.prototype;g.q.appendBuffer=function(V,t,x){if(this.R5.Ob()!==this.appendWindowStart+this.start||this.R5.Bf()!==this.appendWindowEnd+this.start||this.R5.SB()!==this.timestampOffset+this.start)this.R5.supports(1),this.R5.nU(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.R5.q3(this.timestampOffset+this.start);this.R5.appendBuffer(V,t,x)}; g.q.abort=function(){this.R5.abort()}; g.q.remove=function(V,t){this.R5.remove(V+this.start,t+this.start)}; g.q.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.q.clear=function(){this.R5.clear()}; g.q.nU=function(V,t){this.appendWindowStart=V;this.appendWindowEnd=t}; g.q.Ng=function(){return this.timestampOffset+this.start}; g.q.Ob=function(){return this.appendWindowStart}; g.q.Bf=function(){return this.appendWindowEnd}; g.q.q3=function(V){this.timestampOffset=V}; g.q.SB=function(){return this.timestampOffset}; g.q.O1=function(V){V=this.R5.O1(V===void 0?!1:V);return pF(V,this.start,this.end)}; g.q.VN=function(){return this.R5.VN()}; g.q.l0=function(){return this.R5.l0()}; g.q.VW=function(){return this.R5.VW()}; g.q.qg=function(){return this.R5.qg()}; g.q.Fk=function(){this.R5.Fk()}; g.q.J$=function(V){return this.R5.J$(V)}; g.q.GX=function(){return this.R5.GX()}; g.q.dO=function(){return this.R5.dO()}; g.q.B1=function(){return this.R5.B1()}; g.q.NA=function(V,t,x){this.R5.NA(V,t,x)}; g.q.WM=function(V,t,x){this.R5.WM(V,t,x)}; g.q.fF=function(V,t){return this.R5.fF(V,t)}; g.q.supports=function(V){return this.R5.supports(V)}; g.q.Ih=function(){return this.R5.Ih()}; g.q.isView=function(){return!0}; g.q.KN=function(){return this.R5.KN()?this.isActive:!1}; g.q.isLocked=function(){return this.GO&&!this.isActive}; g.q.nI=function(V){V=this.R5.nI(V);V.vw=this.start+"-"+this.end;return V}; g.q.xz=function(){return this.R5.xz()}; g.q.ox=function(){return this.R5.ox()}; g.q.gr=function(){return this.R5.gr()}; g.q.NP=function(){this.R5.PC(this.n0);g.Np.prototype.NP.call(this)};var AL=!1;g.A(UG,g.Np);g.q=UG.prototype;g.q.appendBuffer=function(V,t,x){this.Nm=!1;x&&(this.le=x);if(V.length){var u;((u=this.bq)==null?0:u.appendBuffer)?this.bq.appendBuffer(V):this.bq?this.bq.append(V):this.Tm&&this.Tm.webkitSourceAppend(this.id,V)}t&&(t.isEncrypted()&&(this.h4=this.le),t.type===3&&(this.Qe=t),this.O2.push(t.N6()),this.O2.length>4&&this.O2.shift());this.aI&&(this.aI.length>=2||V.length>1048576?delete this.aI:this.aI.push(V))}; g.q.abort=function(){try{this.bq?this.bq.abort():this.Tm&&this.Tm.webkitSourceAbort(this.id)}catch(V){ss9&&g.jv(new g.xe("Error while abort the source buffer: "+V.name+", "+V.message))}this.le=this.Qe=null}; g.q.remove=function(V,t,x){this.Nm=!1;var u;if((u=this.bq)==null?0:u.remove)x&&x({b:EG(this.O1()),s:V,e:t}),this.bq.remove(V,t)}; g.q.removeAll=function(){this.remove(this.Ob(),this.Bf())}; g.q.clear=function(){this.VW()||(this.abort(),this.removeAll(),this.h4=this.le=this.Qe=null,this.appendWindowStart=this.timestampOffset=0,this.J2=bQ([],[]),this.Nm=!1,this.aI=Hq?[]:void 0,this.Dn=!0)}; g.q.Ob=function(){if(AL&&this.Z8)return this.appendWindowStart;var V;return((V=this.bq)==null?void 0:V.appendWindowStart)||0}; g.q.Bf=function(){var V;return((V=this.bq)==null?void 0:V.appendWindowEnd)||0}; g.q.nU=function(V,t){this.bq&&(AL&&this.Z8?(this.appendWindowStart=V,this.bq.appendWindowEnd=t):V>this.Ob()?(this.bq.appendWindowEnd=t,this.bq.appendWindowStart=V):(this.bq.appendWindowStart=V,this.bq.appendWindowEnd=t))}; g.q.Ng=function(){return this.timestampOffset}; g.q.q3=function(V){AL?this.timestampOffset=V:this.supports(1)&&(this.bq.timestampOffset=V)}; g.q.SB=function(){return AL?this.timestampOffset:this.supports(1)?this.bq.timestampOffset:0}; g.q.O1=function(V){if(V===void 0?0:V)return this.Nm||this.VN()||(this.J2=this.O1(!1),this.Nm=!0),this.J2;try{return this.bq?this.bq.buffered:this.Tm?this.Tm.webkitSourceBuffered(this.id):bQ([0],[Infinity])}catch(t){return bQ([],[])}}; g.q.VN=function(){var V;return((V=this.bq)==null?void 0:V.updating)||!1}; g.q.VW=function(){return this.Dn}; g.q.qg=function(){return!this.Dn&&this.VN()}; g.q.Fk=function(){this.Dn=!1}; g.q.J$=function(V){var t=V==null?void 0:V.lD;V=V==null?void 0:V.containerType;return!t&&!V||t===this.lD&&V===this.containerType}; g.q.GX=function(){return this.le}; g.q.dO=function(){return this.h4}; g.q.fF=function(V,t){return this.containerType!==V||this.lD!==t}; g.q.NA=function(V,t,x){if(this.containerType!==V||x&&this.fF(V,x))this.supports(4),DH()&&this.bq.changeType(t),x&&(this.lD=x);this.containerType=V}; g.q.WM=function(V,t,x){this.containerType&&this.fF(V,t)&&DH()&&this.bq.changeType(x);this.containerType=V;this.lD=t}; g.q.Ih=function(){return this.Qe}; g.q.isView=function(){return!1}; g.q.supports=function(V){switch(V){case 1:var t;return((t=this.bq)==null?void 0:t.timestampOffset)!==void 0;case 0:var x;return!((x=this.bq)==null||!x.appendBuffer);case 2:var u;return!((u=this.bq)==null||!u.remove);case 3:var Z,P;return!!(((Z=this.bq)==null?0:Z.addEventListener)&&((P=this.bq)==null?0:P.removeEventListener));case 4:return!(!this.bq||!this.bq.changeType);default:return!1}}; g.q.KN=function(){return!this.VN()}; g.q.isLocked=function(){return!1}; g.q.nI=function(V){V.to=this.SB();V.up=this.VN();var t,x=((t=this.bq)==null?void 0:t.appendWindowStart)||0,u;t=((u=this.bq)==null?void 0:u.appendWindowEnd)||Infinity;V.aw=x.toFixed(3)+"-"+t.toFixed(3);return V}; g.q.l0=function(){var V;return((V=this.bq)==null?void 0:V.writeHead)||0}; g.q.xz=function(){for(var V={},t=0;t=7&&qm0(this,function(){g.FV(function(){LPw(V,V.getCurrentTime(),0)},500)}); return t}; g.q.seekTo=function(V){this.IM()>0&&(d1&&PB<4&&(V=Math.max(.1,V)),this.setCurrentTime(V))}; g.q.oM=function(){if(!this.S&&this.VC)if(this.VC.G)try{var V;hK(this,{l:"mer",sr:(V=this.S8)==null?void 0:V.M$(),rs:Vl(this.VC)});this.VC.clear();this.S=this.VC;this.VC=void 0}catch(t){V=new g.xe("Error while clearing Media Source in MediaElement: "+t.name+", "+t.message),g.jv(V),this.stopVideo()}else this.stopVideo()}; g.q.stopVideo=function(){var V=this;if(!this.S){var t;(t=this.VC)==null||Gdw(t);if(kgK){if(!this.N){var x=new xJ;x.then(void 0,function(){}); this.N=x;i$h&&this.pause();g.FV(function(){V.N===x&&(KO(V),x.resolve())},200)}}else KO(this)}}; g.q.y$=function(){var V=this.oN();return sG(V)>0&&this.getDuration()?OG(V,this.getCurrentTime()):0}; g.q.bZ=function(){var V=this.getDuration();return V===Infinity?1:V?this.y$()/V:0}; g.q.nI=function(){try{var V=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:EG(this.PD(),",",3),vbu:EG(this.oN()),vbs:EG(this.kT()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.IM(),vns:""+this.sU(),vec:""+this.xE(),vemsg:this.Nv(),vvol:""+this.getVolume(),vdom:""+ +this.XL(),vsrc:""+ +!!this.QV(),vw:""+V.width,vh:""+V.height}}catch(t){return{}}}; g.q.hasError=function(){return this.xE()>0}; g.q.addEventListener=function(V,t){this.W.listen(V,t,!1,this);this.Rm(V)}; g.q.removeEventListener=function(V,t){this.W.vk(V,t,!1,this)}; g.q.dispatchEvent=function(V){if(this.N&&V.type==="pause")return!1;if(O$1){var t,x=((t=V.J)==null?void 0:t.timeStamp)||Infinity;t=x>performance.now()?x-Date.now()+performance.now():x;x=this.S||this.VC;if((x==null?0:x.VW())||t<=((x==null?void 0:x.B)||0)){var u;hK(this,{l:"mede",sr:(u=this.S8)==null?void 0:u.M$(),et:V.type});return!1}if(this.mm)return hK(this,{l:"medes",et:V.type}),x&&V.type==="seeking"&&(x.B=performance.now(),this.mm=!1),!1}return this.W.dispatchEvent(V)}; g.q.Qq=function(){this.B=!1}; g.q.Of=function(){this.B=!0;this.oI(!0)}; g.q.zF=function(){this.B&&!this.Kn()&&this.oI(!0)}; g.q.t9=function(V){return!!V&&V.m0()===this.m0()}; g.q.NP=function(){this.L&&this.removeEventListener("volumechange",this.zF);kgK&&KO(this);g.c.prototype.NP.call(this)}; var kgK=!1,i$h=!1,O$1=!1,g9T=!1;g.q=g.RM.prototype;g.q.isPaused=function(){return g.J(this,4)}; g.q.isPlaying=function(){return g.J(this,8)&&!g.J(this,512)&&!g.J(this,64)&&!g.J(this,2)}; g.q.isOrWillBePlaying=function(){return g.J(this,8)&&!g.J(this,2)&&!g.J(this,1024)}; g.q.isCued=function(){return g.J(this,64)&&!g.J(this,8)&&!g.J(this,4)}; g.q.isBuffering=function(){return g.J(this,1)&&!g.J(this,2)}; g.q.isError=function(){return g.J(this,128)}; g.q.isSuspended=function(){return g.J(this,512)}; g.q.nH=function(){return g.J(this,64)&&g.J(this,4)}; g.q.toString=function(){return"PSt."+this.state.toString(16)}; var HG={},UF=(HG.BUFFERING="buffering-mode",HG.CUED="cued-mode",HG.ENDED="ended-mode",HG.PAUSED="paused-mode",HG.PLAYING="playing-mode",HG.SEEKING="seeking-mode",HG.UNSTARTED="unstarted-mode",HG);g.A(pO,g.c);g.q=pO.prototype;g.q.VL=function(){return this.N}; g.q.Dz=function(){return this.slot}; g.q.K1=function(){return this.layout}; g.q.init=function(){var V=kH(this.layout.clientMetadata,"metadata_type_video_length_seconds"),t=kH(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Ym(this.layout.Rt)&&xh(this.Nj.get(),this.layout.layoutId,{zQ:t,hp:V,listener:this,DP:this.hZ()});yHs(this.TU.get(),this);V=this.CJ;t=this.layout.layoutId;var x={DP:this.hZ()};V.J.set(t,x);this.zI()}; g.q.Fd=function(){}; g.q.release=function(){Ym(this.layout.Rt)&&uE(this.Nj.get(),this.layout.layoutId);jBT(this.TU.get(),this);this.CJ.J.delete(this.layout.layoutId);this.n2()}; g.q.E7=function(){}; g.q.Vi=function(){}; g.q.startRendering=function(V){zf(As(this));if(SJ(this,V)){var t=this.J;Bb(t.params.Mf.WX.get(),!0)&&PPz(t,"p_sr",{});GO(this);this.vC(V);this.hZ()||this.Gx(!1)}}; g.q.qj=function(V,t){if(t.layoutId===this.layout.layoutId){this.Xc="rendering";this.S=this.h6.get().isMuted()||this.h6.get().getVolume()===0;this.r6("impression");this.r6("start");if(this.h6.get().isMuted()){gW(this,"mute");var x;V=((x=Nu(this))==null?void 0:x.muteCommands)||[];h3(this.v$.get(),V,this.layout.layoutId)}if(this.h6.get().isFullscreen()){this.oB("fullscreen");var u;x=((u=Nu(this))==null?void 0:u.fullscreenCommands)||[];h3(this.v$.get(),x,this.layout.layoutId)}this.hZ()||(u=this.hJ.get(), u.N&&!u.S&&(u.G=!1,u.S=!0,u.actionType!=="ad_to_video"&&(VF("pbs",void 0,u.actionType),g.Bc("finalize_all_timelines")&&ey0(u.actionType))));this.M3(1);this.uj(t);var Z;t=((Z=Nu(this))==null?void 0:Z.impressionCommands)||[];h3(this.v$.get(),t,this.layout.layoutId)}}; g.q.F3=function(V,t,x){this.L={d0:3,Uu:V==="load_timeout"?402:400,errorMessage:t.message};this.r6("error");var u;V=((u=Nu(this))==null?void 0:u.errorCommands)||[];h3(this.v$.get(),V,this.layout.layoutId);this.hZ()||this.WF.nG(this.slot,this.layout,t,x)}; g.q.rY=function(){if(this.Xc==="rendering"){gW(this,"pause");var V,t=((V=Nu(this))==null?void 0:V.pauseCommands)||[];h3(this.v$.get(),t,this.layout.layoutId);this.M3(2)}}; g.q.jk=function(){if(this.Xc==="rendering"){gW(this,"resume");var V,t=((V=Nu(this))==null?void 0:V.resumeCommands)||[];h3(this.v$.get(),t,this.layout.layoutId)}}; g.q.AT=function(V,t){t=t===void 0?!1:t;if(this.Xc==="rendering"){var x={currentTimeSec:V,flush:t};mQ(this.J,"p_ip",x);cu(this.j8,V*1E3,t);this.S||cu(this.j8,V*1E3,t===void 0?!1:t);var u=this.pQ();if(u){u/=1E3;if(V>=u*.25||t)this.r6("first_quartile"),mQ(this.J,"p_fq",x);if(V>=u*.5||t)this.r6("midpoint"),mQ(this.J,"p_sq",x);if(V>=u*.75||t)this.r6("third_quartile"),mQ(this.J,"p_tq",x);this.WX.get().U.K().experiments.MP("enable_progress_command_flush_on_kabuki")?Cm(this.W,V*1E3,t):Cm(this.W,V*1E3,QTq(this)? t:!1)}}}; g.q.vp=function(){var V;return((V=IM(this.PX.get(),1))==null?void 0:V.clientPlaybackNonce)||""}; g.q.ZH=function(V,t){V.layoutId!==this.layout.layoutId?this.WF.nG(this.slot,V,new bC("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"):t()}; g.q.UZ=function(V,t,x){if(t.layoutId===this.layout.layoutId)switch(this.Xc="not_rendering",this.layoutExitReason=void 0,this.hZ()||(V=x!=="normal"||this.position+1===this.B)&&this.Gx(V),this.DF(x),this.M3(0),x){case "abandoned":if(yq(this.j8,"impression")){var u,Z=((u=Nu(this))==null?void 0:u.abandonCommands)||[];h3(this.v$.get(),Z,this.layout.layoutId)}break;case "normal":u=((Z=Nu(this))==null?void 0:Z.completeCommands)||[];h3(this.v$.get(),u,this.layout.layoutId);break;case "skipped":var P;u=((P= Nu(this))==null?void 0:P.skipCommands)||[];h3(this.v$.get(),u,this.layout.layoutId)}}; g.q.H3=function(){return this.layout.layoutId}; g.q.tH=function(){return this.L}; g.q.Vs=function(){if(this.Xc==="rendering"){this.j8.r6("active_view_measurable");var V,t=((V=Nu(this))==null?void 0:V.activeViewMeasurableCommands)||[];h3(this.v$.get(),t,this.layout.layoutId)}}; g.q.A$=function(){if(this.Xc==="rendering"){this.j8.r6("active_view_fully_viewable_audible_half_duration");var V,t=((V=Nu(this))==null?void 0:V.activeViewFullyViewableAudibleHalfDurationCommands)||[];h3(this.v$.get(),t,this.layout.layoutId)}}; g.q.PH=function(){if(this.Xc==="rendering"){this.j8.r6("active_view_viewable");var V,t=((V=Nu(this))==null?void 0:V.activeViewViewableCommands)||[];h3(this.v$.get(),t,this.layout.layoutId)}}; g.q.L2=function(){if(this.Xc==="rendering"){this.j8.r6("audio_audible");var V,t=((V=Nu(this))==null?void 0:V.activeViewAudioAudibleCommands)||[];h3(this.v$.get(),t,this.layout.layoutId)}}; g.q.bS=function(){if(this.Xc==="rendering"){this.j8.r6("audio_measurable");var V,t=((V=Nu(this))==null?void 0:V.activeViewAudioMeasurableCommands)||[];h3(this.v$.get(),t,this.layout.layoutId)}}; g.q.Gx=function(V){this.hJ.get().Gx(kH(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,V,this.position,this.B,!1)}; g.q.onFullscreenToggled=function(V){if(this.Xc==="rendering")if(V){this.oB("fullscreen");var t,x=((t=Nu(this))==null?void 0:t.fullscreenCommands)||[];h3(this.v$.get(),x,this.layout.layoutId)}else this.oB("end_fullscreen"),t=((x=Nu(this))==null?void 0:x.endFullscreenCommands)||[],h3(this.v$.get(),t,this.layout.layoutId)}; g.q.onVolumeChange=function(){if(this.Xc==="rendering")if(this.h6.get().isMuted()){gW(this,"mute");var V,t=((V=Nu(this))==null?void 0:V.muteCommands)||[];h3(this.v$.get(),t,this.layout.layoutId)}else gW(this,"unmute"),V=((t=Nu(this))==null?void 0:t.unmuteCommands)||[],h3(this.v$.get(),V,this.layout.layoutId)}; g.q.E8=function(){}; g.q.dj=function(){}; g.q.R4=function(){}; g.q.Pi=function(){}; g.q.Kc=function(){}; g.q.oB=function(V){this.j8.oB(V,!this.S)}; g.q.r6=function(V){this.j8.r6(V,!this.S)}; g.q.hZ=function(){var V=kH(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return V===void 0?(Gd("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.WX.get().hZ(V)};g.A(YJ,pO);g.q=YJ.prototype;g.q.zI=function(){}; g.q.n2=function(){var V=this.TU.get();V.g_===this&&(V.g_=null);this.jH.stop()}; g.q.E7=function(){this.jH.stop();pO.prototype.rY.call(this)}; g.q.Vi=function(){aM(this);pO.prototype.jk.call(this)}; g.q.pQ=function(){return kH(this.K1().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.q.Jn=function(V,t){var x=this;this.ZH(V,function(){x.Xc!=="rendering_stop_requested"&&(x.Xc="rendering_stop_requested",x.layoutExitReason=t,vv(x,t),x.jH.stop())})}; g.q.AJ=function(){var V=Date.now(),t=V-this.Be;this.Be=V;this.N$+=t;this.N$>=this.pQ()?this.oo():(this.AT(this.N$/1E3),Ql(this,this.N$))}; g.q.DF=function(){}; g.q.vL=function(){}; g.A(rW,YJ);g.q=rW.prototype;g.q.Z0=function(V){if(this.Xc!=="not_rendering"){V=LO(this,V);var t=this.h6.get().getPresentingPlayerType()===2;this.Xc==="rendering_start_requested"?t&&S6(V)&&this.MN():t?g.LC(V,2)?Gd("Receive player ended event during MediaBreak",this.Dz(),this.K1()):FE(this,V):this.Q4()}}; g.q.vC=function(){mh4(this);wNC(this.h6.get());this.TU.get().g_=this;h4("pbp")||h4("pbs")||VF("pbp");h4("pbp","watch")||h4("pbs","watch")||VF("pbp",void 0,"watch");this.MN()}; g.q.uj=function(V){this.hJ.get();var t=kH(V.clientMetadata,"metadata_type_ad_placement_config").kind,x=this.position===0;V=kH(V.clientMetadata,"metadata_type_linked_in_player_layout_type");V={adBreakType:Mu(t),adType:HCC(V)};var u=void 0;x?t!=="AD_PLACEMENT_KIND_START"&&(u="video_to_ad"):u="ad_to_ad";dq("ad_mbs",void 0,u);g.C4(V,u);aM(this)}; g.q.Q4=function(){this.fM()}; g.q.oo=function(){rqw(this);this.fM()}; g.A(TO,YJ);g.q=TO.prototype;g.q.Z0=function(V){this.Xc!=="not_rendering"&&(V=LO(this,V),FE(this,V))}; g.q.vC=function(){Gd("Not used in SSAP")}; g.q.uj=function(){aM(this)}; g.q.Q4=function(){Gd("Not used in SSAP")}; g.q.oo=function(){rqw(this);this.WF.x3(this.Dz(),this.K1(),"normal")}; g.A(Wv,TO);Wv.prototype.Jn=function(V,t){var x=this;this.ZH(V,function(){L5(x.N,t)&&(x.Xc="rendering_stop_requested",x.layoutExitReason=t,vv(x,t),x.jH.stop())})}; Wv.prototype.startRendering=function(V){zf(As(this));SJ(this,V)&&(GO(this),this.TU.get().g_=this)};g.A(cv,pO);g.q=cv.prototype;g.q.Q4=function(){this.fM()}; g.q.Z0=function(V){if(this.Xc!=="not_rendering"){V=LO(this,V);var t=this.h6.get().getPresentingPlayerType()===2;this.Xc==="rendering_start_requested"?t&&S6(V)&&this.MN():!t||g.LC(V,2)?this.fM():FE(this,V)}}; g.q.zI=function(){kH(this.K1().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=kH(this.K1().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.q.n2=function(){kH(this.K1().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.As){var V=this.context.Mf,t=this.As,x=this.K1().layoutId;if(Bb(V.WX.get(),!0)){var u={};V.bb("mccru",(u.cid=t,u.p_ac=x,u))}this.ZT.get().removeCueRange(this.As)}this.As=void 0;var Z;(Z=this.kh)==null||Z.dispose();this.OF&&this.OF.dispose()}; g.q.vC=function(V){var t=oM(this.WX.get()),x=nO(this.WX.get());if(t&&x&&!this.hZ()){x=kH(V.clientMetadata,"metadata_type_preload_player_vars");var u=g.S7(this.WX.get().U.K().experiments,"html5_preload_wait_time_secs");x&&this.OF&&this.OF.start(u*1E3)}o90(this,V);mh4(this);t?(x=this.Xi.get(),V=kH(V.clientMetadata,"metadata_type_player_vars"),x.U.loadVideoByPlayerVars(V,!1,2)):Rx0(this.Xi.get(),kH(V.clientMetadata,"metadata_type_player_vars"));var Z;(Z=this.kh)==null||Z.start();t||this.Xi.get().U.playVideo(2)}; g.q.uj=function(){var V;(V=this.kh)==null||V.stop();this.As="adcompletioncuerange:"+this.K1().layoutId;this.ZT.get().addCueRange(this.As,0x7ffffffffffff,0x8000000000000,!1,this,2,2);V=this.context.Mf;var t=this.As,x=this.K1().layoutId;if(Bb(V.WX.get(),!0)){var u={};V.bb("mccr",(u.cid=t,u.p_ac=x,u))}(this.adCpn=B20(this))||Gd("Media layout confirmed started, but ad CPN not set.");this.jB.get().BY("onAdStart",this.adCpn);this.Z$=Date.now()}; g.q.pQ=function(){var V;return(V=IM(this.PX.get(),2))==null?void 0:V.BbX}; g.q.Gs=function(){this.j8.oB("clickthrough")}; g.q.Jn=function(V,t){var x=this;this.ZH(V,function(){if(x.Xc!=="rendering_stop_requested"){x.Xc="rendering_stop_requested";x.layoutExitReason=t;vv(x,t);var u;(u=x.kh)==null||u.stop();x.OF&&x.OF.stop();n94(x)}})}; g.q.onCueRangeEnter=function(V){if(V!==this.As)Gd("Received CueRangeEnter signal for unknown layout.",this.Dz(),this.K1(),{cueRangeId:V});else{var t=this.context.Mf,x=this.K1().layoutId;if(Bb(t.WX.get(),!0)){var u={};t.bb("mccre",(u.cid=V,u.p_ac=x,u))}this.ZT.get().removeCueRange(this.As);this.As=void 0;xm(this.context.WX.get(),"html5_ssap_flush_at_stop_rendering")&&this.hZ()||(V=kH(this.K1().clientMetadata,"metadata_type_video_length_seconds"),this.AT(V,!0),this.r6("complete"))}}; g.q.DF=function(V){V!=="abandoned"&&this.jB.get().BY("onAdComplete");this.jB.get().BY("onAdEnd",this.adCpn)}; g.q.onCueRangeExit=function(){}; g.q.vL=function(V){this.Xc==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&V>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.h6.get().lz(!0),this.AT(V))}; g.q.AT=function(V,t){pO.prototype.AT.call(this,V,t===void 0?!1:t);t=Date.now()-this.Z$;var x=V*1E3,u={contentCpn:this.vp(),adCpn:B20(this)};if(V>=5&&!this.IX){var Z=t<1E3?0:1;pC(Z,"i.k_",{metadata:u,VQ:t,Pj:Math.floor(x/1E3)});u$("IKDSTAT",Z);Z===0&&cqL(this)&&this.jB.get().BY("onAbnormalityDetected");this.IX=!0}this.WX.get().U.K().experiments.MP("enable_ik_opt")&&V-this.X1>=5&&(Z=t=2||(this.OZ.Jn(this.layout,t),V=xm(this.params.context.WX.get(),"html5_ssap_pass_transition_reason")&&t==="abandoned",this.Fo()&&!V&&(xm(this.params.context.WX.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(t)||Gd("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:t})),this.zd.get().finishSegmentByCpn(this.layout.layoutId, IM(this.PX.get(),1).clientPlaybackNonce,zO(t,this.params.context.WX))),this.h6.get().removeListener(this),this.MG()&&Fw(this.OZ.VL())&&this.pO.UZ(this.slot,this.layout,this.OZ.VL().J))}; g.q.GM=function(V,t,x){uDL({cpn:V,J9:this.PX.get(),QM:!0});this.K1().layoutId!==V||xm(this.params.context.WX.get(),"html5_ssap_pass_transition_reason")&&x===5||(this.OZ.VL().currentState<2&&(V=Bv(x,this.params.context.WX),V==="error"?this.pO.nG(this.slot,this.layout,new bC("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:x},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):Js(this.tZ, this.layout,V)),xm(this.params.context.WX.get(),"html5_ssap_exit_without_waiting_for_transition")||this.pO.UZ(this.slot,this.layout,this.OZ.VL().J))};g.A(Uc,g.c);g.q=Uc.prototype;g.q.Dz=function(){return this.slot}; g.q.K1=function(){return this.layout}; g.q.KS=function(){}; g.q.Me=function(){return this.MR[this.qL]}; g.q.u9=function(){return this.qL}; g.q.E7=function(V,t){var x=this.Me();t.layoutId!==eJ(x,V,t)?Gd("pauseLayout for a PlayerBytes layout that is not currently active",V,t):x.E7()}; g.q.Vi=function(V,t){var x=this.Me();t.layoutId!==eJ(x,V,t)?Gd("resumeLayout for a PlayerBytes layout that is not currently active",V,t):x.Vi()}; g.q.sz=function(V,t){var x=this.Me();CP4(this,V,t);Jqw(x,V,t)&&this.FD(x.Dz(),x.K1(),"skipped")}; g.q.yn=function(V,t){var x=this.Me();h$h(this);w0K(x,V,t)&&(V=Vt1(this,x,V,t),V!==void 0&&(this.hZ()?Gd("Should not happen. Should delete"):xoh(this,x.Dz(),x.K1(),V)))}; g.q.AG=function(V,t){var x=Object.assign({},Do(this),{layoutId:t.layoutId}),u=x.layoutId,Z=x.QM;if(x.DP){var P={};Xw(x.J9,"wrse",(P.ec=u,P.is=Z,P.ctp=gw(u),P))}rY(this.wI,V,t)}; g.q.qj=function(V,t){var x;(x=this.Me())==null||x.qj(V,t)}; g.q.UZ=function(V,t,x){t.layoutId===this.K1().layoutId&&(this.oV=!1,Lw(this.g6(),this));var u;(u=this.Me())==null||u.UZ(V,t,x)}; g.q.vL=function(V){var t;(t=this.Me())==null||t.vL(V)}; g.q.gO=function(V,t,x){this.u9()===-1&&(this.callback.qj(this.slot,this.layout),this.qL++);var u=this.Me();u?(u.F3(V,t,x),this.hZ()&&this.callback.nG(this.slot,this.layout,t,x)):Gd("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.u9()),layoutId:this.K1().layoutId})}; g.q.onFullscreenToggled=function(V){var t;(t=this.Me())==null||t.onFullscreenToggled(V)}; g.q.E8=function(V){var t;(t=this.Me())==null||t.E8(V)}; g.q.R4=function(V){var t;(t=this.Me())==null||t.R4(V)}; g.q.onVolumeChange=function(){var V;(V=this.Me())==null||V.onVolumeChange()}; g.q.TL=function(V,t,x){TJ(this.wI,V,t,x)}; g.q.CV=function(V){V.startRendering(V.K1())}; g.q.init=function(){var V=kH(this.K1().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");V&&(V.current=this);if(this.MR.length<1)throw new h("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.MR.length)});if(V=kH(this.K1().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))V.current=this;V=g.G(this.MR);for(var t=V.next();!t.done;t=V.next())t=t.value,t.init(),Ln1(this.wI,this.slot,t.K1()),Fnw(this.wI,this.slot,t.K1()); if(this.hZ())for(this.PX.get().addListener(this),Jz9(dhw(this),this.PX.get()),V=dhw(this),V=g.G(V),t=V.next();!t.done;t=V.next())this.DR(t.value)}; g.q.DR=function(V){var t=kH(V.clientMetadata,"metadata_type_player_vars");t?(V.layoutType!=="LAYOUT_TYPE_MEDIA"&&Gd("Non-video ad contains playerVars",this.slot,V),this.Xi.get().addPlayerResponseForAssociation({playerVars:t})):(V=Uh0(V),this.Xi.get().addPlayerResponseForAssociation({qN:V}))}; g.q.release=function(){var V=kH(this.K1().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");V&&(V.current=null);if(V=kH(this.K1().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))V.current=null;V=g.G(this.MR);for(var t=V.next();!t.done;t=V.next())t=t.value,Mvh(this.wI,this.slot,t.K1()),t.release();this.hZ()&&(this.PX.get().removeListener(this),hlT())}; g.q.ZH=function(V){return V.layoutId!==this.K1().layoutId?(this.callback.nG(this.Dz(),V,new bC("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.K1().layoutId+("and LayoutType: "+this.K1().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.q.cn=function(){this.h6.get().addListener(this);vn(this.g6(),this)}; g.q.Z0=function(V){if(V.state.isError()){var t,x;this.gO((t=V.state.Mv)==null?void 0:t.errorCode,new bC("There was a player error during this media layout.",{playerErrorCode:(x=V.state.Mv)==null?void 0:x.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(t=this.Me())&&t.Z0(V)}; g.q.hZ=function(){var V=kH(this.Dz().clientMetadata,"metadata_type_eligible_for_ssap");return V===void 0?(Gd("Expected SSAP eligibility in PlayerBytes slots",this.Dz(),this.K1()),!1):this.WX.get().hZ(V)}; g.q.dj=function(){}; g.q.xQ=function(){}; g.q.Gm=function(){}; g.q.uT=function(){}; g.q.vr=function(){}; g.q.Br=function(){}; g.q.v0=function(){}; g.q.B0=function(){}; g.q.kQ=function(){}; g.q.zo=function(){}; g.q.PG=function(){}; g.q.Pi=function(){}; g.q.Kc=function(){}; g.A(hs,Uc);g.q=hs.prototype;g.q.PU=function(V,t,x){this.FD(V,t,x)}; g.q.V6=function(V,t){this.FD(V,t,"error")}; g.q.FD=function(V,t,x){var u=this;tt4(this,V,t,x,function(){dW(u,u.u9()+1)})}; g.q.startRendering=function(V){this.ZH(V)&&(this.cn(),ixs(this.hJ.get()),AHh(this.WX.get())||wNC(this.h6.get()),this.u9()===-1&&dW(this,this.u9()+1))}; g.q.Jn=function(V,t){var x=this;this.oV=!0;this.u9()===this.MR.length?this.callback.UZ(this.slot,this.layout,t):(V=this.Me(),V.Jn(V.K1(),t),this.vT=function(){x.callback.UZ(x.slot,x.layout,t)}); this.h6.get().U.eN();Rx0(this.Xi.get(),{});V=tk(this.h6.get(),1);V.isPaused()&&!g.J(V,2)&&this.h6.get().playVideo();this.h6.get().removeListener(this);this.oV&&uQq(this)}; g.q.GM=function(){}; g.q.B_=function(){}; g.q.x3=function(){}; g.A(wW,Uc);g.q=wW.prototype;g.q.PU=function(V,t,x){V=Object.assign({},Do(this),{layoutId:t.layoutId,layoutExitReason:x});t=V.layoutId;x=V.layoutExitReason;var u={};Xw(V.J9,"prse",(u.xc=t,u.ler=x,u.ctp=gw(t),u))}; g.q.V6=function(){Gd("onSubLayoutError in SSAP")}; g.q.FD=function(){Gd("exitSubLayoutAndPlayNext in SSAP")}; g.q.Me=function(){return this.EL}; g.q.u9=function(){var V=this;return this.MR.findIndex(function(t){var x;return t.K1().layoutId===((x=V.EL)==null?void 0:x.K1().layoutId)})}; g.q.CV=function(V){SP(this.EL===void 0,"replacing another adapter");this.EL=V;V.startRendering(V.K1())}; g.q.TL=function(V,t,x){TJ(this.wI,V,t,x);var u;SP(t.layoutId===((u=this.EL)==null?void 0:u.K1().layoutId),"currentAdapter does not match exiting layout",{slot:V?"slot: "+V.slotType:"",subLayout:Aq(t)})&&(this.EL=void 0)}; g.q.release=function(){Uc.prototype.release.call(this);SP(this.EL===void 0,"currentAdapter is still active during release");this.EL=void 0}; g.q.Fo=function(){return this.h6.get().getPresentingPlayerType()===2}; g.q.Jn=function(V,t){function x(){VT(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(t)||Gd("Composite stopRendering: Unexpected layout exit reason",this.slot,V,{layoutExitReason:t}))} function u(){this.EL&&tr(this,this.EL,t);if(this.Fo()&&(!VT(this)||t!=="abandoned")){x.call(this);var P;var K=((P=this.PX.get().U.getVideoData())==null?void 0:P.clientPlaybackNonce)||"";P=IM(this.PX.get(),1).clientPlaybackNonce;this.zd.get().finishSegmentByCpn(K,P,zO(t,this.WX))}Z4L(this,t)} function Z(){if(this.EL){var P=this.EL;P.VL().currentState<2&&P.Jn(P.K1(),t);P=VT(this)&&t==="abandoned";this.Fo()&&!P&&(x.call(this),this.zd.get().finishSegmentByCpn(this.EL.K1().layoutId,IM(this.PX.get(),1).clientPlaybackNonce,zO(t,this.WX)))}} SP(V.layoutId===this.K1().layoutId,"StopRendering for wrong layout")&&L5(this.EH.S,t)&&(this.MG()?u.call(this):Z.call(this))}; g.q.UZ=function(V,t,x){Uc.prototype.UZ.call(this,V,t,x);t.layoutId===this.K1().layoutId&&this.h6.get().removeListener(this)}; g.q.vp=function(){return IM(this.PX.get(),1).clientPlaybackNonce}; g.q.GM=function(V,t,x){uDL(Object.assign({},Do(this),{cpn:V}));if(!VT(this)||x!==5)if(this.MG()){if(this.EL&&this.EL.K1().layoutId!==t){var u=this.EL.K1().layoutId;u!==V&&Gd("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:u,exitingCpn:V,enteringCpn:t});V=Bv(x,this.WX);tr(this,this.EL,V)}else this.EL&&Gd("onClipExited: active layout is entering again");t===this.vp()&&Ki0(this,x)}else{if(this.EL&&this.EL.K1().layoutId===V)PYj(this,this.EL,x);else{var Z;Gd("Exiting cpn does not match active cpn", this.slot,(u=this.EL)==null?void 0:u.K1(),{exitingCpn:V,transitionReason:x,activeCpn:(Z=this.EL)==null?void 0:Z.K1().layoutId})}t===this.vp()&&(this.EL!==void 0&&(Gd("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Aq(this.EL.K1())}),PYj(this,this.EL,x)),Ki0(this,x),Z4L(this,this.EH.S.J))}}; g.q.MG=function(){return xm(this.WX.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.q.startRendering=function(V){this.ZH(V)&&(V=this.EH,SP(V.J===1,"tickStartRendering: state is not initial"),V.J=2,this.cn())}; g.q.B_=function(V){xhK(Object.assign({},Do(this),{cpn:V}));var t=this.MR.find(function(x){return x.K1().layoutId===V}); t?(this.EH.J!==2&&(TCs(this.Vc,this.slot.slotId),SP(this.EH.J===2,"Expect started"),this.callback.qj(this.slot,this.layout)),this.CV(t),rY(this.wI,this.slot,t.K1())):qr4(this,V)}; g.q.sz=function(V,t){CP4(this,V,t);var x=this.Me();x?Jqw(x,V,t)&&RWs(this,"skipped"):fjq(this,"onSkipRequested")}; g.q.yn=function(V,t){var x;a:{if(x=this.Me()){if(h$h(this),w0K(x,V,t)&&(V=Vt1(this,x,V,t),V!==void 0)){x={Q9:x,WZy:this.MR[V]};break a}}else fjq(this,"SkipWithAdPodSkip");x=void 0}if(V=x)x=V.Q9,t=V.WZy,V=x.K1().layoutId,this.MG()?tr(this,x,"skipped"):x.Jn(x.K1(),"skipped"),x=t.K1().layoutId,this.zd.get().finishSegmentByCpn(V,x,zO("skipped",this.WX))}; g.q.AG=function(){Gd("Not used in html5_ssap_fix_layout_exit")}; g.q.Z0=function(V){var t;(t=this.Me())==null||t.Z0(V)}; g.q.gO=function(){Gd("Not used in html5_ssap_fix_layout_exit")}; g.q.x3=function(V,t,x){var u;if(((u=this.Me())==null?void 0:u.K1().layoutId)!==t.layoutId)return void Gd("requestToExitSubLayout: wrong layout");RWs(this,x)};g.A(xA,g.c);g.q=xA.prototype;g.q.Dz=function(){return this.OZ.Dz()}; g.q.K1=function(){return this.OZ.K1()}; g.q.init=function(){var V=kH(this.K1().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");V&&(V.current=this);this.zI()}; g.q.zI=function(){this.OZ.init()}; g.q.release=function(){var V=kH(this.K1().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");V&&(V.current=null);this.n2()}; g.q.n2=function(){this.OZ.release()}; g.q.E7=function(){this.OZ.E7()}; g.q.Vi=function(){this.OZ.Vi()}; g.q.sz=function(V,t){Gd("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Dz(),this.K1(),{requestingSlot:V,requestingLayout:t})}; g.q.startRendering=function(V){V.layoutId!==this.K1().layoutId?this.callback.nG(this.Dz(),V,new bC("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.K1().layoutId+("and LayoutType: "+this.K1().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.h6.get().addListener(this),vn(this.g6(),this),ixs(this.hJ.get()),AHh(this.WX.get())||wNC(this.h6.get()),this.OZ.startRendering(V))}; g.q.Jn=function(V,t){this.oV=!0;this.OZ.Jn(V,t);this.h6.get().U.eN();Rx0(this.Xi.get(),{});V=tk(this.h6.get(),1);V.isPaused()&&!g.J(V,2)&&this.h6.get().playVideo();this.h6.get().removeListener(this);this.oV&&this.OZ.Q4()}; g.q.qj=function(V,t){this.OZ.qj(V,t)}; g.q.UZ=function(V,t,x){t.layoutId===this.K1().layoutId&&(this.oV=!1,Lw(this.g6(),this));this.OZ.UZ(V,t,x);t.layoutId===this.K1().layoutId&&CO(this.hJ.get())}; g.q.vL=function(V){this.OZ.vL(V)}; g.q.Z0=function(V){if(V.state.isError()){var t,x;this.gO((t=V.state.Mv)==null?void 0:t.errorCode,new bC("There was a player error during this media layout.",{playerErrorCode:(x=V.state.Mv)==null?void 0:x.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.OZ.Z0(V)}; g.q.gO=function(V,t,x){this.OZ.F3(V,t,x)}; g.q.onFullscreenToggled=function(V){this.OZ.onFullscreenToggled(V)}; g.q.E8=function(V){this.OZ.E8(V)}; g.q.R4=function(V){this.OZ.R4(V)}; g.q.onVolumeChange=function(){this.OZ.onVolumeChange()}; g.q.dj=function(){}; g.q.xQ=function(){}; g.q.Gm=function(){}; g.q.uT=function(){}; g.q.vr=function(){}; g.q.Br=function(){}; g.q.v0=function(){}; g.q.B0=function(){}; g.q.kQ=function(){}; g.q.zo=function(){}; g.q.PG=function(){}; g.q.Pi=function(){}; g.q.Kc=function(){};g.q=u_.prototype;g.q.Dz=function(){return this.slot}; g.q.K1=function(){return this.layout}; g.q.init=function(){this.pR.get().addListener(this);this.h6.get().addListener(this);var V=kH(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var t=kH(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.W){var x=this.pR.get().Yi.slice(-1)[0];x!==void 0&&(V=x.startSecs*1E3,t=(x.startSecs+x.To)*1E3)}this.Fd(V,t);var u;x=(u=this.PX.get().fH)==null?void 0:u.clientPlaybackNonce;u=this.layout.Vt.adClientDataEntry;Z9(this.TU.get(),{daiStateTrigger:{filledAdsDurationMs:t-V,contentCpn:x, adClientData:u}});var Z=this.pR.get();Z=E10(Z.N,V,t);Z!==null&&(Z9(this.TU.get(),{daiStateTrigger:{filledAdsDurationMs:Z-V,contentCpn:x,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:u}}),this.zd.get().fQ(Z,t))}; g.q.release=function(){this.n2();this.pR.get().removeListener(this);this.h6.get().removeListener(this)}; g.q.startRendering=function(){this.vC();this.callback.qj(this.slot,this.layout)}; g.q.Jn=function(V,t){this.fW(t);this.driftRecoveryMs!==null&&(PV(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(k4C(this)-kH(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.h6.get().U.d2()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.UZ(this.slot,this.layout,t)}; g.q.V5=function(){return!1}; g.q.Jc=function(V){var t=kH(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),x=kH(this.layout.clientMetadata,"metadata_type_layout_exit_ms");V*=1E3;if(t<=V&&V0&&Wn(this.J(),t)}; g.q.Gm=function(V){this.G.delete(V.slotId);for(var t=[],x=g.G(this.B$.values()),u=x.next();!u.done;u=x.next()){u=u.value;var Z=u.trigger;Z instanceof tZ&&Z.triggeringSlotId===V.slotId&&t.push(u)}t.length>0&&Wn(this.J(),t)}; g.q.uT=function(V){for(var t=[],x=g.G(this.B$.values()),u=x.next();!u.done;u=x.next()){u=u.value;var Z=u.trigger;Z instanceof HV&&Z.slotType===V.slotType&&Z.J!==V.slotId&&t.push(u)}t.length>0&&Wn(this.J(),t)}; g.q.vr=function(V){this.N.add(V.slotId);for(var t=[],x=g.G(this.B$.values()),u=x.next();!u.done;u=x.next())u=u.value,u.trigger instanceof CZ&&V.slotId===u.trigger.triggeringSlotId&&t.push(u);t.length>0&&Wn(this.J(),t)}; g.q.Br=function(V){this.N.delete(V.slotId);this.W.add(V.slotId);for(var t=[],x=g.G(this.B$.values()),u=x.next();!u.done;u=x.next())if(u=u.value,u.trigger instanceof Jr)V.slotId===u.trigger.triggeringSlotId&&t.push(u);else if(u.trigger instanceof QT){var Z=u.trigger;V.slotId===Z.slotId&&this.S.has(Z.triggeringLayoutId)&&t.push(u)}t.length>0&&Wn(this.J(),t)}; g.q.v0=function(V){for(var t=[],x=g.G(this.B$.values()),u=x.next();!u.done;u=x.next())u=u.value,u.trigger instanceof hr&&V.slotId===u.trigger.triggeringSlotId&&t.push(u);t.length>0&&Wn(this.J(),t)}; g.q.B0=function(V){for(var t=[],x=g.G(this.B$.values()),u=x.next();!u.done;u=x.next())u=u.value,u.trigger instanceof wt&&V.slotId===u.trigger.triggeringSlotId&&t.push(u);t.length>0&&Wn(this.J(),t)}; g.q.kQ=function(V,t){this.B.add(t.layoutId)}; g.q.zo=function(V,t){this.B.delete(t.layoutId)}; g.q.qj=function(V,t){this.S.add(t.layoutId);for(var x=[],u=g.G(this.B$.values()),Z=u.next();!Z.done;Z=u.next())if(Z=Z.value,Z.trigger instanceof ak)t.layoutId===Z.trigger.triggeringLayoutId&&x.push(Z);else if(Z.trigger instanceof l_){var P=Z.trigger;V.slotType===P.slotType&&t.layoutType===P.layoutType&&t.layoutId!==P.J&&x.push(Z)}else Z.trigger instanceof QT&&(P=Z.trigger,t.layoutId===P.triggeringLayoutId&&this.W.has(P.slotId)&&x.push(Z));x.length>0&&Wn(this.J(),x)}; g.q.UZ=function(V,t,x){this.S.delete(t.layoutId);V=[];for(var u=g.G(this.B$.values()),Z=u.next();!Z.done;Z=u.next())if(Z=Z.value,Z.trigger instanceof T$&&t.layoutId===Z.trigger.triggeringLayoutId&&V.push(Z),Z.trigger instanceof rt){var P=Z.trigger;t.layoutId===P.triggeringLayoutId&&P.J.includes(x)&&V.push(Z)}V.length>0&&Wn(this.J(),V)}; g.q.PG=function(){}; g.q.ZD=function(){this.W.clear()}; g.q.sJ=function(){};g.A(nn,g.c);nn.prototype.oO=function(V,t,x,u){if(this.B$.has(t.triggerId))throw new h("Tried to register duplicate trigger for slot.");if(!(t instanceof mJ))throw new h("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in CloseRequestedTriggerAdapter");this.B$.set(t.triggerId,new Z2(V,t,x,u))}; nn.prototype.XB=function(V){this.B$.delete(V.triggerId)};g.A(yI,g.c);yI.prototype.oO=function(V,t,x,u){if(this.B$.has(t.triggerId))throw new h("Tried to register duplicate trigger for slot.");if(!(t instanceof BV||t instanceof D9))throw new h("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.B$.set(t.triggerId,new Z2(V,t,x,u))}; yI.prototype.XB=function(V){this.B$.delete(V.triggerId)}; yI.prototype.ZD=function(V){for(var t=[],x=t.push,u=x.apply,Z=[],P=g.G(this.B$.values()),K=P.next();!K.done;K=P.next())K=K.value,K.trigger instanceof BV&&K.trigger.I9===V&&Z.push(K);u.call(x,t,g.v(Z));x=t.push;u=x.apply;Z=[];P=g.G(this.B$.values());for(K=P.next();!K.done;K=P.next())K=K.value,K.trigger instanceof D9&&K.trigger.J!==V&&Z.push(K);u.call(x,t,g.v(Z));t.length&&Wn(this.J(),t)}; yI.prototype.sJ=function(V){for(var t=[],x=t.push,u=x.apply,Z=[],P=g.G(this.B$.values()),K=P.next();!K.done;K=P.next()){K=K.value;var R=K.trigger;R instanceof D9&&R.J===V&&Z.push(K)}u.call(x,t,g.v(Z));t.length&&Wn(this.J(),t)};g.A(jr,g.c);g.q=jr.prototype;g.q.oO=function(V,t,x,u){if(this.B$.has(t.triggerId))throw new h("Tried to register duplicate trigger for slot.");var Z="adtriggercuerange:"+t.triggerId;if(t instanceof yT)X68(this,V,t,x,u,Z,t.J.start,t.J.end,t.I9,t.visible);else if(t instanceof YA)X68(this,V,t,x,u,Z,0x7ffffffffffff,0x8000000000000,t.I9,t.visible);else throw new h("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in CueRangeTriggerAdapter");}; g.q.XB=function(V){var t=this.B$.get(V.triggerId);t&&this.ZT.get().removeCueRange(t.cueRangeId);this.B$.delete(V.triggerId)}; g.q.onCueRangeEnter=function(V){var t=zMC(this,V);if(t&&(t=this.B$.get(t)))if(g.J(tk(this.h6.get()),32))this.J.add(t.cueRangeId);else{var x=t==null?void 0:t.wA.trigger;if(x instanceof yT||x instanceof YA){if(Bb(this.context.WX.get())){var u=t.wA.slot,Z=t.wA.layout,P={};this.context.Mf.bb("cre",(P.ca=t.wA.category,P.tt=x.triggerType,P.st=u.slotType,P.lt=Z==null?void 0:Z.layoutType,P.cid=V,P))}Wn(this.S(),[t.wA])}}}; g.q.onCueRangeExit=function(V){(V=zMC(this,V))&&(V=this.B$.get(V))&&this.J.delete(V.cueRangeId)}; g.q.Z0=function(V){if(v0(V,16)<0){V=g.G(this.J);for(var t=V.next();!t.done;t=V.next())this.onCueRangeEnter(t.value,!0);this.J.clear()}}; g.q.xQ=function(){}; g.q.Gm=function(){}; g.q.uT=function(){}; g.q.vr=function(){}; g.q.Br=function(){}; g.q.v0=function(){}; g.q.B0=function(){}; g.q.kQ=function(){}; g.q.zo=function(){}; g.q.qj=function(){}; g.q.UZ=function(){}; g.q.PG=function(){}; g.q.vL=function(){}; g.q.onFullscreenToggled=function(){}; g.q.E8=function(){}; g.q.dj=function(){}; g.q.R4=function(){}; g.q.onVolumeChange=function(){}; g.q.Pi=function(){}; g.q.Kc=function(){};g.A(lJ,g.c);g.q=lJ.prototype; g.q.oO=function(V,t,x,u){if(this.S.has(t.triggerId)||this.N.has(t.triggerId))throw new h("Tried to re-register the trigger.");V=new Z2(V,t,x,u);if(V.trigger instanceof cV)this.S.set(V.trigger.triggerId,V);else if(V.trigger instanceof WV)this.N.set(V.trigger.triggerId,V);else throw new h("Incorrect TriggerType: Tried to register trigger of type "+V.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.S.has(V.trigger.triggerId)&&V.slot.slotId===this.J&&Wn(this.W(),[V])}; g.q.XB=function(V){this.S.delete(V.triggerId);this.N.delete(V.triggerId)}; g.q.KS=function(V){V=V.slotId;if(this.J!==V){var t=[];this.J!=null&&t.push.apply(t,g.v(BCz(this.N,this.J)));V!=null&&t.push.apply(t,g.v(BCz(this.S,V)));this.J=V;t.length&&Wn(this.W(),t)}}; g.q.GM=function(){}; g.q.B_=function(){};g.A(HT,g.c);g.q=HT.prototype;g.q.oO=function(V,t,x,u){if(this.B$.has(t.triggerId))throw new h("Tried to register duplicate trigger for slot.");if(!(t instanceof UP))throw new h("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.B$.set(t.triggerId,new Z2(V,t,x,u))}; g.q.XB=function(V){this.B$.delete(V.triggerId)}; g.q.qj=function(){}; g.q.UZ=function(){}; g.q.xQ=function(){}; g.q.Gm=function(){}; g.q.uT=function(){}; g.q.vr=function(){}; g.q.Br=function(){}; g.q.v0=function(){}; g.q.B0=function(){}; g.q.kQ=function(){}; g.q.zo=function(){}; g.q.PG=function(){};g.A(UZ,g.c);g.q=UZ.prototype;g.q.PG=function(V,t){for(var x=[],u=g.G(this.B$.values()),Z=u.next();!Z.done;Z=u.next()){Z=Z.value;var P=Z.trigger;P.opportunityType===V&&(P.associatedSlotId&&P.associatedSlotId!==t||x.push(Z))}x.length&&Wn(this.J(),x)}; g.q.oO=function(V,t,x,u){if(this.B$.has(t.triggerId))throw new h("Tried to register duplicate trigger for slot.");if(!(t instanceof jw0))throw new h("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in OpportunityEventTriggerAdapter");this.B$.set(t.triggerId,new Z2(V,t,x,u))}; g.q.XB=function(V){this.B$.delete(V.triggerId)}; g.q.xQ=function(){}; g.q.Gm=function(){}; g.q.uT=function(){}; g.q.vr=function(){}; g.q.Br=function(){}; g.q.v0=function(){}; g.q.B0=function(){}; g.q.kQ=function(){}; g.q.zo=function(){}; g.q.qj=function(){}; g.q.UZ=function(){};g.A(Db,g.c);g.q=Db.prototype;g.q.oO=function(V,t,x,u){V=new Z2(V,t,x,u);if(t instanceof ok||t instanceof j1||t instanceof nZ||t instanceof e1||t instanceof y4C){if(this.B$.has(t.triggerId))throw new h("Tried to register duplicate trigger for slot.");this.B$.set(t.triggerId,V);x=x.slotId;V=this.N.has(x)?this.N.get(x):new Set;V.add(t);this.N.set(x,V)}else throw new h("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in PrefetchTriggerAdapter");}; g.q.XB=function(V){this.B$.delete(V.triggerId)}; g.q.xQ=function(V){var t=V.slotId;if(this.N.has(t)){V=0;var x=new Set;t=g.G(this.N.get(t));for(var u=t.next();!u.done;u=t.next())if(u=u.value,x.add(u.triggerId),u instanceof j1&&u.breakDurationMs){V=u.breakDurationMs;break}er(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",V,x)}}; g.q.Gm=function(){}; g.q.uT=function(){}; g.q.vr=function(){}; g.q.Br=function(){}; g.q.v0=function(){}; g.q.B0=function(){}; g.q.kQ=function(){}; g.q.zo=function(){}; g.q.qj=function(){}; g.q.UZ=function(){}; g.q.PG=function(){}; g.q.V5=function(V){if(this.J){this.S&&this.S.stop();this.W&&g.RO(this.W);V=V.To*1E3+1E3;for(var t=0,x=g.G(this.B$.values()),u=x.next();!u.done;u=x.next())u=u.value.trigger,u instanceof ok&&u.breakDurationMs<=V&&u.breakDurationMs>t&&(t=u.breakDurationMs);V=t;if(V>0)return er(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",V,new Set,!0),er(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",V,new Set,!1),!0}return!1}; g.q.Jc=function(){}; g.q.ZD=function(V){this.J&&this.J.contentCpn!==V?(Gd("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:V,fetchInstructionsCpn:this.J.contentCpn}),db(this)):Yxs(this)}; g.q.sJ=function(V){this.J&&this.J.contentCpn!==V&&Gd("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:V,fetchInstructionsCpn:this.J.contentCpn},!0);db(this)}; g.q.zp=function(V){var t=this;if(this.J)Gd("Unexpected multiple fetch instructions for the current content");else{this.J=V;V=aWs(V);this.S=new g.qK(function(){Yxs(t)},V?V:6E5); this.S.start();this.W=new g.qK(function(){t.J&&(t.S&&(t.S.stop(),t.S.start()),m$h(t,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},QIh(this.J)); V=this.h6.get().getCurrentTimeSec(1,!1);for(var x=g.G(this.pR.get().Yi),u=x.next();!u.done;u=x.next())u=u.value,qC(this.TU.get(),"nocache","ct."+Date.now()+";cmt."+V+";d."+u.To.toFixed(3)+";tw."+(u.startSecs-V)+";cid."+u.identifier+";")}}; g.q.NP=function(){g.c.prototype.NP.call(this);db(this)};g.A(Cn,g.c);g.q=Cn.prototype;g.q.oO=function(V,t,x,u){if(this.B$.has(t.triggerId))throw new h("Tried to register duplicate trigger for slot.");if(!(t instanceof un))throw new h("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.B$.set(t.triggerId,new Z2(V,t,x,u));V=this.J.has(t.triggeringLayoutId)?this.J.get(t.triggeringLayoutId):new Set;V.add(t);this.J.set(t.triggeringLayoutId,V)}; g.q.XB=function(V){this.B$.delete(V.triggerId);if(!(V instanceof un))throw new h("Incorrect TriggerType: Tried to unregister trigger of type "+V.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var t=this.S.get(V.triggerId);t&&(t.dispose(),this.S.delete(V.triggerId));if(t=this.J.get(V.triggeringLayoutId))t.delete(V),t.size===0&&this.J.delete(V.triggeringLayoutId)}; g.q.xQ=function(){}; g.q.Gm=function(){}; g.q.uT=function(){}; g.q.vr=function(){}; g.q.Br=function(){}; g.q.v0=function(){}; g.q.B0=function(){}; g.q.kQ=function(){}; g.q.zo=function(){}; g.q.PG=function(){}; g.q.qj=function(V,t){var x=this;if(this.J.has(t.layoutId)){V=this.J.get(t.layoutId);V=g.G(V);var u=V.next();for(t={};!u.done;t={z_:void 0},u=V.next())t.z_=u.value,u=new g.qK(function(Z){return function(){var P=x.B$.get(Z.z_.triggerId);Wn(x.N(),[P])}}(t),t.z_.durationMs),u.start(),this.S.set(t.z_.triggerId,u)}}; g.q.UZ=function(){};g.A(Ja,g.c);Ja.prototype.oO=function(V,t,x,u){if(this.B$.has(t.triggerId))throw new h("Tried to register duplicate trigger for slot.");if(!(t instanceof XW))throw new h("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in VideoTransitionTriggerAdapter.");this.B$.set(t.triggerId,new Z2(V,t,x,u))}; Ja.prototype.XB=function(V){this.B$.delete(V.triggerId)};t5.prototype.Sm=function(V){return V.kind==="AD_PLACEMENT_KIND_START"};g.A(Zn,g.c);g.q=Zn.prototype;g.q.logEvent=function(V){this.Rw(V)}; g.q.S0=function(V,t,x){this.Rw(V,void 0,void 0,void 0,t,void 0,void 0,void 0,t.adSlotLoggingData,void 0,void 0,x)}; g.q.H0=function(V,t,x,u){this.Rw(V,void 0,void 0,void 0,t,x?x:void 0,void 0,void 0,t.adSlotLoggingData,x?x.adLayoutLoggingData:void 0,void 0,u)}; g.q.wz=function(V,t,x,u){xm(this.WX.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+V,"trigger:",x,"slot:",t,"layout:",u);pw(this.J.get())&&this.Rw(V,void 0,void 0,void 0,t,u?u:void 0,void 0,x,t.adSlotLoggingData,u?u.adLayoutLoggingData:void 0)}; g.q.Jm=function(V,t,x,u,Z){this.Rw(V,t,x,u,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Z)}; g.q.Rz=function(V,t,x,u){this.Rw("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,x,u,void 0,void 0,x.adSlotLoggingData,u?u.adLayoutLoggingData:void 0,{errorType:V,errorMessage:t})}; g.q.Rw=function(V,t,x,u,Z,P,K,R,f,b,E,k){var O=this;k=k===void 0?0:k;xm(this.WX.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+V,"slot:",Z,"layout:",P,"ping:",K,"Opportunity:",{opportunityType:t,associatedSlotId:x,fuw:u,tc6:R,adSlotLoggingData:f,adLayoutLoggingData:b});try{var N=function(){if(!O.WX.get().U.K().T("html5_disable_client_tmp_logs")&&V!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){V||Gd("Empty PACF event type",Z,P);var p=pw(O.J.get()),I={eventType:V,eventOrder:++O.eventCount},L={}; Z&&(L.slotData=NH(p,Z));P&&(L.layoutData=Alw(p,P));K&&(L.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:K.J.serializedAdPingMetadata,pingIndex:K.index});R&&(L.triggerData=sz(R.trigger,R.category));t&&(L.opportunityData=SH1(p,t,x,u));p={organicPlaybackContext:{contentCpn:IM(O.PX.get(),1).clientPlaybackNonce}};p.organicPlaybackContext.isLivePlayback=IM(O.PX.get(),1).uq;var M;p.organicPlaybackContext.isMdxPlayback=(M=IM(O.PX.get(),1))==null?void 0:M.isMdxPlayback; var z;if((z=IM(O.PX.get(),1))==null?0:z.daiEnabled)p.organicPlaybackContext.isDaiContent=!0;var Y;if(M=(Y=IM(O.PX.get(),2))==null?void 0:Y.clientPlaybackNonce)p.adVideoPlaybackContext={adVideoCpn:M};p&&(L.externalContext=p);I.adClientData=L;f&&(I.serializedSlotAdServingData=f.serializedSlotAdServingDataEntry);b&&(I.serializedAdServingData=b.serializedAdServingDataEntry);E&&(I.errorInfo=E);g.pq("adsClientStateChange",{adsClientEvent:I})}}; k&&k>0?g.q3(g.fq(),function(){return N()},k):N()}catch(p){xm(this.WX.get(),"html5_log_pacf_logging_errors")&&g.q3(g.fq(),function(){Gd(p instanceof Error?p:String(p),Z,P,{pacf_message:"exception during pacf logging"})})}};var Aer=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.A(P8,Zn);g.q=P8.prototype; g.q.S0=function(V,t,x){Zn.prototype.S0.call(this,V,t,x);Bb(this.WX.get())&&(x={},this.context.Mf.bb("pacf",(x.et=V,x.st=t.slotType,x.si=t.slotId,x)))}; g.q.H0=function(V,t,x,u){var Z=Aer.has(V);Zn.prototype.H0.call(this,V,t,x,u);Bb(this.WX.get(),Z)&&(u={},this.context.Mf.bb("pacf",(u.et=V,u.st=t.slotType,u.si=t.slotId,u.lt=x==null?void 0:x.layoutType,u.li=x==null?void 0:x.layoutId,u.p_ac=x==null?void 0:x.layoutId,u)))}; g.q.Jm=function(V,t,x,u,Z){Zn.prototype.Jm.call(this,V,t,x,u,Z);Bb(this.WX.get())&&(x={},this.context.Mf.bb("pacf",(x.et=V,x.ot=t,x.ss=u==null?void 0:u.length,x)))}; g.q.wz=function(V,t,x,u){Zn.prototype.wz.call(this,V,t,x,u);if(Bb(this.WX.get())){var Z={};this.context.Mf.bb("pacf",(Z.et=V,Z.tt=x.trigger.triggerType,Z.tc=x.category,Z.st=t.slotType,Z.si=t.slotId,Z.lt=u==null?void 0:u.layoutType,Z.li=u==null?void 0:u.layoutId,Z.p_ac=u==null?void 0:u.layoutId,Z))}}; g.q.Rz=function(V,t,x,u){Zn.prototype.Rz.call(this,V,t,x,u);if(Bb(this.WX.get(),!0)){var Z={};this.context.Mf.bb("perror",(Z.ert=V,Z.erm=t,Z.st=x.slotType,Z.si=x.slotId,Z.lt=u==null?void 0:u.layoutType,Z.li=u==null?void 0:u.layoutId,Z.p_ac=u==null?void 0:u.layoutId,Z))}}; g.q.Rw=function(V,t,x,u,Z,P,K,R,f,b,E){if(g.ap(this.WX.get().U.K())){var k=this.WX.get();k=g.S7(k.U.K().experiments,"H5_async_logging_delay_ms")}else k=void 0;Zn.prototype.Rw.call(this,V,t,x,u,Z,P,K,R,f,b,E,k)};K7.prototype.clear=function(){this.J.clear()};f7.prototype.resolve=function(V){q7(this,V)}; f7.prototype.reject=function(V){R_(this,V)}; f7.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; f7.prototype.wait=function(){var V=this;return function x(){return kKL(x,function(u){if(u.J==1)return g.Sj(u,2),g.m(u,{kY:V},4);if(u.J!=2)return u.return(u.S);g.vw(u);return g.Ll(u,0)})}()}; var PgL=He(function(V){return $0(V)?V instanceof f7:!1});var A5=window.lOy||"pt-BR";v8.prototype.LF=function(V){this.client=V}; v8.prototype.J=function(){this.clear();this.csn=g.aw()}; v8.prototype.clear=function(){this.N.clear();this.S.clear();this.W.clear();this.csn=null};FI.prototype.LF=function(V){g.RW(L7().LF).bind(L7())(V)}; FI.prototype.clear=function(){g.RW(L7().clear).bind(L7())()};g.q=M7.prototype;g.q.LF=function(V){this.client=V}; g.q.LC=function(V,t){var x=this;t=t===void 0?{}:t;g.RW(function(){var u,Z,P,K=((u=g.l(V==null?void 0:V.commandMetadata,g.SZ))==null?void 0:u.rootVe)||((Z=g.l(V==null?void 0:V.commandMetadata,T7Y))==null?void 0:(P=Z.screenVisualElement)==null?void 0:P.uiType);if(K){u=g.l(V==null?void 0:V.commandMetadata,xYY);if(u==null?0:u.parentTrackingParams){var R=g.mn(u.parentTrackingParams);if(u.parentCsn)var f=u.parentCsn}else t.clickedVisualElement?R=t.clickedVisualElement:V.clickTrackingParams&&(R=g.mn(V.clickTrackingParams)); a:{u=g.l(V,g.w8);Z=g.l(V,dtE);if(u){if(Z=hM1(u,"VIDEO")){u={token:Z,videoId:u.videoId};break a}}else if(Z&&(u=hM1(Z,"PLAYLIST"))){u={token:u,playlistId:Z.playlistId};break a}u=void 0}t=Object.assign({},{cttAuthInfo:u,parentCsn:f},t);if(g.Bc("expectation_logging")){var b;t.loggingExpectations=((b=g.l(V==null?void 0:V.commandMetadata,T7Y))==null?void 0:b.loggingExpectations)||void 0}XI(x,K,R,t)}else g.lf(new g.xe("Error: Trying to create a new screen without a rootVeType",V))})()}; g.q.clickCommand=function(V,t,x){V=V.clickTrackingParams;x=x===void 0?0:x;V?(x=g.aw(x===void 0?0:x))?(qnT(this.client,x,g.mn(V),t),t=!0):t=!1:t=!1;return t}; g.q.stateChanged=function(V,t,x){this.visualElementStateChanged(g.mn(V),t,x===void 0?0:x)}; g.q.visualElementStateChanged=function(V,t,x){x=x===void 0?0:x;x===0&&this.S.has(x)?this.C.push([V,t]):upC(this,V,t,x)};Y0.prototype.fetch=function(V,t,x){var u=this,Z=KYL(V,t,x);return new Promise(function(P,K){function R(){if(x==null?0:x.xl)try{var b=u.handleResponse(V,Z.status,Z.response,x);P(b)}catch(E){K(E)}else P(u.handleResponse(V,Z.status,Z.response,x))} Z.onerror=R;Z.onload=R;var f;Z.send((f=t.body)!=null?f:null)})}; Y0.prototype.handleResponse=function(V,t,x,u){x=x.replace(")]}'","");try{var Z=JSON.parse(x)}catch(P){g.lf(new g.xe("JSON parsing failed after XHR fetch",V,t,x));if((u==null?0:u.xl)&&x)throw new g.bM(1,"JSON parsing failed after XHR fetch");Z={}}t!==200&&(g.lf(new g.xe("XHR API fetch failed",V,t,x)),Z=Object.assign({},Z,{errorMetadata:{status:t}}));return Z};QJ.getInstance=function(){var V=g.nl("ytglobal.storage_");V||(V=new QJ,g.o9("ytglobal.storage_",V));return V}; QJ.prototype.estimate=function(){var V,t,x;return g.Q(function(u){V=navigator;return((t=V.storage)==null?0:t.estimate)?u.return(V.storage.estimate()):((x=V.webkitTemporaryStorage)==null?0:x.queryUsageAndQuota)?u.return(qzq()):u.return()})}; g.o9("ytglobal.storageClass_",QJ);sn.prototype.eM=function(V){this.handleError(V)}; sn.prototype.logEvent=function(V,t){switch(V){case "IDB_DATA_CORRUPTED":g.Bc("idb_data_corrupted_killswitch")||this.J("idbDataCorrupted",t);break;case "IDB_UNEXPECTEDLY_CLOSED":this.J("idbUnexpectedlyClosed",t);break;case "IS_SUPPORTED_COMPLETED":g.Bc("idb_is_supported_completed_killswitch")||this.J("idbIsSupportedCompleted",t);break;case "QUOTA_EXCEEDED":fC4(this,t);break;case "TRANSACTION_ENDED":this.N&&Math.random()<=.1&&this.J("idbTransactionEnded",t);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":V= Object.assign({},t,{hasWindowUnloaded:this.S}),this.J("idbTransactionAborted",V)}};var Da={},UCl=g.fg("yt-player-local-media",{WY:(Da.index={f7:2},Da.media={f7:2},Da.captions={f7:5},Da),shared:!1,upgrade:function(V,t){t(2)&&(g.o4(V,"index"),g.o4(V,"media"));t(5)&&g.o4(V,"captions");t(6)&&(nq(V,"metadata"),nq(V,"playerdata"))}, version:5});var S9Y={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},eZ;a:{var dT=g.zY();dT=dT.toLowerCase();if(g.Lr(dT,"android")){var Gis=dT.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Gis){var IAF=parseFloat(Gis[1]);if(IAF<100){eZ=IAF;break a}}var v_E=dT.match("("+Object.keys(S9Y).join("|")+")");eZ=v_E?S9Y[v_E[0]]:0}else eZ=void 0}var Qw=eZ,YO=Qw>=0;var xQ4=window;var $Hl=Aj(function(){var V,t;return(t=(V=window).matchMedia)==null?void 0:t.call(V,"(prefers-reduced-motion: reduce)").matches});var rn;g.a_=new Wl;rn=0;var Tv={yx:function(V,t){var x=V[0];V[0]=V[t%V.length];V[t%V.length]=x}, pt:function(V){V.reverse()}, jz:function(V,t){V.splice(0,t)}};var OM0=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var wV=pnL()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.u0?!0:!1;var lo0={WXX:"adunit",Kyk:"detailpage",Hc1:"editpage",qn6:"embedded",LMs:"leanback",d3C:"previewpage",KQw:"profilepage",qV:"unplugged",V5X:"playlistoverview",vG8:"sponsorshipsoffer",z9X:"shortspage",A5D:"handlesclaiming",oe1:"immersivelivepage",VKk:"creatormusic",pQC:"immersivelivepreviewpage",SeS:"admintoolyurt",WhX:"shortsaudiopivot"};var Ca;Ca={};g.Ug=(Ca.STOP_EVENT_PROPAGATION="html5-stop-propagation",Ca.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Ca.IV_DRAWER_OPEN="ytp-iv-drawer-open",Ca.MAIN_VIDEO="html5-main-video",Ca.VIDEO_CONTAINER="html5-video-container",Ca.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Ca.HOUSE_BRAND="house-brand",Ca);var FY9={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var zvC={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},Ba1={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"},Eiw={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var bd0={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.u8.prototype.getLanguageInfo=function(){return this.H$}; g.u8.prototype.getXtags=function(){if(!this.xtags){var V=this.id.split(";");V.length>1&&(this.xtags=V[1])}return this.xtags}; g.u8.prototype.toString=function(){return this.H$.name}; g.u8.prototype.getLanguageInfo=g.u8.prototype.getLanguageInfo;ZP.prototype.t9=function(V){return this.S===V.S&&this.J===V.J&&this.N===V.N&&this.reason===V.reason&&(!K1||this.n1===V.n1)}; ZP.prototype.isLocked=function(){return this.N&&!!this.S&&this.S===this.J}; ZP.prototype.compose=function(V){if(V.N&&qy(V))return lp;if(V.N||qy(this))return V;if(this.N||qy(V))return this;var t=this.S&&V.S?Math.max(this.S,V.S):this.S||V.S,x=this.J&&V.J?Math.min(this.J,V.J):this.J||V.J;t=Math.min(t,x);var u=0;K1&&(u=this.n1!==0&&V.n1!==0?Math.min(this.n1,V.n1):this.n1===0?V.n1:this.n1);return K1&&t===this.S&&x===this.J&&u===this.n1||!K1&&t===this.S&&x===this.J?this:K1?new ZP(t,x,!1,x===this.J&&u===this.n1?this.reason:V.reason,u):new ZP(t,x,!1,x===this.J?this.reason:V.reason)}; ZP.prototype.W=function(V){return!V.video||K1&&this.n1!==0&&this.n1=0}; g.q.Cp=function(){var V=this.segments[this.segments.length-1];return V?V.endTime:NaN}; g.q.L9=function(){return this.segments[0].startTime}; g.q.lw=function(){return this.segments.length}; g.q.EJ=function(){return 0}; g.q.kE=function(V){return(V=this.sK(V))?V.GU:-1}; g.q.MJ=function(V){return(V=this.UJ(V))?V.sourceURL:""}; g.q.getStartTime=function(V){return(V=this.UJ(V))?V.startTime:0}; g.q.Ag=function(V){return this.getStartTime(V)+this.getDuration(V)}; g.q.pn=V0(1);g.q.isLoaded=function(){return this.segments.length>0}; g.q.UJ=function(V){if(this.J&&this.J.GU===V)return this.J;V=g.qY(this.segments,new Bg(V,0,0,0,""),function(t,x){return t.GU-x.GU}); return this.J=V>=0?this.segments[V]:null}; g.q.sK=function(V){if(this.J&&this.J.startTime<=V&&V=0?this.segments[V]:this.segments[Math.max(0,-V-2)]}; g.q.append=function(V){if(V.length)if(V=g.tb(V),this.segments.length){var t=this.segments.length?g.U$(this.segments).endTime:0,x=V[0].GU-this.C9();x>1&&h88(this.segments);for(x=x>0?0:-x+1;xV.GU&&this.index.Px()<=V.GU+1}; g.q.update=function(V,t,x){this.index.append(V);PSC(this.index,x);V=this.index;V.S=t;V.N="update"}; g.q.h9=function(){return this.LT()?!0:Xe.prototype.h9.call(this)}; g.q.Nk=function(V,t){var x=this.index.MJ(V),u=this.index.getStartTime(V),Z=this.index.getDuration(V),P;t?Z=P=0:P=this.info.n1>0?this.info.n1*Z:1E3;return new c_([new QY(3,this,void 0,"liveCreateRequestInfoForSegment",V,u,Z,0,P,!t)],x)}; g.q.MK=function(){return this.LT()?0:this.initRange.length}; g.q.Sw=function(){return!1};e2.prototype.update=function(V){var t=void 0;this.S&&(t=this.S);var x=new e2,u=Array.from(V.getElementsByTagName("S"));if(u.length){var Z=+UM(V,"timescale")||1,P=(+u[0].getAttribute("t")||0)/Z,K=+UM(V,"startNumber")||0;x.W=P;var R=t?t.startSecs+t.To:0,f=Date.parse(hSz(UM(V,"yt:segmentIngestTime")))/1E3;x.G=V.parentElement.tagName==="SegmentTemplate";x.G&&(x.L=UM(V,"media"));V=t?K-t.GU:1;x.B=V>0?0:-V+1;V=g.G(u);for(u=V.next();!u.done;u=V.next()){u=u.value;for(var b=+u.getAttribute("d")/Z,E=(+u.getAttribute("yt:sid")|| 0)/Z,k=+u.getAttribute("r")||0,O=0;O<=k;O++)if(t&&K<=t.GU)K++;else{var N=new CS0(K,R,b,f+E,P);x.J.push(N);var p=u;var I=Z,L=N.startSecs;N=p.getAttribute("yt:cuepointTimeOffset");var M=p.getAttribute("yt:cuepointDuration");if(N&&M){N=Number(N);L=-N/I+L;I=Number(M)/I;M=p.getAttribute("yt:cuepointContext")||null;var z=p.getAttribute("yt:cuepointIdentifier")||"";p=p.getAttribute("yt:cuepointEvent")||"";p=new yO(L,I,M,z,Fas[p]||"unknown",N)}else p=null;p&&x.N.push(p);K++;R+=b;P+=b;f+=b+E}}x.J.length&& (x.S=g.U$(x.J))}this.B=x.B;this.S=x.S||this.S;g.xz(this.J,x.J);g.xz(this.N,x.N);this.G=x.G;this.L=x.L;this.W===-1&&(this.W=x.getStreamTimeOffset())}; e2.prototype.getStreamTimeOffset=function(){return this.W===-1?0:this.W};g.A(CB,g.mj);g.q=CB.prototype;g.q.U2=function(){return this.vG}; g.q.bL=function(V,t){V=J0(this,V);return V>=0&&(t||!this.segments[V].pending)}; g.q.Px=function(){return this.Fu?this.segments.length?this.sK(this.L9()).GU:-1:g.mj.prototype.Px.call(this)}; g.q.L9=function(){if(this.Gk)return 0;if(!this.Fu)return g.mj.prototype.L9.call(this);if(!this.segments.length)return 0;var V=Math.max(g.U$(this.segments).endTime-this.Po,0);return this.UL>0&&this.sK(V).GU0)return this.AK/1E3;if(!this.segments.length)return g.mj.prototype.Cp.call(this);var V=this.C9();if(!this.Fu||V<=this.segments[this.segments.length-1].GU)V=this.segments[this.segments.length-1];else{var t=this.segments[this.segments.length-1];V=new Bg(V,Math.max(0,t.startTime-(t.GU-V)*this.vG),this.vG,0,"sq/"+V,void 0,void 0,!0)}return this.Gk?Math.min(this.Po,V.endTime):V.endTime}; g.q.lw=function(){return this.Fu?this.segments.length?this.C9()-this.Px()+1:0:g.mj.prototype.lw.call(this)}; g.q.C9=function(){var V=Math.min(this.JY,Math.max(g.mj.prototype.C9.call(this),this.Nq)),t=this.Po*1E3;t=this.AK>0&&this.AK0&&this.Nq>0&&!t&&(t=this.sK(this.Po))&&(V=Math.min(t.GU-1,V));return V}; g.q.TX=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.q.Su=function(V){var t=J0(this,V.GU);if(t>=0)this.segments[t]=V;else if(this.segments.splice(-(t+1),0,V),this.oG&&V.GU%(300/this.vG)===0){var x=this.segments[0].GU,u=Math.floor(this.oG/this.vG);V=V.GU-u;t=-(t+1)-u;t>0&&V>x&&(this.segments=this.segments.slice(t))}}; g.q.ZV=function(){return this.Nq}; g.q.jD=function(V){return dL?!this.S&&V>=0&&this.C9()<=V:g.mj.prototype.jD.call(this,V)}; g.q.sK=function(V){if(!this.Fu)return g.mj.prototype.sK.call(this,V);if(!this.segments.length)return null;var t=this.segments[this.segments.length-1];if(V=t.endTime)t=t.GU+Math.floor((V-t.endTime)/this.vG+1);else{t=Rd(this.segments,function(u){return V=u.endTime?1:0}); if(t>=0)return this.segments[t];var x=-(t+1);t=this.segments[x-1];x=this.segments[x];t=Math.floor((V-t.endTime)/((x.startTime-t.endTime)/(x.GU-t.GU-1))+1)+t.GU}return this.UJ(t)}; g.q.UJ=function(V){if(!this.Fu)return g.mj.prototype.UJ.call(this,V);if(!this.segments.length)return null;var t=J0(this,V);if(t>=0)return this.segments[t];var x=-(t+1);t=this.vG;if(x===0)var u=Math.max(0,this.segments[0].startTime-(this.segments[0].GU-V)*t);else x===this.segments.length?(u=this.segments[this.segments.length-1],u=u.endTime+(V-u.GU-1)*t):(u=this.segments[x-1],t=this.segments[x],t=(t.startTime-u.endTime)/(t.GU-u.GU-1),u=u.endTime+(V-u.GU-1)*t);return new Bg(V,u,t,0,"sq/"+V,void 0,void 0, !0)}; var dL=!1;g.A(h0,H_);g.q=h0.prototype;g.q.uH=function(){return!0}; g.q.h9=function(){return!0}; g.q.wS=function(V){return this.QI()&&V.N&&!V.W||!V.J.index.jD(V.GU)}; g.q.AR=function(){}; g.q.Dq=function(V,t){return typeof V!=="number"||isFinite(V)?H_.prototype.Dq.call(this,V,t===void 0?!1:t):new c_([new QY(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.o4,void 0,this.o4*this.info.n1)],"")}; g.q.Nk=function(V,t){var x=x===void 0?!1:x;if(this.index.bL(V))return H_.prototype.Nk.call(this,V,t);var u=this.index.getStartTime(V),Z=Math.round(this.o4*this.info.n1),P=this.o4;t&&(P=Z=0);return new c_([new QY(x?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",V,u,P,void 0,Z,!t)],V>=0?"sq/"+V:"")};g.A(wL,Xe);g.q=wL.prototype;g.q.P2=function(){return!1}; g.q.QI=function(){return!1}; g.q.uH=function(){return!1}; g.q.AR=function(){return new c_([new QY(1,this,void 0,"otfInit")],this.G)}; g.q.qX=function(){return null}; g.q.XH=function(V){this.wS(V);return KA1(this,W_(V),!1)}; g.q.Dq=function(V,t){t=t===void 0?!1:t;V=this.index.kE(V);t&&(V=Math.min(this.index.C9(),V+1));return KA1(this,V,!0)}; g.q.hC=function(V){V.info.type===1&&(this.J||(this.J=mv(V.J)),V.S&&V.S.uri==="http://youtube.com/streaming/otf/durations/112015"&&qGj(this,V.S))}; g.q.wS=function(V){return V.N===0?!0:this.index.C9()>V.GU&&this.index.Px()<=V.GU+1}; g.q.MK=function(){return 0}; g.q.Sw=function(){return!1};VX.prototype.zk=function(){return this.J.zk()};g.q=g.Ke.prototype;g.q.bL=function(V){return V<=this.C9()}; g.q.EJ=function(V){return this.offsets[V]}; g.q.getStartTime=function(V){return this.gh[V]/this.J}; g.q.Ag=function(V){return this.getStartTime(V)+this.getDuration(V)}; g.q.pn=V0(0);g.q.eH=function(){return NaN}; g.q.getDuration=function(V){V=this.Ya(V);return V>=0?V/this.J:-1}; g.q.Ya=function(V){return V+1=0}; g.q.Cp=function(){return this.S?this.gh[this.count]/this.J:NaN}; g.q.L9=function(){return 0}; g.q.lw=function(){return this.count}; g.q.MJ=function(){return""}; g.q.kE=function(V){V=g.qY(this.gh.subarray(0,this.count),V*this.J);return V>=0?V:Math.max(0,-V-2)}; g.q.isLoaded=function(){return this.C9()>=0}; g.q.vt=function(V,t){if(V>=this.C9())return 0;var x=0;for(t=this.getStartTime(V)+t;Vthis.getStartTime(V);V++)x=Math.max(x,slC(this,V)/this.getDuration(V));return x}; g.q.resize=function(V){V+=2;var t=this.offsets;this.offsets=new Float64Array(V+1);var x=this.gh;this.gh=new Float64Array(V+1);for(V=0;V0&&V&&(x=x.range.end+1,V=Math.min(V,this.info.contentLength-x),V>0&&u.push(new QY(4,this,mu(x,V),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,t)));return new c_(u)}; g.q.hC=function(V){if(V.info.type===1){if(this.J)return;this.J=mv(V.J)}else if(V.info.type===2){if(this.G||this.index.C9()>=0)return;if(g.uQ(this.info)){var t=this.index,x=V.zk();V=V.info.range.start;var u=g.DP(x,0,1936286840);x=Nw0(u);t.J=x.ow;var Z=x.YY;t.offsets[0]=x.p$+V+u.size;t.gh[0]=Z;t.S=!0;V=x.My.length;for(u=0;u0&&V===P[0].ju)for(V=0;V=t+x)break}Z.length||g.jv(new g.xe("b189619593",""+V,""+t,""+x));return new c_(Z)}; g.q.VO=function(V){for(var t=this.KE(V.info),x=V.info.range.start+V.info.S,u=[],Z=0;Z=this.index.EJ(x+1);)x++;return this.Yy(x,t,V.N).qP}; g.q.wS=function(V){V.hY();return this.h9()?!0:V.range.end+1this.info.contentLength&&(t=new zS(t.start,this.info.contentLength-1)),new c_([new QY(4,V.J,t,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,V.clipId)]);V.type===4&&(V=this.KE(V),V=V[V.length-1]);var x=0,u=V.range.start+V.S+V.N;V.type===3&&(V.hY(),x=V.GU,u===V.range.end+1&&(x+=1));return this.Yy(x,u,t)}; g.q.XH=function(){return null}; g.q.Dq=function(V,t,x){t=t===void 0?!1:t;V=this.index.kE(V);t&&(V=Math.min(this.index.C9(),V+1));return this.Yy(V,this.index.EJ(V),0,x)}; g.q.P2=function(){return!0}; g.q.QI=function(){return!0}; g.q.uH=function(){return!1}; g.q.MK=function(){return this.indexRange.length+this.initRange.length}; g.q.Sw=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var hB={},Ql4=(hB.COLOR_PRIMARIES_BT709="bt709",hB.COLOR_PRIMARIES_BT2020="bt2020",hB.COLOR_PRIMARIES_UNKNOWN=null,hB.COLOR_PRIMARIES_UNSPECIFIED=null,hB),wT={},pql=(wT.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",wT.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",wT.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",wT.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",wT.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,wT.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,wT);g.fe.prototype.getName=function(){return this.name}; g.fe.prototype.getId=function(){return this.id}; g.fe.prototype.getIsDefault=function(){return this.isDefault}; g.fe.prototype.toString=function(){return this.name}; g.fe.prototype.getName=g.fe.prototype.getName;g.fe.prototype.getId=g.fe.prototype.getId;g.fe.prototype.getIsDefault=g.fe.prototype.getIsDefault;var IHT=/action_display_post/;var vIK,Ey,kU;g.A(ie,g.Np);g.q=ie.prototype;g.q.isLoading=function(){return this.state===1}; g.q.Pp=function(){return this.state===3}; g.q.Wsw=function(V){var t=V.getElementsByTagName("Representation");if(V.getElementsByTagName("SegmentList").length>0||V.getElementsByTagName("SegmentTemplate").length>0){this.uq=this.S=!0;this.timeline||(this.timeline=new VEC);ZFl(this.timeline,V);this.publish("refresh");for(V=0;V=0?E=B_(O):k=k+"?range="+O}f.call(R,new Bg(b.GU,b.startSecs,b.To,b.J,k,E,b.S))}u=Z}x.update(u,this.isLive,this.DS)}PQs(this.timeline);return!0}this.duration=JuL(UM(V,"mediaPresentationDuration")); a:{for(V=0;V0))return this.uh()-V}}V=this.J;for(var t in V){var x=V[t].index;if(x.isLoaded()&&!Pq(V[t].info))return x.L9()}return 0}; g.q.getStreamTimeOffset=function(){return this.L}; g.q.eH=function(V){for(var t in this.J){var x=this.J[t].index;if(x.isLoaded()){var u=x.kE(V),Z=x.eH(u);if(Z)return Z+V-x.getStartTime(u)}}return NaN}; var X4=null,MVF,zn=!((MVF=navigator.mediaCapabilities)==null||!MVF.decodingInfo),nIj={commentary:1,alternate:2,dub:3,main:4};var Mn=new Set,Bs=new Map;QX.prototype.clone=function(V){return new QX(this.flavor,V,this.S,this.experiments)}; QX.prototype.nI=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; QX.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 g_F={},le=(g_F.playready=["com.youtube.playready","com.microsoft.playready"],g_F.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],g_F),V4={},jKz=(V4.widevine="DRM_SYSTEM_WIDEVINE",V4.fairplay="DRM_SYSTEM_FAIRPLAY",V4.playready="DRM_SYSTEM_PLAYREADY",V4),td={},XDt=(td.widevine=1,td.fairplay=2,td.playready=3,td);Uy.prototype.jy=function(V,t){t=t===void 0?1:t;this.Et+=t;this.S+=V;V/=t;for(var x=0;x0)u+="."+Hs[Z].toFixed(0)+"_"+x.J[Z].toFixed(0);else break;x=u}x&&(V[t]=x)}this.J=new VJ1;return V}; g.q.toString=function(){return""};g.q=KXw.prototype;g.q.isActive=function(){return!1}; g.q.cg=function(){}; g.q.UF=function(){}; g.q.vW=function(V,t){return t}; g.q.J3=function(){}; g.q.y4=function(){}; g.q.oH=function(V,t){return t()}; g.q.Si=function(){return{}}; g.q.toString=function(){return""};var xR,zNY,Bpr,mM_,Y9E,QL_,uy,WW,x4,hrC,JW;xR=new KXw;zNY=!!+Pc("html5_enable_profiler");Bpr=!!+Pc("html5_onesie_enable_profiler");mM_=!!+Pc("html5_offline_encryption_enable_profiler");Y9E=!!+Pc("html5_performance_impact_profiling_timer_ms");QL_=!!+Pc("html5_drm_enable_profiler");uy=zNY||Bpr||mM_||Y9E||QL_?new xu1:xR;g.yL=zNY?uy:xR;WW=Bpr?uy:xR;x4=mM_?uy:xR;hrC=Y9E?uy:xR;JW=QL_?uy:xR;var Ce;g.A(eH,g.c); eH.prototype.initialize=function(V,t){for(var x=this,u=g.G(Object.keys(V)),Z=u.next();!Z.done;Z=u.next()){Z=g.G(V[Z.value]);for(var P=Z.next();!P.done;P=Z.next())if(P=P.value,P.Pw)for(var K=g.G(Object.keys(P.Pw)),R=K.next();!R.done;R=K.next()){var f=R.value;R=f;f=le[f];!f&&this.T("html5_enable_vp9_fairplay")&&R==="fairplay"&&(f=["com.youtube.fairplay.sbdl"]);if(f){f=g.G(f);for(var b=f.next();!b.done;b=f.next())b=b.value,this.N[b]=this.N[b]||new QX(R,b,P.Pw[R],this.Yw.experiments),this.J[R]=this.J[R]|| {},this.J[R][P.mimeType]=!0}}}tD()&&(this.N["com.youtube.fairplay"]=new QX("fairplay","com.youtube.fairplay","",this.Yw.experiments),this.T("html5_enable_vp9_fairplay")||(this.J.fairplay=this.J.fairplay||{},this.J.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.J.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.S=wqL(t,this.useCobaltWidevine,this.T("html5_enable_safari_fairplay"),this.T("html5_enable_vp9_fairplay")).filter(function(E){return!!x.N[E]})}; eH.prototype.T=function(V){return this.Yw.experiments.MP(V)};var aA$={"":"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"};kO1.prototype.T=function(V){return this.experiments.MP(V)};var Uuq={RED:"red",oFX:"white"};iOz.prototype.MP=function(V){V=this.flags[V];JSON.stringify(V);return V==="true"};var NWq=Promise.resolve(),GOK=window.queueMicrotask?window.queueMicrotask.bind(window):pv1;t2.prototype.canPlayType=function(V,t){V=V.canPlayType?V.canPlayType(t):!1;xp?V=V||reE[t]:Qw===2.2?V=V||TpY[t]:w5()&&(V=V||Wa$[t]);return!!V}; t2.prototype.isTypeSupported=function(V){return this.Ij?window.cast.receiver.platform.canDisplayType(V):n5(V)}; var TpY={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Wa$={"application/x-mpegURL":"maybe"},reE={"application/x-mpegURL":"maybe"};g.A(Ko,g.Np);Ko.prototype.add=function(V,t){if(!this.items[V]&&(t.aQ||t.mq||t.mP)){var x=this.items,u=t;Object.isFrozen&&!Object.isFrozen(t)&&(u=Object.create(t),Object.freeze(u));x[V]=u;this.publish("vast_info_card_add",V)}}; Ko.prototype.remove=function(V){var t=this.get(V);delete this.items[V];return t}; Ko.prototype.get=function(V){return this.items[V]||null}; Ko.prototype.isEmpty=function(){return g.YE(this.items)};g.A(ql,g.Bl);ql.prototype.J=function(V,t){return g.Bl.prototype.J.call(this,V,t)}; ql.prototype.S=function(V,t,x){var u=this;return g.Q(function(Z){return Z.J==1?g.m(Z,g.Bl.prototype.S.call(u,V,t,x),2):Z.return(Z.S)})}; g.A(Rh,g.ms);Rh.prototype.encrypt=function(V,t){return g.ms.prototype.encrypt.call(this,V,t)};var $O;bi.prototype.add=function(V){if(this.pos+20>this.data.length){var t=new Uint8Array(this.data.length*2);t.set(this.data);this.data=t}for(;V>31;)this.data[this.pos++]=$O[(V&31)+32],V>>=5;this.data[this.pos++]=$O[V|0]}; bi.prototype.jZ=function(){return g.r_(this.data.subarray(0,this.pos))}; bi.prototype.reset=function(){this.pos=0};kO.prototype.x_=function(V,t){var x=Math.pow(this.alpha,V);this.J=t*(1-x)+x*this.J;this.S+=V}; kO.prototype.HG=function(){return this.J/(1-Math.pow(this.alpha,this.S))};ii.prototype.x_=function(V,t){for(var x=0;x<10;x++){var u=this.J[x],Z=u+(x===0?V:0),P=1*Math.pow(2,x);if(Z<=P)break;u=Math.min(1,(Z-P*.5)/u);for(Z=0;Z<16;Z++)P=this.values[x*16+Z]*u,this.values[(x+1)*16+Z]+=P,this.J[x+1]+=P,this.values[x*16+Z]-=P,this.J[x]-=P}u=x=0;Z=8192;t>8192&&(x=Math.ceil(Math.log(t/8192)/Math.log(2)),u=8192*Math.pow(2,x-1),Z=u*2);x+2>16?this.values[15]+=V:(t=(t-u)/(Z-u),this.values[x]+=V*(1-t),this.values[x+1]+=V*t);this.J[0]+=V}; ii.prototype.HG=function(){var V=V===void 0?this.S:V;var t=t===void 0?.02:t;var x=x===void 0?.98:x;for(var u=this.N,Z=0;Z<16;Z++)u[Z]=this.values[Z];Z=this.J[0];for(var P=1;P<11;P++){var K=this.J[P];if(K===0)break;for(var R=Math.min(1,(V-Z)/K),f=0;f<16;f++)u[f]+=this.values[P*16+f]*R;Z+=K*R;if(R<1)break}for(P=V=K=0;P<16;P++){R=K+u[P]/Z;V+=Math.max(0,Math.min(R,x)-Math.max(K,t))*(P>0?8192*Math.pow(2,P-1):0);if(R>x)break;K=R}return V/(x-t)};OJ.prototype.x_=function(V,t){V=Math.min(this.J,Math.max(1,Math.round(V*this.resolution)));V+this.S>=this.J&&(this.N=!0);for(;V--;)this.values[this.S]=t,this.S=(this.S+1)%this.J;this.VM=!0}; OJ.prototype.percentile=function(V){var t=this;if(!this.N&&this.S===0)return 0;this.VM&&(g.fR(this.G,function(x,u){return t.values[x]-t.values[u]}),this.VM=!1); return this.values[this.G[Math.round(V*((this.N?this.J:this.S)-1))]]||0}; OJ.prototype.HG=function(){return this.B?(this.percentile(this.W-this.B)+this.percentile(this.W)+this.percentile(this.W+this.B))/3:this.percentile(this.W)};g.A(sJ,g.c);sJ.prototype.xw=function(){var V;(V=this.L1)==null||V.start();if(Lo(this)&&this.policy.C){var t;(t=this.yP)==null||t.Tj()}};rs4.prototype.T=function(V){return this.experiments.MP(V)};g.A(WXq,g.c);var HOs="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Js0={sa6:"caoe",yYS:"capsv",keD:"cbrand",QaD:"cbr",n_C:"cbrver",zcy:"cchip",hcU:"ccappver",ESC:"ccrv",YEC:"cfrmver",qED:"c",klU:"cver",XQD:"ctheme",l7k:"cplayer",XpX:"cmodel",NHj:"cnetwork",FQU:"cos",U31:"cosver",Giy:"cplatform",qJw:"crqyear"};g.A(li,g.c);g.q=li.prototype;g.q.T=function(V){return this.experiments.MP(V)}; g.q.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.q.getVideoUrl=function(V,t,x,u,Z,P,K){t={list:t};x&&(Z?t.time_continue=x:t.t=x);x=K?"music.youtube.com":g.UJ(this);Z=x==="www.youtube.com";!P&&u&&Z?P="https://youtu.be/"+V:g.To(this)?(P="https://"+x+"/fire",t.v=V):(P&&Z?(P=this.protocol+"://"+x+"/shorts/"+V,u&&(t.feature="share")):(P=this.protocol+"://"+x+"/watch",t.v=V),xp&&(V=cRK())&&(t.ebc=V));return g.CX(P,t)}; g.q.getVideoEmbedCode=function(V,t,x,u){t="https://"+g.UJ(this)+"/embed/"+t;u&&(t=g.CX(t,{list:u}));u=x.width;x=x.height;t=tI(t);V=tI(V!=null?V:"YouTube video player");return'')}; g.q.supportsGaplessAudio=function(){return g.oa&&!xp&&J6()>=74||g.yX&&g.NY(68)?!0:!1}; g.q.supportsGaplessShorts=function(){return!this.T("html5_enable_short_gapless")||this.xw||g.XM?!1:!0}; g.q.getPlayerType=function(){return this.J.cplayer}; g.q.d6=function(){return this.a_}; var t1j=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],Cgl=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],wvq=[19];var Z0={},ZZs=(Z0["140"]={numChannels:2},Z0["141"]={numChannels:2},Z0["251"]={audioSampleRate:48E3,numChannels:2},Z0["774"]={audioSampleRate:48E3,numChannels:2},Z0["380"]={numChannels:6},Z0["328"]={numChannels:6},Z0["773"]={},Z0),Pm={},xCL=(Pm["1"]='video/mp4; codecs="av01.0.08M.08"',Pm["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',Pm["9"]='video/webm; codecs="vp9"',Pm["("]='video/webm; codecs="vp9"',Pm["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',Pm.h='video/mp4; codecs="avc1.64001e"', Pm.H='video/mp4; codecs="avc1.64001e"',Pm.o='audio/webm; codecs="opus"',Pm.a='audio/mp4; codecs="mp4a.40.2"',Pm.ah='audio/mp4; codecs="mp4a.40.2"',Pm.mac3='audio/mp4; codecs="ac-3"; channels=6',Pm.meac3='audio/mp4; codecs="ec-3"; channels=6',Pm.i='audio/mp4; codecs="iamf.001.001.Opus"',Pm),KH={},uWs=(KH["337"]={width:3840,height:2160,bitrate:3E7,fps:30},KH["336"]={width:2560,height:1440,bitrate:15E6,fps:30},KH["335"]={width:1920,height:1080,bitrate:75E5,fps:30},KH["702"]={width:7680,height:4320,bitrate:4E7, fps:60},KH["701"]={width:3840,height:2160,bitrate:2E7,fps:60},KH["700"]={width:2560,height:1440,bitrate:1E7,fps:60},KH["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},KH["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},KH["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},KH["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},KH["409"]={width:1280,height:720,bitrate:1996E3, fps:60,cryptoblockformat:"subsample"},KH["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},KH["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},KH["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},KH["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},KH["315"]={width:3840,height:2160,bitrate:2E7,fps:60},KH["308"]={width:2560,height:1440,bitrate:1E7,fps:60},KH["303"]= {width:1920,height:1080,bitrate:5E6,fps:60},KH["302"]={width:1280,height:720,bitrate:25E5,fps:60},KH["299"]={width:1920,height:1080,bitrate:75E5,fps:60},KH["298"]={width:1280,height:720,bitrate:35E5,fps:60},KH["571"]={width:7680,height:4320,bitrate:3E7,fps:60},KH["401"]={width:3840,height:2160,bitrate:15E6,fps:60},KH["400"]={width:2560,height:1440,bitrate:75E5,fps:60},KH["399"]={width:1920,height:1080,bitrate:2E6,fps:60},KH["398"]={width:1280,height:720,bitrate:1E6,fps:60},KH["397"]={width:854,height:480, bitrate:4E5,fps:30},KH["396"]={width:640,height:360,bitrate:25E4,fps:30},KH["787"]={width:1080,height:608,bitrate:2E5,fps:30},KH["788"]={width:1080,height:608,bitrate:4E5,fps:30},KH["313"]={width:3840,height:2160,bitrate:8E6,fps:30},KH["271"]={width:2560,height:1440,bitrate:4E6,fps:30},KH["248"]={width:1920,height:1080,bitrate:2E6,fps:30},KH["247"]={width:1280,height:720,bitrate:15E5,fps:30},KH["244"]={width:854,height:480,bitrate:52E4,fps:30},KH["243"]={width:640,height:360,bitrate:28E4,fps:30}, KH["137"]={width:1920,height:1080,bitrate:4E6,fps:30},KH["136"]={width:1280,height:720,bitrate:3E6,fps:30},KH["135"]={width:854,height:480,bitrate:1E6,fps:30},KH["385"]={width:1920,height:1080,bitrate:6503313,fps:60},KH["376"]={width:1280,height:720,bitrate:5706960,fps:60},KH["384"]={width:1280,height:720,bitrate:3660979,fps:60},KH["225"]={width:1280,height:720,bitrate:5805E3,fps:30},KH["224"]={width:1280,height:720,bitrate:453E4,fps:30},KH["145"]={width:1280,height:720,bitrate:2682052,fps:30},KH);g.q=q0.prototype;g.q.getInfo=function(){return this.J}; g.q.Qb=function(){return null}; g.q.F4=function(){var V=this.Qb();return V?(V=g.i$(V.zc),Number(V.expire)):NaN}; g.q.Xj=function(){}; g.q.getHeight=function(){return this.J.video.height};RCj.prototype.build=function(){bZ4(this);var V=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],t={};a:if(this.J)var x=this.J;else{x="";for(var u=g.G(this.N),Z=u.next();!Z.done;Z=u.next())if(Z=Z.value,Z.H$){if(Z.H$.getIsDefault()){x=Z.H$.getId();break a}x||(x=Z.H$.getId())}}u=g.G(this.N);for(Z=u.next();!Z.done;Z=u.next())if(Z=Z.value,this.B||!Z.H$||Z.H$.getId()===x)t[Z.itag]||(t[Z.itag]=[]),t[Z.itag].push(Z);x=g.G(this.S);for(u=x.next();!u.done;u=x.next())if(u=u.value,Z=t[u.J]){Z=g.G(Z);for(var P=Z.next();!P.done;P= Z.next()){var K=V,R=K.push;P=P.value;var f="#EXT-X-MEDIA:TYPE=AUDIO,",b="YES",E="audio";if(P.H$){E=P.H$;var k=E.getId().split(".")[0];k&&(f+='LANGUAGE="'+k+'",');(this.J?this.J===E.getId():E.getIsDefault())||(b="NO");E=E.getName()}k="";u!==null&&(k=u.itag.toString());k=fi(this,P.url,k);f=f+('NAME="'+E+'",DEFAULT='+(b+',AUTOSELECT=YES,GROUP-ID="'))+($CT(P,u)+'",URI="'+(k+'"'));R.call(K,f)}}x=g.G(this.G);for(u=x.next();!u.done;u=x.next())u=u.value,Z=o_F,u=(K=u.H$)?'#EXT-X-MEDIA:URI="'+fi(this,u.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+Z+'",LANGUAGE="'+K.getId()+'",NAME="'+K.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,u&&V.push(u);x=this.G.length>0?o_F:void 0;u=g.G(this.S);for(Z=u.next();!Z.done;Z=u.next())Z=Z.value,R=t[Z.J],K=void 0,((K=R)==null?void 0:K.length)>0&&(K=Z,R=R[0],R="#EXT-X-STREAM-INF:BANDWIDTH="+(K.bitrate+R.bitrate)+',CODECS="'+(K.codecs+","+R.codecs+'",RESOLUTION=')+(K.width+"x"+K.height+',AUDIO="')+($CT(R,K)+'",')+(x?'SUBTITLES="'+x+'",':"")+"CLOSED-CAPTIONS=NONE",K.fps>1&&(R+= ",FRAME-RATE="+K.fps),K.E3&&(R+=",VIDEO-RANGE="+K.E3),V.push(R),V.push(fi(this,Z.url,"")));return V.join("\n")}; var o_F="text";g.A($X,q0);$X.prototype.F4=function(){return this.expiration}; $X.prototype.Qb=function(){if(!this.zc||this.zc.uD()){var V=this.S.build();V="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(V);this.zc=new eE(V)}return this.zc};g.A(bp,q0);bp.prototype.Qb=function(){return new eE(this.S.dL())}; bp.prototype.Xj=function(){this.S=XU(this.S)};g.A(Es,q0);Es.prototype.Qb=function(){return new eE(this.S)};var qi={},G$0=(qi.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",qi.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",qi.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",qi);g.q=g.kX.prototype;g.q.getId=function(){return this.id}; g.q.getName=function(){return this.name}; g.q.isServable=function(){return this.J}; g.q.dL=function(){return this.url}; g.q.getXtags=function(){return this.xtags}; g.q.toString=function(){return this.languageCode+": "+g.ip(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.q.t9=function(V){return V?this.toString()===V.toString():!1}; g.q.s1=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var M1K={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},gA1={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},XVz=/^(\d*)_((\d*)_?(\d*))$/;var Bt1={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},mC1={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var R6={},n_n=(R6.ALWAYS=1,R6.BY_REQUEST=3,R6.UNKNOWN=void 0,R6),fH={},ceY=(fH.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",fH.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",fH.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",fH.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",fH);var Mxh; Mxh=function(V){for(var t=Object.keys(V),x={},u=0;uu-t?-1:V}; g.q.lR=function(){return this.S.C9()}; g.q.ix=function(){return this.S.Px()}; g.q.P9=function(V){this.S=V};g.A(jk,ci);jk.prototype.S=function(V,t){return ci.prototype.S.call(this,"$N|"+V,t)}; jk.prototype.G=function(V,t,x){return new y9(V,t,x,this.isLive)};var Odz=[],Ci=new Set;g.A(g.Hi,g.Np);g.q=g.Hi.prototype; g.q.setData=function(V){V=V||{};var t=V.errordetail;t!=null&&(this.errorDetail=t);var x=V.errorcode;x!=null?this.errorCode=x:V.status==="fail"&&(this.errorCode="auth");var u=V.reason;u!=null&&(this.errorReason=u);var Z=V.subreason;Z!=null&&(this.L7=Z);this.T("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=V.cpn||(this.Yw.d6()?"r"+g.m3(15):g.m3(16)));this.QC=E7(this.Yw.QC,V.livemonitor);RBK(this,V);var P=V.raw_player_response;if(P)this.PW=P;else{var K=V.player_response; K&&(P=JSON.parse(K))}if(this.T("html5_enable_ssap_entity_id")){var R=V.cached_load;R&&(this.sM=E7(this.sM,R));if(!this.clientPlaybackNonce){var f=V.cpn;f?(this.sR("ssei","shdc"),this.clientPlaybackNonce=f):this.clientPlaybackNonce=this.Yw.d6()?"r"+g.m3(15):g.m3(16)}}P&&(this.playerResponse=P);if(this.playerResponse){var b=this.playerResponse.annotations;if(b)for(var E=g.G(b),k=E.next();!k.done;k=E.next()){var O=k.value.playerAnnotationsUrlsRenderer;if(O){O.adsOnly&&(this.K8=!0);var N=O.loadPolicy; N&&(this.annotationsLoadPolicy=n_n[N]);var p=O.invideoUrl;p&&(this.xw=fm(p));break}}var I=this.playerResponse.attestation;I&&QkK(this,I);var L=this.playerResponse.cotn;L&&(this.cotn=L);var M=this.playerResponse.heartbeatParams;if(M){PJ8(this)&&(this.x0=!0);var z=M.heartbeatToken;z&&(this.drmSessionId=M.drmSessionId||"",this.heartbeatToken=z,this.KK=Number(M.intervalMilliseconds),this.yf=Number(M.maxRetries),this.CK=!!M.softFailOnError,this.rf=!!M.useInnertubeHeartbeatsForDrm,this.kH=!0);this.heartbeatServerData= M.heartbeatServerData;var Y;this.J5=!((Y=M.heartbeatAttestationConfig)==null||!Y.requiresAttestation)}var r=this.playerResponse.messages;r&&WJh(this,r);var n=this.playerResponse.overlay;if(n){var U=n.playerControlsOverlayRenderer;if(U)if(nAL(this,U.controlBgHtml),U.mutedAutoplay){var d=g.l(U.mutedAutoplay,hs$);if(d&&d.endScreen){var uL=g.l(d.endScreen,wUs);uL&&uL.text&&(this.mx=g.FX(uL.text))}}else this.mutedAutoplay=!1}var q1=this.playerResponse.playabilityStatus;if(q1){var w=q1.backgroundability; w&&w.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var H,C;if((H=q1.offlineability)==null?0:(C=H.offlineabilityRenderer)==null?0:C.offlineable)this.offlineable=!0;var S=q1.contextParams;S&&(this.contextParams=S);var D=q1.pictureInPicture;D&&D.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);q1.playableInEmbed&&(this.allowEmbed=!0);var ws=q1.ypcClickwrap;if(ws){var Ic=ws.playerLegacyDesktopYpcClickwrapRenderer,t_=ws.ypcRentalActivationRenderer;if(Ic)this.Wo=Ic.durationMessage|| "",this.NR=!0;else if(t_){var gs=t_.durationMessage;this.Wo=gs?g.FX(gs):"";this.NR=!0}}var Cl=q1.errorScreen;if(Cl){if(Cl.playerLegacyDesktopYpcTrailerRenderer){var uz=Cl.playerLegacyDesktopYpcTrailerRenderer;this.RR=uz.trailerVideoId||"";var Nt=Cl.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var F=Nt&&Nt.ypcTrailerRenderer}else if(Cl.playerLegacyDesktopYpcOfferRenderer)uz=Cl.playerLegacyDesktopYpcOfferRenderer;else if(Cl.ypcTrailerRenderer){F=Cl.ypcTrailerRenderer;var X=F.fullVideoMessage;this.zg= X?g.FX(X):"";var B,a;this.RR=((B=g.l(F,VGF))==null?void 0:(a=B.videoDetails)==null?void 0:a.videoId)||""}uz&&(this.Yl=uz.itemTitle||"",uz.itemUrl&&(this.Cy=uz.itemUrl),uz.itemBuyUrl&&(this.tM=uz.itemBuyUrl),this.EW=uz.itemThumbnail||"",this.rK=uz.offerHeadline||"",this.Qi=uz.offerDescription||"",this.zH=uz.offerId||"",this.DH=uz.offerButtonText||"",this.Ce=uz.offerButtonFormattedText||null,this.nO=uz.overlayDurationMsec||NaN,this.zg=uz.fullVideoMessage||"",this.pc=!0);if(F){var W=g.l(F,VGF);if(W)this.Yt= {raw_player_response:W};else{var tT=g.l(F,bR$);this.Yt=tT?EQ(tT):null}this.pc=!0}}}var Pw=this.playerResponse.playbackTracking;if(Pw){var Kl=V,T=Sk(Pw.googleRemarketingUrl);T&&(this.googleRemarketingUrl=T);var bL=Sk(Pw.youtubeRemarketingUrl);bL&&(this.youtubeRemarketingUrl=bL);var s4={},fl=Sk(Pw.ptrackingUrl);if(fl){var mh=GQ(fl),E$=mh.oid;E$&&(this.zr=E$);var yn=mh.pltype;yn&&(this.Yn=yn);var io=mh.ptchn;io&&(this.Wj=io);var Hw=mh.ptk;Hw&&(this.Ic=encodeURIComponent(Hw));var nR=mh.m;nR&&(this.p8= nR)}var bF=Sk(Pw.qoeUrl);if(bF){for(var QW=g.i$(bF),UY=g.G(Object.keys(QW)),kE=UY.next();!kE.done;kE=UY.next()){var yo=kE.value,ce=QW[yo];QW[yo]=Array.isArray(ce)?ce.join(","):ce}this.Zw=QW;var jz=QW.cat;jz&&(this.T("html5_enable_qoe_cat_list")?this.iz=this.iz.concat(jz.split(",")):this.IB=jz);var Gw=QW.live;Gw&&(this.b$=Gw);var iG=QW.drm_product;iG&&(this.kS=iG)}var Yv=Sk(Pw.videostatsPlaybackUrl);if(Yv){var iN=GQ(Yv),Qm=iN.adformat;if(Qm){Kl.adformat=Qm;var WY=this.K(),ox=zC4(Qm,this.cO,WY.W,WY.L); ox&&(this.adFormat=ox)}var M5=iN.aqi;M5&&(Kl.ad_query_id=M5);var wl=iN.autoplay;wl&&(this.Te=wl=="1",this.S$=wl=="1",x2(this,"vss"));var lc=iN.autonav;lc&&(this.isAutonav=lc=="1");var Pe=iN.delay;Pe&&(this.Fc=Z8(Pe));var FO=iN.ei;FO&&(this.eventId=FO);if(iN.adcontext||Qm)this.Te=!0,x2(this,"ad");var ea=iN.feature;ea&&(this.Ev=ea);var OA=iN.list;OA&&(this.playlistId=OA);var AK=iN.of;AK&&(this.KP=AK);var SE=iN.osid;SE&&(this.osid=SE);var GG=iN.referrer;GG&&(this.referrer=GG);var qo=iN.sdetail;qo&&(this.GD= qo);var qs=iN.ssrt;qs&&(this.aH=qs=="1");var RF=iN.subscribed;RF&&(this.subscribed=RF=="1",this.L.subscribed=RF);var f4=iN.uga;f4&&(this.userGenderAge=f4);var Il=iN.upt;Il&&(this.Ky=Il);var vq=iN.vm;vq&&(this.videoMetadata=vq);s4.playback=iN}var LF=Sk(Pw.videostatsWatchtimeUrl);if(LF){var Fj=GQ(LF),Mf=Fj.ald;Mf&&(this.Zs=Mf);s4.watchtime=Fj}var gU=Sk(Pw.atrUrl);if(gU){var Wz=GQ(gU);s4.atr=Wz}var Ma=Sk(Pw.engageUrl);if(Ma){var oK=GQ(Ma);s4.engage=oK}this.A8=s4;if(Pw.promotedPlaybackTracking){var D8= Pw.promotedPlaybackTracking;D8.startUrls&&(this.HH=D8.startUrls);D8.firstQuartileUrls&&(this.NL=D8.firstQuartileUrls);D8.secondQuartileUrls&&(this.WR=D8.secondQuartileUrls);D8.thirdQuartileUrls&&(this.Yu=D8.thirdQuartileUrls);D8.completeUrls&&(this.wx=D8.completeUrls);D8.engagedViewUrls&&(D8.engagedViewUrls.length>1&&g.lf(new g.xe("There are more than one engaged_view_urls.")),this.Vd=D8.engagedViewUrls[0])}}var $1=this.playerResponse.playerCueRanges;$1&&$1.length>0&&(this.cueRanges=$1);var Xj=this.playerResponse.playerCueRangeSet; Xj&&g.JP(this,Xj);a:{var bY=this.playerResponse.adPlacements;if(bY)for(var zG=g.G(bY),Er=zG.next();!Er.done;Er=zG.next()){var Bq=void 0,mA=void 0,YI=(Bq=Er.value.adPlacementRenderer)==null?void 0:(mA=Bq.renderer)==null?void 0:mA.videoAdTrackingRenderer;if(YI){var Q8=YI;break a}}Q8=null}var k1=Q8;Pw&&Pw.promotedPlaybackTracking&&k1&&g.lf(new g.xe("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));k1&&(this.df=!0);var al=this.playerResponse.playerAds;if(al)for(var nN= V,rU=g.G(al),iY=rU.next();!iY.done;iY=rU.next()){var TG=iY.value;if(TG){var Wq=TG.playerLegacyDesktopWatchAdsRenderer;if(Wq){var XO=Wq.playerAdParams;if(XO){XO.autoplay=="1"&&(this.S$=this.Te=!0);this.xr=XO.encodedAdSafetyReason||null;XO.showContentThumbnail!==void 0&&(this.RM=!!XO.showContentThumbnail);nN.enabled_engage_types=XO.enabledEngageTypes;break}}}}var vx=this.playerResponse.playerConfig;if(vx){var zp=vx.manifestlessWindowedLiveConfig;if(zp){var Or=Number(zp.minDvrSequence),Lg=Number(zp.maxDvrSequence), F3=Number(zp.minDvrMediaTimeMs),MR=Number(zp.maxDvrMediaTimeMs),ol=Number(zp.startWalltimeMs);Or&&(this.UL=Or);F3&&(this.Es=F3/1E3,this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&qm(this)&&(this.Bv=F3/1E3));Lg&&(this.JY=Lg);MR&&(this.CI=MR/1E3,this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&qm(this)&&(this.e0=MR/1E3));ol&&(this.IC=ol/1E3);(Or||F3)&&(Lg||MR)&&(this.allowLiveDvr=this.isLivePlayback=this.BX=!0,this.Gk=!1)}var Ro=vx.daiConfig;if(Ro){if(Ro.enableDai){this.Xt= !0;var gD=Ro.enableServerStitchedDai;gD&&(this.enableServerStitchedDai=gD);var cz=Ro.enablePreroll;cz&&(this.enablePreroll=cz)}var nF;if(Ro.daiType==="DAI_TYPE_SS_DISABLED"||((nF=Ro.debugInfo)==null?0:nF.isDisabledUnpluggedChannel))this.nw=!0;Ro.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.wW=!0)}var n_=vx.audioConfig;if(n_){var cq=n_.loudnessDb;cq!=null&&(this.a4=cq);var sr=n_.trackAbsoluteLoudnessLkfs;sr!=null&&(this.Pd=sr);var No=n_.loudnessTargetLkfs;No!=null&&(this.loudnessTargetLkfs=No);n_.audioMuted&& (this.gi=!0);n_.muteOnStart&&(this.nZ=!0);var fI=n_.loudnessNormalizationConfig;if(fI){fI.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);fI.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var y8=fI.minimumLoudnessTargetLkfs;y8!=null&&(this.minimumLoudnessTargetLkfs=y8);var jQ=fI.maxStatefulTimeThresholdSec;jQ!=null&&(this.maxStatefulTimeThresholdSec=jQ)}this.T("web_player_audio_playback_from_audio_config")&&n_.playAudioOnly&&(this.iT=!0)}var jE=vx.playbackEndConfig; if(jE){var dI=jE.endSeconds,ubT=jE.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(dI&&(this.endSeconds=dI),ubT&&(this.limitedPlaybackDurationInSeconds=ubT))}var Ph=vx.fairPlayConfig;if(Ph){var Zvq=Ph.certificate;Zvq&&(this.DS=fo(Zvq));var Pu9=Number(Ph.keyRotationPeriodMs);Pu9>0&&(this.qx=Pu9);var KlT=Number(Ph.keyPrefetchMarginMs);KlT>0&&(this.OW=KlT)}var CS=vx.playbackStartConfig;if(CS){this.Vh=Number(CS.startSeconds);var q5z=CS.liveUtcStartSeconds,Roh=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds> 0;q5z&&!Roh&&(this.liveUtcStartSeconds=Number(q5z));var KLw=CS.startPosition;if(KLw){var ffj=KLw.utcTimeMillis;ffj&&!Roh&&(this.liveUtcStartSeconds=Number(ffj)*.001);var $Dz=KLw.streamTimeMillis;$Dz&&(this.U1=Number($Dz)*.001)}this.progressBarStartPosition=CS.progressBarStartPosition;this.progressBarEndPosition=CS.progressBarEndPosition}else{var qoC=vx.skippableSegmentsConfig;if(qoC){var bv0=qoC.introSkipDurationMs;bv0&&(this.Nn=Number(bv0)/1E3);var E2j=qoC.outroSkipDurationMs;E2j&&(this.xi=Number(E2j)/ 1E3)}}var RcT=vx.skippableIntroConfig;if(RcT){var krw=Number(RcT.startMs),ivz=Number(RcT.endMs);isNaN(krw)||isNaN(ivz)||(this.T9=krw,this.CG=ivz)}var Ov0=vx.streamSelectionConfig;Ov0&&(this.Fz=Number(Ov0.maxBitrate));var sEw=vx.vrConfig;sEw&&(this.B6=sEw.partialSpherical=="1");var Ep=vx.webDrmConfig;if(Ep){Ep.skipWidevine&&(this.zJ=!0);var Nrq=Ep.widevineServiceCert;Nrq&&(this.Wp=fo(Nrq));Ep.useCobaltWidevine&&(this.useCobaltWidevine=!0);Ep.startWithNoQualityConstraint&&(this.Qd=!0)}var JJ=vx.mediaCommonConfig; if(JJ){var KE=JJ.dynamicReadaheadConfig;if(KE){this.maxReadAheadMediaTimeMs=KE.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=KE.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=KE.readAheadGrowthRateMs||NaN;var pL0,Ah0=JJ==null?void 0:(pL0=JJ.mediaUstreamerRequestConfig)==null?void 0:pL0.videoPlaybackUstreamerConfig;Ah0&&(this.WL=fo(Ah0));var fV8=JJ==null?void 0:JJ.sabrContextUpdates;if(fV8&&fV8.length>0)for(var S5C=g.G(fV8),$xq=S5C.next();!$xq.done;$xq=S5C.next()){var ps=$xq.value; if(ps.type&&ps.value){var dKY={type:ps.type,scope:ps.scope,value:fo(ps.value)||void 0,sendByDefault:ps.sendByDefault};this.sabrContextUpdates.set(ps.type,dKY)}}}var Grz=JJ.serverPlaybackStartConfig;Grz&&(this.serverPlaybackStartConfig=Grz);JJ.useServerDrivenAbr&&(this.yu=!0);var Ifj=JJ.requestPipeliningConfig;Ifj&&(this.requestPipeliningConfig=Ifj)}var v29=vx.inlinePlaybackConfig;v29&&(this.ZC=!!v29.showAudioControls);var qQ=vx.embeddedPlayerConfig;if(qQ){this.embeddedPlayerConfig=qQ;var b9C=qQ.embeddedPlayerMode; if(b9C){var LlC=this.K();LlC.Us=b9C;LlC.N=b9C==="EMBEDDED_PLAYER_MODE_PFL"}var FlL=qQ.permissions;FlL&&(this.allowImaMonetization=!!FlL.allowImaMonetization)}var Mm9=vx.ssapConfig;Mm9&&(this.xL=Mm9.ssapPrerollEnabled||!1);var Rf=vx.webPlayerConfig;Rf&&(Rf.gatewayExperimentGroup&&(this.gatewayExperimentGroup=Rf.gatewayExperimentGroup),Rf.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var hJ=this.playerResponse.streamingData;if(hJ){var EnC=hJ.formats;if(EnC){for(var kG=[],g20=g.G(EnC),kTK=g20.next();!kTK.done;kTK= g20.next()){var i9L=kTK.value;kG.push(i9L.itag+"/"+i9L.width+"x"+i9L.height)}this.pL=kG.join(",");kG=[];for(var XLh=g.G(EnC),O90=XLh.next();!O90.done;O90=XLh.next()){var Op=O90.value,sp={itag:Op.itag,type:Op.mimeType,quality:Op.quality},zoj=Op.url;zoj&&(sp.url=zoj);var fE=zt(Op),C6i=fE.Wu,Jmz=fE.Mb,hJr=fE.s;fE.Jx&&(sp.url=C6i,sp.sp=Jmz,sp.s=hJr);kG.push(g.dj(sp))}this.w1=kG.join(",")}var s24=hJ.hlsFormats;if(s24){var Brq=vx||null,$i={};if(Brq){var NH9=Brq.audioPairingConfig;if(NH9&&NH9.pairs)for(var mDq= g.G(NH9.pairs),pQ0=mDq.next();!pQ0.done;pQ0=mDq.next()){var Y5w=pQ0.value,Acw=Y5w.videoItag;$i[Acw]||($i[Acw]=[]);$i[Acw].push(Y5w.audioItag)}}for(var QE4={},afl=g.G(s24),Soh=afl.next();!Soh.done;Soh=afl.next()){var rh8=Soh.value;QE4[rh8.itag]=rh8.bitrate}for(var Tr4=[],Wll=g.G(s24),GTh=Wll.next();!GTh.done;GTh=Wll.next()){var Vm=GTh.value,Fd={itag:Vm.itag,type:Vm.mimeType,url:Vm.url,bitrate:Vm.bitrate,width:Vm.width,height:Vm.height,fps:Vm.fps},bD=Vm.audioTrack;if(bD){var o20=bD.displayName;o20&& (Fd.name=o20,Fd.audio_track_id=bD.id,bD.audioIsDefault&&(Fd.is_default="1"))}if(Vm.drmFamilies){for(var n24=[],chT=g.G(Vm.drmFamilies),IV4=chT.next();!IV4.done;IV4=chT.next())n24.push(sy[IV4.value]);Fd.drm_families=n24.join(",")}var ES=$i[Vm.itag];if(ES&&ES.length){Fd.audio_itag=ES.join(",");var yhT=QE4[ES[0]];yhT&&(Fd.bitrate+=yhT)}var jEl=AKs(Vm);jEl&&(Fd.eotf=jEl);Vm.audioChannels&&(Fd.audio_channels=Vm.audioChannels);Tr4.push(g.dj(Fd))}this.hlsFormats=Tr4.join(",")}var vn8=hJ.licenseInfos;if(vn8&& vn8.length>0){for(var lfC={},Hvz=g.G(vn8),LLC=Hvz.next();!LLC.done;LLC=Hvz.next()){var UDC=LLC.value,DDw=UDC.drmFamily,eoz=UDC.url;DDw&&eoz&&(lfC[sy[DDw]]=eoz)}this.Pw=lfC}var dDK=hJ.drmParams;dDK&&(this.drmParams=dDK);var Cu4=hJ.dashManifestUrl;Cu4&&(this.VP=g.CX(Cu4,{cpn:this.clientPlaybackNonce}));var Jhs=hJ.hlsManifestUrl;Jhs&&(this.hlsvp=Jhs);var hoK=hJ.probeUrl;hoK&&(this.probeUrl=fm(g.CX(hoK,{cpn:this.clientPlaybackNonce})));var wLj=hJ.serverAbrStreamingUrl;wLj&&(this.rj=new g.vg(wLj,!0))}var VB0= this.playerResponse.trackingParams;VB0&&(this.Us=VB0);var VW=this.playerResponse.videoDetails;if(VW){var Ms=V,FLj=VW.videoId;FLj&&(this.videoId=FLj,Ms.video_id||(Ms.video_id=FLj));var tBs=VW.channelId;tBs&&(this.L.uid=tBs.substring(2));var MA8=VW.title;MA8&&(this.title=MA8,Ms.title||(Ms.title=MA8));var gnw=VW.lengthSeconds;gnw&&(this.lengthSeconds=Number(gnw),Ms.length_seconds||(Ms.length_seconds=gnw));var x40=VW.keywords;x40&&(this.keywords=ks1(x40));var XQL=VW.channelId;XQL&&(this.Qm=XQL,Ms.ucid|| (Ms.ucid=XQL));var uTT=VW.viewCount;uTT&&(this.rawViewCount=Number(uTT));var zc8=VW.author;zc8&&(this.author=zc8,Ms.author||(Ms.author=zc8));var Zhl=VW.shortDescription;Zhl&&(this.shortDescription=Zhl);var PBh=VW.isCrawlable;PBh&&(this.isListed=PBh);var Kw4=VW.musicVideoType;Kw4&&(this.musicVideoType=Kw4);var BHq=VW.isLive;BHq!=null&&(this.isLivePlayback=BHq);if(BHq||VW.isUpcoming)this.isPremiere=!VW.isLiveContent;var qe1=VW.thumbnail;qe1&&(this.X=AP(qe1));var RTq=VW.isExternallyHostedPodcast;RTq&& (this.isExternallyHostedPodcast=RTq);var mx0=VW.viewerLivestreamJoinPosition;if(mx0==null?0:mx0.utcTimeMillis)this.Fq=Z8(mx0.utcTimeMillis);var fJj=vx||null,Yo9=V;VW.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);VW.isUpcoming&&(this.isUpcoming=!0);if(VW.isPostLiveDvr){this.Gk=!0;var $41=VW.latencyClass;$41&&(this.latencyClass=ceY[$41]||"UNKNOWN");VW.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var Q2T=!1;if(this.QC)this.allowLiveDvr=ui()?!0:Ky&&PB<5?!1:!0,this.isLivePlayback= !0;else if(VW.isLive){Yo9.livestream="1";this.allowLiveDvr=VW.isLiveDvrEnabled?ui()?!0:Ky&&PB<5?!1:!0:!1;this.partnerId=27;VW.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var bhz=VW.latencyClass;bhz&&(this.latencyClass=ceY[bhz]||"UNKNOWN");var EZ0=VW.liveChunkReadahead;EZ0&&(this.liveChunkReadahead=EZ0);var J9=fJj&&fJj.livePlayerConfig;if(J9){J9.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);J9.hasSubfragmentedWebm&&(this.B7=!0);J9.defraggedFromSubfragments&&(this.defraggedFromSubfragments= !0);var kq8=J9.liveExperimentalContentId;kq8&&(this.liveExperimentalContentId=Number(kq8));var ih9=J9.isLiveHeadPlayable;this.T("html5_live_head_playable")&&ih9!=null&&(this.isLiveHeadPlayable=ih9)}Q2T=!0}else VW.isUpcoming&&(Q2T=!0);Q2T&&(this.isLivePlayback=!0,Yo9.adformat&&Yo9.adformat.split("_")[1]!=="8"||this.cX.push("heartbeat"),this.kH=!0)}var Ohs=VW.isPrivate;Ohs!==void 0&&(this.isPrivate=E7(this.isPrivate,Ohs))}if(q1){var s3l=VW||null,Nhz=!1,h9=q1.errorScreen;Nhz=h9&&(h9.playerLegacyDesktopYpcOfferRenderer|| h9.playerLegacyDesktopYpcTrailerRenderer||h9.ypcTrailerRenderer)?!0:s3l&&s3l.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(q1.status);if(!Nhz){this.errorCode=I9C(q1.errorCode)||"auth";var ki=h9&&h9.playerErrorMessageRenderer;if(ki){this.playerErrorMessageRenderer=ki;var p38=ki.reason;p38&&(this.errorReason=g.FX(p38));var aV8=ki.subreason;aV8&&(this.L7=g.FX(aV8),this.RV=aV8)}else this.errorReason=q1.reason||null;var rcC=q1.status;if(rcC==="LOGIN_REQUIRED")this.errorDetail="1"; else if(rcC==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(rcC==="AGE_CHECK_REQUIRED"){var Axj=q1.errorScreen,Sez=Axj&&Axj.playerKavRenderer;this.errorDetail=Sez&&Sez.kavUrl?"4":"3"}else this.errorDetail=q1.isBlockedInRestrictedMode?"5":"0"}}var Gq8=this.playerResponse.interstitialPods;Gq8&&TtT(this,Gq8);this.xw&&this.eventId&&(this.xw=sQ(this.xw,{ei:this.eventId}));var THz=this.playerResponse.captions;if(THz&&THz.playerCaptionsTracklistRenderer)a:{var gJ=THz.playerCaptionsTracklistRenderer; this.captionTracks=[];if(gJ.captionTracks)for(var IJj=g.G(gJ.captionTracks),WLs=IJj.next();!WLs.done;WLs=IJj.next()){var Xd=WLs.value,vZ8=$6q(Xd.baseUrl);if(!vZ8)break a;var ons={is_translateable:!!Xd.isTranslatable,languageCode:Xd.languageCode,languageName:Xd.name&&g.FX(Xd.name),url:vZ8,vss_id:Xd.vssId,kind:Xd.kind};ons.name=Xd.trackName;ons.displayName=Xd.name&&g.FX(Xd.name);this.captionTracks.push(new g.kX(ons))}this.BR=gJ.audioTracks||[];this.Rv=gJ.defaultAudioTrackIndex||0;this.C8=[];if(gJ.translationLanguages)for(var Lww= g.G(gJ.translationLanguages),nnz=Lww.next();!nnz.done;nnz=Lww.next()){var w_=nnz.value,AC={};AC.languageCode=w_.languageCode;AC.languageName=g.FX(w_.languageName);if(w_.translationSourceTrackIndices){AC.translationSourceTrackIndices=[];for(var Fwj=g.G(w_.translationSourceTrackIndices),ccw=Fwj.next();!ccw.done;ccw=Fwj.next())AC.translationSourceTrackIndices.push(ccw.value)}if(w_.excludeAudioTrackIndices){AC.excludeAudioTrackIndices=[];for(var MB4=g.G(w_.excludeAudioTrackIndices),ycC=MB4.next();!ycC.done;ycC= MB4.next())AC.excludeAudioTrackIndices.push(ycC.value)}this.C8.push(AC)}this.TT=[];if(gJ.defaultTranslationSourceTrackIndices)for(var gZs=g.G(gJ.defaultTranslationSourceTrackIndices),j2w=gZs.next();!j2w.done;j2w=gZs.next())this.TT.push(j2w.value);this.a9=!!gJ.contribute&&!!gJ.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.Vh=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&& this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&oAl(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var X3h;this.compositeLiveIngestionOffsetToken=(X3h=this.playerResponse.playbackTracking)==null?void 0:X3h.compositeLiveIngestionOffsetToken;var zT0;this.compositeLiveStatusToken=(zT0=this.playerResponse.playbackTracking)==null?void 0:zT0.compositeLiveStatusToken}Dx(this,V);V.queue_info&&(this.queueInfo= V.queue_info);var Bhq=V.hlsdvr;Bhq!=null&&(this.allowLiveDvr=Number(Bhq)===1?ui()?!0:Ky&&PB<5?!1:!0:!1);this.adQueryId=V.ad_query_id||null;this.xr||(this.xr=V.encoded_ad_safety_reason||null);this.vg=V.agcid||null;this.zT=V.ad_id||null;this.U_=V.ad_sys||null;this.Hu=V.encoded_ad_playback_context||null;this.gi=E7(this.gi,V.infringe||V.muted);this.Xv=V.authkey;this.xR=V.authuser;this.mutedAutoplay=E7(this.mutedAutoplay,V&&V.playmuted);this.T("embeds_enable_full_length_inline_muted_autoplay")&&(this.mutedAutoplayDurationMode= is(this.mutedAutoplayDurationMode,V&&V.muted_autoplay_duration_mode));this.vR=E7(this.vR,V&&V.mutedautoplay);var iD=V.length_seconds;iD&&(this.lengthSeconds=typeof iD==="string"?Z8(iD):iD);if(this.isAd()||this.RA||!g.AD(g.oh(this.Yw)))this.endSeconds=is(this.endSeconds,this.xi||V.end||V.endSeconds);else{var wkr=g.oh(this.Yw),OS=this.lengthSeconds;switch(wkr){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":OS>30?this.limitedPlaybackDurationInSeconds=30:OS<30&&OS>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=OS*.2}}this.Us=O7(this.Us,V.itct);this.wf=E7(this.wf,V.noiba);this.Ap=E7(this.Ap,V.is_live_destination);this.isLivePlayback=E7(this.isLivePlayback,V.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.uq();V.isUpcoming&&(this.isUpcoming=E7(this.isUpcoming,V.isUpcoming));this.Gk=E7(this.Gk,V.post_live_playback);this.BX&&(this.Gk=!1);this.isMdxPlayback=E7(this.isMdxPlayback, V.mdx);var sS=V.mdx_control_mode;sS&&(this.mdxControlMode=typeof sS==="number"?sS:Z8(sS));this.isInlinePlaybackNoAd=E7(this.isInlinePlaybackNoAd,V.is_inline_playback_no_ad);this.Qt=is(this.Qt,V.reload_count);this.reloadReason=O7(this.reloadReason,V.reload_reason);this.RM=E7(this.RM,V.show_content_thumbnail);this.TK=E7(this.TK,V.utpsa);this.cycToken=V.cyc||null;this.Le=V.tkn||null;var m4w=pi(V);Object.keys(m4w).length>0&&(this.X=m4w);this.wk=O7(this.wk,V.vvt);this.mdxEnvironment=O7(this.mdxEnvironment, V.mdx_environment);V.source_container_playlist_id&&(this.sourceContainerPlaylistId=V.source_container_playlist_id);V.serialized_mdx_metadata&&(this.serializedMdxMetadata=V.serialized_mdx_metadata);this.ej=V.osig;this.eventId||(this.eventId=V.eventid);this.osid||(this.osid=V.osid);this.playlistId=O7(this.playlistId,V.list);V.index&&(this.playlistIndex=this.playlistIndex===void 0?is(0,V.index):is(this.playlistIndex,V.index));this.yQ=V.pyv_view_beacon_url;this.Da=V.pyv_quartile25_beacon_url;this.nC= V.pyv_quartile50_beacon_url;this.rD=V.pyv_quartile75_beacon_url;this.x7=V.pyv_quartile100_beacon_url;var YeT=V.session_data;!this.U5&&YeT&&(this.U5=$c(YeT,"&").feature);this.isFling=is(this.isFling?1:0,V.is_fling)===1;this.vnd=is(this.vnd,V.vnd);this.forceAdsUrl=O7(this.forceAdsUrl,V.force_ads_url);this.I4=O7(this.I4,V.ctrl);this.DD=O7(this.DD,V.ytr);this.WD=V.ytrcc;this.qI=V.ytrexp;this.F5=V.ytrext;this.kX=O7(this.kX,V.adformat);this.cO=O7(this.cO,V.attrib);this.slotPosition=is(this.slotPosition, V.slot_pos);this.breakType=V.break_type;this.aH=E7(this.aH,V.ssrt);this.videoId=NU(V)||this.videoId;this.B=O7(this.B,V.vss_credentials_token);this.gH=O7(this.gH,V.vss_credentials_token_type);this.iT=E7(this.iT,V.audio_only);this.Tc=E7(this.Tc,V.aac_high);this.iJ=E7(this.iJ,V.prefer_low_quality_audio);this.Ke=E7(this.Ke,V.uncap_inline_quality);this.T("html5_enable_qoe_cat_list")?V.qoe_cat&&(this.iz=this.iz.concat(V.qoe_cat.split(","))):this.IB=O7(this.IB,V.qoe_cat);this.Sz=E7(this.Sz,V.download_media); var Q3z=V.prefer_gapless;this.C=Q3z!=null?E7(this.C,Q3z):this.C?this.C:this.Yw.preferGapless&&this.Yw.supportsGaplessShorts();oMq(this.playerResponse)&&this.cX.push("ad");var aJ4=V.adaptive_fmts;aJ4&&(this.adaptiveFormats=aJ4,this.J6("adpfmts",{},!0));var rxC=V.allow_embed;rxC&&(this.allowEmbed=Number(rxC)===1);var ThT=V.backgroundable;ThT&&(this.backgroundable=Number(ThT)===1);var Wwz=V.autonav;Wwz&&(this.isAutonav=Number(Wwz)===1);var oZq=V.autoplay;oZq&&(this.Te=this.S$=Number(oZq)===1,x2(this, "c"));var nZq=V.iv_load_policy;nZq&&(this.annotationsLoadPolicy=kD(this.annotationsLoadPolicy,nZq,no));var cx8=V.cc_lang_pref;cx8&&(this.captionsLanguagePreference=O7(cx8,this.captionsLanguagePreference));var yxq=V.cc_load_policy;yxq&&(this.I6=kD(this.I6,yxq,no));var j3s;this.deviceCaptionsOn=(j3s=V.device_captions_on)!=null?j3s:void 0;var lJC;this.A1=(lJC=V.device_captions_lang_pref)!=null?lJC:"";var Hh4;this.yj=(Hh4=V.viewer_selected_caption_langs)!=null?Hh4:[];if(!this.T("html5_enable_ssap_entity_id")){var U4L= V.cached_load;U4L&&(this.sM=E7(this.sM,U4L))}if(V.dash==="0"||V.dash===0||V.dash===!1)this.s_=!0;var D4T=V.dashmpd;D4T&&(this.VP=g.CX(D4T,{cpn:this.clientPlaybackNonce}));var eTq=V.delay;eTq&&(this.Fc=Z8(eTq));var lV4=this.xi||V.end;if(this.Td?lV4!=null:lV4!=void 0)this.clipEnd=is(this.clipEnd,lV4);var d4q=V.fmt_list;d4q&&(this.pL=d4q);V.heartbeat_preroll&&this.cX.push("heartbeat");this.e5=-Math.floor(Math.random()*10);this.uF=-Math.floor(Math.random()*40);var CBh=V.is_listed;CBh&&(this.isListed= E7(this.isListed,CBh));var JxK=V.is_private;JxK&&(this.isPrivate=E7(this.isPrivate,JxK));var hTh=V.is_dni;hTh&&(this.kD=E7(this.kD,hTh));var w31=V.dni_color;w31&&(this.HF=O7(this.HF,w31));var VML=V.pipable;VML&&(this.pipable=E7(this.pipable,VML));this.t7=(this.Bg=this.pipable&&this.Yw.zg)&&!this.Yw.showMiniplayerButton;var tMq=V.paid_content_overlay_duration_ms;tMq&&(this.paidContentOverlayDurationMs=Z8(tMq));var xTs=V.paid_content_overlay_text;xTs&&(this.paidContentOverlayText=xTs);var uBT=V.url_encoded_fmt_stream_map; uBT&&(this.w1=uBT);var ZGw=V.hls_formats;ZGw&&(this.hlsFormats=ZGw);var Pk9=V.hlsvp;Pk9&&(this.hlsvp=Pk9);var NQ=V.live_start_walltime;NQ&&(this.A3=typeof NQ==="number"?NQ:Z8(NQ));var pE=V.live_manifest_duration;pE&&(this.eK=typeof pE==="number"?pE:Z8(pE));var Kf8=V.player_params;Kf8&&(this.playerParams=Kf8);var qlq=V.partnerid;qlq&&(this.partnerId=is(this.partnerId,qlq));var RI8=V.probe_url;RI8&&(this.probeUrl=fm(g.CX(RI8,{cpn:this.clientPlaybackNonce})));var H99=V.pyv_billable_url;H99&&Cfz(H99)&& (this.Vd=H99);var Ux0=V.pyv_conv_url;Ux0&&Cfz(Ux0)&&(this.Ni=Ux0);idl(this,V);this.startSeconds>0?this.T("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.Vh||this.Nn||V.start||V.startSeconds)&&this.J6("lss",{css:this.startSeconds,pcss:this.Vh,iss:this.Nn,ps:V.start||void 0,pss:V.startSeconds||void 0}):this.P$=this.startSeconds=is(this.startSeconds,this.Vh||this.Nn||V.start||V.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var fGh=V.live_utc_start;if(fGh!= null)this.liveUtcStartSeconds=Number(fGh);else{var Dxh=this.startSeconds;Dxh&&isFinite(Dxh)&&Dxh>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var $TK=V.utc_start_millis;$TK&&(this.liveUtcStartSeconds=Number($TK)*.001)}var bG9=V.stream_time_start_millis;bG9&&(this.U1=Number(bG9)*.001);var ec0=this.Nn||V.start;(this.Td?ec0==null||Number(V.resume)===1:ec0==void 0||V.resume=="1")||this.isLivePlayback||(this.clipStart=is(this.clipStart, ec0));var E4K=V.url_encoded_third_party_media;E4K&&(this.mM=kc(E4K));var dx1=V.ypc_offer_button_formatted_text;if(dx1){var keL=JSON.parse(dx1);this.Ce=keL!=null?keL:null;this.TJ=dx1}var iG0=V.ypc_offer_button_text;iG0&&(this.DH=iG0);var OGL=V.ypc_offer_description;OGL&&(this.Qi=OGL);var sJq=V.ypc_offer_headline;sJq&&(this.rK=sJq);var NG4=V.ypc_full_video_message;NG4&&(this.zg=NG4);var pjw=V.ypc_offer_id;pjw&&(this.zH=pjw);var Ais=V.ypc_buy_url;Ais&&(this.tM=Ais);var Sl8=V.ypc_item_thumbnail;Sl8&& (this.EW=Sl8);var GeC=V.ypc_item_title;GeC&&(this.Yl=GeC);var IG4=V.ypc_item_url;IG4&&(this.Cy=IG4);var v4L=V.ypc_vid;v4L&&(this.RR=v4L);V.ypc_overlay_timeout&&(this.nO=Number(V.ypc_overlay_timeout));var LfL=V.ypc_trailer_player_vars;LfL&&(this.Yt=EQ(LfL));var Ff9=V.ypc_original_itct;Ff9&&(this.LY=Ff9);this.Qm=O7(this.Qm,V.ucid);V.baseUrl&&(this.L.baseUrl=V.baseUrl);V.uid&&(this.L.uid=V.uid);V.oeid&&(this.L.oeid=V.oeid);V.ieid&&(this.L.ieid=V.ieid);V.ppe&&(this.L.ppe=V.ppe);V.engaged&&(this.L.engaged= V.engaged);V.subscribed&&(this.L.subscribed=V.subscribed);this.L.focEnabled=E7(this.L.focEnabled,V.focEnabled);this.L.rmktEnabled=E7(this.L.rmktEnabled,V.rmktEnabled);this.x8=V.storyboard_spec||null;this.CH=V.live_storyboard_spec||null;this.wG=V.iv_endscreen_url||null;this.kH=E7(this.kH,V.ypc_license_checker_module);this.pc=E7(this.pc,V.ypc_module);this.NR=E7(this.NR,V.ypc_clickwrap_module);this.pc&&this.cX.push("ypc");this.NR&&this.cX.push("ypc_clickwrap");this.tN={video_id:V.video_id,eventid:V.eventid, cbrand:V.cbrand,cbr:V.cbr,cbrver:V.cbrver,c:V.c,cver:V.cver,ctheme:V.ctheme,cplayer:V.cplayer,cmodel:V.cmodel,cnetwork:V.cnetwork,cos:V.cos,cosver:V.cosver,cplatform:V.cplatform,user_age:V.user_age,user_display_image:V.user_display_image,user_display_name:V.user_display_name,user_gender:V.user_gender,csi_page_type:V.csi_page_type,csi_service_name:V.csi_service_name,enablecsi:V.enablecsi,enabled_engage_types:V.enabled_engage_types};f20(this,V);var MMs=V.cotn;MMs&&(this.cotn=MMs);if(gGs(this))$8(this)&& (this.isLivePlayback&&this.VP&&(this.qf=!0),this.DS&&(this.Gt=!0));else if(XdC(this))this.qf=!0;else{var g40,XjL,zI1=((g40=this.playerResponse)==null?void 0:(XjL=g40.streamingData)==null?void 0:XjL.adaptiveFormats)||[];if(zI1.length>0)var N6=Mlq(this,zI1);else{var BG8=this.adaptiveFormats;if(BG8&&!$8(this)){b1(this,"html5_enable_cobalt_experimental_vp9_decoder")&&(zn=!0);var Vh=pN(BG8),Cx8=this.Pw,mT9=this.lengthSeconds,Vaz=this.isLivePlayback,pd=this.Gk,tE=this.Yw,tac=aHj(Vh);if(Vaz||pd){var Yl4= tE==null?void 0:tE.experiments,Tl=new ie("",Yl4,!0);Tl.uq=!0;Tl.isManifestless=!0;Tl.S=!pd;Tl.isLive=!pd;Tl.Gk=pd;for(var QJ4=g.G(Vh),JcK=QJ4.next();!JcK.done;JcK=QJ4.next()){var xB=JcK.value,aGz=pe(xB,Cx8),Sx=AW(xB.url,xB.sp,xB.s),riK=Sx.get("id");riK&&riK.includes("%7E")&&(Tl.X=!0);var TGq=void 0,xgU=(TGq=Yl4)==null?void 0:TGq.MP("html5_max_known_end_time_rebase"),u6E=Number(xB.target_duration_sec)||5,Z0$=Number(xB.max_dvr_duration_sec)||14400,Wfh=Number(Sx.get("mindsq")||Sx.get("min_sq")||"0"), o4h=Number(Sx.get("maxdsq")||Sx.get("max_sq")||"0")||Infinity;Tl.UL=Tl.UL||Wfh;Tl.JY=Tl.JY||o4h;var PtE=!Pq(aGz);Sx&&be(Tl,new h0(Sx,aGz,{o4:u6E,Fu:PtE,Po:Z0$,UL:Wfh,JY:o4h,oG:300,Gk:pd,fK:xgU}))}var n4l=Tl}else{if(tac==="FORMAT_STREAM_TYPE_OTF"){var AF=mT9;AF=AF===void 0?0:AF;var ur=new ie("",tE==null?void 0:tE.experiments,!1);ur.duration=AF||0;for(var cij=g.G(Vh),hcK=cij.next();!hcK.done;hcK=cij.next()){var Zs=hcK.value,wQs=pe(Zs,Cx8,ur.duration),Vcz=AW(Zs.url,Zs.sp,Zs.s);if(Vcz)if(wQs.streamType=== "FORMAT_STREAM_TYPE_OTF")be(ur,new wL(Vcz,wQs,"sq/0"));else{var Kzc=B_(Zs.init),qOt=B_(Zs.index);be(ur,new R$(Vcz,wQs,Kzc,qOt))}}ur.isOtf=!0;var yil=ur}else{var Sw=mT9;Sw=Sw===void 0?0:Sw;var Gz=new ie("",tE==null?void 0:tE.experiments,!1);Gz.duration=Sw||0;for(var jJw=g.G(Vh),tcT=jJw.next();!tcT.done;tcT=jJw.next()){var Pl=tcT.value,R6z=pe(Pl,Cx8,Gz.duration),f_z=B_(Pl.init),$gc=B_(Pl.index),lG4=AW(Pl.url,Pl.sp,Pl.s);lG4&&be(Gz,new R$(lG4,R6z,f_z,$gc))}yil=Gz}n4l=yil}var HGl=n4l;if(Vh.length>0){var UT4= Vh[0];if(this.K().playerStyle==="hangouts-meet"&&UT4.url){var b0z=g.i$(UT4.url);this.S4=this.S4||Number(b0z.expire)}}var E6_=this.isLivePlayback&&!this.Gk&&!this.BX&&!this.isPremiere;this.T("html5_live_head_playable")&&(!Ej(this)&&E6_&&this.J6("missingLiveHeadPlayable",{}),this.Yw.Ij==="yt"&&(HGl.xw=!0));N6=HGl}else N6=null;this.J6("pafmts",{isManifestFilled:!!N6})}if(N6){Oj(this,N6);var DTC=!0}else DTC=!1;DTC?this.enableServerStitchedDai=this.enableServerStitchedDai&&k8(this):this.VP&&(this.Yw.Ij=== "yt"&&this.uq()&&this.T("drm_manifestless_unplugged")&&this.T("html5_deprecate_manifestful_fallback")?this.J6("deprecateMflFallback",{}):this.qf=!0)}var x80=V.adpings;x80&&(this.dJ=x80?EQ(x80):null);var eIl=V.feature;eIl&&(this.Ev=eIl);var dTL=V.referrer;dTL&&(this.referrer=dTL);this.clientScreenNonce=O7(this.clientScreenNonce,V.csn);this.Ug=is(this.Ug,V.root_ve_type);this.Tt=is(this.Tt,V.kids_age_up_mode);this.Td||V.kids_app_info==void 0||(this.kidsAppInfo=V.kids_app_info);this.Td&&V.kids_app_info!= null&&(this.kidsAppInfo=V.kids_app_info);this.s0=E7(this.s0,V.upg_content_filter_mode);this.unpluggedFilterModeType=is(this.unpluggedFilterModeType,V.unplugged_filter_mode_type);var CkL=V.unplugged_location_info;CkL&&(this.Ij=CkL);var Jiw=V.unplugged_partner_opt_out;Jiw&&(this.mJ=O7("",Jiw));this.o9=E7(this.o9,V.disable_watch_next);this.iP=O7(this.iP,V.internal_ip_override);this.LK=!!V.is_yto_interstitial;(this.interstitials.length||this.LK)&&this.cX.push("yto");var hIL=V.xV;hIL&&(this.xV=hIL);var wj8; this.dk=(wj8=V.csi_timer)!=null?wj8:"";this.w2=!!V.force_gvi;V.watchUrl&&(this.watchUrl=V.watchUrl);var G3=V.watch_endpoint;this.T("html5_attach_watch_endpoint_ustreamer_config")&&G3&&LJ8(this,G3);if(G3==null?0:G3.ustreamerConfig)this.h8=fo(G3.ustreamerConfig);var VfT,tf1,xIw=G3==null?void 0:(VfT=G3.loggingContext)==null?void 0:(tf1=VfT.qoeLoggingContext)==null?void 0:tf1.serializedContextData;xIw&&(this.Wa=xIw);g.zo(this.Yw)&&this.Yw.RM&&(this.embedsRct=O7(this.embedsRct,V.rct),this.embedsRctn=O7(this.embedsRctn, V.rctn));this.RO=this.RO||!!V.pause_at_start;V.default_active_source_video_id&&(this.defaultActiveSourceVideoId=V.default_active_source_video_id)}; g.q.K=function(){return this.Yw}; g.q.T=function(V){return this.Yw.T(V)}; g.q.tB=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.q.hasSupportedAudio51Tracks=function(){var V;return!((V=this.Ve)==null||!V.gk)}; g.q.getUserAudio51Preference=function(){var V=1;h2(this.Yw)&&this.T("html5_ytv_surround_toggle_default_off")?V=0:g.de(this.Yw)&&this.isLivePlayback&&this.eZ()&&(V=0);var t;return(t=g.ls("yt-player-audio51"))!=null?t:V}; g.q.iK=function(){this.uD()||(this.J.S||this.J.unsubscribe("refresh",this.iK,this),this.mN(-1))}; g.q.mN=function(V){if(!this.isLivePlayback||!this.G||this.G.flavor!=="fairplay"){var t=TUj(this.J,this.LP);if(t.length>0){for(var x=g.G(t),u=x.next();!u.done;u=x.next())u=u.value,u.startSecs=Math.max(u.startSecs,this.L9());this.publish("cuepointupdated",t,V);this.LP+=t.length;if(k8(this)&&this.Yw.d6())for(t=g.G(t),x=t.next();!x.done;x=t.next())x=x.value,this.J6("cuepoint",{segNum:V,event:x.event,startSecs:x.startSecs,id:x.identifier.slice(-16)}),x.event==="start"&&(x=x.startSecs,this.cR.start=this.Cv, this.cR.end=x+3)}}}; g.q.SA=function(){this.uD()||(this.loading=!1,this.publish("dataloaded"))}; g.q.eZ=function(){return this.yA!==void 0?this.yA:this.yA=!!this.Pw||!!this.J&&sh(this.J)}; g.q.Tx=function(V){var t=this;if(this.uD())return yA();this.q6=this.yC=this.N=null;b1(this,"html5_high_res_logging_always")&&(this.Yw.a_=!0);return Qu0(this,V).then(void 0,function(){return a2C(t,V)}).then(void 0,function(){return rZq(t)}).then(void 0,function(){return Wb8(t)})}; g.q.vQ=function(){if(this.cotn)return null;var V=g.YH(this.Yw)||this.T("web_l3_storyboard");if(!this.QN)if(this.playerResponse&&this.playerResponse.storyboards){var t=this.playerResponse.storyboards,x=t.playerStoryboardSpecRenderer;x&&x.spec?this.QN=new ci(x.spec,this.lengthSeconds,void 0,!1,V):(t=t.playerLiveStoryboardSpecRenderer)&&t.spec&&this.J&&(x=DMs(this.J.J).index)&&(this.QN=new jk(t.spec,this.J.isLive,x,V))}else this.x8?this.QN=new ci(this.x8,this.lengthSeconds,void 0,!1,V):this.CH&&this.J&& (t=DMs(this.J.J).index)&&(this.QN=new jk(this.CH,this.J.isLive,t,V));return this.QN}; g.q.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var V=this.playerResponse.storyboards;return(V=V.playerStoryboardSpecRenderer||V.playerLiveStoryboardSpecRenderer)&&V.spec||null}return this.x8||this.CH}; g.q.uh=function(){return this.J&&!isNaN(this.J.uh())?this.J.uh():k8(this)?0:this.lengthSeconds}; g.q.L9=function(){return this.J&&!isNaN(this.J.L9())?this.J.L9():0}; g.q.getPlaylistSequenceForTime=function(V){if(this.J&&this.S){var t=this.J.J[this.S.id];if(!t)return null;var x=t.index.kE(V);t=t.index.getStartTime(x);return{sequence:x,elapsed:Math.floor((V-t)*1E3)}}return null}; g.q.s1=function(){return!this.uD()&&!(!this.videoId&&!this.mM)}; g.q.yI=function(){var V,t,x;return!!this.adaptiveFormats||!!((V=this.playerResponse)==null?0:(t=V.streamingData)==null?0:(x=t.adaptiveFormats)==null?0:x.length)}; g.q.isLoaded=function(){return Us(this)&&!this.qf&&!this.Gt}; g.q.zm=function(V){V||(V="hqdefault.jpg");var t=this.X[V];return t||this.Yw.wk||V==="pop1.jpg"||V==="pop2.jpg"||V==="sddefault.jpg"||V==="hq720.jpg"||V==="maxresdefault.jpg"?t:D1(this.Yw,this.videoId,V)}; g.q.uq=function(){return this.isLivePlayback||this.Gk||this.BX||!(!this.liveUtcStartSeconds||!this.eK)}; g.q.isOtf=function(){return!!this.J&&(this.J.isOtf||!this.Gk&&!this.isLivePlayback&&this.J.S)}; g.q.getAvailableAudioTracks=function(){return this.N?this.N.getAvailableAudioTracks().length>0?this.N.getAvailableAudioTracks():this.hR||[]:[]}; g.q.getAudioTrack=function(){var V=this;if(this.W&&!ZH(this.W))return g.ei(this.getAvailableAudioTracks(),function(u){return u.id===V.W.id})||this.n6; if(this.hR){if(!this.Lu)for(var t=g.G(this.hR),x=t.next();!x.done;x=t.next())if(x=x.value,x.H$.getIsDefault()){this.Lu=x;break}return this.Lu||this.n6}return this.n6}; g.q.getPlayerResponse=function(){return this.playerResponse}; g.q.getWatchNextResponse=function(){return this.L1}; g.q.getHeartbeatResponse=function(){return this.g5}; g.q.Lk=function(){return this.watchUrl?this.watchUrl:this.Yw.getVideoUrl(this.videoId)}; g.q.QH=function(){return!!this.J&&(ME4(this.J)||gIC(this.J)||XqC(this.J))}; g.q.getEmbeddedPlayerResponse=function(){return this.fv}; g.q.Lc=function(){return(this.eventLabel||this.Yw.BX)==="shortspage"}; g.q.isAd=function(){return this.Vf||!!this.adFormat}; g.q.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.q.R_=function(){var V,t,x;return this.isDaiEnabled()&&!!((V=this.playerResponse)==null?0:(t=V.playerConfig)==null?0:(x=t.daiConfig)==null?0:x.ssaEnabledPlayback)}; g.q.EA=function(){return PJ8(this)?this.x0:this.kH||this.oa}; g.q.ya=function(){return this.pc||this.oa}; g.q.Uk=function(){return b1(this,"html5_samsung_vp9_live")}; g.q.J6=function(V,t,x){this.publish("ctmp",V,t,x)}; g.q.sR=function(V,t,x){this.publish("ctmpstr",V,t,x)}; g.q.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.q.getGetAdBreakContext=function(V,t){V=V===void 0?NaN:V;t=t===void 0?NaN:t;var x={isSabr:qm(this)},u,Z=(u=this.getHeartbeatResponse())==null?void 0:u.adBreakHeartbeatParams;Z&&(x.adBreakHeartbeatParams=Z);if(this.T("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.J&&!isNaN(V)&&!isNaN(t)){t=V-t;for(var P in this.J.J)if(u=this.J.J[P],u.info.Z8()||u.info.OL())if(u=u.index,u.isLoaded()){P=u.kE(t);u=u.eH(P)+t-u.getStartTime(P);this.J6("gabc",{t:V.toFixed(3),mt:t.toFixed(3),sg:P,igt:u.toFixed(3)}); x.livePlaybackPosition={utcTimeMillis:""+(u*1E3).toFixed(0)};break}}return x}; g.q.isEmbedsShortsMode=function(V,t){if(!g.zo(this.Yw))return!1;var x;if(!this.T("embeds_enable_emc3ds_shorts")&&((x=this.Yw.getWebPlayerContextConfig())==null?0:x.embedsEnableEmc3ds)||(this.Yw.Us||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||t)return!1;var u,Z;return!!(((u=this.embeddedPlayerConfig)==null?0:(Z=u.embeddedPlayerFlags)==null?0:Z.isShortsExperienceEligible)&&V.width<=V.height)}; g.q.NP=function(){g.Np.prototype.NP.call(this);this.dJ=null;delete this.qp;delete this.accountLinkingConfig;delete this.J;this.N=this.g5=this.playerResponse=this.L1=null;this.w1=this.adaptiveFormats="";delete this.botguardData;this.HX=this.suggestions=this.sW=null;this.sabrContextUpdates.clear()};var E5j={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},k1T={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},$bw={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},qZl={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"},fb4={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},ROz={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"},bnC={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.A(Kv,g.c);g.q=Kv.prototype;g.q.handleExternalCall=function(V,t,x){var u=this.state.L[V],Z=this.state.C[V],P=u;if(Z)if(x&&Pu(x,xMi))P=Z;else if(!u)throw Error('API call from an untrusted origin: "'+x+'"');this.logApiCall(V,x);if(P){x=!1;u=g.G(t);for(Z=u.next();!Z.done;Z=u.next())if(String(Z.value).includes("javascript:")){x=!0;break}x&&g.lf(Error('Dangerous call to "'+V+'" with ['+t+"]."));return P.apply(this,t)}throw Error('Unknown API method: "'+V+'".');}; g.q.logApiCall=function(V,t,x){var u=this.app.K();u.Tt&&!this.state.X.has(V)&&(this.state.X.add(V),g.pq("webPlayerApiCalled",{callerUrl:u.loaderUrl,methodName:V,origin:t||void 0,playerStyle:u.playerStyle||void 0,embeddedPlayerMode:u.Us,errorCode:x}))}; g.q.publish=function(V){var t=g.Xq.apply(1,arguments);this.state.N.publish.apply(this.state.N,[V].concat(g.v(t)));if(V==="videodatachange"||V==="resize"||V==="cardstatechange")this.state.S.publish.apply(this.state.S,[V].concat(g.v(t))),this.state.W.publish.apply(this.state.W,[V].concat(g.v(t)))}; g.q.Os=function(V){var t=g.Xq.apply(1,arguments);this.state.N.publish.apply(this.state.N,[V].concat(g.v(t)));this.state.S.publish.apply(this.state.S,[V].concat(g.v(t)))}; g.q.oC=function(V){var t=g.Xq.apply(1,arguments);this.state.N.publish.apply(this.state.N,[V].concat(g.v(t)));this.state.S.publish.apply(this.state.S,[V].concat(g.v(t)));this.state.W.publish.apply(this.state.W,[V].concat(g.v(t)))}; g.q.T4=function(V){var t=g.Xq.apply(1,arguments);this.state.N.publish.apply(this.state.N,[V].concat(g.v(t)));this.state.S.publish.apply(this.state.S,[V].concat(g.v(t)));this.state.W.publish.apply(this.state.W,[V].concat(g.v(t)));this.state.G.publish.apply(this.state.G,[V].concat(g.v(t)))}; g.q.T=function(V){return this.app.K().T(V)}; g.q.NP=function(){if(this.state.element){var V=this.state.element,t;for(t in this.state.J)this.state.J.hasOwnProperty(t)&&(V[t]=null);this.state.element=null}g.c.prototype.NP.call(this)};g.A(bu,g.ry);bu.prototype.publish=function(V){var t=g.Xq.apply(1,arguments);if(this.G.has(V))return this.G.get(V).push(t),!0;var x=!1;try{for(t=[t],this.G.set(V,t);t.length;)x=g.ry.prototype.publish.call.apply(g.ry.prototype.publish,[this,V].concat(g.v(t.shift())))}finally{this.G.delete(V)}return x};g.A(E5,g.c);E5.prototype.NP=function(){this.G.dispose();this.W.dispose();this.S.dispose();this.N.dispose();this.X=this.J=this.C=this.L=this.B=void 0};var SZ4=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.A(iu,Kv);g.q=iu.prototype;g.q.getApiInterface=function(){return Array.from(this.state.B)}; g.q.N5=function(V,t){this.state.G.subscribe(V,t)}; g.q.k4w=function(V,t){this.state.G.unsubscribe(V,t)}; g.q.getPlayerState=function(V){return pCK(this.app,V)}; g.q.hf=function(){return pCK(this.app)}; g.q.uJk=function(V,t,x){ND(this)&&(nz(this.app,!0,1),jX(this.app,V,t,x,1))}; g.q.getCurrentTime=function(V,t,x){var u=this.getPlayerState(V);if(this.app.getAppState()===2&&u===5){var Z;return((Z=this.app.getVideoData())==null?void 0:Z.startSeconds)||0}return this.T("web_player_max_seekable_on_ended")&&u===0?ics(this.app,V):V?this.app.getCurrentTime(V,t,x):this.app.getCurrentTime(V)}; g.q.wu=function(){return this.app.getCurrentTime(1)}; g.q.fD=function(){var V=this.app.eH(1);return isNaN(V)?this.getCurrentTime(1):V}; g.q.m1=function(){return this.app.getDuration(1)}; g.q.pB=function(V,t){V=g.EY(Math.floor(V),0,100);isFinite(V)&&Yq(this.app,{volume:V,muted:this.isMuted()},t)}; g.q.CIX=function(V){this.pB(V,!1)}; g.q.N_=function(V){Yq(this.app,{muted:!0,volume:this.getVolume()},V)}; g.q.EXX=function(){this.N_(!1)}; g.q.Ux=function(V){s5(this.app)&&!this.T("embeds_enable_emc3ds_muted_autoplay")||Yq(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},V)}; g.q.ABU=function(){s5(this.app)&&this.T("embeds_enable_emc3ds_muted_autoplay")||this.Ux(!1)}; g.q.getPlayerMode=function(){var V={};this.app.getVideoData().kD&&(V.pfp={enableIma:g.th(this.app.getVideoData())&&this.app.M6().allowImaMonetization,autoplay:Hz(this.app.M6()),mutedAutoplay:this.app.M6().mutedAutoplay});return V}; g.q.i6=function(){var V=this.app.getPresentingPlayerType();if(V===2&&!this.app.Xt()){var t=jC(this.app.Jl());if(!sqj(t)||NOC(t))return}V===3?zr(this.app.Jl()).TM("control_play"):this.app.K().T("html5_ssap_ignore_play_for_ad")&&g.d8(this.app.M6())&&V===2||this.app.playVideo(V)}; g.q.utw=function(){nz(this.app,!0,1);this.i6()}; g.q.pauseVideo=function(V){var t=this.app.getPresentingPlayerType();if(t!==2||this.app.Xt()||sqj(jC(this.app.Jl())))t===3?zr(this.app.Jl()).TM("control_pause"):this.app.pauseVideo(t,V)}; g.q.JB1=function(){var V=this.app,t=!1;V.Rj.Td&&(V.A6.publish("pageTransition"),t=!0);V.stopVideo(t)}; g.q.clearVideo=function(){}; g.q.getAvailablePlaybackRates=function(){var V=this.app.K();return V.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(V.W?V.ancestorOrigins[0]:window.location.origin)||V.Ld?QdE:V.supportsVarispeedExtendedFeatures?aTj:YAE:[1]}; g.q.getPlaybackQuality=function(V){return(V=g.pv(this.app,V))?V.getPlaybackQuality():"unknown"}; g.q.dvP=function(){}; g.q.getAvailableQualityLevels=function(V){return(V=g.pv(this.app,V))?(V=g.QV(V.qB(),function(t){return t.quality}),V.length&&(V[0]==="auto"&&V.shift(),V=V.concat(["auto"])),V):[]}; g.q.Rq=function(){return this.getAvailableQualityLevels(1)}; g.q.Ga=function(){return this.ao()}; g.q.Ta=function(){return 1}; g.q.getVideoLoadedFraction=function(V){return this.app.getVideoLoadedFraction(V)}; g.q.ao=function(){return this.getVideoLoadedFraction()}; g.q.Af=function(){return 0}; g.q.getSize=function(){var V=this.app.XX().getPlayerSize();return{width:V.width,height:V.height}}; g.q.setSize=function(){this.app.XX().resize()}; g.q.loadVideoById=function(V,t,x,u){if(!V)return!1;V=k2(V,t,x);return this.app.loadVideoByPlayerVars(V,u)}; g.q.pXk=function(V,t,x){V=this.loadVideoById(V,t,x,1);nz(this.app,V,1)}; g.q.cueVideoById=function(V,t,x,u){V=k2(V,t,x);this.app.cueVideoByPlayerVars(V,u)}; g.q.q5=function(V,t,x){this.cueVideoById(V,t,x,1)}; g.q.loadVideoByUrl=function(V,t,x,u){V=AaC(V,t,x);return this.app.loadVideoByPlayerVars(V,u)}; g.q.qs8=function(V,t,x){V=this.loadVideoByUrl(V,t,x,1);nz(this.app,V,1)}; g.q.cueVideoByUrl=function(V,t,x,u){V=AaC(V,t,x);this.app.cueVideoByPlayerVars(V,u)}; g.q.kq=function(V,t,x){this.cueVideoByUrl(V,t,x,1)}; g.q.PP=function(){var V=this.app.K();if(V.wk)return"";var t=this.app.M6(),x=void 0;t.isLivePlayback||(x=Math.floor(this.app.getCurrentTime(1)));return V.getVideoUrl(t.videoId,this.getPlaylistId()||void 0,x)}; g.q.Nc=function(){return this.app.getDebugText()}; g.q.getVideoEmbedCode=function(){var V=this.app.K();if(V.wk)return"";var t=this.app.M6();return V.getVideoEmbedCode(t.isPrivate?"":t.title,this.app.M6().videoId,this.app.XX().getPlayerSize(),this.getPlaylistId()||void 0)}; g.q.wM=function(V,t,x){return L4w(this.app,V,t,x)}; g.q.removeCueRange=function(V){return M4h(this.app,V)}; g.q.loadPlaylist=function(V,t,x,u){this.app.loadPlaylist(V,t,x,u)}; g.q.M8s=function(V,t,x,u){this.loadPlaylist(V,t,x,u);nz(this.app,!0,1)}; g.q.cuePlaylist=function(V,t,x,u){this.app.cuePlaylist(V,t,x,u)}; g.q.nextVideo=function(V,t){this.app.nextVideo(V,t)}; g.q.ucj=function(){this.nextVideo();nz(this.app,!0,1)}; g.q.previousVideo=function(V){this.app.previousVideo(V)}; g.q.KsU=function(){this.previousVideo();nz(this.app,!0,1)}; g.q.playVideoAt=function(V){this.app.playVideoAt(V)}; g.q.EDC=function(V){this.playVideoAt(V);nz(this.app,!0,1)}; g.q.setShuffle=function(V){var t=this.app.getPlaylist();t&&t.setShuffle(V)}; g.q.setLoop=function(V){var t=this.app.getPlaylist();t&&(t.loop=V)}; g.q.uy=function(){var V=this.app.getPlaylist();if(!V)return null;for(var t=[],x=0;x=400)if(V=this.M6(),this.U.K().T("client_respect_autoplay_switch_button_renderer"))V=!!V.autoplaySwitchButtonRenderer;else{var t,x,u,Z;V=!!((t=V.getWatchNextResponse())==null?0:(x=t.contents)==null?0:(u=x.twoColumnWatchNextResults)==null?0:(Z=u.autoplay)==null?0:Z.autoplay)!==!1}if(V)this.J||(this.J=!0,this.RC(this.J),this.U.K().T("web_player_autonav_toggle_always_listen")||lbh(this), t=this.M6(),this.Zd(t.autonavState),this.U.logVisibility(this.element,this.J));else if(this.J=!1,this.RC(this.J),!this.U.K().T("web_player_autonav_toggle_always_listen"))for(this.U.K().T("web_player_autonav_toggle_always_listen"),t=g.G(this.S),x=t.next();!x.done;x=t.next())this.vk(x.value)}; g.q.Zd=function(V){Ubh(this)?this.isChecked=V!==1:((V=V!==1)||(g.Cy(),V=g.Bc("web_autonav_allow_off_by_default")&&!g.JD(0,141)&&g.Zc("AUTONAV_OFF_BY_DEFAULT")?!1:!g.JD(0,140)),this.isChecked=V);Hns(this)}; g.q.onClick=function(){this.isChecked=!this.isChecked;this.U.LB(this.isChecked?2:1);Hns(this);if(Ubh(this)){var V=this.M6().autoplaySwitchButtonRenderer;this.isChecked&&(V==null?0:V.onEnabledCommand)?this.U.Os("innertubeCommand",V.onEnabledCommand):!this.isChecked&&(V==null?0:V.onDisabledCommand)&&this.U.Os("innertubeCommand",V.onDisabledCommand)}this.U.logClick(this.element)}; g.q.getValue=function(){return this.isChecked}; g.q.M6=function(){return this.U.getVideoData(1)};g.A(Db0,Cv);g.A(uB,g.U5);uB.prototype.onClick=function(){this.enabled&&(ZJ(this,!this.checked),this.publish("select",this.checked))}; uB.prototype.getValue=function(){return this.checked}; uB.prototype.setEnabled=function(V){(this.enabled=V)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var dbh=["en-CA","en","es-MX","fr-CA"];g.A(bB,uB);bB.prototype.ZS=function(V){V?this.J||(this.W$.Pk(this),this.J=!0):this.J&&(this.W$.bT(this),this.J=!1);this.J&&ZJ(this,bw9())}; bB.prototype.W=function(){g.NK(this.element,"ytp-menuitem-highlight-transition-enabled")}; bB.prototype.N=function(V){var t=bw9();V!==t&&(t=g.Cy(),wi(190,V),wi(192,!0),t.save(),this.U.Os("cinematicSettingsToggleChange",V))}; bB.prototype.NP=function(){this.J&&this.W$.bT(this);uB.prototype.NP.call(this)};g.A(Ee,Cv);Ee.prototype.updateCinematicSettings=function(V){this.J=V;var t;(t=this.menuItem)==null||t.ZS(V);this.api.publish("onCinematicSettingsVisibilityChange",V)};g.A(kZ,Cv);kZ.prototype.kp=function(V,t){t=t.clipConfig;V==="dataloaded"&&t&&t.startTimeMs!=null&&t.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(t.startTimeMs)),endTimeMs:Math.floor(Number(t.endTimeMs)),postId:t.postId,type:"clips"})};g.A(iB,Cv);iB.prototype.setCreatorEndscreenVisibility=function(V){var t;(t=DB(this.api.Jl()))==null||t.RC(V)}; iB.prototype.J=function(V){function t(u){u==="creatorendscreen"&&(u=DB(x.api.Jl()))&&u.PIj(x.hideButton)} var x=this;this.hideButton=V;this.events.Z(this.api,"modulecreated",t);t("creatorendscreen")};g.A(Oe,uB);Oe.prototype.N=function(V){this.W(V?1:0)}; Oe.prototype.S=function(){var V=this.hasDrcAudioTrack(),t=this.J()===1&&V;ZJ(this,t);this.setEnabled(V)}; Oe.prototype.NP=function(){this.W$.bT(this);uB.prototype.NP.call(this)};g.A(se,Cv);se.prototype.getDrcUserPreference=function(){return this.J}; se.prototype.setDrcUserPreference=function(V){g.je("yt-player-drc-pref",V,31536E3);V!==this.J&&(this.J=V,this.updateEnvironmentData(),this.S()&&this.api.iF())}; se.prototype.updateEnvironmentData=function(){this.api.K().IN=this.J===1}; se.prototype.S=function(){var V,t,x=(V=this.api.getVideoData())==null?void 0:(t=V.N)==null?void 0:t.J;if(!x)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.T("mta_drc_mutual_exclusion_removal")){var u=this.api.getAudioTrack().H$.id;return oo(x,function(Z){var P;return Z.audio.J&&((P=Z.H$)==null?void 0:P.id)===u})}return oo(x,function(Z){var P; return((P=Z.audio)==null?void 0:P.J)===!0})};g.A(N4,Cv);N4.prototype.onVideoDataChange=function(){var V=this,t=this.api.getVideoData();this.api.CR("embargo",1);var x=t==null?void 0:t.tI.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(x==null?0:x.length)?wTL(this,x.filter(function(u){return hOl(V,u)})):(t==null?0:t.cueRanges)&&wTL(this,t.cueRanges.filter(function(u){return hOl(V,u)}))}; N4.prototype.S=function(V){return V.embargo!==void 0}; N4.prototype.NP=function(){Cv.prototype.NP.call(this);this.J={}};g.A(ph,Cv); ph.prototype.addEmbedsConversionTrackingParams=function(V){var t=this.api.K(),x=t.widgetReferrer,u=t.gk,Z=this.J,P="",K=t.getWebPlayerContextConfig();K&&(P=K.embedsIframeOriginParam||"");x.length>0&&(V.embeds_widget_referrer=x);u.length>0&&(V.embeds_referring_euri=u);t.W&&P.length>0&&(V.embeds_referring_origin=P);K&&K.embedsFeature&&(V.feature=K.embedsFeature);Z.length>0&&(t.T("embeds_web_enable_lite_experiment_control_arm_logging")?Z.unshift(28572):g.AD(g.oh(t))&&Z.unshift(159628),t=Z.join(","),t= g.Vz()?t:g.Ab(t,4),V.source_ve_path=t);this.J.length=0};g.A(V_C,Cv);g.A(t_q,Cv);g.A(Ax,g.c);Ax.prototype.NP=function(){g.c.prototype.NP.call(this);this.J=null;this.S&&this.S.disconnect()};g.A(uIq,Cv);g.A(SB,g.e);SB.prototype.show=function(){g.e.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; SB.prototype.onVideoDataChange=function(V){var t,x,u=(t=this.api.getVideoData())==null?void 0:(x=t.getPlayerResponse())==null?void 0:x.playabilityStatus;u&&(t=Z7j(u),g.J(this.api.getPlayerStateObject(),128)||V==="dataloaderror"||!t?(this.S=0,Gq(this),this.hide()):(V=(t.remainingTimeSecs||0)*1E3,V>0&&(this.show(),this.updateValue("label",Gv(t.label)),KkT(this,V))))}; SB.prototype.NP=function(){Gq(this);g.e.prototype.NP.call(this)};g.A(qg4,Cv);g.A(I3,g.e);I3.prototype.onClick=function(){this.A6.logClick(this.element);this.A6.Os("onFullerscreenEduClicked")}; I3.prototype.ZS=function(){this.A6.isFullscreen()?this.S?this.J.hide():this.J.show():this.hide();this.A6.logVisibility(this.element,this.A6.isFullscreen()&&!this.S)};g.A(v3,Cv);v3.prototype.updateFullerscreenEduButtonSubtleModeState=function(V){var t;(t=this.J)!=null&&(g.Am(t.element,"ytp-fullerscreen-edu-button-subtle",V),V&&!t.N&&(t.element.setAttribute("title","Role para ver detalhes"),Lv(t.A6,t.element,t),t.N=!0))}; v3.prototype.updateFullerscreenEduButtonVisibility=function(V){var t;(t=this.J)!=null&&(t.S=V,t.ZS())};g.A(RET,g.e);g.A(b71,Cv);g.A(E0q,Cv);g.A(kv8,Cv);g.A(NnT,Cv);var O7z="fs pe srt fpt nreqs nress nrese rsf_pj rse_pj rsf_pej rse_pej rsf_pc rse_pc".split(" "),s_C="bpd_c bpd_s gv mb_s pl_c pl_i plev".split(" ");g.A(Lh,Cv);Lh.prototype.getSphericalProperties=function(){var V=g.Y2(this.api.Jl());return V?V.getSphericalProperties():{}}; Lh.prototype.setSphericalProperties=function(V){if(V){var t=g.Y2(this.api.Jl());t&&t.setSphericalProperties(V,!0)}};g.A(FT,Cv);g.q=FT.prototype;g.q.createClientVe=function(V,t,x,u){this.api.createClientVe(V,t,x,u===void 0?!1:u)}; g.q.createServerVe=function(V,t,x){this.api.createServerVe(V,t,x===void 0?!1:x)}; g.q.setTrackingParams=function(V,t){this.api.setTrackingParams(V,t)}; g.q.logClick=function(V,t){this.api.logClick(V,t)}; g.q.logVisibility=function(V,t,x){this.api.logVisibility(V,t,x)}; g.q.hasVe=function(V){return this.api.hasVe(V)}; g.q.destroyVe=function(V){this.api.destroyVe(V)};var A5L=!1;gh.prototype.setPlaybackRate=function(V){this.playbackRate=Math.max(1,V)}; gh.prototype.getPlaybackRate=function(){return this.playbackRate};YZ.prototype.NE=function(V){var t=g.KF(V.info.J.info,this.bD.uq),x=V.info.GU+this.W,u=V.info.startTime*1E3;if(this.policy.DS)try{u=this.policy.DS?g.xU(V)*1E3:V.info.startTime*1E3}catch(K){Math.random()>.99&&this.logger&&(u=mv(V.J).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:V.info.N6(),encodedDataView:g.pR(u,4)})),u=V.info.startTime*1E3}var Z=V.info.clipId,P=this.policy.DS?g.bF0(V)*1E3:V.info.duration*1E3;this.policy.DS&&(u<0||P<0)&&(this.logger&&(this.logger({missingSegInfo:V.info.N6(), startTimeMs:u,durationMs:P}),this.policy.IA||(u<0&&(u=V.info.startTime*1E3),P<0&&(P=V.info.duration*1E3))),this.policy.IA&&(u<0&&(u=V.info.startTime*1E3),P<0&&(P=V.info.duration*1E3)));return{formatId:t,GU:x,startTimeMs:u,clipId:Z,zE:P}}; YZ.prototype.q3=function(V){this.timestampOffset=V};rh.prototype.seek=function(V,t){V!==this.J&&(this.seekCount=0);this.J=V;var x=this.videoTrack.S,u=this.audioTrack.S,Z=this.audioTrack.bq,P=Wkl(this,this.videoTrack,V,this.videoTrack.bq,t);t=Wkl(this,this.audioTrack,this.policy.o5?V:P,Z,t);V=Math.max(V,P,t);this.G=!0;this.bD.isManifestless&&(Yg0(this,this.videoTrack,x),Yg0(this,this.audioTrack,u));return V}; rh.prototype.isSeeking=function(){return this.G}; rh.prototype.Wm=function(V){this.N=V}; var Tn1=2/24;var c5w=0;g.q=DJ.prototype;g.q.d8=function(){this.C=this.now();Ycz(this.Fi,this.C);this.It.d8()}; g.q.FY=function(V,t){var x=this.policy.S?(0,g.Tu)():0;eB(this,V,t);V-this.B<10&&this.S>0||this.PO(V,t);this.It.FY(V,t);this.policy.S&&(V=(0,g.Tu)()-x,this.Fc+=V,this.QC=Math.max(V,this.QC))}; g.q.PO=function(V,t){var x=(V-this.B)/1E3,u=t-this.N;this.MB||(Go(this.Fi,x,u),this.aF(x,u));this.B=V;this.N=t}; g.q.QL=function(){this.zU&&y5l(this);this.It.QL()}; g.q.fO=function(V){this.zU||(this.zU=this.G-this.CI+V,this.Qt=this.G,this.IC=this.L)}; g.q.yD=function(V,t){V=V===void 0?this.L:V;t=t===void 0?this.G:t;this.S>0||(this.Ij=V,this.S=t,this.X=this.isActive=!0)}; g.q.DG=function(){return this.vG||2}; g.q.Yx=function(){}; g.q.Bo=function(){var V,t={rn:this.requestNumber,rt:(this.L-this.J).toFixed(),lb:this.G,stall:(1E3*this.W).toFixed(),ht:(this.C-this.J).toFixed(),elt:(this.Ij-this.J).toFixed(),elb:this.S,d:(V=this.cX)==null?void 0:V.jZ()};this.url&&p84(t,this.url);this.policy.S&&(t.mph=this.QC.toFixed(),t.tph=this.Fc.toFixed());t.ulb=this.yC;t.ult=this.Us;t.abw=this.DS;return t}; g.q.now=function(){return(0,g.Tu)()}; g.q.deactivate=function(){this.isActive&&(this.isActive=!1)};g.A(Ch,DJ);g.q=Ch.prototype;g.q.Bo=function(){var V=DJ.prototype.Bo.call(this);V.pb=this.KQ;V.pt=(1E3*this.gk).toFixed();V.se=this.kX;return V}; g.q.Xe=function(){var V=this.It;this.xw||(this.xw=V.Xe?V.Xe():1);return this.xw}; g.q.Nz=function(){return this.sV?this.Xe()!==1:!1}; g.q.pz=function(V,t,x){if(!this.P$){this.P$=!0;if(!this.MB){eB(this,V,t);this.PO(V,t);var u=this.Xe();this.kX=x;u===2?this.MB||(this.Us?Nl(this.Fi,this.Us/1E3,this.yC,this.L1||this.policy.zU):Nl(this.Fi,t/Math.max(this.policy.Ij,x||this.DS),t,.01),A2(this.Fi,t,this.W)):u===1&&(x=(V-this.J)/1E3,!(x<=this.policy.W)&&this.policy.W||this.Tc||this.policy.X||!(this.S>0)||Jx(this,x,t),this.S>0&&A2(this.Fi,t,this.W));V=(V-this.J)/1E3||.01;this.policy.C&&!(this.S>0)||po(this.Fi,V,this.N,lnl(this),this.uP)}this.deactivate()}}; g.q.VD=function(V,t,x){x&&(this.xw=2);V<0&&this.vG&&(V=this.vG);t?this.dk+=V:this.L1+=V}; g.q.DG=function(){return this.L1||this.dk||DJ.prototype.DG.call(this)}; g.q.PO=function(V,t){var x=(V-this.B)/1E3,u=t-this.N,Z=this.Xe();this.isActive?Z===1&&((u>0||this.policy.G)&&(x>.2||u<1024)?(this.W+=x,u>0&&x>.2&&Jx(this,this.Kx?x:.05,u),this.Tc=!0):u>0&&(Jx(this,x,u),this.Tc=!0)):t&&t>=this.policy.J&&this.yD(V,t);DJ.prototype.PO.call(this,V,t)}; g.q.tb=function(V){if(!this.MB){eB(this,V,this.G);var t=(V-this.J)/1E3;this.Xe()!==2&&this.S>0&&(this.W+=(V-this.B)/1E3,A2(this.Fi,this.N,this.W));po(this.Fi,t,this.N,lnl(this),this.uP,!0);V=(V-this.B)/1E3;Go(this.Fi,V,0);this.aF(V,0)}}; g.q.yD=function(V,t){V=V===void 0?this.L:V;t=t===void 0?this.G:t;if(!(this.S>0)&&(DJ.prototype.yD.call(this,V,t),this.Xe()===1)){t=(this.C-this.J)/1E3;var x=(V-this.C)/1E3;this.sV&&hx(this,this.now());this.w6||this.MB||(this.vG&&(x=Math.max(0,x-this.vG)),V=this.Fi,V.C.x_(1,t),V.Us.x_(1,x))}}; g.q.Pt=function(){this.sV&&hx(this,this.now());return this.Es}; g.q.gT=function(){var V;if(V=this.N>this.XR)V=(V=this.N)?V>=this.policy.J:!1;return V}; g.q.jr=function(){return this.HX}; g.q.b6=function(V){V=V===void 0?this.now():V;if(this.sV){hx(this,V);if(this.xw?this.Nz():this.wk!==this.BX){var t=this.BX;if(V0?x+V:x+Math.max(V,t)}; g.q.b0=function(){return this.now()-this.Ij}; g.q.Xw=function(){return(this.N-this.S)*1E3/this.b0()||0}; g.q.Z9=function(){return this.Ij};wh.prototype.feed=function(V){g_(this.J,V);this.LR()}; wh.prototype.LR=function(){if(this.W){if(!this.J.getLength())return;var V=this.J.split(this.N-this.S),t=V.Ir;V=V.q0;if(!this.It.fO(this.W,t,this.S,this.N))return;this.S+=t.getLength();this.J=V;this.S===this.N&&(this.W=this.N=this.S=void 0)}for(;;){var x=0;V=g.G(eE1(this.J,x));t=V.next().value;x=V.next().value;x=g.G(eE1(this.J,x));V=x.next().value;x=x.next().value;if(t<0||V<0)break;if(!this.J.aV(x,V)){if(!this.It.fO||!this.J.aV(x,1))break;x=this.J.split(x).q0;this.It.fO(t,x,0,V)&&(this.W=t,this.S= x.getLength(),this.N=V,this.J=new Mj([]));break}V=this.J.split(x).q0.split(V);x=V.q0;this.It.mA(t,V.Ir);this.J=x}}; wh.prototype.dispose=function(){this.J=new Mj};g.q=Vi.prototype;g.q.v1=function(){return 0}; g.q.ZV=function(){return null}; g.q.hS=function(){return null}; g.q.iC=function(){return this.state>=1}; g.q.isComplete=function(){return this.state>=3}; g.q.Pp=function(){return this.state===5}; g.q.onStateChange=function(){}; g.q.Hk=function(V){var t=this.state;this.state=V;this.onStateChange(t);this.callback&&this.callback(this,t)}; g.q.nT=function(V){V&&this.state=this.xhr.HEADERS_RECEIVED}; g.q.getResponseHeader=function(V){try{return this.xhr.getResponseHeader(V)}catch(t){return""}}; g.q.Xr=function(){return+this.getResponseHeader("content-length")}; g.q.hK=function(){return this.S}; g.q.qh=function(){return this.status>=200&&this.status<300&&!!this.S}; g.q.Vm=function(){return this.J.getLength()>0}; g.q.tT=function(){var V=this.J;this.J=new Mj;return V}; g.q.nS=function(){return this.J}; g.q.abort=function(){this.uD=!0;this.xhr.abort()}; g.q.kd=function(){return!0}; g.q.FS=function(){return this.N}; g.q.Nv=function(){return""};g.q=hEh.prototype;g.q.getResponseHeader=function(V){return V==="content-type"?this.J.get("type"):""}; g.q.abort=function(){}; g.q.lc=function(){return!0}; g.q.Xr=function(){return this.range.length}; g.q.hK=function(){return this.loaded}; g.q.qh=function(){return!!this.loaded}; g.q.Vm=function(){return!!this.S.getLength()}; g.q.tT=function(){var V=this.S;this.S=new Mj;return V}; g.q.nS=function(){return this.S}; g.q.kd=function(){return!0}; g.q.FS=function(){return!!this.error}; g.q.Nv=function(){return this.error};g.q=VFh.prototype;g.q.start=function(V){var t={credentials:"include",cache:"no-store"};Object.assign(t,this.L);this.W&&(t.signal=this.W.signal);V=new Request(V,t);fetch(V).then(this.X,this.onError).then(void 0,N3)}; g.q.onDone=function(){this.uD()||this.It.QL()}; g.q.getResponseHeader=function(V){return this.responseHeaders?this.responseHeaders.get(V):null}; g.q.lc=function(){return!!this.responseHeaders}; g.q.hK=function(){return this.S}; g.q.Xr=function(){return+this.getResponseHeader("content-length")}; g.q.qh=function(){return this.status>=200&&this.status<300&&!!this.S}; g.q.Vm=function(){return!!this.J.getLength()}; g.q.tT=function(){this.Vm();var V=this.J;this.J=new Mj;return V}; g.q.nS=function(){this.Vm();return this.J}; g.q.uD=function(){return this.G}; g.q.abort=function(){this.N&&this.N.cancel().catch(function(){}); this.W&&this.W.abort();this.G=!0}; g.q.kd=function(){return!0}; g.q.FS=function(){return this.B}; g.q.Nv=function(){return this.errorMessage};g.q=tFL.prototype;g.q.onDone=function(){if(!this.uD){this.status=this.xhr.status;try{this.response=this.xhr.response,this.S=this.response.byteLength}catch(V){}this.J=!0;this.It.QL()}}; g.q.II=function(){this.xhr.readyState===2&&this.It.d8()}; g.q.dh=function(V){this.uD||(this.status=this.xhr.status,this.J||(this.S=V.loaded),this.It.FY((0,g.Tu)(),V.loaded))}; g.q.lc=function(){return this.xhr.readyState>=2}; g.q.getResponseHeader=function(V){try{return this.xhr.getResponseHeader(V)}catch(t){return g.lf(Error("Could not read XHR header "+V)),""}}; g.q.Xr=function(){return+this.getResponseHeader("content-length")}; g.q.hK=function(){return this.S}; g.q.qh=function(){return this.status>=200&&this.status<300&&this.J&&!!this.S}; g.q.Vm=function(){return this.J&&!!this.response&&!!this.response.byteLength}; g.q.tT=function(){this.Vm();var V=this.response;this.response=void 0;return new Mj([new Uint8Array(V)])}; g.q.nS=function(){this.Vm();return new Mj([new Uint8Array(this.response)])}; g.q.abort=function(){this.uD=!0;this.xhr.abort()}; g.q.kd=function(){return!1}; g.q.FS=function(){return!1}; g.q.Nv=function(){return""};g.ZG.prototype.info=function(){}; g.ZG.prototype.debug=function(){}; g.ZG.prototype.J=V0(44);var Z10=new Map,qhh=new Map,P84=new function(){var V=this;this.J=new Map;this.Wk={HuU:function(){return V.J}}};g.A(KG,g.c);KG.prototype.Hp=function(){if(!this.sL.length)return[];var V=this.sL;this.sL=[];this.N=g.U$(V).info;return V}; KG.prototype.jU=function(){return this.sL}; KG.prototype.NP=function(){g.c.prototype.NP.call(this);this.J=null;this.sL.length=0;this.qP.length=0;this.N=null};g.A(RJ,g.c);g.q=RJ.prototype; g.q.RxC=function(){if(!this.uD()){var V=(0,g.Tu)(),t=!1;if(this.policy.e0){V=V-(this.timing.S>0?this.timing.Ij:this.timing.J)-this.timing.DG()*1E3;var x=S2(fG(this),!1);V>=2E3*x?t=!0:V>=this.policy.Qi*x&&(this.J=this.policy.n6)}else if(this.timing.S>0){if(this.G){this.policy.Td&&(this.J=0);return}var u=this.timing.jr();this.timing.b6();var Z=this.timing.jr();Z-u>=this.policy.a_*.8?(this.J++,this.logger.debug(function(){return"Mispredicted by "+(Z-u).toFixed(0)}),t=this.J>=5):this.J=0}else{var P=V- this.timing.Pt(); this.policy.n6&&P>0&&(this.J+=1);t=S2(fG(this),!1)*this.policy.Yu;(t=P>t*1E3)&&this.logger.debug(function(){return"Elbow late by "+P.toFixed(3)})}this.J>0&&this.It.By(); t?this.Sh(!1):this.S.start()}}; g.q.Sh=function(V){this.W=!0;V&&(V=fG(this),V.N+=1);this.It.gK();this.lastError="net.timeout";bk(this)}; g.q.canRetry=function(V){var t=fG(this);V=V?this.policy.Ky:this.policy.yd;return t.timedOut0&&(t=t.J.getUint8(0),V.ubyte=t,x===1&&t===0&&(V.b248180278=!0))}this.A9&&(V.rc=this.policy.RA?this.A9:this.A9.toString());this.policy.q6&&this.AX&&(V.tr=this.AX);V.itag=this.info.qP[0].J.info.itag;V.ml=""+ +this.info.qP[0].J.h9();V.sq=""+this.info.qP[0].GU;this.cw&&(V.ifi=""+ +gX(this.info.zc.N));this.A9!==410&&this.A9!==500&&this.A9!==503||(V.fmt_unav="true");var u;(x=this.errorMessage||((u=this.xhr)==null? void 0:u.Nv()))&&(V.msg=x);this.qb&&(V.smb="1");this.info.isDecorated()&&(V.sdai="1");return V}; g.q.zZ=function(){return H70(this.timing)}; g.q.Nv=function(){return this.xhr.Nv()||""}; g.q.gT=function(){return this.isComplete()||this.timing.gT()}; g.q.FY=function(){!this.uD()&&this.xhr&&(this.A9=this.xhr.status,this.policy.Zs&&this.YQ&&this.Ti(!1),this.rH()?this.nT(2):!this.Yo&&this.gT()&&(this.nT(),this.Yo=!0))}; g.q.d8=function(){if(!this.uD()&&this.xhr){if(!this.h0&&this.xhr.lc()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var V=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.h0=((0,g.Tu)()-V)/1E3}this.xhr.lc()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Z4&&!vHK()&&g.je("yt-player-headers-readable",!0,2592E3);V=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var t=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),x;(x=this.ER)==null||x.stop();this.Nq=V||this.Nq; this.AK=t||this.AK}}; g.q.QL=function(){var V=this.xhr;if(!this.uD()&&V){this.A9=V.status;V=this.AC(V);if(this.policy.q6){var t;(t=this.ER)==null||t.stop()}V===5?bk(this.Gd):this.Hk(V);this.Gd.S.stop()}}; g.q.AC=function(V){var t=this;nT4(this);if(El(this.Gd,this.xhr.status,this.AL?this.timing.X||this.Fg:this.xhr.qh(),!1,this.Rc))return 5;var x="";k4(this.Gd,this.xhr)&&(x=ktj(this.Gd,this.xhr));if(x)return A0(fG(this.Gd)),this.info.Gl(this.cw,x),3;x=V.hK();if(this.Xb){this.Ti(!0);nT4(this);if(El(this.Gd,this.xhr.status,this.timing.X||this.Fg,!1,this.Rc))return 5;if(!this.Oo){if(this.Fg)return A0(fG(this.Gd)),3;this.Gd.lastError="net.closed";return 5}}else{if(El(this.Gd,this.xhr.status,this.xhr.qh(), !1,this.Rc))return 5;var u=this.info.N;if(u&&u!==x||V.FS())return this.Gd.lastError="net.closed",5;this.Ti(!0)}u=d7L(this)?V.getResponseHeader("X-Bandwidth-Est"):0;if(V=d7L(this)?V.getResponseHeader("X-Bandwidth-Est3"):0)this.D1=!0,this.policy.Bg&&(u=V);b1K(this.Gd,x,u?Number(u):0);this.logger.debug(function(){var Z=t.timing;return"Succeeded, rtpd="+(Z.gk*1E3+Z.J-Date.now()).toFixed(0)}); return 4}; g.q.canRetry=function(){this.uD();var V=this.info.isDecorated();return this.Gd.canRetry(V)}; g.q.onStateChange=function(){this.isComplete()&&(this.policy.zg?this.gK():this.timing.deactivate())}; g.q.Sh=function(V){this.Gd.Sh(V)}; g.q.By=function(){this.callback&&this.callback(this,this.state)}; g.q.Cf=function(){return this.Gd.Cf()}; g.q.dispose=function(){Vi.prototype.dispose.call(this);this.Gd.dispose();var V;(V=this.ER)==null||V.dispose();this.policy.zg||this.gK()}; g.q.gK=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.q.Hp=function(){if(!this.jU().length)return[];this.Py=!0;return this.YQ.Hp()}; g.q.rH=function(){if(this.state<1)return!1;if(this.YQ&&this.YQ.sL.length)return!0;var V;return((V=this.xhr)==null?0:V.Vm())?!0:!1}; g.q.jU=function(){this.Ti(!1);return this.YQ?this.YQ.jU():[]}; g.q.Ti=function(V){try{if(V||this.xhr.lc()&&this.xhr.Vm()&&!k4(this.Gd,this.xhr)&&!this.FC)this.YQ||(this.YQ=new KG(this.policy,this.info.qP)),this.xhr.Vm()&&(this.Xb?this.Xb.feed(this.xhr.tT()):qT(this.YQ,this.xhr.tT(),V&&!this.xhr.Vm()))}catch(t){this.Xb?TX8(this,t):g.lf(t)}}; g.q.mA=function(V,t){switch(V){case 21:V=t.split(1).q0;Wjw(this,V);break;case 22:this.Oo=!0;qT(this.YQ,new Mj([]),!0);break;case 43:if(V=UV(new nS(t),1))this.info.Gl(this.cw,V),this.Fg=!0;break;case 45:t=xT(new nS(t));V=t.pU;t=t.H4;V&&t&&(this.VS=V/t);break;case 44:this.DL=Igz(new nS(t));var x,u,Z;!this.timing.X&&((x=this.DL)==null?void 0:x.action)===4&&((u=this.DL)==null?0:(Z=u.PE)==null?0:Z.AL)&&(this.AL=this.DL.PE.AL);break;case 53:this.policy.q6&&(V=Ayw(new nS(t)).V1)&&(this.ER||(this.V1=V,this.ER= new g.qK(this.Ph,V,this)),this.ER.start());break;case 60:this.xN=tp(new nS(t));break;case 58:if(V=J3T(new nS(t)))this.Q1=V,V.Q1===3&&(this.Rc=!0)}}; g.q.fO=function(V,t,x,u){x||this.timing.fO(u);if(V!==21)return!1;if(V=this.policy.Zs)if(u=t.getLength()+x===u,V*=this.info.qP[0].J.info.n1,!u&&t.getLength()0)return!1;if(!this.xhr.lc())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Xb)var V=!this.info.N;else this.xhr.Xr()?V=!1:(V=this.xhr.getResponseHeader("content-type"),V=V==="audio/mp4"||V==="video/mp4"||V==="video/webm");if(!V)return!1;if(isNaN(this.info.YE)){V=this.xhr.getResponseHeader("x-head-seqnum");var t=this.timing.policy.L?1:0;if(!V)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(V)>this.info.qP[0].GU+t)return!1}return!0}; g.q.JC=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.q.ZV=function(){this.xhr&&(this.Nq=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Nq}; g.q.hS=function(){this.xhr&&(this.AK=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.AK}; g.q.xE=function(){return this.Gd.xE()}; g.q.Ph=function(){if(!this.uD()&&this.xhr){this.AX="heartbeat";var V=this.Gd;V.J+=2;this.By()}};g.A(Ge,DJ);g.q=Ge.prototype;g.q.PO=function(V,t){var x=(V-this.B)/1E3,u=t-this.N;this.S>0?u>0&&(this.wk&&(x>.2||u<1024?(this.W+=x,x>.2&&cpl(this,.05,u)):cpl(this,x,u)),this.BX&&(this.Es+=u,this.L1+=x)):t>this.policy.J&&this.yD(V,t);DJ.prototype.PO.call(this,V,t)}; g.q.pz=function(V,t){eB(this,V,t);this.PO(V,t);this.wk&&(t=this.N*this.snapshot.stall+this.N/this.snapshot.byterate,this.S>0&&A2(this.Fi,this.Es,this.W),V=(V-this.J)/1E3||.01,this.policy.C&&!(this.S>0)||po(this.Fi,V,this.N,t,!1))}; g.q.tb=function(V){eB(this,V,this.G);var t=(V-this.B)/1E3;Go(this.Fi,t,0);this.aF(t,0);!this.wk&&this.S>0||(t=this.N*this.snapshot.stall+this.N/this.snapshot.byterate,this.S>0&&(this.W+=(V-this.B)/1E3,A2(this.Fi,this.Es,this.W)),po(this.Fi,((V-this.J)/1E3||.01)*this.policy.wk,this.N,t,!1,!0))}; g.q.aY=function(V){V=V.kZ||2147483647;(V&2)!==2&&(this.BX=!1);(V&1)===1&&(this.wk=!0)}; g.q.Ae=function(V){V=V.kZ||2147483647;(V&2)===2&&(this.BX=!1);(V&1)===1&&(this.wk=!1)}; g.q.Z9=function(){return this.Ij}; g.q.b0=function(){var V=this.BX?this.now()-this.B:0;return Math.max(this.L1*1E3+V,1)}; g.q.Xw=function(){return this.Es*1E3/this.b0()}; g.q.yD=function(V,t){V=V===void 0?this.L:V;t=t===void 0?this.G:t;this.S>0||(DJ.prototype.yD.call(this,V,t),t=this.Fi,V=(V-this.C)/1E3,t.C.x_(1,(this.C-this.J)/1E3),t.Us.x_(1,V))}; g.q.Yx=function(V){this.dk=V}; g.q.Bo=function(){var V=DJ.prototype.Bo.call(this);V.rbw=this.Xw();V.rbe=+this.BX;V.gbe=+this.wk;V.ackt=(this.dk-this.J).toFixed();return V}; g.q.b6=function(){}; g.q.jr=function(){return NaN}; g.q.Pt=function(){return this.J+this.snapshot.delay*1E3};IJ.prototype.mA=function(V,t){t.getLength();switch(V){case 20:V=new nS(t);V={mU:jY(V,1),videoId:UV(V,2),itag:jY(V,3),lmt:jY(V,4),xtags:UV(V,5),rR:jY(V,6),C7:lM(V,8),J8:jY(V,9),t9X:jY(V,10),startMs:jY(V,11),durationMs:jY(V,12),ZW:jY(V,14),timeRange:Dv(V,15,aC0),jK:jY(V,16),EG:jY(V,17),clipId:UV(V,1E3)};this.Tp(V);break;case 21:this.B8(t,!1);break;case 22:this.dB(t);break;case 31:V=KA(t,bmq);this.Tw(V);break;case 52:V=KA(t,SDh);this.wR(V);break;default:this.W8(V,t)}}; IJ.prototype.Tp=function(){}; IJ.prototype.W8=function(){};g.A(vj,IJ);g.q=vj.prototype; g.q.W8=function(V,t){t.getLength();switch(V){case 35:this.x5(t);break;case 44:this.xW(t);break;case 43:this.K4(t);break;case 53:this.Zp(t);break;case 55:V=new nS(t);(V={timeline:Dv(V,1,L_1),YOD:Dv(V,2,gmC)},V.timeline)&&V.timeline.LW&&this.It.Ma(V.timeline.LW,V.timeline.oQw,V.YOD);break;case 56:this.ZI();break;case 57:this.K2(t);break;case 42:this.c8(t);break;case 45:this.Ku(t);break;case 59:this.dQ(t);break;case 51:this.sD(t);break;case 49:this.aY(t);break;case 50:this.Ae(t);break;case 47:this.Kw(t); break;case 58:this.PJ(t);break;case 61:this.It.ih.Yx((0,g.Tu)());break;case 66:this.cY(t);break;case 46:this.Vn(t);break;case 67:this.onSnackbarMessage(t)}}; g.q.sD=function(V){V=new nS(V);V={pYX:d_(V,1,wn),oHX:d_(V,2,wn)};this.It.sD(V)}; g.q.dQ=function(V){var t=new nS(V);V=eY(t,1);var x=eY(t,2);t=eY(t,3);this.It.dQ(V,x,t)}; g.q.Ku=function(V){V=xT(new nS(V));this.It.Ku(V)}; g.q.Kw=function(V){V=KA(V,ims);this.It.Kw(V)}; g.q.c8=function(V){V=new nS(V);V={videoId:UV(V,1),formatId:Dv(V,2,wn),endTimeMs:jY(V,3),TBD:jY(V,4),mimeType:UV(V,5),PT:Dv(V,6,P48),indexRange:Dv(V,7,P48),Yg:Dv(V,8,K_C)};this.It.c8(V)}; g.q.K2=function(V){V=gmC(new nS(V));this.It.K2(V)}; g.q.ZI=function(){this.It.ZI()}; g.q.x5=function(V){V=EmL(new nS(V));this.It.x5(V)}; g.q.Zp=function(V){V=Ayw(new nS(V));this.It.Zp(V)}; g.q.xW=function(V){V=Igz(new nS(V));this.It.xW(V)}; g.q.K4=function(V){V={redirectUrl:UV(new nS(V),1)};this.It.K4(V)}; g.q.B8=function(V){var t=V.getUint8(0);if(V.getLength()!==1){V=V.split(1).q0;var x=this.S[t]||null;x&&Bj(this.It.gb,t,x,V)}}; g.q.dB=function(V){V=V.getUint8(0);var t=this.S[V]||null;t&&this.It.dB(V,t)}; g.q.wR=function(V){this.It.wR(V)}; g.q.Tp=function(V){var t=V.mU,x=V.C7,u=V.rR,Z=V.EG,P=V.jK,K=V.J8,R=V.startMs,f=V.durationMs,b=V.timeRange,E=V.ZW,k=V.clipId,O=gL(V);V=Npn.has(C5[""+V.itag]);this.S[t]=O;this.It.VD(O,V,{mU:t,C7:!!x,rR:u!=null?u:-1,J8:K!=null?K:-1,startMs:R!=null?R:-1,durationMs:f!=null?f:-1,ZW:E,EG:Z,jK:P,clipId:k,timeRange:b})}; g.q.aY=function(V){V={kZ:jY(new nS(V),1)};this.It.aY(V)}; g.q.Ae=function(V){V={kZ:jY(new nS(V),1)};this.It.Ae(V)}; g.q.Tw=function(V){this.It.Tw(V)}; g.q.PJ=function(V){V=J3T(new nS(V));this.It.PJ(V)}; g.q.cY=function(V){V={d5:Dv(new nS(V),1,NaK)};this.It.cY(V)}; g.q.onSnackbarMessage=function(V){V=jY(new nS(V),1);this.It.onSnackbarMessage(V)}; g.q.Vn=function(V){V={reloadPlaybackParams:Dv(new nS(V),1,CC8)};this.It.Vn(V)};g.A(LG,g.c);g.q=LG.prototype;g.q.sH=function(){return Array.from(this.sZ.keys())}; g.q.rl=function(V){V=this.sZ.get(V);var t=V.sL;V.mW+=t.getLength();V.sL=new Mj;return t}; g.q.lI=function(V){return this.sZ.get(V).lI}; g.q.HD=function(V){return this.sZ.get(V).HD}; g.q.VD=function(V,t,x,u){this.sZ.get(V)||UyK(this,V,t);t=this.sZ.get(V);if(this.bD){V=eZl(this,V,x);if(u)for(var Z=g.G(V),P=Z.next();!P.done;P=Z.next()){P=P.value;var K=u;P.X=K;P.startTime+=K;P.An+=K;P.LG+=K}DyT(this,x.mU,t,V)}else x.C7?t.Vk=x.ZW:t.zM.push(x),t.qZ.push(x)}; g.q.RH=function(V){var t;return((t=this.sZ.get(V))==null?void 0:t.qP)||[]}; g.q.nT=function(){for(var V=g.G(this.sZ.values()),t=V.next();!t.done;t=V.next())t=t.value,t.Ul&&(t.dh&&t.dh(),t.Ul=!1)}; g.q.dB=function(V,t){this.logger.debug(function(){return"[onMediaEnd] formatId: "+t}); var x=this.sZ.get(t);if(FB){if(x&&!x.lI){if(x.AQ.get(V))x.AQ.get(V).XQ=!0;else{var u;((u=this.kK)==null?0:u.Fz)&&x.AQ.set(V,{data:new Mj,Am:0,XQ:!0})}x.HD=!0}}else x&&!x.HD&&(x.HD=!0)}; g.q.Hp=function(V){if(FB){var t=this.sZ.get(V);if(t)for(var x=g.G(t.AQ),u=x.next();!u.done;u=x.next()){var Z=g.G(u.value);u=Z.next().value;Z=Z.next().value;var P=t.r_.get(u);if(at(P[0])){if(!Z.XQ)continue;var K=P,R=Z.data;R.getLength();P=0;var f=[];K=g.G(K);for(var b=K.next();!b.done;b=K.next()){b=b.value;var E=b.N,k=Xn(R,P,E);P+=E;f.push(new VX(b,k))}t.h$.push.apply(t.h$,g.v(f))}else if(Z.data.getLength()>0||!P[0].range&&Z.XQ)R=void 0,P=P[0],f=Z.Am,K=Z.data,P.range||(R=Z.XQ),b=K.getLength(),R=new VX(H5L(P, P.S+f,b,R),K),Z.Am+=R.info.N,t.h$.push(R);t.AQ.get(u).data=new Mj;Z.XQ&&t.AQ.delete(u)}V=this.sZ.get(V);if(!V)return[];t=V.h$;V.h$=[];x=g.G(t);for(u=x.next();!u.done;u=x.next())V.mW+=u.value.info.N;return t||[]}x=(t=this.sZ.get(V))==null?void 0:t.YQ;if(!x)return[];this.Ti(V,x);return x.Hp()}; g.q.rH=function(V){if(FB)return ze(this,V);var t,x,u;return!!((x=(t=this.sZ.get(V))==null?void 0:t.YQ)==null?0:(u=x.jU())==null?0:u.length)||ze(this,V)}; g.q.Ti=function(V,t){for(;ze(this,V);){var x=this.rl(V);var u=V;u=this.sZ.get(u).lI&&!XB(this,u);qT(t,x,u&&H19(this,V))}}; g.q.NP=function(){g.c.prototype.NP.call(this);for(var V=g.G(this.sZ.keys()),t=V.next();!t.done;t=V.next())MT(this,t.value);var x;if((x=this.kK)==null?0:x.eK)for(V=g.G(this.sZ.values()),t=V.next();!t.done;t=V.next())t=t.value,t.AQ.clear(),t.r_.clear(),t.h$.length=0,t.qP.length=0,t.qZ.length=0,t.zM.length=0;this.sZ.clear()}; var FB=!1;g.A(mf,g.c);g.q=mf.prototype;g.q.FY=function(){!this.uD()&&this.xhr&&(this.Ti(!1),qn(this.It,this))}; g.q.d8=function(){}; g.q.QL=function(){if(!this.uD()&&this.xhr){var V=this.AC();V===5?bk(this.Gd):this.Hk(V);this.Gd.S.stop();var t;(t=this.WZ)==null||t.stop()}}; g.q.AC=function(){var V="";k4(this.Gd,this.xhr)&&(V=ktj(this.Gd,this.xhr));if(V)return this.info.zc.Gl(this.cw,V),3;this.Ti(!0);if(El(this.Gd,this.xhr.status,this.xhr.qh(),this.info.IF(),this.Rc))return 5;if(this.Z1)return 3;b1K(this.Gd,this.xhr.hK(),0);this.policy.VP&&Fr8(this.It);return 4}; g.q.Ti=function(V){var t=this.xhr;if((V||!k4(this.Gd,this.xhr))&&t.Vm()){V=t.tT();var x=V.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+x}); this.Xb.feed(V)}}; g.q.mA=function(V,t){this.xhr.kd()&&V===21&&hZs(this);this.xx.mA(V,t)}; g.q.fO=function(V,t,x,u){x||(this.ih.fO(u),this.policy.HH&&V===21&&hZs(this));if(V!==21)return!1;this.ih.X=!0;V=t.getLength();x||(this.r7=t.getUint8(0),t=t.split(1).q0);var Z=this.policy.E_,P=this.xx.S[this.r7],K=this.bD.N.get(P);if(Z&&K&&(Z*=K.info.n1,V+x!==u&&V0){this.policy.e0&&this.Gd.S.stop();V=this.ih.b0();t=this.ih.Xw();var x=wg8(this,V);if(!(t>x.Jb||x.yF>0&&this.info.b_()>x.yF)){this.Vv=(0,g.Tu)();var u;(u=this.WZ)==null||u.stop();this.policy.VP&&(u=this.It,V={SW:Math.round(t*V/1E3),TD:V},u.policy.VP&&(u.Us=V,u.pu++));this.Sh(!1)}}}}; g.q.Sh=function(V){this.Gd.Sh(V)}; g.q.xW=function(V){this.It.xW(V,this.uL())}; g.q.K4=function(V){this.Z1=!0;this.info.zc.Gl(this.cw,V.redirectUrl)}; g.q.aY=function(V){this.ih instanceof Ge&&this.ih.aY(V)}; g.q.Ae=function(V){this.ih instanceof Ge&&this.ih.Ae(V)}; g.q.Ma=function(V,t,x){this.It.Ma(V,t,x,this.uL())}; g.q.c8=function(V){var t=V.formatId,x=gL({itag:t.itag,lmt:t.lmt,xtags:t.xtags}),u,Z,P=new zS(((u=V.PT)==null?void 0:u.first)||0,((Z=V.PT)==null?void 0:Z.l8)||0),K,R;u=new zS(((K=V.indexRange)==null?void 0:K.first)||0,((R=V.indexRange)==null?void 0:R.l8)||0);if(!this.bD.N.get(x)){x=V.Yg||{};if(this.policy.aH){var f,b;V=(f=V.mimeType)!=null?f:"";f=(b=t.itag)!=null?b:0;b=C5[""+f];x.mimeType=b!=="9"&&b!=="9h"?V:'video/webm; codecs="'+["vp09",b==="9h"?"02":"00","51",b==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else x.mimeType=V.mimeType;x.itag=t.itag;x.lastModified=""+(t.lmt||0);x.xtags=t.xtags;t=this.bD;b=AW("");f=NV(x,null);be(t,new R$(b,f,P,u))}}; g.q.Ku=function(V){this.It.Ku(V)}; g.q.onSnackbarMessage=function(V){if(this.policy.wf)this.It.onSnackbarMessage(V)}; g.q.Tw=function(V){this.dX=V;this.WU=(0,g.Tu)();this.It.Tw(V)}; g.q.dQ=function(V,t,x){this.It.dQ(V,t,x)}; g.q.K2=function(V){V.scope===2&&(this.f0y=V);this.It.K2(V)}; g.q.ZI=function(){this.Ch=!0;this.It.ZI()}; g.q.sD=function(V){this.policy.Qc&&this.It.sD(V)}; g.q.Kw=function(V){this.It.Kw(V,this.uL())}; g.q.PJ=function(V){V.Q1===3&&(this.Rc=!0);this.It.PJ(V)}; g.q.cY=function(V){this.It.cY(V)}; g.q.Vn=function(V){this.It.Vn(V)}; g.q.canRetry=function(){this.uD();return this.Gd.canRetry(!1)}; g.q.dispose=function(){if(!this.uD()){g.c.prototype.dispose.call(this);this.Gd.dispose();var V;(V=this.WZ)==null||V.dispose();this.Hk(-1);this.gK()}}; g.q.Hk=function(V){this.state=V;qn(this.It,this)}; g.q.IF=function(){return this.info.IF()}; g.q.Ip=function(){return this.Ch}; g.q.ea=function(){return this.f0y}; g.q.VD=function(V,t,x){x.clipId&&(this.clipId=x.clipId);this.policy.G&&!t&&(this.wj=x.J8,this.jm=x.startMs);var u=0;this.policy.iT&&this.ZA&&this.clipId&&(u=Q6(this.ZA,this.clipId)/1E3);this.gb.VD(V,t,x,u);this.policy.RO&&this.dX&&this.ih instanceof Ch&&(u=this.dX.Gv,this.ih.VD(x.durationMs/1E3,t,u>0&&x.J8+1>=u));this.gb.sZ.get(V).O_=!0}; g.q.dB=function(V,t){this.gb.dB(V,t)}; g.q.wR=function(V){this.requestIdentifier=V}; g.q.Hp=function(V){return this.gb.Hp(V)}; g.q.RH=function(V){return this.gb.RH(V)}; g.q.rH=function(V){return this.gb.rH(V)}; g.q.sH=function(){return this.gb.sH()}; g.q.Xe=function(){return 1}; g.q.uL=function(){return this.ih.requestNumber}; g.q.QZ=function(){return this.requestIdentifier}; g.q.m$=function(){return this.clipId}; g.q.dL=function(){return this.cw.dL()}; g.q.QT=function(){this.gK()}; g.q.gK=function(){this.ih.deactivate();var V;(V=this.xhr)==null||V.abort()}; g.q.isComplete=function(){return this.state>=3}; g.q.oX=function(){return this.state===3}; g.q.Pp=function(){return this.state===5}; g.q.HT=function(){return this.state===4}; g.q.VH=function(){return this.isComplete()}; g.q.iC=function(){return this.state>=1}; g.q.Cf=function(){return this.policy.Td?this.Gd.Cf():0}; g.q.By=function(){this.policy.Td&&qn(this.It,this)}; g.q.dD=function(){return io8(this.info)}; g.q.xE=function(){return this.Gd.xE()}; g.q.kF=function(){var V=i1T(this.Gd);Object.assign(V,shw(this.info));V.req="sabr";V.rn=this.uL();var t;if((t=this.xhr)==null?0:t.status)V.rc=this.policy.RA?this.xhr.status:this.xhr.status.toString();var x;(t=(x=this.xhr)==null?void 0:x.Nv())&&(V.msg=t);this.Vv&&(x=wg8(this,this.Vv-this.ih.Z9()),V.letm=x.aSy,V.mrbps=x.Jb,V.mram=x.yF);return V}; g.q.K0=function(){return{wj:this.wj,jm:this.jm,isDecorated:this.info.isDecorated()}};V2L.prototype.tick=function(V,t){this.ticks[V]=t?window.performance.timing.navigationStart+t:(0,g.Tu)()};g.A(Qi,g.Np);g.q=Qi.prototype; g.q.PK=function(V,t,x,u){var Z=!1;this.policy.yC&&(Z=x?this.cX===V.GU:this.zU===V.GU);if(this.B&&u&&!Z){u=[];Z=[];var P=[],K=void 0,R=0;t&&(u=t.J,Z=t.S,P=t.W,K=t.N,R=t.eb,this.policy.Cy&&this.J6("sdai",{sq:V.GU,ssvicpns:u.join("."),ssvid:Z.join(".")}));this.policy.yC&&(x?this.cX=V.GU:this.zU=V.GU);this.B.aS(V.GU,V.startTime,this.S,u,Z,P,x,R,K)}if(this.policy.yC){if(x||this.policy.kS){this.S===1&&rG(this,5,"noad");var f;V.GU!==((f=this.J)==null?void 0:f.GU)&&(ELq(this,V,t,x),isNaN(V.startTime)||Te(this, V.GU,nG(this,V.startTime,V.GU),!!t,this.B))}}else x&&ELq(this,V,t)}; g.q.L4=function(V,t,x){var u=this.videoTrack.J.index.C9()<=t;this.J={iI:V,GU:t,JF:x};u&&aJ(this,V,t)}; g.q.sS=function(){this.B&&this.B.sS()}; g.q.J6=function(V,t){this.iD.J6(V,t)}; g.q.In=function(V,t){var x=this.videoTrack.J.index.kE(V);if(x>=0){var u;var Z=((u=P5(t.K9,x,2))==null?void 0:u.GQ)||"";if(this.policy.G||Z)return t.HJ(V,x),Wj(this.iD,V,V,x),this.J6("sdai",{cmskpad:1,t:V.toFixed(3),sq:x}),!0}this.J6("sdai",{cmskpad:0,t:V.toFixed(3),sq:x});return!1};g.A(lk,g.c);lk.prototype.fd=function(V,t,x){x=x===void 0?{}:x;this.policy.hQ=YU(V,x,this.W,t===void 0?!1:t)};dG.prototype.bB=function(V){var t=this;if(this.policy.pL){var x=new Set(V);x.size===this.Us.size&&[].concat(g.v(x)).every(function(u){return t.Us.has(u)})||(this.iD.J6("lwnmow",{itagDenylist:[].concat(g.v(V)).join(",")}),this.iD.Sb(!!x.size),this.X=-1,this.Us=x,CG(this,this.J),this.L1=!0)}}; dG.prototype.fd=function(V,t,x){x=x===void 0?{}:x;var u=this.policy.hQ;this.G.fd(V,t===void 0?!1:t,x);if(u!==this.policy.hQ){CG(this,this.J);Ji(this);var Z,P;u>this.policy.hQ&&((Z=this.N)==null?0:V8(Z.info))&&((P=this.nextVideo)==null||!V8(P.info))&&(this.Ij=!0)}};tL.prototype.q3=function(V){this.timestampOffset=V;this.flush()}; tL.prototype.flush=function(){if(this.J.pos>0){var V={a:this.track.OL(),u:this.J.jZ(),pd:Math.round(this.W),ad:Math.round(this.N)},t=this.S;if(t){var x=t.J.info;V.itag=x.itag;x.J&&(V.xtags=x.J);V.sq=t.GU;V.st=t.startTime;V.sd=t.duration;this.track.policy.NL&&(V.si=t.N6());t.W&&(V.esl=t.S+t.N);t.hY()&&(V.eos=1)}isNaN(this.timestampOffset)||(V.to=this.timestampOffset);var u;if(t=(u=this.track.bq)==null?void 0:u.nI({})){for(var Z in t)this.B[Z]!==t[Z]&&(V["sb_"+Z]=t[Z]);this.B=t}this.track.J6("sbu", V);this.J.reset();this.buffered=[];this.G=this.N=this.W=0;this.timestampOffset=this.S=void 0}};ud.prototype.dispose=function(){this.wk=!0}; ud.prototype.uD=function(){return this.wk}; g.A(fV,Error);var hLw=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]);EE.prototype.skip=function(V){this.offset+=V}; EE.prototype.EJ=function(){return this.offset};g.q=VHL.prototype;g.q.VU=function(){return this.S}; g.q.n7=function(){return this.S.length?this.S[this.S.length-1]:null}; g.q.rg=function(){this.S=[];NI(this);OE(this)}; g.q.rl=function(V){this.dk=this.S.shift().info;V.info.t9(this.dk)}; g.q.RH=function(){return g.QV(this.S,function(V){return V.info})}; g.q.OL=function(){return!!this.B.info.audio}; g.q.getDuration=function(){return this.B.index.Cp()};g.A(Tq,Vi);g.q=Tq.prototype;g.q.onStateChange=function(){this.uD()&&(gG(this.gb,this.formatId),this.J.dispose())}; g.q.kF=function(){var V=lP9(this.gb,this.formatId),t;var x=((t=this.gb.sZ.get(this.formatId))==null?void 0:t.bytesReceived)||0;var u;t=((u=this.gb.sZ.get(this.formatId))==null?void 0:u.mW)||0;return{expected:V,received:x,bytesShifted:t,sliceLength:XB(this.gb,this.formatId),isAnyMediaEndReceived:this.gb.HD(this.formatId)}}; g.q.zZ=function(){return 0}; g.q.gT=function(){return!0}; g.q.Hp=function(){return this.gb.Hp(this.formatId)}; g.q.jU=function(){return[]}; g.q.rH=function(){return this.gb.rH(this.formatId)}; g.q.xE=function(){return this.lastError}; g.q.Cf=function(){return 0};g.A(Gb,g.c);g.q=Gb.prototype;g.q.OL=function(){return!!this.J.info.audio}; g.q.n7=function(){return this.W.n7()}; g.q.rl=function(V){this.W.rl(V);var t;(t=this.C)!=null&&(t.G.add(V.info.GU),t.J=M_4(t,t.pI,t.Cx,V,t.J),t.N=V,t.B=(0,g.Tu)());this.n1=Math.max(this.n1,V.info.J.info.n1||0)}; g.q.getDuration=function(){if(this.policy.S){var V=this.iD.pG();if(V)return Pt(V)}return this.J.index.Cp()}; g.q.rg=function(){o3(this);this.W.rg()}; g.q.rr=function(){return this.W}; g.q.isRequestPending=function(V){return this.N.length?V===this.N[this.N.length-1].info.qP[0].GU:!1}; g.q.q3=function(V){var t;(t=this.C)==null||t.q3(V);var x;(x=this.X)==null||x.q3(V)}; g.q.J6=function(V,t){this.iD.J6(V,t)}; g.q.al=function(){return this.iD.al()}; g.q.dispose=function(){var V;(V=this.X)==null||V.flush();g.c.prototype.dispose.call(this)};g.A(DQ,g.c);DQ.prototype.N=function(){this.S++>15||(this.J=!this.J,new leh(this.iD,this.policy,this.Fi,this.zc,this.J),this.delay.start())}; g.q=leh.prototype;g.q.d8=function(){}; g.q.FY=function(){}; g.q.QL=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.hK()===this.size)this.iD.J6("rqs",this.getInfo());else{var V="net.connect";this.xhr.status>200?V="net.badstatus":this.xhr.lc()&&(V="net.closed");this.onError(V)}}; g.q.onError=function(V){var t=this;this.iD.handleError(V,this.getInfo());M4("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(x){t.iD.J6("pathprobe",x)},function(x){t.iD.handleError(x.errorCode,x.details)})}; g.q.getInfo=function(){var V=this.timing.Bo();V.shost=FU(this.location.Kv);V.pb=this.size;return V};g.A(ef,g.c); ef.prototype.L=function(V,t){if(V.L){this.bD.isLive?(V=this.bD.UL&&this.bD.W?V.J.Nk(this.bD.UL,!1):V.J.Dq(Infinity),V.YE=this.YE):V=V.J.Nk(0,!1);if(this.Ij){var x=this.Ij;V.YE===0&&(V.G=x.C)}else V.G=this.X;return V}x=V.S;if(!x.J.h9())return x.J.P2()?(V=zq(this.G,V.J.info.n1,t.J.info.n1,0),V=x.J.qX(x,V)):V=x.J.XH(x),V;var u=x.LG-this.iD.getCurrentTime(),Z=!x.range||x.N===0&&x.S===0?0:x.range.length-(x.S+x.N),P=x.J;this.w$(V,u)&&Z===0&&(this.bD.isManifestless?P=V.J:(P=x.startTime+ij,x.N&&(P+=x.duration), y6(V,P),x=V.S,P=x.J));P.P2()?(Z=this.N,t=zq(this.G,P.info.n1,t.J.info.n1,u,Z.W.length>0&&Z.C===0&&this.iD.XG),u=Wf(V),V=x.J.qX(x,t),(t=V.N)&&V.qP.length>1&&(u||V.zc.S||V.qP[0].J!==x.J?V=x.J.qX(x,V.qP[0].N):(u=V.qP[V.qP.length-1],P=u.N/t,!u.W&&P<.4&&(V=x.J.qX(x,t-u.N))))):(x.GU<0&&(t=ot(x),t.pr=""+V.N.length,this.iD.isSeeking()&&(t.sk="1"),t.snss=x.G,this.iD.J6("nosq",t)),V=P.XH(x));if(this.policy.Us)for(x=g.G(V.qP),t=x.next();!t.done;t=x.next())t.value.type=6;return V}; ef.prototype.w$=function(V,t){if(!Wf(V)||!V.J.h9())return!1;var x=this.N.L1||gUs(V)||t<=this.policy.WR||this.N.Ij;this.logger.debug(function(){return"ready to adapt: "+x+", upgrade pending: "+gUs(V)+", health: "+t}); return x}; ef.prototype.NP=function(){g.c.prototype.NP.call(this)}; var ij=2/24;g.A(uD,g.c);uD.prototype.LS=function(V,t,x){var u;var Z=((u=this.S)==null?void 0:u.reason)==="m"?"m":this.S&&Zoq(this,this.S)?this.S.reason:"a";this.iD.LS(new jM(V,Z,x));V5(this.iD,t,V,!0)}; uD.prototype.sY=function(V,t){for(var x=g.G(this.cX),u=x.next();!u.done;u=x.next())if(u=u.value,u.id===V)return this.kK.RM||(this.N=[u]),this.B=this.bD.J[V],Hf(this.kK)&&(this.Ij=!0),new jM(this.B,t?"t":"m");this.N=[];return null}; uD.prototype.fd=function(V,t,x){x=x===void 0?{}:x;this.J.fd(V,t===void 0?!1:t,x)};LE.prototype.setData=function(V,t,x,u){var Z=this;u=u===void 0?{}:u;if(x==null?0:x.CI)this.KB=Jpj(this,x,u),V.wT=this.zc.wT();if(this.IF())return!0;this.data=V;this.J=EOq(V,t,function(P,K){var R;(R=Z.It)==null||R.bb(P,K)},x==null?void 0:x.N); if(!this.J)return!1;this.S=g.ir(this.J,t$K);return!0}; LE.prototype.IF=function(){return this.requestType===1}; LE.prototype.b_=function(){var V;return((V=this.It)==null?void 0:V.b_())||0}; LE.prototype.isDecorated=function(){var V;return!((V=this.data)==null||!V.H2)};FG.prototype.encrypt=function(V){this.m2.exports.AES128CTRCipher_encrypt(this.cipher,V.byteOffset,V.byteLength);return V}; FG.prototype.uD=function(){return this.cipher===0}; FG.prototype.dispose=function(){this.m2.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};gf.prototype.encrypt=function(V,t){return Eg(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:t},this.key,V).catch(function(x){return Promise.reject(x.name+": "+x.message)}).then(function(x){return new Uint8Array(x)}))}; gf.prototype.uD=function(){return this.J}; gf.prototype.dispose=function(){this.J=!0}; WW.UF(gf,{encrypt:MQ("oan2")});XG.prototype.encrypt=function(V,t){MB(this.S,t);return Eg(this.S.encrypt(V))}; XG.prototype.uD=function(){return this.J}; XG.prototype.dispose=function(){this.J=!0}; WW.UF(XG,{encrypt:MQ("oap")});zz.prototype.encrypt=function(V,t){var x=this.m2.t_(t),u=this.J;u.m2.exports.AES128CTRCipher_setCounter(u.cipher,(x!=null?x:t).byteOffset);t=this.m2.t_(V);this.J.encrypt(t!=null?t:V);x&&this.m2.free(x.byteOffset);return t?Eg(this.m2.jP(t)):Eg(V)}; zz.prototype.uD=function(){return this.J.uD()}; zz.prototype.dispose=function(){this.J.dispose()}; WW.UF(zz,{encrypt:MQ("oalw")});Bh.prototype.encrypt=function(V,t){var x=this,u=k0("");V.length<=this.TO&&this.J&&!this.W&&(u=N7(u,function(){return x.J?x.J.encrypt(V,t):k0("wasm unavailable")})); V.length<=this.oh&&(this.J&&this.W&&(u=N7(u,function(){return x.J?x.J.encrypt(V,t):k0("wasm unavailable")})),u=N7(u,function(){return SJw(x,V,t)})); return N7(N7(u,function(){return Go8(x,V,t)}),function(){return SJw(x,V,t)})}; Bh.prototype.uD=function(){return this.G}; Bh.prototype.dispose=function(){this.G=!0;var V;(V=this.N)==null||sg(V,g.Rc);g.Rc(this.J);g.Rc(this.S)};mc.prototype.encrypt=function(V){(0,g.Tu)();return(new Rh(this.J.J)).encrypt(V,this.iv)}; mc.prototype.decrypt=function(V,t){(0,g.Tu)();return(new Rh(this.J.J)).decrypt(V,t)}; mc.prototype.uD=function(){return this.N}; mc.prototype.dispose=function(){this.N=!0;g.Rc(this.S)};g.A(Yi,g.c);Yi.prototype.N=function(V,t){if(t){t=t instanceof g.vg?t:Q5(this,t);var x;((x=this.J.get(V))==null?void 0:FU(x.location))!==FU(t)&&this.J.set(V,new Beh(t,V))}else this.J.delete(V)}; Yi.prototype.load=function(){var V=this,t,x,u,Z,P,K,R,f,b,E;return g.Q(function(k){switch(k.J){case 1:t=V.J.get(0);g.AT(k,2);var O;if(O=t&&!V.S)O=FU(t.location),O=V.S===$4(O);if(O){k.FX(4);break}return g.m(k,rf(V,V.S?2:0),5);case 5:if(x=k.S)V.N(0,x),gX(x)&&V.N(1,XU(x));case 4:g.GK(k,3);break;case 2:u=g.I9(k);g.lf(u);if(!V.S){k.FX(3);break}V.S=!1;return g.m(k,V.load(),7);case 7:return k.return();case 3:if(!V.Rj.experiments.MP("html5_onesie_probe_ec_hosts")){k.FX(0);break}g.AT(k,9);Z=V;P=Z.N;K=3;return g.m(k, rf(V,1),11);case 11:return P.call(Z,K,k.S),R=V,f=R.N,b=4,g.m(k,rf(V,2),12);case 12:f.call(R,b,k.S);g.GK(k,0);break;case 9:E=g.I9(k),g.lf(E),g.pl(k)}})}; Yi.prototype.L=function(){var V=this,t,x;return g.Q(function(u){g.RO(V.C);t=g.S7(V.Rj.experiments,"html5_onesie_prewarm_max_lact_ms");if(rF()>=t)return u.return();(x=V.J.get(0))&&XKC(V,x);g.pl(u)})}; var MW4={x3U:0,Sty:1,jzX:2,IPw:3,d$w:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};Tz.prototype.decrypt=function(V){var t=this,x,u,Z,P,K,R;return g.Q(function(f){switch(f.J){case 1:if(t.J.length&&!t.J[0].isEncrypted)return f.return();t.S=!0;t.yW.NU("omd_s");x=new Uint8Array(16);zk()?u=new ql(V):Z=new Rh(V);case 2:if(!t.J.length||!t.J[0].isEncrypted){f.FX(4);break}P=t.J.shift();if(!u){K=Z.decrypt(P.buffer.BQ(),x);f.FX(5);break}return g.m(f,u.decrypt(P.buffer.BQ(),x),6);case 6:K=f.S;case 5:R=K;for(var b=0;b=4)){var t=VD(this),x=this.xhr;t.rc=x.status;V&&(t.ab=!0);if(x.Nv()){var u="onesie.net";t.msg=x.Nv()}else x.status>=400?u="onesie.net.badstatus":x.qh()?this.z0||(u="onesie.response.noplayerresponse"):u=x.status===204?"onesie.net.nocontent":"onesie.net.connect";u?this.HL(new Qr(u,t)):(this.NU("or_fs"),this.ih.pz((0,g.Tu)(),x.hK(),0),this.Hk(4),this.Lx&&this.J6("rqs",t));this.Lx&&this.J6("ombre", "ok."+ +!u);this.cZ=!1;xk(this);wf(this.yW);if(!this.Y0){this.Cw.stop();var Z;(Z=this.M_)==null||Z.stop()}var P;if(V=(P=this.IG)==null?void 0:zXq(P))for(P=0;P1E3){var V;(V=this.ih)==null||V.tb((0,g.Tu)());V=VD(this);if(this.Rj.d6()&&this.xhr instanceof ti){var t=this.xhr;V.xrs=t.xhr.readyState;V.xpb=t.J.getLength();V.xdc=t.W}this.HL(new Qr("net.timeout",V))}}else(0,g.Tu)()-this.ih.J>1E4&&((t=this.ih)==null||t.tb((0,g.Tu)()),this.TP());this.isComplete()||this.zL.start()}}; g.q.TP=function(){this.logger.info("Onesie request timed out");this.cZ=!1;if(!xk(this)){var V=VD(this);V.timeout="1";this.HL(new Qr("onesie.request",V))}}; g.q.HL=function(V){var t=this;V=rw(V);this.hF?this.S8.p9(V):(this.nu.reject(V),this.hF=!0);wf(this.yW);this.Y0||this.Cw.stop();this.NU("or_fe");var x,u;(x=this.IG)==null||(u=zXq(x))==null||u.forEach(function(Z){t.J6("pathprobe",Z)}); this.Hk(5);this.dispose()}; g.q.isComplete=function(){return this.state>=3}; g.q.HT=function(){return this.state===4}; g.q.VH=function(V){var t,x;return this.isComplete()||!!((t=this.WG)==null?0:(x=t.get(V))==null?0:x.J)}; g.q.oX=function(){return!1}; g.q.Pp=function(){return this.state===5}; g.q.notifySubscribers=function(V){for(var t=0;t102400&&!this.aX&&(this.NU("or100k"),this.aX=!0);if(V.Vm()){var t=V.tT(),x=t.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+x}); this.Lx&&this.J6("ombrss","len."+x);this.Xb.feed(t)}if(this.WG)for(var u=g.G(this.WG.keys()),Z=u.next();!Z.done;Z=u.next()){var P=Z.value;V=void 0;(V=this.WG.get(P))==null||V.nT();this.notifySubscribers(P)}}catch(K){this.HL(K)}}; g.q.uL=function(){return this.ih.requestNumber}; g.q.QZ=function(V){return this.uO.get(V)}; g.q.K0=function(){return{wj:this.wj,jm:this.jm,isDecorated:!1}};g.A(ZiL,g.c);g.q=ZiL.prototype;g.q.Az=function(V,t){this.wk=void 0;Fr8(this);IxC(this,V,t)}; g.q.SP=function(V){if(this.J.length===0)return!1;var t=this.J[0];return t instanceof tN?V===this.iD.getCurrentTime()*1E3:!(t instanceof mf&&Oo9(t.info))&&Math.abs(t.dD()-V)<50}; g.q.x5=function(V){this.S=V;this.wk=(0,g.Tu)()+(V.backoffTimeMs||0)}; g.q.xW=function(V,t){if(V.action===void 0){var x=this.S8.VI();x!==void 0&&this.iD.F9(x)}else if(V.action!==0||!this.dk)switch(V.action===0&&this.policy.s_&&(V.action=2),x={},x.reason=V.rZX,x.action=V.action,x.rn=t,V.action){case 1:this.policy.G&&this.W&&this.W.Z_(void 0,void 0,x);break;case 0:this.dk=!0;this.videoData.R_()&&this.policy.G&&this.W&&this.W.Z_(void 0,void 0,x,!1);this.iD.qC(x);break;case 2:this.iD.handleError("sabr.config",x,1);break;case 5:jDC(this.S8,!0);break;case 6:jDC(this.S8,!1); break;case 3:this.policy.CI&&((V=this.bD.C)!=null&&(V.C=!0),this.iD.handleError("sabr.hostfallback",x))}}; g.q.Ma=function(V,t,x,u){if(this.policy.S){this.iD.J6("ssap",{rn:u,v:t,tl:gXj(V)});var Z=this.iD.pG();V={tL:V,context:x,version:t};vX0(this,x);Z?Lrz(this,Z,V):(this.iD.J6("ssap",{cacheclips:1,rn:u,v:t}),this.C=V)}}; g.q.K2=function(V){var t=this.policy.wk||this.policy.e5||this.policy.S;this.iD.J6("ssap",{onsbrctxt:V.type,dflt:V.sendByDefault,enable:t?1:0});t&&vX0(this,V);this.policy.e5&&this.S8.K2(V)}; g.q.ZI=function(){}; g.q.Ku=function(V){if(V.pU!==void 0&&V.H4){var t=V.pU/V.H4;this.audioTrack.L=!1;this.videoTrack.L=!1;if(this.policy.zU||this.policy.oa||this.policy.j$)this.iD.D0.S=!1;this.iD.xF(t,1);if(this.S8.getCurrentTime()!==t){var x={xK:"sabr_seek",nf:!0,VE:!0};V.seekSource&&(x.seekSource=V.seekSource);H3(this.iD,t+.1,x)}}}; g.q.onSnackbarMessage=function(V){this.S8.publish("onSnackbarMessage",V)}; g.q.Tw=function(V){V.Gv&&V.SJ&&MV(this.bD,V.Gv,V.SJ);this.policy.a9&&(V.jR&&V.Ms&&(this.bD.Bv=V.jR/V.Ms),V.LA&&V.bl&&(this.bD.e0=V.LA/V.bl));V.Z3!=null&&this.S8.gV(V.Z3);this.policy.S4&&V.Lj&&(V=((0,g.Tu)()-V.Lj)/1E3,this.iD.Yb.x_(1,V))}; g.q.PJ=function(V){this.iD.PJ(V)}; g.q.dQ=function(V,t,x){this.policy.N&&this.iD.J6("sabrctxtplc",{start:V?V.join("_"):"",stop:t?t.join("_"):"",discard:x?x.join("_"):""});if(V){V=g.G(V);for(var u=V.next();!u.done;u=V.next())this.Tl.add(u.value)}if(t)for(t=g.G(t),V=t.next();!V.done;V=t.next())V=V.value,this.Tl.has(V)&&this.Tl.delete(V);if(x)for(x=g.G(x),t=x.next();!t.done;t=x.next())t=t.value,this.videoData.sabrContextUpdates.has(t)&&(this.videoData.sabrContextUpdates.delete(t),t===3&&(this.videoData.Vu=""))}; g.q.sD=function(){}; g.q.lO=function(V){this.L=V}; g.q.MF=function(V){this.Es=V}; g.q.Kw=function(V,t){UE(this.policy,V,4,t)}; g.q.cY=function(V){if(V==null?0:V.d5)if(V=V.d5.wD){V=g.G(V);for(var t=V.next();!t.done;t=V.next())if(t=t.value,t.formatId){var x=this.bD.N.get(gL(t.formatId));x&&x.info&&(x.info.debugInfo=t.debugInfo)}}}; g.q.Vn=function(V){(V=V==null?void 0:V.reloadPlaybackParams)&&this.S8.publish("reloadplayer",V)}; g.q.Pr=function(){return this.S8.Pr()||""}; g.q.b_=function(){var V=mU(this.audioTrack,!0)*1E3,t=mU(this.videoTrack,!0)*1E3;return Math.min(V,t)}; g.q.bb=function(V,t){this.iD.J6(V,t)}; g.q.Ht=function(V){eGL(this.iD,gLw(this.DS,V))}; g.q.NP=function(){g.c.prototype.NP.call(this);this.S=void 0;IxC(this,!0,"i");this.J=[]};XiT.prototype.LR=function(V,t){if(this.W)return Qg1(this,t);if(t=Ue(V)){var x=t.S;x&&x.N&&x.J&&(V=V.N.length?V.N[0]:null)&&V.state>=2&&!V.Pp()&&V.info.YE===0&&(this.W=V,this.L=x,this.S=t.info,this.B=this.startTimeSecs=Date.now()/1E3,this.G=this.S.startTime)}return NaN}; XiT.prototype.clear=function(){this.S=this.L=this.W=null;this.J=this.G=this.B=this.startTimeSecs=NaN;this.N=!1};g.A(g.bj,g.c);g.q=g.bj.prototype;g.q.initialize=function(V,t,x){this.logger.debug(function(){return"Initialized, t="+V}); V=V||0;this.policy.J||(t=zuL(this.J),JP8(this.S8,new jM(t.video,t.reason)),this.S8.xj(new jM(t.audio,t.reason)));this.bD.isManifestless&&wsT(this.G);this.L&&B81(this.L,this.videoTrack.J);t=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var u=!this.bD.isManifestless;this.policy.Mx&&(u=u||this.bD.Gk);this.policy.BX||(this.currentTime=u?V:t);this.policy.zU&&this.seek(this.getCurrentTime(),{}).q9(function(){}); if(this.policy.J){var Z;((Z=this.Ij)==null?0:ur0(Z,this.Pr()||""))&&oXq(this)&&Wrq(this,this.videoTrack)&&Wrq(this,this.audioTrack)&&(Mk8(this.N,this.Ij),this.policy.B&&T8q(this))}else this.wk&&(nX9(this,this.videoTrack),nX9(this,this.audioTrack),jYz(this.wk),delete this.wk);x?(this.policy.w1?(this.Fc=x,kk(this,x)):kk(this,!1),g.RO(this.IY)):(x=this.getCurrentTime()===0,JL(this.G,this.videoTrack,this.videoTrack.J,x),JL(this.G,this.audioTrack,this.audioTrack.J,x),this.policy.J&&qsj(this.N,!0),this.policy.zU|| this.seek(this.getCurrentTime(),{}).q9(function(){}),this.timing.tick("gv")); (this.bD.UL||this.bD.JY||this.bD.Es||this.bD.CI||this.bD.IC)&&this.S8.Ri(this.bD)}; g.q.resume=function(){if(this.isSuspended||this.XG){this.logger.debug("Resumed.");this.nN=this.XG=this.isSuspended=!1;try{this.LR()}catch(V){g.jv(V)}}}; g.q.tF=function(){return!this.policy.w6}; g.q.P3=function(V,t){V=V===void 0?!1:V;t=t===void 0?!1:t;this.logger.debug("detaching media source");lx0(this);this.S8.M$()&&(this.B=NaN);V?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Es&&this.J6("loader",{setsmb:1}),this.policy.Us=!0,this.rg()):(this.policy.w1?kk(this,this.Fc):kk(this,!1),t||this.rg())}; g.q.setAudioTrack=function(V,t,x){x=x===void 0?!1:x;if(!this.uD()){var u=!isNaN(t);x&&u&&(this.audioTrack.Ij=Date.now(),this.policy.AZ&&(this.DS=!0));if(this.policy.J){var Z=this.S.sY(V.id,u);this.logger.debug(function(){return"Logging new audio format: "+Z.J.info.id}); this.S8.xj(Z)}else{var P=M2h(this.J,V.id,u);this.logger.debug(function(){return"Logging new audio format: "+P.audio.info.id}); this.S8.xj(new jM(P.audio,P.reason))}if(u&&(x=this.audioTrack.J.index.kE(t),this.J6("setAudio",{id:V.id,cmt:t,sq:x}),x>=0)){this.policy.J&&(this.S.C=!0,this.Az(!0,"mosaic"));Yd(this.audioTrack,x,NaN,NaN);!this.policy.kX&&this.bD.isLive&&F4(this.bD,x,!1);return}this.S8.Rn()}}; g.q.setPlaybackRate=function(V){V!==this.X.getPlaybackRate()&&this.X.setPlaybackRate(V)}; g.q.PZ=function(V){var t=this.N.L;this.N.lO(V);this.J6("scfidc",{curr:gL(t),"new":gL(V)});V&&gL(V)!==gL(t)&&(this.Az(!1,"caption change"),this.LR())}; g.q.Va=function(V){this.N.MF(V)}; g.q.LS=function(V){var t=V.J.info.OL();this.logger.debug(function(){return"New "+(t?"audio":"video")+" format from SABR: "+$I(V.J.info)}); t?this.S8.xj(V):JP8(this.S8,V)}; g.q.Ht=function(V){rL(V.qP[V.qP.length-1])&&eGL(this,gLw(this.J,V.qP[0].J))}; g.q.e$=function(){return this.S8.e$()}; g.q.Cn=function(){return this.S8.Cn()}; g.q.PJ=function(V){this.S8.K().d6()&&this.J6("sps",{status:V.Q1||""});if(V.Q1===1)this.S8.videoData.E_=0;else if(V.Q1===2||V.Q1===3){var t=!1;if(V.Q1===3){t=this.S8.dT();var x;this.Qt=(x=V.OGD)!=null?x:Infinity;this.S8.videoData.E_=t+1;(t=tF(this))&&this.H6(!0)}this.S8.C4(!0,t)}}; g.q.Xk=function(){return this.S8.Xk()}; g.q.Fl=function(){return this.S8.Fl()}; g.q.p4=function(V){this.S8.p4(V)}; g.q.bGj=function(){var V,t=(V=this.S8.Bw())==null?void 0:V.getCurrentTime();t?this.S8.J6("rms",{cta:t}):g.RO(this.kX)}; g.q.LR=function(){D0s(this);if(this.VC&&CF(this.VC)&&!this.VC.VN()&&(!this.policy.BX||isFinite(this.getCurrentTime()))){var V=vf(this.videoTrack);V=this.policy.xi&&V&&V.hY();this.bD.isManifestless&&this.bD.W&&Gn(this.bD)?(this.B=Gn(this.bD),this.VC.qq(this.B)):gV(this.bD)&&!V?isNaN(this.B)?(this.B=this.getCurrentTime()+3600,this.VC.qq(this.B)):this.B<=this.getCurrentTime()+1800&&(this.B=Math.max(this.B+1800,this.getCurrentTime()+3600),this.VC.qq(this.B)):this.VC.isView||(V=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.B)||this.B!==V)&&V>0&&(this.VC.qq(V),this.B=V))}if(!this.uD())if(SH(this.bD)&&this.bD.Pp()){var t=this.bD;this.handleError("manifest.net.retryexhausted",t.yC?{rc:t.A9}:{rc:t.A9.toString()},1)}else if(this.policy.J)a:{try{APC(this.N);this.bD.isManifestless&&this.policy.B&&jB(this.D0);if(jgq(this)&&this.VC&&!wU(this.VC)&&this.videoTrack.Es&&this.audioTrack.Es){this.J6("ssap",{delaysb:1,v:this.videoTrack.J.info.id,vf:this.videoTrack.J.info.lD,a:this.audioTrack.J.info.id, af:this.audioTrack.J.info.lD});var x=this.VC,u=this.videoTrack.J,Z=this.audioTrack.J;!wU(x)&&Z&&u&&(p0K(x,u.info,Z.info,this.policy.bv),Hi4(this,x))}var P;((P=this.VC)==null?0:wU(P))&&this.BA();this.policy.J||E2(this);qsj(this.N)}catch(R){g.lf(R);t=R;if(t.message.includes("changeType")){this.J6("ssap",{exp:t.name,msg:t.message,s:t.stack});break a}this.handleError("fmt.unplayable",{exp:t.name,msg:t.message,s:t.stack},1)}ONj(this);g.RO(this.HX)}else if(!this.bD.S||!BVj(this.videoTrack)&&!BVj(this.audioTrack)|| (this.videoTrack.G||this.audioTrack.G)&&this.policy.Fc?x=!1:(this.rg(),this.S8.seekTo(Infinity,{xK:"checkLoaderTracksSync",xF:!0}),x=!0),!x){D0s(this);this.bD.isManifestless&&(mVh(this.videoTrack),mVh(this.audioTrack),jB(this.D0),(x=Ue(this.videoTrack))&&x.S&&(x=x.S.N&&!this.policy.t5,this.J6(x===this.policy.C.z9?"strm":"strmbug",{strm:x,sfmp4:this.policy.C.z9,dfs:this.policy.t5},!0)));if(this.VC)this.BA();else if(this.policy.W){var K;x=!1;if(this.policy.uJ)for(u=g.G([this.videoTrack,this.audioTrack]), Z=u.next();!Z.done;Z=u.next()){P=Z.value;for(Z=Ue(P);Z&&P.n7()!==vf(P);Z=Ue(P))P.rl(Z);x=x||!!Z}else(t=Ue(this.videoTrack))&&this.videoTrack.rl(t),(K=Ue(this.audioTrack))&&this.audioTrack.rl(K);X9(this.videoTrack)&&X9(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(t||K||x)&&Kp(this)}E2(this);JL(this.G,this.videoTrack,this.videoTrack.J,!1);JL(this.G,this.audioTrack,this.audioTrack.J,!1);this.policy.a6||Cp8(this,this.videoTrack,this.audioTrack);DV1(this.G,this.videoTrack, this.audioTrack);DV1(this.G,this.audioTrack,this.videoTrack);ONj(this);this.L&&(t=this.L,t.W?(K=t.B+t.policy.Yr,t.N||(K=Math.min(K,t.startTimeSecs+t.policy.Wp)),t=Math.max(0,K*1E3-Date.now())):t=NaN,isNaN(t)||g.RO(this.IC,t));g.RO(this.HX)}}; g.q.qC=function(V){this.S8.qC(V)}; g.q.BA=function(){var V=this;if(this.VC){var t=this.VC.J,x=this.VC.S;Sjj(this,this.audioTrack);Sjj(this,this.videoTrack);var u=wiC(this);if(u){if(this.policy.iM){if(!t.GX()){var Z=Ue(this.audioTrack);if(Z){if(!$k(this,this.audioTrack,t,Z.info))return;xmC(this,this.audioTrack,t,Z)}}if(!x.GX()&&(Z=Ue(this.videoTrack))){if(!$k(this,this.videoTrack,x,Z.info))return;xmC(this,this.videoTrack,x,Z)}}this.dI||(this.dI=(0,g.Tu)(),this.logger.debug(function(){return"Appends pause start "+V.dI+" reason "+u}), this.policy.N&&this.J6("apdps",{r:u}))}else if(this.dI&&(hG4(this,this.dI),this.dI=0),VQw(this),Z=!1,this.policy.S&&cf(this.videoTrack)||!qjq(this,this.videoTrack,x)||(Z=!0,ue9(this.timing),qM8(this.timing)),this.VC&&!this.VC.lI()&&(this.policy.S&&cf(this.audioTrack)||!qjq(this,this.audioTrack,t)||(Z=!0,ZB0(this.timing),Rul(this.timing)),!this.uD()&&this.VC)){if(!this.policy.w6&&X9(this.videoTrack)&&X9(this.audioTrack)&&CF(this.VC)&&!this.VC.VN()){x=!1; x=vf(this.audioTrack);if(this.policy.S){var P;t=(P=this.e8)==null?void 0:a3(P,x.An*1E3);x=!(!t||t.clipId!==x.clipId);this.J6("ssap",{eos:x})}else P=x.J,x=P===this.bD.J[P.info.id];x&&(this.logger.debug("Setting EOS"),Aqz(this.VC),QMj(this.schedule))}Z&&!this.VC.isAsync()&&Kp(this)}}}; g.q.ZY=function(V){var t,x=V===((t=this.VC)==null?void 0:t.J)?this.audioTrack:this.videoTrack,u;(u=x.cX)==null||u.stop();var Z;if((Z=Ue(x))==null?0:Z.isLocked){if(this.S8.K().d6()){var P;this.J6("eosl",{ounlock:(P=Ue(x))==null?void 0:P.info.N6()})}var K;kD1(this,V===((K=this.VC)==null?void 0:K.J))}var R;if(this.policy.AZ&&V===((R=this.VC)==null?void 0:R.J)&&this.yC){t=this.yC-this.getCurrentTime();var f;this.S8.J6("asl",{l:t,xtag:(f=vf(this.audioTrack))==null?void 0:f.J.info.J});this.DS=!1;this.yC= 0}V.VW()&&V.O1().length===0&&(V.Fk(),this.VC&&!this.VC.VW()&&(this.S8.K().d6()&&this.S8.J6("rms",{ld:"seek"}),this.VC.B=performance.now(),this.S8.W1(),this.S8.K().d6()&&g.RO(this.kX)));var b;(b=x.X)!=null&&xd(b,0);this.policy.QC&&this.policy.nO&&this.VC&&(x=V.Ih())&&x.hY()&&!iQ(V.O1(),Math.min(x.An+ij,x.LG))&&this.J6("sbunb",{st:x.An,et:x.LG});this.policy.IC?wS(this):this.LR()}; g.q.xjC=function(V){if(this.VC){var t=vf(V===this.VC.J?this.audioTrack:this.videoTrack);if(V=V.gr())for(var x=0;xthis.N&&(this.N=x,g.YE(this.J)||(this.J={},this.W.stop(),this.S.stop())),this.J[t]=V,g.RO(this.S))}}; Nn.prototype.G=function(){for(var V=g.G(Object.keys(this.J)),t=V.next();!t.done;t=V.next()){var x=t.value;t=this.publish;for(var u=this.N,Z=this.J[x].match(ym),P=[],K=g.G(Z[6].split("&")),R=K.next();!R.done;R=K.next())R=R.value,R.indexOf("cpi=")===0?P.push("cpi="+u.toString()):R.indexOf("ek=")===0?P.push("ek="+g.wH(x)):P.push(R);Z[6]="?"+P.join("&");x="skd://"+Z.slice(2).join("");Z=x.length*2;u=new Uint8Array(Z+4);u[0]=Z%256;u[1]=(Z-u[0])/256;for(Z=0;Z0)for(var x=g.G(this.J),u=x.next();!u.done;u=x.next())if(t===u.value.info.cryptoPeriodIndex){t=!0;break a}t=!1}if(!t){t=(0,g.Tu)();a:{x=V.cryptoPeriodIndex;if(!isNaN(x)){u=g.G(this.N.values());for(var Z=u.next();!Z.done;Z=u.next())if(Math.abs(Z.value.cryptoPeriodIndex-x)<=1){x=!0;break a}}x=!1}x?(x=V.J,x=Math.max(0,Math.random()*((isNaN(x)?120:x)-30))*1E3):x=0;this.publish("log_qoe",{wvagt:"delay."+x,cpi:V.cryptoPeriodIndex,reqlen:this.J.length, ignore:this.W});x<=0?F6q(this,V):this.W||(this.J.push({time:t+x,info:V}),g.RO(this.S,x))}}; pp.prototype.NP=function(){this.J=[];s2.prototype.NP.call(this)};var pH={},B3L=(pH.DRM_TRACK_TYPE_AUDIO="AUDIO",pH.DRM_TRACK_TYPE_SD="SD",pH.DRM_TRACK_TYPE_HD="HD",pH.DRM_TRACK_TYPE_UHD1="UHD1",pH);g.A(Xzq,g.c);g.A(Yjw,g.Np);g.q=Yjw.prototype;g.q.ZQ=function(V){var t=this;this.uD()||V.size<=0||(V.forEach(function(x,u){var Z=Tn(t.S)?u:x;u=new Uint8Array(Tn(t.S)?x:u);Tn(t.S)&&C1w(u);x=g.pR(u,4);C1w(u);u=g.pR(u,4);t.J[x]?t.J[x].status=Z:t.J[u]?t.J[u].status=Z:t.J[x]={type:"",status:Z}}),HNw(this,","),AN(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.q.error=function(V,t,x,u){this.uD()||(this.publish("licenseerror",V,t,x,u),V==="drm.provision"&&(V=(Date.now()-this.B)/1E3,this.B=NaN,this.publish("ctmp","provf",{et:V.toFixed(3)})));aa(t)&&this.dispose()}; g.q.shouldRetry=function(V,t){return this.Us&&this.L?!1:!V&&this.requestNumber===t.requestNumber}; g.q.NP=function(){this.J={};g.Np.prototype.NP.call(this)}; g.q.nI=function(){var V={ctype:this.X.contentType||"",length:this.X.initData.length,requestedKeyIds:this.cX,cryptoPeriodIndex:this.cryptoPeriodIndex};this.N&&(V.keyStatuses=this.J);return V}; g.q.getInfo=function(){var V=this.W.join();if(SD(this)){var t=new Set,x;for(x in this.J)this.J[x].status!=="usable"&&t.add(this.J[x].type);V+="/UKS."+Array.from(t)}return V+="/"+this.cryptoPeriodIndex}; g.q.dL=function(){return this.url};g.A(G2,g.c);g.q=G2.prototype;g.q.dF=function(V){if(this.G){var t=V.messageType||"license-request";this.G(new Uint8Array(V.message),t)}}; g.q.ZQ=function(){this.L&&this.L(this.J.keyStatuses)}; g.q.onClosed=function(){this.uD()||g.h6("xboxone")&&this.N&&this.N("closed")}; g.q.hG=function(V){this.G&&this.G(V.message,"license-request")}; g.q.tG=function(V){if(this.N){if(this.S){var t=this.S.error.code;V=this.S.error.systemCode}else t=V.errorCode,V=V.systemCode;this.N("t.prefixedKeyError;c."+t+";sc."+V,t,V)}}; g.q.U9=function(){this.B&&this.B()}; g.q.update=function(V){var t=this;if(this.J)return(JW.isActive()?JW.oH("emeupd",function(){return t.J.update(V)}):this.J.update(V)).then(null,I_(function(x){htT(t,"t.update",x)})); this.S?this.S.update(V):this.element.addKey?this.element.addKey(this.C.keySystem,V,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.C.keySystem,V,this.initData,this.sessionId);return jL()}; g.q.NP=function(){this.J&&(this.X?this.J.close().catch(g.lf):this.J.close());this.element=null;g.c.prototype.NP.call(this)};g.A(Iv,g.c);g.q=Iv.prototype;g.q.MH=function(){var V=this;if(this.J.keySystemAccess)return(JW.isActive()?JW.oH("emenew",function(){return V.J.keySystemAccess.createMediaKeys()}):this.J.keySystemAccess.createMediaKeys()).then(function(x){if(!V.uD())if(V.S=x,JW.isActive())JW.oH("emeset",function(){return V.element.setMediaKeys(x)}); else{var u;(u=V.element)==null||u.setMediaKeys(x)}}); if(rV(this.J))this.N=new (a$())(this.J.keySystem);else if(Ws(this.J)){this.N=new (a$())(this.J.keySystem);var t;(t=this.element)==null||t.webkitSetMediaKeys(this.N)}else JW.isActive()&&this.J6("emev",{v:"01b"}),W4(this.G,this.element,["keymessage","webkitkeymessage"],this.s6),W4(this.G,this.element,["keyerror","webkitkeyerror"],this.Kg),W4(this.G,this.element,["keyadded","webkitkeyadded"],this.x$);return null}; g.q.setServerCertificate=function(){return this.S.setServerCertificate?this.J.flavor==="widevine"&&this.J.Wp?this.S.setServerCertificate(this.J.Wp):ne(this.J)&&this.J.DS?this.S.setServerCertificate(this.J.DS):null:null}; g.q.createSession=function(V,t){var x=V.initData;if(this.J.keySystemAccess){t&&t("createsession");var u=this.S.createSession();o$(this.J)?x=wzs(x,this.J.DS):ne(this.J)&&(x=L68(x)||new Uint8Array(0));t&&t("genreq");var Z=JW.isActive()?JW.oH("emegen",function(){return u.generateRequest(V.contentType,x)}):u.generateRequest(V.contentType,x); var P=new G2(null,null,null,u,null,this.L);Z.then(function(){t&&t("genreqsuccess")},I_(function(R){htT(P,"t.generateRequest",R)})); return P}if(rV(this.J))return tm8(this,x);if(Ws(this.J))return Vml(this,x);if((Z=this.element)==null?0:Z.generateKeyRequest)this.element.generateKeyRequest(this.J.keySystem,x);else{var K;(K=this.element)==null||K.webkitGenerateKeyRequest(this.J.keySystem,x)}return this.W=new G2(this.element,this.J,x,null,null,this.L)}; g.q.s6=function(V){var t=xDw(this,V);t&&t.hG(V)}; g.q.Kg=function(V){var t=xDw(this,V);t&&t.tG(V)}; g.q.x$=function(V){var t=xDw(this,V);t&&t.U9(V)}; g.q.getMetrics=function(){if(this.S&&this.S.getMetrics)try{var V=this.S.getMetrics()}catch(t){}return V}; g.q.NP=function(){this.N=this.S=null;var V;(V=this.W)==null||V.dispose();V=g.G(Object.values(this.B));for(var t=V.next();!t.done;t=V.next())t.value.dispose();this.B={};g.c.prototype.NP.call(this);delete this.element};g.q=vt.prototype;g.q.get=function(V){V=this.findIndex(V);return V!==-1?this.values[V]:null}; g.q.remove=function(V){V=this.findIndex(V);V!==-1&&(this.keys.splice(V,1),this.values.splice(V,1))}; g.q.removeAll=function(){this.keys=[];this.values=[]}; g.q.set=function(V,t){var x=this.findIndex(V);x!==-1?this.values[x]=t:(this.keys.push(V),this.values.push(t))}; g.q.findIndex=function(V){return g.d7(this.keys,function(t){return g.$z(V,t)})};g.A(Pdw,g.Np);g.q=Pdw.prototype;g.q.wk1=function(V){this.Un({onecpt:1});V.initData&&RHT(this,new Uint8Array(V.initData),V.initDataType)}; g.q.d6k=function(V){this.Un({onndky:1});RHT(this,V.initData,V.contentType)}; g.q.Lq=function(V){this.Un({onneedkeyinfo:1});this.Rj.T("html5_eme_loader_sync")&&(this.L.get(V.initData)||this.L.set(V.initData,V));qEL(this,V)}; g.q.xn=function(V){this.N.push(V);Lp(this)}; g.q.createSession=function(V){var t=$I8(this)?dv1(V):g.pR(V.initData);this.S.get(t);this.cX=!0;V=new Yjw(this.videoData,this.Rj,V,this.drmSessionId);this.S.set(t,V);V.subscribe("ctmp",this.BK,this);V.subscribe("keystatuseschange",this.ZQ,this);V.subscribe("licenseerror",this.Ab,this);V.subscribe("newlicense",this.f3,this);V.subscribe("newsession",this.cU,this);V.subscribe("sessionready",this.L3,this);V.subscribe("fairplay_next_need_key_info",this.N7,this);this.Rj.T("html5_enable_vp9_fairplay")&&V.subscribe("qualitychange", this.Ey,this);this.Rj.T("html5_enable_sabr_drm_hd720p")&&V.subscribe("sabrlicenseconstraint",this.TLs,this);T3q(V,this.W)}; g.q.f3=function(V){this.uD()||(this.Un({onnelcswhb:1}),V&&!this.heartbeatParams&&(this.heartbeatParams=V,this.publish("heartbeatparams",V)))}; g.q.cU=function(){this.uD()||(this.Un({newlcssn:1}),this.N.shift(),this.cX=!1,Lp(this))}; g.q.L3=function(){if(rV(this.J)&&(this.Un({onsnrdy:1}),this.Es--,this.Es===0)){var V=this.Ij,t,x;(t=V.element)==null||(x=t.msSetMediaKeys)==null||x.call(t,V.N)}}; g.q.ZQ=function(V){if(!this.uD()){!this.BX&&this.videoData.T("html5_log_drm_metrics_on_key_statuses")&&(bV1(this),this.BX=!0);this.Un({onksch:1});var t=this.Ey;if(!SD(V)&&g.u0&&V.S.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var x="large";else{x=[];var u=!0;if(SD(V))for(var Z=g.G(Object.keys(V.J)),P=Z.next();!P.done;P=Z.next())P=P.value,V.J[P].status==="usable"&&x.push(V.J[P].type),V.J[P].status!=="unknown"&&(u=!1);if(!SD(V)||u)x=V.W;x=lDL(x)}t.call(this,x);this.publish("keystatuseschange", V)}}; g.q.BK=function(V,t){this.uD()||this.publish("ctmp",V,t)}; g.q.N7=function(V,t){this.uD()||this.publish("fairplay_next_need_key_info",V,t)}; g.q.Ab=function(V,t,x,u){this.uD()||(this.videoData.T("html5_log_drm_metrics_on_error")&&bV1(this),this.publish("licenseerror",V,t,x,u))}; g.q.LH=function(){return this.C}; g.q.Ey=function(V){var t=g.Pg("auto",V,!1,"l");if(this.videoData.Qd){if(this.C.t9(t))return}else if(YDw(this.C,V))return;this.C=t;this.publish("qualitychange");this.Un({updtlq:V})}; g.q.TLs=function(V){this.videoData.sabrLicenseConstraint=V}; g.q.NP=function(){this.J.keySystemAccess&&this.element&&(this.zU?this.element.setMediaKeys(null).catch(g.lf):this.element.setMediaKeys(null));this.element=null;this.N=[];for(var V=g.G(this.S.values()),t=V.next();!t.done;t=V.next())t=t.value,t.unsubscribe("ctmp",this.BK,this),t.unsubscribe("keystatuseschange",this.ZQ,this),t.unsubscribe("licenseerror",this.Ab,this),t.unsubscribe("newlicense",this.f3,this),t.unsubscribe("newsession",this.cU,this),t.unsubscribe("sessionready",this.L3,this),t.unsubscribe("fairplay_next_need_key_info", this.N7,this),this.Rj.T("html5_enable_vp9_fairplay")&&t.unsubscribe("qualitychange",this.Ey,this),t.dispose();this.S.clear();this.B.removeAll();this.L.removeAll();this.heartbeatParams=null;g.Np.prototype.NP.call(this)}; g.q.nI=function(){for(var V={systemInfo:this.J.nI(),sessions:[]},t=g.G(this.S.values()),x=t.next();!x.done;x=t.next())V.sessions.push(x.value.nI());return V}; g.q.getInfo=function(){return this.S.size<=0?"no session":""+this.S.values().next().value.getInfo()+(this.G?"/KR":"")}; g.q.Un=function(V,t){t=t===void 0?!1:t;this.uD()||(YY(V),(this.Rj.d6()||t)&&this.publish("ctmp","drmlog",V))};g.A(sez,g.c);g.q=sez.prototype;g.q.wO=function(){return!!this.Q_}; g.q.AF=function(){return this.S}; g.q.handleError=function(V){var t=this;IQz(this,V);if((V.errorCode!=="html5.invalidstate"&&V.errorCode!=="fmt.unplayable"&&V.errorCode!=="fmt.unparseable"||!GbT(this,V.errorCode,V.details))&&!Mf1(this,V)){if(this.Yw.Ij!=="yt"&&LUs(this,V)&&this.videoData.S4&&(0,g.Tu)()/1E3>this.videoData.S4&&this.Yw.Ij==="hm"){var x=Object.assign({e:V.errorCode},V.details);x.stalesigexp="1";x.expire=this.videoData.S4;x.init=this.videoData.Uw/1E3;x.now=(0,g.Tu)()/1E3;x.systelapsed=((0,g.Tu)()-this.videoData.Uw)/1E3; V=new Qr(V.errorCode,x,2);this.S8.KG(V.errorCode,2,"SIGNATURE_EXPIRED",YY(V.details))}if(aa(V.severity)){var u;x=(u=this.S8.iD)==null?void 0:u.J.J;if(this.Yw.T("html5_use_network_error_code_enums"))if(vdK(V)&&x&&x.isLocked())var Z="FORMAT_UNAVAILABLE";else if(this.Yw.B||V.errorCode!=="auth"||V.details.rc!==429)V.errorCode==="ump.spsrejectfailure"&&(Z="HTML5_SPS_UMP_STATUS_REJECTED");else{Z="TOO_MANY_REQUESTS";var P="6"}else vdK(V)&&x&&x.isLocked()?Z="FORMAT_UNAVAILABLE":this.Yw.B||V.errorCode!=="auth"|| V.details.rc!=="429"?V.errorCode==="ump.spsrejectfailure"&&(Z="HTML5_SPS_UMP_STATUS_REJECTED"):(Z="TOO_MANY_REQUESTS",P="6");this.S8.KG(V.errorCode,V.severity,Z,YY(V.details),P)}else this.S8.publish("nonfatalerror",V),u=/^pp/.test(this.videoData.clientPlaybackNonce),this.p9(V.errorCode,V.details),u&&V.errorCode==="manifest.net.connect"&&(V="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.Tu)(),M4(V,"manifest",function(K){t.B=!0;t.J6("pathprobe",K)},function(K){t.p9(K.errorCode, K.details)}))}}; g.q.J6=function(V,t){this.S8.Zz().J6(V,t)}; g.q.p9=function(V,t){t=YY(t);this.S8.Zz().p9(V,t)};zHT.prototype.u0=function(V,t){return(t===void 0?0:t)?{IP:V?gg(this,V):lp,Ja:V?WUw(this,V):lp,Hlj:V?rL4(this,V):lp,lgU:V?lQq(this,V.videoData):lp,TE:V?HVL(this,V.videoData,V):lp,XG8:V?Qe1(this,V):lp}:{IP:V?gg(this,V):lp}}; zHT.prototype.T=function(V){return this.Rj.T(V)};g.A(XS,g.c);XS.prototype.onError=function(V){if(V!=="player.fatalexception"||this.provider.T("html5_exception_to_health"))V==="sabr.fallback"&&(this.encounteredSabrFallback=!0),V.match(ye_)?this.networkErrorCount++:this.nonNetworkErrorCount++}; XS.prototype.send=function(){if(!(this.N||this.J<0)){eHq(this);var V=g.z2(this.provider)-this.J,t="PLAYER_PLAYBACK_STATE_UNKNOWN",x=this.playerState.Mv;this.playerState.isError()?t=x&&x.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.J(this.playerState,2)?t="PLAYER_PLAYBACK_STATE_ENDED":g.J(this.playerState,64)?t="PLAYER_PLAYBACK_STATE_UNSTARTED":g.J(this.playerState,16)||g.J(this.playerState,32)?t="PLAYER_PLAYBACK_STATE_SEEKING":g.J(this.playerState,1)&&g.J(this.playerState, 4)?t="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.J(this.playerState,1)?t="PLAYER_PLAYBACK_STATE_BUFFERING":g.J(this.playerState,4)?t="PLAYER_PLAYBACK_STATE_PAUSED":g.J(this.playerState,8)&&(t="PLAYER_PLAYBACK_STATE_PLAYING");x=aA$[vz(this.provider.videoData)];a:switch(this.provider.Rj.playerCanaryState){case "canary":var u="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":u="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:u="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var Z=dIL(this.provider), P=this.S<0?V:this.S-this.J;V=this.provider.Rj.CG+36E5<(0,g.Tu)();t={started:this.S>=0,stateAtSend:t,joinLatencySecs:P,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:u,playerCanaryStage:Z,isAd:this.provider.videoData.isAd(),liveMode:x,hasDrm:!!g.GD(this.provider.videoData),isGapless:this.provider.videoData.C,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:qm(this.provider.videoData)};V||g.pq("html5PlayerHealthEvent",t);this.N=!0;this.dispose()}}; XS.prototype.NP=function(){this.N||this.send();window.removeEventListener("error",this.Jo);window.removeEventListener("unhandledrejection",this.Jo);g.c.prototype.NP.call(this)}; var ye_=/\bnet\b/;g.A(JL4,g.c);JL4.prototype.NP=function(){g.c.prototype.NP.call(this);wfC(this)};var Vw8=/[?&]cpn=/;g.A(Bt,g.c);Bt.prototype.flush=function(){var V={};this.S&&(V.pe=this.S);this.J.length>0&&(V.pt=this.J.join("."));this.J=[];return V}; Bt.prototype.stop=function(){var V=this,t,x,u;return g.Q(function(Z){if(Z.J==1)return g.AT(Z,2),g.m(Z,(t=V.W)==null?void 0:t.stop(),4);if(Z.J!=2)return(x=Z.S)&&V.logTrace(x),g.GK(Z,0);u=g.I9(Z);V.S=qS4(u.message);g.pl(Z)})}; Bt.prototype.logTrace=function(V){this.encoder.reset();this.encoder.add(1);this.encoder.add(V.resources.length);for(var t=g.G(V.resources),x=t.next();!x.done;x=t.next()){x=x.value.replace("https://www.youtube.com/s/","");this.encoder.add(x.length);for(var u=0;u=0?V:g.z2(this.provider),["PL","B","S"].indexOf(this.lh)>-1&&(!g.YE(this.J)||V>=this.G+30)&&(g.QD(this,V,"vps",[this.lh]),this.G=V),!g.YE(this.J))){this.sequenceNumber===7E3&&g.lf(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){rg(this,V);if(this.provider.T("html5_record_h5vcc_flags")){var t=this.provider.S8.hH();t=g.G(t);for(var x=t.next();!x.done;x=t.next())x=x.value,this.J6(x.key,x.value)}t=V;x=this.provider.S8.E2(); var u=x.droppedVideoFrames||0,Z=x.totalVideoFrames||0,P=u-this.TB,K=Z&&!this.b3;u>x.totalVideoFrames||P>5E3?SSq(this,"html5.badframedropcount","df."+u+";tf."+x.totalVideoFrames):(P>0||K)&&g.QD(this,t,"df",[P]);this.TB=u;this.b3=Z;this.X>0&&(g.QD(this,V,"glf",[this.X]),this.X=0);uy.isActive()&&(V=uy.Si(),Object.keys(V).length>0&&this.J6("profile",V));this.w6&&T2(this,"lwnmow");this.provider.Rj.d6()&&this.provider.T("html5_record_now")&&this.J6("now",{wt:(0,g.Tu)()});V={};this.provider.videoData.S&& (V.fmt=this.provider.videoData.S.itag,(t=this.provider.videoData.W)&&t.itag!==V.fmt&&(V.afmt=t.itag));V.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(V.adcpn=this.adCpn);this.Ij&&(V.addocid=this.Ij);this.contentCpn&&(V.ccpn=this.contentCpn);this.zU&&(V.cdocid=this.zU);this.provider.videoData.cotn&&(V.cotn=this.provider.videoData.cotn);V.el=TD(this.provider.videoData);V.content_v=l1(this.provider.videoData);V.ns=this.provider.Rj.Ij;V.fexp=sMC(this.provider.Rj.experiments).toString(); V.cl=(719997054).toString();(t=this.provider.videoData.adFormat||this.adFormat)&&(V.adformat=t);(t=vz(this.provider.videoData))&&(V.live=t);this.provider.videoData.eZ()&&(V.drm=1,this.provider.videoData.G&&(V.drm_system=XDt[this.provider.videoData.G.flavor]||0),this.provider.videoData.kS&&(V.drm_product=this.provider.videoData.kS));pJ()&&this.provider.videoData.B&&(V.ctt=this.provider.videoData.B,V.cttype=this.provider.videoData.gH,this.provider.videoData.mdxEnvironment&&(V.mdx_environment=this.provider.videoData.mdxEnvironment)); this.provider.videoData.isDaiEnabled()?(V.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.NN&&(V.dai_fallback="1")):this.provider.videoData.QP?V.dai="cs":this.provider.videoData.nw&&(V.dai="disabled");V.seq=this.sequenceNumber++;if(this.provider.videoData.Zw){if(t=this.provider.videoData.Zw,V&&t)for(t.ns==="3pp"&&(V.ns="3pp"),this.SH.has(t.ns)&&T2(this,"hbps"),t.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=t.shbpslc),x=g.G(Object.keys(t)),u= x.next();!u.done;u=x.next())u=u.value,this.q6.has(u)||(V[u]=t[u])}else V.event="streamingstats",V.docid=this.provider.videoData.videoId,V.ei=this.provider.videoData.eventId;this.isEmbargoed&&(V.embargoed="1");Object.assign(V,this.provider.Rj.J);if(t=V.seq)t={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+t,serializedWatchEndpointLoggingContext:this.provider.videoData.Wa},this.serializedHouseBrandPlayerServiceLoggingContext&&(t.serializedHouseBrandPlayerServiceLoggingContext=SG(this.serializedHouseBrandPlayerServiceLoggingContext)|| void 0),this.provider.videoData.playerResponseCpn&&(t.playerResponseCpn=this.provider.videoData.playerResponseCpn),Yk.length&&(t.decoderInfo=Yk),this.provider.S8.pG()&&(t.transitionStitchType=4,this.cX&&(t.timestampOffsetMsecs=this.cX)),this.remoteControlMode&&(t.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(t.remoteConnectedDevices=this.remoteConnectedDevices),t=g.ir(t,Zmq),t=g.pR(t,4),this.J.qclc=[t];V=g.CX("//"+this.provider.Rj.Nn+"/api/stats/qoe",V);x=t="";u=g.G(Object.keys(this.J)); for(Z=u.next();!Z.done;Z=u.next())Z=Z.value,this.J[Z]===null?g.lf(new g.xe("Stats report key has invalid value",Z)):(Z="&"+Z+"="+this.J[Z].join(","),Z.length>100?x+=Z:t+=Z);sfC(this,V+t,x.replace(/ /g,"%20"))}this.J={}}}; g.q.Sb=function(V){this.w6=V}; g.q.HE=function(){if(this.provider.videoData.G){var V=this.provider.videoData.G;T2(this,"eme-"+(V.keySystemAccess?"final":rV(V)?"ms":o$(V)?"ytfp":Ws(V)?"safarifp":"nonfinal"))}}; g.q.WA=function(V){var t=g.z2(this.provider);if(!this.provider.Rj.experiments.MP("html5_refactor_sabr_video_format_selection_logging")||V.J.id!==this.dk){var x=[V.J.id,V.S,this.dk,V.reason];V.token&&x.push(V.token);g.QD(this,t,"vfs",x);this.dk=V.J.id;x=this.provider.S8.getPlayerSize();if(x.width>0&&x.height>0){x=[Math.round(x.width),Math.round(x.height)];var u=g.Co();u>1&&x.push(u);g.QD(this,t,"view",x)}this.HX||(this.provider.Rj.d6()&&T2(this,"rqs2"),this.provider.videoData.J&&kT(this.provider.videoData.J)&& (this.J.preload=["1"]));this.N=this.HX=!0}V.reason==="m"&&++this.o5===100&&Gzq(this,2);g.QD(this,t,"vps",[this.lh]);this.reportStats(t)}; g.q.e7=function(V){var t=g.z2(this.provider);if(this.provider.Rj.experiments.MP("html5_refactor_sabr_audio_format_selection_logging")){t=V.J;var x=[t.audio&&t.video?t.WK?t.WK:"":t.id];t.H$&&t.H$.id&&x.push(t.H$.id);t=x.join(";");t!==this.L&&(x=[t,this.L,V.reason],V.token&&x.push(V.token),g.QD(this,g.z2(this.provider),"afs",x),this.L=t)}else V.J.id!==this.L&&(x=[V.J.id,this.L,V.reason],V.token&&x.push(V.token),g.QD(this,t,"afs",x),this.L=V.J.id)}; g.q.Xu=V0(52);g.q.M0=function(V){this.isEmbargoed=V}; g.q.Dg=V0(33);g.q.Lv=V0(38);g.q.onPlaybackRateChange=function(V){var t=g.z2(this.provider);V&&V!==this.Td&&(g.QD(this,t,"rate",[V]),this.Td=V);this.reportStats(t)}; g.q.yN=V0(28);g.q.getPlayerState=function(V){if(g.J(V,128))return"ER";if(g.J(V,2048))return"B";if(g.J(V,512))return"SU";if(g.J(V,16)||g.J(V,32))return"S";if(V.isOrWillBePlaying()&&g.J(V,64))return"B";var t=jLn[sc(V)];g.ap(this.provider.Rj)&&t==="B"&&this.provider.S8.getVisibilityState()===3&&(t="SU");t==="B"&&g.J(V,4)&&(t="PB");return t}; g.q.NP=function(){g.c.prototype.NP.call(this);g.XV(this.B);g.XV(this.CI)}; g.q.hv=function(V){this.isOffline=V;g.QD(this,g.z2(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.q.J6=function(V,t,x){var u=this.J.ctmp||[],Z=this.r9.indexOf(V)!==-1;Z||this.r9.push(V);if(!x||!Z){var P=typeof t!=="string"?YY(t):t;P=ISC(P);if(!x&&!/^t[.]/.test(P)){var K=g.z2(this.provider)*1E3;P="t."+K.toFixed()+";"+P}u.push(V+":"+P);this.logger.debug(function(){return"ctmp "+V+" "+P}); this.J.ctmp=u;NfT(this);return K}}; g.q.Qs=function(V,t,x){this.W={zxw:Number(this.J6("glrem",{nst:V.toFixed(),rem:t.toFixed(),ca:+x})),qs:V,qLs:t,isAd:x}}; g.q.LO=function(V,t,x){g.QD(this,g.z2(this.provider),"ad_playback",[V,t,x])}; g.q.XZ=function(V,t){var x=g.z2(this.provider)*1E3,u=this.J.daism||[];u.push("t."+x.toFixed(0)+";smw."+(V*1E3).toFixed(0)+";smo."+(t*1E3).toFixed(0));this.J.daism=u}; g.q.resume=function(){var V=this;this.provider.Rj.d6()&&this.J6("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.B)?phl(this):this.B=g.Mc(function(){V.reportStats()},1E4)}; var Ad={},jLn=(Ad[5]="N",Ad[-1]="N",Ad[3]="B",Ad[0]="EN",Ad[2]="PA",Ad[1]="PL",Ad[-1E3]="ER",Ad[1E3]="N",Ad),Yk=[];FcK.prototype.Ca=function(){return this.J}; FcK.prototype.update=function(){if(this.L){var V=this.provider.S8.Tq(this.provider.videoData.clientPlaybackNonce)||0,t=g.z2(this.provider);V>=this.provider.S8.getDuration()-.1&&(this.previouslyEnded=!0);if(V!==this.J||Xhh(this,V,t)){var x;if(!(x=Vt-this.TW+2||Xhh(this,V,t))){x=this.provider.S8.getVolume();var u=x!==this.X,Z=this.provider.S8.isMuted()?1:0;Z!==this.C?(this.C=Z,x=!0):(!u||this.W>=0||(this.X=x,this.W=t),x=t-this.W,this.W>=0&&x>2?(this.W=-1,x=!0):x=!1)}x&&(ct(this),this.N= V);this.TW=t;this.J=V}}};zV1.prototype.send=function(V){var t=this;if(!this.DS){var x=mQh(this),u=g.CX(this.uri,x);this.Rj.T("vss_through_gel_double")&&YSK(u);this.zU&&!this.Rj.T("html5_simplify_pings")?Wcs(this,u):BfC(this,V).then(function(Z){t.zU&&(Z=Z||{},Z.method="POST",Z.postParams={atr:t.attestationResponse});ZEz(u,Z,{token:t.Ij,lW:t.gk,mdxEnvironment:t.mdxEnvironment},t.Rj,V,t.cX,t.isFinal&&t.a_||t.Us||t.N&&t.CG)}); this.DS=!0}}; zV1.prototype.S=function(V){V===void 0&&(V=NaN);return Number(V.toFixed(3)).toString()}; var Su={},rFl=(Su.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,Su.LIVING_ROOM_APP_MODE_MAIN=1,Su.LIVING_ROOM_APP_MODE_KIDS=2,Su.LIVING_ROOM_APP_MODE_MUSIC=3,Su.LIVING_ROOM_APP_MODE_UNPLUGGED=4,Su.LIVING_ROOM_APP_MODE_GAMING=5,Su),GZ={},aS8=(GZ.EMBEDDED_PLAYER_MODE_UNKNOWN=0,GZ.EMBEDDED_PLAYER_MODE_DEFAULT=1,GZ.EMBEDDED_PLAYER_MODE_PFP=2,GZ.EMBEDDED_PLAYER_MODE_PFL=3,GZ);g.A(jD,g.c);g.q=jD.prototype;g.q.dh=function(){this.J.update();UQ1(this)&&(nil(this),cFw(this),this.cF())}; g.q.NP=function(){g.c.prototype.NP.call(this);U2(this);Mwq(this.J)}; g.q.nI=function(){return mQh(lj(this,"playback"))}; g.q.cF=function(){this.provider.videoData.L.eventLabel=TD(this.provider.videoData);this.provider.videoData.L.playerStyle=this.provider.Rj.playerStyle;this.provider.videoData.Vd&&(this.provider.videoData.L.feature="pyv");this.provider.videoData.L.vid=this.provider.videoData.videoId;var V=this.provider.videoData.L;var t=this.provider.videoData;t=t.isAd()||!!t.Vd;V.isAd=t}; g.q.KJ=function(V){var t=lj(this,"engage");t.wk=V;return Qfz(t,hV9(this.provider))};JFw.prototype.isEmpty=function(){return this.endTime===this.startTime};eD.prototype.T=function(V){return this.Rj.T(V)}; eD.prototype.getCurrentTime=function(V){if(this.T("html5_ssap_current_time_for_logging_refactor")){var t=this.S8.pG();if(t&&(V=V||t.Bp()))return RX(t,V)}else if(g.d8(this.videoData)){var x=this.S8.pG();if(x)return V=this.S8.getCurrentTime(),x=(((t=a3(x,V*1E3))==null?void 0:t.ym)||0)/1E3,V-x}return this.S8.getCurrentTime()}; eD.prototype.o_=function(V){if(this.T("html5_ssap_current_time_for_logging_refactor")){var t=this.S8.pG();if(t&&(V=V||t.Bp()))return RX(t,V)}else if(g.d8(this.videoData)){var x=this.S8.pG();if(x)return V=this.S8.o_(),x=(((t=a3(x,V*1E3))==null?void 0:t.ym)||0)/1E3,V-x}return this.S8.o_()}; var whj={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.A(g.dg,g.c);g.q=g.dg.prototype;g.q.dh=function(){if(this.provider.videoData.enableServerStitchedDai&&this.rh){var V;(V=this.N.get(this.rh))==null||V.dh()}else this.J&&this.J.dh()}; g.q.M0=function(V){this.qoe&&this.qoe.M0(V)}; g.q.Dg=V0(32);g.q.Lv=V0(37);g.q.XZ=function(V,t){this.qoe&&this.qoe.XZ(V,t)}; g.q.p9=function(V,t){this.qoe&&SSq(this.qoe,V,t);if(this.S)this.S.onError(V)}; g.q.WA=function(V){this.qoe&&this.qoe.WA(V)}; g.q.e7=function(V){this.qoe&&this.qoe.e7(V)}; g.q.onPlaybackRateChange=function(V){if(this.qoe)this.qoe.onPlaybackRateChange(V);this.J&&ct(this.J.J)}; g.q.Xu=V0(51);g.q.J6=function(V,t,x){this.qoe&&this.qoe.J6(V,t,x)}; g.q.Qs=function(V,t,x){this.qoe&&this.qoe.Qs(V,t,x)}; g.q.gV=function(V){var t;(t=this.qoe)==null||t.gV(V)}; g.q.Ri=function(V){var t;(t=this.qoe)==null||t.Ri(V)}; g.q.Sb=function(V){this.qoe&&this.qoe.Sb(V)}; g.q.LO=function(V,t,x){this.qoe&&this.qoe.LO(V,t,x)}; g.q.yN=V0(27);g.q.SD=function(){if(this.qoe)return this.qoe.SD()}; g.q.nI=function(){if(this.provider.videoData.enableServerStitchedDai&&this.rh){var V,t;return(t=(V=this.N.get(this.rh))==null?void 0:V.nI())!=null?t:{}}return this.J?this.J.nI():{}}; g.q.ZE=function(){var V;return(V=this.qoe)==null?void 0:V.ZE()}; g.q.cC=function(V,t){var x;(x=this.qoe)==null||x.cC(V,t)}; g.q.KJ=function(V){return this.J?this.J.KJ(V):function(){}}; g.q.cF=function(){this.J&&this.J.cF()}; g.q.getVideoData=function(){return this.provider.videoData}; g.q.resume=function(){this.qoe&&this.qoe.resume()};g.A(JN,g.c); JN.prototype.pN=function(V,t,x){if(this.J.has(V)){var u=this.J.get(V);if(t.videoId&&!VD8(u))this.S.J6("ssap",{rlc:V}),bp8(this,V);else return}if(!this.J.has(V)){u=new eD(t,this.Rj,this.S8);var Z=Math.round(g.z2(this.S.provider)*1E3);u=new g.dg(u,Z);VD8(u)||this.S.J6("nqv",{vv:t.videoId});Z=this.S.getVideoData();this.J.set(V,u);if(u.qoe){var P=u.qoe,K=Z.videoId||"";P.contentCpn=Z.clientPlaybackNonce;P.zU=K}tD8(u);x===2&&(this.Rj.T("html5_log_ad_playback_docid")?(x=this.S,x.qoe&&(x=x.qoe,u=t.kX||"", Z=t.breakType||0,t=t.videoId||"",P=this.Rj.Ij||"yt",g.QD(x,g.z2(x.provider),"ad_playback",[V,u,Z,t,P]))):this.S.LO(V,t.kX||"",t.breakType||0))}}; JN.prototype.Zz=function(V){V=V||this.rh;return this.J.get(V)||this.S};g.A(g.hN,g.c);g.q=g.hN.prototype; g.q.gL=function(V,t){this.sync();t&&this.J.array.length>=2E3&&this.tR("captions",1E4);t=this.J;if(V.length>1&&V.length>t.array.length)t.array=t.array.concat(V),t.array.sort(t.J);else for(var x=g.G(V),u=x.next();!u.done;u=x.next())u=u.value,!t.array.length||t.J(u,t.array[t.array.length-1])>0?t.array.push(u):g.bo(t.array,u,t.J);V=g.G(V);for(t=V.next();!t.done;t=V.next())t=t.value,t.namespace==="ad"&&this.W("ssap",{acrsid:t.getId(),acrsst:t.start,acrset:t.end,acrscpt:t.playerType});this.N=NaN;this.sync()}; g.q.p6=function(V){V.length>1E4&&g.lf(new g.xe("Over 10k cueRanges removal occurs with a sample: ",V[0]));if(!this.uD()){for(var t=g.G(V),x=t.next();!x.done;x=t.next())(x=x.value)&&x.namespace==="ad"&&this.W("ssap",{rcrid:x.getId(),rcst:x.start,rcet:x.end,rcpt:x.playerType});var u=new Set(V);this.S=this.S.filter(function(Z){return!u.has(Z)}); ptC(this.J,u);this.sync()}}; g.q.tR=function(V,t){var x=(isNaN(this.N)?g.J(this.B(),2)?0x8000000000000:this.X()*1E3:this.N)-t;t=this.Fl().filter(function(u){return u.namespace===V&&u.endthis.J,P=g.J(x,8)&&g.J(x,16),K=this.S8.Xl().isBackground()||x.isSuspended();fM(this,this.QC,P&&!K,Z,"qoe.slowseek",function(){},"timeout"); var R=isFinite(this.J);R=P&&R&&MP4(t,this.J);var f=!u||Math.abs(u-this.J)>10,b=this.Rj.T("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),E=u===0&&this.S&&[11,10].includes(this.S);fM(this,this.gk,R&&f&&!K&&(!b||!E),Z,"qoe.slowseek",function(){t.seekTo(V.J)},"set_cmt"); f=R&&iQ(t.oN(),this.J);var k=this.S8.iD;R=!k||k.tF();var O=function(){t.seekTo(V.J+.001)}; fM(this,this.dk,f&&R&&!K,Z,"qoe.slowseek",O,"jiggle_cmt");R=function(){return V.S8.OO()}; fM(this,this.DS,f&&!K,Z,"qoe.slowseek",R,"new_elem");f=Oc(x);b=x.isBuffering();var N=t.oN(),p=kI(N,u),I=p>=0&&N.end(p)>u+5,L=f&&b&&I;E=this.S8.getVideoData();fM(this,this.xw,u<.002&&this.J<.002&&P&&g.ap(this.Rj)&&g.ya(E)&&!K,Z,"qoe.slowseek",R,"slow_seek_shorts");fM(this,this.Ij,E.Lc()&&P&&!K&&!E.zU,Z,"qoe.slowseek",R,"slow_seek_gapless_shorts");fM(this,this.zU,L&&!K,f&&!b,"qoe.longrebuffer",O,"jiggle_cmt");fM(this,this.cX,L&&!K,f&&!b,"qoe.longrebuffer",R,"new_elem_nnr");if(k){var M=k.getCurrentTime(); P=t.PD();P=iCs(P,M);P=!k.isSeeking()&&u===P;fM(this,this.CI,f&&b&&P&&!K,f&&!b&&!P,"qoe.longrebuffer",function(){t.seekTo(M)},"seek_to_loader")}P={}; O=kI(N,Math.max(u-3.5,0));L=O>=0&&u>N.end(O)-1.1;var z=O>=0&&O+1=0&&L&&z<11;P.close2edge=L;P.gapsize=z;P.buflen=N.length;this.S&&(P.seekSour=this.S);if(O=this.S8.pG()){L=O.Bp();z=L!==a3(O,u*1E3).clipId;var Y=g.S7(this.Rj.experiments,"html5_ssap_skip_seeking_offset_ms"),r=(Q6(O,L)+Y)/1E3;fM(this,this.BX,z&&f&&b&&!K,f&&!b,"qoe.longrebuffer",function(){t.seekTo(r)},"ssap_clip_not_match")}fM(this,this.Us,f&&b&&!K,f&&!b,"qoe.longrebuffer", function(){},"timeout",P); P=x.isSuspended();P=this.S8.fu()&&!P;fM(this,this.L,P,!P,"qoe.start15s",function(){V.S8.cG("ad")},"ads_preroll_timeout"); O=u-this.W<.5;var n;P=!((n=this.S8.pG())==null||!n.L6());z=(L=E.isAd()||P&&this.Rj.experiments.MP("html5_ssap_skip_slow_ad"))&&f&&!b&&O;n=function(){var U=V.S8,d=g.d8(U.videoData)&&U.e8,uL=U.yP.rk();(uL&&U.videoData.isAd()&&uL.getVideoData().QP===U.getVideoData().QP||!U.videoData.Xt)&&!d?U.KG("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+U.videoData.videoId):b1(U.videoData,"html5_ssap_skip_slow_ad")&&d&&U.e8.L6()&&(U.p9(new Qr("ssap.transitionfailure",{cpn:a3(U.e8,U.o_()).clipId,pcpn:U.e8.Bp(), cmt:U.o_()})),U=U.e8,d=U.playback.o_(),(d=q_C(U,d))&&x_9(U,d.Ue()/1E3))}; fM(this,this.Tc,z,!z,"ad.rebuftimeout",n,"skip_slow_ad");O=L&&b&&iQ(t.oN(),u+5)&&O;fM(this,this.w6,O&&!K,!O,"ad.rebuftimeout",n,"skip_slow_ad_buf");n=x.isOrWillBePlaying()&&g.J(x,64)&&!K;fM(this,this.Fc,n,Z,"qoe.start15s",function(){},"timeout"); n=!!k&&!k.VC&&x.isOrWillBePlaying();fM(this,this.Es,n,Z,"qoe.start15s",R,"newElemMse");n=Nf(N,0);O=g.J(x,16)||g.J(x,32);O=!K&&x.isOrWillBePlaying()&&b&&!O&&(g.J(x,64)||u===0)&&n>5;fM(this,this.HX,g.ya(E)&&O,f&&!b,"qoe.longrebuffer",function(){V.S8.Rn()},"reset_media_source"); fM(this,this.yC,g.ya(E)&&O,f&&!b,"qoe.longrebuffer",R,"reset_media_element");this.W===0&&(this.B=u);O=b&&this.J===0&&u>1&&u===this.B;fM(this,this.L1,g.ya(E)&&O,f&&!b,"qoe.slowseek",function(){t.seekTo(0)},"reseek_after_time_jump"); K=x.isOrWillBePlaying()&&!K;I=this.S8.Du()-u<6&&!I&&this.S8.RF();fM(this,this.C,E.Lc()&&K&&b&&I,f&&!b,"qoe.longrebuffer",function(){V.S8.OO(!1,!0)},"handoff_end_long_buffer_reload"); k=(k==null?void 0:IDq(k))||NaN;k=N.length>1||!isNaN(k)&&k-.1<=u;fM(this,this.X,ZD(E)&&K&&b&&k,f&&!b,"qoe.longrebuffer",R,"gapless_slice_append_stuck");k=p>=0&&N.end(p)>=2;K=ZD(E)&&this.S8.z7&&k&&!E.zU&&K&&(b||g.J(x,8)&&g.J(x,16));fM(this,this.wk,K,Z,"qoe.start15s",R,"gapless_slow_start");x=!!(P&&n>5&&x.isPlaying()&&u<.1);fM(this,this.P$,x,u>.5&&f,"qoe.longrebuffer",R,"ssap_stuck_in_ad_beginning");this.W=u;this.G.start()}}; RD.prototype.p9=function(V,t,x){t=this.nI(t);t.wn=x;t.wdup=this.N[V]?"1":"0";this.S8.p9(new Qr(V,t));this.N[V]=!0}; RD.prototype.nI=function(V){V=Object.assign(this.S8.nI(!0),V.nI());this.J&&(V.stt=this.J.toFixed(3));this.S8.getVideoData().isLivePlayback&&(V.ct=this.S8.getCurrentTime().toFixed(3),V.to=this.S8.SB().toFixed(3));delete V.uga;delete V.euri;delete V.referrer;delete V.fexp;delete V.vm;return V}; KM.prototype.reset=function(){this.J=this.S=this.N=this.startTimestamp=0;this.W=!1}; KM.prototype.test=function(V){if(!this.G||this.S)return!1;if(!V)return this.reset(),!1;V=(0,g.Tu)();if(!this.startTimestamp)this.startTimestamp=V,this.N=0;else if(this.N>=this.G)return this.S=V,!0;this.N+=1;return!1}; KM.prototype.nI=function(){var V={},t=(0,g.Tu)();this.startTimestamp&&(V.wsd=(t-this.startTimestamp).toFixed());this.S&&(V.wtd=(t-this.S).toFixed());this.J&&(V.wssd=(t-this.J).toFixed());return V};g.A(okC,g.c);g.q=okC.prototype;g.q.setMediaElement=function(V){(this.mediaElement=V)?(this.mediaElement&&(this.G||this.W||!this.mediaElement.Z5()||this.seekTo(.01,{xK:"seektimeline_setupMediaElement"})),$K(this)):Eu(this)}; g.q.getCurrentTime=function(){if(bV(this.S8)){if(!isNaN(this.S))return this.S}else if(!isNaN(this.S)&&isFinite(this.S))return this.S;return this.mediaElement&&hdz(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.W||0}; g.q.VI=function(){return this.yC}; g.q.o_=function(){return this.getCurrentTime()-this.SB()}; g.q.GH=function(){return this.J?this.J.GH():Infinity}; g.q.isAtLiveHead=function(V){if(!this.J)return!1;V===void 0&&(V=this.getCurrentTime());return Zt(this.J,V)}; g.q.hq=function(){return!!this.J&&this.J.hq()}; g.q.seekTo=function(V,t){var x=t===void 0?{}:t;t=x.im===void 0?!1:x.im;var u=x.Sf===void 0?0:x.Sf;var Z=x.Mw===void 0?!1:x.Mw;var P=x.Xp===void 0?0:x.Xp;var K=x.xK===void 0?"":x.xK;var R=x.seekSource===void 0?void 0:x.seekSource;var f=x.xF===void 0?!1:x.xF;var b=x.nf===void 0?!1:x.nf;x=x.VE===void 0?!1:x.VE;f&&(V+=this.SB());qm(this.videoData)&&this.T("html5_sabr_enable_utc_seek_requests")&&R===29&&(this.yC=void 0);f=V=this.uh())||!g.XL(this.videoData),E||(I={st:I,mst:this.uh()},this.J&&this.T("html5_high_res_seek_logging")&&(I.ht=this.J.GH(),I.adft=mnq(this.J)),this.S8.J6("seeknotallowed",I)),I=E));if(!I)return this.N&&(this.N=null,CjC(this)),g.LX(this.getCurrentTime());I=.005;b&&this.T("html5_sabr_seek_no_shift_tolerance")&&(I=0);if(Math.abs(V-this.S)<=I&&this.wk)return this.G;K&&(I=V,(this.Rj.d6()||this.T("html5_log_seek_reasons"))&& this.S8.J6("seekreason",{reason:K,tgt:I}));R&&(this.cX.S=R);this.wk&&Eu(this);this.G||(this.G=new xJ);V&&!isFinite(V)&&jv8(this,!1);(K=x||f)||(K=V,K=!(this.videoData.isLivePlayback&&this.videoData.N&&!this.videoData.N.J&&!(this.mediaElement&&this.mediaElement.IM()>0&&Zo(this.mediaElement)>0)||k8(this.videoData)&&this.L9()===this.uh(!1)?0:isFinite(K)||!k8(this.videoData)));K||(V=iV(this,V,Z));V&&!isFinite(V)&&jv8(this,!1);this.W=V;this.dk=P;this.S=V;this.X=0;this.J&&(Z=this.J,P=V,Y2h(Z,P,!1),QvT(Z, P));Z=this.S8;P=V;K={im:t,seekSource:R};Z.Bk.W=P;x=Z.Ig;x.mediaTime=P;x.J=!0;K.im&&Z.HZ(K);K=P>Z.videoData.endSeconds&&P>Z.videoData.limitedPlaybackDurationInSeconds;Z.Zq&&K&&isFinite(P)&&B$L(Z);Pt.start&&B$L(this.S8);return this.G}; g.q.uh=function(V){if(!this.videoData.isLivePlayback)return Zjq(this.S8);var t;return V1(this.videoData)&&((t=this.mediaElement)==null?0:t.isPaused())&&this.videoData.J?(V=this.getCurrentTime(),xb0(this.eH(V)*1E3)+V):this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&qm(this.videoData)&&this.videoData.J?V?this.videoData.J.wk||0:this.videoData.J.e0||0:k8(this.videoData)&&this.videoData.BX&&this.videoData.J?this.videoData.J.uh()+this.timestampOffset:this.videoData.N&&this.videoData.N.J?!V&& this.J?this.J.GH():Zjq(this.S8)+this.timestampOffset:this.mediaElement?tD()?xb0(this.mediaElement.RQ().getTime()):Zo(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.q.L9=function(){if(g.d8(this.videoData)){var V=this.S8;g.d8(V.videoData);var t,x;return(x=(t=V.e8)==null?void 0:t.L9())!=null?x:V.videoData.L9()}if(this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&qm(this.videoData)){var u;return((u=this.videoData.J)==null?void 0:u.Bv)||0}t=this.videoData?this.videoData.L9()+this.timestampOffset:this.timestampOffset;return V1(this.videoData)&&this.videoData.J&&(x=Number((V=this.videoData.progressBarStartPosition)==null?void 0:V.utcTimeMillis)/1E3,V= this.getCurrentTime(),V=this.eH(V)-V,!isNaN(x)&&!isNaN(V))?Math.max(t,x-V):t}; g.q.W1=function(){this.G||this.seekTo(this.W,{xK:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.q.r5=function(){return this.wk&&!isFinite(this.S)}; g.q.NP=function(){luz(this,null);this.cX.dispose();g.c.prototype.NP.call(this)}; g.q.nI=function(){var V={};this.iD&&Object.assign(V,this.iD.nI());this.mediaElement&&Object.assign(V,this.mediaElement.nI());return V}; g.q.oS=function(V){this.timestampOffset=V}; g.q.getStreamTimeOffset=function(){return k8(this.videoData)?0:this.videoData.J?this.videoData.J.getStreamTimeOffset():0}; g.q.SB=function(){return this.timestampOffset}; g.q.eH=function(V){return this.videoData&&this.videoData.J?this.videoData.J.eH(V-this.timestampOffset):NaN}; g.q.bZ=function(){if(!this.mediaElement)return 0;if(zD(this.videoData)){var V=this.mediaElement,t=V.oN();V=(sG(t)>0&&V.getDuration()?t.end(t.length-1):0)+this.timestampOffset-this.L9();t=this.uh()-this.L9();return Math.max(0,Math.min(1,V/t))}return this.mediaElement.bZ()}; g.q.xj=function(V){this.B&&(this.B.J=V)}; g.q.Cq=function(V,t){this.S8.J6("requestUtcSeek",{time:V});qm(this.videoData)&&this.T("html5_sabr_enable_utc_seek_requests")&&(this.yC=V);var x;(x=this.iD)==null||x.Cq(V);t&&(this.zU=t)}; g.q.F9=function(V){qm(this.videoData)&&this.T("html5_sabr_enable_utc_seek_requests")&&(this.yC=void 0);if(this.zU)this.S8.J6("utcSeekingFallback",{source:"streamTime",timeSeconds:this.zU}),this.S8.seekTo(this.zU,{xK:"utcSeekingFallback_streamTime"}),this.zU=0;else{var t=this.getCurrentTime();isNaN(t)||(V=this.eH(t)-V,t-=V,this.S8.J6("utcSeekingFallback",{source:"estimate",timeSeconds:t}),this.S8.seekTo(t,{xK:"utcSeekingFallback_estimate"}))}}; g.q.zV=function(){this.zU=0}; g.q.T=function(V){return this.Rj&&this.Rj.T(V)};g.A(Ou,g.c);Ou.prototype.start=function(){this.S.start()}; Ou.prototype.stop=function(){this.S.stop()}; Ou.prototype.clear=function(){for(var V=g.G(this.J.values()),t=V.next();!t.done;t=V.next())t.value.clear()}; Ou.prototype.sample=function(){for(var V=g.G(this.N),t=V.next();!t.done;t=V.next()){var x=g.G(t.value);t=x.next().value;x=x.next().value;this.J.has(t)||this.J.set(t,new ZM0(lAr.has(t)));this.J.get(t).update(x())}this.S.start()}; var lAr=new Set(["networkactivity"]);ZM0.prototype.update=function(V){this.J?(this.buffer.add(V-this.Vx||0),this.Vx=V):this.buffer.add(V)}; ZM0.prototype.clear=function(){this.buffer.clear();this.Vx=0};Aw.prototype.iC=function(){return this.started}; Aw.prototype.start=function(){this.started=!0}; Aw.prototype.reset=function(){this.finished=this.started=!1};var ftw=!1;g.A(g.vJ,g.Np);g.q=g.vJ.prototype;g.q.NP=function(){this.logger.debug("dispose");g.XV(this.RT);OVL(this.e3);this.visibility.unsubscribe("visibilitystatechange",this.e3);It1(this);ML(this);g.w9.zl(this.Mh);this.AY();this.RN=null;g.Rc(this.videoData);g.Rc(this.hh);g.Rc(this.ON);g.Rc(this.qH);g.fr(this.Gcj);this.Zq=null;g.Np.prototype.NP.call(this)}; g.q.LO=function(V,t,x,u,Z){if(this.Rj.T("html5_log_ad_playback_docid")){var P=this.Zz();if(P.qoe){P=P.qoe;var K=this.Rj.Ij||"yt";g.QD(P,g.z2(P.provider),"ad_playback",[V,t,x,Z,K])}}else this.Zz().LO(V,t,x);this.T("html5_log_media_perf_info")&&this.J6("adloudness",{ld:u.toFixed(3),cpn:V})}; g.q.gA=function(){var V;return(V=this.iD)==null?void 0:V.gA()}; g.q.nM=function(){var V;return(V=this.iD)==null?void 0:V.nM()}; g.q.Kf=function(){var V;return(V=this.iD)==null?void 0:V.Kf()}; g.q.La=function(){var V;return(V=this.iD)==null?void 0:V.La()}; g.q.eZ=function(){return this.videoData.eZ()}; g.q.M$=function(){return this.T("html5_not_reset_media_source")&&!this.eZ()&&!this.videoData.isLivePlayback&&g.ya(this.videoData)&&!this.Rj.supportsGaplessShorts()}; g.q.x6=function(){if(this.videoData.C){var V=this.yP.rk();this.videoData.vO=this.videoData.vO||(V==null?void 0:V.gA());this.videoData.BO=this.videoData.BO||(V==null?void 0:V.nM())}if(D6L(this.videoData)||!w3(this.videoData))V=this.videoData.errorDetail,this.KG(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),V,V,this.videoData.L7||void 0);this.T("html5_generate_content_po_token")&&this.FH();this.T("html5_enable_d6de4")&&this.Wd();if(this.T("html5_ssap_cleanup_player_switch_ad_player")|| this.T("html5_ssap_cleanup_ad_player_on_new_data"))if(V=this.yP.M6())this.D$=V.clientPlaybackNonce}; g.q.q2=function(){return this.Dy}; g.q.pN=function(){!this.CT||this.CT.uD();this.CT=new g.dg(new eD(this.videoData,this.Rj,this));this.Dy=new JN(this.Rj,this,this.CT)}; g.q.getVideoData=function(){return this.videoData}; g.q.K=function(){return this.Rj}; g.q.u0=function(V){return this.D7.u0(this.RN,V===void 0?!1:V)}; g.q.Zz=function(V){if(V)a:{for(var t=this.Dy,x=g.G(t.J.values()),u=x.next();!u.done;u=x.next())if(u=u.value,u.getVideoData().videoId===V){V=u;break a}V=t.S}else V=this.Dy.Zz();return V}; g.q.Xl=function(){return this.visibility}; g.q.x4=function(){return this.mediaElement&&this.mediaElement.VA()?this.mediaElement.m0():null}; g.q.Bw=function(){return this.mediaElement}; g.q.W3=function(){if(this.T("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.K().B&&this.K().houseBrandUserStatus&&this.J6("hbut",{status:this.K().houseBrandUserStatus});if(this.videoData.s1())return!0;this.KG("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.q.lC=function(V){(V=V===void 0?!1:V)||g.d8(this.videoData)||Cp(this.Zz());this.Jj=V;!this.W3()||this.uA.iC()?g.ap(this.Rj)&&this.videoData.isLivePlayback&&this.uA.iC()&&!this.uA.finished&&!this.Jj&&this.YM():(this.uA.start(),V=this.Zz(),g.z2(V.provider),V.qoe&&phl(V.qoe),this.YM())}; g.q.YM=function(){if(this.videoData.isLoaded()){var V=this.hh;g.S7(V.Yw.experiments,"html5_player_min_build_cl")>0&&g.S7(V.Yw.experiments,"html5_player_min_build_cl")>719997054&&FU0(V,"oldplayer");Ms9(this)}else this.videoData.qf||this.videoData.Gt?this.Jj&&g.ap(this.Rj)&&this.videoData.isLivePlayback||(this.videoData.qf?B4j(this.videoData):(V=this.Zz(),V.qoe&&(V=V.qoe,T2(V,"protected"),V.provider.videoData.G?V.HE():V.provider.videoData.subscribe("dataloaded",V.HE,V)),FbK(this.videoData))):!this.videoData.loading&& this.Eq&&vKK(this)}; g.q.z6=function(V){this.K9=V;this.iD&&N39(this.iD,new g.O2(V))}; g.q.Zv=function(V){this.e8=V;this.iD&&this.iD.Zv(V)}; g.q.yM=V0(15);g.q.isFullscreen=function(){return this.visibility.isFullscreen()}; g.q.isBackground=function(){return this.visibility.isBackground()}; g.q.iF=function(){var V=this;this.logger.debug("Updating for format change");LM(this).then(function(){return ID(V)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.q.pF=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.lC();this.W3()&&!g.J(this.playerState,128)&&(this.vY.iC()||(this.vY.start(),this.videoData.RO?this.YK(bg(this.playerState,4)):this.YK(bg(bg(this.playerState,8),1))),L1K(this))}; g.q.Ep=function(){return this.uA.finished}; g.q.sendAbandonmentPing=function(){g.J(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.sj(!0),It1(this),g.w9.zl(this.Mh))}; g.q.zD=function(V,t){V=V===void 0?!0:V;(t===void 0||t)&&this.mediaElement&&this.mediaElement.pause();this.YK(V?new g.RM(14):new g.RM)}; g.q.t8=function(){Pjj(this.Zz())}; g.q.KG=function(V,t,x,u,Z,P){this.logger.debug(function(){return"set player error: ec="+V+", detail="+Z}); var K,R;g.BO(uAr,x)?K=x:x?R=x:K="GENERIC_WITHOUT_LINK";u=(u||"")+(";a6s."+pS());if(V==="auth"||V==="drm.auth"||V==="heartbeat.stop")x&&(u+=";r."+x.replaceAll(" ","_")),P&&(u+="sr."+P.replaceAll(" ","_"));t={errorCode:V,errorDetail:Z,errorMessage:R||g.VN[K]||"",JH:K,L7:P||"",cz:u,sb:t,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=V;FJ(this,"dataloaderror");this.YK($J(this.playerState,128,t));g.w9.zl(this.Mh);ML(this);this.oM()}; g.q.cG=function(V){this.Cu=this.Cu.filter(function(t){return V!==t}); this.logger.debug(function(){return"set preroll ready for "+V}); g.d8(this.videoData)&&!this.Ah()&&this.Uh.FJ("pl_pr");this.vY.iC()&&L1K(this)}; g.q.Ah=function(){var V;(V=!!this.Cu.length)||(V=this.X$.J.array[0],V=!!V&&V.start<=-0x8000000000000);return V}; g.q.hq=function(){return this.Bk.hq()}; g.q.isPlaying=function(){return this.playerState.isPlaying()}; g.q.nH=function(){return this.playerState.nH()&&this.videoData.RO}; g.q.getPlayerState=function(){return this.playerState}; g.q.PZ=function(V){var t;(t=this.iD)==null||t.PZ(V)}; g.q.Va=function(V){var t;(t=this.iD)==null||t.Va(V)}; g.q.getPlayerType=function(){return this.playerType}; g.q.getPreferredQuality=function(){if(this.RN){var V=this.RN;V=V.videoData.Yr.compose(V.videoData.Hz);V=f1(V)}else V="auto";return V}; g.q.rS=V0(20);g.q.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.q.setMediaElement=function(V){this.logger.debug("set media element");if(this.mediaElement&&V.m0()===this.mediaElement.m0()&&(V.isView()||this.mediaElement.isView())){if(V.isView()||!this.mediaElement.isView())g.oV(this.h3),this.mediaElement=V,this.mediaElement.S8=this,ltK(this),this.Bk.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.AY();if(!this.playerState.isError()){var t=Ec(this.playerState,512);g.J(t,8)&&!g.J(t,2)&&(t=bg(t,1));V.isView()&&(t=Ec(t,64));this.YK(t)}this.mediaElement= V;this.mediaElement.S8=this;!g.ap(this.Rj)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);ltK(this);this.Bk.setMediaElement(this.mediaElement);this.T("html5_prewarm_media_source")&&!this.hh.wO()&&Ip9(this.mediaElement)}}; g.q.AY=function(V,t,x){V=V===void 0?!1:V;t=t===void 0?!1:t;x=x===void 0?!1:x;this.logger.debug("remove media element");if(this.mediaElement){var u=this.getCurrentTime();u>0&&(this.Bk.W=u);this.Bk.setMediaElement(null);!V&&this.M$()?W1T(this):this.bA(x);this.iD&&(Kp(this.iD),BJ(this,t));this.Yj.stop();if(this.mediaElement&&(!this.vY.iC()||this.playerState.isError()||g.J(this.playerState,2)||this.YK(bg(this.playerState,512)),this.mediaElement)){g.oV(this.h3);if(V||!this.mediaElement.isView())this.Uh.g8("mesv_s"), this.mediaElement.stopVideo(),m1(this);this.mediaElement=this.mediaElement.S8=null}}}; g.q.playVideo=function(V,t){V=V===void 0?!1:V;t=t===void 0?!1:t;var x=this,u,Z,P,K,R,f;return g.Q(function(b){if(b.J==1){x.logger.debug("start play video");var E=window.google_image_requests;E&&E.length>10&&(window.google_image_requests=E.slice(-10));if(g.J(x.playerState,128))return b.return();if(x.hh.AF())return x.publish("signatureexpired"),b.return();x.mediaElement&&Cp(x.Zz());x.pF();(g.J(x.playerState,64)||V)&&x.YK(bg(x.playerState,8));return x.vY.finished&&x.mediaElement?x.RN||!x.rQ?b.FX(2): g.m(b,x.rQ,3):b.return()}if(b.J!=2&&g.J(x.playerState,128))return b.return();if(!x.videoData.N)return x.videoData.isLivePlayback&&!g.Z1(x.Rj.G,!0)?(u="html5.unsupportedlive",Z=2):(u=x.videoData.eZ()?"fmt.unplayable":"fmt.noneavailable",Z=1),g.lf(Error("selectableFormats")),x.KG(u,Z,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),b.return();if(x.F$()&&x.videoData.N.J)return x.logger.debug("rebuild playbackData for airplay"),b.return(LM(x));if(bV(x))E=x.Bk,Ej(E.videoData)?!E.isAtLiveHead(E.getCurrentTime())&& E.hq()&&E.S8.seekTo(Infinity,{xK:"seektimeline_peggedToLive",seekSource:34}):g.d8(E.videoData)&&E.getCurrentTime()K;K=t.T("html5_dont_save_under_1080")&&K<1080;if(!Z||!P&&!K){var R;Z=YE0(t,(R=u.J)==null?void 0:R.videoInfos);R=t.S8.getPlaybackRate();R>1&&Z&&(R=Scl(t.Rj.G,u.J.videoInfos,R),V.J!==0&&R=480;if(t.T("html5_exponential_memory_for_sticky")){f=t.Rj.AZ;b=1;var E=E===void 0?!1:E;oJj(f,"sticky-lifetime");f.values["sticky-lifetime"]&&f.M4["sticky-lifetime"]||(f.values["sticky-lifetime"]=0,f.M4["sticky-lifetime"]=0);E&&Fy(f,"sticky-lifetime")>.0625&&(b=f.M4["sticky-lifetime"]*2);f.values["sticky-lifetime"]+=1* Math.pow(2,f.J/b);f.M4["sticky-lifetime"]=b;f.W.start()}if(t.T("html5_perf_cap_override_sticky")){E=t.N;f=t.T("html5_perserve_av1_perf_cap");f=f===void 0?!1:f;if(f===void 0?0:f){b=yJ();t=g.G(Object.keys(b));for(V=t.next();!V.done;V=t.next())V=V.value,V.indexOf("1")!==0&&delete b[V];g.je("yt-player-performance-cap",b,2592E3)}else g.H4("yt-player-performance-cap");GJ1(f);if(f){f=g.G(Bs.keys());for(b=f.next();!b.done;b=f.next())b=b.value,b.startsWith("1")||Bs.delete(b);f=g.G(Mn.values());for(b=f.next();!b.done;b= f.next())b=b.value,b.startsWith("1")||Mn.delete(b);f=g.G(E.keys());for(b=f.next();!b.done;b=f.next())b=b.value,b.startsWith("1")||E.delete(b)}else Bs.clear(),Mn.clear(),E.clear()}}}this.iD&&(E=this.iD,x=x||"",E.policy.J?DG(E.S.J,x):DG(E.J.G,x));this.lA()}; g.q.getUserPlaybackQualityPreference=function(){return this.videoData.N&&!this.videoData.N.J?f1(this.videoData.Yr):RY[n7()]}; g.q.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.q.setUserAudio51Preference=function(V,t){this.getUserAudio51Preference()!==V&&(this.J6("toggle51",{pref:V}),g.je("yt-player-audio51",V,t?31536E3:2592E3),this.iF())}; g.q.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.q.setProximaLatencyPreference=function(V){var t=this.getProximaLatencyPreference();this.J6("proxima",{pref:V});g.je("yt-player-proxima-pref",V,31536E3);t!==V&&(V=this.Bk,V.HX=!0,V.S8.seekTo(Infinity,{xK:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.q.getProximaLatencyPreference=function(){var V;return(V=c8())!=null?V:0}; g.q.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.q.FH=function(){this.videoData.videoId?this.yP.FH(this.videoData):this.J6("povid",{})}; g.q.Wd=function(){this.videoData.videoId?this.yP.Wd(this.videoData):this.J6("piavid",{})}; g.q.lA=function(){if(!this.uD()&&!g.J(this.playerState,128)&&this.videoData.N){if(this.videoData.N.J)G7(this);else{var V=z7(this),t=this.videoData;a:{var x=this.videoData.q6;if(V.J){for(var u=g.G(x),Z=u.next();!Z.done;Z=u.next()){Z=Z.value;var P=Z.getInfo(),K=g.U3[P.video.quality];if((!V.N||P.video.quality!=="auto")&&K<=V.J){x=Z;break a}}x=x[x.length-1]}else x=x[0]}t.yC=x;mLC(this,V.reason,DLK(this,this.videoData.yC))}if(this.T("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.Bk.L= !1,this.playVideo()}}; g.q.wC=function(V,t){if(this.uD()||g.J(this.playerState,128))return!1;var x,u=!((x=this.videoData.N)==null||!x.J);x=u&&t?this.getCurrentTime()-this.SB():NaN;if(this.Rj.experiments.MP("html5_record_audio_format_intent")){var Z=this.Zz();if(Z.qoe){Z=Z.qoe;var P=[V.H$.id,isNaN(x)?"m":"t"];g.QD(Z,g.z2(Z.provider),"afi",P)}}if(u)return t&&(u=Unq(this.Bk),this.J6("aswh",{id:V.id,xtags:V.xtags,bh:u.toFixed(3)})),this.iD.setAudioTrack(V,x,t),!0;if(QDh(this)){a:{t=this.mediaElement.audioTracks();for(u=0;u< t.length;++u)if(x=t[u],x.label===V.H$.getName()){if(x.enabled){t=!1;break a}t=x.enabled=!0;break a}t=void 0}t&&this.J6("hlsaudio",{id:V.id})}else{a:if(t=this.videoData,t.W&&!ZH(t.W)||V===t.Lu||!t.q6||t.q6.length<=0)t=!1;else{u=g.G(t.q6);for(x=u.next();!x.done;x=u.next()){x=x.value;if(!(x instanceof $X)){t=!1;break a}Z=V.H$.getId();x.S&&(f9T(x.S,Z),x.zc=null)}t.Lu=V;t=!0}t&&ID(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.J6("hlsaudio",{id:V.id}))}return!0}; g.q.getAvailableAudioTracks=function(){return g.d8(this.videoData)&&this.e8?$_8(this.e8).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; g.q.getAudioTrack=function(){if(QDh(this)){var V=rw9(this);if(V)return V}return this.videoData.getAudioTrack()}; g.q.Tj=function(){if(this.videoData.T("html5_trigger_loader_when_idle_network")&&!this.videoData.uq()&&qm(this.videoData)){var V;(V=this.iD)!=null&&V.LR()}}; g.q.He=function(){if(ZD(this.videoData)&&this.videoData.T("html5_gapless_append_early")){var V;(V=this.iD)!=null&&V.LR()}}; g.q.P3=function(V){V=V===void 0?!1:V;if(this.iD){var t=this.iD,x=t.P3;var u=this.videoData;u=u.T("html5_ssdai_use_post_for_media")&&u.enableServerStitchedDai?!1:k8(u)&&u.Xt&&!u.isAd();x.call(t,u,V)}}; g.q.bA=function(V){V=V===void 0?!1:V;this.VC&&(this.logger.debug("remove media source"),Gdw(this.VC),this.P3(V),this.VC.dispose(),this.VC=null)}; g.q.tK=function(){return this.VC}; g.q.AP=function(V,t,x,u){function Z(K){try{ywh(P,K,t,x)}catch(R){g.lf(R),P.handleError(new Qr("fmt.unplayable",{msi:"1",ename:R&&typeof R==="object"&&"name"in R?String(R.name):void 0},1))}} var P=this;t=t===void 0?!1:t;x=x===void 0?!1:x;nK1(this,u===void 0?!1:u);this.VC=V;this.M$()&&Vl(this.VC)==="open"?Z(this.VC):sTK(this.VC,Z)}; g.q.Lq=function(V){this.logger.debug("onNeedKeyInfo");this.Ui.set(V.initData,V);this.Hw&&(this.Hw.Lq(V),this.T("html5_eme_loader_sync")||this.Ui.remove(V.initData))}; g.q.p4=function(V){this.videoData.f8=g.Pg("auto",V,!1,"u");G7(this)}; g.q.xj=function(V){var t=V.reason,x=V.J.info,u=V.token,Z=V.videoId,P=this.Zz(Z),K=g.d8(this.videoData)?P.getVideoData():this.videoData;if(x!==K.W){var R=!K.W;K.W=x;t!=="m"&&t!=="t"&&(t=R?"i":"a");var f=t==="m"||t==="t";this.Rj.experiments.MP("html5_refactor_sabr_audio_format_selection_logging")?this.gx=new Xfh(K,x,t,"",u,Z):P.e7(new Xfh(K,x,t,"",u));this.publish("internalaudioformatchange",K,!R&&f)}this.Bk.xj(V.J.index)}; g.q.VJ=function(V){this.publish("localmediachange",V)}; g.q.fd=function(V){V=V===void 0?{}:V;var t;(t=this.iD)==null||t.fd(this.Rj,KN(this.videoData),V)}; g.q.AF=function(){return this.hh.AF()}; g.q.v4=function(V){this.p9(new Qr("staleconfig",{reason:V}))}; g.q.handleError=function(V){this.hh.handleError(V)}; g.q.wO=function(){return this.hh.wO()}; g.q.F9=function(V){this.Bk.F9(V)}; g.q.OO=function(V,t,x){V=V===void 0?!1:V;t=t===void 0?!1:t;x=x===void 0?!1:x;var u=this,Z,P,K;return g.Q(function(R){if(R.J==1){u.iD&&u.iD.sS();u.iD&&u.iD.uD()&&ML(u);if(u.T("html5_enable_vp9_fairplay")&&u.eZ()&&(Z=u.videoData.J)!=null)for(var f in Z.J)Z.J.hasOwnProperty(f)&&(Z.J[f].J=null,Z.J[f].N=!1);u.YK(bg(u.playerState,2048));u.T("html5_ssap_keep_media_on_finish_segment")&&g.d8(u.videoData)?u.publish("newelementrequired",x):u.publish("newelementrequired");return V?g.m(R,LM(u),2):R.FX(2)}u.videoData.uq()&& ((P=u.iD)==null?0:P.zU)&&!bV(u)&&((K=u.isAtLiveHead())&&Ej(u.videoData)?u.seekTo(Infinity,{xK:"videoPlayer_getNewElement"}):u.videoData.Gk&&u.iD&&(f=u.iD,f.bD.uq&&(f.bD.Gk||f.bD.W||f.bD.isPremiere?(f.seek(0,{xK:"loader_resetSqless"}),f.videoTrack.L=!0,f.audioTrack.L=!0,f.videoTrack.G=!0,f.audioTrack.G=!0):gV(f.bD)&&xi(f))));t&&u.seekTo(0,{seekSource:105});g.J(u.playerState,8)&&(u.T("html5_ssap_keep_media_on_finish_segment")&&g.d8(u.videoData)?u.playVideo(!1,x):u.playVideo());g.pl(R)})}; g.q.gU=function(V){this.J6("hgte",{ne:+V});this.videoData.C=!1;V&&this.OO();this.iD&&yP0(this.iD)}; g.q.vy=function(V){this.J6("newelem",{r:V});this.OO()}; g.q.pauseVideo=function(V){V=V===void 0?!1:V;if((g.J(this.playerState,64)||g.J(this.playerState,2))&&!V)if(g.J(this.playerState,8))this.YK(kJ(this.playerState,4,8));else if(this.nH())ID(this);else return;g.J(this.playerState,128)||(V?this.YK(bg(this.playerState,256)):this.YK(kJ(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.XL(this.videoData)&&this.iD&&BJ(this,!1)}; g.q.stopVideo=function(){this.pauseVideo();this.iD&&(BJ(this,!1),this.iD.rg())}; g.q.oM=function(V,t){V=V===void 0?!1:V;t=t===void 0?!1:t;if(this.M$()&&t){var x;(x=this.mediaElement)==null||x.oM()}else{var u;(u=this.mediaElement)==null||u.stopVideo()}m1(this);ML(this);g.J(this.playerState,128)||(V?this.YK(Ec(Ec(bg(this.playerState,4),8),16)):this.YK($J(this.playerState)));this.videoData.videoId&&this.Rj.Es.remove(this.videoData.videoId)}; g.q.seekTo=function(V,t){t=t===void 0?{}:t;this.logger.debug(function(){return"SeekTo "+V+", "+JSON.stringify(t)}); g.J(this.playerState,2)&&ID(this);t.F6X&&this.YK(bg(this.playerState,2048));t.seekSource!==58&&t.seekSource!==60||!this.T("html5_update_vss_during_gapless_seeking")||uSl(this.Zz(),t.seekSource);this.Bk.seekTo(V,t);this.X$.sync()}; g.q.HZ=function(V){this.Uh.W.g$();g.J(this.playerState,32)||(this.YK(bg(this.playerState,32,V==null?void 0:V.seekSource)),g.J(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking",this));this.AJ()}; g.q.Dm=function(V){V=V==null?void 0:V.seekSource;g.J(this.playerState,32)?(this.YK(kJ(this.playerState,16,32,V)),this.publish("endseeking",this)):g.J(this.playerState,2)||this.YK(bg(this.playerState,16,V));this.Uh.W.wq(this.videoData,this.playerState.isPaused())}; g.q.y5=function(V){this.Dm(V)}; g.q.sP=function(){this.publish("SEEK_COMPLETE")}; g.q.qz=function(){this.publish("onAbnormalityDetected")}; g.q.K2=function(V){var t=this.yP,x=this.videoData.clientPlaybackNonce,u=this.playerType;if(V.scope===4){var Z=V.type;if(Z){var P=t.c$(),K=P.getVideoData().clientPlaybackNonce;u===1&&(K=x);(t=TcT(t,K))?(x=t.getVideoData())&&(V.writePolicy===2&&x.sabrContextUpdates.has(Z)||x.sabrContextUpdates.set(Z,V)):P.J6("scuset",{ncpf:"1",ccpn:K,crcpn:x})}else g.lf(Error("b/380308491: contextUpdateType is undefined"))}}; g.q.G2=function(){if(this.yP.M6().vn&&this.playerType===2)return this.yP.G2("")}; g.q.getCurrentTime=function(){return this.Bk.getCurrentTime()}; g.q.VI=function(){return this.Bk.VI()}; g.q.o_=function(){return this.Bk.o_()}; g.q.Tq=function(V){return this.e8&&(V=V||this.e8.Bp())?RX(this.e8,V):this.o_()}; g.q.GH=function(){return this.Bk.GH()}; g.q.getPlaylistSequenceForTime=function(V){return this.videoData.getPlaylistSequenceForTime(V-this.SB())}; g.q.y$=function(){var V=NaN;this.mediaElement&&(V=this.mediaElement.y$());return V>=0?V:this.getCurrentTime()}; g.q.eH=function(){var V;return((V=this.videoData.J)==null?0:V.eH)?this.videoData.J.eH(this.getCurrentTime()-this.SB()):this.mediaElement&&(V=this.mediaElement.RQ())&&(V=V.getTime(),!isNaN(V))?V/1E3+this.getCurrentTime():NaN}; g.q.getDuration=function(V){return g.d8(this.videoData)&&this.e8?V?fRC(this.e8,V):Pt(this.e8):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.SB():this.uh()?this.uh():0}; g.q.c7=function(){var V=new $nK;if(this.iD){var t=this.Rj.schedule,x=this.Rj.d6();x=x===void 0?!1:x;V.O7=t.zU;V.R9=t.dk;V.bandwidthEstimate=vK(t);if(x){x=(t.C.HG()*1E3).toFixed();var u=(t.Us.HG()*1E3).toFixed(),Z=SW(t).toFixed(2),P=((t.L.HG()||0)*1E9).toFixed(2),K=t.N.HG().toFixed(0),R=t.BX.HG().toFixed(0),f=t.X.percentile(.5).toFixed(2),b=t.X.percentile(.92).toFixed(2),E=t.X.percentile(.96).toFixed(2),k=t.X.percentile(.98).toFixed(2);t.J?t.J.reset():t.J=new bi;t.J.add(t.cX);t.J.add(t.interruptions.length); for(var O=0,N=t.interruptions.length-1;N>=0;N--){var p=t.interruptions[N];t.J.add(p-O);O=p}O=0;for(N=t.W.length-1;N>=0;N--){p=t.W[N];var I=p.stamp/36E5;t.J.add(I-O);O=I;t.J.add(p.net/1E3);t.J.add(p.max)}t=t.J.jZ();V.J={ttr:x,ttm:u,d:Z,st:P,bw:K,abw:R,v50:f,v92:b,v96:E,v98:k,"int":t}}sKT(this.iD,V)}else this.mediaElement&&(V.JR=Pv(this.mediaElement));V.O7=this.O7;V.R9=this.R9;V.N=this.isAtLiveHead()&&this.isPlaying()?SuL(this):NaN;return V}; g.q.JP=function(V,t){this.R9+=V;this.O7+=t}; g.q.bZ=function(){return this.mediaElement?g.XL(this.videoData)?1:zD(this.videoData)?this.isAtLiveHead()||this.hq()?1:this.Bk.bZ():this.mediaElement.bZ():0}; g.q.fL=function(){var V=this.getCurrentTime();if(this.Hw){var t="IT/"+(this.Hw.J.getInfo()+"/"+f1(this.LH()));t+="/"+this.Hw.getInfo()}else t="";var x=this.isGapless(),u=this.gg(),Z=this.SD(),P=g.XJ(this),K=this.getPlayerState(),R=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var f=0;var b="";if(this.K9){if(this.K9.GA){b="D,";break a}f=this.K9.T2();b=this.K9.Bp().substring(0,4)}else this.e8&&(f=this.e8.T2(),b=this.e8.Bp().substring(0,4));f>0?(f="AD"+f+", ",b&&(f+=b+", "),b=f):b=""}return{currentTime:V, Jg:t,isGapless:x,gg:u,qE:Z,me8:P,playerState:K,LsX:R,nQs:this.rd,bV:b,HJX:this.E2()}}; g.q.nI=function(V){var t={};if(V===void 0?0:V){Object.assign(t,this.Zz().nI());this.mediaElement&&(Object.assign(t,this.mediaElement.nI()),Object.assign(t,this.E2()));this.iD&&Object.assign(t,this.iD.nI());this.Hw&&(t.drm=JSON.stringify(this.Hw.nI()));t.state=this.playerState.state.toString(16);g.J(this.playerState,128)&&(t.debug_error=JSON.stringify(this.playerState.Mv));this.Ah()&&(t.prerolls=this.Cu.join(","));this.videoData.Fz&&(t.ismb=this.videoData.Fz);this.videoData.latencyClass!=="UNKNOWN"&& (t.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(t.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)t.is_mosaic=1;this.videoData.cotn&&(t.is_offline=1,t.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(t.playerResponseCpn=this.videoData.playerResponseCpn);this.yP.isOrchestrationLeader()&&(t.leader=1);this.videoData.isLivePlayback&&(this.videoData.J&& vs(this.videoData.J)&&(t.segduration=vs(this.videoData.J)),V=this.Bk,t.lat=V.B?FR1(V.B.W):0,t.liveutcstart=this.videoData.liveUtcStartSeconds);t.relative_loudness=this.videoData.a4.toFixed(3);if(V=g.XJ(this))t.optimal_format=V.video.qualityLabel;t.user_qual=n7();t.release_version="youtube.player.web_20250126_00_RC00";g.d8(this.videoData)&&this.e8&&(t.ssap=vh(this.e8))}t.debug_videoId=this.videoData.videoId;return t}; g.q.addCueRange=function(V){this.fp([V])}; g.q.removeCueRange=function(V){this.X$.p6([V])}; g.q.IS=function(){this.X$.sync()}; g.q.tR=function(V,t){return this.X$.tR(V,t)}; g.q.fp=function(V,t){this.X$.gL(V,t)}; g.q.JT=function(V){this.X$.p6(V)}; g.q.IK=function(V){var t=this.X$;V.length<=0||t.uD()||(V=t.J,V.array.sort(V.J))}; g.q.Fl=function(){return this.X$.Fl()||[]}; g.q.Ka=function(){return this.KL}; g.q.F$=function(){return this.visibility.F$()}; g.q.X_=function(){this.mediaElement&&this.mediaElement.X_()}; g.q.RsD=function(){FJ(this)}; g.q.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.q.D2=function(V){var t=V.target.QV();if(this.mediaElement&&this.mediaElement.QV()&&this.mediaElement.QV()===t){tCq(this,V.type);switch(V.type){case "error":var x=qu(this.mediaElement)||"",u=this.mediaElement.Nv();if(x==="capability.changed"){this.T("html5_restart_on_capability_change")?(this.J6("capchg",{msg:u}),this.OO(!0)):LM(this);return}if(this.mediaElement.hasError()&&(GbT(this.hh,x,{msg:u})||g.d8(this.videoData)&&this.e8&&(u=this.playerState.Mv,this.e8.handleError(x,u==null?void 0:u.sb))))return; if(this.isBackground()&&this.mediaElement.xE()===4){this.oM();g$(this,"unplayable");return}break;case "durationchange":x=this.mediaElement.getDuration();isFinite(x)&&(!this.VC||x>0)&&x!==1&&this.qq(x);break;case "ratechange":this.iD&&this.iD.setPlaybackRate(this.mediaElement.getPlaybackRate());AN9(this.X$);this.Zz().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":uKT(this);this.publish("onLoadedMetadata");ULC(this);x=this.eH();this.videoData.Fq&&(this.videoData.Fq=x);break; case "loadstart":ULC(this);break;case "progress":case "suspend":this.AJ();this.publish("onLoadProgress",this,this.bZ());break;case "playing":this.Uh.g8("plev");this.Ol&&!bV(this)&&(this.Ol=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{xK:"videoplayer_onPlaying"})));break;case "timeupdate":x=this.mediaElement&&!this.mediaElement.getCurrentTime();u=this.mediaElement&&this.mediaElement.IM()===0;if(x&&(!this.cK||u))return;this.cK=this.cK||!!this.mediaElement.getCurrentTime(); HMl(this);this.AJ();if(!this.mediaElement||this.mediaElement.QV()!==t)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.PD().length>0&&this.mediaElement.oN().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.iD)return;this.T("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.IM()>2||!this.mediaElement.isSeeking()&&iQ(this.mediaElement.oN(),this.mediaElement.getCurrentTime()))&& (x=this.mediaElement.nI(),x.bh=Pv(this.mediaElement).toFixed(3),this.J6("uwe",x));g.d8(this.videoData)&&this.e8&&x_9(this.e8,this.mediaElement.getCurrentTime());break;case "resize":uKT(this);this.videoData.S&&this.videoData.S.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.Hj&&g.J(this.playerState,8)&&!g.J(this.playerState,1024)&&this.getCurrentTime()===0&&g.XM){g$(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.QV()=== t){ts8(this.Bk,V,this.e8||void 0);this.publish("videoelementevent",V);t=this.playerState;u=this.Ig;var Z=this.mediaElement;x=this.videoData.clientPlaybackNonce;var P=g.d8(this.videoData)&&this.e8?Pt(this.e8):void 0;if(!g.J(t,128)){var K=t.state;Z=Z?Z:V.target;var R=Z.getCurrentTime();if(!g.J(t,64)||V.type!=="ended"&&V.type!=="pause"){P=P||Z.getDuration();P=Z.isEnded()||R>1&&Math.abs(R-P)<1.1;var f=V.type==="pause"&&Z.isEnded();R=V.type==="ended"||V.type==="waiting"||V.type==="timeupdate"&&!g.J(t, 4)&&!VZ(u,R);if(f||P&&R)Z.sU()>0&&Z.QV()&&(K=14);else switch(V.type){case "error":qu(Z)&&(K|=128);break;case "pause":g.J(t,256)?(K^=256)||(K=64):g.J(t,32)||g.J(t,2)||g.J(t,4)||(K=4,g.J(t,1)&&g.J(t,8)&&(K|=1));break;case "playing":R=K;K=(K|8)&-1093;R&4?(K|=1,fO(u,Z,!0)):VZ(u,Z.getCurrentTime())&&(K&=-2);g.J(t,1)&&fO(u,Z)&&(K|=1);break;case "seeking":K|=16;g.J(t,8)&&(K|=1);K&=-3;break;case "seeked":K&=-17;fO(u,Z,!0);break;case "waiting":g.J(t,2)||(K|=1);fO(u,Z);break;case "timeupdate":R=g.J(t,16),P= g.J(t,4),(g.J(t,8)||R)&&!P&&VZ(u,Z.getCurrentTime())&&(K=8),fO(u,Z)&&(K|=1)}}u=K;K=null;u&128&&(K=V.target,Z=qu(K),R=1,Z?(Z==="capability.changed"&&(R=2),P="GENERIC_WITHOUT_LINK",f=K.nI(),f.mediaElem="1",/AUDIO_RENDERER/.test(K.Nv())&&(P="HTML5_AUDIO_RENDERER_ERROR"),K={errorCode:Z,errorMessage:g.VN[P]||"",JH:P,cz:YY(f),sb:R,cpn:t.Mv?t.Mv.cpn:""}):K=null,K&&(K.cpn=x));t=$J(t,u,K)}!g.J(this.playerState,1)&&g.J(t,1)&&VCC(this,"evt"+V.type);this.YK(t)}}}; g.q.Vsj=function(V){V=V.J.availability==="available";V!==this.KL&&(this.KL=V,this.publish("airplayavailabilitychange"))}; g.q.PqX=function(){var V=(0,g.Tu)(),t=this.mediaElement.F$();this.J6("airplay",{ia:t});!t&&!isNaN(this.TI)&&V-this.TI<2E3||(this.TI=V,t!==this.F$()&&(V=this.visibility,V.J!==t&&(V.J=t,V.e3()),this.J6("airplay",{rbld:t}),this.iF()),this.publish("airplayactivechange"))}; g.q.KH=function(V){if(this.iD){var t=this.iD,x=t.W,u=t.getCurrentTime(),Z=Date.now()-x.X;x.X=NaN;x.J6("sdai",{adfetchdone:V,d:Z});V&&!isNaN(x.L)&&x.S!==3&&Wj(x.iD,u,x.L,x.G);x.policy.G?x.N=NaN:x.W=NaN;rG(x,4,x.S===3?"adfps":"adf");Kp(t)}}; g.q.UG=function(){g.XV(this.RT);this.Yj.stop();this.videoData.zU=!0;this.Rj.Gt=!0;this.Rj.kX=0;var V=this.hh;if(V.videoData.S){var t=V.Yw.G,x=V.videoData.S.lD;t.S.has(x)&&(t.S.delete(x),PK(t))}V.J.stop();this.Pn();g.J(this.playerState,8)&&this.YK(Ec(this.playerState,65));this.Jj=!1;xn0(this.Zz());g.RO(this.ON);this.publish("playbackstarted");(V=g.nl("yt.scheduler.instance.clearPriorityThreshold"))?V():bU(0,0)}; g.q.Pn=function(){var V=this.yP.M6(),t={},x={};!h4("pbs",this.Uh.timerName)&&WF.measure&&WF.getEntriesByName&&(WF.getEntriesByName("mark_nr")[0]?dR0("mark_nr"):dR0());V.videoId&&(t.videoId=V.videoId);V.clientPlaybackNonce&&!this.T("web_player_early_cpn")&&(t.clientPlaybackNonce=V.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(x.isPausedOnLoad=!0);x.itag=V.S?Number(V.S.itag):-1;V.r9&&(x.preloadType=String(this.cT?2:1));t.liveStreamMode=aA$[vz(V)];t.playerInfo=x;this.Uh.infoGel(t); if(this.iD){V=this.iD.timing;window&&window.performance&&window.performance.getEntriesByName&&(V.N&&(t=window.performance.getEntriesByName(V.N),t.length&&(t=t[0],V.tick("vri",t.fetchStart),V.tick("vdns",t.domainLookupEnd),V.tick("vreq",t.requestStart),V.tick("vrc",t.responseEnd))),V.S&&(t=window.performance.getEntriesByName(V.S),t.length&&(t=t[0],V.tick("ari",t.fetchStart),V.tick("adns",t.domainLookupEnd),V.tick("areq",t.requestStart),V.tick("arc",t.responseEnd))));V=V.ticks;for(var u in V)V.hasOwnProperty(u)&& this.Uh.tick(u,V[u])}}; g.q.Ej=function(V,t,x){V=(V+(this.lf===3?.3:0))/t;t=Math.floor(V*4);t>this.lf&&(this.J6("vpq",{q:t,cpn:x||this.videoData.clientPlaybackNonce,ratio:V.toFixed(3)}),this.lf=t)}; g.q.KU=function(){this.lf=-1}; g.q.AJ=function(V){var t=this;V=V===void 0?!1:V;if(this.mediaElement&&this.videoData){Dn8(this.Bk,this.isPlaying());var x=this.getCurrentTime();!this.iD||g.J(this.playerState,4)&&g.XL(this.videoData)||g.J(this.playerState,32)&&qm(this.videoData)||pzq(this.iD,x);this.T("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.Ej(x,this.videoData.lengthSeconds);x>5&&(this.Bk.W=x);var u=g.$e();u?g.w9.zl(this.Mh):g.g5(this.Mh);var Z=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!Z||V1(this.videoData))&& !g.J(this.playerState,128)){var P=function(){if(t.mediaElement&&!g.J(t.playerState,128)){t.Rj.d6()&&tCq(t,"pfx");var K=t.getCurrentTime();t.T("html5_buffer_underrun_transition_fix")&&(K-=t.SB());var R=Pv(t.mediaElement),f=g.J(t.playerState,8),b=VZ(t.Ig,K),E=X0l(t.Ig,K,(0,g.Tu)(),R);f&&b?t.YK(Ec(t.playerState,1)):f&&E?(f=t.getDuration(),b=Ej(t.videoData),f&&Math.abs(f-K)<1.1?(t.J6("setended",{ct:K,bh:R,dur:f,live:b}),t.mediaElement.gI()?(t.logger.debug("seek to 0 because of looping"),t.seekTo(0,{xK:"videoplayer_loop", seekSource:37})):t.zD()):(t.playerState.isBuffering()||VCC(t,"progress_fix"),t.YK(bg(t.playerState,1)))):(f&&!b&&!E&&K>0&&(f=(Date.now()-t.Q_)/1E3,b=t.getDuration(),K>b-1&&t.J6("misspg",{t:K.toFixed(2),d:b.toFixed(2),r:f.toFixed(2),bh:R.toFixed(2)})),t.playerState.isPaused()&&t.playerState.isBuffering()&&Pv(t.mediaElement)>5&&t.YK(Ec(t.playerState,1)));t.AJ()}}; this.mediaElement.PD().length===0?this.Mh=u?g.w9.dg(P,100):g.FV(P,100):this.Mh=u?g.w9.dg(P,500):g.FV(P,500)}this.videoData.Cv=x;this.e8&&qW(this.e8);!V&&this.isPlaying()&&eLq(this);jeL(this.D7,this.RN,this.Bw(),this.isBackground())&&G7(this);this.publish("progresssync",this,V);Z&&V1(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; g.q.aq=function(){this.KG("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.q.SD=function(){return this.Zz().SD()}; g.q.Ec=function(){return this.iD?this.iD.Ec():vK(this.Rj.schedule,!0)}; g.q.YK=function(V){if(!g.ig(this.playerState,V)){this.logger.debug(function(){return"Setting state "+V.toString()}); var t=new g.IT(V,this.playerState);this.playerState=V;xdq(this);var x=!this.IT.length;this.IT.push(t);var u=this.mediaElement&&this.mediaElement.isSeeking();u=t.oldState.state===8&&!u;g.LC(t,1)&&u&&g.J(this.playerState,8)&&!g.J(this.playerState,64)&&this.iD&&(cPK(this.iD),this.mediaElement&&Pv(this.mediaElement)>=5&&cL1(this.D7,this.RN)&&G7(this));(u=g.S7(this.Rj.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.J(V,1)&&(g.J(V,8)||g.J(V,16))?this.AU.start(u):this.AU.stop();(v0(t,8)<0|| g.LC(t,1024))&&this.Yj.stop();!g.LC(t,8)||this.videoData.zU||g.J(t.state,1024)||this.Yj.start();g.J(t.state,8)&&v0(t,16)<0&&!g.J(t.state,32)&&!g.J(t.state,2)&&this.playVideo();g.J(t.state,2)&&zD(this.videoData)&&(this.qq(this.getCurrentTime()),this.AJ(!0));g.LC(t,2)&&(this.sj(!0),this.Rj.d6()&&this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&qm(this.videoData)&&this.videoData.J&&(u={minst:""+this.videoData.J.Bv,cminst:""+(this.videoData.J.L9()+this.SB()),maxst:""+this.videoData.J.e0, hts:""+this.videoData.J.wk,cmaxst:""+(this.videoData.J.uh()+this.SB())},this.J6("sabrSeekableBoundaries",u)));g.LC(t,128)&&this.oM();this.videoData.J&&this.videoData.isLivePlayback&&!this.ek&&(v0(t,8)<0?HFw(this.videoData.J):g.LC(t,8)&&this.videoData.J.resume());HpT(this.Bk,t);Zpl(this.Zz(),t);if(x&&!this.uD())try{for(var Z=g.G(this.IT),P=Z.next();!P.done;P=Z.next()){var K=P.value;S2K(this.X$,K);this.publish("statechange",K)}}finally{this.IT.length=0}}}; g.q.xI=function(){this.Uh.tick("qoes")}; g.q.W1=function(){this.Bk.W1()}; g.q.Ab=function(V,t,x,u){a:{var Z=this.hh;u=u===void 0?"LICENSE":u;x=x.substring(0,256);var P=aa(t);V==="drm.keyerror"&&this.Hw&&this.Hw.S.keys.length>1&&Z.W<96&&(V="drm.sessionlimitexhausted",P=!1);if(P)if(Z.videoData.S&&Z.videoData.S.video.isHdr())gdl(Z,V);else{if(Z.S8.KG(V,t,u,x),pf9(Z,{detail:x}))break a}else Z.p9(V,{detail:x});V==="drm.sessionlimitexhausted"&&(Z.J6("retrydrm",{sessionLimitExhausted:1}),Z.W++,wJL(Z.S8))}}; g.q.tBk=function(){var V=this,t=g.S7(this.Rj.experiments,"html5_license_constraint_delay"),x=$D();t&&x?(t=new g.qK(function(){V.lA();FJ(V)},t),g.y(this,t),t.start()):(this.lA(),FJ(this))}; g.q.Lw=function(V){this.publish("heartbeatparams",V)}; g.q.ZQ=function(V){this.J6("keystatuses",UmL(V));var t="auto",x=!1;this.videoData.S&&(t=this.videoData.S.video.quality,x=this.videoData.S.video.isHdr());if(this.T("html5_drm_check_all_key_error_states")){var u=Dm9(t,x);u=SD(V)?etC(V,u):V.W.includes(u)}else{a:{t=Dm9(t,x);for(u in V.J)if(V.J[u].status==="output-restricted"){var Z=V.J[u].type;if(t===""||Z==="AUDIO"||t===Z){u=!0;break a}}u=!1}u=!u}if(this.T("html5_enable_vp9_fairplay")){if(x)if(V.C){var P;if((P=this.Hw)==null?0:ne(P.J))if((x=this.Hw)== null)x=0;else{t=P=void 0;Z=g.G(x.S.values());for(var K=Z.next();!K.done;K=Z.next())K=K.value,P||(P=dmq(K,"SD")),t||(t=dmq(K,"AUDIO"));x.Un({sd:P,audio:t});x=P==="output-restricted"||t==="output-restricted"}else x=!u;if(x){this.J6("drm",{dshdr:1});gdl(this.hh);return}}else{this.videoData.a6||(this.videoData.a6=!0,this.J6("drm",{dphdr:1}),this.OO(!0));return}var R;if((R=this.Hw)==null?0:ne(R.J))return}else if(R=V.C&&u,x&&!R){gdl(this.hh);return}u||etC(V,"AUDIO")&&etC(V,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), V=UmL(V),this.jw?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.T("html5_report_fatal_drm_restricted_error_killswitch")||this.KG("drm.keyerror",2,void 0,"info."+V)):(this.jw=!0,this.p9(new Qr("qoe.restart",Object.assign({},{retrydrm:1},V))),G7(this),wJL(this)))}; g.q.EKj=function(){if(!this.videoData.zU&&this.mediaElement&&!this.isBackground()){var V="0";this.mediaElement.IM()>0&&Pv(this.mediaElement)>=5&&this.videoData.N&&this.videoData.N.J&&(this.YK(bg(this.playerState,1)),VCC(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),V="1");xdq(this);var t=this.videoData.N;V={restartmsg:V,mfmt:!u1(this.videoData),mdrm:!(!(t&&t.videoInfos&&t.videoInfos.length&&t.videoInfos[0].Pw)||this.Hw),mfmtinfo:!this.videoData.S,prerolls:this.Ah()?this.Cu.join(","): "0"};if(this.Hw){t=this.Hw;if(t.S.size<=0){var x="ns;";t.X||(x+="nr;");t=x+="ql."+t.N.length}else t=UmL(t.S.values().next().value),t=YY(t);V.drmp=t}var u;Object.assign(V,((u=this.iD)==null?void 0:u.nI())||{});var Z;Object.assign(V,((Z=this.mediaElement)==null?void 0:Z.nI())||{});this.Zz().p9("qoe.start15s",YY(V));this.publish("loadsofttimeout")}}; g.q.qq=function(V){this.videoData.lengthSeconds!==V&&(this.videoData.lengthSeconds=V,FJ(this))}; g.q.sj=function(V,t){var x=this;V=V===void 0?!1:V;if(!this.uf)if(h4("att_s","player_att")||VF("att_s",void 0,"player_att"),this.T("use_rta_for_player"))(function(){var Z,P,K,R;return g.Q(function(f){switch(f.J){case 1:if(!(Z=V)){f.FX(2);break}return g.m(f,g.vrh(),3);case 3:Z=!f.S;case 2:if(Z)return f.return();g.AT(f,4);P=RdK(x.Zz());if(!P)throw Error();K={};return g.m(f,g.IKC((K.cpn=x.videoData.clientPlaybackNonce,K.encryptedVideoId=x.videoData.videoId||"",K),3E4),6);case 6:R=f.S;if(x.uf)throw Error(); if(!R.challenge)throw g.lf(Error("Not sending attestation ping; no attestation challenge string")),Error();x.uf=!0;var b=[R.challenge];R.error?b.push("r1c="+R.error):R.webResponse&&b.push("r1a="+R.webResponse);var E;((E=R.adblockReporting)==null?void 0:E.reportingStatus)!==void 0&&b.push("r6a="+R.adblockReporting.reportingStatus);var k;((k=R.adblockReporting)==null?void 0:k.broadSpectrumDetectionResult)!==void 0&&b.push("r6b="+R.adblockReporting.broadSpectrumDetectionResult);P(b.join("&"));VF("att_f", void 0,"player_att");g.GK(f,0);break;case 4:g.I9(f),VF("att_e",void 0,"player_att"),g.pl(f)}})})().then(function(){t==null||t()}); else{var u=new g.spj(this.videoData);if("c1a"in u.mQ&&!g.a_.isInitialized()){VF("att_wb",void 0,"player_att");this.Hs===2&&Math.random()<.01&&g.lf(Error("Botguard not available after 2 attempts"));if(V)return;if(this.Hs<5){g.RO(this.qH);this.Hs++;return}}(u=g.NYC(u))?(VF("att_f",void 0,"player_att"),q29(this.Zz(),u),this.uf=!0):VF("att_e",void 0,"player_att")}}; g.q.Du=function(V){V=V===void 0?!1:V;if(Ej(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.hq()||g.XL(this.videoData)))V=this.getCurrentTime();else if(g.d8(this.videoData)&&this.e8){V=this.e8;var t=this.getCurrentTime();V=(V=Koj(V,t*1E3))?(V.Ue()-V.uv())/1E3:0}else V=this.uh(V);return V}; g.q.H1=function(){return g.d8(this.videoData)?this.videoData.L9():this.L9()}; g.q.uh=function(V){return this.Bk.uh(V===void 0?!1:V)}; g.q.L9=function(){return this.Bk.L9()}; g.q.SB=function(){return this.Bk?this.Bk.SB():0}; g.q.getStreamTimeOffset=function(){return this.Bk?this.Bk.getStreamTimeOffset():0}; g.q.Jq=function(){var V=0;this.Rj.T("web_player_ss_media_time_offset")&&(V=this.getStreamTimeOffset()===0?this.SB():this.getStreamTimeOffset());return V}; g.q.setPlaybackRate=function(V){var t;this.playbackRate!==V&&YE0(this.D7,(t=this.videoData.N)==null?void 0:t.videoInfos)&&(this.playbackRate=V,G7(this));this.playbackRate=V;this.mediaElement&&this.mediaElement.setPlaybackRate(V)}; g.q.getPlaybackRate=function(){return this.playbackRate}; g.q.getPlaybackQuality=function(){var V="unknown";if(this.videoData.S&&(V=this.videoData.S.video.quality,V==="auto"&&this.mediaElement)){var t=this.x4();t&&t.videoHeight>0&&(V=Hb(t.videoWidth,t.videoHeight))}return V}; g.q.isHdr=function(){return!!(this.videoData.S&&this.videoData.S.video&&this.videoData.S.video.isHdr())}; g.q.cF=function(){this.Zz().cF()}; g.q.sendVideoStatsEngageEvent=function(V,t){var x=this.Zz();x.J?(x=lj(x.J,"engage"),x.wk=V,x.send(t)):t&&t()}; g.q.KJ=function(V){return this.Zz().KJ(V)}; g.q.isAtLiveHead=function(V,t){t=t===void 0?!1:t;return Ej(this.videoData)&&(this.RX||t)?this.Bk.isAtLiveHead(V):!1}; g.q.d2=function(){var V=this.uh(),t=this.getCurrentTime(),x;(x=!Ej(this.videoData))||(x=this.Bk,x=!(x.J&&x.J.N));return x||this.hq()||isNaN(V)||isNaN(t)?0:Math.max(0,V-t)}; g.q.Uy=function(V){(this.RX=V)||this.Yj.stop();this.videoData.J&&(V?this.videoData.J.resume():HFw(this.videoData.J));if(this.iD){var t=this.videoData.T("html5_disable_preload_for_ssdai_with_preroll")&&this.fu()&&this.videoData.isLivePlayback;V&&!t?this.iD.resume():BJ(this,!0)}g.J(this.playerState,2)||V?g.J(this.playerState,512)&&V&&this.YK(Ec(this.playerState,512)):this.YK(bg(this.playerState,512));t=this.Zz();t.qoe&&(t=t.qoe,g.QD(t,g.z2(t.provider),"stream",[V?"A":"I"]))}; g.q.Na=function(V){V={n:V.name,m:V.message};this.Zz().p9("player.exception",YY(V))}; g.q.yN=V0(25);g.q.Xu=V0(49);g.q.M0=function(V){this.Zz().M0(V)}; g.q.gV=function(V){this.Zz().gV(V)}; g.q.Sb=function(V){this.Zz().Sb(V)}; g.q.Dg=V0(30);g.q.Lv=V0(35);g.q.Ri=function(V){this.Zz().Ri(V)}; g.q.Lz=function(){this.J6("hidden",{},!0)}; g.q.E2=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.q.tF=function(){return this.iD?this.iD.tF():!0}; g.q.setLoop=function(V){this.loop=V;this.mediaElement&&!g.ap(this.Rj)&&this.mediaElement.setLoop(V);this.iD&&this.T("html5_loop_skip_set_end_of_stream")&&(V?this.iD.policy.w6=!0:yP0(this.iD))}; g.q.gI=function(){return this.mediaElement&&!g.ap(this.Rj)?this.mediaElement.gI():this.loop}; g.q.oS=function(V){this.J6("timestamp",{o:V.toString()});this.Bk.oS(V)}; g.q.NU=function(V){this.Uh.tick(V)}; g.q.FJ=function(V){return this.Uh.FJ(V)}; g.q.g8=function(V){this.Uh.g8(V)}; g.q.J6=function(V,t,x){x=x===void 0?!1:x;this.Zz().J6(V,t,x)}; g.q.sR=function(V,t,x){x=x===void 0?!1:x;this.Zz().J6(V,t,x)}; g.q.p9=function(V){this.Zz().p9(V.errorCode,YY(V.details));V=V.errorCode;if(this.videoData.isLivePlayback&&(V==="qoe.longrebuffer"||V==="qoe.slowseek")||V==="qoe.restart"){V=this.iD?AWq(this.iD.videoTrack):{};var t,x;this.J6("lasoe",Object.assign(this.iD?AWq(this.iD.audioTrack):{},(t=this.VC)==null?void 0:(x=t.J)==null?void 0:x.xz()));var u,Z;this.J6("lvsoe",Object.assign(V,(u=this.VC)==null?void 0:(Z=u.S)==null?void 0:Z.xz()))}}; g.q.Qs=function(V,t,x){this.Zz().Qs(V,t,x)}; g.q.ZL=function(V,t,x,u,Z,P,K,R){var f;if((f=this.videoData.J)==null?0:f.isLive){var b=t.playerType===2?t:V,E=V.videoData.videoId,k=t.videoData.videoId;if(E&&k){f=this.Zz();if(f.qoe){var O=f.qoe,N=V.cpn,p=t.cpn,I=b.videoData.kX,L=O.provider.videoData.clientPlaybackNonce,M=O.provider.videoData.videoId,z=p!==L&&k!==M;L=N!==L&&E!==M;O.reportStats();O.adCpn&&O.adCpn!==N||(O.adCpn=L?N:"",O.Ij=L?E:"",O.adFormat=L?I:void 0,ov(O,2,P?4:Z?2:0,p,k,u),O.reportStats(),O.adCpn=z?p:"",O.Ij=z?k:"",O.adFormat=z?I: void 0,ov(O,2,P?5:Z?3:1,N,E,x),O.reportStats())}x=V.cpn;if(f.N.has(x)){if(Z=f.N.get(x),Du(Z,!0).send(),U2(Z),x!==f.provider.videoData.clientPlaybackNonce){eVj(Z);var Y;(Y=f.J)==null||jf4(Y);f.N.delete(x)}}else f.rh=f.provider.videoData.clientPlaybackNonce,f.rh&&f.J&&(f.N.set(f.rh,f.J),Du(f.J).send(),U2(f.J));Y=t.cpn;b=b.videoData;u-=this.Jq();if(f.N.has(Y)){u=f.N.get(Y);var r=u.N&&isNaN(u.G)?Ht(u):NaN;u=DQ8(u,!1);isNaN(r)||(u.L=r);u.send()}else u=fuC(f,f.provider,b,u),f.N.set(Y,u),dQw(u,new g.IT(bg(new g.RM, 8),new g.RM)),yFw(u),(r=f.J)==null||U2(r);f.rh=Y;this.T("html5_unify_csi_server_stitched_transition_logging")?jSw(V.cpn,t.cpn,this.videoData.clientPlaybackNonce,t.videoData,K,void 0,R):(r=this.videoData.clientPlaybackNonce,f=t.videoData,V=(V.cpn===r?"video":"ad")+"_to_"+(t.cpn===r?"video":"ad"),r={},f.B&&(r.cttAuthInfo={token:f.B,videoId:f.videoId}),K&&(r.startTime=K),J4(V,r),g.C4({targetVideoId:f.videoId,targetCpn:t.cpn,isSsdai:!0},V),dq("pbs",R!=null?R:(0,g.Tu)(),V))}}}; g.q.hH=function(){var V=this.yP,t=V.Qv;V.Qv=[];return t}; g.q.qC=function(V){this.videoData.Z4=!0;this.p9(new Qr("sabr.fallback",V));this.OO(!0)}; g.q.lU=function(V,t){this.videoData.NN=!0;if(t===void 0||t)this.p9(new Qr("qoe.restart",V)),this.OO(!0);this.videoData.R_()&&this.T("html5_reload_caption_on_ssdai_fallback")&&this.yP.R$()}; g.q.El=function(V){this.J6("sdai",{aftimeout:V});this.p9(new Qr("ad.fetchtimeout",{timeout:V}))}; g.q.u6=function(V,t){this.J6("timelineerror",V);V=new Qr("dai.timelineerror",V);t?this.KG("dai.timelineerror",1,"RETRYABLE_ERROR",YY(V.details)):this.p9(V)}; g.q.al=function(){return g.z2(this.Zz().provider)}; g.q.getPlayerSize=function(){return this.nE.getPlayerSize()}; g.q.g1=function(){return this.nE.g1()}; g.q.d1=function(){return this.Uh}; g.q.rZ=function(){return this.yP.rZ()}; g.q.getVolume=function(){return this.yP.getVolume()}; g.q.F_=function(){return this.yP.F_()}; g.q.isMuted=function(){return this.yP.isMuted()}; g.q.ax=function(){return this.yP.ax()}; g.q.S2=function(){this.ek=!0}; g.q.T=function(V){return this.Rj.T(V)}; g.q.tv=function(V,t,x,u,Z){this.J6("xvt",{m:V,g:t?1:0,tt:x?1:0,np:u?1:0,c:Z})}; g.q.CU=function(){var V;(V=this.iD)==null||V.resume()}; g.q.fu=function(){return g.Cr(this.Cu,"ad")}; g.q.In=function(){var V=this.getCurrentTime(),t=V-this.SB();var x=this.mediaElement?sG(this.mediaElement.oN()):0;x=Math.floor(Math.max(x-t,0))+100;var u;if(!this.T("html5_ssdai_disable_seek_to_skip")&&((u=this.iD)==null?0:u.hP(t,this.uh())))return this.J6("sdai",{skipad:1,ct:t.toFixed(3),adj:0}),!0;var Z;return((Z=this.iD)==null?0:Z.In(t,x))?(this.J6("sdai",{skipad:1,ct:t.toFixed(3),adj:x.toFixed(3)}),qm(this.videoData)&&this.iD.seek(t+x,{seekSource:89,xK:"videoplayer_skipServerStitchedAd"}),uJs(this.Bk, V),!0):!1}; g.q.d6=function(){return this.Rj.d6()}; g.q.e$=function(){if(this.T("html5_generate_content_po_token"))return this.videoData.f_||"";this.yP.cM();return this.Rj.w1||""}; g.q.Cn=function(){if(this.videoData.videoId)return this.videoData.Vj}; g.q.Pr=function(){return this.videoData.videoId}; g.q.Xk=function(){return this.yP.ac}; g.q.Dj=function(){return this.Jj}; g.q.RF=function(){return this.yP.RF()}; g.q.Cq=function(V,t){this.Bk.Cq(V,t)}; g.q.zV=function(){this.Bk.zV()}; g.q.C4=function(V,t){var x=this.T("html5_generate_content_po_token")?this.videoData:void 0;this.yP.C4(V,t,x)}; g.q.Ii=function(V,t){var x;(x=this.iD)==null||x.Ii(V,t)}; g.q.mj=function(){var V=this.tK();return!!V&&V.mj()}; g.q.pG=function(){return this.e8}; g.q.cC=function(V,t){this.Zz().cC(V,t)}; g.q.ZE=function(){return this.Zz().ZE()}; g.q.dT=function(){return this.videoData.E_}; g.q.gg=function(){return this.yP.gg()}; g.q.I8=function(){return this.yP.I8(this)}; g.q.rq=function(){this.z7=!0}; g.q.H6=function(V){var t;(t=this.iD)==null||t.H6(V)};g.A(PaL,Cv);g.A(K5j,Cv);g.q=K5j.prototype;g.q.seekToChapterWithAnimation=function(V){var t=this;if(g.O5(this.api)&&!(V<0)){var x=this.api.getVideoData(),u=x.ke;if(u&&V=0)return;t=~t;g.ZT(this.items,t,0,V);qN(this.menuItems.element,V.element,t)}V.subscribe("size-change",this.bj,this);this.menuItems.publish("size-change")}; g.q.bT=function(V){V.unsubscribe("size-change",this.bj,this);this.uD()||(g.h_(this.items,V),this.menuItems.element.removeChild(V.element),this.menuItems.publish("size-change"))}; g.q.bj=function(){this.menuItems.publish("size-change")}; g.q.focus=function(){for(var V=0,t=0;t1&&g.d$(this)}; g.q.U3=function(){aBh(this);this.iq&&(YfT(this),g.QC(this.element,this.size))}; g.q.JQ=function(){var V=this.J.pop();Q7C(this,V,this.J[this.J.length-1],!0)}; g.q.yy=function(V){if(!V.defaultPrevented)switch(V.keyCode){case 27:this.Gc();V.preventDefault();break;case 37:this.J.length>1&&this.JQ();V.preventDefault();break;case 39:V.preventDefault()}}; g.q.focus=function(){this.J.length&&this.J[this.J.length-1].focus()}; g.q.NP=function(){g.cL.prototype.NP.call(this);this.B&&this.B.dispose();this.L&&this.L.dispose()};g.A(CM,g.Dt);CM.prototype.open=function(V,t){this.initialize(V.items)&&this.aC(t,!!t)}; CM.prototype.initialize=function(V){g.Uu(this.wb);if(V===void 0||V.length===0)return!1;var t=V.length;V=g.G(V);for(var x=V.next();!x.done;x=V.next())this.Pk(x.value,t--);return!0}; CM.prototype.Pk=function(V,t){V.menuNavigationItemRenderer?W5z(this,V.menuNavigationItemRenderer,t):V.menuServiceItemRenderer&&oal(this,V.menuServiceItemRenderer,t)};g.A(Jw,js);g.q=Jw.prototype;g.q.uE=function(V){V.target!==this.dismissButton.element&&V.target!==this.overflowButton.element&&(this.Uz(),this.onClickCommand&&this.U.Os("innertubeCommand",this.onClickCommand))}; g.q.BJ=function(){this.enabled=!1;this.X.hide()}; g.q.hT=function(){return!!this.J&&this.enabled}; g.q.onVideoDataChange=function(V,t){this.jl(t);if(this.J){this.po();a:if(!this.isCounterfactual){var x,u,Z;this.banner.update({title:(x=this.J)==null?void 0:x.title,subtitle:(u=this.J)==null?void 0:u.subtitle,metadata:(Z=this.J)==null?void 0:Z.metadataText});var P;this.onClickCommand=g.l((P=this.J)==null?void 0:P.onTap,UH);var K;if(V=g.l((K=this.J)==null?void 0:K.onOverflow,UH))this.L=g.l(V,lEY);var R;if((R=this.J)==null?0:R.thumbnailImage){var f,b;K=((f=this.J)==null?void 0:(b=f.thumbnailImage)== null?void 0:b.sources)||[];if(K.length===0)break a;this.thumbnailImage.update({url:K[0].url})}else{var E;if((E=this.J)==null?0:E.thumbnailIconName){var k;this.thumbnailIcon.update({icon:(k=this.J)==null?void 0:k.thumbnailIconName})}}var O;this.shouldShowOverflowButton=!((O=this.J)==null||!O.shouldShowOverflowButton);var N;this.shouldHideDismissButton=!((N=this.J)==null||!N.shouldHideDismissButton)}var p;this.banner.element.setAttribute("aria-label",((p=this.J)==null?void 0:p.a11yLabel)||"");var I; this.dk=(I=this.J)==null?void 0:I.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;cSC(this)}}; g.q.i9D=function(){this.isVisible=!0;cSC(this)}; g.q.m6s=function(){this.isVisible=!1;cSC(this)}; g.q.qS=function(){js.prototype.qS.call(this);this.S&&this.U.logVisibility(this.banner.element,this.isVisible)}; g.q.Uz=function(){js.prototype.Uz.call(this,!1);this.S&&this.U.logClick(this.banner.element)}; g.q.aD=function(V){this.B||(this.B=new CM(this.U),g.y(this,this.B));var t,x;if((t=this.L)==null?0:(x=t.menu)==null?0:x.menuRenderer)this.B.open(this.L.menu.menuRenderer,V.target),V.preventDefault()}; g.q.jl=function(){}; g.q.po=function(){}; g.q.NP=function(){this.U.CR("suggested_action_view_model");js.prototype.NP.call(this)};g.A(hw,Jw); hw.prototype.jl=function(V){var t,x,u;this.productUpsellSuggestedActionViewModel=g.l((t=V.getWatchNextResponse())==null?void 0:(x=t.playerOverlays)==null?void 0:(u=x.playerOverlayRenderer)==null?void 0:u.suggestedActionViewModel,qAr);var Z;if((Z=this.productUpsellSuggestedActionViewModel)==null?0:Z.content){var P;this.J=g.l((P=this.productUpsellSuggestedActionViewModel)==null?void 0:P.content,c_U)}var K,R;if(this.S=!!((K=this.productUpsellSuggestedActionViewModel)==null?0:(R=K.loggingDirectives)==null? 0:R.trackingParams)){var f,b;this.U.setTrackingParams(this.banner.element,((f=this.productUpsellSuggestedActionViewModel)==null?void 0:(b=f.loggingDirectives)==null?void 0:b.trackingParams)||null)}var E;this.isCounterfactual=!((E=this.productUpsellSuggestedActionViewModel)==null||!E.isCounterfactualServing)}; hw.prototype.po=function(){var V=[],t,x=g.G(((t=this.productUpsellSuggestedActionViewModel)==null?void 0:t.ranges)||[]);for(t=x.next();!t.done;t=x.next()){var u=t.value;u&&(t=Number(u.startTimeMilliseconds),u=Number(u.endTimeMilliseconds),isNaN(t)||isNaN(u)||V.push(new g.b4(t,u,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.U.gL(V)};g.A(ySq,Cv);g.A(w$,Cv);w$.prototype.onVideoDataChange=function(V,t){if(!d3(t)){var x;V==="newdata"&&(this.S||this.J&&((x=H8())==null?0:x.size))&&lBs(this);this.J&&V==="dataloaded"&&((V=Ddh(this))&&(V=HjT(this,this.S||V))&&this.api.setAudioTrack(V,!0),this.N&&(this.N=!1,ddh(this)))}}; w$.prototype.tY=function(){var V=this;if(g.ap(this.api.K())){var t,x=g.Pi(this.api.K(),(t=this.api.getVideoData())==null?void 0:g.DD(t));return sg(Eg(x),function(u){var Z=oE();nv(Z,u);return V.api.tY(Z)})}return Eg(this.api.tY())};g.A(g.tS,g.U5);g.q=g.tS.prototype;g.q.open=function(){g.es(this.W$,this.S)}; g.q.ze=function(V){Caj(this);var t=this.options[V];t&&(t.element.setAttribute("aria-checked","true"),this.g9(this.wy(V)),this.N=V)}; g.q.i9=function(V){g.Uu(this.S);for(var t={},x=!1,u=0;u=0?this.J.playbackRate:1}catch(V){return 1}}; g.q.setPlaybackRate=function(V){this.getPlaybackRate()!==V&&(this.J.playbackRate=V);return V}; g.q.gI=function(){return this.J.loop}; g.q.setLoop=function(V){this.J.loop=V}; g.q.canPlayType=function(V,t){return this.J.canPlayType(V,t)}; g.q.isPaused=function(){return this.J.paused}; g.q.isSeeking=function(){return this.J.seeking}; g.q.isEnded=function(){return this.J.ended}; g.q.Kn=function(){return this.J.muted}; g.q.oI=function(V){yr();this.J.muted=V}; g.q.PD=function(){return this.J.played||bQ([],[])}; g.q.oN=function(){try{var V=this.J.buffered}catch(t){}return V||bQ([],[])}; g.q.kT=function(){return this.J.seekable||bQ([],[])}; g.q.RQ=function(){var V=this.J;return V.getStartDate?V.getStartDate():null}; g.q.getCurrentTime=function(){return this.J.currentTime}; g.q.setCurrentTime=function(V){this.J.currentTime=V}; g.q.getDuration=function(){return this.J.duration}; g.q.load=function(){var V=this.J.playbackRate;try{this.J.load()}catch(t){}this.J.playbackRate=V}; g.q.pause=function(){this.J.pause()}; g.q.play=function(){var V=this.J.play();if(!V||!V.then)return null;V.then(void 0,function(){}); return V}; g.q.IM=function(){return this.J.readyState}; g.q.sU=function(){return this.J.networkState}; g.q.xE=function(){return this.J.error?this.J.error.code:null}; g.q.Nv=function(){return this.J.error?this.J.error.message:""}; g.q.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.J instanceof window.HTMLVideoElement&&this.J.getVideoPlaybackQuality)return this.J.getVideoPlaybackQuality();if(this.J){var V=this.J,t=V.webkitDroppedFrameCount;if(V=V.webkitDecodedFrameCount)return{droppedVideoFrames:t||0,totalVideoFrames:V}}return{}}; g.q.F$=function(){return!!this.J.webkitCurrentPlaybackTargetIsWireless}; g.q.X_=function(){return!!this.J.webkitShowPlaybackTargetPicker()}; g.q.togglePictureInPicture=function(){var V=this.J,t=window.document;window.document.pictureInPictureEnabled?this.J!==t.pictureInPictureElement?V.requestPictureInPicture():t.exitPictureInPicture():cb()&&V.webkitSetPresentationMode(V.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.q.jc=function(){var V=this.J;return new g.N8(V.offsetLeft,V.offsetTop)}; g.q.getSize=function(){return g.ao(this.J)}; g.q.setSize=function(V){g.QC(this.J,V)}; g.q.getVolume=function(){return this.J.volume}; g.q.setVolume=function(V){yr();this.J.volume=V}; g.q.Rm=function(V){this.G[V]||(this.J.addEventListener(V,this.listener),this.G[V]=this.listener)}; g.q.setAttribute=function(V,t){this.J.setAttribute(V,t)}; g.q.removeAttribute=function(V){this.J.removeAttribute(V)}; g.q.hasAttribute=function(V){return this.J.hasAttribute(V)}; g.q.Qj=V0(54);g.q.k6=V0(56);g.q.Qa=V0(58);g.q.UK=V0(60);g.q.y8=function(){return X_(this.J)}; g.q.Y9=function(V){g.OU(this.J,V)}; g.q.FU=function(V){return g.Gh(this.J,V)}; g.q.XL=function(){return g.fQ(document.body,this.J)}; g.q.audioTracks=function(){var V=this.J;if("audioTracks"in V)return V.audioTracks}; g.q.NP=function(){for(var V=g.G(Object.keys(this.G)),t=V.next();!t.done;t=V.next())t=t.value,this.J.removeEventListener(t,this.G[t]);ug.prototype.NP.call(this)}; g.q.RE=function(V){this.J.disableRemotePlayback=V};g.A(ka,g.e);g.A(Of,g.e);Of.prototype.show=function(){g.e.prototype.show.call(this);this.ZS();this.A6.T("html5_enable_moving_s4n_window")&&g.ap(this.A6.K())&&this.C()}; Of.prototype.hide=function(){g.e.prototype.hide.call(this);this.delay.stop();this.W.stop()}; Of.prototype.ZS=function(){var V=(0,g.Tu)(),t=qd9(this.A6);ia(this.J,t.bandwidth_samples);ia(this.L,t.network_activity_samples);ia(this.N,t.live_latency_samples);ia(this.S,t.buffer_health_samples);var x={};t=g.G(Object.entries(t));for(var u=t.next();!u.done;u=t.next()){var Z=g.G(u.value);u=Z.next().value;Z=Z.next().value;this.X[u]!==Z&&(x[u]=" "+String(Z));this.X[u]=Z}this.update(x);V=(0,g.Tu)()-V>25?5E3:500;this.delay.start(V)}; Of.prototype.C=function(){this.B?(this.position+=1,this.position>15&&(this.B=!1)):(--this.position,this.position<=0&&(this.B=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.W.start(2E4)};g.A($S9,Cv);g.A(sf,g.c);sf.prototype.J=function(){var V=(0,g.Tu)()-this.startTime;V=Vthis.W[V])&&(this.J=V,vls(this))}; g.q.onCueRangeExit=function(V){var t=IU4(this,V);t&&this.J===V&&this.api.Os("innertubeCommand",t);this.clearTimeout();this.J=void 0}; g.q.onTimeout=function(V){this.J!==void 0&&(V==null?void 0:V.cueRangeId)===this.J&&(V=IU4(this,this.J))&&this.api.Os("innertubeCommand",V)}; g.q.y5=function(V){this.S=V}; g.q.sP=function(){vls(this);this.S=void 0}; g.q.setTimeout=function(V){var t=this,x=Number(V==null?void 0:V.maxVisibleDurationMilliseconds);x&&(this.clearTimeout(),this.G=setTimeout(function(){t.onTimeout(V)},x))}; g.q.clearTimeout=function(){this.G&&clearTimeout(this.G);this.G=void 0}; g.q.NP=function(){this.timelyActions=this.S=this.J=this.videoId=void 0;this.W={};this.p6();this.clearTimeout();Cv.prototype.NP.call(this)};g.A(MyL,Cv);var vm={},WNj=(vm[1]="pot_ss",vm[2]="pot_sf",vm[3]="pot_se",vm[4]="pot_xs",vm[5]="pot_xf",vm[6]="pot_xe",vm);g.A(Gx,Cv);Gx.prototype.NP=function(){this.B&&(g.XV(this.B),this.B=void 0);Cv.prototype.NP.call(this)}; Gx.prototype.cM=function(){(this.J?!this.J.isReady():this.S)&&vW(this)}; Gx.prototype.Ge=function(V,t,x){var u=this;if(XB4(V)){var Z=x||"",P;if((P=this.J)==null?0:P.isReady())t=Lj(this,Z),zq4(V,t);else{var K=new g.v$;t.push(K.promise);this.W.promise.then(function(){var R=Lj(u,Z);zq4(V,R);K.resolve()})}}}; Gx.prototype.FH=function(V){var t=this;if(this.J||this.S)V.f_=Lj(this,V.videoId),this.J&&!this.J.isReady()&&(this.N=new xJ,this.W.promise.then(function(){t.Uh.FJ("pot_if");V.f_=Lj(t,V.videoId)}))};g.A(nlz,Cv);g.A(FK,g.c);FK.prototype.J=function(){for(var V=g.G(g.Xq.apply(0,arguments)),t=V.next();!t.done;t=V.next())(t=t.value)&&this.features.push(t)}; FK.prototype.NP=function(){for(var V=this.features.length-1;V>=0;V--)this.features[V].dispose();this.features.length=0;g.c.prototype.NP.call(this)};Md.prototype.g$=function(){this.S=(0,g.Tu)()}; Md.prototype.reset=function(){this.J=this.S=NaN}; Md.prototype.wq=function(V,t){if(V.clientPlaybackNonce&&!isNaN(this.J)){if(Math.random()<.01){t=t?"pbp":"pbs";var x={startTime:this.J};V.B&&(x.cttAuthInfo={token:V.B,videoId:V.videoId});J4("seek",x);g.C4({clientPlaybackNonce:V.clientPlaybackNonce},"seek");isNaN(this.S)||dq("pl_ss",this.S,"seek");dq(t,(0,g.Tu)(),"seek")}this.reset()}};g.q=cf9.prototype;g.q.reset=function(){Ur(this.timerName)}; g.q.tick=function(V,t){dq(V,t,this.timerName)}; g.q.FJ=function(V){return wq(V,this.timerName)}; g.q.g8=function(V){mX(V,void 0,this.timerName)}; g.q.infoGel=function(V){g.C4(V,this.timerName)};g.A(HYL,g.Np);g.q=HYL.prototype;g.q.b9=function(V){return this.loop||!!V||this.index+1=0}; g.q.setShuffle=function(V){this.shuffle=V;V=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var t=0;t0)||eC(this,1,!0)}; g.q.yO=function(){this.B=!0;this.J.vk(this.G);this.G=this.J.Z(document,"mouseup",this.jn)}; g.q.jn=function(){this.B=!1;eC(this,8,!1);this.J.vk(this.G);this.G=this.J.Z(this.target,"mousedown",this.yO)}; g.q.Cm=function(V){if(V=(V=V.changedTouches)&&V[0])this.zU=V.identifier,this.J.vk(this.C),this.C=this.J.Z(this.target,"touchend",this.Mr,void 0,!0),eC(this,1024,!0)}; g.q.Mr=function(V){if(V=V.changedTouches)for(var t=0;t1280||P>720)if(Z=x.zm("maxresdefault.jpg"))break;if(u>640||P>480)if(Z=x.zm("maxresdefault.jpg"))break; if(u>320||P>180)if(Z=x.zm("sddefault.jpg")||x.zm("hqdefault.jpg")||x.zm("mqdefault.jpg"))break;if(Z=x.zm("default.jpg"))break}g.we(t)&&(t=new Image,t.addEventListener("load",function(){VxK()}),t.src=Z?Z:"",this.api.d1().tick("ftr")); this.B.style.backgroundImage=Z?"url("+Z+")":""};g.A(g.hS,g.e);g.hS.prototype.resize=function(){}; g.hS.prototype.S=function(V){var t=this;this.N=!1;y84(this);var x=V.JH,u=this.api.K();x!=="GENERIC_WITHOUT_LINK"||u.B?x==="TOO_MANY_REQUESTS"?(u=this.api.getVideoData(),this.g9(tf(this,"TOO_MANY_REQUESTS_WITH_LINK",u.Lk(),void 0,void 0,void 0,!1))):x!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||u.B?this.api.K().T("html5_enable_bandaid_error_screen")&&x==="HTML5_SPS_UMP_STATUS_REJECTED"&&!u.B?(u=u.hostLanguage,V="//support.google.com/youtube?p=videoError",u&&(V=g.CX(V,{hl:u})),this.g9(tf(this,"HTML5_SPS_UMP_STATUS_REJECTED", V))):this.api.K().T("enable_adb_handling_in_sabr")&&x==="BROWSER_OR_EXTENSION_ERROR"&&!u.B?(u=u.hostLanguage,V="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",u&&(V=g.CX(V,{hl:u})),this.g9(tf(this,"BROWSER_OR_EXTENSION_ERROR",V))):this.g9(g.w1(V.errorMessage)):this.g9(tf(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(V=u.hostLanguage,x="//support.google.com/youtube/?p=player_error1",V&&(x=g.CX(x, {hl:V})),this.g9(tf(this,"GENERIC_WITH_LINK_AND_CPN",x,!0)),u.Td&&!u.W&&c8h(this,function(P){if(g.P3(P,t.api,!eW(t.api.K()))){P={as3:!1,html5:!0,player:!0,cpn:t.api.getVideoData().clientPlaybackNonce};var K=t.api;K.oC("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:P});K.isFullscreen()&&K.toggleFullscreen()}})); if(this.N){var Z=this.f1("ytp-error-link");Z&&(this.api.createClientVe(Z,this,216104),this.api.logVisibility(Z,!0),c8h(this,function(){t.api.logClick(Z)}))}}; var ntC=/([^<>]+)<\/a>/;g.A(jP9,g.e);g.q=jP9.prototype;g.q.onClick=function(V){this.innertubeCommand?(this.U.Os("innertubeCommand",this.innertubeCommand),V.preventDefault()):g.P3(V,this.U,!0);this.U.logClick(this.element)}; g.q.onVideoDataChange=function(V,t){HWl(this,t);this.lh&&UJ1(this,this.lh)}; g.q.oD=function(V){var t=this.U.getVideoData();this.videoId!==t.videoId&&HWl(this,t);this.J&&UJ1(this,V.state);this.lh=V.state}; g.q.aC=function(){this.W.show();this.U.publish("paidcontentoverlayvisibilitychange",!0);this.U.logVisibility(this.element,!0)}; g.q.Gc=function(){this.W.hide();this.U.publish("paidcontentoverlayvisibilitychange",!1);this.U.logVisibility(this.element,!1)};g.A(xl,g.e);xl.prototype.hide=function(){this.J.stop();this.message.style.display="none";g.e.prototype.hide.call(this)}; xl.prototype.onStateChange=function(V){this.Hk(V.state)}; xl.prototype.Hk=function(V){(g.J(V,128)||this.api.Dj()?0:g.J(V,16)||g.J(V,1))?this.J.start():this.hide()}; xl.prototype.S=function(){this.message.style.display="block"};g.A(u9,g.cL);u9.prototype.onMutedAutoplayChange=function(V){this.N&&(V?(DJ4(this),this.aC()):(this.J&&this.logClick(),this.Gc()))}; u9.prototype.SM=function(V){this.api.isMutedByMutedAutoplay()&&g.LC(V,2)&&this.Gc()}; u9.prototype.onClick=function(){this.api.unMute();this.logClick()}; u9.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.A(g.ZU,g.j6);g.q=g.ZU.prototype;g.q.init=function(){var V=this.api,t=V.getPlayerStateObject();this.Yh=V.getPlayerSize();this.YK(t);this.wZ();this.lq();this.api.publish("basechromeinitialized",this);this.w4()&&this.api.publish("standardControlsInitialized")}; g.q.onVideoDataChange=function(V,t){var x=this.XU!==t.videoId;if(x||V==="newdata"){V=this.api;V.isFullscreen()||(this.Yh=V.getPlayerSize());var u;((u=this.api.getVideoData(1))==null?0:g.d8(u))&&this.Il()}x&&(this.XU=t.videoId,x=this.aN,x.cX=3E3,eC(x,512,!0),this.wZ());this.api.T("web_render_jump_buttons")&&t.showSeekingControls&&(this.wY=572)}; g.q.MBs=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.q.gR=function(){var V=this.api.mL()&&this.api.Kd(),t=this.api.v6();return this.Vq||V||this.d4||t}; g.q.Il=function(){var V=!this.gR();g.Am(this.api.getRootNode(),"ytp-menu-shown",!V);var t;((t=this.api.getVideoData(1))==null?0:g.d8(t))&&g.Am(this.api.getRootNode(),"ytp-hide-controls",!V)}; g.q.yS=function(V){try{if(!g.fQ(this.api.getRootNode(),V))return!1}catch(t){return!1}for(;V&&!EVK(V);)V=V===this.api.getRootNode()?null:V.parentElement||null;return!!V}; g.q.RI=function(V){var t=this.api.getRootNode();g.Am(t,"ytp-autohide",V);g.Am(t,"ytp-autohide-active",!0);this.oZ.start(V?250:100);V&&(this.w0=!1,g.NK(t,"ytp-touch-mode"));this.PB=!V;this.api.Dw(!V)}; g.q.QF=function(){var V=this.api.getRootNode();g.Am(V,"ytp-autohide-active",!1)}; g.q.vUS=function(){this.nV=!0}; g.q.uzD=function(V){if(this.api.K().T("player_doubletap_to_seek")||this.api.K().C)this.nV=!1,this.e2&&this.vk(this.e2),this.UD===0&&KY(this,V)?(this.xs(),this.RJ.start(),this.e2=this.Z(this.api.XX(),"touchmove",this.vUS,void 0,!0)):this.RJ.stop();J80(this)&&KY(this,V)&&!this.api.K().C&&dJj(this);var t=this.I7.bu();if(!g.zo(this.api.K())&&Ml&&h0w(this,V))t&&V.preventDefault();else if(this.w0=!0,g.OU(this.api.getRootNode(),"ytp-touch-mode"),this.aN.JM(),this.api.K().T("player_doubletap_to_seek")||this.api.K().C)if(t= this.api.getPlayerStateObject(),!(!this.api.tB()||g.J(t,2)&&g.gr(this.api)||g.J(t,64))){t=Date.now()-this.Ry;this.UD+=1;if(t<=350){this.LM=!0;t=this.api.getPlayerSize().width/3;var x=this.api.getRootNode().getBoundingClientRect(),u=V.targetTouches[0].clientX-x.left;x=V.targetTouches[0].clientY-x.top;var Z=(this.UD-1)*10;u>0&&ut*2&&u=650;this.aN.resize();g.Am(t,"ytp-fullscreen",this.api.isFullscreen());g.Am(t,"ytp-large-width-mode",x);g.Am(t,"ytp-small-mode",this.XJ());g.Am(t,"ytp-tiny-mode",this.uG());g.Am(t,"ytp-big-mode",this.yV());this.Ll&&this.Ll.resize(V)}; g.q.SM=function(V){this.YK(V.state);this.wZ()}; g.q.HA=V0(5);g.q.xg=function(){var V=!!this.XU&&!this.api.qe()&&!this.Q5,t=this.api.getPresentingPlayerType()===2,x=this.api.K();if(t){if(Qq8&&x.T("enable_visit_advertiser_support_on_ipad_mweb"))return!1;t=jC(this.api.Jl());V&&(t&&t.player?V=(V=t.player.getVideoData(2))?V.isListed&&!g.YH(t.player.K()):!1:(Gd("showInfoBarDuringAd: this is null"),V=!1));return V}return V&&(x.Ju||this.api.isFullscreen()||x.gi)}; g.q.wZ=function(){var V=this.xg();this.aA!==V&&(this.aA=V,g.Am(this.api.getRootNode(),"ytp-hide-info-bar",!V))}; g.q.YK=function(V){var t=V.isCued()||this.api.Ah()&&this.api.getPresentingPlayerType()!==3;t!==this.isCued&&(this.isCued=t,this.R7&&this.vk(this.R7),this.R7=this.Z(this.api.XX(),"touchstart",this.uzD,void 0,t));var x=this.aN,u=V.isPlaying()&&!g.J(V,32)||this.api.CL();eC(x,128,!u);x=this.aN;u=this.api.getPresentingPlayerType()===3;eC(x,256,u);x=this.api.getRootNode();g.J(V,2)?u=[UF.ENDED]:(u=[],g.J(V,8)?u.push(UF.PLAYING):g.J(V,4)&&u.push(UF.PAUSED),g.J(V,1)&&!g.J(V,32)&&u.push(UF.BUFFERING),g.J(V, 32)&&u.push(UF.SEEKING),g.J(V,64)&&u.push(UF.UNSTARTED));g.$z(this.bx,u)||(g.pb(x,this.bx),this.bx=u,g.sU(x,u));u=this.api.K();var Z=g.J(V,2);a:{var P=this.api.K();var K=P.controlsType;switch(K){case "2":case "0":P=!1;break a}P=K==="3"&&!g.J(V,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:NOC(jC(this.api.Jl())))||this.api.v6()||g.zo(P)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Am(x,"ytp-hide-controls",!P);g.Am(x,"ytp-native-controls",u.controlsType==="3"&&!t&&!Z&&!this.d4);g.J(V, 128)&&!g.zo(u)?(this.Ll||(this.Ll=new g.hS(this.api),g.y(this,this.Ll),g.aE(this.api,this.Ll.element,4)),this.Ll.S(V.Mv),this.Ll.show()):this.Ll&&(this.Ll.dispose(),this.Ll=null)}; g.q.dZ=function(){return this.api.mL()&&this.api.Kd()?(this.api.MD(!1,!1),!0):this.api.qe()?(g.Xb(this.api,!0),!0):!1}; g.q.onMutedAutoplayChange=function(V){this.d4=V;this.Il()}; g.q.yV=function(){return!1}; g.q.XJ=function(){return!this.yV()&&(this.api.getPlayerSize().width=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null;t=this.size;V=V.clone();t=t.clone();u&&(K=t,Z=5,(Z&65)==65&&(V.x=u.right)&&(Z&=-2),(Z&132)==132&&(V.y=u.bottom)&&(Z&=-5),V.xu.right&&(K.width=Math.min(u.right-V.x,P+K.width-u.left),K.width=Math.max(K.width,0))),V.x+K.width>u.right&&Z&1&&(V.x=Math.max(u.right-K.width,u.left)),V.yu.bottom&&(K.height=Math.min(u.bottom-V.y,P+K.height-u.top),K.height=Math.max(K.height,0))),V.y+K.height>u.bottom&&Z&4&&(V.y=Math.max(u.bottom-K.height,u.top)));u=new g.sT(0,0,0,0);u.left=V.x;u.top=V.y;u.width= t.width;u.height=t.height;g.zh(this.element,new g.N8(u.left,u.top));g.oV(this.W);this.W.Z(y1(this),"contextmenu",this.RXk);this.W.Z(this.U,"fullscreentoggled",this.onFullscreenToggled);this.W.Z(this.U,"pageTransition",this.XI)}; g.q.RXk=function(V){if(!V.defaultPrevented){var t=aV(V);g.fQ(this.element,t)||this.Gc();this.U.K().disableNativeContextMenu&&V.preventDefault()}}; g.q.onFullscreenToggled=function(){this.Gc();GV1(this)}; g.q.XI=function(){this.Gc()};g.A(sd,g.e);sd.prototype.onClick=function(){var V=this,t,x,u,Z;return g.Q(function(P){if(P.J==1)return t=V.api.K(),x=V.api.getVideoData(),u=V.api.getPlaylistId(),Z=t.getVideoUrl(x.videoId,u,void 0,!0),g.m(P,Lt4(V,Z),2);P.S&&vql(V);V.api.logClick(V.element);g.pl(P)})}; sd.prototype.ZS=function(){this.updateValue("icon",{Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{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=IIK(this);g.Am(this.element,"ytp-copylink-button-visible", this.visible);this.RC(this.visible);this.tooltip.lT();this.api.logVisibility(this.element,this.visible&&this.G)}; sd.prototype.KI=function(V){g.e.prototype.KI.call(this,V);this.api.logVisibility(this.element,this.visible&&V)}; sd.prototype.NP=function(){g.e.prototype.NP.call(this);g.NK(this.element,"ytp-copylink-button-visible")};g.A(NS,g.e);NS.prototype.show=function(){g.e.prototype.show.call(this);g.RO(this.S)}; NS.prototype.hide=function(){this.W.stop();this.N=0;this.f1("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.NK(this.element,"ytp-chapter-seek");g.NK(this.element,"ytp-time-seeking");g.e.prototype.hide.call(this)}; NS.prototype.Nb=function(V,t,x,u){this.N=V===this.L?this.N+u:u;this.L=V;var Z=V===-1?this.X:this.C;Z&&this.U.logClick(Z);this.B?this.S.stop():g.$y(this.S);this.W.start();this.element.setAttribute("data-side",V===-1?"back":"forward");var P=3*this.U.XX().getPlayerSize().height;Z=this.U.XX().getPlayerSize();Z=Z.width/3-3*Z.height;this.J.style.width=P+"px";this.J.style.height=P+"px";V===1?(this.J.style.left="",this.J.style.right=Z+"px"):V===-1&&(this.J.style.right="",this.J.style.left=Z+"px");var K=P* 2.5;P=K/2;var R=this.f1("ytp-doubletap-ripple");R.style.width=K+"px";R.style.height=K+"px";V===1?(V=this.U.XX().getPlayerSize().width-t+Math.abs(Z),R.style.left="",R.style.right=V-P+"px"):V===-1&&(V=Math.abs(Z)+t,R.style.right="",R.style.left=V-P+"px");R.style.top="calc((33% + "+Math.round(x)+"px) - "+P+"px)";if(x=this.f1("ytp-doubletap-ripple"))x.classList.remove("ytp-doubletap-ripple"),x.classList.add("ytp-doubletap-ripple");Ftq(this,this.B?this.N:u)};g.A(gqw,js);g.q=gqw.prototype;g.q.Qy=function(V){this.Es||(this.Es=new CM(this.U),g.y(this,this.Es));var t,x;if((t=this.gk)==null?0:(x=t.menu)==null?0:x.menuRenderer)this.Es.open(this.gk.menu.menuRenderer,V.target),V.preventDefault()}; g.q.hT=function(){return!!this.J}; g.q.l7=function(){return!!this.J}; g.q.uE=function(V){V.target===this.overflowButton.element?V.preventDefault():(this.Qt&&this.U.Os("innertubeCommand",this.Qt),this.Uz(!1))}; g.q.BJ=function(){this.Uz(!0);var V,t;((V=this.J)==null?0:(t=V.bannerData)==null?0:t.dismissedStatusKey)&&this.P$.push(this.J.bannerData.dismissedStatusKey);this.w_()}; g.q.d3=function(){this.w_();GM(this)}; g.q.Vd1=function(V){var t=this,x;if(V.id!==((x=this.J)==null?void 0:x.identifier)){this.w_();x=g.G(this.cX);for(var u=x.next();!u.done;u=x.next()){var Z=u.value,P=void 0,K=void 0;if((u=(P=Z)==null?void 0:(K=P.bannerData)==null?void 0:K.itemData)&&Z.identifier===V.id){K=P=void 0;var R=((P=Z)==null?void 0:(K=P.bannerData)==null?void 0:K.dismissedStatusKey)||"";if(this.P$.includes(R))break;this.J=Z;this.banner.element.setAttribute("aria-label",u.accessibilityLabel||"");u.trackingParams&&(this.W=!0,this.U.setTrackingParams(this.badge.element, u.trackingParams));this.X.show();yZ(this);this.Us.RC(!u.stayInApp);nq8(this);zgC(this);Sy(this);this.Qt=g.l(u.onTapCommand,UH);if(Z=g.l(u.menuOnTap,UH))this.gk=g.l(Z,lEY);Z=void 0;this.banner.update({thumbnail:(Z=(u.thumbnailSources||[])[0])==null?void 0:Z.url,title:u.productTitle,price:u.priceReplacementText?u.priceReplacementText:u.price,salesOriginalPrice:Yaj(this),priceDropReferencePrice:QXh(this),promotionText:mW0(this),priceA11yText:aIw(this),affiliateDisclaimer:u.affiliateDisclaimer,vendor:rQj(this)}); R=K=P=Z=void 0;((Z=u)==null?0:(P=Z.hiddenProductOptions)==null?0:P.showDropCountdown)&&((K=u)==null?0:(R=K.hiddenProductOptions)==null?0:R.dropTimestampMs)&&(this.Fc=new g.qK(function(){oqz(t)},1E3),this.Us.hide(),this.countdownTimer.show(),oqz(this)); this.U.T("web_player_enable_featured_product_banner_exclusives_on_desktop")&&X5q(this)&&(this.CI=new g.qK(function(){BQ4(t)},1E3),BQ4(this))}}}}; g.q.w_=function(){this.J&&(this.J=void 0,this.kt())}; g.q.onVideoDataChange=function(V,t){var x=this;V==="dataloaded"&&GM(this);var u,Z,P;V=g.l((u=t.getWatchNextResponse())==null?void 0:(Z=u.playerOverlays)==null?void 0:(P=Z.playerOverlayRenderer)==null?void 0:P.productsInVideoOverlayRenderer,y_7);this.overflowButton.show();this.dismissButton.hide();var K=V==null?void 0:V.featuredProductsEntityKey;this.trendingOfferEntityKey=V==null?void 0:V.trendingOfferEntityKey;this.cX.length||(Wts(this,K),Sy(this));var R;(R=this.IC)==null||R.call(this);this.IC=g.x8.subscribe(function(){Wts(x, K);Sy(x)})}; g.q.NP=function(){GM(this);nq8(this);zgC(this);js.prototype.NP.call(this)};g.A(HzT,g.e);HzT.prototype.onClick=function(){this.U.logClick(this.element,this.S)};g.A(UWq,g.cL);g.q=UWq.prototype;g.q.show=function(){g.cL.prototype.show.call(this);this.U.publish("infopaneldetailvisibilitychange",!0);this.U.logVisibility(this.element,!0);DWK(this,!0)}; g.q.hide=function(){g.cL.prototype.hide.call(this);this.U.publish("infopaneldetailvisibilitychange",!1);this.U.logVisibility(this.element,!1);DWK(this,!1)}; g.q.getId=function(){return this.W}; g.q.Qh=function(){return this.itemData.length}; g.q.onVideoDataChange=function(V,t){if(t){var x,u,Z,P;this.update({title:((x=t.gj)==null?void 0:(u=x.title)==null?void 0:u.content)||"",body:((Z=t.gj)==null?void 0:(P=Z.bodyText)==null?void 0:P.content)||""});var K;V=((K=t.gj)==null?void 0:K.trackingParams)||null;this.U.setTrackingParams(this.element,V);K=g.G(this.itemData);for(V=K.next();!V.done;V=K.next())V.value.dispose();this.itemData=[];var R;if((R=t.gj)==null?0:R.ctaButtons)for(t=g.G(t.gj.ctaButtons),R=t.next();!R.done;R=t.next())if(R=g.l(R.value, r_n))R=new HzT(this.U,R,this.J),R.s1&&(this.itemData.push(R),R.t6(this.items))}}; g.q.NP=function(){this.hide();g.cL.prototype.NP.call(this)};g.A(CT4,g.e);g.q=CT4.prototype;g.q.onVideoDataChange=function(V,t){dW8(this,t);this.lh&&hgh(this,this.lh)}; g.q.JE=function(V){var t=this.U.getVideoData();this.videoId!==t.videoId&&dW8(this,t);hgh(this,V.state);this.lh=V.state}; g.q.wp=function(V){(this.W=V)?this.hide():this.J&&this.show()}; g.q.RW=function(){this.S||this.aC();this.showControls=!0}; g.q.gF=function(){this.S||this.Gc();this.showControls=!1}; g.q.aC=function(){var V;if((V=this.U)==null?0:V.T("embeds_web_enable_info_panel_sizing_fix")){var t;V=(t=this.U)==null?void 0:t.getPlayerSize();t=V.width<380;var x;V=V.height<(((x=this.U)==null?0:x.isEmbedsShortsMode())?400:280);var u,Z;if((((u=this.U)==null?0:u.getPlayerStateObject().isCued())||((Z=this.U)==null?0:g.J(Z.getPlayerStateObject(),1024)))&&t&&V)return}this.J&&!this.W&&(this.N.show(),this.U.publish("infopanelpreviewvisibilitychange",!0),this.U.logVisibility(this.element,!0))}; g.q.Gc=function(){this.J&&!this.W&&(this.N.hide(),this.U.publish("infopanelpreviewvisibilitychange",!1),this.U.logVisibility(this.element,!1))}; g.q.sNX=function(){this.S=!1;this.showControls||this.Gc()};var eNr={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(eNr).reduce(function(V,t){V[eNr[t]]=t;return V},{}); var dMr={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(dMr).reduce(function(V,t){V[dMr[t]]=t;return V},{}); var CNz={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(CNz).reduce(function(V,t){V[CNz[t]]=t;return V},{});var JeE,hNr;JeE=[{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"}];hNr=[{option:0,text:IS(0)},{option:.25,text:IS(.25)},{option:.5,text:IS(.5)},{option:.75,text:IS(.75)},{option:1,text:IS(1)}]; g.MS=[{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:JeE},{option:"fontSizeIncrement",text:"Tamanho da fonte",options:[{option:-2,text:IS(.5)},{option:-1,text:IS(.75)},{option:0,text:IS(1)},{option:1, text:IS(1.5)},{option:2,text:IS(2)},{option:3,text:IS(3)},{option:4,text:IS(4)}]},{option:"background",text:"Cor de fundo",options:JeE},{option:"backgroundOpacity",text:"Opacidade de fundo",options:hNr},{option:"windowColor",text:"Cor da janela",options:JeE},{option:"windowOpacity",text:"Opacidade da janela",options:hNr},{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:IS(.25)},{option:.5,text:IS(.5)},{option:.75,text:IS(.75)},{option:1,text:IS(1)}]}];var wDt=[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.A(Ztw,g.j6);g.q=Ztw.prototype; g.q.X4=function(V){V.repeat||(this.N.Wg=!1);var t=!1,x=V.keyCode,u=aV(V),Z=!V.altKey&&!V.ctrlKey&&!V.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||wDt.includes(x)),P=!1,K=!1,R=this.api.K();V.defaultPrevented?(Z=!1,K=!0):R.Qc&&!this.api.isMutedByEmbedsMutedAutoplay()&&(Z=!1);if(x===9)t=!0;else{if(u)switch(x){case 32:case 13:if(u.tagName==="BUTTON"||u.tagName==="A"||u.tagName==="INPUT")t=!0,Z=!1;else if(Z){var f=u.getAttribute("role");!f||f!=="option"&&f!=="button"&&f.indexOf("menuitem")!==0|| (t=!0,u.click(),P=!0)}break;case 37:case 39:case 36:case 35:t=u.getAttribute("role")==="slider";break;case 38:case 40:f=u.getAttribute("role"),u=x===38?u.previousSibling:u.nextSibling,f==="slider"?t=!0:Z&&(f==="option"?(u&&u.getAttribute("role")==="option"&&u.focus(),P=t=!0):f&&f.indexOf("menuitem")===0&&(u&&u.hasAttribute("role")&&u.getAttribute("role").indexOf("menuitem")===0&&u.focus(),P=t=!0))}if(Z&&!P)switch(x){case 38:P=Math.min(this.api.getVolume()+5,100);$l(this.xU,P,!1);this.api.setVolume(P); K=P=!0;break;case 40:P=Math.max(this.api.getVolume()-5,0);$l(this.xU,P,!0);this.api.setVolume(P);K=P=!0;break;case 36:this.api.tB()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),K=P=!0);break;case 35:this.api.tB()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),K=P=!0)}}t&&LY(this,!0);(t||K)&&this.aN.JM();(P||Z&&this.handleGlobalKeyDown(x,V.shiftKey,V.ctrlKey,V.altKey,V.metaKey,V.key,V.code,V.repeat))&&V.preventDefault();R.L&&(V={keyCode:V.keyCode, altKey:V.altKey,ctrlKey:V.ctrlKey,metaKey:V.metaKey,shiftKey:V.shiftKey,handled:V.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.T4("onKeyPress",V))}; g.q.QU=function(V){var t=V.keyCode;(!this.api.T("web_player_spacebar_control_bugfix")||this.api.T("web_player_spacebar_control_bugfix")&&!this.W)&&this.handleGlobalKeyUp(t,V.shiftKey,V.ctrlKey,V.altKey,V.metaKey,V.key,V.code)&&V.preventDefault()}; g.q.handleGlobalKeyUp=function(V,t,x,u,Z,P,K){this.api.publish("keyboardserviceglobalkeyup",{keyCode:V,shiftKey:t,ctrlKey:x,altKey:u,metaKey:Z,key:P,code:K});t=!1;if(this.N.Wg)return t;(x=g.Y2(this.api.Jl()))&&(x=x.qG)&&x.iq&&(x.qT(V),t=!0);switch(V){case 9:LY(this,!0);t=!0;break;case 32:if(this.api.T("web_speedmaster_spacebar_control")&&(!this.api.T("web_player_spacebar_control_bugfix")&&!this.W||this.api.T("web_player_spacebar_control_bugfix"))&&!this.api.K().Qc){var R,f;V=(R=this.progressBar)== null?void 0:(f=R.S)==null?void 0:f.isEnabled;t=this.HY(V)}}return t}; g.q.handleGlobalKeyDown=function(V,t,x,u,Z,P,K,R){R||(this.N.Wg=!1);var f=!1,b=this.api.K();if(b.Qc&&!this.api.isMutedByEmbedsMutedAutoplay())return f;var E=g.Y2(this.api.Jl());if(E&&(E=E.qG)&&E.iq)switch(V){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:f=E.O$(V)}b.B||f||(f=P||String.fromCharCode(V).toLowerCase(),this.S+=f,"awesome".indexOf(this.S)===0?(f=!0,7===this.S.length&&zw8(this.api.getRootNode(),"ytp-color-party")):(this.S=f,f="awesome".indexOf(this.S)===0));if(!f&&(!this.api.isMutedByEmbedsMutedAutoplay()|| wDt.includes(V))){var k=this.api.getVideoData(),O,N;E=(O=this.progressBar)==null?void 0:(N=O.S)==null?void 0:N.isEnabled;O=k?k.ke:[];N=Ve?u:x;switch(V){case 80:t&&!b.L1&&(fY(this.xU,Xr9(),"Anterior"),this.api.previousVideo(),f=!0);break;case 78:t&&!b.L1&&(fY(this.xU,YW(),"Pr\u00f3ximo"),this.api.nextVideo(),f=!0);break;case 74:this.api.tB()&&(this.api.startSeekCsiAction(),this.J?this.api.T("enable_key_press_seek_logging")?(f=Fg(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"), pY(this.J,-1,10,f)):pY(this.J,-1,10):fY(this.xU,{Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{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),f=!0);break;case 76:this.api.tB()&&(this.api.startSeekCsiAction(),this.J?this.api.T("enable_key_press_seek_logging")?(f=Fg(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),pY(this.J,1,10,f)):pY(this.J,1,10):fY(this.xU,{Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{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),f=!0);break;case 37:this.api.tB()&&(this.api.startSeekCsiAction(),N?(N=tT4(O,this.api.getCurrentTime()*1E3),N!==-1&&this.J!=null&&(MXh(this.J,-1,O[N].title),this.api.seekTo(O[N].startTime/1E3,void 0,void 0,void 0,53),f=!0)):(this.J?this.api.T("enable_key_press_seek_logging")?(f=Fg(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),pY(this.J,-1,5,f)):pY(this.J,-1,5):fY(this.xU,{Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{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),f=!0));break;case 39:this.api.tB()&&(this.api.startSeekCsiAction(),N?(N=VT9(O,this.api.getCurrentTime()*1E3),N!==-1&&this.J!=null&&(MXh(this.J,1,O[N].title),this.api.seekTo(O[N].startTime/1E3,void 0,void 0,void 0,52),f=!0)):(this.J!=null?this.api.T("enable_key_press_seek_logging")?(f=Fg(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),pY(this.J,1,5,f)):pY(this.J,1,5):fY(this.xU,{Y:"svg",j:{height:"100%",version:"1.1", viewBox:"0 0 36 36",width:"100%"},D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{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),f=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),$l(this.xU,this.api.getVolume(),!1)):(this.api.mute(),$l(this.xU,0,!0));f=!0;break;case 32:f=this.api.T("web_speedmaster_spacebar_control")?!this.api.K().L1:this.HY(E);break;case 75:f=this.HY(E);break;case 190:t?b.enableSpeedOptions&&Kqs(this)&&(f=this.api.getPlaybackRate(),this.api.setPlaybackRate(f+.25,!0),VXC(this.xU,!1),f=!0):this.api.tB()&&(this.step(1),f=!0);break;case 188:t? b.enableSpeedOptions&&Kqs(this)&&(f=this.api.getPlaybackRate(),this.api.setPlaybackRate(f-.25,!0),VXC(this.xU,!0),f=!0):this.api.tB()&&(this.step(-1),f=!0);break;case 70:eOs(this.api)&&(this.api.toggleFullscreen().catch(function(){}),f=!0); break;case 27:E?(this.progressBar.ES(),f=!0):this.B()&&(f=!0)}if(b.controlsType!=="3")switch(V){case 67:g.nj(this.api.Jl())&&(b=this.api.getOption("captions","track"),this.api.toggleSubtitles(),tXj(this.xU,!b||b&&!b.displayName),f=!0);break;case 79:gB(this,"textOpacity");break;case 87:gB(this,"windowOpacity");break;case 187:case 61:gB(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:gB(this,"fontSizeIncrement",!0,!0)}var p;t||x||u||(V>=48&&V<=57?p=V-48:V>=96&&V<=105&&(p=V-96));p!=null&&this.api.tB()&& (this.api.startSeekCsiAction(),b=this.api.getProgressState(),this.api.seekTo(p/10*(b.seekableEnd-b.seekableStart)+b.seekableStart,void 0,void 0,void 0,81),f=!0);f&&this.aN.JM()}this.W||this.api.publish("keyboardserviceglobalkeydown",{keyCode:V,shiftKey:t,ctrlKey:x,altKey:u,metaKey:Z,key:P,code:K,repeat:R},this.N);return f}; g.q.step=function(V){this.api.tB();if(this.api.getPlayerStateObject().isPaused()){var t=this.api.getVideoData().S;t&&(t=t.video)&&this.api.seekBy(V/(t.fps||30),void 0,void 0,V>0?77:78)}}; g.q.HY=function(V){if(!this.api.K().L1){var t;var x,u=(t=this.api.getVideoData())==null?void 0:(x=t.getPlayerResponse())==null?void 0:x.playabilityStatus;if(u){var Z;t=((Z=g.l(u.miniplayer,J_j))==null?void 0:Z.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else t=!1;t&&this.api.Os("onExpandMiniplayer");V?this.progressBar.NK():(V=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.xU.ai(V),V?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.q.NP=function(){g.$y(this.G);g.j6.prototype.NP.call(this)};g.A(g.Xg,g.e);g.Xg.prototype.KO=V0(11); g.Xg.prototype.ZS=function(){var V=this.U.K(),t=V.N||this.U.T("web_player_hide_overflow_button_if_empty_menu")&&this.Ia.isEmpty();V=g.zo(V)&&g.BL(this.U)&&g.J(this.U.getPlayerStateObject(),128);var x=this.U.getPlayerSize();this.visible=this.U.XJ()&&!V&&x.width>=240&&!g.th(this.U.getVideoData())&&!t&&!this.J&&!this.U.isEmbedsShortsMode();g.Am(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.U.lT();this.U.logVisibility(this.element,this.visible&&this.G)}; g.Xg.prototype.KI=function(V){g.e.prototype.KI.call(this,V);this.U.logVisibility(this.element,this.visible&&V)}; g.Xg.prototype.NP=function(){g.e.prototype.NP.call(this);g.NK(this.element,"ytp-overflow-button-visible")};g.A(qNw,g.cL);g.q=qNw.prototype;g.q.Sg=function(V){V=aV(V);g.fQ(this.element,V)&&(g.fQ(this.J,V)||g.fQ(this.closeButton,V)||jm(this))}; g.q.Gc=function(){g.cL.prototype.Gc.call(this);this.U.N3(this.element)}; g.q.show=function(){this.iq&&this.U.publish("OVERFLOW_PANEL_OPENED");g.cL.prototype.show.call(this);this.element.setAttribute("aria-modal","true");f4C(this,!0)}; g.q.hide=function(){g.cL.prototype.hide.call(this);this.element.removeAttribute("aria-modal");f4C(this,!1)}; g.q.onFullscreenToggled=function(V){!V&&this.bu()&&jm(this)}; g.q.isEmpty=function(){return this.actionButtons.length===0}; g.q.focus=function(){for(var V=g.G(this.actionButtons),t=V.next();!t.done;t=V.next())if(t=t.value,t.iq){t.focus();break}};g.A($w0,g.e);$w0.prototype.onClick=function(V){g.P3(V,this.api)&&this.api.playVideoAt(this.index)};g.A(bth,g.cL);g.q=bth.prototype;g.q.show=function(){g.cL.prototype.show.call(this);this.J.Z(this.api,"videodatachange",this.YZ);this.J.Z(this.api,"onPlaylistUpdate",this.YZ);this.YZ()}; g.q.hide=function(){g.cL.prototype.hide.call(this);g.oV(this.J);this.updatePlaylist(null)}; g.q.YZ=function(){this.updatePlaylist(this.api.getPlaylist());this.api.K().N&&(this.f1("ytp-playlist-menu-title-name").removeAttribute("href"),this.N&&(this.vk(this.N),this.N=null))}; g.q.Av=function(){var V=this.playlist,t=V.author,x=t?"por $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",u={CURRENT_POSITION:String(V.index+1),PLAYLIST_LENGTH:String(V.getLength())};t&&(u.AUTHOR=t);this.update({title:V.title,subtitle:g.Lm(x,u),playlisturl:this.api.getVideoUrl(!0)});t=V.S;if(t===this.W)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[V.index];else{x=g.G(this.playlistData);for(u=x.next();!u.done;u=x.next())u.value.dispose(); x=V.getLength();this.playlistData=[];for(u=0;u=this.S&&!V.N&&!t.isAd()&&!this.api.isEmbedsShortsMode()}else V=!1;this.visible=V;this.RC(this.visible);g.Am(this.element,"ytp-search-button-visible",this.visible);g.Am(this.element,"ytp-show-search-title",!this.api.XJ());this.api.logVisibility(this.element,this.visible&&this.G)}; Yl.prototype.KI=function(V){g.e.prototype.KI.call(this,V);this.api.logVisibility(this.element,this.visible&&V)};g.A(g.QN,g.e);g.q=g.QN.prototype;g.q.s7=V0(8);g.q.onClick=function(){var V=this,t=this.api.K(),x=this.api.getVideoData(this.api.getPresentingPlayerType()),u=this.api.getPlaylistId();t=this.api.T("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):t.getVideoUrl(x.videoId,u,void 0,!0);if(navigator.share)try{var Z=navigator.share({title:x.title,url:t});Z instanceof Promise&&Z.catch(function(P){Ak8(V,P)})}catch(P){P instanceof Error&&Ak8(this,P)}else this.J.dZ(),jm(this.N,this.element,!1); this.api.logClick(this.element)}; g.q.ZS=function(){var V=this.api.K(),t=this.api.isEmbedsShortsMode();g.Am(this.element,"ytp-show-share-title",g.zo(V)&&!t);this.J.yV()&&t?(V=(this.api.XX().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Ao(this.element,"right",V+"px")):t&&g.Ao(this.element,"right","0px");this.updateValue("icon",{Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{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=pHs(this);g.Am(this.element,"ytp-share-button-visible",this.visible);this.RC(this.visible);this.tooltip.lT();this.api.logVisibility(this.element,pHs(this)&&this.G)}; g.q.KI=function(V){g.e.prototype.KI.call(this,V);this.api.logVisibility(this.element,this.visible&&V)}; g.q.NP=function(){g.e.prototype.NP.call(this);g.NK(this.element,"ytp-share-button-visible")};g.A(GHl,g.cL);g.q=GHl.prototype;g.q.mK=function(V){V=aV(V);g.fQ(this.B,V)||g.fQ(this.closeButton,V)||jm(this)}; g.q.Gc=function(){g.cL.prototype.Gc.call(this);this.tooltip.N3(this.element);this.api.logVisibility(this.J,!1);for(var V=g.G(this.N),t=V.next();!t.done;t=V.next())t=t.value,this.api.hasVe(t.element)&&this.api.logVisibility(t.element,!1)}; g.q.show=function(){var V=this.iq;g.cL.prototype.show.call(this);this.ZS();V||this.api.Os("onSharePanelOpened")}; g.q.gw8=function(){this.iq&&this.ZS()}; g.q.ZS=function(){var V=this;g.OU(this.element,"ytp-share-panel-loading");g.NK(this.element,"ytp-share-panel-fail");var t=this.api.getVideoData(),x=this.api.getPlaylistId()&&this.W.checked;t.getSharePanelCommand&&xu(this.api.tY(),t.getSharePanelCommand,{includeListId:x}).then(function(u){V.uD()||(g.NK(V.element,"ytp-share-panel-loading"),vhK(V,u))}); t=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",t);this.updateValue("linkText",t);this.updateValue("shareLinkWithUrl",g.Lm("Compartilhar o link $URL",{URL:t}));R3(this.J);this.api.logVisibility(this.J,!0)}; g.q.onFullscreenToggled=function(V){!V&&this.bu()&&jm(this)}; g.q.focus=function(){this.J.focus()}; g.q.NP=function(){g.cL.prototype.NP.call(this);I4h(this)};g.A(MTL,js);g.q=MTL.prototype;g.q.NP=function(){mws(this);js.prototype.NP.call(this)}; g.q.uE=function(V){V.target!==this.dismissButton.element&&(this.Uz(!1),this.U.Os("innertubeCommand",this.onClickCommand))}; g.q.BJ=function(){this.xw=!0;this.Uz(!0);this.kt()}; g.q.pkX=function(V){this.L=V;this.kt()}; g.q.onVideoDataChange=function(V,t){if(V=!!t.videoId&&this.videoId!==t.videoId)this.videoId=t.videoId,this.xw=!1,this.zU=!0,this.C=this.wk=!1,mws(this),B00(this,!1),this.S=this.J=!1,rB(this),ghw(this);if(V||!t.videoId)this.Ij=this.W=!1;var x,u;if(t==null?0:(x=t.getPlayerResponse())==null?0:(u=x.videoDetails)==null?0:u.isLiveContent)this.e3(!1);else{var Z,P,K;t=g.l((Z=t.getWatchNextResponse())==null?void 0:(P=Z.playerOverlays)==null?void 0:(K=P.playerOverlayRenderer)==null?void 0:K.productsInVideoOverlayRenderer, y_7);this.L=this.enabled=!1;if(t){if(Z=t==null?void 0:t.featuredProductsEntityKey){P=g.x8.getState().entities;var R;if((R=pA(P,"featuredProductsEntity",Z))==null?0:R.productsData){this.e3(!1);return}}this.enabled=!0;if(!this.W){var f;R=(f=t.badgeInteractionLogging)==null?void 0:f.trackingParams;(this.W=!!R)&&this.U.setTrackingParams(this.badge.element,R||null)}if(!this.Ij){var b;if(this.Ij=!((b=t.dismissButton)==null||!b.trackingParams)){var E;this.U.setTrackingParams(this.dismissButton.element,((E= t.dismissButton)==null?void 0:E.trackingParams)||null)}}t.isContentForward&&(f=t.productsData,B00(this,!0),ghw(this),f=zQh(this,f),b=[],f.length>0&&b.push(f[0]),f.length>1&&(E=new g.e({Y:"div",V:"ytp-suggested-action-more-products-icon"}),g.y(this,E),b.push(E),b.push.apply(b,g.v(f.slice(1)))),this.B=new g.e({Y:"div",D:b,V:"ytp-suggested-action-content-forward-container"}),g.y(this,this.B),this.BX.element.append(this.B.element));this.text=g.FX(t.text);var k;if(f=(k=t.dismissButton)==null?void 0:k.a11yLabel)this.dk= g.FX(f);this.onClickCommand=t.onClickCommand;this.timing=t.timing;this.gL()}B1C(this);yZ(this);this.kt()}}; g.q.hT=function(){return!this.L&&this.enabled&&!this.xw&&!this.U.XJ()&&!this.w6&&(this.C||this.zU)}; g.q.G5=function(V){js.prototype.G5.call(this,V);if(this.J||this.S)this.timing&&aS(this.timing.preview)&&(this.J=!1,rB(this),this.S=!1,rB(this),this.U.CR("shopping_overlay_preview_collapsed"),this.U.CR("shopping_overlay_preview_expanded"),V=TM(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),aS(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.U.CR("shopping_overlay_expanded"),V.end=this.timing.expanded.endSec*1E3),this.U.gL([V])), this.wk=!0,yZ(this);rB(this)}; g.q.e3=function(V){(this.C=V)?(cJ(this),yZ(this,!1)):(mws(this),this.L1.start());this.kt()}; g.q.gL=function(V){var t=this.timing;V=(V===void 0?0:V)+this.U.getCurrentTime();var x=[],u=t.visible,Z=t.preview;t=t.expanded;aS(u)&&(Lq9(u,V),x.push(TM(u.startSec,u.endSec,"shopping_overlay_visible")));aS(Z)&&(Lq9(Z,V),u=Z.startSec+1,x.push(TM(Z.startSec,u,"shopping_overlay_preview_collapsed")),x.push(TM(u,Z.endSec,"shopping_overlay_preview_expanded")));aS(t)&&(Lq9(t,V),x.push(TM(t.startSec,t.endSec,"shopping_overlay_expanded")));this.U.gL(x)};g.A(a40,g.e); a40.prototype.ZS=function(){var V=this.api.K();this.RC(g.zo(V)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.iq);var t=this.api.getVideoData(),x=!1;this.api.getPresentingPlayerType()===2?x=!!t.videoId&&!!t.isListed&&!!t.author&&!!t.w6&&!!t.profilePicture:g.zo(V)&&(x=!!t.videoId&&!!t.w6&&!!t.profilePicture&&!g.th(t)&&!V.N&&!(V.C&&this.api.getPlayerSize().width<200));var u=t.profilePicture;V=g.zo(V)?t.expandedTitle:t.author;u=u===void 0? "":u;V=V===void 0?"":V;x?(this.S!==u&&(this.J.style.backgroundImage="url("+u+")",this.S=u),this.updateValue("channelLogoLabel",g.Lm("Foto do canal $CHANNEL_NAME",{CHANNEL_NAME:V})),g.OU(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.NK(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.J,x&&this.G);this.api.logVisibility(this.channelName,x&&this.G);this.subscribeButton&&(this.subscribeButton.channelId=t.Qm);this.updateValue("expandedTitle",t.expandedTitle)};g.A(WB,g.cL);WB.prototype.show=function(){g.cL.prototype.show.call(this);this.J.start()}; WB.prototype.hide=function(){g.cL.prototype.hide.call(this);this.J.stop()}; WB.prototype.HN=function(V,t){V==="dataloaded"&&((this.T9=t.T9,this.CG=t.CG,isNaN(this.T9)||isNaN(this.CG))?this.N&&(this.U.CR("intro"),this.U.removeEventListener(g.km("intro"),this.L),this.U.removeEventListener(g.i4("intro"),this.B),this.U.removeEventListener("onShowControls",this.W),this.hide(),this.N=!1):(this.U.addEventListener(g.km("intro"),this.L),this.U.addEventListener(g.i4("intro"),this.B),this.U.addEventListener("onShowControls",this.W),V=new g.b4(this.T9,this.CG,{priority:9,namespace:"intro"}), this.U.gL([V]),this.N=!0))};g.A(oS,g.e);oS.prototype.onClick=function(){this.U.X_()}; oS.prototype.ZS=function(){var V=!0;g.zo(this.U.K())&&(V=V&&this.U.XX().getPlayerSize().width>=480);this.RC(V);this.updateValue("icon",this.U.F$()?{Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"path",m_:!0,j:{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"}}]}: {Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{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.A(T0j,g.e);T0j.prototype.NP=function(){this.J=null;g.e.prototype.NP.call(this)};g.A(nY,g.e);nY.prototype.onClick=function(){this.U.Os("innertubeCommand",this.S)}; nY.prototype.X=function(V){V!==this.B&&(this.update({title:V,ariaLabel:V}),this.B=V);V?this.show():this.hide()}; nY.prototype.C=function(){this.J.disabled=this.S==null;g.Am(this.J,"ytp-chapter-container-disabled",this.J.disabled);this.AJ()};g.A(cB,nY);cB.prototype.onClickCommand=function(V){g.l(V,tM)&&this.AJ()}; cB.prototype.updateVideoData=function(V,t){var x,u,Z;V=g.l((x=t.getWatchNextResponse())==null?void 0:(u=x.playerOverlays)==null?void 0:(Z=u.playerOverlayRenderer)==null?void 0:Z.decoratedPlayerBarRenderer,M0);x=g.l(V==null?void 0:V.playerBarActionButton,g.nd);this.U.T("web_player_updated_entrypoint")&&(this.L=Gv(x==null?void 0:x.text));this.S=x==null?void 0:x.command;nY.prototype.C.call(this)}; cB.prototype.AJ=function(){var V=this.U.T("web_player_updated_entrypoint")?this.L:"",t=this.W.J,x,u=((x=this.U.getLoopRange())==null?void 0:x.type)==="clips";if(t.length>1&&!u){V=this.U.getProgressState().current*1E3;x=vB(t,V);V=t[x].title||"Cap\u00edtulos";if(x!==this.currentIndex||this.N)this.U.Os("innertubeCommand",t[x].onActiveCommand),this.currentIndex=x;this.N=!1}else this.N=!0;nY.prototype.X.call(this,V)};g.A(yN,g.e);yN.prototype.B=function(V){g.J(V.state,32)?ohK(this,this.api.vQ()):this.iq&&(g.J(V.state,16)||g.J(V.state,1))||this.J.hide()}; yN.prototype.dh=function(){var V=this.api.getPlayerStateObject();(g.J(V,32)||g.J(V,16))&&nhj(this)}; yN.prototype.L=function(){this.N=NaN;nhj(this)}; yN.prototype.hide=function(){this.S&&ohK(this,null);g.e.prototype.hide.call(this)};g.A(ck0,g.e);g.q=ck0.prototype;g.q.onClick=function(){var V=this;if(this.U.K().P$||this.U.K().C){this.U.logClick(this.element);try{this.U.toggleFullscreen().catch(function(t){V.ue(t)})}catch(t){this.ue(t)}}else jm(this.message,this.element,!0)}; g.q.ue=function(V){String(V).includes("fullscreen error")?g.lf(V):g.jv(V);this.FR()}; g.q.FR=function(){this.disable();this.message.aC(this.element,!0)}; g.q.dV=function(){gi()===this.U.getRootNode()?this.N.start():(this.N.stop(),this.message&&this.message.hide())}; g.q.G3=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var V=window.screen.width*.9,t=window.screen.height*.9,x=Math.max(window.outerWidth,window.innerWidth),u=Math.max(window.outerHeight,window.innerHeight);if(x>u!==V>t){var Z=x;x=u;u=Z}V>x&&t>u&&this.FR()}}; g.q.disable=function(){var V=this;if(!this.message){var t=(Ly(["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.cL(this.U,{Y:"div",vX:["ytp-popup","ytp-generic-popup"],j:{role:"alert",tabindex:"0"},D:[t[0],{Y:"a",j:{href:"https://support.google.com/youtube/answer/6276924", target:this.U.K().X},mw:t[2]},t[4]]},100,!0);this.message.hide();g.y(this,this.message);this.message.subscribe("show",function(x){V.S.Pu(V.message,x)}); g.aE(this.U,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.J)();this.J=null}}; g.q.ZS=function(){var V=eOs(this.U),t=this.U.K().C&&this.U.getPlayerSize().width<250;this.RC(V&&!t);var x;((x=this.U.K())==null?0:x.T("embeds_use_parent_visibility_in_ve_logging"))?this.U.logVisibility(this.element,this.iq&&this.G):this.U.logVisibility(this.element,this.iq)}; g.q.pk=function(V){if(V){var t={Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"g",V:"ytp-fullscreen-button-corner-2",D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{Y:"g",V:"ytp-fullscreen-button-corner-3",D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{Y:"g",V:"ytp-fullscreen-button-corner-0",D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{Y:"g", V:"ytp-fullscreen-button-corner-1",D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};V=g.Fb(this.U,"Sair da tela inteira","f");this.update({"data-title-no-tooltip":"Sair da tela inteira"});document.activeElement===this.element&&this.U.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(x){g.lf(x)})}else t={Y:"svg", j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"g",V:"ytp-fullscreen-button-corner-0",D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{Y:"g",V:"ytp-fullscreen-button-corner-1",D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{Y:"g",V:"ytp-fullscreen-button-corner-2",D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{Y:"g",V:"ytp-fullscreen-button-corner-3", D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},V=g.Fb(this.U,"Tela inteira","f"),this.update({"data-title-no-tooltip":"Tela inteira"});V=this.message?null:V;this.update({title:V,icon:t});this.S.z4().lT()}; g.q.NP=function(){this.message||((0,this.J)(),this.J=null);g.e.prototype.NP.call(this)}; g.q.KI=function(V){g.e.prototype.KI.call(this,V);var t;((t=this.U.K())==null?0:t.T("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.iq&&V)};g.A(jy,g.e);jy.prototype.onClick=function(){this.U.logClick(this.element);this.U.seekBy(this.J,!0);var V=this.J>0?1:-1,t=Math.abs(this.J),x=this.U.cL().cD;x&&pY(x,V,t);this.S.isActive()?this.N=!0:(V=["ytp-jump-spin"],this.J<0&&V.push("backwards"),this.element.classList.add.apply(this.element.classList,g.v(V)),g.RO(this.S))};g.A(l9,nY);l9.prototype.onClickCommand=function(V){g.l(V,njE)&&this.AJ()}; l9.prototype.updateVideoData=function(){var V,t;this.S=(V=jCq(this))==null?void 0:(t=V.onTap)==null?void 0:t.innertubeCommand;nY.prototype.C.call(this)}; l9.prototype.AJ=function(){var V="",t=this.W.B,x,u=(x=jCq(this))==null?void 0:x.headerTitle;x=u?g.FX(u):"";var Z;u=((Z=this.U.getLoopRange())==null?void 0:Z.type)==="clips";t.length>1&&!u&&(V=this.U.getProgressState().current*1E3,Z=w5h(t,V),V=Z!=null?t[Z].title:x,Z!=null&&Z!==this.currentIndex&&(this.U.Os("innertubeCommand",t[Z].onActiveCommand),this.currentIndex=Z));nY.prototype.X.call(this,V)};g.A(HB,g.e);HB.prototype.onClick=function(){this.U.Os("onCollapseMiniplayer");this.U.logClick(this.element)}; HB.prototype.ZS=function(){this.visible=!this.U.isFullscreen();this.RC(this.visible);this.U.logVisibility(this.element,this.visible&&this.G)}; HB.prototype.KI=function(V){g.e.prototype.KI.call(this,V);this.U.logVisibility(this.element,this.visible&&V)};g.A(l40,g.e);g.q=l40.prototype;g.q.j1=function(V){this.visible=V.width>=300||this.Us;this.RC(this.visible);this.U.logVisibility(this.element,this.visible&&this.G)}; g.q.PgD=function(){this.U.K().dk?this.U.isMuted()?this.U.unMute():this.U.mute():jm(this.message,this.element,!0);this.U.logClick(this.element)}; g.q.onVolumeChange=function(V){this.setVolume(V.volume,V.muted)}; g.q.setVolume=function(V,t){var x=this,u=t?0:V/100,Z=this.U.K();V=u===0?1:V>50?1:0;if(this.B!==V){var P=this.wk;isNaN(P)?Dwj(this,V):kM8(this.cX,function(R){Dwj(x,P+(x.B-P)*R)},250); this.B=V}u=u===0?1:0;if(this.W!==u){var K=this.X;isNaN(K)?eQ0(this,u):kM8(this.Ij,function(R){eQ0(x,K+(x.W-K)*R)},250); this.W=u}Z.dk&&(Z=g.Fb(this.U,"Sem \u00e1udio","m"),u=g.Fb(this.U,"Reativar o som","m"),this.updateValue("title",t?u:Z),this.update({"data-title-no-tooltip":t?"Reativar o som":"Sem \u00e1udio"}),this.tooltip.lT())}; g.q.KI=function(V){g.e.prototype.KI.call(this,V);this.U.logVisibility(this.element,this.visible&&V)}; var Htj=["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"],UwK=["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.A(g.Ud,g.e);g.q=g.Ud.prototype;g.q.onStateChange=function(V){this.Hk(V.state);var t;((t=this.U.K())==null?0:t.T("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.iq&&this.G)}; g.q.Hk=function(V){var t=g.XL(this.U.getVideoData()),x=!1;V.isOrWillBePlaying()?V=t?4:2:g.J(V,2)?(V=3,x=t):V=1;this.element.disabled=x;if(this.J!==V){t=null;switch(V){case 2:t=g.Fb(this.U,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:t="Reiniciar";this.update({"data-title-no-tooltip":"Reiniciar"});break;case 1:t=g.Fb(this.U,"Reproduzir","k");this.update({"data-title-no-tooltip":"Reproduzir"});break;case 4:t="Interromper reprodu\u00e7\u00e3o ao vivo",this.update({"data-title-no-tooltip":"Interromper reprodu\u00e7\u00e3o ao vivo"})}V=== 3?this.update({title:t,icon:dwl(V)}):(this.update({title:t}),(t=dwl(V))&&this.J&&this.J!==3?OY0(this.transition,this.element,t):this.updateValue("icon",t));this.tooltip.lT();this.J=V}}; g.q.onVideoDataChange=function(){g.Am(this.element,"ytp-play-button-playlist",g.BL(this.U))}; g.q.HY=function(V){this.U.logClick(this.element);if(this.U.getPlayerStateObject().isOrWillBePlaying())this.U.pauseVideo();else{if(this.U.isMinimized()&&this.U.getPlayerStateObject().isCued()){var t={},x;if((x=this.U.getVideoData())==null?0:x.B)t.cttAuthInfo={token:this.U.getVideoData().B,videoId:this.U.getVideoData().videoId};J4("direct_playback",t);this.U.d1().timerName="direct_playback"}else this.J===3&&g1(this.U.d1());this.U.playVideo()}this.U.isMinimized()&&(V==null?void 0:V.type)==="click"&& this.element.blur()}; g.q.KI=function(V){g.e.prototype.KI.call(this,V);var t;((t=this.U.K())==null?0:t.T("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.iq&&V)};g.A(g.DU,g.e);g.q=g.DU.prototype;g.q.onVideoDataChange=function(){Jk9(this);this.W&&(this.vk(this.W),this.W=null);this.videoData=this.U.getVideoData(1);if(this.playlist=this.U.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.W=this.Z(this.U,"progresssync",this.WI);this.N=hQL(this);CE8(this);this.Fa(this.U.XX().getPlayerSize())}; g.q.Fa=function(V){V=V===void 0?this.U.XX().getPlayerSize():V;var t,x=((t=this.U.getLoopRange())==null?void 0:t.type)==="clips";V=(g.BL(this.U)||this.J&&g.rr(this.U)&&!this.U.T("web_hide_next_button")||wH9(this))&&!x&&(this.J||V.width>=400);this.RC(V);this.U.logVisibility(this.element,V)}; g.q.onClick=function(V){this.U.logClick(this.element);var t=!0;this.L?t=g.P3(V,this.U):V.preventDefault();t&&(this.J&&this.U.getPresentingPlayerType()===5?this.U.publish("ytoprerollinternstitialnext"):this.J?(g1(this.U.d1()),this.U.publish("playlistnextbuttonclicked",this.element),this.U.nextVideo(!0)):this.N?this.U.seekTo(0):(g1(this.U.d1()),this.U.publish("playlistprevbuttonclicked",this.element),this.U.previousVideo(!0)))}; g.q.WI=function(){var V=hQL(this);V!==this.N&&(this.N=V,CE8(this))}; g.q.NP=function(){this.S&&(this.S(),this.S=null);Jk9(this);g.e.prototype.NP.call(this)};g.A(tZ8,g.e);g.q=tZ8.prototype;g.q.YA=function(V){this.tU(V.pageX);this.UN(V.pageX+V.deltaX);xOT(this)}; g.q.tU=function(V){this.Ij=V-this.Es}; g.q.UN=function(V){V-=this.Es;!isNaN(this.Ij)&&this.thumbnails.length>0&&(this.X=V-this.Ij,this.thumbnails.length>0&&this.X!==0&&(this.N=this.C+this.X,V=qF1(this,this.N),this.N<=this.J/2&&this.N>=KM4(this)?(this.api.seekTo(V,!1,void 0,void 0,25),g.Ao(this.zU,"transform","translateX("+(this.N-this.J/2)+"px)"),VZT(this,V)):this.N=this.C))}; g.q.z8=function(){this.wk&&(this.wk.YN=!0);var V=(0,g.Tu)()-this.dk<300;if(Math.abs(this.X)<5&&!V){this.dk=(0,g.Tu)();V=this.Ij+this.X;var t=this.J/2-V;this.tU(V);this.UN(V+t);xOT(this);this.api.logClick(this.B)}xOT(this)}; g.q.ND=function(){ey(this,this.api.getCurrentTime())}; g.q.play=function(V){this.api.seekTo(qF1(this,this.N),void 0,void 0,void 0,26);this.api.playVideo();V&&this.api.logClick(this.playButton)}; g.q.onExit=function(V){this.api.seekTo(this.L1,void 0,void 0,void 0,63);this.api.playVideo();V&&this.api.logClick(this.dismissButton)}; g.q.lq=function(V,t){this.Es=V;this.J=t;ey(this,this.api.getCurrentTime())}; g.q.enable=function(){this.isEnabled||(this.isEnabled=!0,this.L1=this.api.getCurrentTime(),VZT(this,this.L1),g.Am(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.BX=this.Z(this.element,"wheel",this.YA),this.logVisibility(this.isEnabled))}; g.q.disable=function(){this.isEnabled=!1;this.hide();g.Am(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.BX&&this.vk(this.BX);this.logVisibility(this.isEnabled)}; g.q.reset=function(){this.disable();this.W=[];this.Us=!1}; g.q.logVisibility=function(V){this.api.logVisibility(this.element,V);this.api.logVisibility(this.B,V);this.api.logVisibility(this.dismissButton,V);this.api.logVisibility(this.playButton,V)}; g.q.NP=function(){for(;this.S.length;){var V=void 0;(V=this.S.pop())==null||V.dispose()}g.e.prototype.NP.call(this)}; g.A(uYL,g.e);g.A(Zas,g.e);g.A(Rf9,g.e);g.A(dB,g.e);dB.prototype.m0=function(V){return V==="PLAY_PROGRESS"?this.C:V==="LOAD_PROGRESS"?this.L:V==="LIVE_BUFFER"?this.B:this.N};bah.prototype.update=function(V,t,x,u){x=x===void 0?0:x;this.width=t;this.W=x;this.J=t-x-(u===void 0?0:u);this.position=g.EY(V,x,x+this.J);this.N=this.position-x;this.S=this.N/this.J};g.A(EbC,g.e);g.A(g.hf,g.Iz);g.q=g.hf.prototype; g.q.nW=function(){var V=!1,t=this.api.getVideoData();if(!t)return V;this.api.CR("timedMarkerCueRange");Oal(this);for(var x=g.G(t.HX),u=x.next();!u.done;u=x.next()){u=u.value;var Z=void 0,P=(Z=this.L1[u])==null?void 0:Z.markerType;Z=void 0;var K=(Z=this.L1[u])==null?void 0:Z.markers;if(!K)break;if(P==="MARKER_TYPE_TIMESTAMPS"){V=g.G(K);for(P=V.next();!P.done;P=V.next()){Z=P.value;P=new EbC;K=void 0;P.title=((K=Z.title)==null?void 0:K.simpleText)||"";P.timeRangeStartMillis=Number(Z.startMillis);P.J= Number(Z.durationMillis);var R=K=void 0;P.onActiveCommand=(R=(K=Z.onActive)==null?void 0:K.innertubeCommand)!=null?R:void 0;GLl(this,P)}IaC(this,this.B);V=this.B;P=this.bv;Z=[];K=null;for(R=0;Rf&&(K.end=f);f=xwC(f,f+E);Z.push(f);K=f;P[f.id]=V[R].onActiveCommand}}this.api.gL(Z);this.a_=this.L1[u];V=!0}else if(P==="MARKER_TYPE_HEATMAP"){u=this.L1[u];E=b=Z=f=R=K=void 0;if(u&& u.markers){P=(Z=(E=u.markersMetadata)==null?void 0:(b=E.heatmapMetadata)==null?void 0:b.minHeightDp)!=null?Z:0;Z=(K=(f=u.markersMetadata)==null?void 0:(R=f.heatmapMetadata)==null?void 0:R.maxHeightDp)!=null?K:60;K=this.J.length;R=null;for(f=0;f=E&&p<=k&&b.push(N)}Z>0&&(this.wk.style.height= Z+"px");E=this.W[f];k=b;N=P;var I=Z,L=f===0;L=L===void 0?!1:L;faT(E,I);O=k;p=E.J;L=L===void 0?!1:L;var M=1E3/O.length,z=[];z.push({x:0,y:100});for(var Y=0;Y0&&(R=b[b.length-1])}g.wB(this)}Z= void 0;P=[];if(u=(Z=u.markersDecoration)==null?void 0:Z.timedMarkerDecorations)for(u=g.G(u),Z=u.next();!Z.done;Z=u.next())Z=Z.value,f=R=K=void 0,P.push({visibleTimeRangeStartMillis:(K=Z.visibleTimeRangeStartMillis)!=null?K:-1,visibleTimeRangeEndMillis:(R=Z.visibleTimeRangeEndMillis)!=null?R:-1,decorationTimeMillis:(f=Z.decorationTimeMillis)!=null?f:NaN,label:Z.label?g.FX(Z.label):""});u=P;this.heatMarkersDecorations=u}}t.ws=this.B;g.Am(this.element,"ytp-timed-markers-enabled",V);return V}; g.q.lq=function(){g.wB(this);xt(this);IaC(this,this.B);if(this.S){var V=g.mg(this.element).x||0;this.S.lq(V,this.L)}}; g.q.onClickCommand=function(V){if(V=g.l(V,tM)){var t=V.key;V.isVisible&&t&&MZz(this,t)}}; g.q.q18=function(V){this.api.Os("innertubeCommand",this.bv[V.id])}; g.q.AJ=function(){xt(this);var V=this.api.getCurrentTime();(Vthis.clipEnd)&&this.vz()}; g.q.fY=function(V){if(!V.defaultPrevented){var t=!1;switch(V.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);t=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);t=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);t=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);t=!0;break;case 38:this.api.T("enable_key_press_seek_logging")&&RP(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);t=!0;break;case 40:this.api.T("enable_key_press_seek_logging")&&RP(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),t=!0}t&&V.preventDefault()}}; g.q.HN=function(V,t){this.updateVideoData(t,V==="newdata")}; g.q.ly=function(){this.HN("newdata",this.api.getVideoData())}; g.q.updateVideoData=function(V,t){t=t===void 0?!1:t;var x=!!V&&V.s1();if(x&&(V1(V)||mOl(this)?this.AZ=!1:this.AZ=V.allowLiveDvr,g.Am(this.api.getRootNode(),"ytp-enable-live-buffer",!(V==null||!V1(V))),this.api.T("enable_custom_playhead_parsing"))){var u,Z,P,K=g.l((u=V.getWatchNextResponse())==null?void 0:(Z=u.playerOverlays)==null?void 0:(P=Z.playerOverlayRenderer)==null?void 0:P.decoratedPlayerBarRenderer,M0);if(K==null?0:K.progressColor)for(u=0;u0;)this.W.pop().dispose();this.heatMarkersDecorations=[];this.gk={};var k;(k=this.S)==null||k.reset();iH(this);g.Am(this.api.getRootNode(),"ytp-fine-scrubbing-exp",Jf(this))}else this.vz();this.nJ()}if(V){var O;k=((O=this.fI)==null?void 0:O.type)==="clips";if(O=!V.isLivePlayback){O=this.api.getVideoData();t=g.g8(O);x=NTl(O);var N;O=t!=null||x!=null&&x.length>0||((N=O.SN)== null?void 0:N.length)>0}if(O&&!k){N=this.api.getVideoData();k=g.g8(N);O=!1;if(k==null?0:k.markersMap){O=this.api.getVideoData();var p;O.jh=((p=k.visibleOnLoad)==null?void 0:p.key)||O.jh;p=g.G(k.markersMap);for(k=p.next();!k.done;k=p.next())k=k.value,k.key&&k.value&&(this.gk[k.key]=k.value,k.value.onChapterRepeat&&(O.wE=k.value.onChapterRepeat));O.jh!=null&&MZz(this,O.jh);O=!0}var I;if(((I=N.SN)==null?void 0:I.length)>0){I=g.x8.getState().entities;p=g.G(N.SN);for(k=p.next();!k.done;k=p.next())if(k= k.value,x=void 0,t=(x=pA(I,"macroMarkersListEntity",k))==null?void 0:x.markersList,R=x=void 0,((x=t)==null?void 0:x.markerType)==="MARKER_TYPE_TIMESTAMPS"||((R=t)==null?void 0:R.markerType)==="MARKER_TYPE_HEATMAP")this.L1[k]=t;O=this.nW()||O}!O&&(I=NTl(N))&&(ABK(this,I),N.ke=this.J,pGz(this));YFj(this,null);V.Nt&&this.W.length===0&&(V=V.Nt,I=V.key,V.isVisible&&I&&MZz(this,I))}else kL9(this),Oal(this)}xt(this)}; g.q.Xh=function(V){this.C&&!g.J(V.state,32)&&this.api.getPresentingPlayerType()!==3&&this.C.cancel();var t;((t=this.S)==null?0:t.isEnabled)&&g.J(V.state,8)&&this.api.pauseVideo();this.api.T("web_always_show_scrubber")&&(V=this.api.getPresentingPlayerType()===2||!this.api.tB()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0,g.Am(this.U1,"ytp-hide-scrubber-button",V))}; g.q.MO=function(V){var t=!!this.fI!==!!V,x=this.fI;this.fI=V;YFj(this,x);(V==null?void 0:V.type)!=="clips"&&V||(V?(this.updateValue("clipstarticon",LHs()),this.updateValue("clipendicon",LHs()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",s4l()),this.updateValue("clipendicon",OqL()),this.updateValue("clipstarttitle","Assista o v\u00eddeo completo"),this.updateValue("clipendtitle","Assista o v\u00eddeo completo")),t&&(this.updateVideoData(this.api.getVideoData(), !0),g.wB(this)),fW(this));PI(this,this.X,this.HX)}; g.q.qZ1=function(V,t,x){var u=g.mg(this.element),Z=t8(this).J,P=x?x.getAttribute("data-tooltip"):void 0,K=x?x.getAttribute("data-position"):void 0,R=x?x.getAttribute("data-offset-y"):void 0;R=R?Number(R):0;K&&(V=lP(this.N,Number(x.getAttribute("data-position")),0)*Z+g.mg(this.progressBar).x);this.yC.x=V-u.x;this.yC.y=t-u.y;V=t8(this);x=qJ(this,V);t=0;var f;if((f=this.api.getVideoData())==null?0:V1(f))(f=this.api.getProgressState().seekableEnd)&&x>f&&(x=f,V.position=lP(this.N,f)*t8(this).J),t=this.N.S; mOl(this)&&(t=this.N.S);f=P||g.Q$(this.AZ?x-this.N.J:x-t);t=V.position+this.w1;x-=this.api.SB();var b;if((b=this.S)==null||!b.isEnabled)if(this.api.vQ()){if(this.J.length>1){b=KW(this,this.yC.x,!0);if(!this.fI)for(u=0;u1)for(u=0;u0)for(b=this.yC.x,u=g.G(this.B),Z=u.next();!Z.done;Z=u.next())Z=Z.value,K=VL(this,Z.timeRangeStartMillis/ (this.N.J*1E3),t8(this)),g.Am(Z.element,"ytp-timed-marker-hover",K<=b&&K+6>=b);u=this.tooltip.scale;R=(isNaN(R)?0:R)-45*u;this.api.T("web_key_moments_markers")?this.a_?(b=w5h(this.B,x*1E3),b=b!=null?this.B[b].title:""):(b=vB(this.J,x*1E3),b=this.J[b].title):(b=vB(this.J,x*1E3),b=this.J[b].title);b||(R+=16*u);this.tooltip.scale===.6&&(this.api.T("web_cairo_modern_miniplayer")?(R=this.api.XX().getPlayerSize().height-225,R=b?R+110:R+110+16,this.api.T("web_cairo_modern_miniplayer_inset_progress_bar")&& (R-=12)):R=b?110:126);u=vB(this.J,x*1E3);this.zU=QAj(this,x,u)?u:QAj(this,x,u+1)?u+1:-1;g.Am(this.api.getRootNode(),"ytp-progress-bar-snap",this.zU!==-1&&this.J.length>1);u=!1;Z=g.G(this.heatMarkersDecorations);for(K=Z.next();!K.done;K=Z.next()){K=K.value;var E=x*1E3;E>=K.visibleTimeRangeStartMillis&&E<=K.visibleTimeRangeEndMillis&&(b=K.label,f=g.Q$(K.decorationTimeMillis/1E3),u=!0)}this.q6!==u&&(this.q6=u,this.api.logVisibility(this.r9,this.q6));g.Am(this.api.getRootNode(),"ytp-progress-bar-decoration", u);u=160*this.tooltip.scale*2;Z=b.length*(this.Ij?8.55:5.7);Z=Z<=u?Z:u;K=Z<160*this.tooltip.scale;u=3;!K&&Z/2>V.position&&(u=1);!K&&Z/2>this.L-V.position&&(u=2);this.api.K().C&&(R-=10);this.W.length&&this.W[0].s1&&(R-=14*(this.Ij?2:1),this.BX||(this.BX=!0,this.api.logVisibility(this.wk,this.BX)));var k;if(Jf(this)&&(((k=this.S)==null?0:k.isEnabled)||this.xw>0)){var O;R-=((O=this.S)==null?0:O.isEnabled)?bH(this):this.xw}k=void 0;Jf(this)&&(k="Puxe para cima para uma busca precisa",this.Us||(this.Us= !0,this.api.logVisibility(this.Fz,this.Us)));this.tooltip.Qo(t,x,f,!!P,R,b,u,k)}else this.tooltip.Qo(t,x,f,!!P,R);g.OU(this.api.getRootNode(),"ytp-progress-bar-hover");BTl(this)}; g.q.O9C=function(){this.nJ();g.NK(this.api.getRootNode(),"ytp-progress-bar-hover");this.BX&&(this.BX=!1,this.api.logVisibility(this.wk,this.BX));this.Us&&(this.Us=!1,this.api.logVisibility(this.Fz,this.Us))}; g.q.H9j=function(V,t){Jf(this)&&this.S&&(this.S.Us?ey(this.S,this.api.getCurrentTime()):PKC(this.S),this.S.show(),g.Am(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.S.isEnabled));this.o5&&(this.o5.dispose(),this.o5=null);this.iT=t;this.SH=this.api.getCurrentTime();this.J.length>1&&this.zU!==-1?this.api.seekTo(this.J[this.zU].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(qJ(this,t8(this)),!1,void 0,void 0,7);g.OU(this.element,"ytp-drag");(this.Ve=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}; g.q.lTC=function(){if(Jf(this)&&this.S){var V=bH(this);this.xw>=V*.5?(this.S.enable(),ey(this.S,this.api.getCurrentTime()),yB0(this,V)):iH(this)}if(g.J(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var t;if((t=this.S)==null?0:t.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.J.length>1&&this.zU!==-1)this.api.T("html5_enable_progress_bar_slide_seek_logging")&&RP(this,this.SH,this.J[this.zU].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.J[this.zU].startTime/1E3,void 0,void 0,void 0,7);else{V=qJ(this,t8(this));this.api.T("html5_enable_progress_bar_slide_seek_logging")&&RP(this,this.SH,V,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(V,void 0,void 0,void 0,7);t=g.G(this.heatMarkersDecorations);for(var x=t.next();!x.done;x=t.next())x=x.value,V*1E3>=x.visibleTimeRangeStartMillis&&V*1E3<=x.visibleTimeRangeEndMillis&& this.api.logClick(this.r9)}g.NK(this.element,"ytp-drag");this.Ve&&!g.J(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.q.XkU=function(V,t){V=t8(this);V=qJ(this,V);this.api.seekTo(V,!1,void 0,void 0,7);var x;Jf(this)&&((x=this.S)==null?0:x.Us)&&(ey(this.S,V),this.S.isEnabled||(x=bH(this),this.xw=g.EY(this.iT-t-10,0,x),yB0(this,this.xw)))}; g.q.nJ=function(){this.tooltip.Ks()}; g.q.JG=function(){this.fI||(this.updateValue("clipstarticon",iql()),this.updateValue("clipendicon",iql()),g.OU(this.element,"ytp-clip-hover"))}; g.q.R0=function(){this.fI||(this.updateValue("clipstarticon",s4l()),this.updateValue("clipendicon",OqL()),g.NK(this.element,"ytp-clip-hover"))}; g.q.vz=function(){this.clipStart=0;this.clipEnd=Infinity;fW(this);PI(this,this.X,this.HX)}; g.q.agw=function(V){V=g.G(V);for(var t=V.next();!t.done;t=V.next())if(t=t.value,t.visible){var x=t.getId();if(!this.Es[x]){var u=g.uc("DIV");t.tooltip&&u.setAttribute("data-tooltip",t.tooltip);this.Es[x]=t;this.P$[x]=u;g.ky(u,t.style);aaL(this,x);this.api.K().T("disable_ad_markers_on_content_progress_bar")||this.J[0].W.appendChild(u)}}else cB1(this,t)}; g.q.gDD=function(V){V=g.G(V);for(var t=V.next();!t.done;t=V.next())cB1(this,t.value)}; g.q.ES=function(V){this.S&&(this.S.onExit(V!=null),iH(this))}; g.q.NK=function(V){this.S&&(this.S.play(V!=null),iH(this))}; g.q.CTs=function(){jAh(this,this.api.tB())}; g.q.NP=function(){jAh(this,!1);g.Iz.prototype.NP.call(this)};g.A(O1,g.e);O1.prototype.isActive=function(){return!!this.U.getOption("remote","casting")}; O1.prototype.ZS=function(){var V=!1;this.U.getOptions().includes("remote")&&(V=this.U.getOption("remote","receivers").length>1);this.RC(V&&this.U.XX().getPlayerSize().width>=400);this.U.logVisibility(this.element,this.iq);var t=1;V&&this.isActive()&&(t=2);if(this.J!==t){this.J=t;switch(t){case 1:this.updateValue("icon",{Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{Y:"path",m_:!0,j:{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.kuL())}g.Am(this.element,"ytp-remote-button-active",this.isActive())}}; O1.prototype.S=function(){if(this.U.getOption("remote","quickCast"))this.U.setOption("remote","quickCast",!0);else{var V=this.W$,t=this.element;if(V.bu())V.Gc();else{V.initialize();a:{var x=g.G(V.wb.items);for(var u=x.next();!u.done;u=x.next())if(u=u.value,u.priority===1){x=u;break a}x=null}x&&(x.open(),V.aC(t));V.aC(t)}}this.U.logClick(this.element)};g.A(s1,g.e);s1.prototype.J=function(V){var t=this.U.K(),x=400;this.U.T("web_player_small_hbp_settings_menu")&&t.B?x=300:t.C&&(x=200);V=this.S&&V.width>=x;this.RC(V);this.U.T("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,V&&this.G):this.U.logVisibility(this.element,V)}; s1.prototype.N=function(){if(this.W$.iq)this.W$.Gc();else{var V=g.nj(this.U.Jl());V&&!V.loaded&&(V.qR("tracklist",{includeAsr:!0}).length||V.load());this.U.logClick(this.element);this.W$.aC(this.element)}}; s1.prototype.updateBadge=function(){var V=this.U.isHdr(),t=this.U.getPresentingPlayerType(),x=t!==2&&t!==3,u=g.Q1(this.U),Z=x&&!!g.Y2(this.U.Jl());t=Z&&u.displayMode===1;u=Z&&u.displayMode===2;x=(Z=t||u)||!x?null:this.U.getPlaybackQuality();g.Am(this.element,"ytp-hdr-quality-badge",V);g.Am(this.element,"ytp-hd-quality-badge",!V&&(x==="hd1080"||x==="hd1440"));g.Am(this.element,"ytp-4k-quality-badge",!V&&x==="hd2160");g.Am(this.element,"ytp-5k-quality-badge",!V&&x==="hd2880");g.Am(this.element,"ytp-8k-quality-badge", !V&&x==="highres");g.Am(this.element,"ytp-3d-badge-grey",!V&&Z&&t);g.Am(this.element,"ytp-3d-badge",!V&&Z&&u)};g.A(NJ,uB);NJ.prototype.isLoaded=function(){var V=g.Uf(this.U.Jl());return V!==void 0&&V.loaded}; NJ.prototype.ZS=function(){g.Uf(this.U.Jl())!==void 0&&this.U.getPresentingPlayerType()!==3?this.J||(this.W$.Pk(this),this.J=!0):this.J&&(this.W$.bT(this),this.J=!1);ZJ(this,this.isLoaded())}; NJ.prototype.onSelect=function(V){this.isLoaded();V?this.U.loadModule("annotations_module"):this.U.unloadModule("annotations_module");this.U.publish("annotationvisibility",V)}; NJ.prototype.NP=function(){this.J&&this.W$.bT(this);uB.prototype.NP.call(this)};g.A(pW,g.tS);pW.prototype.ZS=function(){var V=this.U.getAvailableAudioTracks();V.length>1?(this.i9(g.QV(V,this.J)),this.tracks=g.kz(V,this.J,this),this.countLabel.g9(V.length?" ("+V.length+")":""),this.publish("size-change"),this.ze(this.J(this.U.getAudioTrack())),this.enable(!0)):this.enable(!1)}; pW.prototype.SZ=function(V){g.tS.prototype.SZ.call(this,V);this.U.setAudioTrack(this.tracks[V]);this.W$.JQ()}; pW.prototype.J=function(V){return V.toString()};g.A(A8,uB); A8.prototype.S=function(){var V=this.U.getPresentingPlayerType();if(V!==2&&V!==3&&g.rr(this.U))this.J||(this.W$.Pk(this),this.J=!0,this.N.push(this.Z(this.U,"videodatachange",this.S)),this.N.push(this.Z(this.U,"videoplayerreset",this.S)),this.N.push(this.Z(this.U,"onPlaylistUpdate",this.S)),this.N.push(this.Z(this.U,"autonavchange",this.W)),V=this.U.getVideoData(),this.W(V.autonavState),this.U.logVisibility(this.element,this.J));else if(this.J){this.W$.bT(this);this.J=!1;V=g.G(this.N);for(var t=V.next();!t.done;t= V.next())this.vk(t.value)}}; A8.prototype.W=function(V){ZJ(this,V!==1)}; A8.prototype.onSelect=function(V){this.U.LB(V?2:1);this.J&&(this.U.logVisibility(this.element,this.J),this.U.logClick(this.element))}; A8.prototype.NP=function(){this.J&&this.W$.bT(this);uB.prototype.NP.call(this)};g.A(HaL,g.U5);HaL.prototype.onClick=function(V){V.preventDefault();var t,x;(t=g.O5(this.U))==null||(x=t.v2())==null||x.Gc();var u,Z;(u=g.O5(this.U))==null||(Z=u.Wt())==null||Z.aC(V.target)};g.A(UOT,g.tS);g.q=UOT.prototype; g.q.R6=function(){var V=this.U.getPresentingPlayerType();if(V!==2&&V!==3){this.zU=this.U.qB();V=this.U.getAvailableQualityLevels();if(this.J){this.W={};var t=g.$2(this.U,"getAvailableQualityData",[]);t=g.G(t);for(var x=t.next();!x.done;x=t.next())x=x.value,this.W[x.qualityLabel]=x;t=Object.keys(this.W);V[V.length-1]==="auto"&&t.push("auto");this.cX=new Set(V)}else if(this.B){x=g.$2(this.U,"getAvailableQualityData",[]);t=[];x=g.G(x);for(var u=x.next();!u.done;u=x.next())u=u.value,this.X[u.quality]= u,u.quality&&t.push(u.quality);V[V.length-1]==="auto"&&t.push("auto")}else t=V;g.Q5s(this.U)&&this.U.yI()&&t.unshift("missing-qualities");abh(this.U)&&t.unshift("inline-survey");this.i9(t);V=this.U.getVideoData().cotn?!0:!1;x=this.wk.U8();x=!g.J2(this.U.K())||!(V===void 0?0:V)||!(x===void 0||x);V=this.S;x=x===void 0?!1:x;V.i8&&g.Am(V.f1("ytp-panel-footer"),"ytp-panel-hide-footer",x===void 0?!1:x);if(t.length){this.o3();this.enable(!0);return}}this.enable(!1)}; g.q.o3=function(){if(this.J){var V=this.U.getPreferredQuality();this.cX.has(V)&&(this.L=this.U.getPlaybackQuality(),this.Ij=this.U.getPlaybackQualityLabel(),V==="auto"?(this.ze(V),this.g9(this.wy(V))):this.ze(this.Ij))}else V=this.U.getPreferredQuality(),this.options[V]&&(this.L=this.U.getPlaybackQuality(),this.ze(V),V==="auto"&&this.g9(this.wy(V)))}; g.q.SZ=function(V){if(V!=="missing-qualities"){g.tS.prototype.SZ.call(this,V);var t=this.J?this.W[V]:this.X[V];var x=t==null?void 0:t.quality,u=t==null?void 0:t.formatId,Z=t==null?void 0:t.paygatedQualityDetails;t=Z==null?void 0:Z.endpoint;if(Z){var P;Z=(P=this.options[V])==null?void 0:P.element;this.U.logClick(Z)}if(this.J){var K,R;if((K=g.l(t,g.QcY))==null?0:(R=K.popup)==null?0:R.notificationActionRenderer)this.U.Os("innertubeCommand",t);else if(t){this.U.Os("innertubeCommand",t);return}u?this.U.setPlaybackQuality(x, u):this.U.setPlaybackQuality(x)}else{if(this.B){var f,b;if((f=g.l(t,g.QcY))==null?0:(b=f.popup)==null?0:b.notificationActionRenderer)this.U.Os("innertubeCommand",t);else if(t){this.U.Os("innertubeCommand",t);return}}this.U.setPlaybackQuality(V)}this.W$.Gc();this.R6()}}; g.q.open=function(){for(var V=g.G(Object.values(this.options)),t=V.next();!t.done;t=V.next()){t=t.value;var x=void 0;this.U.hasVe((x=t)==null?void 0:x.element)&&(x=void 0,this.U.logVisibility((x=t)==null?void 0:x.element,!0))}g.tS.prototype.open.call(this);this.U.logClick(this.element)}; g.q.N2=function(V,t,x){var u=this;if(V==="missing-qualities")return new g.U5({Y:"a",vX:["ytp-menuitem"],j:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.U.K().X,tabindex:"0",role:"menuitemradio"},D:[{Y:"div",vX:["ytp-menuitem-label"],mw:"{{label}}"}]},t,this.wy(V));if(V!=="inline-survey"){var Z,P=(Z=this.J?this.W[V]:this.X[V])==null?void 0:Z.paygatedQualityDetails;Z=P==null?void 0:P.veType;P=P==null?void 0:P.trackingParams;t=g.tS.prototype.N2.call(this,V,t,x);P?(this.U.createServerVe(t.element, this,!0),this.U.setTrackingParams(t.element,P)):Z&&this.U.createClientVe(t.element,this,Z,!0);return t}V=[{Y:"span",mw:"Que tal?"}];x=g.G([!0,!1]);P=x.next();for(Z={};!P.done;Z={yH:void 0},P=x.next())Z.yH=P.value,P=new g.e({Y:"span",V:"ytp-menuitem-inline-survey-response",D:[Z.yH?ve1():prj()],j:{tabindex:"0",role:"button"}}),P.listen("click",function(K){return function(){var R=u.U.app.rk();R&&(R.J6("iqsr",{tu:K.yH}),R.getVideoData().D4=!0);u.W$.Gc();u.R6()}}(Z)),V.push(P); return new g.U5({Y:"div",V:"ytp-menuitem",j:{"aria-disabled":"true"},D:[{Y:"div",vX:["ytp-menuitem-label"],D:V}]},t)}; g.q.wy=function(V,t){t=t===void 0?!1:t;if(V==="missing-qualities")return{Y:"div",mw:"Faltam op\u00e7\u00f5es?"};if(V==="inline-survey")return"";var x=this.B||this.J?[dO0(this,V,t,!1)]:[efT(this,V)];var u=this.U.getPreferredQuality();t||u!=="auto"||V!=="auto"||(x.push(" "),this.J?x.push(dO0(this,this.Ij,t,!0,["ytp-menu-label-secondary"])):this.B?x.push(dO0(this,this.L,t,!0,["ytp-menu-label-secondary"])):x.push(efT(this,this.L,["ytp-menu-label-secondary"])));return{Y:"div",D:x}};g.A(Sq,g.e);Sq.prototype.init=function(){this.updateValue("minvalue",this.N);this.updateValue("maxvalue",this.W);this.updateValue("stepvalue",this.B);this.updateValue("slidervalue",this.S);CKj(this,this.S)}; Sq.prototype.L=function(){JBl(this,Number(this.J.value));this.J.focus()};g.A(GU,Sq);GU.prototype.L=function(){Sq.prototype.L.call(this);this.C&&hf9(this)}; GU.prototype.zU=function(){this.X()}; GU.prototype.wk=function(){this.U.setPlaybackRate(this.S,!0)}; GU.prototype.Ij=function(V){if(!V.defaultPrevented){switch(V.code){case "ArrowDown":var t=-this.B;break;case "ArrowUp":t=this.B;break;default:return}JBl(this,Math.min(this.W,Math.max(Number((this.S+t).toFixed(2)),this.N)));this.X();hf9(this);V.preventDefault()}};g.A(IP,g.e);g.q=IP.prototype;g.q.init=function(){this.U0(this.J);this.updateValue("minvalue",this.S);this.updateValue("maxvalue",this.N)}; g.q.UC=function(V){if(!V.defaultPrevented){switch(V.keyCode){case 37:case 40:var t=-this.C;break;case 39:case 38:t=this.C;break;default:return}this.U0(this.J+t);V.preventDefault()}}; g.q.cI=function(V){var t=this.J;t+=(V.deltaX||-V.deltaY)<0?-this.X:this.X;this.U0(t);V.preventDefault()}; g.q.FK=function(V){V=(V-g.mg(this.W).x)/this.Ij*this.range+this.S;this.U0(V)}; g.q.U0=function(V,t){t=t===void 0?"":t;V=g.EY(V,this.S,this.N);t===""&&(t=V.toString());this.updateValue("valuenow",V);this.updateValue("valuetext",t);this.wk.style.left=(V-this.S)/this.range*(this.Ij-this.Us)+"px";this.J=V}; g.q.focus=function(){this.BX.focus()};g.A(vI,IP);vI.prototype.zU=function(){this.U.setPlaybackRate(this.J,!0)}; vI.prototype.U0=function(V){IP.prototype.U0.call(this,V,VuK(this,V).toString());this.B&&(wGz(this),this.cX())}; vI.prototype.updateValues=function(){var V=this.U.getPlaybackRate();VuK(this,this.J)!==V&&(this.U0(V),wGz(this))};g.A(tuz,g.Iz);tuz.prototype.focus=function(){this.J.focus()};g.A(xi8,lV);g.A(u0l,g.tS);g.q=u0l.prototype;g.q.wy=function(V){return V==="1"?"Normal":V.toLocaleString()}; g.q.ZS=function(){var V,t=(V=this.U.getVideoData())==null?void 0:V.R_();V=this.U.getPresentingPlayerType(t);this.enable(V!==2&&V!==3);qXh(this)}; g.q.i9=function(V){g.tS.prototype.i9.call(this,V);this.L&&this.L.J.focus()}; g.q.Xs=function(V){g.tS.prototype.Xs.call(this,V);V?(this.Ij=this.Z(this.U,"onPlaybackRateChange",this.onPlaybackRateChange),qXh(this),Py9(this,this.U.getPlaybackRate())):(this.vk(this.Ij),this.Ij=null)}; g.q.onPlaybackRateChange=function(V){var t=this.U.getPlaybackRate();!this.B&&this.X.includes(t)||KZ4(this,t);Py9(this,V)}; g.q.N2=function(V,t,x){return V===this.J&&RK4(this.U)?g.tS.prototype.N2.call(this,V,t,x,{Y:"div",V:"ytp-speed-slider-menu-footer",D:[this.L]}):g.tS.prototype.N2.call(this,V,t,x)}; g.q.SZ=function(V){g.tS.prototype.SZ.call(this,V);V===this.J?this.U.setPlaybackRate(this.W,!0):this.U.setPlaybackRate(Number(V),!0);RK4(this.U)&&V===this.J||this.W$.JQ()}; g.q.NH=function(V){var t=V===this.J;this.B=!1;t&&LW(this.U)&&!RK4(this.U)?(V=new xi8(this.U),g.es(this.W$,V)):g.tS.prototype.NH.call(this,V)};g.A($iL,g.tS);g.q=$iL.prototype;g.q.ze=function(V){g.tS.prototype.ze.call(this,V)}; g.q.pm=function(V){return V.option.toString()}; g.q.getOption=function(V){return this.settings[V]}; g.q.wy=function(V){return this.getOption(V).text||""}; g.q.SZ=function(V){g.tS.prototype.SZ.call(this,V);this.publish("settingChange",this.setting,this.settings[V].option)};g.A(FZ,g.HJ);FZ.prototype.Nf=function(V){for(var t=g.G(Object.keys(V)),x=t.next();!x.done;x=t.next()){var u=x.value;if(x=this.hj[u]){var Z=V[u].toString();u=!!V[u+"Override"];x.options[Z]&&(x.ze(Z),x.W.element.setAttribute("aria-checked",String(!u)),x.J.element.setAttribute("aria-checked",String(u)))}}}; FZ.prototype.aO=function(V,t){this.publish("settingChange",V,t)};g.A(MJ,g.tS);MJ.prototype.J=function(V){return V.languageCode}; MJ.prototype.wy=function(V){return this.languages[V].languageName||""}; MJ.prototype.SZ=function(V){this.publish("select",V);this.U.logClick(this.element);g.d$(this.W$)};g.A(kZ0,g.tS);g.q=kZ0.prototype;g.q.JI=function(V){return g.YE(V)?"__off__":V.displayName}; g.q.wy=function(V){return V==="__off__"?"Desativado":V==="__translate__"?"Traduzir automaticamente":V==="__contribute__"?"Adicionar legendas/CC":V==="__correction__"?"Sugerir corre\u00e7\u00f5es na legenda":(V==="__off__"?{}:this.tracks[V]).displayName}; g.q.SZ=function(V){if(V==="__translate__")this.J.open();else if(V==="__contribute__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var t=g.W8(this.U.K(),this.U.getVideoData());g.w2(t)}else if(V==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var x=iHT(this);go(this,x);g.tS.prototype.SZ.call(this,this.JI(x));var u,Z;x=(t=this.U.getVideoData().getPlayerResponse())==null?void 0:(u=t.captions)==null?void 0:(Z=u.playerCaptionsTracklistRenderer)== null?void 0:Z.openTranscriptCommand;this.U.Os("innertubeCommand",x);this.W$.JQ();this.W&&this.U.logClick(this.W)}else{if(V==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();t=iHT(this);go(this,t);g.tS.prototype.SZ.call(this,this.JI(t));var P,K;t=(x=this.U.getVideoData().getPlayerResponse())==null?void 0:(P=x.captions)==null?void 0:(K=P.playerCaptionsTracklistRenderer)==null?void 0:K.openTranscriptCommand;this.U.Os("innertubeCommand",t)}else this.U.logClick(this.element), go(this,V==="__off__"?{}:this.tracks[V]),g.tS.prototype.SZ.call(this,V);this.W$.JQ()}}; g.q.ZS=function(){var V=this.U.getOptions();V=V&&V.indexOf("captions")!==-1;var t=this.U.getVideoData(),x=t&&t.a9,u,Z=!((u=this.U.getVideoData())==null||!g.hM(u));u={};if(V||x){var P;if(V){var K=this.U.getOption("captions","track");u=this.U.getOption("captions","tracklist",{includeAsr:!0});var R=Z?[]:this.U.getOption("captions","translationLanguages");this.tracks=g.kz(u,this.JI,this);Z=g.QV(u,this.JI);var f,b;iHT(this)&&((P=t.getPlayerResponse())==null?0:(f=P.captions)==null?0:(b=f.playerCaptionsTracklistRenderer)== null?0:b.openTranscriptCommand)&&Z.push("__correction__");if(R.length&&!g.YE(K)){if((P=K.translationLanguage)&&P.languageName){var E=P.languageName;P=R.findIndex(function(k){return k.languageName===E}); Pzh(R,P)}bHT(this.J,R);Z.push("__translate__")}P=this.JI(K)}else this.tracks={},Z=[],P="__off__";Z.unshift("__off__");this.tracks.__off__={};x&&Z.unshift("__contribute__");this.tracks[P]||(this.tracks[P]=K,Z.push(P));this.i9(Z);this.ze(P);K&&K.translationLanguage?this.J.ze(this.J.J(K.translationLanguage)):Caj(this.J);V&&this.B.Nf(this.U.getSubtitlesUserSettings());this.countLabel.g9(u&&u.length?" ("+u.length+")":"");this.publish("size-change");this.U.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.q.tE=function(V){var t=this.U.getOption("captions","track");t=g.rZ(t);t.translationLanguage=this.J.languages[V];go(this,t)}; g.q.aO=function(V,t){if(V==="reset")this.U.resetSubtitlesUserSettings();else{var x={};x[V]=t;this.U.updateSubtitlesUserSettings(x)}ERh(this,!0);this.L.start();this.B.Nf(this.U.getSubtitlesUserSettings())}; g.q.dUk=function(V){V||g.$y(this.L)}; g.q.NP=function(){g.$y(this.L);g.tS.prototype.NP.call(this)}; g.q.open=function(){g.tS.prototype.open.call(this);this.options.__correction__&&!this.W&&(this.W=this.options.__correction__.element,this.U.createClientVe(this.W,this,167341),this.U.logVisibility(this.W,!0))};g.A(OH4,g.Dt);g.q=OH4.prototype; g.q.initialize=function(){if(!this.isInitialized){var V=this.U.K();this.isInitialized=!0;try{this.hD=new UOT(this.U,this)}catch(x){g.lf(Error("QualityMenuItem creation failed"))}g.y(this,this.hD);var t=new kZ0(this.U,this);g.y(this,t);V.N||(t=new NJ(this.U,this),g.y(this,t));V.enableSpeedOptions&&(t=new u0l(this.U,this),g.y(this,t));(g.zo(V)||V.B)&&(V.S||V.xw)&&(t=new HaL(this.U,this),g.y(this,t));V.U1&&!V.T("web_player_move_autonav_toggle")&&(V=new A8(this.U,this),g.y(this,V));V=new pW(this.U,this); g.y(this,V);this.U.publish("settingsMenuInitialized");lah(this.settingsButton,this.wb.Qh())}}; g.q.Pk=function(V){this.initialize();this.wb.Pk(V);lah(this.settingsButton,this.wb.Qh())}; g.q.bT=function(V){this.iq&&this.wb.Qh()<=1&&this.hide();this.wb.bT(V);lah(this.settingsButton,this.wb.Qh())}; g.q.aC=function(V){this.initialize();this.wb.Qh()>0&&g.Dt.prototype.aC.call(this,V)}; g.q.Gc=function(){this.q_?this.q_=!1:g.Dt.prototype.Gc.call(this)}; g.q.show=function(){g.Dt.prototype.show.call(this);g.OU(this.U.getRootNode(),"ytp-settings-shown")}; g.q.hide=function(){g.Dt.prototype.hide.call(this);g.NK(this.U.getRootNode(),"ytp-settings-shown")}; g.q.e3=function(V){this.U.logVisibility(this.element,V);this.U.publish("settingsMenuVisibilityChanged",V)};g.A(NAC,g.e);g.q=NAC.prototype;g.q.onClick=function(){if(pmq(this)&&(this.U.toggleSubtitles(),this.U.logClick(this.element),!this.isEnabled())){var V=!1,t=g.JD(g.Cy(),65);g.J2(this.U.K())&&t!=null&&(V=!t);V&&this.U.K().T("web_player_nitrate_promo_tooltip")&&this.U.publish("showpromotooltip",this.element)}}; g.q.Xw8=function(V){var t,x;(t=g.O5(this.U))==null||(x=t.v2())==null||x.aC(V)}; g.q.isEnabled=function(){return!!this.U.getOption("captions","track").displayName}; g.q.ZS=function(){var V=pmq(this),t=300;this.U.K().C&&(t=480);if(this.U.K().B){this.updateValue("title",g.Fb(this.U,"Legendas/legendas ocultas","c"));this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"});var x=V}else{if(V)(x=this.f1("ytp-subtitles-button-icon"))==null||x.setAttribute("fill-opacity","1"),this.updateValue("title",g.Fb(this.U,"Legendas/legendas ocultas","c")),this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"});else{var u;(u=this.f1("ytp-subtitles-button-icon"))== null||u.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"})}x=!0}this.tooltip.lT();x=x&&this.U.XX().getPlayerSize().width>=t;this.RC(x);this.U.T("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,x&&this.G):this.U.logVisibility(this.element,x);V?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed", !1)}; g.q.KI=function(V){g.e.prototype.KI.call(this,V);this.U.K().T("embeds_use_parent_visibility_in_ve_logging")&&this.U.logVisibility(this.element,this.iq&&V)};g.A(g.XZ,g.e);g.q=g.XZ.prototype; g.q.AJ=function(){var V=this.api.XX().getPlayerSize().width,t=this.C;this.api.K().C&&(t=400);t=V>=t&&(!zU(this)||!g.J(this.api.getPlayerStateObject(),64));this.RC(t);g.Am(this.element,"ytp-time-display-allow-autohide",t&&V<400);V=this.api.getProgressState();if(t){t=this.api.getPresentingPlayerType();var x=this.api.getCurrentTime(t,!1);this.S&&(x-=V.airingStart);BI(this)&&(x-=this.fI.startTimeMs/1E3);x=g.Q$(x);this.N!==x&&(this.updateValue("currenttime",x),this.N=x);t=BI(this)?g.Q$((this.fI.endTimeMs- this.fI.startTimeMs)/1E3):g.Q$(this.api.getDuration(t,!1));this.W!==t&&(this.updateValue("duration",t),this.W=t)}Adj(this,V.isAtLiveHead);SX4(this,this.api.getLoopRange())}; g.q.onLoopRangeChange=function(V){var t=this.fI!==V;this.fI=V;t&&(this.AJ(),GZL(this))}; g.q.SLC=function(){this.api.setLoopRange(null)}; g.q.onVideoDataChange=function(V,t,x){this.updateVideoData((this.api.K().T("enable_topsoil_wta_for_halftime")||this.api.K().T("enable_topsoil_wta_for_halftime_live_infra"))&&x===2?this.api.getVideoData(1):t);this.AJ();GZL(this)}; g.q.updateVideoData=function(V){this.y_=V.isLivePlayback&&!V.QC;this.S=V1(V);this.isPremiere=V.isPremiere;g.Am(this.element,"ytp-live",zU(this))}; g.q.onClick=function(V){V.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.q.NP=function(){this.J&&this.J();g.e.prototype.NP.call(this)};g.A(vR4,g.e);g.q=vR4.prototype;g.q.dV=function(){var V=this.api.yV();this.N!==V&&(this.N=V,I0j(this,this.api.getVolume(),this.api.isMuted()))}; g.q.H9=function(V){this.RC(V.width>=350)}; g.q.vI=function(V){if(!V.defaultPrevented){var t=V.keyCode,x=null;t===37?x=this.volume-5:t===39?x=this.volume+5:t===36?x=0:t===35&&(x=100);x!==null&&(x=g.EY(x,0,100),x===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(x)),V.preventDefault())}}; g.q.hE=function(V){var t=V.deltaX||-V.deltaY;V.deltaMode?this.api.setVolume(this.volume+(t<0?-10:10)):this.api.setVolume(this.volume+g.EY(t/10,-10,10));V.preventDefault()}; g.q.ChS=function(){mG(this,this.J,!0,this.S,this.api.ZM());this.X=this.volume;this.api.isMuted()&&this.api.unMute()}; g.q.EC=function(V){var t=this.N?78:52,x=this.N?18:12;V-=g.mg(this.C).x;this.api.setVolume(g.EY((V-x/2)/(t-x),0,1)*100)}; g.q.aZD=function(){mG(this,this.J,!1,this.S,this.api.ZM());this.volume===0&&(this.api.mute(),this.api.setVolume(this.X))}; g.q.onVolumeChange=function(V){I0j(this,V.volume,V.muted)}; g.q.Wb=function(){mG(this,this.J,this.isDragging,this.S,this.api.ZM())}; g.q.NP=function(){g.e.prototype.NP.call(this);g.NK(this.L,"ytp-volume-slider-active")};g.A(Yt,g.e); Yt.prototype.onVideoDataChange=function(){var V=this.api.K();this.lq();this.visible=!!this.api.getVideoData().videoId&&!g.th(this.api.getVideoData(1));this.RC(this.visible);this.api.logVisibility(this.element,this.visible&&this.G);if(this.visible){var t=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",t)}V.N&&(this.J&&(this.vk(this.J),this.J=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.OU(this.element,"no-link")); t=this.api.K();V=this.api.getVideoData();var x="";t.N||(t=g.UJ(t),t.indexOf("www.")===0&&(t=t.substring(4)),x=g.uu(V)?"Assistir no YouTube Music":t==="youtube.com"?"Assistir no YouTube":g.Lm("Assista em $WEBSITE",{WEBSITE:t}));this.updateValue("title",x)}; Yt.prototype.onClick=function(V){this.api.T("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var t=this.api.K(),x=this.api.getVideoUrl(!g.aT(V),!1,!0,!0);if(g.zo(t)){var u={};g.zo(t)&&g.$2(this.api,"addEmbedsConversionTrackingParams",[u]);x=g.CX(x,u)}g.Kh(x,this.api,V);this.api.T("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Yt.prototype.lq=function(){var V={Y:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},D:[{Y:"path",m_:!0,V:"ytp-svg-fill",j:{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 "}}]}, t=28666,x=this.api.getVideoData();this.api.isEmbedsShortsMode()?V={Y:"svg",j:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},D:[{Y:"path",j:{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.uu(x)&&(V={Y:"svg",j:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},D:[{Y:"path",j:{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"}},{Y:"path",j:{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"}},{Y:"path",j:{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"}},{Y:"path",j:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{Y:"path",j:{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"}},{Y:"path",j:{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"}},{Y:"path",j:{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"}},{Y:"path",j:{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"}},{Y:"path",j:{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"}},{Y:"path",j:{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"}},{Y:"path",j:{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"}},{Y:"path",j:{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"}}]},t=216163);g.uu(x)?g.OU(this.element,"ytp-youtube-music-button"):g.NK(this.element,"ytp-youtube-music-button");V.j=Object.assign({},V.j,{"aria-hidden":"true"});this.updateValue("logoSvg",V);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,t,!0)}; Yt.prototype.KI=function(V){g.e.prototype.KI.call(this,V);this.api.logVisibility(this.element,this.visible&&V)};g.A(FZz,g.j6);g.q=FZz.prototype;g.q.dh=function(){if(this.U.T("web_player_max_seekable_on_ended")||!g.J(this.U.getPlayerStateObject(),2))this.progressBar.AJ(),this.Us.AJ()}; g.q.RI=function(){this.F7();this.aN.S?this.dh():this.progressBar.nJ()}; g.q.BI=function(){this.dh();this.C.start()}; g.q.F7=function(){var V;if(V=!this.U.K().S){V=this.progressBar;var t=2*g.Co()*V.L;V=V.N.getLength()*1E3/V.api.getPlaybackRate()/t<300}V=V&&this.U.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;t=!V;this.aN.S||(V=t=!1);t?this.wk||(this.wk=this.Z(this.U,"progresssync",this.dh)):this.wk&&(this.vk(this.wk),this.wk=null);V?this.C.isActive()||this.C.start():this.C.stop()}; g.q.lq=function(){var V=this.U.yV(),t=this.U.XX().getPlayerSize(),x=gRK(this),u=Math.max(t.width-x*2,100);if(this.gk!==t.width||this.QC!==V){this.gk=t.width;this.QC=V;var Z=Xml(this);this.N.element.style.width=Z+"px";this.N.element.style.left=x+"px";g.nbL(this.progressBar,x,Z,V);this.U.z4().Om=Z}x=this.S;u=Math.min(570*(V?1.5:1),u);V=Math.min(413*(V?1.5:1),Math.round((t.height-zKK(this))*.82));x.maxWidth=u;x.maxHeight=V;x.U3();this.F7();this.U.K().T("html5_player_dynamic_bottom_gradient")&&rk0(this.HX, t.height)}; g.q.onVideoDataChange=function(){var V=this.U.getVideoData();this.dk.style.background=V.kD?V.HF:"";this.Ij&&yks(this.Ij,V.showSeekingControls);this.X&&yks(this.X,V.showSeekingControls)}; g.q.m0=function(){return this.N.element};g.A(BAj,js);g.q=BAj.prototype;g.q.uE=function(V){V.target!==this.dismissButton.element&&(this.onClickCommand&&this.U.Os("innertubeCommand",this.onClickCommand),this.BJ())}; g.q.BJ=function(){this.enabled=!1;this.X.hide()}; g.q.onVideoDataChange=function(V,t){V==="dataloaded"&&miz(this);V=[];var x,u,Z,P;if(t=(P=g.l((x=t.getWatchNextResponse())==null?void 0:(u=x.playerOverlays)==null?void 0:(Z=u.playerOverlayRenderer)==null?void 0:Z.suggestedActionsRenderer,fTr))==null?void 0:P.suggestedActions)for(x=g.G(t),u=x.next();!u.done;u=x.next())(u=g.l(u.value,$Yn))&&g.l(u.trigger,Rpi)&&V.push(u);if(V.length!==0){x=[];V=g.G(V);for(u=V.next();!u.done;u=V.next())if(u=u.value,Z=g.l(u.trigger,Rpi))P=(P=u.title)?g.FX(P):"View Chapters", t=Z.timeRangeStartMillis,Z=Z.timeRangeEndMillis,t!=null&&Z!=null&&u.tapCommand&&(x.push(new g.b4(t,Z,{priority:9,namespace:"suggested_action_button_visible",id:P})),this.suggestedActions[P]=u.tapCommand);this.U.gL(x)}}; g.q.hT=function(){return this.enabled}; g.q.e3=function(){this.enabled?this.L1.start():cJ(this);this.kt()}; g.q.NP=function(){miz(this);js.prototype.NP.call(this)};var Mi={},QL=(Mi.CHANNEL_NAME="ytp-title-channel-name",Mi.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Mi.LINK="ytp-title-link",Mi.SESSIONLINK="yt-uix-sessionlink",Mi.SUBTEXT="ytp-title-subtext",Mi.TEXT="ytp-title-text",Mi.TITLE="ytp-title",Mi);g.A(aP,g.e);aP.prototype.onClick=function(V){this.api.logClick(this.element);var t=this.api.K(),x=this.api.getVideoUrl(!g.aT(V),!1,!0);g.zo(t)&&(t={},g.$2(this.api,"addEmbedsConversionTrackingParams",[t]),x=g.CX(x,t));g.Kh(x,this.api,V)}; aP.prototype.ZS=function(){var V=this.api.getVideoData(),t=this.api.K();this.updateValue("title",V.title);var x={Y:"a",V:QL.CHANNEL_NAME,j:{href:"{{channelLink}}",target:"_blank"},mw:"{{channelName}}"};this.api.K().N&&(x={Y:"span",V:QL.CHANNEL_NAME,mw:"{{channelName}}",j:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",x);YX8(this);this.api.getPresentingPlayerType()===2&&(x=this.api.getVideoData(),x.videoId&&x.isListed&&x.author&&x.w6&&x.profilePicture?(this.updateValue("channelLink", x.w6),this.updateValue("channelName",x.author),this.updateValue("channelTitleFocusable","0")):YX8(this));x=t.externalFullscreen||!this.api.isFullscreen()&&t.gi;g.Am(this.link,QL.FULLERSCREEN_LINK,x);t.wk||!V.videoId||x||g.th(V)||t.N?this.J&&(this.updateValue("url",null),this.vk(this.J),this.J=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.J||(this.J=this.Z(this.link,"click",this.onClick)));t.N&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.zo(t)?V.expandedTitle: V.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.A(g.ro,g.e);g.q=g.ro.prototype;g.q.setEnabled=function(V){if(this.type!=null)if(V)switch(this.type){case 3:case 2:a04(this);this.L.show();break;default:this.L.show()}else this.L.hide();this.C=V}; g.q.Qo=function(V,t,x,u,Z,P,K,R){if(!this.Us||this.env.C){this.type===3&&this.nJ();this.type!==1&&(g.ky(this.element,"ytp-tooltip ytp-bottom ytp-rounded-tooltip"),this.type=1,this.C&&this.L.show(),this.S&&this.S.dispose(),(this.S=this.api.vQ())&&this.S.subscribe("l",this.m9,this));if(R){var f=g.ao(this.bg).height||141;this.BX.style.bottom=f+2+"px"}this.update({text:x,title:P!=null?P:"",eduText:R!=null?R:""});g.Am(this.text,"ytp-tooltip-text-no-title",this.type===1&&!P);this.api.isInline()&&g.OU(this.text, "ytp-modern-tooltip-text");g.Am(this.element,"ytp-text-detail",!!u);x=-1;this.S&&(x=TQ(this.S,243*this.scale),this.env.T("web_l3_storyboard")&&this.S.levels.length===4&&(x=this.S.levels.length-1),x=Kb4(this.S,x,t));TAz(this,x);if(K)switch(t=g.ao(this.element).width,K){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=t+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=t/2+"px",this.title.style.textAlign="center"}rds(this, !!u,V,Z)}}; g.q.Ks=function(){this.type===1&&this.nJ()}; g.q.CF=function(V,t){if(this.type)if(this.type===3)this.nJ();else return;Q6h(this,V,3,t)}; g.q.lT=function(){this.J&&!this.X&&this.J.hasAttribute("title")&&(this.N=this.J.getAttribute("title")||"",this.J.removeAttribute("title"),this.C&&a04(this))}; g.q.m9=function(V,t){V<=this.W&&this.W<=t&&(V=this.W,this.W=NaN,TAz(this,V))}; g.q.jjD=function(){Zds(this.S,this.W,243*this.scale)}; g.q.nJ=function(){switch(this.type){case 2:var V=this.J;V.removeEventListener("mouseout",this.Ij);V.addEventListener("mouseover",this.B);V.removeEventListener("blur",this.Ij);V.addEventListener("focus",this.B);WZ8(this);break;case 3:WZ8(this);break;case 1:this.S&&(this.S.unsubscribe("l",this.m9,this),this.S=null),this.api.removeEventListener("videoready",this.wk),this.zU.stop()}this.type=null;this.C&&this.L.hide()}; g.q.N3=function(){if(this.J)for(var V=0;V=0;t--)if(this.uC[t]===V){this.uC.splice(t,1);break}eC(this.aN,64,this.uC.length>0)}; g.q.gR=function(){this.api.mL()&&this.api.Kd();return!!this.h_||l0q(this)||g.ZU.prototype.gR.call(this)}; g.q.pE=V0(3);g.q.s7=V0(7);g.q.KO=V0(10); g.q.Il=function(){var V=!this.gR(),t=V&&this.api.mL()&&!g.J(this.api.getPlayerStateObject(),2)&&!g.th(this.api.getVideoData())&&!this.api.K().N&&!this.api.isEmbedsShortsMode(),x=this.lM&&g.BL(this.api)&&g.J(this.api.getPlayerStateObject(),128);V||x?(this.SV.show(),this.Iv.show()):(this.SV.hide(),this.Iv.hide(),this.api.N3(this.mX.element));t?this.W0.aC():this.W0.Gc();this.Kl&&Mu9(this.Kl,this.kI||!V);this.api.T("web_player_hide_overflow_button_if_empty_menu")&&HHK(this);g.ZU.prototype.Il.call(this)}; g.q.rV=function(V,t,x,u,Z){V.style.left="";V.style.top="";V.style.bottom="";var P=g.ao(V),K=u||this.Kl&&g.fQ(this.Kl.m0(),t),R=u=null;x!=null&&K||(u=g.ao(t),R=g.Yg(t,this.api.getRootNode()),x==null&&(x=R.x+u.width/2));x-=P.width/2;K?(t=this.Kl,u=gRK(t),R=Xml(t),K=this.api.XX().getPlayerSize().height,x=g.EY(x,u,u+R-P.width),P=K-zKK(t)-P.height):g.fQ(this.mX.element,t)?(t=this.api.XX().getPlayerSize().width,x=g.EY(x,12,t-P.width-12),P=this.yV()?this.FP:this.cB,this.api.K().playerStyle==="gvn"&&(P+= 20),this.lM&&(P-=this.yV()?26:18)):(t=this.api.XX().getPlayerSize(),x=g.EY(x,12,t.width-P.width-12),P=R.y>(t.height-u.height)/2?R.y-P.height-12:R.y+u.height+12);V.style.top=P+(Z||0)+"px";V.style.left=x+"px"}; g.q.RI=function(V){V&&(this.api.N3(this.mX.element),this.Kl&&this.api.N3(this.Kl.m0()));this.Up&&(g.Am(this.contextMenu.element,"ytp-autohide",V),g.Am(this.contextMenu.element,"ytp-autohide-active",!0));g.ZU.prototype.RI.call(this,V)}; g.q.QF=function(){g.ZU.prototype.QF.call(this);this.Up&&(g.Am(this.contextMenu.element,"ytp-autohide-active",!1),this.Up&&(this.contextMenu.hide(),this.Ia&&this.Ia.hide()))}; g.q.Gi=function(V,t){var x=this.api.XX().getPlayerSize();x=new g.sT(0,0,x.width,x.height);if(V||this.aN.S&&!this.gR()){if(this.api.K().Ju||t)V=this.yV()?this.FP:this.cB,x.top+=V,x.height-=V;this.Kl&&(x.height-=zKK(this.Kl))}return x}; g.q.dV=function(V){var t=this.api.getRootNode();V?t.parentElement?(t.setAttribute("aria-label","Player de v\u00eddeo do YouTube em tela cheia"),this.api.K().externalFullscreen||(t.parentElement.insertBefore(this.pM.element,t),t.parentElement.insertBefore(this.Mm.element,t.nextSibling))):g.jv(Error("Player not in DOM.")):(t.setAttribute("aria-label","Player de v\u00eddeo do YouTube"),this.pM.detach(),this.Mm.detach());this.lq();this.wZ()}; g.q.yV=function(){var V=this.api.K();return this.api.isFullscreen()&&!V.C||!1}; g.q.showControls=function(V){this.Vq=!V;this.Il()}; g.q.lq=function(){var V=this.yV();this.tooltip.scale=V?1.5:1;this.contextMenu&&g.Am(this.contextMenu.element,"ytp-big-mode",V);this.Il();this.api.T("web_player_hide_overflow_button_if_empty_menu")||HHK(this);this.wZ();var t=this.api.isEmbedsShortsMode();t&&V?(V=(this.api.XX().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Ao(this.mX.element,"padding-left",V+"px"),g.Ao(this.mX.element,"padding-right",V+"px")):t&&(g.Ao(this.mX.element,"padding-left",""),g.Ao(this.mX.element,"padding-right", ""));g.ZU.prototype.lq.call(this)}; g.q.xg=function(){if(l0q(this)&&!g.BL(this.api))return!1;var V=this.api.getVideoData();return!g.zo(this.api.K())||this.api.getPresentingPlayerType()===2||!this.fv||((V=this.fv||V.fv)?(V=V.embedPreview)?(V=V.thumbnailPreviewRenderer,V=V.videoDetails&&g.l(V.videoDetails,l20)||null):V=null:V=null,V&&V.collapsedRenderer&&V.expandedRenderer)?g.ZU.prototype.xg.call(this):!1}; g.q.wZ=function(){g.ZU.prototype.wZ.call(this);this.api.logVisibility(this.title.element,!!this.aA);this.vA&&this.vA.KI(!!this.aA);this.channelAvatar.KI(!!this.aA);this.overflowButton&&this.overflowButton.KI(this.XJ()&&!!this.aA);this.shareButton&&this.shareButton.KI(!this.XJ()&&!!this.aA);this.EM&&this.EM.KI(!this.XJ()&&!!this.aA);this.searchButton&&this.searchButton.KI(!this.XJ()&&!!this.aA);this.copyLinkButton&&this.copyLinkButton.KI(!this.XJ()&&!!this.aA);if(!this.aA){this.api.N3(this.mX.element); for(var V=0;V5&&t.J6("glrs",{cmt:x});t.seekTo(0,{seekSource:58});t.J6("glrre",{cmt:x})}}; nW.prototype.NP=function(){this.J=null;g.c.prototype.NP.call(this)};g.A(g.cI,ug);g.q=g.cI.prototype;g.q.isView=function(){return!0}; g.q.Z5=function(){var V=this.mediaElement.getCurrentTime();if(V=4&&V!=="player-reload-after-handoff";this.status={status:Infinity,error:V};if(this.J&&this.S){var u=this.S.getVideoData().clientPlaybackNonce;this.J.p9(new Qr("dai.transitionfailure",Object.assign(t,{cpn:u,transitionTimeMs:this.kV,msg:V})));this.J.gU(x)}this.nu.reject(V);this.dispose()}}; g.q.RF=function(){return this.status.status>=4&&this.status.status<6}; g.q.NP=function(){Z$T(this);this.J.unsubscribe("newelementrequired",this.zY,this);if(this.N){var V=this.N.S;this.N.J.R5.unsubscribe("updateend",this.k8,this);V.R5.unsubscribe("updateend",this.k8,this)}g.c.prototype.NP.call(this)}; g.q.qO=function(V){g.LC(V,128)&&this.Qg("player-error-event")};g.A(lH,g.c);lH.prototype.clearQueue=function(V,t){V=V===void 0?!1:V;t=t===void 0?!1:t;this.W&&this.W.reject("Queue cleared");this.app.K().T("html5_gapless_fallback_on_qoe_restart_v2")||t&&this.S&&this.S.gU(!1);HI(this,V)}; lH.prototype.gg=function(){return!this.J}; lH.prototype.RF=function(){var V;return((V=this.N)==null?void 0:V.RF())||!1}; lH.prototype.NP=function(){HI(this);g.c.prototype.NP.call(this)};g.A(b$9,g.Np);g.q=b$9.prototype;g.q.getVisibilityState=function(V,t,x,u,Z,P,K,R){return V?4:EdT()?3:t?2:x?1:u?5:Z?7:P?8:K?9:R?10:0}; g.q.pk=function(V){this.fullscreen!==V&&(this.fullscreen=V,this.e3())}; g.q.setMinimized=function(V){this.S!==V&&(this.S=V,this.e3())}; g.q.setInline=function(V){this.inline!==V&&(this.inline=V,this.e3())}; g.q.Y8=function(V){this.pictureInPicture!==V&&(this.pictureInPicture=V,this.e3())}; g.q.setSqueezeback=function(V){this.N!==V&&(this.N=V,this.e3())}; g.q.l3=function(V){this.W!==V&&(this.W=V,this.e3())}; g.q.F$=function(){return this.J}; g.q.F_=function(){return this.fullscreen!==0}; g.q.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.q.jI=function(){return this.fullscreen}; g.q.isMinimized=function(){return this.S}; g.q.isInline=function(){return this.inline}; g.q.isBackground=function(){return EdT()}; g.q.Q2=function(){return this.pictureInPicture}; g.q.EF=function(){return!1}; g.q.bH=function(){return this.N}; g.q.A5=function(){return this.W}; g.q.e3=function(){this.publish("visibilitychange");var V=this.getVisibilityState(this.F$(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Q2(),this.EF(),this.bH(),this.A5());V!==this.B&&this.publish("visibilitystatechange");this.B=V}; g.q.NP=function(){OVL(this.G);g.Np.prototype.NP.call(this)};g.A(E79,g.c);g.q=E79.prototype;g.q.CB=function(V){this.J=V;this.B=V.Go}; g.q.CO=function(V){this.N=V;this.G=V.Go}; g.q.c$=function(){return this.B}; g.q.rk=function(){return this.G}; g.q.NP=function(){g.fr(g.gZ(this.S));g.c.prototype.NP.call(this)};g.A(U1,g.c);g.q=U1.prototype;g.q.enqueue=function(V,t){if(V.W!==this)return!1;if(this.segments.length===0||(t===void 0?0:t))this.J=V;this.segments.push(V);return!0}; g.q.uv=function(){return this.xX||0}; g.q.Ue=function(){return this.W||0}; g.q.removeAll=function(){for(;this.segments.length;){var V=void 0;(V=this.segments.pop())==null||V.dispose()}this.S.clear();this.N=void 0}; g.q.NP=function(){this.removeAll();g.c.prototype.NP.call(this)}; g.A(Iq0,g.c);g.q=Iq0.prototype;g.q.uv=function(){return this.xX}; g.q.Ue=function(){return this.N}; g.q.getType=function(){return this.type}; g.q.getVideoData=function(){return this.videoData}; g.q.oT=function(V){SQ(V);this.videoData=V}; g.q.NP=function(){v7j(this);g.c.prototype.NP.call(this)};g.A(g.J8,g.c);g.q=g.J8.prototype;g.q.Hn=function(V,t,x){return new g.b4(V,t,{id:x,namespace:"serverstitchedcuerange",priority:9})}; g.q.onCueRangeEnter=function(V){this.dk.push(V);var t=V.getId();this.playback.J6("sdai",{oncueEnter:1,cpn:t,start:V.start,end:V.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.o_()||0).toFixed(3)});var x=t==="";this.QC.add(V.S);var u=this.N.get(t);if(x){var Z;if(this.playback.getVideoData().R_()&&((Z=this.J)==null?0:Z.Jy)&&this.C){this.UV=0;this.J=void 0;this.gk&&(this.events.vk(this.gk),this.gk=null);this.C="";this.xw=!0;return}}else if(this.playback.J6("sdai",{enterAdCueRange:1}), this.playback.getVideoData().R_()&&(u==null?0:u.TG))return;if(this.xw&&!this.J)this.xw=!1,!x&&u&&(x=this.playback.getCurrentTime(),tQ(this,{ZZ:V,isAd:!0,tq:!0,VV:x,adCpn:t},{isAd:!1,tq:!1,VV:x}),this.Eh=u.cpn,mkq(this,u),V=VP(this,"midab",u),this.playback.J6("sdai",V),this.UV=1),this.zU=!1;else if(this.J){if(this.J.tq)this.playback.J6("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.J.adCpn,transitionTime:this.J.VV,cpn:t,currentTime:this.playback.getCurrentTime()}),u=this.playback.getCurrentTime(), V={ZZ:V,isAd:!x,tq:!0,VV:u,adCpn:t},t={ZZ:this.J.ZZ,isAd:this.J.isAd,tq:!1,VV:u,adCpn:this.J.adCpn},this.J.ZZ&&this.QC.delete(this.J.ZZ.S),tQ(this,V,t);else{if(this.J.ZZ===V){this.playback.J6("sdai",{same_cue_range_pair_enter:1,acpn:this.J.adCpn,transitionTime:this.J.VV,cpn:t,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:V.start,cueRangeEndTime:V.end});this.J=void 0;return}if(this.J.adCpn===t){t&&this.playback.J6("sdai",{dchtsc:t});this.J=void 0;return}V={ZZ:V,isAd:!x,tq:!0,VV:this.playback.getCurrentTime(), adCpn:t};tQ(this,V,this.J)}this.J=void 0;this.zU=!1}else this.J={ZZ:V,isAd:!x,tq:!0,VV:this.playback.getCurrentTime(),adCpn:t}}; g.q.onCueRangeExit=function(V){var t=V.getId();this.playback.J6("sdai",{oncueExit:1,cpn:t,start:V.start,end:V.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.o_()||0).toFixed(3)});var x=t==="",u=this.N.get(t);if(this.playback.getVideoData().R_()&&!x&&u){if(u.TG)return;u.TG=!0;this.B.clear();if(this.Rj.T("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.mj()){var Z=u.xX;this.playback.Ii(Z/1E3,(Z+u.durationMs)/1E3)}else this.playback.J6("lifa",{remove:0})}if(this.QC.has(V.S))if(this.QC.delete(V.S), this.dk=this.dk.filter(function(P){return P!==V}),this.xw&&(this.zU=this.xw=!1,this.playback.J6("sdai",{cref:1})),this.J){if(this.J.tq){if(this.J.ZZ===V){this.playback.J6("sdai",{same_cue_range_pair_exit:1, acpn:this.J.adCpn,transitionTime:this.J.VV,cpn:t,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:V.start,cueRangeEndTime:V.end});this.J=void 0;return}if(this.J.adCpn===t){t&&this.playback.J6("sdai",{dchtsc:t});this.J=void 0;return}t={ZZ:V,isAd:!x,tq:!1,VV:this.playback.getCurrentTime(),adCpn:t};tQ(this,this.J,t)}else if(this.playback.J6("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.J.adCpn,transitionTime:this.J.VV,upcomingCpn:t,contentCpn:this.playback.getVideoData().clientPlaybackNonce, currentTime:this.playback.getCurrentTime()}),this.api.T("html5_lifa_double_exit_transitions")&&this.J.adCpn===t)return;this.J=void 0;this.zU=!1}else this.J={ZZ:V,isAd:!x,tq:!1,VV:this.playback.getCurrentTime(),adCpn:t};else this.playback.J6("sdai",{ignore_single_exit:1})}; g.q.Q8=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,xX:0,playerType:1,wL:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.q.L6=function(){if(this.GA)return!1;var V=void 0;this.Eh&&(V=this.N.get(this.Eh));return this.playback.getVideoData().R_()?!!V&&!V.TG:!!V}; g.q.seekTo=function(V,t,x,u){V=V===void 0?0:V;t=t===void 0?{}:t;x=x===void 0?!1:x;u=u===void 0?null:u;if(this.playback.getVideoData().R_()&&V<=this.DS/1E3)this.playback.pauseVideo(),this.DS=0,this.zU=!0,this.playback.OO(),this.playback.seekTo(V),this.playback.playVideo();else if(this.zU=!0,x)Fyq(this,V,t);else{x=this.app.rk();var Z=x===this.HX?this.Fc:null;uT(this,!1);this.kX=V;this.CI=t;u!=null&&this.P$.start(u);x&&(this.Fc=Z||x.getPlayerState(),x.HZ(),this.HX=x)}}; g.q.NP=function(){uT(this,!1);r1s(this);TvL(this);g.c.prototype.NP.call(this)}; g.q.Fp=function(V){this.Td=V;this.playback.J6("sdai",{swebm:V})}; g.q.Gl=function(V,t,x){if(x&&t){var u=this.B.get(V);if(u){u.locations||(u.locations=new Map);var Z=Number(t.split(";")[0]);x=new g.vg(x);this.cX&&this.playback.J6("sdai",{hdlredir:1,itag:t,seg:V,hostport:FU(x)});u.locations.set(Z,x)}}}; g.q.qJ=function(V,t,x,u,Z,P){var K=u===3;Z=o7q(this,V,t,u,x,P);if(!Z){Kz(this,t,K);var R=g.Wy0(this,t)?"undec":"ncp";this.playback.J6("sdai",{gvprp:R,mt:V,seg:t,tt:u,itag:x,ce:P});return null}K||this.B.set(t,Z);P=Z.S5;var f;u=((f=P5(this,t-1,u))==null?void 0:f.GQ)||"";u===""&&this.playback.J6("sdai",{eds:1});f=c19(this,Z.ssdaiAdsConfig);K=this.playback.getVideoData();var b,E=((b=K.S)==null?void 0:b.containerType)||0;b=K.bJ[E];Z=Z.je&&t>=Z.je?Z.je:void 0;b={lJ:P?H$q(this,P):[],Kh:f,GQ:u,KV:Z,YR:Z8(b.split(";")[0]), fb:b.split(";")[1]||""};Z={H2:b};this.cX&&(V={gvprpro:"v",sq:t,mt:V.toFixed(3),itag:x,acpns:((R=b.lJ)==null?void 0:R.join("_"))||"none",abid:P},this.playback.J6("sdai",V));return Z}; g.q.SX=function(V){a:{if(!this.GA){var t=n7h(this,V);if(!(this.playback.getVideoData().R_()&&(t==null?0:t.TG)))break a}t=void 0}var x=t;if(!x)return this.playback.J6("sdai",{gvprp:"ncp",mt:V}),null;t=x.S5;var u=c19(this,x.ssdaiAdsConfig);V=x.je&&x.xv&&V>=x.xv?x.je:void 0;x=this.playback.getVideoData();var Z,P=((Z=x.S)==null?void 0:Z.containerType)||0;Z=x.bJ[P];return{lJ:t?H$q(this,t):[],Kh:u,KV:V,YR:Z8(Z.split(";")[0]),fb:Z.split(";")[1]||""}}; g.q.CQ=function(V,t,x,u,Z,P){var K=Number(x.split(";")[0]);Z=u===3;V=o7q(this,V,t,u,x,P);this.cX&&this.playback.J6("sdai",{gdu:1,seg:t,itag:K,pb:""+!!V});if(!V)return Kz(this,t,Z),null;V.locations||(V.locations=new Map);if(!V.locations.has(K)){var R,f;P=(R=V.videoData.getPlayerResponse())==null?void 0:(f=R.streamingData)==null?void 0:f.adaptiveFormats;if(!P)return this.playback.J6("sdai",{gdu:"noadpfmts",seg:t,itag:K}),Kz(this,t,Z),null;R=P.find(function(p){return p.itag===K}); if(!R||!R.url){var b=V.videoData.videoId;V=[];u=g.G(P);for(var E=u.next();!E.done;E=u.next())V.push(E.value.itag);this.playback.J6("sdai",{gdu:"nofmt",seg:t,vid:b,itag:K,fullitag:x,itags:V.join(",")});Kz(this,t,Z);return null}V.locations.set(K,new g.vg(R.url,!0))}R=V.locations.get(K);if(!R)return this.playback.J6("sdai",{gdu:"nourl",seg:t,itag:K}),Kz(this,t,Z),null;R=new Nv(R);this.Td&&(R.get("dvc")?this.playback.J6("sdai",{dvc:R.get("dvc")||""}):R.set("dvc","webm"));var k;(f=(k=P5(this,t-1,u))== null?void 0:k.GQ)&&R.set("daistate",f);V.je&&t>=V.je&&R.set("skipsq",""+V.je);(f=this.playback.getVideoData().clientPlaybackNonce)&&R.set("cpn",f);k=[];V.S5&&(k=H$q(this,V.S5),k.length>0&&R.set("acpns",k.join(",")));Z||this.B.set(t,V);Z=null;Z=R.get("aids");var O;if((((E=Z)==null?void 0:(O=E.split(","))==null?void 0:O.length)||0)!==k.length)if(V.S5){var N;this.playback.J6("sdai",{acpns_aids_nm:1,ids:Dkw(this,V.S5).join("_"),acpns:k.join("_"),aids:(N=Z)==null?void 0:N.replace(/,/g,"_"),cpn:f,trackType:u})}else this.playback.J6("sdai", {acpns_aids_nm:"noAdBreakId",cpn:f});u=R.dL();(u==null?void 0:u.length)>2048&&this.playback.J6("sdai",{urltoolong:1,sq:t,itag:K,len:u.length});this.cX&&(u&&(O=V.cpn,E=V.S5,dkl(this,O,E),E&&!this.SH.has(E)&&(O=Uks(this,O,E),N=eY1(this,E),this.playback.J6("sdai",{iofa:O}),this.playback.J6("sdai",{noawnzd:N-O}),this.playback.J6("sdai",{acpns:k.join("."),aids:(b=Z)==null?void 0:b.replace(/,/g,".")}),this.SH.add(E))),this.playback.J6("sdai",{gdu:"v",seg:t,itag:x,ast:V.xX.toFixed(3),alen:V.durationMs.toFixed(3), acpn:V.cpn,avid:V.videoData.videoId}));return u}; g.q.hP=function(V,t,x){var u=ZI(this,V,x);return(u=u?(u.xX+u.durationMs)/1E3:0)&&t>u?(this.HJ(V,x,!0),this.playback.seekTo(u),!0):!1}; g.q.HJ=function(V,t,x){x=x===void 0?!1:x;var u=ZI(this,V,t);if(u){var Z=void 0,P=u.S5;if(P){this.playback.J6("sdai",{skipadonsq:t,sts:x,abid:P,acpn:u.cpn,avid:u.videoData.videoId});x=this.X.get(P);if(!x)return;x=g.G(x);for(P=x.next();!P.done;P=x.next())P=P.value,P.je=t,P.xv=V,P.xX>u.xX&&(Z=P)}this.C=u.cpn;y1q(this);V=this.playback.getCurrentTime();YC4(this,u,Z,V,V,!1,!0)}}; g.q.aP=function(){for(var V=g.G(this.G),t=V.next();!t.done;t=V.next())t=t.value,t.je=NaN,t.xv=NaN;y1q(this);this.playback.J6("sdai",{rsac:"resetSkipAd",sac:this.C});this.C=""}; g.q.N8=V0(47); g.q.aS=function(V,t,x,u,Z,P,K,R,f){u.length>0&&this.playback.J6("sdai",{onssinfo:1,sq:V,start:t.toFixed(3),cpns:u.join(","),ds:Z.join(","),isVideo:K?1:0});f&&(K?this.yC.set(V,{GQ:f,eb:R}):this.Es.set(V,{GQ:f,eb:R}));R=qm(this.playback.getVideoData())&&this.Rj.T("html5_process_all_cuepoints");if(K||R){if(u.length&&Z.length)for(this.C&&this.C===u[0]&&this.playback.J6("sdai",{skipfail:1,sq:V,acpn:this.C}),V=t+this.Jq(),K=0;K0&&(this.UV=0,this.Eh="",this.api.publish("serverstitchedvideochange"));this.playback.lU(x,u);return!0}; g.q.sS=function(){this.playback.J6("sdai",{rstdaist:1});this.Es.clear();this.yC.clear();this.L1.clear()}; g.q.bC=function(V){var t;if(V!==((t=this.Ij)==null?void 0:t.identifier))this.playback.J6("sdai",{ignorenoad:V});else{this.U1.add(V);var x;((x=this.Ij)==null?void 0:x.identifier)===V&&wo(this)}}; g.q.T2=function(){return this.UV}; g.q.Bp=function(){return this.Eh}; g.q.Gw=function(V){if(this.playback.getVideoData().R_()&&(this.Rj.T("html5_lifa_no_gab_on_predict_start")&&V.event==="predictStart"||this.Rj.T("html5_lifa_no_gab_on_continue_or_stop")&&(V.event==="continue"||V.event==="stop")))return this.api.J6("sdai",{cuepoint_skipped:V.event}),!1;var t=jC(this.api.Jl());if(t=t?t.Gw(V):!1)this.L={p5:V.identifier,YC:V.startSecs};else if(this.L&&this.L.p5===V.identifier&&V.startSecs>this.L.YC+1){this.api.J6("sdai",{cueStChg:V.identifier,oldSt:this.L.YC.toFixed(3), newSt:V.startSecs.toFixed(3),abid:this.L.zx});if(this.L.zx){var x=V.startSecs-this.L.YC,u=this.X.get(this.L.zx);if(u){u=g.G(u);for(var Z=u.next();!Z.done;Z=u.next())Z=Z.value,Z.xX>=0&&(Z.xX+=x*1E3,this.Rj.T("html5_ssdai_update_timeline_on_start_time_change")&&(Z.wL+=x*1E3),this.playback.getVideoData().R_()&&this.playback.J6("sdai",{newApEt:Z.xX,newApPrt:Z.wL,acpn:Z.cpn}))}}this.L.YC=V.startSecs}return t}; g.q.kM=function(V){return this.GA?!1:!!n7h(this,V)}; g.q.Zi=function(V){var t=this;this.playback.pauseVideo();var x=this.playback.getCurrentTime(),u=this.N.get(this.Eh),Z=this.S.get(this.Eh);if(u){this.C=this.Eh;this.zU=!1;u.TG=!0;var P=this.playback.getCurrentTime();this.J={ZZ:Z,isAd:!0,tq:!1,VV:P,adCpn:this.Eh,Jy:u,YHP:V};this.playback.getVideoData().R_()&&this.playback.ZL(u,this.Q8(),P,this.playback.getCurrentTime(),!1,!0,V,(0,g.Tu)());if(Z==null?0:Z.start)this.DS=P*1E3-Z.start;this.B.clear();this.playback.OO();this.Eh=this.Q8().cpn;this.api.publish("serverstitchedvideochange"); this.playback.seekTo(x,{seekSource:89,xK:"lifa_skip"});this.playback.playVideo();this.gk||(this.gk=this.events.Z(this.api,"progresssync",function(){var K=u.Xq?u.Xq*1E3:u.xX,R=t.S.get(u.cpn);R&&t.playback.removeCueRange(R);t.S.delete(u.cpn);t.N.delete(u.cpn);R=t.G.indexOf(u);R>=0&&t.G.splice(R,1);R=[];for(var f=g.G(t.W),b=f.next();!b.done;b=f.next())b=b.value,b.end<=K?t.playback.removeCueRange(b):R.push(b);t.W=R;jsw(t,0,K+u.durationMs)})); return!0}this.playback.J6("sdai",{skipFail:x});return!1}; var zYT=0;g.A(wA1,g.c);g.q=wA1.prototype; g.q.sN=function(V,t){t=t===void 0?"":t;if(this.timeline.N===t)return!0;var x=this.timeline.J,u=x==null?void 0:x.getVideoData();if(!x||!u)return this.api.J6("ssap",{htsm:x?0:1}),!1;if(this.api.T("html5_ssap_clear_timeline_before_update")){var Z=this.timeline,P;(P=Z.J)==null||v7j(P);Z.S.clear()}Z=D6(x);var K=!1;P=[];var R=new Map;x=[];var f=[],b=0,E=0,k=0,O=[];V=g.G(V);for(var N=V.next();!N.done;N=V.next())a:{var p=void 0,I=void 0,L=N.value,M=L.clipId;if(M){if(L.XY){k=L.XY.tA||0;N=L.XY.hA||1;var z= Number(((L.XY.Xy||0)/(L.XY.kP||1)*1E3).toFixed(0));k=N=z+Number((k/N*1E3).toFixed(0))}else N=z=k,this.Dv.has(M)||this.sE.add(M);var Y=(I=R.get(M))!=null?I:0,r=this.timeline.N;I=!1;if(r&&this.api.T("html5_ssap_clear_timeline_before_update")){if(r=this.cQ.get(M))r.start=z,r.end=N,I=!0}else{if(r){var n=M;r=z;var U=N,d=Y,uL=Rv(this.timeline,n);if(uL!=null&&uL.length){d=R){this.zK.set(V,x);uf8(this,V,t);this.Wc.set(V,(0,g.Tu)());if(x=this.cQ.get(t))for(x=x.getId().split(","),x=g.G(x),K=x.next();!K.done;K=x.next())K=K.value,K!==t&&this.sE.has(K)&&(this.sE.delete(K),this.Dv.add(K));qW(this);t=P.uv()/1E3;P=void 0;x=(P=g.S7(this.api.K().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?P:0;this.api.T("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(t+ x/1E3,{nf:!0}):this.playback.seekTo(t+x/1E3);this.Qw?(this.api.J6("ssap",{gpfreload:this.Eh}),hYw(this)||(this.Qw=!1),this.playback.OO(!1,!1,this.api.T("html5_ssap_keep_media_on_finish_segment"))):u&&this.playback.OO(!1,!1,this.api.T("html5_ssap_keep_media_on_finish_segment"));Z&&this.api.playVideo(1,this.api.T("html5_ssap_keep_media_on_finish_segment"));return[V]}}}return[]}; g.q.Ca=function(){var V=this.timeline.J;if(!V)return 0;var t=V.Ue();V=g.G(V.J.values());for(var x=V.next();!x.done;x=V.next()){x=g.G(x.value);for(var u=x.next();!u.done;u=x.next())u=u.value,u.Ue()>t&&(t=u.Ue())}return t/1E3}; g.q.L9=function(){var V=this.playback.getCurrentTime()*1E3;var t=q_C(this,V);if(!t){var x=Rv(this.timeline,this.Eh);if(x){x=g.G(x);for(var u=x.next();!u.done;u=x.next())u=u.value,u.uv()>V&&(t=u)}}return t&&t.getType()===1?t.uv()/1E3:0}; g.q.getVideoData=function(V){if(V===2&&!this.L6()){if(this.AV&&this.vx.has(this.AV))return this.vx.get(this.AV);this.api.J6("ssap",{lpanf:""+rS(this)});return null}return $_8(this)}; g.q.L6=function(){var V=Rv(this.timeline,this.Eh);return(V==null?0:V.length)?V[0].getType()===2:!1}; g.q.v6=function(){var V=Rv(this.timeline,this.Eh);return(V==null?0:V.length)?V[0].S:!1}; g.q.seekTo=function(V,t){t=t===void 0?{}:t;var x=RrT(this,this.playback.getCurrentTime());this.playback.seekTo(V+x/1E3,t)}; g.q.Hn=function(V,t,x){return new g.b4(V,t,{id:x,namespace:"ssap",priority:9})}; g.q.onCueRangeEnter=function(V){if(!this.Jv.has(V.getId())){this.api.J6("ssap",{oce:1,cpn:V.getId(),st:V.start,et:V.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.o_()||0).toFixed(3)});for(var t=V.getId().split(","),x=0;xx+1)for(u=x+1;uthis.N;)(x=this.data.shift())&&NW(this,x,!0);Oa(this)}; g.q.remove=function(V,t){t=t===void 0?!1:t;var x=this.data.find(function(u){return u.key===V}); x&&(NW(this,x,t),g.w7(this.data,function(u){return u.key===V}),Oa(this))}; g.q.removeAll=function(V){if(V=V===void 0?!1:V)for(var t=g.G(this.data),x=t.next();!x.done;x=t.next())NW(this,x.value,V);this.data=[];Oa(this)}; g.q.NP=function(){var V=this;g.c.prototype.NP.call(this);this.data.forEach(function(t){NW(V,t,!0)}); this.data=[]};g.A(pz,g.c);pz.prototype.V3=function(V){if(V)return this.S.get(V)}; pz.prototype.NP=function(){this.J.removeAll();this.S.removeAll();g.c.prototype.NP.call(this)};g.V5F=Aj(function(){var V=window.AudioContext||window.webkitAudioContext;try{return new V}catch(t){return t.name}});g.A(aRh,g.e);g.q=aRh.prototype;g.q.Y9=function(){g.sU(this.element,g.Xq.apply(0,arguments))}; g.q.AY=function(){this.JJ&&(this.JJ.removeEventListener("focus",this.f4),g.RZ(this.JJ),this.JJ=null)}; g.q.MC=function(){this.uD();var V=this.app.K();V.w2||this.Y9("tag-pool-enabled");V.B&&this.Y9(g.Ug.HOUSE_BRAND);V.playerStyle==="gvn"&&(this.Y9("ytp-gvn"),this.element.style.backgroundColor="transparent");V.Td&&(this.bU=g.im("yt-dom-content-change",this.resize,this));this.Z(window,"orientationchange",this.resize,this);this.Z(window,"resize",this.resize,this)}; g.q.Dw=function(V){g.ah(this.app.K());this.iG=!V;AQ(this)}; g.q.resize=function(){if(this.JJ){var V=this.g1();if(!V.isEmpty()){var t=!g.Sc(V,this.GB.getSize()),x=nos(this);t&&(this.GB.width=V.width,this.GB.height=V.height);V=this.app.K();(x||t||V.Td)&&this.app.A6.publish("resize",this.getPlayerSize())}}}; g.q.HN=function(V,t){this.updateVideoData(t)}; g.q.updateVideoData=function(V){if(this.JJ){var t=this.app.K();xp&&(this.JJ.setAttribute("x-webkit-airplay","allow"),V.title?this.JJ.setAttribute("title",V.title):this.JJ.removeAttribute("title"));this.JJ.setAttribute("controlslist","nodownload");t.Yl&&V.videoId&&(this.JJ.poster=V.zm("default.jpg"))}t=g.LN(V,"yt:bgcolor");this.B3.style.backgroundColor=t?t:"";this.xp=s7(g.LN(V,"yt:stretch"));this.Kz=s7(g.LN(V,"yt:crop"),!0);g.Am(this.element,"ytp-dni",V.kD);this.resize()}; g.q.setGlobalCrop=function(V){this.Ys=s7(V,!0);this.resize()}; g.q.setCenterCrop=function(V){this.wc=V;this.resize()}; g.q.pk=function(){}; g.q.getPlayerSize=function(){var V=this.app.K(),t=this.app.A6.isFullscreen(),x=V.externalFullscreen&&g.zo(V);if(t&&w5()&&!x)return new g.AI(window.outerWidth,window.outerHeight);x=!isNaN(this.jE.width)&&!isNaN(this.jE.height);var u=this.app.K().T("kevlar_player_enable_squeezeback_fullscreen_sizing");if(t&&!x&&u)return new g.AI(this.element.clientWidth,this.element.clientHeight);if(t||V.iz){if(window.matchMedia){V="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.iE&&this.iE.media=== V||(this.iE=window.matchMedia(V));var Z=this.iE&&this.iE.matches}if(Z)return new g.AI(window.innerWidth,window.innerHeight)}else if(x)return this.jE.clone();return new g.AI(this.element.clientWidth,this.element.clientHeight)}; g.q.g1=function(){var V=this.app.K().T("enable_desktop_player_underlay"),t=this.getPlayerSize(),x=g.S7(this.app.K().experiments,"player_underlay_min_player_width");return V&&this.Ym&&t.width>x?(V=g.S7(this.app.K().experiments,"player_underlay_video_width_fraction"),new g.AI(Math.min(t.height*this.getVideoAspectRatio(),t.width*V),Math.min(t.height,t.width*V/this.getVideoAspectRatio()))):t}; g.q.getVideoAspectRatio=function(){return isNaN(this.xp)?T6z(this):this.xp}; g.q.getVideoContentRect=function(V){var t=this.g1();V=Woq(this,t,this.getVideoAspectRatio(),V);return new g.sT((t.width-V.width)/2,(t.height-V.height)/2,V.width,V.height)}; g.q.lz=function(V){this.Ym=V;this.resize()}; g.q.GG=function(){return this.wX}; g.q.onMutedAutoplayChange=function(){AQ(this)}; g.q.setInternalSize=function(V){g.Sc(this.jE,V)||(this.jE=V,this.resize())}; g.q.NP=function(){this.bU&&g.O8(this.bU);this.AY();g.e.prototype.NP.call(this)};g.q=cgq.prototype;g.q.click=function(V,t){this.elements.has(V);this.J.has(V);var x=g.aw();x&&V.visualElement&&g.kW(x,V.visualElement,t)}; g.q.createClientVe=function(V,t,x,u){var Z=this;u=u===void 0?!1:u;this.elements.has(V);this.elements.add(V);x=GF9(x);V.visualElement=x;var P=g.aw(),K=g.QK();P&&K&&(g.Bc("combine_ve_grafts")?zv(gn(),x,K):g.RW(g.xW)(void 0,P,K,x));t.addOnDisposeCallback(function(){Z.elements.has(V)&&Z.destroyVe(V)}); u&&this.S.add(V)}; g.q.createServerVe=function(V,t,x){var u=this;x=x===void 0?!1:x;this.elements.has(V);this.elements.add(V);t.addOnDisposeCallback(function(){u.destroyVe(V)}); x&&this.S.add(V)}; g.q.destroyVe=function(V){this.elements.has(V);this.elements.delete(V);this.N.delete(V);this.J.delete(V);this.S.delete(V)}; g.q.LC=function(V,t){this.clientPlaybackNonce!==t&&(this.clientPlaybackNonce=t,XI(gn(),V),yg4(this))}; g.q.setTrackingParams=function(V,t){this.elements.has(V);t&&(V.visualElement=g.mn(t))}; g.q.RC=function(V,t,x){this.elements.has(V);t?this.J.add(V):this.J.delete(V);var u=g.aw(),Z=V.visualElement;this.S.has(V)?u&&Z&&(t?g.bv(u,[Z]):g.Ev(u,[Z])):t&&!this.N.has(V)&&(u&&Z&&g.$W(u,Z,void 0,x),this.N.add(V))}; g.q.hasVe=function(V){return this.elements.has(V)};g.A(g.GV,g.c);g.GV.create=function(V,t,x,u){try{var Z=typeof V==="string"?V:"player"+g.Dz(V),P=gA[Z];if(P){try{P.dispose()}catch(R){g.jv(R)}gA[Z]=null}var K=new g.GV(V,t,x,u);K.addOnDisposeCallback(function(){gA[Z]=null;K.qW&&K.qW()}); return gA[Z]=K}catch(R){throw g.jv(R),(R&&R instanceof Error?R:Error(String(R))).stack;}}; g.q=g.GV.prototype;g.q.Xl=function(){return this.visibility}; g.q.CB=function(V){var t=V.Go,x=this.c$();if(t!==x){t.getVideoData().autonavState=x.getVideoData().autonavState;x.PC(this.jp,this);var u=x.getPlaybackRate();x.S8.dispose();this.n9.CB(V);t.setPlaybackRate(u);t.NB(this.jp,this);d_8(this)}}; g.q.tY=function(){this.oU||(this.oU=g.iM(oE(),PCC()));return this.oU}; g.q.AY=function(V){if(this.mediaElement){this.u$&&(this.events.vk(this.u$),this.u$=null);g.oV(this.UR);var t=this.rk();t&&t.AY(!0,!1,V);this.template.AY();try{this.T("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Bz()}catch(x){g.lf(x)}this.mediaElement=null}}; g.q.CO=function(V,t){if(V.Go!==this.rk()){this.logger.debug(function(){return"start set presenting player, type "+V.getPlayerType()+", vid "+V.getVideoData().videoId}); var x=null,u=this.rk();u&&(x=u.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),yk(this.Tk,3),yP(this,"cuerangesremoved",u.Fl()),this.q$&&!V.isGapless()&&u.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),u=V.M$()&&u.M$(),this.Uh.g8("iv_s"),PlK(this,u));V.getPlayerType()===1&&this.CB(V);Zcs(this,V);this.n9.CO(V);u=V.Go;this.mediaElement&&u.setMediaElement(this.mediaElement);u.NB(this.eO,this);if(u.AF())YK0(this,"setPresenting",!1);else{this.onVideoDataChange("newdata", V,u.getVideoData());x&&!g.ig(x,u.getPlayerState())&&this.K3(new g.IT(u.getPlayerState(),x));t=t&&this.T("html5_player_preload_ad_fix")&&u.getPlayerType()===1;if(u.Ep()&&!t)this.onVideoDataChange("dataloaded",V,u.getVideoData());(t=(t=u.getVideoData().S)&&t.video)&&this.A6.T4("onPlaybackQualityChange",t.quality);yP(this,"cuerangesadded",u.Fl());t=u.getPlayerState();g.J(t,2)?u7l(this):g.J(t,8)?u.playVideo():u.nH()&&u.pauseVideo();t=this.c$();u.getPlayerType()===2&&(u.getVideoData().gW=t.getVideoData().clientPlaybackNonce); u.getPlayerType()!==2||this.Xt()||(u=u.getVideoData(),t.LO(u.clientPlaybackNonce,u.kX||"",u.breakType||0,u.a4,u.videoId||""));this.logger.debug("finish set presenting player")}}}; g.q.eN=function(){if(this.c$()!==this.rk()){var V=this.rk();this.logger.debug(function(){return"release presenting player, type "+(V==null?void 0:V.getPlayerType())+", vid "+(V==null?void 0:V.getVideoData().videoId)}); this.CO(this.n9.J)}}; g.q.C0=function(V){if(V)if(V===1)V=this.n9.J;else if(this.getVideoData().enableServerStitchedDai&&V===2)V=this.getVideoData().enablePreroll?this.n9.S[2]||this.n9.N:this.n9.N;else if(g.d8(this.getVideoData())&&V===2){if(V=this.T("html5_ssap_return_content_player_during_preroll"))if(V=this.e8)V=this.e8,V=V.Eh===""?!0:V.L6();V=V?this.n9.N:this.n9.S[2]||this.n9.N}else V=this.n9.S[V]||null;else V=this.n9.N;return V}; g.q.c$=function(){return this.n9.c$()}; g.q.rk=function(){return this.n9.rk()}; g.q.LQ=function(V,t,x){var u=this,Z=this.Uh;V===2&&(Z=new cf9(this.Rj));return new g.vJ(this.Rj,V,Z,this.template,function(P,K,R){u.A6.publish(P,K,R)},function(){return u.A6.getVisibilityState()},this.visibility,this,t,x)}; g.q.K0k=function(){MW(this)||(this.logger.debug("application playback ready"),this.Ov(5))}; g.q.jCX=function(V){if(!MW(this)){this.logger.debug("playback ready");XCh(this);var t=V.getPlayerState();V.nH()?this.pauseVideo():t.isOrWillBePlaying()&&this.playVideo()}}; g.q.canPlayType=function(V){return Wb(V)}; g.q.K=function(){return this.Rj}; g.q.getVideoData=function(){return this.rk().getVideoData()}; g.q.tW=V0(18);g.q.M6=function(){return this.c$().getVideoData()}; g.q.getVideoLoadedFraction=function(V){V=g.pv(this,V);return V?g.hM(V.getVideoData())?1:(V=V.Bw())?V.bZ():0:0}; g.q.XX=function(){return this.template}; g.q.Jl=function(){return this.Tk}; g.q.d1=function(){return this.Uh}; g.q.Oi=function(V){var t=g.pv(this,1);t&&t.zD(V)}; g.q.rZ=function(){var V=this.Tk.rZ();this.A6.publish("videoStatsPingCreated",V);return V}; g.q.getVolume=function(){return Math.round(this.A6.getVolume())}; g.q.isMuted=function(){return this.A6.isMuted()}; g.q.ax=function(){if(this.c$()===this.rk()&&this.fI)return this.fI.postId}; g.q.oDU=function(){var V=this;this.T("use_rta_for_player")||(g.ap(this.Rj)?g.Pi(this.Rj,g.DD(this.getVideoData())).then(function(t){nv(oE(),t);pTq(V.getVideoData(),V.Rj,V.tY())}):pTq(this.getVideoData(),this.Rj,this.tY()))}; g.q.FH=function(V){this.A6.publish("poTokenVideoBindingChange",V)}; g.q.Wd=function(V){this.A6.publish("d6de4videobindingchange",V)}; g.q.cM=function(){this.Q6&&this.Q6.cM()}; g.q.iW=function(V){this.Q6=V}; g.q.gQ=function(V){if(V===1){this.Uh.tick("vr");var t=this.rk();t.Pn();yfl(this.Uh,t.getVideoData(),g3j(this));XIw(this.Tk)}t=this.Rj;(xX(t)&&t.L||g.To(t))&&(this.Xt()||this.A6.T4("onAdStateChange",V))}; g.q.setLoopVideo=function(V){var t=this.rk();t===this.c$()&&t.gI()!==V&&(t.setLoop(V),this.A6.Os("onLoopChange",V))}; g.q.getLoopVideo=function(){return this.rk().gI()}; g.q.setLoopRange=function(V){var t=!1;!!this.fI!==!!V?t=!0:this.fI&&V&&(t=this.fI.startTimeMs!==V.startTimeMs||this.fI.endTimeMs!==V.endTimeMs||this.fI.postId!==V.postId||this.fI.type!==V.type);if(t){(t=this.rk())&&ZD(t.getVideoData())&&t.J6("slr",{et:(V==null?void 0:V.endTimeMs)||-1});t=this.c$();t.CR("applooprange");if(V){var x=new g.b4(V.startTimeMs,V.endTimeMs,{id:"looprange",namespace:"applooprange"});t.addCueRange(x)}else{this.M6().clipConfig=void 0;var u;((x=this.fI)==null?void 0:x.type)!== "repeatChapter"||isNaN(Number((u=this.fI)==null?void 0:u.loopCount))||(x={loopCount:String(this.fI.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.pq("repeatChapterLoopEvent",x))}this.fI=V;this.A6.Os("onLoopRangeChange",V||void 0);this.c$()===this.rk()&&(this.xB(),t.S8.t8())}}; g.q.getLoopRange=function(){return this.fI}; g.q.xB=function(){var V="",t=this.c$();this.fI?t!==this.rk()?V="pnea":kAs(this,t.getCurrentTime())&&(this.fI.loopCount=0,V="ilr"):V="nlr";var x=this.rk();if(x&&ZD(x.getVideoData()))if(this.T("html5_gapless_log_loop_range_info")){var u,Z;x.J6("slrre",{rej:V,ct:t.getCurrentTime(),lst:(u=this.fI)==null?void 0:u.startTimeMs,let:(Z=this.fI)==null?void 0:Z.endTimeMs})}else x.J6("slrre",{});V||Nc8(this)}; g.q.setPlaybackRate=function(V,t){if(!isNaN(V)){V=w90(this,V);var x=this.c$();x.getPlaybackRate()!==V&&(x.setPlaybackRate(V),t&&!this.Rj.W&&g.je("yt-player-playback-rate",V),this.A6.T4("onPlaybackRateChange",V))}}; g.q.getCurrentTime=function(V,t,x){t=t===void 0?!0:t;if(this.getPresentingPlayerType()===3)return zr(this.Tk).getCurrentTime();var u=V===2&&this.getVideoData().enableServerStitchedDai,Z=g.d8(this.getVideoData());V=u||Z?this.rk():g.pv(this,V);if(!V)return 0;if(Z&&this.e8)return t=this.e8,V=V.getCurrentTime(),x?x=RX(t,x):(x=RrT(t,V),x=V-x/1E3),x;if(t){if(u&&this.DZ&&(x=this.DZ.DS/1E3,x!==0))return x;x=Fs(this,V);return aX(this,x.getCurrentTime(),x)}u&&this.DZ?(x=this.DZ,V=V.getCurrentTime(),x=(x=Qsh(x, V*1E3))?V-x.start/1E3:V):x=V.getCurrentTime();return x}; g.q.y$=function(){var V=g.pv(this);if(!V)return 0;V=Fs(this,V);return aX(this,V.y$(),V)}; g.q.getDuration=function(V,t){t=t===void 0?!0:t;var x=this.getVideoData(),u=V===2&&x.enableServerStitchedDai,Z=g.d8(x);var P=u||Z?this.rk():g.pv(this,V);if(!P)return 0;if(x.hasProgressBarBoundaries()&&!u&&!Z){var K,R=Number((K=x.progressBarStartPosition)==null?void 0:K.utcTimeMillis),f;x=Number((f=x.progressBarEndPosition)==null?void 0:f.utcTimeMillis);if(!isNaN(R)&&!isNaN(x))return(x-R)/1E3}if(Z&&this.e8)return t=fRC(this.e8,this.e8.Bp()),V===1&&t===0?P.getDuration():t;if(t)return P=Lz(this,P),aX(this, P.getDuration(),P);u&&this.DZ?(V=this.DZ,P=P.getCurrentTime(),P=(P=aqC(V,P*1E3))?P.durationMs/1E3:0):P=P.getDuration();return P}; g.q.eH=function(V){var t=g.pv(this,V);return t?this.Xt(t)?(t=Lz(this,t),t.eH()-t.getCurrentTime()+this.getCurrentTime(V)):t.eH():0}; g.q.l_=function(){return this.DQ}; g.q.addPlayerResponseForAssociation=function(V){this.e8&&this.e8.addPlayerResponseForAssociation(V)}; g.q.finishSegmentByCpn=function(V,t,x){return this.e8?this.e8.finishSegmentByCpn(V,t,x):[]}; g.q.MC=function(){this.template.MC();var V=this.A6;V.state.element=this.template.element;var t=V.state.element,x;for(x in V.state.J)V.state.J.hasOwnProperty(x)&&(t[x]=V.state.J[x]);(V=WK4(this.template.element))&&this.events.Z(this.template,V,this.onFullscreenChange);this.events.Z(window,"resize",this.Y18)}; g.q.getDebugText=function(V){var t=this.c$().nI(V),x=this.rk(),u=this.c$();if(x&&x!==u){x=x.nI(V);u=g.G(Object.keys(x));for(var Z=u.next();!Z.done;Z=u.next())Z=Z.value,t["ad"+Z]=x[Z];if(V){x=t;u={};if(Z=HO(document,"movie_player"))u.bounds=Z.getBoundingClientRect(),u["class"]=Z.className;Z={};var P=g.JI("video-ads");P?(rGC(P,Z),Z.html=P.outerHTML):Z.missing=1;P={};var K=g.JI("videoAdUiSkipContainer"),R=g.JI("ytp-ad-skip-button-container"),f=g.JI("ytp-skip-ad-button"),b=K||R||f;b?(rGC(b,P),P.ima=K? 1:0,P.bulleit=R?1:0,P.component=f?1:0):P.missing=1;u=JSON.stringify({player:u,videoAds:Z,skipButton:P});x.ad_skipBtnDbgInfo=u}}V&&this.mediaElement&&(t["0sz"]=""+(+GW(this.mediaElement.getSize())===0),t.op=this.mediaElement.FU("opacity"),x=this.mediaElement.jc().y+this.mediaElement.getSize().height,t.yof=""+(+x<=0),t.dis=this.mediaElement.FU("display"));V&&((V=(0,g.Wt)())&&(t.gpu=V),(V=this.Rj.playerStyle)&&(t.ps=V),this.Rj.xw&&(t.webview=1));t.debug_playbackQuality=this.A6.getPlaybackQuality(1); t.debug_date=(new Date).toString();t.origin=window.origin;t.timestamp=Date.now();delete t.uga;delete t.q;return JSON.stringify(t,null,2)}; g.q.getFeedbackProductData=function(){var V={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.K().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20250126_00_RC00"},t=this.getPlayerStateObject().Mv;t&&(V.player_error_code=t.errorCode,V.player_error_details=JSON.stringify(t.errorDetail));return V}; g.q.getPresentingPlayerType=function(V){if(this.appState===1)return 1;if(MW(this))return 3;var t;if(V&&((t=this.DZ)==null?0:t.L6(this.getCurrentTime())))return 2;var x;return g.d8(this.getVideoData())&&((x=this.e8)==null?0:x.L6())?2:this.rk().getPlayerType()}; g.q.v6=function(){return g.d8(this.getVideoData())&&this.e8?this.e8.v6():!1}; g.q.getPlayerStateObject=function(V){return this.getPresentingPlayerType()===3?zr(this.Tk).lh:g.pv(this,V).getPlayerState()}; g.q.getAppState=function(){return this.appState}; g.q.D2=function(V){switch(V.type){case "loadedmetadata":this.Vo.start();V=g.G(this.CE);for(var t=V.next();!t.done;t=V.next())t=t.value,F4K(this,t.id,t.p0U,t.oE6,void 0,!1);this.CE=[];break;case "loadstart":this.Uh.g8("gv");break;case "progress":case "timeupdate":sG(V.target.oN())>=2&&this.Uh.g8("l2s");break;case "playing":g.V9&&this.Vo.start();if(g.ap(this.Rj))V=!1;else{var x=this.rk();t=g.Y2(this.Jl());V=this.mediaElement.FU("display")==="none"||GW(this.mediaElement.getSize())===0;var u=SX(this.template), Z=x.getVideoData();x=g.Dp(this.Rj);Z=Pz(Z);t=!u||t||x||Z||this.Rj.Tc;V=V&&!t}V&&(V=this.rk(),V.Lz(),this.getVideoData().Qt||(this.getVideoData().Qt=1,this.YP(),V.playVideo()))}}; g.q.onLoadProgress=function(V,t){this.A6.oC("onLoadProgress",t)}; g.q.j5P=function(){this.A6.publish("playbackstalledatstart")}; g.q.Aj=function(V,t){this.A6.publish("sabrCaptionsDataLoaded",V,t)}; g.q.GkP=function(V){var t;(t=this.rk())==null||t.PZ(V)}; g.q.BLX=function(V){var t;(t=this.rk())==null||t.Va(V)}; g.q.onVideoProgress=function(V,t){V=Fs(this,V.Go);t=aX(this,V.getCurrentTime(),V);this.A6.T4("onVideoProgress",t)}; g.q.onAutoplayBlocked=function(){this.A6.T4("onAutoplayBlocked");var V,t=(V=this.rk())==null?void 0:V.getVideoData();t&&(t.Yc=!0);this.T("embeds_enable_autoplay_and_visibility_signals")&&g.zo(this.Rj)&&(V={autoplayBrowserPolicy:Dn(),autoplayIntended:e_(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.pq("embedsAutoplayStatusChanged",V))}; g.q.QCP=function(){this.A6.publish("progresssync")}; g.q.rJU=function(){this.A6.oC("onPlaybackPauseAtStart")}; g.q.yl6=function(V){if(this.getPresentingPlayerType()===1){g.LC(V,1)&&!g.J(V.state,64)&&this.M6().isLivePlayback&&this.c$().isAtLiveHead()&&this.A6.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.LC(V,2)){if(this.fI&&this.fI.endTimeMs>=(this.getDuration()-1)*1E3){Nc8(this);return}u7l(this)}if(g.J(V.state,128)){var t=V.state;this.cancelPlayback(5);t=t.Mv;JSON.stringify({errorData:t,debugInfo:this.getDebugText(!0)});this.A6.T4("onError",Bbq(t.errorCode));this.A6.oC("onDetailedError",{errorCode:t.errorCode, errorDetail:t.errorDetail,message:t.errorMessage,messageKey:t.JH,cpn:t.cpn});(0,g.Tu)()-this.Rj.CG>6048E5&&this.A6.oC("onReloadRequired")}t={};if(V.state.isPlaying()&&!V.state.isBuffering()&&!h4("pbresume","ad_to_video")&&h4("_start","ad_to_video")){var x=this.getVideoData();t.clientPlaybackNonce=x.clientPlaybackNonce;x.videoId&&(t.videoId=x.videoId);g.C4(t,"ad_to_video");dq("pbresume",void 0,"ad_to_video");XIw(this.Tk)}this.A6.publish("applicationplayerstatechange",V)}}; g.q.K3=function(V){this.getPresentingPlayerType()!==3&&this.A6.publish("presentingplayerstatechange",V)}; g.q.SM=function(V){v5(this,sc(V.state));g.J(V.state,1024)&&this.A6.isMutedByMutedAutoplay()&&(Yq(this,{muted:!1,volume:this.PL.volume},!1),QP(this,!1))}; g.q.kp=function(V,t,x){V==="newdata"&&d_8(this);this.A6.publish("applicationvideodatachange",V,x)}; g.q.e7=function(V,t){this.A6.oC("onPlaybackAudioChange",this.A6.getAudioTrack().H$.name);this.A6.publish("internalaudioformatchange",this.A6.getAudioTrack().H$.id,t)}; g.q.WA=function(V){var t=this.rk().getVideoData();V===t&&this.A6.T4("onPlaybackQualityChange",V.S.video.quality)}; g.q.z1=function(){var V=this.n9.S[2]||null;if(V){var t=V.getVideoData();V=V.D$;var x;(x=this.rk())==null||x.J6("ssdai",{cleanaply:1,acpn:t==null?void 0:t.clientPlaybackNonce,avid:t.videoId,ccpn:V,sccpn:this.M6().clientPlaybackNonce===V?1:0,isDai:this.M6().enableServerStitchedDai?1:0});delete this.n9.S[2]}}; g.q.onVideoDataChange=function(V,t,x){var u=t.Go;this.logger.debug(function(){return"on video data change "+V+", player type "+u.getPlayerType()+", vid "+x.videoId}); this.Rj.d6()&&u.J6("vdc",{type:V,vid:x.videoId||"",cpn:x.clientPlaybackNonce||""});u===this.c$()&&(this.Rj.yd=x.oauthToken);if(u===this.c$()){this.getVideoData().enableServerStitchedDai&&!this.DZ?this.DZ=new g.J8(this.A6,this.Rj,this.n9.J,this):!this.getVideoData().enableServerStitchedDai&&this.DZ&&(this.DZ.dispose(),this.DZ=null);var Z,P;!g.d8(this.getVideoData())||V!=="newdata"&&V!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((Z=this.DQ.J)==null?void 0:(P=Z.getVideoData())==null?void 0: P.clientPlaybackNonce)?!g.d8(this.getVideoData())&&this.e8&&(this.e8.dispose(),this.e8=null):(SCj(this.DQ),this.T("html5_ssap_cleanup_ad_player_on_new_data")&&this.z1(),t=CW(this.DQ,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.DQ.enqueue(t,!0),eq(this.DQ,0,this.getDuration(1)*1E3,[t]),Gg8(this.DQ,this.getVideoData().clientPlaybackNonce,[t]),this.e8&&(this.e8.dispose(),this.e8=null),this.e8=new wA1(this.A6,this.DQ,this.n9.J),this.n9.J.Zv(this.e8))}if(V==="newdata")this.logger.debug("new video data, destroy modules"), yk(this.Tk,2),this.A6.publish("videoplayerreset",u);else{if(!this.mediaElement)return;V==="dataloaded"&&(this.c$()===this.rk()?(yw(x.Yw,x.tN),fmL(this)):qK4(this));u.getPlayerType()===1&&(this.Rj.dk&&ams(this),this.getVideoData().isLivePlayback&&!this.Rj.Wo&&this.Qg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),x.isLoaded()&&((yZq(x)||this.getVideoData().dJ)&&this.A6.publish("legacyadtrackingpingchange",this.getVideoData()),x.hasProgressBarBoundaries()&&AGq(this)));this.A6.publish("videodatachange", V,x,u.getPlayerType())}this.A6.T4("onVideoDataChange",{type:V,playertype:u.getPlayerType()});this.xB();(t=x.Ug)?this.q4.LC(t,x.clientPlaybackNonce):yg4(this.q4)}; g.q.t2=function(){Xs(this,null);this.A6.oC("onPlaylistUpdate")}; g.q.kd8=function(V){delete this.YB[V.getId()];this.c$().removeCueRange(V);a:{V=this.getVideoData();var t,x,u,Z,P,K,R,f,b,E,k=((t=V.L1)==null?void 0:(x=t.contents)==null?void 0:(u=x.singleColumnWatchNextResults)==null?void 0:(Z=u.autoplay)==null?void 0:(P=Z.autoplay)==null?void 0:P.sets)||((K=V.L1)==null?void 0:(R=K.contents)==null?void 0:(f=R.twoColumnWatchNextResults)==null?void 0:(b=f.autoplay)==null?void 0:(E=b.autoplay)==null?void 0:E.sets);if(k)for(t=g.G(k),x=t.next();!x.done;x=t.next())if(x= x.value,Z=u=void 0,x=x.autoplayVideo||((u=x.autoplayVideoRenderer)==null?void 0:(Z=u.autoplayEndpointRenderer)==null?void 0:Z.endpoint),u=g.l(x,g.w8),P=Z=void 0,x!=null&&((Z=u)==null?void 0:Z.videoId)===V.videoId&&((P=u)==null?0:P.continuePlayback)){V=x;break a}V=null}(t=g.l(V,g.w8))&&this.A6.Os("onPlayVideo",{sessionData:{autonav:"1",itct:V==null?void 0:V.clickTrackingParams},videoId:t.videoId,watchEndpoint:t})}; g.q.Ov=function(V){var t=this;V!==this.appState&&(this.logger.debug(function(){return"app state change "+t.appState+" -> "+V}),V===2&&this.getPresentingPlayerType()===1&&(v5(this,-1),v5(this,5)),this.appState=V,this.A6.publish("appstatechange",V))}; g.q.Qg=function(V,t,x,u,Z){this.c$().KG(V,t,x,u,Z)}; g.q.DW=function(V,t){this.c$().handleError(new Qr(V,t))}; g.q.isAtLiveHead=function(V,t){t=t===void 0?!1:t;var x=g.pv(this,V);if(!x)return!1;V=Lz(this,x);x=Fs(this,x);return V!==x?V.isAtLiveHead(aX(this,x.getCurrentTime(),x),!0):V.isAtLiveHead(void 0,t)}; g.q.d2=function(){var V=g.pv(this);return V?Lz(this,V).d2():0}; g.q.seekTo=function(V,t,x,u,Z){t=t!==!1;if(u=g.pv(this,u))this.appState===2&&B5(this),this.Xt(u)?rQ(this)?this.DZ.seekTo(V,{seekSource:Z},t,x):this.K9.seekTo(V,{seekSource:Z},t,x):g.d8(this.getVideoData())&&this.e8?this.e8.seekTo(V,{im:!t,Sf:x,xK:"application",seekSource:Z}):u.seekTo(V,{im:!t,Sf:x,xK:"application",seekSource:Z})}; g.q.seekBy=function(V,t,x,u){this.seekTo(this.getCurrentTime()+V,t,x,u)}; g.q.ND=function(){this.A6.T4("SEEK_COMPLETE")}; g.q.qz=function(){this.A6.Os("onAbnormalityDetected")}; g.q.onSnackbarMessage=function(V){this.A6.Os("onSnackbarMessage",V)}; g.q.VHD=function(V,t){V=V.Go;var x=V.getVideoData();if(this.appState===1||this.appState===2)x.startSeconds=t;this.appState===2?g.J(V.getPlayerState(),512)||B5(this):this.A6.T4("SEEK_TO",t)}; g.q.onAirPlayActiveChange=function(){this.A6.publish("airplayactivechange");this.Rj.T("html5_external_airplay_events")&&this.A6.oC("onAirPlayActiveChange",this.A6.F$())}; g.q.onAirPlayAvailabilityChange=function(){this.A6.publish("airplayavailabilitychange");this.Rj.T("html5_external_airplay_events")&&this.A6.oC("onAirPlayAvailabilityChange",this.A6.KL())}; g.q.showAirplayPicker=function(){var V;(V=this.rk())==null||V.X_()}; g.q.g$=function(){this.A6.publish("beginseeking")}; g.q.wq=function(){this.A6.publish("endseeking")}; g.q.getStoryboardFormat=function(V){return(V=g.pv(this,V))?Lz(this,V).getVideoData().getStoryboardFormat():null}; g.q.vQ=function(V){return(V=g.pv(this,V))?Lz(this,V).getVideoData().vQ():null}; g.q.Xt=function(V){V=V||this.rk();var t=!1;if(V){V=V.getVideoData();if(rQ(this))V=V===this.DZ.playback.getVideoData();else a:if(t=this.K9,V===t.S.getVideoData()&&t.J.length)V=!0;else{t=g.G(t.J);for(var x=t.next();!x.done;x=t.next())if(V.QP===x.value.QP){V=!0;break a}V=!1}t=V}return t}; g.q.X5=function(V,t,x,u,Z,P,K){this.logger.debug(function(){return"Adding video to timeline id="+V.video_id+"\n lengthMs="+u+" enterTimeMs="+Z}); var R="",f=rQ(this),b;(b=this.rk())==null||b.J6("appattl",{sstm:this.DZ?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:f});R=f?Bvl(this.DZ,V,t,x,u,Z,P,K):p9L(this.K9,V,x,u,Z,P);this.logger.debug(function(){return"Video added to timeline id="+V.video_id+" timelinePlaybackId="+R}); return R}; g.q.V_=function(V,t,x,u,Z,P,K){if(rQ(this)){var R=Bvl(this.DZ,V,t,x,u,Z,P,K);this.logger.debug(function(){return"Remaining video added to timeline id="+V.video_id+" timelinePlaybackId="+R})}return""}; g.q.bC=function(V){var t;(t=this.DZ)==null||t.bC(V)}; g.q.fQ=function(V,t){V=V===void 0?-1:V;t=t===void 0?Infinity:t;rQ(this)||goq(this.K9,V,t)}; g.q.zO=function(V,t,x){if(rQ(this)){var u=this.DZ,Z=u.Qt.get(V);Z?(x===void 0&&(x=Z.wL),Z.durationMs=t,Z.wL=x):u.eM("Invalid_timelinePlaybackId_"+V+"_specified")}else{u=this.K9;Z=null;for(var P=g.G(u.J),K=P.next();!K.done;K=P.next())if(K=K.value,K.QP===V){Z=K;break}Z?(x===void 0&&(x=Z.wL),Md0(u,Z,t,x)):fz(u,"InvalidTimelinePlaybackId timelinePlaybackId="+V)}}; g.q.enqueueVideoByPlayerVars=function(V,t,x,u){x=x===void 0?Infinity:x;u=u===void 0?"":u;this.Xt();V=new g.Hi(this.Rj,V);u&&(V.QP=u);SK9(this,V,t,x)}; g.q.queueNextVideo=function(V,t,x,u,Z){x=x===void 0?NaN:x;t=this.preloadVideoByPlayerVars(V,t===void 0?1:t,x,u===void 0?"":u,Z===void 0?"":Z);V=this.n9.N;t&&V&&(x=t.Go,V=this.rk(),this.T("html5_check_queue_on_data_loaded")?this.K().supportsGaplessShorts()&&V.getVideoData().C&&(t=this.L_,u=this.q$.C,t.W!==x&&(t.S=V,t.W=x,t.N=1,t.J=x.getVideoData(),t.G=u,t.J.isLoaded()?t.B():t.J.subscribe("dataloaded",t.B,t))):(x=Cyw(V,x,this.q$.C),x!=null?(V.J6("sgap",x),V.getVideoData().C&&V.gU(!1)):(V=t.getVideoData(), t=this.L_,t.J!==V&&(t.J=V,t.N=1,V.isLoaded()?t.L():t.J.subscribe("dataloaded",t.L,t)))))}; g.q.mI=function(V,t,x,u){var Z=this;x=x===void 0?0:x;u=u===void 0?0:u;var P=this.rk();P&&Lz(this,P).S2();RY4(this.q$,V,t,x,u).then(function(){Z.A6.oC("onQueuedVideoLoaded")},function(){})}; g.q.gg=function(){return this.q$.gg()}; g.q.I8=function(V){return this.q$.J===V.Go}; g.q.clearQueue=function(V,t){V=V===void 0?!1:V;t=t===void 0?!1:t;this.logger.debug("Clearing queue");this.q$.clearQueue(V,t)}; g.q.loadVideoByPlayerVars=function(V,t,x,u,Z,P){t=t===void 0?1:t;var K=this.c$();if(t===2&&this.M6().enableServerStitchedDai&&K&&!K.fu())return K.J6("lvonss",{vid:(V==null?void 0:V.videoId)||"",ptype:t}),!1;var R=!1;K=new g.Hi(this.Rj,V);K.reloadPlaybackParams=P;g.we(this.Rj)&&!K.Te&&g1(this.Uh);var f;P=this.Uh;var b=(f=K.dk)!=null?f:"";P.timerName=b;this.Uh.FJ("pl_i");this.T("web_player_early_cpn")&&K.clientPlaybackNonce&&this.Uh.infoGel({clientPlaybackNonce:K.clientPlaybackNonce});if(!in4(K).supportsVp9Encoding){var E; (E=this.rk())==null||E.J6("noVp9",{})}if(this.K().supportsGaplessShorts()){f=$kK(this.q$,K,t);if(f==null){v5(this,-1);V=this.q$;V.app.K().T("html5_gapless_new_slr")?OcK(V.app,"gaplessshortslooprange"):V.app.setLoopRange(null);V.app.getVideoData().DJ=!0;var k;(k=V.J)==null||k.CU();var O;(O=V.J)!=null&&Cp(O.S8.Zz());x={xK:"gapless_to_next_video",seekSource:60};var N;(N=V.app.rk())==null||N.seekTo(fq4(V),x);if(!V.app.getPlayerStateObject(t).isPlaying()){var p;(p=V.app.rk())==null||p.playVideo(!0)}V.B(); return!0}N=this.T("html5_shorts_gapless_preload_fallback");p=this.q$.L;N&&p&&!p.uD()&&(k=p.getVideoData(),k=this.Rj.T("html5_autonav_autoplay_in_preload_key")?W5(this,t,k):oX(this,t,k.videoId,k.QP),this.n9.W.set(k,p,3600));this.q$.clearQueue(N);var I;(I=this.rk())==null||I.J6("sgap",{f:f})}if(Z){for(;K.xV.length&&K.xV[0].isExpired();)K.xV.shift();R=K.xV.length-1;R=R>0&&Z.S(K.xV[R])&&Z.S(K.xV[R-1]);K.xV.push(Z)}x||(V&&USq(V)?(eW(this.Rj)&&!this.Bi&&(V.fetch=0),Xs(this,V)):this.playlist&&Xs(this,null), V&&(this.Bi=E7(!1,V.external_list)));this.A6.publish("loadvideo");t=this.fq(K,t,u);R&&this.Qg("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+K.xV.join()).replace(/[;:,]/g,"_"));return t}; g.q.preloadVideoByPlayerVars=function(V,t,x,u,Z){t=t===void 0?1:t;x=x===void 0?NaN:x;u=u===void 0?"":u;Z=Z===void 0?"":Z;var P="";if(this.Rj.T("html5_autonav_autoplay_in_preload_key"))P=Im1(this,t,V,Z);else{var K=NU(V);P=oX(this,t,K,Z)}if(this.n9.W.get(P))return this.logger.debug(function(){return"already preloaded "+P}),null; V=new g.Hi(this.Rj,V);Z&&(V.QP=Z);return GAh(this,V,t,x,u)}; g.q.setMinimized=function(V){this.visibility.setMinimized(V);(V=mJK(this.Tk))&&(this.isMinimized()?V.load():V.unload());this.A6.publish("minimized")}; g.q.setInline=function(V){this.visibility.setInline(V)}; g.q.setInlinePreview=function(V){this.visibility.setInline(V)}; g.q.Y8=function(V){var t;!V||!this.Rj.a4||(t=this.getVideoData())!=null&&t.backgroundable?this.visibility.Y8(V):this.Uc?this.Uc.start():this.Ru()}; g.q.setSqueezeback=function(V){this.visibility.setSqueezeback(V)}; g.q.Ru=function(){var V,t=(V=this.mediaElement)==null?void 0:V.m0();t&&X_(t).catch(function(x){return g.lf(x)})}; g.q.L2y=function(){this.mediaElement.m0();this.mediaElement.m0().webkitPresentationMode==="picture-in-picture"?this.Y8(!0):this.Y8(!1)}; g.q.togglePictureInPicture=function(){var V=this.rk();V&&V.togglePictureInPicture()}; g.q.fq=function(V,t,x){t=t===void 0?1:t;this.logger.debug(function(){return"start load video, id "+V.videoId+", type "+t}); h4("_start",this.Uh.timerName)||g.RW(yg)(void 0,this.Uh.timerName);var u=!1,Z=E3l(this,t,V,!1);Z?(u=!0,V.dispose()):(Z=K4T(this,t,V,x),(this.T("html5_onesie")||this.T("html5_load_before_stop"))&&Z.W3()&&Z.lC(),this.Vo.stop(),t===1&&t!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,t),this.CO(Z));x=Z.Go;x===this.c$()&&(this.Rj.yd=V.oauthToken);if(!x.W3())return!1;if(x===this.c$()){this.Ov(1);var P=B5(this);if(u&&this.T("html5_player_preload_ad_fix")&&x.getPlayerType()=== 1&&x.Ep())this.onVideoDataChange("dataloaded",Z,x.getVideoData());return P}x.pF();return!0}; g.q.cueVideoByPlayerVars=function(V,t){var x=this;t=t===void 0?1:t;var u=this.c$();if(this.M6().enableServerStitchedDai&&u&&!u.fu()&&V&&Object.keys(V).length>0)u.J6("qvonss",{vid:(V==null?void 0:V.videoId)||"",ptype:t});else if(V&&USq(V))if(this.eW=!0,Xs(this,V),(V=g.XK(this.playlist))&&V.s1())c5(this,V,t);else this.playlist.onReady(function(){zV(x)}); else{t||(t=this.getPresentingPlayerType());t===1&&this.t2();u=new g.Hi(this.Rj,V);var Z=g.zo(this.Rj)&&!this.Rj.wk&&t===1&&!u.isAd()&&!u.kX;this.A6.publish("cuevideo");Z?(this.rk().getVideoData().loading=!0,wBL(u,V?V:{}).then(function(P){c5(x,P,t)}),u.dispose()):c5(this,u,t)}}; g.q.vF=function(V,t,x,u,Z,P,K){if(!V&&!x)throw Error("Playback source is invalid");if(m8(this.Rj)||g.YH(this.Rj))return t=t||{},t.lact=rF(),t.vis=this.A6.getVisibilityState(),this.A6.Os("onPlayVideo",{videoId:V,watchEndpoint:P,sessionData:t,listId:x}),!1;lUs(this.Uh);this.Uh.reset();V={video_id:V};u&&(V.autoplay="1");u&&(V.autonav="1");P&&(V.player_params=P.playerParams);K&&(V.oauth_token=K);x?(V.list=x,this.loadPlaylist(V)):this.loadVideoByPlayerVars(V,1);return!0}; g.q.cuePlaylist=function(V,t,x,u){this.eW=!0;v3T(this,V,t,x,u)}; g.q.loadPlaylist=function(V,t,x,u){this.eW=!1;v3T(this,V,t,x,u)}; g.q.lX=function(){return this.A6.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.b9())}; g.q.Kp=V0(13); g.q.nextVideo=function(V,t){var x=g.Va(this.c$().getVideoData());g.rr(this.A6)&&x?this.vF(x.videoId,t?x.xb:x.sessionData,x.playlistId,t,void 0,x.ph||void 0):this.Bi?this.A6.oC("onPlaylistNext"):this.getPresentingPlayerType()===3?zr(this.Tk).nextVideo():!this.playlist||eW(this.Rj)&&!this.A6.isFullscreen()||(this.playlist.b9(V)&&dSl(this.playlist,DS1(this.playlist)),this.playlist.loaded?(V=t&&this.Rj.T("html5_player_autonav_logging"),t&&this.A6.publish("playlistautonextvideo"),this.fq(g.XK(this.playlist,void 0, t,V),1)):this.eW=!1)}; g.q.previousVideo=function(V){this.Bi?this.A6.oC("onPlaylistPrevious"):this.getPresentingPlayerType()===3?zr(this.Tk).Nd():!this.playlist||eW(this.Rj)&&!this.A6.isFullscreen()||(this.playlist.wB(V)&&dSl(this.playlist,eqz(this.playlist)),this.playlist.loaded?this.fq(g.XK(this.playlist),1):this.eW=!1)}; g.q.playVideoAt=function(V){this.Bi?this.A6.oC("onPlaylistIndex",V):this.playlist&&(this.playlist.loaded?this.fq(g.XK(this.playlist,V),1):this.eW=!1,dSl(this.playlist,V))}; g.q.getPlaylist=function(){return this.playlist}; g.q.mp=V0(23);g.q.ZIX=function(V){this.A6.T4("onCueRangeEnter",V.getId())}; g.q.djk=function(V){this.A6.T4("onCueRangeExit",V.getId())}; g.q.R$=function(){var V=g.nj(this.Jl());V&&V.R$()}; g.q.fp=function(V,t,x){var u=g.pv(this,t);if(u){var Z=this.M6();if(g.d8(Z)){if(this.e8)if(this.T("html5_ssap_enable_cpn_triggered_media_end")&&u.getPlayerType()===2&&this.e8.L6()&&(u=this.c$()),t===1)for(var P=Q6(this.e8,Z.clientPlaybackNonce),K=g.G(V),R=K.next();!R.done;R=K.next())R=R.value,R.start+=P,R.end+=P,R.ym=P,R.N=Z.clientPlaybackNonce;else if(this.T("html5_ssap_enable_cpn_triggered_media_end")&&t===2)for(this.getPresentingPlayerType(),Z=g.G(V),P=Z.next();!P.done;P=Z.next())P.value.N=this.e8.Bp(); Z=g.G(V);for(P=Z.next();!P.done;P=Z.next())K=void 0,P.value.playerType=(K=t)!=null?K:1}u.fp(V,x);t&&this.getPresentingPlayerType()!==t||yP(this,"cuerangesadded",V)}}; g.q.JT=function(V,t){var x=g.pv(this,t);x&&(x.JT(V),t&&this.getPresentingPlayerType()!==t||yP(this,"cuerangesremoved",V))}; g.q.qM=function(V){var t=this.rk()||this.c$(),x=this.getPresentingPlayerType();return this.T("html5_ssap_enable_cpn_triggered_media_end")?t.qM(x,V):t.qM(x)}; g.q.stD=function(){function V(){var u=t.screenLayer||(t.isMinimized()?3:0),Z=g.aw(u);if(Z&&Z!=="UNDEFINED_CSN"){var P=t.Rj.T("web_player_attach_player_response_ve"),K=t.Rj.T("web_playback_associated_ve");u={cpn:t.getVideoData().clientPlaybackNonce,csn:Z};t.getVideoData().Us&&(P||K)&&(P=g.mn(t.getVideoData().Us),g.$W(Z,P),K&&(u.playbackVe=P.getAsJson()));t.getVideoData().queueInfo&&(u.queueInfo=t.getVideoData().queueInfo);Z={};t.T("web_playback_associated_log_ctt")&&t.getVideoData().B&&(Z.cttAuthInfo= {token:t.getVideoData().B,videoId:t.getVideoData().videoId});g.pq("playbackAssociated",u,Z)}else g.lf(new g.xe("CSN Missing or undefined during playback association"))} var t=this,x=this.rk();this.getPresentingPlayerType();yfl(this.Uh,x.getVideoData(),g3j(this));gQ(this)&&this.Rj.W&&TD(this.M6())==="embedded"&&this.E4&&Math.random()<.01&&g.pq("autoplayTriggered",{intentional:this.intentionalPlayback});this.E4=!1;XIw(this.Tk);this.T("web_player_defer_ad")&&RPT(this);this.A6.oC("onPlaybackStartExternal");(this.Rj.T("mweb_client_log_screen_associated"),jW(this.Rj))||V();x={};this.getVideoData().B&&(x.cttAuthInfo={token:this.getVideoData().B,videoId:this.getVideoData().videoId}); x.sampleRate=20;J4("player_att",x);if(this.getVideoData().botguardData||this.T("fetch_att_independently"))g.J2(this.Rj)||hW(this.Rj)==="MWEB"?g.q3(g.fq(),function(){mt(t)}):mt(this); this.xB();sUh(this);this.T("embeds_enable_autoplay_and_visibility_signals")&&g.zo(this.Rj)&&(x={autoplayBrowserPolicy:Dn(),autoplayIntended:e_(this.getVideoData()),autoplayStatus:M7l(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.pq("embedsAutoplayStatusChanged",x))}; g.q.bE=function(){this.A6.publish("internalAbandon");TV(this)}; g.q.onApiChange=function(){var V=this.rk();this.Rj.L&&V?this.A6.T4("onApiChange",V.getPlayerType()):this.A6.T4("onApiChange")}; g.q.b9w=function(){var V=this.mediaElement;V={volume:g.EY(Math.floor(V.getVolume()*100),0,100),muted:V.Kn()};V.muted||QP(this,!1);this.PL=g.rZ(V);this.A6.T4("onVolumeChange",V)}; g.q.mutedAutoplay=function(V){var t=this.getVideoData().videoId;isNaN(this.mG)&&(this.mG=this.getVideoData().startSeconds);if(!this.T("embeds_enable_full_length_inline_muted_autoplay"))t&&(this.loadVideoByPlayerVars({video_id:t,playmuted:!0,start:this.mG}),this.A6.oC("onMutedAutoplayStarts"));else if((V==null?0:V.videoId)||t)this.loadVideoByPlayerVars({video_id:(V==null?0:V.videoId)?V==null?void 0:V.videoId:t,playmuted:!0,start:this.mG,muted_autoplay_duration_mode:V==null?void 0:V.durationMode}), this.A6.oC("onMutedAutoplayStarts")}; g.q.onFullscreenChange=function(){var V=zPj(this);this.pk(V?1:0);mGw(this,!!V)}; g.q.pk=function(V){var t=!!V,x=!!this.jI()!==t;this.visibility.pk(V);this.template.pk(t);this.T("html5_media_fullscreen")&&!t&&this.mediaElement&&zPj(this)===this.mediaElement.m0()&&this.mediaElement.y8();this.template.resize();x&&this.Uh.tick("fsc");x&&(this.A6.publish("fullscreentoggled",t),V=this.M6(),t={fullscreen:t,videoId:V.ML||V.videoId,time:this.getCurrentTime()},this.A6.getPlaylistId()&&(t.listId=this.A6.getPlaylistId()),this.A6.T4("onFullscreenChange",t))}; g.q.F_=function(){return this.visibility.F_()}; g.q.isFullscreen=function(){return this.visibility.isFullscreen()}; g.q.jI=function(){return this.visibility.jI()}; g.q.Y18=function(){if(this.rk()){this.jI()!==0&&this.jI()!==1||this.pk(zPj(this)?1:0);var V;this.Rj.a4&&((V=this.getVideoData())==null?0:V.backgroundable)&&this.mediaElement&&window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)<.33&&this.mediaElement.y8()}}; g.q.hXs=function(V){this.getPresentingPlayerType()!==3&&this.A6.publish("liveviewshift",V)}; g.q.playVideo=function(V,t){this.logger.debug(function(){return"play video, player type "+V}); var x=g.pv(this,V);x&&(this.appState===2?(g.we(this.Rj)&&g1(this.Uh),B5(this)):g.J(x.getPlayerState(),2)?(t=36,this.getVideoData().Lc()&&(t=37),this.seekTo(0,void 0,void 0,void 0,t)):x.playVideo(!1,t))}; g.q.pauseVideo=function(V,t){(V=g.pv(this,V))&&V.pauseVideo(t)}; g.q.stopVideo=function(V){V=V===void 0?!1:V;this.logger.debug(function(){return"stop video"}); var t=this.c$().getVideoData(),x=new g.Hi(this.Rj,{video_id:t.ML||t.videoId,oauth_token:t.oauthToken});x.X=g.rZ(t.X);var u;!V||(u=this.webPlayerContextConfig)!=null&&u.disableStaleness||(x.XD=!0);this.cancelPlayback(6);c5(this,x,1)}; g.q.cancelPlayback=function(V,t){var x=this;this.logger.debug(function(){return"start cancel playback, type "+t}); var u=g.pv(this,t);u?t===2&&u.getPlayerType()===1&&(ux9(this.M6())||g.d8(this.getVideoData()))?u.J6("canclpb",{r:"no_adpb_ssdai"}):(this.Rj.d6()&&u.J6("canclpb",{r:V}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+x.appState}):(u===this.rk()&&(this.logger.debug("cancel playback, destroy modules"),yk(this.Tk,V)),t===1&&(u.stopVideo(),TV(this)),u.oM(void 0,V!==6),yP(this,"cuerangesremoved",u.Fl()),u.S8.X$.reset(),this.q$&&u.isGapless()&& (u.AY(!0),u.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; g.q.sendVideoStatsEngageEvent=function(V,t,x){(t=g.pv(this,t))&&V1j(this.Rj,V)?t.sendVideoStatsEngageEvent(V,x):x&&x()}; g.q.KJ=function(V){var t=g.pv(this);return t&&V1j(this.Rj,V)?t.KJ(V):null}; g.q.updatePlaylist=function(){!eW(this.Rj)&&g.zo(this.Rj)&&$Gz(this);this.A6.oC("onPlaylistUpdate")}; g.q.setSizeStyle=function(V,t){this.Ie=V;this.T("web_log_theater_mode_visibility")?this.l3(t):this.We=t;this.A6.publish("sizestylechange",V,t);this.template.resize()}; g.q.l3=function(V){this.visibility.l3(V)}; g.q.A5=function(){return this.T("web_log_theater_mode_visibility")?this.visibility.A5():this.We}; g.q.isMinimized=function(){return this.visibility.isMinimized()}; g.q.isInline=function(){return this.visibility.isInline()}; g.q.Q2=function(){return this.visibility.Q2()}; g.q.EF=function(){return this.visibility.EF()}; g.q.bH=function(){return this.visibility.bH()}; g.q.iQ=function(){return this.Ie}; g.q.getAdState=function(){if(this.getPresentingPlayerType()===3)return zr(this.Tk).getAdState();if(!this.Xt()){var V=jC(this.Jl());if(V)return V.getAdState()}return-1}; g.q.za6=function(V){var t=this.template.getVideoContentRect();Ns(this.SR,t)||(this.SR=t,(t=this.rk())&&t.lA(),(t=this.c$())&&t===this.rk()&&t.lA(),this.jI()===1&&this.DI&&mGw(this,!0));this.EB&&g.Sc(this.EB,V)||(this.A6.publish("appresize",V),this.EB=V)}; g.q.tB=function(){return this.A6.tB()}; g.q.ynk=function(){this.getPresentingPlayerType()===2&&this.K9.isManifestless()?FoL(this.K9):(this.DZ&&(r1s(this.DZ),TV(this)),YK0(this,"signature"))}; g.q.iRX=function(V){V&&YK0(this,"reloadPlayerEvent",void 0,V)}; g.q.YP=function(V){this.AY(V);IX(this)}; g.q.x6s=function(V){if(V.errorCode==="manifest.net.badstatus"){var t=this.Rj.experiments.MP("html5_use_network_error_code_enums")?401:"401";V.details.rc===t&&this.A6.Os("onPlayerRequestAuthFailed")}}; g.q.Lw=function(V){this.A6.publish("heartbeatparams",V)}; g.q.LB=function(V){this.A6.Os("onAutonavChangeRequest",V!==1)}; g.q.Bw=function(){return this.mediaElement}; g.q.setBlackout=function(V){if(this.Rj.Tc!==V){this.Rj.Tc=V;var t=this.rk();t&&(t.S8.t8(),this.Rj.dk&&ams(this),t.M0(V))}}; g.q.sCX=function(){var V=this.rk();if(V){var t=!this.A6.CL();V.Uy(t)}}; g.q.onLoadedMetadata=function(){this.A6.oC("onLoadedMetadata")}; g.q.onDrmOutputRestricted=function(){this.A6.oC("onDrmOutputRestricted")}; g.q.j7=function(){this.intentionalPlayback=!0}; g.q.NP=function(){this.Tk.dispose();this.jS.dispose();this.K9.dispose();this.DZ&&this.DZ.dispose();this.DQ.removeAll();this.DQ.dispose();this.e8&&this.e8.dispose();this.n9.J.dispose();this.AY();this.n9.dispose();g.fr(this.playlist);g.c.prototype.NP.call(this)}; g.q.T=function(V){return this.Rj.T(V)}; g.q.setScreenLayer=function(V){this.screenLayer=V}; g.q.getInternalApi=function(){return this.A6.getInternalApi()}; g.q.createSubtitlesModuleIfNeeded=function(){return this.Tk.createSubtitlesModuleIfNeeded()}; g.q.isOrchestrationLeader=function(){var V=HW(this.Tk);return V?V.isOrchestrationLeader():!1}; g.q.getVideoUrl=function(V,t,x,u,Z){if(this.fI&&this.fI.postId)return V=this.Rj.getVideoUrl(V),V=wj(V,"v"),V.replace("/watch","/clip/"+this.fI.postId);var P=this.A6.isEmbedsShortsMode()||this.Rj.BX==="shortspage",K=g.uu(this.getVideoData());return this.Rj.getVideoUrl(V,t,x,u,Z,P,K)}; g.q.RF=function(){return this.q$.RF()}; g.q.C4=function(V,t,x){this.A6.publish("spsumpreject",V,t,x)}; g.q.Tj=function(){try{for(var V=g.G(g.gZ(this.n9.S)),t=V.next();!t.done;t=V.next()){var x=t.value;x.uD()||x.Tj()}if(this.T("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var u=g.G(B6q(this.n9.W)),Z=u.next();!Z.done;Z=u.next()){var P=Z.value;P.uD()||P.Tj()}this.c$().Tj()}catch(K){g.lf(K)}}; g.q.Zi=function(){if(this.DZ){var V=(0,g.Tu)();return this.DZ.Zi(V)}return!1}; g.q.G2=function(V){var t=this.c$();V&&(t=TcT(this,V));if(t){var x=t.getVideoData();V=new Map;x=g.G(x.sabrContextUpdates);for(var u=x.next();!u.done;u=x.next()){var Z=g.G(u.value);u=Z.next().value;Z=Z.next().value;var P,K;if(K=Z.scope===4)(P=t)==null?P=0:(K=void 0,P=!((K=P.S8.iD)==null||!K.N.Tl.has(u))),K=P;K&&V.set(u,Z)}return V}this.c$().J6("scuget",{ncpf:"1",ccpn:V})}; var gA={};var t5t={Iw:[{Se:/Unable to load player module/,weight:20},{Se:/Failed to fetch/,weight:500},{Se:/XHR API fetch failed/,weight:10},{Se:/JSON parsing failed after XHR fetch/,weight:10},{Se:/Retrying OnePlatform request/,weight:10},{Se:/CSN Missing or undefined during playback association/,weight:100},{Se:/Non-recoverable error. Do not retry./,weight:0},{Se:/Internal Error. Retry with an exponential backoff./,weight:0},{Se:/API disabled by application./,weight:0}],Lf:[{callback:W4j,weight:500}]};var JGL=/[&\?]action_proxy=1/,Clz=/[&\?]token=([\w-]*)/,hP0=/[&\?]video_id=([\w-]*)/,wCT=/[&\?]index=([\d-]*)/,Vbq=/[&\?]m_pos_ms=([\d-]*)/,xes=/[&\?]vvt=([\w-]*)/,yG9="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(" "),tbw="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(" "),Hcl={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"},UG9={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},eP1={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};H5.prototype.sF=function(V){this.player.d1().tick(V)}; H5.prototype.fetch=function(V,t){var x=this;if(!V.match(/\[BISCOTTI_ID\]/g))return this.S(V,t);var u=this.J===1;u&&this.sF("a_bid_s");var Z=n3C();if(Z!==null)return u&&this.sF("a_bid_f"),this.S(V,t,Z);Z=cG8();u&&gj(Z,function(){x.sF("a_bid_f")}); return Z.then(function(P){return x.S(V,t,P)})}; H5.prototype.S=function(V,t,x){var u=this,Z=t===void 0?{}:t;t=Z.Y4;var P=Z.ZZ;var K=Z.cueProcessedMs;x=x===void 0?"":x;var R=this.player.getVideoData(1);Z=this.player.K().rj;var f=0;if(K&&P&&!t){var b=P.end-P.start;b>0&&(f=Math.floor(b/1E3))}f=t?t.To:f;var E={AD_BLOCK:this.J++,AD_BREAK_LENGTH:f,AUTONAV_STATE:lT(this.player.K()),CA_TYPE:"image",CPN:R.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.d2()*1E3,LACT:rF(),LIVE_INDEX:t?this.N++:1,LIVE_TARGETING_CONTEXT:t&&t.context?t.context:"",MIDROLL_POS:P? Math.round(P.start/1E3):0,MIDROLL_POS_MS:P?Math.round(P.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.XX().g1().height,P_W:this.player.XX().g1().width,YT_REMOTE:Z?Z.join(","):""},k=G9(SL);Object.keys(k).forEach(function(N){k[N]!=null&&(E[N.toUpperCase()]=k[N].toString())}); x!==""&&(E.BISCOTTI_ID=x);x={};A6(V)&&(x.sts="20115",(t=this.player.K().forcedExperiments)&&(x.forced_experiments=t));var O=sQ(g.nK(V,E),x);return O.split("?").length!==2?FC(Error("Invalid AdBreakInfo URL")):g.Pi(this.player.K(),R==null?void 0:R.oauthToken).then(function(N){if(N&&pJ()){var p=oE();nv(p,N)}N=u.player.tY(p);p=uv8(u,O,E,R.isMdxPlayback,K);return g.uM(N,p,"/youtubei/v1/player/ad_break").then(function(I){return I})})}; H5.prototype.reset=function(){this.N=this.J=1};g.A(Zx0,H5); Zx0.prototype.S=function(V,t,x){t=t===void 0?{}:t;var u=t.Y4;var Z=t.ZZ;var P=t.cueProcessedMs;x=x===void 0?"":x;t=this.J;this.J++;var K=this.player.K().T("h5_disable_macro_substitution_in_get_ad_break")?V:P74(this,V,{Y4:u,ZZ:Z,cueProcessedMs:P},x,t);if(K.split("?").length!==2)return Math.random()<.1&&g.lf(Error("Invalid AdBreakInfo URL")),FC(Error("Invalid AdBreakInfo URL"));var R=this.player.getVideoData(1).isMdxPlayback,f=x;x=Clz.exec(K);x=x!=null&&x.length>=2?x[1]:"";V=JGL.test(K);var b=hP0.exec(K); b=b!=null&&b.length>=2?b[1]:"";var E=wCT.exec(K);E=E!=null&&E.length>=2&&!Number.isNaN(Number(E[1]))?Number(E[1]):1;var k=Vbq.exec(K);k=k!=null&&k.length>=2?k[1]:"0";var O=cK(this.player.K().cX),N=g.K4(this.player.getVideoData(1).Us,!0);lmj(this,N,K,f===""?"":f,this.player.K(),this.player.getVideoData(1));f={splay:!1,lactMilliseconds:String(rF()),playerHeightPixels:Math.trunc(this.player.XX().g1().height),playerWidthPixels:Math.trunc(this.player.XX().g1().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20115,autonavState:lT(this.player.K())};if(R){R={};var p=this.player.K().rj;DGh(R,p?p.join(","):"")&&(f.mdxContext=R)}if(R=tbw.includes(O)?void 0:g.Dc("PREF")){p=R.split(RegExp("[:&]"));for(var I=0,L=p.length;I1&&M[1].toUpperCase()==="TRUE"){N.user.lockedSafetyMode=!0;break}}f.autoCaptionsDefaultOn=dGl(R)}K=xes.exec(K);(K=K!=null&&K.length>=2?K[1]:"")&&b&&(N.user.credentialTransferTokens= [{token:K,scope:"VIDEO"}]);K={contentPlaybackContext:f};f=this.player.getVideoData(1).getGetAdBreakContext();R=this.player.getVideoData(1).clientPlaybackNonce;p=P!==void 0?Math.round(P).toString():void 0;I=(u==null?0:u.context)?u.context:void 0;L=0;P&&Z&&!u&&(Z=Z.end-Z.start,Z>0&&(L=Math.floor(Z/1E3)));u=(u=Math.trunc((u?u.To:L)*1E3))?String(u):void 0;Z=this.player.d2()*1E3;Z=Number.isNaN(Z)?0:Math.trunc(Z);t={adBlock:t,params:x,breakIndex:E,breakPositionMs:k,clientPlaybackNonce:R,topLevelDomain:O, isProxyAdTagRequest:V,context:N,overridePlaybackContext:K,cueProcessedMs:p,videoId:b?b:void 0,liveTargetingParams:I,breakLengthMs:u,driftFromHeadMs:Z?String(Z):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:f?f:void 0};return KCz(this,t)};var xPj={OxU:"replaceUrlMacros",fMS:"onAboutThisAdPopupClosed",m9D:"executeCommand"};q6L.prototype.sT=function(){return"adPingingEndpoint"}; q6L.prototype.pp=function(V,t,x){cH0(this.TU.get(),V,t,x)};R7j.prototype.sT=function(){return"changeEngagementPanelVisibilityAction"}; R7j.prototype.pp=function(V){this.U.Os("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:V})};fl0.prototype.sT=function(){return"loggingUrls"}; fl0.prototype.pp=function(V,t,x){V=g.G(V);for(var u=V.next();!u.done;u=V.next())u=u.value,cH0(this.TU.get(),u.baseUrl,t,x,u.attributionSrcMode)};g.A(bxh,g.c);g.A(DI,g.c);g.q=DI.prototype;g.q.addListener=function(V){this.listeners.push(V)}; g.q.removeListener=function(V){this.listeners=this.listeners.filter(function(t){return t!==V})}; g.q.ZD=function(V,t,x,u,Z,P,K,R){if(V==="")Gd("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(V!==this.J||x){this.J=V;this.h6.get().ZD(V,t,x,u,Z,P,K,R);this.PX.get().ZD(V,t,x,u,Z,P,K,R);var f;(f=this.pR)==null||f.get().ZD(V,t,x,u,Z,P,K,R);this.S.ZD(V,t,x,u,Z,P,K,R);f=g.G(this.listeners);for(var b=f.next();!b.done;b=f.next())b.value.ZD(V,t,x,u,Z,P,K,R)}else Gd("Duplicate content video loaded signal")}; g.q.bE=function(){this.J&&this.sJ(this.J)}; g.q.sJ=function(V){this.J=void 0;for(var t=g.G(this.listeners),x=t.next();!x.done;x=t.next())x.value.sJ(V)};eX.prototype.Gx=function(V,t,x,u,Z){EQ8(this);this.G=!t&&x===0;var P=this.U.getVideoData(1),K=this.U.getVideoData(2);P&&(this.contentCpn=P.clientPlaybackNonce,this.videoId=P.videoId,this.J=P.B);K&&(this.adCpn=K.clientPlaybackNonce,this.adVideoId=K.videoId,this.adFormat=K.adFormat);this.W=V;u<=0?(EQ8(this),this.G=!t&&x===0):(this.actionType=this.G?t?"unknown_type":"video_to_ad":t?"ad_to_video":"ad_to_ad",this.videoStreamType=Z?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.N=!0,h4("_start",this.actionType)&&OxK(this)))}; eX.prototype.reset=function(){return new eX(this.U)};g.A(dQ,g.c);dQ.prototype.addCueRange=function(V,t,x,u,Z,P,K){P=P===void 0?3:P;K=K===void 0?1:K;this.J.has(V)?Gd("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:V}):(V=new sBL(V,t,x,u,P),this.J.set(V.id,{ZZ:V,listener:Z,UM:K}),this.U.gL([V],K))}; dQ.prototype.removeCueRange=function(V){var t=this.J.get(V);t?(this.U.p6([t.ZZ],t.UM),this.J.delete(t.ZZ.id)):Gd("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:V})}; dQ.prototype.onCueRangeEnter=function(V){if(this.J.has(V.id))this.J.get(V.id).listener.onCueRangeEnter(V.id)}; dQ.prototype.onCueRangeExit=function(V){if(this.J.has(V.id))this.J.get(V.id).listener.onCueRangeExit(V.id)}; g.A(sBL,g.b4);Cz.prototype.gQ=function(V){this.U.gQ(V)}; Cz.prototype.BY=function(V){var t=g.Xq.apply(1,arguments);V==="onAdStart"||V==="onAdEnd"?this.U.T4.apply(this.U,[V].concat(g.v(t))):this.U.Os.apply(this.U,[V].concat(g.v(t)))};JQ.prototype.hZ=function(V){return V&&hQ(this)};var FC1=null;g.A(LC4,g.Np);LC4.prototype.P1=function(V){return this.J.hasOwnProperty(V)?this.J[V].P1():{}}; g.o9("ytads.bulleit.getVideoMetadata",function(V){return wQ().P1(V)}); g.o9("ytads.bulleit.triggerExternalActivityEvent",function(V,t,x){var u=wQ();x=vQ9(x);x!==null&&u.publish(x,{queryId:V,viewabilityString:t})});g.q=Vu.prototype;g.q.oB=function(V,t){if(!this.J.has(V))return{};if(t==="seek"){t=this.U.K().T("html5_dai_enable_active_view_creating_completed_adblock");t=t===void 0?!1:t;var x=TI(r9).OU(V,{});x?mV(x):t&&(V=TI(r9).Sq(null,to(),!1,V),V.xe=3,H_j([V]));return{}}t=gQ4(t);if(t===null)return{};var u=this.U.x4();if(!u)return{};var Z=this.U.getPresentingPlayerType(!0);if((x=this.U.getVideoData(Z))==null||!x.isAd())return{};x={opt_adElement:u,opt_fullscreen:this.h6.get().isFullscreen()};return Hk9(t,V,x)}; g.q.wJ=function(V,t,x,u,Z){this.J.has(V)&&(u<=0||Z<=0||TI(r9).wJ(V,t,x,u,Z))}; g.q.Vs=function(V){var t;(t=this.J.get(V.queryId))==null||t.Vs()}; g.q.A$=function(V){var t;(t=this.J.get(V.queryId))==null||t.A$()}; g.q.PH=function(V){var t;(t=this.J.get(V.queryId))==null||t.PH()}; g.q.L2=function(V){var t;(t=this.J.get(V.queryId))==null||t.L2()}; g.q.bS=function(V){var t;(t=this.J.get(V.queryId))==null||t.bS()};rHT.prototype.send=function(V,t,x,u){try{TM9(this,V,t,x,u===void 0?!1:u)}catch(Z){}};g.A(WCz,rHT);oQC.prototype.send=function(V,t,x,u){var Z=!1;try{if(u==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||u==="ATTRIBUTION_SRC_MODE_XHR_OPTION")Z=!0,V=$cL(V);u=Z;var P=V.match(ym);if(P[1]==="https")var K=V;else P[1]="https",K=nX("https",P[2],P[3],P[4],P[5],P[6],P[7]);var R=udw(K);P=[];var f=dr8(K)&&this.WX.get().U.K().experiments.MP("add_auth_headers_to_remarketing_google_dot_com_ping");if(A6(K)||f)P.push({headerType:"USER_AUTH"}),P.push({headerType:"PLUS_PAGE_ID"}),P.push({headerType:"VISITOR_ID"}),P.push({headerType:"EOM_VISITOR_ID"}), P.push({headerType:"AUTH_USER"}),P.push({headerType:"DATASYNC_ID"});this.J.send({baseUrl:K,scrubReferrer:R,headers:P},t,x,u)}catch(b){}};PH.prototype.KJ=function(){return this.U.KJ(1)};g.A(Kt,g.c);g.q=Kt.prototype;g.q.vp=function(){return this.U.getVideoData(1).clientPlaybackNonce}; g.q.addListener=function(V){this.listeners.push(V)}; g.q.removeListener=function(V){this.listeners=this.listeners.filter(function(t){return t!==V})}; g.q.ZD=function(){this.Ki.clear();this.Gu=null;this.MM.get().clear()}; g.q.sJ=function(){}; g.q.ea8=function(V,t,x,u,Z){t.videoId==="nPpU29QrbiU"&&this.U.J6("ads_ssm_vdc_s",{pt:x,dvt:V});Ln(this.WX.get())&&V!=="dataloaded"||e7K(this,t,x);if(hQ(this.WX.get())&&V==="newdata"&&Z!==void 0){V=this.vp();var P=t.clientPlaybackNonce,K={};Xw(this,"rte",(K.ec=P,K.xc=u==null?void 0:u.clientPlaybackNonce,K.tr=Z,K.pt=x,K.ia=P!==V,K.ctp=gw(P),K));t=t.clientPlaybackNonce;u=u==null?void 0:u.clientPlaybackNonce;Z=deL(Z);if(Z!==1)if(u!==void 0)for(x=g.G(this.listeners),V=x.next();!V.done;V=x.next())V.value.GM(u, t,Z);else Gd("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:t,transitionReason:String(Z)});Z=g.G(this.listeners);for(u=Z.next();!u.done;u=Z.next())u.value.B_(t)}}; g.q.PhC=function(V,t){V!==void 0&&(this.Gu=V,t===void 0?Gd("Expected ad video start time on SS video changed"):this.Ki.set(V,t));var x=this.U.getPresentingPlayerType(!0),u=this.U.getVideoData(x);this.U.getVideoData(1).J6("ads_ssvc",{pt:x,cpn:u==null?void 0:u.clientPlaybackNonce,crtt:this.U.getCurrentTime(1,!1),atlh:this.U.isAtLiveHead(),adstt:t});u?e7K(this,u,x):Gd("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.U.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:V})}; g.q.Tx=function(V,t){var x=V.author,u=V.clientPlaybackNonce,Z=V.isListed,P=V.QP,K=V.title,R=V.I4,f=V.DD,b=V.isMdxPlayback,E=V.gH,k=V.mdxEnvironment,O=V.isAutonav,N=V.S$,p=V.Te,I=V.sM,L=V.videoId||"",M=V.profilePicture||"",z=V.Qm||"",Y=V.Lc()||!1,r=V.R_()||!1;V=V.WD||void 0;P=this.MM.get().J.get(P)||{layoutId:null,slotId:null};var n=this.U.getVideoData(1),U=n.uq();n=n.getPlayerResponse();t=1E3*this.U.getDuration(t);var d=1E3*this.U.getDuration(1),uL,q1,w=(n==null?void 0:(uL=n.playerConfig)==null?void 0: (q1=uL.daiConfig)==null?void 0:q1.enableDai)||!1,H,C;uL=(n==null?void 0:(H=n.playerConfig)==null?void 0:(C=H.daiConfig)==null?void 0:C.enablePreroll)||!1;return Object.assign({},P,{videoId:L,author:x,clientPlaybackNonce:u,BbX:t,f6:d,daiEnabled:w,Pb:uL,isListed:Z,uq:U,profilePicture:M,title:K,Qm:z,I4:R,DD:f,WD:V,isMdxPlayback:b,gH:E,mdxEnvironment:k,isAutonav:O,S$:N,Te:p,sM:I,Lc:Y,R_:r})}; g.q.NP=function(){this.listeners.length=0;this.fH=null;g.c.prototype.NP.call(this)};g.A(qw,g.c);g.q=qw.prototype;g.q.ZD=function(){var V=this;hQ(this.WX.get())||(this.J=SO(function(){V.U.uD()||V.U.cG("ad",1)}))}; g.q.sJ=function(){}; g.q.addListener=function(V){this.listeners.push(V)}; g.q.removeListener=function(V){this.listeners=this.listeners.filter(function(t){return t!==V})}; g.q.RS=function(){}; g.q.playVideo=function(){this.U.playVideo()}; g.q.pauseVideo=function(){this.U.pauseVideo()}; g.q.resumeVideo=function(V){this.Mn(V)&&this.U.playVideo()}; g.q.Mn=function(V){return this.U.getPlayerState(V)===2}; g.q.getCurrentTimeSec=function(V,t,x){var u=this.PX.get().Gu;if(V===2&&!t&&u!==null)return JHs(this,u);xm(this.WX.get(),"html5_ssap_use_cpn_to_get_time")||(x=void 0);return x!==void 0?this.U.getCurrentTime(V,t,x):this.U.getCurrentTime(V,t)}; g.q.getVolume=function(){return this.U.getVolume()}; g.q.isMuted=function(){return this.U.isMuted()}; g.q.getPresentingPlayerType=function(){return this.U.getPresentingPlayerType(!0)}; g.q.getPlayerState=function(V){return this.U.getPlayerState(V)}; g.q.isFullscreen=function(){return this.U.isFullscreen()}; g.q.isAtLiveHead=function(){return this.U.isAtLiveHead()}; g.q.lz=function(V){this.U.lz(V)}; g.q.gK1=function(){var V=this.U.getPresentingPlayerType(!0),t=this.getCurrentTimeSec(V,!1);if(V===2){V=g.G(this.listeners);for(var x=V.next();!x.done;x=V.next())x.value.vL(t)}else if(V===1)for(V=g.G(this.Ub),x=V.next();!x.done;x=V.next())x.value.RS(t)}; g.q.oKP=function(V){for(var t=g.G(this.listeners),x=t.next();!x.done;x=t.next())x.value.Z0(V,this.getPresentingPlayerType())}; g.q.onFullscreenToggled=function(V){for(var t=g.G(this.listeners),x=t.next();!x.done;x=t.next())x.value.onFullscreenToggled(V)}; g.q.onVolumeChange=function(){for(var V=g.G(this.listeners),t=V.next();!t.done;t=V.next())t.value.onVolumeChange()}; g.q.E8=function(){for(var V=this.U.isMinimized(),t=g.G(this.listeners),x=t.next();!x.done;x=t.next())x.value.E8(V)}; g.q.dj=function(V){for(var t=g.G(this.listeners),x=t.next();!x.done;x=t.next())x.value.dj(V)}; g.q.lq=function(){for(var V=this.U.XX().g1(),t=g.G(this.listeners),x=t.next();!x.done;x=t.next())x.value.R4(V)}; g.q.Pi=function(V){for(var t=g.G(this.listeners),x=t.next();!x.done;x=t.next())x.value.Pi(V)}; g.q.Kc=function(){for(var V=g.G(this.listeners),t=V.next();!t.done;t=V.next())t.value.Kc()};g.A(VKs,g.c);g.A(EN,g.c);EN.prototype.NP=function(){this.Ot.uD()||this.Ot.get().removeListener(this);g.c.prototype.NP.call(this)};kh.prototype.fetch=function(V){var t=V.Do;return this.J.fetch(V.uY,{Y4:V.Y4===void 0?void 0:V.Y4,ZZ:t,cueProcessedMs:V.cueProcessedMs===void 0?0:V.cueProcessedMs}).then(function(x){return tK8(x,t)})};g.A(iE,g.c);g.q=iE.prototype;g.q.addListener=function(V){this.listeners.push(V)}; g.q.removeListener=function(V){this.listeners=this.listeners.filter(function(t){return t!==V})}; g.q.kB=function(V){x24(this,V,1)}; g.q.onAdUxClicked=function(V,t){ON(this,function(x){x.m5(V,t)})}; g.q.X6=function(V){ON(this,function(t){t.tC(V)})}; g.q.lQ=function(V){ON(this,function(t){t.UQ(V)})}; g.q.AlX=function(V){ON(this,function(t){t.Q3(V)})};sN.prototype.reduce=function(V){switch(V.event){case "unknown":return}var t=V.identifier;var x=this.J[t];x?t=x:(x={Eb:null,wP:-Infinity},t=this.J[t]=x);x=V.startSecs+V.J/1E3;if(!(x=this.S.startSecs&&x.startSecs<=this.S.startSecs+this.S.To)?(Il0(this.WX.get())&&qC(this.TU.get(),"ocud","cpi."+x.identifier+";cpe."+x.event+";cps."+x.startSecs+ ";"),Gd("Latest Endemic Live Web cue point overlaps with previous cue point")):(this.S=x,PX4(this,x)))}}; g.q.NP=function(){this.J!=null&&(this.J.unsubscribe("cuepointupdated",this.ST,this),this.J=null);this.listeners.length=0;this.Yi.length=0;g.c.prototype.NP.call(this)};pt.prototype.addPlayerResponseForAssociation=function(V){this.U.addPlayerResponseForAssociation(V)};g.q=ST.prototype;g.q.X5=function(V,t,x,u,Z,P,K){return this.U.X5(V,t,x,u,Z,P,K)}; g.q.fQ=function(V,t){this.U.fQ(V,t)}; g.q.zO=function(V,t,x){this.U.zO(V,t,x)}; g.q.bC=function(V){this.U.bC(V)}; g.q.V_=function(V,t,x,u,Z,P,K){this.U.V_(V,t,x,u,Z,P,K)}; g.q.In=function(V){return this.U.In(V)}; g.q.finishSegmentByCpn=function(V,t,x){x=fXC(x);this.U.finishSegmentByCpn(V,t,x)};g.A(bfL,g.c);g.A(EFK,g.c);g.A(kj8,g.c);g.A(if9,g.c);g.A(Ofl,g.c);g.A(NEs,g.c);NEs.prototype.N=function(){return this.S};g.A(pXs,wN); pXs.prototype.W=function(V){var t=V.content;if(t.componentType==="shopping-companion")switch(V.actionType){case 1:case 2:V=this.J.getVideoData(1);this.J.Os("updateKevlarOrC3Companion",{contentVideoId:V&&V.videoId,shoppingCompanionCarouselRenderer:t.renderer,layoutId:t.layoutId,macros:t.macros,onLayoutVisibleCallback:t.J,interactionLoggingClientData:t.interactionLoggingClientData});break;case 3:this.J.Os("updateKevlarOrC3Companion",{})}else if(t.componentType==="action-companion")switch(V.actionType){case 1:case 2:V=this.J.getVideoData(1); this.J.Os("updateKevlarOrC3Companion",{contentVideoId:V&&V.videoId,actionCompanionAdRenderer:t.renderer,layoutId:t.layoutId,macros:t.macros,onLayoutVisibleCallback:t.J,interactionLoggingClientData:t.interactionLoggingClientData});break;case 3:t.renderer&&(t=this.J.getVideoData(1),this.J.Os("updateKevlarOrC3Companion",{contentVideoId:t&&t.videoId})),this.J.Os("updateKevlarOrC3Companion",{})}else if(t.componentType==="image-companion")switch(V.actionType){case 1:case 2:V=this.J.getVideoData(1);this.J.Os("updateKevlarOrC3Companion", {contentVideoId:V&&V.videoId,imageCompanionAdRenderer:t.renderer,layoutId:t.layoutId,macros:t.macros,onLayoutVisibleCallback:t.J,interactionLoggingClientData:t.interactionLoggingClientData});break;case 3:t=this.J.getVideoData(1),this.J.Os("updateKevlarOrC3Companion",{contentVideoId:t&&t.videoId}),this.J.Os("updateKevlarOrC3Companion",{})}else if(t.componentType==="top-banner-image-text-icon-buttoned")switch(V.actionType){case 1:case 2:V=this.J.getVideoData(1);this.J.Os("updateKevlarOrC3Companion", {contentVideoId:V&&V.videoId,topBannerImageTextIconButtonedLayoutViewModel:t.renderer,layoutId:t.layoutId,macros:t.macros,onLayoutVisibleCallback:t.J,interactionLoggingClientData:t.interactionLoggingClientData});break;case 3:t.renderer&&(t=this.J.getVideoData(1),this.J.Os("updateKevlarOrC3Companion",{contentVideoId:t&&t.videoId})),this.J.Os("updateKevlarOrC3Companion",{})}else if(t.componentType==="banner-image")switch(V.actionType){case 1:case 2:V=this.J.getVideoData(1);this.J.Os("updateKevlarOrC3Companion", {contentVideoId:V&&V.videoId,bannerImageLayoutViewModel:t.renderer,layoutId:t.layoutId,macros:t.macros,onLayoutVisibleCallback:t.J,interactionLoggingClientData:t.interactionLoggingClientData});break;case 3:t=this.J.getVideoData(1),this.J.Os("updateKevlarOrC3Companion",{contentVideoId:t&&t.videoId}),this.J.Os("updateKevlarOrC3Companion",{})}else if(t.componentType==="ads-engagement-panel")switch(t=t.renderer,V.actionType){case 1:case 2:this.J.Os("updateEngagementPanelAction",t.addAction);this.J.Os("changeEngagementPanelVisibility", t.expandAction);break;case 3:this.J.Os("changeEngagementPanelVisibility",t.hideAction),this.J.Os("updateEngagementPanelAction",t.removeAction)}else if(t.componentType==="ads-engagement-panel-layout"){var x=t.renderer;switch(V.actionType){case 1:case 2:this.J.Os("updateEngagementPanelAction",{action:ev(x.addAction),layoutId:t.layoutId,onLayoutVisibleCallback:t.J,interactionLoggingClientData:t.interactionLoggingClientData});this.J.Os("changeEngagementPanelVisibility",ev(x.expandAction));break;case 3:this.J.Os("changeEngagementPanelVisibility", ev(x.hideAction)),this.J.Os("updateEngagementPanelAction",{action:ev(x.removeAction)})}}};g.A(AYL,qh);g.q=AYL.prototype;g.q.init=function(V,t,x){qh.prototype.init.call(this,V,t,x);g.Ao(this.N,"stroke-dasharray","0 "+this.S);this.N.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.B.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.W.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.q.clear=function(){this.hide()}; g.q.hide=function(){fC(this);qh.prototype.hide.call(this)}; g.q.show=function(){RT(this);qh.prototype.show.call(this)}; g.q.j5=function(){this.hide()}; g.q.De=function(){if(this.J){var V=this.J.getProgressState();V!=null&&V.current!=null&&g.Ao(this.N,"stroke-dasharray",V.current/V.seekableEnd*this.S+" "+this.S)}};g.A(S04,vS);g.q=S04.prototype; g.q.init=function(V,t,x){vS.prototype.init.call(this,V,t,x);if(t.image&&t.image.thumbnail)if(t.headline)if(t.description)if(t.backgroundImage&&t.backgroundImage.thumbnail)if(t.actionButton&&g.l(t.actionButton,g.nd))if(V=t.durationMilliseconds||0,typeof V!=="number"||V<=0)g.jv(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+V));else if(t.navigationEndpoint){var u=this.api.getVideoData(2);if(u!=null){var Z=t.image.thumbnail.thumbnails;Z!=null&& Z.length>0&&g.vU(g.xE(Z[0].url))&&(Z[0].url=u.profilePicture,g.vU(g.xE(u.profilePicture))&&xy9("VideoPlayer",239976093,"Expected non-empty profile picture."));Z=t.backgroundImage.thumbnail.thumbnails;Z!=null&&Z.length>0&&g.vU(g.xE(Z[0].url))&&(Z[0].url=u.zm());Z=t.headline;Z!=null&&g.vU(g.xE(Z.text))&&(Z.text=u.author)}this.X.init(iv("ad-image"),t.image,x);this.B.init(iv("ad-text"),t.headline,x);this.N.init(iv("ad-text"),t.description,x);this.xw.init(iv("ad-image"),t.backgroundImage,x);u=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.B.element.classList.add("ytp-ad-action-interstitial-headline-light");this.N.element.classList.add("ytp-ad-action-interstitial-description-light");u.push("ytp-ad-action-interstitial-action-button-dark");this.api.K().S&&(u.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),u.push("ytp-ad-action-interstitial-action-button-dark"));this.api.K().T("enable_unified_action_endcap_on_web")&& !this.api.K().S&&(u.push("ytp-ad-action-interstitial-action-button-unified"),this.yC.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.X.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.HX.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.D8.classList.add("ytp-ad-action-interstitial-card-unified"),this.wk.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.Us.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.B.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Es.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.L1.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new y3(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,u);g.y(this,this.actionButton);this.actionButton.t6(this.yC); this.actionButton.init(iv("button"),g.l(t.actionButton,g.nd),x);tm(this.actionButton.element);u=Pk(this.actionButton.element);Zr(this.actionButton.element,u+" This link opens in new tab");this.navigationEndpoint=t.navigationEndpoint;this.W.Z(this.Es,"click",this.Sa,this);this.W.Z(this.wk,"click",this.Sa,this);!this.api.K().T("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.K().S||this.W.Z(this.Us,"click",this.Sa,this);this.J=this.T6?new mP(this.api,V):new Y9(V);g.y(this,this.J);if(t.skipButton){(V= g.l(t.skipButton,N7E))&&this.J&&(this.skipButton=new FD(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.J,this.qd),g.y(this,this.skipButton),this.skipButton.t6(this.element),this.skipButton.init(iv("skip-button"),V,x));x=this.api.T("disable_ad_preview_for_instream_ads");if(V=t.adBadgeRenderer)if(V=g.l(V,scn))u=new zd(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,!0,x),u.t6(this.L1),u.init(iv("simple-ad-badge"),V,this.macros),g.y(this,u);if(V=t.adInfoRenderer)if(V= g.l(V,Wd))x=new Zp(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.element,void 0,x),x.t6(this.L1),x.init(iv("ad-info-hover-text-button"),V,this.macros),g.y(this,x)}else t.nonskippableOverlayRenderer&&(V=g.l(t.nonskippableOverlayRenderer,ou))&&this.J&&(this.S=new Em(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.J,!1),g.y(this,this.S),this.S.t6(this.element),this.S.init(iv("ad-preview"),V,x));t.countdownRenderer&&(t=t.countdownRenderer,g.l(t,pUn)&&this.J&& (x=new AYL(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.J),g.y(this,x),x.t6(this.element),x.init(iv("timed-pie-countdown"),g.l(t,pUn),this.macros)));this.show();this.element.focus()}else g.jv(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.jv(Error("AdActionInterstitialRenderer has no button."));else g.jv(Error("AdActionInterstitialRenderer has no background AdImage."));else g.jv(Error("AdActionInterstitialRenderer has no description AdText."));else g.jv(Error("AdActionInterstitialRenderer has no headline AdText.")); else g.jv(Error("AdActionInterstitialRenderer has no image."))}; g.q.clear=function(){g.oV(this.W);this.hide()}; g.q.show=function(){Gjz(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.S&&this.S.show();vS.prototype.show.call(this)}; g.q.hide=function(){Gjz(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.S&&this.S.hide();vS.prototype.hide.call(this)}; g.q.Sa=function(){this.navigationEndpoint&&(this.layoutId?this.aj.executeCommand(this.navigationEndpoint,this.layoutId):g.jv(Error("Missing layoutId for ad action interstitial.")))};var MK0={iconType:"CLOSE"},Lt=new g.AI(320,63);g.A(Fpq,vS);g.q=Fpq.prototype; g.q.init=function(V,t,x){vS.prototype.init.call(this,V,t,x);this.W=t;this.X=g.tb(this.W.onClickCommands||[]);this.L1=this.W.onErrorCommand||null;if(V=this.W.contentSupportedRenderer)V=this.W.contentSupportedRenderer,t=this.W.adInfoRenderer||null,g.l(V,kYn)?(this.B=g.JI("ytp-ad-overlay-ad-info-button-container",this.N.element),gFz(this,t),V=zxh(this,g.l(V,kYn))):g.l(V,iri)?(this.B=g.JI("ytp-ad-overlay-ad-info-button-container",this.S.element),gFz(this,t),V=BEK(this,g.l(V,iri))):g.l(V,Orz)?(this.B= g.JI("ytp-ad-overlay-ad-info-button-container",this.J.element),gFz(this,t),V=m21(this,g.l(V,Orz))):(g.jv(Error("InvideoOverlayAdRenderer content could not be initialized.")),V=!1);V&&(this.show(),Y0j(this,!0))}; g.q.clear=function(){Y0j(this,!1);this.Es.reset();this.wk=0;this.N.hide();this.logVisibility(this.N.element,!1);this.S.hide();this.logVisibility(this.S.element,!1);this.J.hide();this.logVisibility(this.J.element,!1);this.hide();this.dispose()}; g.q.HRk=function(){this.yC&&(this.layoutId?this.aj.executeCommand(this.yC,this.layoutId):g.jv(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.q.hU=function(){a:{if(this.W&&this.W.closeButton&&this.W.closeButton.buttonRenderer){var V=this.W.closeButton.buttonRenderer;if(V.serviceEndpoint){V=[V.serviceEndpoint];break a}}V=[]}V=g.G(V);for(var t=V.next();!t.done;t=V.next())t=t.value,this.layoutId?this.aj.executeCommand(t,this.layoutId):g.jv(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.q.L06=function(){this.xw||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.q.Ac=function(){this.xw||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.Ac("invideo-overlay")}; g.q.bI8=function(V){V.target===this.B&&g.JI("ytp-ad-button",this.HX.element).click()};g.A(Qrq,qh);g.q=Qrq.prototype;g.q.init=function(V,t,x){qh.prototype.init.call(this,V,t,x);V=t.durationMs;this.N=V==null||V===0?0:V+this.J.getProgressState().current*1E3;if(t.text)var u=t.text.templatedAdText;else t.staticMessage&&(u=t.staticMessage);this.messageText.init(iv("ad-text"),u,x);this.messageText.t6(this.S.element);this.W.show(100);this.show()}; g.q.clear=function(){this.hide()}; g.q.hide=function(){aX9(this,!1);qh.prototype.hide.call(this);this.S.hide();this.messageText.hide();fC(this)}; g.q.show=function(){aX9(this,!0);qh.prototype.show.call(this);RT(this);this.S.show();this.messageText.show()}; g.q.j5=function(){this.hide()}; g.q.De=function(){if(this.J!=null){var V=this.J.getProgressState();V!=null&&V.current!=null&&(V=1E3*V.current,!this.wk&&V>=this.N?(this.W.hide(),this.wk=!0):this.messageText&&this.messageText.isTemplated()&&(V=Math.max(0,Math.ceil((this.N-V)/1E3)),V!==this.B&&(KC(this.messageText,{TIME_REMAINING:String(V)}),this.B=V)))}};g.A(rYs,vS);g.q=rYs.prototype; g.q.init=function(V,t,x){vS.prototype.init.call(this,V,t,{});t.image&&t.image.thumbnail?t.headline?t.description?t.actionButton&&g.l(t.actionButton,g.nd)?(this.N.init(iv("ad-image"),t.image,x),this.S.init(iv("ad-text"),t.headline,x),this.W.init(iv("ad-text"),t.description,x),V=["ytp-ad-underlay-action-button"],this.api.K().T("use_blue_buttons_for_desktop_player_underlay")&&V.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new y3(this.api,this.layoutId,this.interactionLoggingClientData,this.aj, V),t.backgroundColor&&g.Ao(this.element,"background-color",g.d2(t.backgroundColor)),g.y(this,this.actionButton),this.actionButton.t6(this.B),this.actionButton.init(iv("button"),g.l(t.actionButton,g.nd),x),t=g.S7(this.api.K().experiments,"player_underlay_video_width_fraction"),this.api.K().T("place_shrunken_video_on_left_of_player")?(x=this.J,g.NK(x,"ytp-ad-underlay-left-container"),g.OU(x,"ytp-ad-underlay-right-container"),g.Ao(this.J,"margin-left",Math.round((t+.02)*100)+"%")):(x=this.J,g.NK(x,"ytp-ad-underlay-right-container"), g.OU(x,"ytp-ad-underlay-left-container")),g.Ao(this.J,"width",Math.round((1-t-.04)*100)+"%"),this.api.GG()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.kJ.bind(this)),this.api.addEventListener("resize",this.Xm.bind(this))):g.jv(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.jv(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.jv(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.jv(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.q.show=function(){TEC(!0);this.actionButton&&this.actionButton.show();vS.prototype.show.call(this)}; g.q.hide=function(){TEC(!1);this.actionButton&&this.actionButton.hide();vS.prototype.hide.call(this)}; g.q.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.kJ.bind(this));this.api.removeEventListener("resize",this.Xm.bind(this));this.hide()}; g.q.onClick=function(V){vS.prototype.onClick.call(this,V);this.actionButton&&g.fQ(this.actionButton.element,V.target)&&this.api.pauseVideo()}; g.q.kJ=function(V){V==="transitioning"?(this.J.classList.remove("ytp-ad-underlay-clickable"),this.show()):V==="visible"?this.J.classList.add("ytp-ad-underlay-clickable"):V==="hidden"&&(this.hide(),this.J.classList.remove("ytp-ad-underlay-clickable"))}; g.q.Xm=function(V){V.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):V.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.Ao(this.S.element,"font-size",V.width/40+"px")};g.A(FP,vS); FP.prototype.init=function(V,t,x){vS.prototype.init.call(this,V,t,x);t.toggledLoggingParams&&(this.toggledLoggingParams=t.toggledLoggingParams);t.answer&&g.l(t.answer,g.nd)?(V=new y3(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),V.t6(this.answer),V.init(iv("ytp-ad-survey-answer-button"),g.l(t.answer,g.nd),x),V.show()):t.answer&&g.l(t.answer,GL)&&(this.J=new Jz(this.api,this.layoutId,this.interactionLoggingClientData,this.aj, ["ytp-ad-survey-answer-toggle-button"]),this.J.t6(this.answer),g.y(this,this.J),this.J.init(iv("survey-answer-button"),g.l(t.answer,GL),x));this.show()}; FP.prototype.tP=function(V){this.layoutId?wY(this.aj,V,this.layoutId,this.macros):g.jv(new g.xe("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; FP.prototype.onClick=function(V){vS.prototype.onClick.call(this,V);if(this.api.K().T("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; FP.prototype.clear=function(){this.hide()};g.A(WpL,vS);WpL.prototype.init=function(V,t,x){vS.prototype.init.call(this,V,t,x);t.answer&&g.l(t.answer,GL)&&(this.button=new Jz(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.t6(this.J),this.button.init(iv("survey-none-of-the-above-button"),g.l(t.answer,GL),x));this.show()};g.A(Mw,y3);Mw.prototype.init=function(V,t,x){y3.prototype.init.call(this,V,t,x);V=!1;t.text&&(t=g.FX(t.text),V=!g.vU(t));V||g.lf(Error("No submit text was present in the renderer."))}; Mw.prototype.onClick=function(V){this.publish("l");y3.prototype.onClick.call(this,V)};g.A(g0,vS); g0.prototype.init=function(V,t,x){vS.prototype.init.call(this,V,t,x);if(V=t.skipOrPreviewRenderer)g.l(V,b_)?(V=g.l(V,b_),x=new g2(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.W,!0),x.t6(this.skipOrPreview),x.init(iv("skip-button"),V,this.macros),g.y(this,x),this.J=x):g.l(V,ou)&&(V=g.l(V,ou),x=new Em(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.W,!1),x.t6(this.skipOrPreview),x.init(iv("ad-preview"),V,this.macros),k9(x),g.y(this,x),this.J=x);this.J== null&&g.jv(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(t)));t.submitButton&&(V=t.submitButton,g.l(V,g.nd)&&(V=g.l(V,g.nd),x=new Mw(this.api,this.layoutId,this.interactionLoggingClientData,this.aj),x.t6(this.submitButton),x.init(iv("survey-submit"),V,this.macros),g.y(this,x),this.S=x));V=this.api.T("disable_ad_preview_for_instream_ads");if(x=t.adBadgeRenderer){x=g.l(x,scn);var u=new zd(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,!0, V,!0);u.t6(this.N);u.init(iv("simple-ad-badge"),x,this.macros);this.adBadge=u.element;g.y(this,u)}if(x=t.adDurationRemaining)x=g.l(x,$ts),u=new r2(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.W,void 0,V),u.t6(this.N),u.init(iv("ad-duration-remaining"),x,this.macros),g.y(this,u);(t=t.adInfoRenderer)&&g.l(t,Wd)&&(x=new Zp(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.element,void 0,V),g.y(this,x),V&&this.adBadge!==void 0?this.N.insertBefore(x.element, this.adBadge.nextSibling):x.t6(this.N),x.init(iv("ad-info-hover-text-button"),g.l(t,Wd),this.macros));this.show()}; g0.prototype.clear=function(){this.hide()};g.A(XP,vS);XP.prototype.init=function(V,t,x){vS.prototype.init.call(this,V,t,x);jrC(this)}; XP.prototype.show=function(){this.N=Date.now();vS.prototype.show.call(this)}; XP.prototype.FN=function(){};g.A(lXs,XP);g.q=lXs.prototype;g.q.init=function(V,t,x){var u=this;XP.prototype.init.call(this,V,t,x);t.questionText&&oFw(this,t.questionText);t.answers&&t.answers.forEach(function(Z,P){g.l(Z,AB)&&nFh(u,g.l(Z,AB),x,P)}); this.B=new Set(this.S.map(function(Z){return Z.J.J})); (V=t.noneOfTheAbove)&&(V=g.l(V,EjU))&&HfL(this,V,x);t.surveyAdQuestionCommon&&yYz(this,t.surveyAdQuestionCommon);t.submitEndpoints&&(this.submitEndpoints=t.submitEndpoints);this.Z(this.element,"change",this.onChange);this.show()}; g.q.FN=function(){U21(this,!1);this.W.S.subscribe("l",this.oUC,this)}; g.q.onChange=function(V){V.target===this.noneOfTheAbove.button.J?D2w(this):this.B.has(V.target)&&(this.noneOfTheAbove.button.toggleButton(!1),U21(this,!0))}; g.q.oUC=function(){var V=[],t=this.S.reduce(function(Z,P,K){var R=P.toggledLoggingParams;P.J&&P.J.isToggled()&&R&&(Z.push(R),V.push(K));return Z},[]).join("&"),x=this.submitEndpoints.map(function(Z){if(!Z.loggingUrls)return Z; Z=g.TW(Z);Z.loggingUrls=Z.loggingUrls.map(function(P){P.baseUrl&&(P.baseUrl=Jj(P.baseUrl,t));return P}); return Z}); if(x){x=g.G(x);for(var u=x.next();!u.done;u=x.next())u=u.value,this.layoutId?wY(this.aj,u,this.layoutId,this.macros):g.jv(Error("Missing layoutId for multi_select_question."))}this.api.K().T("supports_multi_step_on_desktop")&&this.wk(V)}; g.q.clear=function(){this.api.K().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.A(zH,XP);zH.prototype.init=function(V,t,x){var u=this;XP.prototype.init.call(this,V,t,x);t.questionText&&oFw(this,t.questionText);t.answers&&t.answers.forEach(function(Z,P){g.l(Z,AB)&&nFh(u,g.l(Z,AB),x,P)}); t.surveyAdQuestionCommon?yYz(this,t.surveyAdQuestionCommon):g.jv(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(t)));this.show()}; zH.prototype.clear=function(){this.api.K().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.A(BH,vS);BH.prototype.init=function(V,t,x){var u=this;vS.prototype.init.call(this,V,t,x);if(this.api.K().T("supports_multi_step_on_desktop")){var Z;this.conditioningRules=(Z=t.conditioningRules)!=null?Z:[];var P;this.S=(P=t.questions)!=null?P:[];var K;((K=t.questions)==null?0:K.length)&&JYK(this,0)}else(t.questions||[]).forEach(function(R){g.l(R,r4)?d2q(u,g.l(R,r4),x):g.l(R,au)&&CXq(u,g.l(R,au),x)}); this.show()}; BH.prototype.clear=function(){this.api.K().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; BH.prototype.W=function(V){var t=this;if(this.api.K().T("supports_multi_step_on_desktop")){var x;if((x=this.conditioningRules)==null?0:x.length){var u;if(V.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(Z){return Z.questionIndex===t.J})==null)g.jv(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(Z){if(Z.questionIndex===t.J)switch(Z.condition){case "CONDITION_ALL_OF":var P;if((P=Z.answerIndices)==null?0:P.every(function(R){return V.includes(R)}))u=Z.nextQuestionIndex; break;case "CONDITION_ANY_OF":var K;if((K=Z.answerIndices)==null?0:K.some(function(R){return V.includes(R)}))u=Z.nextQuestionIndex; break;default:g.jv(Error("Expected specified condition in survey conditioning rules."))}}),u!=null)JYK(this,u); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.jv(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.A(mq,vS); mq.prototype.init=function(V,t,x){var u=this;vS.prototype.init.call(this,V,t,x);V=t.timeoutSeconds||0;if(typeof V!=="number"||V<0)g.jv(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+V));else if(t.timeoutCommands)if(t.text)if(t.ctaButton&&g.l(t.ctaButton,g.nd))if(t.brandImage)if(t.backgroundImage&&g.l(t.backgroundImage,cd)&&g.l(t.backgroundImage,cd).landscape){this.layoutId||g.jv(Error("Missing layoutId for survey interstitial."));hx4(this.interstitial,g.l(t.backgroundImage, cd).landscape);hx4(this.logoImage,t.brandImage);g.$P(this.text,g.FX(t.text));var Z=["ytp-ad-survey-interstitial-action-button"];Z.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new y3(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,Z);g.y(this,this.actionButton);this.actionButton.t6(this.S);this.actionButton.init(iv("button"),g.l(t.ctaButton,g.nd),x);this.actionButton.show();this.J=new mP(this.api,V*1E3);this.J.subscribe("g",function(){u.transition.hide()}); g.y(this,this.J);this.Z(this.element,"click",function(P){var K=P.target===u.interstitial;P=u.actionButton.element.contains(P.target);if(K||P)if(u.transition.hide(),K)u.api.onAdUxClicked(u.componentType,u.layoutId)}); this.transition.show(100)}else g.jv(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.jv(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.jv(Error("SurveyTextInterstitialRenderer has no button."));else g.jv(Error("SurveyTextInterstitialRenderer has no text."));else g.jv(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; mq.prototype.clear=function(){this.hide()}; mq.prototype.show=function(){wX8(!0);vS.prototype.show.call(this)}; mq.prototype.hide=function(){wX8(!1);vS.prototype.hide.call(this)};g.A(Yh,qh);g.q=Yh.prototype; g.q.init=function(V,t){qh.prototype.init.call(this,V,t,{});if(t.durationMilliseconds){if(t.durationMilliseconds<0){g.jv(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+t.durationMilliseconds));return}this.S=t.durationMilliseconds}else this.S=this.J.Ln();var x;if((x=t.previewText)==null||!x.text||g.vU(t.previewText.text))g.jv(Error("No text is returned for AdPreview."));else{this.B=t.previewText;t.previewText.isTemplated||g.$P(this.N,t.previewText.text);var u; if(((u=this.api.getVideoData(1))==null?0:u.RM)&&t.previewImage){var Z,P;(V=((P=aR(((Z=t.previewImage)==null?void 0:Z.sources)||[],52,!1))==null?void 0:P.url)||"")&&V.length?(this.previewImage=new g.Iz({Y:"img",V:"ytp-preview-ad__image",j:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",V),g.y(this,this.previewImage),this.previewImage.t6(this.element)):g.jv(Error("Failed to get imageUrl in AdPreview."))}else this.N.classList.add("ytp-preview-ad__text--padding--wide")}}; g.q.clear=function(){this.hide()}; g.q.hide=function(){fC(this);qh.prototype.hide.call(this)}; g.q.show=function(){RT(this);qh.prototype.show.call(this)}; g.q.j5=function(){this.hide()}; g.q.De=function(){if(this.J){var V=this.J.getProgressState();if(V!=null&&V.current)if(V=1E3*V.current,V>=this.S)this.transition.hide();else{var t;if((t=this.B)==null?0:t.isTemplated)if(t=Math.max(0,Math.ceil((this.S-V)/1E3)),t!==this.W){var x,u;(V=(x=this.B)==null?void 0:(u=x.text)==null?void 0:u.replace("{TIME_REMAINING}",String(t)))&&g.$P(this.N,V);this.W=t}}}};g.A(Qu,vS); Qu.prototype.init=function(V,t){vS.prototype.init.call(this,V,t,{});var x,u;if((V=((u=aR(((x=t.image)==null?void 0:x.sources)||[],VSq(t),!0))==null?void 0:u.url)||"")&&V.length){x=this.f1("ytp-ad-avatar");x.src=V;var Z,P;if(u=(Z=t.interaction)==null?void 0:(P=Z.accessibility)==null?void 0:P.label)x.alt=u;switch(t.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(t.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.jv(Error("Failed to get imageUrl in AdAvatar."))}; Qu.prototype.clear=function(){this.hide()}; Qu.prototype.onClick=function(V){vS.prototype.onClick.call(this,V)};g.A(aC,vS); aC.prototype.init=function(V,t){vS.prototype.init.call(this,V,t,{});var x;V=(x=t.label)==null?void 0:x.content;if((x=V!=null&&!g.vU(V))||t.iconImage){x&&(this.buttonText=new g.Iz({Y:"span",V:"ytp-ad-button-vm__text",mw:V}),g.y(this,this.buttonText),this.buttonText.t6(this.element));var u,Z,P=((u=t.interaction)==null?0:(Z=u.accessibility)==null?0:Z.label)||x?V:"";P&&Zr(this.element,P+" This link opens in new tab");tm(this.element);if(t.iconImage){u=void 0;if(t.iconImage){a:{Z=t.iconImage;if(Z.sources)for(Z= g.G(Z.sources),V=Z.next();!V.done;V=Z.next())if(V=V.value,P=void 0,(P=V.clientResource)==null?0:P.imageName){Z=V;break a}Z=void 0}if(Z){var K;u={iconType:(K=Z.clientResource)==null?void 0:K.imageName}}}K=cS(u,!1,this.S);K!=null&&(this.buttonIcon=new g.Iz({Y:"span",V:"ytp-ad-button-vm__icon",D:[K]}),g.y(this,this.buttonIcon),t.iconLeading?(qN(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):x?(this.buttonIcon.t6(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.t6(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(t.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.J?"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(t.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.lf(Error("AdButton does not have label or an icon."))}; aC.prototype.clear=function(){this.hide()}; aC.prototype.onClick=function(V){vS.prototype.onClick.call(this,V)};g.A(tSC,qh);g.q=tSC.prototype; g.q.init=function(V,t){qh.prototype.init.call(this,V,t,{});this.api.K().T("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.f1("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"),qN(this.f1("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(V=g.l(t.avatar,lE)){var x=t.headline;if(x){var u=t.description;if(u){var Z=g.l(t.button,UN);Z?(this.adAvatar.init(iv("ad-avatar"),V),this.headline.init(iv("ad-simple-attributed-string"),new W0(x)),this.description.init(iv("ad-simple-attributed-string"),new W0(u)),x.content&&x.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(iv("ad-button"),Z),this.startMilliseconds=t.startMs||0,this.api.GG()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.QO.bind(this)),RT(this)):g.jv(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.jv(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.jv(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.jv(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.q.De=function(){if(this.J){var V=this.J.getProgressState();V&&V.current&&1E3*V.current>=this.startMilliseconds&&(fC(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.q.j5=function(){this.clear()}; g.q.onClick=function(V){this.api.pauseVideo();qh.prototype.onClick.call(this,V)}; g.q.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.QO.bind(this))}; g.q.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();qh.prototype.show.call(this)}; g.q.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();qh.prototype.hide.call(this)}; g.q.QO=function(V){V==="hidden"?this.show():this.hide()};g.A(r0,vS);g.q=r0.prototype; g.q.init=function(V,t){vS.prototype.init.call(this,V,t,{});if(!t.label||g.vU(t.label))g.jv(Error("No label is returned for SkipAdButton."));else if(g.$P(this.W,t.label),V=cS({iconType:"SKIP_NEXT_NEW"}),V==null)g.jv(Error("Unable to retrieve icon for SkipAdButton"));else if(this.N=new g.Iz({Y:"span",V:"ytp-skip-ad-button__icon",D:[V]}),g.y(this,this.N),this.N.t6(this.element),this.api.K().experiments.MP("enable_skip_to_next_messaging")&&(t=g.xE(t.targetId)))this.S=!0,this.element.setAttribute("data-tooltip-target-id",t), this.element.setAttribute("data-tooltip-target-fixed","")}; g.q.onClick=function(V){V&&V.preventDefault();var t,x;Jvw(V,{contentCpn:(x=(t=this.api.getVideoData(1))==null?void 0:t.clientPlaybackNonce)!=null?x:""})===0?this.api.Os("onAbnormalityDetected"):(vS.prototype.onClick.call(this,V),this.api.Os("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.q.clear=function(){this.J.reset();this.hide()}; g.q.hide=function(){vS.prototype.hide.call(this)}; g.q.show=function(){this.J.start();vS.prototype.show.call(this);this.S&&this.api.K().experiments.MP("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.A(xZ0,qh);g.q=xZ0.prototype; g.q.init=function(V,t){qh.prototype.init.call(this,V,t,{});V=g.l(t.preskipState,FEU);if(this.W||!this.api.K().experiments.MP("disable_ad_preview_for_instream_ads")){if(!V){g.jv(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}var x;(x=this.S)==null||x.init(iv("preview-ad"),V);(x=this.S)!=null&&(x.transition.show(100),x.show())}(x=g.l(t.skippableState,gjE))?(t.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=t.skipOffsetMilliseconds:(g.lf(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds= 5E3),this.N.init(iv("skip-button"),x),this.show()):g.jv(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.q.show=function(){RT(this);qh.prototype.show.call(this)}; g.q.hide=function(){!this.isSkippable&&this.S?this.S.hide():this.N&&this.N.hide();fC(this);qh.prototype.hide.call(this)}; g.q.clear=function(){var V;(V=this.S)==null||V.clear();this.N&&this.N.clear();fC(this);qh.prototype.hide.call(this)}; g.q.j5=function(){this.hide()}; g.q.De=function(){if(1E3*this.J.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var V;(V=this.S)!=null&&V.transition.hide();(V=this.N)!=null&&(V.transition.show(),V.show())}};g.A(TH,vS); TH.prototype.init=function(V,t){vS.prototype.init.call(this,V,t,{});if(t.label){var x;((x=t.label)==null?0:x.content)&&!g.vU(t.label.content)&&(this.linkText=new g.Iz({Y:"span",V:"ytp-visit-advertiser-link__text",mw:t.label.content}),g.y(this,this.linkText),this.linkText.t6(this.element));var u,Z;if((u=t.interaction)==null?0:(Z=u.accessibility)==null?0:Z.label)Zr(this.element,t.interaction.accessibility.label+" This link opens in new tab");else{var P;((P=t.label)==null?0:P.content)&&!g.vU(t.label.content)&&Zr(this.element, t.label.content+" This link opens in new tab")}tm(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.jv(Error("No label found in VisitAdvertiserLink."))}; TH.prototype.onClick=function(V){vS.prototype.onClick.call(this,V);this.api.onAdUxClicked(this.componentType,this.layoutId)}; TH.prototype.clear=function(){this.hide()};g.A(WH,vS); WH.prototype.init=function(V,t,x,u){vS.prototype.init.call(this,V,t,{});if(t.skipOrPreview){x=t.skipOrPreview;V=g.l(x,XUE);x=g.l(x,FEU);var Z,P=this.api.K().T("clean_player_style_fix_on_web")&&((Z=this.api.getVideoData())==null?void 0:Z.isDaiEnabled());V?(this.HJ=new xZ0(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.S),g.y(this,this.HJ),this.HJ.t6(this.X),this.HJ.init(iv("skip-ad"),V)):!x||this.api.K().experiments.MP("disable_ad_preview_for_instream_ads")&&!P||(this.W=new Yh(this.api, this.layoutId,this.interactionLoggingClientData,this.aj,this.S,1),g.y(this,this.W),this.W.t6(this.X),this.W.init(iv("ad-preview"),x),Z=this.W,Z.transition.show(100),Z.show());if(Z=g.l(t.skipOrPreview,XUE))var K=Z.skipOffsetMilliseconds}t.playerAdCard&&(Z=g.l(t.playerAdCard,Mit))&&(this.playerAdCard=new tSC(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.S),g.y(this,this.playerAdCard),this.playerAdCard.t6(this.Us),this.playerAdCard.init(iv("ad-avatar-lockup-card"),Z));Z=this.api.K().T("disable_ad_duration_remaining_for_instream_video_ads")|| t.adPodIndex!==void 0;t.adBadgeRenderer&&((V=g.l(t.adBadgeRenderer,HH))?(this.N=new nC(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,Z),g.y(this,this.N),this.N.t6(this.J),this.N.init(iv("ad-badge"),V)):g.jv(Error("AdBadgeViewModel is not found in player overlay layout.")));t.adPodIndex&&(V=g.l(t.adPodIndex,GYE))&&(this.adPodIndex=new c0(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,g.l(t.skipOrPreview,XUE)===void 0),g.y(this,this.adPodIndex),this.adPodIndex.t6(this.J), this.adPodIndex.init(iv("ad-pod-index"),V));t.adInfoRenderer&&(V=g.l(t.adInfoRenderer,Wd))&&(this.adInfoButton=new Zp(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.element,void 0,Z),g.y(this,this.adInfoButton),this.api.K().T("enable_ad_pod_index_autohide")&&this.N!==void 0?this.J.insertBefore(this.adInfoButton.element,this.N.element.nextSibling):this.adInfoButton.t6(this.J),this.adInfoButton.init(iv("ad-info-hover-text-button"),V,this.macros));var R;V=this.api.K().T("clean_player_style_fix_on_web")&& ((R=this.api.getVideoData())==null?void 0:R.isDaiEnabled());t.adDurationRemaining&&(!Z||V)&&(R=g.l(t.adDurationRemaining,$ts))&&(this.adDurationRemaining=new r2(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.S,u.videoAdDurationSeconds,Z),g.y(this,this.adDurationRemaining),Z&&this.adPodIndex!==void 0?this.J.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?Z?this.J.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling): this.J.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.t6(this.J),this.adDurationRemaining.init(iv("ad-duration-remaining"),R,this.macros),Z&&this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));t.visitAdvertiserLink&&(u=g.l(t.visitAdvertiserLink,B7Y))&&(this.visitAdvertiserLink=new TH(this.api,this.layoutId,this.interactionLoggingClientData,this.aj),g.y(this,this.visitAdvertiserLink),this.visitAdvertiserLink.t6(this.J), this.visitAdvertiserLink.init(iv("visit-advertiser-link"),u));t.adDisclosureBanner&&(t=g.l(t.adDisclosureBanner,S$F))&&(this.adDisclosureBanner=new y$(this.api,this.layoutId,this.interactionLoggingClientData,this.aj),g.y(this,this.adDisclosureBanner),this.adDisclosureBanner.t6(this.wk),this.adDisclosureBanner.init(iv("ad-disclosure-banner"),t));this.api.K().T("show_preskip_progress_bar_for_skippable_ads")&&(this.B=new H0(this.api,this.S,K,Z),g.y(this,this.B),g.aE(this.api,this.B.element,4));this.show()}; WH.prototype.clear=function(){this.hide()};g.A(uow,vS);g.q=uow.prototype; g.q.init=function(V,t){vS.prototype.init.call(this,V,t,{});if(t!=null&&t.title)if(V=t.title)if(this.headline.init(iv("ad-simple-attributed-string"),new W0(V)),V=g.l(t.moreInfoButton,UN)){if(this.moreInfoButton.init(iv("ad-button"),V),t.descriptions)t.descriptions.length>0&&(V=t.descriptions[0])&&(this.J=new oT(this.api,this.layoutId,this.interactionLoggingClientData,this.aj),g.y(this,this.J),this.J.t6(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.J.init(iv("ad-simple-attributed-string"), new W0(V))),t.descriptions.length>1&&(t=t.descriptions[1])&&(this.S=new oT(this.api,this.layoutId,this.interactionLoggingClientData,this.aj),g.y(this,this.S),this.S.t6(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.S.init(iv("ad-simple-attributed-string"),new W0(t)))}else g.jv(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.jv(Error("No headline found in AdGridCardText."));else g.jv(Error("No headline found in AdGridCardText."))}; g.q.onClick=function(V){vS.prototype.onClick.call(this,V);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.q.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var V;(V=this.J)==null||V.clear();var t;(t=this.S)==null||t.clear()}; g.q.hide=function(){this.headline.hide();this.moreInfoButton.hide();var V;(V=this.J)==null||V.hide();var t;(t=this.S)==null||t.hide();vS.prototype.hide.call(this)}; g.q.show=function(){vS.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var V;(V=this.J)==null||V.show();var t;(t=this.S)==null||t.show()};g.A(oC,vS);oC.prototype.init=function(V,t){vS.prototype.init.call(this,V,t,{});if(t!=null&&t.gridCards)if(t.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.jv(Error("Only single column style is currently supported in AdGridCardCollection."));else for(V=g.G(t.gridCards),t=V.next();!t.done;t=V.next()){if(t=g.l(t.value,LE7)){var x=new uow(this.api,this.layoutId,this.interactionLoggingClientData,this.aj);g.y(this,x);x.t6(this.element);x.init(iv("ad-grid-card-text"),t);this.J.push(x)}}else g.jv(Error("No grid cards found in AdGridCardCollection."))}; oC.prototype.show=function(){for(var V=g.G(this.J),t=V.next();!t.done;t=V.next())t.value.show();vS.prototype.show.call(this)}; oC.prototype.clear=function(){this.hide();for(var V=g.G(this.J),t=V.next();!t.done;t=V.next())t.value.clear()}; oC.prototype.hide=function(){for(var V=g.G(this.J),t=V.next();!t.done;t=V.next())t.value.hide();vS.prototype.hide.call(this)};g.A(nt,qh);g.q=nt.prototype;g.q.init=function(V,t,x,u,Z){Z=Z===void 0?0:Z;qh.prototype.init.call(this,V,t,x,u);this.playerProgressOffsetMs=Z;RT(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.gD.bind(this));this.api.addEventListener("resize",this.g3.bind(this));this.api.GG()?(this.S=!0,this.api.lz(!0),this.show()):this.hide()}; g.q.De=function(){if(this.J){var V=this.J.getProgressState();V&&V.current&&!this.S&&1E3*V.current>=this.playerProgressOffsetMs&&(this.S=!0,this.api.lz(!0),this.show())}}; g.q.j5=function(){this.S&&this.api.lz(!1);this.hide()}; g.q.clear=function(){this.api.lz(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.gD.bind(this));this.api.removeEventListener("resize",this.g3.bind(this));fC(this);this.hide()}; g.q.hide=function(){ZUs(!1);qh.prototype.hide.call(this)}; g.q.show=function(){ZUs(!0);qh.prototype.show.call(this)};g.A(PRK,nt);g.q=PRK.prototype; g.q.init=function(V,t,x,u){if(t!=null&&t.adGridCardCollection)if(t!=null&&t.adButton){var Z=Number(t.playerProgressOffsetMs||"0");isNaN(Z)?nt.prototype.init.call(this,V,t,x,u):nt.prototype.init.call(this,V,t,x,u,Z);V=t.headline;x=g.l(t.adAvatar,lE);V&&x?(this.headline=new oT(this.api,this.layoutId,this.interactionLoggingClientData,this.aj),g.y(this,this.headline),this.headline.t6(this.f1("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(iv("ad-simple-attributed-string"),new W0(V)), this.adAvatar=new Qu(this.api,this.layoutId,this.interactionLoggingClientData,this.aj),g.y(this,this.adAvatar),this.adAvatar.t6(this.f1("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(iv("ad-avatar"),x)):this.W.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");V=g.l(t.adGridCardCollection,vj$);this.adGridCardCollection.init(iv("ad-grid-card-collection"),V);t=g.l(t.adButton,UN);this.adButton.init(iv("ad-button"),t); this.hide()}else g.jv(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.jv(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.q.onClick=function(V){(this.adButton&&g.fQ(this.adButton.element,V.target)||this.adAvatar&&g.fQ(this.adAvatar.element,V.target))&&this.api.pauseVideo();nt.prototype.onClick.call(this,V);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.q.g3=function(){}; g.q.clear=function(){this.hide();var V;(V=this.headline)==null||V.clear();var t;(t=this.adAvatar)==null||t.clear();this.adGridCardCollection.clear();this.adButton.clear();nt.prototype.clear.call(this)}; g.q.show=function(){var V;(V=this.headline)==null||V.show();var t;(t=this.adAvatar)==null||t.show();this.adGridCardCollection.show();this.adButton.show();nt.prototype.show.call(this)}; g.q.hide=function(){var V;(V=this.headline)==null||V.hide();var t;(t=this.adAvatar)==null||t.hide();this.adGridCardCollection.hide();this.adButton.hide();nt.prototype.hide.call(this)}; g.q.gD=function(V){V==="transitioning"?(this.N.classList.remove("ytp-ad-underlay-clickable"),this.show()):V==="visible"?this.N.classList.add("ytp-ad-underlay-clickable"):V==="hidden"&&(this.hide(),this.N.classList.remove("ytp-ad-underlay-clickable"))};g.A(cH,vS); cH.prototype.init=function(V,t){vS.prototype.init.call(this,V,t,{});if(t.attributes===void 0)g.jv(Error("No attributes found in AdDetailsLineViewModel."));else if(t.style===void 0)g.jv(Error("No style found in AdDetailsLineViewModel."));else{V=g.G(t.attributes);for(var x=V.next();!x.done;x=V.next())if(x=x.value,x.text!==void 0){x=x.text;var u=t.style,Z=new oT(this.api,this.layoutId,this.interactionLoggingClientData,this.aj);g.y(this,Z);Z.t6(this.element);a:switch(u){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":u="ytp-ad-details-line__text--style-responsive"; break a;default:u="ytp-ad-details-line__text--style-standard"}Z.element.classList.add(u);Z.init(iv("ad-simple-attributed-string"),new W0(x));this.J.push(Z)}this.show()}}; cH.prototype.show=function(){this.J.forEach(function(V){V.show()}); vS.prototype.show.call(this)}; cH.prototype.clear=function(){this.hide()}; cH.prototype.hide=function(){this.J.forEach(function(V){V.hide()}); vS.prototype.hide.call(this)};g.A(yu,vS);yu.prototype.init=function(V,t){vS.prototype.init.call(this,V,t,{});var x,u;(V=((u=aR(((x=t.image)==null?void 0:x.sources)||[]))==null?void 0:u.url)||"")&&V.length?(x=this.f1("ytp-image-background-image"),g.Ao(x,"backgroundImage","url("+V+")"),t.blurLevel!==void 0&&g.Ao(x,"filter","blur("+t.blurLevel+"px)"),t.gradient!==void 0&&(t=new g.e({Y:"div",vX:["ytp-image-background--gradient-vertical"]}),g.y(this,t),t.t6(this.element)),this.show()):g.jv(Error("Failed to get imageUrl in ImageBackground."))}; yu.prototype.clear=function(){this.hide()};g.A(KdC,qh);g.q=KdC.prototype;g.q.init=function(V,t){qh.prototype.init.call(this,V,t,{});g.Ao(this.N,"stroke-dasharray","0 "+this.S);this.show()}; g.q.clear=function(){this.hide()}; g.q.hide=function(){fC(this);qh.prototype.hide.call(this)}; g.q.show=function(){RT(this);qh.prototype.show.call(this)}; g.q.j5=function(){this.hide()}; g.q.De=function(){if(this.J){var V=this.J.getProgressState();V!=null&&V.current!=null&&g.Ao(this.N,"stroke-dasharray",V.current/V.seekableEnd*this.S+" "+this.S)}};g.A(jT,vS); jT.prototype.init=function(V,t){vS.prototype.init.call(this,V,t,{});if(RbL(t)){this.adAvatar=new Qu(this.api,this.layoutId,this.interactionLoggingClientData,this.aj);g.y(this,this.adAvatar);this.adAvatar.t6(this.f1("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(iv("ad-avatar"),g.l(t.adAvatar,lE));this.headline=new oT(this.api,this.layoutId,this.interactionLoggingClientData,this.aj);g.y(this,this.headline);this.headline.t6(this.f1("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(iv("ad-simple-attributed-string"),new W0(t.headline));if(V=g.l(t.adDetailsLine,A_7))this.detailsLine=new cH(this.api,this.layoutId,this.interactionLoggingClientData,this.aj),g.y(this,this.detailsLine),this.detailsLine.t6(this.f1("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(iv("ad-details-line"),V);this.adButton=new aC(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,!0);g.y(this,this.adButton); this.adButton.t6(this.f1("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(iv("ad-button"),g.l(t.adButton,UN));V=this.api.T("disable_ad_preview_for_instream_ads");this.adBadge=new nC(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,V);g.y(this,this.adBadge);this.adBadge.t6(this.W);this.adBadge.init(iv("ad-badge"),g.l(t.adBadge,HH));this.adInfoButton=new Zp(this.api,this.layoutId,this.interactionLoggingClientData,this.aj,this.element, void 0,V);g.y(this,this.adInfoButton);this.adInfoButton.t6(this.W);this.adInfoButton.init(iv("ad-info-hover-text-button"),g.l(t.adInfoRenderer,Wd),this.macros);if(V=g.l(t.skipAdButton,gjE))this.skipAdButton=new r0(this.api,this.layoutId,this.interactionLoggingClientData,this.aj),g.y(this,this.skipAdButton),this.skipAdButton.t6(this.element),this.skipAdButton.init(iv("skip-button"),V);this.S=new Y9(t.durationMilliseconds);g.y(this,this.S);if(V=g.l(t.countdownViewModel,zsE))this.J=new KdC(this.api, this.layoutId,this.interactionLoggingClientData,this.aj,this.S),g.y(this,this.J),this.J.t6(this.f1("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.J.init(iv("timed-pie-countdown"),V);if(t=g.l(t.imageBackground,IEs))this.imageBackground=new yu(this.api,this.layoutId,this.interactionLoggingClientData,this.aj),g.y(this,this.imageBackground),this.imageBackground.t6(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"), this.imageBackground.init(iv("image-background"),t);this.show();this.element.focus()}}; jT.prototype.clear=function(){g.oV(this.N);this.hide()}; jT.prototype.show=function(){qWj(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();vS.prototype.show.call(this)}; jT.prototype.hide=function(){qWj(!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.J&&this.J.hide();this.imageBackground&&this.imageBackground.hide();vS.prototype.hide.call(this)};var u2U="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.A(D4,wN); D4.prototype.W=function(V){var t=V.id,x=V.content,u=x.componentType;if(!u2U.includes(u))switch(V.actionType){case 1:V=this.api;var Z=this.aj,P=x.layoutId,K=x.interactionLoggingClientData,R=x instanceof uS?x.T6:!1,f=x instanceof uS||x instanceof B0?x.qd:!1;K=K===void 0?{}:K;R=R===void 0?!1:R;f=f===void 0?!1:f;switch(u){case "invideo-overlay":V=new Fpq(V,P,K,Z);break;case "player-overlay":V=new Um(V,P,K,Z,new qS(V),f);break;case "player-overlay-layout":V=new WH(V,P,K,Z,new qS(V));break;case "survey":V= new BH(V,P,K,Z);break;case "ad-action-interstitial":V=new S04(V,P,K,Z,R,f);break;case "video-interstitial-buttoned-centered":V=new jT(V,P,K,Z);break;case "survey-interstitial":V=new mq(V,P,K,Z);break;case "ad-message":V=new Qrq(V,P,K,Z,new qS(V,1));break;case "player-underlay":V=new rYs(V,P,K,Z);break;case "display-underlay-text-grid-cards":V=new PRK(V,P,K,Z,new qS(V));break;default:V=null}if(!V){g.lf(Error("No UI component returned from ComponentFactory for type: "+u));break}g.zW(this.S,t)?g.lf(Error("Ad UI component already registered: "+ t)):this.S[t]=V;V.bind(x);x instanceof tu?this.N?this.N.append(V.MZ):g.lf(Error("Underlay view was not created but UnderlayRenderer was created")):this.G.append(V.MZ);break;case 2:t=fMz(this,V);if(t==null)break;t.bind(x);break;case 3:x=fMz(this,V),x!=null&&(g.Rc(x),g.zW(this.S,t)?(x=this.S,t in x&&delete x[t]):g.lf(Error("Ad UI component does not exist: "+t)))}}; D4.prototype.NP=function(){g.fr(Object.values(this.S));this.S={};wN.prototype.NP.call(this)};g.A($Z8,g.m5);g.q=$Z8.prototype;g.q.create=function(){try{bUj(this),this.load(),this.created=!0,bUj(this)}catch(V){Gd(V instanceof Error?V:String(V))}}; g.q.load=function(){try{iUl(this)}finally{hQ(IC(this.J).EV)&&this.player.cG("ad",1)}}; g.q.destroy=function(){var V=this.player.getVideoData(1);this.J.J.Zk.sJ(V&&V.clientPlaybackNonce||"");this.unload();this.created=!1}; g.q.unload=function(){g.m5.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(t){Gd(t instanceof Error?t:String(t))}if(this.S!=null){var V=this.S;this.S=null;V.dispose()}this.N.reset()}; g.q.lL=function(){return!1}; g.q.getAdState=function(){return-1}; g.q.getOptions=function(){return Object.values(xPj)}; g.q.qR=function(V,t){t=t===void 0?{}:t;switch(V){case "replaceUrlMacros":return V=t,V.url?(t=mej(this.player),Object.assign(t,V.gFS),V=g.nK(V.url,t)):V=null,V;case "onAboutThisAdPopupClosed":this.Pv(t);break;case "executeCommand":V=t;V.command&&V.layoutId&&this.executeCommand(V);break;default:return null}}; g.q.Gw=function(V){var t;return!((t=this.J.J.pR)==null||!t.get().Gw(V))}; g.q.Pv=function(V){V.isMuted&&qHz(IC(this.J).xt,IC(this.J).lP,V.layoutId);this.WN&&this.WN.Pv()}; g.q.executeCommand=function(V){IC(this.J).aj.executeCommand(V.command,V.layoutId)};g.o9("yt.player.Application.create",g.GV.create);g.o9("yt.player.Application.createAlternate",g.GV.create);WD9(ow(),t5t);var ZPn=g.nl("ytcsi.tick");ZPn&&ZPn("pe");g.BW("ad",$Z8);g.A(g.Ct,g.c);g.Ct.prototype.start=function(V,t,x){this.config={from:V,e9:t,duration:x,startTime:(0,g.Tu)()};this.next()}; g.Ct.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.Ct.prototype.next=function(){if(this.config){var V=this.config,t=V.from,x=V.e9,u=V.duration;V=V.startTime;var Z=(0,g.Tu)()-V;V=this.J;u=Ush(V,Z/u);if(u==0)V=V.L;else if(u==1)V=V.C;else{Z=sY(V.L,V.G,u);var P=sY(V.G,V.B,u);V=sY(V.B,V.C,u);Z=sY(Z,P,u);P=sY(P,V,u);V=sY(Z,P,u)}V=g.EY(V,0,1);this.callback(t+(x-t)*V);V<1&&this.delay.start()}};g.A(g.Jk,g.e);g.q=g.Jk.prototype;g.q.hasSuggestions=function(){return this.suggestionData.length>0}; g.q.zS=function(){this.S&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.q.show=function(){g.e.prototype.show.call(this);SWq(this)}; g.q.Yk=function(){this.S&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.q.dV=function(){this.lq(this.api.XX().getPlayerSize())}; g.q.lq=function(V){var t=this.api.isEmbedsShortsMode()?.5625:16/9,x=this.api.yV();V=V.width-(x?112:58);x=Math.ceil(V/(x?320:192));var u=(V-x*8)/x;t=Math.floor(u/t);for(var Z=g.G(this.J),P=Z.next();!P.done;P=Z.next())P=P.value.f1("ytp-suggestion-image"),P.style.width=u+"px",P.style.height=t+"px";this.suggestions.element.style.height=t+"px";this.W=u;this.C=t;this.containerWidth=V;this.columns=x;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.hk(this)}; g.q.onVideoDataChange=function(){var V=this.api.K(),t=this.api.getVideoData();this.B=t.kD?!1:V.W;this.suggestionData=t.suggestions?g.Nr(t.suggestions,function(x){return x&&!x.playlistId}):[]; IMC(this);t.kD?this.title.update({title:g.Lm("Mais v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:t.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"Mais Shorts":"Mais v\u00eddeos"})}; g.q.scrollTo=function(V){V=g.EY(V,this.containerWidth-this.suggestionData.length*(this.W+8),0);this.L.start(this.scrollPosition,V,1E3);this.scrollPosition=V;g.hk(this);SWq(this)};})(_yt_player);