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 oQ,KBg,a72,TE,QQk,DP7,BYP,sQg,vg,O22,Wg,Sn,L2,Z2f,dP8,qfB,n2,D7,Akg,Yfk,rkE,jQE,Bg,Z7,dY,qP,Ak,YE,mPE,rY,Uf,p2,gEf,UPg,pgQ,l7Y,P8f,f8,TJ,$d,eg7,wgg,ckE,hgB,ykY,GEE,b2k,tnY,xPE,J_E,odg,RfQ,NkB,CPf,Xlf,vl,i8n,Wl,uVY,H8Y,L8,kJP,vdE,Ea,Wq8,aU,n8,dk,qK,A_,Yd,Sag,LqQ,rk,mq,jE,ILP,Fqg,Edk,MEf,V9,KqY,gk,Ua,lP,aLB,QUg,zJ,DKE,sUB,Jj,Bkf,CE,O8g,Z87,RG,dKE,qan,A_Y,Hb,Yan,jUn,lLB,IG,plP,VEE,zfk,wlg,hfQ,EW,M_,aG,nE,Q2,GJP,tE8,xK7,DV,sW,Bb,OW,JjE,dy,q_,Aj,RAB,ry,jZ,V2,Ny7,UW,lk,u9n,wy,hj,Gs,fVg, y2,Tyf,$_g,bk,cb,xN,JJ,HEE,ot,ksP,Rt,WSQ,NV,C6,XC,LS7,H2,IVf,FSE,EN8,SWB,$m,TD,f6,MZ7,KS7,aVg,QGg,nNE,v2,W2,Su,D_f,d_g,OEY,MV,qWn,ZE7,sGk,Byk,DB,YWQ,ZB,B2,jGg,rjE,m_k,VZk,dV,gNY,U_8,AJ,Ym,ju,pbg,rV,gV,V1,UR,wV,p6,P2,zD,zAE,hJ,eAg,y1,GD,JQ,oZ,RZ,bf,xm,tJ,Xc,PkQ,ii,wbB,RU,ui,fl,lf,eu,Td,Gsn,$1,Hh,bE7,C8,k1,Wh,St,Ll,IZ,Fc,EX,tZg,M9,x_Q,Kl,JJ7,Qu,aZ,nl,sX,Bh,OX,ZD,omg,NV7,q9,Cf7,X2Y,AQ,Y1,mg,uCB,fBn,Vu,kDP,SR2,TVB,WPQ,vmk,H62,$Vg,LPg,gA,IBP,zd,et,Em8,wA,KPf,ch,hQ,yu,aBB,Gd,QtE,bi,nmB,DVP,tQ,st8,x1,J0, Re,NH,O68,ix,qRY,BVn,ux,TS,$G,YRf,Hv,vv,rJE,mVB,VuE,Wv,S8,Lg,Ie,Fy,E5,MH,UVQ,p2E,lBY,PfE,Kg,zs7,esE,ae,Qm,ng,D2,w2E,GDE,b6g,xVk,tu7,JQ7,RL2,Z2,qH,YG,mk,Vm,XhB,pg,Pv,e8,ucQ,h0,fDf,TA7,xG,o4,R4,CK,XK,uR,fK,IDB,FgE,E1E,Mt7,TL,$b,Kg8,aDn,QZB,H7,kb,v7,W7,SF,EF,KK,sF,n1g,D9f,Yb,sZ8,lR,P7,Zlk,rQn,AQk,m98,ys,GL,oP,U9B,lD8,ph2,Ng,X5,Pi7,CY,$w,hL,eLB,zLg,Sj,Wt,zL,LY,IP,F5,whn,E2,hLg,aP,yQ7,Qk,nY,Bt,O2,Gdg,blg,ttf,d3,x9E,Zr,qg,J0Q,oGf,RCn,jj,NdB,r3,m3,Vk,Cxg,Xvg,ig2,g3,uyP,U2,hsf,cJg,pY,lu,zz,ej,$H2,w3,ct,yk, Hgg,kSE,Gz,I2g,Nq,Wk2,LkQ,oR,JB,uD,fC,FkE,$7,EGQ,H_,k7,M8f,a2E,LC,nGB,Fq,Es,DH2,se7,aR,QS,nC,dHE,A0E,Os,Y5g,B_,V8B,Mq,OgE,UHg,mH7,r0E,je8,pvP,gGY,Zi,q57,AB,PxB,zCf,eCn,wvB,c0E,rt,hC8,mU,y0B,t8B,xHg,VS,pC,lD,wt,ob8,c_,hB,yS,RQn,NqQ,tB,CRk,x7,Jh,uKk,Tqg,HKk,$sQ,kLQ,RX,X0,Tr,Hu,kh,vu,Wu,SR,SF7,LAg,Lv,Ifn,IX,F0,$h,Ey,Ml,Kv,NK,aX,FAf,nv,Ds,KAP,sy,Bu,Oy,af2,Q4Y,nb8,DsE,Zs,dZ,ql,Ah,BqY,rZ,dsE,qFP,ALQ,jR,YFn,OK2,md,rLf,j4g,pv,VFB,gbn,UsB,p7E,lfE,Pu,PRE,zQB,eQE,w7Y,yL7,cLP,zr,eR,wZ,cu,hh,Gr,bo,th,bKg,tF8, Jn,xh,oy,xsB,Cuf,JT8,owE,RoB,N3Q,Ry,Ny,Xtn,CB,X3,iE,uE,fB,Tp,$V,T3B,iYg,vO,frQ,WO,u52,kV,HO,LB,HY8,F3,Iy,Qc,nB,sr,W3g,D5,Z5,S2E,d2,kzk,F3E,EwE,Mjg,YV,r2,jo,K3n,mF,Vc,g2,Ur,ar8,pB,lE,PO,QPB,nwY,zp,DgQ,Yh,OYE,ZYQ,dgf,q2Q,sPE,eo,w2,yc,Gp,Y2B,tn,bE,rTE,jPQ,mgB,Rm,Vj2,Nx,CN,gwn,UgE,XM,lrE,it,ptE,PuQ,zon,eo7,ut,fN,TP,$y,HZ,ky,vZ,wtE,WZ,Sm,LN,cTE,yTE,GzB,FM,Mx,E1,am,Q8,nN,tjn,xgg,DT,s1,BZ,o7B,REk,X_B,Ntg,iCY,$qn,O1,Ttk,uq2,ZT,df,HCE,qx,kFf,A2,WUg,v7n,Ssg,LUY,mZ,V8,IiE,FUE,E7Q,gf,U1,Mzk,pN,KUQ,aig,n7B,OCg, lt,ZCf,dq2,qsn,ABE,Ysg,em,rBY,jRg,mqE,t2,bt,GP,VzB,g78,Uqk,JU,of,Rf,lig,uj,fz,TW,$$,PDP,Hq,eEP,w_g,cBP,k$,Wq,Si,sn,Bq,dh,yBE,bCP,GFQ,tz2,xqk,my,JhY,ohE,VL,RSQ,NZk,Cok,XuE,lj,Un,Pq,zW,ei,iv7,u02,fsf,wh,cq,TZE,hU,$lE,Hv7,krg,yL,vhE,GW,bj,Wdk,SyY,Ld8,IsY,Fdg,Ehg,tU,x$,Jt,RM,asg,NW,CH,QXB,KdE,oM,nhn,Xw,iz,uz,T4,fH,Dln,sXf,BZB,$Z,ZvB,Hw,qyE,AhE,YyP,rhg,jXQ,mlP,VRE,ghg,Ww,SA,LH,puE,UlQ,ls2,PoB,Fw,zSE,Ek,eSE,wu8,MW,KH,aM,chk,Q7,nH,hS7,Dy,sk,Bw,Ok,Zy,db,qW,At,yhk,Gr7,bvE,tRE,YZ,xlg,oVE,JnB,jA,mn,N2B,Rjn, iBB,T2Y,f58,V7,$yB,HBf,kpP,WFB,vVE,SrB,gb,LFP,I5E,pH,FFP,EVE,Mog,KFY,lz,a5Y,Pw,Qyn,z4,eA,Dyk,wb,syY,cw,ht,B2E,OBg,y7,bz,dyP,tt,ZBE,qrf,AnE,YrY,jyE,xZ,myg,Rg,Nu,gVB,UyE,PE2,zj7,Cm,Xu,i7,u7,fm,TN,$g,Hp,kg,vp,Wp,S4,Lm,hj2,cnE,ynY,bB8,GpE,xyQ,wOg,tog,ejf,Ig,Fu,oyB,R_g,Nfk,ag,Qh,nm,El,XZ8,Dh,J2f,uMg,fT2,iN8,sl,Bp,Ol,Zh,TfQ,CtE,$xB,d5,HNg,kPY,vyg,WZg,S1g,FZ7,EyE,MmQ,KZf,aTE,nyf,DxB,AP,BfE,Yg,qu,ZNn,ONn,A2Y,r28,jmB,mxE,pZf,UxE,PtB,e_f,GPg,Ro,bNn,oo,C$,tmg,XL,uc,f$,xxE,JUg,o$n,S_,RWY,Nh7,n$,CjE,izB,D$,unn, fA2,v$B,Thk,Z$,dE,qh,Yt,rE,FyB,j_,m5,Vi,MiP,p$,KyY,aAf,lc,n$g,z9,e_,wE,cK,D4k,hX,G9,bc,tX,xt,sfE,op,Rp,N0,Ca,XZ,iH,BhB,Ozk,ZzP,d4B,qnk,AUE,uH,Yng,WQ,rU8,jff,m4g,SW,Ip,FZ,E0,ap,QJ,na,g$B,BQ,O0,Z1,U48,pq2,dl,lA2,Pjn,AH,bz2,tiB,x4E,YH,JtE,oZB,Czg,jW,iHk,Xwn,VJ,fyn,TbP,U0,pa,$W7,lH,PQ,z6,eW,wl,cQ,hH,yJ,tH,xH,Jc,oS,RS,NO,HHE,k4E,vZg,Xi,uL,Wnf,HR,kq,vR,WR,SQ,IS,Fi,Fng,EE,MO,K4,MAg,EZE,Sk2,n4,Q5,nZB,Dx,rp,qO,jQ,mh,sME,ZHE,gp,Atg,dWg,qkY,rtn,UWB,jMB,VAB,gZY,p4,UE,pwQ,PR,zO,eQ,lyE,bL,PzB,tc,xq,oc,zNE,NY,CI, eN2,X6,i4,ctg,Tm,H1,kI,v1,W1,S0,LI,Ic,F6,E7,ytB,MY,Qv,ac,bHk,ogE,xWP,JPg,R5E,N5Q,XpB,imY,C7g,fhg,s7,B1,dJ,T5E,$uB,Ze,qY,kNE,vgf,IhB,L8E,j0,mj,Vv,gJ,U7,l4,EgE,M4B,K8f,yv,Gm,ahE,QgP,ngB,oi,Ri,Nz,DuB,sgf,OmE,du8,uS,qlB,$9,f3,v9,W9,L3,APE,QT,n3,DI,sq,Oq,ZI,qz,V4P,gg7,Y9,UuB,ppB,j$,lhY,P7f,mT,VT,z5E,e5Q,cPE,lS,yPE,GNB,Uq,bmB,t4g,JXB,xuP,w9,h5E,RwP,NEY,tC,GB,CcB,XKE,x9,Jg,i$B,uLE,N6,f$Y,TEE,$hB,H$B,TR,k9k,vtQ,W57,SpE,L5B,I$f,F5k,EtE,H$,M_f,v$,a$P,Qog,ntE,Dh8,soE,W$,M6,O$P,qpQ,K9,AX8,rXQ,BEE,jok,mhf,V_E, Z$k,dhg,Sb,L9,Ev,Ypf,FR,IN,gtE,UhE,pKY,l$n,PcY,zwg,yXg,ew2,DZ,Ys,gW,t_B,oHg,JHY,Vn,lC,Rpn,eb,NlB,XQ8,GR,CHB,W62,iaY,vHE,Jd,S0f,F6B,oI,xs,L6g,I1k,EHB,Ni,K6B,a1n,Qpn,nH8,D0Y,spn,Bl7,MWf,ZaY,d0E,q0E,AHB,Y0n,jpk,u0,m0g,f5,TA,$A,VW8,gH2,vG,WG,pQE,U0g,Sg,l1E,zpk,wQY,epg,cHE,G6E,hpB,sK,Zb,OK,baB,BG,dP,qi,Ad,tWf,x0Q,rP,oq7,VR,mc,UK,p5,l0,Ryk,PG,eg,NpE,cG,yR,GA,CLP,XRB,i4n,uiE,b0,xA,fxB,Jv,ok,Rk,$Og,Nd,CR,H42,iK,T$,fR,uK,$u,H0,Whg,MQf,axE,EqB,FhP,KhE,W0,Ik,nqg,QS8,ak,QD,vq2,YEE,dz,Acg,mO2,qE8,v0,qd,KR,Ot, rcE,Et,Lh2,SEf,IxE,LR,dOE,jd,zy7,PLY,m2,wRg,ccg,hyk,gz,ycE,GOE,b42,xOk,JfE,lK,RmE,P0,NJk,C4f,iI2,u6B,ed,feE,$YE,wz,HIB,c0,hv,Eq,Ljn,KjP,Jp,QcE,scE,Rl,OIE,ZIg,dYg,q7E,vd,AfB,Hd,xhE,TT,kn,$n,Nj,K7,Mj,n7,DK,Bd,rf8,OI,qj,Ap,jck,mYf,j7,gIE,UYB,p1P,leB,P4g,zmY,emB,w1B,cfQ,hmB,p7,yf2,lW,zT,GmE,bIn,t0B,e7,xYE,JCB,yP,GT,bW,o9E,tp,R4P,Jl,CSE,N9Q,RH,N2,Cr,Xp,X9n,iy,uy,i3g,uUP,fr,T8,H3Q,fI2,$zE,T9f,$p,HF,kp,kBB,v9E,WTB,vF,LTE,E9E,FT2,WF,Sa,Lr,IH,Fp,M2,Kr,aH,QZ,nr,DO,sS,M$g,KTP,aIg,BF,OS,ZO,d0,Al,r0,Dz7,n9f,VZ, siY,g0,US,pr,ly,PF,w0,cF,hl,yZ,G8,by,tl,xp,JV,o_,R_,Z3k,CL,iw,dzk,uw,ACn,YqE,rCB,mzE,g9k,vC,Uz8,SC,WC,PSE,z4f,e4f,I_,FE,cCB,M3,KL,a_,Qb,yCB,nL,eC,wx,GBE,cC,h4E,hV,yb,t$E,b3g,Gg,bw,tV,xa,ob,Jgf,osk,NF,Cn,i3,u3,RGn,X8,X$E,i98,uRY,fZE,TWE,$6B,H9Q,TV,fn,CCg,W_Q,$M,L_P,IZE,SV,F_n,kM,vU,Esg,Ln,K_E,QNQ,Ib,F8,nsE,EG,sNg,MF,AgQ,d6Y,BWE,Z9B,O9E,ab,QG,nn,Dw,sG,BU,OG,dB,rgn,VbB,YM,sm8,rB,gsB,p$n,mM,pn,VG,UG,gB,zGg,PCE,lZk,eG8,l3,w$E,GRQ,PU,eV,tbg,wB,cU,hM,yG,x6f,GV,JdE,oA2,b3,xM,Nm,CX,X2,i$,u$,fX,T5,$3,Hy,k3, vy,Wy,Ss,RZB,NPE,LX,Iw,F2,Eb,Mm,KX,C08,XGn,aw,sb,fbf,TPn,By,Ob,r1,js,H58,g1,l$,kAY,WcY,vAE,SKQ,Lc2,Ib2,FcE,EAQ,Mgg,abB,KcB,QIB,sIg,O52,Di8,z5,es,din,Z5Q,w1,cy,hN,qKf,yA,G5,b$,YKE,rdY,tN,Adn,x3,VgP,JR,o8,R8,ND,CV,XN,i5,u5,fV,Th,$J,He,kJ,ve,We,SU,LV,I8,FN,Eh,MD,KV,a8,Qa,nV,D_,sh,Be,Oh,Z_,dX,qD,AR,YJ,rX,jU,mp,Va,gX,Uh,pV,l5,Pe,zh,eU,wX,ce,hR,ya,Gh,b5,tR,xJ,J3,o$,R$,Nb,CQ,Xj,i6,u6,fQ,Tu,HM,kj,vM,WM,SG,LQ,I$,Ej,Mb,Uif,KQ,x,a$,Fj,QX,nQ,DN,lbB,BM,zZE,sj,eZ2,ZN,wG7,qb,Oj,A3,Yj,ri,mE,hZY,ydE,GAB,b52,wi,cM, l6,h3,xig,Jvg,ouE,RXY,cd8,NzY,jG,CKn,X02,Gu,oj,b6,gi,iRg,VX,yX,t3,Rj,fnE,Uj,pQ,JK,xj,TzY,N5,Cw,X7,i1,$dE,u1,fw,T_,$i,HT,HRY,k$E,W2f,Stg,WT,SJ,Lw,Ij,MdE,anP,nu7,DdB,E_,Bzk,ORn,Dp,ZR8,s_,BT,O_,Zp,dN,q5,ddB,AvE,YtY,qtE,rvB,jkB,jJ,m4,gN,pw,l1,PT,z_,mdf,eJ,wN,V3,y3,G_,b1,tK,Vd2,hK,UdQ,xi,p0E,ln2,JY,PKE,oW,RW,zXB,eXg,NE,w0E,cvB,CG,hXf,yvB,G$E,bRf,XW,iJ,tdE,xdB,uJ,fG,Ti,Jpn,$P,HD,kP,vD,onY,WD,Sy,Rck,LG,NaE,IW,CWk,XdE,i7Q,udg,fKP,Ta8,FW,$jg,H7E,kTE,E4,vng,ME,Waf,KG,SIg,aW,La8,IKE,QC,O4,Fag,Z6,de,EnE,qE,M72, AY,YP,re,KaE,aKn,mI,VC,nn7,ge,DjE,slE,Qlf,BaP,O77,Z7n,pG,djY,lJ,PD,zi,ey,YI7,we,cD,yC,rp2,Gi,bJ,jl2,xP,R6,Jy,iM,uM,mj2,fe,T0,$Y,HS,V7B,vS,WS,gng,Sv,Le,I6,Ce,FS,EO,Mk,Ujf,Ke,a6,Qp,pdf,ne,DS,sO,BS,OO,dm,qk,Ay,YY,lKY,PW7,zcg,ecE,gm,rm,UO,pe,wd7,cp2,hcE,lM,PS,z0,ypE,GTB,mx,b7P,t7B,ev,xjE,wm,cS,sc,ZX,dD,qR,Am,rD,jl,Vr,gD,Uc,pT,mO,opn,Rzf,Pr,zk,el,N0B,cr,XF2,hm,yr,irn,Gk,bs,tm,Jo,upE,xo,oq,Rq,NJ,fOE,iN,$2k,HrE,k8P,uN,f_,vpE,WrB,SSB,TG,IOf,wD,Lr7,Frg,$B,Epg,HP,Maf,kB,KrE,aO7,QHB,npE,D2g,vP,B0E,sHB,WP,Iq, Or8,Fg,ZrB,E8,d2B,qSf,MJ,Alg,YSE,rlE,jHk,K_,m2P,aq,gpf,n_,Dk,pFk,U2P,lOg,PyQ,zzk,BP,O8,Zk,ezf,wFg,clE,hzE,ylk,G8B,brg,taQ,x2f,JVf,qJ,Ao,YB,oa2,RUk,rT,jw,Nx8,mv,VW,U8,Cwn,p_,lN,PP,XCB,zG,iL8,ew,uEf,wT,f4E,Tx2,cP,$38,HLf,kgE,ho,yW,GG,bN,to,vaE,W$E,xB,Je,on,Smg,Rn,Nf,CD,Xb,iT,L$E,I4B,uT,fD,F$8,Te,$x,Hz,kx,vug,Ea2,MCE,vz,K$E,a4E,Q_7,Wz,SH,LD,In,Fb,EY,Mf,KD,an,Qq,nD,naE,D37,qf,Ae,s_E,Yx,pD,jH,qmE,m3f,AVE,VCE,U32,pCE,gaE,l4E,Pw8,zUB,xx,cVY,yV2,bLB,tCB,x3E,RL,NM,oMB,Rb8,inf,Cc,u8E,NBB,Xa,id,ud,fc,TB8,kVB, $FE,SG7,awB,KMf,LMf,Qbf,$Q,FMf,Iw8,sbY,ZnP,On2,YGE,dFE,H3,kQ,gM8,SN,UFB,wUg,ebY,zbY,lwg,yMB,hbE,P37,JN8,xF8,o3E,MM,C$f,RDE,N1E,pUE,Xyn,iXB,Lc,Fa,bnE,GVP,tVg,u2g,IL,cM7,T1g,HXE,v3k,Sb7,FVn,E32,KVE,aRB,n3E,QwP,ZXB,swP,DmQ,dmB,YbE,rN8,jwE,mmn,qM,hUP,Um8,VsQ,rU,P$Q,Vf,eDE,wyB,zDg,gU,cNE,UD,pc,AK,ld,wCk,P3,za,eN,hD7,yNn,wU,G5B,bX2,tsg,c3,ha,yf,Ga,bd,ta,xQ,JS,oA,xmE,JR7,RA,oJn,NN,L_,Cf,Xt,NXB,RdE,un,C5Y,XeE,ff,Tw,iVE,$X,uNE,f_8,Ggg,lRQ,TXg,HA,Yi,vT,Kc,$D7,HV8,vA,VVB,v3,khB,Aa,YQ,Qf,aL,Ta,DU,LVB,MsQ,nc, rM7,qbQ,vJQ,nMf,EMg,WA,py2,oL,Shn,Wp8,fwE,IR7,LpE,ANQ,ZU,jbE,mFY,BB2,WVY,k5g,WMg,HnY,XUB,C3Y,JME,fRE,MVB,B1E,qGn,AM8,B3,OD,sD,OXE,$m7,FpB,I_f,Sq,Lf,IA,Ft,Eu,aA,DP,BA,Ou,dS,qN,MN,Kf,ZP,MUP,EJg,AS,rS,Kpk,a_E,Q88,jq,mN,Vy,gS,Uu,pf,ln,BX2,zw,PA,OV8,DDg,s8Y,ZVk,eq,wS,dDE,qhB,cA,ARg,FU,rRk,YhP,mDB,gJ7,UDE,VUB,pen,zdn,xX,JO,edB,wen,oJ,RJ,cRE,hd7,yR7,GhP,CP,tUB,ojf,NiB,C6n,RYf,fP,$K,Tj,XMk,iQE,iU,uj8,fNE,TiE,$bg,uU,WEP,Sjn,LEY,vjf,ku8,HQf,INB,FEg,xDg,Ejg,J3k,MGB,KEB,DbE,aNg,Q$E,nj7,OQQ,s$E,BiY,ZQ2,dbB,kK, A3E,qjB,j$8,Yjg,mbg,r3g,VGB,gj7,UbB,pM8,lN8,P6B,zYk,eYP,wMB,c3B,hYg,y3Y,vV,bQP,tG2,xbE,Gug,JKE,oi8,C1g,SB,IJ,E6,KP,XTE,aJ,QM,nP,TNQ,HwE,$5Y,viY,K4k,AO,s6,k_k,fpk,u72,iwB,qC,BV,d$,VM,g$,ni2,U6,pP,mW,OwY,D5n,sjB,ZwE,lU,PV,q_E,eB,w$,cV,hO,yM,Gj,bU,AKY,Y_Y,tO,xK,o2,jj8,m5E,Jx,R2,U5g,pTB,NB,lpE,iG,P18,uG,Tt,z12,fq,$6,e1Q,k6,cKg,h18,Wn,S3,MB,G_Y,I2,Kq,QH,bwQ,DC,Ez,a2,tJB,sz,x5Y,Bn,JYE,Lq,Fs,yKQ,nq,Oz,oPE,R92,ZC,NeE,dG,CJk,qB,Ax,XDP,rG,Y6,j3,mK,iGE,uWY,VH,gG,Uz,pq,lG,f6B,Pn,zt,TeE,$E2,e3,wG,cn,kif,HG2,hx, vPE,WIg,S4Q,yH,LIQ,I6g,FI7,EPQ,My8,Gt,bG,tx,x6,KI7,a6f,o9,QWg,R9,N8,nPn,DE8,C0,sWE,BeB,q4Y,AY8,OG8,ZGg,dEE,iB,uB,f0,T2,Y4Q,rYY,$r,jWB,Hf,kr,Vyn,mEf,Wf,vf,gP8,UEf,pDE,l6Q,SL,PJg,I9,FQ,z9B,wDP,cYP,M8,n0,bGQ,Eig,O6,tyE,xEf,JyP,oYg,R0P,Nm2,D9,K0,CM8,Bf,OV,uS2,fS7,TmY,Zj,vYE,$kE,Hen,SOE,LxP,d8,ISE,WxB,Fx7,q8,AI,Yr,EY7,MvB,r8,jL,Kxn,mf,aSg,VO,Dj,lB,Q6B,MJP,W4n,Pf,z2,w8,cf,hI,yO,G2,eL,xr,GG8,RF,b_Q,oxB,OD8,ZDg,dfE,Nw,Ae2,Cs,reB,XO,mfB,VH8,jnY,YYY,gx2,Ufg,pzB,$S,lcY,PT8,e$8,HH,Qjg,vH,ceE,yek,YK,GeE,bDQ,Sh, xfB,Z9,tHB,S_g,IpQ,F4E,wzY,Ls,IF,FO,Jak,oQE,Ei,Rhg,Ks,aF,Q_,NUn,ns,DF,CdE,X3B,si,BH,Oi,ZF,dI,qw,uan,icY,A6,fUE,$ME,YS,Hc2,TUn,t6,Gn,xS,od,Rd,fs,kak,EQg,zu,ba,iv,QLk,$C,DMY,Ui,Hm,gI,kC,y_,Se,dM2,LW,Id,qDB,AaE,YDg,ran,Fk,jLE,mMk,EA,VNg,Pdg,lUY,gQf,p3g,UMf,ML,zhk,KW,ehP,w3P,hhE,yaE,Gan,oXB,sA,Bm,CnP,OA,Za,XAg,fPg,TSf,$NE,Hf8,dQ,kwf,WNn,Su8,Pm,nXQ,EXB,Mqg,sA7,z1,BS7,Zff,Of2,dNB,wQ,yz,quE,ee,G1,bv,AS8,jAB,YuB,gXn,R5,Ru2,HPE,kjg,WWY,bf8,fA,vKE,kz,KA,ySB,LWE,S6n,I9E,a5,o5,tq2,EKQ,MBf,KWn,QJf,FWg,nA,a9Y, sJB,B$8,DCB,sU,ZPE,Jq,$z,nKP,N$f,rSB,uTk,Aq,HJ,gO,Fr,pA,lY,PUk,euE,zu8,EU,wVg,cOf,huf,zH,yOg,Gj7,bPB,iY,tBY,Gwn,xC8,rOB,TH,Pn7,JxE,pA2,UNB,mNY,wO,CA,$Bk,TGB,ktn,v6B,GH,tq,xz,bY,o1,WKf,Szg,R1,ICB,N$,E6k,KK2,FKQ,uh,s2f,n6B,BGg,ZqB,dBB,$e,qzB,rxE,j2g,Ku,a1,V3E,zC,g6n,bh,t9,xe,J7,UBE,oK,pn8,e3Y,RK,NU,wnE,cxg,yxB,h3E,GtP,bqn,t3Q,CJ,X_,xBB,orY,RTB,N8g,T7,i0E,XfB,uQB,$8,Hi,k8,fjB,T8B,$88,H0k,k2f,WfB,vrB,SV7,vi,Ijk,Lf8,FfQ,Erk,Wi,Sr,MLE,ajg,Q9E,nrQ,D8E,Z0f,s9Q,LJ,d8k,IK,qVg,YVB,rI7,m82,j9Q,VLg,F_,Ee,grQ, U8g,pfQ,aK,MU,zTE,eTB,ljB,PBB,wfE,cIE,nJ,hTB,G27,tL8,oSB,x8E,J6Y,A7,jr,NIE,mm,Can,Vj,isg,uOE,fFP,XHf,HsB,knY,go,Ue,vS2,WJB,SiB,FN8,QAn,LJg,FJf,IFf,ESE,le,KJ8,aFE,Dwn,z7,er,wo,BIE,dw2,yj,G7,be,A6E,qi8,ci,YiE,r6f,jFg,Vhn,lFE,hVQ,JzQ,oz,oCE,se,NQk,Cv8,Xm2,iWB,ukB,No,Cb,fak,XP,TQg,uF,HW2,k1k,vCB,fb,W7n,SA7,L7k,IaE,F7P,Tc,$LQ,EC8,$O,K7P,aa8,Hk,QdB,nCf,DLE,sdk,BQf,OW2,ZWB,dLk,qA2,AzB,YA7,jd8,kO,Vef,mLE,laB,Wk,rzf,vk,ST,Lb,Iz,FP,Ed,Mo,Pvg,Kb,zIP,eI2,G1B,xL2,Jqg,ozg,RKf,Dm,NOE,teg,yzE,CYk,Qx,XJk,urE,az,nb, cz8,hI8,sd,fuE,TOf,bWg,wmY,$nE,HA2,kHY,Od,Ww7,vz8,Zm,Ezk,IuQ,Fwn,SUQ,M9E,dH,Lwg,qo,AD,Kwf,aun,Q5Y,YO,Dng,s5n,rH,BOY,jT,OAE,ZAB,dnB,qU8,YUE,rqg,j5P,PYn,gzg,Aq7,eKg,wJ8,UnB,pJE,V9k,lu7,bAQ,gH,mnB,zKE,xnE,GH2,yq7,hKY,cq8,pb,J9E,Dt,lF,Pk,zc,oe2,RBE,Nnk,eT,Ch7,ro,XEE,wH,Oe,qU,yIY,hD,Gc,TnP,$$E,tD,yx,ck,J4,um2,iuE,fdE,os,HuE,kC8,pmB,ULE,Bi,Rs,veP,bF,WR8,SLE,LRE,IdE,FRP,NA,MMY,KRQ,ad7,Q1f,neB,D$Y,iAf,XX,iI,BnE,CS,OuY,TIB,$wE,uI,Zu2,d$B,qLf,A9B,fS,j1k,YLE,m$B,geB,r9B,U$n,ldE,pEQ,eB2,Tl,kv,hBB,c9g,tMB,GCE, x$g,J7P,y92,buE,wEg,o88,vX,R2f,Xik,NoQ,Cen,SO,iJQ,Men,u_2,ftg,Tok,$Ug,LS,HJg,Is,k7Y,FX,E$,MA,v8g,E8E,FmB,WmB,Se7,Lmg,ItP,MrP,Km7,at2,QK8,KS,ZsY,as,sKk,QB,DUk,Bo2,OJE,Osk,h7,ZJP,dUY,D8,VrB,mUf,dc,g8n,jK7,ltE,qA,Peg,z2g,c7Y,h2B,G7n,wiE,bJE,trQ,xUE,JDn,oO8,NHQ,CFg,XkE,RaB,Yv,nS,uPY,e28,fm8,y7k,rc,$o2,ibn,A4,HbB,kcB,SdY,FbE,Lbf,EOB,ImP,MT8,vOE,Wbg,gc,nOg,szB,DoE,BHB,Ob7,ZbB,Qz7,doE,qdQ,jO,ADQ,Ydf,rDg,jzg,gOQ,VTQ,moQ,pS,UoP,lmn,PFB,zak,ean,eO,wc,gCk,wk2,cDf,haf,bbg,GcQ,yD2,tTf,J4Y,ov2,xoB,VB,PhE,Ncg,CIg, XXB,HSQ,f8Q,Tck,$A2,klE,WLY,t9B,lI,uXE,iSk,vvk,Y8,Vx,Zt,EvQ,FLn,MOP,KLg,a8E,QsB,pkB,HX,$v,LLE,nvE,I8E,DA7,ssQ,VM8,Bc7,amY,Kbf,S$B,zB2,Gl,bI,ZSE,t4,dAB,q$E,A48,Y$Q,r4E,jsg,VOY,mAB,UAB,pXY,e8f,l82,z8E,wXg,Js,Gl2,h8g,y4E,xAk,JsE,o4B,RHk,N6f,xv,C98,tOg,c4n,ou,XIg,PIQ,ikg,Ru,fgg,T67,$rg,ueQ,Nr,v48,k3Y,LlE,SHP,Wl2,Ig7,Fl8,Ck,E4E,M1E,agE,QuE,Klk,n42,ZkE,suQ,B6B,Okn,drg,qH7,Asn,rsf,YHP,juB,mrE,V1n,Urf,lgE,pIE,P9n,g4E,zHk,wI7,csY,ys8,bkk,hHB,fk,t1n,xr2,eHB,JZY,G3Q,T3,o5f,RME,Ngf,Cb2,X8E,ipY,u$Y,Tgk,Hpk,kff, v5P,$4,SJg,Len,Fe8,WI,McQ,KeQ,aMn,QCP,DtQ,n5E,OpP,Zp2,S1,Iu,sCB,BgY,dt7,EH,AZg,qJE,YJE,rZB,jCB,g5B,mt8,lMn,Mr,Vc7,Pbn,Kk,cZB,Q6,nk,hMP,au,yZB,Dg,tck,bpg,eMY,w8Q,xtg,J$n,o0k,zME,RO7,sH,Nv7,Gfn,E5n,Fe,XYB,OH,it8,uA2,fok,Tv8,$TE,Htn,kxB,v07,WYB,SgE,Zg,LYE,IoE,E0B,MxB,KY8,FYQ,aon,Q37,d6,n08,DTE,s32,Bv2,qr,JlQ,OtP,Ztg,As,dT8,qgf,r6,r$8,j3Y,j1,VxE,g0B,mTQ,YgE,ml,Y4,A$P,UH,g6,UTf,pk,V6,zOf,c$2,y$E,Gx2,txE,loE,hO2,xTY,Pp7,J1g,oR2,w6,l9,N7B,Rkg,z3,iog,uhB,wYg,eOY,Xx2,fJn,btB,pYg,hs,y6,G3,T7E,b9,STY,koY,LoB, vRf,HoB,IJn,$Zg,Kon,Fo8,ts,aJf,nR2,Vp,sB8,B7E,OoQ,ZoB,RC,dZ7,qTB,r1Y,Cp,Xe,jBk,gRE,A17,cI,e1,UZQ,pxP,$5,TH7,fp,x4,zkn,ek2,c1Q,wxg,hkE,VDg,ib,y1B,k5,boB,Gog,xZE,tDg,JAf,R8Q,h4,v8,ocn,RPk,NFn,CXB,Xcg,X$,iM8,f3f,u1Y,TFY,$Q8,kMg,vcB,P_k,DZQ,SQg,Wug,ub,JZ,Lu7,W8,Sc,Ecg,MYg,Lp,a3f,Qvk,ncE,DQg,H8,zl,Drg,YTn,svE,OSf,PI,BF2,OME,ZME,dQg,qQE,IC,F$,YQE,rAE,jvg,AAB,EJ,UQP,VY8,gc2,pcY,Mt,l3E,PXf,zPn,Kp,ePP,cAn,hPE,yA7,aC,wcQ,Qw,np,GM2,bMY,B8,DM,sJ,tYk,OJ,xQf,J5E,oUE,N_B,R7n,rg,XaB,ihQ,Cg2,uHg,jc,fEB,me,T_Q,LHY, WHB,SN8,$aY,kb2,Vw,Hhf,vU7,IEg,FHf,EUB,M5P,UJ,KHB,P8,pp,aEf,zf,ec,nUf,c8,hZ,DaY,wg,sEg,yw,OhY,B_Q,bb,tZ,x5,qNg,Zh2,da2,J$,A58,man,r58,YNg,jE2,o3,gUY,lEE,Pg8,R3,z7n,e7E,UaB,pag,h7E,y52,Gbk,bh7,t5P,XA,Rin,ip,JEE,ofB,Ct,up,ft,xak,CqB,Tx,$0,XBf,iU2,KuE,HY,uY8,fGB,TMQ,$7P,HUk,kvg,vf2,LXY,WXB,IGf,FXE,Eff,aG7,QO8,Kt,ZUY,D7P,sOg,d78,qMg,OUB,nf8,AEP,rEB,YM8,jOk,lGf,Q4,ei2,hiY,cEY,wB8,U7B,pB8,m7Q,VpQ,PqB,nt,Do,Gvn,SM,M38,bUn,BY,tpE,J8E,x72,ziQ,RFg,NC2,CmP,Zo,Xj8,mY,uGE,flE,TCY,H1Q,$v7,kK8,V4,gv,v_7,L1E,IlE, pt,SCn,F1f,E_n,W1k,lp,ex,MKE,K1n,zx,al8,QrB,n_E,Dvk,BC7,srE,dvP,qCY,O1k,YCf,r82,Z1E,h$,y4,jrE,VKY,Gx,mvE,g_B,pjg,UvE,llY,bp,Pmn,zFk,eFn,t$,x0,c8B,wjg,hFE,y8f,b1E,GK2,tKg,xvn,JwP,oFg,Rlk,CZB,oB,J1,RB,X6g,iO7,NK8,HOY,kYE,vFg,LQE,SxP,WQ7,IW7,FQE,NZ,Co,EFE,MI8,KQE,aWY,nFB,Dc7,i_,sVg,Xh,fo,QVB,BKQ,OO2,ZO7,dc2,qxB,$R,Awn,YxY,mcY,Hx,VIE,jV7,kR,vx,gF7,Uck,lW2,zlY,p6g,PZB,SD,elE,cwg,hlk,GY7,bOQ,Lo,IB,tI2,w62,olf,JG8,xcE,Fh,ET,NrB,Rvg,MZ,Ko,COE,aB,XWE,iyP,ulQ,QI,fzQ,no,Trf,DJ,$X7,vlY,WzE,S9E,IzE,FzY,Elk,LzP, KzQ,M2B,azQ,DXE,OT,BrB,sTE,QTB,nl7,Oyg,ZyB,ZJ,d7,dXg,q97,AGB,Y9B,rGE,jTB,V28,glB,cGg,lzE,PO2,UXg,yGQ,mo,VI,xXQ,po,l_,JFg,GQE,jD,eD,zo,g7,w7,Nj2,X5B,CrE,cx,UT,r7,RJQ,Px,byg,oWE,uvg,qZ,h1,fqf,TjQ,t2B,yI,Go,$1Q,b_,t1,xR,HZB,kyn,W9g,SoB,vW7,JA,IqE,L98,ov,F9n,Rv,NQ,EWg,MfP,K9Y,aqE,Qa8,D12,Bjn,sak,nWE,CM,OZE,d1E,ZZY,X1,iX,qoE,YoQ,rF2,uX,AFg,ja7,m1n,fM,Vfk,gW2,U1P,p5f,$c,Hc,Prk,lq2,zJE,kc,vc,eJB,w5B,hJ2,cFg,yFg,Gy2,bZf,SY,tfP,x1n,Ju8,o2E,RqE,NR7,X4g,ixY,u4E,CQQ,fYB,TR2,$en,HxY,kUk,v2Q,WDQ,SPg,MQ,LDg,IYk, FDE,KD7,DeE,Q0B,Mkg,Qg,aY8,E2n,n2f,BRP,OxE,s0Y,nM,ZxE,de8,qPP,i9,men,Vkf,g2E,sQ,UeE,OQ,U$,p4k,Z3,lYB,Bc,PQY,zqf,GU7,Yc,bxB,rF,xeY,oDE,Jig,eq7,jY,RtB,N4B,XLB,mu,id2,uFE,fHE,tk7,Vg,$G7,T4E,gF,hqB,qQ,Hd8,kqg,vD7,WtY,S37,w4Y,cu8,AA,EDE,MXB,aHn,FtB,DGB,KJ,Qj,mL,B4n,Od7,s7Y,ZdY,Kt8,Fug,Ltf,dG2,nDE,q3g,Q7E,xO,Eek,C_7,UQ,pM,WX,IHk,Y3Q,VXE,Pc,gD8,UGQ,j7E,eY,pLE,lHB,AiY,PlE,mGg,zt8,wF,zM,etE,cin,wLn,lX,yi2,yg,Gqg,cc,GM,hA,bX,mZE,bdE,Jrf,xGE,RRY,NwE,oTE,xc,tA,XsP,iFn,uz8,LCf,kZE,FCP,$Ig,ETE,TwP,oE,D3,nTf,MPf, avg,KC7,shg,Ch,XH,ZF2,OFQ,BwQ,ug,SZf,Ha,qZ2,$U,ig,YZ7,mIE,VPn,vTg,rrg,Wa,gTQ,WC7,dI8,fh,UIg,Na,psY,lvf,PVf,FH,EN,ArE,Ma,Kh,zRE,Tb,DI7,eRg,wsk,crB,jhg,hRE,kU,yrB,va,Xm,GZ8,tPn,RE,aE,Qhf,xIg,Jb8,IE,S5,oLQ,tXn,Lh,ReB,NsE,CAE,XoE,QV,nh,fQB,Hjk,vLB,ufg,KsE,aQB,QYg,nLk,DSP,sYn,Bs2,ZjB,Ojk,DE,sN,Ba,dS2,qw2,AbB,Sw,YwP,ON,rbP,ZE,d_,U4,qa,ki,jY7,jN,g3n,mSP,W3,V6Y,C_,Xg,kX,gLg,USB,poP,lQB,A5,ze8,eeQ,YU,j5,mH,woY,ybf,GXn,VV,bjY,cbg,heQ,t6Q,xSn,JWP,okE,Rnk,g_,C27,guQ,U_,QW,XNk,ii8,s8,NuQ,cT,uJY,f0g,Tu7,UN,ls, Hif,kI2,ph,lg,vkf,Pa,Wig,r_,SBE,Lin,T0n,zb,e5,I0n,w_,ca,FiE,h5,Ek2,yV,Gb,MSg,KiE,Va8,bg,a0f,nkY,Qxg,t5,DpE,xU,JE,sxY,BuE,Oi8,Zi8,dpE,qBk,AWB,rWB,RO,YBP,jxB,mpE,VSB,gkg,P22,Upg,pN2,l0B,enk,cWE,hnn,yWg,wNE,N7,GIQ,bin,tSE,xpf,JkU,XY,oE_,iq,uq,fU,RgE,NYd,XgV,i2V,uB_,f7P,$Pk,TY_,H2k,Tv,$f,WB9,kE_,vEV,HB,Sf9,LBE,kf,vB,I7d,WB,FBE,Sp,EEl,LU,IO,MnV,FY,EM,KBf,a78,M7,KU,QQ_,aO,nEa,sQf,DG,BYK,O28,Z2a,Akf,qfq,sM,Yf_,rk9,jQJ,eUn,dPP,VnK,gEa,pgU,EEg,f2;oQ=function(J){return function(){return EEg[J].apply(this,arguments)}}; g.NP=function(J,R){return EEg[J]=R}; KBg=function(J){var R=0;return function(){return R=this.length))return this[J]}; YE=function(J){return J?J:Ak}; mPE=function(J,R,N){J instanceof String&&(J=String(J));for(var C=J.length-1;C>=0;C--){var X=J[C];if(R.call(N,X,C,J))return{i:C,GL:X}}return{i:-1,GL:void 0}}; rY=function(J){return J?J:function(R,N){return mPE(this,R,N).i}}; g.VE=function(J,R,N){J=J.split(".");N=N||g.mB;J[0]in N||typeof N.execScript=="undefined"||N.execScript("var "+J[0]);for(var C;J.length&&(C=J.shift());)J.length||R===void 0?N[C]&&N[C]!==Object.prototype[C]?N=N[C]:N=N[C]={}:N[C]=R}; Uf=function(J,R){var N=g.gY("CLOSURE_FLAGS");J=N&&N[J];return J!=null?J:R}; g.gY=function(J,R){J=J.split(".");R=R||g.mB;for(var N=0;N2){var C=Array.prototype.slice.call(arguments,2);return function(){var X=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(X,C);return J.apply(R,X)}}return function(){return J.apply(R,arguments)}}; g.wY=function(J,R,N){g.wY=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?gEf:UPg;return g.wY.apply(null,arguments)}; g.hk=function(J,R){var N=Array.prototype.slice.call(arguments,1);return function(){var C=N.slice();C.push.apply(C,arguments);return J.apply(this,C)}}; g.yE=function(){return Date.now()}; pgQ=function(J){return J}; g.GE=function(J,R){function N(){} N.prototype=R.prototype;J.gL=R.prototype;J.prototype=new N;J.prototype.constructor=J;J.base=function(C,X,u){for(var f=Array(arguments.length-2),H=2;HR&&N.push(C8(C,1))}); return N}; g.XV=function(J){J&&typeof J.dispose=="function"&&J.dispose()}; g.iP=function(J){for(var R=0,N=arguments.length;R>6|192;else{if(u>=55296&&u<=57343){if(u<=56319&&X=56320&&f<=57343){u=(u-55296)*1024+ f-56320+65536;C[N++]=u>>18|240;C[N++]=u>>12&63|128;C[N++]=u>>6&63|128;C[N++]=u&63|128;continue}else X--}if(R)throw Error("Found an unpaired surrogate");u=65533}C[N++]=u>>12|224;C[N++]=u>>6&63|128}C[N++]=u&63|128}}J=N===C.length?C:C.subarray(0,N)}return J}; L8=function(J){g.mB.setTimeout(function(){throw J;},0)}; kJP=function(J){return Array.prototype.map.call(J,function(R){R=R.toString(16);return R.length>1?R:"0"+R}).join("")}; vdE=function(J){for(var R=[],N=0;N>6|192:((X&64512)==55296&&C+1>18|240,R[N++]=X>>12&63|128):R[N++]=X>>12|224,R[N++]=X>>6&63|128),R[N++]=X&63|128)}return R}; Ea=function(J,R){return J.lastIndexOf(R,0)==0}; Wq8=function(J,R){var N=J.length-R.length;return N>=0&&J.indexOf(R,N)==N}; g.MK=function(J){return/^[\s\xa0]*$/.test(J)}; g.K8=function(J,R){return J.indexOf(R)!=-1}; aU=function(J,R){return g.K8(J.toLowerCase(),R.toLowerCase())}; g.DL=function(J,R){var N=0;J=Q9(String(J)).split(".");R=Q9(String(R)).split(".");for(var C=Math.max(J.length,R.length),X=0;N==0&&XR?1:0}; g.sa=function(){var J=g.mB.navigator;return J&&(J=J.userAgent)?J:""}; dk=function(J){return Bl||Oa?ZL?ZL.brands.some(function(R){return(R=R.brand)&&g.K8(R,J)}):!1:!1}; qK=function(J){return g.K8(g.sa(),J)}; A_=function(){return Bl||Oa?!!ZL&&ZL.brands.length>0:!1}; Yd=function(){return A_()?!1:qK("Opera")}; Sag=function(){return A_()?!1:qK("Trident")||qK("MSIE")}; LqQ=function(){return A_()?dk("Microsoft Edge"):qK("Edg/")}; rk=function(){return qK("Firefox")||qK("FxiOS")}; mq=function(){return qK("Safari")&&!(jE()||(A_()?0:qK("Coast"))||Yd()||(A_()?0:qK("Edge"))||LqQ()||(A_()?dk("Opera"):qK("OPR"))||rk()||qK("Silk")||qK("Android"))}; jE=function(){return A_()?dk("Chromium"):(qK("Chrome")||qK("CriOS"))&&!(A_()?0:qK("Edge"))||qK("Silk")}; ILP=function(){return qK("Android")&&!(jE()||rk()||Yd()||qK("Silk"))}; Fqg=function(J){var R={};J.forEach(function(N){R[N[0]]=N[1]}); return function(N){return R[N.find(function(C){return C in R})]||""}}; Edk=function(J){var R=g.sa();if(J==="Internet Explorer"){if(Sag())if((J=/rv: *([\d\.]*)/.exec(R))&&J[1])R=J[1];else{J="";var N=/MSIE +([\d\.]+)/.exec(R);if(N&&N[1])if(R=/Trident\/(\d.\d)/.exec(R),N[1]=="7.0")if(R&&R[1])switch(R[1]){case "4.0":J="8.0";break;case "5.0":J="9.0";break;case "6.0":J="10.0";break;case "7.0":J="11.0"}else J="7.0";else J=N[1];R=J}else R="";return R}var C=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");N=[];for(var X;X=C.exec(R);)N.push([X[1],X[2],X[3]||void 0]); R=Fqg(N);switch(J){case "Opera":if(Yd())return R(["Version","Opera"]);if(A_()?dk("Opera"):qK("OPR"))return R(["OPR"]);break;case "Microsoft Edge":if(A_()?0:qK("Edge"))return R(["Edge"]);if(LqQ())return R(["Edg"]);break;case "Chromium":if(jE())return R(["Chrome","CriOS","HeadlessChrome"])}return J==="Firefox"&&rk()||J==="Safari"&&mq()||J==="Android Browser"&&ILP()||J==="Silk"&&qK("Silk")?(R=N[2])&&R[1]||"":""}; MEf=function(J){if(A_()&&J!=="Silk"){var R=ZL.brands.find(function(N){return N.brand===J}); if(!R||!R.version)return NaN;R=R.version.split(".")}else{R=Edk(J);if(R==="")return NaN;R=R.split(".")}return R.length===0?NaN:Number(R[0])}; V9=function(){return Bl||Oa?!!ZL&&!!ZL.platform:!1}; KqY=function(){return V9()?ZL.platform==="Android":qK("Android")}; gk=function(){return qK("iPhone")&&!qK("iPod")&&!qK("iPad")}; Ua=function(){return gk()||qK("iPad")||qK("iPod")}; lP=function(){return V9()?ZL.platform==="macOS":qK("Macintosh")}; aLB=function(){return V9()?ZL.platform==="Windows":qK("Windows")}; g.Pl=function(J){return J[J.length-1]}; QUg=function(J,R){var N=J.length,C=typeof J==="string"?J.split(""):J;for(--N;N>=0;--N)N in C&&R.call(void 0,C[N],N,J)}; g.eE=function(J,R,N){R=zJ(J,R,N);return R<0?null:typeof J==="string"?J.charAt(R):J[R]}; zJ=function(J,R,N){for(var C=J.length,X=typeof J==="string"?J.split(""):J,u=0;u=0;C--)if(C in X&&R.call(N,X[C],C,J))return C;return-1}; g.cl=function(J,R){return ndg(J,R)>=0}; DKE=function(J){if(!Array.isArray(J))for(var R=J.length-1;R>=0;R--)delete J[R];J.length=0}; g.y9=function(J,R){R=ndg(J,R);var N;(N=R>=0)&&g.h_(J,R);return N}; g.h_=function(J,R){return Array.prototype.splice.call(J,R,1).length==1}; g.GJ=function(J,R){R=zJ(J,R);R>=0&&g.h_(J,R)}; sUB=function(J,R){var N=0;QUg(J,function(C,X){R.call(void 0,C,X,J)&&g.h_(J,X)&&N++})}; g.bP=function(J){return Array.prototype.concat.apply([],arguments)}; g.t_=function(J){var R=J.length;if(R>0){for(var N=Array(R),C=0;C>>1),k=void 0;N?k=R.call(void 0,J[H],H,J):k=R(C,J[H]);k>0?X=H+1:(u=H,f=!k)}return f?X:-X-1}; g.ik=function(J,R){J.sort(R||RG)}; Z87=function(J,R){var N=RG;g.ik(J,function(C,X){return N(R(C),R(X))})}; g.uk=function(J,R,N){if(!g.l8(J)||!g.l8(R)||J.length!=R.length)return!1;var C=J.length;N=N||dKE;for(var X=0;XR?1:J=0})}; g.SZ=function(J,R){R===void 0&&(R=0);VEE();R=gd2[R];for(var N=Array(Math.floor(J.length/3)),C=R[64]||"",X=0,u=0;X>2];f=R[(f&3)<<4|H>>4];H=R[(H&15)<<2|k>>6];k=R[k&63];N[u++]=""+v+f+H+k}v=0;k=C;switch(J.length-X){case 2:v=J[X+1],k=R[(v&15)<<2]||C;case 1:J=J[X],N[u]=""+R[J>>2]+R[(J&3)<<4|v>>4]+k+C}return N.join("")}; g.LE=function(J,R){if(UK8&&!R)J=g.mB.btoa(J);else{for(var N=[],C=0,X=0;X255&&(N[C++]=u&255,u>>=8);N[C++]=u}J=g.SZ(N,R)}return J}; lLB=function(J){var R=[];plP(J,function(N){R.push(N)}); return R}; IG=function(J){var R=J.length,N=R*3/4;N%3?N=Math.floor(N):g.K8("=.",J[R-1])&&(N=g.K8("=.",J[R-2])?N-2:N-1);var C=new Uint8Array(N),X=0;plP(J,function(u){C[X++]=u}); return X!==N?C.subarray(0,X):C}; plP=function(J,R){function N(k){for(;C>4);f!=64&&(R(u<<4&240|f>>2),H!=64&&R(f<<6&192|H))}}; VEE=function(){if(!F9){F9={};for(var J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),R=["+/=","+/","-_=","-_.","-_"],N=0;N<5;N++){var C=J.concat(R[N].split(""));gd2[N]=C;for(var X=0;X=J.length)throw Error();}; Ny7=function(J,R){(R=gy?R[gy]:void 0)&&(J[gy]=Bb(R))}; UW=function(J){J.Zw7=!0;return J}; lk=function(J){var R=J;if(Ck8(R)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(R))throw Error(String(R));}else if(XbB(R)&&!Number.isSafeInteger(R))throw Error(String(R));return pE?BigInt(J):J=iEQ(J)?J?"1":"0":Ck8(J)?J.trim()||"0":String(J)}; u9n=function(J,R){if(J.length>R.length)return!1;if(J.lengthX)return!1;if(C>>0;Pb=R;eZ=(J-R)/4294967296>>>0}; hj=function(J){if(J<0){wy(0-J);var R=g.K(cb(Pb,eZ));J=R.next().value;R=R.next().value;Pb=J>>>0;eZ=R>>>0}else wy(J)}; Gs=function(J,R){var N=R*4294967296+(J>>>0);return Number.isSafeInteger(N)?N:y2(J,R)}; fVg=function(J,R){var N=R&2147483648;N&&(J=~J+1>>>0,R=~R>>>0,J==0&&(R=R+1>>>0));J=Gs(J,R);return typeof J==="number"?N?-J:J:N?"-"+J:J}; y2=function(J,R){R>>>=0;J>>>=0;if(R<=2097151)var N=""+(4294967296*R+J);else sW()?N=""+(BigInt(R)<>>24|R<<8)&16777215,R=R>>16&65535,J=(J&16777215)+N*6777216+R*6710656,N+=R*8147497,R*=2,J>=1E7&&(N+=J/1E7>>>0,J%=1E7),N>=1E7&&(R+=N/1E7>>>0,N%=1E7),N=R+Tyf(N)+Tyf(J));return N}; Tyf=function(J){J=String(J);return"0000000".slice(J.length)+J}; $_g=function(){var J=Pb,R=eZ;R&2147483648?sW()?J=""+(BigInt(R|0)<>>0)):(R=g.K(cb(J,R)),J=R.next().value,R=R.next().value,J="-"+y2(J,R)):J=y2(J,R);return J}; bk=function(J){if(J.length<16)hj(Number(J));else if(sW())J=BigInt(J),Pb=Number(J&BigInt(4294967295))>>>0,eZ=Number(J>>BigInt(32)&BigInt(4294967295));else{var R=+(J[0]==="-");eZ=Pb=0;for(var N=J.length,C=0+R,X=(N-R)%6+R;X<=N;C=X,X+=6)C=Number(J.slice(C,X)),eZ*=1E6,Pb=Pb*1E6+C,Pb>=4294967296&&(eZ+=Math.trunc(Pb/4294967296),eZ>>>=0,Pb>>>=0);R&&(R=g.K(cb(Pb,eZ)),J=R.next().value,R=R.next().value,Pb=J,eZ=R)}}; cb=function(J,R){R=~R;J?J=~J+1:R+=1;return[J,R]}; xN=function(J,R){throw Error(R===void 0?"unexpected value "+J+"!":R);}; JJ=function(J){if(J!=null&&typeof J!=="number")throw Error("Value of float/double field must be a number, found "+typeof J+": "+J);return J}; HEE=function(J){return J.displayName||J.name||"unknown type name"}; ot=function(J){if(J!=null&&typeof J!=="boolean")throw Error("Expected boolean but got "+p2(J)+": "+J);return J}; ksP=function(J){if(J==null||typeof J==="boolean")return J;if(typeof J==="number")return!!J}; Rt=function(J){var R=typeof J;switch(R){case "bigint":return!0;case "number":return Number.isFinite(J)}return R!=="string"?!1:vN2.test(J)}; WSQ=function(J){if(typeof J!=="number")throw DV("int32");if(!Number.isFinite(J))throw DV("int32");return J|0}; NV=function(J){return J==null?J:WSQ(J)}; C6=function(J){if(J==null)return J;if(typeof J==="string"){if(!J)return;J=+J}if(typeof J==="number")return Number.isFinite(J)?J|0:void 0}; XC=function(J){if(J==null)return J;if(typeof J==="string"){if(!J)return;J=+J}if(typeof J==="number")return Number.isFinite(J)?J>>>0:void 0}; LS7=function(J){var R=0;R=R===void 0?0:R;if(!Rt(J))throw DV("int64");var N=typeof J;switch(R){case 4096:switch(N){case "string":return f6(J);case "bigint":return String(BigInt.asIntN(64,J));default:return TD(J)}case 8192:switch(N){case "string":return R=Math.trunc(Number(J)),Number.isSafeInteger(R)?J=lk(R):(R=J.indexOf("."),R!==-1&&(J=J.substring(0,R)),J=sW()?lk(BigInt.asIntN(64,BigInt(J))):lk(SWB(J))),J;case "bigint":return lk(BigInt.asIntN(64,J));default:return Number.isSafeInteger(J)?lk($m(J)): lk(TD(J))}case 0:switch(N){case "string":return f6(J);case "bigint":return lk(BigInt.asIntN(64,J));default:return $m(J)}default:return xN(R,"Unknown format requested type for int64")}}; H2=function(J){return J==null?J:LS7(J)}; IVf=function(J){return J[0]==="-"?!1:J.length<20?!0:J.length===20&&Number(J.substring(0,6))<184467}; FSE=function(J){return J[0]==="-"?J.length<20?!0:J.length===20&&Number(J.substring(0,7))>-922337:J.length<19?!0:J.length===19&&Number(J.substring(0,6))<922337}; EN8=function(J){if(J<0){hj(J);var R=y2(Pb,eZ);J=Number(R);return Number.isSafeInteger(J)?J:R}R=String(J);if(IVf(R))return R;hj(J);return Gs(Pb,eZ)}; SWB=function(J){if(FSE(J))return J;bk(J);return $_g()}; $m=function(J){Rt(J);J=Math.trunc(J);Number.isSafeInteger(J)||(hj(J),J=fVg(Pb,eZ));return J}; TD=function(J){Rt(J);J=Math.trunc(J);if(Number.isSafeInteger(J))J=String(J);else{var R=String(J);FSE(R)?J=R:(hj(J),J=$_g())}return J}; f6=function(J){Rt(J);var R=Math.trunc(Number(J));if(Number.isSafeInteger(R))return String(R);R=J.indexOf(".");R!==-1&&(J=J.substring(0,R));return SWB(J)}; MZ7=function(J){if(J==null)return J;if(typeof J==="bigint")return km(J)?J=Number(J):(J=BigInt.asIntN(64,J),J=km(J)?Number(J):String(J)),J;if(Rt(J))return typeof J==="number"?$m(J):f6(J)}; KS7=function(J){if(J==null)return J;var R=typeof J;if(R==="bigint")return String(BigInt.asIntN(64,J));if(Rt(J)){if(R==="string")return f6(J);if(R==="number")return $m(J)}}; aVg=function(J){if(J==null)return J;var R=typeof J;if(R==="bigint")return String(BigInt.asUintN(64,J));if(Rt(J)){if(R==="string")return Rt(J),R=Math.trunc(Number(J)),Number.isSafeInteger(R)&&R>=0?J=String(R):(R=J.indexOf("."),R!==-1&&(J=J.substring(0,R)),IVf(J)||(bk(J),J=y2(Pb,eZ))),J;if(R==="number")return Rt(J),J=Math.trunc(J),J>=0&&Number.isSafeInteger(J)?J:EN8(J)}}; QGg=function(J){if(J==null||typeof J=="string"||EW(J)||J instanceof M_)return J}; nNE=function(J){if(typeof J!=="string")throw Error();return J}; v2=function(J){if(J!=null&&typeof J!=="string")throw Error();return J}; W2=function(J){return J==null||typeof J==="string"?J:void 0}; Su=function(J,R){if(!(J instanceof R))throw Error("Expected instanceof "+HEE(R)+" but got "+(J&&HEE(J.constructor)));return J}; D_f=function(J,R,N){if(J!=null&&typeof J==="object"&&J.gS===It)return J;if(Array.isArray(J)){var C=YN(J),X=C;X===0&&(X|=N&32);X|=N&2;X!==C&&ZV(J,X);return new R(J)}}; d_g=function(J){FC===void 0&&(FC=typeof Proxy==="function"?sGk(Proxy):null);var R;(R=!FC)||(ER===void 0&&(ER=typeof WeakMap==="function"?sGk(WeakMap):null),R=!ER);if(R)return J;if(R=MV(J))return R;if(Math.random()>.01)return J;Byk(J);R=new FC(J,{set:function(N,C,X){OEY();N[C]=X;return!0}}); ZE7(J,R);return R}; OEY=function(){xK7()}; MV=function(J){var R;return(R=K6)==null?void 0:R.get(J)}; qWn=function(J){var R;return((R=at)==null?void 0:R.get(J))||J}; ZE7=function(J,R){(K6||(K6=new ER)).set(J,R);(at||(at=new ER)).set(R,J)}; sGk=function(J){try{return J.toString().indexOf("[native code]")!==-1?J:null}catch(R){return null}}; Byk=function(J){if(Q1===void 0){var R=new FC([],{});Q1=Array.prototype.concat.call([],R).length===1}Q1&&typeof Symbol==="function"&&Symbol.isConcatSpreadable&&(J[Symbol.isConcatSpreadable]=!0)}; DB=function(J,R){n6=R;J=new J(R);n6=void 0;return J}; YWQ=function(J){switch(typeof J){case "boolean":return sR||(sR=[0,void 0,!0]);case "number":return J>0?void 0:J===0?Ajg||(Ajg=[0,void 0]):[-J,void 0];case "string":return[0,J];case "object":return J}}; ZB=function(J,R,N){J=B2(J,R[0],R[1],N?1:2);R!==sR&&N&&OR(J,16384);return J}; B2=function(J,R,N,C){var X;C=(X=C)!=null?X:0;J==null&&(J=n6);n6=void 0;if(J==null)X=96,N?(J=[N],X|=512):J=[],R&&(X=X&-33521665|(R&1023)<<15);else{if(!Array.isArray(J))throw Error("narr");X=YN(J);if(X&2048)throw Error("farr");if(X&64)return J;C===1||C===2||(X|=64);if(N&&(X|=512,N!==J[0]))throw Error("mid");a:{C=J;N=X;if(X=C.length){var u=X-1;if(Aj(C[u])){N|=256;R=u-(+!!(N&512)-1);if(R>=1024)throw Error("pvtlmt");X=N&-33521665|(R&1023)<<15;break a}}if(R){R=Math.max(R,X-(+!!(N&512)-1));if(R>1024)throw Error("spvt"); X=N&-33521665|(R&1023)<<15}else X=N}}ZV(J,X);return J}; jGg=function(J,R){return rjE(R)}; rjE=function(J){switch(typeof J){case "number":return isFinite(J)?J:String(J);case "bigint":return km(J)?Number(J):String(J);case "boolean":return J?1:0;case "object":if(J)if(Array.isArray(J)){if(ry(J))return}else{if(EW(J))return zfk(J);if(J instanceof M_){var R=J.K;return R==null?"":typeof R==="string"?R:J.K=zfk(R)}}}return J}; m_k=function(J,R,N){var C=Bb(J),X=C.length,u=R&256?C[X-1]:void 0;X+=u?-1:0;for(R=R&512?1:0;R=J.length||R>=N))return J[R]}; rV=function(J,R,N,C){if(N===-1)return null;var X=R>>15&1023||536870912;if(N>=X){if(R&256)return J[J.length-1][N]}else{var u=J.length;if(C&&R&256&&(C=J[u-1][N],C!=null)){if(pbg(J,R,X,N)&&mP!=null){var f;J=(f=lVf)!=null?f:lVf={};f=J[mP]||0;f>=4||(J[mP]=f+1,xK7())}return C}return pbg(J,R,X,N)}}; gV=function(J,R,N){var C=J.KP,X=qV(C);jZ(X);V1(C,X,R,N);return J}; V1=function(J,R,N,C){var X=R>>15&1023||536870912;if(N>=X){var u=R;if(R&256)var f=J[J.length-1];else{if(C==null)return u;f=J[X+(+!!(R&512)-1)]={};u|=256}f[N]=C;N "+J)}; Kl=function(J){if(typeof J==="string")return{buffer:hfQ(J),XX:!1};if(Array.isArray(J))return{buffer:new Uint8Array(J),XX:!1};if(J.constructor===Uint8Array)return{buffer:J,XX:!1};if(J.constructor===ArrayBuffer)return{buffer:new Uint8Array(J),XX:!1};if(J.constructor===M_)return{buffer:Q2(J)||new Uint8Array(0),XX:!0};if(J instanceof Uint8Array)return{buffer:new Uint8Array(J.buffer,J.byteOffset,J.byteLength),XX:!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"); }; JJ7=function(J,R){this.J=null;this.U=!1;this.K=this.V=this.Z=0;this.init(J,void 0,void 0,R)}; Qu=function(J){var R=0,N=0,C=0,X=J.J,u=J.K;do{var f=X[u++];R|=(f&127)<32&&(N|=(f&127)>>4);for(C=3;C<32&&f&128;C+=7)f=X[u++],N|=(f&127)<>>0,N>>>0);throw M9();}; aZ=function(J,R){J.K=R;if(R>J.V)throw x_Q(J.V,R);}; nl=function(J){var R=J.J,N=J.K,C=R[N++],X=C&127;if(C&128&&(C=R[N++],X|=(C&127)<<7,C&128&&(C=R[N++],X|=(C&127)<<14,C&128&&(C=R[N++],X|=(C&127)<<21,C&128&&(C=R[N++],X|=C<<28,C&128&&R[N++]&128&&R[N++]&128&&R[N++]&128&&R[N++]&128&&R[N++]&128)))))throw M9();aZ(J,N);return X}; sX=function(J){var R=J.J,N=J.K,C=R[N+0],X=R[N+1],u=R[N+2];R=R[N+3];aZ(J,J.K+4);return(C<<0|X<<8|u<<16|R<<24)>>>0}; Bh=function(J){var R=sX(J);J=sX(J);return Gs(R,J)}; OX=function(J){var R=sX(J),N=sX(J);J=(N>>31)*2+1;var C=N>>>20&2047;R=4294967296*(N&1048575)+R;return C==2047?R?NaN:J*Infinity:C==0?J*4.9E-324*R:J*Math.pow(2,C-1075)*(R+4503599627370496)}; ZD=function(J){for(var R=0,N=J.K,C=N+10,X=J.J;NJ.V)throw x_Q(R,J.V-N);J.K=C;return N}; NV7=function(J,R){if(R==0)return aG();var N=omg(J,R);J.GE&&J.U?N=J.J.subarray(N,N+R):(J=J.J,R=N+R,N=N===R?new Uint8Array(0):Rs8?J.slice(N,R):new Uint8Array(J.subarray(N,R)));return N.length==0?aG():new M_(N,KE)}; q9=function(J,R){if(dA.length){var N=dA.pop();N.init(J,void 0,void 0,R);J=N}else J=new JJ7(J,R);this.K=J;this.V=this.K.K;this.J=this.Z=-1;Cf7(this,R)}; Cf7=function(J,R){R=R===void 0?{}:R;J.aV=R.aV===void 0?!1:R.aV}; X2Y=function(J){var R=J.K;if(R.K==R.V)return!1;J.V=J.K.K;var N=nl(J.K)>>>0;R=N>>>3;N&=7;if(!(N>=0&&N<=5))throw tZg(N,J.V);if(R<1)throw Error("Invalid field number: "+R+" (at position "+J.V+")");J.Z=R;J.J=N;return!0}; AQ=function(J){switch(J.J){case 0:J.J!=0?AQ(J):ZD(J.K);break;case 1:J=J.K;aZ(J,J.K+8);break;case 2:if(J.J!=2)AQ(J);else{var R=nl(J.K)>>>0;J=J.K;aZ(J,J.K+R)}break;case 5:J=J.K;aZ(J,J.K+4);break;case 3:R=J.Z;do{if(!X2Y(J))throw Error("Unmatched start-group tag: stream EOF");if(J.J==4){if(J.Z!=R)throw Error("Unmatched end-group tag");break}AQ(J)}while(1);break;default:throw tZg(J.J,J.V);}}; Y1=function(J,R,N){var C=J.K.V,X=nl(J.K)>>>0,u=J.K.K+X,f=u-C;f<=0&&(J.K.V=u,N(R,J,void 0,void 0,void 0),f=u-J.K.K);if(f)throw Error("Message parsing ended unexpectedly. Expected to read "+(X+" bytes, instead read "+(X-f)+" bytes, either the data ended unexpectedly or the message misreported its own length"));J.K.K=u;J.K.V=C}; mg=function(J){var R=nl(J.K)>>>0;J=J.K;var N=omg(J,R);J=J.J;if(i6B){var C=J,X;(X=rA)||(X=rA=new TextDecoder("utf-8",{fatal:!0}));R=N+R;C=N===0&&R===C.length?C:C.subarray(N,R);try{var u=X.decode(C)}catch(v){if(jt===void 0){try{X.decode(new Uint8Array([128]))}catch(W){}try{X.decode(new Uint8Array([97])),jt=!0}catch(W){jt=!1}}!jt&&(rA=void 0);throw v;}}else{u=N;R=u+R;N=[];for(var f=null,H,k;u=R?Wl():(k=J[u++],H<194||(k&192)!==128?(u--,Wl()):N.push((H&31)<<6|k&63)): H<240?u>=R-1?Wl():(k=J[u++],(k&192)!==128||H===224&&k<160||H===237&&k>=160||((X=J[u++])&192)!==128?(u--,Wl()):N.push((H&15)<<12|(k&63)<<6|X&63)):H<=244?u>=R-2?Wl():(k=J[u++],(k&192)!==128||(H<<28)+(k-144)>>30!==0||((X=J[u++])&192)!==128||((C=J[u++])&192)!==128?(u--,Wl()):(H=(H&7)<<18|(k&63)<<12|(X&63)<<6|C&63,H-=65536,N.push((H>>10&1023)+55296,(H&1023)+56320))):Wl(),N.length>=8192&&(f=uVY(f,N),N.length=0);u=uVY(f,N)}return u}; uCB=function(J){var R=nl(J.K)>>>0;return NV7(J.K,R)}; fBn=function(J){return J}; Vu=function(J){return J}; kDP=function(J,R,N,C){return TVB(J,R,N,C,$Vg,H62)}; SR2=function(J,R,N,C){return TVB(J,R,N,C,vmk,WPQ)}; TVB=function(J,R,N,C,X,u){if(!N.length&&!C)return 0;for(var f=0,H=0,k=0,v=0,W=0,S=N.length-1;S>=0;S--){var L=N[S];C&&S===N.length-1&&L===C||(v++,L!=null&&k++)}if(C)for(var I in C)S=+I,isNaN(S)||(W+=LPg(S),H++,S>f&&(f=S));v=X(v,k)+u(H,f,W);I=k;S=H;L=f;for(var F=W,a=N.length-1;a>=0;a--){var n=N[a];if(!(n==null||C&&a===N.length-1&&n===C)){n=a-R;var B=X(n,I)+u(S,L,F);B=1024||(S--,I++,F-=Z.length,f=X(C,I)+u(S,L,F),f1?J-1:0)}; vmk=function(J,R){return(J>1?J-1:0)+(J-R)*4}; H62=function(J,R){return J==0?0:9*Math.max(1<<32-Math.clz32(J+J/2-1),4)<=R?J==0?0:J<4?100+(J-1)*16:J<6?148+(J-4)*16:J<12?244+(J-6)*16:J<22?436+(J-12)*19:J<44?820+(J-22)*17:52+32*J:40+4*R}; $Vg=function(J){return 40+4*J}; LPg=function(J){return J>=100?J>=1E4?Math.ceil(Math.log10(1+J)):J<1E3?3:4:J<10?1:2}; gA=function(J,R,N){this.KP=B2(J,R,N)}; IBP=function(J,R){if(R==null||R=="")return new J;R=JSON.parse(R);if(!Array.isArray(R))throw Error("dnarr");OR(R,32);return DB(J,R)}; zd=function(J){var R=J.KP;R=UX?R:dV(R,gNY,void 0,void 0,!1);var N=!UX,C=qV(N?J.KP:R);if(J=R.length){var X=R[J-1],u=Aj(X);u?J--:X=void 0;var f=+!!(C&512)-1,H=J-f;C=!!pl&&!(C&512);var k,v=(k=pl)!=null?k:Vu;k=C?v(H,f,R,X):H;C=(H=C&&H!==k)?Array.prototype.slice.call(R,0,J):R;if(u||H){b:{var W=C;var S=X;var L;u=!1;if(H)for(v=Math.max(0,k+f);v0;J--){L=C[J-1];if(!(L==null||ry(L)||q_(L)&&L.size===0))break;var B=!0}if(C!==R||W||B){if(!H&&!N)C=Array.prototype.slice.call(C,0,J);else if(B||W||S)C.length=J;S&&C.push(S)}B= C}else B=R;return B}; et=function(J,R){this.J=J>>>0;this.K=R>>>0}; Em8=function(J){if(!J)return FPg||(FPg=new et(0,0));if(!/^\d+$/.test(J))return null;bk(J);return new et(Pb,eZ)}; wA=function(J,R){this.J=J>>>0;this.K=R>>>0}; KPf=function(J){if(!J)return MuQ||(MuQ=new wA(0,0));if(!/^-?\d+$/.test(J))return null;bk(J);return new wA(Pb,eZ)}; ch=function(){this.K=[]}; hQ=function(J,R,N){for(;N>0||R>127;)J.K.push(R&127|128),R=(R>>>7|N<<25)>>>0,N>>>=7;J.K.push(R)}; yu=function(J,R){for(;R>127;)J.K.push(R&127|128),R>>>=7;J.K.push(R)}; aBB=function(J,R){if(R>=0)yu(J,R);else{for(var N=0;N<9;N++)J.K.push(R&127|128),R>>=7;J.K.push(1)}}; Gd=function(J,R){J.K.push(R>>>0&255);J.K.push(R>>>8&255);J.K.push(R>>>16&255);J.K.push(R>>>24&255)}; QtE=function(){this.V=[];this.J=0;this.K=new ch}; bi=function(J,R){R.length!==0&&(J.V.push(R),J.J+=R.length)}; nmB=function(J,R){tQ(J,R,2);R=J.K.end();bi(J,R);R.push(J.J);return R}; DVP=function(J,R){var N=R.pop();for(N=J.J+J.K.length()-N;N>127;)R.push(N&127|128),N>>>=7,J.J++;R.push(N);J.J++}; tQ=function(J,R,N){yu(J.K,R*8+N)}; st8=function(J,R,N){if(N!=null){switch(typeof N){case "string":Em8(N)}tQ(J,R,1);switch(typeof N){case "number":J=J.K;wy(N);Gd(J,Pb);Gd(J,eZ);break;case "bigint":N=BigInt.asUintN(64,N);N=new et(Number(N&BigInt(4294967295)),Number(N>>BigInt(32)));J=J.K;R=N.K;Gd(J,N.J);Gd(J,R);break;default:N=Em8(N),J=J.K,R=N.K,Gd(J,N.J),Gd(J,R)}}}; x1=function(J,R,N){tQ(J,R,2);yu(J.K,N.length);bi(J,J.K.end());bi(J,N)}; J0=function(){function J(){throw Error();} Object.setPrototypeOf(J,J.prototype);return J}; Re=function(J,R,N){this.lX=J;this.rB=R;J=pgQ(oe);this.K=!!J&&N===J||!1}; NH=function(J,R){var N=N===void 0?oe:N;return new Re(J,R,N)}; O68=function(J,R,N,C,X){R=BVn(R,C);R!=null&&(N=nmB(J,N),X(R,J),DVP(J,N))}; ix=function(J,R,N,C){var X=C[J];if(X)return X;X={};X.Jv=YWQ(C[0]);var u=C[1],f=1;u&&u.constructor===Object&&(X.extensions=u,u=C[++f],typeof u==="function"&&(X.vB=!0,Cg!=null||(Cg=u),Xy!=null||(Xy=C[f+1]),u=C[f+=2]));for(var H={};u&&Array.isArray(u)&&u.length&&typeof u[0]==="number"&&u[0]>0;){for(var k=0;k>BigInt(32)));hQ(J.K,N.J,N.K);break;default:N=KPf(R),hQ(J.K,N.J,N.K)}}}; MH=function(J,R,N){R=C6(R);R!=null&&R!=null&&(tQ(J,N,0),aBB(J.K,R))}; UVQ=function(J,R,N){R=ksP(R);R!=null&&(tQ(J,N,0),J.K.K.push(R?1:0))}; p2E=function(J,R,N){R=W2(R);R!=null&&x1(J,N,H8Y(R))}; lBY=function(J,R,N,C,X){R=BVn(R,C);R!=null&&(N=nmB(J,N),X(R,J),DVP(J,N))}; PfE=function(J){return function(){var R=new QtE;mVB(this.KP,R,ix(kG,Hv,vv,J));bi(R,R.K.end());for(var N=new Uint8Array(R.J),C=R.V,X=C.length,u=0,f=0;f>>31)&4294967295;S=X[0];var F=X[1],a=X[2],n=X[3],B=X[4];for(I=0;I<80;I++){if(I<40)if(I<20){var Z=n^F&(a^n);var A=1518500249}else Z=F^a^n,A=1859775393;else I<60?(Z=F&a|n&(F|a),A=2400959708):(Z=F^a^n,A=3395469782);Z=((S<<5|S>>>27)&4294967295)+Z+B+A+L[I]&4294967295;B=n;n=a;a=(F<<30|F>>>2)&4294967295;F=S;S=Z}X[0]=X[0]+S&4294967295;X[1]=X[1]+F&4294967295;X[2]= X[2]+a&4294967295;X[3]=X[3]+n&4294967295;X[4]=X[4]+B&4294967295} function N(S,L){if(typeof S==="string"){S=unescape(encodeURIComponent(S));for(var I=[],F=0,a=S.length;F=56;I--)u[I]=L&255,L>>>=8;R(u);for(I=L=0;I<5;I++)for(var F=24;F>=0;F-=8)S[L++]=X[I]>>F&255;return S} for(var X=[],u=[],f=[],H=[128],k=1;k<64;++k)H[k]=0;var v,W;J();return{reset:J,update:N,digest:C,Mo:function(){for(var S=C(),L="",I=0;I4);X++)R[o4(J[X])]||(N+="\nInner error "+C++ +": ",J[X].stack&&J[X].stack.indexOf(J[X].toString())==0||(N+=typeof J[X]==="string"?J[X]:J[X].message+"\n"),N+=xG(J[X],R));X")!=-1&&(J=J.replace(v1B,">")),J.indexOf('"')!=-1&&(J=J.replace(WgE,""")),J.indexOf("'")!=-1&&(J=J.replace(SXf,"'")),J.indexOf("\x00")!=-1&&(J=J.replace(Lgf,"�")));return J}; g.iR=function(J){return J==null?"":String(J)}; uR=function(J){for(var R=0,N=0;N>>0;return R}; fK=function(J){var R=Number(J);return R==0&&g.MK(J)?NaN:R}; IDB=function(J){return String(J).replace(/\-([a-z])/g,function(R,N){return N.toUpperCase()})}; FgE=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; E1E=function(J){return J.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(R,N,C){return N+C.toUpperCase()})}; Mt7=function(J){var R=1;J=J.split(":");for(var N=[];R>0&&J.length;)N.push(J.shift()),R--;J.length&&N.push(J.join(":"));return N}; TL=function(J){this.K=J||{cookie:""}}; $b=function(J){J=(J.K.cookie||"").split(";");for(var R=[],N=[],C,X,u=0;u/g,">").replace(/"/g,""").replace(/'/g,"'");return e8(J)}; Zlk=function(J){var R=P7("");return e8(J.map(function(N){return g.wd(P7(N))}).join(g.wd(R).toString()))}; rQn=function(J){var R;if(!d92.test("div"))throw Error("");if(qXB.indexOf("DIV")!==-1)throw Error("");var N="":(J=Zlk(R.map(function(C){return C instanceof g.zS?C:P7(String(C))})),N+=">"+J.toString()+""); return e8(N)}; AQk=function(J){for(var R="",N=Object.keys(J),C=0;C2&&Pi7(X,f,C,2);return f}; Pi7=function(J,R,N,C){function X(H){H&&R.appendChild(typeof H==="string"?J.createTextNode(H):H)} for(;C0)X(u);else{a:{if(u&&typeof u.length=="number"){if(g.Pg(u)){var f=typeof u.item=="function"||typeof u.item=="string";break a}if(typeof u==="function"){f=typeof u.item=="function";break a}}f=!1}g.Ts(f?g.t_(u):u,X)}}}; g.iu=function(J){return CY(document,J)}; CY=function(J,R){R=String(R);J.contentType==="application/xhtml+xml"&&(R=R.toLowerCase());return J.createElement(R)}; g.uu=function(J){return document.createTextNode(String(J))}; g.fY=function(J,R){J.appendChild(R)}; g.Tz=function(J){for(var R;R=J.firstChild;)J.removeChild(R)}; $w=function(J,R,N){J.insertBefore(R,J.childNodes[N]||null)}; g.Ht=function(J){return J&&J.parentNode?J.parentNode.removeChild(J):null}; g.kw=function(J,R){if(!J||!R)return!1;if(J.contains&&R.nodeType==1)return J==R||J.contains(R);if(typeof J.compareDocumentPosition!="undefined")return J==R||!!(J.compareDocumentPosition(R)&16);for(;R&&J!=R;)R=R.parentNode;return R==J}; hL=function(J){return J.nodeType==9?J:J.ownerDocument||J.document}; g.vt=function(J,R){if("textContent"in J)J.textContent=R;else if(J.nodeType==3)J.data=String(R);else if(J.firstChild&&J.firstChild.nodeType==3){for(;J.lastChild!=J.firstChild;)J.removeChild(J.lastChild);J.firstChild.data=String(R)}else g.Tz(J),J.appendChild(hL(J).createTextNode(String(R)))}; eLB=function(J){return J.tagName=="A"&&J.hasAttribute("href")||J.tagName=="INPUT"||J.tagName=="TEXTAREA"||J.tagName=="SELECT"||J.tagName=="BUTTON"?!J.disabled&&(!J.hasAttribute("tabindex")||zLg(J)):J.hasAttribute("tabindex")&&zLg(J)}; zLg=function(J){J=J.tabIndex;return typeof J==="number"&&J>=0&&J<32768}; Sj=function(J,R,N){if(!R&&!N)return null;var C=R?String(R).toUpperCase():null;return Wt(J,function(X){return(!C||X.nodeName==C)&&(!N||typeof X.className==="string"&&g.cl(X.className.split(/\s+/),N))},!0)}; Wt=function(J,R,N){J&&!N&&(J=J.parentNode);for(N=0;J;){if(R(J))return J;J=J.parentNode;N++}return null}; zL=function(J){this.K=J||g.mB.document||document}; LY=function(J){this.KP=B2(J)}; IP=function(J){this.KP=B2(J)}; F5=function(J){this.KP=B2(J)}; whn=function(J,R){fl(J,IP,1,R)}; E2=function(J){this.KP=B2(J)}; hLg=function(J,R){R=R===void 0?cQB:R;if(!Mg){var N;J=(N=J.navigator)==null?void 0:N.userAgentData;if(!J||typeof J.getHighEntropyValues!=="function"||J.brands&&typeof J.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));N=(J.brands||[]).map(function(X){var u=new IP;u=IZ(u,1,X.brand);return IZ(u,2,X.version)}); whn(gV(KY,2,ot(J.mobile)),N);Mg=J.getHighEntropyValues(R)}var C=new Set(R);return Mg.then(function(X){var u=KY.clone();C.has("platform")&&IZ(u,3,X.platform);C.has("platformVersion")&&IZ(u,4,X.platformVersion);C.has("architecture")&&IZ(u,5,X.architecture);C.has("model")&&IZ(u,6,X.model);C.has("uaFullVersion")&&IZ(u,7,X.uaFullVersion);return u}).catch(function(){return KY.clone()})}; aP=function(J){this.KP=B2(J)}; yQ7=function(J){this.KP=B2(J)}; Qk=function(J){this.KP=B2(J,4)}; nY=function(J){this.KP=B2(J,36)}; Bt=function(J){this.KP=B2(J,19)}; O2=function(J,R){this.E4=R=R===void 0?!1:R;this.uach=this.locale=null;this.K=new Bt;Number.isInteger(J)&&this.K.s5(J);R||(this.locale=document.documentElement.getAttribute("lang"));Gdg(this,new aP)}; Gdg=function(J,R){ui(J.K,aP,1,R);St(R,1)||EX(R,1,1);J.E4||(R=Zr(J),Wh(R,5)||IZ(R,5,J.locale));J.uach&&(R=Zr(J),ii(R,F5,9)||ui(R,F5,9,J.uach))}; blg=function(J,R){UR(d3(J),E2,11)&&(J=qg(J),EX(J,1,R))}; ttf=function(J,R){UR(d3(J),E2,11)&&(J=qg(J),gV(J,2,ot(R)))}; d3=function(J){return ii(J.K,aP,1)}; x9E=function(J){var R=R===void 0?cQB:R;var N=J.E4?void 0:Ng();N?hLg(N,R).then(function(C){J.uach=C;C=Zr(J);ui(C,F5,9,J.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; Zr=function(J){J=d3(J);var R=ii(J,E2,11);R||(R=new E2,ui(J,E2,11,R));return R}; qg=function(J){J=Zr(J);var R=ii(J,LY,10);R||(R=new LY,gV(R,2,ot(!1)),ui(J,LY,10,R));return R}; J0Q=function(J){return g.RP?"webkit"+J:J.toLowerCase()}; g.AT=function(J,R,N,C){this.Z=J;this.U=R;this.K=this.V=J;this.S=N||0;this.D=C||2}; g.Yw=function(J){J.K=Math.min(J.U,J.K*J.D);J.V=Math.min(J.U,J.K+(J.S?Math.round(J.S*(Math.random()-.5)*2*J.K):0));J.J++}; oGf=function(J){this.KP=B2(J,8)}; RCn=function(J){this.KP=B2(J)}; jj=function(J){g.l.call(this);var R=this;this.componentId="";this.V=[];this.ma="";this.pageId=null;this.tN=this.W=-1;this.S=this.experimentIds=null;this.X=this.U=0;this.VO=1;this.timeoutMillis=0;this.logSource=J.logSource;this.cO=J.cO||function(){}; this.J=new O2(J.logSource,J.E4);this.network=J.network;this.Ll=J.Ll||null;this.D=J.meQ||null;this.sessionIndex=J.sessionIndex||null;this.rH=J.rH||!1;this.logger=null;this.withCredentials=!J.wT;this.E4=J.E4||!1;this.dn=typeof URLSearchParams!=="undefined"&&!!(new URL(r3())).searchParams&&!!(new URL(r3())).searchParams.set;var N=EX(new aP,1,1);Gdg(this.J,N);this.Z=new g.AT(1E4,3E5,.1);J=NdB(this,J.Qj);this.K=new v7(this.Z.getValue(),J);this.nC=new v7(6E5,J);this.rH||this.nC.start();this.E4||(document.addEventListener("visibilitychange", function(){document.visibilityState==="hidden"&&R.n4()}),document.addEventListener("pagehide",this.n4.bind(this)))}; NdB=function(J,R){return J.dn?R?function(){R().then(function(){J.flush()})}:function(){J.flush()}:function(){}}; r3=function(){return"https://play.google.com/log?format=json&hasfast=true"}; m3=function(){this.QS=typeof AbortController!=="undefined"}; Vk=function(J,R){g.l.call(this);this.logSource=J;this.sessionIndex=R;this.Id="https://play.google.com/log?format=json&hasfast=true";this.J=null;this.V=!1;this.network=null;this.componentId="";this.pageId=this.K=this.Ll=null}; Cxg=function(J,R){J.J=R;return J}; Xvg=function(J,R){J.network=R;return J}; ig2=function(J,R){J.K=R}; g3=function(J,R,N,C,X,u,f){J=J===void 0?-1:J;R=R===void 0?"":R;N=N===void 0?"":N;C=C===void 0?!1:C;X=X===void 0?"":X;g.l.call(this);this.logSource=J;this.componentId=R;u?R=u:(J=new Vk(J,"0"),J.componentId=R,g.P(this,J),N!==""&&(J.Id=N),C&&(J.V=!0),X&&Cxg(J,X),f&&Xvg(J,f),R=J.build());this.K=R}; uyP=function(J){this.K=J}; U2=function(J,R,N){this.J=J;this.Z=R;this.fields=N||[];this.K=new Map}; hsf=function(J){return J.fields.map(function(R){return R.fieldType})}; cJg=function(J){return J.fields.map(function(R){return R.fieldName})}; pY=function(J,R){U2.call(this,J,3,R)}; lu=function(J,R){U2.call(this,J,2,R)}; g.Pt=function(J,R){this.type=J;this.currentTarget=this.target=R;this.defaultPrevented=this.J=!1}; zz=function(J,R){g.Pt.call(this,J?J.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.timeStamp=0;this.K=null;J&&this.init(J,R)}; ej=function(J){return!(!J||!J[f2E])}; $H2=function(J,R,N,C,X){this.listener=J;this.proxy=null;this.src=R;this.type=N;this.capture=!!C;this.cU=X;this.key=++TdE;this.removed=this.Hl=!1}; w3=function(J){J.removed=!0;J.listener=null;J.proxy=null;J.src=null;J.cU=null}; ct=function(J){this.src=J;this.listeners={};this.K=0}; g.hT=function(J,R){var N=R.type;N in J.listeners&&g.y9(J.listeners[N],R)&&(w3(R),J.listeners[N].length==0&&(delete J.listeners[N],J.K--))}; yk=function(J,R,N,C){for(var X=0;X1)));f=f.next)X||(u=f);X&&(N.K==0&&C==1?Y5g(N,R):(u?(C=u,C.next==N.Z&&(N.Z=C),C.next=C.next.next):r0E(N),je8(N,X,3,R)))}J.V=null}else Mq(J,3,R)}; B_=function(J,R){J.J||J.K!=2&&J.K!=3||mH7(J);J.Z?J.Z.next=R:J.J=R;J.Z=R}; V8B=function(J,R,N,C){var X=aR(null,null,null);X.K=new g.KC(function(u,f){X.V=R?function(H){try{var k=R.call(C,H);u(k)}catch(v){f(v)}}:u; X.J=N?function(H){try{var k=N.call(C,H);k===void 0&&H instanceof Zi?f(H):u(k)}catch(v){f(v)}}:f}); X.K.V=J;B_(J,X);return X.K}; Mq=function(J,R,N){J.K==0&&(J===N&&(R=3,N=new TypeError("Promise cannot resolve to itself")),J.K=1,OgE(N,J.wVC,J.Kjp,J)||(J.D=N,J.K=R,J.V=null,mH7(J),R!=3||N instanceof Zi||gGY(J,N)))}; OgE=function(J,R,N,C){if(J instanceof g.KC)return B_(J,aR(R||g.IR,N||null,C)),!0;if(J)try{var X=!!J.$goog_Thenable}catch(f){X=!1}else X=!1;if(X)return J.then(R,N,C),!0;if(g.Pg(J))try{var u=J.then;if(typeof u==="function")return UHg(J,u,R,N,C),!0}catch(f){return N.call(C,f),!0}return!1}; UHg=function(J,R,N,C,X){function u(k){H||(H=!0,C.call(X,k))} function f(k){H||(H=!0,N.call(X,k))} var H=!1;try{R.call(J,f,u)}catch(k){u(k)}}; mH7=function(J){J.S||(J.S=!0,g.Sz(J.cG,J))}; r0E=function(J){var R=null;J.J&&(R=J.J,J.J=R.next,R.next=null);J.J||(J.Z=null);return R}; je8=function(J,R,N,C){if(N==3&&R.J&&!R.Z)for(;J&&J.U;J=J.V)J.U=!1;if(R.K)R.K.V=null,pvP(R,N,C);else try{R.Z?R.V.call(R.context):pvP(R,N,C)}catch(X){l2E.call(null,X)}FkE(Bd2,R)}; pvP=function(J,R,N){R==2?J.V.call(J.context,N):J.J&&J.J.call(J.context,N)}; gGY=function(J,R){J.U=!0;g.Sz(function(){J.U&&l2E.call(null,R)})}; Zi=function(J){vl.call(this,J)}; q57=function(J,R,N){this.promise=J;this.resolve=R;this.reject=N}; g.dt=function(J,R){g.iD.call(this);this.dV=J||1;this.QN=R||g.mB;this.S3=(0,g.wY)(this.NLC,this);this.PB=g.yE()}; g.qq=function(J,R,N){if(typeof J==="function")N&&(J=(0,g.wY)(J,N));else if(J&&typeof J.handleEvent=="function")J=(0,g.wY)(J.handleEvent,J);else throw Error("Invalid listener argument");return Number(R)>2147483647?-1:g.mB.setTimeout(J,R||0)}; AB=function(J,R){var N=null;return(new g.KC(function(C,X){N=g.qq(function(){C(R)},J); N==-1&&X(Error("Failed to schedule timer."))})).vY(function(C){g.mB.clearTimeout(N); throw C;})}; g.Y7=function(J){g.l.call(this);this.D=J;this.Z=0;this.V=100;this.U=!1;this.J=new Map;this.S=new Set;this.flushInterval=3E4;this.K=new g.dt(this.flushInterval);this.K.listen("tick",this.dD,!1,this);g.P(this,this.K)}; PxB=function(J){J.K.enabled||J.K.start();J.Z++;J.Z>=J.V&&J.dD()}; zCf=function(J,R){return J.S.has(R)?void 0:J.J.get(R)}; eCn=function(J){for(var R=0;R=0){var u=J[N].substring(0,C);X=J[N].substring(C+1)}else u=J[N];R(u,X?CK(X):"")}}}; hB=function(J,R){if(!R)return J;var N=J.indexOf("#");N<0&&(N=J.length);var C=J.indexOf("?");if(C<0||C>N){C=N;var X=""}else X=J.substring(C+1,N);J=[J.slice(0,C),X,J.slice(N)];N=J[1];J[1]=R?N?N+"&"+R:R:N;return J[0]+(J[1]?"?"+J[1]:"")+J[2]}; yS=function(J,R,N){if(Array.isArray(R))for(var C=0;C=0&&RN)X=N;C+=R.length+1;return CK(J.slice(C,X!==-1?X:0))}; Jh=function(J,R){for(var N=J.search(X7B),C=0,X,u=[];(X=CRk(J,C,R,N))>=0;)u.push(J.substring(C,X)),C=Math.min(J.indexOf("&",X)+1||N,N);u.push(J.slice(C));return u.join("").replace(iKn,"$1")}; uKk=function(J,R,N){return tB(Jh(J,R),R,N)}; g.oX=function(J){g.iD.call(this);this.headers=new Map;this.VO=J||null;this.V=!1;this.K=null;this.X="";this.J=0;this.Z="";this.U=this.ma=this.W=this.dn=!1;this.nC=0;this.S=null;this.tN="";this.D=!1}; Tqg=function(J,R,N,C,X,u,f){var H=new g.oX;ffn.push(H);R&&H.listen("complete",R);H.VZ("ready",H.Br);u&&(H.nC=Math.max(0,u));f&&(H.D=f);H.send(J,N,C,X)}; HKk=function(J,R){J.V=!1;J.K&&(J.U=!0,J.K.abort(),J.U=!1);J.Z=R;J.J=5;$sQ(J);RX(J)}; $sQ=function(J){J.dn||(J.dn=!0,J.dispatchEvent("complete"),J.dispatchEvent("error"))}; kLQ=function(J){if(J.V&&typeof Nl!="undefined")if(J.W&&g.Cv(J)==4)setTimeout(J.Xf.bind(J),0);else if(J.dispatchEvent("readystatechange"),J.isComplete()){J.getStatus();J.V=!1;try{if(X0(J))J.dispatchEvent("complete"),J.dispatchEvent("success");else{J.J=6;try{var R=g.Cv(J)>2?J.K.statusText:""}catch(N){R=""}J.Z=R+" ["+J.getStatus()+"]";$sQ(J)}}finally{RX(J)}}}; RX=function(J,R){if(J.K){J.S&&(clearTimeout(J.S),J.S=null);var N=J.K;J.K=null;R||J.dispatchEvent("ready");try{N.onreadystatechange=null}catch(C){}}}; X0=function(J){var R=J.getStatus();a:switch(R){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var N=!0;break a;default:N=!1}if(!N){if(R=R===0)J=g.zF(1,String(J.X)),!J&&g.mB.self&&g.mB.self.location&&(J=g.mB.self.location.protocol.slice(0,-1)),R=!vbk.test(J?J.toLowerCase():"");N=R}return N}; g.Cv=function(J){return J.K?J.K.readyState:0}; g.io=function(J){try{return J.K?J.K.responseText:""}catch(R){return""}}; g.uo=function(J){try{if(!J.K)return null;if("response"in J.K)return J.K.response;switch(J.tN){case "":case "text":return J.K.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in J.K)return J.K.mozResponseArrayBuffer}return null}catch(R){return null}}; g.WAE=function(J){var R={};J=(J.K&&g.Cv(J)>=2?J.K.getAllResponseHeaders()||"":"").split("\r\n");for(var N=0;N>1,R),pv(J,J.length>>1)]}; gbn=function(J){var R=g.K(VFB(J,lo));J=R.next().value;R=R.next().value;return J.toString(16)+R.toString(16)}; UsB=function(J,R){var N=VFB(R);J=new Uint32Array(J.buffer);R=J[0];var C=g.K(N);N=C.next().value;C=C.next().value;for(var X=1;X>>8|f<<24,f+=u|0,f^=H+38293,u=u<<3|u>>>29,u^=f,k=k>>>8|k<<24,k+=H|0,k^=v+38293,H=H<<3|H>>>29,H^=k;u=[u,f];J[X]^=u[0];X+1=N?(globalThis.sessionStorage.removeItem(J),["e"]):["a",new Uint8Array(C.buffer,R+4)]}; Pu=function(J,R,N){N=N===void 0?[]:N;this.maxItems=J;this.K=R===void 0?0:R;this.J=N}; PRE=function(J){var R=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!R)return new Pu(J);var N=R.split(",");if(N.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Pu(J);R=N.slice(1);R.length===1&&R[0]===""&&(R=[]);N=Number(N[0]);return isNaN(N)||N<0||N>R.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Pu(J)):new Pu(J,N,R)}; zQB=function(J,R){this.logger=R;try{var N=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(C){N=!1}N&&(this.index=PRE(J))}; eQE=function(J,R,N,C,X){var u=J.index?vu(J.logger,function(){return p7E(J.index,gbn(R),N,C,X)},"W"):"u"; J.logger.kU(u)}; w7Y=function(J,R,N){var C=g.K(J.index?vu(J.logger,function(){return lfE(gbn(R),N)},"R"):["u"]),X=C.next().value; C=C.next().value;J.logger.fO(X);return C}; yL7=function(J){function R(){N-=C;N-=X;N^=X>>>13;C-=X;C-=N;C^=N<<8;X-=N;X-=C;X^=C>>>13;N-=C;N-=X;N^=X>>>12;C-=X;C-=N;C^=N<<16;X-=N;X-=C;X^=C>>>5;N-=C;N-=X;N^=X>>>3;C-=X;C-=N;C^=N<<10;X-=N;X-=C;X^=C>>>15} J=cLP(J);for(var N=2654435769,C=2654435769,X=314159265,u=J.length,f=u,H=0;f>=12;f-=12,H+=12)N+=zr(J,H),C+=zr(J,H+4),X+=zr(J,H+8),R();X+=u;switch(f){case 11:X+=J[H+10]<<24;case 10:X+=J[H+9]<<16;case 9:X+=J[H+8]<<8;case 8:C+=J[H+7]<<24;case 7:C+=J[H+6]<<16;case 6:C+=J[H+5]<<8;case 5:C+=J[H+4];case 4:N+=J[H+3]<<24;case 3:N+=J[H+2]<<16;case 2:N+=J[H+1]<<8;case 1:N+=J[H+0]}R();return hQ8.toString(X)}; cLP=function(J){for(var R=[],N=0;N>7,J.error.code]);C.set(N,4);return C}; tF8=function(){var J=0,R;return function(N){R||(R=new Wu);var C=new Jn(R,J,1),X=cu(C,function(){return xh(N)},!0); C.dispose();J++;return X}}; Jn=function(J,R,N){eR.call(this,J);this.Z=R;this.clientState=N;this.J="S";this.K="q"}; xh=function(J){return globalThis.TextEncoder?(new TextEncoder).encode(J):g.IU(J)}; oy=function(J,R,N){g.l.call(this);var C=this;this.logger=J;this.onError=R;this.state=N;this.J=0;this.addOnDisposeCallback(function(){C.K&&(C.K.dispose(),C.K=void 0)})}; xsB=function(J,R){R=R instanceof Ds?R:new Ds(5,"TVD:error",R);return J.reportError(R)}; Cuf=function(J,R,N){try{if(J.QO())throw new Ds(21,"BNT:disposed");var C,X;return(X=(C=JT8(J,R,N))!=null?C:owE(J,R,N))!=null?X:RoB(J,R,N)}catch(u){if(!R.I8)throw xsB(J,u);return N3Q(J,N,u)}}; JT8=function(J,R,N){var C;return(C=J.K)==null?void 0:cu(C,function(){return Ry(J,R)},N,function(X){var u; if(J.K instanceof hh&&((u=R.JS)==null?0:u.Ve))try{var f;(f=J.cache)==null||eQE(f,Ry(J,R),X,R.JS.kJ,J.Z-120)}catch(H){J.reportError(new Ds(24,"ELX:write",H))}})}; owE=function(J,R,N){var C;if((C=R.JS)!=null&&C.dh)try{var X,u=(X=J.cache)==null?void 0:w7Y(X,Ry(J,R),R.JS.kJ);return u?N?vu(J.logger,function(){return g.SZ(u,2)},"a"):u:void 0}catch(f){J.reportError(new Ds(23,"RXO:read",f))}}; RoB=function(J,R,N){var C={stack:[],error:void 0,hasError:!1};try{if(!R.VQ)throw new Ds(29,"SDF:notready");return cu(g.xE(C,new Jn(J.logger,J.J,J.state)),function(){return Ry(J,R)},N)}catch(X){C.error=X,C.hasError=!0}finally{g.J_(C)}}; N3Q=function(J,R,N){var C={stack:[],error:void 0,hasError:!1};try{var X=xsB(J,N);return cu(g.xE(C,new th(J.logger,X)),function(){return[]},R)}catch(u){C.error=u,C.hasError=!0}finally{g.J_(C)}}; Ry=function(J,R){return R.aR?R.aR:R.lf?vu(J.logger,function(){return R.aR=xh(R.lf)},"c"):[]}; Ny=function(J){this.KP=B2(J)}; Xtn=function(J,R,N){this.zt=J;this.uI=R;this.metadata=N}; CB=function(J,R){R=R===void 0?{}:R;this.DE3=J;this.metadata=R;this.status=null}; X3=function(J,R,N,C,X){this.name=J;this.methodType="unary";this.requestType=R;this.responseType=N;this.K=C;this.J=X}; iE=function(J){this.KP=B2(J)}; uE=function(J){this.KP=B2(J)}; fB=function(J){this.KP=B2(J)}; Tp=function(J){this.KP=B2(J)}; $V=function(J,R){this.D=J.Rq8;this.X=R;this.K=J.xhr;this.V=[];this.U=[];this.S=[];this.Z=[];this.J=[];this.D&&iYg(this)}; T3B=function(J,R){g.xw(J.K,"complete",function(){if(X0(J.K)){var N=g.io(J.K);if(R&&J.K.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");N=atob(N)}try{var C=J.X(N)}catch(f){HO(J,new rt(13,"Error when deserializing response data; error: "+f+(", response: "+N)));return}N=wvB(J.K.getStatus());kV(J,vO(J));N==0?u52(J,C):HO(J,new rt(N,"Xhr succeeded but the status code is not 200"))}else{N=g.io(J.K);C=vO(J);if(N){var X=frQ(J,N);N=X.code;var u=X.details; X=X.metadata}else N=2,u="Rpc failed due to xhr error. uri: "+String(J.K.X)+", error code: "+J.K.J+", error: "+J.K.getLastError(),X=C;kV(J,C);HO(J,new rt(N,u,X))}})}; iYg=function(J){J.D.Jw("data",function(R){if("1"in R){var N=R["1"];try{var C=J.X(N)}catch(X){HO(J,new rt(13,"Error when deserializing response data; error: "+X+(", response: "+N)))}C&&u52(J,C)}if("2"in R)for(R=frQ(J,R["2"]),N=0;N-1&&J.splice(R,1)}; u52=function(J,R){for(var N=0;N>4&15).toString(16)+(J&15).toString(16)}; D5=function(J,R){this.J=this.K=null;this.V=J||null;this.Z=!!R}; Z5=function(J){J.K||(J.K=new Map,J.J=0,J.V&&c_(J.V,function(R,N){J.add(CK(R),N)}))}; S2E=function(J,R){Z5(J);R=d2(J,R);return J.K.has(R)}; g.L38=function(J,R,N){J.remove(R);N.length>0&&(J.V=null,J.K.set(d2(J,R),g.t_(N)),J.J=J.J+N.length)}; d2=function(J,R){R=String(R);J.Z&&(R=R.toLowerCase());return R}; kzk=function(J,R){R&&!J.Z&&(Z5(J),J.V=null,J.K.forEach(function(N,C){var X=C.toLowerCase();C!=X&&(this.remove(C),g.L38(this,X,N))},J)); J.Z=R}; g.IrE=function(J){var R="";g.nK(J,function(N,C){R+=C;R+=":";R+=N;R+="\r\n"}); return R}; g.qy=function(J,R,N){if(g.rq(N))return J;N=g.IrE(N);if(typeof J==="string")return tB(J,g.Ns(R),N);g.BO(J,R,N);return J}; g.An=function(J){g.l.call(this);this.J=J;this.K={}}; F3E=function(J,R,N,C,X,u){if(Array.isArray(N))for(var f=0;f0&&(R[X]=C)},J); return R}; cTE=function(J){J=LN(J);var R=[];g.nK(J,function(N,C){C in Object.prototype||typeof N!="undefined"&&R.push([C,":",N].join(""))}); return R}; yTE=function(J){vZ(J,"od",hoE);vZ(J,"opac",Im).K=!0;vZ(J,"sbeos",Im).K=!0;vZ(J,"prf",Im).K=!0;vZ(J,"mwt",Im).K=!0;vZ(J,"iogeo",Im)}; GzB=function(){this.K=this.OS=null}; FM=function(){}; Mx=function(){if(!E1())throw Error();}; E1=function(){return!(!KN||!KN.performance)}; am=function(J){return J?J.passive&&bYY()?J:J.capture||!1:!1}; Q8=function(J,R,N,C){return J.addEventListener?(J.addEventListener(R,N,am(C)),!0):!1}; nN=function(J){return J.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[J.visibilityState||J.webkitVisibilityState||J.mozVisibilityState||""]||0}; tjn=function(){}; xgg=function(){return(Bl||Oa)&&ZL?ZL.mobile:!DT()&&(qK("iPod")||qK("iPhone")||qK("Android")||qK("IEMobile"))}; DT=function(){return(Bl||Oa)&&ZL?!ZL.mobile&&(qK("iPad")||qK("Android")||qK("Silk")):qK("iPad")||qK("Android")&&!qK("Mobile")||qK("Silk")}; s1=function(J){try{return!!J&&J.location.href!=null&&Yan(J,"foo")}catch(R){return!1}}; BZ=function(J,R){if(J)for(var N in J)Object.prototype.hasOwnProperty.call(J,N)&&R(J[N],N,J)}; o7B=function(){var J=[];BZ(JB2,function(R){J.push(R)}); return J}; REk=function(J){var R,N;return(N=(R=/https?:\/\/[^\/]+/.exec(J))==null?void 0:R[0])!=null?N:""}; X_B=function(){var J=Ntg("IFRAME"),R={};g.Ts(CDY(),function(N){J.sandbox&&J.sandbox.supports&&J.sandbox.supports(N)&&(R[N]=!0)}); return R}; Ntg=function(J,R){R=R===void 0?document:R;return R.createElement(String(J).toLowerCase())}; iCY=function(J){for(var R=J;J&&J!=J.parent;)J=J.parent,s1(J)&&(R=J);return R}; $qn=function(J){J=J||O1();for(var R=new uq2(g.mB.location.href,!1),N=null,C=J.length-1,X=C;X>=0;--X){var u=J[X];!N&&fi8.test(u.url)&&(N=u);if(u.url&&!u.l9){R=u;break}}X=null;u=J.length&&J[C].url;R.depth!=0&&u&&(X=J[C]);return new Ttk(R,X,N)}; O1=function(){var J=g.mB,R=[],N=null;do{var C=J;if(s1(C)){var X=C.location.href;N=C.document&&C.document.referrer||null}else X=N,N=null;R.push(new uq2(X||""));try{J=C.parent}catch(u){J=null}}while(J&&C!=J);C=0;for(J=R.length-1;C<=J;++C)R[C].depth=J-C;C=g.mB;if(C.location&&C.location.ancestorOrigins&&C.location.ancestorOrigins.length==R.length-1)for(J=1;JR&&(R=N.length);return 3997-R-J.V.length-1}; A2=function(J,R){this.K=J;this.depth=R}; WUg=function(){function J(H,k){return H==null?k:H} var R=O1(),N=Math.max(R.length-1,0),C=$qn(R);R=C.K;var X=C.J,u=C.V,f=[];u&&f.push(new A2([u.url,u.l9?2:0],J(u.depth,1)));X&&X!=u&&f.push(new A2([X.url,2],0));R.url&&R!=u&&f.push(new A2([R.url,0],J(R.depth,N)));C=g.Yy(f,function(H,k){return f.slice(0,f.length-k)}); !R.url||(u||X)&&R!=u||(X=REk(R.url))&&C.push([new A2([X,1],J(R.depth,N))]);C.push([]);return g.Yy(C,function(H){return v7n(N,H)})}; v7n=function(J,R){g.rf(R,function(X){return X.depth>=0}); var N=jm(R,function(X,u){return Math.max(X,u.depth)},-1),C=qan(N+2); C[0]=J;g.Ts(R,function(X){return C[X.depth+1]=X.K}); return C}; Ssg=function(){var J=J===void 0?WUg():J;return J.map(function(R){return qx(R)})}; LUY=function(J){var R=!1;R=R===void 0?!1:R;KN.google_image_requests||(KN.google_image_requests=[]);var N=Ntg("IMG",KN.document);R&&(N.attributionSrc="");N.src=J;KN.google_image_requests.push(N)}; mZ=function(J){var R="St";if(J.St&&J.hasOwnProperty(R))return J.St;var N=new J;J.St=N;J.hasOwnProperty(R);return N}; V8=function(){this.J=new tjn;this.K=E1()?new Mx:new FM}; IiE=function(){gf();var J=KN.document;return!!(J&&J.body&&J.body.getBoundingClientRect&&typeof KN.setInterval==="function"&&typeof KN.clearInterval==="function"&&typeof KN.setTimeout==="function"&&typeof KN.clearTimeout==="function")}; FUE=function(){gf();return Ssg()}; E7Q=function(){}; gf=function(){var J=mZ(E7Q);if(!J.K){if(!KN)throw Error("Context has not been set and window is undefined.");J.K=mZ(V8)}return J.K}; U1=function(J){this.KP=B2(J)}; Mzk=function(J){this.V=J;this.K=-1;this.J=this.Z=0}; pN=function(J,R){return function(){var N=g.sf.apply(0,arguments);if(J.K>-1)return R.apply(null,g.Q(N));try{return J.K=J.V.K.now(),R.apply(null,g.Q(N))}finally{J.Z+=J.V.K.now()-J.K,J.K=-1,J.J+=1}}}; KUQ=function(J,R){this.J=J;this.V=R;this.K=new Mzk(J)}; aig=function(){this.K={}}; n7B=function(){var J=lt().flags,R=QRg;J=J.K[R.key];if(R.valueType==="proto"){try{var N=JSON.parse(J);if(Array.isArray(N))return N}catch(C){}return R.defaultValue}return typeof J===typeof R.defaultValue?J:R.defaultValue}; OCg=function(){this.V=void 0;this.J=this.S=0;this.U=-1;this.iS=new ky;vZ(this.iS,"mv",DqQ).K=!0;vZ(this.iS,"omid",Im);vZ(this.iS,"epoh",Im).K=!0;vZ(this.iS,"epph",Im).K=!0;vZ(this.iS,"umt",Im).K=!0;vZ(this.iS,"phel",Im).K=!0;vZ(this.iS,"phell",Im).K=!0;vZ(this.iS,"oseid",sRn).K=!0;var J=this.iS;J.K.sloi||(J.K.sloi=new $y);J.K.sloi.K=!0;vZ(this.iS,"mm",PZ);vZ(this.iS,"ovms",BtP).K=!0;vZ(this.iS,"xdi",Im).K=!0;vZ(this.iS,"amp",Im).K=!0;vZ(this.iS,"prf",Im).K=!0;vZ(this.iS,"gtx",Im).K=!0;vZ(this.iS, "mvp_lv",Im).K=!0;vZ(this.iS,"ssmol",Im).K=!0;vZ(this.iS,"fmd",Im).K=!0;vZ(this.iS,"gen204simple",Im);this.K=new KUQ(gf(),this.iS);this.Z=!1;this.flags=new aig}; lt=function(){return mZ(OCg)}; ZCf=function(J,R,N,C){if(Math.random()<(C||J.K))try{if(N instanceof ZT)var X=N;else X=new ZT,BZ(N,function(f,H){var k=X,v=k.Z++;f=df(H,f);k.K.push(v);k.J[v]=f}); var u=X.Yi(J.J,"pagead2.googlesyndication.com","/pagead/gen_204?id="+R+"&");u&&(gf(),LUY(u))}catch(f){}}; dq2=function(J,R,N){N=N===void 0?{}:N;this.error=J;this.context=R.context;this.msg=R.message||"";this.id=R.id||"jserror";this.meta=N}; qsn=function(){var J=J===void 0?g.mB:J;return(J=J.performance)&&J.now&&J.timing?Math.floor(J.now()+J.timing.navigationStart):g.yE()}; ABE=function(){var J=J===void 0?g.mB:J;return(J=J.performance)&&J.now?J.now():null}; Ysg=function(J,R,N){this.label=J;this.type=R;this.value=N;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; em=function(){var J=window;this.events=[];this.J=J||g.mB;var R=null;J&&(J.google_js_reporting_queue=J.google_js_reporting_queue||[],this.events=J.google_js_reporting_queue,R=J.google_measure_js_timing);this.K=zP()||(R!=null?R:Math.random()<1)}; rBY=function(J){J&&wf&&zP()&&(wf.clearMarks("goog_"+J.label+"_"+J.uniqueId+"_start"),wf.clearMarks("goog_"+J.label+"_"+J.uniqueId+"_end"))}; jRg=function(){var J=cZ;this.K=h2;this.J6="jserror";this.Nk=!0;this.yh=null;this.J=this.vZ;this.e2=J===void 0?null:J}; mqE=function(J,R,N){var C=y8;return pN(lt().K.K,function(){try{if(C.e2&&C.e2.K){var X=C.e2.start(J.toString(),3);var u=R();C.e2.end(X)}else u=R()}catch(H){var f=C.Nk;try{rBY(X),f=C.J(J,new GP(bt(H)),void 0,N)}catch(k){C.vZ(217,k)}if(!f)throw H;}return u})()}; t2=function(J,R,N,C){return pN(lt().K.K,function(){var X=g.sf.apply(0,arguments);return mqE(J,function(){return R.apply(N,X)},C)})}; bt=function(J){var R=J.toString();J.name&&R.indexOf(J.name)==-1&&(R+=": "+J.name);J.message&&R.indexOf(J.message)==-1&&(R+=": "+J.message);if(J.stack)a:{J=J.stack;var N=R;try{J.indexOf(N)==-1&&(J=N+"\n"+J);for(var C;J!=C;)C=J,J=J.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");R=J.replace(/\n */g,"\n");break a}catch(X){R=N;break a}R=void 0}return R}; GP=function(J){dq2.call(this,Error(J),{message:J})}; VzB=function(){KN&&typeof KN.google_measure_js_timing!="undefined"&&(KN.google_measure_js_timing||cZ.disable())}; g78=function(J){y8.yh=function(R){g.Ts(J,function(N){N(R)})}}; Uqk=function(J,R){return mqE(J,R)}; JU=function(J,R){return t2(J,R)}; of=function(J,R,N,C){y8.vZ(J,R,N,C)}; Rf=function(){return Date.now()-p_Y}; lig=function(){var J=lt().V,R=N4>=0?Rf()-N4:-1,N=Cz?Rf()-Xn:-1,C=ij>=0?Rf()-ij:-1;if(J==947190542)return 100;if(J==79463069)return 200;J=[2E3,4E3];var X=[250,500,1E3];of(637,Error(),.001);var u=R;N!=-1&&N1500&&C<4E3?500:f}; uj=function(J,R,N,C){this.top=J;this.right=R;this.bottom=N;this.left=C}; fz=function(J){return J.right-J.left}; TW=function(J,R){return J==R?!0:J&&R?J.top==R.top&&J.right==R.right&&J.bottom==R.bottom&&J.left==R.left:!1}; $$=function(J,R,N){R instanceof g.Ms?(J.left+=R.x,J.right+=R.x,J.top+=R.y,J.bottom+=R.y):(J.left+=R,J.right+=R,typeof N==="number"&&(J.top+=N,J.bottom+=N));return J}; PDP=function(J,R,N){var C=new uj(0,0,0,0);this.time=J;this.volume=null;this.V=R;this.K=C;this.J=N}; Hq=function(J,R,N,C,X,u,f,H){this.Z=J;this.D=R;this.V=N;this.S=C;this.K=X;this.U=u;this.J=f;this.X=H}; eEP=function(J){var R=J!==J.top,N=J.top===iCY(J),C=-1,X=0;if(R&&N&&J.top.mraid){C=3;var u=J.top.mraid}else C=(u=J.mraid)?R?N?2:1:0:-1;u&&(u.IS_GMA_SDK||(X=2),n1g(zEE,function(f){return typeof u[f]==="function"})||(X=1)); return{vk:u,compatibility:X,U7a:C}}; w_g=function(){var J=window.document;return J&&typeof J.elementFromPoint==="function"}; cBP=function(J,R,N){J&&R!==null&&R!=R.top&&(R=R.top);try{return(N===void 0?0:N)?(new g.a4(R.innerWidth,R.innerHeight)).round():U9B(R||window).round()}catch(C){return new g.a4(-12245933,-12245933)}}; k$=function(J,R,N){try{J&&(R=R.top);var C=cBP(J,R,N),X=C.height,u=C.width;if(u===-12245933)return new uj(u,u,u,u);var f=lD8(ys(R.document).K),H=f.x,k=f.y;return new uj(k,H+u,k+X,H)}catch(v){return new uj(-12245933,-12245933,-12245933,-12245933)}}; g.vq=function(J,R,N,C){this.left=J;this.top=R;this.width=N;this.height=C}; Wq=function(J,R){return J==R?!0:J&&R?J.left==R.left&&J.width==R.width&&J.top==R.top&&J.height==R.height:!1}; g.Lz=function(J,R,N){if(typeof R==="string")(R=Si(J,R))&&(J.style[R]=N);else for(var C in R){N=J;var X=R[C],u=Si(N,C);u&&(N.style[u]=X)}}; Si=function(J,R){var N=hEB[R];if(!N){var C=IDB(R);N=C;J.style[C]===void 0&&(C=(g.RP?"Webkit":nz?"Moz":null)+E1E(C),J.style[C]!==void 0&&(N=C));hEB[R]=N}return N}; g.DA=function(J,R){var N=J.style[IDB(R)];return typeof N!=="undefined"?N:J.style[Si(J,R)]||""}; sn=function(J,R){var N=hL(J);return N.defaultView&&N.defaultView.getComputedStyle&&(J=N.defaultView.getComputedStyle(J,null))?J[R]||J.getPropertyValue(R)||"":""}; Bq=function(J,R){return sn(J,R)||(J.currentStyle?J.currentStyle[R]:null)||J.style&&J.style[R]}; g.ZA=function(J,R,N){if(R instanceof g.Ms){var C=R.x;R=R.y}else C=R,R=N;J.style.left=g.On(C,!1);J.style.top=g.On(R,!1)}; dh=function(J){try{return J.getBoundingClientRect()}catch(R){return{left:0,top:0,right:0,bottom:0}}}; yBE=function(J){var R=hL(J),N=Bq(J,"position"),C=N=="fixed"||N=="absolute";for(J=J.parentNode;J&&J!=R;J=J.parentNode)if(J.nodeType==11&&J.host&&(J=J.host),N=Bq(J,"position"),C=C&&N=="static"&&J!=R.documentElement&&J!=R.body,!C&&(J.scrollWidth>J.clientWidth||J.scrollHeight>J.clientHeight||N=="fixed"||N=="absolute"||N=="relative"))return J;return null}; g.q4=function(J){var R=hL(J),N=new g.Ms(0,0);if(J==(R?hL(R):document).documentElement)return N;J=dh(J);R=lD8(ys(R).K);N.x=J.left+R.x;N.y=J.top+R.y;return N}; bCP=function(J,R){var N=new g.Ms(0,0),C=Ng(hL(J));if(!Yan(C,"parent"))return N;do{var X=C==R?g.q4(J):GFQ(J);N.x+=X.x;N.y+=X.y}while(C&&C!=R&&C!=C.parent&&(J=C.frameElement)&&(C=C.parent));return N}; g.AU=function(J,R){J=tz2(J);R=tz2(R);return new g.Ms(J.x-R.x,J.y-R.y)}; GFQ=function(J){J=dh(J);return new g.Ms(J.left,J.top)}; tz2=function(J){if(J.nodeType==1)return GFQ(J);J=J.changedTouches?J.changedTouches[0]:J;return new g.Ms(J.clientX,J.clientY)}; g.Y$=function(J,R,N){if(R instanceof g.a4)N=R.height,R=R.width;else if(N==void 0)throw Error("missing height argument");J.style.width=g.On(R,!0);J.style.height=g.On(N,!0)}; g.On=function(J,R){typeof J=="number"&&(J=(R?Math.round(J):J)+"px");return J}; g.rh=function(J){var R=xqk;if(Bq(J,"display")!="none")return R(J);var N=J.style,C=N.display,X=N.visibility,u=N.position;N.visibility="hidden";N.position="absolute";N.display="inline";J=R(J);N.display=C;N.position=u;N.visibility=X;return J}; xqk=function(J){var R=J.offsetWidth,N=J.offsetHeight,C=g.RP&&!R&&!N;return(R===void 0||C)&&J.getBoundingClientRect?(J=dh(J),new g.a4(J.right-J.left,J.bottom-J.top)):new g.a4(R,N)}; g.ji=function(J,R){J.style.display=R?"":"none"}; my=function(J,R){R=Math.pow(10,R);return Math.floor(J*R)/R}; JhY=function(J){return new uj(J.top,J.right,J.bottom,J.left)}; ohE=function(J){var R=J.top||0,N=J.left||0;return new uj(R,N+(J.width||0),R+(J.height||0),N)}; VL=function(J){return J!=null&&J>=0&&J<=1}; RSQ=function(){var J=g.sa();return J?gh("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(R){return aU(J,R)})||aU(J,"OMI/")&&!aU(J,"XiaoMi/")?!0:aU(J,"Presto")&&aU(J,"Linux")&&!aU(J,"X11")&&!aU(J,"Android")&&!aU(J,"Mobi"):!1}; NZk=function(){this.V=!s1(KN.top);this.isMobileDevice=DT()||xgg();var J=O1();this.domain=J.length>0&&J[J.length-1]!=null&&J[J.length-1].url!=null?g.ez(J[J.length-1].url)||"":"";this.K=new uj(0,0,0,0);this.Z=new g.a4(0,0);this.U=new g.a4(0,0);this.D=new uj(0,0,0,0);this.frameOffset=new g.Ms(0,0);this.S=0;this.X=!1;this.J=!(!KN||!eEP(KN).vk);this.update(KN)}; Cok=function(J,R){R&&R.screen&&(J.Z=new g.a4(R.screen.width,R.screen.height))}; XuE=function(J,R){a:{var N=J.K?new g.a4(fz(J.K),J.K.getHeight()):new g.a4(0,0);R=R===void 0?KN:R;R!==null&&R!=R.top&&(R=R.top);var C=0,X=0;try{var u=R.document,f=u.body,H=u.documentElement;if(u.compatMode=="CSS1Compat"&&H.scrollHeight)C=H.scrollHeight!=N.height?H.scrollHeight:H.offsetHeight,X=H.scrollWidth!=N.width?H.scrollWidth:H.offsetWidth;else{var k=H.scrollHeight,v=H.scrollWidth,W=H.offsetHeight,S=H.offsetWidth;H.clientHeight!=W&&(k=f.scrollHeight,v=f.scrollWidth,W=f.offsetHeight,S=f.offsetWidth); k>N.height?k>W?(C=k,X=v):(C=W,X=S):k0||J.X)return!0;J=gf().J.isVisible();var R=nN(pz)===0;return J||R}; Un=function(){return mZ(NZk)}; Pq=function(J){this.V=J;this.J=0;this.K=null}; zW=function(J,R,N){this.V=J;this.T7=N===void 0?"na":N;this.U=[];this.isInitialized=!1;this.Z=new PDP(-1,!0,this);this.K=this;this.X=R;this.nC=this.W=!1;this.VO="uk";this.tN=!1;this.S=!0}; ei=function(J,R){g.cl(J.U,R)||(J.U.push(R),R.d_(J.K),R.eL(J.Z),R.oF()&&(J.W=!0))}; iv7=function(J){J=J.K;J.b5();J.Nt();var R=Un();R.D=k$(!1,J.V,R.isMobileDevice);XuE(Un(),J.V);J.Z.K=J.KS()}; u02=function(J){J.W=J.U.length?gh(J.U,function(R){return R.oF()}):!1}; fsf=function(J){var R=g.t_(J.U);g.Ts(R,function(N){N.eL(J.Z)})}; wh=function(J){var R=g.t_(J.U);g.Ts(R,function(N){N.d_(J.K)}); J.K!=J||fsf(J)}; cq=function(J,R,N,C){this.element=J;this.K=new uj(0,0,0,0);this.V=null;this.S=new uj(0,0,0,0);this.J=R;this.iS=N;this.tN=C;this.ma=!1;this.timestamp=-1;this.W=new Hq(R.Z,this.element,this.K,new uj(0,0,0,0),0,0,Rf(),0);this.U=void 0}; TZE=function(J,R){return J.U?new uj(Math.max(R.top+J.U.top,R.top),Math.min(R.left+J.U.right,R.right),Math.min(R.top+J.U.bottom,R.bottom),Math.max(R.left+J.U.left,R.left)):R.clone()}; hU=function(J){this.U=!1;this.K=J;this.Z=function(){}}; $lE=function(J,R,N){this.V=N===void 0?0:N;this.J=J;this.K=R==null?"":R}; Hv7=function(J){switch(Math.trunc(J.V)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; krg=function(J,R){return J.VR.V?!1:J.JR.J?!1:typeof J.Ktypeof R.K?!1:J.K0?C[N]-C[N-1]:C[N]})}; Xw=function(){this.J=new x$;this.T7=this.G7=0;this.pC=new tU;this.dn=this.D=-1;this.Xk=1E3;this.oB=new x$([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.VO=this.ma=-1}; iz=function(J,R){return asg(J.J,R===void 0?!0:R)}; uz=function(J,R,N,C){var X=X===void 0?!1:X;N=t2(C,N);Q8(J,R,N,{capture:X})}; T4=function(J,R){R=fH(R);return R===0?0:fH(J)/R}; fH=function(J){return Math.max(J.bottom-J.top,0)*Math.max(J.right-J.left,0)}; Dln=function(J,R){if(!J||!R)return!1;for(var N=0;J!==null&&N++<100;){if(J===R)return!0;try{if(J=J.parentElement||J){var C=hL(J),X=C&&Ng(C),u=X&&X.frameElement;u&&(J=u)}}catch(f){break}}return!1}; sXf=function(J,R,N){if(!J||!R)return!1;R=$$(J.clone(),-R.left,-R.top);J=(R.left+R.right)/2;R=(R.top+R.bottom)/2;s1(window.top)&&window.top&&window.top.document&&(window=window.top);if(!w_g())return!1;J=window.document.elementFromPoint(J,R);if(!J)return!1;R=(R=(R=hL(N))&&R.defaultView&&R.defaultView.frameElement)&&Dln(R,J);var C=J===N;J=!C&&J&&Wt(J,function(X){return X===N}); return!(R||C||J)}; BZB=function(J,R,N,C){return Un().V?!1:fz(J)<=0||J.getHeight()<=0?!0:N&&C?Uqk(208,function(){return sXf(J,R,N)}):!1}; $Z=function(J,R,N){g.l.call(this);this.position=OvE.clone();this.vD=this.jb();this.K5=-2;this.timeCreated=Date.now();this.Bz=-1;this.Sp=R;this.Xh=null;this.H6=!1;this.MQ=null;this.opacity=-1;this.requestSource=N;this.oTO=!1;this.Fg=function(){}; this.UG=function(){}; this.MM=new GzB;this.MM.OS=J;this.MM.K=J;this.XT=!1;this.vu={U0:null,ZS:null};this.GS=!0;this.gD=null;this.ZF=this.dpO=!1;lt().S++;this.UL=this.r7();this.zS=-1;this.yC=null;this.hasCompleted=this.RfB=!1;this.iS=new ky;yTE(this.iS);ZvB(this);this.requestSource==1?WZ(this.iS,"od",1):WZ(this.iS,"od",0)}; ZvB=function(J){J=J.MM.OS;var R;if(R=J&&J.getAttribute)R=/-[a-z]/.test("googleAvInapp")?!1:dlg&&J.dataset?"googleAvInapp"in J.dataset:J.hasAttribute?J.hasAttribute("data-"+FgE()):!!J.getAttribute("data-"+FgE());R&&(Un().J=!0)}; Hw=function(J,R){R!=J.ZF&&(J.ZF=R,J=Un(),R?J.S++:J.S>0&&J.S--)}; qyE=function(J,R){if(J.yC){if(R.getName()===J.yC.getName())return;J.yC.dispose();J.yC=null}R=R.create(J.MM.K,J.iS,J.oF());if(R=R!=null&&R.observe()?R:null)J.yC=R}; AhE=function(J,R,N){if(!J.Xh||J.Sp==-1||R.J===-1||J.Xh.J===-1)return 0;J=R.J-J.Xh.J;return J>N?0:J}; YyP=function(J,R,N){if(J.yC){J.yC.c$();var C=J.yC.W,X=C.Z,u=X.K;if(C.S!=null){var f=C.V;J.MQ=new g.Ms(f.left-u.left,f.top-u.top)}u=J.WJ()?Math.max(C.K,C.U):C.K;f={};X.volume!==null&&(f.volume=X.volume);X=J.zH(C);J.Xh=C;J.hN(u,R,N,!1,f,X,C.X)}}; rhg=function(J){if(J.H6&&J.gD){var R=Sm(J.iS,"od")==1,N=Un().K,C=J.gD,X=J.yC?J.yC.getName():"ns",u=J.MQ,f=new g.a4(fz(N),N.getHeight());N=J.WJ();J={M8B:X,MQ:u,II7:f,WJ:N,LY:J.UL.LY,qt7:R};if(R=C.J){R.c$();X=R.W;u=X.Z.K;var H=f=null;X.S!=null&&u&&(f=X.V,f=new g.Ms(f.left-u.left,f.top-u.top),H=new g.a4(u.right-u.left,u.bottom-u.top));X=N?Math.max(X.K,X.U):X.K;N={M8B:R.getName(),MQ:f,II7:H,WJ:N,qt7:!1,LY:X}}else N=null;N&&Ehg(C,J,N)}}; jXQ=function(J,R,N){R&&(J.Fg=R);N&&(J.UG=N)}; g.kZ=function(){}; g.vw=function(J){return{value:J,done:!1}}; mlP=function(){this.Z=this.K=this.V=this.J=this.U=0}; VRE=function(J){var R={};var N=g.yE()-J.U;R=(R.ptlt=N,R);(N=J.J)&&(R.pnk=N);(N=J.V)&&(R.pnc=N);(N=J.Z)&&(R.pnmm=N);(J=J.K)&&(R.pns=J);return R}; ghg=function(){ut.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; Ww=function(J){return VL(J.volume)&&J.volume>0}; SA=function(J,R,N,C){N=N===void 0?!0:N;C=C===void 0?function(){return!0}:C; return function(X){var u=X[J];if(Array.isArray(u)&&C(X))return UlQ(u,R,N)}}; LH=function(J,R){return function(N){return R(N)?N[J]:void 0}}; puE=function(J){return function(R){for(var N=0;N0?u[X-1]+1:0,C+1).reduce(function(f,H){return f+H},0)})}; ls2=function(){this.J=this.K=""}; PoB=function(){}; Fw=function(J,R){var N={};if(J!==void 0)if(R!=null)for(var C in R){var X=R[C];C in Object.prototype||X!=null&&(N[C]=typeof X==="function"?X(J):J[X])}else g.UF(N,J);return bj(GW(new yL,N))}; zSE=function(){var J={};this.J=(J.vs=[1,0],J.vw=[0,1],J.am=[2,2],J.a=[4,4],J.f=[8,8],J.bm=[16,16],J.b=[32,32],J.avw=[0,64],J.avs=[64,0],J.pv=[256,256],J.gdr=[0,512],J.p=[0,1024],J.r=[0,2048],J.m=[0,4096],J.um=[0,8192],J.ef=[0,16384],J.s=[0,32768],J.pmx=[0,16777216],J.mut=[33554432,33554432],J.umutb=[67108864,67108864],J.tvoff=[134217728,134217728],J);this.K={};for(var R in this.J)this.J[R][1]>0&&(this.K[R]=0);this.V=0}; Ek=function(J,R){var N=J.J[R],C=N[1];J.V+=N[0];C>0&&J.K[R]==0&&(J.K[R]=1)}; eSE=function(J){var R=g.dq(J.J),N=0,C;for(C in J.K)g.cl(R,C)&&J.K[C]==1&&(N+=J.J[C][1],J.K[C]=2);return N}; wu8=function(J){var R=0,N;for(N in J.K){var C=J.K[N];if(C==1||C==2)R+=J.J[N][1]}return R}; MW=function(){this.K=this.J=0}; KH=function(){Xw.call(this);this.V=new tU;this.l3=this.W=this.tN=0;this.X=-1;this.EB=new tU;this.U=new tU;this.K=new x$;this.S=this.Z=-1;this.nC=new tU;this.Xk=2E3;this.PC=new MW;this.eQ=new MW;this.HC=new MW}; aM=function(J,R,N){var C=J.l3;Cz||N||J.X==-1||(C+=R-J.X);return C}; chk=function(){this.V=!1}; Q7=function(J,R){this.V=!1;this.Z=J;this.W=R;this.U=0}; nH=function(J,R){Q7.call(this,J,R);this.D=[]}; hS7=function(){}; Dy=function(){}; sk=function(J,R,N,C){cq.call(this,J,R,N,C)}; Bw=function(J,R,N){cq.call(this,null,J,R,N);this.X=J.isActive();this.D=0}; Ok=function(J){return[J.top,J.left,J.bottom,J.right]}; Zy=function(J,R,N,C,X,u){u=u===void 0?new Dy:u;$Z.call(this,R,N,C);this.p7=X;this.bj=0;this.AS={};this.Ww=new zSE;this.eI={};this.qO="";this.HC=null;this.R1=!1;this.K=[];this.uP=u.J();this.S=u.V();this.Z=null;this.V=-1;this.T7=this.W=void 0;this.dn=this.nC=0;this.VO=-1;this.Xk=this.eQ=!1;this.tN=this.X=this.J=this.x$=this.GW=0;new x$;this.PC=this.l3=0;this.pC=-1;this.s7=0;this.D=g.IR;this.ma=[this.jb()];this.TW=2;this.GK={};this.GK.pause="p";this.GK.resume="r";this.GK.skip="s";this.GK.mute="m";this.GK.unmute= "um";this.GK.exitfullscreen="ef";this.U=null;this.oB=this.EB=!1;this.VK=Math.floor(Date.now()/1E3-1704067200);this.G7=0}; db=function(J){J.hasCompleted=!0;J.s7!=0&&(J.s7=3)}; qW=function(J){return J===void 0?J:Number(J)?my(J,3):0}; At=function(J,R){return J.ma[R!=null&&RMath.max(1E4,J.V/3)?0:R);var N=J.D(J)||{};N=N.currentTime!==void 0?N.currentTime:J.nC;var C=N-J.nC,X=0;C>=0?(J.dn+=R,J.PC+=Math.max(R-C,0),X=Math.min(C,J.dn)):J.l3+=Math.abs(C);C!=0&&(J.dn=0);J.pC==-1&&C>0&&(J.pC=ij>=0?Rf()-ij:-1);J.nC=N;return X}; bvE=function(J,R){gh(J.S,function(N){return N.Z==R.Z})||J.S.push(R)}; tRE=function(J){var R=RM(J.yp().K,1);return YZ(J,R)}; YZ=function(J,R,N){return R>=15E3?!0:J.eQ?(N===void 0?0:N)?!0:J.V>0?R>=J.V/2:J.VO>0?R>=J.VO:!1:!1}; xlg=function(J){var R=my(J.UL.LY,2),N=J.Ww.V,C=J.UL,X=At(J),u=qW(X.Z),f=qW(X.S),H=qW(C.volume),k=my(X.D,2),v=my(X.dn,2),W=my(C.LY,2),S=my(X.ma,2),L=my(X.VO,2);C=my(C.nR,2);var I=J.lG().clone().round();J=J.yC&&J.yC.V?(J.yC?J.yC.V:null).clone().round():null;X=iz(X,!1);return{Vtp:R,o_:N,Oy:u,wS:f,v6:H,qQ:k,Rw:v,LY:W,tv:S,uV:L,nR:C,position:I,G8:J,Iw:X}}; oVE=function(J,R){JnB(J.K,R,function(){return{Vtp:0,o_:void 0,Oy:-1,wS:-1,v6:-1,qQ:-1,Rw:-1,LY:-1,tv:-1,uV:-1,nR:-1,position:void 0,G8:void 0,Iw:[]}}); J.K[R]=xlg(J)}; JnB=function(J,R,N){for(var C=J.length;C0?1:0;S.atos= Jt(v.K);S.ssb=Jt(v.oB,!1);S.amtos=asg(v.K,!1);S.uac=J.GW;S.vpt=v.V.K;W=="nio"&&(S.nio=1,S.avms="nio");S.gmm="4";S.gdr=YZ(J,v.V.K,!0)?1:0;S.efpf=J.TW;if(W=="gsv"||W=="nis")W=J.yC,W.D>0&&(S.nnut=W.D);S.tcm=yhk(J);S.nmt=J.l3;S.bt=J.PC;S.pst=J.pC;S.vpaid=J.W;S.dur=J.V;S.vmtime=J.nC;S.is=J.Ww.V;J.K.length>=1&&(S.i0=J.K[0].o_,S.a0=[J.K[0].v6],S.c0=[J.K[0].LY],S.ss0=[J.K[0].nR],W=J.K[0].position,u=J.K[0].G8,S.p0=W?Ok(W):void 0,W&&u&&!TW(u,W)&&(S.cp0=Ok(u)));J.K.length>=2&&(S.i1=J.K[1].o_,S.a1=mn(J.K[1].Oy, J.K[1].v6,J.K[1].wS),S.c1=mn(J.K[1].qQ,J.K[1].LY,J.K[1].Rw),S.ss1=mn(J.K[1].tv,J.K[1].nR,J.K[1].uV),W=J.K[1].position,u=J.K[1].G8,S.p1=W?Ok(W):void 0,W&&u&&!TW(u,W)&&(S.cp1=Ok(u)),S.mtos1=J.K[1].Iw);J.K.length>=3&&(S.i2=J.K[2].o_,S.a2=mn(J.K[2].Oy,J.K[2].v6,J.K[2].wS),S.c2=mn(J.K[2].qQ,J.K[2].LY,J.K[2].Rw),S.ss2=mn(J.K[2].tv,J.K[2].nR,J.K[2].uV),W=J.K[2].position,u=J.K[2].G8,S.p2=W?Ok(W):void 0,W&&u&&!TW(u,W)&&(S.cp2=Ok(u)),S.mtos2=J.K[2].Iw);J.K.length>=4&&(S.i3=J.K[3].o_,S.a3=mn(J.K[3].Oy,J.K[3].v6, J.K[3].wS),S.c3=mn(J.K[3].qQ,J.K[3].LY,J.K[3].Rw),S.ss3=mn(J.K[3].tv,J.K[3].nR,J.K[3].uV),W=J.K[3].position,u=J.K[3].G8,S.p3=W?Ok(W):void 0,W&&u&&!TW(u,W)&&(S.cp3=Ok(u)),S.mtos3=J.K[3].Iw);S.cs=wu8(J.Ww);R&&(S.ic=eSE(J.Ww),S.dvpt=v.V.J,S.dvs=CH(v.J,.5),S.dfvs=CH(v.J,1),S.davs=CH(v.K,.5),S.dafvs=CH(v.K,1),N&&(v.V.J=0,QXB(v.J),QXB(v.K)),J.w1()&&(S.dtos=v.tN,S.dav=v.W,S.dtoss=J.bj+1,N&&(v.tN=0,v.W=0,J.bj++)),S.dat=v.U.J,S.dft=v.nC.J,N&&(v.U.J=0,v.nC.J=0));S.ps=[H.U.width,H.U.height];S.bs=[fz(H.K),H.K.getHeight()]; S.scs=[H.Z.width,H.Z.height];S.dom=H.domain;J.x$&&(S.vds=J.x$);if(J.S.length>0||J.uP)R=g.t_(J.S),J.uP&&R.push(J.uP),S.pings=g.Yy(R,function(L){return L.toString()}); R=g.Yy(g.IM(J.S,function(L){return L.S()}),function(L){return L.getId()}); Bkf(R);S.ces=R;J.J&&(S.vmer=J.J);J.X&&(S.vmmk=J.X);J.tN&&(S.vmiec=J.tN);S.avms=J.yC?J.yC.getName():"ns";J.yC&&g.UF(S,J.yC.xj());C?(S.c=my(J.UL.LY,2),S.ss=my(J.UL.nR,2)):S.tth=Rf()-XOE;S.mc=my(v.dn,2);S.nc=my(v.D,2);S.mv=qW(v.S);S.nv=qW(v.Z);S.lte=my(J.K5,2);C=At(J,X);iz(v);S.qmtos=iz(C);S.qnc=my(C.D,2);S.qmv=qW(C.S);S.qnv=qW(C.Z);S.qas=C.Z>0?1:0;S.qi=J.qO;S.avms||(S.avms="geo");S.psm=v.PC.K;S.psv=v.PC.getValue();S.psfv=v.eQ.getValue();S.psa=v.HC.getValue();k=cTE(k.iS);k.length&&(S.veid=k);J.U&&g.UF(S, VRE(J.U));S.avas=J.YX();S.vs=J.dE();S.co=iBB(J);S.tm=v.G7;S.tu=v.T7;return S}; Rjn=function(J,R){if(g.cl(u38,R))return!0;var N=J.AS[R];return N!==void 0?(J.AS[R]=!0,!N):!1}; iBB=function(J){var R=J.G7.toString(10).padStart(2,"0");R=""+J.VK+R;J.G7<99&&J.G7++;return R}; T2Y=function(){this.K={};var J=Ng();V7(this,J,document);var R=f58();try{if("1"==R){for(var N=J.parent;N!=J.top;N=N.parent)V7(this,N,N.document);V7(this,J.top,J.top.document)}}catch(C){}}; f58=function(){var J=document.documentElement;try{if(!s1(Ng().top))return"2";var R=[],N=Ng(J.ownerDocument);for(J=N;J!=N.top;J=J.parent)if(J.frameElement)R.push(J.frameElement);else break;return R&&R.length!=0?"1":"0"}catch(C){return"2"}}; V7=function(J,R,N){uz(N,"mousedown",function(){return $yB(J)},301); uz(R,"scroll",function(){return HBf(J)},302); uz(N,"touchmove",function(){return kpP(J)},303); uz(N,"mousemove",function(){return vVE(J)},304); uz(N,"keydown",function(){return WFB(J)},305)}; $yB=function(J){g.nK(J.K,function(R){R.V>1E5||++R.V})}; HBf=function(J){g.nK(J.K,function(R){R.K>1E5||++R.K})}; kpP=function(J){g.nK(J.K,function(R){R.K>1E5||++R.K})}; WFB=function(J){g.nK(J.K,function(R){R.J>1E5||++R.J})}; vVE=function(J){g.nK(J.K,function(R){R.Z>1E5||++R.Z})}; SrB=function(){this.K=[];this.J=[]}; gb=function(J,R){return g.eE(J.K,function(N){return N.qO==R})}; LFP=function(J,R){return R?g.eE(J.K,function(N){return N.MM.OS==R}):null}; I5E=function(J,R){return g.eE(J.J,function(N){return N.J4()==2&&N.qO==R})}; pH=function(){var J=Uk;return J.K.length==0?J.J:J.J.length==0?J.K:g.bP(J.J,J.K)}; FFP=function(J,R){J=R.J4()==1?J.K:J.J;var N=zJ(J,function(C){return C==R}); return N!=-1?(J.splice(N,1),R.yC&&R.yC.unobserve(),R.dispose(),!0):!1}; EVE=function(J){var R=Uk;if(FFP(R,J)){switch(J.J4()){case 0:var N=function(){return null}; case 2:N=function(){return I5E(R,J.qO)}; break;case 1:N=function(){return gb(R,J.qO)}}for(var C=N();C;C=N())FFP(R,C)}}; Mog=function(J){var R=Uk;J=g.IM(J,function(N){return!LFP(R,N.MM.OS)}); R.K.push.apply(R.K,g.Q(J))}; KFY=function(J){var R=[];g.Ts(J,function(N){gh(Uk.K,function(C){return C.MM.OS===N.MM.OS&&C.qO===N.qO})||(Uk.K.push(N),R.push(N))})}; lz=function(){this.K=this.J=null}; a5Y=function(J,R){function N(C,X){R(C,X)} if(J.J==null)return!1;J.K=g.eE(J.J,function(C){return C!=null&&C.zb()}); J.K&&(J.K.init(N)?iv7(J.K.K):R(J.K.K.aO(),J.K));return J.K!=null}; Pw=function(J){J=Qyn(J);hU.call(this,J.length?J[J.length-1]:new zW(KN,0));this.V=J;this.J=null}; Qyn=function(J){if(!J.length)return[];J=(0,g.IM)(J,function(N){return N!=null&&N.RL()}); for(var R=1;RN.time?R:N},J[0])}; cw=function(J){J=J===void 0?KN:J;hU.call(this,new zW(J,2))}; ht=function(){var J=B2E();zW.call(this,KN.top,J,"geo")}; B2E=function(){lt();var J=Un();return J.V||J.J?0:2}; OBg=function(){}; y7=function(){this.done=!1;this.K={A$:0,w$:0,OjN:0,uD:0,QX:-1,Jo:0,cX:0,gO:0,TLB:0};this.U=null;this.S=!1;this.V=null;this.D=0;this.J=new Pq(this)}; bz=function(){var J=G4;J.S||(J.S=!0,ZBE(J,function(){return J.Z.apply(J,g.Q(g.sf.apply(0,arguments)))}),J.Z())}; dyP=function(){mZ(OBg);var J=mZ(lz);J.K!=null&&J.K.K?iv7(J.K.K):Un().update(KN)}; tt=function(J,R,N){if(!J.done&&(J.J.cancel(),R.length!=0)){J.V=null;try{dyP();var C=Rf();lt().U=C;if(mZ(lz).K!=null)for(var X=0;X=0?Rf()-N4:-1,H=Rf();X.K.QX==-1&&(f=H);var k=Un(),v=lt(),W=LN(v.iS),S=pH();try{if(S.length>0){var L=k.K;L&&(W.bs=[fz(L),L.getHeight()]);var I=k.U;I&&(W.ps=[I.width,I.height]);KN.screen&&(W.scs=[KN.screen.width,KN.screen.height])}else W.url=encodeURIComponent(KN.location.href.substring(0,512)),u.referrer&&(W.referrer=encodeURIComponent(u.referrer.substring(0,512))); W.tt=f;W.pt=N4;W.bin=v.J;KN.google_osd_load_pub_page_exp!==void 0&&(W.olpp=KN.google_osd_load_pub_page_exp);W.deb=[1,X.K.A$,X.K.w$,X.K.uD,X.K.QX,0,X.J.J,X.K.Jo,X.K.cX,X.K.gO,X.K.TLB,-1].join(";");W.tvt=AnE(X,H);k.J&&(W.inapp=1);if(KN!==null&&KN!=KN.top){S.length>0&&(W.iframe_loc=encodeURIComponent(KN.location.href.substring(0,512)));var F=k.D;W.is=[fz(F),F.getHeight()]}}catch(a){W.error=1}G4.V=W}L=g.Vs(G4.V);I=lt().K;Sm(I.V,"prf")==1?(F=new U1,X=I.K,u=0,X.K>-1&&(u=X.V.K.now()-X.K),F=y1(F,1,JJ(X.Z+ u),0),X=I.K,F=y1(F,5,NV(X.K>-1?X.J+1:X.J),0),F=y1(F,2,H2(I.J.K.V()),"0"),F=y1(F,3,H2(I.J.K.J()),"0"),I=y1(F,4,H2(I.J.K.K()),"0"),F={},I=(F.pf=g.SZ(I.K()),F)):I={};g.UF(L,I);g.UF(R,C,N,L,J())}])}; jyE=function(){var J=rnf||KN;if(!J)return"";var R=[];if(!J.location||!J.location.href)return"";R.push("url="+encodeURIComponent(J.location.href.substring(0,512)));J.document&&J.document.referrer&&R.push("referrer="+encodeURIComponent(J.document.referrer.substring(0,512)));return R.join("&")}; xZ=function(){var J="youtube.player.web_20241204_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20241204_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20241204_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20241204_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),R;if(((R=J)==null?void 0:R.length)==2)return J[1];J="youtube.player.web_20241204_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var N;return((N=J)==null?void 0:N.length)==3?"20"+J[1]+J[2]:null}; myg=function(){return"av.default_js".includes("ima_html5_sdk")?{Wk:"ima",w5:null}:"av.default_js".includes("ima_native_sdk")?{Wk:"nima",w5:null}:"av.default_js".includes("admob-native-video-javascript")?{Wk:"an",w5:null}:"youtube.player.web_20241204_01_RC00".includes("cast_js_sdk")?{Wk:"cast",w5:xZ()}:"youtube.player.web_20241204_01_RC00".includes("youtube.player.web")?{Wk:"yw",w5:xZ()}:"youtube.player.web_20241204_01_RC00".includes("outstream_web_client")?{Wk:"out",w5:xZ()}:"youtube.player.web_20241204_01_RC00".includes("drx_rewarded_web")? {Wk:"r",w5:xZ()}:"youtube.player.web_20241204_01_RC00".includes("gam_native_web_video")?{Wk:"n",w5:xZ()}:"youtube.player.web_20241204_01_RC00".includes("admob_interstitial_video")?{Wk:"int",w5:xZ()}:{Wk:"j",w5:null}}; Rg=function(J,R){var N={sv:"966"};JP!==null&&(N.v=JP);N.cb=VoB;N.nas=Uk.K.length;N.msg=J;R!==void 0&&(J=gVB(R))&&(N.e=og[J]);return N}; Nu=function(J){return Ea(J,"custom_metric_viewable")}; gVB=function(J){var R=Nu(J)?"custom_metric_viewable":J.toLowerCase();return Yb(rb,function(N){return N==R})}; UyE=function(){this.K=void 0;this.J=!1;this.V=0;this.Z=-1;this.U="tos"}; PE2=function(J){try{var R=J.split(",");return R.length>g.dq(pOP).length?null:jm(R,function(N,C){C=C.toLowerCase().split("=");if(C.length!=2||l5n[C[0]]===void 0||!l5n[C[0]](C[1]))throw Error("Entry ("+C[0]+", "+C[1]+") is invalid.");N[C[0]]=C[1];return N},{})}catch(N){return null}}; zj7=function(J,R){if(J.K==void 0)return 0;switch(J.U){case "mtos":return J.J?NW(R.K,J.K):NW(R.J,J.K);case "tos":return J.J?RM(R.K,J.K):RM(R.J,J.K)}return 0}; Cm=function(J,R,N,C){Q7.call(this,R,C);this.D=J;this.X=N}; Xu=function(){}; i7=function(J){Q7.call(this,"fully_viewable_audible_half_duration_impression",J)}; u7=function(J){this.K=J}; fm=function(J,R){Q7.call(this,J,R)}; TN=function(J){nH.call(this,"measurable_impression",J)}; $g=function(){u7.apply(this,arguments)}; Hp=function(J,R,N){Bw.call(this,J,R,N)}; kg=function(J){J=J===void 0?KN:J;hU.call(this,new zW(J,2))}; vp=function(J,R,N){Bw.call(this,J,R,N)}; Wp=function(J){J=J===void 0?KN:J;hU.call(this,new zW(J,2))}; S4=function(){zW.call(this,KN,2,"mraid");this.PC=0;this.dn=this.ma=!1;this.D=null;this.J=eEP(this.V);this.Z.K=new uj(0,0,0,0);this.G7=!1}; Lm=function(J,R,N){J.zx("addEventListener",R,N)}; hj2=function(J){lt().Z=!!J.zx("isViewable");Lm(J,"viewableChange",ejf);J.zx("getState")==="loading"?Lm(J,"ready",wOg):cnE(J)}; cnE=function(J){typeof J.J.vk.AFMA_LIDAR==="string"?(J.ma=!0,ynY(J)):(J.J.compatibility=3,J.D="nc",J.Rs("w"))}; ynY=function(J){J.dn=!1;var R=Sm(lt().iS,"rmmt")==1,N=!!J.zx("isViewable");(R?!N:1)&&gf().setTimeout(JU(524,function(){J.dn||(GpE(J),of(540,Error()),J.D="mt",J.Rs("w"))}),500); bB8(J);Lm(J,J.J.vk.AFMA_LIDAR,tog)}; bB8=function(J){var R=Sm(lt().iS,"sneio")==1,N=J.J.vk.AFMA_LIDAR_EXP_1!==void 0,C=J.J.vk.AFMA_LIDAR_EXP_2!==void 0;(R=R&&C)&&(J.J.vk.AFMA_LIDAR_EXP_2=!0);N&&(J.J.vk.AFMA_LIDAR_EXP_1=!R)}; GpE=function(J){J.zx("removeEventListener",J.J.vk.AFMA_LIDAR,tog);J.ma=!1}; xyQ=function(J,R){if(J.zx("getState")==="loading")return new g.a4(-1,-1);R=J.zx(R);if(!R)return new g.a4(-1,-1);J=parseInt(R.width,10);R=parseInt(R.height,10);return isNaN(J)||isNaN(R)?new g.a4(-1,-1):new g.a4(J,R)}; wOg=function(){try{var J=mZ(S4);J.zx("removeEventListener","ready",wOg);cnE(J)}catch(R){of(541,R)}}; tog=function(J,R){try{var N=mZ(S4);N.dn=!0;var C=J?new uj(J.y,J.x+J.width,J.y+J.height,J.x):new uj(0,0,0,0);var X=Rf(),u=lj();var f=new PDP(X,u,N);f.K=C;f.volume=R;N.eL(f)}catch(H){of(542,H)}}; ejf=function(J){var R=lt(),N=mZ(S4);J&&!R.Z&&(R.Z=!0,N.G7=!0,N.D&&N.Rs("w",!0))}; Ig=function(){this.isInitialized=!1;this.K=this.J=null;var J={};this.D=(J.start=this.NJ,J.firstquartile=this.Lz,J.midpoint=this.yD,J.thirdquartile=this.zn,J.complete=this.Yz,J.error=this.hj,J.pause=this.hG,J.resume=this.jB,J.skip=this.Hm,J.viewable_impression=this.g5,J.mute=this.AR,J.unmute=this.AR,J.fullscreen=this.DW,J.exitfullscreen=this.pz,J.fully_viewable_audible_half_duration_impression=this.g5,J.measurable_impression=this.g5,J.abandon=this.hG,J.engagedview=this.g5,J.impression=this.g5,J.creativeview= this.g5,J.progress=this.AR,J.custom_metric_viewable=this.g5,J.bufferstart=this.hG,J.bufferfinish=this.jB,J.audio_measurable=this.g5,J.audio_audible=this.g5,J);J={};this.X=(J.overlay_resize=this.eC,J.abandon=this.vp,J.close=this.vp,J.collapse=this.vp,J.overlay_unmeasurable_impression=function(R){return jA(R,"overlay_unmeasurable_impression",lj())},J.overlay_viewable_immediate_impression=function(R){return jA(R,"overlay_viewable_immediate_impression",lj())},J.overlay_unviewable_impression=function(R){return jA(R, "overlay_unviewable_impression",lj())},J.overlay_viewable_end_of_session_impression=function(R){return jA(R,"overlay_viewable_end_of_session_impression",lj())},J); lt().J=3;J2f(this);this.V=null}; Fu=function(J,R,N,C){J=J.PQ(null,C,!0,R);J.Z=N;Mog([J]);return J}; oyB=function(J,R,N){eo7(R);var C=J.K;g.Ts(R,function(X){var u=g.Yy(X.criteria,function(f){var H=PE2(f);if(H==null)f=null;else if(f=new UyE,H.visible!=null&&(f.K=H.visible/100),H.audible!=null&&(f.J=H.audible==1),H.time!=null){var k=H.timetype=="mtos"?"mtos":"tos",v=Wq8(H.time,"%")?"%":"ms";H=parseInt(H.time,10);v=="%"&&(H/=100);f.setTime(H,v,k)}return f}); gh(u,function(f){return f==null})||bvE(N,new Cm(X.id,X.event,u,C))})}; R_g=function(){var J=[],R=lt();J.push(mZ(ht));Sm(R.iS,"mvp_lv")&&J.push(mZ(S4));R=[new kg,new Wp];R.push(new Pw(J));R.push(new cw(KN));return R}; Nfk=function(J){if(!J.isInitialized){J.isInitialized=!0;try{var R=Rf(),N=lt(),C=Un();N4=R;N.V=79463069;J.J!=="o"&&(rnf=iCY(KN));if(IiE()){G4.K.w$=0;G4.K.QX=Rf()-R;var X=R_g(),u=mZ(lz);u.J=X;a5Y(u,function(){El()})?G4.done||(qrf(),ei(u.K.K,J),bz()):C.V?El():bz()}else Mu=!0}catch(f){throw Uk.reset(),f; }}}; ag=function(J){G4.J.cancel();Km=J;G4.done=!0}; Qh=function(J){if(J.J)return J.J;var R=mZ(lz).K;if(R)switch(R.getName()){case "nis":J.J="n";break;case "gsv":J.J="m"}J.J||(J.J="h");return J.J}; nm=function(J,R,N){if(J.K==null)return R.x$|=4,!1;J=CtE(J.K,N,R);R.x$|=J;return J==0}; El=function(){var J=[new cw(KN)],R=mZ(lz);R.J=J;a5Y(R,function(){ag("i")})?G4.done||(qrf(),bz()):ag("i")}; XZ8=function(J,R){if(!J.R1){var N=jA(J,"start",lj());N=J.p7.K(N).K;var C={id:"lidarv"};C.r=R;C.sv="966";JP!==null&&(C.v=JP);c_(N,function(X,u){return C[X]=X=="mtos"||X=="tos"?u:encodeURIComponent(u)}); R=jyE();c_(R,function(X,u){return C[X]=encodeURIComponent(u)}); R="//pagead2.googlesyndication.com/pagead/gen_204?"+bj(GW(new yL,C));IsY(R);J.R1=!0}}; Dh=function(J,R,N){tt(G4,[J],!lj());oVE(J,N);N!=4&&JnB(J.ma,N,J.jb);return jA(J,R,lj())}; J2f=function(J){YrY(function(){var R=iN8();J.J!=null&&(R.sdk=J.J);var N=mZ(lz);N.K!=null&&(R.avms=N.K.getName());return R})}; uMg=function(J,R,N,C){var X=LFP(Uk,N);X!==null&&X.qO!==R&&(J.Fw(X),X=null);X||(R=J.PQ(N,Rf(),!1,R),Uk.J.length==0&&(lt().V=79463069),KFY([R]),X=R,X.Z=Qh(J),C&&(X.HC=C));return X}; fT2=function(J,R){var N=J[R];N!==void 0&&N>0&&(J[R]=Math.floor(N*1E3))}; iN8=function(){var J=Un(),R={},N={},C={};return Object.assign({},(R.sv="966",R),JP!==null&&(N.v=JP,N),(C["if"]=J.V?"1":"0",C.nas=String(Uk.K.length),C))}; sl=function(J){Q7.call(this,"audio_audible",J)}; Bp=function(J){nH.call(this,"audio_measurable",J)}; Ol=function(){u7.apply(this,arguments)}; Zh=function(){}; TfQ=function(J){this.K=J}; CtE=function(J,R,N){J=J.J();if(typeof J==="function"){var C={};var X={};C=Object.assign({},JP!==null&&(C.v=JP,C),(X.sv="966",X.cb=VoB,X.e=$xB(R),X));X=jA(N,R,lj());g.UF(C,X);N.eI[R]=X;C=N.J4()==2?Ld8(C).join("&"):N.p7.K(C).K;try{return J(N.qO,C,R),0}catch(u){return 2}}else return 1}; $xB=function(J){var R=Nu(J)?"custom_metric_viewable":J;J=Yb(rb,function(N){return N==R}); return og[J]}; d5=function(){Ig.call(this);this.S=null;this.U=!1;this.Z="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; HNg=function(J,R,N){N=N.opt_configurable_tracking_events;J.K!=null&&Array.isArray(N)&&oyB(J,N,R)}; kPY=function(J,R,N){var C=gb(Uk,R);C||(C=N.opt_nativeTime||-1,C=Fu(J,R,Qh(J),C),N.opt_osdId&&(C.HC=N.opt_osdId));return C}; vyg=function(J,R,N){var C=gb(Uk,R);C||(C=Fu(J,R,"n",N.opt_nativeTime||-1));return C}; WZg=function(J,R){var N=gb(Uk,R);N||(N=Fu(J,R,"h",-1));return N}; S1g=function(J){lt();switch(Qh(J)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; FZ7=function(J,R,N,C){N=N===void 0?{}:N;var X={};g.UF(X,{opt_adElement:void 0,opt_fullscreen:void 0},N);var u=J.nO(R,N);N=u?u.p7:J.pH();if(X.opt_bounds)return N.K(Rg("ol",C));if(C!==void 0)if(gVB(C)!==void 0)if(Mu)J=Rg("ue",C);else if(Nfk(J),Km=="i")J=Rg("i",C),J["if"]=0;else if(R=J.nO(R,X)){b:{Km=="i"&&(R.XT=!0);u=X.opt_fullscreen;u!==void 0&&Hw(R,!!u);var f;if(u=!Un().J)(u=aU(g.sa(),"CrKey")&&!(aU(g.sa(),"CrKey")&&aU(g.sa(),"SmartSpeaker"))||aU(g.sa(),"PlayStation")||aU(g.sa(),"Roku")||RSQ()||aU(g.sa(), "Xbox"))||(u=g.sa(),u=aU(u,"AppleTV")||aU(u,"Apple TV")||aU(u,"CFNetwork")||aU(u,"tvOS")),u||(u=g.sa(),u=aU(u,"sdk_google_atv_x86")||aU(u,"Android TV")),u=!u;u&&(gf(),u=nN(pz)===0);if(f=u){switch(R.J4()){case 1:XZ8(R,"pv");break;case 2:J.WW(R)}ag("pv")}u=C.toLowerCase();if(f=!f)f=Sm(lt().iS,"ssmol")&&u==="loaded"?!1:g.cl(LZE,u);if(f&&R.s7==0){Km!="i"&&(G4.done=!1);f=X!==void 0?X.opt_nativeTime:void 0;ij=f=typeof f==="number"?f:Rf();R.H6=!0;var H=lj();R.s7=1;R.AS={};R.AS.start=!1;R.AS.firstquartile= !1;R.AS.midpoint=!1;R.AS.thirdquartile=!1;R.AS.complete=!1;R.AS.resume=!1;R.AS.pause=!1;R.AS.skip=!1;R.AS.mute=!1;R.AS.unmute=!1;R.AS.viewable_impression=!1;R.AS.measurable_impression=!1;R.AS.fully_viewable_audible_half_duration_impression=!1;R.AS.fullscreen=!1;R.AS.exitfullscreen=!1;R.bj=0;H||(R.yp().X=f);tt(G4,[R],!H)}(f=R.GK[u])&&Ek(R.Ww,f);Sm(lt().iS,"fmd")||g.cl(IT2,u)&&R.uP&&R.uP.J(R,null);switch(R.J4()){case 1:var k=Nu(u)?J.D.custom_metric_viewable:J.D[u];break;case 2:k=J.X[u]}if(k&&(C=k.call(J, R,X,C),Sm(lt().iS,"fmd")&&g.cl(IT2,u)&&R.uP&&R.uP.J(R,null),C!==void 0)){X=Rg(void 0,u);g.UF(X,C);C=X;break b}C=void 0}R.s7==3&&J.Fw(R);J=C}else J=Rg("nf",C);else J=void 0;else Mu?J=Rg("ue"):u?(J=Rg(),g.UF(J,N2B(u,!0,!1,!1))):J=Rg("nf");return typeof J==="string"?N.K():N.K(J)}; EyE=function(J,R){R&&(J.Z=R)}; MmQ=function(J){var R={};return R.viewability=J.K,R.googleViewability=J.J,R}; KZf=function(J,R,N){N=N===void 0?{}:N;J=FZ7(mZ(d5),R,N,J);return MmQ(J)}; aTE=function(J){J=J.url;var R=/[?&]dsh=1(&|$)/.test(J);this.V=!R&&/[?&]ae=1(&|$)/.test(J);this.Z=!R&&/[?&]ae=2(&|$)/.test(J);if((this.K=/[?&]adurl=([^&]*)/.exec(J))&&this.K[1]){try{var N=decodeURIComponent(this.K[1])}catch(C){N=null}this.J=N}}; nyf=function(J,R,N,C,X){var u=window,f=N?"//pagead2.googlesyndication.com/bg/"+XK(N)+".js":"";N=u.document;var H={};R&&(H._scs_=R);H._bgu_=f;H._bgp_=C;H._li_="v_h.3.0.0.0";X&&(H._upb_=X);(R=u.GoogleTyFxhY)&&typeof R.push=="function"||(R=u.GoogleTyFxhY=[]);R.push(H);R=ys(N).createElement("SCRIPT");R.type="text/javascript";R.async=!0;J=m98(Qmg,XK(J)+".js");g.t0(R,J);(u=(u.GoogleTyFxhYEET||{})[R.src])?u():N.getElementsByTagName("head")[0].appendChild(R)}; DxB=function(){try{var J,R;return!!((J=window)==null?0:(R=J.top)==null?0:R.location.href)&&!1}catch(N){return!0}}; AP=function(){var J=sm8();J=J===void 0?"bevasrsg":J;return new Promise(function(R){var N=window===window.top?window:DxB()?window:window.top,C=N[J],X;((X=C)==null?0:X.bevasrs)?R(new qu(C.bevasrs)):(C||(C={},C=(C.nqfbel=[],C),N[J]=C),C.nqfbel.push(function(u){R(new qu(u))}))})}; BfE=function(J){var R={c:J.lf,e:J.aR,mc:J.VQ,me:J.I8};J.JS&&(R.co={c:J.JS.kJ,a:J.JS.dh,s:J.JS.Ve});return R}; Yg=function(J){g.l.call(this);this.wpc=J}; qu=function(J){g.l.call(this);var R=this;this.Bw=J;this.V="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.K=void 0;this.F0=this.Bw.p;this.Z=this.uL.bind(this);this.addOnDisposeCallback(function(){return void ONn(R)})}; ZNn=function(J){var R;return g.Y(function(N){if(N.K==1){if(!J.Bw.wpc)throw new Ds(30,"NWA");return J.J?N.return(J.J):g.q(N,J.Bw.wpc(),2)}R=N.J;J.J=new Yg(R);return N.return(J.J)})}; ONn=function(J){J.K!==void 0&&(J.V.forEach(function(R){var N;(N=J.K)==null||N.removeEventListener(R,J.Z)}),J.K=void 0)}; A2Y=function(J){if(g.MK(g.iR(J)))return!1;if(J.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var R=new g.Er(J)}catch(N){return g.eE(dxP,function(C){return J.search(C)>0})!=null}return R.S.match(q1n)?!0:g.eE(dxP,function(N){return J.match(N)!=null})!=null}; g.r5=function(J,R){return J.replace(Y1n,function(N,C){try{var X=g.jF(R,C);if(X==null||X.toString()==null)return N;X=X.toString();if(X==""||!g.MK(g.iR(X)))return encodeURIComponent(X).replace(/%2C/g,",")}catch(u){}return N})}; r28=function(J,R){return Object.is(J,R)}; g.Pp=function(J){var R=g.l7;g.l7=J;return R}; jmB=function(J){if(J.JM!==void 0){var R=g.zN;g.zN=!0;try{for(var N=g.K(J.JM),C=N.next();!C.done;C=N.next()){var X=C.value;X.GM||(J=void 0,X.GM=!0,jmB(X),(J=X.Ph)==null||J.call(X,X))}}finally{g.zN=R}}}; mxE=function(){var J;return((J=g.l7)==null?void 0:J.Cf)!==!1}; g.Vm2=function(J){J&&(J.Cd=0);return g.Pp(J)}; g.gy7=function(J,R){g.Pp(R);if(J&&J.Cy!==void 0&&J.B9!==void 0&&J.bN!==void 0){if(g.e4(J))for(R=J.Cd;RJ.Cd;)J.Cy.pop(),J.bN.pop(),J.B9.pop()}}; pZf=function(J,R,N){UxE(J);if(J.JM.length===0&&J.Cy!==void 0)for(var C=0;C0}; g.cp=function(J){J.Cy!=null||(J.Cy=[]);J.B9!=null||(J.B9=[]);J.bN!=null||(J.bN=[])}; UxE=function(J){J.JM!=null||(J.JM=[]);J.Fc!=null||(J.Fc=[])}; g.hP=function(){throw Error();}; PtB=function(J){function R(){if(g.zN)throw Error("");if(g.l7!==null){var C=g.l7.Cd++;g.cp(g.l7);C0?" "+R:R))}}; g.Ep=function(J,R){if(J.classList)Array.prototype.forEach.call(R,function(X){g.FL(J,X)}); else{var N={};Array.prototype.forEach.call(S_(J),function(X){N[X]=!0}); Array.prototype.forEach.call(R,function(X){N[X]=!0}); R="";for(var C in N)R+=R.length>0?" "+C:C;g.L$(J,R)}}; g.Mh=function(J,R){J.classList?J.classList.remove(R):g.Io(J,R)&&g.L$(J,Array.prototype.filter.call(S_(J),function(N){return N!=R}).join(" "))}; g.K$=function(J,R){J.classList?Array.prototype.forEach.call(R,function(N){g.Mh(J,N)}):g.L$(J,Array.prototype.filter.call(S_(J),function(N){return!g.cl(R,N)}).join(" "))}; g.ao=function(J,R,N){N?g.FL(J,R):g.Mh(J,R)}; RWY=function(J,R){var N=!g.Io(J,R);g.ao(J,R,N)}; g.Qi=function(){g.iD.call(this);this.K=0;this.endTime=this.startTime=null}; Nh7=function(J,R){Array.isArray(R)||(R=[R]);R=R.map(function(N){return typeof N==="string"?N:N.property+" "+N.duration+"s "+N.timing+" "+N.delay+"s"}); g.Lz(J,"transition",R.join(","))}; n$=function(J,R,N,C,X){g.Qi.call(this);this.J=J;this.U=R;this.S=N;this.Z=C;this.D=Array.isArray(X)?X:[X]}; CjE=function(J,R,N,C){return new n$(J,R,{opacity:N},{opacity:C},{property:"opacity",duration:R,timing:"ease-in",delay:0})}; izB=function(J){J=Q9(J);if(J=="")return null;var R=String(J.slice(0,4)).toLowerCase();if(("url("1||J&&J.split(")"),null;if(J.indexOf("(")>0){if(/"|'/.test(J))return null;R=/([\-\w]+)\(/g;for(var N;N=R.exec(J);)if(!(N[1].toLowerCase()in XqE))return null}return J}; D$=function(J,R){J=g.mB[J];return J&&J.prototype?(R=Object.getOwnPropertyDescriptor(J.prototype,R))&&R.get||null:null}; unn=function(J){var R=g.mB.CSSStyleDeclaration;return R&&R.prototype&&R.prototype[J]||null}; fA2=function(J,R,N,C){if(J)return J.apply(R,C);if(g.sp&&document.documentMode<10){if(!R[N].call)throw Error("IE Clobbering detected");}else if(typeof R[N]!="function")throw Error("Clobbering detected");return R[N].apply(R,C)}; v$B=function(J){if(!J)return"";var R=document.createElement("div").style;Thk(J).forEach(function(N){var C=g.RP&&N in $4P?N:N.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Ea(C,"--")||Ea(C,"var")||(N=fA2(Hzk,J,J.getPropertyValue?"getPropertyValue":"getAttribute",[N])||"",N=izB(N),N!=null&&fA2(kW7,R,R.setProperty?"setProperty":"setAttribute",[C,N]))}); return R.cssText||""}; Thk=function(J){g.l8(J)?J=g.t_(J):(J=g.dq(J),g.y9(J,"cssText"));return J}; g.Op=function(J){var R,N=R=0,C=!1;J=J.split(WyE);for(var X=0;X.4?-1:1;return(R==0?null:R)==-1?"rtl":"ltr"}; g.AX=function(J){if(J instanceof Z$||J instanceof dE||J instanceof qh)return J;if(typeof J.next=="function")return new Z$(function(){return J}); if(typeof J[Symbol.iterator]=="function")return new Z$(function(){return J[Symbol.iterator]()}); if(typeof J.Ok=="function")return new Z$(function(){return J.Ok()}); throw Error("Not an iterator or iterable.");}; Z$=function(J){this.J=J}; dE=function(J){this.J=J}; qh=function(J){Z$.call(this,function(){return J}); this.V=J}; Yt=function(J,R,N,C,X,u,f,H){this.K=J;this.V=R;this.x1=N;this.y1=C;this.x2=X;this.y2=u;this.J=f;this.Z=H}; rE=function(J,R){if(R==0)return J.K;if(R==1)return J.J;var N=EF(J.K,J.x1,R),C=EF(J.x1,J.x2,R);J=EF(J.x2,J.J,R);N=EF(N,C,R);C=EF(C,J,R);return EF(N,C,R)}; FyB=function(J,R){var N=(R-J.K)/(J.J-J.K);if(N<=0)return 0;if(N>=1)return 1;for(var C=0,X=1,u=0,f=0;f<8;f++){u=rE(J,N);var H=(rE(J,N+1E-6)-u)/1E-6;if(Math.abs(u-R)<1E-6)return N;if(Math.abs(H)<1E-6)break;else u1E-6&&f<8;f++)u=0}; g.gE=function(J){g.l.call(this);this.S=1;this.V=[];this.Z=0;this.K=[];this.J={};this.D=!!J}; MiP=function(J,R,N){g.Sz(function(){J.apply(R,N)})}; g.Up=function(J){this.K=J}; p$=function(J){this.K=J}; KyY=function(J){this.data=J}; aAf=function(J){return J===void 0||J instanceof KyY?J:new KyY(J)}; lc=function(J){this.K=J}; g.Qf7=function(J){var R=J.creation;J=J.expiration;return!!J&&Jg.yE()}; g.PK=function(J){this.K=J}; n$g=function(){}; z9=function(){}; e_=function(J){this.K=J;this.J=null}; wE=function(J){if(J.K==null)throw Error("Storage mechanism: Storage unavailable");var R;((R=J.J)!=null?R:J.isAvailable())||L8(Error("Storage mechanism: Storage unavailable"))}; cK=function(){var J=null;try{J=g.mB.localStorage||null}catch(R){}e_.call(this,J)}; D4k=function(){var J=null;try{J=g.mB.sessionStorage||null}catch(R){}e_.call(this,J)}; hX=function(J,R){this.J=J;this.K=R+"::"}; g.yi=function(J){var R=new cK;return R.isAvailable()?J?new hX(R,J):R:null}; G9=function(J,R){this.K=J;this.J=R}; bc=function(J){this.K=[];if(J)a:{if(J instanceof bc){var R=J.b4();J=J.Y4();if(this.K.length<=0){for(var N=this.K,C=0;C>>6:(u<65536?H[N++]=224|u>>>12:(H[N++]=240|u>>>18,H[N++]=128|u>>>12&63),H[N++]=128|u>>> 6&63),H[N++]=128|u&63);return H}; op=function(J){for(var R=J.length;--R>=0;)J[R]=0}; Rp=function(J,R,N,C,X){this.pW=J;this.gt=R;this.JX=N;this.HX=C;this.NnN=X;this.MB=J&&J.length}; N0=function(J,R){this.n0=J;this.Eg=0;this.k9=R}; Ca=function(J,R){J.hs[J.pending++]=R&255;J.hs[J.pending++]=R>>>8&255}; XZ=function(J,R,N){J.hS>16-N?(J.pJ|=R<>16-J.hS,J.hS+=N-16):(J.pJ|=R<>>=1,N<<=1;while(--R>0);return N>>>1}; Ozk=function(J,R,N){var C=Array(16),X=0,u;for(u=1;u<=15;u++)C[u]=X=X+N[u-1]<<1;for(N=0;N<=R;N++)X=J[N*2+1],X!==0&&(J[N*2]=BhB(C[X]++,X))}; ZzP=function(J){var R;for(R=0;R<286;R++)J.pT[R*2]=0;for(R=0;R<30;R++)J.O4[R*2]=0;for(R=0;R<19;R++)J.Ba[R*2]=0;J.pT[512]=1;J.V6=J.tR=0;J.N0=J.matches=0}; d4B=function(J){J.hS>8?Ca(J,J.pJ):J.hS>0&&(J.hs[J.pending++]=J.pJ);J.pJ=0;J.hS=0}; qnk=function(J,R,N){d4B(J);Ca(J,N);Ca(J,~N);JH.RO(J.hs,J.window,R,N,J.pending);J.pending+=N}; AUE=function(J,R,N,C){var X=R*2,u=N*2;return J[X]>>7)];iH(J,f,N);H=kH[f];H!==0&&(X-=vQ[f],XZ(J,X,H))}}while(C>1;f>=1;f--)uH(J,N,f);k=u;do f=J.yL[1],J.yL[1]=J.yL[J.oh--],uH(J,N,1),C=J.yL[1],J.yL[--J.Fo]=f,J.yL[--J.Fo]=C,N[k*2]=N[f*2]+N[C*2],J.depth[k]=(J.depth[f]>=J.depth[C]?J.depth[f]:J.depth[C])+1,N[f*2+1]=N[C*2+1]=k,J.yL[1]=k++,uH(J,N,1);while(J.oh>= 2);J.yL[--J.Fo]=J.yL[1];f=R.n0;k=R.Eg;C=R.k9.pW;X=R.k9.MB;u=R.k9.gt;var v=R.k9.JX,W=R.k9.NnN,S,L=0;for(S=0;S<=15;S++)J.Ap[S]=0;f[J.yL[J.Fo]*2+1]=0;for(R=J.Fo+1;R<573;R++){var I=J.yL[R];S=f[f[I*2+1]*2+1]+1;S>W&&(S=W,L++);f[I*2+1]=S;if(!(I>k)){J.Ap[S]++;var F=0;I>=v&&(F=u[I-v]);var a=f[I*2];J.V6+=a*(S+F);X&&(J.tR+=a*(C[I*2+1]+F))}}if(L!==0){do{for(S=W-1;J.Ap[S]===0;)S--;J.Ap[S]--;J.Ap[S+1]+=2;J.Ap[W]--;L-=2}while(L>0);for(S=W;S!==0;S--)for(I=J.Ap[S];I!==0;)C=J.yL[--R],C>k||(f[C*2+1]!==S&&(J.V6+=(S- f[C*2+1])*f[C*2],f[C*2+1]=S),I--)}Ozk(N,H,J.Ap)}; rU8=function(J,R,N){var C,X=-1,u=R[1],f=0,H=7,k=4;u===0&&(H=138,k=3);R[(N+1)*2+1]=65535;for(C=0;C<=N;C++){var v=u;u=R[(C+1)*2+1];++f>>=1)if(R&1&&J.pT[N*2]!==0)return 0;if(J.pT[18]!==0||J.pT[20]!==0||J.pT[26]!==0)return 1;for(N=32;N<256;N++)if(J.pT[N*2]!==0)return 1;return 0}; SW=function(J,R,N){J.hs[J.Mq+J.N0*2]=R>>>8&255;J.hs[J.Mq+J.N0*2+1]=R&255;J.hs[J.z1+J.N0]=N&255;J.N0++;R===0?J.pT[N*2]++:(J.matches++,R--,J.pT[(fa[N]+256+1)*2]++,J.O4[(R<256?HQ[R]:HQ[256+(R>>>7)])*2]++);return J.N0===J.Iv-1}; Ip=function(J,R){J.msg=La[R];return R}; FZ=function(J){for(var R=J.length;--R>=0;)J[R]=0}; E0=function(J){var R=J.state,N=R.pending;N>J.Rl&&(N=J.Rl);N!==0&&(JH.RO(J.output,R.hs,R.vQ,N,J.R4),J.R4+=N,R.vQ+=N,J.Oj+=N,J.Rl-=N,R.pending-=N,R.pending===0&&(R.vQ=0))}; ap=function(J,R){var N=J.Tu>=0?J.Tu:-1,C=J.g3-J.Tu,X=0;if(J.level>0){J.NP.Hh===2&&(J.NP.Hh=m4g(J));WQ(J,J.Hx);WQ(J,J.nE);rU8(J,J.pT,J.Hx.Eg);rU8(J,J.O4,J.nE.Eg);WQ(J,J.AP);for(X=18;X>=3&&J.Ba[ViE[X]*2+1]===0;X--);J.V6+=3*(X+1)+5+5+4;var u=J.V6+3+7>>>3;var f=J.tR+3+7>>>3;f<=u&&(u=f)}else u=f=C+5;if(C+4<=u&&N!==-1)XZ(J,R?1:0,3),qnk(J,N,C);else if(J.strategy===4||f===u)XZ(J,2+(R?1:0),3),Yng(J,M0,Ka);else{XZ(J,4+(R?1:0),3);N=J.Hx.Eg+1;C=J.nE.Eg+1;X+=1;XZ(J,N-257,5);XZ(J,C-1,5);XZ(J,X-4,4);for(u=0;u>>8&255;J.hs[J.pending++]=R&255}; g$B=function(J,R){var N=J.jm,C=J.g3,X=J.ox,u=J.t8,f=J.g3>J.GX-262?J.g3-(J.GX-262):0,H=J.window,k=J.cn,v=J.zG,W=J.g3+258,S=H[C+X-1],L=H[C+X];J.ox>=J.FA&&(N>>=2);u>J.yK&&(u=J.yK);do{var I=R;if(H[I+X]===L&&H[I+X-1]===S&&H[I]===H[C]&&H[++I]===H[C+1]){C+=2;for(I++;H[++C]===H[++I]&&H[++C]===H[++I]&&H[++C]===H[++I]&&H[++C]===H[++I]&&H[++C]===H[++I]&&H[++C]===H[++I]&&H[++C]===H[++I]&&H[++C]===H[++I]&&CX){J.o0=R;X=I;if(I>=u)break;S=H[C+X-1];L=H[C+X]}}}while((R=v[R&k])>f&&--N!== 0);return X<=J.yK?X:J.yK}; BQ=function(J){var R=J.GX,N;do{var C=J.Xl-J.yK-J.g3;if(J.g3>=R+(R-262)){JH.RO(J.window,J.window,R,R,0);J.o0-=R;J.g3-=R;J.Tu-=R;var X=N=J.t1;do{var u=J.head[--X];J.head[X]=u>=R?u-R:0}while(--N);X=N=R;do u=J.zG[--X],J.zG[X]=u>=R?u-R:0;while(--N);C+=R}if(J.NP.hM===0)break;X=J.NP;N=J.window;u=J.g3+J.yK;var f=X.hM;f>C&&(f=C);f===0?N=0:(X.hM-=f,JH.RO(N,X.input,X.Qv,f,u),X.state.wrap===1?X.PU=D1(X.PU,N,f,u):X.state.wrap===2&&(X.PU=s0(X.PU,N,f,u)),X.Qv+=f,X.IZ+=f,N=f);J.yK+=N;if(J.yK+J.wX>=3)for(C=J.g3-J.wX, J.fY=J.window[C],J.fY=(J.fY<=3&&(J.fY=(J.fY<=3)if(N=SW(J,J.g3-J.o0,J.qE-3),J.yK-=J.qE,J.qE<=J.dF&&J.yK>=3){J.qE--;do J.g3++,J.fY=(J.fY<=3&&(J.fY=(J.fY<4096)&&(J.qE=2));if(J.ox>=3&&J.qE<=J.ox){C=J.g3+J.yK-3;N=SW(J,J.g3-1-J.SB,J.ox-3);J.yK-=J.ox-1;J.ox-=2;do++J.g3<=C&&(J.fY=(J.fY<=3&&J.g3>0&&(C=J.g3-1,N=u[C],N===u[++C]&&N===u[++C]&&N===u[++C])){for(X=J.g3+258;N===u[++C]&&N===u[++C]&&N===u[++C]&&N===u[++C]&&N===u[++C]&&N===u[++C]&&N===u[++C]&&N===u[++C]&&CJ.yK&&(J.qE=J.yK)}J.qE>=3?(N=SW(J,1,J.qE-3),J.yK-=J.qE,J.g3+=J.qE,J.qE=0):(N=SW(J,0,J.window[J.g3]),J.yK--,J.g3++);if(N&&(ap(J,!1),J.NP.Rl===0))return 1}J.wX=0;return R=== 4?(ap(J,!0),J.NP.Rl===0?3:4):J.N0&&(ap(J,!1),J.NP.Rl===0)?1:2}; pq2=function(J,R){for(var N;;){if(J.yK===0&&(BQ(J),J.yK===0)){if(R===0)return 1;break}J.qE=0;N=SW(J,0,J.window[J.g3]);J.yK--;J.g3++;if(N&&(ap(J,!1),J.NP.Rl===0))return 1}J.wX=0;return R===4?(ap(J,!0),J.NP.Rl===0?3:4):J.N0&&(ap(J,!1),J.NP.Rl===0)?1:2}; dl=function(J,R,N,C,X){this.nz=J;this.HC8=R;this.KDM=N;this.efN=C;this.func=X}; lA2=function(){this.NP=null;this.status=0;this.hs=null;this.wrap=this.pending=this.vQ=this.jr=0;this.tY=null;this.Xs=0;this.method=8;this.L1=-1;this.cn=this.lK=this.GX=0;this.window=null;this.Xl=0;this.head=this.zG=null;this.t8=this.FA=this.strategy=this.level=this.dF=this.jm=this.ox=this.yK=this.o0=this.g3=this.mX=this.SB=this.qE=this.Tu=this.jW=this.XY=this.Oh=this.t1=this.fY=0;this.pT=new JH.V8(1146);this.O4=new JH.V8(122);this.Ba=new JH.V8(78);FZ(this.pT);FZ(this.O4);FZ(this.Ba);this.AP=this.nE= this.Hx=null;this.Ap=new JH.V8(16);this.yL=new JH.V8(573);FZ(this.yL);this.Fo=this.oh=0;this.depth=new JH.V8(573);FZ(this.depth);this.hS=this.pJ=this.wX=this.matches=this.tR=this.V6=this.Mq=this.N0=this.Iv=this.z1=0}; Pjn=function(J,R){if(!J||!J.state||R>5||R<0)return J?Ip(J,-2):-2;var N=J.state;if(!J.output||!J.input&&J.hM!==0||N.status===666&&R!==4)return Ip(J,J.Rl===0?-5:-2);N.NP=J;var C=N.L1;N.L1=R;if(N.status===42)if(N.wrap===2)J.PU=0,QJ(N,31),QJ(N,139),QJ(N,8),N.tY?(QJ(N,(N.tY.text?1:0)+(N.tY.Nf?2:0)+(N.tY.extra?4:0)+(N.tY.name?8:0)+(N.tY.comment?16:0)),QJ(N,N.tY.time&255),QJ(N,N.tY.time>>8&255),QJ(N,N.tY.time>>16&255),QJ(N,N.tY.time>>24&255),QJ(N,N.level===9?2:N.strategy>=2||N.level<2?4:0),QJ(N,N.tY.os& 255),N.tY.extra&&N.tY.extra.length&&(QJ(N,N.tY.extra.length&255),QJ(N,N.tY.extra.length>>8&255)),N.tY.Nf&&(J.PU=s0(J.PU,N.hs,N.pending,0)),N.Xs=0,N.status=69):(QJ(N,0),QJ(N,0),QJ(N,0),QJ(N,0),QJ(N,0),QJ(N,N.level===9?2:N.strategy>=2||N.level<2?4:0),QJ(N,3),N.status=113);else{var X=8+(N.lK-8<<4)<<8;X|=(N.strategy>=2||N.level<2?0:N.level<6?1:N.level===6?2:3)<<6;N.g3!==0&&(X|=32);N.status=113;na(N,X+(31-X%31));N.g3!==0&&(na(N,J.PU>>>16),na(N,J.PU&65535));J.PU=1}if(N.status===69)if(N.tY.extra){for(X= N.pending;N.Xs<(N.tY.extra.length&65535)&&(N.pending!==N.jr||(N.tY.Nf&&N.pending>X&&(J.PU=s0(J.PU,N.hs,N.pending-X,X)),E0(J),X=N.pending,N.pending!==N.jr));)QJ(N,N.tY.extra[N.Xs]&255),N.Xs++;N.tY.Nf&&N.pending>X&&(J.PU=s0(J.PU,N.hs,N.pending-X,X));N.Xs===N.tY.extra.length&&(N.Xs=0,N.status=73)}else N.status=73;if(N.status===73)if(N.tY.name){X=N.pending;do{if(N.pending===N.jr&&(N.tY.Nf&&N.pending>X&&(J.PU=s0(J.PU,N.hs,N.pending-X,X)),E0(J),X=N.pending,N.pending===N.jr)){var u=1;break}u=N.XsX&&(J.PU=s0(J.PU,N.hs,N.pending-X,X));u===0&&(N.Xs=0,N.status=91)}else N.status=91;if(N.status===91)if(N.tY.comment){X=N.pending;do{if(N.pending===N.jr&&(N.tY.Nf&&N.pending>X&&(J.PU=s0(J.PU,N.hs,N.pending-X,X)),E0(J),X=N.pending,N.pending===N.jr)){u=1;break}u=N.XsX&&(J.PU=s0(J.PU,N.hs,N.pending-X,X));u===0&&(N.status=103)}else N.status= 103;N.status===103&&(N.tY.Nf?(N.pending+2>N.jr&&E0(J),N.pending+2<=N.jr&&(QJ(N,J.PU&255),QJ(N,J.PU>>8&255),J.PU=0,N.status=113)):N.status=113);if(N.pending!==0){if(E0(J),J.Rl===0)return N.L1=-1,0}else if(J.hM===0&&(R<<1)-(R>4?9:0)<=(C<<1)-(C>4?9:0)&&R!==4)return Ip(J,-5);if(N.status===666&&J.hM!==0)return Ip(J,-5);if(J.hM!==0||N.yK!==0||R!==0&&N.status!==666){C=N.strategy===2?pq2(N,R):N.strategy===3?U48(N,R):q0[N.level].func(N,R);if(C===3||C===4)N.status=666;if(C===1||C===3)return J.Rl===0&&(N.L1= -1),0;if(C===2&&(R===1?(XZ(N,2,3),iH(N,256,M0),N.hS===16?(Ca(N,N.pJ),N.pJ=0,N.hS=0):N.hS>=8&&(N.hs[N.pending++]=N.pJ&255,N.pJ>>=8,N.hS-=8)):R!==5&&(XZ(N,0,3),qnk(N,0,0),R===3&&(FZ(N.head),N.yK===0&&(N.g3=0,N.Tu=0,N.wX=0))),E0(J),J.Rl===0))return N.L1=-1,0}if(R!==4)return 0;if(N.wrap<=0)return 1;N.wrap===2?(QJ(N,J.PU&255),QJ(N,J.PU>>8&255),QJ(N,J.PU>>16&255),QJ(N,J.PU>>24&255),QJ(N,J.IZ&255),QJ(N,J.IZ>>8&255),QJ(N,J.IZ>>16&255),QJ(N,J.IZ>>24&255)):(na(N,J.PU>>>16),na(N,J.PU&65535));E0(J);N.wrap>0&& (N.wrap=-N.wrap);return N.pending!==0?0:1}; AH=function(J){if(!(this instanceof AH))return new AH(J);J=this.options=JH.assign({level:-1,method:8,chunkSize:16384,J_:15,sB3:8,strategy:0,to:""},J||{});J.raw&&J.J_>0?J.J_=-J.J_:J.FJ&&J.J_>0&&J.J_<16&&(J.J_+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.NP=new zW7;this.NP.Rl=0;var R=this.NP;var N=J.level,C=J.method,X=J.J_,u=J.sB3,f=J.strategy;if(R){var H=1;N===-1&&(N=6);X<0?(H=0,X=-X):X>15&&(H=2,X-=16);if(u<1||u>9||C!==8||X<8||X>15||N<0||N>9||f<0||f>4)R=Ip(R,-2);else{X===8&&(X=9); var k=new lA2;R.state=k;k.NP=R;k.wrap=H;k.tY=null;k.lK=X;k.GX=1<>=7;u<30;u++)for(vQ[u]=f<<7,X=0;X<1<=v.GX&&(R===0&&(FZ(v.head),v.g3=0,v.Tu=0,v.wX=0),N=new JH.xY(v.GX),JH.RO(N,u,f-v.GX,v.GX,0),u=N,f=v.GX);N=J.hM;C=J.Qv;X=J.input;J.hM=f;J.Qv=0;J.input=u;for(BQ(v);v.yK>=3;){u=v.g3;f=v.yK-2;do v.fY=(v.fY<=new Date("1970-01-01T04:45:01.000+04:45")/1E3&&(N[23]===-2&&(((0,N[50])(N[0],N[80]),N[16])((0,N[50])(N[64],N[6]), N[15],N[72],N[41]),1)||(0,N[15])(N[72],N[4])>>>((0,N[10])(N[6])>(0,N[15])(N[72],N[2]))),N[25]===6&&(((0,N[54])((0,N[37])((0,N[12])(),N[42],N[66]),N[49],(0,N[15])(N[6],N[36]),N[14],N[42]),N[62])(N[19]),1)||((((0,N[15])(N[6],N[79]),N[28])(N[52],N[6]),N[24])(N[42],N[27]),N[24])(N[80],N[69])}catch(C){((0,N[49])(N[67],N[72]),N[15])(N[42],N[68]),(0,N[49])(N[58],N[new Date("1969-12-31T23:00:19.000-01:00")/1E3])}try{N[41]>7?((0,N[24])(N[6],N[34]),N[37])((0,N[84])(),N[19],N[66]):(0,N[16])((0,N[15])(N[72], N[65]),N[24],N[80],N[23]),N[31]<=-5&&(((0,N[50])(N[25],N[80]),N[37])((0,N[12])(),N[19],N[0]),[])||(0,N[16])((0,N[49])(N[73],N[19]),N[50],N[46],N[42])}catch(C){(0,N[24])(N[80],N[51]),(0,N[new Date("1969-12-31T15:00:37.000-09:00")/1E3])((0,N[84])(),N[19],N[0])}finally{N[new Date("1970-01-01T09:01:04.000+09:00")/1E3]>-9&&(N[74]!=-8&&(((0,N[26])(N[50],(0,N[49])(N[30],N[6]),(0,N[28])(N[17],N[42])<<(0,N[24])(N[6],N[new Date("1969-12-31T13:45:56.000-10:15")/1E3]),(0,N[24])(N[19],N[77]),N[55],N[80]),N[66])(N[48], N[86]),1)||(((0,N[79])((0,N[55])(),N[61],N[new Date("1969-12-31T14:00:42.000-10:00")/1E3]),N[1])(N[80],N[84]),(0,N[1])(N[39],N[84]),N[79])((0,N[36])(),N[61],N[42])*(0,N[79])((0,N[54])(),N[84],N[42])<=(0,N[66])(N[84],N[71]))}try{N[56]!=-6&&(N[new Date("1970-01-01T09:30:59.000+09:30")/1E3]===4&&((0,N[2])(N[73],N[61]),4)||(0,N[66])(N[61],N[87]))}catch(C){(0,N[66])(N[43],N[77])}finally{N[5]==-6?(((0,N[52])(N[61]),((0,N[79])((0,N[36])(),N[61],N[42]),N[1])(N[0],N[84]),N[2])(N[13],N[24]),N[14])(N[32]):(((0,N[70])(N[33], N[32]),N[25])((0,N[46])((0,N[87])(),N[15],N[9]),N[58],N[41],N[51]),N[25])((0,N[33])(N[10],N[84]),N[37],N[7],N[51])}try{N[7]!=-6&&(0,N[33])(N[81],N[49])}catch(C){(0,N[46])((0,N[3])(),N[51],N[9])}finally{N[4]!=8&&(N[6]>3?(0,N[63])((0,N[37])(N[20],N[10]),N[33],((0,N[11])(N[4],N[63]),N[71])(N[48],N[33]),N[59],N[79]):(0,N[45])(((0,N[28])((0,N[3])(),N[87],N[81]),N[15])(N[71],N[57]),N[28],(0,N[40])(N[88],N[87]),(0,N[4])(),N[33],N[81])),N[16]>=6&&(N[55]>=8?(0,N[19])(N[34],N[63]):(0,N[33])((0,N[16])(),N[2], N[86]))}}catch(C){return"k23EkIQ1gQI3pwBoeP-_w8_"+J}return R.join("")}; g.gl=function(J){this.name=J}; TbP=function(J){this.KP=B2(J)}; U0=function(J){this.KP=B2(J)}; pa=function(J){this.KP=B2(J)}; $W7=function(J){this.KP=B2(J)}; lH=function(J){this.KP=B2(J)}; PQ=function(J){this.KP=B2(J)}; z6=function(J){this.KP=B2(J)}; eW=function(J){this.KP=B2(J)}; wl=function(J){this.KP=B2(J)}; cQ=function(J){this.KP=B2(J)}; hH=function(J){this.KP=B2(J)}; yJ=function(J){this.KP=B2(J)}; tH=function(J){this.KP=B2(J)}; xH=function(J){this.KP=B2(J)}; Jc=function(J){this.KP=B2(J)}; oS=function(J){this.KP=B2(J,500)}; RS=function(J){this.KP=B2(J)}; NO=function(J){this.KP=B2(J)}; HHE=function(J){this.KP=B2(J)}; k4E=function(){return g.gY("yt.ads.biscotti.lastId_")||""}; vZg=function(J){g.VE("yt.ads.biscotti.lastId_",J)}; Xi=function(){var J=arguments,R=C4;J.length>1?R[J[0]]=J[1]:J.length===1&&Object.assign(R,J[0])}; g.iL=function(J,R){return J in C4?C4[J]:R}; uL=function(J){var R=C4.EXPERIMENT_FLAGS;return R?R[J]:void 0}; Wnf=function(J){f4.forEach(function(R){return R(J)})}; g.$q=function(J){return J&&window.yterr?function(){try{return J.apply(this,arguments)}catch(R){g.TO(R)}}:J}; g.TO=function(J){var R=g.gY("yt.logging.errors.log");R?R(J,"ERROR",void 0,void 0,void 0,void 0,void 0):(R=g.iL("ERRORS",[]),R.push([J,"ERROR",void 0,void 0,void 0,void 0,void 0]),Xi("ERRORS",R));Wnf(J)}; HR=function(J,R,N,C,X){var u=g.gY("yt.logging.errors.log");u?u(J,"WARNING",R,N,C,void 0,X):(u=g.iL("ERRORS",[]),u.push([J,"WARNING",R,N,C,void 0,X]),Xi("ERRORS",u))}; kq=function(J,R){R=J.split(R);for(var N={},C=0,X=R.length;C1?J[1]:J[0])):{}}; IS=function(J,R){return Fng(J,R||{},!0)}; Fi=function(J,R){return Fng(J,R||{},!1)}; Fng=function(J,R,N){var C=J.split("#",2);J=C[0];C=C.length>1?"#"+C[1]:"";var X=J.split("?",2);J=X[0];X=WR(X[1]||"");for(var u in R)if(N||!g.qs(X,u))X[u]=R[u];return g.bD(J,X)+C}; EE=function(J){if(!R)var R=window.location.href;var N=g.zF(1,J),C=g.ez(J);N&&C?(J=J.match(P_),R=R.match(P_),J=J[3]==R[3]&&J[1]==R[1]&&J[4]==R[4]):J=C?g.ez(R)===C&&(Number(g.zF(4,R))||null)===(Number(g.zF(4,J))||null):!0;return J}; MO=function(J){J||(J=document.location.href);J=g.zF(1,J);return J!==null&&J==="https"}; K4=function(J){J=EZE(J);return J===null?!1:J[0]==="com"&&J[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; MAg=function(J){J=EZE(J);return J===null?!1:J[1]==="google"?!0:J[2]==="google"?J[0]==="au"&&J[1]==="com"?!0:J[0]==="uk"&&J[1]==="co"?!0:!1:!1}; EZE=function(J){J=g.ez(J);return J!==null?J.split(".").reverse():null}; Sk2=function(J){return J&&J.match(Kn2)?J:CK(J)}; n4=function(J){var R=aS;J=J===void 0?k4E():J;var N=Object,C=N.assign,X=Q5(R);var u=R.K;try{var f=u.screenX;var H=u.screenY}catch(B){}try{var k=u.outerWidth;var v=u.outerHeight}catch(B){}try{var W=u.innerWidth;var S=u.innerHeight}catch(B){}try{var L=u.screenLeft;var I=u.screenTop}catch(B){}try{W=u.innerWidth,S=u.innerHeight}catch(B){}try{var F=u.screen.availWidth;var a=u.screen.availTop}catch(B){}u=[L,I,f,H,F,a,k,v,W,S];f=cBP(!1,R.K.top);H={};var n=n===void 0?g.mB:n;k=new C$;"SVGElement"in n&&"createElementNS"in n.document&&k.set(0);v=X_B();v["allow-top-navigation-by-user-activation"]&&k.set(1);v["allow-popups-to-escape-sandbox"]&&k.set(2);n.crypto&&n.crypto.subtle&&k.set(3);"TextDecoder"in n&&"TextEncoder"in n&&k.set(4);n=tmg(k);R=(H.bc=n,H.bih=f.height,H.biw=f.width,H.brdim=u.join(),H.vis=nN(R.J),H.wgl=!!KN.WebGLRenderingContext,H);N=C.call(N,X,R);N.ca_type="image";J&&(N.bid=J);return N}; Q5=function(J){var R={};R.dt=ayg;R.flash="0";a:{try{var N=J.K.top.location.href}catch(W){J=2;break a}J=N?N===J.J.location.href?0:1:2}R=(R.frm=J,R);try{R.u_tz=-(new Date).getTimezoneOffset();var C=C===void 0?KN:C;try{var X=C.history.length}catch(W){X=0}R.u_his=X;var u;R.u_h=(u=KN.screen)==null?void 0:u.height;var f;R.u_w=(f=KN.screen)==null?void 0:f.width;var H;R.u_ah=(H=KN.screen)==null?void 0:H.availHeight;var k;R.u_aw=(k=KN.screen)==null?void 0:k.availWidth;var v;R.u_cd=(v=KN.screen)==null?void 0: v.colorDepth}catch(W){}return R}; nZB=function(){if(!QMn)return null;var J=QMn();return"open"in J?J:null}; g.sE=function(J){switch(Dx(J)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; Dx=function(J){return J&&"status"in J?J.status:-1}; g.BR=function(J,R){typeof J==="function"&&(J=g.$q(J));return window.setTimeout(J,R)}; g.OE=function(J,R){typeof J==="function"&&(J=g.$q(J));return window.setInterval(J,R)}; g.Zx=function(J){window.clearTimeout(J)}; g.dp=function(J){window.clearInterval(J)}; g.Ac=function(J){J=qO(J);return typeof J==="string"&&J==="false"?!1:!!J}; g.Yq=function(J,R){J=qO(J);return J===void 0&&R!==void 0?R:Number(J||0)}; rp=function(){return g.iL("EXPERIMENTS_TOKEN","")}; qO=function(J){return g.iL("EXPERIMENT_FLAGS",{})[J]}; jQ=function(){for(var J=[],R=g.iL("EXPERIMENTS_FORCED_FLAGS",{}),N=g.K(Object.keys(R)),C=N.next();!C.done;C=N.next())C=C.value,J.push({key:C,value:String(R[C])});N=g.iL("EXPERIMENT_FLAGS",{});C=g.K(Object.keys(N));for(var X=C.next();!X.done;X=C.next())X=X.value,X.startsWith("force_")&&R[X]===void 0&&J.push({key:X,value:String(N[X])});return J}; mh=function(J,R,N,C,X,u,f,H){function k(){(v&&"readyState"in v?v.readyState:0)===4&&R&&g.$q(R)(v)} N=N===void 0?"GET":N;C=C===void 0?"":C;H=H===void 0?!1:H;var v=nZB();if(!v)return null;"onloadend"in v?v.addEventListener("loadend",k,!1):v.onreadystatechange=k;g.Ac("debug_forward_web_query_parameters")&&(J=DWE(J,window.location.search));v.open(N,J,!0);u&&(v.responseType=u);f&&(v.withCredentials=!0);N=N==="POST"&&(window.FormData===void 0||!(C instanceof FormData));if(X=sME(J,X))for(var W in X)v.setRequestHeader(W,X[W]),"content-type"===W.toLowerCase()&&(N=!1);N&&v.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");if(H&&"setAttributionReporting"in XMLHttpRequest.prototype){J={eventSourceEligible:!0,triggerEligible:!1};try{v.setAttributionReporting(J)}catch(S){HR(S)}}v.send(C);return v}; sME=function(J,R){R=R===void 0?{}:R;var N=EE(J),C=g.iL("INNERTUBE_CLIENT_NAME"),X=g.Ac("web_ajax_ignore_global_headers_if_set"),u;for(u in BbB){var f=g.iL(BbB[u]),H=u==="X-Goog-AuthUser"||u==="X-Goog-PageId";u!=="X-Goog-Visitor-Id"||f||(f=g.iL("VISITOR_DATA"));var k;if(!(k=!f)){if(!(k=N||(g.ez(J)?!1:!0))){k=J;var v;if(v=g.Ac("add_auth_headers_to_remarketing_google_dot_com_ping")&&u==="Authorization"&&(C==="TVHTML5"||C==="TVHTML5_UNPLUGGED"||C==="TVHTML5_SIMPLY")&&MAg(k))k=lD(g.zF(5,k))||"",k=k.split("/"), k="/"+(k.length>1?k[1]:""),v=k==="/pagead";k=v?!0:!1}k=!k}k||X&&R[u]!==void 0||C==="TVHTML5_UNPLUGGED"&&H||(R[u]=f)}"X-Goog-EOM-Visitor-Id"in R&&"X-Goog-Visitor-Id"in R&&delete R["X-Goog-Visitor-Id"];if(N||!g.ez(J))R["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(N||!g.ez(J)){try{var W=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(S){}W&&(R["X-YouTube-Time-Zone"]=W)}document.location.hostname.endsWith("youtubeeducation.com")||!N&&g.ez(J)||(R["X-YouTube-Ad-Signals"]= vR(n4()));return R}; ZHE=function(J,R){var N=g.ez(J);g.Ac("debug_handle_relative_url_for_query_forward_killswitch")||!N&&EE(J)&&(N=document.location.hostname);var C=lD(g.zF(5,J));C=(N=N&&(N.endsWith("youtube.com")||N.endsWith("youtube-nocookie.com")))&&C&&C.startsWith("/api/");if(!N||C)return J;var X=WR(R),u={};g.Ts(OHf,function(f){X[f]&&(u[f]=X[f])}); return Fi(J,u)}; gp=function(J,R){R.method="POST";R.postParams||(R.postParams={});return g.V5(J,R)}; Atg=function(J,R){if(window.fetch&&R.format!=="XML"){var N={method:R.method||"GET",credentials:"same-origin"};R.headers&&(N.headers=R.headers);R.priority&&(N.priority=R.priority);J=dWg(J,R);var C=qkY(J,R);C&&(N.body=C);R.withCredentials&&(N.credentials="include");var X=R.context||g.mB,u=!1,f;fetch(J,N).then(function(H){if(!u){u=!0;f&&g.Zx(f);var k=H.ok,v=function(W){W=W||{};k?R.onSuccess&&R.onSuccess.call(X,W,H):R.onError&&R.onError.call(X,W,H);R.onFinish&&R.onFinish.call(X,W,H)}; (R.format||"JSON")==="JSON"&&(k||H.status>=400&&H.status<500)?H.json().then(v,function(){v(null)}):v(null)}}).catch(function(){R.onError&&R.onError.call(X,{},{})}); J=R.timeout||0;R.onFetchTimeout&&J>0&&(f=g.BR(function(){u||(u=!0,g.Zx(f),R.onFetchTimeout.call(R.context||g.mB))},J))}else g.V5(J,R)}; g.V5=function(J,R){var N=R.format||"JSON";J=dWg(J,R);var C=qkY(J,R),X=!1,u=YkB(J,function(k){if(!X){X=!0;H&&g.Zx(H);var v=g.sE(k),W=null,S=400<=k.status&&k.status<500,L=500<=k.status&&k.status<600;if(v||S||L)W=rtn(J,N,k,R.convertToSafeHtml);v&&(v=jMB(N,k,W));W=W||{};S=R.context||g.mB;v?R.onSuccess&&R.onSuccess.call(S,k,W):R.onError&&R.onError.call(S,k,W);R.onFinish&&R.onFinish.call(S,k,W)}},R.method,C,R.headers,R.responseType,R.withCredentials); C=R.timeout||0;if(R.onTimeout&&C>0){var f=R.onTimeout;var H=g.BR(function(){X||(X=!0,u.abort(),g.Zx(H),f.call(R.context||g.mB,u))},C)}return u}; dWg=function(J,R){R.includeDomain&&(J=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+J);var N=g.iL("XSRF_FIELD_NAME");if(R=R.urlParams)R[N]&&delete R[N],J=IS(J,R);return J}; qkY=function(J,R){var N=g.iL("XSRF_FIELD_NAME"),C=g.iL("XSRF_TOKEN"),X=R.postBody||"",u=R.postParams,f=g.iL("XSRF_FIELD_NAME"),H;R.headers&&(H=R.headers["Content-Type"]);R.excludeXsrf||g.ez(J)&&!R.withCredentials&&g.ez(J)!==document.location.hostname||R.method!=="POST"||H&&H!=="application/x-www-form-urlencoded"||R.postParams&&R.postParams[f]||(u||(u={}),u[N]=C);(g.Ac("ajax_parse_query_data_only_when_filled")&&u&&Object.keys(u).length>0||u)&&typeof X==="string"&&(X=WR(X),g.UF(X,u),X=R.postBodyFormat&& R.postBodyFormat==="JSON"?JSON.stringify(X):g.GF(X));u=X||u&&!g.rq(u);!mWE&&u&&R.method!=="POST"&&(mWE=!0,g.TO(Error("AJAX request with postData should use POST")));return X}; rtn=function(J,R,N,C){var X=null;switch(R){case "JSON":try{var u=N.responseText}catch(f){throw C=Error("Error reading responseText"),C.params=J,HR(C),f;}J=N.getResponseHeader("Content-Type")||"";u&&J.indexOf("json")>=0&&(u.substring(0,5)===")]}'\n"&&(u=u.substring(5)),X=JSON.parse(u));break;case "XML":if(J=(J=N.responseXML)?VAB(J):null)X={},g.Ts(J.getElementsByTagName("*"),function(f){X[f.tagName]=gZY(f)})}C&&UWB(X); return X}; UWB=function(J){if(g.Pg(J))for(var R in J)R==="html_content"||Wq8(R,"_html")?J[R]=e8(J[R]):UWB(J[R])}; jMB=function(J,R,N){if(R&&R.status===204)return!0;switch(J){case "JSON":return!!N;case "XML":return Number(N&&N.return_code)===0;case "RAW":return!0;default:return!!N}}; VAB=function(J){return J?(J=("responseXML"in J?J.responseXML:J).getElementsByTagName("root"))&&J.length>0?J[0]:null:null}; gZY=function(J){var R="";g.Ts(J.childNodes,function(N){R+=N.nodeValue}); return R}; p4=function(J,R){var N=g.Vs(R),C;return(new g.KC(function(X,u){N.onSuccess=function(f){g.sE(f)?X(new pwQ(f)):u(new UE("Request failed, status="+Dx(f),"net.badstatus",f))}; N.onError=function(f){u(new UE("Unknown request error","net.unknown",f))}; N.onTimeout=function(f){u(new UE("Request timed out","net.timeout",f))}; C=g.V5(J,N)})).vY(function(X){if(X instanceof Zi){var u; (u=C)==null||u.abort()}return nC(X)})}; g.lL=function(J,R,N,C){function X(H,k,v){return H.vY(function(W){if(k<=0||Dx(W.xhr)===403)return nC(new UE("Request retried too many times","net.retryexhausted",W.xhr,W));W=Math.pow(2,N-k+1)*v;var S=f>0?Math.min(f,W):W;return u(v).then(function(){return X(p4(J,R),k-1,S)})})} function u(H){return new g.KC(function(k){setTimeout(k,H)})} var f=f===void 0?-1:f;return X(p4(J,R),N-1,C)}; UE=function(J,R,N){vl.call(this,J+", errorCode="+R);this.errorCode=R;this.xhr=N;this.name="PromiseAjaxError"}; pwQ=function(J){this.xhr=J}; PR=function(J){this.K=J===void 0?null:J;this.V=0;this.J=null}; zO=function(J){var R=new PR;J=J===void 0?null:J;R.V=2;R.J=J===void 0?null:J;return R}; eQ=function(J){var R=new PR;J=J===void 0?null:J;R.V=1;R.J=J===void 0?null:J;return R}; g.hc=function(J,R,N,C,X){wp||cR.set(""+J,R,{P0:N,path:"/",domain:C===void 0?"youtube.com":C,secure:X===void 0?!1:X})}; g.y5=function(J,R){if(!wp)return cR.get(""+J,R)}; g.GO=function(J,R,N){wp||cR.remove(""+J,R===void 0?"/":R,N===void 0?"youtube.com":N)}; lyE=function(){if(g.Ac("embeds_web_enable_cookie_detection_fix")){if(!g.mB.navigator.cookieEnabled)return!1}else if(!cR.isEnabled())return!1;if(!cR.isEmpty())return!0;g.Ac("embeds_web_enable_cookie_detection_fix")?cR.set("TESTCOOKIESENABLED","1",{P0:60,aif:"none",secure:!0}):cR.set("TESTCOOKIESENABLED","1",{P0:60});if(cR.get("TESTCOOKIESENABLED")!=="1")return!1;cR.remove("TESTCOOKIESENABLED");return!0}; g.z=function(J,R){if(J)return J[R.name]}; bL=function(J){var R=g.iL("INNERTUBE_HOST_OVERRIDE");R&&(J=String(R)+String(wt(J)));return J}; PzB=function(J){var R={};g.Ac("json_condensed_response")&&(R.prettyPrint="false");return J=Fi(J,R)}; tc=function(J,R){var N=N===void 0?{}:N;J={method:R===void 0?"POST":R,mode:EE(J)?"same-origin":"cors",credentials:EE(J)?"same-origin":"include"};R={};for(var C=g.K(Object.keys(N)),X=C.next();!X.done;X=C.next())X=X.value,N[X]&&(R[X]=N[X]);Object.keys(R).length>0&&(J.headers=R);return J}; xq=function(){var J=/Chrome\/(\d+)/.exec(g.sa());return J?parseFloat(J[1]):NaN}; oc=function(){return g.Jf("android")&&g.Jf("chrome")&&!(g.Jf("trident/")||g.Jf("edge/"))&&!g.Jf("cobalt")}; zNE=function(){return g.Jf("armv7")||g.Jf("aarch64")||g.Jf("android")}; g.Rc=function(){return g.Jf("cobalt")}; NY=function(){return g.Jf("cobalt")&&g.Jf("appletv")}; CI=function(){return g.Jf("(ps3; leanback shell)")||g.Jf("ps3")&&g.Rc()}; eN2=function(){return g.Jf("(ps4; leanback shell)")||g.Jf("ps4")&&g.Rc()}; g.wwB=function(){return g.Rc()&&(g.Jf("ps4 vr")||g.Jf("ps4 pro vr"))}; X6=function(){var J=/WebKit\/([0-9]+)/.exec(g.sa());return!!(J&&parseInt(J[1],10)>=600)}; i4=function(){var J=/WebKit\/([0-9]+)/.exec(g.sa());return!!(J&&parseInt(J[1],10)>=602)}; ctg=function(){return g.Jf("iemobile")||g.Jf("windows phone")&&g.Jf("edge")}; Tm=function(){return(u4||fI)&&g.Jf("applewebkit")&&!g.Jf("version")&&(!g.Jf("safari")||g.Jf("gsa/"))}; H1=function(){return g.$I&&g.Jf("version/")}; kI=function(){return g.Jf("smart-tv")&&g.Jf("samsung")}; g.Jf=function(J){var R=g.sa();return R?R.toLowerCase().indexOf(J)>=0:!1}; v1=function(){return Kg8()||Tm()||H1()?!0:g.iL("EOM_VISITOR_DATA")?!1:!0}; W1=function(J,R){return R===void 0||R===null?J:R==="1"||R===!0||R===1||R==="True"?!0:!1}; S0=function(J,R,N){for(var C in N)if(N[C]==R)return N[C];return J}; LI=function(J,R){return R===void 0||R===null?J:Number(R)}; Ic=function(J,R){return R===void 0||R===null?J:R.toString()}; F6=function(J,R){if(R){if(J==="fullwidth")return Infinity;if(J==="fullheight")return 0}return J&&(R=J.match(hN2))&&(J=Number(R[2]),R=Number(R[1]),!isNaN(J)&&!isNaN(R)&&J>0)?R/J:NaN}; E7=function(J){var R=J.docid||J.video_id||J.videoId||J.id;if(R)return R;R=J.raw_player_response;R||(J=J.player_response)&&(R=JSON.parse(J));return R&&R.videoDetails&&R.videoDetails.videoId||null}; ytB=function(J){return MY(J,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.KI=function(J){return J==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||J==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; MY=function(J,R){R=(R===void 0?0:R)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(R="EMBEDDED_PLAYER_MODE_PFL");var N=J.raw_embedded_player_response;if(!N&&(J=J.embedded_player_response))try{N=JSON.parse(J)}catch(C){return R}return N?S0(R,N.embeddedPlayerMode,G4B):R}; Qv=function(J){vl.call(this,J.message||J.description||J.name);this.isMissing=J instanceof ac;this.isTimeout=J instanceof UE&&J.errorCode=="net.timeout";this.isCanceled=J instanceof Zi}; ac=function(){vl.call(this,"Biscotti ID is missing from server")}; bHk=function(){if(g.Ac("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!v1())return Error("User has not consented - not fetching biscotti id.");var J=g.iL("PLAYER_VARS",{});if(g.jF(J,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(ytB(J))return Error("Biscotti id fetching has been disabled for pfl.")}; ogE=function(){var J=bHk();if(J!==void 0)return nC(J);nI||(nI=p4("//googleads.g.doubleclick.net/pagead/id",tAQ).then(xWP).vY(function(R){return JPg(2,R)})); return nI}; xWP=function(J){J=J.xhr.responseText;if(!Ea(J,")]}'"))throw new ac;J=JSON.parse(J.substr(4));if((J.type||1)>1)throw new ac;J=J.id;vZg(J);nI=eQ(J);R5E(18E5,2);return J}; JPg=function(J,R){R=new Qv(R);vZg("");nI=zO(R);J>0&&R5E(12E4,J-1);throw R;}; R5E=function(J,R){g.BR(function(){p4("//googleads.g.doubleclick.net/pagead/id",tAQ).then(xWP,function(N){return JPg(R,N)}).vY(g.IR)},J)}; N5Q=function(){try{var J=g.gY("yt.ads.biscotti.getId_");return J?J():ogE()}catch(R){return nC(R)}}; XpB=function(J){J&&(J.dataset?J.dataset[C7g()]="true":ucQ(J))}; imY=function(J){return J?J.dataset?J.dataset[C7g()]:J.getAttribute("data-loaded"):null}; C7g=function(){return uuE.loaded||(uuE.loaded="loaded".replace(/\-([a-z])/g,function(J,R){return R.toUpperCase()}))}; fhg=function(){var J=document;if("visibilityState"in J)return J.visibilityState;var R=De+"VisibilityState";if(R in J)return J[R]}; s7=function(J,R){var N;gh(J,function(C){N=R[C];return!!N}); return N}; B1=function(J){if(J.requestFullscreen)J=J.requestFullscreen(void 0);else if(J.webkitRequestFullscreen)J=J.webkitRequestFullscreen();else if(J.mozRequestFullScreen)J=J.mozRequestFullScreen();else if(J.msRequestFullscreen)J=J.msRequestFullscreen();else if(J.webkitEnterFullscreen)J=J.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return J instanceof Promise?J:Promise.resolve()}; dJ=function(J){var R;g.O7()?Ze()==J&&(R=document):R=J;return R&&(J=s7(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],R))?(R=J.call(R),R instanceof Promise?R:Promise.resolve()):Promise.resolve()}; T5E=function(J){return g.eE(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(R){return"on"+R.toLowerCase()in J})}; $uB=function(){var J=document;return g.eE(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(R){return"on"+R.toLowerCase()in J})}; g.O7=function(){return!!s7(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; Ze=function(J){J=J===void 0?!1:J;var R=s7(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(J)for(;R&&R.shadowRoot;)R=R.shadowRoot.fullscreenElement;return R?R:null}; qY=function(J){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(J=J||window.event){this.event=J;for(var R in J)R in HmB||(this[R]=J[R]);this.scale=J.scale;this.rotation=J.rotation;var N=J.target||J.srcElement;N&&N.nodeType==3&&(N=N.parentNode);this.target=N;var C=J.relatedTarget; if(C)try{C=C.nodeName?C:null}catch(X){C=null}else this.type=="mouseover"?C=J.fromElement:this.type=="mouseout"&&(C=J.toElement);this.relatedTarget=C;this.clientX=J.clientX!=void 0?J.clientX:J.pageX;this.clientY=J.clientY!=void 0?J.clientY:J.pageY;this.keyCode=J.keyCode?J.keyCode:J.which;this.charCode=J.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=J.altKey;this.ctrlKey=J.ctrlKey;this.shiftKey=J.shiftKey;this.metaKey=J.metaKey;this.K=J.pageX;this.J=J.pageY}}catch(X){}}; kNE=function(J){if(document.body&&document.documentElement){var R=document.body.scrollTop+document.documentElement.scrollTop;J.K=J.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);J.J=J.clientY+R}}; vgf=function(J,R,N,C){C=C===void 0?{}:C;J.addEventListener&&(R!="mouseenter"||"onmouseenter"in document?R!="mouseleave"||"onmouseenter"in document?R=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(R="MozMousePixelScroll"):R="mouseout":R="mouseover");return Yb(Af,function(X){var u=typeof X[4]==="boolean"&&X[4]==!!C,f=g.Pg(X[4])&&g.Pg(C)&&g.mA(X[4],C);return!!X.length&&X[0]==J&&X[1]==R&&X[2]==N&&(u||f)})}; g.YI=function(J,R,N,C){C=C===void 0?{}:C;if(!J||!J.addEventListener&&!J.attachEvent)return"";var X=vgf(J,R,N,C);if(X)return X;X=++W8Y.count+"";var u=!(R!="mouseenter"&&R!="mouseleave"||!J.addEventListener||"onmouseenter"in document);var f=u?function(H){H=new qY(H);if(!Wt(H.relatedTarget,function(k){return k==J},!0))return H.currentTarget=J,H.type=R,N.call(J,H)}:function(H){H=new qY(H); H.currentTarget=J;return N.call(J,H)}; f=g.$q(f);J.addEventListener?(R=="mouseenter"&&u?R="mouseover":R=="mouseleave"&&u?R="mouseout":R=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(R="MozMousePixelScroll"),Slg()||typeof C==="boolean"?J.addEventListener(R,f,C):J.addEventListener(R,f,!!C.capture)):J.attachEvent("on"+R,f);Af[X]=[J,R,N,f,C];return X}; IhB=function(J){return L8E(J,function(R){return g.Io(R,"ytp-ad-has-logging-urls")})}; L8E=function(J,R){var N=document.body||document;return g.YI(N,"click",function(C){var X=Wt(C.target,function(u){return u===N||R(u)},!0); X&&X!==N&&!X.disabled&&(C.currentTarget=X,J.call(X,C))})}; g.rJ=function(J){J&&(typeof J=="string"&&(J=[J]),g.Ts(J,function(R){if(R in Af){var N=Af[R],C=N[0],X=N[1],u=N[3];N=N[4];C.removeEventListener?Slg()||typeof N==="boolean"?C.removeEventListener(X,u,N):C.removeEventListener(X,u,!!N.capture):C.detachEvent&&C.detachEvent("on"+X,u);delete Af[R]}}))}; j0=function(J){for(var R in Af)Af[R][0]==J&&g.rJ(R)}; mj=function(J){J=J||window.event;var R;J.composedPath&&typeof J.composedPath==="function"?R=J.composedPath():R=J.path;R&&R.length?J=R[0]:(J=J||window.event,J=J.target||J.srcElement,J.nodeType==3&&(J=J.parentNode));return J}; Vv=function(J){this.D=J;this.K=null;this.Z=0;this.S=null;this.U=0;this.J=[];for(J=0;J<4;J++)this.J.push(0);this.V=0;this.dn=g.YI(window,"mousemove",(0,g.wY)(this.W,this));this.X=g.OE((0,g.wY)(this.nC,this),25)}; gJ=function(J){g.l.call(this);this.D=[];this.oB=J||this}; U7=function(J,R,N,C){for(var X=0;X0?N:0;N=C?Date.now()+C*1E3:0;if((C=C?(0,g.P1)():zm())&&window.JSON){typeof R!=="string"&&(R=JSON.stringify(R,void 0));try{C.set(J,R,N)}catch(X){C.remove(J)}}}; g.wJ=function(J){var R=zm(),N=(0,g.P1)();if(!R&&!N||!window.JSON)return null;try{var C=R.get(J)}catch(X){}if(typeof C!=="string")try{C=N.get(J)}catch(X){}if(typeof C!=="string")return null;try{C=JSON.parse(C,void 0)}catch(X){}return C}; M4B=function(){var J=(0,g.P1)();if(J&&(J=J.J("yt-player-quality")))return J.creation}; g.c1=function(J){try{var R=zm(),N=(0,g.P1)();R&&R.remove(J);N&&N.remove(J)}catch(C){}}; g.hf=function(){return g.wJ("yt-remote-session-screen-id")}; K8f=function(J){var R=this;this.J=void 0;this.K=!1;J.addEventListener("beforeinstallprompt",function(N){N.preventDefault();R.J=N}); J.addEventListener("appinstalled",function(){R.K=!0},{once:!0})}; yv=function(){if(!g.mB.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.mB.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.mB.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.mB.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.mB.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(J){return"WEB_DISPLAY_MODE_UNKNOWN"}}; Gm=function(){this.yH=!0}; ahE=function(){Gm.instance||(Gm.instance=new Gm);return Gm.instance}; QgP=function(J){switch(J){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}}; ngB=function(){this.K=g.iL("ALT_PREF_COOKIE_NAME","PREF");this.J=g.iL("ALT_PREF_COOKIE_DOMAIN","youtube.com");var J=g.y5(this.K);J&&this.parse(J)}; g.tf=function(){b4||(b4=new ngB);return b4}; g.xI=function(J,R){return!!((DuB("f"+(Math.floor(R/31)+1))||0)&1<0;)switch(J=K3.shift(),J.type){case "ERROR":Ii.bf(J.payload);break;case "EVENT":Ii.logEvent(J.eventType,J.payload)}}; QT=function(J){ai||(Ii?Ii.bf(J):(K3.push({type:"ERROR",payload:J}),K3.length>10&&K3.shift()))}; n3=function(J,R){ai||(Ii?Ii.logEvent(J,R):(K3.push({type:"EVENT",eventType:J,payload:R}),K3.length>10&&K3.shift()))}; DI=function(J){if(J.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; sq=function(J){return J.substr(0,J.indexOf(":"))||J}; g.B9=function(J,R,N,C,X){R=R===void 0?{}:R;N=N===void 0?Ylf[J]:N;C=C===void 0?rPB[J]:C;X=X===void 0?jgB[J]:X;g.C3.call(this,N,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:J},R));this.type=J;this.message=N;this.level=C;this.K=X;Object.setPrototypeOf(this,g.B9.prototype)}; Oq=function(J,R){g.B9.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:R,foundObjectStores:J},Ylf.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Oq.prototype)}; ZI=function(J,R){var N=Error.call(this);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.index=J;this.objectStore=R;Object.setPrototypeOf(this,ZI.prototype)}; qz=function(J,R,N,C){R=sq(R);var X=J instanceof Error?J:Error("Unexpected error: "+J);if(X instanceof g.B9)return X;J={objectStoreNames:N,dbName:R,dbVersion:C};if(X.name==="QuotaExceededError")return new g.B9("QUOTA_EXCEEDED",J);if(g.d9&&X.name==="UnknownError")return new g.B9("QUOTA_MAYBE_EXCEEDED",J);if(X instanceof ZI)return new g.B9("MISSING_INDEX",Object.assign({},J,{objectStore:X.objectStore,index:X.index}));if(X.name==="InvalidStateError"&&muQ.some(function(u){return X.message.includes(u)}))return new g.B9("EXECUTE_TRANSACTION_ON_CLOSED_DB", J); if(X.name==="AbortError")return new g.B9("UNKNOWN_ABORT",J,X.message);X.args=[Object.assign({},J,{name:"IdbError",kF:X.name})];X.level="WARNING";return X}; g.AC=function(J,R,N){var C=L3();return new g.B9("IDB_NOT_SUPPORTED",{context:{caller:J,publicName:R,version:N,hasSucceededOnce:C==null?void 0:C.hasSucceededOnce}})}; V4P=function(J){if(!J)throw Error();throw J;}; gg7=function(J){return J}; Y9=function(J){this.K=J}; g.r9=function(J){function R(X){if(C.state.status==="PENDING"){C.state={status:"REJECTED",reason:X};X=g.K(C.J);for(var u=X.next();!u.done;u=X.next())u=u.value,u()}} function N(X){if(C.state.status==="PENDING"){C.state={status:"FULFILLED",value:X};X=g.K(C.K);for(var u=X.next();!u.done;u=X.next())u=u.value,u()}} var C=this;this.state={status:"PENDING"};this.K=[];this.J=[];J=J.K;try{J(N,R)}catch(X){R(X)}}; UuB=function(J,R,N,C,X){try{if(J.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var u=N(J.state.value);u instanceof g.r9?j$(J,R,u,C,X):C(u)}catch(f){X(f)}}; ppB=function(J,R,N,C,X){try{if(J.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var u=N(J.state.reason);u instanceof g.r9?j$(J,R,u,C,X):C(u)}catch(f){X(f)}}; j$=function(J,R,N,C,X){R===N?X(new TypeError("Circular promise chain detected.")):N.then(function(u){u instanceof g.r9?j$(J,R,u,C,X):C(u)},function(u){X(u)})}; lhY=function(J,R,N){function C(){N(J.error);u()} function X(){R(J.result);u()} function u(){try{J.removeEventListener("success",X),J.removeEventListener("error",C)}catch(f){}} J.addEventListener("success",X);J.addEventListener("error",C)}; P7f=function(J){return new Promise(function(R,N){lhY(J,R,N)})}; mT=function(J){return new g.r9(new Y9(function(R,N){lhY(J,R,N)}))}; VT=function(J,R){return new g.r9(new Y9(function(N,C){function X(){var u=J?R(J):null;u?u.then(function(f){J=f;X()},C):N()} X()}))}; z5E=function(J,R){this.request=J;this.cursor=R}; e5Q=function(J){return mT(J).then(function(R){return R?new z5E(J,R):null})}; g.wp7=function(J){J.cursor.continue(void 0);return e5Q(J.request)}; cPE=function(J,R){this.K=J;this.options=R;this.transactionCount=0;this.V=Math.round((0,g.g9)());this.J=!1}; g.p3=function(J,R,N){J=J.K.createObjectStore(R,N);return new Uq(J)}; lS=function(J,R){J.K.objectStoreNames.contains(R)&&J.K.deleteObjectStore(R)}; g.e$=function(J,R,N){return g.P9(J,[R],{mode:"readwrite",QK:!0},function(C){return g.zB(C.objectStore(R),N)})}; g.P9=function(J,R,N,C){var X,u,f,H,k,v,W,S,L,I,F,a;return g.Y(function(n){switch(n.K){case 1:var B={mode:"readonly",QK:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof N==="string"?B.mode=N:Object.assign(B,N);X=B;J.transactionCount++;u=X.QK?3:1;f=0;case 2:if(H){n.ZM(4);break}f++;k=Math.round((0,g.g9)());g.Ef(n,5);v=J.K.transaction(R,X.mode);B=new w9(v);B=h5E(B,C);return g.q(n,B,7);case 7:return W=n.J,S=Math.round((0,g.g9)()),yPE(J,k,S,f,void 0,R.join(),X),n.return(W);case 5:L=g.K2(n);I=Math.round((0,g.g9)()); F=qz(L,J.K.name,R.join(),J.K.version);if((a=F instanceof g.B9&&!F.K)||f>=u)yPE(J,k,I,f,F,R.join(),X),H=F;n.ZM(2);break;case 4:return n.return(Promise.reject(H))}})}; yPE=function(J,R,N,C,X,u,f){R=N-R;X?(X instanceof g.B9&&(X.type==="QUOTA_EXCEEDED"||X.type==="QUOTA_MAYBE_EXCEEDED")&&n3("QUOTA_EXCEEDED",{dbName:sq(J.K.name),objectStoreNames:u,transactionCount:J.transactionCount,transactionMode:f.mode}),X instanceof g.B9&&X.type==="UNKNOWN_ABORT"&&(N-=J.V,N<0&&N>=2147483648&&(N=0),n3("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:u,transactionDuration:R,transactionCount:J.transactionCount,dbDuration:N}),J.J=!0),GNB(J,!1,C,u,R,f.tag),QT(X)):GNB(J,!0,C,u,R, f.tag)}; GNB=function(J,R,N,C,X,u){n3("TRANSACTION_ENDED",{objectStoreNames:C,connectionHasUnknownAbortedTransaction:J.J,duration:X,isSuccessful:R,tryCount:N,tag:u===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":u})}; Uq=function(J){this.K=J}; g.c9=function(J,R,N){J.K.createIndex(R,N,{unique:!1})}; bmB=function(J,R){return g.hC(J,{query:R},function(N){return N.delete().then(function(){return g.yT(N)})}).then(function(){})}; t4g=function(J,R,N){var C=[];return g.hC(J,{query:R},function(X){if(!(N!==void 0&&C.length>=N))return C.push(X.getValue()),g.yT(X)}).then(function(){return C})}; JXB=function(J){return"getAllKeys"in IDBObjectStore.prototype?mT(J.K.getAllKeys(void 0,void 0)):xuP(J)}; xuP=function(J){var R=[];return g.ot2(J,{query:void 0},function(N){R.push(N.cursor.primaryKey);return g.wp7(N)}).then(function(){return R})}; g.zB=function(J,R,N){return mT(J.K.put(R,N))}; g.hC=function(J,R,N){J=J.K.openCursor(R.query,R.direction);return GB(J).then(function(C){return VT(C,N)})}; g.ot2=function(J,R,N){var C=R.query;R=R.direction;J="openKeyCursor"in IDBObjectStore.prototype?J.K.openKeyCursor(C,R):J.K.openCursor(C,R);return e5Q(J).then(function(X){return VT(X,N)})}; w9=function(J){var R=this;this.K=J;this.V=new Map;this.J=!1;this.done=new Promise(function(N,C){R.K.addEventListener("complete",function(){N()}); R.K.addEventListener("error",function(X){X.currentTarget===X.target&&C(R.K.error)}); R.K.addEventListener("abort",function(){var X=R.K.error;if(X)C(X);else if(!R.J){X=g.B9;for(var u=R.K.objectStoreNames,f=[],H=0;H=N))return C.push(X.getValue()),g.yT(X)}).then(function(){return C})}; g.bS=function(J,R,N){J=J.K.openCursor(R.query===void 0?null:R.query,R.direction===void 0?"next":R.direction);return GB(J).then(function(C){return VT(C,N)})}; tC=function(J,R){this.request=J;this.cursor=R}; GB=function(J){return mT(J).then(function(R){return R?new tC(J,R):null})}; g.yT=function(J){J.cursor.continue(void 0);return GB(J.request)}; CcB=function(J,R,N){return new Promise(function(C,X){function u(){L||(L=new cPE(f.result,{closed:S}));return L} var f=R!==void 0?self.indexedDB.open(J,R):self.indexedDB.open(J);var H=N.blocked,k=N.blocking,v=N.ys3,W=N.upgrade,S=N.closed,L;f.addEventListener("upgradeneeded",function(I){try{if(I.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(f.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");I.dataLoss&&I.dataLoss!=="none"&&n3("IDB_DATA_CORRUPTED",{reason:I.dataLossMessage||"unknown reason",dbName:sq(J)});var F=u(),a=new w9(f.transaction); W&&W(F,function(n){return I.oldVersion=n},a); a.done.catch(function(n){X(n)})}catch(n){X(n)}}); f.addEventListener("success",function(){var I=f.result;k&&I.addEventListener("versionchange",function(){k(u())}); I.addEventListener("close",function(){n3("IDB_UNEXPECTEDLY_CLOSED",{dbName:sq(J),dbVersion:I.version});v&&v()}); C(u())}); f.addEventListener("error",function(){X(f.error)}); H&&f.addEventListener("blocked",function(){H()})})}; XKE=function(J,R,N){N=N===void 0?{}:N;return CcB(J,R,N)}; x9=function(J,R){R=R===void 0?{}:R;var N,C,X,u;return g.Y(function(f){if(f.K==1)return g.Ef(f,2),N=self.indexedDB.deleteDatabase(J),C=R,(X=C.blocked)&&N.addEventListener("blocked",function(){X()}),g.q(f,P7f(N),4); if(f.K!=2)return g.MP(f,0);u=g.K2(f);throw qz(u,J,"",-1);})}; Jg=function(J,R){this.name=J;this.options=R;this.V=!0;this.U=this.Z=0}; i$B=function(J,R){return new g.B9("INCOMPATIBLE_DB_VERSION",{dbName:J.name,oldVersion:J.options.version,newVersion:R})}; g.oN=function(J,R){if(!R)throw g.AC("openWithToken",sq(J.name));return J.open()}; uLE=function(J,R){var N;return g.Y(function(C){if(C.K==1)return g.q(C,g.oN(RN,R),2);N=C.J;return C.return(g.P9(N,["databases"],{QK:!0,mode:"readwrite"},function(X){var u=X.objectStore("databases");return u.get(J.actualName).then(function(f){if(f?J.actualName!==f.actualName||J.publicName!==f.publicName||J.userIdentifier!==f.userIdentifier:1)return g.zB(u,J).then(function(){})})}))})}; N6=function(J,R){var N;return g.Y(function(C){if(C.K==1)return J?g.q(C,g.oN(RN,R),2):C.return();N=C.J;return C.return(N.delete("databases",J))})}; f$Y=function(J,R){var N,C;return g.Y(function(X){return X.K==1?(N=[],g.q(X,g.oN(RN,R),2)):X.K!=3?(C=X.J,g.q(X,g.P9(C,["databases"],{QK:!0,mode:"readonly"},function(u){N.length=0;return g.hC(u.objectStore("databases"),{},function(f){J(f.getValue())&&N.push(f.getValue());return g.yT(f)})}),3)):X.return(N)})}; TEE=function(J,R){return f$Y(function(N){return N.publicName===J&&N.userIdentifier!==void 0},R)}; $hB=function(){var J,R,N,C;return g.Y(function(X){switch(X.K){case 1:J=L3();if((R=J)==null?0:R.hasSucceededOnce)return X.return(!0);if(C9&&X6()&&!i4()||g.iC)return X.return(!1);try{if(N=self,!(N.indexedDB&&N.IDBIndex&&N.IDBKeyRange&&N.IDBObjectStore))return X.return(!1)}catch(u){return X.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return X.return(!1);g.Ef(X,2);C={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.q(X,uLE(C,uC),4);case 4:return g.q(X,N6("yt-idb-test-do-not-use",uC),5);case 5:return X.return(!0);case 2:return g.K2(X),X.return(!1)}})}; H$B=function(){if(f9!==void 0)return f9;ai=!0;return f9=$hB().then(function(J){ai=!1;var R;if((R=S$())!=null&&R.K){var N;R={hasSucceededOnce:((N=L3())==null?void 0:N.hasSucceededOnce)||J};var C;(C=S$())==null||C.set("LAST_RESULT_ENTRY_KEY",R,2592E3,!0)}return J})}; TR=function(){return g.gY("ytglobal.idbToken_")||void 0}; g.$s=function(){var J=TR();return J?Promise.resolve(J):H$B().then(function(R){(R=R?uC:void 0)&&g.VE("ytglobal.idbToken_",R);return R})}; k9k=function(J){if(!g.iS())throw J=new g.B9("AUTH_INVALID",{dbName:J}),QT(J),J;var R=g.XU();return{actualName:J+":"+R,publicName:J,userIdentifier:R}}; vtQ=function(J,R,N,C){var X,u,f,H,k,v;return g.Y(function(W){switch(W.K){case 1:return u=(X=Error().stack)!=null?X:"",g.q(W,g.$s(),2);case 2:f=W.J;if(!f)throw H=g.AC("openDbImpl",J,R),g.Ac("ytidb_async_stack_killswitch")||(H.stack=H.stack+"\n"+u.substring(u.indexOf("\n")+1)),QT(H),H;DI(J);k=N?{actualName:J,publicName:J,userIdentifier:void 0}:k9k(J);g.Ef(W,3);return g.q(W,uLE(k,f),5);case 5:return g.q(W,XKE(k.actualName,R,C),6);case 6:return W.return(W.J);case 3:return v=g.K2(W),g.Ef(W,7),g.q(W,N6(k.actualName, f),9);case 9:g.MP(W,8);break;case 7:g.K2(W);case 8:throw v;}})}; W57=function(J,R,N){N=N===void 0?{}:N;return vtQ(J,R,!1,N)}; SpE=function(J,R,N){N=N===void 0?{}:N;return vtQ(J,R,!0,N)}; L5B=function(J,R){R=R===void 0?{}:R;var N,C;return g.Y(function(X){if(X.K==1)return g.q(X,g.$s(),2);if(X.K!=3){N=X.J;if(!N)return X.return();DI(J);C=k9k(J);return g.q(X,x9(C.actualName,R),3)}return g.q(X,N6(C.actualName,N),0)})}; I$f=function(J,R,N){J=J.map(function(C){return g.Y(function(X){return X.K==1?g.q(X,x9(C.actualName,R),2):g.q(X,N6(C.actualName,N),0)})}); return Promise.all(J).then(function(){})}; F5k=function(J){var R=R===void 0?{}:R;var N,C;return g.Y(function(X){if(X.K==1)return g.q(X,g.$s(),2);if(X.K!=3){N=X.J;if(!N)return X.return();DI(J);return g.q(X,TEE(J,N),3)}C=X.J;return g.q(X,I$f(C,R,N),0)})}; EtE=function(J,R){R=R===void 0?{}:R;var N;return g.Y(function(C){if(C.K==1)return g.q(C,g.$s(),2);if(C.K!=3){N=C.J;if(!N)return C.return();DI(J);return g.q(C,x9(J,R),3)}return g.q(C,N6(J,N),0)})}; H$=function(J,R){Jg.call(this,J,R);this.options=R;DI(J)}; M_f=function(J,R){var N;return function(){N||(N=new H$(J,R));return N}}; g.ks=function(J,R){return M_f(J,R)}; v$=function(J){return g.oN(K5n(),J)}; a$P=function(J,R,N,C){var X,u,f;return g.Y(function(H){switch(H.K){case 1:return X={config:J,hashData:R,timestamp:C!==void 0?C:(0,g.g9)()},g.q(H,v$(N),2);case 2:return u=H.J,g.q(H,u.clear("hotConfigStore"),3);case 3:return g.q(H,g.e$(u,"hotConfigStore",X),4);case 4:return f=H.J,H.return(f)}})}; Qog=function(J,R,N,C,X){var u,f,H;return g.Y(function(k){switch(k.K){case 1:return u={config:J,hashData:R,configData:N,timestamp:X!==void 0?X:(0,g.g9)()},g.q(k,v$(C),2);case 2:return f=k.J,g.q(k,f.clear("coldConfigStore"),3);case 3:return g.q(k,g.e$(f,"coldConfigStore",u),4);case 4:return H=k.J,k.return(H)}})}; ntE=function(J){var R,N;return g.Y(function(C){return C.K==1?g.q(C,v$(J),2):C.K!=3?(R=C.J,N=void 0,g.q(C,g.P9(R,["coldConfigStore"],{mode:"readwrite",QK:!0},function(X){return g.bS(X.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(u){N=u.getValue()})}),3)):C.return(N)})}; Dh8=function(J){var R,N;return g.Y(function(C){return C.K==1?g.q(C,v$(J),2):C.K!=3?(R=C.J,N=void 0,g.q(C,g.P9(R,["hotConfigStore"],{mode:"readwrite",QK:!0},function(X){return g.bS(X.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(u){N=u.getValue()})}),3)):C.return(N)})}; soE=function(){return g.Y(function(J){return g.q(J,F5k("ytGcfConfig"),0)})}; W$=function(){g.l.call(this);this.J=[];this.K=[];var J=g.gY("yt.gcf.config.hotUpdateCallbacks");J?(this.J=[].concat(g.Q(J)),this.K=J):(this.K=[],g.VE("yt.gcf.config.hotUpdateCallbacks",this.K))}; M6=function(){var J=this;this.U=!1;this.V=this.Z=0;this.S=new W$;this.QR={iwa:function(){J.U=!0}, VpB:function(){return J.K}, PPM:function(R){Sb(J,R)}, Sw:function(R){J.Sw(R)}, IqO:function(R){L9(J,R)}, Te:function(){return J.coldHashData}, DA:function(){return J.hotHashData}, LSM:function(){return J.J}, T5O:function(){return IN()}, MpB:function(){return FR()}, xif:function(){return g.gY("yt.gcf.config.coldHashData")}, Yb8:function(){return g.gY("yt.gcf.config.hotHashData")}, sXB:function(){BEE(J)}, g2O:function(){J.Sw(void 0);Ev(J);delete M6.instance}, QXa:function(R){J.V=R}, GG3:function(){return J.V}}}; O$P=function(){if(!M6.instance){var J=new M6;M6.instance=J}return M6.instance}; qpQ=function(J){var R;g.Y(function(N){if(N.K==1)return g.Ac("start_client_gcf")||g.Ac("delete_gcf_config_db")?g.Ac("start_client_gcf")?g.q(N,g.$s(),3):N.ZM(2):N.return();N.K!=2&&((R=N.J)&&g.iS()&&!g.Ac("delete_gcf_config_db")?(J.U=!0,BEE(J)):(Z$k(J),dhg(J)));return g.Ac("delete_gcf_config_db")?g.q(N,soE(),0):N.ZM(0)})}; K9=function(){var J;return(J=FR())!=null?J:g.iL("RAW_HOT_CONFIG_GROUP")}; AX8=function(J){var R,N,C,X,u,f;return g.Y(function(H){switch(H.K){case 1:if(J.J)return H.return(FR());if(!J.U)return R=g.AC("getHotConfig IDB not initialized"),HR(R),H.return(Promise.reject(R));N=TR();C=g.iL("TIME_CREATED_MS");if(!N){X=g.AC("getHotConfig token error");HR(X);H.ZM(2);break}return g.q(H,Dh8(N),3);case 3:if((u=H.J)&&u.timestamp>C)return Sb(J,u.config),J.Sw(u.hashData),H.return(FR());case 2:dhg(J);if(!(N&&J.J&&J.hotHashData)){H.ZM(4);break}return g.q(H,a$P(J.J,J.hotHashData,N,C),4);case 4:return J.J? H.return(FR()):(f=new g.C3("Config not available in ytConfig"),HR(f),H.return(Promise.reject(f)))}})}; rXQ=function(J){var R,N,C,X,u,f;return g.Y(function(H){switch(H.K){case 1:if(J.K)return H.return(IN());if(!J.U)return R=g.AC("getColdConfig IDB not initialized"),HR(R),H.return(Promise.reject(R));N=TR();C=g.iL("TIME_CREATED_MS");if(!N){X=g.AC("getColdConfig");HR(X);H.ZM(2);break}return g.q(H,ntE(N),3);case 3:if((u=H.J)&&u.timestamp>C)return L9(J,u.config),Ypf(J,u.configData),Ev(J,u.hashData),H.return(IN());case 2:Z$k(J);if(!(N&&J.K&&J.coldHashData&&J.configData)){H.ZM(4);break}return g.q(H,Qog(J.K, J.coldHashData,J.configData,N,C),4);case 4:return J.K?H.return(IN()):(f=new g.C3("Config not available in ytConfig"),HR(f),H.return(Promise.reject(f)))}})}; BEE=function(J){if(!J.J||!J.K){if(!TR()){var R=g.AC("scheduleGetConfigs");HR(R)}J.Z||(J.Z=g.Nh.ou(function(){return g.Y(function(N){switch(N.K){case 1:return g.Ef(N,2),g.q(N,AX8(J),4);case 4:g.MP(N,3);break;case 2:g.K2(N);case 3:return g.Ef(N,5),g.q(N,rXQ(J),7);case 7:g.MP(N,6);break;case 5:g.K2(N);case 6:J.Z&&(J.Z=0),g.IQ(N)}})},100))}}; jok=function(J,R,N){var C,X,u;return g.Y(function(f){switch(f.K){case 1:if(!g.Ac("start_client_gcf")){f.ZM(0);break}N&&Sb(J,N);J.Sw(R);C=TR();if(!C){f.ZM(3);break}if(N){f.ZM(4);break}return g.q(f,Dh8(C),5);case 5:X=f.J,N=(u=X)==null?void 0:u.config;case 4:return g.q(f,a$P(N,R,C),3);case 3:if(N)for(var H=N,k=g.K(J.S.K),v=k.next();!v.done;v=k.next())v=v.value,v(H);g.IQ(f)}})}; mhf=function(J,R,N){var C,X,u,f;return g.Y(function(H){if(H.K==1){if(!g.Ac("start_client_gcf"))return H.ZM(0);Ev(J,R);return(C=TR())?N?H.ZM(4):g.q(H,ntE(C),5):H.ZM(0)}H.K!=4&&(X=H.J,N=(u=X)==null?void 0:u.config);if(!N)return H.ZM(0);f=N.configData;return g.q(H,Qog(N,R,f,C),0)})}; V_E=function(){var J=O$P(),R=(0,g.g9)()-J.V;if(!(J.V!==0&&R0&&(R.request={internalExperimentFlags:N});UhE(J,void 0,R);pKY(void 0,R);l$n(void 0,R);PcY(J,void 0,R);zwg(void 0,R);g.Ac("start_client_gcf")&&ew2(void 0,R);g.iL("DELEGATED_SESSION_ID")&& !g.Ac("pageid_as_header_web")&&(R.user={onBehalfOfUser:g.iL("DELEGATED_SESSION_ID")});!g.Ac("fill_delegate_context_in_gel_killswitch")&&(J=g.iL("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(R.user=Object.assign({},R.user,{serializedDelegationContext:J}));J=g.iL("INNERTUBE_CONTEXT");var C;if(g.Ac("enable_persistent_device_token")&&(J==null?0:(C=J.client)==null?0:C.rolloutToken)){var X;R.client.rolloutToken=J==null?void 0:(X=J.client)==null?void 0:X.rolloutToken}C=Object;X=C.assign;J=R.client; N={};for(var u=g.K(Object.entries(WR(g.iL("DEVICE","")))),f=u.next();!f.done;f=u.next()){var H=g.K(f.value);f=H.next().value;H=H.next().value;f==="cbrand"?N.deviceMake=H:f==="cmodel"?N.deviceModel=H:f==="cbr"?N.browserName=H:f==="cbrver"?N.browserVersion=H:f==="cos"?N.osName=H:f==="cosver"?N.osVersion=H:f==="cplatform"&&(N.platform=H)}R.client=X.call(C,J,N);return R}; UhE=function(J,R,N){J=J.CU;if(J==="WEB"||J==="MWEB"||J===1||J===2)if(R){N=ii(R,pa,96)||new pa;var C=yv();C=Object.keys(wKE).indexOf(C);C=C===-1?null:C;C!==null&&EX(N,3,C);ui(R,pa,96,N)}else N&&(N.client.mainAppWebInfo=(C=N.client.mainAppWebInfo)!=null?C:{},N.client.mainAppWebInfo.webDisplayMode=yv())}; pKY=function(J,R){var N=g.gY("yt.embedded_player.embed_url");N&&(J?(R=ii(J,wl,7)||new wl,IZ(R,4,N),ui(J,wl,7,R)):R&&(R.thirdParty={embedUrl:N}))}; l$n=function(J,R){var N;if(g.Ac("web_log_memory_total_kbytes")&&((N=g.mB.navigator)==null?0:N.deviceMemory)){var C;N=(C=g.mB.navigator)==null?void 0:C.deviceMemory;J?gV(J,95,H2(N*1E6)):R&&(R.client.memoryTotalKbytes=""+N*1E6)}}; PcY=function(J,R,N){if(J.appInstallData)if(R){var C;N=(C=ii(R,U0,62))!=null?C:new U0;IZ(N,6,J.appInstallData);ui(R,U0,62,N)}else N&&(N.client.configInfo=N.client.configInfo||{},N.client.configInfo.appInstallData=J.appInstallData)}; zwg=function(J,R){var N=OmE();N&&(J?EX(J,61,cXQ[N]):R&&(R.client.connectionType=N));g.Ac("web_log_effective_connection_type")&&(N=du8())&&(J?EX(J,94,hwf[N]):R&&(R.client.effectiveConnectionType=N))}; yXg=function(J,R,N){N=N===void 0?{}:N;var C={};g.iL("EOM_VISITOR_DATA")?C={"X-Goog-EOM-Visitor-Id":g.iL("EOM_VISITOR_DATA")}:C={"X-Goog-Visitor-Id":N.visitorData||g.iL("VISITOR_DATA","")};if(R&&R.includes("www.youtube-nocookie.com"))return C;R=N.iJ||g.iL("AUTHORIZATION");R||(J?R="Bearer "+g.gY("gapi.auth.getToken")().access_token:(J=ahE().J9(n9),g.Ac("pageid_as_header_web")||delete J["X-Goog-PageId"],C=Object.assign({},C,J)));R&&(C.Authorization=R);return C}; ew2=function(J,R){var N=V_E();if(N){var C=N.coldConfigData,X=N.coldHashData;N=N.hotHashData;if(J){var u;R=(u=ii(J,U0,62))!=null?u:new U0;C=IZ(R,1,C);IZ(C,3,X).Sw(N);ui(J,U0,62,R)}else R&&(R.client.configInfo=R.client.configInfo||{},C&&(R.client.configInfo.coldConfigData=C),X&&(R.client.configInfo.coldHashData=X),N&&(R.client.configInfo.hotHashData=N))}}; DZ=function(J,R){this.version=J;this.args=R}; Ys=function(J,R){this.topic=J;this.K=R}; gW=function(J,R){var N=Vn();N&&N.publish.call(N,J.toString(),J,R)}; t_B=function(J){var R=G9f,N=Vn();if(!N)return 0;var C=N.subscribe(R.toString(),function(X,u){var f=g.gY("ytPubsub2Pubsub2SkipSubKey");f&&f==C||(f=function(){if(Uv[C])try{if(u&&R instanceof Ys&&R!=X)try{var H=R.K,k=u;if(!k.args||!k.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!H.Ft){var v=new H;H.Ft=v.version}var W=H.Ft}catch(S){}if(!W||k.version!=W)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{u=Reflect.construct(H, g.t_(k.args))}catch(S){throw S.message="yt.pubsub2.Data.deserialize(): "+S.message,S;}}catch(S){throw S.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+R.toString()+": "+S.message,S;}J.call(window,u)}catch(S){g.TO(S)}},b$Q[R.toString()]?g.k9()?g.Nh.ou(f):g.BR(f,0):f())}); Uv[C]=!0;p9[R.toString()]||(p9[R.toString()]=[]);p9[R.toString()].push(C);return C}; oHg=function(){var J=xhE,R=t_B(function(N){J.apply(void 0,arguments);JHY(R)}); return R}; JHY=function(J){var R=Vn();R&&(typeof J==="number"&&(J=[J]),g.Ts(J,function(N){R.unsubscribeByKey(N);delete Uv[N]}))}; Vn=function(){return g.gY("ytPubsub2Pubsub2Instance")}; lC=function(J,R,N){N=N===void 0?{sampleRate:.1}:N;Math.random()uZE||f=Ha8&&(tg++,g.Ac("abandon_compression_after_N_slow_zips")?bC===g.Yq("compression_disable_point")&&tg>k6f&&(hg=!1):hg=!1);vHE(R);C.headers||(C.headers={});C.headers["Content-Encoding"]="gzip";C.postBody=J;C.postParams=void 0;X(N,C)}; W62=function(J){var R=R===void 0?!1:R;var N=N===void 0?!1:N;var C=(0,g.g9)(),X={startTime:C,ticks:{},infos:{}},u=R?g.gY("yt.logging.gzipForFetch",!1):!0;if(hg&&u){if(!J.body)return J;try{var f=N?J.body:typeof J.body==="string"?J.body:JSON.stringify(J.body);u=f;if(!N&&typeof f==="string"){var H=iaY(f);if(H!=null&&(H>uZE||H=Ha8)if(tg++,g.Ac("abandon_compression_after_N_slow_zips")||g.Ac("abandon_compression_after_N_slow_zips_lr")){R=tg/bC;var v=k6f/g.Yq("compression_disable_point");bC>0&&bC%g.Yq("compression_disable_point")===0&&R>=v&&(hg=!1)}else hg=!1;vHE(X)}}J.headers=Object.assign({},{"Content-Encoding":"gzip"},J.headers||{});J.body=u;return J}catch(W){return HR(W),J}}else return J}; iaY=function(J){try{return(new Blob(J.split(""))).size}catch(R){return HR(R),null}}; vHE=function(J){g.Ac("gel_compression_csi_killswitch")||!g.Ac("log_gel_compression_latency")&&!g.Ac("log_gel_compression_latency_lr")||lC("gel_compression",J,{sampleRate:.1})}; Jd=function(J){var R=this;this.lH=this.K=!1;this.potentialEsfErrorCounter=this.J=0;this.handleError=function(){}; this.vy=function(){}; this.now=Date.now;this.Lf=!1;this.QR={U8C:function(W){R.al=W}, jXB:function(){R.Qe()}, sf:function(){R.RV()}, a_:function(W){return g.Y(function(S){return g.q(S,R.a_(W),0)})}, hQ:function(W,S){return R.hQ(W,S)}, r0:function(){R.r0()}}; var N;this.N4=(N=J.N4)!=null?N:100;var C;this.Bg=(C=J.Bg)!=null?C:1;var X;this.Hg=(X=J.Hg)!=null?X:2592E6;var u;this.lA=(u=J.lA)!=null?u:12E4;var f;this.EW=(f=J.EW)!=null?f:5E3;var H;this.al=(H=J.al)!=null?H:void 0;this.tT=!!J.tT;var k;this.ag=(k=J.ag)!=null?k:.1;var v;this.qx=(v=J.qx)!=null?v:10;J.handleError&&(this.handleError=J.handleError);J.vy&&(this.vy=J.vy);J.Lf&&(this.Lf=J.Lf);J.lH&&(this.lH=J.lH);this.b3=J.b3;this.R6=J.R6;this.Ru=J.Ru;this.Me=J.Me;this.sendFn=J.sendFn;this.Gy=J.Gy;this.S$= J.S$;xs(this)&&(!this.b3||this.b3("networkless_logging"))&&S0f(this)}; S0f=function(J){xs(J)&&!J.Lf&&(J.K=!0,J.tT&&Math.random()<=J.ag&&J.Ru.Ef(J.al),J.r0(),J.Me.Tj()&&J.Qe(),J.Me.listen(J.Gy,J.Qe.bind(J)),J.Me.listen(J.S$,J.RV.bind(J)))}; F6B=function(J,R){if(!xs(J))throw Error("IndexedDB is not supported: updateRequestHandlers");var N=R.options.onError?R.options.onError:function(){}; R.options.onError=function(X,u){var f,H,k,v;return g.Y(function(W){switch(W.K){case 1:f=L6g(u);(H=I1k(u))&&J.b3&&J.b3("web_enable_error_204")&&J.handleError(Error("Request failed due to compression"),R.url,u);if(!(J.b3&&J.b3("nwl_consider_error_code")&&f||J.b3&&!J.b3("nwl_consider_error_code")&&J.potentialEsfErrorCounter<=J.qx)){W.ZM(2);break}if(!J.Me.Nx){W.ZM(3);break}return g.q(W,J.Me.Nx(),3);case 3:if(J.Me.Tj()){W.ZM(2);break}N(X,u);if(!J.b3||!J.b3("nwl_consider_error_code")||((k=R)==null?void 0: k.id)===void 0){W.ZM(6);break}return g.q(W,J.Ru.vM(R.id,J.al,!1),6);case 6:return W.return();case 2:if(J.b3&&J.b3("nwl_consider_error_code")&&!f&&J.potentialEsfErrorCounter>J.qx)return W.return();J.potentialEsfErrorCounter++;if(((v=R)==null?void 0:v.id)===void 0){W.ZM(8);break}return R.sendCount=400&&J<=599?!1:!0}; I1k=function(J){var R;J=J==null?void 0:(R=J.error)==null?void 0:R.code;return!(J!==400&&J!==415)}; EHB=function(){if(RI)return RI();var J={};RI=g.ks("LogsDatabaseV2",{Fm:(J.LogsRequestsStore={P4:2},J),shared:!1,upgrade:function(R,N,C){N(2)&&g.p3(R,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});N(3);N(5)&&(C=C.objectStore("LogsRequestsStore"),C.K.indexNames.contains("newRequest")&&C.K.deleteIndex("newRequest"),g.c9(C,"newRequestV2",["status","interface","timestamp"]));N(7)&&lS(R,"sapisid");N(9)&&lS(R,"SWHealthLog")}, version:9});return RI()}; Ni=function(J){return g.oN(EHB(),J)}; K6B=function(J,R){var N,C,X,u;return g.Y(function(f){if(f.K==1)return N={startTime:(0,g.g9)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.q(f,Ni(R),2);if(f.K!=3)return C=f.J,X=Object.assign({},J,{options:JSON.parse(JSON.stringify(J.options)),interface:g.iL("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.q(f,g.e$(C,"LogsRequestsStore",X),3);u=f.J;N.ticks.tc=(0,g.g9)();MWf(N);return f.return(u)})}; a1n=function(J,R){var N,C,X,u,f,H,k,v;return g.Y(function(W){if(W.K==1)return N={startTime:(0,g.g9)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.q(W,Ni(R),2);if(W.K!=3)return C=W.J,X=g.iL("INNERTUBE_CONTEXT_CLIENT_NAME",0),u=[J,X,0],f=[J,X,(0,g.g9)()],H=IDBKeyRange.bound(u,f),k="prev",g.Ac("use_fifo_for_networkless")&&(k="next"),v=void 0,g.q(W,g.P9(C,["LogsRequestsStore"],{mode:"readwrite",QK:!0},function(S){return g.bS(S.objectStore("LogsRequestsStore").index("newRequestV2"), {query:H,direction:k},function(L){L.getValue()&&(v=L.getValue(),J==="NEW"&&(v.status="QUEUED",L.update(v)))})}),3); N.ticks.tc=(0,g.g9)();MWf(N);return W.return(v)})}; Qpn=function(J,R){var N;return g.Y(function(C){if(C.K==1)return g.q(C,Ni(R),2);N=C.J;return C.return(g.P9(N,["LogsRequestsStore"],{mode:"readwrite",QK:!0},function(X){var u=X.objectStore("LogsRequestsStore");return u.get(J).then(function(f){if(f)return f.status="QUEUED",g.zB(u,f).then(function(){return f})})}))})}; nH8=function(J,R,N,C){N=N===void 0?!0:N;var X;return g.Y(function(u){if(u.K==1)return g.q(u,Ni(R),2);X=u.J;return u.return(g.P9(X,["LogsRequestsStore"],{mode:"readwrite",QK:!0},function(f){var H=f.objectStore("LogsRequestsStore");return H.get(J).then(function(k){return k?(k.status="NEW",N&&(k.sendCount+=1),C!==void 0&&(k.options.compress=C),g.zB(H,k).then(function(){return k})):g.r9.resolve(void 0)})}))})}; D0Y=function(J,R){var N;return g.Y(function(C){if(C.K==1)return g.q(C,Ni(R),2);N=C.J;return C.return(N.delete("LogsRequestsStore",J))})}; spn=function(J){var R,N;return g.Y(function(C){if(C.K==1)return g.q(C,Ni(J),2);R=C.J;N=(0,g.g9)()-2592E6;return g.q(C,g.P9(R,["LogsRequestsStore"],{mode:"readwrite",QK:!0},function(X){return g.hC(X.objectStore("LogsRequestsStore"),{},function(u){if(u.getValue().timestamp<=N)return u.delete().then(function(){return g.yT(u)})})}),0)})}; Bl7=function(){g.Y(function(J){return g.q(J,F5k("LogsDatabaseV2"),0)})}; MWf=function(J){g.Ac("nwl_csi_killswitch")||lC("networkless_performance",J,{sampleRate:1})}; ZaY=function(J){return g.oN(Oa2(),J)}; d0E=function(J){var R,N;g.Y(function(C){if(C.K==1)return g.q(C,ZaY(J),2);R=C.J;N=(0,g.g9)()-2592E6;return g.q(C,g.P9(R,["SWHealthLog"],{mode:"readwrite",QK:!0},function(X){return g.hC(X.objectStore("SWHealthLog"),{},function(u){if(u.getValue().timestamp<=N)return u.delete().then(function(){return g.yT(u)})})}),0)})}; q0E=function(J){var R;return g.Y(function(N){if(N.K==1)return g.q(N,ZaY(J),2);R=N.J;return g.q(N,R.clear("SWHealthLog"),0)})}; g.C5=function(J,R,N,C,X,u,f){X=X===void 0?"":X;u=u===void 0?!1:u;f=f===void 0?!1:f;if(J)if(N&&!g.Rc())J&&(J=g.j8(g.U5(J)),J===g.gd.toString()||J.startsWith("data")?J="":(J=g.wd(P7(J)).toString(),J=g.Ns(g.jz(J))),g.MK(J)||(J=X5("IFRAME",{src:'javascript:""',style:"display:none"}),hL(J).body.appendChild(J)));else if(X)mh(J,R,"POST",X,C);else if(g.iL("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||C||f)mh(J,R,"GET","",C,void 0,u,f);else{b:{try{var H=new aTE({url:J});if(H.V&& H.J||H.Z){var k=lD(g.zF(5,J));var v=!(!k||!k.endsWith("/aclk")||x7(J,"ri")!=="1");break b}}catch(W){}v=!1}v?AHB(J)?(R&&R(),N=!0):N=!1:N=!1;N||Y0n(J,R)}}; AHB=function(J,R){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(J,R===void 0?"":R))return!0}catch(N){}return!1}; Y0n=function(J,R){var N=new Image,C=""+rHk++;XI[C]=N;N.onload=N.onerror=function(){R&&XI[C]&&R();delete XI[C]}; N.src=J}; jpk=function(J){var R;return((R=document.featurePolicy)==null?0:R.allowedFeatures().includes("attribution-reporting"))?J+"&nis=6":J+"&nis=5"}; u0=function(){i0||(i0=new W9("yt.offline"));return i0}; m0g=function(J){if(g.Ac("offline_error_handling")){var R=u0().get("errors",!0)||{};R[J.message]={name:J.name,stack:J.stack};J.level&&(R[J.message].level=J.level);u0().set("errors",R,2592E3,!0)}}; f5=function(){this.K=new Map;this.J=!1}; TA=function(){if(!f5.instance){var J=g.gY("yt.networkRequestMonitor.instance")||new f5;g.VE("yt.networkRequestMonitor.instance",J);f5.instance=J}return f5.instance}; $A=function(){g.iD.call(this);var J=this;this.J=!1;this.K=bNn();this.K.listen("networkstatus-online",function(){if(J.J&&g.Ac("offline_error_handling")){var R=u0().get("errors",!0);if(R){for(var N in R)if(R[N]){var C=new g.C3(N,"sent via offline_errors");C.name=R[N].name;C.stack=R[N].stack;C.level=R[N].level;g.TO(C)}u0().set("errors",{},2592E3,!0)}}})}; VW8=function(){if(!$A.instance){var J=g.gY("yt.networkStatusManager.instance")||new $A;g.VE("yt.networkStatusManager.instance",J);$A.instance=J}return $A.instance}; g.HG=function(J){J=J===void 0?{}:J;g.iD.call(this);var R=this;this.K=this.Z=0;this.J=VW8();var N=g.gY("yt.networkStatusManager.instance.listen").bind(this.J);N&&(J.rateLimit?(this.rateLimit=J.rateLimit,N("networkstatus-online",function(){gH2(R,"publicytnetworkstatus-online")}),N("networkstatus-offline",function(){gH2(R,"publicytnetworkstatus-offline")})):(N("networkstatus-online",function(){R.dispatchEvent("publicytnetworkstatus-online")}),N("networkstatus-offline",function(){R.dispatchEvent("publicytnetworkstatus-offline")})))}; gH2=function(J,R){J.rateLimit?J.K?(g.Nh.An(J.Z),J.Z=g.Nh.ou(function(){J.V!==R&&(J.dispatchEvent(R),J.V=R,J.K=(0,g.g9)())},J.rateLimit-((0,g.g9)()-J.K))):(J.dispatchEvent(R),J.V=R,J.K=(0,g.g9)()):J.dispatchEvent(R)}; vG=function(){var J=Jd.call;kA||(kA=new g.HG({MWB:!0,bVp:!0}));J.call(Jd,this,{Ru:{Ef:spn,xC:D0Y,XL:a1n,rN3:Qpn,vM:nH8,set:K6B},Me:kA,handleError:function(R,N,C){var X,u=C==null?void 0:(X=C.error)==null?void 0:X.code;if(u===400||u===415){var f;HR(new g.C3(R.message,N,C==null?void 0:(f=C.error)==null?void 0:f.code),void 0,void 0,void 0,!0)}else g.TO(R)}, vy:HR,sendFn:U0g,now:g.g9,sG:m0g,R6:g.H9(),Gy:"publicytnetworkstatus-online",S$:"publicytnetworkstatus-offline",tT:!0,ag:.1,qx:g.Yq("potential_esf_error_limit",10),b3:g.Ac,Lf:!(g.iS()&&g.ez(document.location.toString())!=="www.youtube-nocookie.com")});this.V=new g.Qt;g.Ac("networkless_immediately_drop_all_requests")&&Bl7();EtE("LogsDatabaseV2")}; WG=function(){var J=g.gY("yt.networklessRequestController.instance");J||(J=new vG,g.VE("yt.networklessRequestController.instance",J),g.Ac("networkless_logging")&&g.$s().then(function(R){J.al=R;S0f(J);J.V.resolve();J.tT&&Math.random()<=J.ag&&J.al&&d0E(J.al);g.Ac("networkless_immediately_drop_sw_health_store")&&pQE(J)})); return J}; pQE=function(J){var R;g.Y(function(N){if(!J.al)throw R=g.AC("clearSWHealthLogsDb"),R;return N.return(q0E(J.al).catch(function(C){J.handleError(C)}))})}; U0g=function(J,R,N,C){C=C===void 0?!1:C;R=g.Ac("web_fp_via_jspb")?Object.assign({},R):R;g.Ac("use_cfr_monitor")&&l1E(J,R);if(g.Ac("use_request_time_ms_header"))R.headers&&EE(J)&&(R.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.g9)())));else{var X;if((X=R.postParams)==null?0:X.requestTimeMs)R.postParams.requestTimeMs=Math.round((0,g.g9)())}N&&Object.keys(R).length===0?g.C5(J):R.compress?R.postBody?(typeof R.postBody!=="string"&&(R.postBody=JSON.stringify(R.postBody)),GR(J,R.postBody, R,g.V5,C)):GR(J,JSON.stringify(R.postParams),R,gp,C):g.V5(J,R)}; Sg=function(J,R){g.Ac("use_event_time_ms_header")&&EE(J)&&(R.headers||(R.headers={}),R.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.g9)())));return R}; l1E=function(J,R){var N=R.onError?R.onError:function(){}; R.onError=function(X,u){TA().requestComplete(J,!1);N(X,u)}; var C=R.onSuccess?R.onSuccess:function(){}; R.onSuccess=function(X,u){TA().requestComplete(J,!0);C(X,u)}}; g.L5=function(J){this.config_=null;J?this.config_=J:gtE()&&(this.config_=g.aN())}; g.II=function(J,R,N,C){function X(v){try{if((v===void 0?0:v)&&C.retry&&!C.networklessOptions.bypassNetworkless)u.method="POST",C.networklessOptions.writeThenSend?WG().writeThenSend(k,u):WG().sendAndWrite(k,u);else if(C.compress){var W=!C.networklessOptions.writeThenSend;if(u.postBody){var S=u.postBody;typeof S!=="string"&&(S=JSON.stringify(u.postBody));GR(k,S,u,g.V5,W)}else GR(k,JSON.stringify(u.postParams),u,gp,W)}else g.Ac("web_all_payloads_via_jspb")?g.V5(k,u):gp(k,u)}catch(L){if(L.name==="InvalidAccessError")HR(Error("An extension is blocking network request.")); else throw L;}} !g.iL("VISITOR_DATA")&&R!=="visitor_id"&&Math.random()<.01&&HR(new g.C3("Missing VISITOR_DATA when sending innertube request.",R,N,C));if(!J.isReady())throw J=new g.C3("innertube xhrclient not ready",R,N,C),g.TO(J),J;var u={headers:C.headers||{},method:"POST",postParams:N,postBody:C.postBody,postBodyFormat:C.postBodyFormat||"JSON",onTimeout:function(){C.onTimeout()}, onFetchTimeout:C.onTimeout,onSuccess:function(v,W){if(C.onSuccess)C.onSuccess(W)}, onFetchSuccess:function(v){if(C.onSuccess)C.onSuccess(v)}, onError:function(v,W){if(C.onError)C.onError(W)}, onFetchError:function(v){if(C.onError)C.onError(v)}, timeout:C.timeout,withCredentials:!0,compress:C.compress};u.headers["Content-Type"]||(u.headers["Content-Type"]="application/json");N="";var f=J.config_.oM;f&&(N=f);f=J.config_.EF||!1;var H=yXg(f,N,C);Object.assign(u.headers,H);u.headers.Authorization&&!N&&f&&(u.headers["x-origin"]=window.location.origin);var k=IS(""+N+("/youtubei/"+J.config_.innertubeApiVersion+"/"+R),{alt:"json"});g.gY("ytNetworklessLoggingInitializationOptions")&&PHE.isNwlInitialized?H$B().then(function(v){X(v)}):X(!1)}; g.aI=function(J,R,N){var C=g.FI();if(C&&R){var X=C.subscribe(J,function(){function u(){EK[X]&&R.apply&&typeof R.apply=="function"&&R.apply(N||window,f)} var f=arguments;try{g.Mi[J]?u():g.BR(u,0)}catch(H){g.TO(H)}},N); EK[X]=!0;K5[J]||(K5[J]=[]);K5[J].push(X);return X}return 0}; zpk=function(J){var R=g.aI("LOGGED_IN",function(N){J.apply(void 0,arguments);g.QR(R)})}; g.QR=function(J){var R=g.FI();R&&(typeof J==="number"?J=[J]:typeof J==="string"&&(J=[parseInt(J,10)]),g.Ts(J,function(N){R.unsubscribeByKey(N);delete EK[N]}))}; g.n5=function(J,R){var N=g.FI();return N?N.publish.apply(N,arguments):!1}; wQY=function(J){var R=g.FI();if(R)if(R.clear(J),J)epg(J);else for(var N in K5)epg(N)}; g.FI=function(){return g.mB.ytPubsubPubsubInstance}; epg=function(J){K5[J]&&(J=K5[J],g.Ts(J,function(R){EK[R]&&delete EK[R]}),J.length=0)}; g.Db=function(J,R,N){cHE(J,R,N===void 0?null:N)}; cHE=function(J,R,N){N=N===void 0?null:N;var C=hpB(J),X=document.getElementById(C),u=X&&imY(X),f=X&&!u;u?R&&R():(R&&(u=g.aI(C,R),R=""+g.en(R),yHY[R]=u),f||(X=G6E(J,C,function(){imY(X)||(XpB(X),g.n5(C),g.BR(function(){wQY(C)},0))},N)))}; G6E=function(J,R,N,C){C=C===void 0?null:C;var X=g.iu("SCRIPT");X.id=R;X.onload=function(){N&&setTimeout(N,0)}; X.onreadystatechange=function(){switch(X.readyState){case "loaded":case "complete":X.onload()}}; C&&X.setAttribute("nonce",C);g.t0(X,g.m6(J));J=document.getElementsByTagName("head")[0]||document.body;J.insertBefore(X,J.firstChild);return X}; hpB=function(J){var R=document.createElement("a");g.lx(R,J);J=R.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+uR(J)}; sK=function(J,R){if(J===R)J=!0;else if(Array.isArray(J)&&Array.isArray(R))J=g.uk(J,R,sK);else if(g.Pg(J)&&g.Pg(R))a:if(g.dq(J).length!=g.dq(R).length)J=!1;else{for(var N in J)if(!sK(J[N],R[N])){J=!1;break a}J=!0}else J=!1;return J}; Zb=function(J){var R=g.sf.apply(1,arguments);if(!BG(J)||R.some(function(C){return!BG(C)}))throw Error("Only objects may be merged."); R=g.K(R);for(var N=R.next();!N.done;N=R.next())OK(J,N.value)}; OK=function(J,R){for(var N in R)if(BG(R[N])){if(N in J&&!BG(J[N]))throw Error("Cannot merge an object into a non-object.");N in J||(J[N]={});OK(J[N],R[N])}else if(dP(R[N])){if(N in J&&!dP(J[N]))throw Error("Cannot merge an array into a non-array.");N in J||(J[N]=[]);baB(J[N],R[N])}else J[N]=R[N];return J}; baB=function(J,R){R=g.K(R);for(var N=R.next();!N.done;N=R.next())N=N.value,BG(N)?J.push(OK({},N)):dP(N)?J.push(baB([],N)):J.push(N);return J}; BG=function(J){return typeof J==="object"&&!Array.isArray(J)}; dP=function(J){return typeof J==="object"&&Array.isArray(J)}; qi=function(J){g.l.call(this);this.J=J}; Ad=function(J){qi.call(this,!0);this.K=J}; tWf=function(J,R){g.l.call(this);var N=this;this.V=[];this.D=!1;this.J=0;this.U=this.S=this.Z=!1;this.nC=null;var C=(0,g.wY)(J,R);this.K=new g.$t(function(){return C(N.nC)},300); g.P(this,this.K);this.W=this.X=Infinity}; x0Q=function(J,R){if(!R)return!1;for(var N=0;N-1)throw Error("Deps cycle for: "+R);if(J.J.has(R))return J.J.get(R);if(!J.K.has(R)){if(C)return;throw Error("No provider for: "+R);}C=J.K.get(R);N.push(R);if(C.YI!==void 0)var X=C.YI;else if(C.ObM)X=C[zA]?NpE(J,C[zA],N):[],X=C.ObM.apply(C,g.Q(X));else if(C.MU){X=C.MU;var u=X[zA]?NpE(J,X[zA],N):[];X=new (Function.prototype.bind.apply(X,[null].concat(g.Q(u))))}else throw Error("Could not resolve providers for: "+R);N.pop();C.LY8||J.J.set(R,X); return X}; NpE=function(J,R,N){return R?R.map(function(C){return C instanceof l0?eg(J,C.key,N,!0):eg(J,C,N)}):[]}; cG=function(){wP||(wP=new Ryk);return wP}; yR=function(){var J,R;return"h5vcc"in hd&&((J=hd.h5vcc.traceEvent)==null?0:J.traceBegin)&&((R=hd.h5vcc.traceEvent)==null?0:R.traceEnd)?1:"performance"in hd&&hd.performance.mark&&hd.performance.measure?2:0}; GA=function(J){var R=yR();switch(R){case 1:hd.h5vcc.traceEvent.traceBegin("YTLR",J);break;case 2:hd.performance.mark(J+"-start");break;case 0:break;default:xN(R,"unknown trace type")}}; CLP=function(J){var R=yR();switch(R){case 1:hd.h5vcc.traceEvent.traceEnd("YTLR",J);break;case 2:R=J+"-start";var N=J+"-end";hd.performance.mark(N);hd.performance.measure(J,R,N);break;case 0:break;default:xN(R,"unknown trace type")}}; XRB=function(J){var R,N;(N=(R=window).onerror)==null||N.call(R,J.message,"",0,0,J)}; i4n=function(J){var R=this;var N=N===void 0?0:N;var C=C===void 0?g.H9():C;this.V=N;this.scheduler=C;this.J=new g.Qt;this.K=J;for(J={L8:0};J.L8=1E3?u():X>=J?Md||(Md=KR(function(){u();Md=void 0},0)):f-k>=10&&(QS8(N,C.tier),H.Z=f)}; FhP=function(J,R){if(J.endpoint==="log_event"){g.Ac("more_accurate_gel_parser")&&H0().storePayload({isJspb:!1},J.payload);v0(J);var N=W0(J),C=new Map;C.set(N,[J.payload]);var X=SEf(J.payload)||"";R&&(Fo=new R);return new g.KC(function(u,f){Fo&&Fo.isReady()?ak(C,Fo,u,f,{bypassNetworkless:!0},!0,LR(X)):u()})}}; KhE=function(J,R,N){if(R.endpoint==="log_event"){v0(void 0,R);var C=W0(R,!0),X=new Map;X.set(C,[zd(R.payload)]);N&&(Fo=new N);return new g.KC(function(u){Fo&&Fo.isReady()?QD(X,Fo,u,{bypassNetworkless:!0},!0,LR(J)):u()})}}; W0=function(J,R){var N="";if(J.dangerousLogToVisitorSession)N="visitorOnlyApprovedKey";else if(J.cttAuthInfo){if(R===void 0?0:R){R=J.cttAuthInfo.token;N=J.cttAuthInfo;var C=new NO;N.videoId?C.setVideoId(N.videoId):N.playlistId&&JQ(C,2,nR,v2(N.playlistId));Dn[R]=C}else R=J.cttAuthInfo,N={},R.videoId?N.videoId=R.videoId:R.playlistId&&(N.playlistId=R.playlistId),B0[J.cttAuthInfo.token]=N;N=J.cttAuthInfo.token}return N}; Ik=function(J,R,N,C){J=J===void 0?{}:J;N=N===void 0?!1:N;new g.KC(function(X,u){var f=Et(N,C),H=f.V;f.V=!1;Ot(f.J);Ot(f.K);f.K=0;Fo&&Fo.isReady()?C===void 0&&g.Ac("enable_web_tiered_gel")?nqg(X,u,J,R,N,300,H):nqg(X,u,J,R,N,C,H):(QS8(N,C),X())})}; nqg=function(J,R,N,C,X,u,f){var H=Fo;N=N===void 0?{}:N;X=X===void 0?!1:X;u=u===void 0?200:u;f=f===void 0?!1:f;var k=new Map,v=new Map,W={isJspb:X,cttAuthInfo:C,tier:u},S={isJspb:X,cttAuthInfo:C};if(C!==void 0)X?(R=g.Ac("enable_web_tiered_gel")?H0().smartExtractMatchingEntries({keys:[W,S],sizeLimit:1E3}):H0().extractMatchingEntries(S),k.set(C,R),QD(k,H,J,N,!1,f)):(k=g.Ac("enable_web_tiered_gel")?H0().smartExtractMatchingEntries({keys:[W,S],sizeLimit:1E3}):H0().extractMatchingEntries(S),v.set(C,k), ak(v,H,J,R,N,!1,f));else if(X){R=g.K(Object.keys(Sd));for(v=R.next();!v.done;v=R.next())v=v.value,u=g.Ac("enable_web_tiered_gel")?H0().smartExtractMatchingEntries({keys:[W,S],sizeLimit:1E3}):H0().extractMatchingEntries({isJspb:!0,cttAuthInfo:v}),u.length>0&&k.set(v,u),(g.Ac("web_fp_via_jspb_and_json")&&N.writeThenSend||!g.Ac("web_fp_via_jspb_and_json"))&&delete Sd[v];QD(k,H,J,N,!1,f)}else{k=g.K(Object.keys(Sd));for(W=k.next();!W.done;W=k.next())W=W.value,S=g.Ac("enable_web_tiered_gel")?H0().smartExtractMatchingEntries({keys:[{isJspb:!1, cttAuthInfo:W,tier:u},{isJspb:!1,cttAuthInfo:W}],sizeLimit:1E3}):H0().extractMatchingEntries({isJspb:!1,cttAuthInfo:W}),S.length>0&&v.set(W,S),(g.Ac("web_fp_via_jspb_and_json")&&N.writeThenSend||!g.Ac("web_fp_via_jspb_and_json"))&&delete Sd[W];ak(v,H,J,R,N,!1,f)}}; QS8=function(J,R){function N(){Ik({writeThenSend:!0},void 0,J,R)} J=J===void 0?!1:J;R=R===void 0?200:R;var C=Et(J,R),X=C===DOP||C===sSf?5E3:Bp2;g.Ac("web_gel_timeout_cap")&&!C.K&&(X=KR(function(){N()},X),C.K=X); Ot(C.J);X=g.iL("LOGGING_BATCH_TIMEOUT",g.Yq("web_gel_debounce_ms",1E4));g.Ac("shorten_initial_gel_batch_timeout")&&Zn&&(X=O4Q);X=KR(function(){g.Yq("gel_min_batch_size")>0?H0().getSequenceCount({cttAuthInfo:void 0,isJspb:J,tier:R})>=Z48&&N():N()},X); C.J=X}; ak=function(J,R,N,C,X,u,f){X=X===void 0?{}:X;var H=Math.round((0,g.g9)()),k=J.size,v=dOE(f);J=g.K(J);var W=J.next();for(f={};!W.done;f={C5:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,tG:void 0,HZ:void 0},W=J.next()){var S=g.K(W.value);W=S.next().value;S=S.next().value;f.batchRequest=g.gq({context:g.Qn(R.config_||g.aN())});if(!g.l8(S)&&!g.Ac("throw_err_when_logevent_malformed_killswitch")){C();break}f.batchRequest.events=S;(S=B0[W])&&qE8(f.batchRequest,W,S);delete B0[W];f.dangerousLogToVisitorSession= W==="visitorOnlyApprovedKey";Acg(f.batchRequest,H,f.dangerousLogToVisitorSession);YEE(X);f.tG=function(L){g.Ac("start_client_gcf")&&g.Nh.ou(function(){return g.Y(function(I){return g.q(I,rcE(L),0)})}); k--;k||N()}; f.C5=0;f.HZ=function(L){return function(){L.C5++;if(X.bypassNetworkless&&L.C5===1)try{g.II(R,v,L.batchRequest,dz({writeThenSend:!0},L.dangerousLogToVisitorSession,L.tG,L.HZ,u)),Zn=!1}catch(I){g.TO(I),C()}k--;k||N()}}(f); try{g.II(R,v,f.batchRequest,dz(X,f.dangerousLogToVisitorSession,f.tG,f.HZ,u)),Zn=!1}catch(L){g.TO(L),C()}}}; QD=function(J,R,N,C,X,u){C=C===void 0?{}:C;var f=Math.round((0,g.g9)()),H={value:J.size},k=new Map([].concat(g.Q(J)));k=g.K(k);for(var v=k.next();!v.done;v=k.next()){var W=g.K(v.value).next().value,S=J.get(W);v=new HHE;var L=R.config_||g.aN(),I=new yJ,F=new lH;IZ(F,1,L.Pp);IZ(F,2,L.G1);EX(F,16,L.jT);IZ(F,17,L.innertubeContextClientVersion);if(L.Sj){var a=L.Sj,n=new U0;a.coldConfigData&&IZ(n,1,a.coldConfigData);a.appInstallData&&IZ(n,6,a.appInstallData);a.coldHashData&&IZ(n,3,a.coldHashData);a.hotHashData&& n.Sw(a.hotHashData);ui(F,U0,62,n)}(a=g.mB.devicePixelRatio)&&a!=1&&gV(F,65,JJ(a));a=rp();a!==""&&IZ(F,54,a);a=jQ();if(a.length>0){n=new eW;for(var B=0;B65535&&(J=1);Xi("BATCH_CLIENT_COUNTER",J);return J}; qE8=function(J,R,N){if(N.videoId)var C="VIDEO";else if(N.playlistId)C="PLAYLIST";else return;J.credentialTransferTokenTargetId=N;J.context=J.context||{};J.context.user=J.context.user||{};J.context.user.credentialTransferTokens=[{token:R,scope:C}]}; v0=function(J,R){if(!g.gY("yt.logging.transport.enableScrapingForTest")){var N=qO("il_payload_scraping");if((N!==void 0?String(N):"")==="enable_il_payload_scraping")Yu=[],g.VE("yt.logging.transport.enableScrapingForTest",!0),g.VE("yt.logging.transport.scrapedPayloadsForTesting",Yu),g.VE("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.VE("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.VE("yt.logging.transport.scrapeClientEvent",!0);else return}N=g.gY("yt.logging.transport.scrapedPayloadsForTesting");var C=g.gY("yt.logging.transport.payloadToScrape");R&&(R=R.payload,(R=g.gY("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(R)())&&N.push(R));R=g.gY("yt.logging.transport.scrapeClientEvent");if(C&&C.length>=1)for(var X=0;X0&&NJk(J,R,u)}else NJk(J,R)}; NJk=function(J,R,N){J=C4f(J);R=R?g.GF(R):"";N=N||5;v1()&&g.hc(J,R,N)}; C4f=function(J){for(var R=g.K(X1P),N=R.next();!N.done;N=R.next())J=Jh(J,N.value);return"ST-"+uR(J).toString(36)}; iI2=function(J){if(J.name==="JavaException")return!0;J=J.stack;return J.includes("chrome://")||J.includes("chrome-extension://")||J.includes("moz-extension://")}; u6B=function(){this.SW=[];this.d1=[]}; ed=function(){if(!z$){var J=z$=new u6B;J.d1.length=0;J.SW.length=0;feE(J,TJE)}return z$}; feE=function(J,R){R.d1&&J.d1.push.apply(J.d1,R.d1);R.SW&&J.SW.push.apply(J.SW,R.SW)}; $YE=function(J){function R(){return J.charCodeAt(C++)} var N=J.length,C=0;do{var X=wz(R);if(X===Infinity)break;var u=X>>3;switch(X&7){case 0:X=wz(R);if(u===2)return X;break;case 1:if(u===2)return;C+=8;break;case 2:X=wz(R);if(u===2)return J.substr(C,X);C+=X;break;case 5:if(u===2)return;C+=4;break;default:return}}while(C500));C++);C=X}else if(typeof J==="object")for(X in J){if(J[X]){var u=X;var f=J[X],H=R,k=N;u=typeof f!=="string"||u!=="clickTrackingParams"&&u!=="trackingParams"?0:(f=$YE(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?c0(u+".ve",f,H,k):0;C+=u;C+=c0(X,J[X],R,N);if(C>500)break}}else N[R]=hv(J),C+=N[R].length;else N[R]=hv(J),C+=N[R].length;return C}; c0=function(J,R,N,C){N+="."+J;J=hv(R);C[N]=J;return N.length+J.length}; hv=function(J){try{return(typeof J==="string"?J:String(JSON.stringify(J))).substr(0,500)}catch(R){return"unable to serialize "+typeof J+" ("+R.message+")"}}; Eq=function(J){g.yD(J)}; g.G$=function(J){g.yD(J,"WARNING")}; g.yD=function(J,R){var N=N===void 0?{}:N;N.name=g.iL("INNERTUBE_CONTEXT_CLIENT_NAME",1);N.version=g.iL("INNERTUBE_CONTEXT_CLIENT_VERSION");R=R===void 0?"ERROR":R;var C=!1;R=R===void 0?"ERROR":R;C=C===void 0?!1:C;if(J){J.hasOwnProperty("level")&&J.level&&(R=J.level);if(g.Ac("console_log_js_exceptions")){var X=[];X.push("Name: "+J.name);X.push("Message: "+J.message);J.hasOwnProperty("params")&&X.push("Error Params: "+JSON.stringify(J.params));J.hasOwnProperty("args")&&X.push("Error args: "+JSON.stringify(J.args)); X.push("File name: "+J.fileName);X.push("Stacktrace: "+J.stack);window.console.log(X.join("\n"),J)}if(!(kmE>=5)){X=vIE;var u=TA7(J),f=u.message||"Unknown Error",H=u.name||"UnknownError",k=u.stack||J.J||"Not available";if(k.startsWith(H+": "+f)){var v=k.split("\n");v.shift();k=v.join("\n")}v=u.lineNumber||"Not available";u=u.fileName||"Not available";var W=0;if(J.hasOwnProperty("args")&&J.args&&J.args.length)for(var S=0;S=500);S++);else if(J.hasOwnProperty("params")&& J.params){var L=J.params;if(typeof J.params==="object")for(S in L){if(L[S]){var I="params."+S,F=hv(L[S]);N[I]=F;W+=I.length+F.length;if(W>500)break}}else N.params=hv(L)}if(X.length)for(S=0;S=500);S++);navigator.vendor&&!N.hasOwnProperty("vendor")&&(N["device.vendor"]=navigator.vendor);N={message:f,name:H,lineNumber:v,fileName:u,stack:k,params:N,sampleWeight:1};X=Number(J.columnNumber);isNaN(X)||(N.lineNumber=N.lineNumber+":"+X);if(J.level==="IGNORED")J= 0;else a:{J=ed();X=g.K(J.d1);for(f=X.next();!f.done;f=X.next())if(f=f.value,N.message&&N.message.match(f.nj)){J=f.weight;break a}J=g.K(J.SW);for(X=J.next();!X.done;X=J.next())if(X=X.value,X.callback(N)){J=X.weight;break a}J=1}N.sampleWeight=J;J=g.K(Wjg);for(X=J.next();!X.done;X=J.next())if(X=X.value,X.nF[N.name])for(H=g.K(X.nF[N.name]),f=H.next();!f.done;f=H.next())if(S=f.value,f=N.message.match(S.KT)){N.params["params.error.original"]=f[0];H=S.groups;S={};for(v=0;v1E3&&g.G$(new g.C3("IL Attach cache exceeded limit"))}H= TT(N,R);C7.has(H)?$n(N,R):iW.set(H,!0)}}C=C.filter(function(W){W.csn!==R?(W.csn=R,W=!0):W=!1;return W}); N={csn:R,parentVe:N.getAsJson(),childVes:g.Yy(C,function(W){return W.getAsJson()})}; R==="UNDEFINED_CSN"?Hd("visualElementAttached",u,N):J?jd("visualElementAttached",N,J,u):g.Mz("visualElementAttached",N,u)}; ZIg=function(J,R,N,C,X){kn(N,R);C=Nj({cttAuthInfo:lK(R)||void 0},R);N={csn:R,ve:N.getAsJson(),eventType:1};X&&(N.clientData=X);R==="UNDEFINED_CSN"?Hd("visualElementShown",C,N):J?jd("visualElementShown",N,J,C):g.Mz("visualElementShown",N,C)}; dYg=function(J,R,N,C){var X=(C=C===void 0?!1:C)?16:8;C=Nj({cttAuthInfo:lK(R)||void 0,endOfSequence:C},R);N={csn:R,ve:N.getAsJson(),eventType:X};R==="UNDEFINED_CSN"?Hd("visualElementHidden",C,N):J?jd("visualElementHidden",N,J,C):g.Mz("visualElementHidden",N,C)}; q7E=function(J,R,N,C,X){vd(J,R,N,void 0,C,X)}; vd=function(J,R,N,C,X){kn(N,R);C=C||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var u=Nj({cttAuthInfo:lK(R)||void 0},R);N={csn:R,ve:N.getAsJson(),gestureType:C};X&&(N.clientData=X);R==="UNDEFINED_CSN"?Hd("visualElementGestured",u,N):J?jd("visualElementGestured",N,J,u):g.Mz("visualElementGestured",N,u)}; AfB=function(){var J=rP(16);for(var R=[],N=0;N0&&N.push(g.iu("BR"));N.push(g.uu(u))}):N.push(g.uu(C))}return N}; OI=function(J,R,N,C){if(N==="child"){g.Tz(R);var X;C===void 0?X=void 0:X=!Array.isArray(C)||C&&typeof C.C==="string"?[C]:C;N=rf8(J,X);N=g.K(N);for(J=N.next();!J.done;J=N.next())R.appendChild(J.value)}else N==="style"?g.Lz(R,"cssText",C?C:""):C===null||C===void 0?R.removeAttribute(N):(J=C.toString(),N==="href"&&(J=g.j8(g.U5(J))),R.setAttribute(N,J))}; g.c=function(J){g.sI.call(this,J);this.Fn=!0;this.D=!1;this.listeners=[]}; g.ZK=function(J,R){R?J.show():J.hide()}; g.da=function(J){g.c.call(this,J);this.l3=new g.al;g.P(this,this.l3)}; qj=function(J,R,N,C,X,u,f){f=f===void 0?null:f;g.da.call(this,R);this.api=J;this.macros={};this.componentType=N;this.S=this.X=null;this.EB=f;this.layoutId=C;this.interactionLoggingClientData=X;this.yO=u;this.HC=null;this.gP=new Ad(this.element);g.P(this,this.gP);this.oB=this.L(this.element,"click",this.onClick);this.tN=[];this.ma=new tWf(this.onClick,this);g.P(this,this.ma);this.R1=!1;this.PC=this.nC=null}; Ap=function(J,R){J=J===void 0?null:J;R=R===void 0?null:R;if(J==null)return g.G$(Error("Got null or undefined adText object")),"";var N=g.iR(J.text);if(!J.isTemplated)return N;if(R==null)return g.G$(Error("Missing required parameters for a templated message")),N;J=g.K(Object.entries(R));for(R=J.next();!R.done;R=J.next()){var C=g.K(R.value);R=C.next().value;C=C.next().value;N=N.replace("{"+R+"}",C)}return N}; jck=function(J){J=J===void 0?null:J;return J!=null&&(J=J.thumbnail,J!=null&&J.thumbnails!=null&&J.thumbnails.length!=0&&J.thumbnails[0].url!=null)?g.iR(J.thumbnails[0].url):""}; mYf=function(J){J=J===void 0?null:J;return J!=null&&(J=J.thumbnail,J!=null&&J.thumbnails!=null&&J.thumbnails.length!=0&&J.thumbnails[0].width!=null&&J.thumbnails[0].height!=null)?new g.a4(J.thumbnails[0].width||0,J.thumbnails[0].height||0):new g.a4(0,0)}; g.Yn=function(J){if(J.simpleText)return J.simpleText;if(J.runs){var R=[];J=g.K(J.runs);for(var N=J.next();!N.done;N=J.next())N=N.value,N.text&&R.push(N.text);return R.join("")}return""}; g.ra=function(J){if(J.simpleText)return J=document.createTextNode(J.simpleText),J;var R=[];if(J.runs)for(var N=0;N1){for(var R=[J[0]],N=1;N0&&(this.K=new g.$t(this.tP,R,this),g.P(this,this.K));this.U=new g.$t(this.tP,N,this);g.P(this,this.U);this.X=CjE(this.J,X,1,C);g.P(this,this.X);this.D=CjE(this.J,0,C,1);g.P(this,this.D);this.Z=new gJ;g.P(this,this.Z)}; sS=function(J,R,N){this.J=J;this.isAsync=R;this.K=N}; M$g=function(J){switch(J){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:xN(J,"unknown result type")}}; KTP=function(J,R){var N=1;J.isTrusted===!1&&(N=0);Xi("ISDSTAT",N);BF(N,"i.s_",{triggerContext:"sk",metadata:R});return N}; aIg=function(J,R){var N=[];R?R.isTrusted===!0?N.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):R.isTrusted===!1?N.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):N.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):N.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");BF(0,"a.s_",{metadata:J,states:N});Xi("ASDSTAT",0)}; BF=function(J,R,N){R=QiE[R];var C,X,u={detected:J===0,source:""+R.J+((C=N.triggerContext)!=null?C:"")+((X=N.uJ)!=null?X:""),detectionStates:N.states,durationMs:N.RQ};N.metadata&&(u.contentCpn=N.metadata.contentCpn,u.adCpn=N.metadata.adCpn);g.Mz("biscottiBasedDetection",u);R.K!==void 0&&(N=Number(g.iL("CATSTAT",0)),R.K!==void 0?(R=R.K,J=M$g(J),J=N&~(3<0}; r0=function(J,R,N,C,X,u){Lr.call(this,J,{C:"div",Y:"ytp-ad-skip-button-slot"},"skip-button",R,N,C,X);var f=this;this.dn=null;this.VO=!1;this.pC=u;this.U=this.api.N().experiments.b3("enable_modern_skip_button_on_web");this.eQ=!1;this.V=new g.da({C:"span",CC:["ytp-ad-skip-button-container"]});this.U&&this.V.element.classList.add("ytp-ad-skip-button-container-detached");this.api.T("enable_ad_pod_index_autohide")&&this.V.element.classList.add("ytp-ad-skip-button-container--clean-player");g.P(this,this.V); this.V.IB(this.element);this.J=this.Z=null;this.Xk=new g.ES(this.V,500,!1,100,function(){return f.hide()}); g.P(this,this.Xk);this.G7=new DO(this.V.element,15E3,5E3,.5,.5,this.U);g.P(this,this.G7);this.hide()}; Dz7=function(J){J=J.dn&&J.dn.adRendererCommands;return(J&&J.clickCommand&&g.z(J.clickCommand,g.mr)&&g.z(J.clickCommand,g.mr).commands||[]).some(function(R){return R.adLifecycleCommand?n9f(R.adLifecycleCommand):!1})}; n9f=function(J){return J.action==="END_LINEAR_AD"||J.action==="END_LINEAR_AD_PLACEMENT"}; VZ=function(J,R,N,C,X,u){Lr.call(this,J,{C:"div",Y:"ytp-ad-skip-ad-slot"},"skip-ad",R,N,C,X);this.dn=u;this.Z=!1;this.U=0;this.V=this.J=null;this.hide()}; siY=function(J,R){J.Z||(J.Z=!0,J.J&&(R?J.J.VO.hide():J.J.hide()),R?(J=J.V,J.Xk.show(),J.show()):J.V.show())}; g0=function(J,R,N,C){bW.call(this,J,R,N,C,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; US=function(J,R,N,C,X,u,f){u=u===void 0?!1:u;f=f===void 0?!1:f;qj.call(this,J,{C:"span",Y:"ytp-ad-simple-ad-badge"},"simple-ad-badge",R,N,C);this.V=X;this.K=this.qp("ytp-ad-simple-ad-badge");(this.J=u)&&this.K.classList.add("ytp-ad-simple-ad-badge--clean-player");f&&this.K.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; pr=function(J,R,N,C,X){X=X===void 0?!1:X;K7.call(this,"player-overlay",J,{},R,C);this.videoAdDurationSeconds=N;this.interactionLoggingClientData=C;this.Er=X}; ly=function(J,R){g.al.call(this);this.api=J;this.durationMs=R;this.K=null;this.cU=new gJ(this);g.P(this,this.cU);this.J=B9E;this.cU.L(this.api,"presentingplayerstatechange",this.zV);this.K=this.cU.L(this.api,"onAdPlaybackProgress",this.P1)}; PF=function(J){g.al.call(this);this.K=!1;this.Ul=0;this.cU=new gJ(this);g.P(this,this.cU);this.durationMs=J;this.pY=new g.dt(100);g.P(this,this.pY);this.cU.L(this.pY,"tick",this.P1);this.J={seekableStart:0,seekableEnd:J/1E3,current:0};this.start()}; g.z8=function(J,R){var N=Math.abs(Math.floor(J)),C=Math.floor(N/86400),X=Math.floor(N%86400/3600),u=Math.floor(N%3600/60);N=Math.floor(N%60);if(R){R="";C>0&&(R+=" "+C+" Dias");if(C>0||X>0)R+=" "+X+" Horas";R+=" "+u+" Minutos";R+=" "+N+" Segundos";C=R.trim()}else{R="";C>0&&(R+=C+":",X<10&&(R+="0"));if(C>0||X>0)R+=X+":",u<10&&(R+="0");R+=u+":";N<10&&(R+="0");C=R+N}return J>=0?C:"-"+C}; g.ea=function(J){return(!("button"in J)||typeof J.button!=="number"||J.button===0)&&!("shiftKey"in J&&J.shiftKey)&&!("altKey"in J&&J.altKey)&&!("metaKey"in J&&J.metaKey)&&!("ctrlKey"in J&&J.ctrlKey)}; w0=function(J,R,N,C,X,u,f){Lr.call(this,J,{C:"span",Y:f?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",R,N,C,X);this.videoAdDurationSeconds=u;this.J=null;this.api.T("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");f&&this.api.N().J&&(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"), C9&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()}; cF=function(J,R,N,C){WF.call(this,J,R,N,C,"ytp-video-ad-top-bar-title","ad-title");J.T("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")}; hl=function(J){this.content=J.content;if(J.commandRuns){J=g.K(J.commandRuns);for(var R=J.next();!R.done;R=J.next())R=R.value,this.loggingDirectives=g.z(R,O3g),R.onTap&&(this.interaction={onTap:R.onTap})}}; yZ=function(J,R,N,C){qj.call(this,J,{C:"div",Y:"ad-simple-attributed-string"},"ad-simple-attributed-string",R,N,C);this.hide()}; G8=function(J,R,N,C,X){qj.call(this,J,{C:"span",Y:X?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",R,N,C);this.J=X;this.adBadgeText=new yZ(this.api,this.layoutId,this.interactionLoggingClientData,this.yO);this.adBadgeText.IB(this.element);g.P(this,this.adBadgeText);X?(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"),C9&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))): this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; by=function(J,R,N,C,X){qj.call(this,J,{C:"span",Y:"ytp-ad-pod-index"},"ad-pod-index",R,N,C);this.J=X;this.api.N().J&&(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"),C9&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()}; tl=function(J,R,N,C){qj.call(this,J,{C:"div",Y:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",R,N,C);this.hide()}; xp=function(J,R){this.J=J;this.K=R}; JV=function(J,R,N){if(!J.getLength())return N!=null?N:Infinity;J=(R-J.J)/J.getLength();return g.I4(J,0,1)}; o_=function(J,R,N,C){C=C===void 0?!1:C;g.da.call(this,{C:"div",Y:"ytp-ad-persistent-progress-bar-container",j:[{C:"div",Y:"ytp-ad-persistent-progress-bar"}]});this.api=J;this.J=R;this.V=N;C&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.P(this,this.J);this.progressBar=this.qp("ytp-ad-persistent-progress-bar");this.K=-1;this.L(J,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; R_=function(J,R,N,C,X,u){qj.call(this,J,{C:"div",Y:"ytp-ad-player-overlay",j:[{C:"div",Y:"ytp-ad-player-overlay-flyout-cta"},{C:"div",Y:"ytp-ad-player-overlay-instream-info"},{C:"div",Y:"ytp-ad-player-overlay-skip-or-preview"},{C:"div",Y:"ytp-ad-player-overlay-progress-bar"},{C:"div",Y:"ytp-ad-player-overlay-instream-user-sentiment"},{C:"div",Y:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",R,N,C);this.dn=u;this.U=this.qp("ytp-ad-player-overlay-flyout-cta");this.api.N().T("web_rounded_thumbnails")&& this.U.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");this.K=this.qp("ytp-ad-player-overlay-instream-info");this.Z=null;Z3k(this)&&(J=X5("div"),g.FL(J,"ytp-ad-player-overlay-top-bar-gradients"),this.api.T("disable_ad_preview_for_instream_ads")&&g.FL(J,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),R=this.K,R.parentNode&&R.parentNode.insertBefore(J,R),(R=this.api.getVideoData(2))&&R.isListed&&R.title&&(N=new cF(this.api,this.layoutId,this.interactionLoggingClientData,this.yO), N.IB(J),N.init(Mj("ad-title"),{text:R.title},this.macros),g.P(this,N)),this.Z=J);this.V=null;this.W=this.qp("ytp-ad-player-overlay-skip-or-preview");this.T7=this.qp("ytp-ad-player-overlay-progress-bar");this.G7=this.qp("ytp-ad-player-overlay-instream-user-sentiment");this.VO=this.qp("ytp-ad-player-overlay-ad-disclosure-banner");this.J=X;g.P(this,this.J);this.hide()}; Z3k=function(J){J=J.api.N();return g.N3(J)&&J.J}; CL=function(J,R,N){var C={};R&&(C.v=R);N&&(C.list=N);J={name:J,locale:void 0,feature:void 0};for(var X in C)J[X]=C[X];C=g.bD("/sharing_services",J);g.C5(C)}; g.XE=function(J){J&=16777215;var R=[(J&16711680)>>16,(J&65280)>>8,J&255];J=R[0];var N=R[1];R=R[2];J=Number(J);N=Number(N);R=Number(R);if(J!=(J&255)||N!=(N&255)||R!=(R&255))throw Error('"('+J+","+N+","+R+'") is not a valid RGB color');N=J<<16|N<<8|R;return J<16?"#"+(16777216|N).toString(16).slice(1):"#"+N.toString(16)}; iw=function(J){this.K=new lc(J)}; dzk=function(){var J=!1;try{J=!!window.sessionStorage.getItem("session_logininfo")}catch(R){J=!0}return(g.iL("INNERTUBE_CLIENT_NAME")==="WEB"||g.iL("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&J}; uw=function(J){if(g.iL("LOGGED_IN",!0)&&dzk()){var R=g.iL("VALID_SESSION_TEMPDATA_DOMAINS",[]);var N=g.ez(window.location.href);N&&R.push(N);N=g.ez(J);g.cl(R,N)||!N&&Ea(J,"/")?(R=wt(J),(R=ob8(R))?(R=C4f(R),R=(R=g.y5(R)||null)?WR(R):{}):R=null):R=null;R==null&&(R={});N=R;var C=void 0;dzk()?(C||(C=g.iL("LOGIN_INFO")),C?(N.session_logininfo=C,N=!0):N=!1):N=!1;N&&P0(J,R)}}; g.qqg=function(J){var R=R===void 0?{}:R;var N=N===void 0?"":N;var C=C===void 0?window:C;J=g.bD(J,R);uw(J);N=g.U5(J+N);C=C.location;N=pg(N);N!==void 0&&(C.href=N)}; g.fL=function(J,R,N){R=R===void 0?{}:R;N=N===void 0?!1:N;var C=g.iL("EVENT_ID");C&&(R.ei||(R.ei=C));R&&P0(J,R);N||(uw(J),g.qqg(J))}; g.Tg=function(J,R,N,C,X){X=X===void 0?!1:X;N&&P0(J,N);N=g.U5(J);var u=g.j8(N);J!=u&&HR(Error("Unsafe window.open URL: "+J));J=u;R=R||uR(J).toString(36);try{if(X){X=J;X=jpk(X);uw(X);g.cv(window,X,R,"attributionsrc");return}}catch(f){g.TO(f)}uw(J);g.cv(window,N,R,C)}; ACn=function(J){$a=J}; YqE=function(J){HC=J}; rCB=function(J){ka=J}; mzE=function(){jin=ka=HC=$a=null}; g9k=function(){var J=J===void 0?window.location.href:J;if(g.Ac("kevlar_disable_theme_param"))return null;var R=lD(g.zF(5,J));if(g.Ac("enable_dark_theme_only_on_shorts")&&R!=null&&R.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var N=g.L4(J).theme;return V$E.get(N)||null}catch(C){}return null}; vC=function(){this.K={};if(this.J=lyE()){var J=g.y5("CONSISTENCY");J&&Uz8(this,{encryptedTokenJarContents:J})}}; Uz8=function(J,R){if(R.encryptedTokenJarContents&&(J.K[R.encryptedTokenJarContents]=R,typeof R.expirationSeconds==="string")){var N=Number(R.expirationSeconds);setTimeout(function(){delete J.K[R.encryptedTokenJarContents]},N*1E3); J.J&&g.hc("CONSISTENCY",R.encryptedTokenJarContents,N,void 0,!0)}}; SC=function(){this.J=-1;var J=g.iL("LOCATION_PLAYABILITY_TOKEN");g.iL("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=WC(this))&&(J=this.localStorage.get("yt-location-playability-token"));J&&(this.locationPlayabilityToken=J,this.K=void 0)}; WC=function(J){return J.localStorage===void 0?new W9("yt-client-location"):J.localStorage}; g.LL=function(J,R,N){R=R===void 0?!1:R;N=N===void 0?!1:N;var C=g.iL("INNERTUBE_CONTEXT");if(!C)return g.yD(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};C=g.gq(C);g.Ac("web_no_tracking_params_in_shell_killswitch")||delete C.clickTracking;C.client||(C.client={});var X=C.client;X.clientName==="MWEB"&&X.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(X.clientFormFactor=g.iL("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");X.screenWidthPoints=window.innerWidth;X.screenHeightPoints= window.innerHeight;X.screenPixelDensity=Math.round(window.devicePixelRatio||1);X.screenDensityFloat=window.devicePixelRatio||1;X.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var u=u===void 0?!1:u;g.tf();var f="USER_INTERFACE_THEME_LIGHT";g.xI(0,165)?f="USER_INTERFACE_THEME_DARK":g.xI(0,174)?f="USER_INTERFACE_THEME_LIGHT":!g.Ac("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (f="USER_INTERFACE_THEME_DARK");u=u?f:g9k()||f;X.userInterfaceTheme=u;if(!R){if(u=OmE())X.connectionType=u;g.Ac("web_log_effective_connection_type")&&(u=du8())&&(C.client.effectiveConnectionType=u)}var H;if(g.Ac("web_log_memory_total_kbytes")&&((H=g.mB.navigator)==null?0:H.deviceMemory)){var k;H=(k=g.mB.navigator)==null?void 0:k.deviceMemory;C.client.memoryTotalKbytes=""+H*1E6}g.Ac("web_gcf_hashes_innertube")&&(u=V_E())&&(k=u.coldConfigData,H=u.coldHashData,u=u.hotHashData,C.client.configInfo=C.client.configInfo|| {},k&&(C.client.configInfo.coldConfigData=k),H&&(C.client.configInfo.coldHashData=H),u&&(C.client.configInfo.hotHashData=u));k=g.L4(g.mB.location.href);!g.Ac("web_populate_internal_geo_killswitch")&&k.internalcountrycode&&(X.internalGeo=k.internalcountrycode);X.clientName==="MWEB"||X.clientName==="WEB"?(X.mainAppWebInfo={graftUrl:g.mB.location.href},g.Ac("kevlar_woffle")&&K8f.instance&&(k=K8f.instance,X.mainAppWebInfo.pwaInstallabilityStatus=!k.K&&k.J?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),X.mainAppWebInfo.webDisplayMode=yv(),X.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):X.clientName==="TVHTML5"&&(!g.Ac("web_lr_app_quality_killswitch")&&(k=g.iL("LIVING_ROOM_APP_QUALITY"))&&(X.tvAppInfo=Object.assign(X.tvAppInfo||{},{appQuality:k})),k=g.iL("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(X.tvAppInfo=Object.assign(X.tvAppInfo||{},{certificationScope:k}));if(!g.Ac("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var v=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(V){}v=void 0}v&&(X.timeZone=v)}(v=rp())?X.experimentsToken=v:delete X.experimentsToken;v=jQ();vC.instance||(vC.instance=new vC);C.request=Object.assign({},C.request,{internalExperimentFlags:v,consistencyTokenJars:g.Zf(vC.instance.K)});!g.Ac("web_prequest_context_killswitch")&&(v=g.iL("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(C.request.externalPrequestContext=v);X=g.tf();v=g.xI(0,58);X=X.get("gsml","");C.user=Object.assign({}, C.user);v&&(C.user.enableSafetyMode=v);X&&(C.user.lockedSafetyMode=!0);g.Ac("warm_op_csn_cleanup")?N&&(R=g.pR())&&(C.clientScreenNonce=R):!R&&(R=g.pR())&&(C.clientScreenNonce=R);J&&(C.clickTracking={clickTrackingParams:J});if(J=g.gY("yt.mdx.remote.remoteClient_"))C.remoteClient=J;SC.getInstance().setLocationOnInnerTubeContext(C);try{var W=n4(),S=W.bid;delete W.bid;C.adSignalsInfo={params:[],bid:S};for(var L=g.K(Object.entries(W)),I=L.next();!I.done;I=L.next()){var F=g.K(I.value),a=F.next().value, n=F.next().value;W=a;S=n;J=void 0;(J=C.adSignalsInfo.params)==null||J.push({key:W,value:""+S})}var B,Z;if(((B=C.client)==null?void 0:B.clientName)==="TVHTML5"||((Z=C.client)==null?void 0:Z.clientName)==="TVHTML5_UNPLUGGED"&&g.Ac("add_ifa_to_tvh5_requests")){var A=g.iL("INNERTUBE_CONTEXT");A.adSignalsInfo&&(C.adSignalsInfo.advertisingId=A.adSignalsInfo.advertisingId,C.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",C.adSignalsInfo.limitAdTracking=A.adSignalsInfo.limitAdTracking)}}catch(V){g.yD(V)}return C}; PSE=function(J,R){if(!J)return!1;var N,C=(N=g.z(J,p98))==null?void 0:N.signal;if(C&&R.m_)return!!R.m_[C];var X;if((N=(X=g.z(J,lIE))==null?void 0:X.request)&&R.Sf)return!!R.Sf[N];for(var u in J)if(R.Z3[u])return!0;return!1}; z4f=function(J){var R={"Content-Type":"application/json"};g.iL("EOM_VISITOR_DATA")?R["X-Goog-EOM-Visitor-Id"]=g.iL("EOM_VISITOR_DATA"):g.iL("VISITOR_DATA")&&(R["X-Goog-Visitor-Id"]=g.iL("VISITOR_DATA"));R["X-Youtube-Bootstrap-Logged-In"]=g.iL("LOGGED_IN",!1);g.iL("DEBUG_SETTINGS_METADATA")&&(R["X-Debug-Settings-Metadata"]=g.iL("DEBUG_SETTINGS_METADATA"));J!=="cors"&&((J=g.iL("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(R["X-Youtube-Client-Name"]=J),(J=g.iL("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(R["X-Youtube-Client-Version"]= J),(J=g.iL("CHROME_CONNECTED_HEADER"))&&(R["X-Youtube-Chrome-Connected"]=J),(J=g.iL("DOMAIN_ADMIN_STATE"))&&(R["X-Youtube-Domain-Admin-State"]=J));return R}; e4f=function(){this.K={}}; I_=function(){this.mappings=new e4f}; FE=function(J){return function(){return new J}}; cCB=function(J){var R=R===void 0?"UNKNOWN_INTERFACE":R;if(J.length===1)return J[0];var N=w9E[R];if(N){N=new RegExp(N);for(var C=g.K(J),X=C.next();!X.done;X=C.next())if(X=X.value,N.exec(X))return X}var u=[];Object.entries(w9E).forEach(function(f){var H=g.K(f);f=H.next().value;H=H.next().value;R!==f&&u.push(H)}); N=new RegExp(u.join("|"));J.sort(function(f,H){return f.length-H.length}); C=g.K(J);for(X=C.next();!X.done;X=C.next())if(X=X.value,!N.exec(X))return X;return J[0]}; g.Em=function(J){return"/youtubei/v1/"+cCB(J)}; M3=function(){}; KL=function(){}; a_=function(){}; Qb=function(J){return g.gY("ytcsi."+(J||"")+"data_")||h4E(J)}; yCB=function(){var J=Qb();J.info||(J.info={});return J.info}; nL=function(J){J=Qb(J);J.metadata||(J.metadata={});return J.metadata}; eC=function(J){J=Qb(J);J.tick||(J.tick={});return J.tick}; wx=function(J){J=Qb(J);if(J.gel){var R=J.gel;R.gelInfos||(R.gelInfos={});R.gelTicks||(R.gelTicks={})}else J.gel={gelTicks:{},gelInfos:{}};return J.gel}; GBE=function(J){J=wx(J);J.gelInfos||(J.gelInfos={});return J.gelInfos}; cC=function(J){var R=Qb(J).nonce;R||(R=g.jg(16),Qb(J).nonce=R);return R}; h4E=function(J){var R={tick:{},info:{}};g.VE("ytcsi."+(J||"")+"data_",R);return R}; hV=function(){var J=g.gY("ytcsi.debug");J||(J=[],g.VE("ytcsi.debug",J),g.VE("ytcsi.reference",{}));return J}; yb=function(J){J=J||"";var R=b3g();if(R[J])return R[J];var N=hV(),C={timerName:J,info:{},tick:{},span:{},jspbInfo:[]};N.push(C);return R[J]=C}; t$E=function(J){J=J||"";var R=b3g();R[J]&&delete R[J];var N=hV(),C={timerName:J,info:{},tick:{},span:{},jspbInfo:[]};N.push(C);R[J]=C}; b3g=function(){var J=g.gY("ytcsi.reference");if(J)return J;hV();return g.gY("ytcsi.reference")}; Gg=function(J){return xzY[J]||"LATENCY_ACTION_UNKNOWN"}; bw=function(J,R){DZ.call(this,1,arguments);this.pY=R}; tV=function(){this.K=0}; xa=function(){tV.instance||(tV.instance=new tV);return tV.instance}; ob=function(J,R){JM[R]=JM[R]||{count:0};var N=JM[R];N.count++;N.time=(0,g.g9)();J.K||(J.K=g.TB(0,function(){var C=(0,g.g9)(),X;for(X in JM)JM[X]&&C-JM[X].time>6E4&&delete JM[X];J&&(J.K=0)},5E3)); return N.count>5?(N.count===6&&Math.random()*1E5<1&&(N=new g.C3("CSI data exceeded logging limit with key",R.split("_")),R.indexOf("plev")>=0||g.G$(N)),!0):!1}; Jgf=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; osk=function(){var J;if(g.Ac("csi_use_performance_navigation_timing")||g.Ac("csi_use_performance_navigation_timing_tvhtml5")){var R,N,C,X=Rb==null?void 0:(J=Rb.getEntriesByType)==null?void 0:(R=J.call(Rb,"navigation"))==null?void 0:(N=R[0])==null?void 0:(C=N.toJSON)==null?void 0:C.call(N);X?(X.requestStart=NF(X.requestStart),X.responseEnd=NF(X.responseEnd),X.redirectStart=NF(X.redirectStart),X.redirectEnd=NF(X.redirectEnd),X.domainLookupEnd=NF(X.domainLookupEnd),X.connectStart=NF(X.connectStart), X.connectEnd=NF(X.connectEnd),X.responseStart=NF(X.responseStart),X.secureConnectionStart=NF(X.secureConnectionStart),X.domainLookupStart=NF(X.domainLookupStart),X.isPerformanceNavigationTiming=!0,J=X):J=Rb.timing}else J=g.Ac("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Rb.timing)):Rb.timing;return J}; NF=function(J){return Math.round(Cn()+J)}; Cn=function(){return(g.Ac("csi_use_time_origin")||g.Ac("csi_use_time_origin_tvhtml5"))&&Rb.timeOrigin?Math.floor(Rb.timeOrigin):Rb.timing.navigationStart}; i3=function(J,R){X8("_start",J,R)}; u3=function(J,R){if(!g.Ac("web_csi_action_sampling_enabled")||!Qb(R).actionDisabled){var N=yb(R||"");Zb(N.info,J);J.loadType&&(N=J.loadType,nL(R).loadType=N);Zb(GBE(R),J);N=cC(R);R=Qb(R).cttAuthInfo;xa().info(J,N,R)}}; RGn=function(){var J,R,N,C;return((C=cG().resolve(new l0(M6))==null?void 0:(J=K9())==null?void 0:(R=J.loggingHotConfig)==null?void 0:(N=R.csiConfig)==null?void 0:N.debugTicks)!=null?C:[]).map(function(X){return Object.values(X)[0]})}; X8=function(J,R,N){if(!g.Ac("web_csi_action_sampling_enabled")||!Qb(N).actionDisabled){var C=cC(N),X;if(X=g.Ac("web_csi_debug_sample_enabled")&&C){(cG().resolve(new l0(M6))==null?0:K9())&&!NWB&&(NWB=!0,X8("gcfl",(0,g.g9)(),N));var u,f,H;X=(cG().resolve(new l0(M6))==null?void 0:(u=K9())==null?void 0:(f=u.loggingHotConfig)==null?void 0:(H=f.csiConfig)==null?void 0:H.debugSampleWeight)||0;if(u=X!==0)b:{u=RGn();if(u.length>0)for(f=0;fN.duration?C:N},{duration:0}))&&R.startTime>0&&R.responseEnd>0&&(X8("wffs",NF(R.startTime)),X8("wffe",NF(R.responseEnd)))}; $6B=function(J,R,N){Rb&&Rb.measure&&(J.startsWith("measure_")||(J="measure_"+J),N?Rb.measure(J,R,N):R?Rb.measure(J,R):Rb.measure(J))}; H9Q=function(J){var R=fn("aft",J);if(R)return R;R=g.iL((J||"")+"TIMING_AFT_KEYS",["ol"]);for(var N=R.length,C=0;C0&&u3(R);R={isNavigation:!0,actionType:Gg(g.iL("TIMING_ACTION"))};var N=g.iL("PREVIOUS_ACTION");N&&(R.previousAction=Gg(N));if(N=g.iL("CLIENT_PROTOCOL"))R.httpProtocol=N;if(N=g.iL("CLIENT_TRANSPORT"))R.transportProtocol=N;(N=g.pR())&&N!=="UNDEFINED_CSN"&&(R.clientScreenNonce=N);N=i98();if(N===1||N===-1)R.isVisible= !0;N=nL().loadType==="cold";var C=yCB();N||(N=C.yt_lt==="cold");if(N){R.loadType="cold";N=yCB();C=osk();var X=Cn(),u=g.iL("CSI_START_TIMESTAMP_MILLIS",0);u>0&&!g.Ac("embeds_web_enable_csi_start_override_killswitch")&&(X=u);X&&(X8("srt",C.responseStart),N.prerender!==1&&i3(X));N=W_Q();N>0&&X8("fpt",N);N=osk();N.isPerformanceNavigationTiming&&u3({performanceNavigationTiming:!0},void 0);X8("nreqs",N.requestStart,void 0);X8("nress",N.responseStart,void 0);X8("nrese",N.responseEnd,void 0);N.redirectEnd- N.redirectStart>0&&(X8("nrs",N.redirectStart,void 0),X8("nre",N.redirectEnd,void 0));N.domainLookupEnd-N.domainLookupStart>0&&(X8("ndnss",N.domainLookupStart,void 0),X8("ndnse",N.domainLookupEnd,void 0));N.connectEnd-N.connectStart>0&&(X8("ntcps",N.connectStart,void 0),X8("ntcpe",N.connectEnd,void 0));N.secureConnectionStart>=Cn()&&N.connectEnd-N.secureConnectionStart>0&&(X8("nstcps",N.secureConnectionStart,void 0),X8("ntcpe",N.connectEnd,void 0));Rb&&"getEntriesByType"in Rb&&TWE();N=[];if(document.querySelector&& Rb&&Rb.getEntriesByName)for(var f in HU)HU.hasOwnProperty(f)&&(C=HU[f],fZE(f,C)&&N.push(C));if(N.length>0)for(R.resourceInfo=[],f=g.K(N),N=f.next();!N.done;N=f.next())R.resourceInfo.push({resourceCache:N.value})}u3(R);R=wx();R.preLoggedGelInfos||(R.preLoggedGelInfos=[]);f=R.preLoggedGelInfos;R=GBE();N=void 0;for(C=0;C-1&&(delete E["@type"],w=E);a&&J.J.has(a)&&J.J.delete(a);((b8=R.config)==null?0:b8.yz7)&&vU(R.config.yz7);if(w||(FV=J.V)==null||!FV.xIC(R.input,R.IF)){Of.ZM(15);break}return g.q(Of,J.V.TCn(R.input,R.IF),16);case 16:w=Of.J;case 15:return AgQ(J,w,R),((Hl=R.config)==null?0:Hl.qpB)&&vU(R.config.qpB),C(),Of.return(w||void 0)}})}; BWE=function(J,R){a:{J=J.Eo;var N,C=(N=g.z(R,p98))==null?void 0:N.signal;if(C&&J.m_&&(N=J.m_[C])){var X=N();break a}var u;if((N=(u=g.z(R,lIE))==null?void 0:u.request)&&J.Sf&&(u=J.Sf[N])){X=u();break a}for(X in R)if(J.Z3[X]&&(R=J.Z3[X])){X=R();break a}X=void 0}if(X!==void 0)return Promise.resolve(X)}; Z9B=function(J,R,N){var C,X,u,f,H,k,v;return g.Y(function(W){if(W.K==1){u=((C=R)==null?void 0:(X=C.aJ)==null?void 0:X.identity)||n9;k=(f=R)==null?void 0:(H=f.aJ)==null?void 0:H.sessionIndex;var S=QS(J.K.J9(u,{sessionIndex:k}));return g.q(W,S,2)}v=W.J;return W.return(Promise.resolve(Object.assign({},z4f(N),v)))})}; O9E=function(J,R,N){var C,X=(R==null?void 0:(C=R.aJ)==null?void 0:C.identity)||n9,u;R=R==null?void 0:(u=R.aJ)==null?void 0:u.sessionIndex;J=J.K.J9(X,{sessionIndex:R});return Object.assign({},z4f(N),J)}; ab=function(){}; QG=function(){}; nn=function(J){this.S=J}; Dw=function(){}; sG=function(){}; BU=function(){}; OG=function(){}; g.Zw=function(J,R){var N=g.sf.apply(2,arguments);J=J===void 0?0:J;g.C3.call(this,R,N);this.errorType=J;Object.setPrototypeOf(this,this.constructor.prototype)}; dB=function(J,R,N){this.K=J;this.J=R;this.V=N}; rgn=function(J,R,N){if(J.K){var C=lD(g.zF(5,Jh(R,"key")))||"/UNKNOWN_PATH";J.K.start(C)}J=N;g.Ac("wug_networking_gzip_request")&&(J=W62(N));return new window.Request(R,J)}; g.AM=function(J,R){if(!qF){var N=cG();PG(N,{Vm:jNE,MU:dB});var C={Z3:{feedbackEndpoint:FE(Dw),modifyChannelNotificationPreferenceEndpoint:FE(sG),playlistEditEndpoint:FE(BU),shareEntityEndpoint:FE(nn),subscribeEndpoint:FE(ab),unsubscribeEndpoint:FE(QG),webPlayerShareEntityServiceEndpoint:FE(OG)}},X=SC.getInstance(),u={};X&&(u.client_location=X);J===void 0&&(J=ahE());R===void 0&&(R=N.resolve(jNE));sNg(C,R,J,u);PG(N,{Vm:m6f,YI:EG.instance});qF=N.resolve(m6f)}return qF}; VbB=function(J){var R=new Kv;if(J.interpreterJavascript){var N=Czg(J.interpreterJavascript);N=g.GS(N).toString();var C=new Ey;IZ(C,6,N);ui(R,Ey,1,C)}else J.interpreterUrl&&(N=jW(J.interpreterUrl),N=g.A0(N).toString(),C=new Ml,IZ(C,4,N),ui(R,Ml,2,C));J.interpreterHash&&Fc(R,3,J.interpreterHash);J.program&&Fc(R,4,J.program);J.globalName&&Fc(R,5,J.globalName);J.clientExperimentsStateBlob&&Fc(R,7,J.clientExperimentsStateBlob);return R}; YM=function(J){var R={};J=J.split("&");J=g.K(J);for(var N=J.next();!N.done;N=J.next())N=N.value.split("="),N.length===2&&(R[N[0]]=N[1]);return R}; sm8=function(){if(g.Ac("bg_st_hr"))return"havuokmhhs-0";var J,R=((J=performance)==null?void 0:J.timeOrigin)||0;return"havuokmhhs-"+Math.floor(R)}; rB=function(J){this.K=J}; gsB=function(){return new Promise(function(J){var R=window.top;R.ntpevasrs!==void 0?J(new rB(R.ntpevasrs)):(R.ntpqfbel===void 0&&(R.ntpqfbel=[]),R.ntpqfbel.push(function(N){J(new rB(N))}))})}; p$n=function(){if(!g.Ac("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Ac("disable_biscotti_fetch_entirely_for_all_web_clients")&&v1()){var J=g.iL("PLAYER_VARS",{});if(g.jF(J,"privembed",!1)!="1"&&!ytB(J)){var R=function(){jV=!0;"google_ad_status"in window?Xi("DCLKSTAT",1):Xi("DCLKSTAT",2)}; try{g.Db("//static.doubleclick.net/instream/ad_status.js",R)}catch(N){}U6Q.push(g.Nh.ou(function(){if(!(jV||"google_ad_status"in window)){try{if(R){var N=""+g.en(R),C=yHY[N];C&&g.QR(C)}}catch(X){}jV=!0;Xi("DCLKSTAT",3)}},5E3))}}}; mM=function(){var J=Number(g.iL("DCLKSTAT",0));return isNaN(J)?0:J}; pn=function(J,R,N){var C=this;this.network=J;this.options=R;this.J=N;this.K=null;if(R.E2Q){var X=new g.Qt;this.K=X.promise;g.mB.ytAtRC&&f3(function(){var u,f;return g.Y(function(H){if(H.K==1){if(!g.mB.ytAtRC)return H.return();u=VG(null);return g.q(H,gB(C,u),2)}f=H.J;g.mB.ytAtRC&&g.mB.ytAtRC(JSON.stringify(f));g.IQ(H)})},2); gsB().then(function(u){var f,H,k,v;return g.Y(function(W){if(W.K==1)return u.bindInnertubeChallengeFetcher(function(S){return gB(C,VG(S))}),g.q(W,AP(),2); f=W.J;H=u.getLatestChallengeResponse();k=H.challenge;if(!k)throw Error("BGE_MACIL");v={challenge:k,Uk:YM(k),Bw:f,bgChallenge:new Kv};X.resolve(v);u.registerChallengeFetchedCallback(function(S){S=S.challenge;if(!S)throw Error("BGE_MACR");S={challenge:S,Uk:YM(S),Bw:f,bgChallenge:new Kv};C.K=Promise.resolve(S)}); g.IQ(W)})})}else R.preload&&lZk(this,new Promise(function(u){g.TB(0,function(){u(UG(C))},0)}))}; VG=function(J){var R={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};J&&(R.interpreterHash=J);return R}; UG=function(J,R){R=R===void 0?0:R;var N,C,X,u,f,H,k,v,W,S,L,I;return g.Y(function(F){switch(F.K){case 1:N=VG(Bu().K);if(g.Ac("att_fet_ks"))return g.Ef(F,7),g.q(F,gB(J,N),9);g.Ef(F,4);return g.q(F,PCE(J,N),6);case 6:f=F.J;X=f.bYn;u=f.zdQ;C=f;g.MP(F,3);break;case 4:return g.K2(F),g.G$(Error("Failed to fetch attestation challenge after "+(R+" attempts; not retrying for 24h."))),l3(J,864E5),F.return({challenge:"",Uk:{},Bw:void 0,bgChallenge:void 0});case 9:C=F.J;if(!C)throw Error("Fetching Attestation challenge returned falsy"); if(!C.challenge)throw Error("Missing Attestation challenge");X=C.challenge;u=YM(X);if("c1a"in u&&(!C.bgChallenge||!C.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.MP(F,3);break;case 7:H=g.K2(F);g.G$(H);R++;if(R>=5)return g.G$(Error("Failed to fetch attestation challenge after "+(R+" attempts; not retrying for 24h."))),l3(J,864E5),F.return({challenge:"",Uk:{},Bw:void 0,bgChallenge:void 0});k=1E3*Math.pow(2,R-1)+Math.random()*1E3;return F.return(new Promise(function(a){g.TB(0, function(){a(UG(J,R))},k)})); case 3:v=Number(u.t)||7200;l3(J,v*1E3);W=void 0;if(!("c1a"in u&&C.bgChallenge)){F.ZM(10);break}S=VbB(C.bgChallenge);g.Ef(F,11);return g.q(F,Oy(Bu(),S),13);case 13:g.MP(F,12);break;case 11:return L=g.K2(F),g.G$(L),F.return({challenge:X,Uk:u,Bw:W,bgChallenge:S});case 12:return g.Ef(F,14),W=new nv({challenge:S,SO:{LL:"aGIf"}}),g.q(F,W.F0,16);case 16:g.MP(F,10);break;case 14:I=g.K2(F),g.G$(I),W=void 0;case 10:return F.return({challenge:X,Uk:u,Bw:W,bgChallenge:S})}})}; gB=function(J,R){var N;return g.Y(function(C){N=J.J;if(!N||N.Tj())return C.return(gB(J.network,R));F8("att_pna",void 0,"attestation_challenge_fetch");return C.return(new Promise(function(X){N.VZ("publicytnetworkstatus-online",function(){gB(J.network,R).then(X)})}))})}; zGg=function(J){if(!J)throw Error("Fetching Attestation challenge returned falsy");if(!J.challenge)throw Error("Missing Attestation challenge");var R=J.challenge,N=YM(R);if("c1a"in N&&(!J.bgChallenge||!J.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},J,{bYn:R,zdQ:N})}; PCE=function(J,R){var N,C,X,u,f;return g.Y(function(H){switch(H.K){case 1:N=void 0,C=0,X={};case 2:if(!(C<5)){H.ZM(4);break}if(!(C>0)){H.ZM(5);break}X.C9=1E3*Math.pow(2,C-1)+Math.random()*1E3;return g.q(H,new Promise(function(k){return function(v){g.TB(0,function(){v(void 0)},k.C9)}}(X)),5); case 5:return g.Ef(H,7),g.q(H,gB(J,R),9);case 9:return u=H.J,H.return(zGg(u));case 7:N=f=g.K2(H),f instanceof Error&&g.G$(f);case 8:C++;X={C9:void 0};H.ZM(2);break;case 4:throw N;}})}; lZk=function(J,R){J.K=R}; eG8=function(J){var R,N,C;return g.Y(function(X){if(X.K==1)return g.q(X,Promise.race([J.K,null]),2);R=X.J;var u=UG(J);J.K=u;(N=R)==null||(C=N.Bw)==null||C.dispose();g.IQ(X)})}; l3=function(J,R){function N(){var X;return g.Y(function(u){X=C-Date.now();return X<1E3?g.q(u,eG8(J),0):(f3(N,0,Math.min(X,6E4)),u.ZM(0))})} var C=Date.now()+R;N()}; w$E=function(J,R){return new Promise(function(N){g.TB(0,function(){N(R())},J)})}; g.cgB=function(J,R){var N;return g.Y(function(C){var X=g.gY("yt.aba.att");return(N=X?X:pn.instance!==void 0?pn.instance.V.bind(pn.instance):null)?C.return(N("ENGAGEMENT_TYPE_PLAYBACK",J,R)):C.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.hGf=function(){var J;return(J=(J=g.gY("yt.aba.att2"))?J:pn.instance!==void 0?pn.instance.Z.bind(pn.instance):null)?J():Promise.resolve(!1)}; GRQ=function(J,R){var N=g.gY("ytDebugData.callbacks");N||(N={},g.VE("ytDebugData.callbacks",N));if(g.Ac("web_dd_iu")||ygf.includes(J))N[J]=R}; PU=function(){var J=b9E;var R=R===void 0?[]:R;var N=N===void 0?[]:N;R=tiB.apply(null,[x4E.apply(null,g.Q(R))].concat(g.Q(N)));this.store=oZB(J,void 0,R)}; g.zV=function(J,R,N){for(var C=Object.assign({},J),X=g.K(Object.keys(R)),u=X.next();!u.done;u=X.next()){u=u.value;var f=J[u],H=R[u];if(H===void 0)delete C[u];else if(f===void 0)C[u]=H;else if(Array.isArray(H)&&Array.isArray(f))C[u]=N?[].concat(g.Q(f),g.Q(H)):H;else if(!Array.isArray(H)&&g.Pg(H)&&!Array.isArray(f)&&g.Pg(f))C[u]=g.zV(f,H,N);else if(typeof H===typeof f)C[u]=H;else return R=new g.C3("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:u,BCM:f,updateValue:H}),g.yD(R), J}return C}; eV=function(J){var R=this;J=J===void 0?[]:J;this.q7=[];this.Pd=this.MO=0;this.K3=void 0;this.totalLength=0;J.forEach(function(N){R.append(N)})}; tbg=function(J,R){return J.q7.length===0?!1:(J=J.q7[J.q7.length-1])&&J.buffer===R.buffer&&J.byteOffset+J.length===R.byteOffset}; wB=function(J,R){R=g.K(R.q7);for(var N=R.next();!N.done;N=R.next())J.append(N.value)}; cU=function(J,R,N){return J.split(R).WY.split(N).I5}; hM=function(J){J.K3=void 0;J.MO=0;J.Pd=0}; yG=function(J,R,N){J.isFocused(R);return R-J.Pd+N<=J.q7[J.MO].length}; x6f=function(J){if(!J.K3){var R=J.q7[J.MO];J.K3=new DataView(R.buffer,R.byteOffset,R.length)}return J.K3}; GV=function(J,R,N){J=J.yc(R===void 0?0:R,N===void 0?-1:N);R=new Uint8Array(J.length);try{R.set(J)}catch(C){for(N=0;N>10;u=56320|u&1023}JN[X++]=u}}u=String.fromCharCode.apply(String,JN); X<1024&&(u=u.substring(0,X));N.push(u)}return N.join("")}; Nm=function(J,R){var N;if((N=Rw)==null?0:N.encodeInto)return R=Rw.encodeInto(J,R),R.read>6|192:((X&64512)===55296&&C+1>18|240,R[N++]=X>>12&63|128):R[N++]=X>>12|224,R[N++]=X>>6&63|128),R[N++]=X&63|128)}return N}; CX=function(J){if(Rw)return Rw.encode(J);var R=new Uint8Array(Math.ceil(J.length*1.2)),N=Nm(J,R);R.lengthN&&(R=R.subarray(0,N));return R}; X2=function(J){this.K=J;this.pos=0;this.J=-1}; i$=function(J){var R=J.K.getUint8(J.pos);++J.pos;if(R<128)return R;for(var N=R&127,C=1;R>=128;)R=J.K.getUint8(J.pos),++J.pos,C*=128,N+=(R&127)*C;return N}; u$=function(J,R){var N=J.J;for(J.J=-1;J.K.p8(J.pos,1);){N<0&&(N=i$(J));var C=N>>3,X=N&7;if(C===R)return!0;if(C>R){J.J=N;break}N=-1;switch(X){case 0:i$(J);break;case 1:J.pos+=8;break;case 2:C=i$(J);J.pos+=C;break;case 5:J.pos+=4}}return!1}; fX=function(J,R){if(u$(J,R))return i$(J)}; T5=function(J,R){if(u$(J,R))return!!i$(J)}; $3=function(J,R){if(u$(J,R)){R=i$(J);var N=J.K.yc(J.pos,R);J.pos+=R;return N}}; Hy=function(J,R){if(J=$3(J,R))return g.ow(J)}; k3=function(J,R,N){if(J=$3(J,R))return N(new X2(new eV([J])))}; vy=function(J,R){for(var N=[];u$(J,R);)N.push(i$(J));return N.length?N:void 0}; Wy=function(J,R,N){for(var C=[],X;X=$3(J,R);)C.push(N(new X2(new eV([X]))));return C.length?C:void 0}; Ss=function(J,R){J=J instanceof Uint8Array?new eV([J]):J;return R(new X2(J))}; RZB=function(J,R,N){if(R&&N&&N.buffer===R.exports.memory.buffer){var C=R.realloc(N.byteOffset,J);if(C)return new Uint8Array(R.exports.memory.buffer,C,J)}J=R?new Uint8Array(R.exports.memory.buffer,R.malloc(J),J):new Uint8Array(J);N&&J.set(N);return J}; NPE=function(J,R){this.QC=R;this.pos=0;this.J=[];this.K=RZB(J===void 0?4096:J,R);this.view=new DataView(this.K.buffer,this.K.byteOffset,this.K.byteLength)}; LX=function(J,R){R=J.pos+R;if(!(J.K.length>=R)){for(var N=J.K.length*2;N268435455){LX(J,4);for(var N=R&1073741823,C=0;C<4;C++)J.view.setUint8(J.pos,N&127|128),N>>=7,J.pos+=1;R=Math.floor(R/268435456)}for(LX(J,4);R>127;)J.view.setUint8(J.pos,R&127|128),R>>=7,J.pos+=1;J.view.setUint8(J.pos,R);J.pos+=1}; F2=function(J,R,N){N!==void 0&&(Iw(J,R*8),Iw(J,N))}; Eb=function(J,R,N){N!==void 0&&F2(J,R,N?1:0)}; Mm=function(J,R,N){N!==void 0&&(Iw(J,R*8+2),R=N.length,Iw(J,R),LX(J,R),J.K.set(N,J.pos),J.pos+=R)}; KX=function(J,R,N){N!==void 0&&(C08(J,R,Math.ceil(Math.log2(N.length*4+2)/7)),LX(J,N.length*1.2),R=Nm(N,J.K.subarray(J.pos)),J.pos+R>J.K.length&&(LX(J,R),R=Nm(N,J.K.subarray(J.pos))),J.pos+=R,XGn(J))}; C08=function(J,R,N){N=N===void 0?2:N;Iw(J,R*8+2);J.J.push(J.pos);J.J.push(N);J.pos+=N}; XGn=function(J){for(var R=J.J.pop(),N=J.J.pop(),C=J.pos-N-R;R--;){var X=R?128:0;J.view.setUint8(N++,C&127|X);C>>=7}}; aw=function(J,R,N,C,X){N&&(C08(J,R,X===void 0?3:X),C(J,N),XGn(J))}; g.QA=function(J,R,N){N=new NPE(4096,N);R(N,J);return new Uint8Array(N.K.buffer,N.K.byteOffset,N.pos)}; g.nX=function(J){var R=new X2(new eV([IG(decodeURIComponent(J))]));J=Hy(R,2);R=fX(R,4);var N=i5B[R];if(typeof N==="undefined")throw J=new g.C3("Failed to recognize field number",{name:"EntityKeyHelperError",u7C:R}),g.yD(J),J;return{KB:R,entityType:N,entityId:J}}; g.DR=function(J,R){var N=new NPE;Mm(N,2,CX(J));J=uIB[R];if(typeof J==="undefined")throw R=new g.C3("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:R}),g.yD(R),R;F2(N,4,J);F2(N,5,1);R=new Uint8Array(N.K.buffer,N.K.byteOffset,N.pos);return encodeURIComponent(g.SZ(R))}; sb=function(J,R,N,C){if(C===void 0)return C=Object.assign({},J[R]||{}),N=(delete C[N],C),C={},Object.assign({},J,(C[R]=N,C));var X={},u={};return Object.assign({},J,(u[R]=Object.assign({},J[R],(X[N]=C,X)),u))}; fbf=function(J,R,N,C,X){var u=J[R];if(u==null||!u[N])return J;C=g.zV(u[N],C,X==="REPEATED_FIELDS_MERGE_OPTION_APPEND");X={};u={};return Object.assign({},J,(u[R]=Object.assign({},J[R],(X[N]=C,X)),u))}; TPn=function(J,R){J=J===void 0?{}:J;switch(R.type){case "ENTITY_LOADED":return R.payload.reduce(function(C,X){var u,f=(u=X.options)==null?void 0:u.persistenceOption;if(f&&f!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&f!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return C;if(!X.entityKey)return g.yD(Error("Missing entity key")),C;if(X.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!X.payload)return g.yD(new g.C3("REPLACE entity mutation is missing a payload",{entityKey:X.entityKey})),C;var H=g.OF(X.payload); return sb(C,H,X.entityKey,X.payload[H])}if(X.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{X=X.entityKey;try{var k=g.nX(X).entityType;H=sb(C,k,X);break a}catch(S){if(S instanceof Error){g.yD(new g.C3("Failed to deserialize entity key",{entityKey:X,PW:S.message}));H=C;break a}throw S;}H=void 0}return H}if(X.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!X.payload)return g.yD(new g.C3("UPDATE entity mutation is missing a payload",{entityKey:X.entityKey})),C;H=g.OF(X.payload);var v,W;return fbf(C,H,X.entityKey, X.payload[H],(v=X.fieldMask)==null?void 0:(W=v.mergeOptions)==null?void 0:W.repeatedFieldsMergeOption)}return C},J); case "REPLACE_ENTITY":var N=R.payload;return sb(J,N.entityType,N.key,N.WX);case "REPLACE_ENTITIES":return Object.keys(R.payload).reduce(function(C,X){var u=R.payload[X];return Object.keys(u).reduce(function(f,H){return sb(f,X,H,u[H])},C)},J); case "UPDATE_ENTITY":return N=R.payload,fbf(J,N.entityType,N.key,N.WX,N.piC);default:return J}}; By=function(J,R,N){return J[R]?J[R][N]||null:null}; Ob=function(J){return window.Int32Array?new Int32Array(J):Array(J)}; r1=function(J){g.l.call(this);this.counter=[0,0,0,0];this.J=new Uint8Array(16);this.K=16;if(!$i8){var R,N=new Uint8Array(256),C=new Uint8Array(256);var X=1;for(R=0;R<256;R++)N[X]=R,C[R]=X,X^=X<<1^(X>>7&&283);ZR=new Uint8Array(256);d1=Ob(256);qm=Ob(256);AN=Ob(256);Y3=Ob(256);for(var u=0;u<256;u++){X=u?C[255^N[u]]:0;X^=X<<1^X<<2^X<<3^X<<4;X=X&255^X>>>8^99;ZR[u]=X;R=X<<1^(X>>7&&283);var f=R^X;d1[u]=R<<24|X<<16|X<<8|f;qm[u]=f<<24|d1[u]>>>8;AN[u]=X<<24|qm[u]>>>8;Y3[u]=X<<24|AN[u]>>>8}$i8=!0}X=Ob(44);for(N= 0;N<4;N++)X[N]=J[4*N]<<24|J[4*N+1]<<16|J[4*N+2]<<8|J[4*N+3];for(C=1;N<44;N++)J=X[N-1],N%4||(J=(ZR[J>>16&255]^C)<<24|ZR[J>>8&255]<<16|ZR[J&255]<<8|ZR[J>>>24],C=C<<1^(C>>7&&283)),X[N]=X[N-4]^J;this.key=X}; js=function(J,R){for(var N=0;N<4;N++)J.counter[N]=R[N*4]<<24|R[N*4+1]<<16|R[N*4+2]<<8|R[N*4+3];J.K=16}; H58=function(J){for(var R=J.key,N=J.counter[0]^R[0],C=J.counter[1]^R[1],X=J.counter[2]^R[2],u=J.counter[3]^R[3],f=3;f>=0&&!(J.counter[f]=-~J.counter[f]);f--);for(var H,k,v=4;v<40;)f=d1[N>>>24]^qm[C>>16&255]^AN[X>>8&255]^Y3[u&255]^R[v++],H=d1[C>>>24]^qm[X>>16&255]^AN[u>>8&255]^Y3[N&255]^R[v++],k=d1[X>>>24]^qm[u>>16&255]^AN[N>>8&255]^Y3[C&255]^R[v++],u=d1[u>>>24]^qm[N>>16&255]^AN[C>>8&255]^Y3[X&255]^R[v++],N=f,C=H,X=k;J=J.J;f=R[40];J[0]=ZR[N>>>24]^f>>>24;J[1]=ZR[C>>16&255]^f>>16&255;J[2]=ZR[X>>8&255]^ f>>8&255;J[3]=ZR[u&255]^f&255;f=R[41];J[4]=ZR[C>>>24]^f>>>24;J[5]=ZR[X>>16&255]^f>>16&255;J[6]=ZR[u>>8&255]^f>>8&255;J[7]=ZR[N&255]^f&255;f=R[42];J[8]=ZR[X>>>24]^f>>>24;J[9]=ZR[u>>16&255]^f>>16&255;J[10]=ZR[N>>8&255]^f>>8&255;J[11]=ZR[C&255]^f&255;f=R[43];J[12]=ZR[u>>>24]^f>>>24;J[13]=ZR[N>>16&255]^f>>16&255;J[14]=ZR[C>>8&255]^f>>8&255;J[15]=ZR[X&255]^f&255}; g1=function(){if(!mV&&!g.iC){if(VA)return VA;var J;VA=(J=window.crypto)==null?void 0:J.subtle;var R,N,C;if(((R=VA)==null?0:R.importKey)&&((N=VA)==null?0:N.sign)&&((C=VA)==null?0:C.encrypt))return VA;VA=void 0}}; g.Ub=function(J){this.Z=J}; g.pX=function(J){this.J=J}; l$=function(J){this.U=new Uint8Array(64);this.V=new Uint8Array(64);this.Z=0;this.S=new Uint8Array(64);this.J=0;this.U.set(J);this.V.set(J);for(J=0;J<64;J++)this.U[J]^=92,this.V[J]^=54;this.reset()}; kAY=function(J,R,N){for(var C=J.D,X=J.K[0],u=J.K[1],f=J.K[2],H=J.K[3],k=J.K[4],v=J.K[5],W=J.K[6],S=J.K[7],L,I,F,a=0;a<64;)a<16?(C[a]=F=R[N]<<24|R[N+1]<<16|R[N+2]<<8|R[N+3],N+=4):(L=C[a-2],I=C[a-15],F=C[a-7]+C[a-16]+((L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+((I>>>7|I<<25)^(I>>>18|I<<14)^I>>>3),C[a]=F),L=S+Py[a]+F+((k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7))+(k&v^~k&W),I=((X>>>2|X<<30)^(X>>>13|X<<19)^(X>>>22|X<<10))+(X&u^X&f^u&f),S=L+I,H+=L,a++,a<16?(C[a]=F=R[N]<<24|R[N+1]<<16|R[N+2]<<8|R[N+3],N+=4):(L= C[a-2],I=C[a-15],F=C[a-7]+C[a-16]+((L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+((I>>>7|I<<25)^(I>>>18|I<<14)^I>>>3),C[a]=F),L=W+Py[a]+F+((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&k^~H&v),I=((S>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10))+(S&X^S&u^X&u),W=L+I,f+=L,a++,a<16?(C[a]=F=R[N]<<24|R[N+1]<<16|R[N+2]<<8|R[N+3],N+=4):(L=C[a-2],I=C[a-15],F=C[a-7]+C[a-16]+((L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+((I>>>7|I<<25)^(I>>>18|I<<14)^I>>>3),C[a]=F),L=v+Py[a]+F+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&H^ ~f&k),I=((W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10))+(W&S^W&X^S&X),v=L+I,u+=L,a++,a<16?(C[a]=F=R[N]<<24|R[N+1]<<16|R[N+2]<<8|R[N+3],N+=4):(L=C[a-2],I=C[a-15],F=C[a-7]+C[a-16]+((L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+((I>>>7|I<<25)^(I>>>18|I<<14)^I>>>3),C[a]=F),L=k+Py[a]+F+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&f^~u&H),I=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&W^v&S^W&S),F=S,S=H,H=F,F=W,W=f,f=F,F=v,v=u,u=F,k=X+L,X=L+I,a++;J.K[0]=X+J.K[0]|0;J.K[1]=u+J.K[1]|0;J.K[2]=f+J.K[2]|0;J.K[3]= H+J.K[3]|0;J.K[4]=k+J.K[4]|0;J.K[5]=v+J.K[5]|0;J.K[6]=W+J.K[6]|0;J.K[7]=S+J.K[7]|0}; WcY=function(J){var R=new Uint8Array(32),N=64-J.J;J.J>55&&(N+=64);var C=new Uint8Array(N);C[0]=128;for(var X=J.Z*8,u=1;u<9;u++){var f=X%256;C[N-u]=f;X=(X-f)/256}J.update(C);for(N=0;N<8;N++)R[N*4]=J.K[N]>>>24,R[N*4+1]=J.K[N]>>>16&255,R[N*4+2]=J.K[N]>>>8&255,R[N*4+3]=J.K[N]&255;vAE(J);return R}; vAE=function(J){J.K=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];J.D=[];J.D.length=64;J.Z=0;J.J=0}; SKQ=function(J){this.K=J}; Lc2=function(J,R,N){J=new l$(J.K);J.update(R);J.update(N);R=WcY(J);J.update(J.U);J.update(R);R=WcY(J);J.reset();return R}; Ib2=function(J){this.J=J}; FcE=function(J,R,N,C){var X,u,f;return g.Y(function(H){switch(H.K){case 1:if(J.K){H.ZM(2);break}return g.q(H,C.importKey("raw",J.J,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:J.K=H.J;case 2:return X=new Uint8Array(R.length+N.length),X.set(R),X.set(N,R.length),u={name:"HMAC",hash:"SHA-256"},g.q(H,C.sign(u,J.K,X),4);case 4:return f=H.J,H.return(new Uint8Array(f))}})}; EAQ=function(J,R,N){J.V||(J.V=new SKQ(J.J));return Lc2(J.V,R,N)}; Mgg=function(J,R,N){var C,X;return g.Y(function(u){if(u.K==1){C=g1();if(!C)return u.return(EAQ(J,R,N));g.Ef(u,3);return g.q(u,FcE(J,R,N,C),5)}if(u.K!=3)return u.return(u.J);X=g.K2(u);g.G$(X);mV=!0;return u.return(EAQ(J,R,N))})}; abB=function(J){for(var R="",N=0;N=1?J[J.length-1]:null;for(var C=g.K(J),X=C.next();!X.done;X=C.next())if(X=X.value,X.width&&X.height&&(N&&X.width>=R||!N&&X.height>=R))return X;for(R=J.length-1;R>=0;R--)if(N&&J[R].width||!N&&J[R].height)return J[R];return J[0]}; es=function(){this.state=1;this.Bw=null}; din=function(J,R,N,C,X,u){var f=f===void 0?"trayride":f;N?(J.XD(2),g.Db(N,function(){if(window[f])Z5Q(J,C,f,X);else{J.XD(3);var H=hpB(N),k=document.getElementById(H);k&&(wQY(H),k.parentNode.removeChild(k));g.G$(new g.C3("Unable to load Botguard","from "+N))}},u)):R?(u=g.iu("SCRIPT"),R instanceof g.ym?(u.textContent=g.GS(R),g.bx(u)):u.textContent=R,u.nonce=h0(window),document.head.appendChild(u),document.head.removeChild(u),window[f]?Z5Q(J,C,f,X):(J.XD(4),g.G$(new g.C3("Unable to load Botguard from JS")))): g.G$(new g.C3("Unable to load VM; no url or JS provided"))}; Z5Q=function(J,R,N,C){J.XD(5);try{var X=new nv({program:R,globalName:N,SO:{disable:!g.Ac("att_web_record_metrics"),LL:"aGIf"}});X.F0.then(function(){J.XD(6);C&&C(R)}); J.Mk(X)}catch(u){J.XD(7),u instanceof Error&&g.G$(u)}}; w1=function(){var J=g.gY("yt.abuse.playerAttLoader");return J&&["bgvma","bgvmb","bgvmc"].every(function(R){return R in J})?J:null}; cy=function(){es.apply(this,arguments)}; hN=function(){}; qKf=function(J,R,N){for(var C=!1,X=g.K(J.Z9.entries()),u=X.next();!u.done;u=X.next())u=g.K(u.value).next().value,u.slotType==="SLOT_TYPE_PLAYER_BYTES"&&u.DM==="core"&&(C=!0);if(C){a:if(!N){J=g.K(J.Z9.entries());for(N=J.next();!N.done;N=J.next())if(C=g.K(N.value),N=C.next().value,C=C.next().value,N.slotType==="SLOT_TYPE_IN_PLAYER"&&N.DM==="core"){N=C.layoutId;break a}N=void 0}N?R.Rt(N):d0("No triggering layout ID available when attempting to mute.")}}; yA=function(J,R){this.X_=J;this.FZ=R}; G5=function(){}; b$=function(){}; YKE=function(J){g.l.call(this);var R=this;this.NN=J;this.K=new Map;tN(this,"commandExecutorCommand",function(N,C,X){Adn(R,N.commands,C,X)}); tN(this,"clickTrackingParams",function(){})}; rdY=function(J,R){tN(J,R.Lw(),function(N,C,X){R.DL(N,C,X)})}; tN=function(J,R,N){J.QO();J.K.get(R)&&g.yD(Error("Extension name "+R+" already registered"));J.K.set(R,N)}; Adn=function(J,R,N,C){R=R===void 0?[]:R;J.QO();var X=[],u=[];R=g.K(R);for(var f=R.next();!f.done;f=R.next())f=f.value,g.z(f,jIE)||g.z(f,mi7)?X.push(f):u.push(f);X=g.K(X);for(R=X.next();!R.done;R=X.next())x3(J,R.value,N,C);u=g.K(u);for(X=u.next();!X.done;X=u.next())x3(J,X.value,N,C)}; x3=function(J,R,N,C){J.QO();R.loggingUrls&&VgP(J,"loggingUrls",R.loggingUrls,N,C);R=g.K(Object.entries(R));for(var X=R.next();!X.done;X=R.next()){var u=g.K(X.value);X=u.next().value;u=u.next().value;X==="openPopupAction"?J.NN.get().U$("innertubeCommand",{openPopupAction:u}):X==="confirmDialogEndpoint"?J.NN.get().U$("innertubeCommand",{confirmDialogEndpoint:u}):gAP.hasOwnProperty(X)||VgP(J,X,u,N,C)}}; VgP=function(J,R,N,C,X){if((J=J.K.get(R))&&typeof J==="function")try{J(N,C,X)}catch(u){g.yD(u)}else R=new g.C3("Unhandled field",R),g.G$(R)}; JR=function(J,R,N){this.Js=J;this.K=R;this.AN=N}; o8=function(J){this.value=J}; R8=function(J){this.value=J}; ND=function(J){this.value=J}; CV=function(J){this.value=J}; XN=function(J){this.value=J}; i5=function(J){this.value=J}; u5=function(J){this.value=J}; fV=function(){o8.apply(this,arguments)}; Th=function(J){this.value=J}; $J=function(J){this.value=J}; He=function(J){this.value=J}; kJ=function(J){this.value=J}; ve=function(J){this.value=J}; We=function(J){this.value=J}; SU=function(J){this.value=J}; LV=function(J){this.value=J}; I8=function(J){this.value=J}; FN=function(J){this.value=J}; Eh=function(){o8.apply(this,arguments)}; MD=function(J){this.value=J}; KV=function(J){this.value=J}; a8=function(J){this.value=J}; Qa=function(J){this.value=J}; nV=function(J){this.value=J}; D_=function(J){this.value=J}; sh=function(J){this.value=J}; Be=function(J){this.value=J}; Oh=function(J){this.value=J}; Z_=function(J){this.value=J}; dX=function(J){this.value=J}; qD=function(J){this.value=J}; AR=function(J){this.value=J}; YJ=function(J){this.value=J}; rX=function(J){this.value=J}; jU=function(J){this.value=J}; mp=function(J){this.value=J}; Va=function(J){this.value=J}; gX=function(J){this.value=J}; Uh=function(J){this.value=J}; pV=function(J){this.value=J}; l5=function(J){this.value=J}; Pe=function(J){this.value=J}; zh=function(J){this.value=J}; eU=function(J){this.value=J}; wX=function(J){this.value=J}; ce=function(J){this.value=J}; hR=function(J){this.value=J}; ya=function(J){this.value=J}; Gh=function(J){this.value=J}; b5=function(J){this.value=J}; tR=function(J){this.value=J}; xJ=function(J){this.value=J}; J3=function(J){this.value=J}; o$=function(J){this.value=J}; R$=function(J){this.value=J}; Nb=function(J){this.value=J}; CQ=function(J){this.value=J}; Xj=function(){o8.apply(this,arguments)}; i6=function(J){this.value=J}; u6=function(){o8.apply(this,arguments)}; fQ=function(){o8.apply(this,arguments)}; Tu=function(){o8.apply(this,arguments)}; HM=function(){o8.apply(this,arguments)}; kj=function(){o8.apply(this,arguments)}; vM=function(J){this.value=J}; WM=function(J){this.value=J}; SG=function(J){this.value=J}; LQ=function(J){this.value=J}; I$=function(J){this.value=J}; Ej=function(J,R,N){if(N&&!N.includes(J.layoutType))return!1;R=g.K(R);for(N=R.next();!N.done;N=R.next())if(!Fj(J.clientMetadata,N.value))return!1;return!0}; Mb=function(){return""}; Uif=function(J,R){switch(J){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return R(J),8}}; KQ=function(J,R,N,C){C=C===void 0?!1:C;vl.call(this,J);this.Ak=N;this.Xt=C;this.args=[];R&&this.args.push(R)}; x=function(J,R,N,C){C=C===void 0?!1:C;vl.call(this,J);this.Ak=N;this.Xt=C;this.args=[];R&&this.args.push(R)}; a$=function(J){var R=new Map;J.forEach(function(N){R.set(N.getType(),N)}); this.K=R}; Fj=function(J,R){return J.K.has(R)}; QX=function(J,R){J=J.K.get(R);if(J!==void 0)return J.get()}; nQ=function(J){return Array.from(J.K.keys())}; DN=function(J,R,N){if(N&&N!==J.slotType)return!1;R=g.K(R);for(N=R.next();!N.done;N=R.next())if(!Fj(J.clientMetadata,N.value))return!1;return!0}; lbB=function(J){var R;return((R=pG7.get(J))==null?void 0:R.iF)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; BM=function(J,R){var N={type:R.slotType,controlFlowManagerLayer:P02.get(R.DM)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};R.slotEntryTrigger&&(N.entryTriggerType=R.slotEntryTrigger.triggerType);R.slotPhysicalPosition!==1&&(N.slotPhysicalPosition=R.slotPhysicalPosition);if(J){N.debugData={slotId:R.slotId};if(J=R.slotEntryTrigger)N.debugData.slotEntryTriggerData=sj(J);J=R.slotFulfillmentTriggers;N.debugData.fulfillmentTriggerData=[];J=g.K(J);for(var C=J.next();!C.done;C=J.next())N.debugData.fulfillmentTriggerData.push(sj(C.value)); R=R.slotExpirationTriggers;N.debugData.expirationTriggerData=[];R=g.K(R);for(J=R.next();!J.done;J=R.next())N.debugData.expirationTriggerData.push(sj(J.value))}return N}; zZE=function(J,R){var N={type:R.layoutType,controlFlowManagerLayer:P02.get(R.DM)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};J&&(N.debugData={layoutId:R.layoutId});return N}; sj=function(J,R){var N={type:J.triggerType};R!=null&&(N.category=R);J.triggeringSlotId!=null&&(N.triggerSourceData||(N.triggerSourceData={}),N.triggerSourceData.associatedSlotId=J.triggeringSlotId);J.triggeringLayoutId!=null&&(N.triggerSourceData||(N.triggerSourceData={}),N.triggerSourceData.associatedLayoutId=J.triggeringLayoutId);return N}; eZ2=function(J,R,N,C){R={opportunityType:R};J&&(C||N)&&(C=g.Yy(C||[],function(X){return BM(J,X)}),R.debugData=Object.assign({},N&&N.length>0?{associatedSlotId:N}:{},C.length>0?{slots:C}:{})); return R}; ZN=function(J,R){return function(N){return wG7(Oj(J),R.slotId,R.slotType,R.slotPhysicalPosition,R.DM,R.slotEntryTrigger,R.slotFulfillmentTriggers,R.slotExpirationTriggers,N.layoutId,N.layoutType,N.DM)}}; wG7=function(J,R,N,C,X,u,f,H,k,v,W){return{adClientDataEntry:{slotData:BM(J,{slotId:R,slotType:N,slotPhysicalPosition:C,DM:X,slotEntryTrigger:u,slotFulfillmentTriggers:f,slotExpirationTriggers:H,clientMetadata:new a$([])}),layoutData:zZE(J,{layoutId:k,layoutType:v,DM:W,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],w3:new Map,clientMetadata:new a$([]),AE:{}})}}}; qb=function(J){this.JN=J;J=Math.random();var R=this.JN.get();R=g.di(R.G.N().experiments,"html5_debug_data_log_probability");R=Number.isFinite(R)&&R>=0&&R<=1?R:0;this.K=J1){g.G$(new g.C3("Exit already started",{current:J.currentState}));var N=!1}else N=!0;if(!N)return!1;J.currentState=2;J.K=R;return!0}; re=function(J){if(J.currentState!==2)return!1;J.currentState=3;return!0}; KaE=function(J,R){var N=new Map;J=g.K(J);for(var C=J.next();!C.done;C=J.next()){C=C.value;if(C.layoutType==="LAYOUT_TYPE_MEDIA")var X="v";else C.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(X=QX(C.clientMetadata,"metadata_type_linked_in_player_layout_type"),X=X==="LAYOUT_TYPE_ENDCAP"||X==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":X==="LAYOUT_TYPE_SURVEY"?"s":X==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):X="u";N.set(C.layoutId,X);if(X==="u"){var u={};X=R;C=(u.c=C.layoutId,u);X.G.u3("uct",C)}}J= R.pR();jy={contentCpn:J,JC:N};C={};N=(C.ct=N.size,C.c=J,C);R.G.u3("acc",N)}; aKn=function(){jy={contentCpn:"",JC:new Map}}; mI=function(J){var R;return(R=jy.JC.get(J))!=null?R:"u"}; VC=function(J,R,N){J.G.u3(R,N);Qlf(J)}; nn7=function(J){var R=J.layoutId,N=J.Wi;if(J.B4){var C={};VC(J.Js,"slso",(C.ec=R,C.is=N,C.ctp=mI(R),C))}}; ge=function(J){var R=J.layoutId,N=J.Wi;if(J.B4){var C={};VC(J.Js,"slse",(C.ec=R,C.is=N,C.ctp=mI(R),C))}}; DjE=function(J){var R=J.layoutId,N=J.Wi,C=J.Js;J.B4&&(J={},VC(C,"sleo",(J.xc=R,J.is=N,J.ctp=mI(R),J)),Qlf(C))}; slE=function(J){var R=J.cpn,N=J.Js;J=J.Wi;var C=N.pR(),X={};VC(N,"ce",(X.ec=R,X.ia=R!==C,X.r=jy.JC.has(R),X.is=J,X.ctp=mI(R),X))}; Qlf=function(J){if(J.pR()!==jy.contentCpn){var R={};R=(R.c=jy.contentCpn,R);J.G.u3("ccm",R)}}; BaP=function(J){var R=J.cpn,N=J.Js;J=J.Wi;var C=N.pR(),X={};VC(N,"cx",(X.xc=R,X.ia=R!==C,X.r=jy.JC.has(R),X.is=J,X.ctp=mI(R),X))}; O77=function(J){this.params=J;this.K=new Set}; Z7n=function(J,R,N){if(!J.K.has(R)){J.K.add(R);var C={};J.params.Wa.NO(R,Object.assign({},N,(C.p_ac=J.params.adCpn,C.p_isv=J.params.v8C&&J.params.Ky,C)))}}; pG=function(J,R,N){if(U4(J.params.Wa.JN.get(),!0)){var C=N.flush,X={};Z7n(J,R,(X.cts=N.currentTimeSec,X.f=C,X))}}; djY=function(J,R){this.Js=J;this.JN=R}; lJ=function(J){var R=[];if(J){J=g.K(Object.entries(J));for(var N=J.next();!N.done;N=J.next()){var C=g.K(N.value);N=C.next().value;C=C.next().value;C!==void 0&&(C=typeof C==="boolean"?""+ +C:(""+C).replace(/[:,=]/g,"_"),R.push(N+"."+C))}}return R.join(";")}; PD=function(J,R,N){R=R===void 0?{}:R;this.errorCode=J;this.details=R;this.severity=N===void 0?0:N}; zi=function(J){return J===1||J===2}; ey=function(J,R){R=R===void 0?0:R;if(J instanceof PD)return J;J=J&&J instanceof Error?J:Error(""+J);zi(R)?g.yD(J):g.G$(J);return new PD(R===1?"player.fatalexception":"player.exception",{name:""+J.name,message:""+J.message},R)}; g.ApE=function(J){return(J=qIf[J.toString()])?J:"LICENSE"}; YI7=function(J,R){function N(){var C=g.sf.apply(0,arguments);J.removeEventListener("playing",N);R.apply(null,g.Q(C))} J.addEventListener("playing",N)}; we=function(){var J=g.gY("yt.player.utils.videoElement_");J||(J=g.iu("VIDEO"),g.VE("yt.player.utils.videoElement_",J));return J}; cD=function(J){var R=we();return!!(R&&R.canPlayType&&R.canPlayType(J))}; yC=function(J){if(/opus/.test(J)&&g.hY&&!Vi("38")&&!g.Rc())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(J);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(J);if(/webm/.test(J)&&!eN2())return!1;J==='audio/mp4; codecs="mp4a.40.2"'&&(J='video/mp4; codecs="avc1.4d401f"');return!!cD(J)}; rp2=function(J){try{var R=yC('video/mp4; codecs="avc1.42001E"')||yC('video/webm; codecs="vp9"');return(yC('audio/mp4; codecs="mp4a.40.2"')||yC('audio/webm; codecs="opus"'))&&(R||!J)||cD('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(N){return"html5.missingapi"}}; Gi=function(){var J=we();return!(!J.webkitSupportsPresentationMode||typeof J.webkitSetPresentationMode!=="function")}; bJ=function(){var J=we();try{var R=J.muted;J.muted=!R;return J.muted!==R}catch(N){}return!1}; jl2=function(){var J;return((J=navigator.connection)==null?void 0:J.type)||""}; g.tY=function(){gJ.apply(this,arguments)}; xP=function(J,R,N,C,X,u){this.sampleRate=J===void 0?0:J;this.numChannels=R===void 0?0:R;this.spatialAudioType=N===void 0?"SPATIAL_AUDIO_TYPE_NONE":N;this.K=C===void 0?!1:C;this.V=X===void 0?0:X;this.J=u===void 0?0:u}; R6=function(J,R,N,C,X,u,f,H,k){this.width=J;this.height=R;this.quality=u||Jy(J,R);this.K=g.o6[this.quality];this.fps=N||0;this.stereoLayout=!X||C!=null&&C!=="UNKNOWN"&&C!=="RECTANGULAR"?0:X;this.projectionType=C?C==="EQUIRECTANGULAR"&&X===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":C:"UNKNOWN";(J=f)||(J=g.o6[this.quality],J===0?J="Autom\u00e1tico":(R=this.fps,N=this.projectionType,J=J.toString()+(N==="EQUIRECTANGULAR"||N==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||N==="MESH"?"s":"p")+(R>55?"60":R>49?"50":R> 39?"48":"")));this.qualityLabel=J;this.J=H||"";this.primaries=k||""}; Jy=function(J,R){var N=Math.max(J,R);J=Math.min(J,R);R=Nk[0];for(var C=0;C=Math.floor(u*16/9)*1.3||J>=u*1.3)return R;R=X}return"tiny"}; iM=function(J,R,N){N=N===void 0?{}:N;this.id=J;this.mimeType=R;N.fC>0||(N.fC=16E3);Object.assign(this,N);J=g.K(this.id.split(";"));this.itag=J.next().value;this.K=J.next().value;this.containerType=Ce(R);this.sB=XS[this.itag]||""}; uM=function(J){return J.sB==="9"||J.sB==="("||J.sB==="9h"||J.sB==="(h"}; mj2=function(J){return J.sB==="H"||J.sB==="h"}; fe=function(J){return J.sB==="9h"||J.sB==="(h"}; T0=function(J){return J.sB==="1"||J.sB==="1h"}; $Y=function(J){return J.sB==="mac3"||J.sB==="meac3"||J.sB==="m"}; HS=function(J){return J.sB==="MAC3"||J.sB==="MEAC3"||J.sB==="M"}; g.kY=function(J){return J.containerType===1}; V7B=function(J){return J.sB==="("||J.sB==="(h"||J.sB==="H"}; vS=function(J){return J.mimeType==="application/x-mpegURL"}; WS=function(J,R){return{itag:+J.itag,lmt:R?0:J.lastModified,xtags:J.K||""}}; gng=function(J){var R=navigator.mediaCapabilities;if(R==null||!R.decodingInfo||J.sB==="f")return Promise.resolve();var N={type:J.audio&&J.video?"file":"media-source"};J.video&&(N.video={contentType:J.mimeType,width:J.video.width||640,height:J.video.height||360,bitrate:J.fC*8||1E6,framerate:J.video.fps||30});J.audio&&(N.audio={contentType:J.mimeType,channels:""+(J.audio.numChannels||2),bitrate:J.fC*8||128E3,samplerate:J.audio.sampleRate||44100});return R.decodingInfo(N).then(function(C){J.J=C})}; Sv=function(J){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(J)}; Le=function(J){return/(vp9|vp09|vp8|avc1|av01)/.test(J)}; I6=function(J){return J.includes("vtt")||J.includes("text/mp4")}; Ce=function(J){return J.indexOf("/mp4")>=0?1:J.indexOf("/webm")>=0?2:J.indexOf("/x-flv")>=0?3:J.indexOf("/vtt")>=0?4:0}; FS=function(J,R,N,C,X,u){var f=new xP;R in g.o6||(R="small");R==="light"&&(R="tiny");C&&X?(X=Number(X),C=Number(C)):(X=g.o6[R],C=Math.round(X*16/9));u=new R6(C,X,0,null,void 0,R,u);J=unescape(J.replace(/"/g,'"'));return new iM(N,J,{audio:f,video:u})}; EO=function(J){var R="id="+J.id;J.video&&(R+=", res="+J.video.qualityLabel);var N,C;return R+", byterate=("+((N=J.j4)==null?void 0:N.toFixed(0))+", "+((C=J.fC)==null?void 0:C.toFixed(0))+")"}; Mk=function(J,R){return{start:function(N){return J[N]}, end:function(N){return R[N]}, length:J.length}}; Ujf=function(J,R,N){for(var C=[],X=[],u=0;u=R)return N}catch(C){}return-1}; Qp=function(J,R){return a6(J,R)>=0}; pdf=function(J,R){if(!J)return NaN;R=a6(J,R);return R>=0?J.start(R):NaN}; ne=function(J,R){if(!J)return NaN;R=a6(J,R);return R>=0?J.end(R):NaN}; DS=function(J){return J&&J.length?J.end(J.length-1):NaN}; sO=function(J,R){J=ne(J,R);return J>=0?J-R:0}; BS=function(J,R,N){for(var C=[],X=[],u=0;uN||(C.push(Math.max(R,J.start(u))-R),X.push(Math.min(N,J.end(u))-R));return Mk(C,X)}; OO=function(J,R,N,C){g.al.call(this);var X=this;this.dk=J;this.start=R;this.end=N;this.isActive=C;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.IM={error:function(){!X.QO()&&X.isActive&&X.publish("error",X)}, updateend:function(){!X.QO()&&X.isActive&&X.publish("updateend",X)}}; g.QP(this.dk,this.IM);this.Hb=this.isActive}; dm=function(J,R,N,C,X,u){g.al.call(this);var f=this;this.CP=J;this.Ne=R;this.id=N;this.containerType=C;this.sB=X;this.Ky=u;this.fU=this.gM=this.RT=null;this.sR=!1;this.appendWindowStart=this.timestampOffset=0;this.B2=Mk([],[]);this.iC=!1;this.Jq=[];this.o4=ZS?[]:void 0;this.cU=function(k){return f.publish(k.type,f)}; var H;if((H=this.CP)==null?0:H.addEventListener)this.CP.addEventListener("updateend",this.cU),this.CP.addEventListener("error",this.cU)}; qk=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; Ay=function(J,R){this.resource=J;this.K=R===void 0?!1:R;this.J=!1}; YY=function(J,R,N){N=N===void 0?!1:N;g.l.call(this);this.mediaElement=J;this.Mp=R;this.isView=N;this.S=0;this.Z=!1;this.U=!0;this.W=0;this.callback=null;this.X=!1;this.Mp||(this.Ne=this.mediaElement.Ov());this.events=new g.tY(this);g.P(this,this.events);this.V=new Ay(this.Mp?window.URL.createObjectURL(this.Mp):this.Ne.webkitMediaSourceURL,!0);J=this.Mp||this.Ne;U7(this.events,J,["sourceopen","webkitsourceopen"],this.VDf);U7(this.events,J,["sourceclose","webkitsourceclose"],this.tDf);this.D={updateend:this.XW}}; lKY=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; PW7=function(J,R){rm(J)?g.Sz(function(){R(J)}):J.callback=R}; zcg=function(J,R,N){if(jv){var C;mx(J.mediaElement,{l:"mswssb",sr:(C=J.mediaElement.RB)==null?void 0:Vp(C)},!1);g.QP(R,J.D,J);g.QP(N,J.D,J)}J.K=R;J.J=N;g.P(J,R);g.P(J,N)}; ecE=function(J,R,N,C){C=R.mimeType+(C===void 0?"":C);var X=N.mimeType;R=R.sB;N=N.sB;var u;J.nC=(u=J.Mp)==null?void 0:u.addSourceBuffer(X);var f;J.dn=C.split(";")[0]==="fakesb"?void 0:(f=J.Mp)==null?void 0:f.addSourceBuffer(C);J.Ne&&(J.Ne.webkitSourceAddId("0",X),J.Ne.webkitSourceAddId("1",C));u=new dm(J.nC,J.Ne,"0",Ce(X),N,!1);C=new dm(J.dn,J.Ne,"1",Ce(C),R,!0);zcg(J,u,C)}; gm=function(J){return!!J.K||!!J.J}; rm=function(J){try{return UO(J)==="open"}catch(R){return!1}}; UO=function(J){if(J.Mp)return J.Mp.readyState;switch(J.Ne.webkitSourceState){case J.Ne.SOURCE_OPEN:return"open";case J.Ne.SOURCE_ENDED:return"ended";default:return"closed"}}; pe=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; wd7=function(J){rm(J)&&(J.Mp?J.Mp.endOfStream():J.Ne.webkitSourceEndOfStream(J.Ne.EOS_NO_ERROR))}; cp2=function(J,R,N,C){if(!J.K||!J.J)return null;var X=J.K.isView()?J.K.dk:J.K,u=J.J.isView()?J.J.dk:J.J,f=new YY(J.mediaElement,J.Mp,!0);f.V=J.V;zcg(f,new OO(X,R,N,C),new OO(u,R,N,C));rm(J)||J.K.nh(J.K.uS());return f}; hcE=function(J){var R;(R=J.K)==null||R.Oe();var N;(N=J.J)==null||N.Oe();J.U=!1}; lM=function(){var J=this;this.EO=this.sC=i8n;this.promise=new g.KC(function(R,N){J.sC=R;J.EO=N})}; PS=function(){g.l.call(this);this.CO=!1;this.resource=null;this.D=this.S=!1;this.Z=new g.iD;this.RB=null;g.P(this,this.Z)}; z0=function(J){J=J.uR();return J.length<1?NaN:J.end(J.length-1)}; ypE=function(J){!J.J&&lKY()&&(J.V?J.V.then(function(){return ypE(J)}):J.tS()||(J.J=J.y8()))}; GTB=function(J){J.J&&(J.J.dispose(),J.J=void 0)}; mx=function(J,R,N){var C;((C=J.RB)==null?0:C.Si())&&J.RB.u3("rms",R,N===void 0?!1:N)}; b7P=function(J,R,N){J.isPaused()||J.getCurrentTime()>R||N>10||(J.play(),g.BR(function(){b7P(J,J.getCurrentTime(),N+1)},500))}; t7B=function(J,R){J.resource&&R!==null&&R.resource===J.resource.resource||(J.resource&&J.resource.dispose(),J.resource=R)}; ev=function(J){return sO(J.BV(),J.getCurrentTime())}; xjE=function(J,R){if(J.UV()===0||J.hasError())return!1;var N=J.getCurrentTime()>0;return R>=0&&(J=J.uR(),J.length||!N)?Qp(J,R):N}; wm=function(J){J.tS()&&(J.RB&&J.RB.Kk("rs_s"),C9&&J.getCurrentTime()>0&&J.seekTo(0),J.Ta(),J.load(),t7B(J,null));delete J.V}; cS=function(J){switch(J.WV()){case 2:return"progressive.net.retryexhausted";case 3:var R;return((R=J.iB())==null?0:R.includes("MEDIA_ERR_CAPABILITY_CHANGED"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.hy=function(J,R,N){this.uu=R===void 0?null:R;this.seekSource=N===void 0?null:N;this.state=J||64}; sc=function(J,R,N){N=N===void 0?!1:N;return JlQ(J,R.getCurrentTime(),(0,g.g9)(),ev(R),N)}; ZX=function(J,R,N,C){if(!(R===J.state&&N===J.uu&&C===J.seekSource||R!==void 0&&(R&128&&!N||R&2&&R&16))){var X;if(X=R)X=R||J.state,X=!!(X&16||X&32);J=new g.hy(R,N,X?C?C:J.seekSource:null)}return J}; dD=function(J,R,N){return ZX(J,J.state|R,null,N===void 0?null:N)}; qR=function(J,R){return ZX(J,J.state&~R,null,null)}; Am=function(J,R,N,C){return ZX(J,(J.state|R)&~N,null,C===void 0?null:C)}; g.h=function(J,R){return!!(J.state&R)}; g.Yo=function(J,R){return R.state===J.state&&R.uu===J.uu}; rD=function(J){return J.isPlaying()&&!g.h(J,16)&&!g.h(J,32)}; jl=function(J){return g.h(J,128)?-1:g.h(J,2)?0:g.h(J,2048)?3:g.h(J,64)?-1:g.h(J,1)&&!g.h(J,32)?3:g.h(J,8)?1:g.h(J,4)?2:-1}; Vr=function(J,R,N,C,X,u,f,H,k,v,W,S,L,I,F,a,n){g.l.call(this);var B=this;this.To=J;this.slot=R;this.layout=N;this.AN=C;this.v3=X;this.Y8=u;this.UB=f;this.qN=H;this.I1=k;this.w4=v;this.position=S;this.S=L;this.JN=I;this.W$=F;this.uv=a;this.context=n;this.dw=!0;this.U=!1;this.zW="not_rendering";this.J=!1;this.V=new AY;J=QX(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Np=new eJ(N.w3,this.AN,J,N.layoutId);var Z;J=((Z=mO(this))==null?void 0:Z.progressCommands)||[];this.Z=new bRf(k, J,N.layoutId,function(){return B.Ee()}); this.K=new O77({adCpn:this.layout.layoutId,Wa:n.Wa,v8C:this.W$,Ky:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; gD=function(J){return{layoutId:J.Bt(),Wi:J.W$,Js:J.Y8.get(),B4:J.CL()}}; Uc=function(J,R){return R.layoutId!==J.layout.layoutId?(J.To.dL(J.slot,R,new KQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+J.layout.layoutId+("and LayoutType: "+J.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; pT=function(J){J.zW="rendering_start_requested";J.w4(-1)}; mO=function(J){return QX(J.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; opn=function(J){d0("Received layout exit signal when not in layout exit flow.",J.slot,J.layout)}; Rzf=function(J){var R;return((R=ls(J.Y8.get(),2))==null?void 0:R.clientPlaybackNonce)||""}; Pr=function(J,R){switch(R){case "normal":J.r3("complete");break;case "skipped":J.r3("skip");break;case "abandoned":b1(J.Np,"impression")&&J.r3("abandon")}}; zk=function(J,R){J.U||(R=new g.q2(R.state,new g.hy),J.U=!0);return R}; el=function(J,R){Z6(R)?J.w4(1):g.Yp(R,4)&&!g.Yp(R,2)&&J.Fl();Al(R,4)<0&&!(Al(R,2)<0)&&J.cj()}; N0B=function(J){J.position===0&&(J.qN.get(),J=QX(J.layout.clientMetadata,"metadata_type_ad_placement_config").kind,J={adBreakType:wD(J)},vU("ad_bl"),g.WU(J))}; cr=function(J,R){y3(J.Np,R,!J.J)}; XF2=function(J){var R;return(((R=mO(J))==null?void 0:R.progressCommands)||[]).findIndex(function(N){return!!g.z(N==null?void 0:N.command,Cyg)})!==-1}; hm=function(J,R){var N=QX(J.clientMetadata,"metadata_type_eligible_for_ssap");return N===void 0?(d0("Expected SSAP eligibility in PlayerBytes factory",J),!1):R.CL(N)}; yr=function(J,R){if(!ki(R.get(),"html5_ssap_pass_transition_reason"))return 3;switch(J){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return d0("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return d0("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:J}),3;default:xN(J,"unknown layoutExitReason")}}; irn=function(J){d0("getExitReason: unexpected reason",void 0,void 0,{reason:J})}; Gk=function(J,R){if(ki(R.get(),"html5_ssap_pass_transition_reason"))switch(J){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return irn(J),"abandoned";case 3:case 1:return irn(J),"error";default:xN(J,"unexpected transition reason")}else switch(J){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return d0("getExitReason: unexpected reason",void 0,void 0,{reason:J}),"error";default:xN(J,"unexpected transition reason")}}; bs=function(J,R,N){Ln(J,N)||F8(J,R,N);Ln(J,"video_to_ad")||F8(J,R,"video_to_ad");Ln(J,"ad_to_video")||F8(J,R,"ad_to_video");Ln(J,"ad_to_ad")||F8(J,R,"ad_to_ad")}; tm=function(J,R,N,C,X,u,f,H,k,v,W,S,L,I,F,a,n,B){Vr.call(this,J,R,N,C,X,u,f,H,v,W,S,L,I,F,a,n,B);var Z=this;this.NN=k;this.Vq=S;this.pO=!0;this.Wp=this.Ul=0;this.Bl=Es(function(){nn7(gD(Z));Z.To.H3(Z.slot,Z.layout)}); this.QG=Es(function(){DjE(gD(Z));Z.zW!=="rendering_stop_requested"&&Z.Vq(Z);Z.layoutExitReason?Z.To.mV(Z.slot,Z.layout,Z.layoutExitReason):opn(Z)}); this.pY=new g.dt(200);this.pY.listen("tick",function(){Z.P1()}); g.P(this,this.pY)}; Jo=function(J){J.Wp=Date.now();xo(J,J.Ul);J.pY.start()}; upE=function(J){J.Ul=J.Ee();J.UJ(J.Ul/1E3,!0);xo(J,J.Ul)}; xo=function(J,R){R={current:R/1E3,duration:J.Ee()/1E3};J.NN.get().U$("onAdPlaybackProgress",R)}; oq=function(J){tm.call(this,J.To,J.slot,J.lB,J.AN,J.v3,J.Y8,J.UB,J.qN,J.NN,J.I1,J.w4,J.Vq,J.Fs,J.GR,J.JN,J.W$,J.uv,J.context)}; Rq=function(J){tm.call(this,J.To,J.slot,J.lB,J.AN,J.v3,J.Y8,J.UB,J.qN,J.NN,J.I1,J.w4,J.Vq,J.Fs,J.GR,J.JN,J.W$,J.uv,J.context)}; NJ=function(){Rq.apply(this,arguments)}; fOE=function(J){return hm(J.slot,J.JN.get())?new NJ(J):new oq(J)}; iN=function(J){Vr.call(this,J.callback,J.slot,J.lB,J.AN,J.v3,J.Y8,J.UB,J.qN,J.I1,J.w4,J.Vq,J.Fs,J.GR,J.JN,J.W$,J.uv,J.context);var R=this;this.adCpn="";this.n9=0;this.CS=!1;this.V2=0;this.Bl=Es(function(){nn7(gD(R));R.To.H3(R.slot,R.layout)}); this.QG=Es(function(){DjE(gD(R));R.zW!=="rendering_stop_requested"&&R.Vq(R);R.layoutExitReason?R.To.mV(R.slot,R.layout,R.layoutExitReason):opn(R)}); this.H7=J.H7;this.Es=J.Es;this.TA=J.TA;this.NN=J.NN;this.Hw=J.Hw;this.Vq=J.Vq;if(!this.CL()){ki(this.JN.get(),"html5_disable_media_load_timeout")||(this.cD=new g.$t(function(){R.Sa("load_timeout",new KQ("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); J=C_(this.JN.get());var N=Xg(this.JN.get());J&&N&&(this.By=new g.$t(function(){var C=QX(R.layout.clientMetadata,"metadata_type_preload_player_vars");C&&R.Es.get().G.preloadVideoByPlayerVars(C,2,300)}))}}; $2k=function(J,R){var N=QX(R.clientMetadata,"metadata_type_ad_video_id"),C=QX(R.clientMetadata,"metadata_type_legacy_info_card_vast_extension");N&&C&&J.Hw.get().G.N().G7.add(N,{XQ:C});(R=QX(R.clientMetadata,"metadata_type_sodar_extension_data"))&&HRY(J.H7.get(),R);T0n(J.UB.get(),!1)}; HrE=function(J){T0n(J.UB.get(),!0);var R;((R=J.shrunkenPlayerBytesConfig)==null?0:R.shouldRequestShrunkenPlayerBytes)&&J.UB.get().B_(!1)}; k8P=function(J){var R=QX(J.pP().clientMetadata,"metadata_type_player_bytes_slot_metadata");R===void 0&&d0("PlayerBytesSlotMetadata is not filled",J.pP(),J.LC());return(R==null?void 0:R.f2)===!0}; uN=function(){iN.apply(this,arguments)}; f_=function(){uN.apply(this,arguments)}; vpE=function(J){return fOE(Object.assign({},J,{To:J.callback,w4:function(){}}))}; WrB=function(J){return new iN(Object.assign({},J,{w4:function(R){J.NN.get().U$("onAdIntroStateChange",R)}}))}; SSB=function(J){function R(N){J.NN.get().Ij(N)} return hm(J.slot,J.JN.get())?new f_(Object.assign({},J,{w4:R})):new iN(Object.assign({},J,{w4:R}))}; TG=function(J){for(var R=J.lB,N=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],C=g.K(wN()),X=C.next();!X.done;X=C.next())N.push(X.value);if(WD(R,{Om:N,BU:["LAYOUT_TYPE_MEDIA_BREAK"]}))return vpE(J);R=J.lB;N=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];C=g.K(wN());for(X=C.next();!X.done;X=C.next())N.push(X.value);if(WD(R,{Om:N,BU:["LAYOUT_TYPE_MEDIA"]}))return Fj(J.lB.clientMetadata,"metadata_type_ad_intro")?WrB(J):SSB(J)}; IOf=function(J){var R=QX(J.clientMetadata,"metadata_type_ad_placement_config").kind,N=QX(J.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:J.layoutId,adType:Lr7(N),adBreakType:wD(R)}}; wD=function(J){switch(J){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; Lr7=function(J){switch(J){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; Frg=function(J){try{return new $B(J.ew,J.slot,J.layout,J.Td,J.Q0,J.Y8,J.v1,J.Es,J.o1,J.UB,J.YQO,J)}catch(R){}}; $B=function(J,R,N,C,X,u,f,H,k,v,W,S){g.l.call(this);this.ew=J;this.slot=R;this.layout=N;this.Td=C;this.Q0=X;this.Y8=u;this.v1=f;this.Es=H;this.o1=k;this.UB=v;this.params=S;this.dw=!0;J=TG(W);if(!J)throw Error("Invalid params for sublayout");this.a9=J}; Epg=function(){this.K=1;this.J=new AY}; HP=function(J,R,N,C,X,u,f,H,k,v,W,S,L){g.l.call(this);this.callback=J;this.Y8=R;this.v1=N;this.Es=C;this.UB=X;this.qN=u;this.Ae=f;this.slot=H;this.layout=k;this.Td=v;this.zD=W;this.o1=S;this.JN=L;this.dw=!0;this.Hu=!1;this.nx=[];this.RR=-1;this.xb=!1;this.mU=new Epg}; Maf=function(J){var R;return(R=J.layout.wC)!=null?R:QX(J.layout.clientMetadata,"metadata_type_sub_layouts")}; kB=function(J){return{Js:J.Y8.get(),Wi:!1,B4:J.CL()}}; KrE=function(J,R,N){if(J.hk()===J.nx.length-1){var C,X;d0("Unexpected skip requested during the last sublayout",(C=J.jX())==null?void 0:C.pP(),(X=J.jX())==null?void 0:X.LC(),{requestingSlot:R,requestingLayout:N})}}; aO7=function(J,R,N){return N.layoutId!==vP(J,R,N)?(d0("onSkipRequested for a PlayerBytes layout that is not currently active",J.pP(),J.LC()),!1):!0}; QHB=function(J){J.hk()===J.nx.length-1&&d0("Unexpected skip with target requested during the last sublayout")}; npE=function(J,R,N){return N.renderingContent===void 0&&N.layoutId!==vP(J,R,N)?(d0("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",J.pP(),J.LC(),{requestingSlot:R,requestingLayout:N}),!1):!0}; D2g=function(J,R,N,C){var X=QX(R.LC().clientMetadata,"metadata_type_ad_pod_skip_target");if(X&&X>0&&X0)){d0("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",J.slot,J.layout,{indexToPlay:R,layoutId:J.layout.layoutId});break a}J.RR=R;R=J.jX();if(J.hk()>0&&!J.CL()){var N=J.qN.get();N.J=!1;var C={};N.K&&N.videoId&&(C.cttAuthInfo={token:N.K,videoId:N.videoId});SV("ad_to_ad",C)}J.BM(R)}}; Iq=function(J){HP.call(this,J.ew,J.Y8,J.v1,J.Es,J.UB,J.qN,J.Ae,J.slot,J.layout,J.Td,J.zD,J.o1,J.JN)}; Or8=function(J){(J=J.jX())&&J.n1()}; Fg=function(J){HP.call(this,J.ew,J.Y8,J.v1,J.Es,J.UB,J.qN,J.Ae,J.slot,J.layout,J.Td,J.zD,J.o1,J.JN);this.GT=void 0}; ZrB=function(J,R){J.a7()&&!re(J.mU.J)||J.callback.mV(J.slot,J.layout,R)}; E8=function(J){return ki(J.JN.get(),"html5_ssap_pass_transition_reason")}; d2B=function(J,R,N){R.yw().currentState<2&&(N=Gk(N,J.JN),R.vU(R.LC(),N));N=R.yw().K;J.CH(J.slot,R.LC(),N)}; qSf=function(J,R){if(J.mU.J.currentState<2){var N=Gk(R,J.JN);N==="error"?J.callback.dL(J.slot,J.layout,new KQ("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:R},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):L_(J.zD,J.layout,N)}}; MJ=function(J,R,N){R.yw().currentState>=2||(R.vU(R.LC(),N),re(R.yw())&&(cM(J.Ae,J.slot,R.LC(),N),J.GT=void 0))}; Alg=function(J,R){J.mU.K===2&&R!==J.pR()&&d0("onClipEntered: unknown cpn",J.slot,J.layout,{cpn:R})}; YSE=function(J,R){var N=J.jX();if(N){var C=N.LC().layoutId,X=J.hk()+1;J.a7()?MJ(J,N,R):N.vU(N.LC(),R);X>=0&&XX&&f.xw(W,X-C);return W}; PyQ=function(J,R,N){var C=QX(R.clientMetadata,"metadata_type_sodar_extension_data");if(C)try{HRY(N,C)}catch(X){d0("Unexpected error when loading Sodar",J,R,{error:X})}}; zzk=function(J,R,N,C,X,u,f){BP(J,R,new g.q2(N,new g.hy),C,X,f,!1,u)}; BP=function(J,R,N,C,X,u,f,H){f=f===void 0?!0:f;Z6(N)&&de(X,0,null)&&(!b1(J,"impression")&&H&&H(),J.r3("impression"));b1(J,"impression")&&(g.Yp(N,4)&&!g.Yp(N,2)&&J.dX("pause"),Al(N,4)<0&&!(Al(N,2)<0)&&J.dX("resume"),g.Yp(N,16)&&X>=.5&&J.dX("seek"),f&&g.Yp(N,2)&&O8(J,N.state,R,C,X,u))}; O8=function(J,R,N,C,X,u,f,H){b1(J,"impression")&&(u?(u=X-C,u=u>=-1&&u<=2):u=Math.abs(C-X)<=1,Zk(J,R,u?C:X,N,C,f,H&&u),u&&J.r3("complete"))}; Zk=function(J,R,N,C,X,u,f){G_(J,N*1E3,f);X<=0||N<=0||(R==null?0:g.h(R,16))||(R==null?0:g.h(R,32))||(de(N,X*.25,C)&&(u&&!b1(J,"first_quartile")&&u("first"),J.r3("first_quartile")),de(N,X*.5,C)&&(u&&!b1(J,"midpoint")&&u("second"),J.r3("midpoint")),de(N,X*.75,C)&&(u&&!b1(J,"third_quartile")&&u("third"),J.r3("third_quartile")))}; ezf=function(J,R){b1(J,"impression")&&J.dX(R?"fullscreen":"end_fullscreen")}; wFg=function(J){b1(J,"impression")&&J.dX("clickthrough")}; clE=function(J){J.dX("active_view_measurable")}; hzE=function(J){b1(J,"impression")&&!b1(J,"seek")&&J.dX("active_view_fully_viewable_audible_half_duration")}; ylk=function(J){b1(J,"impression")&&!b1(J,"seek")&&J.dX("active_view_viewable")}; G8B=function(J){b1(J,"impression")&&!b1(J,"seek")&&J.dX("audio_audible")}; brg=function(J){b1(J,"impression")&&!b1(J,"seek")&&J.dX("audio_measurable")}; taQ=function(J,R,N,C,X,u,f,H,k,v,W,S){this.callback=J;this.slot=R;this.layout=N;this.v1=C;this.Np=X;this.UB=u;this.Dq=f;this.v3=H;this.H7=k;this.JN=v;this.AN=W;this.Y8=S;this.pO=!0;this.B1=this.zW=null;this.adCpn=void 0;this.K=!1}; x2f=function(J,R,N){var C;s8(J.AN.get(),"ads_qua","cpn."+QX(J.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((C=ls(J.Y8.get(),2))==null?void 0:C.clientPlaybackNonce)+";qt."+R+";clr."+N)}; JVf=function(J,R){var N,C;s8(J.AN.get(),"ads_imp","cpn."+QX(J.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((N=ls(J.Y8.get(),2))==null?void 0:N.clientPlaybackNonce)+";clr."+R+";skp."+!!g.z((C=QX(J.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:C.skipOrPreviewRenderer,dT))}; qJ=function(J){return J.JN.get().G.N().experiments.b3("increase_completion_ping_firing_window")&&ls(J.Y8.get(),1).ZD}; Ao=function(J){return{enterMs:QX(J.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:QX(J.clientMetadata,"metadata_type_layout_exit_ms")}}; YB=function(J,R,N,C,X,u,f,H,k,v,W,S,L,I){aq.call(this,J,R,N,C,X,f,H,k,v,S);this.Dq=u;this.H7=W;this.v3=L;this.JN=I;this.B1=this.zW=null}; oa2=function(J,R){var N;s8(J.AN.get(),"ads_imp","acpn."+((N=ls(J.Y8.get(),2))==null?void 0:N.clientPlaybackNonce)+";clr."+R)}; RUk=function(J,R,N){var C;s8(J.AN.get(),"ads_qua","cpn."+QX(J.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((C=ls(J.Y8.get(),2))==null?void 0:C.clientPlaybackNonce)+";qt."+R+";clr."+N)}; rT=function(J,R,N,C,X,u,f,H,k,v,W,S,L,I,F,a,n,B,Z,A,V){this.o1=J;this.Td=R;this.zD=N;this.Y8=C;this.v1=X;this.UB=u;this.AN=f;this.Dq=H;this.XV=k;this.v3=v;this.H7=W;this.Es=S;this.TA=L;this.qN=I;this.NN=F;this.I1=a;this.Hw=n;this.JN=B;this.K=Z;this.context=A;this.uv=V}; jw=function(J,R,N,C,X,u,f,H,k,v,W,S,L,I,F,a,n,B){this.o1=J;this.Td=R;this.zD=N;this.AN=C;this.v3=X;this.H7=u;this.Es=f;this.Y8=H;this.UB=k;this.TA=v;this.qN=W;this.NN=S;this.I1=L;this.Hw=I;this.JN=F;this.v1=a;this.context=n;this.uv=B}; Nx8=function(J,R,N,C){K7.call(this,"survey-interstitial",J,R,N,C)}; mv=function(J,R,N,C,X){m4.call(this,N,J,R,C);this.AN=X;J=QX(R.clientMetadata,"metadata_type_ad_placement_config");this.Np=new eJ(R.w3,X,J,R.layoutId)}; VW=function(J){return Math.round(J.width)+"x"+Math.round(J.height)}; U8=function(J,R,N){N=N===void 0?gT:N;N.widthJ.width*J.height*.2)return{p_:3,rD:501,errorMessage:"ad("+VW(N)+") to container("+VW(J)+") ratio exceeds limit."};if(N.height>J.height/3-R)return{p_:3,rD:501,errorMessage:"ad("+VW(N)+") covers container("+VW(J)+") center."}}; Cwn=function(J,R){var N=QX(J.clientMetadata,"metadata_type_ad_placement_config");return new eJ(J.w3,R,N,J.layoutId)}; p_=function(J){return QX(J.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; lN=function(J,R,N,C){K7.call(this,"invideo-overlay",J,R,N,C);this.interactionLoggingClientData=C}; PP=function(J,R,N,C,X,u,f,H,k,v,W,S){m4.call(this,u,J,R,X);this.AN=N;this.Z=f;this.UB=H;this.I1=k;this.JN=v;this.S=W;this.U=S;this.Np=Cwn(R,N)}; XCB=function(){var J=["metadata_type_invideo_overlay_ad_renderer"];wN().forEach(function(R){J.push(R)}); return{Om:J,BU:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; zG=function(J,R,N,C,X,u,f,H,k,v,W,S,L){m4.call(this,u,J,R,X);this.AN=N;this.Z=f;this.X=H;this.UB=k;this.I1=v;this.JN=W;this.S=S;this.U=L;this.Np=Cwn(R,N)}; iL8=function(){for(var J=["metadata_type_invideo_overlay_ad_renderer"],R=g.K(wN()),N=R.next();!N.done;N=R.next())J.push(N.value);return{Om:J,BU:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; ew=function(J){this.UB=J;this.K=!1}; uEf=function(J,R,N){K7.call(this,"survey",J,{},R,N)}; wT=function(J,R,N,C,X,u,f){m4.call(this,N,J,R,C);this.Z=X;this.UB=u;this.JN=f}; f4E=function(J,R,N,C,X,u,f,H,k,v){this.W3=J;this.UB=R;this.AN=N;this.Z=C;this.v3=X;this.J=u;this.V=f;this.I1=H;this.JN=k;this.K=v}; Tx2=function(J,R,N,C,X,u,f,H,k,v){this.W3=J;this.UB=R;this.AN=N;this.Z=C;this.v3=X;this.J=u;this.V=f;this.I1=H;this.JN=k;this.K=v}; cP=function(J,R,N,C,X,u,f,H,k,v){ME.call(this,J,R,N,C,X,u,f,k);this.Ch=H;this.Y8=v}; $38=function(){var J=Waf();J.Om.push("metadata_type_ad_info_ad_metadata");return J}; HLf=function(J,R,N,C,X,u,f){this.W3=J;this.UB=R;this.AN=N;this.J=C;this.Ch=X;this.K=u;this.Y8=f}; kgE=function(J,R,N,C,X,u,f,H){this.W3=J;this.UB=R;this.AN=N;this.J=C;this.Ch=X;this.K=u;this.JN=f;this.Y8=H}; ho=function(J,R){this.slotId=R;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=J(this.triggerType)}; yW=function(J,R){this.adPodIndex=J;this.K=R.length;this.adBreakLengthSeconds=R.reduce(function(C,X){return C+X},0); var N=0;for(J+=1;J0}; qf=function(J){return!!(J.Wm&&J.slot&&J.layout)}; Ae=function(J){var R,N=(R=J.config)==null?void 0:R.adPlacementConfig;J=J.renderer;return!(!N||N.kind==null||!J)}; s_E=function(J){if(!nD(J.adLayoutMetadata))return!1;J=J.renderingContent;return g.z(J,s4)||g.z(J,BD)||g.z(J,nG)||g.z(J,D6)?!0:!1}; Yx=function(J){return J.playerVars!==void 0&&J.pings!==void 0&&J.externalVideoId!==void 0}; pD=function(J){if(!nD(J.adLayoutMetadata))return!1;J=J.renderingContent;var R=g.z(J,rL);return R?jH(R):(R=g.z(J,mG))?Yx(R):(R=g.z(J,Vq))?R.playerVars!==void 0:(R=g.z(J,s4))?R.durationMilliseconds!==void 0:g.z(J,gL)||g.z(J,UY)?!0:!1}; jH=function(J){J=(J.sequentialLayouts||[]).map(function(R){return g.z(R,lT)}); return J.length>0&&J.every(pD)}; qmE=function(J){if(!nD(J.adLayoutMetadata))return!1;if(g.z(J.renderingContent,Bxn)||g.z(J.renderingContent,OL2))return!0;var R=g.z(J.renderingContent,Pz);return g.z(J.renderingContent,ze)||g.z(R==null?void 0:R.sidePanel,ZLY)||g.z(R==null?void 0:R.sidePanel,d3E)?!0:!1}; m3f=function(J){var R;(R=!J)||(R=J.adSlotMetadata,R=!((R==null?void 0:R.slotId)!==void 0&&(R==null?void 0:R.slotType)!==void 0));if(R||!(AVE(J)||J.slotEntryTrigger&&J.slotFulfillmentTriggers&&J.slotExpirationTriggers))return!1;var N;J=(N=J.fulfillmentContent)==null?void 0:N.fulfilledLayout;return(N=g.z(J,lT))?pD(N):(N=g.z(J,eH))?qmE(N):(N=g.z(J,YmQ))?s_E(N):(N=g.z(J,rVf))?naE(N):(J=g.z(J,j_n))?nD(J.adLayoutMetadata)?g.z(J.renderingContent,Dc)?!0:!1:!1:!1}; AVE=function(J){var R;J=g.z((R=J.fulfillmentContent)==null?void 0:R.fulfilledLayout,eH);var N;return J&&((N=J.adLayoutMetadata)==null?void 0:N.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&J.layoutExitNormalTriggers===void 0}; VCE=function(J){var R;return(J==null?void 0:(R=J.adSlotMetadata)==null?void 0:R.slotType)==="SLOT_TYPE_IN_PLAYER"}; U32=function(J,R){var N;if((N=J.questions)==null||!N.length||!J.playbackCommands||(R===void 0||!R)&&J.questions.length!==1)return!1;J=g.K(J.questions);for(R=J.next();!R.done;R=J.next()){R=R.value;var C=N=void 0,X=((N=g.z(R,wL))==null?void 0:N.surveyAdQuestionCommon)||((C=g.z(R,cz))==null?void 0:C.surveyAdQuestionCommon);if(!gaE(X))return!1}return!0}; pCE=function(J){J=((J==null?void 0:J.playerOverlay)||{}).instreamSurveyAdRenderer;var R;if(J)if(J.playbackCommands&&J.questions&&J.questions.length===1){var N,C=((R=g.z(J.questions[0],wL))==null?void 0:R.surveyAdQuestionCommon)||((N=g.z(J.questions[0],cz))==null?void 0:N.surveyAdQuestionCommon);R=gaE(C)}else R=!1;else R=!1;return R}; gaE=function(J){if(!J)return!1;J=g.z(J.instreamAdPlayerOverlay,he);var R=g.z(J==null?void 0:J.skipOrPreviewRenderer,dT),N=g.z(J==null?void 0:J.adInfoRenderer,yq);return(g.z(J==null?void 0:J.skipOrPreviewRenderer,Ge)||R)&&N?!0:!1}; l4E=function(J){return J.linearAds!=null&&nD(J.adLayoutMetadata)}; Pw8=function(J){return J.linearAd!=null&&J.adVideoStart!=null}; zUB=function(J){if(isNaN(Number(J.timeoutSeconds))||!J.text||!J.ctaButton||!g.z(J.ctaButton,g.bT)||!J.brandImage)return!1;var R;return J.backgroundImage&&g.z(J.backgroundImage,te)&&((R=g.z(J.backgroundImage,te))==null?0:R.landscape)?!0:!1}; xx=function(J,R,N,C,X,u,f){g.l.call(this);this.JN=J;this.K=R;this.V=C;this.Y8=X;this.Z=u;this.J=f}; cVY=function(J,R,N){var C,X=((C=N.adSlots)!=null?C:[]).map(function(H){return g.z(H,Ja)}); if(N.U1)if(QX(R.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))AK(J.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},R.slotId); else{if(J.JN.get().G.N().T("h5_check_forecasting_renderer_for_throttled_midroll")){var u=N.N5.filter(function(H){var k;return((k=H.renderer)==null?void 0:k.clientForecastingAdRenderer)!=null}); u.length!==0?eUn(J.J,u,X,R.slotId,N.ssdaiAdsConfig):AK(J.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},R.slotId)}else AK(J.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},R.slotId); wCk(J.Z,R)}else{var f;C={Cj:Math.round(((u=QX(R.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:u.Cj)||0),Q6:(f=QX(R.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:f.Q6};eUn(J.J,N.N5,X,R.slotId,N.ssdaiAdsConfig,C)}}; yV2=function(J,R,N,C,X,u,f){var H=ls(J.Y8.get(),1);AK(J.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return hUP(J.V.get(),N,C,X,H.clientPlaybackNonce,H.Tg,H.daiEnabled,H,u,f)},R)}; bLB=function(J,R,N,C,X,u,f){R=Ggg(R,u,Number(C.prefetchMilliseconds)||0,f);J=R instanceof x?R:oL(J,C,X,R,N);return J instanceof x?J:[J]}; tCB=function(J,R,N,C,X){var u=Yi(J.J.get(),"SLOT_TYPE_AD_BREAK_REQUEST");C=[new J3({getAdBreakUrl:C.getAdBreakUrl,Cj:0,Q6:0}),new SG(!0)];J=R.pauseDurationMs?R.lactThresholdMs?{slotId:u,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new EY(J.K,u),slotFulfillmentTriggers:[new W$E(J.K)],slotExpirationTriggers:[new kx(J.K,X),new LD(J.K,u)],DM:"core",clientMetadata:new a$(C),adSlotLoggingData:N}:new x("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new x("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return J instanceof x?J:[J]}; x3E=function(J){var R,N;return((R=J.renderer)==null?void 0:(N=R.adBreakServiceRenderer)==null?void 0:N.getAdBreakUrl)!==void 0}; RL=function(J,R,N){if(J.beforeContentVideoIdStartedTrigger)J=J.beforeContentVideoIdStartedTrigger?new GG(Mb,R,J.id):new x("Not able to create BeforeContentVideoIdStartedTrigger");else{if(J.layoutIdExitedTrigger){var C;R=(C=J.layoutIdExitedTrigger)!=null&&C.triggeringLayoutId?new Rn(Mb,J.layoutIdExitedTrigger.triggeringLayoutId,J.id):new x("Not able to create LayoutIdExitedTrigger")}else{if(J.layoutExitedForReasonTrigger){var X,u;((X=J.layoutExitedForReasonTrigger)==null?0:X.triggeringLayoutId)&&((u= J.layoutExitedForReasonTrigger)==null?0:u.layoutExitReason)?(R=Smg(J.layoutExitedForReasonTrigger.layoutExitReason),J=R instanceof x?R:new on(Mb,J.layoutExitedForReasonTrigger.triggeringLayoutId,[R],J.id)):J=new x("Not able to create LayoutIdExitedForReasonTrigger")}else{if(J.onLayoutSelfExitRequestedTrigger){var f;R=(f=J.onLayoutSelfExitRequestedTrigger)!=null&&f.triggeringLayoutId?new Hz(Mb,J.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,J.id):new x("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(J.onNewPlaybackAfterContentVideoIdTrigger)J= J.onNewPlaybackAfterContentVideoIdTrigger?new kx(Mb,R,J.id):new x("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(J.skipRequestedTrigger){var H;R=(H=J.skipRequestedTrigger)!=null&&H.triggeringLayoutId?new Wz(Mb,J.skipRequestedTrigger.triggeringLayoutId,J.id):new x("Not able to create SkipRequestedTrigger")}else if(J.slotIdEnteredTrigger){var k;R=(k=J.slotIdEnteredTrigger)!=null&&k.triggeringSlotId?new SH(Mb,J.slotIdEnteredTrigger.triggeringSlotId,J.id):new x("Not able to create SlotIdEnteredTrigger")}else if(J.slotIdExitedTrigger){var v; R=(v=J.slotIdExitedTrigger)!=null&&v.triggeringSlotId?new LD(Mb,J.slotIdExitedTrigger.triggeringSlotId,J.id):new x("Not able to create SkipRequestedTrigger")}else if(J.surveySubmittedTrigger){var W;R=(W=J.surveySubmittedTrigger)!=null&&W.triggeringLayoutId?new KD(Mb,J.surveySubmittedTrigger.triggeringLayoutId,J.id):new x("Not able to create SurveySubmittedTrigger")}else{if(J.mediaResumedTrigger)J=J.mediaResumedTrigger&&J.id?new L$E(J.id):new x("Not able to create MediaResumedTrigger");else{if(J.closeRequestedTrigger){var S; R=(S=J.closeRequestedTrigger)!=null&&S.triggeringLayoutId?new bN(Mb,J.closeRequestedTrigger.triggeringLayoutId,J.id):new x("Not able to create CloseRequestedTrigger")}else if(J.slotIdScheduledTrigger){var L;R=(L=J.slotIdScheduledTrigger)!=null&&L.triggeringSlotId?new EY(Mb,J.slotIdScheduledTrigger.triggeringSlotId,J.id):new x("Not able to create SlotIdScheduledTrigger")}else{if(J.mediaTimeRangeTrigger){var I;C=Number((I=J.mediaTimeRangeTrigger)==null?void 0:I.offsetStartMilliseconds);var F;f=Number((F= J.mediaTimeRangeTrigger)==null?void 0:F.offsetEndMilliseconds);isFinite(C)&&isFinite(f)?(F=f,F===-1&&(F=N),N=C>F?new x("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:C,offsetEndMs:F},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",F===N&&C-500<=F):new j_(C,F),J=N instanceof x?N:new uT(Mb,R,N,!1,J.id)):J=new x("Not able to create MediaTimeRangeTrigger")}else if(J.contentVideoIdEndedTrigger)J=J.contentVideoIdEndedTrigger?new to(Mb,R,!1,J.id):new x("Not able to create ContentVideoIdEndedTrigger"); else{if(J.layoutIdEnteredTrigger){var a;R=(a=J.layoutIdEnteredTrigger)!=null&&a.triggeringLayoutId?new Je(Mb,J.layoutIdEnteredTrigger.triggeringLayoutId,J.id):new x("Not able to create LayoutIdEnteredTrigger")}else if(J.timeRelativeToLayoutEnterTrigger){var n;R=(n=J.timeRelativeToLayoutEnterTrigger)!=null&&n.triggeringLayoutId?new an(Mb,Number(J.timeRelativeToLayoutEnterTrigger.durationMs),J.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,J.id):new x("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(J.onDifferentLayoutIdEnteredTrigger){var B; R=(B=J.onDifferentLayoutIdEnteredTrigger)!=null&&B.triggeringLayoutId&&J.onDifferentLayoutIdEnteredTrigger.slotType&&J.onDifferentLayoutIdEnteredTrigger.layoutType?new Te(Mb,J.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,J.onDifferentLayoutIdEnteredTrigger.slotType,J.onDifferentLayoutIdEnteredTrigger.layoutType,J.id):new x("Not able to create CloseRequestedTrigger")}else{if(J.liveStreamBreakStartedTrigger)J=J.liveStreamBreakStartedTrigger&&J.id?new iT(Mb,J.id):new x("Not able to create LiveStreamBreakStartedTrigger"); else if(J.liveStreamBreakEndedTrigger)J=J.liveStreamBreakEndedTrigger&&J.id?new Nf(Mb,J.id):new x("Not able to create LiveStreamBreakEndedTrigger");else{if(J.liveStreamBreakScheduledDurationMatchedTrigger){var Z;R=(Z=J.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&Z.breakDurationMs?new CD(Number(J.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,J.id):new x("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(J.liveStreamBreakScheduledDurationNotMatchedTrigger){var A; R=(A=J.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&A.breakDurationMs?new Xb(Number(J.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,J.id):new x("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(J.newSlotScheduledWithBreakDurationTrigger){var V;R=(V=J.newSlotScheduledWithBreakDurationTrigger)!=null&&V.breakDurationMs?new fD(Number(J.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,J.id):new x("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else R= J.prefetchCacheExpiredTrigger?new vz(Mb,J.id):new x("Not able to convert an AdsControlflowTrigger.");J=R}R=J}J=R}R=J}J=R}R=J}J=R}R=J}J=R}R=J}J=R}return J}; NM=function(J,R){R.K>=2&&(J.slot_pos=R.adPodIndex);J.autoplay="1"}; oMB=function(J,R,N,C,X,u,f,H){return R===null?new x("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:R,ActionCompanionAdRenderer:C}):[JME(J,R,f,u,function(k){var v=k.slotId;k=H(k);var W=C.adLayoutLoggingData,S=new a$([new R8(C),new We(X)]);v=vT(N.J.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",v);var L={layoutId:v,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",DM:"core"};return{layoutId:v,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",w3:new Map, layoutExitNormalTriggers:[new kx(N.K,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:"core",clientMetadata:S,AE:k(L),adLayoutLoggingData:W}})]}; Rb8=function(J,R,N,C,X,u,f,H){return R===null?new x("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:R,TopBannerImageTextIconButtonedLayoutViewModel:C}):[JME(J,R,f,u,function(k){var v=k.slotId;k=H(k);var W=C.adLayoutLoggingData,S=new a$([new ND(C),new We(X)]);v=vT(N.J.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",v);var L={layoutId:v,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",DM:"core"};return{layoutId:v,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", w3:new Map,layoutExitNormalTriggers:[new kx(N.K,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:"core",clientMetadata:S,AE:k(L),adLayoutLoggingData:W}})]}; inf=function(J,R,N,C,X,u){if(!u)for(R=g.K(R),u=R.next();!u.done;u=R.next())u=u.value,Cc(J,u.renderer,u.config.adPlacementConfig.kind);J=Array.from(J.values()).filter(function(W){return NBB(W)}); R=[];u=g.K(J);for(var f=u.next(),H={};!f.done;H={wy:void 0},f=u.next()){H.wy=f.value;f=g.K(H.wy.l_);for(var k=f.next(),v={};!k.done;v={Gk:void 0},k=f.next())v.Gk=k.value,k=function(W,S){return function(L){return W.Gk.hO(L,S.wy.instreamVideoAdRenderer.elementId,W.Gk.p6)}}(v,H),v.Gk.isContentVideoCompanion?R.push(C3Y(N,C,X,H.wy.instreamVideoAdRenderer.elementId,v.Gk.associatedCompositePlayerBytesLayoutId,v.Gk.adSlotLoggingData,k)):J.length>1?R.push(XUB(N,C,X,H.wy.instreamVideoAdRenderer.elementId,v.Gk.adSlotLoggingData, function(W,S){return function(L){return W.Gk.hO(L,S.wy.instreamVideoAdRenderer.elementId,W.Gk.p6,W.Gk.associatedCompositePlayerBytesLayoutId)}}(v,H))):R.push(XUB(N,C,X,H.wy.instreamVideoAdRenderer.elementId,v.Gk.adSlotLoggingData,k))}return R}; Cc=function(J,R,N){if(R=u8E(R)){R=g.K(R);for(var C=R.next();!C.done;C=R.next())if((C=C.value)&&C.externalVideoId){var X=Xa(J,C.externalVideoId);X.instreamVideoAdRenderer||(X.instreamVideoAdRenderer=C,X.f3=N)}else d0("InstreamVideoAdRenderer without externalVideoId")}}; u8E=function(J){var R=[],N=J.sandwichedLinearAdRenderer&&J.sandwichedLinearAdRenderer.linearAd&&g.z(J.sandwichedLinearAdRenderer.linearAd,mG);if(N)return R.push(N),R;if(J.instreamVideoAdRenderer)return R.push(J.instreamVideoAdRenderer),R;if(J.linearAdSequenceRenderer&&J.linearAdSequenceRenderer.linearAds){J=g.K(J.linearAdSequenceRenderer.linearAds);for(N=J.next();!N.done;N=J.next())N=N.value,g.z(N,mG)&&R.push(g.z(N,mG));return R}return null}; NBB=function(J){if(J.instreamVideoAdRenderer===void 0)return d0("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var R=g.K(J.l_),N=R.next();!N.done;N=R.next()){N=N.value;if(N.hO===void 0)return!1;if(N.p6===void 0)return d0("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(J.f3===void 0||N.Qi===void 0||J.f3!==N.Qi&&N.Qi!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(J.instreamVideoAdRenderer.elementId===void 0)return d0("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:J.f3,"matching APSR kind":N.Qi}),!1}return!0}; Xa=function(J,R){J.has(R)||J.set(R,{instreamVideoAdRenderer:void 0,f3:void 0,adVideoId:R,l_:[]});return J.get(R)}; id=function(J,R,N,C,X,u,f,H,k){X?Xa(J,X).l_.push({I_B:R,Qi:N,isContentVideoCompanion:C,p6:f,associatedCompositePlayerBytesLayoutId:u,adSlotLoggingData:H,hO:k}):d0("Companion AdPlacementSupportedRenderer without adVideoId")}; ud=function(J){var R=0;J=g.K(J.questions);for(var N=J.next();!N.done;N=J.next())if(N=N.value,N=g.z(N,wL)||g.z(N,cz)){var C=void 0;R+=((C=N.surveyAdQuestionCommon)==null?void 0:C.durationMilliseconds)||0}return R}; fc=function(J){var R,N,C,X,u=((N=g.z((R=J.questions)==null?void 0:R[0],wL))==null?void 0:N.surveyAdQuestionCommon)||((X=g.z((C=J.questions)==null?void 0:C[0],cz))==null?void 0:X.surveyAdQuestionCommon),f;R=[].concat(g.Q(((f=J.playbackCommands)==null?void 0:f.instreamAdCompleteCommands)||[]),g.Q((u==null?void 0:u.timeoutCommands)||[]));var H,k,v,W,S,L,I,F,a,n,B,Z,A,V,p,b,w,RQ,$E,G;return{impressionCommands:(H=J.playbackCommands)==null?void 0:H.impressionCommands,errorCommands:(k=J.playbackCommands)== null?void 0:k.errorCommands,muteCommands:(v=J.playbackCommands)==null?void 0:v.muteCommands,unmuteCommands:(W=J.playbackCommands)==null?void 0:W.unmuteCommands,pauseCommands:(S=J.playbackCommands)==null?void 0:S.pauseCommands,rewindCommands:(L=J.playbackCommands)==null?void 0:L.rewindCommands,resumeCommands:(I=J.playbackCommands)==null?void 0:I.resumeCommands,skipCommands:(F=J.playbackCommands)==null?void 0:F.skipCommands,progressCommands:(a=J.playbackCommands)==null?void 0:a.progressCommands,pkk:(n= J.playbackCommands)==null?void 0:n.clickthroughCommands,fullscreenCommands:(B=J.playbackCommands)==null?void 0:B.fullscreenCommands,activeViewViewableCommands:(Z=J.playbackCommands)==null?void 0:Z.activeViewViewableCommands,activeViewMeasurableCommands:(A=J.playbackCommands)==null?void 0:A.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(V=J.playbackCommands)==null?void 0:V.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(p=J.playbackCommands)== null?void 0:(b=p.activeViewTracking)==null?void 0:b.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(w=J.playbackCommands)==null?void 0:(RQ=w.activeViewTracking)==null?void 0:RQ.activeViewAudioMeasurableCommands,endFullscreenCommands:($E=J.playbackCommands)==null?void 0:$E.endFullscreenCommands,abandonCommands:(G=J.playbackCommands)==null?void 0:G.abandonCommands,completeCommands:R}}; TB8=function(J,R,N,C,X,u,f){return function(H,k){return fwE(J,k.slotId,H,u,function(v,W){var S=k.layoutId;v=f(v);return Ta(R,S,W,X,v,"LAYOUT_TYPE_SURVEY",[new dX(N),C],N.adLayoutLoggingData)})}}; kVB=function(J,R,N,C,X,u,f){if(!$FE(J))return new x("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:J});var H=J.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[HnY(u,R,N,C,function(k){var v=k.slotId;k=f(k);v=vT(X.J.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",v);var W={layoutId:v,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",DM:"core"},S=new Rn(X.K,C);return{layoutId:v,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",w3:new Map,layoutExitNormalTriggers:[S], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:"core",clientMetadata:new a$([new qD(H)]),AE:k(W)}})]}; $FE=function(J){J=g.z(J==null?void 0:J.additionalPlayerOverlay,vMB);if(!J)return!1;var R=J.slidingMessages;return J.title&&R&&R.length!==0?!0:!1}; SG7=function(J,R,N,C,X){var u;if((u=J.playerOverlay)==null||!u.instreamSurveyAdRenderer)return function(){return[]}; if(!pCE(J))return function(){return new x("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:J})}; var f=J.playerOverlay.instreamSurveyAdRenderer,H=ud(f);return H<=0?function(){return new x("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:f})}:function(k,v){var W=WMg(k,N,C,function(S){var L=S.slotId; S=v(S);var I=fc(f);L=vT(X.J.get(),"LAYOUT_TYPE_SURVEY",L);var F={layoutId:L,layoutType:"LAYOUT_TYPE_SURVEY",DM:"core"},a=new Rn(X.K,C),n=new Wz(X.K,L),B=new KD(X.K,L),Z=new MCE(X.K);return{layoutId:L,layoutType:"LAYOUT_TYPE_SURVEY",w3:new Map,layoutExitNormalTriggers:[a,Z],layoutExitSkipTriggers:[n],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[B],xv:[],DM:"core",clientMetadata:new a$([new Z_(f),new We(R),new Nb(H/1E3),new u6(I)]),AE:S(F),adLayoutLoggingData:f.adLayoutLoggingData}}); k=kVB(J,N,W.slotId,C,X,k,v);return k instanceof x?k:[W].concat(g.Q(k))}}; awB=function(J,R,N,C,X,u,f){f=f===void 0?!1:f;var H=[];try{var k=[];if(N.renderer.linearAdSequenceRenderer)var v=function(a){a=LMf(a.slotId,N,R,X(a),C,u,f);k=a.rsB;return a.Ct}; else if(N.renderer.instreamVideoAdRenderer)v=function(a){var n=a.slotId;a=X(a);var B=f,Z=N.config.adPlacementConfig,A=Iw8(Z),V=A.c5,p=A.qb;A=N.renderer.instreamVideoAdRenderer;var b;if(A==null?0:(b=A.playerOverlay)==null?0:b.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var w=$Q(A,B);b=Math.min(V+w.videoLengthSeconds*1E3,p);B=new yW(0,[w.videoLengthSeconds]);p=w.videoLengthSeconds;var RQ=w.playerVars,$E=w.instreamAdPlayerOverlayRenderer,G=w.playerOverlayLayoutRenderer, e=w.adVideoId,t=FMf(N),E=w.w3;w=w.n2;var y=A==null?void 0:A.adLayoutLoggingData;A=A==null?void 0:A.sodarExtensionData;n=vT(R.J.get(),"LAYOUT_TYPE_MEDIA",n);var b8={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA",DM:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA",w3:E,layoutExitNormalTriggers:[new Nf(R.K)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:"core",clientMetadata:new a$([new MD(C),new l5(p),new Pe(RQ),new wX(V),new ce(b),$E&&new KV($E), G&&new a8(G),new We(Z),new Eh(e),new SU(B),new tR(t),A&&new eU(A),new Va({current:null}),new ya({}),new HM(w)].filter(EMg)),AE:a(b8),adLayoutLoggingData:y}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var W=MVB(J,C,N.adSlotLoggingData,v);H.push(W);for(var S=g.K(k),L=S.next();!L.done;L=S.next()){var I=L.value,F=I(J,X);if(F instanceof x)return F;H.push.apply(H,g.Q(F))}}catch(a){return new x(a,{errorMessage:a.message,AdPlacementRenderer:N,numberOfSurveyRenderers:KMf(N)})}return H}; KMf=function(J){J=(J.renderer.linearAdSequenceRenderer||{}).linearAds;return J!=null&&J.length?J.filter(function(R){var N,C;return((N=g.z(R,mG))==null?void 0:(C=N.playerOverlay)==null?void 0:C.instreamSurveyAdRenderer)!=null}).length:0}; LMf=function(J,R,N,C,X,u,f){var H=R.config.adPlacementConfig,k=Iw8(H),v=k.c5,W=k.qb;k=(R.renderer.linearAdSequenceRenderer||{}).linearAds;if(k==null||!k.length)throw new TypeError("Expected linear ads");var S=[],L={On:v,Fs:0,hXB:S};k=k.map(function(F){return Qbf(J,F,L,N,C,H,X,W,f)}).map(function(F,a){a=new yW(a,S); return F(a)}); var I=k.map(function(F){return F.Gc}); return{Ct:nMf(N,J,v,I,H,FMf(R),C,W,u),rsB:k.map(function(F){return F.lD3})}}; Qbf=function(J,R,N,C,X,u,f,H,k){var v=$Q(g.z(R,mG),k),W=N.On,S=N.Fs,L=Math.min(W+v.videoLengthSeconds*1E3,H);N.On=L;N.Fs++;N.hXB.push(v.videoLengthSeconds);var I,F,a=(I=g.z(R,mG))==null?void 0:(F=I.playerOverlay)==null?void 0:F.instreamSurveyAdRenderer;if(v.adVideoId==="nPpU29QrbiU"&&a==null)throw new TypeError("Survey slate media has no survey overlay");return function(n){NM(v.playerVars,n);var B,Z,A=v.videoLengthSeconds,V=v.playerVars,p=v.w3,b=v.n2,w=v.instreamAdPlayerOverlayRenderer,RQ=v.playerOverlayLayoutRenderer, $E=v.adVideoId,G=(B=g.z(R,mG))==null?void 0:B.adLayoutLoggingData;B=(Z=g.z(R,mG))==null?void 0:Z.sodarExtensionData;Z=vT(C.J.get(),"LAYOUT_TYPE_MEDIA",J);var e={layoutId:Z,layoutType:"LAYOUT_TYPE_MEDIA",DM:"adapter"};n={layoutId:Z,layoutType:"LAYOUT_TYPE_MEDIA",w3:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:"adapter",clientMetadata:new a$([new MD(f),new l5(A),new Pe(V),new wX(W),new ce(L),new hR(S),new Va({current:null}), w&&new KV(w),RQ&&new a8(RQ),new We(u),new Eh($E),new SU(n),B&&new eU(B),a&&new Tu(a),new ya({}),new HM(b)].filter(EMg)),AE:X(e),adLayoutLoggingData:G};A=SG7(g.z(R,mG),u,f,n.layoutId,C);return{Gc:n,lD3:A}}}; $Q=function(J,R){if(!J)throw new TypeError("Expected instream video ad renderer");if(!J.playerVars)throw new TypeError("Expected player vars in url encoded string");var N=WR(J.playerVars),C=Number(N.length_seconds);if(isNaN(C))throw new TypeError("Expected valid length seconds in player vars");var X=Number(J.trimmedMaxNonSkippableAdDurationMs);C=isNaN(X)?C:Math.min(C,X/1E3);X=J.playerOverlay||{};X=X.instreamAdPlayerOverlayRenderer===void 0?null:X.instreamAdPlayerOverlayRenderer;var u=J.playerOverlay|| {};u=u.playerOverlayLayoutRenderer===void 0?null:u.playerOverlayLayoutRenderer;var f=N.video_id;f||(f=(f=J.externalVideoId)?f:void 0);if(!f)throw new TypeError("Expected valid video id in IVAR");if(R&&C===0){var H;R=(H=DF8[f])!=null?H:C}else R=C;return{playerVars:N,videoLengthSeconds:R,instreamAdPlayerOverlayRenderer:X,playerOverlayLayoutRenderer:u,adVideoId:f,w3:J.pings?z_(J.pings):new Map,n2:PT(J.pings)}}; FMf=function(J){J=Number(J.driftRecoveryMs);return isNaN(J)||J<=0?null:J}; Iw8=function(J){var R=J.adTimeOffset||{};J=R.offsetEndMilliseconds;R=Number(R.offsetStartMilliseconds);if(isNaN(R))throw new TypeError("Expected valid start offset");J=Number(J);if(isNaN(J))throw new TypeError("Expected valid end offset");return{c5:R,qb:J}}; sbY=function(J){var R,N=(R=QX(J.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:R.current;if(!N)return null;R=QX(J.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var C=J.layoutId,X=QX(J.clientMetadata,"metadata_type_content_cpn"),u=QX(J.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),f=QX(J.clientMetadata,"metadata_type_player_underlay_renderer"),H=QX(J.clientMetadata,"metadata_type_ad_placement_config"),k=QX(J.clientMetadata,"metadata_type_video_length_seconds"); var v=Fj(J.clientMetadata,"metadata_type_layout_enter_ms")&&Fj(J.clientMetadata,"metadata_type_layout_exit_ms")?(QX(J.clientMetadata,"metadata_type_layout_exit_ms")-QX(J.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Rh:C,contentCpn:X,y5:N,rz:R,instreamAdPlayerOverlayRenderer:u,instreamAdPlayerUnderlayRenderer:f,adPlacementConfig:H,videoLengthSeconds:k,FG:v,inPlayerLayoutId:QX(J.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:QX(J.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; ZnP=function(J,R,N,C,X,u,f,H,k,v,W,S,L,I,F){C=Yi(C,"SLOT_TYPE_PLAYER_BYTES");J=BB2(X,J,f,N,C,k,v);if(J instanceof x)return J;var a;v=(a=QX(J.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:a.layoutId;if(!v)return new x("Invalid adNotify layout");R=On2(v,X,u,N,H,R,k,W,S,L,I,F,f);return R instanceof x?R:[J].concat(g.Q(R))}; On2=function(J,R,N,C,X,u,f,H,k,v,W,S,L){N=dFE(R,N,C,u,f,H,k,v,W,S,L);if(N instanceof x)return N;J=qGn(R,J,f,X,N);return J instanceof x?J:[].concat(g.Q(J.ME),[J.eg])}; YGE=function(J,R,N,C,X,u,f,H,k,v,W,S,L,I){R=dFE(J,R,N,X,u,H,k,v,W,S,L,I);if(R instanceof x)return R;J=AM8(J,N,u,f,C,H.MR,R);return J instanceof x?J:J.ME.concat(J.eg)}; dFE=function(J,R,N,C,X,u,f,H,k,v,W,S){var L=H3(C,N,v);return L instanceof KQ?new x(L):v.G.N().experiments.b3("html5_refactor_in_player_slot_generation")?function(I){var F=new yW(0,[L.sP]);I=rM7(R,L.layoutId,L.YZ,N,kQ(L.playerVars,L.y9,u,k,F),L.sP,X,F,f(I),H.get(L.YZ.externalVideoId),S);F=[];if(L.YZ.playerOverlay.instreamAdPlayerOverlayRenderer){var a=sbY(I);if(!a)return d0("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,I),{layout:I,ME:[]}; F=[jbE(J,a.contentCpn,a.Rh,function(B){return v3(R,B.slotId,"core",a,ZN(W,B))},a.inPlayerSlotId)].concat(g.Q(F)); if(a.instreamAdPlayerUnderlayRenderer&&W3(v)){var n=a.instreamAdPlayerUnderlayRenderer;F=[mFY(J,a.contentCpn,a.Rh,function(B){return VVB(R,B.slotId,n,a.adPlacementConfig,a.Rh,ZN(W,B))})].concat(g.Q(F))}}return{layout:I, ME:F}}:function(I){var F=new yW(0,[L.sP]); return{layout:rM7(R,L.layoutId,L.YZ,N,kQ(L.playerVars,L.y9,u,k,F),L.sP,X,F,f(I),H.get(L.YZ.externalVideoId),S),ME:[]}}}; H3=function(J,R,N){if(!J.playerVars)return new KQ("No playerVars available in InstreamVideoAdRenderer.");var C,X;if(J.elementId==null||J.playerVars==null||J.playerOverlay==null||((C=J.playerOverlay)==null?void 0:C.instreamAdPlayerOverlayRenderer)==null&&((X=J.playerOverlay)==null?void 0:X.playerOverlayLayoutRenderer)==null||J.pings==null||J.externalVideoId==null)return new KQ("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:J});C=WR(J.playerVars);X=Number(C.length_seconds); isNaN(X)&&(X=0,d0("Expected valid length seconds in player vars but got NaN"));if(N.CL(R.kind==="AD_PLACEMENT_KIND_START")){if(J.layoutId===void 0)return new KQ("Expected server generated layout ID in instreamVideoAdRenderer");R=J.layoutId}else R=J.elementId;return{layoutId:R,YZ:J,playerVars:C,y9:J.playerVars,sP:X}}; kQ=function(J,R,N,C,X){J.iv_load_policy=C;R=WR(R);if(R.cta_conversion_urls)try{J.cta_conversion_urls=JSON.parse(R.cta_conversion_urls)}catch(u){d0(u)}N.Vp&&(J.ctrl=N.Vp);N.RE&&(J.ytr=N.RE);N.n8&&(J.ytrcc=N.n8);N.isMdxPlayback&&(J.mdx="1");J.vvt&&(J.vss_credentials_token=J.vvt,N.O2&&(J.vss_credentials_token_type=N.O2),N.mdxEnvironment&&(J.mdx_environment=N.mdxEnvironment));NM(J,X);return J}; gM8=function(J){var R=new Map;J=g.K(J);for(var N=J.next();!N.done;N=J.next())(N=N.value.renderer.remoteSlotsRenderer)&&N.hostElementId&&R.set(N.hostElementId,N);return R}; SN=function(J){return J.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; UFB=function(J){return J!=null}; wUg=function(J,R,N,C,X,u,f,H,k,v,W,S,L,I){for(var F=[],a=g.K(J),n=a.next();!n.done;n=a.next())if(n=n.value,!AVE(n)&&!VCE(n)){var B=SN(n)&&!!n.slotEntryTrigger.beforeContentVideoIdStartedTrigger,Z=k.CL(B),A=pUE(n,v,C,N.Tg,Z);if(A instanceof x)return A;var V=void 0,p={slotId:n.adSlotMetadata.slotId,slotType:n.adSlotMetadata.slotType,slotPhysicalPosition:(V=n.adSlotMetadata.slotPhysicalPosition)!=null?V:1,DM:"core",slotEntryTrigger:A.slotEntryTrigger,slotFulfillmentTriggers:A.slotFulfillmentTriggers, slotExpirationTriggers:A.slotExpirationTriggers},b=g.z(n.fulfillmentContent.fulfilledLayout,lT);if(b){if(!pD(b))return new x("Invalid PlayerBytesAdLayoutRenderer");V=S&&!(SN(n)&&n.slotEntryTrigger.beforeContentVideoIdStartedTrigger);A=A.slotFulfillmentTriggers.some(function(w){return w instanceof CD}); Z=V?lwg(p,n.adSlotMetadata.triggerEvent,b,N,C,u,v,J,Z,L,A,I):P37(p,n.adSlotMetadata.triggerEvent,b,R,N,C,X,u,f,H,k,v,J,W,Z,n.adSlotMetadata.triggeringSourceLayoutId);if(Z instanceof x)return Z;A=[];SN(n)&&A.push(new LQ({f2:SN(n)&&!!n.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));V&&A.push(new ya({}));N.MR&&A.push(new fQ({}));A.push(new WM(B));n=Object.assign({},p,{clientMetadata:new a$(A),fulfilledLayout:Z.layout,adSlotLoggingData:n.adSlotMetadata.adSlotLoggingData});F.push.apply(F,g.Q(Z.ME)); F.push(n)}else if(B=g.z(n.fulfillmentContent.fulfilledLayout,eH)){if(!qmE(B))return new x("Invalid PlayerUnderlayAdLayoutRenderer");B=zbY(B,C,N.Tg,u,p,n.adSlotMetadata.triggerEvent,n.adSlotMetadata.triggeringSourceLayoutId);if(B instanceof x)return B;n=Object.assign({},p,{clientMetadata:new a$([]),fulfilledLayout:B,adSlotLoggingData:n.adSlotMetadata.adSlotLoggingData});F.push(n)}else if(B=g.z(n.fulfillmentContent.fulfilledLayout,rVf)){if(!naE(B))return new x("Invalid AboveFeedAdLayoutRenderer");B= ebY(B,C,N.Tg,u,p,n.adSlotMetadata.triggerEvent,n.adSlotMetadata.triggeringSourceLayoutId);if(B instanceof x)return B;n=Object.assign({},p,{clientMetadata:new a$([]),fulfilledLayout:B,adSlotLoggingData:n.adSlotMetadata.adSlotLoggingData});F.push(n)}else if(B=g.z(n.fulfillmentContent.fulfilledLayout,j_n)){if(!nD(B.adLayoutMetadata)||!g.z(B.renderingContent,Dc))return new x("Invalid BelowPlayerAdLayoutRenderer");B=ebY(B,C,N.Tg,u,p,n.adSlotMetadata.triggerEvent,n.adSlotMetadata.triggeringSourceLayoutId); if(B instanceof x)return B;n=Object.assign({},p,{clientMetadata:new a$([]),fulfilledLayout:B,adSlotLoggingData:n.adSlotMetadata.adSlotLoggingData});F.push(n)}else return new x("Unable to retrieve a client slot ["+p.slotType+"] from a given AdSlotRenderer")}return F}; ebY=function(J,R,N,C,X,u,f){var H={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,DM:"core"};R=Lc(J,R,N);if(R instanceof x)return R;N=[];N.push(new We(IL(u)));u==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&f!==void 0&&N.push(new AR(f));return Object.assign({},H,{renderingContent:J.renderingContent,w3:new Map([["impression",cM7(J)]])},R,{AE:ZN(C,X)(H),clientMetadata:new a$(N),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData})}; zbY=function(J,R,N,C,X,u,f){if(J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(f=g.z(J.renderingContent,Pz))if(f=g.z(f.sidePanel,d3E)){var H={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,DM:"core"};R=Lc(J,R,N);J=R instanceof x?R:Object.assign({},H,{renderingContent:J.renderingContent,w3:new Map([["impression",f.impressionPings||[]],["resume",f.resumePings||[]]])},R,{AE:ZN(C,X)(H),clientMetadata:new a$([new We(IL(u))]),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData})}else J= new x("DismissablePanelTextPortraitImageRenderer is missing");else J=new x("SqueezebackPlayerSidePanelRenderer is missing");else J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.z(J.renderingContent,Bxn)?(f={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,DM:"core"},R=Lc(J,R,N),J=R instanceof x?R:Object.assign({},f,{renderingContent:J.renderingContent,w3:new Map},R,{AE:ZN(C,X)(f),clientMetadata:new a$([new We(IL(u))]),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData})): J=new x("CounterfactualRenderer is missing"):J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?J=new x("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.z(J.renderingContent,ze)?(u={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,DM:"core"},R=Lc(J,R,N),J=R instanceof x?R:f?Object.assign({},u,{renderingContent:J.renderingContent,w3:new Map},R,{AE:ZN(C, X)(u),clientMetadata:new a$([new AR(f)]),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData}):new x("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):J=new x("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.z(J.renderingContent,OL2)?(u={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,DM:"core"},R=Lc(J,R,N),J=R instanceof x?R: Object.assign({},u,{renderingContent:J.renderingContent,w3:new Map([])},R,{AE:ZN(C,X)(u),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new a$([])})):J=new x("AdsEngagementPanelSectionListViewModel is missing"):J=new x("LayoutType ["+J.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return J}; lwg=function(J,R,N,C,X,u,f,H,k,v,W,S){if((S==null?void 0:S.Cj)===void 0||(S==null?void 0:S.Q6)===void 0)return new x("Cached ad break range from cue point is missing");var L=Lc(N,X,C.Tg);if(L instanceof x)return L;L={layoutExitMuteTriggers:[],layoutExitNormalTriggers:L.layoutExitNormalTriggers,layoutExitSkipTriggers:[],xv:[],layoutExitUserInputSubmittedTriggers:[]};if(g.z(N.renderingContent,mG))return J=hbE(J,R,N,L,X,u,H,k,C.Tg,f,S.Cj,S.Q6),J instanceof x?J:J.eD===void 0?new x("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:J.layout,ME:[J.eD]};var I=g.z(N.renderingContent,rL);if(I){if(!nD(N.adLayoutMetadata))return new x("Invalid ad layout metadata");if(!jH(I))return new x("Invalid sequential layout");I=I.sequentialLayouts.map(function(F){return F.playerBytesAdLayoutRenderer}); J=yMB(J,R,N,L,I,X,C,u,f,k,H,v,S.Cj,S.Q6,W);return J instanceof x?J:{layout:J.Uo,ME:J.ME}}return new x("Not able to convert a sequential layout")}; yMB=function(J,R,N,C,X,u,f,H,k,v,W,S,L,I,F){var a=GVP(X,L,I);if(a instanceof x)return a;var n=[],B=[];a=g.K(a);for(var Z=a.next();!Z.done;Z=a.next()){var A=Z.value;Z=J;var V=X[A.Fs],p=A,b=R;A=u;var w=f,RQ=H,$E=k,G=v,e=W,t=Fa(V);if(t instanceof x)Z=t;else{var E={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,DM:"adapter"};p=bnE(b,V,p,A);p instanceof x?Z=p:(Z=Object.assign({},E,ED,{w3:t,renderingContent:V.renderingContent,clientMetadata:new a$(p),AE:ZN(RQ,Z)(E),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData}), Z=(V=MM(e,Z,A,w.Tg,RQ,$E,G,void 0,!0))?V instanceof x?V:{layout:Z,eD:V}:new x("Expecting associatedInPlayerSlot"))}if(Z instanceof x)return Z;n.push(Z.layout);B.push(Z.eD)}X={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType,DM:"core"};R=[new tR(Number(N.driftRecoveryMs)),new wX(L),new ce(I),new We(IL(R)),new vM(S),new ya({})];F&&R.push(new I$({}));return{Uo:Object.assign({},X,C,{wC:n,w3:new Map,clientMetadata:new a$(R),AE:ZN(H,J)(X)}),ME:B}}; hbE=function(J,R,N,C,X,u,f,H,k,v,W,S){if(!pD(N))return new x("Invalid PlayerBytesAdLayoutRenderer");var L=Fa(N);if(L instanceof x)return L;var I={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType,DM:"core"},F=g.z(N.renderingContent,mG);if(!F)return new x("Invalid rendering content for DAI media layout");F=$Q(F,!1);W={d2:F,Fs:0,On:W,LW:Math.min(W+F.videoLengthSeconds*1E3,S),a6:new yW(0,[F.videoLengthSeconds])};var a;S=(a=Number(N.driftRecoveryMs))!=null?a:void 0;R=bnE(R, N,W,X,S);if(R instanceof x)return R;J=Object.assign({},I,C,{w3:L,renderingContent:N.renderingContent,clientMetadata:new a$(R),AE:ZN(u,J)(I),adLayoutLoggingData:N.adLayoutMetadata.adLayoutLoggingData});return(X=MM(f,J,X,k,u,v,H,void 0,!0))?X instanceof x?X:{layout:J,eD:X}:new x("Expecting associatedInPlayerSlot")}; P37=function(J,R,N,C,X,u,f,H,k,v,W,S,L,I,F,a){var n=Lc(N,u,X.Tg);if(n instanceof x)return n;if(g.z(N.renderingContent,mG)){k=tVg([N],X,k);if(k instanceof x)return k;if(k.length!==1)return new x("Only expected one media layout.");J=xF8(J,R,N,n,k[0],void 0,"core",C,u,f,H,v,L,I,F,X.Tg,S,void 0,a);return J instanceof x?J:{layout:J.layout,ME:J.eD?[J.eD]:[]}}var B=g.z(N.renderingContent,rL);if(B){if(!nD(N.adLayoutMetadata))return new x("Invalid ad layout metadata");if(!jH(B))return new x("Invalid sequential layout"); B=B.sequentialLayouts.map(function(Z){return Z.playerBytesAdLayoutRenderer}); J=JN8(J,R,N.adLayoutMetadata,n,B,C,u,X,k,f,H,v,W,S,F,L,I,a);return J instanceof x?J:{layout:J.Uo,ME:J.ME}}return new x("Not able to convert a sequential layout")}; JN8=function(J,R,N,C,X,u,f,H,k,v,W,S,L,I,F,a,n,B){var Z=new FN({current:null}),A=tVg(X,H,k);if(A instanceof x)return A;k=[];for(var V=[],p=void 0,b=0;b0&&(b.push(B),b.push(new I8(p.adPodSkipTarget)));(u=v.get(p.externalVideoId))&&b.push(new R$(u));u=b}else u=new x("Invalid vod media renderer")}if(u instanceof x)return u;J=Object.assign({},f,C,{w3:A,renderingContent:N.renderingContent,clientMetadata:new a$(u),AE:ZN(W,J)(f),adLayoutLoggingData:N.adLayoutMetadata.adLayoutLoggingData});N=g.z(N.renderingContent,mG);if(!N||!Yx(N))return new x("Invalid meida renderer");S=Xa(S,N.externalVideoId);S.instreamVideoAdRenderer=N;S.f3="AD_PLACEMENT_KIND_START";return I?(k=MM(L,J,k,a,W,n,F,B,!1),k instanceof x?k:N1E(J.layoutId,L)&&k?{layout:Object.assign({},J,{clientMetadata:new a$(u.concat(new D_(k)))})}:{layout:J,eD:k}): {layout:J}}; o3E=function(J,R,N,C,X){if(!pD(R))return new x("Invalid PlayerBytesAdLayoutRenderer");var u=g.z(R.renderingContent,s4);if(!u||u.durationMilliseconds===void 0)return new x("Invalid endcap renderer");var f={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,DM:"adapter"};C=[new CQ(u.durationMilliseconds),new u6({impressionCommands:void 0,abandonCommands:u.abandonCommands?[{commandExecutorCommand:u.abandonCommands}]:void 0,completeCommands:u.completionCommands}),new We(C), new rX("LAYOUT_TYPE_ENDCAP")];if(X){C.push(new LV(X.a6.adPodIndex-1));C.push(new hR(X.a6.adPodIndex));var H;C.push(new I8((H=X.adPodSkipTarget)!=null?H:-1))}return Object.assign({},f,ED,{renderingContent:R.renderingContent,clientMetadata:new a$(C),w3:u.skipPings?new Map([["skip",u.skipPings]]):new Map,AE:ZN(N,J)(f),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData})}; MM=function(J,R,N,C,X,u,f,H,k){J=J.filter(function(W){return W.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&W.adSlotMetadata.triggeringSourceLayoutId===R.layoutId}); if(J.length!==0){if(J.length!==1)return new x("Invalid InPlayer slot association for the given PlayerBytes layout");J=J[0];f=pUE(J,u,N,C,f);if(f instanceof x)return f;var v;u={slotId:J.adSlotMetadata.slotId,slotType:J.adSlotMetadata.slotType,slotPhysicalPosition:(v=J.adSlotMetadata.slotPhysicalPosition)!=null?v:1,DM:"core",slotEntryTrigger:f.slotEntryTrigger,slotFulfillmentTriggers:f.slotFulfillmentTriggers,slotExpirationTriggers:f.slotExpirationTriggers};v=g.z(J.fulfillmentContent.fulfilledLayout, YmQ);if(!v||!s_E(v))return new x("Invalid InPlayerAdLayoutRenderer");f={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType,DM:"core"};N=Lc(v,N,C);if(N instanceof x)return N;C=[];k&&C.push(new ya({}));if(v.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")C.push.apply(C,g.Q(C$f(J.adSlotMetadata.triggerEvent,R)));else if(v.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")C.push(new We(IL(J.adSlotMetadata.triggerEvent))),H&&C.push(H);else return new x("Not able to parse an SDF InPlayer layout"); X=Object.assign({},f,N,{renderingContent:v.renderingContent,w3:new Map,AE:ZN(X,u)(f),clientMetadata:new a$(C),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},u,{fulfilledLayout:X,clientMetadata:new a$([])})}}; C$f=function(J,R){var N=[];N.push(new We(IL(J)));N.push(new AR(R.layoutId));(J=QX(R.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&N.push(new Va(J));(J=QX(R.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&N.push(new FN(J));(J=QX(R.clientMetadata,"metadata_type_remote_slots_data"))&&N.push(new R$(J));(J=QX(R.clientMetadata,"metadata_type_ad_next_params"))&&N.push(new i5(J));(J=QX(R.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&N.push(new u5(J));(J= QX(R.clientMetadata,"metadata_type_ad_pod_info"))&&N.push(new SU(J));(R=QX(R.clientMetadata,"metadata_type_ad_video_id"))&&N.push(new Eh(R));return N}; RDE=function(J,R,N,C,X,u){function f(v){return Kc(R,v)} var H=C.ZV.inPlayerSlotId,k={layoutId:C.ZV.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",DM:"core"};N={slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DM:"core",slotEntryTrigger:new Je(f,J),slotFulfillmentTriggers:[new SH(f,H)],slotExpirationTriggers:[new LD(f,H),new kx(f,N)]};J=Object.assign({},k,{layoutExitNormalTriggers:[new Rn(f,J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],w3:new Map,clientMetadata:new a$([new Be(C.ZV), new We(C.adPlacementConfig),X]),AE:ZN(u,N)(k),adLayoutLoggingData:C.ZV.adLayoutLoggingData});return Object.assign({},N,{clientMetadata:new a$([new xJ(J)])})}; N1E=function(J,R){R=g.K(R);for(var N=R.next();!N.done;N=R.next())if(N=N.value,N.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var C=g.z(N.fulfillmentContent.fulfilledLayout,eH);if(C&&(C=g.z(C.renderingContent,Pz))&&C.associatedPlayerBytesLayoutId===J)return N}}; pUE=function(J,R,N,C,X){var u=Xyn(RL(J.slotEntryTrigger,N,C),X,J,R);if(u instanceof x)return u;for(var f=[],H=g.K(J.slotFulfillmentTriggers),k=H.next();!k.done;k=H.next()){k=RL(k.value,N,C);if(k instanceof x)return k;f.push(k)}f=iXB(f,X,J,R);R=[];J=g.K(J.slotExpirationTriggers);for(X=J.next();!X.done;X=J.next()){X=RL(X.value,N,C);if(X instanceof x)return X;R.push(X)}return{slotEntryTrigger:u,slotFulfillmentTriggers:f,slotExpirationTriggers:R}}; Xyn=function(J,R,N,C){return R&&N.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&J instanceof GG?new ho(function(X){return Kc(C,X)},N.adSlotMetadata.slotId):J}; iXB=function(J,R,N,C){return R&&N.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?J.map(function(X){return X instanceof SH?new EY(function(u){return Kc(C,u)},N.adSlotMetadata.slotId):X}):J}; Lc=function(J,R,N){for(var C=[],X=g.K(J.layoutExitNormalTriggers||[]),u=X.next();!u.done;u=X.next()){u=RL(u.value,R,N);if(u instanceof x)return u;C.push(u)}X=[];u=g.K(J.layoutExitSkipTriggers||[]);for(var f=u.next();!f.done;f=u.next()){f=RL(f.value,R,N);if(f instanceof x)return f;X.push(f)}u=[];f=g.K(J.layoutExitMuteTriggers||[]);for(var H=f.next();!H.done;H=f.next()){H=RL(H.value,R,N);if(H instanceof x)return H;u.push(H)}f=[];J=g.K(J.layoutExitUserInputSubmittedTriggers||[]);for(H=J.next();!H.done;H= J.next()){H=RL(H.value,R,N);if(H instanceof x)return H;f.push(H)}return{layoutExitNormalTriggers:C,layoutExitSkipTriggers:X,layoutExitMuteTriggers:u,layoutExitUserInputSubmittedTriggers:f,xv:[]}}; Fa=function(J){var R=g.z(J.renderingContent,mG);if(R==null?0:R.pings)return z_(R.pings);J=g.z(J.renderingContent,s4);return(J==null?0:J.skipPings)?new Map([["skip",J.skipPings]]):new Map}; bnE=function(J,R,N,C,X){R=g.z(R.renderingContent,mG);if(!R)return new x("Invalid rendering content for DAI media layout");J=[new MD(C),new l5(N.d2.videoLengthSeconds),new Pe(N.d2.playerVars),new wX(N.On),new ce(N.LW),new hR(N.Fs),new We(IL(J)),new Eh(N.d2.adVideoId),new SU(N.a6),R.sodarExtensionData&&new eU(R.sodarExtensionData),new Va({current:null}),new ya({}),new HM(PT(R.pings))].filter(UFB);X!==void 0&&J.push(new tR(X));return J}; GVP=function(J,R,N){J=J.map(function(k){return $Q(g.z(k.renderingContent,mG),!1)}); var C=J.map(function(k){return k.videoLengthSeconds}),X=C.map(function(k,v){return new yW(v,C)}),u=R,f=N,H=[]; J.forEach(function(k,v){f=Math.min(u+k.videoLengthSeconds*1E3,N);NM(k.playerVars,X[v]);H.push({d2:k,On:u,LW:f,Fs:v,a6:X[v]});u=f}); return H}; tVg=function(J,R,N){for(var C=[],X=g.K(J),u=X.next();!u.done;u=X.next())if(u=g.z(u.value.renderingContent,mG)){if(!Yx(u))return new x("Invalid vod media renderer");C.push(u2g(u))}X=C.map(function(S){return S.sP}); u=[];for(var f=0,H=0;H0?G:-1;else if(E=g.z(t,s4)){t=FVn(J,R,N,E,u,a,H,w,G);if(t instanceof x){I=t;break a}t= t(L);n.push(t.lB);B=[].concat(g.Q(t.CX),g.Q(B));Z=[].concat(g.Q(t.SR),g.Q(Z));t.eD&&($E=[t.eD].concat(g.Q($E)))}else if(E=g.z(t,gL)){if(I===void 0){I=new x("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:E});break a}t=KVE(J,R,N,u,E,b,H,I,a,ki(W,"supports_multi_step_on_desktop"));if(t instanceof x){I=t;break a}t=t(L);n.push(t.lB);t.eD&&$E.push(t.eD);B=[].concat(g.Q(t.CX),g.Q(B));Z=[].concat(g.Q(t.SR),g.Q(Z));A=[].concat(g.Q(t.Ue),g.Q(A));V=[].concat(g.Q(t.Zk), g.Q(V));p=[b].concat(g.Q(p))}else if(t=g.z(t,UY)){t=aRB(J,R,N,u,t,b,H,a);if(t instanceof x){I=t;break a}t=t(L);n.push(t.lB);t.eD&&$E.push(t.eD);Z=[].concat(g.Q(t.SR),g.Q(Z))}else{I=new x("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}I={wC:n,layoutExitSkipTriggers:B,layoutExitUserInputSubmittedTriggers:A,xv:V,layoutExitMuteTriggers:Z,tW:p,ME:$E}}}else a:if(a=dmB(C,N,W),a instanceof x)I=a;else{n=0;B=[];Z=[];A=[];V=[];p=[];b=[];w=new gX({current:null});RQ=new FN({current:null}); $E=!1;e=[];G=-1;F=g.K(C);for(t=F.next();!t.done;t=F.next())if(t=t.value,g.z(t,Vq)){t=E32(R,N,g.z(t,Vq),H);if(t instanceof x){I=t;break a}t=t(L);B.push(t.lB);Z=[].concat(g.Q(t.CX),g.Q(Z));A=[].concat(g.Q(t.SR),g.Q(A));t.eD&&(e=[t.eD].concat(g.Q(e)))}else if(g.z(t,mG)){G=H3(g.z(t,mG),N,W);if(G instanceof KQ){I=new x(G);break a}t=new yW(n,a);t=qbQ(R,G.layoutId,G.YZ,N,kQ(G.playerVars,G.y9,f,v,t),G.sP,u,t,H(L),RQ,k.get(G.YZ.externalVideoId),void 0,S);n++;B.push(t.lB);Z=[].concat(g.Q(t.CX),g.Q(Z));A=[].concat(g.Q(t.SR), g.Q(A));$E||(b.push(RQ),$E=!0);G=(G=G.YZ.adPodSkipTarget)&&G>0?G:-1}else if(g.z(t,s4)){t=FVn(J,R,N,g.z(t,s4),u,n,H,RQ,G);if(t instanceof x){I=t;break a}t=t(L);B.push(t.lB);Z=[].concat(g.Q(t.CX),g.Q(Z));A=[].concat(g.Q(t.SR),g.Q(A));t.eD&&(e=[t.eD].concat(g.Q(e)))}else if(g.z(t,gL)){if(I===void 0){I=new x("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.z(t,gL)});break a}t=KVE(J,R,N,u,g.z(t,gL),w,H,I,n,ki(W,"supports_multi_step_on_desktop")); if(t instanceof x){I=t;break a}t=t(L);B.push(t.lB);t.eD&&e.push(t.eD);Z=[].concat(g.Q(t.CX),g.Q(Z));A=[].concat(g.Q(t.SR),g.Q(A));V=[].concat(g.Q(t.Ue),g.Q(V));p=[].concat(g.Q(t.Zk),g.Q(p));b=[w].concat(g.Q(b))}else if(g.z(t,UY)){t=aRB(J,R,N,u,g.z(t,UY),w,H,n);if(t instanceof x){I=t;break a}t=t(L);B.push(t.lB);t.eD&&e.push(t.eD);A=[].concat(g.Q(t.SR),g.Q(A))}else{I=new x("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}I={wC:B,layoutExitSkipTriggers:Z,layoutExitUserInputSubmittedTriggers:V, xv:p,layoutExitMuteTriggers:A,tW:b,ME:e}}I instanceof x?L=I:(p=L.slotId,a=I.wC,n=I.layoutExitSkipTriggers,B=I.layoutExitMuteTriggers,Z=I.layoutExitUserInputSubmittedTriggers,A=I.tW,L=H(L),V=X?X.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",p=X?X.layoutId:vT(R.J.get(),V,p),b={layoutId:p,layoutType:V,DM:"core"},L={layout:{layoutId:p,layoutType:V,w3:new Map,layoutExitNormalTriggers:[new Hz(R.K,p)],layoutExitSkipTriggers:n,layoutExitMuteTriggers:B,layoutExitUserInputSubmittedTriggers:Z,xv:[],DM:"core", clientMetadata:new a$([new Uh(a)].concat(g.Q(A))),AE:L(b)},ME:I.ME});return L}}; dmB=function(J,R,N){var C=[];J=g.K(J);for(var X=J.next();!X.done;X=J.next())if(X=X.value,g.z(X,mG)){X=H3(g.z(X,mG),R,N);if(X instanceof KQ)return new x(X);C.push(X.sP)}return C}; YbE=function(J,R,N,C,X,u,f,H){if(!U32(N,H===void 0?!1:H))return new x("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:N});var k=ud(N);if(k<=0)return new x("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:N});var v=new gX({current:null}),W=TB8(J,R,N,v,C,u,f);return ANQ(J,C,u,k,X,function(S,L){var I=S.slotId,F=fc(N);S=f(S);var a,n=(a=DU(R,C,N.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?a: vT(R.J.get(),"LAYOUT_TYPE_MEDIA_BREAK",I);I={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",DM:"core"};a=W(n,L);var B=QX(a.clientMetadata,"metadata_type_fulfilled_layout");B||d0("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");F=[new We(C),new CQ(k),new u6(F),v];B&&F.push(new rX(B.layoutType));return{XCa:{layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",w3:new Map,layoutExitNormalTriggers:[new Hz(R.K,n)],layoutExitSkipTriggers:[new Wz(R.K, L.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new KD(R.K,L.layoutId)],xv:[],DM:"core",clientMetadata:new a$(F),AE:S(I)},fz:a}})}; rN8=function(J){if(!Pw8(J))return!1;var R=g.z(J.adVideoStart,dU);return R?g.z(J.linearAd,mG)&&qf(R)?!0:(d0("Invalid Sandwich with notify"),!1):!1}; jwE=function(J){if(J.linearAds==null)return!1;J=g.z(J.adStart,dU);return J?qf(J)?!0:(d0("Invalid LASR with notify"),!1):!1}; mmn=function(J){if(!l4E(J))return!1;J=g.z(J.adStart,dU);return J?qf(J)?!0:(d0("Invalid LASR with notify"),!1):!1}; qM=function(J,R,N,C,X,u,f,H,k,v){this.Z=J;this.J=R;this.K=N;this.JN=C;this.FM=X;this.V=u;this.UB=f;this.Y6=H;this.Di=k;this.loadPolicy=v===void 0?1:v}; hUP=function(J,R,N,C,X,u,f,H,k,v){var W=[];if(R.length===0&&C.length===0&&N.length===0)return W;R=R.filter(Ae);var S=N.filter(m3f),L=C.filter(Ae),I=new Map,F=gM8(R),a=N.some(function(E){var y;return(E==null?void 0:(y=E.adSlotMetadata)==null?void 0:y.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),n=N.some(function(E){var y; return(E==null?void 0:(y=E.adSlotMetadata)==null?void 0:y.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),B=N.some(function(E){var y; return(E==null?void 0:(y=E.adSlotMetadata)==null?void 0:y.slotType)==="SLOT_TYPE_IN_PLAYER"}); N=N.some(function(E){var y,b8;return(E==null?void 0:(y=E.adSlotMetadata)==null?void 0:y.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(E==null?void 0:(b8=E.adSlotMetadata)==null?void 0:b8.slotType)==="SLOT_TYPE_ABOVE_FEED"}); if(a||n||B||N)v=wUg(S,R,H,X,F,J.FM.get(),J.loadPolicy,I,J.JN.get(),J.Z.get(),B,f,k,v),v instanceof x?d0(v,void 0,void 0,{contentCpn:X}):W.push.apply(W,g.Q(v));v=g.K(R);for(N=v.next();!N.done;N=v.next())N=N.value,n=VsQ(J,I,N,X,u,f,a,H,F,k,S),n instanceof x?d0(n,void 0,void 0,{renderer:N.renderer,config:N.config.adPlacementConfig,kind:N.config.adPlacementConfig.kind,contentCpn:X,daiEnabled:f}):W.push.apply(W,g.Q(n));g3n(J.JN.get())||(u=Um8(J,L,X,H,F,I),W.push.apply(W,g.Q(u)));if(J.V===null||f&&!H.E8){var Z, A,V;J=H.MR&&R.length===1&&((Z=R[0].config)==null?void 0:(A=Z.adPlacementConfig)==null?void 0:A.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((V=R[0].renderer)==null?void 0:V.adBreakServiceRenderer);if(!W.length&&!J){var p,b,w,RQ;d0("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":R.length,contentCpn:X,"first APR kind":(p=R[0])==null?void 0:(b=p.config)==null?void 0:(w=b.adPlacementConfig)==null?void 0:w.kind,renderer:(RQ=R[0])==null?void 0:RQ.renderer})}return W}Z= C.filter(Ae);W.push.apply(W,g.Q(inf(I,Z,J.J.get(),J.V,X,a)));if(!W.length){var $E,G,e,t;d0("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":R.length,contentCpn:X,daiEnabled:f.toString(),"first APR kind":($E=R[0])==null?void 0:(G=$E.config)==null?void 0:(e=G.adPlacementConfig)==null?void 0:e.kind,renderer:(t=R[0])==null?void 0:t.renderer})}return W}; Um8=function(J,R,N,C,X,u){function f(L){return ZN(J.FM.get(),L)} var H=[];R=g.K(R);for(var k=R.next();!k.done;k=R.next()){k=k.value;var v=k.renderer,W=v.sandwichedLinearAdRenderer,S=v.linearAdSequenceRenderer;W&&rN8(W)?(d0("Found AdNotify with SandwichedLinearAdRenderer"),S=g.z(W.adVideoStart,dU),W=g.z(W.linearAd,mG),Cc(u,v,k.config.adPlacementConfig.kind),v=void 0,S=On2((v=S)==null?void 0:v.layout.layoutId,J.J.get(),J.K.get(),k.config.adPlacementConfig,k.adSlotLoggingData,W,N,C,f,X,J.loadPolicy,J.JN.get(),J.FM.get()),S instanceof x?d0(S):H.push.apply(H,g.Q(S))): S&&(!S.adLayoutMetadata&&jwE(S)||S.adLayoutMetadata&&mmn(S))&&(d0("Found AdNotify with LinearAdSequenceRenderer"),Cc(u,v,k.config.adPlacementConfig.kind),v=void 0,W=QwP((v=g.z(S.adStart,dU))==null?void 0:v.layout.layoutId,J.J.get(),J.K.get(),k.config.adPlacementConfig,k.adSlotLoggingData,S.linearAds,nD(S.adLayoutMetadata)?S.adLayoutMetadata:void 0,N,C,f,X,J.loadPolicy,J.JN.get()),W instanceof x?d0(W):H.push.apply(H,g.Q(W)))}return H}; VsQ=function(J,R,N,C,X,u,f,H,k,v,W){function S(B){return ZN(J.FM.get(),B)} var L=N.renderer,I=N.config.adPlacementConfig,F=I.kind,a=N.adSlotLoggingData,n=H.E8&&F==="AD_PLACEMENT_KIND_START";n=u&&!n;if(L.adsEngagementPanelRenderer!=null)return id(R,N.elementId,F,L.adsEngagementPanelRenderer.isContentVideoEngagementPanel,L.adsEngagementPanelRenderer.adVideoId,L.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,I,a,function(B,Z,A,V){var p=J.K.get(),b=B.slotId,w=L.adsEngagementPanelRenderer;B=ZN(J.FM.get(),B);return Aa(p,b,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new CV(w),Z,A,w.impressionPings,B,L.adsEngagementPanelRenderer.adLayoutLoggingData,V)}),[]; if(L.adsEngagementPanelLayoutViewModel)return id(R,N.elementId,F,L.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,L.adsEngagementPanelLayoutViewModel.adVideoId,L.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,I,a,function(B,Z,A,V){var p=J.K.get(),b=B.slotId,w=L.adsEngagementPanelLayoutViewModel;B=ZN(J.FM.get(),B);return YQ(p,b,"LAYOUT_TYPE_PANEL",new XN(w),Z,A,B,L.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,V)}),[]; if(L.actionCompanionAdRenderer!=null){if(L.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return oMB(J.J.get(),J.V,J.K.get(),L.actionCompanionAdRenderer,I,a,C,S);id(R,N.elementId,F,L.actionCompanionAdRenderer.isContentVideoCompanion,L.actionCompanionAdRenderer.adVideoId,L.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,I,a,function(B,Z,A,V){var p=J.K.get(),b=B.slotId,w=L.actionCompanionAdRenderer;B=ZN(J.FM.get(),B);return Aa(p,b,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new R8(w),Z,A,w.impressionPings,B,L.actionCompanionAdRenderer.adLayoutLoggingData,V)})}else if(L.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(L.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return Rb8(J.J.get(),J.V,J.K.get(),L.topBannerImageTextIconButtonedLayoutViewModel,I,a,C,S); id(R,N.elementId,F,L.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,L.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,L.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,I,a,function(B,Z,A,V){var p=J.K.get(),b=B.slotId,w=L.topBannerImageTextIconButtonedLayoutViewModel;B=ZN(J.FM.get(),B);return YQ(p,b,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new ND(w),Z,A,B,L.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,V)})}else if(L.imageCompanionAdRenderer)id(R, N.elementId,F,L.imageCompanionAdRenderer.isContentVideoCompanion,L.imageCompanionAdRenderer.adVideoId,L.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,I,a,function(B,Z,A,V){var p=J.K.get(),b=B.slotId,w=L.imageCompanionAdRenderer; B=ZN(J.FM.get(),B);return Aa(p,b,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Th(w),Z,A,w.impressionPings,B,L.imageCompanionAdRenderer.adLayoutLoggingData,V)}); else if(L.bannerImageLayoutViewModel)id(R,N.elementId,F,L.bannerImageLayoutViewModel.isContentVideoCompanion,L.bannerImageLayoutViewModel.adVideoId,L.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,I,a,function(B,Z,A,V){var p=J.K.get(),b=B.slotId,w=L.bannerImageLayoutViewModel;B=ZN(J.FM.get(),B);return YQ(p,b,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new $J(w),Z,A,B,L.bannerImageLayoutViewModel.adLayoutLoggingData,V)}); else if(L.shoppingCompanionCarouselRenderer)id(R,N.elementId,F,L.shoppingCompanionCarouselRenderer.isContentVideoCompanion,L.shoppingCompanionCarouselRenderer.adVideoId,L.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,I,a,function(B,Z,A,V){var p=J.K.get(),b=B.slotId,w=L.shoppingCompanionCarouselRenderer;B=ZN(J.FM.get(),B);return Aa(p,b,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new He(w),Z,A,w.impressionPings,B,L.shoppingCompanionCarouselRenderer.adLayoutLoggingData,V)}); else if(L.adBreakServiceRenderer){if(!x3E(N))return[];if(F==="AD_PLACEMENT_KIND_PAUSE")return tCB(J.J.get(),I,a,N.renderer.adBreakServiceRenderer,C);if(F!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&F!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return bLB(J.J.get(),I,a,N.renderer.adBreakServiceRenderer,C,X,u);H.MR||d0("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:F,adPlacementConfig:I,daiEnabledForContentVideo:String(u),isServedFromLiveInfra:String(H.MR),clientPlaybackNonce:H.clientPlaybackNonce}); if(F==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!J.UB)return new x("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!J.Di)return new x("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");J.Di.b1({adPlacementRenderer:N,contentCpn:C,Tg:X});X=J.UB.get().getCurrentTimeSec(1,!1);return py2(J.J.get(),N.renderer.adBreakServiceRenderer,I,X,C,a,u)}if(!J.Y6)return new x("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); J.Y6.b1({adPlacementRenderer:N,contentCpn:C,Tg:X})}else{if(L.clientForecastingAdRenderer)return HXE(J.J.get(),J.K.get(),I,a,L.clientForecastingAdRenderer,C,X,S);if(L.invideoOverlayAdRenderer)return Sb7(J.J.get(),J.K.get(),I,a,L.invideoOverlayAdRenderer,C,X,S);if(L.instreamAdPlayerOverlayRenderer)return v3k(J.J.get(),J.K.get(),I,a,L.instreamAdPlayerOverlayRenderer,C,S);if((L.linearAdSequenceRenderer||L.instreamVideoAdRenderer)&&n)return awB(J.J.get(),J.K.get(),N,C,S,v,!J.JN.get().G.N().T("html5_override_ad_video_length_killswitch")); if(L.linearAdSequenceRenderer&&!n){if(f)return[];Cc(R,L,F);if(L.linearAdSequenceRenderer.adLayoutMetadata){if(!l4E(L.linearAdSequenceRenderer))return new x("Received invalid LinearAdSequenceRenderer.")}else if(L.linearAdSequenceRenderer.linearAds==null)return new x("Received invalid LinearAdSequenceRenderer.");if(g.z(L.linearAdSequenceRenderer.adStart,dU)){d0("Found AdNotify in LinearAdSequenceRenderer");N=g.z(L.linearAdSequenceRenderer.adStart,dU);if(!D37(N))return new x("Invalid AdMessageRenderer."); u=L.linearAdSequenceRenderer.linearAds;return n3E(J.Z.get(),J.J.get(),J.K.get(),J.FM.get(),I,a,N,nD(L.linearAdSequenceRenderer.adLayoutMetadata)?L.linearAdSequenceRenderer.adLayoutMetadata:void 0,u,C,X,H,S,k,J.loadPolicy,J.JN.get())}return ZXB(J.J.get(),J.K.get(),I,a,L.linearAdSequenceRenderer.linearAds,nD(L.linearAdSequenceRenderer.adLayoutMetadata)?L.linearAdSequenceRenderer.adLayoutMetadata:void 0,C,X,H,S,k,J.loadPolicy,J.JN.get(),W)}if(!L.remoteSlotsRenderer||u){if(L.instreamVideoAdRenderer&& !n){if(f)return[];Cc(R,L,F);return YGE(J.J.get(),J.K.get(),I,a,L.instreamVideoAdRenderer,C,X,H,S,k,J.loadPolicy,J.JN.get(),J.FM.get(),W)}if(L.instreamSurveyAdRenderer)return YbE(J.J.get(),J.K.get(),L.instreamSurveyAdRenderer,I,a,C,S,ki(J.JN.get(),"supports_multi_step_on_desktop"));if(L.sandwichedLinearAdRenderer!=null)return Pw8(L.sandwichedLinearAdRenderer)?g.z(L.sandwichedLinearAdRenderer.adVideoStart,dU)?(d0("Found AdNotify in SandwichedLinearAdRenderer"),N=g.z(L.sandwichedLinearAdRenderer.adVideoStart, dU),D37(N)?(u=g.z(L.sandwichedLinearAdRenderer.linearAd,mG))?ZnP(N,u,I,J.Z.get(),J.J.get(),J.K.get(),J.FM.get(),a,C,X,H,S,k,J.loadPolicy,J.JN.get()):new x("Missing IVAR from Sandwich"):new x("Invalid AdMessageRenderer.")):ZXB(J.J.get(),J.K.get(),I,a,[L.sandwichedLinearAdRenderer.adVideoStart,L.sandwichedLinearAdRenderer.linearAd],void 0,C,X,H,S,k,J.loadPolicy,J.JN.get()):new x("Received invalid SandwichedLinearAdRenderer.");if(L.videoAdTrackingRenderer!=null)return H=ki(J.JN.get(),"enable_h5_shorts_ad_terminal_events")&& H.He,T1g(J.J.get(),J.K.get(),L.videoAdTrackingRenderer,I,a,C,X,H,S)}}return[]}; rU=function(J,R,N,C,X,u,f,H){g.l.call(this);var k=this;this.J=J;this.V=R;this.XV=C;this.UB=X;this.JN=u;this.AN=f;this.v1=H;this.K=null;N.get().addListener(this);this.addOnDisposeCallback(function(){N.QO()||N.get().removeListener(k)}); C.get().addListener(this);this.addOnDisposeCallback(function(){C.QO()||C.get().removeListener(k)})}; P$Q=function(J,R,N){var C=J.UB.get().getCurrentTimeSec(1,!1);J.JN.get().G.N().Si()&&s8(J.AN.get(),"sdai","onopp.1;evt."+N.event+";start."+N.startSecs.toFixed(3)+";d."+N.Ly.toFixed(3));AK(J.J.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var X=J.V.get(),u=R.adPlacementRenderer.renderer.adBreakServiceRenderer,f=R.contentCpn,H=R.adPlacementRenderer.adSlotLoggingData,k=jN(J.JN.get()),v=J.AN;if(X.JN.get().G.N().experiments.b3("enable_smearing_expansion_dai")){var W=g.di(X.JN.get().G.N().experiments, "max_prefetch_window_sec_for_livestream_optimization");var S=g.di(X.JN.get().G.N().experiments,"min_prefetch_offset_sec_for_livestream_optimization");k={Kh:lRQ(N),Dv:!1,cueProcessedMs:C*1E3};var L=N.startSecs+N.Ly;if(C===0)k.nm=new j_(0,L*1E3);else{S=N.startSecs-S;var I=S-C;k.nm=I<=0?new j_(S*1E3,L*1E3):new j_(Math.floor(C+Math.random()*Math.min(I,W))*1E3,L*1E3)}W=k}else W={Kh:lRQ(N),Dv:!1},L=N.startSecs+N.Ly,N.startSecs<=C?k=new j_((N.startSecs-4)*1E3,L*1E3):(S=Math.max(0,N.startSecs-C-10),k=new j_(Math.floor(C+ Math.random()*(k?C===0?0:Math.min(S,5):S))*1E3,L*1E3)),W.nm=k;X=oL(X,u,f,W,H,[new pV(N)]);f=v.get();v=W.nm.start/1E3-C;u=N.startSecs-C;(f=f.G.Us())!=null&&(f=f.xA(),f.qoe&&(f=f.qoe,H=g.m0(f.provider)*1E3,W=f.K.daism||[],W.push("t."+H.toFixed(0)+";smw."+(v*1E3).toFixed(0)+";smo."+(u*1E3).toFixed(0)),f.K.daism=W));return[X]})}; Vf=function(J){var R,N=(R=QX(J.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:R.current;if(!N)return null;R=QX(J.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var C=J.layoutId,X=QX(J.clientMetadata,"metadata_type_content_cpn"),u=QX(J.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),f=QX(J.clientMetadata,"metadata_type_player_overlay_layout_renderer"),H=QX(J.clientMetadata,"metadata_type_player_underlay_renderer"),k=QX(J.clientMetadata, "metadata_type_ad_placement_config"),v=QX(J.clientMetadata,"metadata_type_video_length_seconds");var W=Fj(J.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?QX(J.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Fj(J.clientMetadata,"metadata_type_layout_enter_ms")&&Fj(J.clientMetadata,"metadata_type_layout_exit_ms")?(QX(J.clientMetadata,"metadata_type_layout_exit_ms")-QX(J.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Rh:C,contentCpn:X,y5:N,rz:R,instreamAdPlayerOverlayRenderer:u, playerOverlayLayoutRenderer:f,instreamAdPlayerUnderlayRenderer:H,adPlacementConfig:k,videoLengthSeconds:v,FG:W,inPlayerLayoutId:QX(J.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:QX(J.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; eDE=function(J,R){return zDg(J,R)}; wyB=function(J,R){R=zDg(J,R);if(!R)return null;var N;R.FG=(N=QX(J.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:N.adBreakRemainingLengthSeconds;return R}; zDg=function(J,R){var N,C=(N=QX(J.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:N.current;if(!C)return null;N=H7E(J,R);return{SK:$jg(J,R),adPlacementConfig:QX(J.clientMetadata,"metadata_type_ad_placement_config"),xL:N,contentCpn:QX(J.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:QX(J.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:QX(J.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:QX(J.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,FG:void 0,y5:C,Rh:J.layoutId,videoLengthSeconds:QX(J.clientMetadata,"metadata_type_video_length_seconds")}}; gU=function(J,R,N,C,X,u,f,H,k){g.l.call(this);this.Z=J;this.S=R;this.U=N;this.V=C;this.K=X;this.J=u;this.FM=f;this.JN=H;this.Y8=k;this.dw=!0}; cNE=function(J,R,N){return mFY(J.K.get(),R.contentCpn,R.Rh,function(C){return VVB(J.J.get(),C.slotId,N,R.adPlacementConfig,R.Rh,ZN(J.FM.get(),C))})}; UD=function(J,R,N,C,X,u,f,H){g.l.call(this);this.J=J;this.K=R;this.V=N;this.JN=C;this.Z=X;this.Y8=u;this.UB=f;this.qN=H}; pc=function(J){g.l.call(this);this.K=J}; AK=function(J,R,N,C){J.K().N7(R,C);N=N();J=J.K();J.P3.OR("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",R,C,N);R=g.K(N);for(N=R.next();!N.done;N=R.next())a:{C=J;N=N.value;C.P3.Qc("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",N);C.P3.Qc("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",N);try{var X=C.K;if(g.MK(N.slotId))throw new x("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(gi(X,N))throw new x("Duplicate registration for slot.",{slotId:N.slotId,slotEntryTriggerType:N.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!X.bu.P$.has(N.slotType))throw new x("No fulfillment adapter factory registered for slot of type: "+N.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!X.bu.ES.has(N.slotType))throw new x("No SlotAdapterFactory registered for slot of type: "+N.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");Rj(X,"TRIGGER_CATEGORY_SLOT_ENTRY",N.slotEntryTrigger?[N.slotEntryTrigger]:[]);Rj(X,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", N.slotFulfillmentTriggers);Rj(X,"TRIGGER_CATEGORY_SLOT_EXPIRATION",N.slotExpirationTriggers);var u=C.K,f=N.slotType+"_"+N.slotPhysicalPosition,H=b6(u,f);if(gi(u,N))throw new x("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");H.set(N.slotId,new X02(N));u.K.set(f,H)}catch(RQ){RQ instanceof x&&RQ.Ak?(C.P3.v9("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",RQ.Ak,N),d0(RQ,N,void 0,void 0,RQ.Xt)):(C.P3.v9("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", N),d0(RQ,N));break a}gi(C.K,N).S=!0;try{var k=C.K,v=gi(k,N),W=N.slotEntryTrigger,S=k.bu.g4.get(W.triggerType);S&&(S.Rx("TRIGGER_CATEGORY_SLOT_ENTRY",W,N,null),v.ma.set(W.triggerId,S));for(var L=g.K(N.slotFulfillmentTriggers),I=L.next();!I.done;I=L.next()){var F=I.value,a=k.bu.g4.get(F.triggerType);a&&(a.Rx("TRIGGER_CATEGORY_SLOT_FULFILLMENT",F,N,null),v.nC.set(F.triggerId,a))}for(var n=g.K(N.slotExpirationTriggers),B=n.next();!B.done;B=n.next()){var Z=B.value,A=k.bu.g4.get(Z.triggerType);A&&(A.Rx("TRIGGER_CATEGORY_SLOT_EXPIRATION", Z,N,null),v.W.set(Z.triggerId,A))}var V=k.bu.P$.get(N.slotType).get().build(k.V,N);v.D=V;var p=k.bu.ES.get(N.slotType).get().build(k.U,N);p.init();v.J=p}catch(RQ){RQ instanceof x&&RQ.Ak?(C.P3.v9("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",RQ.Ak,N),d0(RQ,N,void 0,void 0,RQ.Xt)):(C.P3.v9("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",N),d0(RQ,N));jG(C,N,!0);break a}C.P3.Qc("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",N);C.K.Xe(N);for(var b=g.K(C.J),w=b.next();!w.done;w= b.next())w.value.Xe(N);l6(C,N)}}; ld=function(J,R,N,C,X){g.l.call(this);var u=this;this.J=J;this.V=R;this.TA=N;this.context=X;this.K=new Map;C.get().addListener(this);this.addOnDisposeCallback(function(){C.QO()||C.get().removeListener(u)})}; wCk=function(J,R){var N=0x8000000000000;var C=0;for(var X=g.K(R.slotFulfillmentTriggers),u=X.next();!u.done;u=X.next())u=u.value,u instanceof uT?(N=Math.min(N,u.K.start),C=Math.max(C,u.K.end)):d0("Found unexpected fulfillment trigger for throttled slot.",R,null,{fulfillmentTrigger:u});C=new j_(N,C);N="throttledadcuerange:"+R.slotId;J.K.set(N,R);J.TA.get().addCueRange(N,C.start,C.end,!1,J);U4(J.context.JN.get())&&(R=C.start,C=C.end,X={},J.context.Wa.NO("tcrr",(X.cid=N,X.sm=R,X.em=C,X)))}; P3=function(){g.l.apply(this,arguments);this.dw=!0;this.Z9=new Map;this.K=new Map}; za=function(J,R){J=g.K(J.Z9.values());for(var N=J.next();!N.done;N=J.next())if(N.value.layoutId===R)return!0;return!1}; eN=function(J,R){J=g.K(J.K.values());for(var N=J.next();!N.done;N=J.next()){N=g.K(N.value);for(var C=N.next();!C.done;C=N.next())if(C=C.value,C.layoutId===R)return C}d0("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.MK(R)),layoutId:R})}; hD7=function(){this.K=new Map}; yNn=function(J,R){this.callback=J;this.slot=R}; wU=function(){}; G5B=function(J,R,N){this.callback=J;this.slot=R;this.UB=N}; bX2=function(J,R,N){this.callback=J;this.slot=R;this.UB=N;this.J=!1;this.K=0}; tsg=function(J,R,N){this.callback=J;this.slot=R;this.UB=N}; c3=function(J){this.UB=J}; ha=function(J){g.l.call(this);this.v2=J;this.Zo=new Map}; yf=function(J,R){for(var N=[],C=g.K(J.Zo.values()),X=C.next();!X.done;X=C.next()){X=X.value;var u=X.trigger;u instanceof KD&&u.triggeringLayoutId===R&&N.push(X)}N.length?h3(J.v2(),N):d0("Survey is submitted but no registered triggers can be activated.")}; Ga=function(J,R,N){ha.call(this,J);var C=this;this.JN=N;R.get().addListener(this);this.addOnDisposeCallback(function(){R.QO()||R.get().removeListener(C)})}; bd=function(J){g.l.call(this);this.K=J;this.dw=!0;this.Zo=new Map;this.U=new Set;this.V=new Set;this.Z=new Set;this.S=new Set;this.J=new Set}; ta=function(J){g.l.call(this);this.K=J;this.Zo=new Map}; xQ=function(J,R){for(var N=[],C=g.K(J.Zo.values()),X=C.next();!X.done;X=C.next())X=X.value,X.trigger.K===R.layoutId&&N.push(X);N.length&&h3(J.K(),N)}; JS=function(J,R,N){g.l.call(this);var C=this;this.K=J;this.context=N;this.Zo=new Map;R.get().addListener(this);this.addOnDisposeCallback(function(){R.QO()||R.get().removeListener(C)})}; oA=function(J,R,N,C,X){g.l.call(this);var u=this;this.J=J;this.TA=R;this.UB=N;this.Y8=C;this.context=X;this.dw=!0;this.Zo=new Map;this.K=new Set;N.get().addListener(this);this.addOnDisposeCallback(function(){N.QO()||N.get().removeListener(u)})}; xmE=function(J,R,N,C,X,u,f,H,k,v){if(ls(J.Y8.get(),1).clientPlaybackNonce!==k)throw new x("Cannot register CueRange-based trigger for different content CPN",{trigger:N});J.Zo.set(N.triggerId,{Oi:new Qq(R,N,C,X),cueRangeId:u});J.TA.get().addCueRange(u,f,H,v,J);U4(J.context.JN.get())&&(k={},J.context.Wa.NO("crr",(k.ca=R,k.tt=N.triggerType,k.st=C.slotType,k.lt=X==null?void 0:X.layoutType,k.cid=u,k.sm=f,k.em=H,k)))}; JR7=function(J,R){J=g.K(J.Zo.entries());for(var N=J.next();!N.done;N=J.next()){var C=g.K(N.value);N=C.next().value;C=C.next().value;if(R===C.cueRangeId)return N}return""}; RA=function(J,R){g.l.call(this);var N=this;this.Z=J;this.J=new Map;this.V=new Map;this.K=null;R.get().addListener(this);this.addOnDisposeCallback(function(){R.QO()||R.get().removeListener(N)}); var C;this.K=((C=R.get().JF)==null?void 0:C.slotId)||null}; oJn=function(J,R){var N=[];J=g.K(J.values());for(var C=J.next();!C.done;C=J.next())C=C.value,C.slot.slotId===R&&N.push(C);return N}; NN=function(J){g.l.call(this);this.K=J;this.dw=!0;this.Zo=new Map}; L_=function(J,R,N){R=R.layoutId;for(var C=[],X=g.K(J.Zo.values()),u=X.next();!u.done;u=X.next())if(u=u.value,u.trigger instanceof Hz){var f;if(f=u.trigger.layoutId===R){f=N;var H=tgB.get(u.category);f=H?H===f:!1}f&&C.push(u)}C.length&&h3(J.K(),C)}; Cf=function(J){g.l.call(this);this.K=J;this.dw=!0;this.Zo=new Map}; Xt=function(J,R,N,C,X){g.l.call(this);var u=this;this.U=J;this.XV=R;this.UB=N;this.AN=C;this.K=null;this.dw=!0;this.Zo=new Map;this.V=new Map;R.get().addListener(this);this.addOnDisposeCallback(function(){R.QO()||R.get().removeListener(u)}); X.get().addListener(this);this.addOnDisposeCallback(function(){X.QO()||X.get().removeListener(u)})}; NXB=function(J){J.K&&(J.J&&(J.J.stop(),J.J.start()),RdE(J,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; RdE=function(J,R){for(var N=[],C=g.K(J.Zo.values()),X=C.next();!X.done;X=C.next())X=X.value,X.trigger.triggerType===R&&N.push(X);N.length>0&&h3(J.U(),N)}; un=function(J,R,N,C,X){X=X===void 0?!0:X;for(var u=[],f=g.K(J.Zo.values()),H=f.next();!H.done;H=f.next()){H=H.value;var k=H.trigger;if(k.triggerType===R){if(k instanceof CD||k instanceof Xb||k instanceof fD){if(X&&k.breakDurationMs!==N)continue;if(!X&&k.breakDurationMs===N)continue;if(C.has(k.triggerId))continue}u.push(H)}}u.length>0&&h3(J.U(),u)}; C5Y=function(J){J=J.adPlacementRenderer.config.adPlacementConfig;if(!J.prefetchModeConfig||!J.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;J=Number(J.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(J)||J<=0?0:Math.floor(Math.random()*J)}; XeE=function(J){J=J.adPlacementRenderer.config.adPlacementConfig;if(J.prefetchModeConfig&&J.prefetchModeConfig.cacheFetchRefreshDurationMs&&(J=Number(J.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(J)||J<=0)))return J}; ff=function(J){J.K=null;J.Zo.clear();J.V.clear();J.J&&J.J.stop();J.Z&&J.Z.stop()}; Tw=function(J){g.l.call(this);this.V=J;this.dw=!0;this.Zo=new Map;this.K=new Map;this.J=new Map}; iVE=function(J,R){var N=[];if(R=J.K.get(R.layoutId)){R=g.K(R);for(var C=R.next();!C.done;C=R.next())(C=J.J.get(C.value.triggerId))&&N.push(C)}return N}; $X=function(J){g.l.call(this);this.K=J;this.Zo=new Map}; uNE=function(J,R){for(var N=[],C=g.K(J.Zo.values()),X=C.next();!X.done;X=C.next())X=X.value,X.trigger instanceof ho&&X.trigger.slotId===R&&N.push(X);N.length>=1&&h3(J.K(),N)}; f_8=function(J,R){var N={slotId:Yi(R,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],DM:"surface",clientMetadata:new a$([])},C=Object,X=C.assign;R=vT(R,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",N.slotId);R={layoutId:R,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",w3:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:"surface", clientMetadata:new a$([]),AE:wG7(!1,N.slotId,N.slotType,N.slotPhysicalPosition,N.DM,N.slotEntryTrigger,N.slotFulfillmentTriggers,N.slotExpirationTriggers,R,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return X.call(C,{},J,{Wm:!0,slot:N,layout:R})}; Ggg=function(J,R,N,C){var X=J.kind;C=C?!1:!J.hideCueRangeMarker;switch(X){case "AD_PLACEMENT_KIND_START":return C={Kh:new j_(-0x8000000000000,-0x8000000000000),Dv:C},N!=null&&(C.nm=new j_(-0x8000000000000,-0x8000000000000)),C;case "AD_PLACEMENT_KIND_END":return C={Kh:new j_(0x7ffffffffffff,0x8000000000000),Dv:C},N!=null&&(C.nm=new j_(Math.max(0,R-N),0x8000000000000)),C;case "AD_PLACEMENT_KIND_MILLISECONDS":X=J.adTimeOffset;X.offsetStartMilliseconds||d0("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); X.offsetEndMilliseconds||d0("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");J=Number(X.offsetStartMilliseconds);X=Number(X.offsetEndMilliseconds);X===-1&&(X=R);if(Number.isNaN(J)||Number.isNaN(X)||J>X)return new x("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:J,offsetEndMs:X},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",X===R&&J-500<=X);C={Kh:new j_(J,X),Dv:C};if(N!=null){J=Math.max(0,J-N);if(J===X)return C;C.nm=new j_(J,X)}return C; default:return new x("AdPlacementKind not supported in convertToRange.",{kind:X,adPlacementConfig:J})}}; lRQ=function(J){var R=J.startSecs*1E3;return new j_(R,R+J.Ly*1E3)}; TXg=function(J){if(!J||!J.adPlacements&&!J.adSlots)return!1;for(var R=g.K(J.adPlacements||[]),N=R.next();!N.done;N=R.next())if(N=N.value)if(N=N.adPlacementRenderer,N!=null&&(N.config&&N.config.adPlacementConfig&&N.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;J=g.K(J.adSlots||[]);for(R=J.next();!R.done;R=J.next()){var C=N=void 0;if(((N=g.z(R.value,Ja))==null?void 0:(C=N.adSlotMetadata)==null?void 0:C.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; HA=function(J){this.JN=J;this.J=new Map;this.K=new Map;this.V=new Map}; Yi=function(J,R){if(kX(J.JN.get())){var N=J.J.get(R)||0;N++;J.J.set(R,N);return R+"_"+N}return g.jg(16)}; vT=function(J,R,N){if(kX(J.JN.get())){var C=J.K.get(R)||0;C++;J.K.set(R,C);return N+"_"+R+"_"+C}return g.jg(16)}; Kc=function(J,R){if(kX(J.JN.get())){var N=J.V.get(R)||0;N++;J.V.set(R,N);return R+"_"+N}return g.jg(16)}; $D7=function(J){var R=[new AR(J.Rh),new mp(J.y5),new We(J.adPlacementConfig),new l5(J.videoLengthSeconds),new Nb(J.FG)];J.instreamAdPlayerOverlayRenderer&&R.push(new KV(J.instreamAdPlayerOverlayRenderer));J.playerOverlayLayoutRenderer&&R.push(new a8(J.playerOverlayLayoutRenderer));J.rz&&R.push(new FN(J.rz));return R}; HV8=function(J,R,N,C,X,u){J=N.inPlayerLayoutId?N.inPlayerLayoutId:vT(u,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",J);var f,H,k=N.instreamAdPlayerOverlayRenderer?(f=N.instreamAdPlayerOverlayRenderer)==null?void 0:f.adLayoutLoggingData:(H=N.playerOverlayLayoutRenderer)==null?void 0:H.adLayoutLoggingData;f={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",DM:R};return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",w3:new Map,layoutExitNormalTriggers:[new Rn(function(v){return Kc(u, v)},N.Rh)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:R,clientMetadata:C,AE:X(f),adLayoutLoggingData:k}}; vA=function(J,R){var N=this;this.J=J;this.JN=R;this.K=function(C){return Kc(N.J.get(),C)}}; VVB=function(J,R,N,C,X,u){N=new a$([new Qa(N),new We(C)]);R=vT(J.J.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",R);C={layoutId:R,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",DM:"core"};return{layoutId:R,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",w3:new Map,layoutExitNormalTriggers:[new Rn(function(f){return Kc(J.J.get(),f)},X)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:"core",clientMetadata:N,AE:u(C),adLayoutLoggingData:void 0}}; v3=function(J,R,N,C,X){var u=$D7(C);return HV8(R,N,C,new a$(u),X,J.J.get())}; khB=function(J,R,N,C,X){var u=$D7(C);u.push(new kJ(C.SK));u.push(new ve(C.xL));return HV8(R,N,C,new a$(u),X,J.J.get())}; Aa=function(J,R,N,C,X,u,f,H,k,v){R=vT(J.J.get(),N,R);var W={layoutId:R,layoutType:N,DM:"core"},S=new Map;f&&S.set("impression",f);f=[new Te(J.K,X,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];v&&f.push(new on(J.K,v,["normal"]));return{layoutId:R,layoutType:N,w3:S,layoutExitNormalTriggers:f,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:"core",clientMetadata:new a$([C,new We(u),new AR(X)]),AE:H(W),adLayoutLoggingData:k}}; YQ=function(J,R,N,C,X,u,f,H,k){R=vT(J.J.get(),N,R);var v={layoutId:R,layoutType:N,DM:"core"},W=[new Te(J.K,X,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];k&&W.push(new on(J.K,k,["normal"]));return{layoutId:R,layoutType:N,w3:new Map,layoutExitNormalTriggers:W,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:"core",clientMetadata:new a$([C,new We(u),new AR(X)]),AE:f(v),adLayoutLoggingData:H}}; Qf=function(J,R,N){var C=[];C.push(new $x(J.K,N));R&&C.push(R);return C}; aL=function(J,R,N,C,X,u,f){var H={layoutId:R,layoutType:N,DM:"core"};return{layoutId:R,layoutType:N,w3:new Map,layoutExitNormalTriggers:f,layoutExitSkipTriggers:[new bN(J.K,R)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:"core",clientMetadata:new a$([new fV(C),new We(X)]),AE:u(H),adLayoutLoggingData:C.adLayoutLoggingData}}; Ta=function(J,R,N,C,X,u,f,H){var k={layoutId:R,layoutType:u,DM:"core"};return{layoutId:R,layoutType:u,w3:new Map,layoutExitNormalTriggers:[new Rn(J.K,N)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:"core",clientMetadata:new a$([new We(C)].concat(g.Q(f))),AE:X(k),adLayoutLoggingData:H}}; DU=function(J,R,N,C){if(J.JN.get().CL(R.kind==="AD_PLACEMENT_KIND_START"))if(N===void 0)d0("Expected SSAP layout ID in renderer",void 0,void 0,{caller:C});else return N}; LVB=function(J,R,N,C,X,u,f,H,k,v,W,S,L){J=nc(J,R,N,X,u,f,H,k,S,DU(J,N,C.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),L);R=J.tW;N=new YJ(J.WD);C=J.layoutExitSkipTriggers;v>0&&(R.push(N),R.push(new I8(v)),C=[]);R.push(new LV(W));return{lB:{layoutId:J.layoutId,layoutType:J.layoutType,w3:J.w3,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:J.DM,clientMetadata:new a$(R),AE:J.AE,adLayoutLoggingData:J.adLayoutLoggingData}, CX:C,SR:J.layoutExitMuteTriggers,Ue:J.layoutExitUserInputSubmittedTriggers,Zk:J.xv,eD:J.eD}}; MsQ=function(J,R,N,C,X,u,f,H,k,v){R=nc(J,R,N,C,u,new Map,f,function(W){return H(W,k)},void 0,DU(J,N,X.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); J=new KD(J.K,R.WD);N=new YJ(R.WD);v=new LV(v);return{lB:{layoutId:R.layoutId,layoutType:R.layoutType,w3:R.w3,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:R.DM,clientMetadata:new a$([].concat(g.Q(R.tW),[N,v])),AE:R.AE,adLayoutLoggingData:R.adLayoutLoggingData},CX:R.layoutExitSkipTriggers,SR:R.layoutExitMuteTriggers,Ue:[].concat(g.Q(R.layoutExitUserInputSubmittedTriggers),[J]),Zk:R.xv,eD:R.eD}}; nc=function(J,R,N,C,X,u,f,H,k,v,W){R=v!=null?v:vT(J.J.get(),"LAYOUT_TYPE_MEDIA_BREAK",R);v={layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",DM:"adapter"};H=H(R);var S=QX(H.clientMetadata,"metadata_type_fulfilled_layout");S||d0("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var L=S?S.layoutId:"";N=[new We(N),new CQ(C),new u6(X)];S&&N.push(new rX(S.layoutType));W&&N.push(new hR(W));return{layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", w3:u,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new Wz(J.K,L)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:"adapter",tW:N,AE:f(v),adLayoutLoggingData:k,eD:H,WD:L}}; rM7=function(J,R,N,C,X,u,f,H,k,v,W){J=vJQ(J,R,"core",N,C,X,u,f,H,k,v,void 0,W);return{layoutId:J.layoutId,layoutType:J.layoutType,w3:J.w3,layoutExitNormalTriggers:J.layoutExitNormalTriggers,layoutExitSkipTriggers:J.layoutExitSkipTriggers,layoutExitMuteTriggers:J.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:J.layoutExitUserInputSubmittedTriggers,xv:J.xv,DM:J.DM,clientMetadata:new a$(J.HI),AE:J.AE,adLayoutLoggingData:J.adLayoutLoggingData}}; qbQ=function(J,R,N,C,X,u,f,H,k,v,W,S,L){R=vJQ(J,R,"adapter",N,C,X,u,f,H,k,W,S,L);C=R.layoutExitSkipTriggers;X=R.HI;N.adPodSkipTarget&&N.adPodSkipTarget>0&&(X.push(v),X.push(new I8(N.adPodSkipTarget)),C=[]);X.push(new LV(H.adPodIndex));N.isCritical&&(C=[new on(J.K,R.layoutId,["error"])].concat(g.Q(C)));return{lB:{layoutId:R.layoutId,layoutType:R.layoutType,w3:R.w3,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:R.DM,clientMetadata:new a$(X), AE:R.AE,adLayoutLoggingData:R.adLayoutLoggingData},CX:C,SR:R.layoutExitMuteTriggers,Ue:R.layoutExitUserInputSubmittedTriggers,Zk:R.xv}}; vJQ=function(J,R,N,C,X,u,f,H,k,v,W,S,L){var I={layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA",DM:N};X=[new We(X),new SU(k),new Eh(C.externalVideoId),new MD(H),new u6({impressionCommands:C.impressionCommands,abandonCommands:C.onAbandonCommands,completeCommands:C.completeCommands,progressCommands:C.adVideoProgressCommands}),new Pe(u),new Va({current:null}),new l5(f)];(u=C.playerOverlay.instreamAdPlayerOverlayRenderer)&&X.push(new KV(u));(f=C.playerOverlay.playerOverlayLayoutRenderer)&&X.push(new a8(f)); S&&X.push(new zh(S));(S=C.playerUnderlay)&&X.push(new Qa(S));H=Yi(J.J.get(),"SLOT_TYPE_IN_PLAYER");S=(S=u?u.elementId:f==null?void 0:f.layoutId)?S:vT(J.J.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",H);X.push(new YJ(S));X.push(new jU(H));X.push(new hR(k.adPodIndex));C.adNextParams&&X.push(new i5(C.adNextParams));C.shrunkenPlayerBytesConfig&&X.push(new sh(C.shrunkenPlayerBytesConfig));C.clickthroughEndpoint&&X.push(new u5(C.clickthroughEndpoint));C.legacyInfoCardVastExtension&&X.push(new Xj(C.legacyInfoCardVastExtension)); C.sodarExtensionData&&X.push(new eU(C.sodarExtensionData));W&&X.push(new R$(W));X.push(new HM(PT(C.pings)));k=z_(C.pings);if(L){a:{L=g.K(L);for(W=L.next();!W.done;W=L.next())if(W=W.value,W.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(u=g.z(W.fulfillmentContent.fulfilledLayout,eH))&&(u=g.z(u.renderingContent,Pz))&&u.associatedPlayerBytesLayoutId===R){L=W;break a}L=void 0}L&&X.push(new nV(L))}return{layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA",w3:k,layoutExitNormalTriggers:[new Hz(J.K,R)],layoutExitSkipTriggers:C.skipOffsetMilliseconds? [new Wz(J.K,S)]:[],layoutExitMuteTriggers:[new Wz(J.K,S)],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:N,HI:X,AE:v(I),adLayoutLoggingData:C.adLayoutLoggingData}}; nMf=function(J,R,N,C,X,u,f,H,k){C.every(function(W){return Ej(W,[],["LAYOUT_TYPE_MEDIA"])})||d0("Unexpect subLayout type for DAI composite layout"); R=vT(J.J.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",R);var v={layoutId:R,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",DM:"core"};return{layoutId:R,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",w3:new Map,layoutExitNormalTriggers:[new Nf(J.K)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],xv:[],DM:"core",clientMetadata:new a$([new wX(N),new ce(H),new Uh(C),new We(X),new tR(u),new ya({}),new vM(k)]),AE:f(v)}}; EMg=function(J){return J!=null}; WA=function(J,R,N){var C=this;this.J=J;this.V=R;this.JN=N;this.K=function(X){return Kc(C.J.get(),X)}}; py2=function(J,R,N,C,X,u,f){if(!N.prefetchModeConfig)return new x("AdPlacementConfig for Live Prefetch is missing prefetch_config");N=N.prefetchModeConfig;C*=1E3;var H=[];if(!N.breakLengthMs)return new x("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var k=g.K(N.breakLengthMs),v=k.next();!v.done;v=k.next())if(v=v.value,Number(v)>0){var W=C+Number(N.startTimeOffsetMs),S=W+Number(N.cacheFetchSmearingDurationMs);v={Kh:new j_(S,S+Number(v)),Dv:!1,nm:new j_(Math.floor(W+Math.random()* Number(N.cacheFetchSmearingDurationMs)),S),cueProcessedMs:C?C:W};W=[];W.push(new I$({}));S=[];S.push(new vz(J.K));S.push(new vaE(J.K));f&&W.push(new ya({}));H.push(oL(J,R,X,v,u,W,S))}return H}; oL=function(J,R,N,C,X,u,f){u=u===void 0?[]:u;f=f===void 0?[]:f;var H=Yi(J.J.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),k=[];f=g.K(f);for(var v=f.next();!v.done;v=f.next())k.push(v.value);C.nm&&C.nm.start!==C.Kh.start&&k.push(new uT(J.K,N,new j_(C.nm.start,C.Kh.start),!1));k.push(new uT(J.K,N,new j_(C.Kh.start,C.Kh.end),C.Dv));C={getAdBreakUrl:R.getAdBreakUrl,Cj:C.Kh.start,Q6:C.Kh.end,cueProcessedMs:C.cueProcessedMs};R=new Fb(J.K,H);u=[new J3(C)].concat(g.Q(u));return{slotId:H,slotType:"SLOT_TYPE_AD_BREAK_REQUEST", slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:k,slotExpirationTriggers:[new kx(J.K,N),new LD(J.K,H),new In(J.K,H)],DM:"core",clientMetadata:new a$(u),adSlotLoggingData:X}}; Shn=function(J,R,N){var C=[];N=g.K(N);for(var X=N.next();!X.done;X=N.next())C.push(Wp8(J,R,X.value));return C}; Wp8=function(J,R,N){return N.triggeringSlotId!=null&&N.triggeringSlotId===J?N.clone(R):N}; fwE=function(J,R,N,C,X){return LpE(J,R,N,C,X)}; IR7=function(J,R,N,C){var X=Yi(J.J.get(),"SLOT_TYPE_IN_PLAYER");return LpE(J,X,R,N,C)}; LpE=function(J,R,N,C,X){var u=new Je(J.K,N),f=[new SH(J.K,R)];J=[new LD(J.K,R),new kx(J.K,C)];return{slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:u,slotFulfillmentTriggers:f,slotExpirationTriggers:J,DM:"core",clientMetadata:new a$([new xJ(X({slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DM:"core",slotEntryTrigger:u,slotFulfillmentTriggers:f,slotExpirationTriggers:J},N))]),adSlotLoggingData:void 0}}; ANQ=function(J,R,N,C,X,u){var f=Yi(J.J.get(),"SLOT_TYPE_PLAYER_BYTES"),H=Yi(J.J.get(),"SLOT_TYPE_IN_PLAYER"),k=vT(J.J.get(),"LAYOUT_TYPE_SURVEY",H);C=Sq(J,R,N,C);var v=[new SH(J.K,f)];N=[new LD(J.K,f),new kx(J.K,N),new bN(J.K,k)];if(C instanceof x)return C;H=u({slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,DM:"core",slotEntryTrigger:C,slotFulfillmentTriggers:v,slotExpirationTriggers:N},{slotId:H,layoutId:k});u=H.XCa;H=H.fz;return[{slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:B3(J,R,f,C),slotFulfillmentTriggers:OD(J,R,f,v),slotExpirationTriggers:N,DM:"core",clientMetadata:new a$([new xJ(u),new WM(ZU(R)),new LQ({f2:J.f2(R)})]),adSlotLoggingData:X},H]}; ZU=function(J){return J.kind==="AD_PLACEMENT_KIND_START"}; jbE=function(J,R,N,C,X){X=X?X:Yi(J.J.get(),"SLOT_TYPE_IN_PLAYER");N=new Je(J.K,N);var u=[new SH(J.K,X)];J=[new kx(J.K,R),new LD(J.K,X)];return{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:u,slotExpirationTriggers:J,DM:"core",clientMetadata:new a$([new xJ(C({slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DM:"core",slotEntryTrigger:N,slotFulfillmentTriggers:u,slotExpirationTriggers:J}))])}}; mFY=function(J,R,N,C){var X=Yi(J.J.get(),"SLOT_TYPE_PLAYER_UNDERLAY");N=new Je(J.K,N);var u=[new SH(J.K,X)];J=[new kx(J.K,R),new LD(J.K,X)];return{slotId:X,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:u,slotExpirationTriggers:J,DM:"core",clientMetadata:new a$([new xJ(C({slotId:X,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,DM:"core",slotEntryTrigger:N,slotFulfillmentTriggers:u,slotExpirationTriggers:J}))])}}; BB2=function(J,R,N,C,X,u,f){var H=Yi(J.J.get(),"SLOT_TYPE_IN_PLAYER"),k=vT(J.J.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",H);C=I_f(J,C,u,f,k);if(C instanceof x)return C;f=[new SH(J.K,H)];X=[new kx(J.K,u),new SH(J.K,X),new Mf(J.K,X)];N=ZN(N,{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DM:"core",slotEntryTrigger:C,slotFulfillmentTriggers:f,slotExpirationTriggers:X});J=J.V.get();u={layoutId:k,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",DM:"core"};R={layoutId:k,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", w3:new Map,layoutExitNormalTriggers:[new K$E(J.K,k,R.durationMs)],layoutExitSkipTriggers:[new Q_7(J.K,k,R.durationMs)],xv:[new a4E(J.K,k)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],DM:"core",clientMetadata:new a$([new i6(R)]),AE:N(u)};return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DM:"core",slotEntryTrigger:C,slotFulfillmentTriggers:f,slotExpirationTriggers:X,clientMetadata:new a$([new xJ(R)])}}; WVY=function(J,R,N,C,X,u){R=Sq(J,R,N,C);if(R instanceof x)return R;var f=R instanceof uT?new F$8(J.K,N,R.K):null;C=Yi(J.J.get(),"SLOT_TYPE_IN_PLAYER");var H=[new SH(J.K,C)];J=[new kx(J.K,N),new LD(J.K,C)];u=u({slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DM:"core",slotEntryTrigger:R,slotFulfillmentTriggers:H,slotExpirationTriggers:J},f);return u instanceof KQ?new x(u):{slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:H,slotExpirationTriggers:J, DM:"core",clientMetadata:new a$([new xJ(u)]),adSlotLoggingData:X}}; k5g=function(J,R,N,C){var X=Yi(J.J.get(),"SLOT_TYPE_IN_PLAYER"),u=new GG(J.K,R),f=[new EY(J.K,X)];J=[new kx(J.K,R),new LD(J.K,X)];return{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:u,slotFulfillmentTriggers:f,slotExpirationTriggers:J,DM:"core",clientMetadata:new a$([new xJ(C({slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DM:"core",slotEntryTrigger:u,slotFulfillmentTriggers:f,slotExpirationTriggers:J}))]),adSlotLoggingData:N}}; WMg=function(J,R,N,C){var X=Yi(J.J.get(),"SLOT_TYPE_IN_PLAYER");N=new Je(J.K,N);var u=[new SH(J.K,X)],f=[new LD(J.K,X),new kx(J.K,R)];u={slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DM:"core",slotEntryTrigger:N,slotFulfillmentTriggers:u,slotExpirationTriggers:f};return{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:[new SH(J.K,X)],slotExpirationTriggers:[new kx(J.K,R),new LD(J.K,X)],DM:"core",clientMetadata:new a$([new xJ(C(u))])}}; HnY=function(J,R,N,C,X){var u=Yi(J.J.get(),"SLOT_TYPE_IN_PLAYER");N=new xB(J.K,C,N);C=[new SH(J.K,u)];J=[new kx(J.K,R)];return{slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:C,slotExpirationTriggers:J,DM:"core",clientMetadata:new a$([new xJ(X({slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,DM:"core",slotEntryTrigger:N,slotFulfillmentTriggers:C,slotExpirationTriggers:J}))])}}; XUB=function(J,R,N,C,X,u){var f=Yi(J.J.get(),R);return Lf(J,f,R,new Je(J.K,C),[new kx(J.K,N),new LD(J.K,f),new on(J.K,C,["error"])],X,u)}; C3Y=function(J,R,N,C,X,u,f){var H=Yi(J.J.get(),R);return Lf(J,H,R,new on(J.K,X,["normal"]),[new kx(J.K,N),new LD(J.K,H),new on(J.K,C,["error"])],u,f)}; JME=function(J,R,N,C,X){var u=Yi(J.J.get(),R);return Lf(J,u,R,new GG(J.K,N),[new kx(J.K,N),new LD(J.K,u)],C,X)}; fRE=function(J,R,N,C,X){N=N?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var u=Yi(J.J.get(),N);R=new GG(J.K,R);var f=[new SH(J.K,u)];J=[new LD(J.K,u)];return{slotId:u,slotType:N,slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:f,slotExpirationTriggers:J,DM:"core",clientMetadata:new a$([new xJ(X({slotId:u,slotType:N,slotPhysicalPosition:1,DM:"core",slotEntryTrigger:R,slotFulfillmentTriggers:f,slotExpirationTriggers:J}))]),adSlotLoggingData:C}}; MVB=function(J,R,N,C){var X=Yi(J.J.get(),"SLOT_TYPE_PLAYER_BYTES"),u=new iT(J.K),f=[new EY(J.K,X)];J=[new kx(J.K,R)];return{slotId:X,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:u,slotFulfillmentTriggers:f,slotExpirationTriggers:J,DM:"core",clientMetadata:new a$([new xJ(C({slotId:X,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,DM:"core",slotEntryTrigger:u,slotFulfillmentTriggers:f,slotExpirationTriggers:J})),new ya({})]),adSlotLoggingData:N}}; B1E=function(J,R){return g3n(J.JN.get())?new on(J.K,R,["normal","error","skipped"]):new on(J.K,R,["normal"])}; qGn=function(J,R,N,C,X){R=B1E(J,R);J=sD(J,R,N);X=X({slotId:J.slotId,slotType:J.slotType,slotPhysicalPosition:J.slotPhysicalPosition,slotEntryTrigger:J.slotEntryTrigger,slotFulfillmentTriggers:J.slotFulfillmentTriggers,slotExpirationTriggers:J.slotExpirationTriggers,DM:J.DM});return X instanceof x?X:{eg:Object.assign({},J,{clientMetadata:new a$([new xJ(X.layout)]),adSlotLoggingData:C}),ME:X.ME}}; AM8=function(J,R,N,C,X,u,f){N=OXE(J,R,N,C);if(N instanceof x)return N;f=f({slotId:N.slotId,slotType:N.slotType,slotPhysicalPosition:N.slotPhysicalPosition,slotEntryTrigger:N.slotEntryTrigger,slotFulfillmentTriggers:N.slotFulfillmentTriggers,slotExpirationTriggers:N.slotExpirationTriggers,DM:N.DM});if(f instanceof x)return f;C=[new WM(ZU(R)),new xJ(f.layout),new LQ({f2:J.f2(R)})];u&&C.push(new fQ({}));return{eg:{slotId:N.slotId,slotType:N.slotType,slotPhysicalPosition:N.slotPhysicalPosition,slotEntryTrigger:B3(J, R,N.slotId,N.slotEntryTrigger),slotFulfillmentTriggers:OD(J,R,N.slotId,N.slotFulfillmentTriggers),slotExpirationTriggers:N.slotExpirationTriggers,DM:N.DM,clientMetadata:new a$(C),adSlotLoggingData:X},ME:f.ME}}; B3=function(J,R,N,C){return J.JN.get().CL(ZU(R))?new ho(J.K,N):C}; OD=function(J,R,N,C){return J.JN.get().CL(ZU(R))?[new EY(J.K,N)]:C}; sD=function(J,R,N){var C=Yi(J.J.get(),"SLOT_TYPE_PLAYER_BYTES"),X=[new SH(J.K,C)];J=[new LD(J.K,C),new kx(J.K,N)];return{slotId:C,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:X,slotExpirationTriggers:J,DM:"core"}}; OXE=function(J,R,N,C){R=Sq(J,R,N,C);return R instanceof x?R:sD(J,R,N)}; $m7=function(J,R,N,C,X,u){var f=Yi(J.J.get(),"SLOT_TYPE_FORECASTING");R=Sq(J,R,N,C);if(R instanceof x)return R;C=[new SH(J.K,f)];J=[new LD(J.K,f),new kx(J.K,N)];return{slotId:f,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:C,slotExpirationTriggers:J,DM:"core",clientMetadata:new a$([new xJ(u({slotId:f,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,DM:"core",slotEntryTrigger:R,slotFulfillmentTriggers:C,slotExpirationTriggers:J}))]),adSlotLoggingData:X}}; FpB=function(J,R,N,C,X){var u=!R.hideCueRangeMarker;switch(R.kind){case "AD_PLACEMENT_KIND_START":return new GG(J.K,N);case "AD_PLACEMENT_KIND_MILLISECONDS":return J=Ggg(R,C),J instanceof x?J:X(J.Kh,u);case "AD_PLACEMENT_KIND_END":return new to(J.K,N,u);default:return new x("Cannot construct entry trigger",{kind:R.kind})}}; I_f=function(J,R,N,C,X){return FpB(J,R,N,C,function(u,f){return new I4B(J.K,N,u,f,X)})}; Sq=function(J,R,N,C){return FpB(J,R,N,C,function(X,u){return new uT(J.K,N,X,u)})}; Lf=function(J,R,N,C,X,u,f){J=[new EY(J.K,R)];return{slotId:R,slotType:N,slotPhysicalPosition:1,slotEntryTrigger:C,slotFulfillmentTriggers:J,slotExpirationTriggers:X,DM:"core",clientMetadata:new a$([new xJ(f({slotId:R,slotType:N,slotPhysicalPosition:1,DM:"core",slotEntryTrigger:C,slotFulfillmentTriggers:J,slotExpirationTriggers:X}))]),adSlotLoggingData:u}}; IA=function(J,R){g.l.call(this);this.JN=J;this.K=R;this.eventCount=0}; Ft=function(J,R,N,C){IA.call(this,J,R);this.JN=J;this.Y8=N;this.context=C}; Eu=function(){this.K=new Map}; aA=function(J,R){var N=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=J;this.result=R.result;this.error=R.error;R.promise&&R.promise.then(function(C){MN(N,C)},function(C){Kf(N,C)})}; DP=function(J){if(Qy(J)){if(J instanceof aA)return J;if(nf(J))return new aA("wait",{promise:J})}return new aA("done",{result:J})}; BA=function(J){return new aA("fail",{error:J})}; Ou=function(J){try{return DP(J())}catch(R){return BA(R)}}; dS=function(J,R){var N=new aA("wait",{});J.onSuccess.push(function(C){try{var X=R(C);MN(N,X)}catch(u){Kf(N,u)}}); J.onFailure.push(function(C){Kf(N,C)}); ZP(J);return N}; qN=function(J,R){var N=new aA("wait",{});J.onSuccess.push(function(C){MN(N,C)}); J.onFailure.push(function(C){try{var X=R(C);MN(N,X)}catch(u){Kf(N,u)}}); ZP(J);return N}; MN=function(J,R){if(Qy(R)){if(nf(R)){R.then(function(N){MN(J,N)},function(N){Kf(J,N)}); return}if(R instanceof aA){dS(R,function(N){MN(J,N)}); qN(R,function(N){Kf(J,N)}); return}}J.currentState="done";J.result=R;ZP(J)}; Kf=function(J,R){J.currentState="fail";J.error=R;ZP(J)}; ZP=function(J){if(J.currentState==="done"){var R=J.onSuccess;J.onSuccess=[];J.onFailure=[];R=g.K(R);for(var N=R.next();!N.done;N=R.next())N=N.value,N(J.result)}else if(J.currentState==="fail")for(R=J.onFailure,J.onSuccess=[],J.onFailure=[],R=g.K(R),N=R.next();!N.done;N=R.next())N=N.value,N(J.error)}; MUP=function(J){return function(){return EJg(J.apply(this,g.sf.apply(0,arguments)))}}; EJg=function(J){return Ou(function(){return AS(J,J.next())})}; AS=function(J,R){return R.done?DP(R.value):qN(dS(R.value.Ux,function(N){return AS(J,J.next(N))}),function(N){return AS(J,J.throw(N))})}; rS=function(J){var R=J.hours||0;var N=J.minutes||0,C=J.seconds||0;R=C+N*60+R*3600+(J.days||0)*86400+(J.weeks||0)*604800+(J.months||0)*2629800+(J.years||0)*31557600;R<=0?R={hours:0,minutes:0,seconds:0}:(J=R,R=Math.floor(J/3600),J%=3600,N=Math.floor(J/60),C=Math.floor(J%60),R={hours:R,minutes:N,seconds:C});var X=R.hours===void 0?0:R.hours;N=R.minutes===void 0?0:R.minutes;J=R.seconds===void 0?0:R.seconds;C=X>0;R=[];if(C){X=(new Intl.NumberFormat("en-u-nu-latn")).format(X);var u=["fr"],f="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(" "); X="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(YX)?X.replace(",","\u00a0"):u.includes(YX)?X.replace(",","\u202f"):f.includes(YX)?X.replace(",","."):X;R.push(X)}C=C===void 0?!1:C;N=(["af","be","lt"].includes(YX)||C)&&N<10?Kpk().format(N):(new Intl.NumberFormat("en-u-nu-latn")).format(N);R.push(N);N=Kpk().format(J);R.push(N);N=":";"da fi id si sr sr-Latn".split(" ").includes(YX)&&(N=".");return R.join(N)}; Kpk=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; a_E=function(J,R){var N,C;J=((N=J.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(C=N.videoAuthorizationToken)==null?void 0:C.credentialTransferTokens)||[];for(N=0;NR;J=N}else J=!1;return J}; pen=function(J){J=J.split("");Gw.Az(J,29);Gw.s9(J,3);Gw.Az(J,43);Gw.Az(J,11);Gw.s9(J,3);Gw.Az(J,3);Gw.Az(J,34);return J.join("")}; g.bn=function(J,R){return J.tN+"timedtext_video?ref=player&v="+R.videoId}; g.l_g=function(J){var R=this;this.videoData=J;J={};this.K=(J.c1a=function(){var N=[];if(g.hS.isInitialized()){var C="";R.videoData&&R.videoData.Pi&&(C=R.videoData.Pi+("&r1b="+R.videoData.clientPlaybackNonce));var X={};C=(X.atr_challenge=C,X);F8("bg_v",void 0,"player_att");(C=UDE(C))?(F8("bg_s",void 0,"player_att"),N.push("r1a="+C)):(F8("bg_e",void 0,"player_att"),N.push("r1c=2"))}else F8("bg_e",void 0,"player_att"),window.trayride||window.botguard?N.push("r1c=1"):N.push("r1c=4");N.push("r1d="+g.hS.getState()); return N.join("&")},J.c6a=function(N){return"r6a="+(Number(N.c)^mM())},J.c6b=function(N){return"r6b="+(Number(N.c)^Number(g.iL("CATSTAT",0)))},J); this.videoData&&this.videoData.Pi?this.Uk=WR(this.videoData.Pi):this.Uk={}}; g.P58=function(J){if(J.videoData&&J.videoData.Pi){for(var R=[J.videoData.Pi],N=g.K(Object.keys(J.K)),C=N.next();!C.done;C=N.next())C=C.value,J.Uk[C]&&J.K[C]&&(C=J.K[C](J.Uk))&&R.push(C);return R.join("&")}return null}; g.tS=function(J,R){gJ7(J,{QlB:g.di(R.experiments,"bg_vm_reinit_threshold"),cspNonce:R.cspNonce})}; zdn=function(){var J=XMLHttpRequest.prototype.fetch;return!!J&&J.length===3}; xX=function(J){J=J===void 0?2592E3:J;if(J>0&&!(M4B()>(0,g.g9)()-J*1E3))return 0;J=g.wJ("yt-player-quality");if(typeof J==="string"){if(J=g.o6[J],J>0)return J}else if(J instanceof Object)return J.quality;return 0}; JO=function(){var J=g.wJ("yt-player-proxima-pref");return J==null?null:J}; edB=function(){var J=g.wJ("yt-player-quality");if(J instanceof Object&&J.quality&&J.previousQuality){if(J.quality>J.previousQuality)return 1;if(J.quality0&&H[0]?f.OD(H[0]):f.OD("mediaelement");if(bVP[k]){var v=bVP[k];break a}}}catch(W){}v="AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}C.embeddedPlayerContext=u.call(X,{},J,{autoplayBrowserPolicy:v,autoplayIntended:R.AL||R.Pa||R.mutedAutoplay,autoplayStatus:R.AL||R.Pa||R.mutedAutoplay?N!==1&&N!==2&&N!==0?"AUTOPLAY_STATUS_UNAVAILABLE":R.fF?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"})}}; ojf=function(J,R){aw(J,2,R.T5,iU,3);aw(J,3,R.Ac,xDg,3);Mm(J,4,R.onesieUstreamerConfig);Mm(J,9,R.ra);aw(J,10,R.IC,uU,3);aw(J,15,R.reloadPlaybackParams,J3k,3)}; NiB=function(J,R){aw(J,1,R.formatId,fP,3);F2(J,2,R.startTimeMs);F2(J,3,R.durationMs);F2(J,4,R.v4);F2(J,5,R.KJ);aw(J,9,R.Q6a,RYf,3);aw(J,11,R.KY3,Tj,1);aw(J,12,R.MX,Tj,1)}; C6n=function(J,R){KX(J,1,R.videoId);F2(J,2,R.lmt)}; RYf=function(J,R){if(R.K9)for(var N=0;N>31));F2(J,16,R.mpO);F2(J,17,R.detailedNetworkType);F2(J,18,R.Kt);F2(J,19,R.wO);F2(J,21,R.SQf);F2(J,23,R.Hr);F2(J,28,R.HW);F2(J,29,R.zXk);F2(J,34,R.visibility);N=R.playbackRate;if(N!==void 0){var C=new ArrayBuffer(4);(new Float32Array(C))[0]=N;N=(new Uint32Array(C))[0];if(N!==void 0)for(Iw(J,285),LX(J,4),C=0;C<4;)J.view.setUint8(J.pos,N&255),N>>=8,J.pos+=1,C+=1}F2(J,36,R.ek); aw(J,38,R.mediaCapabilities,uj8,3);F2(J,39,R.byC);F2(J,40,R.XE);F2(J,44,R.playerState);Eb(J,46,R.Lt);F2(J,48,R.dY);F2(J,50,R.Bn);F2(J,51,R.tV);F2(J,54,R.jp);Eb(J,56,R.fMM);F2(J,57,R.dO);Eb(J,58,R.Z_);F2(J,59,R.Y5);F2(J,60,R.UK);Eb(J,61,R.isPrefetch);F2(J,62,R.V$);Mm(J,63,R.sabrLicenseConstraint);F2(J,64,R.QBn);F2(J,66,R.UpC);F2(J,67,R.rpC);F2(J,68,R.Dp7);KX(J,69,R.audioTrackId);Eb(J,71,R.Wn);aw(J,72,R.VX8,iQE,1)}; uj8=function(J,R){if(R.videoFormatCapabilities)for(var N=0;N>31));KX(J,2,R.message)}; LEY=function(J,R){F2(J,1,R.clientState);aw(J,2,R.yp7,WEP,1)}; vjf=function(J,R){Mm(J,1,R.faN);aw(J,2,R.oi3,Sjn,3);aw(J,3,R.coldStartInfo,LEY,3)}; ku8=function(J,R){F2(J,1,R.type);Mm(J,2,R.value)}; HQf=function(J,R){KX(J,1,R.hl);KX(J,12,R.deviceMake);KX(J,13,R.deviceModel);F2(J,16,R.clientName);KX(J,17,R.clientVersion);KX(J,18,R.osName);KX(J,19,R.osVersion)}; INB=function(J,R){KX(J,1,R.name);KX(J,2,R.value)}; FEg=function(J,R){KX(J,1,R.url);if(R.It)for(var N=0;N1&&(this.U=J[1]==="2")}; SB=function(J,R,N,C,X){this.J=J;this.K=R;this.V=N;this.reason=C;this.fC=X===void 0?0:X}; IJ=function(J,R){return J.J===R.J&&J.K===R.K&&J.V===R.V&&J.reason===R.reason&&(!LP||J.fC===R.fC)}; g.FT=function(J,R,N,C){return new SB(g.o6[J]||0,g.o6[R]||0,N,C)}; E6=function(J){if(LP&&J.fC)return!1;var R=g.o6.auto;return J.J===R&&J.K===R}; KP=function(J){return MC[J.K||J.J]||"auto"}; XTE=function(J,R){R=g.o6[R];return J.J<=R&&(!J.K||J.K>=R)}; aJ=function(J){return"["+J.J+"-"+J.K+", override: "+(J.V+", reason: "+J.reason+"]")}; QM=function(J,R,N){this.videoInfos=J;this.K=R;this.audioTracks=[];if(this.K){J=new Set;N==null||N({ainfolen:this.K.length});R=g.K(this.K);for(var C=R.next();!C.done;C=R.next())if(C=C.value,!C.Do||J.has(C.Do.id)){var X=void 0,u=void 0,f=void 0;(f=N)==null||f({atkerr:!!C.Do,itag:C.itag,xtag:C.K,lang:((X=C.Do)==null?void 0:X.name)||"",langid:((u=C.Do)==null?void 0:u.id)||""})}else X=new g.WV(C.id,C.Do),J.add(C.Do.id),this.audioTracks.push(X);N==null||N({atklen:this.audioTracks.length})}}; nP=function(){g.l.apply(this,arguments);this.K=null}; TNQ=function(J,R,N,C,X,u,f){if(J.K)return J.K;var H={},k=new Set,v={};if(D9(C)){for(var W in C.K)C.K.hasOwnProperty(W)&&(J=C.K[W],v[J.info.sB]=[J.info]);return v}W=iwB(R,C,H);u&&X({aftsrt:s6(W)});for(var S={},L=g.K(Object.keys(W)),I=L.next();!I.done;I=L.next()){I=I.value;for(var F=g.K(W[I]),a=F.next();!a.done;a=F.next()){a=a.value;var n=a.itag,B=void 0,Z=I+"_"+(((B=a.video)==null?void 0:B.fps)||0);S.hasOwnProperty(Z)?S[Z]===!0?v[I].push(a):H[n]=S[Z]:(B=BV(R,a,N,C.isLive,k),B!==!0?(f.add(I),H[n]=B, B==="disablevp9hfr"&&(S[Z]="disablevp9hfr")):(v[I]=v[I]||[],v[I].push(a),S[Z]=!0))}}u&&X({bfflt:s6(v)});for(var A in v)v.hasOwnProperty(A)&&(C=A,v[C]&&v[C][0].Ky()&&(v[C]=v[C],v[C]=u72(R,v[C],H),v[C]=fpk(v[C],H)));u&&X(H);R=g.K(k.values());for(C=R.next();!C.done;C=R.next())(C=N.J.get(C.value))&&--C.fI;u&&X({aftflt:s6(v)});J.K=g.Df(v,function(V){return!!V.length}); return J.K}; HwE=function(J,R,N,C,X,u,f,H){H=H===void 0?!1:H;if(R.H1&&f&&f.length>1&&!(R.Y5>0||R.X)){for(var k=R.J||!!X,v=k&&R.Xn?u:void 0,W=iwB(R,C),S=[],L=[],I={},F=0;F0&&L&&X&&(W=[f,N],n=X.concat(L).filter(function(B){return B})); if(n.length&&!R.Z_){d$(n,W);if(k){k=[];R=g.K(n);for(C=R.next();!C.done;C=R.next())k.push(C.value.itag);u({hbdfmt:k.join(".")})}return eQ(new QM(n,J,v))}n=MJP(R);n=g.eE(n,H);if(!n){if(S[f])return u=S[f],d$(u),eQ(new QM(u,J,v));k&&u({novideo:1});return zO()}R.AL&&(n==="1"||n==="1h")&&S[N]&&(f=qC(S[n]),W=qC(S[N]),W>f?n=N:W===f&&K4k(S[N])&&(n=N));n==="9"&&S.h&&qC(S.h)>qC(S["9"])&&(n="h");R.VK&&C.isLive&&n==="("&&S.H&&qC(S["("])<1440&&(n="H");k&&u({vfmly:AO(n)});R=S[n];if(!R.length)return k&&u({novfmly:AO(n)}), zO();d$(R);return eQ(new QM(R,J,v))}; viY=function(J,R){var N=!(!J.m&&!J.M),C=!(!J.mac3&&!J.MAC3),X=!(!J.meac3&&!J.MEAC3);J=!(!J.i&&!J.I);R.j2=J;return N||C||X||J}; K4k=function(J){J=g.K(J);for(var R=J.next();!R.done;R=J.next())if(R=R.value,R.itag&&ap8.has(R.itag))return!0;return!1}; AO=function(J){switch(J){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return J}}; s6=function(J){var R=[],N;for(N in J)if(J.hasOwnProperty(N)){var C=N;R.push(AO(C));C=g.K(J[C]);for(var X=C.next();!X.done;X=C.next())R.push(X.value.itag)}return R.join(".")}; k_k=function(J,R,N,C,X,u){var f={},H={};g.nK(R,function(k,v){k=k.filter(function(W){var S=W.itag;if(!W.xi)return H[S]="noenc",!1;if(u.TW&&W.sB==="(h"&&u.R1)return H[S]="lichdr",!1;if(W.sB==="("||W.sB==="(h"){if(J.Z&&N&&N.flavor==="widevine"){var L=W.mimeType+"; experimental=allowed";(L=!!W.xi[N.flavor]&&!!N.K[L])||(H[S]=W.xi[N.flavor]?"unspt":"noflv");return L}if(!YK(J,r$.CRYPTOBLOCKFORMAT)&&!J.PC||J.ma)return H[S]=J.ma?"disvp":"vpsub",!1}return N&&W.xi[N.flavor]&&N.K[W.mimeType]?!0:(H[S]=N?W.xi[N.flavor]? "unspt":"noflv":"nosys",!1)}); k.length&&(f[v]=k)}); C&&Object.entries(H).length&&X(H);return f}; fpk=function(J,R){var N=jm(J,function(C,X){return X.video.fps>32?Math.min(C,X.video.width):C},Infinity); N32||C.video.widthJ.S)return"max"+J.S;if(J.oB&&R.sB==="h"&&R.video&&R.video.K>1080)return"blkhigh264";if(R.sB==="(h"&&!N.S)return"enchdr";if((C===void 0?0:C)&&HS(R)&&!J.l3)return"blk51live";if((R.sB==="MAC3"||R.sB==="mac3")&&!J.Z)return"blkac3";if((R.sB==="MEAC3"||R.sB==="meac3")&&!J.U)return"blkeac3";if((R.sB==="M"||R.sB==="m")&&!J.dn)return"blkaac51";if((R.sB=== "so"||R.sB==="sa")&&!J.ma)return"blkamb";if(!J.TW&&R.xi&&R.xi.fairplay&&(R.sB==="("||R.sB==="(h"||R.sB==="A"||R.sB==="MEAC3"))return"cbc";if((R.sB==="i"||R.sB==="I")&&!J.YA)return"blkiamf";if(R.itag==="774"&&!J.VO)return"blkouh";var u,f;if(J.eQ&&(R.sB==="1"||R.sB==="1h")&&((u=R.video)==null?0:u.K)&&((f=R.video)==null?void 0:f.K)>J.eQ)return"av1cap";if((C=N.J.get(R.sB))&&C.fI>0)return X.add(R.sB),"byerr";var H;if((H=R.video)==null?0:H.fps>32){if(!N.VO&&!YK(N,r$.FRAMERATE))return"capHfr";if(J.Xk&&R.video.K>= 4320)return"blk8khfr";if(uM(R)){if(J.m7&&R.xi&&R.video.K>=1440)return"disablevp9hfr";if(J.wN&&g.Jf("appletv5")&&R.xi)return"atv5sfr"}}if(J.fC&&R.fC>J.fC)return"ratecap";J=Qjg(N,R);return J!==!0?J:!0}; d$=function(J,R){R=R===void 0?[]:R;g.ik(J,function(N,C){var X=C.fC-N.fC;if(!N.Ky()||!C.Ky())return X;var u=C.video.height*C.video.width-N.video.height*N.video.width;!u&&R&&R.length>0&&(N=R.indexOf(N.sB)+1,C=R.indexOf(C.sB)+1,u=N===0||C===0?C||-1:N-C);u||(u=X);return u})}; g.jB=function(J,R){this.J=J;this.Z=R===void 0?!1:R;this.V=this.path=this.scheme="";this.K={};this.url=""}; VM=function(J){mW(J);return J.V}; g$=function(J){return J.J?J.J.startsWith("local"):J.scheme==="local"}; ni2=function(J){mW(J);return g.B7(J.K,function(R){return R!==null})}; U6=function(J){mW(J);var R=decodeURIComponent(J.get("mn")||"").split(",");return J.path==="/videoplayback"&&R.length>1&&!!R[1]}; pP=function(J,R){R=R===void 0?!1:R;mW(J);if(J.path!=="/videoplayback"){var N=J.clone();N.set("playerfallback","1");return N}var C=J.Yi();N=new g.Er(C);var X=J.get("fvip"),u=decodeURIComponent(J.get("mn")||"").split(",");if(X&&u&&u.length>1&&u[1])return C=N.K,J=C.replace(/^[^.]*/,""),g.KB(N,(C.indexOf("rr")===0?"rr":"r")+X+"---"+u[1]+J),N=new g.jB(N.toString()),N.set("fallback_count","1"),N;if(R)return N=J.clone(),N.set("fallback_count","1"),N;X=N.K.match("\\.a1\\.googlevideo\\.com$");N.K.match("\\.googlevideo\\.com$")? (g.KB(N,"redirector.googlevideo.com"),C=N.toString()):N.K.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.KB(N,"www.youtube.com"),C=N.toString()):(N=DdB(C),Ij(N)&&(C=N));N=new g.jB(C);N.set("cmo=pf","1");X&&N.set("cmo=td","a1.googlevideo.com");return N}; mW=function(J){if(J.J){if(!Ij(J.J)&&!J.J.startsWith("local"))throw new g.C3("Untrusted URL",J.J);var R=g.Or(J.J);J.scheme=R.U;J.V=R.K+(R.V!=null?":"+R.V:"");var N=R.J;if(N.startsWith("/videoplayback"))J.path="/videoplayback",N=N.slice(14);else if(N.startsWith("/initplayback"))J.path="/initplayback",N=N.slice(13);else if(N.startsWith("/api/manifest")){var C=N.indexOf("/",12),X=N.indexOf("/",C+1);C>0&&X>0?(J.path=N.slice(0,X),N=N.slice(X+1)):(J.path=N,N="")}else J.path=N,N="";C=J.K;J.K=D5n(N);Object.assign(J.K, sjB(R.Z.toString()));Object.assign(J.K,C);J.K.file==="index.m3u8"&&(delete J.K.file,J.path+="/file/index.m3u8");J.J="";J.url="";J.Z&&(R="nn"[+J.Z],mW(J),N=J.K[R]||null)&&(N=BNE[0](N),J.set(R,N))}}; OwY=function(J){mW(J);var R=J.scheme+(J.scheme?"://":"//")+J.V+J.path;if(ni2(J)){var N=[];g.nK(J.K,function(C,X){C!==null&&N.push(X+"="+C)}); R+="?"+N.join("&")}return R}; D5n=function(J){J=J.split("/");var R=0;J[0]||R++;for(var N={};R0?ZwE(R,C.slice(0,X),C.slice(X+1)):C&&(R[C]="")}return R}; ZwE=function(J,R,N){if(R==="cmo"){var C;(C=N.indexOf("="))>=0?(R="cmo="+N.slice(0,C),N=N.slice(C+1)):(C=N.indexOf("%3D"))>=0&&(R="cmo="+N.slice(0,C),N=N.slice(C+3))}J[R]=N}; lU=function(J){var R=g.z(J,d5f)||J.signatureCipher;J={UF:!1,VG:"",Fd:"",s:""};if(!R)return J;R=WR(R);J.UF=!0;J.VG=R.url;J.Fd=R.sp;J.s=R.s;return J}; PV=function(J,R,N,C,X,u,f,H,k){this.SQ=J;this.startTime=R;this.duration=N;this.ingestionTime=C;this.sourceURL=X;this.Kb=k;this.endTime=R+N;this.K=f||0;this.range=u||null;this.pending=H||!1;this.Kb=k||null}; g.zj=function(){this.segments=[];this.K=null;this.J=!0;this.V=""}; q_E=function(J,R){if(R>J.yR())J.segments=[];else{var N=zJ(J.segments,function(C){return C.SQ>=R},J); N>0&&J.segments.splice(0,N)}}; eB=function(J,R,N,C,X){X=X===void 0?!1:X;this.data=J;this.offset=R;this.size=N;this.type=C;this.K=(this.J=X)?0:8;this.dataOffset=this.offset+this.K}; w$=function(J){var R=J.data.getUint8(J.offset+J.K);J.K+=1;return R}; cV=function(J){var R=J.data.getUint16(J.offset+J.K);J.K+=2;return R}; hO=function(J){var R=J.data.getInt32(J.offset+J.K);J.K+=4;return R}; yM=function(J){var R=J.data.getUint32(J.offset+J.K);J.K+=4;return R}; Gj=function(J){var R=J.data;var N=J.offset+J.K;R=R.getUint32(N)*4294967296+R.getUint32(N+4);J.K+=8;return R}; bU=function(J,R){R=R===void 0?NaN:R;if(isNaN(R))var N=J.size;else for(N=J.K;N1?Math.ceil(X*R):Math.floor(X*R))}J.skip(1);N=w$(J)<<16|cV(J);if(N&256){C=N&1;X=N&4;var u=N&512,f=N&1024,H=N&2048;N=yM(J);C&&J.skip(4);X&&J.skip(4);C=(u?4:0)+(f?4:0)+(H?4:0);for(X=0;X1?Math.ceil(f*R):Math.floor(f*R)),J.skip(C)}}}; iG=function(J){J=new DataView(J.buffer,J.byteOffset,J.byteLength);return(J=g.Cq(J,0,1836476516))?g.Xs(J):NaN}; P18=function(J){var R=g.Cq(J,0,1937011556);if(!R)return null;R=uG(J,R.dataOffset+8,1635148593)||uG(J,R.dataOffset+8,1635135537);if(!R)return null;var N=uG(J,R.dataOffset+78,1936995172),C=uG(J,R.dataOffset+78,1937126244);if(!C)return null;R=null;if(N)switch(N.skip(4),w$(N)){default:R=0;break;case 1:R=2;break;case 2:R=1;break;case 3:R=255}var X=N=null,u=null;if(C=uG(J,C.dataOffset,1886547818)){var f=uG(J,C.dataOffset,1886546020),H=uG(J,C.dataOffset,2037673328);if(!H&&(H=uG(J,C.dataOffset,1836279920), !H))return null;f&&(f.skip(4),N=hO(f)/65536,u=hO(f)/65536,X=hO(f)/65536);J=AKY(H);J=new DataView(J.buffer,J.byteOffset+8,J.byteLength-8);return new pTB(R,N,u,X,J)}return null}; uG=function(J,R,N){for(;fq(J,R);){var C=Tt(J,R);if(C.type===N)return C;R+=C.size}return null}; g.Cq=function(J,R,N){for(;fq(J,R);){var C=Tt(J,R);if(C.type===N)return C;R=$6(C.type)?R+8:R+C.size}return null}; g.Hn=function(J){if(J.data.getUint8(J.dataOffset)){var R=J.data;J=J.dataOffset+4;R=R.getUint32(J)*4294967296+R.getUint32(J+4)}else R=J.data.getUint32(J.dataOffset+4);return R}; Tt=function(J,R){var N=J.getUint32(R),C=J.getUint32(R+4);return new eB(J,R,N,C)}; g.Xs=function(J){var R=J.data.getUint8(J.dataOffset)?20:12;return J.data.getUint32(J.dataOffset+R)}; z12=function(J){J=new eB(J.data,J.offset,J.size,J.type,J.J);var R=w$(J);J.skip(7);var N=yM(J);if(R===0){R=yM(J);var C=yM(J)}else R=Gj(J),C=Gj(J);J.skip(2);for(var X=cV(J),u=[],f=[],H=0;H122)return!1}return!0}; $6=function(J){return J===1701082227||J===1836019558||J===1836019574||J===1835297121||J===1835626086||J===1937007212||J===1953653094||J===1953653099||J===1836475768}; e1Q=function(J){J.skip(4);return{sl8:bU(J,0),value:bU(J,0),y6:yM(J),d8N:yM(J),a_O:yM(J),id:yM(J),Ku:bU(J),offset:J.offset}}; g.wT8=function(J){var R=uG(J,0,1701671783);if(!R)return null;var N=e1Q(R),C=N.sl8;N=NB(N.Ku);if(J=uG(J,R.offset+R.size,1701671783))if(J=e1Q(J),J=NB(J.Ku),N&&J){R=g.K(Object.keys(J));for(var X=R.next();!X.done;X=R.next())X=X.value,N[X]=J[X]}return N?new o2(N,C):null}; k6=function(J,R){for(var N=uG(J,0,R);N;){var C=N;C.type=1936419184;C.data.setUint32(C.offset+4,1936419184);N=uG(J,N.offset+N.size,R)}}; g.vn=function(J,R){for(var N=0,C=[];fq(J,N);){var X=Tt(J,N);X.type===R&&C.push(X);N=$6(X.type)?N+8:N+X.size}return C}; cKg=function(J,R){var N=g.Cq(J,0,1937011556),C=g.Cq(J,0,1953654136);if(!N||!C||J.getUint32(N.offset+12)>=2)return null;var X=new DataView(R.buffer,R.byteOffset,R.length),u=g.Cq(X,0,1937011556);if(!u)return null;R=X.getUint32(u.dataOffset+8);C=X.getUint32(u.dataOffset+12);if(C!==1701733217&&C!==1701733238)return null;C=new Y_Y(J.byteLength+R);tO(C,J,0,N.offset+12);C.data.setInt32(C.offset,2);C.offset+=4;tO(C,J,N.offset+16,N.size-16);tO(C,X,X.byteOffset+u.dataOffset+8,R);tO(C,J,N.offset+N.size,J.byteLength- (N.offset+N.size));N=g.K([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(X=N.next();!X.done;X=N.next())X=g.Cq(J,0,X.value),C.data.setUint32(X.offset,X.size+R);J=g.Cq(C.data,0,1953654136);C.data.setUint32(J.offset+16,2);return C.data}; h18=function(J){var R=g.Cq(J,0,1937011556);if(!R)return null;var N=J.getUint32(R.dataOffset+12);if(N!==1701733217&&N!==1701733238)return null;R=uG(J,R.offset+24+(N===1701733217?28:78),1936289382);if(!R)return null;N=uG(J,R.offset+8,1935894637);if(!N||J.getUint32(N.offset+12)!==1667392371)return null;R=uG(J,R.offset+8,1935894633);if(!R)return null;R=uG(J,R.offset+8,1952804451);if(!R)return null;N=new Uint8Array(16);for(var C=0;C<16;C++)N[C]=J.getInt8(R.offset+16+C);return N}; Wn=function(J,R){this.K=J;this.pos=0;this.start=R||0}; S3=function(J){return J.pos>=J.K.byteLength}; MB=function(J,R,N){var C=new Wn(N);if(!Lq(C,J))return!1;C=I2(C);if(!Fs(C,R))return!1;for(J=0;R;)R>>>=8,J++;R=C.start+C.pos;var X=Ez(C,!0);C=J+(C.start+C.pos-R)+X;C=C>9?yKQ(C-9,8):yKQ(C-2,1);J=R-J;N.setUint8(J++,236);for(R=0;RN;X++)N=N*256+DC(J),C*=128;return R?N-C:N}; a2=function(J){var R=Ez(J,!0);J.pos+=R}; tJB=function(J){if(!Fs(J,440786851,!0))return null;var R=J.pos;Ez(J,!1);var N=Ez(J,!0)+J.pos-R;J.pos=R+N;if(!Fs(J,408125543,!1))return null;Ez(J,!0);if(!Fs(J,357149030,!0))return null;var C=J.pos;Ez(J,!1);var X=Ez(J,!0)+J.pos-C;J.pos=C+X;if(!Fs(J,374648427,!0))return null;var u=J.pos;Ez(J,!1);var f=Ez(J,!0)+J.pos-u,H=new Uint8Array(N+12+X+f),k=new DataView(H.buffer);H.set(new Uint8Array(J.K.buffer,J.K.byteOffset+R,N));k.setUint32(N,408125543);k.setUint32(N+4,33554431);k.setUint32(N+8,4294967295); H.set(new Uint8Array(J.K.buffer,J.K.byteOffset+C,X),N+12);H.set(new Uint8Array(J.K.buffer,J.K.byteOffset+u,f),N+12+X);return H}; sz=function(J){var R=J.pos;J.pos=0;var N=1E6;Lq(J,[408125543,357149030,2807729])&&(N=Kq(J));J.pos=R;return N}; x5Y=function(J,R){var N=J.pos;J.pos=0;if(J.K.getUint8(J.pos)!==160&&!Bn(J)||!Fs(J,160))return J.pos=N,NaN;Ez(J,!0);var C=J.pos;if(!Fs(J,161))return J.pos=N,NaN;Ez(J,!0);DC(J);var X=DC(J)<<8|DC(J);J.pos=C;if(!Fs(J,155))return J.pos=N,NaN;C=Kq(J);J.pos=N;return(X+C)*R/1E9}; Bn=function(J){if(!JYE(J)||!Fs(J,524531317))return!1;Ez(J,!0);return!0}; JYE=function(J){if(J.E2()){if(!Fs(J,408125543))return!1;Ez(J,!0)}return!0}; Lq=function(J,R){for(var N=0;N0){var C=sjB(R.substring(N+1));g.nK(C,function(X,u){this.set(u,X)},J); R=R.substring(0,N)}R=D5n(R);g.nK(R,function(X,u){this.set(u,X)},J)}; R92=function(J){var R=J.base.Yi(),N=[];g.nK(J.K,function(X,u){N.push(u+"="+X)}); if(!N.length)return R;var C=N.join("&");J=ni2(J.base)?"&":"?";return R+J+C}; ZC=function(J,R){var N=new g.jB(R);(R=N.get("req_id"))&&J.set("req_id",R);g.nK(J.K,function(C,X){N.set(X,null)}); return N}; NeE=function(){this.Z=this.V=this.K=this.timedOut=this.started=this.U=this.J=0}; dG=function(J){J.U=(0,g.g9)();J.started=0;J.timedOut=0;J.K=0}; CJk=function(J,R){var N=J.started+J.K*4;R&&(N+=J.V);N=Math.max(0,N-3);return Math.pow(1.6,N)}; qB=function(J,R){J[R]||(J[R]=new NeE);return J[R]}; Ax=function(J){this.W=this.D=this.U=this.J=0;this.X=this.S=!1;this.K=J;this.V=J.clone()}; XDP=function(J,R,N){if(g$(J.K))return!1;var C=qB(N,VM(J.K));if(C.timedOut<1&&C.K<1)return!1;C=C.timedOut+C.K;J=Y6(J,R);N=qB(N,VM(J));return N.timedOut+N.K+01?R=R.Ix:(N=qB(N,j3(J,J.O7(R,N),R)),R=Math.max(J.U,N.timedOut)+R.WR*(J.J-J.U)+.25*J.D,R=R>3?1E3*Math.pow(1.6,R-3):0);return R===0?!0:J.W+R<(0,g.g9)()}; iGE=function(J,R,N){J.K.set(R,N);J.V.set(R,N);J.Z&&J.Z.set(R,N)}; uWY=function(J,R,N,C,X){++J.J;R&&++J.U;VM(N.base).startsWith("redirector.")&&(J.K=J.V.clone(),delete J.Z,C.Ea&&delete X[VM(J.K)])}; VH=function(J){return(J.itag||"")+";"+(J.lmt||0)+";"+(J.xtags||"")}; gG=function(J,R,N,C){this.initRange=N;this.indexRange=C;this.K=null;this.V=!1;this.S=0;this.Z=this.J=null;this.info=R;this.resource=new Ax(J)}; Uz=function(J,R){this.start=J;this.end=R;this.length=R-J+1}; pq=function(J){J=J.split("-");var R=Number(J[0]),N=Number(J[1]);if(!isNaN(R)&&!isNaN(N)&&J.length===2&&(J=new Uz(R,N),!isNaN(J.start)&&!isNaN(J.end)&&!isNaN(J.length)&&J.length>0))return J}; lG=function(J,R){return new Uz(J,J+R-1)}; f6B=function(J){return J.end==null?{start:String(J.start)}:{start:String(J.start),end:String(J.end)}}; Pn=function(J){if(!J)return new Uz(0,0);var R=Number(J.start);J=Number(J.end);if(!isNaN(R)&&!isNaN(J)&&(R=new Uz(R,J),R.length>0))return R}; zt=function(J,R,N,C,X,u,f,H,k,v,W,S){C=C===void 0?"":C;this.type=J;this.K=R;this.range=N;this.source=C;this.nT=W;this.clipId=S===void 0?"":S;this.D=[];this.U="";this.SQ=-1;this.X=this.W=0;this.U=C;this.SQ=X>=0?X:-1;this.startTime=u||0;this.duration=f||0;this.J=H||0;this.V=k>=0?k:this.range?this.range.length:NaN;this.Z=this.range?this.J+this.V===this.range.length:v===void 0?!!this.V:v;this.range?(this.dN=this.startTime+this.duration*this.J/this.range.length,this.S=this.duration*this.V/this.range.length, this.y0=this.dN+this.S):TeE(this)}; TeE=function(J){J.dN=J.startTime;J.S=J.duration;J.y0=J.dN+J.S}; $E2=function(J,R,N){var C=!(!R||R.K!==J.K||R.type!==J.type||R.SQ!==J.SQ);return N?C&&!!R&&(J.range&&R.range?R.range.end===J.range.end:R.range===J.range)&&R.J+R.V===J.J+J.V:C}; e3=function(J){return J.type===1||J.type===2}; wG=function(J){return J.type===3||J.type===6}; cn=function(J,R){return J.K===R.K?J.range&&R.range?J.range.start+J.J+J.V===R.range.start+R.J:J.SQ===R.SQ?J.J+J.V===R.J:J.SQ+1===R.SQ&&R.J===0&&J.Z:!1}; kif=function(J,R){return J.SQ!==R.SQ&&R.SQ!==J.SQ+1||J.type!==R.type?!1:cn(J,R)?!0:Math.abs(J.dN-R.dN)<=1E-6&&J.SQ===R.SQ?!1:HG2(J,R)}; HG2=function(J,R){return cn(J,R)||Math.abs(J.y0-R.dN)<=1E-6||J.SQ+1===R.SQ&&R.J===0&&J.Z?!0:!1}; hx=function(J){return J.SQ+(J.Z?1:0)}; vPE=function(J){J.length===1||g.rf(J,function(N){return!!N.range}); for(var R=1;R=R.range.start+R.J&&J.range.start+J.J+J.V<=R.range.start+R.J+R.V:J.SQ===R.SQ&&J.J>=R.J&&(J.J+J.V<=R.J+R.V||R.Z)}; My8=function(J,R){return J.K!==R.K?!1:J.type===4&&R.type===3&&J.K.M7()?(J=J.K.a4(J),gh(J,function(N){return My8(N,R)})):J.SQ===R.SQ&&!!R.V&&R.J+R.V>J.J&&R.J+R.V<=J.J+J.V}; Gt=function(J,R){var N=R.SQ;J.U="updateWithSegmentInfo";J.SQ=N;if(J.startTime!==R.startTime||J.duration!==R.duration)J.startTime=R.startTime+J.W,J.duration=R.duration,TeE(J)}; bG=function(J,R){var N=this;this.aB=J;this.Z=this.K=null;this.U=this.A2=NaN;this.O7=this.requestId=null;this.QR={B5a:function(){return N.range}}; this.resource=J[0].K.resource;this.J=R||"";this.aB[0].range&&this.aB[0].V>0&&(WIg(J)?(this.range=vPE(J),this.V=this.range.length):(this.range=this.aB[this.aB.length-1].range,this.V=S4Q(J)))}; tx=function(J){return!e3(J.aB[J.aB.length-1])}; x6=function(J){return J.aB[J.aB.length-1].type===4}; g.JI=function(J,R,N){N=J.O7===null?J.resource.O7(R,N,J.aB[0].type):J.O7;if(J.K){R=N?pP(J.K,R.IW):J.K;var C=new Oz(R);C.get("alr")||C.set("alr","yes");J.J&&oPE(C,J.J)}else/http[s]?:\/\//.test(J.J)?C=new Oz(new g.jB(J.J)):(C=rG(J.resource,N,R),J.J&&oPE(C,J.J));(R=J.range)?C.set("range",R.toString()):J.aB[0].K.jx()&&J.aB.length===1&&J.aB[0].J&&C.set("range",J.aB[0].J+"-");J.requestId&&C.set("req_id",J.requestId);isNaN(J.A2)||C.set("headm",J.A2.toString());isNaN(J.U)||C.set("mffa",J.U+"ms");J.urlParams&& g.nK(J.urlParams,function(X,u){C.set(u,X)}); return C}; KI7=function(J){if(J.range)return J.V;J=J.aB[0];return Math.round(J.S*J.K.info.fC)}; a6f=function(J,R){return Math.max(0,J.aB[0].dN-R)}; o9=function(J,R,N,C,X,u){u=u===void 0?0:u;gG.call(this,J,R,C,void 0);this.U=N;this.FB=u;this.index=X||new g.zj}; QWg=function(J,R,N,C,X){this.SQ=J;this.startSecs=R;this.Ly=N;this.K=C||NaN;this.J=X||NaN}; R9=function(J,R,N){for(;J;J=J.parentNode)if(J.attributes&&(!N||J.nodeName===N)){var C=J.getAttribute(R);if(C)return C}return""}; N8=function(J,R){for(;J;J=J.parentNode){var N=J.getElementsByTagName(R);if(N.length>0)return N[0]}return null}; nPn=function(J){if(!J)return 0;var R=J.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return R?(Number(R[2])|0)*3600+(Number(R[4])|0)*60+(Number(R[6])|0):Number(J)|0}; DE8=function(J){return J.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?J+"Z":J}; C0=function(){this.K=[];this.J=null;this.S=0;this.V=[];this.U=!1;this.D="";this.Z=-1}; sWE=function(J){var R=J.V;J.V=[];return R}; BeB=function(){this.Z=[];this.K=null;this.J={};this.V={}}; q4Y=function(J,R){var N=[];R=Array.from(R.getElementsByTagName("SegmentTimeline"));R=g.K(R);for(var C=R.next();!C.done;C=R.next()){C=C.value;var X=C.parentNode.parentNode,u=null;X.nodeName==="Period"?u=OG8(J):X.nodeName==="AdaptationSet"?(X=X.getAttribute("id")||X.getAttribute("mimetype")||"",u=ZGg(J,X)):X.nodeName==="Representation"&&(X=X.getAttribute("id")||"",u=dEE(J,X));if(u==null)return;u.update(C);g.xd(N,sWE(u))}g.xd(J.Z,N);Z87(J.Z,function(f){return f.startSecs*1E3+f.K})}; AY8=function(J){J.K&&(J.K.K=[]);g.nK(J.J,function(R){R.K=[]}); g.nK(J.V,function(R){R.K=[]})}; OG8=function(J){J.K||(J.K=new C0);return J.K}; ZGg=function(J,R){J.J[R]||(J.J[R]=new C0);return J.J[R]}; dEE=function(J,R){J.V[R]||(J.V[R]=new C0);return J.V[R]}; iB=function(J){var R=J===void 0?{}:J;J=R.FB===void 0?0:R.FB;var N=R.AD===void 0?!1:R.AD;var C=R.YD===void 0?0:R.YD;var X=R.Up===void 0?0:R.Up;var u=R.Q7===void 0?Infinity:R.Q7;var f=R.f1===void 0?0:R.f1;var H=R.SD===void 0?!1:R.SD;R=R.Yw===void 0?!1:R.Yw;g.zj.call(this);this.LX=this.ib=-1;this.j8=J;this.YD=C;this.AD=N;this.Up=X;this.Q7=u;this.f1=f;((this.SD=H)||isFinite(u)&&this.Q7>0)&&N&&XQ&&(this.J=!1,this.V="postLive");this.Yw=R}; uB=function(J,R){return CE(J.segments,function(N){return R-N.SQ})}; f0=function(J,R,N){N=N===void 0?{}:N;o9.call(this,J,R,"",void 0,void 0,N.FB||0);this.index=new iB(N)}; T2=function(J,R,N){gG.call(this,J,R);this.U=N;J=this.index=new g.zj;J.J=!1;J.V="d"}; Y4Q=function(J,R,N){var C=J.index.kX(R),X=J.index.getStartTime(R),u=J.index.getDuration(R);N?u=N=0:N=J.info.fC*u;return new bG([new zt(3,J,void 0,"otfCreateRequestInfoForSegment",R,X,u,0,N)],C)}; rYY=function(J,R){if(!J.index.isLoaded()){var N=[],C=R.Z;R=R.U.split(",").filter(function(W){return W.length>0}); for(var X=0,u=0,f=0,H=/^(\d+)/,k=/r=(\d+)/,v=0;v0&&(R-=J.timestampOffset);var N=kr(J)+R;mEf(J,N);J.timestampOffset=R}; mEf=function(J,R){g.kY(J.info.K.info)||J.info.K.info.nL();J.V=R;if(g.kY(J.info.K.info)){var N=J.qP();J=J.info.K.K;for(var C=NaN,X=NaN,u=0;fq(N,u);){var f=Tt(N,u);isNaN(C)&&(f.type===1936286840?C=f.data.getUint32(f.dataOffset+8):f.type===1836476516&&(C=g.Xs(f)));if(f.type===1952867444){!C&&J&&(C=iG(J));var H=g.Hn(f);isNaN(X)&&(X=Math.round(R*C)-H);var k=f;H+=X;if(k.data.getUint8(k.dataOffset)){var v=k.data;k=k.dataOffset+4;v.setUint32(k,Math.floor(H/4294967296));v.setUint32(k+4,H&4294967295)}else k.data.setUint32(k.dataOffset+ 4,H)}u=$6(f.type)?u+8:u+f.size}return!0}N=new Wn(J.qP());J=J.U?N:new Wn(new DataView(J.info.K.K.buffer));C=sz(J);J=N.pos;N.pos=0;if(Bn(N)&&Fs(N,231))if(X=Ez(N,!0),R=Math.floor(R*1E9/C),Math.ceil(Math.log(R)/Math.log(2)/8)>X)R=!1;else{for(C=X-1;C>=0;C--)N.K.setUint8(N.pos+C,R&255),R>>>=8;N.pos=J;R=!0}else R=!1;return R}; Wf=function(J,R){R=R===void 0?!1:R;var N=vf(J);J=R?0:J.info.S;return N||J}; vf=function(J){g.kY(J.info.K.info)||J.info.K.info.nL();if(J.J&&J.info.type===6)return J.J.FB;if(g.kY(J.info.K.info)){var R=J.qP();var N=0;R=g.vn(R,1936286840);R=g.K(R);for(var C=R.next();!C.done;C=R.next())C=z12(C.value),N+=C.KA[0]/C.y6;N=N||NaN;if(!(N>=0))a:{N=J.qP();R=J.info.K.K;for(var X=C=0,u=0;fq(N,C);){var f=Tt(N,C);if(f.type===1836476516)X=g.Xs(f);else if(f.type===1836019558){!X&&R&&(X=iG(R));if(!X){N=NaN;break a}var H=uG(f.data,f.dataOffset,1953653094),k=H;H=X;var v=uG(k.data,k.dataOffset, 1952868452);k=uG(k.data,k.dataOffset,1953658222);var W=hO(v);hO(v);W&2&&hO(v);v=W&8?hO(v):0;var S=hO(k),L=S&1;W=S&4;var I=S&256,F=S&512,a=S&1024;S&=2048;var n=yM(k);L&&hO(k);W&&hO(k);for(var B=L=0;B2048?"":R.indexOf("https://")===0?R:""}; M8=function(J,R,N){R.match(yY7);return J(R,N).then(function(C){var X=g.h9E(C.xhr);return X?M8(J,X,N):C.xhr})}; n0=function(J,R,N){J=J===void 0?"":J;R=R===void 0?null:R;N=N===void 0?!1:N;g.al.call(this);var C=this;this.sourceUrl=J;this.isLivePlayback=N;this.HC=this.duration=0;this.isPremiere=this.SD=this.Z=this.isLiveHeadPlayable=this.isLive=this.J=!1;this.Q7=this.Up=0;this.isOtf=this.MR=!1;this.l3=(0,g.g9)();this.nC=Infinity;this.K={};this.V=new Map;this.state=this.e8=0;this.timeline=null;this.isManifestless=!1;this.ma=[];this.S=null;this.tN=0;this.U="";this.VO=NaN;this.G7=this.YA=this.timestampOffset=this.D= 0;this.iY=this.H_=NaN;this.kA=0;this.pC=this.W=!1;this.PC=[];this.T7={};this.dn=NaN;this.QR={ZVN:function(H){K0(C,H)}}; var X;this.eQ=(X=R)==null?void 0:X.b3("html5_use_network_error_code_enums");Gig=!!R&&R.b3("html5_modern_vp9_mime_type");var u;a9=!((u=R)==null||!u.b3("html5_enable_flush_during_seek"))&&g.Rc();var f;QO=!((f=R)==null||!f.b3("html5_enable_reset_audio_decoder"))&&g.Rc()}; bGQ=function(J){return g.B7(J.K,function(R){return!!R.info.video&&R.info.video.K>=2160})}; Eig=function(J){return g.B7(J.K,function(R){return!!R.info.video&&R.info.video.isHdr()})}; O6=function(J){return g.B7(J.K,function(R){return!!R.info.xi})}; tyE=function(J){return g.B7(J.K,function(R){return I6(R.info.mimeType)})}; xEf=function(J){return g.B7(J.K,function(R){return R.info.video?R.info.video.projectionType==="EQUIRECTANGULAR":!1})}; JyP=function(J){return g.B7(J.K,function(R){return R.info.video?R.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; oYg=function(J){return g.B7(J.K,function(R){return R.info.video?R.info.video.projectionType==="MESH":!1})}; R0P=function(J){return g.B7(J.K,function(R){return R.info.video?R.info.video.stereoLayout===1:!1})}; Nm2=function(J){return n1g(J.K,function(R){return R.info.video?R.lq():!0})}; D9=function(J){return g.B7(J.K,function(R){return g$(R.resource.K)})}; K0=function(J,R){J.K[R.info.id]=R;J.V.set(VH(WS(R.info,J.MR)),R)}; CM8=function(J,R){return VH({itag:R.itag,lmt:J.MR?0:R.lmt||0,xtags:R.xtags})}; Bf=function(J,R,N){N=N===void 0?0:N;var C=J.mimeType||"",X=J.itag;var u=J.xtags;X=X?X.toString():"";u&&(X+=";"+u);u=X;if(Le(C)){var f=J.width||640;X=J.height||360;var H=J.fps,k=J.qualityLabel,v=J.colorInfo,W=J.projectionType,S;J.stereoLayout&&(S=XSB[J.stereoLayout]);var L=wDP(J)||void 0;if(v==null?0:v.primaries)var I=ieP[v.primaries]||void 0;f=new R6(f,X,H,W,S,void 0,k,L,I);C=Dj(C,f,XS[J.itag||""]);a9&&(C+="; enableflushduringseek=true");QO&&(C+="; enableresetaudiodecoder=true")}var F;if(Sv(C)){var a= J.audioSampleRate;S=J.audioTrack;a=new xP(a?+a:void 0,J.audioChannels,J.spatialAudioType,J.isDrc,J.loudnessDb,J.trackAbsoluteLoudnessLkfs);S&&(I=S.displayName,X=S.id,S=S.audioIsDefault,I&&(F=new g.EV(I,X||"",!!S)))}var n;J.captionTrack&&(k=J.captionTrack,S=k.displayName,I=k.vssId,X=k.languageCode,H=k.kind,k=k.id,S&&I&&X&&(n=new z9B(S,I,X,H,J.xtags,k)));S=Number(J.bitrate)/8;I=Number(J.contentLength);X=Number(J.lastModified);k=J.drmFamilies;H=J.type;N=N&&I?I/N:0;J=Number(J.approxDurationMs);if(R&& k){var B={};k=g.K(k);for(v=k.next();!v.done;v=k.next())(v=sV[v.value])&&(B[v]=R[v])}return new iM(u,C,{audio:a,video:f,Do:F,xi:B,fC:S,j4:N,contentLength:I,lastModified:X,captionTrack:n,streamType:H,approxDurationMs:J})}; OV=function(J,R,N){N=N===void 0?0:N;var C=J.type;var X=J.itag;var u=J.xtags;u&&(X=J.itag+";"+u);if(Le(C)){var f=(J.size||"640x360").split("x");f=new R6(+f[0],+f[1],+J.fps,J.projection_type,+J.stereo_layout,void 0,J.quality_label,J.eotf,J.primaries);C=Dj(C,f,XS[J.itag]);a9&&(C+="; enableflushduringseek=true");QO&&(C+="; enableresetaudiodecoder=true")}var H;if(Sv(C)){var k=new xP(+J.audio_sample_rate||void 0,+J.audio_channels||0,J.spatial_audio_type,!!J.drc);J.name&&(H=new g.EV(J.name,J.audio_track_id, J.isDefault==="1"))}var v;J.caption_display_name&&J.caption_vss_id&&J.caption_language_code&&(v=new z9B(J.caption_display_name,J.caption_vss_id,J.caption_language_code,J.caption_kind,J.xtags,J.caption_id));u=Number(J.bitrate)/8;var W=Number(J.clen),S=Number(J.lmt);N=N&&W?W/N:0;if(R&&J.drm_families){var L={};for(var I=g.K(J.drm_families.split(",")),F=I.next();!F.done;F=I.next())F=F.value,L[F]=R[F]}return new iM(X,C,{audio:k,video:f,Do:H,xi:L,fC:u,j4:N,contentLength:W,lastModified:S,captionTrack:v, streamType:J.stream_type,approxDurationMs:Number(J.approx_duration_ms)})}; uS2=function(J){return gh(J,function(R){return"FORMAT_STREAM_TYPE_OTF"===R.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; fS7=function(J){return gh(J,function(R){return"FORMAT_STREAM_TYPE_OTF"===R.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; TmY=function(J,R){return J.timeline?Jj(J.timeline.Z,R):J.ma.length?Jj(J.ma,R):[]}; Zj=function(J,R,N){R=R===void 0?"":R;N=N===void 0?"":N;J=new g.jB(J,!0);J.set("alr","yes");N&&(N=pen(decodeURIComponent(N)),J.set(R,encodeURIComponent(N)));return J}; vYE=function(J,R){var N=R9(R,"id");N=N.replace(":",";");var C=R9(R,"mimeType"),X=R9(R,"codecs");C=X?C+'; codecs="'+X+'"':C;X=Number(R9(R,"bandwidth"))/8;var u=Number(N8(R,"BaseURL").getAttribute(J.U+":contentLength")),f=J.duration&&u?u/J.duration:0;if(Le(C)){var H=Number(R9(R,"width"));var k=Number(R9(R,"height")),v=Number(R9(R,"frameRate")),W=$kE(R9(R,J.U+":projectionType"));a:switch(R9(R,J.U+":stereoLayout")){case "layout_left_right":var S=1;break a;case "layout_top_bottom":S=2;break a;default:S= 0}H=new R6(H,k,v,W,S)}if(Sv(C)){var L=Number(R9(R,"audioSamplingRate"));var I=Number(R9(R.getElementsByTagName("AudioChannelConfiguration")[0],"value"));k=Hen(R9(R,J.U+":spatialAudioType"));L=new xP(L,I,k);a:{I=R9(R,"lang")||"und";if(k=N8(R,"Role"))if(W=R9(k,"value")||"",g.qs(k0E,W)){k=I+"."+k0E[W];v=W==="main";J=R9(R,J.U+":langName")||I+" - "+W;I=new g.EV(J,k,v);break a}I=void 0}}if(R=N8(R,"ContentProtection"))if(R.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var F={};for(R= R.firstChild;R!=null;R=R.nextSibling)R instanceof Element&&/SystemURL/.test(R.nodeName)&&(J=R.getAttribute("type"),k=R.textContent,J&&k&&(F[J]=k.trim()))}else F=void 0;return new iM(N,C,{audio:L,video:H,Do:I,xi:F,fC:X,j4:f,contentLength:u})}; $kE=function(J){switch(J){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; Hen=function(J){switch(J){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}}; SOE=function(J,R){R=R===void 0?"":R;J.state=1;J.l3=(0,g.g9)();return cYP(R||J.sourceUrl).then(function(N){if(!J.QO()){J.e8=N.status;N=N.responseText;var C=new DOMParser;N=R4(C,iHk(N),"text/xml").getElementsByTagName("MPD")[0];J.nC=nPn(R9(N,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(N.attributes){C=g.K(N.attributes);for(var X=C.next();!X.done;X=C.next())if(X=X.value,X.value==="http://youtube.com/yt/2012/10/10"){C=X.name.split(":")[1];break b}}C=""}J.U=C;J.isLive=J.nC=J.nC}; ISE=function(J){J.S&&J.S.stop()}; WxB=function(J){var R=J.nC;isFinite(R)&&(d8(J)?J.refresh():(R=Math.max(0,J.l3+R-(0,g.g9)()),J.S||(J.S=new g.$t(J.refresh,R,J),g.P(J,J.S)),J.S.start(R)))}; Fx7=function(J){J=J.K;for(var R in J){var N=J[R].index;if(N.isLoaded())return N.yR()+1}return 0}; q8=function(J){return J.YA?J.YA-(J.D||J.timestampOffset):0}; AI=function(J){return J.G7?J.G7-(J.D||J.timestampOffset):0}; Yr=function(J){if(!isNaN(J.VO))return J.VO;var R=J.K,N;for(N in R){var C=R[N].index;if(C.isLoaded()&&!I6(R[N].info.mimeType)){R=0;for(N=C.H4();N<=C.yR();N++)R+=C.getDuration(N);R/=C.K1();R=Math.round(R/.5)*.5;C.K1()>10&&(J.VO=R);return R}if(J.isLive&&(C=R[N],C.FB))return C.FB}return NaN}; EY7=function(J,R){J=sZ8(J.K,function(C){return C.index.isLoaded()}); if(!J)return NaN;J=J.index;var N=J.qn(R);return J.getStartTime(N)===R?R:N=0&&X.segments.splice(u,1)}}}; Kxn=function(J){for(var R in J.K)I6(J.K[R].info.mimeType)||q_E(J.K[R].index,Infinity)}; mf=function(J,R,N){for(var C in J.K){var X=J.K[C].index,u=R,f=N;X.AD&&(u&&(X.ib=Math.max(X.ib,u)),f&&(X.LX=Math.max(X.LX||0,f)))}N&&(J.dn=N/1E3)}; aSg=function(J){J.G7=0;J.YA=0;J.kA=0}; VO=function(J){return J.pC&&J.isManifestless?J.isLiveHeadPlayable:J.isLive}; Dj=function(J,R,N){g8===null&&(g8=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(Gig&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return g8||N!=="9"&&N!=="("?g8||N!=="9h"&&N!=="(h"||(J='video/webm; codecs="vp9.2"'):J='video/webm; codecs="vp9"',J;if(!g8&&!UV||J!=='video/webm; codecs="vp9"'&&J!=='video/webm; codecs="vp9.2"')return J; N="00";var C="08",X="01",u="01",f="01";J==='video/webm; codecs="vp9.2"'&&(N="02",C="10",R.primaries==="bt2020"&&(f=X="09"),R.J==="smpte2084"&&(u="16"),R.J==="arib-std-b67"&&(u="18"));return'video/webm; codecs="'+["vp09",N,"51",C,"01",X,u,f,"00"].join(".")+'"'}; lB=function(J,R,N){J=""+J+(R>49?"p60":R>32?"p48":"");R=oJ()[J];if(R!=null&&R>0)return R;R=p0.get(J);if(R!=null&&R>0)return R;N=N==null?void 0:N.get(J);return N!=null&&N>0?N:8192}; Q6B=function(J){this.OB=J;this.VR=this.Z_=this.T7=this.U=this.Z=this.dn=this.GW=this.HC=this.ma=!1;this.FV=this.OB.T("html5_disable_aac_preference");this.D=this.S=0;this.oB=!1;this.tN=!0;this.Xk=!1;this.Y5=0;this.PC=!1;this.ji=Infinity;this.Pl=!1;this.AL=!0;this.pC=this.l3=!1;this.K={};this.VK=this.J=this.X=!1;this.G7=0;this.kA=this.disableAv1=this.R1=this.j2=this.EB=!1;this.Xn=this.OB.Si();this.TW=this.OB.experiments.b3("html5_enable_vp9_fairplay");this.v7=this.OB.T("html5_force_av1_for_testing"); this.eQ=g.di(this.OB.experiments,"html5_av1_ordinal_cap");this.m7=this.OB.T("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.H1=this.OB.T("html5_account_onesie_format_selection_during_format_filter");this.fC=g.di(this.OB.experiments,"html5_max_byterate");this.W=this.OB.T("html5_sunset_aac_high_codec_family");this.VO=this.OB.T("html5_sunset_aac_high_codec_family");this.YA=this.OB.T("html5_enable_iamf_audio");this.CY=this.OB.experiments.b3("html5_allow_capability_merge");this.wN=this.OB.T("html5_prefer_vp9_sfr")}; MJP=function(J){if(J.HC)return["f"];var R="9h 9 h 8 (h ( H *".split(" ");J.PC&&(R.unshift("1"),R.unshift("1h"));J.Z_&&R.unshift("h");J.nC&&(R=(Am2[J.nC]||[J.nC]).concat(R));return R}; W4n=function(J){var R=["o","a","A"];J.G7===1&&(J.dn&&(R=["m","M"].concat(R)),J.Z&&(R=["mac3","MAC3"].concat(R)),J.U&&(R=["meac3","MEAC3"].concat(R)),J.YA&&(R=["i","I"].concat(R)));J.ma&&(R=["so","sa"].concat(R));!J.VR||J.T7||J.V||J.FV||R.unshift("a");J.GW&&!J.W&&R.unshift("ah");J.V&&(R=(Am2[J.V]||[J.V]).concat(R));return R}; Pf=function(J,R,N,C){R=R===void 0?{}:R;if(C===void 0?0:C)return R.disabled=1,0;if(YK(J.U,r$.AV1_CODECS)&&YK(J.U,r$.HEIGHT)&&YK(J.U,r$.BITRATE))return R.isCapabilityUsable=1,8192;try{var X=GhP();if(X)return R.localPref=X}catch(H){}C=1080;X=navigator.hardwareConcurrency;X<=2&&(C=480);R.coreCount=X;if(X=g.di(J.experiments,"html5_default_av1_threshold"))C=R["default"]=X;!J.T("html5_disable_av1_arm_check")&&zNE()&&(R.isArm=1,C=240);if(J=J.U.dn)R.mcap=J,C=Math.max(C,J);if(N){var u,f;if(J=(u=N.videoInfos.find(function(H){return T0(H)}))== null?void 0:(f=u.J)==null?void 0:f.powerEfficient)C=8192,R.isEfficient=1; N=N.videoInfos[0].video;u=Math.min(lB("1",N.fps),lB("1",30));R.perfCap=u;C=Math.min(C,u);N.isHdr()&&!J&&(R.hdr=1,C*=.75)}else N=lB("1",30),R.perfCap30=N,C=Math.min(C,N),N=lB("1",60),R.perfCap60=N,C=Math.min(C,N);return R.av1Threshold=C}; z2=function(J,R,N,C){this.flavor=J;this.keySystem=R;this.J=N;this.experiments=C;this.K={};this.HC=this.keySystemAccess=null;this.fk=this.q1=-1;this.c9=null;this.V=!!C&&C.b3("edge_nonprefixed_eme");C&&C.b3("html5_enable_vp9_fairplay")}; w8=function(J){return J.V?!1:!J.keySystemAccess&&!!eL()&&J.keySystem==="com.microsoft.playready"}; cf=function(J){return J.keySystem==="com.microsoft.playready"}; hI=function(J){return!J.keySystemAccess&&!!eL()&&J.keySystem==="com.apple.fps.1_0"}; yO=function(J){return J.keySystem==="com.youtube.fairplay"}; G2=function(J){return J.keySystem==="com.youtube.fairplay.sbdl"}; g.bB=function(J){return J.flavor==="fairplay"}; eL=function(){var J=window,R=J.MSMediaKeys;X6()&&!R&&(R=J.WebKitMediaKeys);return R&&R.isTypeSupported?R:null}; xr=function(J){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.hY&&!g.Rc())return Vi("45");if(g.iC||g.sp)return J.b3("edge_nonprefixed_eme");if(g.tI)return Vi("47");if(g.d9){if(J.b3("html5_enable_safari_fairplay"))return!1;if(J=g.di(J,"html5_safari_desktop_eme_min_version"))return Vi(J)}return!0}; GG8=function(J,R,N,C){var X=NY(),u=(N=X||N&&X6())?["com.youtube.fairplay"]:["com.widevine.alpha"];R&&u.unshift("com.youtube.widevine.l3");X&&C&&u.unshift("com.youtube.fairplay.sbdl");return N?u:J?[].concat(g.Q(u),g.Q(J6.playready)):[].concat(g.Q(J6.playready),g.Q(u))}; RF=function(){this.J=this.Tk=0;this.K=Array.from({length:oF.length}).fill(0)}; b_Q=function(){}; oxB=function(){this.startTimeMs=(0,g.g9)();this.K=!1}; OD8=function(){this.K=new b_Q}; ZDg=function(J,R,N,C){C=C===void 0?1:C;N>=0&&(R in J.K||(J.K[R]=new RF),J.K[R].py(N,C))}; dfE=function(J,R,N,C,X){var u=(0,g.g9)(),f=X?X(R):void 0,H;X=(H=f==null?void 0:f.Tk)!=null?H:1;if(X!==0){var k;H=(k=f==null?void 0:f.profile)!=null?k:N;ZDg(J,H,u-C,X)}return R}; Nw=function(J,R,N,C,X){if(R&&typeof R==="object"){var u=function(f){return dfE(J,f,N,C,X)}; if(nf(R))return R.then(u);if(qYB(R))return dS(R,u)}return dfE(J,R,N,C,X)}; Ae2=function(){}; Cs=function(J,R,N,C,X){C=C===void 0?!1:C;g.l.call(this);this.OB=R;this.useCobaltWidevine=C;this.u3=X;this.J=[];this.V={};this.K={};this.callback=null;this.U=!1;this.Z=[];this.initialize(J,!N)}; reB=function(J,R){J.callback=R;J.Z=[];xr(J.OB.experiments)?XO(J):YYY(J)}; XO=function(J){if(!J.QO())if(J.J.length===0)J.callback(J.Z);else{var R=J.J[0],N=J.V[R],C=jnY(J,N);if(ia&&ia.keySystem===R&&ia.rzB===JSON.stringify(C))J.u3("remksa",{re:!0}),mfB(J,N,ia.keySystemAccess);else{var X,u;J.u3("remksa",{re:!1,ok:(u=(X=ia)==null?void 0:X.keySystem)!=null?u:""});ia=void 0;(ua.isActive()?ua.aF("emereq",function(){return navigator.requestMediaKeySystemAccess(R,C)}):navigator.requestMediaKeySystemAccess(R,C)).then(jq(function(f){mfB(J,N,f,C)}),jq(function(){J.U=!J.U&&J.V[J.J[0]].flavor=== "widevine"; J.U||J.J.shift();XO(J)}))}}}; mfB=function(J,R,N,C){if(!J.QO()){C&&(ia={keySystem:R.keySystem,keySystemAccess:N,rzB:JSON.stringify(C)});R.keySystemAccess=N;if(cf(R)){N=we();C=g.K(Object.keys(J.K[R.flavor]));for(var X=C.next();!X.done;X=C.next())X=X.value,R.K[X]=!!N.canPlayType(X)}else{N=R.keySystemAccess.getConfiguration();if(N.audioCapabilities)for(C=g.K(N.audioCapabilities),X=C.next();!X.done;X=C.next())VH8(J,R,X.value);if(N.videoCapabilities)for(N=g.K(N.videoCapabilities),C=N.next();!C.done;C=N.next())VH8(J,R,C.value)}J.Z.push(R); J.useCobaltWidevine||J.T("html5_enable_vp9_fairplay")&&G2(R)?(J.J.shift(),XO(J)):J.callback(J.Z)}}; VH8=function(J,R,N){J.T("log_robustness_for_drm")?R.K[N.contentType]=N.robustness||!0:R.K[N.contentType]=!0}; jnY=function(J,R){var N={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(J.T("html5_enable_vp9_fairplay")&&yO(R))return N.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),N.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[N];cf(R)&&(N.initDataTypes=["keyids","cenc"]);for(var C=g.K(Object.keys(J.K[R.flavor])),X=C.next();!X.done;X=C.next()){X=X.value;var u=X.indexOf("audio/")===0,f=u?N.audioCapabilities:N.videoCapabilities;R.flavor!== "widevine"||J.U?f.push({contentType:X}):u?f.push({contentType:X,robustness:"SW_SECURE_CRYPTO"}):(g.hY&&g.Jf("windows nt")&&!J.T("html5_drm_enable_moho")||f.push({contentType:X,robustness:"HW_SECURE_ALL"}),u=X,J.T("html5_enable_cobalt_experimental_vp9_decoder")&&X.includes("vp09")&&(u=X+"; experimental=allowed"),f.push({contentType:u,robustness:"SW_SECURE_DECODE"}),fs(J.OB)==="MWEB"&&(H1()||oc())&&(J.u3("swcrypto",{}),f.push({contentType:X,robustness:"SW_SECURE_CRYPTO"})))}return[N]}; YYY=function(J){if(eL()&&(g.d9||u4&&J.T("html5_drm_support_ios_mweb")))J.Z.push(new z2("fairplay","com.apple.fps.1_0","",J.OB.experiments));else{var R=gx2(),N=g.eE(J.J,function(C){var X=J.V[C],u=!1,f=!1,H;for(H in J.K[X.flavor])R(H,C)&&(X.K[H]=!0,u=u||H.indexOf("audio/")===0,f=f||H.indexOf("video/")===0);return u&&f}); N&&J.Z.push(J.V[N]);J.J=[]}J.callback(J.Z)}; gx2=function(){var J=eL();if(J){var R=J.isTypeSupported;return function(C,X){return R(X,C)}}var N=we(); return N&&(N.addKey||N.webkitAddKey)?function(C,X){return!!N.canPlayType(C,X)}:function(){return!1}}; Ufg=function(J){this.experiments=J;this.J=0;this.nC=(this.U=this.T("html5_streaming_resilience"))?.5:.25;this.W=g.di(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.D=(this.V=this.experiments.b3("html5_consider_end_stall"))&&Tn;this.K=this.experiments.b3("html5_measure_max_progress_handling");this.S=this.T("html5_treat_requests_pre_elbow_as_metadata");this.Z=this.T("html5_media_time_weight");this.X=g.di(this.experiments,"html5_streaming_fallback_byterate")}; pzB=function(J,R){this.K=void 0;this.experimentIds=J?J.split(","):[];this.flags=kq(R||"","&");J={};R=g.K(this.experimentIds);for(var N=R.next();!N.done;N=R.next())J[N.value]=!0;this.experiments=J}; g.di=function(J,R){J=J.flags[R];JSON.stringify(J);return Number(J)||0}; $S=function(J,R){return(J=J.flags[R])?J.toString():""}; lcY=function(J){if(J=J.flags.html5_web_po_experiment_ids)if(J=J.replace(/\[ *(.*?) *\]/,"$1"))return J.split(",").map(Number);return[]}; PT8=function(J){if(J.K)return J.K;if(J.experimentIds.length<=1)return J.K=J.experimentIds,J.K;var R=[].concat(g.Q(J.experimentIds)).map(function(C){return Number(C)}); R.sort();for(var N=R.length-1;N>0;--N)R[N]-=R[N-1];J.K=R.map(function(C){return C.toString()}); J.K.unshift("v1");return J.K}; e$8=function(J){return z$B.then(J)}; HH=function(J,R,N){this.experiments=J;this.VO=R;this.PC=N===void 0?!1:N;this.nC=!!g.gY("cast.receiver.platform.canDisplayType");this.X={};this.D=!1;this.J=new Map;this.S=!0;this.V=this.Z=!1;this.K=new Map;this.dn=0;this.ma=this.experiments.b3("html5_disable_vp9_encrypted");J=g.gY("cast.receiver.platform.getValue");this.tN=g.di(this.experiments,"html5_kaios_max_resolution");this.U=!this.nC&&J&&J("max-video-resolution-vpx")||null;wzY(this)}; Qjg=function(J,R,N){N=N===void 0?1:N;var C=R.itag;if(C==="0")return!0;var X=R.mimeType;if(R.nL()&&NY()&&J.experiments.b3("html5_appletv_disable_vp9"))return"dwebm";if(T0(R)&&J.D)return"dav1";if(R.video&&(R.video.isHdr()||R.video.primaries==="bt2020")&&!(YK(J,r$.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(C==="338"&&!(g.hY?Vi(53):g.tI&&Vi(64)))return"dopus"; var u;if(J.tN&&kS&&((u=R.video)==null?void 0:u.K)>J.tN)return"kaios";u=N;u=u===void 0?1:u;N={};R.video&&(R.video.width&&(N[r$.WIDTH.name]=R.video.width),R.video.height&&(N[r$.HEIGHT.name]=R.video.height),R.video.fps&&(N[r$.FRAMERATE.name]=R.video.fps*u),R.video.J&&(N[r$.EOTF.name]=R.video.J),R.fC&&(N[r$.BITRATE.name]=R.fC*8*u),R.sB==="("&&(N[r$.CRYPTOBLOCKFORMAT.name]="subsample"),R.video.projectionType==="EQUIRECTANGULAR"||R.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||R.video.projectionType=== "MESH")&&(N[r$.DECODETOTEXTURE.name]="true");R.audio&&R.audio.numChannels&&(N[r$.CHANNELS.name]=R.audio.numChannels);J.Z&&uM(R)&&(N[r$.EXPERIMENTAL.name]="allowed");u=g.K(Object.keys(r$));for(var f=u.next();!f.done;f=u.next()){f=r$[f.value];var H;if(H=N[f.name])if(H=!(f===r$.EOTF&&R.mimeType.indexOf("vp09.02")>0)){H=f;var k=R;H=!(J.experiments.b3("html5_ignore_h264_framerate_cap")&&H===r$.FRAMERATE&&mj2(k))}if(H)if(YK(J,f))if(J.U){if(J.U[f.name]1080&&R.xi&&(X+="; hdcp=2.2");return C==="227"?"hqcenc":C!=="585"&&C!=="588"&&C!=="583"&&C!=="586"&&C!=="584"&&C!=="587"&&C!=="591"&&C!=="592"||J.experiments.b3("html5_enable_new_hvc_enc")?J.isTypeSupported(X)?!0:"tpus":"newhvc"}; vH=function(){var J=oc()&&!Vi(29),R=g.Jf("google tv")&&g.Jf("chrome")&&!Vi(30);return J||R?!1:lKY()}; ceE=function(J,R,N){var C=480;R=g.K(R);for(var X=R.next();!X.done;X=R.next()){X=X.value;var u=X.video.K;u<=1080&&u>C&&Qjg(J,X,N)===!0&&(C=u)}return C}; g.WH=function(J,R){R=R===void 0?!1:R;return vH()&&J.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!R&&J.canPlayType(we(),"application/x-mpegURL")?!0:!1}; yek=function(J){h$B(function(){for(var R=g.K(Object.keys(r$)),N=R.next();!N.done;N=R.next())YK(J,r$[N.value])})}; YK=function(J,R){R.name in J.X||(J.X[R.name]=GeE(J,R));return J.X[R.name]}; GeE=function(J,R){if(J.U)return!!J.U[R.name];if(R===r$.BITRATE&&J.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!J.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(R===r$.AV1_CODECS)return J.isTypeSupported("video/mp4; codecs="+R.valid)&&!J.isTypeSupported("video/mp4; codecs="+R.oW);if(R.video){var N='video/webm; codecs="vp9"';J.isTypeSupported(N)||(N='video/mp4; codecs="avc1.4d401e"')}else N='audio/webm; codecs="opus"', J.isTypeSupported(N)||(N='audio/mp4; codecs="mp4a.40.2"');return J.isTypeSupported(N+"; "+R.name+"="+R.valid)&&!J.isTypeSupported(N+"; "+R.name+"="+R.oW)}; bDQ=function(J){J.Z||(J.Z=!0,Sh(J))}; Sh=function(J){J.V=!0;J.experiments.b3("html5_ssap_update_capabilities_on_change")&&tHB(J)}; xfB=function(J,R){var N=0;J.J.has(R)&&(N=J.J.get(R).m6);J.J.set(R,{m6:N+1,fI:Math.pow(2,N+1)});Sh(J)}; Z9=function(J){for(var R=[],N=g.K(J.K.keys()),C=N.next();!C.done;C=N.next()){C=C.value;var X=J.K.get(C);R.push(C+"_"+X.maxWidth+"_"+X.maxHeight)}return R.join(".")}; tHB=function(J){J.W=[];for(var R=g.K(J.K.values()),N=R.next();!N.done;N=R.next()){N=N.value;var C=N.sB;J.experiments.b3("html5_ssap_force_mp4_aac")&&C!=="a"&&C!=="h"||J.J.has(C)||(!J.D||C!=="1"&&C!=="1h")&&J.W.push(N)}}; S_g=function(J,R){for(var N=new Map,C=g.K(J.K.keys()),X=C.next();!X.done;X=C.next()){X=X.value;var u=X.split("_")[0];R.has(u)||N.set(X,J.K.get(X))}J.K=N}; IpQ=function(J,R,N){var C,X=((C=N.video)==null?void 0:C.fps)||0;C=R+"_"+X;var u=!!N.audio,f={itag:N.itag,sB:R,B7:u};if(u)f.numChannels=N.audio.numChannels;else{var H=N.video;f.maxWidth=H==null?void 0:H.width;f.maxHeight=H==null?void 0:H.height;f.maxFramerate=X;YK(J,r$.BITRATE)&&(f.maxBitrateBps=N.fC*8);f.kx=H==null?void 0:H.isHdr()}H=J.K.get(C);H?u||(N=Math.max(H.maxWidth||0,H.maxHeight||0)>Math.max(f.maxWidth||0,f.maxHeight||0)?H:f,R={itag:N.itag,sB:R,B7:u,maxWidth:Math.max(H.maxWidth||0,f.maxWidth|| 0),maxHeight:Math.max(H.maxHeight||0,f.maxHeight||0),maxFramerate:X,kx:N.kx},YK(J,r$.BITRATE)&&(R.maxBitrateBps=N.maxBitrateBps),J.K.set(C,R)):J.K.set(C,f)}; F4E=function(J,R,N){var C,X=((C=N.video)==null?void 0:C.fps)||0;C=R+"_"+X;var u=!!N.audio,f=J.K.get(C);a:{var H=J.K.get(C),k=!!N.audio;if(H){if(k){var v=!1;break a}var W;if(!k&&((v=N.video)==null?0:v.height)&&H.maxHeight&&H.maxHeight>=((W=N.video)==null?void 0:W.height)){v=!1;break a}}v=!0}v&&(v=N.itag,R=f?f:{itag:v,sB:R,B7:u},u?R.numChannels=N.audio.numChannels:(u=N.video,R.maxWidth=u==null?void 0:u.width,R.maxHeight=u==null?void 0:u.height,R.maxFramerate=X,YK(J,r$.BITRATE)&&(R.maxBitrateBps=N.fC* 8),R.kx=u==null?void 0:u.isHdr()),J.K.set(C,R))}; wzY=function(J){var R;(R=navigator.mediaCapabilities)!=null&&R.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(N){N.smooth&&N.powerEfficient&&(J.dn=2160)})}; Ls=function(){g.al.call(this);this.items={}}; IF=function(){g.Ub.apply(this,arguments)}; FO=function(){g.pX.apply(this,arguments)}; Jak=function(J,R,N){this.encryptedClientKey=R;this.U=N;this.K=new Uint8Array(J.buffer,0,16);this.V=new Uint8Array(J.buffer,16)}; oQE=function(J){J.J||(J.J=new IF(J.K));return J.J}; Ei=function(J){try{return IG(J)}catch(R){return null}}; Rhg=function(J,R){if(!R&&J)try{R=JSON.parse(J)}catch(X){}if(R){J=R.clientKey?Ei(R.clientKey):null;var N=R.encryptedClientKey?Ei(R.encryptedClientKey):null,C=R.keyExpiresInSeconds?Number(R.keyExpiresInSeconds)*1E3+(0,g.g9)():null;J&&N&&C&&(this.K=new Jak(J,N,C));R.onesieUstreamerConfig&&(this.onesieUstreamerConfig=Ei(R.onesieUstreamerConfig)||void 0);this.baseUrl=R.baseUrl}}; Ks=function(){this.data=new Uint8Array(2048);this.pos=0;Mw||(Mw=CX("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; aF=function(J){this.K=this.J=0;this.alpha=Math.exp(Math.log(.5)/J)}; Q_=function(J,R,N,C){N=N===void 0?.5:N;C=C===void 0?0:C;this.resolution=R;this.J=0;this.V=!1;this.GM=!0;this.K=Math.round(J*this.resolution);this.values=Array(this.K);for(J=0;J0)R=J.byterate,this.nC=!0;else{var C;N=(((C=navigator.connection)== null?void 0:C.downlink)||0)*64*1024;N>0&&(R=N,this.nC=!0)}this.V.x5(this.policy.S,R);J.delay>0&&this.D.x5(1,Math.min(J.delay,2));J.stall>0&&this.S.x5(1,J.stall);J.init>0&&(this.G7=Math.min(J.init,this.G7));J.interruptions&&(this.J=this.J.concat(J.interruptions),this.J.length>16&&this.J.pop());this.dn=(0,g.g9)();this.policy.D>0&&(this.T7=new g.$t(this.pC,this.policy.D,this),g.P(this,this.T7),this.T7.start())}; DF=function(J,R,N,C){J.V.x5(C===void 0?R:C,N/R);J.U=(0,g.g9)()}; CdE=function(J){J.Z||(J.Z=(0,g.g9)());J.policy.W&&(J.U=(0,g.g9)())}; X3B=function(J,R){if(J.Z){var N=R-J.Z;if(N>1E3){var C=J.interruptions;C.push(Math.ceil(N));C.sort(function(X,u){return u-X}); C.length>16&&C.pop()}J.tN+=N}J.Z=R}; si=function(J,R,N,C,X,u){u=u===void 0?!1:u;J.PC.x5(R,N/R);J.U=(0,g.g9)();X||J.X.x5(1,R-C);u||(J.Z=0);J.dn>-1&&(0,g.g9)()-J.dn>3E4&&icY(J)}; BH=function(J,R,N){R=Math.max(R,2048);J.S.x5(1,N/R)}; Oi=function(J){J=J.D.Gj()+J.VO.Gj()||0;J=isNaN(J)?.5:J;return J=Math.min(J,5)}; ZF=function(J,R,N){isNaN(N)||(J.ma+=N);isNaN(R)||(J.l3+=R)}; dI=function(J){J=J.V.Gj();return J>0?J:1}; qw=function(J,R,N){R=R===void 0?!1:R;N=N===void 0?1048576:N;var C=dI(J);C=1/((J.S.Gj()||0)*J.policy.nC+1/C);var X=J.PC.Gj();X=X>0?X:1;var u=Math.max(C,X);J.policy.U>0&&X=4E3}; fUE=function(J){this.experiments=J;this.J=17;this.V=13E4;this.S=.5;this.Z=this.K=!1;this.U=g.di(this.experiments,"html5_auxiliary_estimate_weight");this.nC=g.di(this.experiments,"html5_stall_factor")||1;this.D=g.di(this.experiments,"html5_check_for_idle_network_interval_ms");this.X=this.experiments.b3("html5_trigger_loader_when_idle_network");this.W=this.experiments.b3("html5_sabr_fetch_on_idle_network_preloaded_players")}; $ME=function(J,R){J=J===void 0?{}:J;R=R===void 0?{}:R;g.l.call(this);var N=this;this.values=J;this.z5=R;this.J={};this.V=this.K=0;this.Z=new g.$t(function(){TUn(N)},1E4); g.P(this,this.Z)}; YS=function(J,R){Hc2(J,R);return J.values[R]&&J.z5[R]?J.values[R]/Math.pow(2,J.K/J.z5[R]):0}; Hc2=function(J,R){J.values[R]||(R=wen(),J.values=R.values||{},J.z5=R.halfLives||{},J.J=R.values?Object.assign({},R.values):{})}; TUn=function(J){var R=wen();if(R.values){R=R.values;for(var N={},C=g.K(Object.keys(J.values)),X=C.next();!X.done;X=C.next())X=X.value,R[X]&&J.J[X]&&(J.values[X]+=R[X]-J.J[X]),N[X]=YS(J,X);J.J=N}R=J.z5;N={};N.values=J.J;N.halfLives=R;g.e0("yt-player-memory",N,2592E3)}; t6=function(J,R,N,C,X){g.l.call(this);this.webPlayerContextConfig=R;this.PY=C;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.We=this.YA=this.Xk=this.LJ=this.userDisplayName=this.userDisplayImage=this.wV="";this.K={};this.ji={};this.controlsType="0";this.CY=NaN;this.GW=!1;this.mu=(0,g.g9)();this.Xn=0;this.F$=this.NI=!1;this.IW=!0;this.preferGapless=this.Ix=this.NE=this.V=this.Gu=this.rN=!1;this.t2=[];this.qj=!0;this.OQ=!1;J=J?g.Vs(J):{};R&&R.csiPageType&&(this.csiPageType=R.csiPageType); R&&R.csiServiceName&&(this.csiServiceName=R.csiServiceName);R&&R.preferGapless&&(this.preferGapless=R.preferGapless);this.experiments=new pzB(R?R.serializedExperimentIds:J.fexp,R?R.serializedExperimentFlags:J.fflags);this.forcedExperiments=R?R.serializedForcedExperimentIds:Ic("",J.forced_experiments)||void 0;this.cspNonce=(R==null?0:R.cspNonce)?R.cspNonce:Ic("",J.csp_nonce);this.T("web_player_deprecated_uvr_killswitch");try{var u=document.location.toString()}catch(b){u=""}this.pL=u;this.ancestorOrigins= (C=window.location.ancestorOrigins)?Array.from(C):[];this.Z=W1(!1,R?R.isEmbed:J.is_embed);if(R&&R.device){if(C=R.device,C.androidOsExperience&&(this.K.caoe=""+C.androidOsExperience),C.androidPlayServicesVersion&&(this.K.capsv=""+C.androidPlayServicesVersion),C.brand&&(this.K.cbrand=C.brand),C.browser&&(this.K.cbr=C.browser),C.browserVersion&&(this.K.cbrver=C.browserVersion),C.cobaltReleaseVehicle&&(this.K.ccrv=""+C.cobaltReleaseVehicle),this.K.c=C.interfaceName||"WEB",this.K.cver=C.interfaceVersion|| "html5",C.interfaceTheme&&(this.K.ctheme=C.interfaceTheme),this.K.cplayer=C.interfacePlayerType||"UNIPLAYER",C.model&&(this.K.cmodel=C.model),C.network&&(this.K.cnetwork=C.network),C.os&&(this.K.cos=C.os),C.osVersion&&(this.K.cosver=C.osVersion),C.platform&&(this.K.cplatform=C.platform),u=$S(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),u==="all"||u==="once")C.chipset&&(this.ji.cchip=C.chipset),C.cobaltAppVersion&&(this.ji.ccappver=C.cobaltAppVersion),C.firmwareVersion&&(this.ji.cfrmver= C.firmwareVersion),C.deviceYear&&(this.ji.crqyear=C.deviceYear)}else this.K.c=J.c||"web",this.K.cver=J.cver||"html5",this.K.cplayer="UNIPLAYER";this.loaderUrl=R?this.Z||kak(this)&&R.loaderUrl?R.loaderUrl||"":this.pL:this.Z||kak(this)&&J.loaderUrl?Ic("",J.loaderUrl):this.pL;this.Z&&g.VE("yt.embedded_player.embed_url",this.loaderUrl);this.D=SJ(this.loaderUrl,vQQ);C=this.loaderUrl;var f=f===void 0?!1:f;this.H_=WT(SJ(C,W07),C,f,"Trusted Ad Domain URL");this.AL=W1(!1,J.privembed);this.protocol=this.pL.indexOf("http:")=== 0?"http":"https";this.tN=Lw((R?R.customBaseYoutubeUrl:J.BASE_YT_URL)||"")||Lw(this.pL)||this.protocol+"://www.youtube.com/";f=R?R.eventLabel:J.el;C="detailpage";f==="adunit"?C=this.Z?"embedded":"detailpage":f==="embedded"||this.D?(C=S0(C,f,SDB),f!=="shortsaudiopivot"||this.T("web_player_shorts_audio_pivot_event_label")||(C="detailpage")):f&&(C="embedded");this.PC=C;oq7();f=null;C=R?R.playerStyle:J.ps;u=g.cl(L0k,C);!C||u&&!this.D||(f=C);this.playerStyle=f;this.S=g.cl(L0k,this.playerStyle);this.houseBrandUserStatus= R==null?void 0:R.houseBrandUserStatus;this.dn=this.S&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";this.TG=!this.dn;this.T7=W1(!1,J.disableplaybackui);this.disablePaidContentOverlay=W1(!1,R==null?void 0:R.disablePaidContentOverlay);this.disableSeek=W1(!1,R==null?void 0:R.disableSeek);this.enableSpeedOptions=(R==null?void 0:R.enableSpeedOptions)||(we().defaultPlaybackRate?rI||g.$I||kS?g.tI&&Vi("20")||g.hY&&Vi("4")||g.jh&&Vi("11")||i4():!(g.jh&&!g.Jf("chrome")||rI||g.Jf("android")||g.Jf("silk")): !1);this.zo=W1(!1,J.enable_faster_speeds);this.J=W1(this.playerStyle==="blazer",J.is_html5_mobile_device||R&&R.isMobileDevice);this.pC=Tm()||H1();this.P_=this.T("mweb_allow_background_playback")?!1:this.J&&!this.S;this.l3=bJ();this.qz=g.mJ;var H;this.c9=!!(R==null?0:(H=R.embedsHostFlags)==null?0:H.optOutApiDeprecation);var k;this.XZ=!!(R==null?0:(k=R.embedsHostFlags)==null?0:k.allowPfpImaIntegration);this.Ob=this.T("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var v;R?R.hideInfo!== void 0&&(v=!R.hideInfo):v=J.showinfo;this.tD=g.V_(this)&&!this.c9||W1(!gI(this)&&!Ui(this)&&!this.S,v);this.JU=R?!!R.mobileIphoneSupportsInlinePlayback:W1(!1,J.playsinline);H=this.J&&ps&&la!=null&&la>0&&la<=2.3;k=R?R.useNativeControls:J.use_native_controls;this.X=g.V_(this)&&this.J;v=this.J&&!this.X;k=g.PH(this)||!H&&W1(v,k)?"3":"1";this.disableOrganicUi=!(R==null||!R.disableOrganicUi);v=R?R.controlsType:J.controls;this.controlsType=this.disableOrganicUi?"0":v!=="0"&&v!==0?k:"0";this.U7=this.J;this.color= S0("red",R?R.progressBarColor:J.color,IUf);this.nw=this.controlsType==="3";this.VR=!this.Z;this.Vw=(k=!this.VR&&!Ui(this)&&!this.dn&&!this.S&&!gI(this))&&!this.nw&&this.controlsType==="1";this.FV=g.zn(this)&&k&&this.controlsType==="0"&&!this.Vw&&!(R==null?0:R.embedsEnableEmc3ds);this.yd=this.gC=H;this.H1=(this.controlsType==="3"||this.J||W1(!1,J.use_media_volume))&&!this.X;this.Ze=u4&&!g.kN(601)?!1:!0;this.GG=this.Z||!1;this.EB=Ui(this)?"":(this.loaderUrl||J.post_message_origin||"").substring(0,128); this.widgetReferrer=Ic("",R?R.widgetReferrer:J.widget_referrer);var W;R?R.disableCastApi&&(W=!1):W=J.enablecastapi;W=!this.D||W1(!0,W);H=!0;R&&R.disableMdxCast&&(H=!1);this.Jn=this.T("enable_cast_for_web_unplugged")&&g.eh(this)&&H||g.N3(this)&&H||W&&H&&this.controlsType==="1"&&!this.J&&(Ui(this)||g.zn(this)||g.wI(this));this.tp=!!window.document.pictureInPictureEnabled||Gi();W=R?!!R.supportsAutoplayOverride:W1(!1,J.autoplayoverride);this.ZI=!(this.J&&!g.V_(this))&&!g.Jf("nintendo wiiu")||W;this.EL= (R?!!R.enableMutedAutoplay:W1(!1,J.mutedautoplay))&&!1;W=(Ui(this)||gI(this))&&this.playerStyle==="blazer";this.mR=R?!!R.disableFullscreen:!W1(!0,J.fs);H=g.KI(g.cH(this))&&g.V_(this);this.TW=!this.mR&&(W||g.O7())&&!H;this.iY=this.T("uniplayer_block_pip")&&(oc()&&Vi(58)&&!H1()||C9);W=g.V_(this)&&!this.c9;var S;R?R.disableRelatedVideos!==void 0&&(S=!R.disableRelatedVideos):S=J.rel;this.j2=W||W1(!this.S,S);this.i4=W1(!1,R?R.enableContentOwnerRelatedVideos:J.co_rel);this.W=H1()&&la>0&&la<=4.4?"_top": "_blank";this.Im=g.wI(this);this.ZY=W1(this.playerStyle==="blazer",R?R.enableCsiLogging:J.enablecsi);switch(this.playerStyle){case "blogger":S="bl";break;case "gmail":S="gm";break;case "gac":S="ga";break;case "books":S="gb";break;case "docs":case "flix":S="gd";break;case "duo":S="gu";break;case "google-live":S="gl";break;case "google-one":S="go";break;case "play":S="gp";break;case "chat":S="hc";break;case "hangouts-meet":S="hm";break;case "photos-edu":case "picasaweb":S="pw";break;default:S="yt"}this.nC= S;this.ma=Ic("",R?R.authorizedUserIndex:J.authuser);this.kA=g.V_(this)&&(this.AL||!lyE()||this.pC);var L;R?R.disableWatchLater!==void 0&&(L=!R.disableWatchLater):L=J.showwatchlater;this.v7=((S=!this.kA)||!!this.ma&&S)&&W1(!this.dn,this.D?L:void 0);this.wN=R?R.isMobileDevice||!!R.disableKeyboardControls:W1(!1,J.disablekb);this.loop=W1(!1,J.loop);this.pageId=Ic("",R?R.initialDelegatedSessionId:J.pageid);this.iO=W1(!0,J.canplaylive);this.oB=W1(!1,J.livemonitor);this.disableSharing=W1(this.S,R?R.disableSharing: J.ss);(L=R&&this.T("fill_video_container_size_override_from_wpcc")?R.videoContainerOverride:J.video_container_override)?(S=L.split("x"),S.length!==2?L=null:(L=Number(S[0]),S=Number(S[1]),L=isNaN(L)||isNaN(S)||L*S<=0?null:new g.a4(L,S))):L=null;this.U2=L;this.mute=R?!!R.startMuted:W1(!1,J.mute);this.storeUserVolume=!this.mute&&W1(this.controlsType!=="0",R?R.storeUserVolume:J.store_user_volume);L=R?R.annotationsLoadPolicy:J.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:S0(void 0, L,h6);this.captionsLanguagePreference=R?R.captionsLanguagePreference||"":Ic("",J.cc_lang_pref);L=S0(2,R?R.captionsLanguageLoadPolicy:J.cc_load_policy,h6);this.controlsType==="3"&&L===2&&(L=3);this.R1=L;this.VK=R?R.hl||"en_US":Ic("en_US",J.hl);this.region=R?R.contentRegion||"US":Ic("US",J.cr);this.hostLanguage=R?R.hostLanguage||"en":Ic("en",J.host_language);this.bT=!this.AL&&Math.random()=480;this.schedule=new ns(H,new Ufg(this.experiments),X);g.P(this,this.schedule);var I;this.enableSafetyMode=(I=R==null?void 0:R.initialEnableSafetyMode)!=null?I:W1(!1,J.enable_safety_mode);X=this.T7? !1:Ui(this)&&this.playerStyle!=="blazer";var F;R?R.disableAutonav!=null&&(F=!R.disableAutonav):F=J.allow_autonav;this.m7=W1(X,!this.dn&&F);this.sendVisitorIdHeader=R?!!R.sendVisitorIdHeader:W1(!1,J.send_visitor_id_header);var a;this.playerStyle==="docs"&&(R?a=R.disableNativeContextMenu:a=J.disable_native_context_menu);this.disableNativeContextMenu=W1(!1,a);this.Km=zu(this)&&this.T("enable_skip_intro_button");this.embedConfig=Ic("",R?R.serializedEmbedConfig:J.embed_config);this.VO=MY(J,g.V_(this)); this.V=this.VO==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(R==null||!R.embedsErrorLinks);this.OV=W1(!1,J.full_window);var n;this.HC=!((n=this.webPlayerContextConfig)==null?0:n.chromeless);var B;this.livingRoomAppMode=S0("LIVING_ROOM_APP_MODE_UNSPECIFIED",J.living_room_app_mode||(R==null?void 0:(B=R.device)==null?void 0:B.livingRoomAppMode),MNP);var Z;F=LI(NaN,R==null?void 0:(Z=R.device)==null?void 0:Z.deviceYear);isNaN(F)||(this.deviceYear=F);this.transparentBackground=R?!!R.transparentBackground: W1(!1,J.transparent_background);this.showMiniplayerButton=R?!!R.showMiniplayerButton:W1(!1,J.show_miniplayer_button);var A;g.V_(this)&&!(R==null?0:(A=R.embedsHostFlags)==null?0:A.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=R?!!R.externalFullscreen:W1(!1,J.external_fullscreen);this.showMiniplayerUiWhenMinimized=R?!!R.showMiniplayerUiWhenMinimized:W1(!1,J.use_miniplayer_ui);this.showInlinePreviewUi=R?!!R.showInlinePreviewUi:!1;var V;this.IW=(V=J.show_loop_video_toggle)!= null?V:!0;this.X7=Math.random()<1E-4;this.iQ=J.onesie_hot_config||(R==null?0:R.onesieHotConfig)?new Rhg(J.onesie_hot_config,R==null?void 0:R.onesieHotConfig):void 0;this.isTectonic=R?!!R.isTectonic:!!J.isTectonic;this.playerCanaryState=N;this.playerCanaryStage=R==null?void 0:R.canaryStage;this.lr=new $ME;g.P(this,this.lr);this.Gu=W1(!1,J.force_gvi);this.datasyncId=(R==null?void 0:R.datasyncId)||g.iL("DATASYNC_ID");this.qM=g.iL("LOGGED_IN",!1);this.Xp=(R==null?void 0:R.allowWoffleManagement)||!1;this.Vc= Infinity;this.IE=NaN;this.livingRoomPoTokenId=R==null?void 0:R.livingRoomPoTokenId;this.T("html5_high_res_logging_always")?this.NE=!0:this.NE=Math.random()*100=0&&J0&&J.X7&&(C.sort(),g.G$(new g.C3("Player client parameters changed after startup",C)));J.userAge=LI(J.userAge,R.user_age);J.wV=Ic(J.wV,R.user_display_email);J.userDisplayImage=Ic(J.userDisplayImage,R.user_display_image);g.F7(J.userDisplayImage)||(J.userDisplayImage= "");J.userDisplayName=Ic(J.userDisplayName,R.user_display_name);J.LJ=Ic(J.LJ,R.user_gender);J.csiPageType=Ic(J.csiPageType,R.csi_page_type);J.csiServiceName=Ic(J.csiServiceName,R.csi_service_name);J.ZY=W1(J.ZY,R.enablecsi);J.pageId=Ic(J.pageId,R.pageid);if(N=R.enabled_engage_types)J.enabledEngageTypes=new Set(N.split(","));R.living_room_session_po_token&&(J.Vg=R.living_room_session_po_token.toString())}; xS=function(J,R){return!J.S&&oc()&&Vi(55)&&J.controlsType==="3"&&!R}; g.Jz=function(J){J=y_(J.tN);return J==="www.youtube-nocookie.com"?"www.youtube.com":J}; od=function(J,R,N){return J.protocol+"://i1.ytimg.com/vi/"+R+"/"+(N||"hqdefault.jpg")}; Rd=function(J){return Ui(J)&&!g.eh(J)}; g.PH=function(J){return J.T("html5_local_playsinline")?u4&&!g.kN(602)&&!("playsInline"in we()):u4&&!J.JU||g.Jf("nintendo wiiu")?!0:!1}; fs=function(J){return J.K.c}; g.eG=function(J){return/^TVHTML5/.test(fs(J))}; g.NL=function(J){return fs(J)==="TVHTML5"}; kak=function(J){return fs(J)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; EQg=function(J){return J.K.cmodel==="CHROMECAST ULTRA/STEAK"||J.K.cmodel==="CHROMECAST/STEAK"}; g.CW=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; zu=function(J){return/web/i.test(fs(J))}; g.Xk=function(J){return fs(J).toUpperCase()==="WEB"}; ba=function(J){return fs(J)==="WEB_KIDS"}; g.eh=function(J){return fs(J)==="WEB_UNPLUGGED"}; iv=function(J){return fs(J)==="TVHTML5_UNPLUGGED"}; g.PM=function(J){return g.eh(J)||fs(J)==="TV_UNPLUGGED_CAST"||iv(J)}; g.N3=function(J){return fs(J)==="WEB_REMIX"}; g.uv=function(J){return fs(J)==="WEB_EMBEDDED_PLAYER"}; g.T1=function(J){return(J.deviceIsAudioOnly||!g.hY||C9||J.controlsType==="3"?!1:g.$I?J.Z&&g.kN(51):!0)||(J.deviceIsAudioOnly||!g.tI||C9||J.controlsType==="3"?!1:g.$I?J.Z&&g.kN(48):g.kN(38))||(J.deviceIsAudioOnly||!g.jh||C9||J.controlsType==="3"?!1:g.$I?J.Z&&g.kN(37):g.kN(27))||!J.deviceIsAudioOnly&&g.fW&&!ctg()&&g.kN(11)||!J.deviceIsAudioOnly&&g.d9&&g.kN("604.4")}; QLk=function(J){if(g.zn(J)&&ps)return!1;if(g.tI){if(!g.kN(47)||!g.kN(52)&&g.kN(51))return!1}else if(g.d9)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; $C=function(J){return!J.T("html5_disable_media_element_loop_on_tv")||!g.eG(J)}; DMY=function(J,R){return J.enabledEngageTypes.has(R.toString())||nQf.includes(R)}; Ui=function(J){return J.PC==="detailpage"}; g.zn=function(J){return J.PC==="embedded"}; Hm=function(J){return J.PC==="leanback"}; gI=function(J){return J.PC==="adunit"||J.playerStyle==="gvn"}; g.wI=function(J){return J.PC==="profilepage"}; g.V_=function(J){return J.Z&&g.zn(J)&&!gI(J)&&!J.S}; kC=function(J){if(!J.userDisplayImage)return"";var R=J.userDisplayImage.split("/");if(R.length===5)return J=R[R.length-1].split("="),J[1]="s20-c",R[R.length-1]=J.join("="),R.join("/");if(R.length===8)return R.splice(7,0,"s20-c"),R.join("/");if(R.length===9)return R[7]+="-s20-c",R.join("/");g.G$(new g.C3("Profile image not a FIFE URL.",J.userDisplayImage));return J.userDisplayImage}; g.vm=function(J){var R=g.Jz(J);sLE.includes(R)&&(R="www.youtube.com");return J.protocol+"://"+R}; g.Wm=function(J,R){R=R===void 0?"":R;if(J.PY){var N=new lM,C,X=J.PY();X.signedOut?C="":X.token?C=X.token:X.pendingResult.then(function(u){X.signedOut?N.resolve(""):N.resolve(u.token)},function(u){g.G$(new g.C3("b189348328_oauth_callback_failed",{error:u})); N.resolve(R)}); return C!==void 0?eQ(C):new PR(N)}return eQ(R)}; y_=function(J){var R=g.ez(J);return(J=Number(g.zF(4,J))||null)?R+":"+J:R}; Se=function(J,R){R=R===void 0?!1:R;var N=XS[J],C=BUY[N],X=OcE[J];if(!X||!C)return null;R=new R6(R?X.height:X.width,R?X.width:X.height,X.fps);C=Dj(C,R,N);return new iM(J,C,{video:R,fC:X.bitrate/8})}; dM2=function(J){var R=BUY[XS[J]],N=ZcY[J];return N&&R?new iM(J,R,{audio:new xP(N.audioSampleRate,N.numChannels)}):null}; LW=function(J){this.K=J}; Id=function(J,R,N,C){if(N)return zO();N={};var X=we();R=g.K(R);for(var u=R.next();!u.done;u=R.next())if(u=u.value,J.canPlayType(X,u.getInfo().mimeType)||C){var f=u.K.video.quality;if(!N[f]||N[f].getInfo().nL())N[f]=u}J=[];N.auto&&J.push(N.auto);C=g.K(Nk);for(X=C.next();!X.done;X=C.next())(X=N[X.value])&&J.push(X);return J.length?eQ(J):zO()}; qDB=function(J){this.itag=J.itag;this.url=J.url;this.codecs=J.codecs;this.width=J.width;this.height=J.height;this.fps=J.fps;this.bitrate=J.bitrate;var R;this.J=((R=J.audioItag)==null?void 0:R.split(","))||[];this.Y$=J.Y$;this.xi=J.xi||"";this.Do=J.Do;this.audioChannels=J.audioChannels;this.K=""}; AaE=function(J,R,N,C){R=R===void 0?!1:R;N=N===void 0?!0:N;C=C===void 0?{}:C;var X={};J=g.K(J);for(var u=J.next();!u.done;u=J.next()){u=u.value;if(R&&MediaSource&&MediaSource.isTypeSupported){var f=u.type;u.audio_channels&&(f=f+"; channels="+u.audio_channels);if(!MediaSource.isTypeSupported(f)){C[u.itag]="tpus";continue}}if(N||!u.drm_families||u.eotf!=="smpte2084"&&u.eotf!=="arib-std-b67"){f=void 0;var H={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},k=u.type.match(/codecs="([^"]*)"/); k=k?k[1]:"";u.audio_track_id&&(f=new g.EV(u.name,u.audio_track_id,!!u.is_default));var v=u.eotf;u=new qDB({itag:u.itag,url:u.url,codecs:k,width:Number(u.width),height:Number(u.height),fps:Number(u.fps),bitrate:Number(u.bitrate),audioItag:u.audio_itag,Y$:v?H[v]:void 0,xi:u.drm_families,Do:f,audioChannels:Number(u.audio_channels)});X[u.itag]=X[u.itag]||[];X[u.itag].push(u)}else C[u.itag]="enchdr"}return X}; YDg=function(J,R,N,C,X){this.V=J;this.J=R;this.U=N;this.cpn=C;this.S=X;this.Z=0;this.K=""}; ran=function(J,R){J.V.some(function(N){var C;return((C=N.Do)==null?void 0:C.getId())===R}); J.K=R}; Fk=function(J,R,N){J.cpn&&(R=g.bD(R,{cpn:J.cpn}));N&&(R=g.bD(R,{paired:N}));return R}; jLE=function(J,R){J=J.itag.toString();R!==null&&(J+=R.itag.toString());return J}; mMk=function(J){for(var R=[],N=[],C=g.K(J.J),X=C.next();!X.done;X=C.next())X=X.value,X.bitrate<=J.Z?R.push(X):N.push(X);R.sort(function(u,f){return f.bitrate-u.bitrate}); N.sort(function(u,f){return u.bitrate-f.bitrate}); J.J=R.concat(N)}; EA=function(J,R,N){this.K=J;this.J=R;this.expiration=N;this.resource=null}; VNg=function(J,R){if(!(C9||X6()||NY()))return null;J=AaE(R,J.T("html5_filter_fmp4_in_hls"));if(!J)return null;R=[];for(var N={},C=g.K(Object.keys(J)),X=C.next();!X.done;X=C.next()){X=g.K(J[X.value]);for(var u=X.next();!u.done;u=X.next()){var f=u.value;f.Do&&(u=f.Do.getId(),N[u]||(f=new g.WV(u,f.Do),N[u]=f,R.push(f)))}}return R.length>0?R:null}; Pdg=function(J,R,N,C,X,u,f){if(!(C9||X6()||NY()))return zO();var H={},k=gQf(N),v=AaE(N,J.T("html5_filter_fmp4_in_hls"),J.U.S,H);if(!v)return f({noplst:1}),zO();UMf(v);N={};var W=(N.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",N),S;N=[];var L=[],I=[],F=null,a="";C=C&&C.match(/hls_timedtext_playlist/)?new qDB({itag:"0",url:C,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Do:new g.EV("English","en",!1)}):null;for(var n=g.K(Object.keys(v)),B=n.next();!B.done;B=n.next())if(B=B.value,!J.T("html5_disable_drm_hfr_1080")|| B!=="383"&&B!=="373"){B=g.K(v[B]);for(var Z=B.next();!Z.done;Z=B.next())if(Z=Z.value,Z.width){for(var A=g.K(Z.J),V=A.next();!V.done;V=A.next())if(V=V.value,v[V]){Z.K=V;break}Z.K||(Z.K=p3g(v,Z));if(A=v[Z.K])if(N.push(Z),Z.xi==="fairplay"&&(S=W),V="",Z.Y$==="PQ"?V="smpte2084":Z.Y$==="HLG"&&(V="arib-std-b67"),V&&(a=V),I.push(lUY(A,[Z],C,u,Z.itag,Z.width,Z.height,Z.fps,k,void 0,void 0,S,V)),!F||Z.width*Z.height*Z.fps>F.width*F.height*F.fps)F=Z}else L.push(Z)}else H[B]="disdrmhfr";I.reduce(function(p, b){return b.getInfo().isEncrypted()&&p},!0)&&(S=W); X=Math.max(X,0);W=F||{};v=W.fps===void 0?0:W.fps;F=W.width===void 0?0:W.width;W=W.height===void 0?0:W.height;n=J.T("html5_native_audio_track_switching");I.push(lUY(L,N,C,u,"93",F,W,v,k,"auto",X,S,a,n));Object.entries(H).length&&f(H);return Id(J.U,I,xS(J,R),!1)}; lUY=function(J,R,N,C,X,u,f,H,k,v,W,S,L,I){for(var F=0,a="",n=g.K(J),B=n.next();!B.done;B=n.next())B=B.value,a||(a=B.itag),B.audioChannels&&B.audioChannels>F&&(F=B.audioChannels,a=B.itag);X=new iM(X,"application/x-mpegURL",{audio:new xP(0,F),video:new R6(u,f,H,null,void 0,v,void 0,L),xi:S,Qk:a});J=new YDg(J,R,N?[N]:[],C,!!I);J.Z=W?W:1369843;return new EA(X,J,k)}; gQf=function(J){J=g.K(J);for(var R=J.next();!R.done;R=J.next())if(R=R.value,R.url&&(R=R.url.split("expire/"),!(R.length<=1)))return+R[1].split("/")[0];return NaN}; p3g=function(J,R){for(var N=g.K(Object.keys(J)),C=N.next();!C.done;C=N.next()){C=C.value;var X=J[C][0];if(!X.width&&X.xi===R.xi&&!X.audioChannels)return C}return""}; UMf=function(J){for(var R=new Set,N=g.K(Object.values(J)),C=N.next();!C.done;C=N.next())C=C.value,C.length&&(C=C[0],C.height&&C.codecs.startsWith("vp09")&&R.add(C.height));N=[];if(R.size){C=g.K(Object.keys(J));for(var X=C.next();!X.done;X=C.next())if(X=X.value,J[X].length){var u=J[X][0];u.height&&R.has(u.height)&&!u.codecs.startsWith("vp09")&&N.push(X)}}R=g.K(N);for(N=R.next();!N.done;N=R.next())delete J[N.value]}; ML=function(J,R){this.K=J;this.J=R}; zhk=function(J,R,N,C){var X=[];N=g.K(N);for(var u=N.next();!u.done;u=N.next()){var f=u.value;if(f.url){u=new g.jB(f.url,!0);if(f.s){var H=u,k=f.sp,v=pen(decodeURIComponent(f.s));H.set(k,encodeURIComponent(v))}H=g.K(Object.keys(C));for(k=H.next();!k.done;k=H.next())k=k.value,u.set(k,C[k]);f=FS(f.type,f.quality,f.itag,f.width,f.height);X.push(new ML(f,u))}}return Id(J.U,X,xS(J,R),!1)}; KW=function(J,R){this.K=J;this.J=R}; ehP=function(J,R,N){var C=[];N=g.K(N);for(var X=N.next();!X.done;X=N.next())if((X=X.value)&&X.url){var u=FS(X.type,"medium","0");C.push(new KW(u,X.url))}return Id(J.U,C,xS(J,R),!1)}; w3P=function(J,R){var N=[],C=FS(R.type,"auto",R.itag);N.push(new KW(C,R.url));return Id(J.U,N,!1,!0)}; hhE=function(J){return J&&ca2[J]?ca2[J]:null}; yaE=function(J){if(J=J.commonConfig)this.url=J.url,this.urlQueryOverride=J.urlQueryOverride,J.ustreamerConfig&&(this.ra=Ei(J.ustreamerConfig)||void 0)}; Gan=function(J,R){var N;if(R=R==null?void 0:(N=R.watchEndpointSupportedOnesieConfig)==null?void 0:N.html5PlaybackOnesieConfig)J.Q5=new yaE(R)}; g.ad=function(J){J=J===void 0?{}:J;this.languageCode=J.languageCode||"";this.languageName=J.languageName||null;this.kind=J.kind||"";this.name=J.name===void 0?null:J.name;this.displayName=J.displayName||null;this.id=J.id||null;this.K=J.is_servable||!1;this.isTranslateable=J.is_translateable||!1;this.url=J.url||null;this.vssId=J.vss_id||"";this.isDefault=J.is_default||!1;this.translationLanguage=J.translationLanguage||null;this.xtags=J.xtags||"";this.captionId=J.captionId||""}; g.nW=function(J){var R={languageCode:J.languageCode,languageName:J.languageName,displayName:g.Qz(J),kind:J.kind,name:J.name,id:J.id,is_servable:J.K,is_default:J.isDefault,is_translateable:J.isTranslateable,vss_id:J.vssId};J.xtags&&(R.xtags=J.xtags);J.captionId&&(R.captionId=J.captionId);J.translationLanguage&&(R.translationLanguage=J.translationLanguage);return R}; g.Da=function(J){return J.translationLanguage?J.translationLanguage.languageCode:J.languageCode}; g.bcB=function(J){var R=J.vssId;J.translationLanguage&&R&&(R="t"+R+"."+g.Da(J));return R}; g.Qz=function(J){var R=[];if(J.displayName)R.push(J.displayName);else{var N=J.languageName||"";R.push(N);J.kind==="asr"&&N.indexOf("(")===-1&&R.push(" (Legendas autom\u00e1ticas)");J.name&&R.push(" - "+J.name)}J.translationLanguage&&R.push(" >> "+J.translationLanguage.languageName);return R.join("")}; oXB=function(J,R,N,C){J||(J=R&&tNE.hasOwnProperty(R)&&xMn.hasOwnProperty(R)?xMn[R]+"_"+tNE[R]:void 0);R=J;if(!R)return null;J=R.match(JSY);if(!J||J.length!==5)return null;if(J=R.match(JSY)){var X=Number(J[3]),u=[7,8,10,5,6];J=!(Number(J[1])===1&&X===8)&&u.indexOf(X)>=0}else J=!1;return N||C||J?R:null}; sA=function(J,R){for(var N={},C=g.K(Object.keys(Rrk)),X=C.next();!X.done;X=C.next()){X=X.value;var u=R?R+X:X;u=J[u+"_webp"]||J[u];g.F7(u)&&(N[Rrk[X]]=u)}return N}; Bm=function(J){var R={};if(!J||!J.thumbnails)return R;J=J.thumbnails.filter(function(H){return!!H.url}); J.sort(function(H,k){return H.width-k.width||H.height-k.height}); for(var N=g.K(Object.keys(NSg)),C=N.next();!C.done;C=N.next()){var X=Number(C.value);C=NSg[X];for(var u=g.K(J),f=u.next();!f.done;f=u.next())if(f=f.value,f.width>=X){X=CnP(f.url);g.F7(X)&&(R[C]=X);break}}(J=J.pop())&&J.width>=1280&&(J=CnP(J.url),g.F7(J)&&(R["maxresdefault.jpg"]=J));return R}; CnP=function(J){return J.startsWith("//")?"https:"+J:J}; OA=function(J){return J&&J.baseUrl||""}; Za=function(J){J=g.L4(J);for(var R=g.K(Object.keys(J)),N=R.next();!N.done;N=R.next()){N=N.value;var C=J[N];J[N]=Array.isArray(C)?C[0]:C}return J}; XAg=function(J,R){J.botguardData=R.playerAttestationRenderer.botguardData;R=R.playerAttestationRenderer.challenge;R!=null&&(J.Pi=R)}; fPg=function(J,R){R=g.K(R);for(var N=R.next();!N.done;N=R.next()){N=N.value;var C=N.interstitials.map(function(f){var H=g.z(f,ifQ);if(H)return{is_yto_interstitial:!0,raw_player_response:H};if(f=g.z(f,utE))return Object.assign({is_yto_interstitial:!0},WR(f))}); C=g.K(C);for(var X=C.next();!X.done;X=C.next())switch(X=X.value,N.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":J.interstitials=J.interstitials.concat({time:0,playerVars:X,pV:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":J.interstitials=J.interstitials.concat({time:0x7ffffffffffff,playerVars:X,pV:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var u=Number(N.podConfig.timeToInsertAtMillis);J.interstitials=J.interstitials.concat({time:u,playerVars:X, pV:u===0?5:7})}}}; TSf=function(J,R){if(R=R.find(function(N){return!(!N||!N.tooltipRenderer)}))J.tooltipRenderer=R.tooltipRenderer}; $NE=function(J,R){R.subscribeCommand&&(J.subscribeCommand=R.subscribeCommand);R.unsubscribeCommand&&(J.unsubscribeCommand=R.unsubscribeCommand);R.addToWatchLaterCommand&&(J.addToWatchLaterCommand=R.addToWatchLaterCommand);R.removeFromWatchLaterCommand&&(J.removeFromWatchLaterCommand=R.removeFromWatchLaterCommand);R.getSharePanelCommand&&(J.getSharePanelCommand=R.getSharePanelCommand)}; Hf8=function(J,R){R!=null?(J.RF=R,J.wL=!0):(J.RF="",J.wL=!1)}; dQ=function(J,R){this.type=J||"";this.id=R||""}; g.qL=function(J){return new dQ(J.substring(0,2),J.substring(2))}; g.Az=function(J,R){this.OB=J;this.author="";this.oR=null;this.playlistLength=0;this.K=this.sessionData=null;this.X={};this.title="";if(R){this.author=R.author||R.playlist_author||"";this.title=R.playlist_title||"";if(J=R.session_data)this.sessionData=kq(J,"&");var N;this.K=((N=R.thumbnail_ids)==null?void 0:N.split(",")[0])||null;this.X=sA(R,"playlist_");this.videoId=R.video_id||void 0;if(N=R.list)switch(R.listType){case "user_uploads":this.playlistId=(new dQ("UU","PLAYER_"+N)).toString();break;default:if(J= R.playlist_length)this.playlistLength=Number(J)||0;this.playlistId=g.qL(N).toString();if(R=R.video)this.videoId=(R[0]||null).video_id||void 0}else R.playlist&&(this.playlistLength=R.playlist.toString().split(",").length)}}; g.YC=function(J,R){this.OB=J;this.v$=this.author="";this.oR=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.uN=this.lengthText="";this.sessionData=null;this.X={};this.title="";if(R){this.ariaLabel=R.aria_label||void 0;this.author=R.author||"";this.v$=R.v$||"";if(J=R.endscreen_autoplay_session_data)this.oR=kq(J,"&");this.Ei=R.Ei;this.isLivePlayback=R.live_playback==="1";this.isUpcoming=!!R.isUpcoming;if(J=R.length_seconds)this.lengthSeconds=typeof J==="string"?Number(J):J;this.lengthText= R.lengthText||"";this.uN=R.uN||"";this.publishedTimeText=R.publishedTimeText||void 0;if(J=R.session_data)this.sessionData=kq(J,"&");this.shortViewCount=R.short_view_count_text||void 0;this.X=sA(R);this.title=R.title||"";this.videoId=R.docid||R.video_id||R.videoId||R.id||void 0;this.watchUrl=R.watchUrl||void 0}}; kwf=function(J){var R,N,C=(R=J.getWatchNextResponse())==null?void 0:(N=R.contents)==null?void 0:N.twoColumnWatchNextResults,X,u,f,H,k;J=(X=J.getWatchNextResponse())==null?void 0:(u=X.playerOverlays)==null?void 0:(f=u.playerOverlayRenderer)==null?void 0:(H=f.endScreen)==null?void 0:(k=H.watchNextEndScreenRenderer)==null?void 0:k.results;if(!J){var v,W;J=C==null?void 0:(v=C.endScreen)==null?void 0:(W=v.endScreen)==null?void 0:W.results}return J}; g.je=function(J){var R,N,C;J=g.z((R=J.getWatchNextResponse())==null?void 0:(N=R.playerOverlays)==null?void 0:(C=N.playerOverlayRenderer)==null?void 0:C.decoratedPlayerBarRenderer,rQ);return g.z(J==null?void 0:J.playerBar,vXE)}; WNn=function(J){this.K=J.playback_progress_0s_url;this.V=J.playback_progress_2s_url;this.J=J.playback_progress_10s_url}; Su8=function(){if(m7===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(R){}a:{try{var J=!!self.localStorage}catch(R){J=!1}if(J&&(J=g.yi(g.XU()+"::yt-player"))){m7=new iw(J);break a}m7=void 0}}return m7}; g.Vz=function(){var J=Su8();if(!J)return{};try{var R=J.get("yt-player-lv");return JSON.parse(R||"{}")}catch(N){return{}}}; g.LNQ=function(J){var R=Su8();R&&(J=JSON.stringify(J),R.set("yt-player-lv",J))}; g.gQ=function(J){return g.Vz()[J]||0}; g.UA=function(J,R){var N=g.Vz();R!==N[J]&&(R!==0?N[J]=R:delete N[J],g.LNQ(N))}; g.pW=function(J){return g.Y(function(R){return R.return(g.oN(IPE(),J))})}; Pm=function(J,R,N,C,X,u,f,H){var k,v,W,S,L,I;return g.Y(function(F){switch(F.K){case 1:return k=g.gQ(J),k===4?F.return(4):g.q(F,g.$s(),2);case 2:v=F.J;if(!v)throw g.AC("wiac");if(!H||f===void 0){F.ZM(3);break}return g.q(F,FN8(H,f),4);case 4:f=F.J;case 3:return W=N.lastModified||"0",g.q(F,g.pW(v),5);case 5:return S=F.J,g.Ef(F,6),lv++,g.q(F,g.P9(S,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",QK:!0},function(a){if(u!==void 0&&f!==void 0){var n=""+J+"|"+R.id+"|"+W+"|"+String(u).padStart(10, "0");n=g.zB(a.objectStore("media"),f,n)}else n=g.r9.resolve(void 0);var B=EXB(J,R.Ky()),Z=EXB(J,!R.Ky()),A={fmts:Mqg(C),format:N||{}};B=g.zB(a.objectStore("index"),A,B);var V=C.downloadedEndTime===-1;A=V?a.objectStore("index").get(Z):g.r9.resolve(void 0);var p={fmts:"music",format:{}};a=V&&X&&!R.Ky()?g.zB(a.objectStore("index"),p,Z):g.r9.resolve(void 0);return g.r9.all([a,A,n,B]).then(function(b){b=g.K(b);b.next();b=b.next().value;lv--;var w=g.gQ(J);if(w!==4&&V&&X||b!==void 0&&g.KN2(b.fmts))w=1,g.UA(J, w);return w})}),8); case 8:return F.return(F.J);case 6:L=g.K2(F);lv--;I=g.gQ(J);if(I===4)return F.return(I);g.UA(J,4);throw L;}})}; g.aPk=function(J){var R,N;return g.Y(function(C){if(C.K==1)return g.q(C,g.$s(),2);if(C.K!=3){R=C.J;if(!R)throw g.AC("ri");return g.q(C,g.pW(R),3)}N=C.J;return C.return(g.P9(N,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(X){var u=IDBKeyRange.bound(J+"|",J+"~");return X.objectStore("index").getAll(u).then(function(f){return f.map(function(H){return H?H.format:{}})})}))})}; nXQ=function(J,R,N,C,X){var u,f,H;return g.Y(function(k){if(k.K==1)return g.q(k,g.$s(),2);if(k.K!=3){u=k.J;if(!u)throw g.AC("rc");return g.q(k,g.pW(u),3)}f=k.J;H=g.P9(f,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(v){var W=""+J+"|"+R+"|"+N+"|"+String(C).padStart(10,"0");return v.objectStore("media").get(W)}); return X?k.return(H.then(function(v){if(v===void 0)throw Error("No data from indexDb");return QAn(X,v)}).catch(function(v){throw new g.C3("Error while reading chunk: "+v.name+", "+v.message); })):k.return(H)})}; g.KN2=function(J){return J?J==="music"?!0:J.includes("dlt=-1")||!J.includes("dlt="):!1}; EXB=function(J,R){return""+J+"|"+(R?"v":"a")}; Mqg=function(J){var R={};return vR((R.dlt=J.downloadedEndTime.toString(),R.mket=J.maxKnownEndTime.toString(),R.avbr=J.averageByteRate.toString(),R))}; sA7=function(J){var R={},N={};J=g.K(J);for(var C=J.next();!C.done;C=J.next()){var X=C.value,u=X.split("|");X.match(g.DN7)?(C=Number(u.pop()),isNaN(C)?N[X]="?":(u=u.join("|"),(X=R[u])?(u=X[X.length-1],C===u.end+1?u.end=C:X.push({start:C,end:C})):R[u]=[{start:C,end:C}])):N[X]="?"}J=g.K(Object.keys(R));for(C=J.next();!C.done;C=J.next())C=C.value,N[C]=R[C].map(function(f){return f.start+"-"+f.end}).join(","); return N}; z1=function(J){g.al.call(this);this.K=null;this.V=new tX;this.K=null;this.S=new Set;this.crossOrigin=J||""}; BS7=function(J,R,N){for(N=ee(J,N);N>=0;){var C=J.levels[N];if(C.isLoaded(wQ(C,R))&&(C=g.cm(C,R)))return C;N--}return g.cm(J.levels[0],R)}; Zff=function(J,R,N){N=ee(J,N);for(var C,X;N>=0;N--)if(C=J.levels[N],X=wQ(C,R),!C.isLoaded(X)){C=J;var u=N,f=u+"-"+X;C.S.has(f)||(C.S.add(f),C.V.enqueue(u,{T0:u,cq:X}))}Of2(J)}; Of2=function(J){if(!J.K&&!J.V.isEmpty()){var R=J.V.remove();J.K=dNB(J,R)}}; dNB=function(J,R){var N=document.createElement("img");J.crossOrigin&&(N.crossOrigin=J.crossOrigin);N.src=J.levels[R.T0].Yi(R.cq);N.onload=function(){var C=R.T0,X=R.cq;J.K!==null&&(J.K.onload=null,J.K=null);C=J.levels[C];C.loaded.add(X);Of2(J);var u=C.columns*C.rows;X*=u;C=Math.min(X+u-1,C.NK()-1);X=[X,C];J.publish("l",X[0],X[1])}; return N}; g.hz=function(J,R,N,C){this.level=J;this.Z=R;this.loaded=new Set;this.level=J;this.Z=R;J=N.split("#");this.width=Math.floor(Number(J[0]));this.height=Math.floor(Number(J[1]));this.frameCount=Math.floor(Number(J[2]));this.columns=Math.floor(Number(J[3]));this.rows=Math.floor(Number(J[4]));this.K=Math.floor(Number(J[5]));this.V=J[6];this.signature=J[7];this.videoLength=C}; wQ=function(J,R){return Math.floor(R/(J.columns*J.rows))}; g.cm=function(J,R){R>=J.Jy()&&J.Xq();var N=wQ(J,R),C=J.columns*J.rows,X=R%C;R=X%J.columns;X=Math.floor(X/J.columns);var u=J.Xq()+1-C*N;if(u1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; quE=function(J,R,N){return(J=J.levels[R])?J.iH(N):-1}; ee=function(J,R){var N=J.Z.get(R);if(N)return N;N=J.levels.length;for(var C=0;C=R)return J.Z.set(R,C),C;J.Z.set(R,N-1);return N-1}; G1=function(J,R,N,C){N=N.split("#");N=[N[1],N[2],0,N[3],N[4],-1,N[0],""].join("#");g.hz.call(this,J,R,N,0);this.J=null;this.U=C?2:0}; bv=function(J,R,N,C){yz.call(this,J,0,void 0,R,!(C===void 0||!C));for(J=0;J1&&g.G$(new g.C3("There are more than one engaged_view_urls.")), J.Xp=c7.engagedViewUrls[0])}}var B$=J.playerResponse.playerCueRanges;B$&&B$.length>0&&(J.cueRanges=B$);var is=J.playerResponse.playerCueRangeSet;is&&g.Xr(J,is);a:{var us=J.playerResponse.adPlacements;if(us)for(var fT=g.K(us),Om=fT.next();!Om.done;Om=fT.next()){var Tk=void 0,$o=void 0,Hr=(Tk=Om.value.adPlacementRenderer)==null?void 0:($o=Tk.renderer)==null?void 0:$o.videoAdTrackingRenderer;if(Hr){var ko=Hr;break a}}ko=null}var Z4=ko;C2&&C2.promotedPlaybackTracking&&Z4&&g.G$(new g.C3("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); Z4&&(J.Ej=!0);var vr=J.playerResponse.playerAds;if(vr)for(var sL=R,Wr=g.K(vr),dx=Wr.next();!dx.done;dx=Wr.next()){var Sl=dx.value;if(Sl){var LT=Sl.playerLegacyDesktopWatchAdsRenderer;if(LT){var Vh=LT.playerAdParams;if(Vh){Vh.autoplay=="1"&&(J.Pa=!0,J.Pk=!0);J.S4=Vh.encodedAdSafetyReason||null;Vh.showContentThumbnail!==void 0&&(J.Ix=!!Vh.showContentThumbnail);sL.enabled_engage_types=Vh.enabledEngageTypes;break}}}}var DD=J.playerResponse.playerConfig;if(DD){var g5=DD.manifestlessWindowedLiveConfig; if(g5){var q3=Number(g5.minDvrSequence),Ov=Number(g5.maxDvrSequence),ZZ=Number(g5.minDvrMediaTimeMs),dW=Number(g5.maxDvrMediaTimeMs),ID=Number(g5.startWalltimeMs);q3&&(J.Up=q3);ZZ&&(J.G7=ZZ/1E3,J.T("html5_sabr_parse_live_metadata_playback_boundaries")&&iY(J)&&(J.H_=ZZ/1E3));Ov&&(J.Q7=Ov);dW&&(J.YA=dW/1E3,J.T("html5_sabr_parse_live_metadata_playback_boundaries")&&iY(J)&&(J.iY=dW/1E3));ID&&(J.kA=ID/1E3);(q3||ZZ)&&(Ov||dW)&&(J.PC=!0,J.isLivePlayback=!0,J.allowLiveDvr=!0,J.SD=!1)}var Fn=DD.daiConfig; if(Fn){if(Fn.enableDai){J.W7=!0;var q6=Fn.enableServerStitchedDai;q6&&(J.enableServerStitchedDai=q6);var BE=Fn.enablePreroll;BE&&(J.enablePreroll=BE)}var Fx;if(Fn.daiType==="DAI_TYPE_SS_DISABLED"||((Fx=Fn.debugInfo)==null?0:Fx.isDisabledUnpluggedChannel))J.Xd=!0;Fn.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(J.Mg=!0)}var hn=DD.audioConfig;if(hn){var Ec=hn.loudnessDb;Ec!=null&&(J.wm=Ec);var AV=hn.trackAbsoluteLoudnessLkfs;AV!=null&&(J.bK=AV);var Ya=hn.loudnessTargetLkfs;Ya!=null&&(J.loudnessTargetLkfs= Ya);hn.audioMuted&&(J.OV=!0);hn.muteOnStart&&(J.LF=!0);var En=hn.loudnessNormalizationConfig;if(En){En.applyStatefulNormalization&&(J.applyStatefulNormalization=!0);En.preserveStatefulLoudnessTarget&&(J.preserveStatefulLoudnessTarget=!0);var MR=En.minimumLoudnessTargetLkfs;MR!=null&&(J.minimumLoudnessTargetLkfs=MR);var OL=En.maxStatefulTimeThresholdSec;OL!=null&&(J.maxStatefulTimeThresholdSec=OL)}J.T("web_player_audio_playback_from_audio_config")&&hn.playAudioOnly&&(J.Vg=!0)}var KT=DD.playbackEndConfig; if(KT){var bH=KT.endSeconds,nYQ=KT.limitedPlaybackDurationInSeconds;J.mutedAutoplay&&(bH&&(J.endSeconds=bH),nYQ&&(J.limitedPlaybackDurationInSeconds=nYQ))}var Zd=DD.fairPlayConfig;if(Zd){var Dkg=Zd.certificate;Dkg&&(J.HC=Ei(Dkg));var s6E=Number(Zd.keyRotationPeriodMs);s6E>0&&(J.q1=s6E);var BmE=Number(Zd.keyPrefetchMarginMs);BmE>0&&(J.fk=BmE)}var rx=DD.playbackStartConfig;if(rx){J.Ob=Number(rx.startSeconds);var OeP=rx.liveUtcStartSeconds,Zef=!!J.liveUtcStartSeconds&&J.liveUtcStartSeconds>0;OeP&&!Zef&& (J.liveUtcStartSeconds=Number(OeP));var Qd=rx.startPosition;if(Qd){var dk2=Qd.utcTimeMillis;dk2&&!Zef&&(J.liveUtcStartSeconds=Number(dk2)*.001);var qOP=Qd.streamTimeMillis;qOP&&(J.wN=Number(qOP)*.001)}J.progressBarStartPosition=rx.progressBarStartPosition;J.progressBarEndPosition=rx.progressBarEndPosition}else{var ni=DD.skippableSegmentsConfig;if(ni){var Ayg=ni.introSkipDurationMs;Ayg&&(J.Qw=Number(Ayg)/1E3);var YO8=ni.outroSkipDurationMs;YO8&&(J.Oa=Number(YO8)/1E3)}}var D0=DD.skippableIntroConfig; if(D0){var ryQ=Number(D0.startMs),j68=Number(D0.endMs);isNaN(ryQ)||isNaN(j68)||(J.eP=ryQ,J.NE=j68)}var mkB=DD.streamSelectionConfig;mkB&&(J.CY=Number(mkB.maxBitrate));var Vv2=DD.vrConfig;Vv2&&(J.xm=Vv2.partialSpherical=="1");var aD=DD.webDrmConfig;if(aD){aD.skipWidevine&&(J.fv=!0);var gYg=aD.widevineServiceCert;gYg&&(J.c9=Ei(gYg));aD.useCobaltWidevine&&(J.useCobaltWidevine=!0);aD.startWithNoQualityConstraint&&(J.iQ=!0)}var Ul=DD.mediaCommonConfig;if(Ul){var dn=Ul.dynamicReadaheadConfig;if(dn){J.maxReadAheadMediaTimeMs= dn.maxReadAheadMediaTimeMs||NaN;J.minReadAheadMediaTimeMs=dn.minReadAheadMediaTimeMs||NaN;J.readAheadGrowthRateMs=dn.readAheadGrowthRateMs||NaN;var UkY,pSB=Ul==null?void 0:(UkY=Ul.mediaUstreamerRequestConfig)==null?void 0:UkY.videoPlaybackUstreamerConfig;pSB&&(J.Mn=Ei(pSB));var sB=Ul==null?void 0:Ul.sabrContextUpdates;if(sB&&sB.length>0)for(var lSk=g.K(sB),BN=lSk.next();!BN.done;BN=lSk.next()){var Ag=BN.value;if(Ag.type&&Ag.value){var ATl={type:Ag.type,scope:Ag.scope,value:Ei(Ag.value)||void 0,sendByDefault:Ag.sendByDefault}; J.sabrContextUpdates.set(Ag.type,ATl)}}}var PME=Ul.serverPlaybackStartConfig;PME&&(J.serverPlaybackStartConfig=PME);Ul.useServerDrivenAbr&&(J.WR=!0);var z0P=Ul.requestPipeliningConfig;z0P&&(J.requestPipeliningConfig=z0P)}var e0Q=DD.inlinePlaybackConfig;e0Q&&(J.y_=!!e0Q.showAudioControls);var q$=DD.embeddedPlayerConfig;if(q$){J.embeddedPlayerConfig=q$;var OB=q$.embeddedPlayerMode;if(OB){var wSn=J.N();wSn.VO=OB;wSn.V=OB==="EMBEDDED_PLAYER_MODE_PFL"}var cyg=q$.permissions;cyg&&(J.allowImaMonetization= !!cyg.allowImaMonetization)}var h0g=DD.ssapConfig;h0g&&(J.Hv=h0g.ssapPrerollEnabled||!1);var A9=DD.webPlayerConfig;A9&&(A9.gatewayExperimentGroup&&(J.gatewayExperimentGroup=A9.gatewayExperimentGroup),A9.isProximaEligible&&(J.isProximaLatencyEligible=!0))}var pm=J.playerResponse.streamingData;if(pm){var Z0=pm.formats;if(Z0){for(var Qr=[],yy8=g.K(Z0),du=yy8.next();!du.done;du=yy8.next()){var qp=du.value;Qr.push(qp.itag+"/"+qp.width+"x"+qp.height)}J.ZC=Qr.join(",");Qr=[];for(var G0E=g.K(Z0),AW=G0E.next();!AW.done;AW= G0E.next()){var nT=AW.value,DX={itag:nT.itag,type:nT.mimeType,quality:nT.quality},beY=nT.url;beY&&(DX.url=beY);var Ye=lU(nT),Y2q=Ye.VG,rT9=Ye.Fd,jPU=Ye.s;Ye.UF&&(DX.url=Y2q,DX.sp=rT9,DX.s=jPU);Qr.push(g.GF(DX))}J.OQ=Qr.join(",")}var Yk=pm.hlsFormats;if(Yk){var tvk=DD||null,rn={};if(tvk){var ru=tvk.audioPairingConfig;if(ru&&ru.pairs)for(var xk2=g.K(ru.pairs),jS=xk2.next();!jS.done;jS=xk2.next()){var Jm8=jS.value,mi=Jm8.videoItag;rn[mi]||(rn[mi]=[]);rn[mi].push(Jm8.audioItag)}}for(var oo8={},R68=g.K(Yk), Vd=R68.next();!Vd.done;Vd=R68.next()){var NDB=Vd.value;oo8[NDB.itag]=NDB.bitrate}for(var CsQ=[],XrQ=g.K(Yk),gu=XrQ.next();!gu.done;gu=XrQ.next()){var tT=gu.value,M4={itag:tT.itag,type:tT.mimeType,url:tT.url,bitrate:tT.bitrate,width:tT.width,height:tT.height,fps:tT.fps},jM=tT.audioTrack;if(jM){var iT8=jM.displayName;iT8&&(M4.name=iT8,M4.audio_track_id=jM.id,jM.audioIsDefault&&(M4.is_default="1"))}if(tT.drmFamilies){for(var uxQ=[],fXE=g.K(tT.drmFamilies),UB=fXE.next();!UB.done;UB=fXE.next())uxQ.push(sV[UB.value]); M4.drm_families=uxQ.join(",")}var mR=rn[tT.itag];if(mR&&mR.length){M4.audio_itag=mR.join(",");var TD7=oo8[mR[0]];TD7&&(M4.bitrate+=TD7)}var $Rk=wDP(tT);$Rk&&(M4.eotf=$Rk);tT.audioChannels&&(M4.audio_channels=tT.audioChannels);CsQ.push(g.GF(M4))}J.hlsFormats=CsQ.join(",")}var pi=pm.licenseInfos;if(pi&&pi.length>0){for(var HTg={},kkf=g.K(pi),l2=kkf.next();!l2.done;l2=kkf.next()){var voE=l2.value,WOg=voE.drmFamily,Sc2=voE.url;WOg&&Sc2&&(HTg[sV[WOg]]=Sc2)}J.xi=HTg}var LOn=pm.drmParams;LOn&&(J.drmParams= LOn);var IX7=pm.dashManifestUrl;IX7&&(J.H1=g.bD(IX7,{cpn:J.clientPlaybackNonce}));var FO2=pm.hlsManifestUrl;FO2&&(J.hlsvp=FO2);var EoP=pm.probeUrl;EoP&&(J.probeUrl=E_(g.bD(EoP,{cpn:J.clientPlaybackNonce})));var MlB=pm.serverAbrStreamingUrl;MlB&&(J.V4=new g.jB(MlB,!0))}var KOg=J.playerResponse.trackingParams;KOg&&(J.VO=KOg);var tj=J.playerResponse.videoDetails;if(tj){var Kz=R,PN=tj.videoId;PN&&(J.videoId=PN,Kz.video_id||(Kz.video_id=PN));var aXQ=tj.channelId;aXQ&&(J.D.uid=aXQ.substring(2));var zI= tj.title;zI&&(J.title=zI,Kz.title||(Kz.title=zI));var eS=tj.lengthSeconds;eS&&(J.lengthSeconds=Number(eS),Kz.length_seconds||(Kz.length_seconds=eS));var QDB=tj.keywords;QDB&&(J.keywords=UNB(QDB));var wu=tj.channelId;wu&&(J.ud=wu,Kz.ucid||(Kz.ucid=wu));var noY=tj.viewCount;noY&&(J.rawViewCount=Number(noY));var cN=tj.author;cN&&(J.author=cN,Kz.author||(Kz.author=cN));var DRg=tj.shortDescription;DRg&&(J.shortDescription=DRg);var sDk=tj.isCrawlable;sDk&&(J.isListed=sDk);var BDE=tj.musicVideoType;BDE&& (J.musicVideoType=BDE);var hW=tj.isLive;hW!=null&&(J.isLivePlayback=hW);if(hW||tj.isUpcoming)J.isPremiere=!tj.isLiveContent;var OTE=tj.thumbnail;OTE&&(J.X=Bm(OTE));var ZTn=tj.isExternallyHostedPodcast;ZTn&&(J.isExternallyHostedPodcast=ZTn);var yd=tj.viewerLivestreamJoinPosition;if(yd==null?0:yd.utcTimeMillis)J.pg=fK(yd.utcTimeMillis);var dRE=DD||null,GI=R;tj.isLiveDefaultBroadcast&&(J.isLiveDefaultBroadcast=!0);tj.isUpcoming&&(J.isUpcoming=!0);if(tj.isPostLiveDvr){J.SD=!0;var qcn=tj.latencyClass; qcn&&(J.latencyClass=hrE[qcn]||"UNKNOWN");tj.isLowLatencyLiveStream&&(J.isLowLatencyLiveStream=!0)}else{var b2=!1;if(J.oB)J.allowLiveDvr=vH()?!0:fI&&uY<5?!1:!0,J.isLivePlayback=!0;else if(tj.isLive){GI.livestream="1";J.allowLiveDvr=tj.isLiveDvrEnabled?vH()?!0:fI&&uY<5?!1:!0:!1;J.partnerId=27;tj.isLowLatencyLiveStream&&(J.isLowLatencyLiveStream=!0);var Yc7=tj.latencyClass;Yc7&&(J.latencyClass=hrE[Yc7]||"UNKNOWN");var rmg=tj.liveChunkReadahead;rmg&&(J.liveChunkReadahead=rmg);var jC=dRE&&dRE.livePlayerConfig; if(jC){jC.hasSubfragmentedFmp4&&(J.hasSubfragmentedFmp4=!0);jC.hasSubfragmentedWebm&&(J.z3=!0);jC.defraggedFromSubfragments&&(J.defraggedFromSubfragments=!0);var jDE=jC.liveExperimentalContentId;jDE&&(J.liveExperimentalContentId=Number(jDE));var mRY=jC.isLiveHeadPlayable;J.T("html5_live_head_playable")&&mRY!=null&&(J.isLiveHeadPlayable=mRY)}b2=!0}else tj.isUpcoming&&(b2=!0);b2&&(J.isLivePlayback=!0,GI.adformat&&GI.adformat.split("_")[1]!=="8"||J.tN.push("heartbeat"),J.s$=!0)}var Vln=tj.isPrivate; Vln!==void 0&&(J.isPrivate=W1(J.isPrivate,Vln))}if(G){var goB=tj||null,URg=!1,m$=G.errorScreen;URg=m$&&(m$.playerLegacyDesktopYpcOfferRenderer||m$.playerLegacyDesktopYpcTrailerRenderer||m$.ypcTrailerRenderer)?!0:goB&&goB.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(G.status);if(!URg){J.errorCode=hhE(G.errorCode)||"auth";var V$=m$&&m$.playerErrorMessageRenderer;if(V$){J.playerErrorMessageRenderer=V$;var prn=V$.reason;prn&&(J.errorReason=g.Yn(prn));var tW=V$.subreason;tW&&(J.l4= g.Yn(tW),J.lm=tW)}else J.errorReason=G.reason||null;var xk=G.status;if(xk==="LOGIN_REQUIRED")J.errorDetail="1";else if(xk==="CONTENT_CHECK_REQUIRED")J.errorDetail="2";else if(xk==="AGE_CHECK_REQUIRED"){var lXY=G.errorScreen,Psg=lXY&&lXY.playerKavRenderer;J.errorDetail=Psg&&Psg.kavUrl?"4":"3"}else J.errorDetail=G.isBlockedInRestrictedMode?"5":"0"}}var z6f=J.playerResponse.interstitialPods;z6f&&fPg(J,z6f);J.pC&&J.eventId&&(J.pC=Fi(J.pC,{ei:J.eventId}));var JkQ=J.playerResponse.captions;if(JkQ&&JkQ.playerCaptionsTracklistRenderer)a:{var af= JkQ.playerCaptionsTracklistRenderer;J.captionTracks=[];if(af.captionTracks)for(var e6P=g.K(af.captionTracks),oEk=e6P.next();!oEk.done;oEk=e6P.next()){var QL=oEk.value,wrB=mNY(QL.baseUrl);if(!wrB)break a;var Rgn={is_translateable:!!QL.isTranslatable,languageCode:QL.languageCode,languageName:QL.name&&g.Yn(QL.name),url:wrB,vss_id:QL.vssId,kind:QL.kind};Rgn.name=QL.trackName;Rgn.displayName=QL.name&&g.Yn(QL.name);J.captionTracks.push(new g.ad(Rgn))}J.DN=af.audioTracks||[];J.MG=af.defaultAudioTrackIndex|| 0;J.h_=[];if(af.translationLanguages)for(var cmE=g.K(af.translationLanguages),NYE=cmE.next();!NYE.done;NYE=cmE.next()){var Vb=NYE.value,rW={};rW.languageCode=Vb.languageCode;rW.languageName=g.Yn(Vb.languageName);if(Vb.translationSourceTrackIndices){rW.translationSourceTrackIndices=[];for(var h68=g.K(Vb.translationSourceTrackIndices),C8E=h68.next();!C8E.done;C8E=h68.next())rW.translationSourceTrackIndices.push(C8E.value)}if(Vb.excludeAudioTrackIndices){rW.excludeAudioTrackIndices=[];for(var ymP=g.K(Vb.excludeAudioTrackIndices), XgB=ymP.next();!XgB.done;XgB=ymP.next())rW.excludeAudioTrackIndices.push(XgB.value)}J.h_.push(rW)}J.HR=[];if(af.defaultTranslationSourceTrackIndices)for(var GkP=g.K(af.defaultTranslationSourceTrackIndices),i2B=GkP.next();!i2B.done;i2B=GkP.next())J.HR.push(i2B.value);J.YJ=!!af.contribute&&!!af.contribute.captionsMetadataRenderer}J.clipConfig=J.playerResponse.clipConfig;J.clipConfig&&J.clipConfig.startTimeMs!=null&&(J.Ob=Number(J.clipConfig.startTimeMs)*.001);J.playerResponse&&J.playerResponse.playerConfig&& J.playerResponse.playerConfig.webPlayerConfig&&J.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&$NE(J,J.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var bTf;J.compositeLiveIngestionOffsetToken=(bTf=J.playerResponse.playbackTracking)==null?void 0:bTf.compositeLiveIngestionOffsetToken;var tl7;J.compositeLiveStatusToken=(tl7=J.playerResponse.playbackTracking)==null?void 0:tl7.compositeLiveStatusToken}R5(J,R);R.queue_info&&(J.queueInfo=R.queue_info);var xRB= R.hlsdvr;xRB!=null&&(J.allowLiveDvr=Number(xRB)===1?vH()?!0:fI&&uY<5?!1:!0:!1);J.adQueryId=R.ad_query_id||null;J.S4||(J.S4=R.encoded_ad_safety_reason||null);J.m0=R.agcid||null;J.CD=R.ad_id||null;J.SE=R.ad_sys||null;J.qH=R.encoded_ad_playback_context||null;J.OV=W1(J.OV,R.infringe||R.muted);J.A0=R.authkey;J.Vs=R.authuser;J.mutedAutoplay=W1(J.mutedAutoplay,R&&R.playmuted);J.LD=W1(J.LD,R&&R.mutedautoplay);var gn=R.length_seconds;gn&&(J.lengthSeconds=typeof gn==="string"?fK(gn):gn);if(J.isAd()||J.i4|| !g.KI(g.cH(J.OB)))J.endSeconds=LI(J.endSeconds,J.Oa||R.end||R.endSeconds);else{var mgV=g.cH(J.OB),UL=J.lengthSeconds;switch(mgV){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":UL>30?J.limitedPlaybackDurationInSeconds=30:UL<30&&UL>10&&(J.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":J.limitedPlaybackDurationInSeconds=UL*.2}}J.VO=Ic(J.VO,R.itct);J.aq=W1(J.aq,R.noiba);J.ye=W1(J.ye,R.is_live_destination);J.isLivePlayback=W1(J.isLivePlayback, R.live_playback);J.enableServerStitchedDai=J.enableServerStitchedDai&&J.MR();R.isUpcoming&&(J.isUpcoming=W1(J.isUpcoming,R.isUpcoming));J.SD=W1(J.SD,R.post_live_playback);J.PC&&(J.SD=!1);J.isMdxPlayback=W1(J.isMdxPlayback,R.mdx);var pu=R.mdx_control_mode;pu&&(J.mdxControlMode=typeof pu==="number"?pu:fK(pu));J.isInlinePlaybackNoAd=W1(J.isInlinePlaybackNoAd,R.is_inline_playback_no_ad);J.ji=LI(J.ji,R.reload_count);J.reloadReason=Ic(J.reloadReason,R.reload_reason);J.Ix=W1(J.Ix,R.show_content_thumbnail); J.H8=W1(J.H8,R.utpsa);J.cycToken=R.cyc||null;J.z_=R.tkn||null;var Jo7=sA(R);Object.keys(Jo7).length>0&&(J.X=Jo7);J.dn=Ic(J.dn,R.vvt);J.mdxEnvironment=Ic(J.mdxEnvironment,R.mdx_environment);R.source_container_playlist_id&&(J.sourceContainerPlaylistId=R.source_container_playlist_id);R.serialized_mdx_metadata&&(J.serializedMdxMetadata=R.serialized_mdx_metadata);J.Nc=R.osig;J.eventId||(J.eventId=R.eventid);J.osid||(J.osid=R.osid);J.playlistId=Ic(J.playlistId,R.list);R.index&&(J.playlistIndex=J.playlistIndex=== void 0?LI(0,R.index):LI(J.playlistIndex,R.index));J.dT=R.pyv_view_beacon_url;J.Yl=R.pyv_quartile25_beacon_url;J.qZ=R.pyv_quartile50_beacon_url;J.qv=R.pyv_quartile75_beacon_url;J.vc=R.pyv_quartile100_beacon_url;var oBY=R.session_data;!J.Yd&&oBY&&(J.Yd=kq(oBY,"&").feature);J.isFling=LI(J.isFling?1:0,R.is_fling)===1;J.vnd=LI(J.vnd,R.vnd);J.forceAdsUrl=Ic(J.forceAdsUrl,R.force_ads_url);J.Vp=Ic(J.Vp,R.ctrl);J.RE=Ic(J.RE,R.ytr);J.n8=R.ytrcc;J.kd=R.ytrexp;J.T_=R.ytrext;J.Xn=Ic(J.Xn,R.adformat);J.hV=Ic(J.hV, R.attrib);J.slotPosition=LI(J.slotPosition,R.slot_pos);J.breakType=R.break_type;J.nw=W1(J.nw,R.ssrt);J.videoId=E7(R)||J.videoId;J.S=Ic(J.S,R.vss_credentials_token);J.O2=Ic(J.O2,R.vss_credentials_token_type);J.Vg=W1(J.Vg,R.audio_only);J.GW=W1(J.GW,R.aac_high);J.IL=W1(J.IL,R.prefer_low_quality_audio);J.Ea=W1(J.Ea,R.uncap_inline_quality);J.T("html5_enable_qoe_cat_list")?R.qoe_cat&&(J.P_=J.P_.concat(R.qoe_cat.split(","))):J.t2=Ic(J.t2,R.qoe_cat);J.Vw=W1(J.Vw,R.download_media);var RxE=R.prefer_gapless; var Vj8=RxE!=null?W1(J.W,RxE):J.W?J.W:J.OB.preferGapless&&J.OB.supportsGaplessShorts();J.W=Vj8;TXg(J.playerResponse)&&(J.tN.push("ad"),J.T("html5_ssap_pacf_qoe_ctmp")&&J.n5());var NT2=R.adaptive_fmts;NT2&&(J.adaptiveFormats=NT2,J.u3("adpfmts",{},!0));var CN8=R.allow_embed;CN8&&(J.allowEmbed=Number(CN8)===1);var XPk=R.backgroundable;XPk&&(J.backgroundable=Number(XPk)===1);var i_E=R.autonav;i_E&&(J.isAutonav=Number(i_E)===1);var ugg=R.autoplay;ugg&&(J.Pk=Number(ugg)===1,J.Pa=J.Pk,CA(J,"c"));var fkf= R.iv_load_policy;fkf&&(J.annotationsLoadPolicy=S0(J.annotationsLoadPolicy,fkf,h6));var TTY=R.cc_lang_pref;TTY&&(J.captionsLanguagePreference=Ic(TTY,J.captionsLanguagePreference));var $Jk=R.cc_load_policy;$Jk&&(J.t7=S0(J.t7,$Jk,h6));var H_n;J.deviceCaptionsOn=(H_n=R.device_captions_on)!=null?H_n:void 0;var kGB;J.Bj=(kGB=R.device_captions_lang_pref)!=null?kGB:"";var vBE;J.Ja=(vBE=R.viewer_selected_caption_langs)!=null?vBE:[];if(!J.T("html5_enable_ssap_entity_id")){var WvY=R.cached_load;WvY&&(J.EP=W1(J.EP, WvY))}if(R.dash==="0"||R.dash===0||R.dash===!1)J.BR=!0;var S8P=R.dashmpd;S8P&&(J.H1=g.bD(S8P,{cpn:J.clientPlaybackNonce}));var Lvg=R.delay;Lvg&&(J.VK=fK(Lvg));var uBk=J.Oa||R.end;if(J.VR?uBk!=null:uBk!=void 0)J.clipEnd=LI(J.clipEnd,uBk);var IkE=R.fmt_list;IkE&&(J.ZC=IkE);R.heartbeat_preroll&&J.tN.push("heartbeat");J.qj=-Math.floor(Math.random()*10);J.Ou=-Math.floor(Math.random()*40);var Fv8=R.is_listed;Fv8&&(J.isListed=W1(J.isListed,Fv8));var EBQ=R.is_private;EBQ&&(J.isPrivate=W1(J.isPrivate,EBQ)); var MwB=R.is_dni;MwB&&(J.wL=W1(J.wL,MwB));var Kv8=R.dni_color;Kv8&&(J.RF=Ic(J.RF,Kv8));var akY=R.pipable;akY&&(J.pipable=W1(J.pipable,akY));J.Gp=J.pipable&&J.OB.tp;J.kE=J.Gp&&!J.OB.showMiniplayerButton;var Qqg=R.paid_content_overlay_duration_ms;Qqg&&(J.paidContentOverlayDurationMs=fK(Qqg));var nBQ=R.paid_content_overlay_text;nBQ&&(J.paidContentOverlayText=nBQ);var DJf=R.url_encoded_fmt_stream_map;DJf&&(J.OQ=DJf);var sqn=R.hls_formats;sqn&&(J.hlsFormats=sqn);var BT2=R.hlsvp;BT2&&(J.hlsvp=BT2);var lh= R.live_start_walltime;lh&&(J.s1=typeof lh==="number"?lh:fK(lh));var PE=R.live_manifest_duration;PE&&(J.IE=typeof PE==="number"?PE:fK(PE));var O_Y=R.player_params;O_Y&&(J.playerParams=O_Y);var Z_Q=R.partnerid;Z_Q&&(J.partnerId=LI(J.partnerId,Z_Q));var dJn=R.probe_url;dJn&&(J.probeUrl=E_(g.bD(dJn,{cpn:J.clientPlaybackNonce})));var f78=R.pyv_billable_url;f78&&MdE(f78)&&(J.Xp=f78);var TYk=R.pyv_conv_url;TYk&&MdE(TYk)&&(J.t6=TYk);pA2(J,R);J.startSeconds>0?J.T("html5_log_start_seconds_inconsistency")&& J.startSeconds!==(J.Ob||J.Qw||R.start||R.startSeconds)&&J.u3("lss",{css:J.startSeconds,pcss:J.Ob,iss:J.Qw,ps:R.start||void 0,pss:R.startSeconds||void 0}):(J.startSeconds=LI(J.startSeconds,J.Ob||J.Qw||R.start||R.startSeconds),J.TW=J.startSeconds);if(!(J.liveUtcStartSeconds&&J.liveUtcStartSeconds>0)){var q8Q=R.live_utc_start;if(q8Q!=null)J.liveUtcStartSeconds=Number(q8Q);else{var $PY=J.startSeconds;$PY&&isFinite($PY)&&$PY>1E9&&(J.liveUtcStartSeconds=J.startSeconds)}}if(!(J.liveUtcStartSeconds&&J.liveUtcStartSeconds> 0)){var Ao2=R.utc_start_millis;Ao2&&(J.liveUtcStartSeconds=Number(Ao2)*.001)}var Y8E=R.stream_time_start_millis;Y8E&&(J.wN=Number(Y8E)*.001);var H2Y=J.Qw||R.start;(J.VR?H2Y==null||Number(R.resume)===1:H2Y==void 0||R.resume=="1")||J.isLivePlayback||(J.clipStart=LI(J.clipStart,H2Y));var roY=R.url_encoded_third_party_media;roY&&(J.F$=SQ(roY));var kEk=R.ypc_offer_button_formatted_text;if(kEk){var jqg=JSON.parse(kEk);J.Y_=jqg!=null?jqg:null;J.Nh=kEk}var mJE=R.ypc_offer_button_text;mJE&&(J.jq=mJE);var Vwg= R.ypc_offer_description;Vwg&&(J.jw=Vwg);var gBY=R.ypc_offer_headline;gBY&&(J.oZ=gBY);var UJP=R.ypc_full_video_message;UJP&&(J.yd=UJP);var pPE=R.ypc_offer_id;pPE&&(J.JU=pPE);var lkE=R.ypc_buy_url;lkE&&(J.lF=lkE);var PNn=R.ypc_item_thumbnail;PNn&&(J.rY=PNn);var zxB=R.ypc_item_title;zxB&&(J.aX=zxB);var ex8=R.ypc_item_url;ex8&&(J.Lg=ex8);var wP7=R.ypc_vid;wP7&&(J.E$=wP7);R.ypc_overlay_timeout&&(J.oX=Number(R.ypc_overlay_timeout));var cog=R.ypc_trailer_player_vars;cog&&(J.gU=WR(cog));var hxf=R.ypc_original_itct; hxf&&(J.dQ=hxf);J.ud=Ic(J.ud,R.ucid);R.baseUrl&&(J.D.baseUrl=R.baseUrl);R.uid&&(J.D.uid=R.uid);R.oeid&&(J.D.oeid=R.oeid);R.ieid&&(J.D.ieid=R.ieid);R.ppe&&(J.D.ppe=R.ppe);R.engaged&&(J.D.engaged=R.engaged);R.subscribed&&(J.D.subscribed=R.subscribed);J.D.focEnabled=W1(J.D.focEnabled,R.focEnabled);J.D.rmktEnabled=W1(J.D.rmktEnabled,R.rmktEnabled);J.l0=R.storyboard_spec||null;J.wJ=R.live_storyboard_spec||null;J.D$=R.iv_endscreen_url||null;J.b0=W1(J.b0,R.iv3_module);J.s$=W1(J.s$,R.ypc_license_checker_module); J.Jn=W1(J.Jn,R.ypc_module);J.ZI=W1(J.ZI,R.ypc_clickwrap_module);J.Jn&&J.tN.push("ypc");J.ZI&&J.tN.push("ypc_clickwrap");J.jY={video_id:R.video_id,eventid:R.eventid,cbrand:R.cbrand,cbr:R.cbr,cbrver:R.cbrver,c:R.c,cver:R.cver,ctheme:R.ctheme,cplayer:R.cplayer,cmodel:R.cmodel,cnetwork:R.cnetwork,cos:R.cos,cosver:R.cosver,cplatform:R.cplatform,user_age:R.user_age,user_display_image:R.user_display_image,user_display_name:R.user_display_name,user_gender:R.user_gender,csi_page_type:R.csi_page_type,csi_service_name:R.csi_service_name, enablecsi:R.enablecsi,enabled_engage_types:R.enabled_engage_types};jAB(J,R);var yo2=R.cotn;yo2&&(J.cotn=yo2);if(ySB(J))fA(J)&&(J.isLivePlayback&&J.H1&&(J.LJ=!0),J.HC&&(J.NI=!0));else if(Gwn(J))J.LJ=!0;else{var twg,xJE,Je7=((twg=J.playerResponse)==null?void 0:(xJE=twg.streamingData)==null?void 0:xJE.adaptiveFormats)||[];if(Je7.length>0)var Br=bf8(J,Je7);else{var R$Q=J.adaptiveFormats;if(R$Q&&!fA(J)){TH(J,"html5_enable_cobalt_experimental_vp9_decoder")&&(UV=!0);var gx=$z(R$Q),vEB=J.xi,NL2=J.lengthSeconds, gwE=J.isLivePlayback,Oc=J.SD,Um=J.OB,Ugd=uS2(gx);if(gwE||Oc){var CTf=Um==null?void 0:Um.experiments,Uy=new n0("",CTf,!0);Uy.MR=!0;Uy.isManifestless=!0;Uy.J=!Oc;Uy.isLive=!Oc;Uy.SD=Oc;for(var XzB=g.K(gx),WBE=XzB.next();!WBE.done;WBE=XzB.next()){var pL=WBE.value,iDB=OV(pL,vEB),jb=Zj(pL.url,pL.sp,pL.s),ubk=jb.get("id");ubk&&ubk.includes("%7E")&&(Uy.W=!0);var fc2=void 0,ptd=(fc2=CTf)==null?void 0:fc2.b3("html5_max_known_end_time_rebase"),lrd=Number(pL.target_duration_sec)||5,PuU=Number(pL.max_dvr_duration_sec)|| 14400,TLf=Number(jb.get("mindsq")||jb.get("min_sq")||"0"),$fk=Number(jb.get("maxdsq")||jb.get("max_sq")||"0")||Infinity;Uy.Up=Uy.Up||TLf;Uy.Q7=Uy.Q7||$fk;var zoE=!I6(iDB.mimeType);jb&&K0(Uy,new f0(jb,iDB,{FB:lrd,AD:zoE,YD:PuU,Up:TLf,Q7:$fk,f1:300,SD:Oc,Yw:ptd}))}var HDB=Uy}else{if(Ugd==="FORMAT_STREAM_TYPE_OTF"){var eM=NL2;eM=eM===void 0?0:eM;var lw=new n0("",Um==null?void 0:Um.experiments,!1);lw.duration=eM||0;for(var ke8=g.K(gx),SfE=ke8.next();!SfE.done;SfE=ke8.next()){var PC=SfE.value,LBn=OV(PC, vEB,lw.duration),I7E=Zj(PC.url,PC.sp,PC.s);if(I7E)if(LBn.streamType==="FORMAT_STREAM_TYPE_OTF")K0(lw,new T2(I7E,LBn,"sq/0"));else{var eoL=pq(PC.init),wtJ=pq(PC.index);K0(lw,new FQ(I7E,LBn,eoL,wtJ))}}lw.isOtf=!0;var vx8=lw}else{var wn=NL2;wn=wn===void 0?0:wn;var cE=new n0("",Um==null?void 0:Um.experiments,!1);cE.duration=wn||0;for(var WGk=g.K(gx),FBn=WGk.next();!FBn.done;FBn=WGk.next()){var zg=FBn.value,cTd=OV(zg,vEB,cE.duration),hoJ=pq(zg.init),yTd=pq(zg.index),SYf=Zj(zg.url,zg.sp,zg.s);SYf&&K0(cE, new FQ(SYf,cTd,hoJ,yTd))}vx8=cE}HDB=vx8}var LG7=HDB;if(gx.length>0){var Ick=gx[0];if(J.N().playerStyle==="hangouts-meet"&&Ick.url){var GzV=g.L4(Ick.url);J.qz=J.qz||Number(GzV.expire)}}var bYk=J.isLivePlayback&&!J.SD&&!J.PC&&!J.isPremiere;J.T("html5_live_head_playable")&&(!HJ(J)&&bYk&&J.u3("missingLiveHeadPlayable",{}),J.OB.nC==="yt"&&(LG7.pC=!0));Br=LG7}else Br=null;J.u3("pafmts",{isManifestFilled:!!Br})}if(Br){tq2(J,Br);var FG8=!0}else FG8=!1;FG8?J.enableServerStitchedDai=J.enableServerStitchedDai&& kz(J):J.H1&&(J.OB.nC==="yt"&&J.MR()&&J.T("drm_manifestless_unplugged")&&J.T("html5_deprecate_manifestful_fallback")?J.u3("deprecateMflFallback",{}):J.LJ=!0)}var MnB=R.adpings;MnB&&(J.A_=MnB?WR(MnB):null);var Exk=R.feature;Exk&&(J.TG=Exk);var MHg=R.referrer;MHg&&(J.referrer=MHg);J.clientScreenNonce=Ic(J.clientScreenNonce,R.csn);J.Lp=LI(J.Lp,R.root_ve_type);J.bT=LI(J.bT,R.kids_age_up_mode);J.VR||R.kids_app_info==void 0||(J.kidsAppInfo=R.kids_app_info);J.VR&&R.kids_app_info!=null&&(J.kidsAppInfo=R.kids_app_info); J.TK=W1(J.TK,R.upg_content_filter_mode);J.unpluggedFilterModeType=LI(J.unpluggedFilterModeType,R.unplugged_filter_mode_type);var KG2=R.unplugged_location_info;KG2&&(J.nC=KG2);var acQ=R.unplugged_partner_opt_out;acQ&&(J.Ua=Ic("",acQ));J.yM=W1(J.yM,R.disable_watch_next);J.U2=Ic(J.U2,R.internal_ip_override);J.DQ=!!R.is_yto_interstitial;(J.interstitials.length||J.DQ)&&J.tN.push("yto");var QnB=R.bd;QnB&&(J.bd=QnB);var nxP;J.l3=(nxP=R.csi_timer)!=null?nxP:"";J.Ze=!!R.force_gvi;R.watchUrl&&(J.watchUrl=R.watchUrl); var m_=R.watch_endpoint;J.T("html5_attach_watch_endpoint_ustreamer_config")&&m_&&Gan(J,m_);if(m_==null?0:m_.ustreamerConfig)J.ra=Ei(m_.ustreamerConfig);var DfB,snQ,BLg=m_==null?void 0:(DfB=m_.loggingContext)==null?void 0:(snQ=DfB.qoeLoggingContext)==null?void 0:snQ.serializedContextData;BLg&&(J.Kq=BLg);g.V_(J.OB)&&J.OB.Ix&&(J.embedsRct=Ic(J.embedsRct,R.rct),J.embedsRctn=Ic(J.embedsRctn,R.rctn));J.ZY=J.ZY||!!R.pause_at_start;R.default_active_source_video_id&&(J.defaultActiveSourceVideoId=R.default_active_source_video_id)}; gXn=function(J,R,N){var C,X=(C=R.cpnInfo)==null?void 0:C.cpn;J.playerResponseCpn=X!=null?X:"";g.vJ(J)&&!X&&J.yE("ssei","eim_"+J.clientPlaybackNonce);var u;return((u=R.cacheMetadata)==null?0:u.isCacheHit)||J.EP||!X?"":(xN2.has(X)?N="":(R=JOf.push(X),xN2.add(X),R>(N!=null?N:50)&&(N=JOf.shift())&&xN2.delete(N),N=X),X!==N&&J.yE("ssei","dcpn_"+X+"_"+N+"_"+J.clientPlaybackNonce),N)}; R5=function(J,R){var N=R.raw_watch_next_response;if(!N){var C=R.watch_next_response;C&&(N=JSON.parse(C))}if(N){J.T7=N;var X=J.T7.playerCueRangeSet;X&&g.Xr(J,X);var u=J.T7.playerOverlays;if(u){var f=u.playerOverlayRenderer;if(f){var H=f.autonavToggle;H&&(J.autoplaySwitchButtonRenderer=g.z(H,oKP),J.T("web_player_autonav_use_server_provided_state")&&Ru2(J)&&(J.autonavState=J.autoplaySwitchButtonRenderer.enabled?2:1));var k=f.videoDetails;if(k){var v=k.embeddedPlayerOverlayVideoDetailsRenderer;var W= k.playerOverlayVideoDetailsRenderer;W&&(W.title&&(R.title=g.Yn(W.title)),W.subtitle&&(R.subtitle=g.Yn(W.subtitle)))}g.zn(J.OB)&&(J.v7=!!f.addToMenu);N$f(J,f.shareButton);f.startPosition&&f.endPosition&&(J.progressBarStartPosition=f.startPosition,J.progressBarEndPosition=f.endPosition);var S=f.gatedActionsOverlayRenderer;S&&(J.Uc=g.z(S,CUE));var L,I,F,a=g.z((L=J.getWatchNextResponse())==null?void 0:(I=L.playerOverlays)==null?void 0:(F=I.playerOverlayRenderer)==null?void 0:F.infoPanel,XV7);if(a){J.zR= Number(a==null?void 0:a.durationMs)||NaN;if(a==null?0:a.infoPanelOverviewViewModel)J.rN=a==null?void 0:a.infoPanelOverviewViewModel;if(a==null?0:a.infoPanelDetailsViewModel)J.Vc=a==null?void 0:a.infoPanelDetailsViewModel}J.showSeekingControls=!!f.showSeekingControls}}var n,B,Z=(n=J.getWatchNextResponse())==null?void 0:(B=n.contents)==null?void 0:B.twoColumnWatchNextResults;if(Z){var A=Z.desktopOverlay&&g.z(Z.desktopOverlay,iPB);A&&(A.suppressShareButton&&(J.showShareButton=!1),A.suppressWatchLaterButton&& (J.v7=!1))}v&&uTk(J,R,v);var V=LI(0,R.autoplay_count),p=J.getWatchNextResponse(),b,w=(b=p.contents)==null?void 0:b.twoColumnWatchNextResults,RQ,$E,G,e=(RQ=p.playerOverlays)==null?void 0:($E=RQ.playerOverlayRenderer)==null?void 0:(G=$E.autoplay)==null?void 0:G.playerOverlayAutoplayRenderer,t=kwf(J),E,y=(E=p.contents)==null?void 0:E.singleColumnWatchNextResults;if(y){var b8;if(((b8=y.autoplay)==null?0:b8.autoplay)&&!y.playlist){var FV=y.autoplay.autoplay.sets,Hl={},Of=new g.YC(J.N()),oU=null,SE;if(FV){for(var tk= g.K(FV),D=tk.next();!D.done;D=tk.next()){var O=D.value.autoplayVideoRenderer;if(O&&O.compactVideoRenderer){oU=O.compactVideoRenderer;break}}if(SE=FV[0].autoplayVideo){var d=SE.clickTrackingParams;d&&(Hl.itct=d);Hl.autonav="1";Hl.playnext=String(V)}}else Hl.feature="related-auto";var r=g.z(SE,g.WJ);if(oU){Of.videoId=oU.videoId;var U=oU.shortBylineText;U&&(Of.author=g.Yn(U));var Jk=oU.title;Jk&&(Of.title=g.Yn(Jk))}else r!=null&&r.videoId&&(Of.videoId=r.videoId);Of.oR=Hl;J.suggestions=[];J.xJ=Of}}if(t){for(var i8= [],C2=g.K(t),m=C2.next();!m.done;m=C2.next()){var Hg=m.value,FB=void 0,u8=null;if(Hg.endScreenVideoRenderer){var jn=Hg.endScreenVideoRenderer,uP=jn.title;u8=new g.YC(J.N());u8.videoId=jn.videoId;u8.lengthSeconds=jn.lengthInSeconds||0;var p8=jn.publishedTimeText;p8&&(u8.publishedTimeText=g.Yn(p8));var vb=jn.shortBylineText;vb&&(u8.author=g.Yn(vb));var cg=jn.shortViewCountText;cg&&(u8.shortViewCount=g.Yn(cg));if(uP){u8.title=g.Yn(uP);var mS=uP.accessibility;if(mS){var vh=mS.accessibilityData;vh&&vh.label&& (u8.ariaLabel=vh.label)}}var li=jn.navigationEndpoint;if(li){FB=li.clickTrackingParams;var Ph=g.z(li,g.WJ),eF=g.z(li,g.oH);Ph?u8.Ei=Ph:eF!=null&&(u8.watchUrl=eF.url)}var Dr=jn.thumbnailOverlays;if(Dr)for(var zs=g.K(Dr),bu=zs.next();!bu.done;bu=zs.next()){var wq=bu.value.thumbnailOverlayTimeStatusRenderer;if(wq)if(wq.style==="LIVE"){u8.isLivePlayback=!0;break}else if(wq.style==="UPCOMING"){u8.isUpcoming=!0;break}}u8.X=Bm(jn.thumbnail)}else if(Hg.endScreenPlaylistRenderer){var LK=Hg.endScreenPlaylistRenderer, gt=LK.navigationEndpoint;if(!gt)continue;var Vt=g.z(gt,g.WJ);if(!Vt)continue;var L6=Vt.videoId;u8=new g.Az(J.N());u8.playlistId=LK.playlistId;u8.playlistLength=Number(LK.videoCount)||0;u8.K=L6||null;u8.videoId=L6;var Us=LK.title;Us&&(u8.title=g.Yn(Us));var cO=LK.shortBylineText;cO&&(u8.author=g.Yn(cO));FB=gt.clickTrackingParams;u8.X=Bm(LK.thumbnail)}u8&&(FB&&(u8.sessionData={itct:FB}),i8.push(u8))}J.suggestions=i8}if(e){J.oP=!!e.preferImmediateRedirect;J.mu=J.mu||!!e.webShowNewAutonavCountdown;J.Gu= J.Gu||!!e.webShowBigThumbnailEndscreen;if(J.mu||J.Gu){var gZ=w||null,uf=new g.YC(J.N());uf.videoId=e.videoId;var s2=e.videoTitle;if(s2){uf.title=g.Yn(s2);var X9=s2.accessibility;if(X9){var j4=X9.accessibilityData;j4&&j4.label&&(uf.ariaLabel=j4.label)}}var G6=e.byline;G6&&(uf.author=g.Yn(G6));var Wb=e.publishedTimeText;Wb&&(uf.publishedTimeText=g.Yn(Wb));var yp=e.shortViewCountText;yp&&(uf.shortViewCount=g.Yn(yp));var G0=e.thumbnailOverlays;if(G0)for(var bM=g.K(G0),D4=bM.next();!D4.done;D4=bM.next()){var If= D4.value.thumbnailOverlayTimeStatusRenderer;if(If)if(If.style==="LIVE"){uf.isLivePlayback=!0;break}else if(If.style==="UPCOMING"){uf.isUpcoming=!0;break}else if(If.style==="DEFAULT"&&If.text){uf.lengthText=g.Yn(If.text);var ty=If.text.accessibility;if(ty){var sm=ty.accessibilityData;sm&&sm.label&&(uf.uN=sm.label||"")}break}}uf.X=Bm(e.background);var BC=e.nextButton;if(BC){var xY=BC.buttonRenderer;if(xY){var Jm=xY.navigationEndpoint;if(Jm){var oD=g.z(Jm,g.WJ);oD&&(uf.Ei=oD)}}}if(e.topBadges){var RD= e.topBadges[0];if(RD){var NR=g.z(RD,f9k);NR&&NR.style==="BADGE_STYLE_TYPE_PREMIUM"&&(uf.t8k=!0)}}var CT=e.alternativeTitle;CT&&(uf.v$=g.Yn(CT));var m8={autonav:"1",playnext:String(V)};uf.playlistId&&(m8.autoplay="1");if(gZ){var nu,Xx,Dd,c7,B$=(nu=gZ.autoplay)==null?void 0:(Xx=nu.autoplay)==null?void 0:(Dd=Xx.sets)==null?void 0:(c7=Dd[0])==null?void 0:c7.autoplayVideo;if(B$){var is=B$.clickTrackingParams;is&&(m8.itct=is);var us=g.z(B$,g.WJ);us&&(uf.IQ=us)}}else if(e){var fT,Om,Tk,$o=(fT=e.nextButton)== null?void 0:(Om=fT.buttonRenderer)==null?void 0:(Tk=Om.navigationEndpoint)==null?void 0:Tk.clickTrackingParams;$o&&(m8.itct=$o)}m8.itct||(m8.feature="related-auto");uf.oR=m8;J.suggestions||(J.suggestions=[]);J.xJ=uf}e.countDownSecs!=null&&(J.dB=e.countDownSecs*1E3);e.countDownSecsForFullscreen!=null&&(J.lw=e.countDownSecsForFullscreen>=0?e.countDownSecsForFullscreen*1E3:-1);if(J.T("web_player_autonav_next_button_renderer")){var Hr;J.xf=(Hr=e.nextButton)==null?void 0:Hr.buttonRenderer}var ko;J.S9= (ko=e.cancelButton)==null?void 0:ko.buttonRenderer;J.T("web_autonav_color_transition")&&e.watchToWatchTransitionRenderer&&(J.watchToWatchTransitionRenderer=g.z(e.watchToWatchTransitionRenderer,T$E))}var Z4=kwf(J);if(Z4){var vr,sL,Wr,dx=Z4==null?void 0:(vr=Z4[0])==null?void 0:(sL=vr.endScreenVideoRenderer)==null?void 0:(Wr=sL.navigationEndpoint)==null?void 0:Wr.clickTrackingParams,Sl=g.S9(J);dx&&Sl&&(Sl.sessionData={itct:dx})}J.T7.currentVideoThumbnail&&(J.X=Bm(J.T7.currentVideoThumbnail));var LT, Vh,DD,g5,q3,Ov=(LT=J.T7)==null?void 0:(Vh=LT.contents)==null?void 0:(DD=Vh.twoColumnWatchNextResults)==null?void 0:(g5=DD.results)==null?void 0:(q3=g5.results)==null?void 0:q3.contents;if(Ov&&Ov[1]){var ZZ,dW,ID,Fn,q6=(ZZ=Ov[1].videoSecondaryInfoRenderer)==null?void 0:(dW=ZZ.owner)==null?void 0:(ID=dW.videoOwnerRenderer)==null?void 0:(Fn=ID.thumbnail)==null?void 0:Fn.thumbnails;q6&&q6.length&&(J.profilePicture=q6[q6.length-1].url)}var BE=E7(R),Fx,hn=(Fx=J.getWatchNextResponse())==null?void 0:Fx.onResponseReceivedEndpoints; if(hn)for(var Ec=g.K(hn),AV=Ec.next();!AV.done;AV=Ec.next()){var Ya=AV.value;g.z(Ya,LA)&&(J.yJ=g.z(Ya,LA));var En=g.z(Ya,$Ck),MR=void 0;if((MR=En)==null?0:MR.entityKeys)J.iN=En.entityKeys||[],En.visibleOnLoadKeys&&(J.visibleOnLoadKeys=En.visibleOnLoadKeys)}if(J.T("web_key_moments_markers")){var OL=g.I5.getState().entities,KT=g.DR("visibility_override","markersVisibilityOverrideEntity");var bH=By(OL,"markersVisibilityOverrideEntity",KT);J.Xk=(bH==null?void 0:bH.videoId)===(J.videoId||BE)&&(bH==null? 0:bH.visibilityOverrideMarkersKey)?bH.visibilityOverrideMarkersKey:J.visibleOnLoadKeys;J.visibleOnLoadKeys=[].concat(g.Q(J.Xk))}}}; Ru2=function(J){var R;return((R=J.autoplaySwitchButtonRenderer)==null?void 0:R.enabled)!==void 0}; HPE=function(J){return!!(J.V&&J.V.videoInfos&&J.V.videoInfos.length)}; g.Mn=function(J){var R=J.W;J.T("html5_gapless_unlimit_format_selection")&&Fr(J)&&(R=!1);var N=!!J.K&&J.K.MR,C=J.OB,X=J.hc(),u=EU(J),f=J.GW,H=R,k=J.isOtf();R=J.Pl();var v=J.oB,W=J.getUserAudio51Preference(),S=kjg(J),L=new Q6B(C);if(C.Si()||C.T("html5_logging_format_selection"))L.J=!0;L.HC=u;L.GW=f&&C.D;L.G7=W;g.Jf("windows nt 5.1")&&!g.tI&&(L.Z_=!0);if(u=X)u=g.T1(C)?QLk(C):!1;u&&(L.ma=!0);H&&(L.Z_=!0,L.VR=!0);k&&!C.T("html5_otf_prefer_vp9")&&(L.Z_=!0);C.playerStyle==="picasaweb"&&(k&&(L.Z_=!1),L.tN= !1);v&&(L.Z_=!0);YK(C.U,r$.CHANNELS)&&(C.T("html5_enable_aac51")&&(L.dn=!0),C.T("html5_enable_ac3")&&(L.Z=!0),C.T("html5_enable_eac3")&&(L.U=!0),C.T("html5_enable_ac3_gapless")&&(L.T7=!0));C.T("html5_block_8k_hfr")&&(L.Xk=!0);L.S=g.di(C.experiments,"html5_max_selectable_quality_ordinal");L.D=g.di(C.experiments,"html5_min_selectable_quality_ordinal");kS&&(L.ji=480);if(N||X)L.tN=!1;L.oB=!1;L.disableAv1=S;N=Pf(C,L.K,void 0,L.disableAv1);N>0&&N<2160&&(qk()||C.T("html5_format_hybridization"))&&(L.K.supportsChangeType= +qk(),L.Y5=N);N>=2160&&(L.PC=!0);GhP()&&(L.K.serveVp9OverAv1IfHigherRes=0,L.AL=!1);L.Pl=R;L.pC=g.iC||kI()&&!R?!1:!0;L.X=C.T("html5_format_hybridization");L.VK=C.T("html5_disable_encrypted_vp9_live_non_2k_4k");iY(J)&&(L.kA=J.T("html5_prefer_language_over_codec"));NY()&&J.playerResponse&&J.playerResponse.playerConfig&&J.playerResponse.playerConfig.webPlayerConfig&&J.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(L.Z=!0,L.U=!0);J.W&&J.isAd()&&(J.G$&&(L.nC=J.G$),J.Ck&&(L.V= J.Ck));L.l3=J.isLivePlayback&&J.Ha()&&J.OB.T("html5_drm_live_audio_51");L.R1=J.vO;return J.lr=L}; kjg=function(J){return J.OB.T("html5_disable_av1")||J.T("html5_gapless_shorts_disable_av1")&&Fr(J)?!0:!1}; WWY=function(J){vU("drm_pb_s",void 0,J.l3);J.HC||J.K&&O6(J.K);var R={};J.K&&(R=TNQ(J.Ds,g.Mn(J),J.OB.U,J.K,function(N){return J.publish("ctmp","fmtflt",N)},!0,new Set)); R=new Cs(R,J.OB,J.fv,J.useCobaltWidevine?NY()?vKE(J):!1:!1,function(N,C){J.u3(N,C)}); g.P(J,R);J.NI=!1;J.loading=!0;reB(R,function(N){vU("drm_pb_f",void 0,J.l3);for(var C=g.K(N),X=C.next();!X.done;X=C.next())switch(X=X.value,X.flavor){case "fairplay":X.HC=J.HC;X.q1=J.q1;X.fk=J.fk;break;case "widevine":X.c9=J.c9}J.GG=N;if(J.GG.length>0&&(J.U=J.GG[0],J.OB.Si())){N={};C=g.K(Object.entries(J.U.K));for(X=C.next();!X.done;X=C.next()){var u=g.K(X.value);X=u.next().value;u=u.next().value;var f="unk";(X=X.match(/(.*)codecs="(.*)"/))&&(f=X[2]);N[f]=u}J.u3("drmProbe",N)}o5(J)})}; bf8=function(J,R){if(R.length===0||fA(J))return null;TH(J,"html5_enable_cobalt_experimental_vp9_decoder")&&(UV=!0);var N=J.xi;var C=J.lengthSeconds,X=J.isLivePlayback,u=J.SD,f=J.OB,H=fS7(R);if(X||u){f=f.experiments;C=new n0("",f,!0);C.J=!u;C.MR=!0;C.isManifestless=!0;C.isLive=!u;C.SD=u;R=g.K(R);for(X=R.next();!X.done;X=R.next()){var k=X.value;X=Bf(k,N);H=lU(k);H=Zj(H.VG||k.url||"",H.Fd,H.s);var v=H.get("id");v&&v.includes("%7E")&&(C.W=!0);var W=void 0;v=(W=f)==null?void 0:W.b3("html5_max_known_end_time_rebase"); W=Number(k.targetDurationSec||5);k=Number(k.maxDvrDurationSec||14400);var S=Number(H.get("mindsq")||H.get("min_sq")||"0"),L=Number(H.get("maxdsq")||H.get("max_sq")||"0")||Infinity;C.Up=C.Up||S;C.Q7=C.Q7||L;var I=!I6(X.mimeType);H&&K0(C,new f0(H,X,{FB:W,AD:I,YD:k,Up:S,Q7:L,f1:300,SD:u,Yw:v}))}N=C}else if(H==="FORMAT_STREAM_TYPE_OTF"){C=C===void 0?0:C;u=new n0("",f.experiments,!1);u.duration=C||0;f=g.K(R);for(C=f.next();!C.done;C=f.next())C=C.value,R=Bf(C,N,u.duration),X=lU(C),(X=Zj(X.VG||C.url||"", X.Fd,X.s))&&(R.streamType==="FORMAT_STREAM_TYPE_OTF"?K0(u,new T2(X,R,"sq/0")):K0(u,new FQ(X,R,Pn(C.initRange),Pn(C.indexRange))));u.isOtf=!0;N=u}else{C=C===void 0?0:C;u=new n0("",f.experiments,!1);u.duration=C||0;f=g.K(R);for(C=f.next();!C.done;C=f.next())H=C.value,C=Bf(H,N,u.duration),R=Pn(H.initRange),X=Pn(H.indexRange),v=lU(H),(H=Zj(v.VG||H.url||"",v.Fd,v.s))&&K0(u,new FQ(H,C,R,X));N=u}u=J.isLivePlayback&&!J.SD&&!J.PC&&!J.isPremiere;J.T("html5_live_head_playable")&&(!HJ(J)&&u&&J.u3("missingLiveHeadPlayable", {}),J.OB.nC==="yt"&&(N.pC=!0));return N}; fA=function(J){return NY()?!vKE(J):X6()?!(!J.HC||!J.T("html5_enable_safari_fairplay")&&vH()):!1}; vKE=function(J){return J.T("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.Xr=function(J,R){R=g.K(R);for(var N=R.next();!N.done;N=R.next())if(N=N.value,N.cueRangeSetIdentifier){var C=void 0;J.MY.set(N.cueRangeSetIdentifier,(C=N.playerCueRanges)!=null?C:[])}}; kz=function(J){return!(!J.K||!J.K.isManifestless)}; KA=function(J){return J.VR?J.isLowLatencyLiveStream&&J.K!=null&&Yr(J.K)>=5:J.isLowLatencyLiveStream&&J.K!=void 0&&Yr(J.K)>=5}; ySB=function(J){return NY()&&vKE(J)?!1:fA(J)&&(g.PM(J.OB)?!J.isLivePlayback:J.hlsvp)||!vH()||J.BR?!0:!1}; LWE=function(J){J.loading=!0;J.LJ=!1;if(Gwn(J))g.aPk(J.videoId).then(function(C){S6n(J,C)}).then(function(){o5(J)}); else{Ij(J.H1)||g.G$(new g.C3("DASH MPD Origin invalid: ",J.H1));var R=J.H1,N=g.di(J.OB.experiments,"dash_manifest_version")||4;R=g.bD(R,{mpd_version:N});J.isLowLatencyLiveStream&&J.latencyClass!=="NORMAL"||(R=g.bD(R,{pacing:0}));LxP(R,J.OB.experiments,J.isLivePlayback).then(function(C){J.QO()||(tq2(J,C,!0),vU("mrc",void 0,J.l3),o5(J))},function(C){J.QO()||(J.loading=!1,J.publish("dataloaderror",new PD("manifest.net.retryexhausted",{backend:"manifest", rc:C.status},1)))}); vU("mrs",void 0,J.l3)}}; S6n=function(J,R){var N=R.map(function(k){return k.itag}),C; if((C=J.playerResponse)!=null&&C.streamingData){C=[];if(J.T("html5_offline_always_use_local_formats")){N=0;for(var X=g.K(R),u=X.next();!u.done;u=X.next()){u=u.value;var f=Object.assign({},u);f.signatureCipher="";C.push(f);f=g.K(J.playerResponse.streamingData.adaptiveFormats);for(var H=f.next();!H.done;H=f.next())if(H=H.value,u.itag===H.itag&&u.xtags===H.xtags){N+=1;break}}NW&&(W=I.getInfo().audio.numChannels)}W>2&&J.u3("hlschl",{mn:W});var n;((n=J.lr)==null?0:n.J)&&J.u3("hlsfmtaf",{itags:S.join(".")});var B;if(J.T("html5_enable_vp9_fairplay")&&((B=J.U)==null?0:G2(B)))for(J.u3("drm",{sbdlfbk:1}),W=g.K(J.GG),S=W.next();!S.done;S=W.next())if(S=S.value,yO(S)){J.U=S;break}nA(J,v)})}return zO()}; KWn=function(J){if(J.isExternallyHostedPodcast&&J.OQ){var R=$z(J.OQ);if(!R[0])return zO();J.Rz=R[0];return w3P(J.OB,R[0]).then(function(N){nA(J,N)})}return J.F$&&J.LM?ehP(J.OB,J.isAd(),J.F$).then(function(N){nA(J,N)}):zO()}; QJf=function(J){if(J.isExternallyHostedPodcast)return zO();var R=$z(J.OQ,J.ZC);if(J.hlsvp){var N=AS8(J.hlsvp,J.clientPlaybackNonce,J.CY);R.push(N)}return zhk(J.OB,J.isAd(),R,a9Y(J)).then(function(C){nA(J,C)})}; FWg=function(J,R){J.V=R;if(J.V){R=g.K(J.V.videoInfos);for(var N=R.next();!N.done;N=R.next()){N=N.value;var C=N.containerType;C!==0&&(J.XU[C]=N.id)}}nKP(J);if(J.U&&J.V&&J.V.videoInfos&&!(J.V.videoInfos.length<=0)&&(R=vS(J.V.videoInfos[0]),J.U.flavor==="fairplay"!==R))for(N=g.K(J.GG),C=N.next();!C.done;C=N.next())if(C=C.value,R===(C.flavor==="fairplay")){J.U=C;break}}; nA=function(J,R){J.FV=R;FWg(J,new QM(g.Yy(J.FV,function(N){return N.getInfo()})))}; a9Y=function(J){var R={cpn:J.clientPlaybackNonce,c:J.OB.K.c,cver:J.OB.K.cver};J.XF&&(R.ptk=J.XF,R.oid=J.Xb,R.ptchn=J.zi,R.pltype=J.aP,J.e4&&(R.m=J.e4));return R}; g.Du=function(J){return fA(J)&&J.HC?(J={},J.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",J):J.J&&J.J.xi||null}; sJB=function(J){var R=DCB(J);return R&&R.text?g.Yn(R.text):J.paidContentOverlayText}; B$8=function(J){var R=DCB(J);return R&&R.durationMs?fK(R.durationMs):J.paidContentOverlayDurationMs}; DCB=function(J){var R,N,C;return J.playerResponse&&J.playerResponse.paidContentOverlay&&J.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.z((R=J.T7)==null?void 0:(N=R.playerOverlays)==null?void 0:(C=N.playerOverlayRenderer)==null?void 0:C.playerDisclosure,OPE)||null}; sU=function(J){var R="";if(J.aC)return J.aC;J.isLivePlayback&&(R=J.allowLiveDvr?"dvr":J.isPremiere?"lp":J.PC?"window":"live");J.SD&&(R="post");return R}; g.BJ=function(J,R){return typeof J.keywords[R]!=="string"?null:J.keywords[R]}; ZPE=function(J){return!!J.Xp||!!J.Vn||!!J.Ql||!!J.PK||J.Ej||J.D.focEnabled||J.D.rmktEnabled}; g.OU=function(J){return!!(J.H1||J.OQ||J.F$||J.hlsvp||J.hF())}; Jq=function(J){if(J.T("html5_onesie")&&J.errorCode)return!1;var R=g.cl(J.tN,"ypc");J.ypcPreview&&(R=!1);return J.Da()&&!J.loading&&(g.OU(J)||g.cl(J.tN,"heartbeat")||R)}; $z=function(J,R){J=SQ(J);var N={};if(R){R=g.K(R.split(","));for(var C=R.next();!C.done;C=R.next())(C=C.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(N[C[1]]={width:C[2],height:C[3]})}R=g.K(J);for(C=R.next();!C.done;C=R.next()){C=C.value;var X=N[C.itag];X&&(C.width=X.width,C.height=X.height)}return J}; nKP=function(J){var R=J.getAvailableAudioTracks();R=R.concat(J.qV);for(var N=0;N0:R||J.adFormat!=="17_8"||J.isAutonav||g.uv(J.OB)||J.Pk?J.Im?!1:J.OB.ZI||J.OB.EL||!g.V_(J.OB)?!R&&gO(J)==="adunit"&&J.Xp?!1:!0:!1:!1:(J.Im?0:J.AL)&&g.V_(J.OB)?!0:!1;J.T("html5_log_detailpage_autoplay")&&gO(J)==="detailpage"&&J.u3("autoplay_info",{autoplay:J.Pa,autonav:J.isAutonav,result:R});return R}; g.PJ=function(J){return J.oauthToken||J.OB.We}; euE=function(J){if(J.T("html5_stateful_audio_normalization")){var R=1,N=g.di(J.OB.experiments,"html5_default_ad_gain");N&&J.isAd()&&(R=N);var C;if(N=((C=J.Z)==null?void 0:C.audio.J)||J.bK){C=(0,g.g9)();J.zo=2;var X=C-J.OB.IE<=J.maxStatefulTimeThresholdSec*1E3;J.applyStatefulNormalization&&X?J.zo=4:X||(J.OB.Vc=Infinity,J.OB.IE=NaN);X=(J.zo===4?g.I4(J.OB.Vc,J.minimumLoudnessTargetLkfs,J.loudnessTargetLkfs):J.loudnessTargetLkfs)-N;if(J.zo!==4){var u,f,H,k,v=((u=J.playerResponse)==null?void 0:(f=u.playerConfig)== null?void 0:(H=f.audioConfig)==null?void 0:(k=H.loudnessNormalizationConfig)==null?void 0:k.statelessLoudnessAdjustmentGain)||0;X+=v}X=Math.min(X,0);J.preserveStatefulLoudnessTarget&&(J.OB.Vc=N+X,J.OB.IE=C);J=Math.min(1,Math.pow(10,X/20))||R}else J=zu8(J)}else J=zu8(J);return J}; zu8=function(J){var R=1,N=g.di(J.OB.experiments,"html5_default_ad_gain");N&&J.isAd()&&(R=N);var C;if(N=((C=J.Z)==null?void 0:C.audio.V)||J.wm)J.zo=1;return Math.min(1,Math.pow(10,-N/20))||R}; EU=function(J){var R=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],N=fs(J.OB)==="TVHTML5_SIMPLY"&&J.OB.K.ctheme==="MUSIC";J.Vg||!g.N3(J.OB)&&!N||!R.includes(J.musicVideoType)&&!J.isExternallyHostedPodcast||(J.Vg=!0);if(R=g.Rc())R=/Starboard\/([0-9]+)/.exec(g.sa()),R=(R?parseInt(R[1],10):NaN)<10;N=J.OB;N=(fs(N)==="TVHTML5_CAST"||fs(N)==="TVHTML5"&&(N.K.cver.startsWith("6.20130725")||N.K.cver.startsWith("6.20130726")))&&J.OB.K.ctheme==="MUSIC";var C;if(C=!J.Vg)N||(N=J.OB,N=fs(N)=== "TVHTML5"&&N.K.cver.startsWith("7")),C=N;C&&!R&&(R=J.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",N=(J.T("cast_prefer_audio_only_for_atv_and_uploads")||J.T("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&J.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",R||N||J.isExternallyHostedPodcast)&&(J.Vg=!0);return J.OB.deviceIsAudioOnly||J.Vg&&J.OB.D}; wVg=function(J){var R,N,C;return!!((R=J.playerResponse)==null?0:(N=R.playerConfig)==null?0:(C=N.mediaCommonConfig)==null?0:C.splitScreenEligible)}; cOf=function(J){var R;return!((R=J.playerResponse)==null||!R.compositePlayabilityStatus)}; huf=function(J){return isNaN(J)?0:Math.max((Date.now()-J)/1E3-30,0)}; zH=function(J){return!(!J.Vw||!J.OB.D)&&J.hF()}; yOg=function(J){return J.enablePreroll&&J.enableServerStitchedDai}; Gj7=function(J){return J.T("html5_enable_sabr_from_watch_server")&&J.WR&&!J.V4}; bPB=function(J){return J.T("html5_enable_sabr_live_captions")&&J.MR()&&!1}; iY=function(J){if(J.zZ||J.cotn||!J.K||J.K.isOtf||J.Mg&&!J.T("html5_enable_sabr_csdai"))return!1;if(J.T("html5_use_sabr_requests_for_debugging"))return!0;if(J.T("html5_enable_sabr_from_watch_server")){var R=J.WR&&!!J.V4;if(!J.T("html5_combine_client_check_for_sabr"))return R;if(R)return!0;J.yE("sabr","esfc")}var N=!J.K.MR&&!J.Ha();R=N&&Tn&&J.T("html5_enable_sabr_vod_streaming_xhr");N=N&&!Tn&&J.T("html5_enable_sabr_vod_non_streaming_xhr");var C=tBY(J),X=J.T("html5_enable_sabr_drm_vod_streaming_xhr")&& Tn&&J.Ha()&&!J.K.MR&&(J.qM==="1"?!1:!0);(R=R||N||C||X)&&!J.V4&&J.u3("sabr",{loc:"m"},!0);return R&&!!J.V4}; tBY=function(J){var R;if(!(R=Tn&&J.MR()&&J.Ha()&&(J.qM==="1"?!1:!0)&&J.T("html5_sabr_live_drm_streaming_xhr"))){R=J.MR()&&!J.Ha()&&Tn;var N=J.MR()&&J.latencyClass!=="ULTRALOW"&&!J.isLowLatencyLiveStream&&J.T("html5_sabr_live_normal_latency_streaming_xhr"),C=J.isLowLatencyLiveStream&&J.T("html5_sabr_live_low_latency_streaming_xhr"),X=J.latencyClass==="ULTRALOW"&&J.T("html5_sabr_live_ultra_low_latency_streaming_xhr");R=R&&(N||C||X)}N=R;R=J.enableServerStitchedDai&&N&&J.T("html5_enable_sabr_ssdai_streaming_xhr"); N=!J.enableServerStitchedDai&&N;C=J.MR()&&!Tn&&J.T("html5_enable_sabr_live_non_streaming_xhr");J=Tn&&(J.ZD()||wVg(J)&&J.T("html5_enable_sabr_for_lifa_eligible_streams"));return R||N||C||J}; g.vJ=function(J){return J.Hv&&iY(J)}; Gwn=function(J){var R;if(R=!!J.cotn)R=J.videoId,R=!!R&&g.gQ(R)===1;return R&&!J.Vw}; g.e9=function(J){if(!J.K||!J.J||!J.Z)return!1;var R=J.K.K,N=!!R[J.J.id]&&g$(R[J.J.id].resource.K);R=!!R[J.Z.id]&&g$(R[J.Z.id].resource.K);return(J.J.itag==="0"||N)&&R}; xC8=function(J){return J.sK?["OK","LIVE_STREAM_OFFLINE"].includes(J.sK.status):!0}; rOB=function(J){return(J=J.IW)&&J.showError?J.showError:!1}; TH=function(J,R){return J.T(R)?!0:(J.fflags||"").includes(R+"=true")}; Pn7=function(J){return J.T("html5_heartbeat_iff_heartbeat_params_filled")}; JxE=function(J){return(J=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(J.fflags))?J[1]:null}; pA2=function(J,R){R.inlineMetricEnabled&&(J.inlineMetricEnabled=!0);R.playback_progress_0s_url&&(J.PK=new WNn(R));if(R=R.video_masthead_ad_quartile_urls)J.Vn=R.quartile_0_url,J.cI=R.quartile_25_url,J.L9=R.quartile_50_url,J.WI=R.quartile_75_url,J.fM=R.quartile_100_url,J.Ql=R.quartile_0_urls,J.Qn=R.quartile_25_urls,J.G_=R.quartile_50_urls,J.A7=R.quartile_75_urls,J.ZN=R.quartile_100_urls}; UNB=function(J){var R={};J=g.K(J);for(var N=J.next();!N.done;N=J.next()){N=N.value;var C=N.split("=");C.length===2?R[C[0]]=C[1]:R[N]=!0}return R}; mNY=function(J){if(J){if(nu7(J))return J;J=DdB(J);if(nu7(J,!0))return J}return""}; g.o6f=function(J){return J.captionsLanguagePreference||J.OB.captionsLanguagePreference||g.BJ(J,"yt:cc_default_lang")||J.OB.VK}; wO=function(J){return!(!J.isLivePlayback||!J.hasProgressBarBoundaries())}; g.S9=function(J){var R;return J.xJ||((R=J.suggestions)==null?void 0:R[0])||null}; g.cJ=function(J){return J.wL&&(J.T("embeds_enable_pfp_always_unbranded")||J.OB.XZ)}; CA=function(J,R){J.T("html5_log_autoplay_src")&&Fr(J)&&J.u3("apsrc",{src:R})}; g.hq=function(J){var R,N;return!!((R=J.embeddedPlayerConfig)==null?0:(N=R.embeddedPlayerFlags)==null?0:N.enableMusicUx)}; g.yY=function(J){var R=J.N(),N=g.R3E(R),C=R.EB;(R.T("embeds_web_enable_iframe_api_send_full_embed_url")||R.T("embeds_web_enable_rcat_validation_in_havs")||R.T("embeds_enable_autoplay_and_visibility_signals"))&&g.zn(R)&&(C&&(N.thirdParty=Object.assign({},N.thirdParty,{embedUrl:C})),tUB(N,J));if(C=J.VO)N.clickTracking={clickTrackingParams:C};C=N.client||{};var X="EMBED",u=gO(J);u==="leanback"?X="WATCH":R.T("gvi_channel_client_screen")&&u==="profilepage"?X="CHANNEL":J.oB?X="LIVE_MONITOR":u==="detailpage"? X="WATCH_FULL_SCREEN":u==="adunit"?X="ADUNIT":u==="sponsorshipsoffer"&&(X="UNKNOWN");C.clientScreen=X;if(R=J.kidsAppInfo)C.kidsAppInfo=JSON.parse(R);(X=J.bT)&&!R&&(C.kidsAppInfo={contentSettings:{ageUpMode:NGf[X]}});if(R=J.TK)C.unpluggedAppInfo={enableFilterMode:!0};(X=J.unpluggedFilterModeType)&&!R&&(C.unpluggedAppInfo={filterModeType:CGE[X]});if(R=J.nC)C.unpluggedLocationInfo=R;N.client=C;C=N.request||{};J.j2&&(C.isPrefetch=!0);if(R=J.mdxEnvironment)C.mdxEnvironment=R;if(R=J.mdxControlMode)C.mdxControlMode= XnQ[R];N.request=C;C=N.user||{};if(R=J.dn)C.credentialTransferTokens=[{token:R,scope:"VIDEO"}];if(R=J.EB)C.delegatePurchases={oauthToken:R},C.kidsParent={oauthToken:R};N.user=C;if(C=J.contextParams)N.activePlayers=[{playerContextParams:C}];if(J=J.clientScreenNonce)N.clientScreenNonce=J;return N}; g.R3E=function(J){var R=g.LL(),N=R.client||{};if(J.forcedExperiments){var C=J.forcedExperiments.split(","),X=[];C=g.K(C);for(var u=C.next();!u.done;u=C.next())X.push(Number(u.value));N.experimentIds=X}if(X=J.homeGroupInfo)N.homeGroupInfo=JSON.parse(X);if(X=J.getPlayerType())N.playerType=X;if(X=J.K.ctheme)N.theme=X;if(X=J.livingRoomAppMode)N.tvAppInfo=Object.assign({},N.tvAppInfo,{livingRoomAppMode:X});X=J.deviceYear;J.T("html5_propagate_device_year")&&X&&(N.tvAppInfo=Object.assign({},N.tvAppInfo, {deviceYear:X}));if(X=J.livingRoomPoTokenId)N.tvAppInfo=Object.assign({},N.tvAppInfo,{livingRoomPoTokenId:X});R.client=N;N=R.user||{};J.enableSafetyMode&&(N=Object.assign({},N,{enableSafetyMode:!0}));J.pageId&&(N=Object.assign({},N,{onBehalfOfUser:J.pageId}));R.user=N;N=J.EB;J.T("embeds_web_enable_iframe_api_send_full_embed_url")||J.T("embeds_web_enable_rcat_validation_in_havs")||J.T("embeds_enable_autoplay_and_visibility_signals")||!N||(R.thirdParty={embedUrl:N});return R}; $Bk=function(J,R,N){var C=J.videoId,X=g.yY(J),u=J.N(),f={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(UK()),referer:document.location.toString(),signatureTimestamp:20062};g.tf();J.isAutonav&&(f.autonav=!0);g.xI(0,141)&&(f.autonavState=g.xI(0,140)?"STATE_OFF":"STATE_ON");f.autoCaptionsDefaultOn=g.xI(0,66);PUk(J)&&(f.autoplay=!0);u.D&&J.cycToken&&(f.cycToken=J.cycToken);u.enablePrivacyFilter&&(f.enablePrivacyFilter=!0);J.isFling&&(f.fling=!0);var H=J.forceAdsUrl;if(H){var k={},v=[];H= H.split(",");H=g.K(H);for(var W=H.next();!W.done;W=H.next()){W=W.value;var S=W.split("|");S.length!==3||W.includes("=")||(S[0]="breaktype="+S[0],S[1]="offset="+S[1],S[2]="url="+S[2]);W={adtype:"video_ad"};S=g.K(S);for(var L=S.next();!L.done;L=S.next()){var I=g.K(L.value.split("="));L=I.next().value;I=DP7(I);W[L]=I.join("=")}S=W.url;L=W.presetad;I=W.viralresponseurl;var F=Number(W.campaignid);if(W.adtype==="in_display_ad")S&&(k.url=S),L&&(k.presetAd=L),I&&(k.viralAdResponseUrl=I),F&&(k.viralCampaignId= String(F));else if(W.adtype==="video_ad"){var a={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(W.offset)||0)}};if(W=iq2[W.breaktype])a.breakType=W;S&&(a.url=S);L&&(a.presetAd=L);I&&(a.viralAdResponseUrl=I);F&&(a.viralCampaignId=String(F));v.push(a)}}f.forceAdParameters={videoAds:v,inDisplayAd:k}}J.isInlinePlaybackNoAd&&(f.isInlinePlaybackNoAd=!0);J.isLivingRoomDeeplink&&(f.isLivingRoomDeeplink=!0);k=J.s1;if(k!=null){k={startWalltime:String(k)};if(v=J.IE)k.manifestDuration=String(v||14400); f.liveContext=k}J.mutedAutoplay&&(f.mutedAutoplay=!0);if(J.Im?0:J.AL)f.splay=!0;k=J.vnd;k===5&&(f.vnd=k);k={};if(v=J.isMdxPlayback)k.triggeredByMdx=v;if(v=J.n8)k.skippableAdsSupported=v.split(",").includes("ska");if(W=J.RE){v=J.T_;H=[];W=g.K(oi8(W));for(S=W.next();!S.done;S=W.next()){S=S.value;L=S.platform;S={applicationState:S.yU?"INACTIVE":"ACTIVE",clientFormFactor:usB[L]||"UNKNOWN_FORM_FACTOR",clientName:NNf[S.SJ]||"UNKNOWN_INTERFACE",clientVersion:S.deviceVersion||"",platform:fCf[L]||"UNKNOWN_PLATFORM"}; L={};if(v){I=void 0;try{I=JSON.parse(v)}catch(n){g.G$(n)}I&&(L={params:[{key:"ms",value:I.ms}]},I.advertising_id&&(L.advertisingId=I.advertising_id),I.limit_ad_tracking!==void 0&&I.limit_ad_tracking!==null&&(L.limitAdTracking=I.limit_ad_tracking),S.osName=I.os_name,S.userAgent=I.user_agent,S.windowHeightPoints=I.window_height_points,S.windowWidthPoints=I.window_width_points)}H.push({adSignalsInfo:L,remoteClient:S})}k.remoteContexts=H}v=J.sourceContainerPlaylistId;H=J.serializedMdxMetadata;if(v||H)W= {},v&&(W.mdxPlaybackContainerInfo={sourceContainerPlaylistId:v}),H&&(W.serializedMdxMetadata=H),k.mdxPlaybackSourceContext=W;f.mdxContext=k;k=R.width;k>0&&(f.playerWidthPixels=Math.round(k));if(R=R.height)f.playerHeightPixels=Math.round(R);N!==0&&(f.vis=N);if(N=u.widgetReferrer)f.widgetReferrer=N.substring(0,128);g.V_(u)&&f&&(f.ancestorOrigins=u.ancestorOrigins);J.defaultActiveSourceVideoId&&(f.compositeVideoContext={defaultActiveSourceVideoId:J.defaultActiveSourceVideoId});if(u=u.getWebPlayerContextConfig())f.encryptedHostFlags= u.encryptedHostFlags;C={videoId:C,context:X,playbackContext:{contentPlaybackContext:f}};J.reloadPlaybackParams&&(C.playbackContext.reloadPlaybackContext={reloadPlaybackParams:J.reloadPlaybackParams});J.contentCheckOk&&(C.contentCheckOk=!0);if(X=J.clientPlaybackNonce)C.cpn=X;if(X=J.playerParams)C.params=X;if(X=J.playlistId)C.playlistId=X;J.racyCheckOk&&(C.racyCheckOk=!0);X=J.N();if(f=X.embedConfig)C.serializedThirdPartyEmbedConfig=f;C.captionParams={};f=g.xI(g.tf(),65);J.deviceCaptionsOn!=null?C.captionParams.deviceCaptionsOn= J.deviceCaptionsOn:g.Xk(X)&&(C.captionParams.deviceCaptionsOn=f!=null?!f:!1);J.Bj&&(C.captionParams.deviceCaptionsLangPref=J.Bj);J.Ja.length?C.captionParams.viewerSelectedCaptionLangs=J.Ja:g.Xk(X)&&(f=g.NC(),f==null?0:f.length)&&(C.captionParams.viewerSelectedCaptionLangs=f);f=J.fetchType==="onesie"&&J.T("html5_onesie_attach_po_token");u=J.fetchType!=="onesie"&&J.T("html5_non_onesie_attach_po_token");if(f||u)f=J.N(),f.Vg&&(C.serviceIntegrityDimensions={},C.serviceIntegrityDimensions.poToken=f.Vg); X.T("fetch_att_independently")&&(C.attestationRequest={omitBotguardData:!0});if(X.T("html5_enable_sabr_from_watch_server")||X.T("html5_report_supports_vp9_encoding"))C.playbackContext||(C.playbackContext={}),C.playbackContext.devicePlaybackCapabilities=TGB(J);return C}; TGB=function(J){var R=!(J==null?0:J.Pl())&&(J==null?void 0:J.MR())&&kI();if(J==null?0:J.T("html5_report_supports_vp9_encoding")){if(J==null)var N=void 0;else{N=g.Mn(J);J=J.N().U;var C=Se("243");N=C?BV(N,C,J,!0)===!0:!1}R=N&&!R}else R=void 0;return{supportsVp9Encoding:R,supportXhr:Tn}}; ktn=function(J,R){var N,C,X;return g.Y(function(u){if(u.K==1)return N={context:g.R3E(J.N()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:J.videoId,cpn:J.clientPlaybackNonce}}]},C=g.Em(HqB),g.q(u,g.Kn(R,N,C),2);X=u.J;return u.return(X)})}; v6B=function(J,R,N){var C=g.di(R.experiments,"bg_vm_reinit_threshold");(!yy||(0,g.g9)()-yy>C)&&ktn(J,N).then(function(X){X&&(X=X.botguardData)&&g.tS(X,R)},function(X){J.QO()||(X=ey(X),J.u3("attf",X.details))})}; GH=function(J,R){g.l.call(this);this.app=J;this.state=R}; tq=function(J,R,N){J.state.K.hasOwnProperty(R)||bY(J,R,N);J.state.D[R]=function(){return N.apply(J,g.sf.apply(0,arguments))}; J.state.S.add(R)}; xz=function(J,R,N){J.state.K.hasOwnProperty(R)||bY(J,R,N);J.app.N().D&&(J.state.X[R]=function(){return N.apply(J,g.sf.apply(0,arguments))},J.state.S.add(R))}; bY=function(J,R,N){J.state.K[R]=function(){return N.apply(J,g.sf.apply(0,arguments))}}; g.J9=function(J,R,N){return J.state.K[R].apply(J.state.K,g.Q(N))}; o1=function(){g.gE.call(this);this.U=new Map}; WKf=function(){g.l.apply(this,arguments);this.element=null;this.S=new Set;this.D={};this.X={};this.K={};this.W=new Set;this.V=new o1;this.J=new o1;this.Z=new o1;this.U=new o1}; Szg=function(J,R,N){typeof J==="string"&&(J={mediaContentUrl:J,startSeconds:R,suggestedQuality:N});a:{if((R=J.mediaContentUrl)&&(R=/\/([ve]|embed)\/([^#?]+)/.exec(R))&&R[2]){R=R[2];break a}R=null}J.videoId=R;return R1(J)}; R1=function(J,R,N){if(typeof J==="string")return{videoId:J,startSeconds:R,suggestedQuality:N};R={};N=g.K(LKn);for(var C=N.next();!C.done;C=N.next())C=C.value,J[C]&&(R[C]=J[C]);return R}; ICB=function(J,R,N,C){if(g.Pg(J)&&!Array.isArray(J)){R="playlist list listType index startSeconds suggestedQuality".split(" ");N={};for(C=0;C32&&C.push("hfr");R.isHdr()&&C.push("hdr");R.primaries==="bt2020"&&C.push("wcg");N.video_quality_features=C}}if(J=J.getPlaylistId())N.list=J;return N}; uh=function(){N$.apply(this,arguments)}; s2f=function(J,R){var N={};if(J.app.N().dn){J=g.K(aCE);for(var C=J.next();!C.done;C=J.next())C=C.value,R.hasOwnProperty(C)&&(N[C]=R[C]);if(R=N.qoe_cat)J="",typeof R==="string"&&R.length>0&&(J=R.split(",").filter(function(X){return Q2k.includes(X)}).join(",")),N.qoe_cat=J; n6B(N)}else for(J=g.K(DBP),C=J.next();!C.done;C=J.next())C=C.value,R.hasOwnProperty(C)&&(N[C]=R[C]);return N}; n6B=function(J){var R=J.raw_player_response;if(!R){var N=J.player_response;N&&(R=JSON.parse(N))}delete J.player_response;delete J.raw_player_response;if(R){J.raw_player_response={streamingData:R.streamingData};var C;if((C=R.playbackTracking)==null?0:C.qoeUrl)J.raw_player_response=Object.assign({},J.raw_player_response,{playbackTracking:{qoeUrl:R.playbackTracking.qoeUrl}});var X;if((X=R.videoDetails)==null?0:X.videoId)J.raw_player_response=Object.assign({},J.raw_player_response,{videoDetails:{videoId:R.videoDetails.videoId}})}}; BGg=function(J,R,N){var C=J.app.Il(N);if(!C)return 0;J=C-J.app.getCurrentTime(N);return R-J}; ZqB=function(J){var R=R===void 0?5:R;return J?Oq8[J]||R:R}; g.fu=function(){uh.apply(this,arguments)}; dBB=function(J){bY(J,"getInternalApiInterface",J.getInternalApiInterface);bY(J,"addEventListener",J.h$);bY(J,"removeEventListener",J.Aza);bY(J,"cueVideoByPlayerVars",J.Io);bY(J,"loadVideoByPlayerVars",J.SB8);bY(J,"preloadVideoByPlayerVars",J.vh7);bY(J,"getAdState",J.getAdState);bY(J,"sendAbandonmentPing",J.sendAbandonmentPing);bY(J,"setLoopRange",J.setLoopRange);bY(J,"getLoopRange",J.getLoopRange);bY(J,"setAutonavState",J.setAutonavState);bY(J,"seekTo",J.fi3);bY(J,"seekBy",J.jlC);bY(J,"seekToLiveHead", J.seekToLiveHead);bY(J,"requestSeekToWallTimeSeconds",J.requestSeekToWallTimeSeconds);bY(J,"seekToStreamTime",J.seekToStreamTime);bY(J,"startSeekCsiAction",J.startSeekCsiAction);bY(J,"getStreamTimeOffset",J.getStreamTimeOffset);bY(J,"getVideoData",J.Ex);bY(J,"setInlinePreview",J.setInlinePreview);bY(J,"getAppState",J.getAppState);bY(J,"updateLastActiveTime",J.updateLastActiveTime);bY(J,"setBlackout",J.setBlackout);bY(J,"setUserEngagement",J.setUserEngagement);bY(J,"updateSubtitlesUserSettings",J.updateSubtitlesUserSettings); bY(J,"getPresentingPlayerType",J.Ez);bY(J,"canPlayType",J.canPlayType);bY(J,"updatePlaylist",J.updatePlaylist);bY(J,"updateVideoData",J.updateVideoData);bY(J,"updateEnvironmentData",J.updateEnvironmentData);bY(J,"sendVideoStatsEngageEvent",J.wwa);bY(J,"productsInVideoVisibilityUpdated",J.productsInVideoVisibilityUpdated);bY(J,"setSafetyMode",J.setSafetyMode);bY(J,"isAtLiveHead",function(R){return J.isAtLiveHead(void 0,R)}); bY(J,"getVideoAspectRatio",J.getVideoAspectRatio);bY(J,"getPreferredQuality",J.getPreferredQuality);bY(J,"getPlaybackQualityLabel",J.getPlaybackQualityLabel);bY(J,"setPlaybackQualityRange",J.Fuf);bY(J,"onAdUxClicked",J.onAdUxClicked);bY(J,"getFeedbackProductData",J.getFeedbackProductData);bY(J,"getStoryboardFrame",J.getStoryboardFrame);bY(J,"getStoryboardFrameIndex",J.getStoryboardFrameIndex);bY(J,"getStoryboardLevel",J.getStoryboardLevel);bY(J,"getNumberOfStoryboardLevels",J.getNumberOfStoryboardLevels); bY(J,"getCaptionWindowContainerId",J.getCaptionWindowContainerId);bY(J,"getAvailableQualityLabels",J.getAvailableQualityLabels);bY(J,"addCueRange",J.addCueRange);bY(J,"addUtcCueRange",J.addUtcCueRange);bY(J,"showAirplayPicker",J.showAirplayPicker);bY(J,"dispatchReduxAction",J.dispatchReduxAction);bY(J,"getPlayerResponse",J.NF);bY(J,"getWatchNextResponse",J.Ry);bY(J,"getHeartbeatResponse",J.LB);bY(J,"getCurrentTime",J.xu);bY(J,"getDuration",J.xR);bY(J,"getPlayerState",J.getPlayerState);bY(J,"getPlayerStateObject", J.bE);bY(J,"getVideoLoadedFraction",J.getVideoLoadedFraction);bY(J,"getProgressState",J.getProgressState);bY(J,"getVolume",J.getVolume);bY(J,"setVolume",J.oN);bY(J,"isMuted",J.isMuted);bY(J,"mute",J.Zg);bY(J,"unMute",J.Vx);bY(J,"loadModule",J.loadModule);bY(J,"unloadModule",J.unloadModule);bY(J,"getOption",J.je);bY(J,"getOptions",J.getOptions);bY(J,"setOption",J.setOption);bY(J,"loadVideoById",J.hZ);bY(J,"loadVideoByUrl",J.pK);bY(J,"playVideo",J.L7);bY(J,"loadPlaylist",J.loadPlaylist);bY(J,"nextVideo", J.nextVideo);bY(J,"previousVideo",J.previousVideo);bY(J,"playVideoAt",J.playVideoAt);bY(J,"getDebugText",J.getDebugText);bY(J,"getWebPlayerContextConfig",J.getWebPlayerContextConfig);bY(J,"notifyShortsAdSwipeEvent",J.notifyShortsAdSwipeEvent);bY(J,"getVideoContentRect",J.getVideoContentRect);bY(J,"setSqueezeback",J.setSqueezeback);bY(J,"toggleSubtitlesOn",J.toggleSubtitlesOn);bY(J,"isSubtitlesOn",J.isSubtitlesOn);bY(J,"reportPlaybackIssue",J.reportPlaybackIssue);bY(J,"setAutonav",J.setAutonav);bY(J, "isNotServable",J.isNotServable);bY(J,"channelSubscribed",J.channelSubscribed);bY(J,"channelUnsubscribed",J.channelUnsubscribed);bY(J,"togglePictureInPicture",J.togglePictureInPicture);bY(J,"supportsGaplessAudio",J.supportsGaplessAudio);bY(J,"supportsGaplessShorts",J.supportsGaplessShorts);bY(J,"enqueueVideoByPlayerVars",function(R){return void J.enqueueVideoByPlayerVars(R)}); bY(J,"clearQueue",J.clearQueue);bY(J,"getAudioTrack",J.QF);bY(J,"setAudioTrack",J.KuO);bY(J,"getAvailableAudioTracks",J.PG);bY(J,"getMaxPlaybackQuality",J.getMaxPlaybackQuality);bY(J,"getUserPlaybackQualityPreference",J.getUserPlaybackQualityPreference);bY(J,"getSubtitlesUserSettings",J.getSubtitlesUserSettings);bY(J,"resetSubtitlesUserSettings",J.resetSubtitlesUserSettings);bY(J,"setMinimized",J.setMinimized);bY(J,"setOverlayVisibility",J.setOverlayVisibility);bY(J,"confirmYpcRental",J.confirmYpcRental); bY(J,"queueNextVideo",J.queueNextVideo);bY(J,"handleExternalCall",J.handleExternalCall);bY(J,"logApiCall",J.logApiCall);bY(J,"isExternalMethodAvailable",J.isExternalMethodAvailable);bY(J,"setScreenLayer",J.setScreenLayer);bY(J,"getCurrentPlaylistSequence",J.getCurrentPlaylistSequence);bY(J,"getPlaylistSequenceForTime",J.getPlaylistSequenceForTime);bY(J,"shouldSendVisibilityState",J.shouldSendVisibilityState);bY(J,"syncVolume",J.syncVolume);bY(J,"highlightSettingsMenuItem",J.highlightSettingsMenuItem); bY(J,"openSettingsMenuItem",J.openSettingsMenuItem);bY(J,"getEmbeddedPlayerResponse",J.getEmbeddedPlayerResponse);bY(J,"getVisibilityState",J.getVisibilityState);bY(J,"isMutedByMutedAutoplay",J.isMutedByMutedAutoplay);J.T("embeds_enable_emc3ds_muted_autoplay")&&bY(J,"isMutedByEmbedsMutedAutoplay",J.isMutedByEmbedsMutedAutoplay);bY(J,"setGlobalCrop",J.setGlobalCrop);bY(J,"setInternalSize",J.setInternalSize);bY(J,"setFauxFullscreen",J.setFauxFullscreen);bY(J,"setAppFullscreen",J.setAppFullscreen)}; $e=function(J,R,N){J=g.TC(J.Op(),R);return N?(N.addOnDisposeCallback(J),null):J}; g.HE=function(J,R,N){return J.app.N().wN?R:g.rN("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:R,SHORTCUT:N})}; qzB=function(J){J.Op().element.setAttribute("aria-live","polite")}; g.ke=function(J,R){g.fu.call(this,J,R);dBB(this);xz(this,"addEventListener",this.rQ);xz(this,"removeEventListener",this.TNB);xz(this,"cueVideoByPlayerVars",this.ZO);xz(this,"loadVideoByPlayerVars",this.Tnp);xz(this,"preloadVideoByPlayerVars",this.FLQ);xz(this,"loadVideoById",this.hZ);xz(this,"loadVideoByUrl",this.pK);xz(this,"playVideo",this.L7);xz(this,"loadPlaylist",this.loadPlaylist);xz(this,"nextVideo",this.nextVideo);xz(this,"previousVideo",this.previousVideo);xz(this,"playVideoAt",this.playVideoAt); xz(this,"getVideoData",this.RM);xz(this,"seekBy",this.oh7);xz(this,"seekTo",this.BN7);xz(this,"showControls",this.showControls);xz(this,"hideControls",this.hideControls);xz(this,"cancelPlayback",this.cancelPlayback);xz(this,"getProgressState",this.getProgressState);xz(this,"isInline",this.isInline);xz(this,"setInline",this.setInline);xz(this,"setLoopVideo",this.setLoopVideo);xz(this,"getLoopVideo",this.getLoopVideo);xz(this,"getVideoContentRect",this.getVideoContentRect);xz(this,"getVideoStats",this.wv); xz(this,"getCurrentTime",this.Yu);xz(this,"getDuration",this.xR);xz(this,"getPlayerState",this.X2);xz(this,"getVideoLoadedFraction",this.BG);xz(this,"mute",this.Zg);xz(this,"unMute",this.Vx);xz(this,"setVolume",this.oN);xz(this,"loadModule",this.loadModule);xz(this,"unloadModule",this.unloadModule);xz(this,"getOption",this.je);xz(this,"getOptions",this.getOptions);xz(this,"setOption",this.setOption);xz(this,"addCueRange",this.addCueRange);xz(this,"getDebugText",this.getDebugText);xz(this,"getStoryboardFormat", this.getStoryboardFormat);xz(this,"toggleFullscreen",this.toggleFullscreen);xz(this,"isFullscreen",this.isFullscreen);xz(this,"getPlayerSize",this.getPlayerSize);xz(this,"toggleSubtitles",this.toggleSubtitles);xz(this,"setCenterCrop",this.setCenterCrop);xz(this,"setFauxFullscreen",this.setFauxFullscreen);xz(this,"setSizeStyle",this.setSizeStyle);xz(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);xz(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);E6k(this)}; g.vE=function(J){J=J.d3();var R=J.WU.get("endscreen");return R&&R.sS()?!0:J.kQ()}; g.WE=function(J,R){J.getPresentingPlayerType()===3?J.publish("mdxautoplaycancel"):J.z7("onAutonavCancelled",R)}; g.Lu=function(J){var R=SM(J.d3());return J.app.rV&&!J.isFullscreen()||J.getPresentingPlayerType()===3&&R&&R.y4()&&R.mS()||!!J.getPlaylist()}; g.Axn=function(J,R){g.J9(J,"addEmbedsConversionTrackingParams",[R])}; g.Fm=function(J){return(J=g.I1(J.d3()))?J.Wf():{}}; g.YzP=function(J){J=(J=J.getVideoData())&&J.J;return!!J&&!(!J.audio||!J.video)&&J.mimeType!=="application/x-mpegURL"}; g.EL=function(J,R,N){J=J.jQ().element;var C=CE(J.children,function(X){X=Number(X.getAttribute("data-layer"));return N-X||1}); C<0&&(C=-(C+1));$w(J,R,C);R.setAttribute("data-layer",String(N))}; g.M$=function(J){var R=J.N();if(!R.m7)return!1;var N=J.getVideoData();if(!N||J.getPresentingPlayerType()===3)return!1;var C=(!N.isLiveDefaultBroadcast||R.T("allow_poltergust_autoplay"))&&!wO(N);C=N.isLivePlayback&&(!R.T("allow_live_autoplay")||!C);var X=N.isLivePlayback&&R.T("allow_live_autoplay_on_mweb");J=J.getPlaylist();J=!!J&&J.y4();var u=N.T7&&N.T7.playerOverlays||null;u=!!(u&&u.playerOverlayRenderer&&u.playerOverlayRenderer.autoplay);u=N.wL&&u;return!N.ypcPreview&&(!C||X)&&!g.cl(N.tN,"ypc")&& !J&&(!g.V_(R)||u)}; rxE=function(J){J=g.ih(J.app);if(!J)return!1;var R=J.getVideoData();if(!R.J||!R.J.video||R.J.video.K<1080||R.Ti)return!1;var N=/^qsa/.test(R.clientPlaybackNonce),C="r";R.J.id.indexOf(";")>=0&&(N=/^[a-p]/.test(R.clientPlaybackNonce),C="x");return N?(J.u3("iqss",{trigger:C},!0),!0):!1}; j2g=function(){Gm.apply(this,arguments);this.requestHeaders={}}; Ku=function(){mBE||(mBE=new j2g);return mBE}; a1=function(J,R){R?J.requestHeaders.Authorization="Bearer "+R:delete J.requestHeaders.Authorization}; g.Q$=function(J,R,N,C){C=C===void 0?!1:C;g.da.call(this,R);var X=this;this.G=J;this.tN=C;this.X=new g.tY(this);this.nC=new g.ES(this,N,!0,void 0,void 0,function(){X.Qt()}); g.P(this,this.X);g.P(this,this.nC)}; V3E=function(J){J.J&&(document.activeElement&&g.kw(J.element,document.activeElement)&&J.J.focus(),J.J.setAttribute("aria-expanded","false"),J.J=void 0);g.pI(J.X);J.W=void 0}; zC=function(J,R,N){J.bQ()?J.Uv():J.Df(R,N)}; g6n=function(J,R,N,C){C=new g.c({C:"div",CC:["ytp-linked-account-popup-button"],cC:C,B:{role:"button",tabindex:"0"}});R=new g.c({C:"div",Y:"ytp-linked-account-popup",B:{role:"dialog","aria-modal":"true",tabindex:"-1"},j:[{C:"div",Y:"ytp-linked-account-popup-title",cC:R},{C:"div",Y:"ytp-linked-account-popup-description",cC:N},{C:"div",Y:"ytp-linked-account-popup-buttons",j:[C]}]});g.Q$.call(this,J,{C:"div",Y:"ytp-linked-account-popup-container",j:[R]},100);var X=this;this.dialog=R;g.P(this,this.dialog); C.listen("click",function(){X.Uv()}); g.P(this,C);g.EL(this.G,this.element,4);this.hide()}; g.y$=function(J,R,N,C){g.da.call(this,J);this.priority=R;N&&g.h9(this,N);C&&this.W1(C)}; g.GC=function(J,R,N,C){J=J===void 0?{}:J;R=R===void 0?[]:R;N=N===void 0?!1:N;C=C===void 0?!1:C;R.push("ytp-menuitem");var X=J;"role"in X||(X.role="menuitem");N||(X=J,"tabindex"in X||(X.tabindex="0"));J={C:N?"a":"div",CC:R,B:J,j:[{C:"div",Y:"ytp-menuitem-icon",cC:"{{icon}}"},{C:"div",Y:"ytp-menuitem-label",cC:"{{label}}"},{C:"div",Y:"ytp-menuitem-content",cC:"{{content}}"}]};C&&J.j.push({C:"div",Y:"ytp-menuitem-secondary-icon",cC:"{{secondaryIcon}}"});return J}; g.h9=function(J,R){J.updateValue("label",R)}; bh=function(J){g.y$.call(this,g.GC({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var R=this;this.G=J;this.J=this.K=!1;this.JE=J.M0();J.createServerVe(this.element,this,!0);this.L(this.G,"settingsMenuVisibilityChanged",function(N){R.Ev(N)}); this.L(this.G,"videodatachange",this.Z);this.listen("click",this.onClick);this.Z()}; t9=function(J){return J?g.Yn(J):""}; xe=function(J){g.l.call(this);this.api=J}; J7=function(J){xe.call(this,J);var R=this;bY(J,"setAccountLinkState",function(N){R.setAccountLinkState(N)}); bY(J,"updateAccountLinkingConfig",function(N){R.updateAccountLinkingConfig(N)}); J.addEventListener("videodatachange",function(N,C){R.onVideoDataChange(C)}); J.addEventListener("settingsMenuInitialized",function(){R.menuItem=new bh(R.api);g.P(R,R.menuItem)})}; UBE=function(J){this.api=J;this.K={}}; oK=function(J,R,N,C){R in J.K||(N=new g.Kw(N,C,{id:R,priority:2,namespace:"appad"}),J.api.KL([N],1),J.K[R]=N)}; pn8=function(J){xe.call(this,J);var R=this;this.events=new g.tY(this);g.P(this,this.events);this.K=new UBE(this.api);this.events.L(this.api,"legacyadtrackingpingreset",function(){R.K.K={}}); this.events.L(this.api,"legacyadtrackingpingchange",function(N){var C=R.K;oK(C,"part2viewed",1,0x8000000000000);oK(C,"engagedview",Math.max(1,N.VK*1E3),0x8000000000000);if(!N.isLivePlayback){var X=N.lengthSeconds*1E3;Fr(N)&&C.api.T("html5_shorts_gapless_ads_duration_fix")&&(X=C.api.getProgressState().seekableEnd*1E3-N.zI);oK(C,"videoplaytime25",X*.25,X);oK(C,"videoplaytime50",X*.5,X);oK(C,"videoplaytime75",X*.75,X);oK(C,"videoplaytime100",X,0x8000000000000);oK(C,"conversionview",X,0x8000000000000); oK(C,"videoplaybackstart",1,X);oK(C,"videoplayback2s",2E3,X);oK(C,"videoplayback10s",1E4,X)}}); this.events.L(this.api,g.Q3("appad"),this.J);this.events.L(this.api,g.nw("appad"),this.J)}; e3Y=function(J,R,N){if(!(N in R))return!1;R=R[N];Array.isArray(R)||(R=[R]);R=g.K(R);for(N=R.next();!N.done;N=R.next()){N=N.value;var C={CPN:J.api.getVideoData().clientPlaybackNonce};N=g.r5(N,C);C=void 0;C=C===void 0?!1:C;(C=WT(SJ(N,lCn),N,C,"Active View 3rd Party Integration URL"))||(C=void 0,C=C===void 0?!1:C,C=WT(SJ(N,PG8),N,C,"Google/YouTube Brand Lift URL"));C||(C=void 0,C=C===void 0?!1:C,C=WT(SJ(N,z32),N,C,"Nielsen OCR URL"));g.C5(N,void 0,C)}return!0}; RK=function(J,R){wnE(J,R).then(function(N){g.C5(R,void 0,void 0,N)})}; NU=function(J,R){R.forEach(function(N){RK(J,N)})}; wnE=function(J,R){return g.eG(J.api.N())&&K4(R)&&MO(R)?g.Wm(J.api.N(),g.PJ(J.api.getVideoData())).then(function(N){var C;N&&(C={Authorization:"Bearer "+N});return C},void 0):eQ()}; cxg=function(J){xe.call(this,J);this.events=new g.tY(J);g.P(this,this.events);this.events.L(J,"videoready",function(R){if(J.getPresentingPlayerType()===1){var N,C,X={playerDebugData:{pmlSignal:!!((N=R.getPlayerResponse())==null?0:(C=N.adPlacements)==null?0:C.some(function(u){var f;return u==null?void 0:(f=u.adPlacementRenderer)==null?void 0:f.renderer})), contentCpn:R.clientPlaybackNonce}};g.Mz("adsClientStateChange",X)}})}; yxB=function(J){g.c.call(this,{C:"button",CC:["ytp-button"],B:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},j:[{C:"div",Y:"ytp-autonav-toggle-button-container",j:[{C:"div",Y:"ytp-autonav-toggle-button",B:{"aria-checked":"true"}}]}]});this.G=J;this.J=[];this.K=!1;this.isChecked=!0;J.createClientVe(this.element,this,113681);this.L(J,"presentingplayerstatechange",this.cR);this.listen("click",this.onClick);this.G.N().T("web_player_autonav_toggle_always_listen")&& h3E(this);$e(J,this.element,this);this.cR()}; h3E=function(J){J.J.push(J.L(J.G,"videodatachange",J.cR));J.J.push(J.L(J.G,"videoplayerreset",J.cR));J.J.push(J.L(J.G,"onPlaylistUpdate",J.cR));J.J.push(J.L(J.G,"autonavchange",J.nM))}; GtP=function(J){J.isChecked=J.isChecked;J.qp("ytp-autonav-toggle-button").setAttribute("aria-checked",String(J.isChecked));var R=J.isChecked?"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 ativada":"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 desativada";J.updateValue("title",R);J.updateValue("label",R);J.G.mQ()}; bqn=function(J){return J.G.N().T("web_player_autonav_use_server_provided_state")&&Ru2(J.bS())}; t3Q=function(J){xe.call(this,J);var R=this;this.events=new g.tY(J);g.P(this,this.events);this.events.L(J,"standardControlsInitialized",function(){var N=new yxB(J);g.P(R,N);J.Kn(N)})}; CJ=function(J,R){g.y$.call(this,g.GC({role:"menuitemcheckbox","aria-checked":"false"}),R,J,{C:"div",Y:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; X_=function(J,R){J.checked=R;J.element.setAttribute("aria-checked",String(J.checked))}; xBB=function(J){var R=!J.N().mR&&J.getPresentingPlayerType()!==3;return J.isFullscreen()||R}; g.ie=function(J,R,N,C){var X=J.currentTarget;if((N===void 0||!N)&&g.ea(J))return J.preventDefault(),!0;R.pauseVideo();J=X.getAttribute("href");g.fL(J,C,!0);return!1}; g.ue=function(J,R,N){if(Rd(R.N())&&R.getPresentingPlayerType()!==2){if(g.ea(N))return R.isFullscreen()&&!R.N().externalFullscreen&&R.toggleFullscreen(),N.preventDefault(),!0}else{var C=g.ea(N);C&&R.pauseVideo();g.fL(J,void 0,!0);C&&(g.Tg(J),N.preventDefault())}return!1}; orY=function(){var J=JIE.includes("pt-BR")?{C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"path",JL:!0,B:{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"}}]}:{C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"path",JL:!0,B:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};J.Y="ytp-subtitles-button-icon";return J}; RTB=function(){return{C:"div",Y:"ytp-spinner-container",j:[{C:"div",Y:"ytp-spinner-rotator",j:[{C:"div",Y:"ytp-spinner-left",j:[{C:"div",Y:"ytp-spinner-circle"}]},{C:"div",Y:"ytp-spinner-right",j:[{C:"div",Y:"ytp-spinner-circle"}]}]}]}}; N8g=function(J){if(document.createRange){var R=document.createRange();R&&(R.selectNodeContents(J),J=window.getSelection())&&(J.removeAllRanges(),J.addRange(R))}}; T7=function(J){var R=J.T("web_player_use_cinematic_label_2")?"Ambiente integrado":"Ilumina\u00e7\u00e3o cinematogr\u00e1fica";CJ.call(this,R,g.fJ.mp);var N=this;this.G=J;this.K=!1;this.J=new g.$t(function(){g.Mh(N.element,"ytp-menuitem-highlighted")},0); this.JE=J.M0();this.setIcon({C:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{C:"path",B:{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.V,this);this.listen(CBB,this.Z);g.P(this,this.J)}; i0E=function(J){xe.call(this,J);var R=this;this.K=!1;J.addEventListener("settingsMenuInitialized",function(){XfB(R)}); J.addEventListener("highlightSettingsMenu",function(N){XfB(R);var C=R.menuItem;N==="menu_item_cinematic_lighting"&&(g.FL(C.element,"ytp-menuitem-highlighted"),g.FL(C.element,"ytp-menuitem-highlight-transition-enabled"),C.J.start())}); bY(J,"updateCinematicSettings",function(N){R.updateCinematicSettings(N)})}; XfB=function(J){J.menuItem||(J.menuItem=new T7(J.api),g.P(J,J.menuItem),J.menuItem.hN(J.K))}; uQB=function(J){xe.call(this,J);var R=this;this.events=new g.tY(J);g.P(this,this.events);this.events.L(J,"applicationvideodatachange",function(N,C){R.YO(N,C)})}; $8=function(J,R,N,C){CJ.call(this,"Volume est\u00e1vel",g.fJ.mN);g.FL(this.element,"ytp-drc-menu-item");this.JE=J.M0();this.Z=R;this.K=N;this.hasDrcAudioTrack=C;J.addEventListener("videodatachange",this.J.bind(this));J.T("mta_drc_mutual_exclusion_removal")&&this.L(J,"onPlaybackAudioChange",this.J);J=this.K()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({C:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{C:"path",B:{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.V,this);X_(this,J);this.JE.S2(this)}; Hi=function(J){xe.call(this,J);var R=this;this.events=new g.tY(J);g.P(this,this.events);J.T("html5_show_drc_toggle")&&J.addEventListener("settingsMenuInitialized",function(){R.menuItem||(R.menuItem=new $8(R.api,R.setDrcUserPreference.bind(R),R.getDrcUserPreference.bind(R),R.J.bind(R)),g.P(R,R.menuItem))}); bY(this.api,"setDrcUserPreference",function(C){R.setDrcUserPreference(C)}); bY(this.api,"getDrcUserPreference",function(){return R.getDrcUserPreference()}); bY(this.api,"hasDrcAudioTrack",function(){return R.J()}); var N;this.K=(N=g.wJ("yt-player-drc-pref"))!=null?N:1;this.updateEnvironmentData()}; k8=function(J){xe.call(this,J);var R=this;this.K={};this.events=new g.tY(J);g.P(this,this.events);this.events.L(J,"videodatachange",function(){R.onVideoDataChange()}); this.events.L(J,g.Q3("embargo"),function(N){R.api.UP(!0);var C,X=(C=R.K[N.id])!=null?C:[];C=g.K(X);for(X=C.next();!X.done;X=C.next()){var u=X.value;R.api.hideControls();R.api.As("auth",2,"This video isn't available in your current playback area",lJ({embargoed:1,id:N.id,idx:N.J,start:N.start}));X=void 0;(u=(X=u.embargo)==null?void 0:X.onTrigger)&&R.api.z7("innertubeCommand",u)}})}; fjB=function(J,R){var N;return(N=R.onEnter)==null?void 0:N.some(J.J)}; T8B=function(J,R){R=g.K(R);for(var N=R.next();!N.done;N=R.next()){N=N.value;var C=void 0,X=Number((C=N.playbackPosition)==null?void 0:C.utcTimeMillis)/1E3,u=void 0;C=X+Number((u=N.duration)==null?void 0:u.seconds);u="embargo_"+X;J.api.addUtcCueRange(u,X,C,"embargo",!1);N.onEnter&&(J.K[u]=N.onEnter.filter(J.J))}}; $88=function(J){xe.call(this,J);var R=this;this.K=[];this.events=new g.tY(J);g.P(this,this.events);bY(J,"addEmbedsConversionTrackingParams",function(N){R.api.N().Ob&&R.addEmbedsConversionTrackingParams(N)}); this.events.L(J,"veClickLogged",function(N){R.api.hasVe(N)&&(N=C8(N.visualElement.getAsJspb(),2),R.K.push(N))})}; H0k=function(J){xe.call(this,J);var R=this;this.events=new g.tY(J);g.P(this,this.events);this.events.L(J,"initialvideodatacreated",function(N){ln(pf(),16623);R.K=g.pR();var C=J.N().ZI&&!N.Im;if(lY(N)&&C){ln(pf(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(N.getWatchNextResponse()){var X,u=(X=N.getWatchNextResponse())==null?void 0:X.trackingParams;u&&zw(u)}if(N.getPlayerResponse()){var f;(N=(f=N.getPlayerResponse())==null?void 0:f.trackingParams)&&zw(N)}}else ln(pf(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),N.getEmbeddedPlayerResponse()&&(f=(u=N.getEmbeddedPlayerResponse())==null?void 0:u.trackingParams)&&zw(f)}); this.events.L(J,"loadvideo",function(){ln(pf(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:R.K})}); this.events.L(J,"cuevideo",function(){ln(pf(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:R.K})}); this.events.L(J,"largeplaybuttonclicked",function(N){ln(pf(),27240,N.visualElement)}); this.events.L(J,"playlistnextbuttonclicked",function(N){ln(pf(),27240,N.visualElement)}); this.events.L(J,"playlistprevbuttonclicked",function(N){ln(pf(),27240,N.visualElement)}); this.events.L(J,"playlistautonextvideo",function(){ln(pf(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; k2f=function(J,R){g.l.call(this);var N=this;this.K=null;this.V=R;R=[];for(var C=0;C<=100;C++)R.push(C/100);R={threshold:R,trackVisibility:!0,delay:1E3};(this.J=window.IntersectionObserver?new IntersectionObserver(function(X){X=X[X.length-1];typeof X.isVisible==="undefined"?N.K=null:N.K=X.isVisible?X.intersectionRatio:0;typeof N.V==="function"&&N.V(N.K)},R):null)&&this.J.observe(J)}; WfB=function(J){xe.call(this,J);var R=this;this.events=new g.tY(J);g.P(this,this.events);this.events.L(J,"applicationInitialized",function(){vrB(R)})}; vrB=function(J){J.K=new k2f(J.api.getRootNode(),function(R){R!=null&&(J.api.N().V4=R)}); g.P(J,J.K);J.events.L(J.api,"videoStatsPingCreated",function(R){var N=J.K;N=N.K==null?null:Math.round(N.K*100)/100;R.inview=N!=null?N:void 0;N=J.api.getPlayerSize();if(N.height>0&&N.width>0){N=[Math.round(N.width),Math.round(N.height)];var C=g.CW();C>1&&N.push(C);N=N.join(":")}else N=void 0;R.size=N})}; SV7=function(J){var R;return((R=((J==null?void 0:J.messageRenderers)||[]).find(function(N){return!!N.timeCounterRenderer}))==null?void 0:R.timeCounterRenderer)||null}; vi=function(J){g.c.call(this,{C:"div",CC:["ytp-player-content","ytp-iv-player-content"],j:[{C:"div",Y:"ytp-free-preview-countdown-timer",j:[{C:"span",cC:"{{label}}"},{C:"span",Y:"ytp-free-preview-countdown-timer-separator",cC:"\u2022"},{C:"span",cC:"{{duration}}"}]}]});this.api=J;this.K=null;this.V=this.J=0;this.L(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; Ijk=function(J,R){J.K||(J.J=R,J.V=(0,g.g9)(),J.K=new g.T9(function(){Lf8(J)},null),Lf8(J))}; Lf8=function(J){var R=Math,N=R.round,C=Math.min((0,g.g9)()-J.V,J.J);R=N.call(R,(J.J-C)/1E3);J.updateValue("duration",rS({seconds:R}));R<=0&&J.K?FfQ(J):J.K&&J.K.start()}; FfQ=function(J){J.K&&(J.K.dispose(),J.K=null)}; Erk=function(J){xe.call(this,J);var R=this;this.events=new g.tY(J);g.P(this,this.events);this.events.L(J,"basechromeinitialized",function(){R.K=new vi(J);g.P(R,R.K);g.EL(J,R.K.element,4);R.K.hide()})}; Wi=function(J){g.c.call(this,{C:"button",CC:["ytp-fullerscreen-edu-button","ytp-button"],j:[{C:"div",CC:["ytp-fullerscreen-edu-text"],cC:"Role para ver detalhes"},{C:"div",CC:["ytp-fullerscreen-edu-chevron"],j:[{C:"svg",B:{height:"100%",viewBox:"0 0 24 24",width:"100%"},j:[{C:"path",B:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],B:{"data-priority":"1"}});this.x8=J;this.K=new g.ES(this,250,void 0,100);this.V=this.J=!1;J.createClientVe(this.element,this,61214);g.P(this, this.K);this.L(J,"fullscreentoggled",this.hN);this.L(J,"presentingplayerstatechange",this.hN);this.listen("click",this.onClick);this.hN()}; Sr=function(J){xe.call(this,J);var R=this;this.events=new g.tY(J);g.P(this,this.events);bY(this.api,"updateFullerscreenEduButtonSubtleModeState",function(C){R.updateFullerscreenEduButtonSubtleModeState(C)}); bY(this.api,"updateFullerscreenEduButtonVisibility",function(C){R.updateFullerscreenEduButtonVisibility(C)}); var N=J.N();J.T("external_fullscreen_with_edu")&&N.externalFullscreen&&Rd(N)&&N.controlsType==="1"&&this.events.L(J,"standardControlsInitialized",function(){R.K=new Wi(J);g.P(R,R.K);J.Kn(R.K)})}; MLE=function(J){g.c.call(this,{C:"div",Y:"ytp-gated-actions-overlay",j:[{C:"div",Y:"ytp-gated-actions-overlay-background",j:[{C:"div",Y:"ytp-gated-actions-overlay-background-overlay"}]},{C:"button",CC:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],B:{"aria-label":"Fechar"},j:[g.UI()]},{C:"div",Y:"ytp-gated-actions-overlay-bar",j:[{C:"div",Y:"ytp-gated-actions-overlay-text-container",j:[{C:"div",Y:"ytp-gated-actions-overlay-title",cC:"{{title}}"},{C:"div",Y:"ytp-gated-actions-overlay-subtitle", cC:"{{subtitle}}"}]},{C:"div",Y:"ytp-gated-actions-overlay-button-container"}]}]});var R=this;this.api=J;this.background=this.qp("ytp-gated-actions-overlay-background");this.J=this.qp("ytp-gated-actions-overlay-button-container");this.K=[];this.L(this.qp("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){R.api.z7("onCloseMiniplayer")}); this.hide()}; ajg=function(J,R){var N=0;N=0;for(var C={};N X&&(X=H.width,u="url("+H.url+")")}N.background.style.backgroundImage=u;ajg(N,C.actionButtons||[]);N.show()}else N.hide()}); g.EL(this.api,this.K.element,4)}; nrQ=function(J){xe.call(this,J);var R=this;this.K=null;this.events=new g.tY(J);g.P(this,this.events);var N=J.N();N.gs=!1;N.HC=!1;N.qj=!1;xz(J,"resetSubtitlesUserSettings",function(){J.resetSubtitlesUserSettings()}); xz(J,"getSubtitlesUserSettings",function(){return J.getSubtitlesUserSettings()}); xz(J,"updateSubtitlesUserSettings",function(u){J.updateSubtitlesUserSettings(u)}); xz(J,"getCaptionTracks",function(){return J.getOption("captions","tracklist",{includeAsr:!0})}); xz(J,"getAvailableQualityLevels",function(){return J.getAvailableQualityLevels()}); xz(J,"getPreferredQuality",function(){return J.getPreferredQuality()}); xz(J,"getPlaybackQuality",function(){return J.getPlaybackQuality()}); xz(J,"setPlaybackQuality",function(u){J.setPlaybackQuality(u)}); var C=this.api.nJ(),X=C.subscribe("visibilitystatechange",function(){J.zA("onPictureInPictureChange",C.Fp())}); this.addOnDisposeCallback(function(){C.fb(X)}); xz(J,"setRootNodeClickAction",function(u){R.K=u}); this.events.L(J.getRootNode(),"click",function(){switch(R.K){case "togglePictureInPicture":J.togglePictureInPicture();break;case "play":J.playVideo()}})}; D8E=function(J){xe.call(this,J);J=J.N();J.t2.push("flix");J.HC=!1;J.gs=!1}; Z0f=function(J){xe.call(this,J);var R=this;this.K={};this.events=new g.tY(J);g.P(this,this.events);this.events.L(J,"applicationInitialized",function(){R.K=s9Q(B8P)}); this.events.L(J,"onPlaybackStartExternal",function(){var N=Object.assign({},R.K,s9Q(O0k));R.api.u3("hbp_csi",N,!0,1)})}; s9Q=function(J){var R={},N=g.$q(fn)("_start",void 0);if(N){J=g.K(J);for(var C=J.next();!C.done;C=J.next()){C=C.value;var X=g.$q(fn)(C,void 0);X&&(R[C]=Math.round(X-N))}}return R}; LJ=function(J){xe.call(this,J);var R=this;xz(this.api,"getSphericalProperties",function(){return R.getSphericalProperties()}); xz(this.api,"setSphericalProperties",function(){R.setSphericalProperties.apply(R,g.Q(g.sf.apply(0,arguments)))}); tq(this.api,"getSphericalProperties",function(){return R.api.getPresentingPlayerType()===2?{}:R.getSphericalProperties()}); tq(this.api,"setSphericalProperties",function(){var N=g.sf.apply(0,arguments);R.api.getPresentingPlayerType()!==2&&R.setSphericalProperties.apply(R,g.Q(N))})}; d8k=function(J){xe.call(this,J);bY(J,"createClientVe",this.createClientVe.bind(this));bY(J,"createServerVe",this.createServerVe.bind(this));bY(J,"destroyVe",this.destroyVe.bind(this));bY(J,"hasVe",this.hasVe.bind(this));bY(J,"logClick",this.logClick.bind(this));bY(J,"logVisibility",this.logVisibility.bind(this));bY(J,"setTrackingParams",this.setTrackingParams.bind(this))}; IK=function(J,R,N,C){function X(f){var H=!(f.status!==204&&f.status!==200&&!f.response),k;f={succ:""+ +H,rc:f.status,lb:((k=f.response)==null?void 0:k.byteLength)||0,rt:((0,g.g9)()-u).toFixed(),shost:g.ez(J),trigger:R};qVg(f,J);N&&N(f);C&&!H&&C(new PD("pathprobe.net",f))} var u=(0,g.g9)();g.V5(J,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:X,onTimeout:X})}; qVg=function(J,R){var N;((N=window.performance)==null?0:N.getEntriesByName)&&(R=performance.getEntriesByName(R))&&R.length&&(R=R[0],J.pedns=(R.domainLookupEnd-R.startTime).toFixed(),J.pecon=(R.connectEnd-R.domainLookupEnd).toFixed(),J.perqs=(R.requestStart-R.connectEnd).toFixed(),AIg&&(J.perqsa=R.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; YVB=function(J,R){this.I9=J;this.policy=R;this.playbackRate=1}; rI7=function(J,R){var N=Math.min(2.5,Oi(J.I9));J=F_(J);return R-N*J}; m82=function(J,R,N,C,X){X=X===void 0?!1:X;if(J.policy.H_)return Math.ceil(J.policy.H_*R);J.policy.JU&&(C=Math.abs(C));C/=J.playbackRate;var u=1/qw(J.I9);N=Math.max(.9*(C-3),Oi(J.I9)+2048*u)/u*.8/(R+N);N=Math.min(N,C);J.policy.uO>0&&X&&(N=Math.max(N,J.policy.uO));return j9Q(J,N,R)}; j9Q=function(J,R,N){return Math.ceil(Math.max(Math.max(J.policy.IE,J.policy.Ds*N),Math.min(Math.min(J.policy.l3,31*N),Math.ceil(R*N))))||J.policy.IE}; VLg=function(J,R,N){N=m82(J,R.K.info.fC,N.K.info.fC,0);var C=Oi(J.I9)+N/qw(J.I9);return Math.max(C,C+J.policy.Oa-N/R.K.info.fC)}; F_=function(J){return qw(J.I9,!J.policy.gs,J.policy.Lk)}; Ee=function(J){return F_(J)/J.playbackRate}; grQ=function(J,R,N){var C=J.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],X=J.policy.playbackStartPolicy.startMinReadaheadPolicy||[];J=Infinity;R=g.K(R&&C.length>0?C:X);for(C=R.next();!C.done;C=R.next())C=C.value,X=C.minReadaheadMs||0,N<(C.minBandwidthBytesPerSec||0)||J>X&&(J=X);return J0&&(this.J=N.mw)}; pfQ=function(J,R){return J.Zf.length===0||J.policy.CY&&(J.K=MU(J.Zf,R*1E3),J.K>J.Zf.length-1)?null:(R=J.Zf[J.K]?J.Zf[J.K].formatId:null)?(J=J.manifest.V.get(VH(R)))?J.info:null:null}; aK=function(J,R,N,C,X){if(!C.info.Z){if(N.length===0)N.push(C);else{var u;(J=(u=N.pop())==null?void 0:Hf(u,C))?N.push(J):N.push(C)}return X}var f;(N=(f=N.pop())==null?void 0:Hf(f,C))||(N=C);if(J.policy.AL&&N.info.J)return J.logger&&J.logger({incompleteSegment:N.info.Ki()}),X;f=J.Ya(N);C=f.formatId;X=f.SQ;N=f.clipId;u=f.DO;f=f.startTimeMs;if(!J.policy.Im&&J.policy.J&&J.lS){var H=KJ(J.lS,N);f+=H}C={clipId:N,formatId:C,startTimeMs:f,durationMs:u,v4:X,KJ:X,UC:f,Zv:u};X=MU(R,C.startTimeMs);(N=X>=0?R[X]: null)&&ljB(J,N,C)?C=N:(X+=1,R.splice(X,0,C));N=0;for(u=X+1;u=v+f.J?f=!0:W+f.J=0?J:-J-2}; zTE=function(J,R,N){if(J.CP){var C=J.CP.jD();if(C.length!==0){if(J.V&&R){var X=J.V,u=X.info.dN;!Qp(C,u)&&X.info.S>0&&(0,g.g9)()-J.S<5E3&&(J.logger&&J.logger({dend:X.info.Ki()}),C=Ujf(C,u,u+.01))}J.policy.CY&&(J.K=MU(J.Zf,N*1E3),J.logger&&J.logger({cbri:""+J.K,ct:""+N,sb:""+Ke(C,"_",10)}));N=[];for(u=X=0;X=f){var W=0;if(J.lS){var S=Qj(J.lS,k*1E3);S&&(W=S.jS/1E3)}S= Object.assign({},J.Zf[u]);var L=J.manifest.V.get(VH(J.Zf[u].formatId)),I=Math.max(k,f);f=L.index.qn(I+J.J/1E3-W);k=L.index.getStartTime(f)+W;var F=f+ +(Math.abs(k-I)>J.J/1E3);I=F+J.Z;F=(L.index.getStartTime(F)+W)*1E3;u!==J.K||R?(S.v4=I,S.startTimeMs=F):(J.logger&&J.logger({pEvict:"1",og:S.startTimeMs,adj:k*1E3}),S.v4=f+J.Z,S.startTimeMs=k*1E3);S.UC=S.startTimeMs;f=void 0;k=((f=J.V)==null?void 0:f.info.duration)||11;u===J.K&&HJ.J/1E3);f=k+J.Z;W=(L.index.eb(k)+W)*1E3;S.KJ=f;S.durationMs=W-S.startTimeMs;S.Zv=S.durationMs;S.v4<=S.KJ&&N.push(S)}vJ.J)return!1;if(PBB(J,R.formatId,N.formatId))return R.durationMs=Math.max(C,X)-R.startTimeMs,R.Zv=R.durationMs,R.KJ=Math.max(R.KJ,N.KJ),!0;if(Math.abs(R.startTimeMs-N.startTimeMs)<=J.J){if(R.durationMs>N.durationMs+J.J){J=R.formatId;var u=R.v4,f=R.KJ;R.formatId=N.formatId;R.durationMs=N.durationMs;R.v4=N.v4;R.Zv=N.durationMs;R.KJ=N.KJ;N.formatId=J;N.startTimeMs=X;N.UC=X;N.durationMs=C-X;N.Zv=N.durationMs; N.v4=u;N.KJ=f;return!1}R.formatId=N.formatId;return!0}C>N.startTimeMs&&(R.durationMs=N.startTimeMs-R.startTimeMs,R.Zv=R.durationMs,J.policy.TK&&R.clipId===N.clipId&&(R.KJ=N.v4-1));return!1}; PBB=function(J,R,N){return R.itag!==N.itag||R.xtags!==N.xtags?!1:J.manifest.MR||R.lmt===N.lmt}; wfE=function(J,R,N){if(J.logger){for(var C=[],X=0;X=0&&Oe(J.audioTrack,J.K)>=0&&u?((J.videoTrack.U||J.audioTrack.U)&&J.vC.u3("iterativeSeeking",{status:"done",count:J.seekCount}),J.videoTrack.U=!1,J.audioTrack.U=!1):C&&g.Sz(function(){if(J.J||!J.policy.VK)A7(J);else{var f=R.startTime,H=R.duration;if(!J.policy.S){var k=N?J.videoTrack.U:J.audioTrack.U,v=J.videoTrack.S!==-1&&J.audioTrack.S!==-1,W=J.K>=f&&J.K432E3&&aSg(J.manifest);J.V&&(X=J.V,J.V=0);g.Sz(function(){J.policy.S||J6Y(J,X,102)}); J.vC.u3("initManifestlessSync",{st:X,ost:X+J.vC.uS(),a:J.audioTrack.S,v:J.videoTrack.S});J.Z&&(J.Z.resolve(X+.1),J.Z=null);J.policy.S&&J6Y(J,X,102)}}}; jr=function(J,R){var N=this;this.nP=J;this.requestNumber=++RVB;this.K=this.now();this.nC=this.X=NaN;this.D=this.K;this.V=this.YA=this.U=0;this.S=this.K;this.l3=this.VO=this.pC=this.kA=this.ji=this.ma=this.J=this.Z=0;this.W=this.isActive=!1;this.VK=this.oB=0;this.QR={POC:function(){return N.xg}}; this.I9=R.I9;this.snapshot=uan(this.I9);this.policy=this.I9.W;this.Mz=!!R.Mz;this.Ho=R.Ho;this.Mi=R.Mi||0;R.Vo&&(this.tN=new Ks);var C;this.xg=(C=R.xg)!=null?C:!1;CdE(this.I9)}; NIE=function(J){J.pC=Math.max(J.pC,J.U-J.ji);J.VO=Math.max(J.VO,J.D-J.kA);J.ma=0}; mm=function(J,R,N){X3B(J.I9,R);J.tN&&(J.tN.add(Math.ceil(R)-Math.ceil(J.D)),J.tN.add(Math.max(0,Math.ceil(N/1024)-Math.ceil(J.U/1024))));var C=R-J.D,X=N-J.U;J.YA=X;J.l3=Math.max(J.l3,X/(C+.01)*1E3);J.D=R;J.U=N;J.ma&&N>J.ma&&NIE(J)}; Can=function(J,R){J.url=R;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; Vj=function(J,R){jr.call(this,J,R);this.GW=this.TW=!1;this.PC=this.dn=Infinity;this.G7=NaN;this.R1=!1;this.HC=NaN;this.Xn=this.eQ=this.Xk=0;this.Ln=R.Ln||1;this.AG=R.AG||this.Ln;this.sV=R.sV;this.SQ=R.SQ;this.A2=R.A2;this.j8=R.j8||0;XHf(this);this.wP(this.K);this.EB=(this.HC-this.K)/1E3}; isg=function(J){var R=J.eQ||J.Xk;return R?J.snapshot.delay+Math.min(J.j8,(J.nC-J.X)/1E3)+R:J.EB}; uOE=function(J,R,N){J.Mz||(R=Math.max(R,.01),DF(J.I9,R,N,J.Mi?Math.max(R,N/J.Mi):R))}; fFP=function(J){return(J.S-J.K)/1E3}; XHf=function(J){J.G7=J.K+J.snapshot.delay*1E3;J.R1=!1}; HsB=function(J,R){if(J.sV&&J.SQ!==void 0&&J.A2!==void 0){var N=Math,C=N.min,X=J.dn;var u=J.sV;var f=J.K;if(TIB(u,J.SQ))u=R;else{var H=0;u.CJ&&(H=.2);u=f+(u.j8+H)*1E3}J.dn=C.call(N,X,u);N=Math;C=N.min;X=J.PC;u=J.sV;f=J.K;H=$wE(u,J.SQ,J.A2);H!==2&&(R=H?R:f+u.j8*1E3,u.CJ&&(R+=u.j8*1E3));J.PC=C.call(N,X,R);J.dn<=J.K?XHf(J):(J.G7=J.dn,J.R1=!0)}}; knY=function(J,R){if(J.p8(R,1)){var N=J.getUint8(R);N=N<128?1:N<192?2:N<224?3:N<240?4:5}else N=0;if(N<1||!J.p8(R,N))return[-1,R];if(N===1)J=J.getUint8(R++);else if(N===2)N=J.getUint8(R++),J=J.getUint8(R++),J=(N&63)+64*J;else if(N===3){N=J.getUint8(R++);var C=J.getUint8(R++);J=J.getUint8(R++);J=(N&31)+32*(C+256*J)}else if(N===4){N=J.getUint8(R++);C=J.getUint8(R++);var X=J.getUint8(R++);J=J.getUint8(R++);J=(N&15)+16*(C+256*(X+256*J))}else N=R+1,J.focus(N),yG(J,N,4)?J=x6f(J).getUint32(N-J.Pd,!0):(C= J.getUint8(N+2)+256*J.getUint8(N+3),J=J.getUint8(N)+256*(J.getUint8(N+1)+256*C)),R+=5;return[J,R]}; go=function(J){this.nP=J;this.K=new eV}; Ue=function(J,R){this.info=J;this.callback=R;this.state=1;this.Q9=this.md=!1;this.GN=null}; vS2=function(J){return g.rf(J.info.aB,function(R){return R.type===3})}; WJB=function(J,R,N,C){var X=this;C=C===void 0?{}:C;this.policy=R;this.nP=N;this.status=0;this.K=new eV;this.J=0;this.QO=this.Z=this.V=!1;this.xhr=new XMLHttpRequest;this.xhr.open(C.method||"GET",J);if(C.headers)for(J=C.headers,R=g.K(Object.keys(J)),N=R.next();!N.done;N=R.next())N=N.value,this.xhr.setRequestHeader(N,J[N]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return X.gi()}; this.xhr.onload=function(){return X.onDone()}; this.xhr.onerror=function(){return X.onError()}; this.xhr.fetch(function(u){X.K.append(u);X.J+=u.length;u=(0,g.g9)();X.nP.iP(u,X.J)},function(){},C.body||null)}; SiB=function(J,R){this.J=(new TextEncoder).encode(J);this.K=(new TextEncoder).encode(R)}; FN8=function(J,R){var N,C,X;return g.Y(function(u){if(u.K==1){if(!R)return u.return(R);N=pJ.qa();C=new g.Ub(J.J);return g.q(u,C.encrypt(R,J.K),2)}X=u.J;pJ.yb("woe",N,Math.ceil(R.byteLength/16));return u.return(X)})}; QAn=function(J,R){var N,C,X;return g.Y(function(u){if(u.K==1){if(!R)return u.return(R);N=pJ.qa();C=new g.Ub(J.J);return g.q(u,C.decrypt(R,J.K),2)}X=u.J;pJ.yb("wod",N,Math.ceil(R.byteLength/16));return u.return(X)})}; LJg=function(J,R){var N=this;this.K=J;this.nP=R;this.loaded=this.status=0;this.error="";J=pq(this.K.get("range")||"");if(!J)throw Error("bad range");this.range=J;this.J=new eV;this.run().then(function(){N.nP.qI()},function(C){N.error=""+C||"unknown_err"; N.nP.qI()})}; FJf=function(J,R,N,C){var X=this;C=C===void 0?{}:C;this.policy=R;this.nP=N;this.D=C;this.status=0;this.response=void 0;this.J=0;this.U=this.S=!1;this.errorMessage="";this.W=function(u){if(u)if(X.status=u.status,u.ok&&u.body&&X.status!==204)X.status=X.status||242,X.V=u.body.getReader(),X.QO()?X.V.cancel().catch(function(){}):(X.responseHeaders=u.headers,X.nP.rq(),IFf(X)); else X.onDone();else X.onError(Error("null_response"))}; this.X=function(u){var f=(0,g.g9)();X.QO()||(u.done?(X.V=void 0,X.onDone()):(u=u.value,X.J+=u.length,X.K.append(u),IFf(X),X.nP.iP(f,X.J)))}; this.onError=function(u){X.errorMessage=String(u);X.S=!0;X.onDone()}; this.K=new eV;this.Z=window.AbortController?new AbortController:void 0;this.start(J)}; IFf=function(J){J.V.read().then(J.X,J.onError).then(void 0,Eq)}; ESE=function(J,R,N){var C=this;N=N===void 0?{}:N;this.nP=R;this.J=this.status=0;this.QO=this.K=!1;this.xhr=new XMLHttpRequest;this.xhr.open(N.method||"GET",J);if(N.headers){J=N.headers;R=g.K(Object.keys(J));for(var X=R.next();!X.done;X=R.next())X=X.value,this.xhr.setRequestHeader(X,J[X])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(u){C.gi(u)}; J=jq(function(u){C.onDone(u)}); this.xhr.addEventListener("load",J,!1);this.xhr.addEventListener("error",J,!1);N.body?this.xhr.send(N.body):this.xhr.send();this.xhr.addEventListener("progress",jq(function(u){C.zN(u)}),!1)}; le=function(J,R,N,C,X){if(g$(J.base))return new LJg(J,N);J=J.Yi();return C?zdn()?new WJB(J,R,N,X):new FJf(J,R,N,X):new ESE(J,N,X)}; g.Pi=function(J){this.tag=J}; KJ8=function(J,R){g.MhQ.apply(null,[6,J,R].concat(g.Q(g.sf.apply(2,arguments))))}; aFE=function(J,R){g.MhQ.apply(null,[5,J,R].concat(g.Q(g.sf.apply(2,arguments))))}; g.MhQ=function(J,R,N){var C=g.sf.apply(3,arguments),X=J===6?"ERROR":"WARNING",u="b"+N;g.yD(new (Function.prototype.bind.apply(g.C3,[null,u].concat(g.Q(C)))),X);C.unshift(u);C=C.join(", ");X=QFf.get(R);if(!X){X="ytplog."+R;u=5;try{window.localStorage&&!isNaN(+window.localStorage[X])&&(u=+window.localStorage[X]),window.sessionStorage&&!isNaN(+window.sessionStorage[X])&&(u=+window.sessionStorage[X])}catch(k){}QFf.set(R,u);X=u}if(!(J0&&(X.K=Math.min(X.K+f,10),X.J=u);X.K>0?(X.K--,X=!0):X=!1;if(X)typeof C==="function"&&(C=C()),console.log("plyr."+R,C);else{var H;C=((H=sFg.get(R))!=null?H:0)+1;sFg.set(R,C);C%100===1&&console.warn("plyr","plyr."+R+" is chatty, dropping logs.")}}}; Dwn=function(){this.K=10;this.J=Date.now()}; z7=function(J,R){g.l.call(this);var N=this;this.policy=J;this.aB=R;this.J=0;this.K=null;this.eX=[];this.V=null;this.QR={c_:function(){return N.aB}}; this.aB.length===1||g.rf(this.aB,function(C){return!!C.range})}; er=function(J,R,N){J.K&&(wB(J.K,R),R=J.K,J.K=null);for(var C=0,X=0,u=g.K(J.aB),f=u.next();!f.done;f=u.next())if(f=f.value,f.range&&C+f.V<=J.J)C+=f.V;else{R.getLength();if(e3(f)&&!N&&J.J+R.getLength()-X=400?(J.lastError="net.badstatus",!0):(X===void 0?0:X)?(J.lastError="ump.spsrejectfailure",!0):N||C!==void 0&&C?!1:(J.lastError=R===204?"net.nocontent":"net.connect",!0)}; be=function(J,R){if(J.policy.Lg)return!1;var N=R.getResponseHeader("content-type"),C=R.iZ();J=!C||C<=J.policy.aX;return(!R.Wo()||!N||N.indexOf("text/plain")!==-1)&&J}; A6E=function(J,R){var N="";R=R.vJ();R.getLength()<=J.policy.aX&&(N=qi8(J,R.yc()));return N}; qi8=function(J,R){var N=xM(R);return Ij(N)?(J.logger.debug(function(){return"Redirecting to "+N}),N):""}; ci=function(J){return qB(J.V,VM(J.Um.base))}; YiE=function(J){var R=J.timing.Cw();R.shost=VM(J.Um.base);return R}; r6f=function(J,R){return(J==null?void 0:J.maxWidth)>(R==null?void 0:R.maxWidth)||(J==null?void 0:J.maxHeight)>(R==null?void 0:R.maxHeight)}; jFg=function(J,R){for(var N=g.K(R.keys()),C=N.next();!C.done;C=N.next())if(C=R.get(C.value),C.length!==0){g.ik(C,function(H,k){return k.maxFramerate-H.maxFramerate}); for(var X=[C[0]],u=0,f=1;fJ.K||N.push(C)}return N}; lFE=function(J,R,N){var C=gSf[J]||[];N.T("html5_shorts_onesie_mismatched_fix")&&(C=UwE[J]||[]);R.push.apply(R,g.Q(C));N.T("html5_early_media_for_drm")&&R.push.apply(R,g.Q(pHY[J]||[]))}; hVQ=function(J,R){var N=g.Mn(J),C=J.N(),X=C.U;C=C.T("html5_shorts_onesie_mismatched_fix");var u=J.He();if(C){if(!X.V){if(u&&t7)return t7;if(x8)return x8}}else if(x8&&!X.V)return x8;var f=[],H=[],k={},v=JD.concat(Pa8);C&&(v=JD.concat(zVP));J.T("html5_early_media_for_drm")&&(v=v.concat(eVn),J.T("allow_vp9_1080p_mq_enc")&&v.push(wHQ));var W=[].concat(g.Q(c6g));if(N.W)for(var S=0;SN.Y5)){var a=g.di(J.N().experiments,"html5_drm_byterate_soft_cap");a>0&&V7B(F)&&F.fC>a||(S?(f.push(I),lFE(I,f,J)):(F=BV(N,F,X),F===!0?(S=!0,f.push(I),lFE(I,f,J)):k[I]=F))}}}W=g.K(W);for(v=W.next();!v.done;v=W.next())for(v=g.K(v.value),S=v.next();!S.done;S=v.next())if(S=S.value,(L=dM2(S))&&L.audio&&(J.T("html5_onesie_51_audio")|| !$Y(L)&&!HS(L)))if(L=BV(N,L,X),L===!0){H.push(S);lFE(S,H,J);break}else k[S]=L;N.J&&R("orfmts",k);if(C)return X.V&&(X.V=!1,t7=x8=void 0),u?t7={video:f,audio:H}:x8={video:f,audio:H};x8={video:f,audio:H};X.V=!1;return x8}; g.bs2=function(J,R,N){var C=N.U,X=[],u=[],f=N.T("html5_shorts_onesie_mismatched_fix");J=J.He();var H=JD.concat(Pa8);f&&(H=JD.concat(zVP));N.T("html5_early_media_for_drm")&&(H=H.concat(eVn),N.T("allow_vp9_1080p_mq_enc")&&H.push(wHQ));var k=[].concat(g.Q(c6g));if(R.W)for(var v=0;v0&&V7B(S)&&S.fC>L)&&BV(R,S,C)===!0){X.push({videoCodec:y6g[XS[W]],maxWidth:S.video.width,maxHeight:S.video.height,maxFramerate:S.video.fps});break}}}}f=g.K(k);for(J=f.next();!J.done;J=f.next())for(J=g.K(J.value),k=J.next();!k.done;k=J.next())if(k=k.value,(H=dM2(k))&&H.audio&&(N.T("html5_onesie_51_audio")||!$Y(H)&&!HS(H))&&BV(R,H,C)===!0){u.push({audioCodec:Gnf[XS[k]],numChannels:H.audio.numChannels}); break}return{videoFormatCapabilities:X,audioFormatCapabilities:u}}; JzQ=function(J){var R={},N=J.RB,C=J.OB,X=N.getVideoData(),u=xX(0),f=N.getPlayerSize(),H=N.getVisibilityState();u&&(R.mpO=u,R.lastManualDirection=edB(),u=M4B()||0,u>0&&(u=(C.T("html5_use_date_now_for_local_storage")?Date.now():(0,g.g9)())-u,C.T("html5_use_date_now_for_local_storage")?u>0&&(R.timeSinceLastManualFormatSelectionMs=u):R.timeSinceLastManualFormatSelectionMs=u));R.SQf=xX();u=C.T("html5_use_streamer_bandwidth_for_low_latency_live")&&X.isLowLatencyLiveStream;if(C.schedule.nC&&!u){var k;u= C.T("html5_disable_bandwidth_cofactors_for_sabr_live")?!((k=J.KY)==null||!k.gs):!1;R.Hr=qw(C.schedule,!u)}k=g.CW();var v=g.o6.medium,W=Math.floor(v*16/9);u=X.He()?v:W;v=X.He()?W:v;R.Kt=Math.max(f.width*k,u);R.wO=Math.max(f.height*k,v);R.visibility=H;R.byC=UK();R.ek=N.Pu()*1E3;var S;if((S=J.KY)==null?0:S.DN){f=J.RB.xX(!0);var L,I,F,a,n,B;R.VX8={defaultPolicy:((L=f.PX)==null?void 0:L.K)||0,smooth:((I=f.QTk)==null?void 0:I.K)||0,visibility:((F=f.Zbk)==null?void 0:F.K)||0,oo:((a=f.EE)==null?void 0:a.K)|| 0,performance:((n=f.rl)==null?void 0:n.K)||0,speed:((B=f.GNk)==null?void 0:B.K)||0}}else{var Z;if((Z=J.KY)==null?0:Z.GG){var A;R.V$=((A=J.RB.xX().rl)==null?void 0:A.K)||0}}C.T("html5_enable_sabr_drm_hd720p")&&J.sabrLicenseConstraint&&(R.sabrLicenseConstraint=J.sabrLicenseConstraint);if(C.T("html5_onesie_media_capabilities")||C.T("html5_enable_server_format_filter"))R.XE=3;C.T("html5_onesie_audio_only_playback")&&EU(X)&&(R.XE=1);bPB(X)&&(R.XE=R.XE===void 0?7:R.XE|4);L=X.lr?X.lr:g.Mn(X);C.T("html5_onesie_media_capabilities")&& (R.mediaCapabilities=g.bs2(X,L,C));var V;if((V=J.KY)==null?0:V.K&&V.v7){F=C.U;V=[];I=[];a=new Map;C.T("html5_ssap_update_capabilities_on_change")?(F.W||tHB(F),n=F.W||[]):n=Array.from(F.K.values());n=g.K(n);for(B=n.next();!B.done;B=n.next())f=B.value,f.B7?I.push({audioCodec:Gnf[f.sB],numChannels:f.numChannels,spatialCapabilityBitmask:thg[f.sB]}):(H=y6g[f.sB],B={videoCodec:H,maxWidth:f.maxWidth||0,maxHeight:f.maxHeight||0,maxFramerate:f.maxFramerate||0,is10BitSupported:f.kx||!1},f.maxBitrateBps&&(B.maxBitrateBps= f.maxBitrateBps,S=Se(f.itag),Z=void 0,((Z=S)==null?0:Z.video)&&BV(L,S,F)===!0&&(S=S.fC*8,S>B.maxBitrateBps&&(B.maxBitrateBps=S))),f=H+"_"+f.kx,H=a.get(f)||[],H.push(B),a.set(f,H));V=jFg(V,a);F={};C.T("html5_ssff_denylist_opus_low")&&(F={itagDenylist:[249,350]});R.mediaCapabilities={videoFormatCapabilities:V,audioFormatCapabilities:I,hdrModeBitmask:3,perPlaybackAttributes:F}}var p;if((p=J.KY)==null?0:p.K){R.Z_=L.Z_;var b;R.Y5=(b=J.KY)==null?void 0:b.Y5}C.OQ&&(R.Lt=C.OQ);R.HW=J.x_;R.dY=J.dY;if(C.T("html5_fix_time_since_last_seek_reporting")? J.A4!==void 0:J.A4)R.zXk=(0,g.g9)()-J.A4;J.isPrefetch&&C.T("html5_report_prefetch_requests")&&(R.isPrefetch=!0);Tn||(R.fMM=!0);p=Oi(C.schedule)*1E3;p>0&&(R.dO=p);var w;((w=J.KY)==null?0:w.r6)&&J.UK&&J.UK0?RQ:C.schedule.interruptions[0]||0);var $E;if(($E=J.KY)==null?0:$E.YA)R.Wn=J.Wn;var G;((G=J.KY)==null?0:G.jE)&&X.iO&&(R.audioTrackId=X.iO);var e;if((e=J.KY)==null?0:e.yf)if(J=jl2())R.detailedNetworkType=xwE[J]||xwE.other;return R}; oz=function(J,R,N,C,X,u){var f={};R&&(f.Gw=R);if(!J)return f;f.playbackCookie=N==null?void 0:N.playbackCookie;X&&(f.qs=X);f.P8=[];f.EC=[];if(g.vJ(J)&&J.sabrContextUpdates.size>0)for(R=g.K(J.sabrContextUpdates.values()),N=R.next();!N.done;N=R.next())oCE(f,N.value,C);iY(J)&&!g.vJ(J)&&J.T("html5_enable_sabr_request_pipelining")&&u&&oCE(f,u,C);J.pG&&(f.IDk=J.pG);C=J.N().K;f.clientInfo={clientName:RIg[C.c.toUpperCase()]||0};C.cbrand&&(f.clientInfo.deviceMake=C.cbrand);C.cmodel&&(f.clientInfo.deviceModel= C.cmodel);C.cver&&(f.clientInfo.clientVersion=C.cver);C.cos&&(f.clientInfo.osName=C.cos);C.cosver&&(f.clientInfo.osVersion=C.cosver);C=J.N();C.T("html5_sabr_enable_server_xtag_selection")&&C.VK&&(f.clientInfo.hl=C.VK);J.ra&&(f.ra=J.ra);return f}; oCE=function(J,R,N){var C=R.type||0;(N==null?0:N.has(C))?J.EC.push(R):J.P8.push(C)}; se=function(J,R,N,C,X,u){var f=u===void 0?{}:u;var H=f.FK===void 0?[]:f.FK;var k=f.m4===void 0?!1:f.m4;var v=f.Eu===void 0?0:f.Eu;var W=f.poToken===void 0?"":f.poToken;var S=f.La===void 0?void 0:f.La;var L=f.U5===void 0?"":f.U5;var I=f.XP===void 0?0:f.XP;var F=f.Mn===void 0?new Uint8Array(0):f.Mn;var a=f.R3===void 0?!1:f.R3;u=f.Y0===void 0?0:f.Y0;f=f.Gw===void 0?void 0:f.Gw;Ue.call(this,R,X);var n=this;this.policy=J;this.logger=new g.Pi("dash/request");this.Vb=this.e8=0;this.cz=!1;this.LX=this.ib= null;this.Tz=!1;this.Mn=this.XP=null;this.tb=this.il=!1;this.Lo=null;this.Y0=this.ub=0;this.Bu=!1;this.QR={XD:function(Z){n.XD(Z)}, wi8:function(){return n.GN}, T1C:function(Z){n.GN=Z}, S$k:function(Z){n.e8=Z}, AwQ:function(Z){n.GA.lastError=Z}, f4:function(){return n.xhr}}; this.timing=new Vj(this,N);this.m4=k;this.XP=I;this.Mn=F;this.Um=g.JI(this.info,this.policy,C);this.Um.set("rn",this.x4().toString());this.Um.set("rbuf",(v*1E3).toFixed().toString());this.m4&&this.Um.set("smb","1");this.policy.gU&&W&&this.Um.set("pot",W);L&&this.Um.set("bbs",L);this.policy.useUmp&&!g$(this.Um.base)&&(this.KX=new go(this),this.Um.set("ump","1"),this.Um.set("srfvp","1"));if(J=this.policy.Jp?this.policy.Y_&&!isNaN(this.info.A2)&&this.info.A2>this.policy.b0?!1:!0:!1)R=null,this.policy.Xd&& this.policy.hn?R=[1]:a&&(R=[]),R!=null&&(this.policy.oL&&R.push(2),this.Um.set("defsel",R.join(",")));this.GA=new wo(this,this.policy,this.Um,this.info.resource,this.timing,this.logger,C,S);this.FK=H||null;this.Q9=NQk(this);BIE(this.GA);C=void 0;if(this.policy.TL||this.KX||this.policy.G7)C={method:"POST"},H=(0,g.Rz)([120,0]),S={},this.policy.lw&&f&&(f=oz(void 0,f),S.IC=f),this.policy.Hn&&this.Mn&&(S.videoPlaybackUstreamerConfig=this.Mn),this.policy.G7&&(f=this.info.Z)&&Object.assign(S,f),Object.keys(S).length> 0?C.body=g.QA(S,g.HV):C.body=H;if(this.XP&&this.Mn){this.Um.set("iwts","1");C={method:"POST"};f={dY:this.XP*1E3};var B;H=(B=this.info.Z)==null?void 0:B.RW;B=g.QA({T5:f,RW:H||void 0,videoPlaybackUstreamerConfig:this.Mn},g.HV);C.body=B}try{this.xhr=le(this.Um,this.policy.D,this.timing,J,C),this.GA.J.start(),u&&(this.Ce=new g.$t(this.fK,u,this),this.Ce.start(u+(this.timing.I9.D.Gj()||0)*1E3)),this.policy.M5&&Can(this.timing,this.Yi()),this.logger.debug(function(){return"Sent, itag="+n.Um.get("itag")+ " seg="+n.info.aB[0].SQ+" range="+n.Um.get("range")+" time="+Math.round(n.info.aB[0].dN)+"-"+Math.round(g.Pl(n.info.aB).y0)+" rtp="+(n.timing.Bf()-Date.now()).toFixed(0)}),g.Sz(function(){})}catch(Z){Cv8(this,Z,!0)}}; NQk=function(J){if(!(x6(J.info)&&J.info.xg()&&J.policy.rN&&J.FK)||J.info.resource.J>=2||xX()>0||!yR7())return!1;var R=J.Um.get("aitags");if(!R)return!1;R=CK(R).split(",");for(var N=[],C=g.K(J.FK),X=C.next();!X.done;X=C.next())X=X.value,g.cl(R,X)&&N.push(X);if(!N.length)return!1;J.Um.set("altitags",g.Ns(N.join(",")));return!0}; Cv8=function(J,R,N){N=N===void 0?!1:N;g.yD(R);J.GA.lastError="player.exception";J.errorMessage=R.name+"_"+R.message;N?g.Sz(function(){yj(J.GA)}):yj(J.GA)}; Xm2=function(J,R){J.timing.W=!0;J.xhr.Wo()&&J.timing.e7();if(J.policy.j2){var N;(N=J.Ce)==null||N.stop()}er(J.GN,R,!1)}; iWB=function(J,R){J.info=R;if(J.GN){var N=J.GN;R=R.aB;(R.length!==N.aB.length||R.length0){R=g.K(R.aB);for(var N=R.next();!N.done;N=R.next()){var C=void 0;J+=((C=N.value.range)==null?void 0:C.length)||0}return J}if(R.Aq.length>0)for(N=g.K(R.Aq),C=N.next();!C.done;C=N.next())J+=C.value.Aw||0;return J+R.XA}; vCB=function(J,R){if(iF){var N=0;J=J.Li.get(R);if(J==null||!J.zX)return 0;J=g.K(J.zX.values());for(R=J.next();!R.done;R=J.next())N+=R.value.data.getLength();return N}return((N=J.Li.get(R))==null?void 0:N.eX.getLength())||0}; fb=function(J,R){J=J.Li.get(R);if(iF){if(J==null||!J.Kf)return!1;R=J.zX.size>0;return J.tB.length>0||R}return!(J==null||!J.Kf)&&!(J==null||!J.eX.getLength())}; W7n=function(J,R){var N=J.Li.get(R),C=k1k(J,R),X=!C&&!!N.bytesReceived;if(iF){var u;if((u=J.manifest)==null?0:u.MR){J=g.K(N.zX.values());for(R=J.next();!R.done;R=J.next())if(!R.value.s4)return!1;return X}}else if(u=J.zC(R),X&&J.K&&u!==void 0)return u;return(X||N.bytesReceived===C)&&N.JW+vCB(J,R)===N.bytesReceived}; SA7=function(J,R,N){J.Li.set(R,{eX:new eV,JW:0,bytesReceived:0,XA:0,aY:!1,vV:!1,zC:!1,B7:N,VT:[],aB:[],Aq:[],Kf:!1,zX:new Map,uh:new Map,tB:[]});J.logger.debug(function(){return"[initStream] formatId: "+R})}; L7k=function(J,R,N,C){N.aB.push.apply(N.aB,g.Q(C));if(iF){N.uh.has(R)||N.uh.set(R,[]);var X;(X=N.uh.get(R)).push.apply(X,g.Q(C))}else if(N.GN)for(J=g.K(C),R=J.next();!R.done;R=J.next())N.GN.aB.push(R.value);else{N.GN=new z7(J.KY,[].concat(g.Q(N.aB)));var u;((u=J.KY)==null?0:u.U7)&&g.P(J,N.GN)}}; IaE=function(J,R,N){var C,X=(C=J.manifest)==null?void 0:C.V.get(R);if(!X)return[];if(N.E2){var u;return((u=X.AF(0,N.clipId))==null?void 0:u.aB)||[]}if(X.yW()){var f=N.startMs,H=N.durationMs,k=1E3,v;if(((v=J.KY)==null?0:v.K)&&N.timeRange){var W;f=(W=N.timeRange.gw)!=null?W:-1;var S;H=(S=N.timeRange.ev)!=null?S:-1;var L;k=(L=N.timeRange.y6)!=null?L:-1}if(N.k7<0||N.Go<0||H<0||f<0||N.Aw<0||k<0)return uF(J,R),[];J=lG(N.k7,N.Aw);R=N.xF||0;return[new zt(3,X,J,"makeSliceInfosMediaBytes",N.Go-1,f/k,H/k,R, J.length-R,void 0,N.nT,N.clipId)]}if(N.Go<0)return uF(J,R),[];var I;return((I=J.manifest)==null?0:I.MR)?(R=X.FB,v=R*X.info.fC,W=((f=J.KY)==null?0:f.AL)?N.xF:void 0,((k=J.KY)==null?0:k.sK)&&N.timeRange&&!W&&(H=N.timeRange.gw/N.timeRange.y6),[new zt(3,X,void 0,"makeSliceInfosMediaBytes",N.Go,H,R,W,v,!0,N.nT,N.clipId)]):[]}; F7P=function(J,R,N){J.manifest=R;J.KY=N;R=g.K(J.Li);for(N=R.next();!N.done;N=R.next()){var C=g.K(N.value);N=C.next().value;C=C.next().value;for(var X=g.K(C.VT),u=X.next();!u.done;u=X.next()){u=u.value;var f=IaE(J,N,u);L7k(J,u.t4,C,f)}}}; Tc=function(J,R,N,C){J.logger.debug(function(){return"[addStreamData] formatId: "+N+",headerId: "+R+" bytes: "+C.getLength()}); (J=J.Li.get(N))&&!J.vV&&(iF?(J.zX.has(R)||J.zX.set(R,{data:new eV,rG:0,s4:!1}),wB(J.zX.get(R).data,C)):wB(J.eX,C),J.bytesReceived+=C.getLength(),J.aY=!0)}; $LQ=function(J,R){J.logger.debug(function(){return"[closeStream] formatId: "+R}); var N=J.Li.get(R);N&&!N.vV&&(N.vV=!0,N.zN&&N.zN(),EC8(J)&&J.Z.IU())}; EC8=function(J){J=g.K(J.Li.values());for(var R=J.next();!R.done;R=J.next())if(!R.value.vV)return!1;return!0}; $O=function(J,R,N,C,X,u,f,H){g.l.call(this);this.policy=J;this.info=R;this.manifest=N;this.nP=X;this.EA=H;this.logger=new g.Pi("sabr");this.KX=new go(this);this.Ra=new fak(this);this.uB=new XP(this);this.state=1;this.KW=!1;this.Rc=0;this.clipId="";this.Xc=this.Is=-1;this.Nv=0;this.y$=-1;this.Bu=this.g$=!1;this.h8=0;this.policy.HR?this.JY=new No(this,u):this.JY=new Vj(this,u);this.Um=this.policy.YA?R.yB:Men(R,this.policy,C);this.Um.set("rn",""+this.x4());this.Um.set("alr","yes");F7P(this.uB,N,J);this.GA= new wo(this,this.policy,this.Um,R.resource,this.JY,this.logger,C,f,this.policy.enableServerDrivenRequestCancellation);BIE(this.GA);var k;if((k=this.policy)==null?0:k.U7)g.P(this,this.uB),g.P(this,this.GA);J=R.J;R={method:"POST",body:J};J&&(this.Nv=J.length);try{this.xhr=le(this.Um,this.policy.D,this.JY,Tn,R),this.policy.M5&&Can(this.JY,this.Yi()),this.GA.J.start()}catch(v){g.G$(v)}}; K7P=function(J,R){var N=-1,C=-1,X=-1,u;if((u=J.KN)==null?0:u.items)for(J=g.K(J.KN.items),u=J.next();!u.done;u=J.next())u=u.value,R=H,k=J.manifest.isManifestless&&J.policy.xJ, f){var v;if(((v=J.K)==null?void 0:v.Kb.event)==="predictStart"&&J.K.SQJ.U&&(J.U=NaN,J.D=NaN);if(J.K&&J.K.SQ===R){C=J.K;u=C.Kb;var f=X.Ar(u);u.event==="predictStart"&&(J.dn=R);J.u3("sdai",{onqevt:u.event,sq:R,mt:N,gab:f,cst:u.startSecs});if(f)u.event!=="predictStart"?(u.event==="start"&&J.dn===R-1&&J.u3("sdai",{gabonstart:R}),C.bZ?vk(J,4,"cue"):(J.U=R,J.D=N,J.u3("sdai",{joinad:J.J,sg:J.U,st:J.D.toFixed(3)}), J.W=Date.now(),vk(J,2,"join"),X.J1(C.Kb))):(J.policy.U?(J.V=Math.floor(N-u.K/1E3),J.u3("sdai",{onpred:N,est:J.V})):(J.Z=R+Math.max(Math.ceil(-u.K/5E3),1),J.u3("sdai",{onpred:R,est:J.Z})),J.W=Date.now(),vk(J,3,"predict"),X.J1(C.Kb));else if(J.J===1){var H;((H=J.S)==null?0:H.jf(N))?(gCk(J.vC,N,N,R),vk(J,4,"sk2had")):vk(J,5,"nogab")}else u.event==="predictStart"&&(J.policy.U&&J.V>0?(R=Math.floor(N-u.K/1E3),J.V!==R&&J.u3("sdai",{updateSt:R,old:J.V}),J.V=R):J.Z>0&&(R+=Math.max(Math.ceil(-u.K/5E3),1),J.Z!== R&&(J.u3("sdai",{updateSt:R,old:J.Z}),J.Z=R)))}else J.J===1&&vk(J,5,"noad")}; laB=function(J,R,N){if(J.J===1||J.J===2)return!1;if(J.J!==0&&R===J.audioTrack){if(J.policy.U)return ULE(J.videoTrack,N)||ULE(J.videoTrack,N+1);J=pmB(J.videoTrack);if(N>(J?J.SQ:-1))return!1}return!0}; Wk=function(J,R,N){return(N<0||N===J.U)&&!isNaN(J.D)?J.D:R}; rzf=function(J,R){if(J.K){var N=J.K.Kb.Ly-(R.startTime+J.X-J.K.Kb.startSecs);N<=0||(N=new xK(J.K.Kb.startSecs-(isNaN(J.X)?0:J.X),N,J.K.Kb.context,J.K.Kb.identifier,"stop",J.K.Kb.K+R.duration*1E3),J.u3("cuepointdiscontinuity",{segNum:R.SQ}),kO(J,N,R.SQ))}}; vk=function(J,R,N){J.J!==R&&(J.u3("sdai",{setsst:R,old:J.J,r:N}),J.J=R)}; ST=function(J,R,N,C){(C===void 0?0:C)?vk(J,1,"seek"):R>0&&Math.abs(R-N)>=5&&J.J===4&&vk(J,5,"sk2t."+R.toFixed(2)+";ct."+N.toFixed(2))}; Lb=function(J,R,N){this.audio=J;this.video=R;this.reason=N}; Iz=function(J,R,N){this.K=J;this.reason=R;this.token=N;this.videoId=void 0}; FP=function(J,R,N){g.l.call(this);this.policy=J;this.Z=R;this.u3=N;this.V=new Map;this.U=0;this.S=!1;this.K="";this.J=!1}; Ed=function(J,R,N){if(N===void 0?0:N)J.S=!0;++J.U;N=6E4*Math.pow(2,J.U);N=(0,g.g9)()+N;J.V.set(R.info.id,N)}; Mo=function(J){for(var R=g.K(J.V.entries()),N=R.next();!N.done;N=R.next()){var C=g.K(N.value);N=C.next().value;C=C.next().value;C<(0,g.g9)()&&J.V.delete(N)}return J.V}; Pvg=function(J){return J.S&&Mo(J).size>0}; Kb=function(J,R){J.K!==R&&(J.K=R,J.J=!0)}; zIP=function(J,R){var N;R&&(N=g.eE(J.Z.K,function(X){return X.id===R})); if(!N&&(N=g.eE(J.Z.K,function(X){var u;return!((u=X.Do)==null||!u.isDefault)}),R)){var C; J.u3("iaf",{id:R,sid:(C=N)==null?void 0:C.id})}return N}; eI2=function(J,R,N,C,X,u){var f=this;u=u===void 0?[]:u;this.vC=J;this.ma=R;this.policy=N;this.manifest=C;this.S=X;this.Xk=u;this.logger=new g.Pi("dash/abr");this.K=tz;this.J=this.D=null;this.W=-1;this.G7=!1;this.nextVideo=this.V=null;this.Z=[];this.l3=new Set;this.PC={};this.eQ=new aF(1);this.X=0;this.pC=this.dn=this.nC=!1;this.tN=0;this.HC=!1;this.VO=new Set;this.T7=!1;this.QR={dR:function(){az(f)}}; this.U=new FP(this.policy,X,function(H,k){f.vC.u3(H,k)})}; G1B=function(J,R,N){Qx(J,R);R=zIP(J.U,N);N||R||(R=wmY(J));R=R||J.S.K[0];J.V=J.manifest.K[R.id];az(J);J.D=J.V;cz8(J);hI8(J);J.J=J.nextVideo;J.D=J.V;return yzE(J)}; xL2=function(J,R){if(bWg(J,R))return null;if(R.reason==="m"&&R.isLocked())return J.logger.debug(function(){return"User sets constraint to: "+aJ(R)}),Qx(J,R),J.X=J.Z.length-1,az(J),nb(J),J.dn=J.dn||J.J!==J.nextVideo,J.J=J.nextVideo,new Lb(J.V,J.J,R.reason); R.reason==="r"&&(J.W=-1);Qx(J,R);nb(J);if(R.reason==="r"&&J.nextVideo===J.J)return new Lb(J.V,J.nextVideo,R.reason);teg(J);return null}; Jqg=function(J,R,N){J.V=J.manifest.K[R];J.D=J.V;return new Lb(J.D,J.J,N?"t":"m")}; ozg=function(J,R){if(R.info.video){if(J.J!==R)return J.J=R,yzE(J)}else J.pC=J.D!==R,J.D=R;return null}; RKf=function(J,R){if(R.K.info.video&&R.Z){var N=(R.J+R.V)/R.duration,C=R.K.info.fC;N&&C&&(J.eQ.x5(1,N/C),J.policy.V&&N/C>1.5&&J.vC.u3("overshoot",{sq:R.SQ,br:N,max:C}))}}; Dm=function(J,R,N){Ed(J.U,R,N===void 0?!1:N);J.W=-1;Qx(J,J.K)}; NOE=function(J,R){return new Lb(J.D,J.J,R||J.K.reason)}; teg=function(J){if(J.J&&J.nextVideo&&sd(J,J.J.info)J.policy.Y5,H=X<=J.policy.Y5?T0(C):uM(C);if(!u||f||H)N[X]=C}return N}; Qx=function(J,R){J.K=R;var N=J.S.videoInfos;if(!J.K.isLocked()){var C=(0,g.g9)();N=g.IM(N,function(H){if(H.fC>this.policy.fC)return!1;var k=this.manifest.K[H.id];return Mo(this.U).get(H.id)>C?!1:k.resource.J>4||k.S>4?(this.logger.debug(function(){return"Remove "+EO(H)+"; 4 load failures"}),!1):this.VO.has(+H.itag)?!1:!0},J); Pvg(J.U)&&(N=g.IM(N,function(H){return H.video.width<=854&&H.video.height<=480}))}N.length||(N=J.S.videoInfos); var X=N;J.policy.X7&&(X=XJk(J,X,R));X=g.IM(X,R.Z,R);if(J.K.isLocked()&&J.U.K){var u=g.eE(N,function(H){return H.id===J.U.K}); u?X=[u]:Kb(J.U,"")}J.policy.X7||(X=XJk(J,X,R));X.length||(X=[N[0]]);X.sort(function(H,k){return sd(J,H)-sd(J,k)}); R={};for(N=1;NR.jF.video.width?(g.h_(X,N),N--):sd(J,R.SF)*J.policy.X>sd(J,R.jF)&&(g.h_(X,N-1),N--);var f=X[X.length-1];J.HC=!!J.J&&!!J.J.info&&J.J.info.sB!==f.sB;J.logger.debug(function(){return"Constraint: "+aJ(J.K)+", "+X.length+" fmts selectable, max selectable fmt: "+EO(f)}); J.Z=X;J.l3.clear();R=!1;for(N=0;N=1080&&(R=!0);iAf(J.policy,f,J.manifest.MR)}; XJk=function(J,R,N){var C=N.reason==="m"||N.reason==="s";J.policy.vO&&Bk&&g.d9&&(!C||N.K<1080)&&(R=R.filter(function(v){return v.video&&(!v.J||v.J.powerEfficient)})); if(R.length>0)if(qk()){var X=CYk(J,R);R=R.filter(function(v){return!!v&&!!v.video&&v.sB===X[v.video.K].sB})}else{var u,f,H=(u=R[0])==null?void 0:(f=u.video)==null?void 0:f.K; if(H){N=R.filter(function(v){return!!v&&!!v.video&&v.video.K===H}); var k=CYk(J,N)[H].sB;R=R.filter(function(v){return!!v&&!!v.video&&v.sB===k})}}return R}; urE=function(J,R){for(var N=0;N+1C}; az=function(J){if(!J.V||!J.policy.Z&&!J.V.info.Do){var R=J.S.K;J.V&&(R=R.filter(function(C){return C.audio.K===J.V.info.audio.K}),R.length||(R=J.S.K)); J.V=J.manifest.K[R[0].id];if(R.length>1&&(!J.policy.c9||!J.policy.GW)){var N=!1;if(N=J.policy.FV?!0:J.K.isLocked()?J.K.K<240:urE(J,J.V))J.V=J.manifest.K[g.Pl(R).id]}}}; nb=function(J){if(!J.nextVideo||!J.policy.Z)if(J.K.isLocked())J.nextVideo=J.K.K<=360?J.manifest.K[J.Z[0].id]:J.manifest.K[g.Pl(J.Z).id],J.logger.debug(function(){return"Select max fmt: "+EO(J.nextVideo.info)}); else{for(var R=Math.min(J.X,J.Z.length-1),N=Ee(J.ma),C=sd(J,J.V.info),X=N/J.policy.dn-C;R>0&&!(sd(J,J.Z[R])<=X);R--);for(var u=N/J.policy.X-C;R=u);R++);J.nextVideo=J.manifest.K[J.Z[R].id];J.X!==R&&J.logger.info(function(){return"Adapt to: "+EO(J.nextVideo.info)+", bandwidth: "+N.toFixed(0)+", bandwidth to downgrade: "+X.toFixed(0)+", bandwidth to upgrade: "+u.toFixed(0)+", constraint: "+aJ(J.K)}); J.X=R}}; cz8=function(J){var R=J.policy.dn,N=Ee(J.ma),C=N/R-sd(J,J.V.info);R=g.wk(J.Z,function(X){return sd(this,X)u?X=0:C[f]>J.buffered[f]&&(f===u-1?X=2:f===u-2&&C[f+1]>J.buffered[f+1]&&(X=3))}J.K.add(R<<3|(N&&4)|X);R=Math.ceil(J.track.Pu()*1E3);J.K.add(R-J.U);J.U=R;if(X===1)for(J.K.add(u),f=R=0;f=2&&J.K.add(C[u- 1]-J.buffered[u-1]);N&&J.K.add(N);J.buffered=C}; Ww7=function(J,R,N){var C=this;this.policy=J;this.K=R;this.tN=N;this.Z=this.J=0;this.RT=null;this.nC=new Set;this.W=[];this.indexRange=this.initRange=null;this.X=new lM;this.dn=this.ma=!1;this.QR={o0N:function(){return C.V}, tp7:function(){return C.chunkSize}, J4n:function(){return C.D}, c4Q:function(){return C.S}}; (R=vz8(this))?(this.chunkSize=R.csz,this.V=Math.floor(R.clen/R.csz),this.D=R.ck,this.S=R.civ):(this.chunkSize=J.CD,this.V=0,this.D=g.jg(16),this.S=g.jg(16));this.U=new Uint8Array(this.chunkSize);this.D&&this.S&&(this.crypto=new SiB(this.D,this.S))}; vz8=function(J){if(J.policy.mu&&J.policy.SE)for(var R=g.K(J.policy.mu),N=R.next(),C={};!N.done;C={tO:void 0,rj:void 0},N=R.next())if(N=g.L4(N.value),C.tO=+N.clen,C.rj=+N.csz,C.tO>0&&C.rj>0&&J.policy.Z===N.docid&&J.K.info.id===N.fmtid&&J.K.info.lastModified===+N.lmt)return J={},J.clen=C.tO,J.csz=C.rj,J.ck=N.ck,J.civ=N.civ,J}; Zm=function(J){return!!J.RT&&J.RT.Nn()}; Ezk=function(J,R){if(!Zm(J)&&!J.QO()){if(!(J.ma||(J.ma=!0,J.V>0))){var N=SUQ(J);N=Pm(J.policy.Z,J.K.info,dH(J),N,J.policy.Xk);Lwg(J,N)}if(R.info.type===1){if(J.RT){qo(J,Error("Woffle: Expect INIT slices to always start us off"));return}J.initRange=lG(0,R.K.getLength())}else if(R.info.type===2)J.RT&&J.RT.type===1||qo(J,Error("Woffle: Index before init")),J.indexRange=lG(J.initRange.end+1,R.K.getLength());else if(R.info.type===3){if(!J.RT){qo(J,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(J.RT.type===3&&!cn(J.RT,R.info)&&(J.W=[],R.info.SQ!==hx(J.RT)||R.info.J!==0))return;if(R.info.Z){N=g.K(J.W);for(var C=N.next();!C.done;C=N.next())IuQ(J,C.value);J.W=[]}else{J.W.push(R);J.RT=R.info;return}}else{qo(J,Error("Woffle: Unexpected slice type"));return}J.RT=R.info;IuQ(J,R);Fwn(J)}}; IuQ=function(J,R){var N=0,C=R.K.yc();if(J.Z=C.length)return;if(N<0)throw Error("Missing data");J.Z=J.V;J.J=0}for(X={};N0){var f=C.getUint32(N+28);u+=f*16+4}var H=C.getUint32(N+u-4);try{var k=nzE(R.subarray(N+u,N+u+H));if(k!==null){var v=k;break a}}catch(W){}}N+=X}v=null;break a}catch(W){v=null;break a}v=void 0}if(v!=null)for(R=XC(ju(v,7)),R==null||J.nL||(J.cryptoPeriodIndex=R),R=XC(ju(v,10)),R!=null&&R>0&&!J.nL&&(J.K=R),v=wV(v, 2,zAE,void 0===cj8?2:hAP?4:5),v=g.K(v),R=v.next();!R.done;R=v.next())J.V.push(g.SZ(nE(R.value),4))}; s5n=function(J){return isNaN(J.cryptoPeriodIndex)?g.SZ(J.initData):""+J.cryptoPeriodIndex}; rH=function(J,R,N){var C=N===void 0?{}:N;N=C.videoDuration===void 0?0:C.videoDuration;var X=C.gf===void 0?void 0:C.gf;C=C.Qf===void 0?!1:C.Qf;this.videoId=J;this.status=R;this.videoDuration=N;this.gf=X;this.Qf=C}; BOY=function(J,R,N,C,X){this.videoId=J;this.cF=R;this.J=N;this.bytesDownloaded=C;this.K=X}; jT=function(J){this.K=J;this.offset=0}; OAE=function(J){if(J.offset>=J.K.getLength())throw Error();return J.K.getUint8(J.offset++)}; ZAB=function(J,R){R=R===void 0?!1:R;var N=OAE(J);if(N===1){R=-1;for(N=0;N<7;N++){var C=OAE(J);R===-1&&C!==255&&(R=0);R>-1&&(R=R*256+C)}return R}C=128;for(var X=0;X<6&&C>N;X++)N=N*256+OAE(J),C*=128;return R?N:N-C}; dnB=function(J){try{var R=ZAB(J,!0),N=ZAB(J,!1);return{id:R,size:N}}catch(C){return{id:-1,size:-1}}}; qU8=function(J){for(var R=new jT(J),N=-1,C=0,X=0;!C||!X;){var u=dnB(R),f=u.id;u=u.size;if(f<0)return;if(f===176){if(u!==2)return;C=R.TM()}else if(f===186){if(u!==2)return;X=R.TM()}f===374648427?N=R.TM()+u:f!==408125543&&f!==174&&f!==224&&R.skip(u)}R=GV(J,0,N);N=new DataView(R.buffer);N.setUint16(C,3840);N.setUint16(X,2160);C=new eV([R]);wB(C,J);return C}; YUE=function(J,R,N){var C=this;this.vC=J;this.policy=R;this.S=N;this.logger=new g.Pi("dash");this.J=[];this.K=null;this.ma=-1;this.W=0;this.VO=NaN;this.nC=0;this.V=NaN;this.X=this.G7=0;this.pC=-1;this.PC=this.U=this.Z=this.tN=null;this.eQ=this.l3=NaN;this.D=this.dn=this.HC=this.Xk=null;this.oB=!1;this.T7=this.timestampOffset=0;this.QR={f0:function(){return C.J}}; if(this.policy.Z){var X=this.S,u=this.policy.Z;this.policy.Xk&&J.u3("atv",{ap:this.policy.Xk});this.D=new Ww7(this.policy,X,function(f,H,k){Vx(J,new rH(C.policy.Z,2,{gf:new BOY(u,f,X.info,H,k)}))}); this.D.X.promise.then(function(f){C.D=null;f===1?Vx(J,new rH(C.policy.Z,f)):C.vC.u3("offlineerr",{status:f.toString()})},function(f){var H=(f.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); f instanceof AD&&!f.K?(C.logger.info(function(){return"Assertion failed: "+H}),C.vC.u3("offlinenwerr",{em:H}),Aq7(C),Vx(J,new rH(C.policy.Z,4))):(C.logger.info(function(){return"Failed to write to disk: "+H}),C.vC.u3("dldbwerr",{em:H}),Aq7(C),Vx(J,new rH(C.policy.Z,4,{Qf:!0})))})}}; rqg=function(J){return J.J.length?J.J[0]:null}; j5P=function(J,R){return J.J.some(function(N){return N.info.SQ===R})}; PYn=function(J,R,N,C){C=C===void 0?0:C;if(J.U){var X=J.U.J+J.U.V;if(N.info.J>0)if(N.info.SQ===J.U.SQ&&N.info.J=0&&J.U.SQ>=0&&!cn(J.U,N.info))throw new g.C3("improper_continuation",J.U.Ki(),N.info.Ki());kif(J.U,N.info)||mnB(J,"d")}else if(N.info.J>0)throw new g.C3("continuation_of_null",N.info.Ki());J.U=N.info;J.S=N.info.K;if(N.info.J===0){if(J.K)if(!J.vC.isOffline()||J.policy.qM)J.vC.u3("slice_not_fully_processed",{buffered:J.K.info.Ki(), push:N.info.Ki()});else throw new g.C3("slice_not_fully_processed",J.K.info.Ki(),N.info.Ki());gH(J);J.G7=C}else{if(J.G7&&C&&J.G7!==C)throw J=new g.C3("lmt_mismatch",N.info.SQ,J.G7,C),J.level="WARNING",J;!N.info.K.yW()&&J.Z&&(C=N.info,X=J.Z.Is,C.U="updateWithEmsg",C.SQ=X)}if(J.K){C=Hf(J.K,N);if(!C)throw new g.C3("failed_to_merge",J.K.info.Ki(),N.info.Ki());J.K=C}else J.K=N;a:{N=g.kY(J.K.info.K.info);if(J.K.info.type!==3){if(!J.K.info.Z)break a;J.K.info.type===6?V9k(J,R,J.K):gzg(J,J.K);J.K=null}for(;J.K;){C= J.K.K.getLength();if(J.ma<=0&&J.W===0){var u=J.K.K,f=-1;X=-1;if(N){for(var H=0;H+80))break;if(S!==408125543)if(S===524531317)H=!0,W>=0&&(X=u.TM()+W,k=!0);else{if(H&&(S===160||S===163)&&(f<0&&(f=v),k))break;S===163&&(f=Math.max(0,f),X=u.TM()+W);if(S===160){f<0&&(X=f=u.TM()+W);break}u.skip(W)}}f<0&&(X=-1)}if(f< 0)break;J.ma=f;J.W=X-f}if(J.ma>C)break;J.ma?(C=UnB(J,J.ma),C.U&&pJE(J,C),V9k(J,R,C),lu7(J,C),J.ma=0):J.W&&(C=UnB(J,J.W<0?Infinity:J.W),J.W-=C.K.getLength(),lu7(J,C))}}J.K&&J.K.info.Z&&(lu7(J,J.K),J.K=null)}; gzg=function(J,R){!R.info.K.yW()&&R.info.J===0&&(g.kY(R.info.K.info)||R.info.K.info.nL())&&pDE(R);if(R.info.type===1)try{pJE(J,R),zKE(J,R)}catch(X){g.yD(X);var N=yH(R.info);N.hms="1";J.vC.handleError("fmt.unparseable",N||{},1)}N=R.info.K;N.KU(R);J.D&&Ezk(J.D,R);if(N.M7()&&J.policy.K)a:{J=J.vC.manifest;R=R.info.clipId;N=WS(N.info,J.MR);if(R){var C=CM8(J,N);if(J.T7[C])break a;J.T7[C]=R}J.PC.push(N)}}; Aq7=function(J){var R;(R=J.D)==null||R.dispose();J.D=null}; eKg=function(J){var R=J.J.reduce(function(N,C){return N+C.K.getLength()},0); J.K&&(R+=J.K.K.getLength());return R}; wJ8=function(J){if(J.dn&&!J.policy.oX){var R=J.vC;R.manifest.isManifestless&&jL(R.manifest,J.dn.SQ,!!J.S.info.video)}J.dn=null;J.Z=null;J.U=J.Xk;J.V=J.U?J.V-J.nC:NaN;gH(J)}; UnB=function(J,R){var N=J.K;R=Math.min(R,N.K.getLength());if(R===N.K.getLength())return J.K=null,N;N=jWB(N,R);J.K=N[1];return N[0]}; pJE=function(J,R){R.K.getLength();var N=R.qP();if(fe(R.info.K.info)&&R.info.K.info.video.primaries==="bt2020"){var C=new Wn(N);Lq(C,[408125543,374648427,174,224,21936,21937])&&(C=C.start+C.pos,N.getUint8(C)===129&&N.getUint8(C+1)===1&&N.setUint8(C+1,9))}C=R.info.K.info;uM(C)&&!fe(C)&&(C=R.qP(),(new Wn(C)).E2(),MB([408125543,374648427,174,224],21936,C));R.info.K.info.Ky()&&(C=R.info.K,C.info&&C.info.video&&C.info.video.projectionType==="MESH"&&!C.J&&(g.kY(C.info)?C.J=P18(N):C.info.nL()&&(C.J=G_Y(N)))); R.info.K.info.nL()&&R.info.Ky()&&(N=R.qP(),(new Wn(N)).E2(),MB([408125543,374648427,174,224],30320,N)&&MB([408125543,374648427,174,224],21432,N));if(J.policy.DG&&R.info.K.info.nL()){N=R.qP();var X=new Wn(N);if(Lq(X,[408125543,374648427,174,29637])){C=Ez(X,!0);X=X.start+X.pos;for(var u=0;u=pb(f)+H):R=J.getDuration()>=f.getDuration(),R=!R;R&&cq8(N)&&(R=J.tN,Ud?(H=gP8(N),f=1/H,H=pb(J,H),R=pb(R)+f-H):R=R.getDuration()- J.getDuration(),R=1+R/N.info.duration,lpE(N.qP(),R))}else{f=!1;J.Z||(pDE(N),N.J&&(J.Z=N.J,f=!0,u=N.info,C=N.J.Is,u.U="updateWithEmsg",u.SQ=C,u=N.J,u.Nn&&(C=J.S.index,C.J=!u.Nn,C.V="emsg"),u=N.info.K.info,C=N.qP(),g.kY(u)?k6(C,1701671783):u.nL()&&MB([408125543],307544935,C)));a:if((u=Wf(N,J.policy.Xn))&&UEf(N))H=hKY(J,N),J.X+=H,u-=H,J.nC+=u,J.V=J.policy.ZY?J.V+u:NaN;else{if(J.policy.q1){if(C=k=J.vC.o6(kr(N),1),J.V>=0&&N.info.type!==6){if(J.policy.ZY&&isNaN(J.l3)){g.G$(new g.C3("Missing duration while processing previous chunk", N.info.Ki()));J.vC.isOffline()&&!J.policy.qM||yq7(J,N,C);mnB(J,"m");break a}var v=k-J.V,W=v-J.X,S=N.info.SQ,L=J.PC?J.PC.SQ:-1,I=J.eQ,F=J.l3,a=J.policy.tp&&v>J.policy.tp,n=Math.abs(W)>10,B=Math.abs(J.V-C)<1E-7;if(Math.abs(W)>1E-4){J.T7+=1;var Z=(X=J.Z)==null?void 0:R2(X);X={audio:""+ +J.B7(),sq:S.toFixed(),sliceStart:k,lastSq:L.toFixed(),lastSliceStart:I,lastSliceDuration:F,totalDrift:(v*1E3).toFixed(),segDrift:(W*1E3).toFixed(),skipRewrite:""+ +(a||n)};if(Z==null?0:Z.length)X.adCpn=Z[0];J.vC.handleError("qoe.avsync", X);J.pC=S}a||n||B||(C=J.V);X=hKY(J,N,k);u-=X;J.X=v+X;J.policy.V&&(W&&!B||X)&&(v=(H=J.Z)==null?void 0:R2(H),J.vC.u3("discontinuityRewrite",{adCpn:(v==null?0:v.length)?v.join("."):"",itag:N.info.K.info.itag,sq:N.info.SQ,originalStartTime:k,rewrittenStartTime:C,startTimeAdjustment:C-k,segDrift:(W*1E3).toFixed(),originalDuration:u+X,rewrittenDuration:u,durationAdjustment:X}))}}else C=isNaN(J.V)?N.info.startTime:J.V;yq7(J,N,C)&&(J.nC+=u,J.V=C+u,J.policy.iO&&J.T7>=J.policy.iO&&(J.T7=0,J.vC.CV({resetForRewrites:"count"})))}J.PC= N.info;J.l3=vf(N);N.V>=0&&(J.eQ=N.V);if(f&&J.Z){f=GH2(J,!0);Gt(N.info,f);J.K&&Gt(J.K.info,f);R=g.K(R);for(H=R.next();!H.done;H=R.next())H=H.value,X=void 0,J.policy.S&&H.SQ!==((X=J.Z)==null?void 0:X.Is)||Gt(H,f);(N.info.Z||J.K&&J.K.info.Z)&&N.info.type!==6||(J.dn=f,J.policy.eQ?(R=bAQ(J.Z),J.vC.HD(J.S,f,R)):(R=J.vC,R.manifest.isManifestless&&t9B(R,f,null,!!J.S.info.video)),J.policy.t2||xnE(J))}}zKE(J,N);J.timestampOffset&&Vyn(N,J.timestampOffset)}; lu7=function(J,R){if(R.info.Z){J.Xk=R.info;if(J.Z){var N=J.Z,C=GH2(J,!1);N=bAQ(N);J.vC.HD(J.S,C,N);J.dn||J.policy.t2||xnE(J);J.dn=null}gH(J)}J.D&&Ezk(J.D,R);if(C=J.I6())if(C=Hf(C,R,J.policy.i4)){J.J.pop();J.J.push(C);return}J.J.push(R)}; bAQ=function(J){if(J.bZ()){var R=J.data["Stitched-Video-Id"]?J.data["Stitched-Video-Id"].split(",").slice(0,-1):[],N=R2(J),C=[];if(J.data["Stitched-Video-Duration-Us"])for(var X=g.K(J.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),u=X.next();!u.done;u=X.next())C.push((Number(u.value)||0)/1E6);X=[];if(J.data["Stitched-Video-Start-Frame-Index"]){u=g.K(J.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var f=u.next();!f.done;f=u.next())X.push(Number(f.value)||0)}X=[]; if(J.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(u=g.K(J.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),f=u.next();!f.done;f=u.next())X.push((Number(f.value)||0)/1E6);J=new Q5Y(R,N,C,X,g.VJP(J),g.gi2(J))}else J=null;return J}; gH=function(J){J.K=null;J.ma=-1;J.W=0;J.Z=null;J.VO=NaN;J.nC=0;J.dn=null}; mnB=function(J,R){R={rst4disc:R,cd:J.X.toFixed(3),sq:J.PC?J.PC.SQ:-1};J.V=NaN;J.X=0;J.pC=-1;J.PC=null;J.eQ=NaN;J.l3=NaN;J.HC=null;J.vC.u3("mdstm",R)}; zKE=function(J,R){if(J.S.info.xi){if(R.info.K.info.nL()){var N=new Wn(R.qP());if(Lq(N,[408125543,374648427,174,28032,25152,20533,18402])){var C=Ez(N,!0);N=C!==16?null:nq(N,C)}else N=null;C="webm"}else R.info.D=Kwf(R.qP()),N=aun(R.info.D),C="cenc";N&&N.length&&(N=new YO(N,C),J.policy.A7&&g.kY(R.info.K.info)&&(C=h18(R.qP()))&&(N.J=C),N.nL=R.info.K.info.nL(),R.J&&R.J.cryptoPeriodIndex&&(N.cryptoPeriodIndex=R.J.cryptoPeriodIndex),R.J&&R.J.J&&(N.K=R.J.J),J.vC.hB(N))}}; xnE=function(J){var R=J.Z,N=jj8(R);N&&(N.startSecs+=J.VO,J.vC.K7(J.S,N,R.Is,R.bZ()))}; GH2=function(J,R){var N,C=J.Z;if(N=jj8(C))N.startSecs+=J.VO;return new PV(C.Is,J.VO,R?C.FB:J.nC,C.ingestionTime,"sq/"+C.Is,void 0,void 0,R,N)}; yq7=function(J,R,N){if(!mEf(R,N))return R=yH(R.info),R.smst="1",J.vC.handleError("fmt.unparseable",R||{},1),!1;isNaN(J.VO)&&(J.VO=N);return!0}; hKY=function(J,R,N){var C=0;if(R.info.K.info.nL()&&!UEf(R))return 0;if(J.tN&&!J.B7()){var X=0;N&&g.kY(R.info.K.info)?X=N-J.V:R.info.K.info.nL()&&(X=J.X);var u=R.info.SQ;N=Wf(R,J.policy.Xn);var f=J.tN;var H=f.pC;f=f.X;var k=Math.abs(f-X)>.02;if((u===H||u>H&&u>J.pC)&&k){C=Math.max(.95,Math.min(1.05,(N-(f-X))/N));if(g.kY(R.info.K.info))lpE(R.qP(),C);else if(R.info.K.info.nL()&&(u=X-f,!g.kY(R.info.K.info)&&(R.info.K.info.nL(),C=new Wn(R.qP()),H=R.U?C:new Wn(new DataView(R.info.K.K.buffer)),Wf(R,!0)))){var v= u*1E3,W=sz(H);H=C.pos;C.pos=0;if(C.K.getUint8(C.pos)===160||Bn(C))if(Fs(C,160))if(Ez(C,!0),Fs(C,155)){if(u=C.pos,k=Ez(C,!0),C.pos=u,v=v*1E9/W,W=Kq(C),v=W+Math.max(-W*.7,Math.min(W,v)),v=Math.sign(v)*Math.floor(Math.abs(v)),!(Math.ceil(Math.log(v)/Math.log(2)/8)>k)){C.pos=u+1;for(u=k-1;u>=0;u--)C.K.setUint8(C.pos+u,v&255),v>>>=8;C.pos=H}}else C.pos=H;else C.pos=H;else C.pos=H}C=Wf(R,J.policy.Xn);C=N-C}C&&R.info.K.info.nL()&&J.vC.u3("webmDurationAdjustment",{durationAdjustment:C,videoDrift:X+C,audioDrift:f})}return C}; cq8=function(J){return J.info.K.yW()&&J.info.SQ===J.info.K.index.yR()}; pb=function(J,R){R=(R=R===void 0?0:R)?Math.round(J.timestampOffset*R)/R:J.timestampOffset;J.S.Z&&R&&(R+=J.S.Z.K);return R+J.getDuration()}; J9E=function(J,R){R<0||(J.J.forEach(function(N){Vyn(N,R)}),J.timestampOffset=R)}; Dt=function(J,R,N,C,X){Ue.call(this,N,X);var u=this;this.policy=J;this.formatId=R;this.uB=C;this.lastError=null;this.zN=function(){u.QO()||(u.uB.Li.has(u.formatId)?(u.isComplete()||u.K.start(),fb(u.uB,u.formatId)&&u.vN(2),u.uB.vV(u.formatId)&&(W7n(u.uB,u.formatId)?u.XD(4):(u.lastError="net.closed",u.XD(5)))):(u.lastError="player.exception",u.XD(5)))}; this.K=new g.$t(function(){u.isComplete()||(u.lastError="net.timeout",u.XD(5))},this.policy.Qn); this.K.start();TQg(this.uB,this.formatId,this.zN);g.Sz(this.zN)}; lF=function(J,R,N,C){g.l.call(this);var X=this;this.vC=J;this.policy=R;this.K=N;this.timing=C;this.logger=new g.Pi("dash");this.V=[];this.ma=[];this.J=this.CP=null;this.G7=!1;this.T7=this.l3=0;this.S=-1;this.dn=!1;this.VO=-1;this.tN=this.PC=null;this.nC=NaN;this.QR={hx:function(){return X.Z}, sFf:function(){return X.V}, qbB:function(){return X.X}}; this.Z=new YUE(J,R,N);this.policy.K&&(this.X=new U8g(this.Z,this.vC.getManifest(),this.policy,function(u){X.policy.gC&&X.u3("buftl",u)})); this.policy.oB&&(this.W=new HA2(this));this.fC=N.info.fC;this.D=this.policy.W?!1:N.SM();this.isManifestless=N.SM();this.U=this.D;g.P(this,this.PC)}; Pk=function(J,R,N){N=N===void 0?!1:N;R&&Ud&&J9E(J.Z,R.jU());if(!N){var C;(C=J.X)==null||cIE(C)}J.CP=R;(R=J.X)!=null&&(R.CP=J.CP)}; zc=function(J){var R=J.CP&&J.CP.Qz();if(J.policy.Ql){if((J=J.X)==null)J=void 0;else{var N;J=(N=J.V)==null?void 0:N.info}return J||null}return R}; oe2=function(J){for(var R={},N=0;N4&&J.ma.shift()}; Nnk=function(J,R){if(R.Ek()){var N=R.BY();N=g.K(N);for(var C=N.next();!C.done;C=N.next())C=C.value,J.policy.V&&R instanceof Dt&&J.u3("omblss",{s:C.info.Ki()}),eT(J,R.info.aB,C,R.XS())}}; eT=function(J,R,N,C){C=C===void 0?0:C;isNaN(J.nC)||(J.u3("aswm",{sq:R[0].SQ,id:R[0].K.info.itag,xtag:R[0].K.info.K,ep:Date.now()-J.nC}),J.nC=NaN);switch(N.info.type){case 1:case 2:Ch7(J,N);break;case 4:var X=N.info.K,u=X.KM(N),f;((f=J.J)==null?0:f.type===4)&&EPQ(N.info,J.J)&&(J.J=X.a4(J.J).pop());N=g.K(u);for(X=N.next();!X.done;X=N.next())eT(J,R,X.value,C);break;case 3:N.info.K.info.video?(X=J.timing,X.tN||(X.tN=(0,g.g9)(),bs("fvb_r",X.tN,X.K))):(X=J.timing,X.S||(X.S=(0,g.g9)(),bs("fab_r",X.S,X.K))); PYn(J.Z,R,N,C);J.policy.K&&XEE(J);break;case 6:PYn(J.Z,R,N,C),J.J=N.info}}; Ch7=function(J,R){if(R.info.type===1)if(R.info.K.info.video){var N=J.timing;N.PC||(N.PC=(0,g.g9)(),bs("vis_r",N.PC,N.K))}else N=J.timing,N.X||(N.X=(0,g.g9)(),bs("ais_r",N.X,N.K));gzg(J.Z,R);J=J.vC;J.videoTrack.K.M7()&&J.audioTrack.K.M7()&&J.policy.K&&!J.manifest.MR&&(R=J.audioTrack.getDuration(),N=J.videoTrack.getDuration(),Math.abs(R-N)>1&&J.u3("trBug",{af:""+WS(J.audioTrack.K.info,!1),vf:""+WS(J.videoTrack.K.info,!1),a:""+R,v:""+N}))}; ro=function(J){return rqg(J.Z)}; XEE=function(J){J.V.length?J.J=g.Pl(g.Pl(J.V).info.aB):J.Z.J.length?J.J=J.Z.I6().info:J.J=zc(J)}; wH=function(J,R,N){var C={Zf:[],Vd:[]},X;if((J=J.X)==null)J=void 0;else{wfE(J,J.Zf,"og");zTE(J,R,N);wfE(J,J.Zf,"trim");N=eTB(J);R=N.Zf;N=N.D6;for(var u=[],f=0;f0){var L=a6(S,k);L>=0&&(W=(S.end(L)-k+.1)*1E3)}u.push({formatId:WS(H.info.K.info,J.manifest.MR),nT:H.info.nT, sequenceNumber:H.info.SQ+J.Z,Tm:v,Sm:H.info.V,gT:W})}J={Zf:R,Vd:u}}return(X=J)!=null?X:C}; Oe=function(J,R,N){N=N===void 0?!1:N;if(J.CP){var C=J.CP.jD(),X=ne(C,R),u=NaN,f=zc(J);f&&(u=ne(C,f.K.index.getStartTime(f.SQ)));if(X===u&&J.J&&J.J.V&&iuE(um2(J),0))return R}J=fdE(J,R,N);return J>=0?J:NaN}; qU=function(J,R,N){J.K.M7();var C=fdE(J,R);if(C>=0)return C;if((C=J.X)!=null){var X=R;C.policy.AL&&N!=null&&N.Kj||(C.D6=[]);C.policy.CY||(zTE(C,!0,X),C.K=MU(C.Zf,X*1E3))}N=Math;C=N.min;X=J.Z;if(X.D)if(X=X.D,X.RT&&X.RT.type===3)X=X.RT.startTime;else if(X.V>0){var u=X.K.index;u=g.N_(u.offsets.subarray(0,u.count),X.V*X.chunkSize);X=X.K.index.getStartTime(u>=0?u:Math.max(0,-u-2))}else X=0;else X=Infinity;R=C.call(N,R,X);if(J.policy.J){var f,H;N=(f=J.vC.fL())==null?void 0:(H=Qj(f,R))==null?void 0:H.clipId; J.J=J.K.Hi(R,void 0,N).aB[0]}else J.J=J.policy.W?null:J.K.Hi(R).aB[0];ck(J)&&J.CP&&J.CP.abort();J.T7=0;return J.J?J.J.startTime:R}; yIY=function(J){J.D=!0;J.U=!0;J.S=-1;qU(J,Infinity)}; hD=function(J){for(var R=0,N=g.K(J.V),C=N.next();!C.done;C=N.next())R+=KI7(C.value.info);return R+=eKg(J.Z)}; Gc=function(J,R){R=R===void 0?!1:R;var N=J.vC.getCurrentTime(),C=J.Z.I6(),X=(C==null?void 0:C.info.y0)||0;J.policy.mR&&(C==null?0:C.info.K.SM())&&!C.info.Z&&(X=C.info.dN);if(J.policy.J&&C&&C.info.clipId){var u,f=(((u=J.vC.fL())==null?void 0:KJ(u,C.info.clipId))||0)/1E3;X+=f}if(!J.CP)return J.policy.K&&R&&!isNaN(N)&&C?X-N:0;if((u=zc(J))&&yx(J,u))return u.y0;f=J.CP.jD(!0);if(R&&C)return u=0,J.policy.K&&(u=sO(f,X+.02)),u+X-N;X=sO(f,N);J.policy.lF&&u&&(R=a6(f,N),f=a6(f,u.dN-.02),R===f&&(N=u.y0-N,J.policy.V&& N>X+.02&&J.u3("abh",{bh:X,bhtls:N}),X=Math.max(X,N)));return X}; TnP=function(J,R){if(J.V.length){if(J.V[0].info.aB[0].startTime<=R)return;Bi(J)}for(var N=J.Z,C=N.J.length-1;C>=0;C--)N.J[C].info.startTime>R&&N.J.pop();XEE(J);J.J&&R=0;f--){var H=X.J[f];H.info.SQ>=R&&(X.J.pop(),X.V-=Wf(H,X.policy.Xn),u=H.info)}u&&(X.U=X.J.length>0?X.J[X.J.length-1].info:X.HC,X.J.length!==0||X.U||mnB(X,"r"));X.vC.u3("mdstm",{rollbk:1,itag:u?u.K.info.itag:"",popped:u?u.SQ:-1,sq:R,lastslc:X.U?X.U.SQ:-1,lastfraget:X.V.toFixed(3)});J.policy.K?J.J=null:C>N?qU(J,C):J.J=J.K.Rd(R-1,!1).aB[0]}; tD=function(J,R){var N;for(N=0;N0?N||R.SQ>=J.VO:N}; J4=function(J){var R;return ck(J)||yx(J,(R=J.Z.I6())==null?void 0:R.info)}; um2=function(J){var R=[],N=zc(J);N&&R.push(N);R=g.bP(R,J.Z.c_());N=g.K(J.V);for(var C=N.next();!C.done;C=N.next()){C=C.value;for(var X=g.K(C.info.aB),u=X.next(),f={};!u.done;f={hd:void 0},u=X.next())f.hd=u.value,C.md&&(R=g.IM(R,function(H){return function(k){return!EPQ(k,H.hd)}}(f))),(wG(f.hd)||f.hd.type===4)&&R.push(f.hd)}J.J&&!$E2(J.J,g.Pl(R),J.J.K.yW())&&R.push(J.J); return R}; iuE=function(J,R){if(!J.length)return!1;for(R+=1;R=R){R=u;break a}}R=X}return R<0?NaN:iuE(J,N?R:0)?J[R].startTime:NaN}; os=function(J){return!(!J.J||J.J.K===J.K)}; HuE=function(J){return os(J)&&J.K.M7()&&J.J.K.info.fCR&&C.y01080&&!J.G$&&(J.T7=36700160,J.EB=5242880,J.l3=Math.max(4194304,J.l3),J.G$=!0);R.video.K>2160&&!J.Pn&&(J.T7=104857600,J.fC=13107200,J.Pn=!0);g.di(J.OB.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?R.isEncrypted()&&g.Rc()&&g.Jf("samsung")&&(g.Jf("kant")||g.Jf("muse"))&&(J.fC=g.di(J.OB.experiments,"html5_samsung_kant_limit_max_bitrate")):R.isEncrypted()&&g.Rc()&&g.Jf("kant")&&(J.fC=1310720);J.bT!==0&&R.isEncrypted()&&(J.fC=J.bT);J.zo!==0&&R.isEncrypted()&& N&&(J.fC=J.zo);R.fC&&(J.Lk=Math.max(J.IE,Math.min(J.l3,5*R.fC)))}; XX=function(J){return J.K&&J.Xp&&J.playbackStartPolicy}; iI=function(J){return J.J||J.K&&J.v7}; BnE=function(J,R,N,C){J.Xp&&(J.playbackStartPolicy=R,J.h7=N,J.MY=C)}; CS=function(J,R,N){N=N===void 0?0:N;return g.di(J.OB.experiments,R)||N}; OuY=function(J){var R=J===void 0?{}:J;J=R.hn;var N=R.CJ;var C=R.j8;var X=R.yR;R=R.QA;this.hn=J;this.CJ=N;this.j8=C;this.yR=X;this.QA=R}; TIB=function(J,R){if(R<0)return!0;var N=J.yR();return R0)return 2;if(R<0)return 1;N=J.yR();return R(0,g.g9)()?0:1}; fS=function(J,R,N,C,X,u,f,H,k,v,W,S,L,I){I=I===void 0?null:I;g.l.call(this);var F=this;this.vC=J;this.policy=R;this.videoTrack=N;this.audioTrack=C;this.Z=X;this.K=u;this.timing=f;this.U=H;this.schedule=k;this.manifest=v;this.V=W;this.nC=S;this.R3=L;this.Mn=I;this.dn=!1;this.U5="";this.sV=null;this.A2=NaN;this.ma=!1;this.J=null;this.XP=this.W=NaN;this.Y0=this.S=0;this.logger=new g.Pi("dash");this.QR={Du:function(a,n){return F.Du(a,n)}}; this.policy.g6>0&&(this.U5=g.jg(this.policy.g6));this.policy.eP&&(this.X=new uI(this.vC,this.policy,this.schedule),g.P(this,this.X))}; j1k=function(J,R,N){var C=R.J?R.J.K.resource:R.K.resource;var X=J.Z,u;(u=!J.policy.z_)||(u=VM(C.K)===VM(C.V));u?C=!1:(X=qB(X,VM(C.V)),u=6E4*Math.pow(X.Z,1.6),(0,g.g9)()=X.Z?(X.u3("sdai",{haltrq:u+1,est:X.Z}),C=!1):C=X.J!==2;if(!C||!mK(R.J?R.J.K.resource:R.K.resource,J.policy,J.Z,J.vC.xN())||J.vC.isSuspended&&(!A6(J.schedule)||J.vC.Oz))return!1;if(J.policy.Z&&lv>=5)return g.HK(J.vC.QZ),!1;if(J.manifest.isManifestless){if(R.V.length>0&&R.J&&R.J.SQ===-1||R.V.length>=J.policy.qz||!J.policy.T_&&R.V.length>0&&!J.policy.D.CJ)return!1;if(R.D)return!J.manifest.isLive|| !isNaN(J.A2)}if(LRE(R))return J.logger.debug("Pending request with server-selectable format found"),!1;if(!R.J){if(!R.K.M7())return!1;qU(R,J.vC.getCurrentTime())}if(ro(R)&&(R.I6()!==ro(R)||J.vC.isSuspended))return!1;X=(C=J.policy.MA)&&!R.V.length&&Gc(R,!0)=J.policy.yd)return!1;C=R.J;if(!C)return!0;C.type===4&&C.K.M7()&&(R.J=g.Pl(C.K.a4(C)),C=R.J); if(!C.Nn()&&!C.K.K2(C))return!1;u=J.manifest.SD||J.manifest.Z;if(J.manifest.isManifestless&&u){u=R.K.index.yR();var f=N.K.index.yR();u=Math.min(u,f);if(R.K.index.bW()>0&&u>0&&C.SQ>=u)return R.VO=u,N.VO=u,!1}if(C.K.info.audio&&C.type===4||C.Nn())return!1;u=!R.U&&!N.U;if(X=!X)X=C.y0,X=!!(N.J&&!yx(N,N.J)&&N.J.y0m$B(J,R)?(m$B(J,R),!1):(J=R.CP)&&J.isLocked()?!1:!0}; m$B=function(J,R){var N=J.K;N=N.K?N.K.Kb:null;if(J.policy.VO&&N)return N.startSecs+N.Ly+15;R=Zt(J.vC,R);J.policy.TW>0&&(N=((0,g.g9)()-J.vC.A4)/1E3,R=Math.min(R,J.policy.TW+J.policy.KV*N));N=J.vC.getCurrentTime()+R;return J.policy.A_&&(R=VM8(J.vC)+J.policy.A_,R=0||R.resource.oD("defrag")==="1"||R.resource.oD("otf")==="1"){R=null;break a}X=lG(0,4096)}X=new bG([new zt(5,C.K,X,"createProbeRequestInfo"+C.U,C.SQ)],R.J);X.O7=N;X.K=R.K;R=X}R&&r9B(J,R)}}; r9B=function(J,R){J.vC.gE(R);var N=KI7(R),C=J.vC.fE();N={I9:J.schedule,Ln:N,AG:rI7(J.U,N),xg:e3(R.aB[0]),Mz:g$(R.resource.K),Vo:J.policy.V,Ho:function(f,H){J.vC.GQ(f,H)}}; if(J.schedule.W.Z){var X,u;N.Mi=(((X=J.videoTrack.K)==null?void 0:X.info.fC)||0)+(((u=J.audioTrack.K)==null?void 0:u.info.fC)||0)}J.sV&&(N.SQ=R.aB[0].SQ,N.A2=R.A2,N.sV=J.sV);C={Eu:a6f(R,J.vC.getCurrentTime()),FK:J.policy.rN&&x6(R)&&R.aB[0].K.info.video?TOf(J.V):void 0,m4:J.policy.VO,poToken:J.vC.hC(),La:J.vC.R0(),U5:J.U5,XP:isNaN(J.XP)?null:J.XP,Mn:J.Mn,R3:J.R3,Y0:J.Y0,Gw:C};return new se(J.policy,R,N,J.Z,function(f,H){try{a:{var k=f.info.aB[0].K,v=k.info.video?J.videoTrack:J.audioTrack;if(!(f.state>= 2)||f.isComplete()||f.eW()||!(!J.vC.Mp||J.vC.isSuspended||Gc(v)>3)){var W=qLf(f,J.policy,J.Z);W===1&&(J.ma=!0);geB(J,f,W);if(f.isComplete()||f.QO()&&H<3){if(J.policy.V){var S=f.timing.Cw();S.rst=f.state;S.strm=f.xhr.Wo();S.cncl=f.xhr&&f.GA.Z?1:0;J.vC.u3("rqs",S)}f.cz&&J.vC.u3("sbwe3",{},!0)}if(!J.QO()&&f.state>=2){qA2(J.timing,f,k);var L=J.vC;J.XP&&f.Lo&&L&&(J.XP=NaN,J.vC.xV(f.Lo),J.vC.IR(),J.vC.u3("cabrUtcSeek",{mediaTimeSeconds:f.Lo}));f.BN&&(f.ub>0&&J.vC.u3("sError",{errorHttpResponseCode:f.ub.toString()}), J.XP&&f.BN&&!f.BN.action&&(J.vC.i$(J.XP),J.XP=NaN,J.vC.u3("cabrUtcSeekFallback",{targetUtcTimeSeconds:J.XP})));f.W_&&J.vC.l$(f.W_);J.policy.j2&&(J.Y0=f.Y0);if(f.state===3){tD(v,f);x6(f.info)&&Tl(J,v,k,!0);if(J.J){var I=f.info.z2();I&&J.J.eR(f.info.aB[0].SQ,k.info.id,I)}J.vC.hY()}else if(f.isComplete()&&f.info.aB[0].type===5){if(f.state!==4)f.NV()&&J.vC.handleError(f.WV(),f.v_());else{var F=(f.info.aB[0].K.info.video?J.videoTrack:J.audioTrack).V[0]||null;F&&F instanceof se&&F.eW()&&F.nk(!0)}f.dispose()}else{f.NV()|| U$n(J,f);var a;((a=f.eM)==null?0:a.itagDenylist)&&J.vC.Dg(f.eM.itagDenylist);if(f.state===4)pEQ(J,f),J.K&&Vef(J.K,f.info,J.J);else if(J.policy.Jp&&f.Ek()&&!f.isComplete()&&!pEQ(J,f)&&!f.NV())break a;f.NV()&&(ldE(J,f),isNaN(J.XP)||(J.vC.i$(J.XP),J.XP=NaN));J.policy.ji&&!f.isComplete()?PhE(J.vC):J.vC.hY();var n=A9B(f,J.policy,J.Z);geB(J,f,n)}}}}}catch(B){H=J.dn?1:0,J.dn=!0,f=zi(H),H=ey(B,H),J.vC.handleError(H.errorCode,H.details,H.severity),f||J.vC.ke()}},C)}; U$n=function(J,R){if(R.Q9&&R.state>=2&&R.state!==3){var N=R.xhr.getResponseHeader("X-Response-Itag");if(N){J.logger.debug(function(){return"Applying streamer-selected format "+N}); var C=fuE(J.V,N),X=R.info.V;X&&(X-=C.p4(),C.V=!0,R.info.aB[0].K.V=!1,iWB(R,C.AF(X)),$v(J.vC,J.videoTrack,C),IdE(J.videoTrack,C),J.vC.UO(C.info.video.quality),(X=R.XS())&&C.info.lastModified&&C.info.lastModified!==+X&&tD(J.videoTrack,R))}else R.Q9=!1}}; ldE=function(J,R){var N=R.info.aB[0].K,C=R.WV();if(g$(N.resource.K)){var X=g.LE(R.iB(),3);J.vC.u3("dldbrerr",{em:X||"none"})}X=R.info.aB[0].SQ;var u=Wk(J.K,R.info.aB[0].dN,X);C==="net.badstatus"&&(J.S+=1);if(R.canRetry()&&zB2(J.vC)){if(!(R.info.resource.J>=J.policy.Wu&&J.J&&R.info.isDecorated()&&C==="net.badstatus"&&J.J.YC(u,X))){X=(N.info.video&&N.resource.J>1||R.e8===410||R.e8===500||R.e8===503)&&!(Mo(J.V.U).size>0)&&!g$(N.resource.K);u=R.v_();var f=N.info.video?J.videoTrack:J.audioTrack;X&&(u.stun= "1");J.vC.handleError(C,u);J.QO()||(X&&(J.logger.debug(function(){return"Stunning format "+N.info.id}),Dm(J.V,N)),tD(f,R),J.vC.hY())}}else f=1,J.J&&R.info.isDecorated()&&C==="net.badstatus"&&J.J.YC(u,X)&&(f=0),J.manifest.isLive&&R.WV()==="net.badstatus"&&J.S<=J.policy.wm*2?(Kxn(J.manifest),J.manifest.SD||J.manifest.isPremiere?Y8(J.vC,0,{hL:"badStatusWorkaround"}):J.manifest.Z?Y8(J.vC,J.manifest.G7,{hL:"badStatusWorkaround", o6:!0}):HX(J.vC)):J.vC.handleError(C,R.v_(),f)}; pEQ=function(J,R){if(J.policy.useUmp&&R.QO())return!1;try{var N=R.info.aB[0].K,C=N.info.video?J.videoTrack:J.audioTrack;if(J.manifest.isManifestless&&C){J.S=0;C.D&&(R.QO(),R.isComplete()||R.Ek(),C.D=!1);R.VV()&&J.vC.ZT.x5(1,R.VV());var X=R.bW(),u=R.L0();mf(J.manifest,X,u)}if(R.info.xg()&&!tx(R.info))for(var f=g.K(R.BY()),H=f.next();!H.done;H=f.next())Ch7(C,H.value);for(J.vC.getCurrentTime();C.V.length&&C.V[0].state===4;){var k=C.V.shift();Nnk(C,k);C.l3=k.Se()}C.V.length&&Nnk(C,C.V[0]);var v=!!ro(C); v&&R instanceof Dt&&(N.info.B7()?nCf(J.timing):QdB(J.timing));return v}catch(W){R=R.v_();R.origin="hrhs";a:{J=J.vC;N=W;if(N instanceof Error){R.msg||(R.msg=""+N.message);R.name||(R.name=""+N.name);if(N instanceof g.C3&&N.args)for(C=g.K(Object.entries(N.args)),X=C.next();!X.done;X=C.next())u=g.K(X.value),X=u.next().value,u=u.next().value,R["arg"+X]=""+u;g.G$(N);if(N.level==="WARNING"){J.RB.CV(R);break a}}J.handleError("fmt.unplayable",R,1)}return!1}}; eB2=function(J){var R=J.videoTrack.K.index;J.sV=new OuY({hn:J.policy.hn,CJ:J.policy.D.CJ,j8:R.h9(),yR:function(){return R.yR()}, QA:function(){return R.QA()}})}; Tl=function(J,R,N,C){if(!(N.M7()||N.hh()||N.V||!mK(N.resource,J.policy,J.Z)||N.info.sB==="f"||J.policy.K)){if(C){C=J.U;var X=N.info;C=j9Q(C,X.video?C.policy.AV:C.policy.qj,X.fC)}else C=0;C=N.AF(C);J=r9B(J,C);tx(C)&&RBE(R,J);N.V=!0}}; kv=function(J,R,N,C,X,u,f,H){g.l.call(this);var k=this;this.vC=J;this.KY=R;this.videoTrack=N;this.audioTrack=C;this.manifest=X;this.W=u;this.isAudioOnly=f;this.D=H;this.J=tz;this.ma=!1;this.logger=new g.Pi("sabr");this.X=this.dn=this.nC=!1;this.videoInfos=this.U=this.W.videoInfos;this.V=this.tN=this.W.K;this.K=new FP(R,u,function(v,W){k.vC.u3(v,W)}); this.KY.V4||wEg(this);this.isAudioOnly&&c9g(this,this.manifest.K["0"])}; hBB=function(J,R){var N=[];R=g.K(R);for(var C=R.next();!C.done;C=R.next())N.push(WS(C.value,J.manifest.MR));return N}; c9g=function(J,R,N){R!==J.Z&&(J.Z&&(J.ma=!0),J.Z=R,J.Ld(R,J.videoTrack,N))}; tMB=function(J,R){J.logger.debug("setConstraint: "+aJ(R));iI(J.KY)&&(J.dn=R.reason==="m"||R.reason==="l"?!0:!1);R.reason==="m"?R.isLocked()&&y92(J,R.K):GCE(J,R)?buE(J,R.J,R.K):J.videoInfos=J.U;J.J=R}; GCE=function(J,R){return J.KY.GG&&R.reason==="b"||J.KY.aL?!1:J.KY.Sq?!0:R.reason==="l"||R.reason==="b"||R.reason==="o"}; x$g=function(J,R){return R.isLocked()&&J.K.J||J.J===void 0?!1:IJ(R,J.J)}; J7P=function(J,R){var N,C=(N=J.Z)==null?void 0:N.info.video.K;return J.ma?!0:J.Z?R!==C?!0:!J.K.J||J.KY.Jn&&J.K.K===J.Z.info.itag?!1:!0:!1}; y92=function(J,R){var N=J.K.K;if(N){J.videoInfos=J.U;var C=g.eE(J.videoInfos,function(X){return X.id===N}); C&&C.video.K===R?J.videoInfos=[C]:(C=J.videoInfos.map(function(X){return X.id}),J.vC.u3("sabrpf",{pfid:""+N, vfids:""+C.join(".")}),buE(J,R,R),Kb(J.K,""))}else buE(J,R,R)}; buE=function(J,R,N){J.videoInfos=J.U;J.videoInfos=g.IM(J.videoInfos,function(C){return C.video.K>=R&&C.video.K<=N})}; wEg=function(J){var R=zIP(J.K,J.D);R&&(J.V=[R])}; o88=function(J,R,N){if(J.KY.V4){if(J.D){var C=g.IM(J.V,function(X){return X.id===J.D}); return vX(C,N).includes(R)}C=g.IM(J.V,function(X){var u;return!((u=X.Do)==null||!u.isDefault)}); if(C.length>0)return vX(C,N).includes(R)}return vX(J.V,N).includes(R)}; vX=function(J,R){return J.map(function(N){return VH(WS(N,R))})}; R2f=function(J){var R;if((R=J.J)==null?0:R.isLocked())return J.videoInfos;var N=Mo(J.K);R=g.IM(J.videoInfos,function(C){return C.fC>J.KY.fC?!1:!N.has(C.id)}); Pvg(J.K)&&(R=g.IM(R,function(C){return C.video.width<=854&&C.video.height<=480})); return R}; Xik=function(J,R,N,C){var X=J.manifest,u=J.RB.getVideoData(),f=g.vJ(u),H=JzQ({OB:u.N(),RB:J.RB,x_:J.x_,KY:J.KY,A4:J.A4,UK:J.UK,Bn:J.Bn,tV:J.tV,jp:J.jp,isPrefetch:J.isPrefetch,V$:J.V$,sabrLicenseConstraint:u.sabrLicenseConstraint,dY:J.dY,Wn:J.Wn}),k=oz(u,J.Gw,J.nextRequestPolicy,J.eS,J.qs,J.p78);C&&N&&(C=k.EC?k.EC.map(function(a){return a.type}):[],N("ssap",{stmctxt:C.join("_"), unsntctxt:k.P8?k.P8.join("_"):""}));C=J.HQ;var v=J.zQ,W=J.Ns;if(v===void 0&&C===void 0){var S;v=NoQ(X.MR,(S=J.b2)==null?void 0:S.video);var L;C=NoQ(X.MR,(L=J.b2)==null?void 0:L.audio)}if(u.Mn)var I=u.Mn;u={T5:H,Vd:J.Vd,HQ:C,zQ:v,Ns:W,videoPlaybackUstreamerConfig:I,IC:k};J.RW&&(u.RW=J.RW);if(f&&R){f=new Map;var F=g.K(X.PC);for(H=F.next();!H.done;H=F.next())H=H.value,(k=X.T7[CM8(X,H)]||"")?(f.has(k)||f.set(k,[]),f.get(k).push(H)):N&&N("ssap",{nocid4fmt:(H.itag||"")+"_"+(H.lmt||0)+"_"+(H.xtags||"")}); X=new Map;F=g.K(J.Zf);for(H=F.next();!H.done;H=F.next())H=H.value,k=H.startTimeMs||0,S=void 0,L=(S=R)==null?void 0:Qj(S,k),S=L.clipId,L=L.jS,S?(X.has(S)||(I=f.get(S)||[],X.set(S,{clipId:S,Zf:[],N1:I})),L!==0&&(H.startTimeMs=k-L),X.get(S).Zf.push(H)):N&&(S=void 0,N("ssap",{nocid4range:"1",fmt:((S=H.formatId)==null?void 0:S.itag)||"",st:k.toFixed(3),d:(H.durationMs||0).toFixed(3),timeline:WX(R)}));u.Jl=[];X=g.K(X.entries());for(f=X.next();!f.done;f=X.next())f=g.K(f.value),f.next(),f=f.next().value, u.Jl.push(f);if(J.Zf.length&&!u.Jl.length){N&&N("ssap",{nobfrange:"1",br:Cen(J.Zf),timeline:WX(R)});return}J.sN&&(u.sN=J.sN);J.zO&&(u.zO=J.zO)}else u.Zf=J.Zf,u.N1=X.PC,f&&((F=J.Zf)==null?void 0:F.length)>0&&!R&&N&&N("ssap",{bldmistlm:"1"});return u}; NoQ=function(J,R){return R?[WS(R.info,J)]:[]}; Cen=function(J){var R="";J=g.K(J);for(var N=J.next();!N.done;N=J.next()){N=N.value;var C=void 0,X=void 0,u=void 0;R+="fmt."+(((C=N.formatId)==null?void 0:C.itag)||"")+"_"+(((X=N.formatId)==null?void 0:X.lmt)||0)+"_"+(((u=N.formatId)==null?void 0:u.xtags)||"")+";st."+(N.startTimeMs||0).toFixed(3)+";d."+(N.durationMs||0).toFixed(3)+";"}return R}; SO=function(J,R,N){var C=this;this.requestType=J;this.resource=R;this.nP=N;this.J=null;this.QR={COO:function(){var X;return(X=C.data)==null?void 0:X.isPrefetch}, qs:function(){var X;return(X=C.data)==null?void 0:X.qs}}}; iJQ=function(J,R,N,C,X){X=X===void 0?{}:X;if(C==null?0:C.YA)J.yB=Men(J,C,X),R.Wn=J.resource.Wn();if(J.EM())return!0;J.data=R;J.K=Xik(R,N,function(u,f){var H;(H=J.nP)==null||H.NO(u,f)},C==null?void 0:C.V); if(!J.K)return!1;J.J=g.QA(J.K,DbE);return!0}; Men=function(J,R,N){R=rG(J.resource,u_2(J,R,N),R);J.EM()&&R.set("probe","1");return R}; u_2=function(J,R,N){J.O7===void 0&&(J.O7=J.resource.O7(R,N));return J.O7}; ftg=function(J){var R,N;return((R=J.K)==null?void 0:(N=R.T5)==null?void 0:N.HW)||0}; Tok=function(J){var R,N;return!!((R=J.K)==null?0:(N=R.T5)==null?0:N.dY)}; $Ug=function(J){var R={},N=[],C=[];if(!J.data)return R;for(var X=0;X0;k--)N.push(H)}N.length!==f?R.error=!0:(u=N.slice(-u),N.length=X,VrB(R,N,u));break;case 1:VrB(R,s$,qeP);break;case 0:g8n(R, R.K&7);N=dc(R,16);X=dc(R,16);(N^X)!==65535&&(R.error=!0);R.output.set(R.data.subarray(R.J,R.J+N),R.V);R.J+=N;R.V+=N;break;default:R.error=!0}J.V>J.output.length&&(J.output=new Uint8Array(J.V*2),J.V=0,J.J=0,J.Z=!1,J.K=0,J.register=0)}J.output.length!==J.V&&(J.output=J.output.subarray(0,J.V));return J.error?new Uint8Array(0):J.output}; VrB=function(J,R,N){R=jK7(R);N=jK7(N);for(var C=J.data,X=J.output,u=J.V,f=J.register,H=J.K,k=J.J;;){if(H<15){if(k>C.length){J.error=!0;break}f|=(C[k+1]<<8)+C[k]<>=7;v<0;)v=R[(f&1)-v],f>>=1;else f>>=v&15;H-=v&15;v>>=4;if(v<256)X[u++]=v;else if(J.register=f,J.K=H,J.J=k,v>256){f=O$[v];f+=dc(J,BX[v]);k=mUf(J,N);H=Z8[k];H+=dc(J,A78[k]);if(pig&&fN.length&&(J.error=!0);J.register|=(N[C+1]<<8)+N[C]<=0)return g8n(J,N&15),N>>4;for(g8n(J,7);N<0;)N=R[dc(J,1)-N];return N>>4}; dc=function(J,R){for(;J.K=J.data.length)return J.error=!0,0;J.register|=J.data[J.J++]<>=R;J.K-=R;return N}; g8n=function(J,R){J.K-=R;J.register>>=R}; jK7=function(J){for(var R=[],N=g.K(J),C=N.next();!C.done;C=N.next())C=C.value,R[C]||(R[C]=0),R[C]++;var X=R[0]=0;N=[];var u=0;C=0;for(var f=1;f7&&(u+=R[f]);for(X=1;X>k&1;H=u<<4|f;if(f<=7)for(k=1<<7-f;k--;)C[k<>=7;f--;){C[k]||(C[k]=-R,R+=2);var v=X&1;X>>=1;k=v-C[k]}C[k]=H}}return C}; ltE=function(J){var R,N,C,X,u,f,H;return g.Y(function(k){switch(k.K){case 1:if(!("DecompressionStream"in window))return k.return(g.UUE(new g.Yek(J)));R=new DecompressionStream("gzip");N=R.writable.getWriter();N.write(J);N.close();C=R.readable.getReader();X=new eV([]);case 2:return g.q(k,C.read(),5);case 5:u=k.J;f=u.value;if(H=u.done){k.ZM(4);break}X.append(f);k.ZM(2);break;case 4:return k.return(X.yc())}})}; qA=function(J,R){this.K=J;this.QC=R}; Peg=function(J){return qN(qN(Ou(function(){return dS(J.QC,function(R){return J.zz(J.K,R)})}),function(){return J.bx(J.K)}),function(){return J.NB(J.K)})}; z2g=function(J,R){return Peg(new qA(J,R))}; c7Y=function(J){Cb.call(this,"onesie");this.R9=J;this.K={};this.V=!0;this.Z=null;this.queue=new dUY(this);this.U={};this.S=MUP(function(R,N){var C=this;return function u(){var f,H,k,v,W,S,L,I,F,a,n,B,Z,A,V,p,b,w,RQ,$E;return Yfk(u,function(G){switch(G.K){case 1:G.S=0;G.Z=2;C.R9.NQ();f=function(e){return function(t){throw{name:e,message:t};}}; H=R.yc();g.Ef(G,4,5);if(!N){G.ZM(7);break}return Z2f(G,qN(e28(C.R9,H,C.iv),f("DecryptError")).wait(),8);case 8:k=G.J;case 7:if(!C.R9.enableCompression){G.ZM(9);break}return Z2f(G,qN(z2g((S=k)!=null?S:H,C.R9.N().eP),f("DecompressError")).wait(),10);case 10:v=G.J;case 9:W=Ss((I=(L=v)!=null?L:k)!=null?I:H,Ejg);case 5:g.aQ(G,0,2);if(a=(F=C.R9.N())==null?void 0:F.QC)((n=k)==null?void 0:n.buffer)===a.exports.memory.buffer&&a.free(k.byteOffset),((B=v)==null?void 0:B.buffer)===a.exports.memory.buffer&&a.free(v.byteOffset); g.QE(G,6);break;case 4:throw A=Z=g.K2(G),new PD("onesie.response.parse",{name:(w=A.name)!=null?w:"unknown",message:(RQ=A.message)!=null?RQ:"unknown",wasm:((V=C.R9.N())==null?0:V.QC)?((p=C.R9.N())==null?0:(b=p.QC)==null?0:b.Ub)?"1js":"1":"0",enc:C.V,gz:C.R9.enableCompression,webcrypto:!!g1()});case 6:return wiE(W),$E=g.ow(W.body),G.return($E);case 2:g.aQ(G),g.QE(G,0)}})}()})}; h2B=function(J){var R=J.queue;R.K.length&&R.K[0].isEncrypted&&!R.J&&(R.K.length=0);R=g.K(Object.keys(J.K));for(var N=R.next();!N.done;N=R.next()){N=N.value;var C=J.K[N];if(!C.QU){var X=J.queue;X.K.push({videoId:C.videoId,formatId:N,isEncrypted:!1});X.J||D8(X)}}}; G7n=function(J,R){var N=R.getLength(),C=!1;switch(J.Z){case 0:J.R9.T("html5_future_onesie_ump_handler_on_player_response")?qN(dS(J.S(R,J.V),function(X){y7k(J.R9,X)}),function(X){J.R9.Rs(X)}):J.NQ(R,J.V).then(function(X){y7k(J.R9,X)},function(X){J.R9.Rs(X)}); break;case 2:J.gk("ormk");R=R.yc();J.queue.decrypt(R);break;default:C=!0}J.R9.rU&&J.R9.u3("ombup","id.11;pt."+J.Z+";len."+N+(C?";ignored.1":""));J.Z=null}; wiE=function(J){if(J.nI!==1)throw new PD("onesie.response.badproxystatus",{st:J.nI,webcrypto:!!g1(),textencoder:!!g.mB.TextEncoder});if(J.rE!==200)throw new PD("onesie.response.badstatus",{st:J.rE});}; bJE=function(J){return new Promise(function(R){setTimeout(R,J)})}; trQ=function(J,R){var N=J.N();N=J.j2&&N.T("html5_onesie_preload_use_content_owner");var C=J.Q5,X=$S(R.KC.experiments,"debug_bandaid_hostname");if(X)R=as(R,X);else if((N===void 0?0:N)&&(C==null?0:C.url)&&!R.J){var u=VM(new g.jB(C.url));R=as(R,u)}else R=(u=R.K.get(0))==null?void 0:u.location.clone();if(R&&J.videoId){u=Ei(J.videoId);J=[];if(u)for(u=g.K(u),N=u.next();!N.done;N=u.next())J.push(N.value.toString(16).padStart(2,"0"));R.set("id",J.join(""));return R}}; xUE=function(J,R,N){N=N===void 0?0:N;var C,X;return g.Y(function(u){if(u.K==1)return C=[],C.push(R.load()),N>0&&C.push(bJE(N)),g.q(u,Promise.race(C),2);X=trQ(J,R);return u.return(X)})}; JDn=function(J,R,N,C){C=C===void 0?!1:C;J.set("cpn",R.clientPlaybackNonce);J.set("opr","1");var X=R.N();J.set("por","1");g1()||J.set("onem","1");R.startSeconds>0&&J.set("osts",""+R.startSeconds);C||(X.T("html5_onesie_disable_partial_segments")&&J.set("oses","1"),R=X.T("html5_gapless_onesie_no_media_bytes")&&Fr(R)&&R.j2,N&&!R?(R=N.audio,J.set("pvi",N.video.join(",")),X.T("html5_onesie_disable_audio_bytes")||J.set("pai",R.join(",")),Tn||J.set("osh","1")):(J.set("oad","0"),J.set("ovd","0"),J.set("oaad", "0"),J.set("oavd","0")))}; oO8=function(J,R,N,C,X){X=X===void 0?!1:X;var u=R.qV,f="https://youtubei.googleapis.com/youtubei/"+u.innertubeApiVersion+"/player";R.experiments.b3("web_onesie_omit_api_key")||u.fS&&C||(f=f+"?key="+u.innertubeApiKey);u=[{name:"Content-Type",value:"application/json"}];C&&u.push({name:"Authorization",value:"Bearer "+C});u.push({name:"User-Agent",value:g.sa()});g.iL("EOM_VISITOR_DATA")?u.push({name:"X-Goog-EOM-Visitor-Id",value:g.iL("EOM_VISITOR_DATA")}):(N=N.visitorData||g.iL("VISITOR_DATA"))&&u.push({name:"X-Goog-Visitor-Id", value:N});(N=g.iL("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&u.push({name:"X-YouTube-Lava-Device-Context",value:N});(R=$S(R.experiments,"debug_sherlog_username"))&&u.push({name:"X-Youtube-Sherlog-Username",value:R});J=CX(JSON.stringify(J));return{url:f,It:u,postBody:J,iL3:X,gI:X}}; NHQ=function(J,R,N,C,X,u){var f=g.QA(J,FEg,J.gI?void 0:N.QC),H={encryptedClientKey:R.K.encryptedClientKey,FC:!0,v5:!0,fH:RaB(N,!!J.gI),YE:N.experiments.b3("html5_use_jsonformatter_to_parse_player_response")};if(J.gI)H.RVa=f;else{J=R.encrypt(f);var k;J=((k=N.QC)==null?void 0:k.QQ(J))||J;k=H.FL=J;(0,g.g9)();k=Lc2(new SKQ(R.K.V),k,R.iv);H.pS=k;H.iv=R.iv}R=C.getVideoData();N=JzQ({OB:N,RB:C,x_:R.startSeconds*1E3});X={Ac:H,T5:N,onesieUstreamerConfig:X,ra:u,IC:oz(R)};R.reloadPlaybackParams&&(X.reloadPlaybackParams= R.reloadPlaybackParams);return X}; CFg=function(J,R,N){var C,X,u;return g.Y(function(f){if(f.K==1)return C=g.QA(R,FEg),g.q(f,Km7(N,C),2);if(f.K!=3)return X=f.J,g.q(f,at2(N,X),3);u=f.J;return f.return({FL:X,encryptedClientKey:N.K.encryptedClientKey,iv:N.iv,pS:u,FC:!0,v5:!0,fH:RaB(J,!!R.gI),YE:J.experiments.b3("html5_use_jsonformatter_to_parse_player_response")})})}; XkE=function(J,R,N,C,X,u){var f,H,k,v;return g.Y(function(W){if(W.K==1)return g.q(W,CFg(N,J,R),2);f=W.J;H=C.getVideoData();k=JzQ({OB:N,RB:C,x_:H.startSeconds*1E3});v={Ac:f,T5:k,onesieUstreamerConfig:X,ra:u,IC:oz(H)};H.reloadPlaybackParams&&(v.reloadPlaybackParams=H.reloadPlaybackParams);return W.return(v)})}; RaB=function(J,R){J=qw(J.schedule,!0);R=R||!!g1()&&J>1572864;return"DecompressionStream"in window||!R}; Yv=function(J,R){g.l.call(this);var N=this;this.RB=J;this.playerRequest=R;this.KC=this.RB.N();this.videoData=this.RB.getVideoData();this.logger=new g.Pi("onesie");this.rU=this.KC.Si();this.LH=this.KC.iQ;this.W0=new MrP(this.LH.K,this.KC.eP);this.xhr=null;this.state=1;this.Kw=new lM;this.ST=!1;this.playerResponse="";this.KX=new go(this);this.X$=new c7Y(this);this.Md=this.KC.T("html5_onesie_check_timeout");this.FR=new g.$t(this.fq,500,this);this.wf=new g.$t(this.dg,1E4,this);this.Ey=new g.$t(function(){if(!N.isComplete()){var C= A4(N);N.Rs(new PD("net.timeout",C))}},g.di(this.KC.experiments,"html5_onesie_request_timeout_ms")); this.uA=new g.$t(this.bCp,2E3,this);this.Le="";this.YU=this.KK=!1;this.g_=this.RB.R0();this.C7="";this.lc=this.T("html5_onesie_wait_for_media_availability");this.enableCompression=this.cZ=this.Py=!1;this.qd=[];this.Xc=this.Is=-1;g.P(this.videoData,this);g.P(this,this.FR);g.P(this,this.wf);g.P(this,this.uA);J=vH();Tn&&J&&!this.KC.T("html5_disable_onesie_media_bytes")&&(this.UQ=new Map);this.GH=new Map;this.O3=new Map;this.bA=new Map;this.FS=new Map}; nS=function(J,R){var N;return(N=J.UQ)==null?void 0:N.get(R)}; uPY=function(J,R,N){var C;return g.Y(function(X){if(X.K==1)return J.gk("oprd_s"),ibn(J)?g.q(X,QK8(J.W0,R,N),3):(C=J.W0.decrypt(R,N),X.ZM(2));X.K!=2&&(C=X.J);J.gk("oprd_c");return X.return(C)})}; e28=function(J,R,N){J.gk("oprd_s");var C=J.W0;C.J||(C.J=new v8g(C.K.K,C.QC));R=E8E(C.J,R,N);J.gk("oprd_c");return R}; fm8=function(J){return J.T("html5_onesie_host_probing")||J.rU?Tn:!1}; y7k=function(J,R){J.gk("oprr");J.playerResponse=R;J.cZ||(J.lc=!1);rc(J)}; rc=function(J){if(!J.playerResponse)return!1;if(J.Py)return!0;var R=J.videoData.T("html5_onesie_audio_only_playback")&&EU(J.videoData);if(J.UQ&&J.lc){if(!J.UQ.has(J.Le))return!1;var N=J.UQ.get(J.Le),C;if(C=N){C=!1;for(var X=g.K(N.Li.keys()),u=X.next();!u.done;u=X.next())if(u=N.Li.get(u.value))for(var f=g.K(u.Aq),H=f.next();!H.done;H=f.next())H.value.Aw>0&&(u.B7?C=!0:R=!0);C=!(R&&C)}if(C)return!1}J.gk("ofr");J.Kw.resolve(J.playerResponse);if(!J.Md){var k;(k=J.Ey)==null||k.start();J.wf.start()}return J.Py= !0}; $o2=function(J){if(J.UQ&&!J.T("html5_onesie_media_capabilities")){J.gk("ogsf_s");var R=hVQ(J.RB.getVideoData(),function(C,X){J.u3(C,X)}),N=TH7(J.RB); R.video=Vhn(N,R.video);J.gk("ogsf_c");if(R.video.length)return R;J.u3("ombspf","l."+N.J+";u."+N.K+";o."+N.V+";r."+N.reason)}}; ibn=function(J,R){return J.T("html5_onesie_sync_request_encryption")||(R==null?0:R.gI)||g.uv(J.KC)&&J.T("html5_embed_onesie_use_sync_encryption")?!1:!!g1()}; A4=function(J){if(!J.JY)return{};var R=J.JY.Cw(),N;R.d=(N=J.JY.tN)==null?void 0:N.SV();R.shost=J.yB;R.ty="o";return R}; HbB=function(J,R){var N,C;(C=(J=(N=J.UQ)==null?void 0:N.get(R))==null)||(R=J.V?!1:J.V=!0,C=!R);return!C}; kcB=function(J,R,N,C,X,u,f,H,k,v,W){g.l.call(this);var S=this;this.RB=J;this.vC=R;this.policy=N;this.audioTrack=C;this.videoTrack=X;this.manifest=u;this.I9=f;this.G7=H;this.V=k;this.timing=v;this.X=W;this.K=[];this.S={};this.VO=this.PC=!1;this.eS=new Set;this.U=this.tN=this.W=this.jp=0;this.Z=null;this.QR={WSB:function(){return S.K}, QFB:function(){return S.S}, h$a:function(){S.K.length=0}, Di3:function(){return S.eS}, p_n:function(){return S.W}, G4a:function(L){S.W=L}, x8O:function(L){S.U=L}}; this.videoData=this.RB.getVideoData();this.policy.eP&&(this.ma=new uI(this.vC,this.policy,this.I9),g.P(this,this.ma))}; SdY=function(J,R){R=R===void 0?!1:R;if(vOE(J,R)){J.policy.nC&&J.vC.u3("sabrcrq",{create:1});var N=new SO(0,J.manifest.X,J);J.policy.NE>0&&J.U++;R=Wbg(J,N,R);J.K.push(R);var C;(C=J.ma)==null||Zu2(C,J.manifest.X)}}; FbE=function(J,R){var N=Lbf(J),C=N/1E3-J.vC.uS(),X=wH(J.audioTrack,J.vC.isSeeking(),C);C=wH(J.videoTrack,J.vC.isSeeking(),C);var u=[].concat(g.Q(X.Zf),g.Q(C.Zf)),f=[].concat(g.Q(X.Vd),g.Q(C.Vd)),H=J.vC.fE(),k,v,W=J.RB,S=J.manifest,L=J.J,I=J.eS,F=J.policy,a=J.vC.A4,n=VM8(J.vC)*1E3,B=(k=J.dn)==null?void 0:k.Bn;k=(v=J.dn)==null?void 0:v.tV;var Z;v=Number((Z=J.V.Z)==null?void 0:Z.info.itag)||0;var A;Z=Number((A=J.V.S)==null?void 0:A.info.itag)||0;R={RB:W,manifest:S,Zf:u,Vd:f,x_:N,nextRequestPolicy:L, eS:I,KY:F,A4:a,UK:n,Bn:B,tV:k,jp:J.jp,isPrefetch:R||J.vC.isSuspended,sN:v,zO:Z,Gw:H};N=J.vC.hC();A=Ei(N);N&&(R.qs=A);if(N=J.RB.Sx())R.dY=N*1E3;var V;N=J.V;A=N.nC;if((N.KY.J&&N.KY.BR||((V=N.KY)==null?0:V.K&&V.v7))&&!A)for(V=g.K(N.V),u=V.next();!u.done;u=V.next())if(u.value.Do){A=!0;break}V=iI(N.KY)&&!A?[]:hBB(N,N.V);R.HQ=V;V=J.V;iI(V.KY)&&!V.dn?V=[]:(N=R2f(V),N.length===0&&(N=V.U),V=hBB(V,N));R.zQ=V;bPB(J.videoData)&&(R.Ns=[null]);if(J.policy.U){X=ImP(J,X.Zf,C.Zf);var p;if(C=(p=J.Z)==null?void 0:p.aH(X))R.RW= C}J.policy.ma&&J.K.length>0&&J.K[0].W2()&&(R.p78=J.K[0].N9());return R}; Lbf=function(J){var R,N=J.policy.S&&((R=J.vC)==null?void 0:R.u6());R=J.vC.getCurrentTime()||0;R=EOB(J,R);var C=J.vC.uS()||0;R+=C;C=Aq(J.videoData)||g.qn(J.videoData);var X=0;N?(C&&(X=Number.MAX_SAFE_INTEGER),J.videoData.PC&&(X=Math.ceil(J.videoData.G7*1E3))):X=Math.ceil(R*1E3);return Math.min(Number.MAX_SAFE_INTEGER,X)}; EOB=function(J,R){if(J.vC.isSeeking())return R;var N=J.RB.oG();if(!N)return R;N=N.BV();if(N.length===0||Qp(N,R))return R;if(J.policy.W&&!FRP(J.videoTrack,R)&&!FRP(J.audioTrack,R))return J.vC.u3("sundrn",{b:0,lt:R}),R;for(var C=R,X=Infinity,u=0;uR)){var f=R-N.end(u);f=20)?(J.vC.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),R):C}; ImP=function(J,R,N){var C=J.vC.getCurrentTime()||0;R=MT8(J,R,C);J=MT8(J,N,C);return Math.min(R,J)}; MT8=function(J,R,N){J=J.vC.uS()||0;R=g.K(R);for(var C=R.next();!C.done;C=R.next()){var X=C.value;C=X.startTimeMs?X.startTimeMs/1E3-J:0;X=C+(X.durationMs?X.durationMs/1E3:0);if(C<=N&&N<=X)return X}return N}; vOE=function(J,R){if(J.policy.NE>0){var N=Math.floor((0,g.g9)()/1E4);if(N===J.tN){if(J.U>=J.policy.NE){if(J.U===J.policy.NE){var C={reason:"toomanyrequests"};C.limit=J.U;J.vC.handleError("player.exception",C);J.U+=1}return!1}}else J.tN=N,J.U=0}R=!R&&!A6(J.I9);if(J.vC.isSuspended&&(J.vC.Oz||R)||J.nC&&(0,g.g9)()0&&(!J.policy.ma||J.K.length!==1||!J.K[0].W2())||(C=J.manifest.X)==null||!mK(C,J.policy,J.S,J.vC.xN()))return!1;C=J.policy.MG&&J.policy.J&&J.vC.fL();if(J4(J.audioTrack)&&J4(J.videoTrack)&& !C)return!1;if(J.policy.J&&J.D&&!J.vC.fL())return J.NO("ssap",{pauseontlm:1}),!1;if(jO(J,J.audioTrack)&&jO(J,J.videoTrack))return J.policy.V&&J.vC.u3("sabrHeap",{a:""+hD(J.audioTrack),v:""+hD(J.videoTrack)}),!1;if(C=J.policy.U)C=!1,J.X.J===2?C=!0:J.X.J===3&&(R=Lbf(J)/1E3-J.vC.uS(),R=ImP(J,wH(J.audioTrack,J.vC.isSeeking(),R).Zf,wH(J.videoTrack,J.vC.isSeeking(),R).Zf),N=J.X,R>=N.V?(N.u3("sdai",{haltrq:R,est:N.V}),R=!0):R=!1,R&&(C=!0)),C&&J.policy.nC&&J.vC.u3("sabrcrq",{waitad:1});if(C)return!1;if(!J.J)return J.policy.nC&& J.vC.u3("sabrcrq",{nopolicy:1}),!0;if(J.RB.Sx())return J.policy.nC&&J.vC.u3("sabrcrq",{utc:1}),!0;if(J.V.X)return J.policy.nC&&J.vC.u3("sabrcrq",{audio:1}),!0;if(!J.J.targetAudioReadaheadMs||!J.J.targetVideoReadaheadMs)return J.policy.nC&&J.vC.u3("sabrcrq",{noreadahead:1}),!0;if(J.policy.S&&J.vC.u6())return J.policy.nC&&J.vC.u3("sabrcrq",{seekToHead:1}),!0;C=Math.min(Zt(J.vC,J.audioTrack)*1E3,J.J.targetAudioReadaheadMs);R=Math.min(Zt(J.vC,J.videoTrack)*1E3,J.J.targetVideoReadaheadMs);var X=Math.min(C, R);N=Gc(J.audioTrack,!0)*1E3;var u=Gc(J.videoTrack,!0)*1E3;var f=N0&&(C[0].K.info.B7()?Gc(J.audioTrack):Gc(J.videoTrack))>3)||R.isComplete())&&R.Ek(X,J.VL())){X=R.BY(X,J.VL());if(J.policy.J&&(u=C[0].K.info,(f=J.vC.fL())&&u)){var H=R.P5();f.api.T("html5_ssap_set_format_info_on_video_data")&& H===xO(f)&&(u.B7()?f.RB.getVideoData().Z=u:f.RB.getVideoData().J=u);if(f=U$(f.timeline,H))if(f=f[0].getVideoData())u.B7()?f.Z=u:f.J=u}X=g.K(X);for(u=X.next();!u.done;u=X.next()){u=u.value;J.policy.V&&R instanceof Yv&&J.vC.u3("omblss",{s:u.info.Ki()});f=u.info.K.info.B7();var k=u.info.K;if(f){H=void 0;var v=J.V,W=(H=R.eU(J.VL()))==null?void 0:H.token;v.X=!1;k!==v.S&&(v.S=k,v.Ld(k,v.audioTrack,W))}else H=void 0,c9g(J.V,k,(H=R.eU(J.VL()))==null?void 0:H.token);H=f?J.audioTrack:J.videoTrack;R instanceof Yv&&(H.D=!1,R instanceof Yv&&(f?nCf(J.timing):QdB(J.timing)));if(J.policy.Zl)try{eT(H,C,u)}catch(S){u=ey(S),J.vC.handleError(u.errorCode,u.details,u.severity),H.ke(),J.b$(!1,"pushSlice"),VB(J.vC)}else eT(H,C,u)}}}}}; DoE=function(J,R){J.policy.ma?J.K.splice(J.K.indexOf(R)).forEach(function(N){N.dispose()}):(J.K.pop(),R==null||R.dispose())}; BHB=function(J,R,N){for(var C=[],X=0;X0)for(var R=g.K(J.videoData.sabrContextUpdates.keys()),N=R.next();!N.done;N=R.next()){N=N.value;var C=void 0;((C=J.videoData.sabrContextUpdates.get(N))==null?0:C.sendByDefault)&&J.eS.add(N)}if(J.policy.ma&&J.K.length)for(R=g.K(J.K),N=R.next();!N.done;N=R.next())(N=N.value.N9())&&N.type&&N.sendByDefault&&J.eS.add(N.type)}; doE=function(J){J.policy.VR&&(J.dn=void 0,J.jp=0)}; qdQ=function(J,R){if(R.NV()||R.QO()){var N=J.vC,C=N.u3,X=R.state;J=J.VL();var u,f;if((R=(u=R.UQ)==null?void 0:u.get(J))==null)R=void 0;else{u=0;J=R.SL();for(var H=0;H=J.policy.iN,f=!1;if(u){var H=0;!isNaN(R)&&R>J.U&&(H=R-J.U,J.U=R);H/X=J.policy.PY&&!J.V;if(!u&&!N&&moQ(J,R))return NaN;N&&(J.V=!0);a:{C=f;N=(0,g.g9)()/1E3-(J.Vb.Gj()||0)-J.D.K-J.policy.H1;u=J.J.startTime;N=u+N;if(C){if(isNaN(R)){pS(J,NaN,"n",R);u=NaN;break a}C=R-J.policy.Gu;C=u.dN&&C<=u.y0){C=!0;break a}C=!1}C=!C}if(C)return J.u3("ostmf",{ct:J.getCurrentTime(),a:R.K.info.B7()}),!1;(J=J.dn)!=null&&(J.Li.get(N).Kf=!0);return!0}; zak=function(J){if(!J.manifest.MR)return!0;var R=J.RB.getVideoData();if(R.T("html5_skip_live_preroll_onesie")&&zl(J.RB)||R.T("html5_skip_live_preroll_onesie_post_live")&&zl(J.RB)&&(R.SD||R.isPremiere))return J.u3("ombpa",{}),!1;var N,C;if(J.policy.PR&&!!((N=J.nC)==null?0:(C=N.xs)==null?0:C.uMC)!==J.manifest.SD)return J.u3("ombplmm",{}),!1;N=R.TW||R.liveUtcStartSeconds||R.wN;if(J.manifest.SD&&N)return J.u3("ombplst",{}),!1;if(J.manifest.W)return J.u3("ombab",{}),!1;N=Date.now();return VO(J.manifest)&& !isNaN(J.ma)&&N-J.ma>J.policy.ZN*1E3?(J.u3("ombttl",{}),!1):J.manifest.Up&&J.manifest.Z||!J.policy.dB&&J.manifest.isPremiere||!(a5(R)===0||J.policy.K&&R.T("html5_enable_onesie_media_for_sabr_proxima_optin"))||R.T("html5_disable_onesie_media_for_mosaic")&&cOf(R)||R.T("html5_disable_onesie_media_for_ssdai")&&R.isDaiEnabled()&&R.enableServerStitchedDai?!1:!0}; ean=function(J,R){var N=R.K,C=J.manifest.MR;if(zak(J))if(J.dn&&J.dn.Li.has(VH(WS(N.info,C)))){if(C=VH(WS(N.info,C)),PFB(J,R)){var X=new bG(J.dn.c_(C)),u=function(f){try{if(f.NV())J.handleError(f.WV(),f.v_()),tD(R,f),x6(f.info)&&Tl(J.Z,R,N,!0),J.hY();else if(pEQ(J.Z,f)){var H;(H=J.V)==null||Vef(H,f.info,J.D);J.hY()}}catch(k){f=ey(k),J.handleError(f.errorCode,f.details,f.severity),J.ke()}}; N.V=!0;tx(X)&&(RBE(R,new Dt(J.policy,C,X,J.dn,u)),Hk(J.timing))}}else J.u3("ombfmt",{})}; eO=function(J,R){R=R||J.videoTrack&&J.videoTrack.J&&J.videoTrack.J.startTime||J.getCurrentTime();var N=$v,C=J.videoTrack,X=J.K;R=X.nextVideo&&X.nextVideo.index.qn(R)||0;X.tN!==R&&(X.PC={},X.tN=R,Qx(X,X.K));R=!X.K.isLocked()&&X.W>-1&&(0,g.g9)()-X.WR.K&&R.reason==="b";C||X||N?(J.RB.CV({reattachOnConstraint:C?"u":X?"drm":"perf",lo:R.J,up:R.K}),J.policy.Jn||(J.J.K.J=!1)):(J.policy.Jn&&(J.J.K.J=!1),VB(J))}}else if(!bWg(J.K,R)&&J.videoTrack){J.logger.debug(function(){return"Setting constraint: r="+R.reason+" u="+R.K}); N=J.K.K;xoB(J,xL2(J.K,R));eO(J);C=R.isLocked()&&R.reason==="m"&&J.K.dn;X=J.policy.EL&&R.reason==="l"&&os(J.videoTrack);N=N.K>R.K&&R.reason==="b";var u=J.K.HC&&!qk();C||X||N||u?J.RB.CV({reattachOnConstraint:C?"u":X?"drm":u?"codec":"perf"}):VB(J)}}; ov2=function(J,R,N){if((!J.Mp||rm(J.Mp)&&!J.policy.Ze)&&!J.ww.isSeeking()&&(J.policy.K||os(R)&&R.K.M7()&&J.K.nC)){var C=J.getCurrentTime()+VLg(J.W,R,N);J.logger.debug(function(){return"Clearing back to "+C.toFixed(3)}); TnP(R,C)}}; xoB=function(J,R){R&&(J.logger.debug(function(){return"Logging new format: "+EO(R.video.info)}),R8Q(J.RB,new Iz(R.video,R.reason))); if(J.K.pC){var N=NOE(J.K,"a");J.RB.Yk(new Iz(N.audio,N.reason))}}; VB=function(J){g.HK(J.R1)}; PhE=function(J){J.policy.ji&&J.policy.Jp&&Math.min(Gc(J.videoTrack),Gc(J.audioTrack))*1E3>J.policy.G_?g.HK(J.GW):J.hY()}; Ncg=function(J,R){var N=(0,g.g9)()-R,C=Gc(J.audioTrack,!0)*1E3,X=Gc(J.videoTrack,!0)*1E3;J.logger.debug(function(){return"Appends paused for "+N}); if(J.policy.V&&(J.u3("apdpe",{dur:N.toFixed(),abuf:C.toFixed(),vbuf:X.toFixed()}),XX(J.policy))){var u=Ee(J.W);J.u3("sdps",{ct:R,ah:C.toFixed(),vh:X.toFixed(),mr:grQ(J.W,J.kD,u),bw:u.toFixed(),js:J.isSeeking(),re:+J.kD,ps:(J.policy.h7||"").toString(),rn:(J.policy.MY||"").toString()})}}; CIg=function(J){if(J.policy.J&&NA(J.videoTrack)&&NA(J.audioTrack))return"ssap";if(LRE(J.videoTrack))return J.logger.debug("Pausing appends for server-selectable format"),"ssf";if(J.policy.R1&&MMY(J.videoTrack)&&MMY(J.audioTrack))return"updateEnd";if(J4(J.audioTrack)||J4(J.videoTrack)&&J.videoTrack.K.info.sB!=="f")return"";if(J.ww.isSeeking()){var R=J.W;var N=J.videoTrack;var C=J.audioTrack;if(R.policy.K){var X=R.policy.qV;XX(R.policy)&&(X=grQ(R,!1,Ee(R)));R=X;N=Gc(C,!0)>=R&&Gc(N,!0)>=R}else N.V.length|| C.V.length?(X=N.K.info.fC+C.K.info.fC,X=10*(1-Ee(R)/X),R=Math.max(X,R.policy.qV),N=Gc(C,!0)>=R&&Gc(N,!0)>=R):N=!0;if(!N)return"abr";N=J.videoTrack;if(N.V.length>0&&N.Z.J.length===1&&rqg(N.Z).info.S360);C=XX(J.policy)&&J.policy.Qw;if(!J.kD||!C&&N)return"";N=J.policy.OV;XX(J.policy)&&(N=grQ(J.W,J.kD,Ee(J.W)));N=kC8(J.videoTrack, J.getCurrentTime(),N)||kC8(J.audioTrack,J.getCurrentTime(),N);return XX(J.policy)?N?"mbnm":"":(J.videoTrack.V.length>0||J.audioTrack.V.length>0||YLE(J.Z,J.videoTrack,J.audioTrack)||YLE(J.Z,J.audioTrack,J.videoTrack))&&N?"nord":""}; XXB=function(J){if(J.S){var R=J.S.hY(J.audioTrack,DS(J.Mp.J.jD()));R&&J.RB.seekTo(R,{ex:!0,hL:"pollSubsegmentReadahead",o6:!0})}}; HSQ=function(J,R,N){if(J.policy.R1&&MMY(R))return!1;if(N.ML())return!0;if(!N.bH())return!1;var C=ro(R);if(!C||C.info.type===6)return!1;var X=J.policy.aC;if(X&&!C.info.Z){var u=C.info.dN-J.getCurrentTime();if(C.info.SX)return J.policy.K&&f8Q(J,R),!1;Tck(J,R);var H;J.policy.lr&&N===((H=J.Mp)==null?void 0:H.K)&&J.HC&&(N.Fh()===0?(J.HC=!1,J.policy.lr=!1):J.eQ=N.Fh());if(!$A2(J,N,C,R))return!1;J.policy.R1&&C.info.Nn()?(J.RB.N().Si()&&J.u3("eosl",{ls:C.info.Ki()}), C.isLocked=!0):(R.pj(C),RKf(J.K,C.info),J.logger.debug(function(){return"Appended "+C.info.Ki()+", buffered: "+Ke(N.jD())})); return!0}; f8Q=function(J,R){R===J.videoTrack?J.G7=J.G7||(0,g.g9)():J.VO=J.VO||(0,g.g9)()}; Tck=function(J,R){R===J.videoTrack?J.G7=0:J.VO=0}; $A2=function(J,R,N,C){var X=J.policy.oB?(0,g.g9)():0,u=N.U&&N.info.K.K||void 0,f=N.K;N.U&&(f=klE(J,N,f)||f);var H=f.yc();f=J.policy.oB?(0,g.g9)():0;R=vvk(J,R,H,N.info,u);(C=C.W)!=null&&(u=N.info,X=f-X,f=(0,g.g9)()-f,!C.J||kif(C.J,u)&&C.J.SQ===u.SQ||C.flush(),C.Z+=X,C.V+=f,X=1,!C.J&&u.J&&(X=2),Od(C,X,R),f=Math.ceil(u.J/1024),X===2&&C.K.add(f),C.K.add(Math.ceil((u.J+u.V)/1024)-f),C.J=u);J.tN=0;if(R===0)return J.T7&&(J.logger.debug("Retry succeed, back to normal append logic."),J.T7=!1,J.EB=!1),J.oB= 0,!0;if(R===2||R===5)return WLY(J,"checked",R,N.info),!1;if(R===1){if(!J.T7)return J.logger.debug("QuotaExceeded, retrying."),J.T7=!0,!1;if(!J.EB)return J.EB=!0,J.RB.seekTo(J.getCurrentTime(),{hL:"quotaExceeded",o6:!0}),!1;N.info.Ky()?(X=J.policy,X.T7=Math.floor(X.T7*.8),X.tN=Math.floor(X.tN*.8)):(X=J.policy,X.EB=Math.floor(X.EB*.8),X.tN=Math.floor(X.tN*.8));J.policy.K?Ed(J.J.K,N.info.K,!1):Dm(J.K,N.info.K)}J.RB.CV({reattachOnAppend:R});return!1}; klE=function(J,R,N){var C;if(C=J.policy.lm&&J.Mp&&!J.Mp.X&&!J.RB.ID())R=R.info.K.info,C=R.nL()&&uM(R)&&R.video&&R.video.width<3840&&R.video.width>R.video.height;if(C&&(J.Mp.X=!0,yC('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return N=qU8(N),J.policy.V&&J.u3("sp4k",{s:!!N}),N}; WLY=function(J,R,N,C){var X="fmt.unplayable",u=1;N===5||N===3?(X="fmt.unparseable",J.policy.K?!C.K.info.video||Mo(J.J.K).size>0||Ed(J.J.K,C.K,!1):!C.K.info.video||Mo(J.K.U).size>0||Dm(J.K,C.K)):N===2&&(J.oB<15?(J.oB++,X="html5.invalidstate",u=0):X="fmt.unplayable");C=yH(C);var f;C.mrs=(f=J.Mp)==null?void 0:UO(f);C.origin=R;C.reason=N;J.handleError(X,C,u)}; t9B=function(J,R,N,C,X){var u=J.manifest;var f=J.policy.K,H=!1,k=-1,v;for(v in u.K){var W=I6(u.K[v].info.mimeType)||u.K[v].info.Ky();if(C===W)if(W=u.K[v].index,W.s2(R.SQ)){H=W;var S=R,L=H.Lh(S.SQ);L&&L.startTime!==S.startTime?(H.segments=[],H.q$(S),H=!0):H=!1;H?k=R.SQ:!R.pending&&f&&(S=W.getDuration(R.SQ),S!==R.duration&&(u.publish("clienttemp","mfldurUpdate",{itag:u.K[v].info.itag,seg:R.SQ,od:S,nd:R.duration},!1),W.q$(R),H=!0))}else W.q$(R),H=!0}k>=0&&(f={},u.publish("clienttemp","resetMflIndex", (f[C?"v":"a"]=k,f),!1));u=H;oSB(J.ww,R,C,u);J.V.HD(R,N,C,X);R.SQ===J.manifest.Up&&u&&AI(J.manifest)&&R.startTime>AI(J.manifest)&&(J.manifest.G7=R.startTime+(isNaN(J.timestampOffset)?0:J.timestampOffset),J.ww.isSeeking()&&J.ww.K 5)return J.tN=0,J.RB.CV({initSegStuck:1,as:C.info.Ki()}),!0}else J.tN=0,J.TW=C;J.policy.pG&&(N.abort(),(f=R.W)!=null&&(Od(f,4),f.flush()));X=vvk(J,N,u,k,X);var v;(v=R.W)==null||kHY(v,X,k);if(X!==0)return S$B(J,X,C),!0;C.info.Ky()?BQf(J.timing):OW2(J.timing);J.logger.debug(function(){return"Appended init for "+C.info.K.info.id}); return N.XB()}; iSk=function(J,R,N){if(R.U4()==null){J=zc(J);if(!(R=!J||J.K!==N.info.K)){a:if(J=J.D,N=N.info.D,J.length!==N.length)N=!1;else{for(R=0;R1)return 6;k.PC=new g.$t(function(){var W=ro(k);J.QO()||W==null||!W.isLocked?J.RB.N().Si()&&J.u3("eosl",{delayA:W==null?void 0:W.info.Ki()}):LLE(k)?(J.RB.N().Si()&&J.u3("eosl",{dunlock:W==null?void 0:W.info.Ki()}),I8E(J, k===J.audioTrack)):(J.u3("nue",{ls:W.info.Ki()}),W.info.X+=1,J.Mp&&J.SA())},1E4,J); J.RB.N().Si()&&J.u3("eosl",{delayS:C.Ki()});k.PC.start()}if(J.policy.nw&&(C==null?0:C.Nn())){var v;if((v=k.tN)==null?0:v.isActive())g.kt(k.tN),J.u3("sbac",{as:C.Ki()});k.tN=new g.$t(function(){J.u3("sbum5s",{as:C.Ki()})},5E3,J); k.tN.start()}J.policy.PK&&(C==null?void 0:C.K)instanceof o9&&C.Nn()&&J.u3("poseos",{itag:C.K.info.itag,seg:C.SQ,lseg:C.K.index.yR(),es:C.K.index.V});R.appendBuffer(N,C,X)}catch(W){if(W instanceof DOMException){if(W.code===11)return 2;if(W.code===12)return 5;if(W.code===22||W.message.indexOf("Not enough storage")===0)return R=Object.assign({name:"QuotaExceededError",buffered:Ke(R.jD()).replace(/,/g,"_"),vheap:hD(J.videoTrack),aheap:hD(J.audioTrack),message:g.LE(W.message,3),track:J.Mp?R===J.Mp.J?"v": "a":"u"},UoP()),J.handleError("player.exception",R),1;g.yD(W)}return 4}return J.Mp.vV()?3:0}; Y8=function(J,R,N){J.RB.seekTo(R,N)}; Vx=function(J,R){J.RB.ea(R)}; Zt=function(J,R){if(J.T7&&!J.kD)return 3;if(J.isSuspended)return 1;var N;if((N=J.Mp)==null?0:N.Mp&&N.Mp.streaming===!1)return 4;N=(R.K.info.audio?J.policy.EB:J.policy.T7)/(R.fC*J.policy.tD);if(J.policy.jw>0&&J.Mp&&rm(J.Mp)&&(R=R.K.info.video?J.Mp.J:J.Mp.K)&&!R.XB()){R=R.jD();var C=a6(R,J.getCurrentTime());C>=0&&(R=J.getCurrentTime()-R.start(C),N+=Math.max(0,Math.min(R-J.policy.jw,J.policy.s1)))}J.policy.tN>0&&(N=Math.min(N,J.policy.tN));return N}; EvQ=function(J){J.pC&&!J.isSuspended&&A6(J.schedule)&&(FLn(J,J.pC),J.pC="")}; FLn=function(J,R){IK(R,"cms",function(N){J.policy.V&&J.u3("pathprobe",N)},function(N){J.RB.handleError(N)})}; MOP=function(J,R){if(J.Mp&&J.Mp.Z&&!J.Mp.vV()&&(R.Eu=Gc(J.videoTrack),R.J=Gc(J.audioTrack),J.policy.V)){var N=hD(J.videoTrack),C=hD(J.audioTrack),X=Ke(J.Mp.J.jD(),"_",5),u=Ke(J.Mp.K.jD(),"_",5);Object.assign(R.K,{lvq:N,laq:C,lvb:X,lab:u})}R.bandwidthEstimate=F_(J.W);var f;(f=J.audioTrack.W)==null||f.flush();var H;(H=J.videoTrack.W)==null||H.flush();J.logger.debug(function(){return lJ(R.K)})}; KLg=function(J,R){J.D=R;J.V&&(J.V.S=R);J.D.YV(J.videoTrack.K.info.nL());J.Z.J=J.D;J.policy.U&&(J.X.Z=J.D)}; a8E=function(J,R){if(J.Mp&&J.Mp.J){if(J.policy.v0){var N=Q1f(J.audioTrack,R);if(N&&N.B7()){var C=J.RB;C.dH&&(C.dH.K=N,C.xA(C.dH.videoId).Fy(C.dH))}}J.policy.qH&&(N=Q1f(J.videoTrack,R))&&N.Ky()&&(C=J.RB,C.Lr&&(C.Lr.K=N,C.xA(C.Lr.videoId).V9(C.Lr)));R-=isNaN(J.timestampOffset)?0:J.timestampOffset;J.getCurrentTime()!==R&&J.resume();J.ww.isSeeking()&&J.Mp&&!J.Mp.vV()&&(N=J.getCurrentTime()<=R&&R=R&&pkB(J,C.startTime,!1)}); return N&&N.startTimeJ.getCurrentTime())return N.start/1E3;return Infinity}; Bc7=function(J){var R=zc(J.videoTrack),N=zc(J.audioTrack);return R&&!ad7(J.videoTrack)?R.startTime:N&&!ad7(J.audioTrack)?N.startTime:NaN}; amY=function(J){if(J.RB.getVideoData().isLivePlayback)return!1;var R=J.RB.oG();if(!R)return!1;R=R.getDuration();return Kbf(J,R)}; Kbf=function(J,R){if(!J.Mp||!J.Mp.K||!J.Mp.J)return!1;var N=J.getCurrentTime(),C=J.Mp.K.jD();J=J.Mp.J.jD();C=C?ne(C,N):N;N=J?ne(J,N):N;N=Math.min(C,N);return isNaN(N)?!1:N>=R-.01}; S$B=function(J,R,N){J.policy.dM&&Fr(J.RB.getVideoData())?(J.RB.Rv()||WLY(J,"sepInit",R,N.info),OSf(J.RB,"sie")):WLY(J,"sepInit",R,N.info)}; zB2=function(J){return J.RB.xN()0){var X=C.K.shift();dAB(C,X.info)}C.K.length>0&&(X=C.K[0].time-(0,g.g9)(),C.J.start(Math.max(0,X)))}},0); g.P(this,this.J);R.subscribe("widevine_set_need_key_info",this.U,this)}; dAB=function(J,R){a:{var N=R.cryptoPeriodIndex;if(isNaN(N)&&J.V.size>0)N=!0;else{for(var C=g.K(J.V.values()),X=C.next();!X.done;X=C.next())if(X.value.cryptoPeriodIndex===N){N=!0;break a}N=!1}}J.publish("log_qoe",{wvagt:"reqnews",canskip:N});N||J.publish("rotated_need_key_info_ready",R)}; q$E=function(J){var R=J.url;var N=J.interval;J=J.retries;this.url=R;this.interval=N;this.retries=J}; A48=function(J,R){this.statusCode=J;this.message=R;this.J=this.heartbeatParams=this.errorMessage=null;this.K={};this.nextFairplayKeyId=null}; Y$Q=function(J){var R=b3(J.subarray(0,16384)),N=R.indexOf("\r\n\r\n");if(N===-1)return null;var C=R.indexOf("\r\n"),X=R.slice(0,C).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(X==null)return null;X=X[1];isFinite(X)&&(X=String(X));X=typeof X==="string"?/^\s*-?0x/i.test(X)?parseInt(X,16):parseInt(X,10):NaN;R=NB(R.slice(C+2));if(R==null)return null;J=new A48(X,J.subarray(N+4));J.statusCode!==0&&(J.errorMessage=g.ApE(J.statusCode));if(N=R["Heartbeat-Url"])J.heartbeatParams=new q$E({url:N,interval:Number(R["Heartbeat-Interval-Secs"])|| 60,retries:Number(R["Heartbeat-Num-Retries"])||4});if(N=R["Authorized-Format-Types"])J.J=N.split(",");if(N=R["Key-Ids"]){if(N)for(C=N.split(";"),N={},C=g.K(C),X=C.next();!X.done;X=C.next())X=X.value.split(","),X.length===2&&(N[X[1]]=X[0]);else N={};J.K=N}J.nextFairplayKeyId=R["Next-Key-Id"];return J}; r4E=function(J,R,N){N=N===void 0?"":N;g.l.call(this);this.message=J;this.requestNumber=R;this.pY=N;this.onError=this.onSuccess=null;this.K=new g.AT(5E3,2E4,.2)}; jsg=function(J,R,N){J.onSuccess=R;J.onError=N}; VOY=function(J,R,N){var C={format:"RAW",method:"POST",postBody:J.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(X){if(!J.QO())if(X.status!==0&&X.response)if(vU("drm_net_r",void 0,J.pY),X=new Uint8Array(X.response),X=Y$Q(X))J.onSuccess(X,J.requestNumber);else J.onError(J,"drm.net","t.p");else mAB(J,X)}, onError:function(X){mAB(J,X)}}; N&&(R=uKk(R,"access_token",N));g.V5(R,C)}; mAB=function(J,R){if(!J.QO())J.onError(J,R.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(R.status),R.status)}; UAB=function(J,R,N,C){var X={timeout:3E4,onSuccess:function(u){if(!J.QO()){vU("drm_net_r",void 0,J.pY);var f=u.status==="LICENSE_STATUS_OK"?0:9999,H=null;if(u.license)try{H=IG(u.license)}catch(F){g.yD(F)}if(f!==0||H){H=new A48(f,H);f!==0&&u.reason&&(H.errorMessage=u.reason);if(u.authorizedFormats){f={};for(var k=[],v={},W=g.K(u.authorizedFormats),S=W.next();!S.done;S=W.next())if(S=S.value,S.trackType&&S.keyId){var L=gvf[S.trackType];if(L){L==="HD"&&u.isHd720&&(L="HD720");S.isHdr&&(L+="HDR");f[L]|| (k.push(L),f[L]=!0);var I=null;try{I=IG(S.keyId)}catch(F){g.yD(F)}I&&(v[g.SZ(I,4)]=L)}}H.J=k;H.K=v}u.nextFairplayKeyId&&(H.nextFairplayKeyId=u.nextFairplayKeyId);u.sabrLicenseConstraint&&(H.sabrLicenseConstraint=IG(u.sabrLicenseConstraint));u=H}else u=null;if(u)J.onSuccess(u,J.requestNumber);else J.onError(J,"drm.net","t.p;p.i")}}, onError:function(u){if(!J.QO())if(u&&u.error)u=u.error,J.onError(J,"drm.net.badstatus","t.r;p.i;c."+u.code+";s."+u.status,u.code);else J.onError(J,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){J.onError(J,"drm.net","rt.req."+J.requestNumber)}}; C&&(X.iJ="Bearer "+C);g.II(N,"player/get_drm_license",R,X)}; pXY=function(J,R,N,C){g.al.call(this);this.videoData=J;this.KC=R;this.W=N;this.sessionId=C;this.U={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.D=this.dn=!1;this.V=null;this.tN=[];this.Z=[];this.X=!1;this.K={};this.ma=NaN;this.status="";this.S=NaN;this.J=J.U;this.cryptoPeriodIndex=N.cryptoPeriodIndex;J={};Object.assign(J,this.KC.K);J.cpn=this.videoData.clientPlaybackNonce;this.videoData.dn&&(J.vvt=this.videoData.dn,this.videoData.mdxEnvironment&&(J.mdx_environment=this.videoData.mdxEnvironment)); this.KC.ma&&(J.authuser=this.KC.ma);this.KC.pageId&&(J.pageid=this.KC.pageId);isNaN(this.cryptoPeriodIndex)||(J.cpi=this.cryptoPeriodIndex.toString());var X=(X=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.sa()))?X[1]:"";X==="ATV"&&(J.cdt=X);this.U=J;this.U.session_id=C;this.nC=!0;this.J.flavor==="widevine"&&(this.U.hdr="1");this.J.flavor==="playready"&&(R=Number($S(R.experiments,"playready_first_play_expiration")),!isNaN(R)&&R>=0&&(this.U.mfpe=""+R),this.nC=!1);R="";g.bB(this.J)?G2(this.J)?(C=N.J)&&(R="https://www.youtube.com/api/drm/fps?ek="+ kJP(C)):(R=N.initData.subarray(4),R=new Uint16Array(R.buffer,R.byteOffset,R.byteLength/2),R=String.fromCharCode.apply(null,R).replace("skd://","https://")):R=this.J.J;this.baseUrl=R;this.fairplayKeyId=x7(this.baseUrl,"ek")||"";if(R=x7(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(R);this.VO=this.videoData.T("html5_use_drm_retry");this.tN=N.nL?[g.SZ(N.initData,4)]:N.V;xv(this,{sessioninit:N.cryptoPeriodIndex});this.status="in"}; e8f=function(J,R){xv(J,{createkeysession:1});J.status="gr";vU("drm_gk_s",void 0,J.videoData.l3);J.url=l82(J);try{J.V=R.createSession(J.W,function(N){xv(J,{m:N})})}catch(N){R="t.g"; N instanceof DOMException&&(R+=";c."+N.code);J.publish("licenseerror","drm.unavailable",1,R,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}J.V&&(PIQ(J.V,function(N,C){z8E(J,N,C)},function(N,C,X){if(!J.QO()){C=void 0; var u=1;g.bB(J.J)&&g.eh(J.KC)&&J.KC.T("html5_enable_safari_fairplay")&&X===1212433232&&(C="ERROR_HDCP",u=J.KC.T("html5_safari_fairplay_ignore_hdcp")?0:u);J.error("drm.keyerror",u,N,C)}},function(){J.QO()||(xv(J,{onkyadd:1}),J.D||(J.publish("sessionready"),J.D=!0))},function(N){J.r5(N)}),g.P(J,J.V))}; l82=function(J){var R=J.baseUrl;anP(R)||J.error("drm.net",2,"t.x");if(!x7(R,"fexp")){var N=["23898307","23914062","23916106","23883098"].filter(function(X){return J.KC.experiments.experiments[X]}); N.length>0&&(J.U.fexp=N.join())}N=g.K(Object.keys(J.U));for(var C=N.next();!C.done;C=N.next())C=C.value,R=uKk(R,C,J.U[C]);return R}; z8E=function(J,R,N){if(!J.QO())if(R){xv(J,{onkmtyp:N});J.status="km";switch(N){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":wXg(J,R);return;default:J.publish("ctmp","message_type",{t:N,l:R.byteLength})}J.dn||(vU("drm_gk_f",void 0,J.videoData.l3),J.dn=!0,J.publish("newsession",J));if(cf(J.J)&&(R=c4n(R),!R))return;g.bB(J.J)&&!J.videoData.useInnertubeDrmService()&&(R=oA2(g.SZ(R)));R=new r4E(R,++J.requestNumber,J.videoData.l3);jsg(R,function(C){h8g(J, C)},function(C,X,u){if(!J.QO()){var f=0,H; (H=C.K.J>=3)||(H=J.VO&&(0,g.g9)()-J.ma>36E4);H&&(f=1,X="drm.net.retryexhausted");xv(J,{onlcsrqerr:X,info:u});J.error(X,f,u);J.shouldRetry(zi(f),C)&&y4E(J,C)}}); g.P(J,R);Gl2(J,R)}else J.error("drm.unavailable",1,"km.empty")}; wXg=function(J,R){xv(J,{sdpvrq:1});J.S=Date.now();if(J.J.flavor!=="widevine")J.error("drm.provision",1,"e.flavor;f."+J.J.flavor+";l."+R.byteLength);else{var N={cpn:J.videoData.clientPlaybackNonce};Object.assign(N,J.KC.K);N=g.bD("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",N);R={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:b3(R)}),responseType:"arraybuffer"}; g.lL(N,R,3,500).then(jq(function(C){C=C.xhr;if(!J.QO()){C=new Uint8Array(C.response);var X=b3(C);try{var u=JSON.parse(X)}catch(f){}u&&u.signedResponse?(J.publish("ctmp","drminfo",{provisioning:1}),u=(Date.now()-J.S)/1E3,J.S=NaN,J.publish("ctmp","provs",{et:u.toFixed(3)}),J.V&&J.V.update(C)):(u=u&&u.error&&u.error.message,C="e.parse",u&&(C+=";m."+u),J.error("drm.provision",1,C))}}),jq(function(C){J.QO()||J.error("drm.provision",1,"e."+C.errorCode+";c."+(C.xhr&&C.xhr.status))}))}}; Js=function(J){var R;if(R=J.nC&&J.V!=null)J=J.V,R=!(!J.K||!J.K.keyStatuses);return R}; Gl2=function(J,R){J.status="km";vU("drm_net_s",void 0,J.videoData.l3);if(J.videoData.useInnertubeDrmService()){var N=new g.L5(J.KC.qV),C={context:g.Qn(N.config_||g.aN())};C.drmSystem=bSB[J.J.flavor];C.videoId=J.videoData.videoId;C.cpn=J.videoData.clientPlaybackNonce;C.sessionId=J.sessionId;C.licenseRequest=g.SZ(R.message);C.drmParams=J.videoData.drmParams;isNaN(J.cryptoPeriodIndex)||(C.isKeyRotated=!0,C.cryptoPeriodIndex=J.cryptoPeriodIndex);var X,u,f=!!((X=J.videoData.J)==null?0:(u=X.video)==null? 0:u.isHdr());C.drmVideoFeature=f?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(C.context&&C.context.client){if(X=J.KC.K)C.context.client.deviceMake=X.cbrand,C.context.client.deviceModel=X.cmodel,C.context.client.browserName=X.cbr,C.context.client.browserVersion=X.cbrver,C.context.client.osName=X.cos,C.context.client.osVersion=X.cosver;C.context.user=C.context.user||{};C.context.request=C.context.request||{};J.videoData.dn&&(C.context.user.credentialTransferTokens=[{token:J.videoData.dn, scope:"VIDEO"}]);C.context.request.mdxEnvironment=J.videoData.mdxEnvironment||C.context.request.mdxEnvironment;J.videoData.EB&&(C.context.user.kidsParent={oauthToken:J.videoData.EB});g.bB(J.J)&&(C.fairplayKeyId=g.SZ(vdE(J.fairplayKeyId)));g.Wm(J.KC,g.PJ(J.videoData)).then(function(H){UAB(R,C,N,H);J.status="rs"})}else J.error("drm.net",2,"t.r;ic.0")}else g.Wm(J.KC,g.PJ(J.videoData)).then(function(H){VOY(R,J.url,H); J.status="rs"})}; h8g=function(J,R){if(!J.QO())if(xv(J,{onlcsrsp:1}),J.status="rr",R.statusCode!==0)J.error("drm.auth",1,"t.f;c."+R.statusCode,R.errorMessage||void 0);else{vU("drm_kr_s",void 0,J.videoData.l3);if(R.heartbeatParams&&R.heartbeatParams.url&&J.videoData.T("outertube_streaming_data_always_use_staging_license_service")){var N=J.J.J.match(/(.*)youtube.com/g);N&&(R.heartbeatParams.url=N[0]+R.heartbeatParams.url)}R.heartbeatParams&&J.publish("newlicense",R.heartbeatParams);R.J&&(J.Z=R.J,J.videoData.useInnertubeDrmService()&& !J.videoData.pZ&&J.publish("newlicense",new q$E({})),J.videoData.pZ=!0,J.X=gh(J.Z,function(C){return C.includes("HDR")})); R.K&&(J.KC.T("html5_enable_vp9_fairplay")&&G2(J.J)?(N=g.SZ(vdE(J.fairplayKeyId),4),J.K[N]={type:R.K[N],status:"unknown"}):J.K=sF(R.K,function(C){return{type:C,status:"unknown"}})); hI(J.J)&&!J.videoData.useInnertubeDrmService()?R.message=IG(b3(R.message)):yO(J.J)&&J.videoData.useInnertubeDrmService()&&(R.message=oA2(g.SZ(R.message)));J.V&&(xv(J,{updtks:1}),J.status="ku",J.V.update(R.message).then(function(){vU("drm_kr_f",void 0,J.videoData.l3);Js(J)||(xv(J,{ksApiUnsup:1}),J.publish("keystatuseschange",J))},function(C){C="msuf.req."+J.requestNumber+";msg."+g.LE(C.message,3); J.error("drm.keyerror",1,C)})); J.D&&(J.ma=(0,g.g9)());g.bB(J.J)&&J.publish("fairplay_next_need_key_info",J.baseUrl,R.nextFairplayKeyId);J.KC.T("html5_enable_vp9_fairplay")&&G2(J.J)&&J.publish("qualitychange",tOg(J.Z));R.sabrLicenseConstraint&&J.publish("sabrlicenseconstraint",R.sabrLicenseConstraint)}}; y4E=function(J,R){var N=R.K.getValue();N=new g.$t(function(){Gl2(J,R)},N); g.P(J,N);N.start();g.Yw(R.K);xv(J,{rtyrq:1})}; xAk=function(J,R){for(var N=[],C=g.K(Object.keys(J.K)),X=C.next();!X.done;X=C.next())X=X.value,N.push(X+"_"+J.K[X].type+"_"+J.K[X].status);return N.join(R)}; JsE=function(J){var R={};R[J.status]=Js(J)?xAk(J,"."):J.Z.join(".");return R}; o4B=function(J,R){switch(J){case "highres":case "hd2880":J="UHD2";break;case "hd2160":case "hd1440":J="UHD1";break;case "hd1080":case "hd720":J="HD";break;case "large":case "medium":case "small":case "light":case "tiny":J="SD";break;default:return""}R&&(J+="HDR");return J}; RHk=function(J,R){for(var N in J.K)if(J.K[N].status==="usable"&&J.K[N].type===R)return!0;return!1}; N6f=function(J,R){for(var N in J.K)if(J.K[N].type===R)return J.K[N].status}; xv=function(J,R){var N=N===void 0?!1:N;lJ(R);(N||J.KC.Si())&&J.publish("ctmp","drmlog",R)}; C98=function(J){var R=J[0];J[0]=J[3];J[3]=R;R=J[1];J[1]=J[2];J[2]=R;R=J[4];J[4]=J[5];J[5]=R;R=J[6];J[6]=J[7];J[7]=R}; tOg=function(J){return g.cl(J,"UHD2")||g.cl(J,"UHD2HDR")?"highres":g.cl(J,"UHD1")||g.cl(J,"UHD1HDR")?"hd2160":g.cl(J,"HD")||g.cl(J,"HDHDR")?"hd1080":g.cl(J,"HD720")||g.cl(J,"HD720HDR")?"hd720":"large"}; c4n=function(J){for(var R="",N=0;N'.charCodeAt(C);J=J.V.createSession("video/mp4",R,N);return new ou(null,null,null,null,J)}; $rg=function(J,R){var N=J.S[R.sessionId];!N&&J.Z&&(N=J.Z,J.Z=null,N.sessionId=R.sessionId,J.S[R.sessionId]=N);return N}; ueQ=function(J,R){var N=J.subarray(4);N=new Uint16Array(N.buffer,N.byteOffset,N.byteLength/2);N=String.fromCharCode.apply(null,N).match(/ek=([0-9a-f]+)/)[1];for(var C="",X=0;X=0&&J.push(C);J=parseFloat(J.join("."))}else J=NaN;J>19.2999?(J=N.q1,N=N.fk,N>=J&&(N=J*.75),R=(J-N)*.5,N=new bI(R,J,J-R-N,this)):N=null;break a;case "widevine":N=new t4(R,this,J);break a;default:N=null}if(this.U=N)g.P(this,this.U),this.U.subscribe("rotated_need_key_info_ready",this.vI,this),this.U.subscribe("log_qoe",this.SP,this);xr(this.KC.experiments);this.SP({cks:this.K.getInfo()})}; k3Y=function(J){var R=J.Z.b_();R?R.then(jq(function(){Wl2(J)}),jq(function(N){if(!J.QO()){g.yD(N); var C="t.a";N instanceof DOMException&&(C+=";n."+N.name+";m."+N.message);J.publish("licenseerror","drm.unavailable",1,C,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(J.SP({mdkrdy:1}),J.W=!0); J.nC&&(R=J.nC.b_())}; LlE=function(J,R,N){J.T7=!0;N=new YO(R,N);J.KC.T("html5_eme_loader_sync")&&(J.S.get(R)||J.S.set(R,N));SHP(J,N)}; SHP=function(J,R){if(!J.QO()){J.SP({onInitData:1});if(J.KC.T("html5_eme_loader_sync")&&J.videoData.V&&J.videoData.V.K){var N=J.D.get(R.initData);R=J.S.get(R.initData);if(!N||!R)return;R=N;N=R.initData;J.S.remove(N);J.D.remove(N)}J.SP({initd:R.initData.length,ct:R.contentType});if(J.K.flavor==="widevine")if(J.VO&&!J.videoData.isLivePlayback)Ck(J);else{if(!(J.KC.T("vp9_drm_live")&&J.videoData.isLivePlayback&&R.nL)){J.VO=!0;N=R.cryptoPeriodIndex;var C=R.K;Dng(R);R.nL||(C&&R.K!==C?J.publish("ctmp","cpsmm", {emsg:C,pssh:R.K}):N&&R.cryptoPeriodIndex!==N&&J.publish("ctmp","cpimm",{emsg:N,pssh:R.cryptoPeriodIndex}));J.publish("widevine_set_need_key_info",R)}}else J.vI(R)}}; Wl2=function(J){if(!J.QO())if(J.KC.T("html5_drm_set_server_cert")||G2(J.K)){var R=J.Z.setServerCertificate();R?R.then(jq(function(N){J.KC.Si()&&J.publish("ctmp","ssc",{success:N})}),jq(function(N){J.publish("ctmp","ssce",{n:N.name, m:N.message})})).then(jq(function(){Ig7(J)})):Ig7(J)}else Ig7(J)}; Ig7=function(J){J.QO()||(J.W=!0,J.SP({onmdkrdy:1}),Ck(J))}; Fl8=function(J){return J.K.flavor==="widevine"&&J.videoData.T("html5_drm_cpi_license_key")}; Ck=function(J){if((J.T7||J.KC.T("html5_widevine_use_fake_pssh"))&&J.W&&!J.tN){for(;J.V.length;){var R=J.V[0],N=Fl8(J)?s5n(R):g.SZ(R.initData);if(G2(J.K)&&!R.J)J.V.shift();else{if(J.J.get(N))if(J.K.flavor!=="fairplay"||G2(J.K)){J.V.shift();continue}else J.J.delete(N);Dng(R);break}}J.V.length&&J.createSession(J.V[0])}}; E4E=function(J){var R;if(R=g.Rc()){var N;R=!((N=J.Z.J)==null||!N.getMetrics)}R&&(R=J.Z.getMetrics())&&(R=g.ow(R),J.publish("ctmp","drm",{metrics:R}))}; M1E=function(){var J=fhg();return!(!J||J==="visible")}; agE=function(J){var R=Klk();R&&document.addEventListener(R,J,!1)}; QuE=function(J){var R=Klk();R&&document.removeEventListener(R,J,!1)}; Klk=function(){if(document.visibilityState)var J="visibilitychange";else{if(!document[De+"VisibilityState"])return"";J=De+"visibilitychange"}return J}; n42=function(J){g.l.call(this);var R=this;this.RB=J;this.OZ=0;this.S=this.J=this.U=!1;this.Z=0;this.OB=this.RB.N();this.videoData=this.RB.getVideoData();this.V=g.di(this.OB.experiments,"html5_delayed_retry_count");this.K=new g.$t(function(){h4(R.RB)},g.di(this.OB.experiments,"html5_delayed_retry_delay_ms")); g.P(this,this.K)}; ZkE=function(J,R,N){var C=J.videoData.J,X=J.videoData.Z;Fr(J.RB.getVideoData())&&J.OB.T("html5_gapless_fallback_on_qoe_restart")&&OSf(J.RB,"pe");if((R==="progressive.net.retryexhausted"||R==="fmt.unplayable"||R==="fmt.decode")&&!J.RB.Bd.U&&C&&C.itag==="22")return J.RB.Bd.U=!0,J.us("qoe.restart",{reason:"fmt.unplayable.22"}),Xe(J.RB),!0;var u=!1;if(J.videoData.isExternallyHostedPodcast){if(u=J.videoData.Rz)N.mimeType=u.type,J.u3("3pp",{url:u.url});N.ns="3pp";J.RB.As(R,1,"VIDEO_UNAVAILABLE",lJ((new PD(R, N,1)).details));return!0}var f=J.OZ+3E4<(0,g.g9)()||J.K.isActive();if(J.OB.T("html5_empty_src")&&J.videoData.isAd()&&R==="fmt.unplayable"&&/Empty src/.test(""+N.msg))return N.origin="emptysrc",J.us("auth",N),!0;f||i9(J.RB.nJ())||(N.nonfg="paused",f=!0,J.RB.pauseVideo());(R==="fmt.decode"||R==="fmt.unplayable")&&(X==null?0:$Y(X)||HS(X))&&(xfB(J.OB.U,X.sB),N.acfallexp=X.sB,u=f=!0);!f&&J.V>0&&(J.K.start(),f=!0,N.delayed="1",--J.V);X=J.RB.vC;!f&&((C==null?0:T0(C))||(C==null?0:uM(C)))&&(xfB(J.OB.U,C.sB), u=f=!0,N.cfallexp=C.sB);if(J.OB.T("html5_ssap_ignore_decode_error_for_next_video")&&g.vJ(J.videoData)&&R==="fmt.unplayable"&&N.cid&&N.ccid&&i9(J.RB.nJ())){if(N.cid!==N.ccid)return N.ignerr="1",J.us("ssap.transitionfailure",N),!0;J.us("ssap.transitionfailure",N);if(Drg(J.RB,R))return!0}if(!f)return suQ(J,N);if(J.OB.T("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.vJ(J.videoData)&&R==="fmt.unplayable"&&N.cid&&N.ccid&&N.cid!==N.ccid&&i9(J.RB.nJ())&&(J.us("ssap.transitionfailure",N),Drg(J.RB, R)))return!0;f=!1;J.U?J.OZ=(0,g.g9)():f=J.U=!0;var H=J.videoData;if(H.eQ){H=H.eQ.Mb();var k=Date.now()/1E3+1800;H=H6048E5&&YHP(J,"signature");return!1}; YHP=function(J,R){try{window.location.reload(),J.us("qoe.restart",{detail:"pr."+R})}catch(N){}}; juB=function(J,R){R=R===void 0?"fmt.noneavailable":R;var N=J.OB.U;N.S=!1;Sh(N);J.us("qoe.restart",{e:R,detail:"hdr"});h4(J.RB,!0)}; mrE=function(J,R,N,C,X,u){this.videoData=J;this.K=R;this.reason=N;this.J=C;this.token=X;this.videoId=u}; V1n=function(J,R,N){this.KC=J;this.Kr=R;this.RB=N;this.X=this.S=this.K=this.Z=this.D=this.J=0;this.U=!1;this.W=g.di(this.KC.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.V=new Map}; Urf=function(J,R,N){!J.KC.T("html5_tv_ignore_capable_constraint")&&g.eG(J.KC)&&(N=N.compose(g4E(J,R)));return N}; lgE=function(J,R){var N,C=pIE(J,(N=R.K)==null?void 0:N.videoInfos);N=J.RB.getPlaybackRate();return N>1&&C?(J=ceE(J.KC.U,R.K.videoInfos,N),new SB(0,J,!0,"o")):new SB(0,0,!1,"o")}; pIE=function(J,R){return R&&g.eG(J.KC)?R.some(function(N){return N.video.fps>32}):!1}; P9n=function(J,R){var N=J.RB.Hf();J.T("html5_use_video_quality_cap_for_ustreamer_constraint")&&N&&N.hm>0&&E6(R.videoData.YY)&&(J=N.hm,R.videoData.YY=new SB(0,J,!1,"u"));return R.videoData.YY}; g4E=function(J,R){if(g.eG(J.KC)&&YK(J.KC.U,r$.HEIGHT))var N=R.K.videoInfos[0].video.K;else{var C=!!R.K.K;var X;g.PH(J.KC)&&(X=window.screen&&window.screen.width?new g.a4(window.screen.width,window.screen.height):null);X||(X=J.KC.U2?J.KC.U2.clone():J.Kr.V7());(u4||Bk||C)&&X.scale(g.CW());C=X;EU(R.videoData)||zH(R.videoData);R=R.K.videoInfos;if(R.length){X=g.di(J.KC.experiments,"html5_override_oversend_fraction")||.85;var u=R[0].video;u.projectionType!=="MESH"&&u.projectionType!=="EQUIRECTANGULAR"&& u.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||ps||(X=.45);J=g.di(J.KC.experiments,"html5_viewport_undersend_maximum");for(u=0;u0&&(N=Math.min(N,C));if(C=g.di(J.KC.experiments,"html5_max_vertical_resolution")){J=4320;for(X=0;X C&&(J=Math.min(J,u.video.K));if(J<4320){for(X=C=0;X32){X=!0;break a}}X=!1}X&&(N=Math.min(N,C));(C=g.di(J.KC.experiments,"html5_live_quality_cap"))&&R.videoData.isLivePlayback&&(N=Math.min(N,C));N=eHB(J,R,N);J=g.di(J.KC.experiments,"html5_byterate_soft_cap");return new SB(0,N===4320?0:N,!1,"d",J)}; csY=function(J){var R,N,C,X;return g.Y(function(u){switch(u.K){case 1:return J.K.K&&typeof((R=navigator.mediaCapabilities)==null?void 0:R.decodingInfo)==="function"?g.q(u,Promise.resolve(),2):u.return(Promise.resolve());case 2:N=g.K(J.K.videoInfos),C=N.next();case 3:if(C.done){u.ZM(0);break}X=C.value;return g.q(u,gng(X),4);case 4:C=N.next(),u.ZM(3)}})}; ys8=function(J,R){if(!R.videoData.J||J.T("html5_disable_performance_downgrade"))return!1;Date.now()-J.D>6E4&&(J.J=0);J.J++;J.D=Date.now();if(J.J!==4)return!1;hHB(J,R.videoData.J);return!0}; bkk=function(J,R,N,C){if(!R||!N||!R.videoData.J)return!1;var X=g.di(J.KC.experiments,"html5_df_downgrade_thresh"),u=J.T("html5_log_media_perf_info");if(!((0,g.g9)()-J.Z<5E3?0:u||X>0))return!1;var f=((0,g.g9)()-J.Z)/1E3;J.Z=(0,g.g9)();N=N.getVideoPlaybackQuality();if(!N)return!1;var H=N.droppedVideoFrames-J.S,k=N.totalVideoFrames-J.X;J.S=N.droppedVideoFrames;J.X=N.totalVideoFrames;var v=N.displayCompositedVideoFrames===0?0:N.displayCompositedVideoFrames||-1;u&&J.KC.Si()&&J.RB.u3("ddf",{dr:N.droppedVideoFrames, de:N.totalVideoFrames,comp:v});if(C)return J.K=0,!1;if((k-H)/f>J.W||!X||g.eG(J.KC))return!1;J.K=(k>60?H/k:0)>X?J.K+1:0;if(J.K!==3)return!1;hHB(J,R.videoData.J);J.RB.u3("dfd",Object.assign({dr:N.droppedVideoFrames,de:N.totalVideoFrames},G3Q()));return!0}; hHB=function(J,R){var N=R.sB,C=R.video.fps,X=R.video.K-1,u=J.V;R=""+N+(C>49?"p60":C>32?"p48":"");N=lB(N,C,u);X>0&&(N=Math.min(N,X));if(!u9.has(R)&&RJ().includes(R)){var f=N;N=oJ();+N[R]>0&&(f=Math.min(+N[R],f));N[R]!==f&&(N[R]=f,g.e0("yt-player-performance-cap",N,2592E3))}else if(u9.has(R)||u==null){a:{f=f===void 0?!0:f;C=RJ().slice();if(f){if(C.includes(R))break a;C.push(R)}else{if(!C.includes(R))break a;C.splice(C.indexOf(R),1)}g.e0("yt-player-performance-cap-active-set",C,2592E3)}p0.set(R,N)}else u9.add(R), u==null||u.set(R,N);J.RB.MI()}; fk=function(J,R){if(!R.K.K)return J.U?new SB(0,360,!1,"b"):tz;for(var N=!1,C=!1,X=g.K(R.K.videoInfos),u=X.next();!u.done;u=X.next())T0(u.value)?N=!0:C=!0;N=N&&C;C=0;X=g.di(J.KC.experiments,"html5_performance_cap_floor");X=J.KC.J?240:X;R=g.K(R.K.videoInfos);for(u=R.next();!u.done;u=R.next()){var f=u.value;if(!N||!T0(f))if(u=lB(f.sB,f.video.fps,J.V),f=f.video.K,Math.max(u,X)>=f){C=f;break}}return new SB(0,C,!1,"b")}; t1n=function(J,R){var N=J.RB.nJ();return N.isInline()&&!R.Ea?new SB(0,480,!1,"v"):N.isBackground()&&UK()/1E3>60&&!g.eG(J.KC)?new SB(0,360,!1,"v"):tz}; xr2=function(J,R,N){if(J.KC.experiments.b3("html5_disable_client_autonav_cap_for_onesie")&&R.fetchType==="onesie"||g.eG(J.KC)&&(xX(-1)>=1080||R.osid))return tz;var C=g.di(J.KC.experiments,"html5_autonav_quality_cap"),X=g.di(J.KC.experiments,"html5_autonav_cap_idle_secs");return C&&R.isAutonav&&UK()/1E3>X?(N&&(C=eHB(J,N,C)),new SB(0,C,!1,"e")):tz}; eHB=function(J,R,N){if(J.T("html5_optimality_defaults_chooses_next_higher")&&N)for(J=R.K.videoInfos,R=1;R=0||(J.provider.RB.getVisibilityState()===3?J.U=!0:(J.K=g.m0(J.provider),J.delay.start()))}; RME=function(J){if(!(J.J<0)){var R=g.m0(J.provider),N=R-J.Z;J.Z=R;J.playerState.state===8?J.playTimeSecs+=N:J.playerState.isBuffering()&&!g.h(J.playerState,16)&&(J.rebufferTimeSecs+=N)}}; Ngf=function(J){var R;switch((R=J.KC.playerCanaryStage)==null?void 0:R.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"}}; Cb2=function(J){return window.PressureObserver&&new window.PressureObserver(J)}; X8E=function(J){J=J===void 0?Cb2:J;g.l.call(this);var R=this;this.J=J(function(C){R.K=C.at(-1)}); var N;this.V=(N=this.J)==null?void 0:N.observe("cpu",{sampleInterval:2E3})}; ipY=function(J){var R={},N=window.h5vcc;R.hwConcurrency=navigator.hardwareConcurrency;J.K&&(R.cpt=J.K.time,R.cps=J.K.state);if(N==null?0:N.cVal)R.cb2s=N.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),R.cb5s=N.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),R.cb30s=N.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return R}; u$Y=function(J){var R;g.Y(function(N){if(N.K==1)return g.q(N,J.V,2);(R=J.J)==null||R.disconnect();g.IQ(N)})}; Tgk=function(J,R){R?fM7.test(J):(J=g.L4(J),Object.keys(J).includes("cpn"))}; Hpk=function(J,R,N,C,X,u,f){var H={format:"RAW"},k={};if(EE(J)&&MO()){if(f){var v;((v=$tg.uaChPolyfill)==null?void 0:v.state.type)!==2?f=null:(f=$tg.uaChPolyfill.state.data.values,f={"Synth-Sec-CH-UA-Arch":f.architecture,"Synth-Sec-CH-UA-Model":f.model,"Synth-Sec-CH-UA-Platform":f.platform,"Synth-Sec-CH-UA-Platform-Version":f.platformVersion,"Synth-Sec-CH-UA-Full-Version":f.uaFullVersion});k=Object.assign(k,f);H.withCredentials=!0}(f=g.iL("EOM_VISITOR_DATA"))?k["X-Goog-EOM-Visitor-Id"]=f:C?k["X-Goog-Visitor-Id"]= C:g.iL("VISITOR_DATA")&&(k["X-Goog-Visitor-Id"]=g.iL("VISITOR_DATA"));N&&(k["X-Goog-PageId"]=N);(C=R.ma)&&!iv(R)&&(k["X-Goog-AuthUser"]=C);X&&(k.Authorization="Bearer "+X);R.T("enable_datasync_id_header_in_web_vss_pings")&&R.qM&&R.datasyncId&&(k["X-YouTube-DataSync-Id"]=R.datasyncId);f||k["X-Goog-Visitor-Id"]||X||N||C?H.withCredentials=!0:R.T("html5_send_cpn_with_options")&&fM7.test(J)&&(H.withCredentials=!0)}Object.keys(k).length>0&&(H.headers=k);u&&(H.onFinish=u);return Object.keys(H).length>1? H:null}; kff=function(J,R,N,C,X,u,f,H){MO()&&N.token&&(J=IS(J,{ctt:N.token,cttype:N.Jm,mdx_environment:N.mdxEnvironment}));C.T("net_pings_low_priority")&&(R||(R={}),R.priority="low");u||H&&C.T("nwl_skip_retry")?(R==null?R={}:Tgk(J,C.T("html5_assert_cpn_with_regex")),f?WG().sendAndWrite(J,R):WG().sendThenWrite(J,R,H)):R?(Tgk(J,C.T("html5_assert_cpn_with_regex")),C.T("net_pings_use_fetch")?Atg(J,R):g.V5(J,R)):g.C5(J,X)}; v5P=function(J){for(var R=[],N=0;N500&&N.u3("vmlock",{diff:u.toFixed()});N.PC=X},250)); J.RB.fL()&&R&&(this.tN=R-Math.round(g.m0(J)*1E3));this.provider.videoData.Vp&&(this.remoteControlMode=IME[this.provider.videoData.Vp]||0);this.provider.videoData.RE&&(R=C1g(this.provider.videoData.RE),R==null?0:R.length)&&(this.remoteConnectedDevices=R);if(J.KC.Si()||J.T("html5_log_cpu_info"))this.eQ=new X8E,g.P(this,this.eQ)}; g.k4=function(J,R,N,C){var X=J.K[N];X||(X=[],J.K[N]=X);X.push(R.toFixed(3)+":"+C.join(":"))}; Fe8=function(J,R){var N=J.adCpn||J.provider.videoData.clientPlaybackNonce,C=J.provider.getCurrentTime(N);g.k4(J,R,"cmt",[C.toFixed(3)]);C=J.provider.xT(N);if(J.Z&&C*1E3>J.Z.iI+100&&J.Z){var X=J.Z;N=X.isAd;C=C*1E3-X.iI;J.G7=R*1E3-X.NNB-C-X.GTa;X=(0,g.g9)()-C;R=J.G7;C=J.provider.videoData;var u=C.isAd();if(N||u){u=(N?"ad":"video")+"_to_"+(u?"ad":"video");var f={};C.S&&(f.cttAuthInfo={token:C.S,videoId:C.videoId});f.startTime=X-R;SV(u,f);g.WU({targetVideoId:C.videoId,targetCpn:C.clientPlaybackNonce}, u);vU("pbs",X,u)}else X=J.provider.RB.kB(),X.S!==C.clientPlaybackNonce?(X.U=C.clientPlaybackNonce,X.J=R):C.He()||g.G$(new g.C3("CSI timing logged before gllat",{cpn:C.clientPlaybackNonce}));J.u3("gllat",{l:J.G7.toFixed(),prev_ad:+N});delete J.Z}}; WI=function(J,R){R=R===void 0?NaN:R;R=R>=0?R:g.m0(J.provider);var N=J.provider.RB.MD(),C=N.N8-(J.l3||0);C>0&&g.k4(J,R,"bwm",[C,(N.RJ-(J.kA||0)).toFixed(3)]);isNaN(J.l3)&&N.N8&&J.isOffline&&J.Ga(!1);J.l3=N.N8;J.kA=N.RJ;isNaN(N.bandwidthEstimate)||g.k4(J,R,"bwe",[N.bandwidthEstimate.toFixed(0)]);J.provider.KC.Si()&&Object.keys(N.K).length!==0&&J.u3("bwinfo",N.K);if(J.provider.KC.Si()||J.provider.KC.T("html5_log_meminfo"))C=UoP(),Object.values(C).some(function(u){return u!==void 0})&&J.u3("meminfo", C); if(J.provider.KC.Si()||J.provider.KC.T("html5_log_cpu_info")){var X;(C=(X=J.eQ)==null?void 0:ipY(X))&&Object.values(C).some(function(u){return u!=null})&&J.u3("cpuinfo",C)}J.dn&&g.k4(J,R,"bat",[J.dn.level, J.dn.charging?"1":"0"]);X=J.provider.RB.getVisibilityState();J.AL!==X&&(g.k4(J,R,"vis",[X]),J.AL=X);Fe8(J,R);(X=E5n(J.provider))&&X!==J.ji&&(g.k4(J,R,"conn",[X]),J.ji=X);McQ(J,R,N)}; McQ=function(J,R,N){if(!isNaN(N.Eu)){var C=N.Eu;N.J96E3&&(new g.$t(J.reportStats,0,J)).start()}; QCP=function(J){J.provider.videoData.j2&&S1(J,"prefetch");J.provider.videoData.ji&&J.u3("reload",{r:J.provider.videoData.reloadReason,ct:J.provider.videoData.ji});J.provider.videoData.oB&&S1(J,"monitor");J.provider.videoData.isLivePlayback&&S1(J,"live");Tn&&S1(J,"streaming");J.provider.videoData.Vp&&J.u3("ctrl",{mode:J.provider.videoData.Vp},!0);if(J.provider.videoData.RE){var R=J.provider.videoData.RE.replace(/,/g,"_");J.u3("ytp",{type:R},!0)}J.provider.videoData.kd&&(R=J.provider.videoData.kd.replace(/,/g, "."),J.u3("ytrexp",{ids:R},!0));var N=J.provider.videoData;R=J.provider.KC.T("enable_white_noise")||J.provider.KC.T("enable_webgl_noop");N=g.QY(N)||g.Yz(N)||g.rO(N)||g.j9(N);(R||N)&&(R=(0,g.Lk)())&&(J.K.gpu=[R]);zH(J.provider.videoData)&&g.k4(J,g.m0(J.provider),"dt",["1"]);J.provider.KC.Si()&&(R=(0,g.g9)()-J.provider.KC.mu,J.u3("playerage",{secs:Math.pow(1.6,Math.round(Math.log(R/1E3)/Math.log(1.6))).toFixed()}));J.V=!0;J.S=g.OE(function(){J.reportStats()},1E4)}; DtQ=function(J,R,N){var C=g.m0(J.provider);n5E(J,C,R,0,N);WI(J,C);aMn(J)}; n5E=function(J,R,N,C,X){var u=J.provider.KC.K.cbrver;J.provider.KC.K.cbr==="Chrome"&&/^96[.]/.test(u)&&N==="net.badstatus"&&/rc\.500/.test(X)&&sCB(J,3);J.provider.KC.T("html5_use_ump")&&/b248180278/.test(X)&&sCB(J,4);u=J.provider.getCurrentTime(J.adCpn||J.provider.videoData.clientPlaybackNonce);C=C===1?"fatal":"";N=[N,C,u.toFixed(3)];C&&(X+=";a6s."+mM());X&&N.push(BgY(X));g.k4(J,R,"error",N);J.V=!0}; OpP=function(J){J.J>=0||(J.provider.KC.rN||J.provider.RB.getVisibilityState()!==3?J.J=g.m0(J.provider):J.HC=!0)}; Zp2=function(J,R,N,C){if(N!==J.Em){R=10&&J.playTimeSecs<=180&&(J.K.qoealert=["1"],J.EB=!0)),N!=="B"||J.Em!=="PL"&&J.Em!=="PB"||(J.isBuffering=!0),J.U=R);J.Em==="PL"&&(N==="B"||N==="S")||J.provider.KC.Si()?WI(J,R):(J.GW||N!=="PL"||(J.GW=!0,McQ(J,R,J.provider.RB.MD())),Fe8(J,R));N==="PL"&&g.HK(J.H1);var X=[N];N==="S"&&C&&X.push("ss."+C);g.k4(J,R,"vps",X);J.Em=N; J.VK=R;J.U=R;J.V=!0}}; S1=function(J,R){var N=J.K.cat||[];N.push(R);J.K.cat=N}; Iu=function(J,R,N,C,X,u){var f=g.m0(J.provider);N!==1&&N!==3&&N!==5||g.k4(J,f,"vps",[J.Em]);var H=J.K.xvt||[];H.push("t."+f.toFixed(3)+";m."+u.toFixed(3)+";g."+R+";tt."+N+";np.0;c."+C+";d."+X);J.K.xvt=H}; sCB=function(J,R){if(!J.oB){var N=J.K.fcnz;N||(N=[],J.K.fcnz=N);N.push(String(R));J.oB=!0}}; BgY=function(J){/[^a-zA-Z0-9;.!_-]/.test(J)&&(J=J.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return J}; dt7=function(J){this.provider=J;this.D=!1;this.K=0;this.Z=-1;this.Sp=NaN;this.V=0;this.segments=[];this.S=this.U=0;this.previouslyEnded=!1;this.W=this.provider.RB.getVolume();this.X=this.provider.RB.isMuted()?1:0;this.J=Fe(this.provider)}; EH=function(J){J.J.startTime=J.V;J.J.endTime=J.K;var R=!1;J.segments.length&&g.Pl(J.segments).isEmpty()?(J.segments[J.segments.length-1].previouslyEnded&&(J.J.previouslyEnded=!0),J.segments[J.segments.length-1]=J.J,R=!0):J.segments.length&&J.J.isEmpty()||(J.segments.push(J.J),R=!0);R?J.J.endTime===0&&(J.previouslyEnded=!1):J.J.previouslyEnded&&(J.previouslyEnded=!0);J.U+=J.K-J.V;J.J=Fe(J.provider);J.J.previouslyEnded=J.previouslyEnded;J.previouslyEnded=!1;J.V=J.K}; AZg=function(J){qJE(J);J.S=g.OE(function(){J.update()},100); J.Sp=g.m0(J.provider);J.J=Fe(J.provider)}; qJE=function(J){g.dp(J.S);J.S=NaN}; YJE=function(J,R,N){N-=J.Sp;return R===J.K&&N>.5}; rZB=function(J,R,N,C){this.KC=R;this.Xn=N;this.segments=[];this.experimentIds=[];this.pC=this.TW=this.isFinal=this.delayThresholdMet=this.GW=this.AL=this.autoplay=this.autonav=!1;this.ji="yt";this.D=[];this.S=this.W=null;this.sendVisitorIdHeader=this.HC=!1;this.X=this.pageId="";this.U=N==="watchtime";this.V=N==="playback";this.ma=N==="atr";this.lr=N==="engage";this.sendVisitorIdHeader=!1;this.uri=this.ma?"/api/stats/"+N:"//"+R.Qw+"/api/stats/"+N;C&&(this.TW=C.fs,C.rtn&&(this.S=C.rtn),this.U?(this.playerState= C.state,C.rti>0&&(this.W=C.rti)):(this.rN=C.mos,this.OQ=C.volume,C.at&&(this.adType=C.at)),C.autonav&&(this.autonav=C.autonav),C.inview!=null&&(this.VR=C.inview),C.size&&(this.kA=C.size),C.playerwidth&&(this.playerWidth=C.playerwidth),C.playerheight&&(this.playerHeight=C.playerheight));this.FV=g.Vs(R.K);this.X=$S(R.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.X==="all"||this.X==="once")this.R1=g.Vs(R.ji);this.pL=R.EB;this.experimentIds=PT8(R.experiments);this.l3=R.VK;this.ji=R.nC;this.region= R.region;this.userAge=R.userAge;this.Xk=R.LJ;this.CY=UK();this.sendVisitorIdHeader=R.sendVisitorIdHeader;this.tN=R.T("vss_pings_using_networkless")||R.T("kevlar_woffle");this.NE=R.T("vss_final_ping_send_and_write");this.VO=R.T("vss_use_send_and_write");this.pageId=R.pageId;this.t2=R.T("vss_playback_use_send_and_write");R.livingRoomAppMode&&(this.livingRoomAppMode=R.livingRoomAppMode);this.wN=R.Z&&R.T("embeds_append_synth_ch_headers");g.V_(R)&&(this.G7=R.VO);g.KI(g.cH(R))&&this.D.push(1);this.accessToken= g.PJ(J);J.Km[this.Xn]?this.Z=J.Km[this.Xn]:J.Km.playback&&(this.Z=J.Km.playback);this.adFormat=J.adFormat;this.adQueryId=J.adQueryId;this.autoplay=PUk(J);this.V&&(this.AL=(J.T("html5_enable_log_server_autoplay")||J.T("enable_cleanup_masthead_autoplay_hack_fix"))&&J.Pk&&gO(J)==="adunit"?!0:!1);this.autonav=J.isAutonav||this.autonav;this.contentVideoId=pA(J);this.clientPlaybackNonce=J.clientPlaybackNonce;this.GW=J.wL;J.S&&(this.nC=J.S,this.EB=J.O2);J.mdxEnvironment&&(this.mdxEnvironment=J.mdxEnvironment); this.K=J.EL;this.VK=J.VK;J.J&&(this.j2=J.J.itag,J.Z&&J.Z.itag!==this.j2&&(this.oB=J.Z.itag));J.K&&D9(J.K)&&(this.offlineDownloadUserChoice="1");this.eventLabel=gO(J);this.pC=J.Im?!1:J.AL;this.m7=J.qj;if(R=sU(J))this.mu=R;this.v7=J.Ou;this.partnerId=J.partnerId;this.eventId=J.eventId;this.playlistId=J.DH||J.playlistId;this.AV=J.AV;this.Vp=J.Vp;this.RE=J.RE;this.nw=J.nw;this.subscribed=J.subscribed;this.videoId=J.videoId;this.videoMetadata=J.videoMetadata;this.visitorData=J.visitorData;this.osid=J.osid; this.qY=J.qY;this.referrer=J.referrer;this.TG=J.Yd||J.TG;this.eQ=J.Ua;this.Sq=J.Sq;this.userGenderAge=J.userGenderAge;this.Pn=J.Pn;this.embedsRct=J.embedsRct;this.embedsRctn=J.embedsRctn;g.V_(this.KC)&&J.mutedAutoplay&&this.D.push(2);J.Yv(new g.a4(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.D.push(3);g.hq(J)&&this.D.push(4);this.T7=J.yf;J.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=J.compositeLiveIngestionOffsetToken)}; jCB=function(J,R){var N=J.sendVisitorIdHeader?J.visitorData:void 0;return g.Wm(J.KC,J.accessToken).then(function(C){return Hpk(J.uri,J.KC,J.pageId,N,C,R,J.wN)})}; g5B=function(J,R){return function(){J.KC.T("html5_simplify_pings")?(J.K=J.PC,J.H1=R(),J.CY=0,J.send()):jCB(J).then(function(N){var C=mt8(J);C.cmt=C.len;C.lact="0";var X=R().toFixed(3);C.rt=Number(X).toString();C=g.bD(J.uri,C);J.KC.T("vss_through_gel_double")&&Vc7(C);J.tN?(N==null&&(N={}),J.VO?WG().sendAndWrite(C,N):WG().sendThenWrite(C,N)):N?g.V5(C,N):g.C5(C)})}}; mt8=function(J){var R={ns:J.ji,el:J.eventLabel,cpn:J.clientPlaybackNonce,ver:2,cmt:J.J(J.K),fmt:J.j2,fs:J.TW?"1":"0",rt:J.J(J.H1),adformat:J.adFormat,content_v:J.contentVideoId,euri:J.pL,lact:J.CY,live:J.mu,cl:(702949575).toString(),mos:J.rN,state:J.playerState,volume:J.OQ};J.subscribed&&(R.subscribed="1");Object.assign(R,J.FV);J.X==="all"?Object.assign(R,J.R1):J.X==="once"&&J.V&&Object.assign(R,J.R1);J.autoplay&&(R.autoplay="1");J.AL&&(R.sautoplay="1");J.GW&&(R.dni="1");!J.U&&J.G7&&(R.epm=Utg[J.G7]); J.isFinal&&(R["final"]="1");J.pC&&(R.splay="1");J.VK&&(R.delay=J.VK);J.l3&&(R.hl=J.l3);J.region&&(R.cr=J.region);J.userGenderAge&&(R.uga=J.userGenderAge);J.userAge!==void 0&&J.Xk&&(R.uga=J.Xk+J.userAge);J.PC!==void 0&&(R.len=J.J(J.PC));!J.U&&J.experimentIds.length>0&&(R.fexp=J.experimentIds.toString());J.S!==null&&(R.rtn=J.J(J.S));J.TG&&(R.feature=J.TG);J.Vp&&(R.ctrl=J.Vp);J.RE&&(R.ytr=J.RE);J.oB&&(R.afmt=J.oB);J.offlineDownloadUserChoice&&(R.ODUC=J.offlineDownloadUserChoice);J.YA&&(R.lio=J.J(J.YA)); J.U?(R.idpj=J.m7,R.ldpj=J.v7,J.delayThresholdMet&&(R.dtm="1"),J.W!=null&&(R.rti=J.J(J.W)),J.Pn&&(R.ald=J.Pn),J.compositeLiveIngestionOffsetToken&&(R.clio=J.compositeLiveIngestionOffsetToken)):J.adType!==void 0&&(R.at=J.adType);J.kA&&(J.V||J.U)&&(R.size=J.kA);J.V&&J.D.length&&(R.pbstyle=J.D.join(","));J.VR!=null&&(J.V||J.U)&&(R.inview=J.J(J.VR));J.U&&(R.volume=Mr(J,g.Yy(J.segments,function(C){return C.volume})),R.st=Mr(J,g.Yy(J.segments,function(C){return C.startTime})),R.et=Mr(J,g.Yy(J.segments,function(C){return C.endTime})), gh(J.segments,function(C){return C.playbackRate!==1})&&(R.rate=Mr(J,g.Yy(J.segments,function(C){return C.playbackRate}))),gh(J.segments,function(C){return C.K!=="-"})&&(R.als=g.Yy(J.segments,function(C){return C.K}).join(",")),gh(J.segments,function(C){return C.previouslyEnded})&&(R.pe=g.Yy(J.segments,function(C){return""+ +C.previouslyEnded}).join(","))); R.muted=Mr(J,g.Yy(J.segments,function(C){return C.muted?1:0})); gh(J.segments,function(C){return C.visibilityState!==0})&&(R.vis=Mr(J,g.Yy(J.segments,function(C){return C.visibilityState}))); gh(J.segments,function(C){return C.connectionType!==0})&&(R.conn=Mr(J,g.Yy(J.segments,function(C){return C.connectionType}))); gh(J.segments,function(C){return C.J!==0})&&(R.blo=Mr(J,g.Yy(J.segments,function(C){return C.J}))); gh(J.segments,function(C){return!!C.V})&&(R.blo=g.Yy(J.segments,function(C){return C.V}).join(",")); gh(J.segments,function(C){return!!C.compositeLiveStatusToken})&&(R.cbs=g.Yy(J.segments,function(C){return C.compositeLiveStatusToken}).join(",")); gh(J.segments,function(C){return C.U!=="-"})&&(R.cc=g.Yy(J.segments,function(C){return C.U}).join(",")); gh(J.segments,function(C){return C.clipId!=="-"})&&(R.clipid=g.Yy(J.segments,function(C){return C.clipId}).join(",")); if(gh(J.segments,function(C){return!!C.Z})){var N="au"; J.V&&(N="au_d");R[N]=g.Yy(J.segments,function(C){return C.Z}).join(",")}MO()&&J.nC&&(R.ctt=J.nC,R.cttype=J.EB,R.mdx_environment=J.mdxEnvironment); J.lr&&(R.etype=J.dn!==void 0?J.dn:0);J.eQ&&(R.uoo=J.eQ);J.livingRoomAppMode&&J.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(R.clram=p8f[J.livingRoomAppMode]||J.livingRoomAppMode);J.Z?lMn(J,R):(R.docid=J.videoId,R.referrer=J.referrer,R.ei=J.eventId,R.of=J.qY,R.osid=J.osid,R.vm=J.videoMetadata,J.adQueryId&&(R.aqi=J.adQueryId),J.autonav&&(R.autonav="1"),J.playlistId&&(R.list=J.playlistId),J.nw&&(R.ssrt="1"),J.Sq&&(R.upt=J.Sq));J.V&&(J.embedsRct&&(R.rct=J.embedsRct),J.embedsRctn&&(R.rctn= J.embedsRctn),J.compositeLiveIngestionOffsetToken&&(R.clio=J.compositeLiveIngestionOffsetToken));J.T7&&(R.host_cpn=J.T7);return R}; lMn=function(J,R){if(R&&J.Z){var N=new Set(["q","feature","mos"]),C=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),X=new Set(["aqi","autonav","list","ssrt","upt"]);J.Z.ns==="3pp"&&(R.ns="3pp");for(var u=g.K(Object.keys(J.Z)),f=u.next();!f.done;f=u.next())f=f.value,C.has(f)||N.has(f)||X.has(f)&&!J.Z[f]||(R[f]=J.Z[f])}}; Mr=function(J,R){return g.Yy(R,J.J).join(",")}; Vc7=function(J){J.indexOf("watchtime")!==-1&&g.Mz("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:J}})}; Pbn=function(J,R){J.attestationResponse&&jCB(J).then(function(N){N=N||{};N.method="POST";N.postParams={atr:J.attestationResponse};J.tN?J.VO?WG().sendAndWrite(R,N):WG().sendThenWrite(R,N):g.V5(R,N)})}; Kk=function(J){g.l.call(this);this.provider=J;this.S="paused";this.U=NaN;this.D=[10,10,10,40];this.W=this.X=0;this.dn=this.tN=this.ma=this.nC=this.V=!1;this.J=this.Z=NaN;this.K=new dt7(J)}; cZB=function(J){if(!J.V){J.provider.videoData.Lp===16623&&g.G$(Error("Playback for EmbedPage"));var R=au(J,"playback");a:{if(J.provider.KC.T("web_player_use_server_vss_schedule")){var N,C=(N=J.provider.videoData.getPlayerResponse())==null?void 0:N.playbackTracking,X=C==null?void 0:C.videostatsScheduledFlushWalltimeSeconds;C=C==null?void 0:C.videostatsDefaultFlushIntervalSeconds;if(X&&X.length>0&&C){N=[];var u=J.provider.videoData.qj,f=J.provider.videoData.Ou,H=-u;X=g.K(X);for(var k=X.next();!k.done;k= X.next())k=k.value,N.push(k-H),H=k;N.push(C+f-u);N.push(C);J.D=N;break a}}J.D=[10+J.provider.videoData.qj,10,10,40+J.provider.videoData.Ou-J.provider.videoData.qj,40]}AZg(J.K);R.S=Q6(J);J.J>0&&(R.K-=J.J);R.send();J.provider.videoData.XF&&(R=J.provider.KC,C=J.provider.videoData,N={html5:"1",video_id:C.videoId,cpn:C.clientPlaybackNonce,ei:C.eventId,ptk:C.XF,oid:C.Xb,ptchn:C.zi,pltype:C.aP,content_v:pA(C)},C.e4&&Object.assign(N,{m:C.e4}),R=g.bD(R.tN+"ptracking",N),zME(J,R));J.provider.videoData.VK|| (eMY(J),w8Q(J),J.z4());J.V=!0;R=J.K;R.K=R.provider.RB.xT();R.Sp=g.m0(R.provider);!(R.V===0&&R.K<5)&&R.K-R.V>2&&(R.V=R.K);R.D=!0;J.provider.KC.T("html5_log_vss_details")&&J.provider.RB.u3("vssinit",{})}}; Q6=function(J,R){R=R===void 0?NaN:R;var N=g.m0(J.provider);R=isNaN(R)?N:R;R=Math.ceil(R);var C=J.D[J.X];J.X+11E3;!(u.length>1)&&u[0].isEmpty()||H||(f.S=Q6(J,X));f.send();J.W++}},(X-N)*1E3); return J.Z=X}; nk=function(J){g.Zx(J.U);J.U=NaN}; hMP=function(J){J.K.update();J=J.K;J.segments.length&&J.K===J.V||EH(J);var R=J.segments;J.segments=[];return R}; au=function(J,R){var N=Gfn(J.provider);Object.assign(N,{state:J.S});R=new rZB(J.provider.videoData,J.provider.KC,R,N);R.K=J.provider.RB.xT();N=J.provider.videoData.clientPlaybackNonce;R.K=J.provider.RB.hT(N);J.provider.videoData.isLivePlayback||(R.PC=J.provider.RB.getDuration(N));J.provider.videoData.K&&(N=J.provider.videoData.K.Il(R.K))&&(R.YA=N-R.K);R.H1=g.m0(J.provider);R.segments=[Fe(J.provider)];return R}; yZB=function(J,R){var N=au(J,"watchtime");bpg(J)&&(N.delayThresholdMet=!0,J.ma=!0);if(J.J>0){for(var C=g.K(R),X=C.next();!X.done;X=C.next())X=X.value,X.startTime-=J.J,X.endTime-=J.J;N.K-=J.J}else N.K=J.K.M9();N.segments=R;return N}; Dg=function(J,R){var N=tck(J,!isNaN(J.Z));R&&(J.Z=NaN);return N}; tck=function(J,R){var N=yZB(J,hMP(J));!isNaN(J.Z)&&R&&(N.W=J.Z);return N}; bpg=function(J){var R;if(R=J.provider.videoData.isLoaded()&&J.provider.videoData.VK&&J.V&&!J.ma)R=J.K,R=R.U+R.provider.RB.xT()-R.V>=J.provider.videoData.VK;return!!R}; eMY=function(J){J.provider.videoData.youtubeRemarketingUrl&&!J.tN&&(zME(J,J.provider.videoData.youtubeRemarketingUrl),J.tN=!0)}; w8Q=function(J){J.provider.videoData.googleRemarketingUrl&&!J.dn&&(zME(J,J.provider.videoData.googleRemarketingUrl),J.dn=!0)}; xtg=function(J){J.provider.KC.T("html5_log_vss_details")&&J.provider.RB.u3("vssfi",{});if(!J.QO()&&J.V){J.S="paused";var R=Dg(J);R.isFinal=!0;R.send();J.dispose()}}; J$n=function(J,R){if(!J.QO())if(g.h(R.state,2)||g.h(R.state,512)){if(J.S="paused",g.Yp(R,2)||g.Yp(R,512))g.Yp(R,2)&&(J.K.previouslyEnded=!0),J.V&&(nk(J),Dg(J).send(),J.Z=NaN)}else if(g.h(R.state,8)){J.S="playing";var N=J.V&&isNaN(J.U)?Q6(J):NaN;!isNaN(N)&&(Al(R,64)<0||Al(R,512)<0)&&(J=tck(J,!1),J.S=N,J.send())}else J.S="paused"}; o0k=function(J,R,N){if(!J.nC){N||(N=au(J,"atr"));N.attestationResponse=R;try{N.send()}catch(C){if(C.message!=="Unknown Error")throw C;}J.nC=!0}}; zME=function(J,R){var N=J.provider.KC;g.Wm(J.provider.KC,g.PJ(J.provider.videoData)).then(function(C){var X=J.provider.KC.pageId,u=J.provider.KC.sendVisitorIdHeader?J.provider.videoData.visitorData:void 0,f=J.provider.KC.T("vss_pings_using_networkless")||J.provider.KC.T("kevlar_woffle"),H=J.provider.KC.T("allow_skip_networkless");C=Hpk(R,N,X,u,C);kff(R,C,{token:J.provider.videoData.S,Jm:J.provider.videoData.O2,mdxEnvironment:J.provider.videoData.mdxEnvironment},N,void 0,f&&!H,!1,!0)})}; RO7=function(){this.endTime=this.startTime=-1;this.U="-";this.playbackRate=1;this.visibilityState=0;this.Z="";this.J=0;this.compositeLiveStatusToken=this.V=void 0;this.volume=this.connectionType=0;this.muted=!1;this.K=this.clipId="-";this.previouslyEnded=!1}; sH=function(J,R,N){this.videoData=J;this.KC=R;this.RB=N;this.K=void 0}; g.m0=function(J){return Nv7(J)()}; Nv7=function(J){if(!J.K){var R=g.hk(function(C){var X=(0,g.g9)();C&&X<=631152E6&&(J.RB.u3("ytnerror",{issue:28799967,value:""+X}),X=(new Date).getTime()+2);return X},J.KC.T("html5_validate_yt_now")),N=R(); J.K=function(){return Math.round(R()-N)/1E3}; J.RB.cW()}return J.K}; Gfn=function(J){var R=J.RB.Nz()||{};R.fs=J.RB.Zp();R.volume=J.RB.getVolume();R.muted=J.RB.isMuted()?1:0;R.mos=R.muted;R.clipid=J.RB.NS();var N;R.playerheight=((N=J.RB.getPlayerSize())==null?void 0:N.height)||0;var C;R.playerwidth=((C=J.RB.getPlayerSize())==null?void 0:C.width)||0;J=J.videoData;N={};J.J&&(N.fmt=J.J.itag,J.Z&&(J.VR?J.Z.itag!==J.J.itag:J.Z.itag!=J.J.itag)&&(N.afmt=J.Z.itag));N.ei=J.eventId;N.list=J.playlistId;N.cpn=J.clientPlaybackNonce;J.videoId&&(N.v=J.videoId);J.OV&&(N.infringe=1); (J.Im?0:J.AL)&&(N.splay=1);(C=sU(J))&&(N.live=C);J.Pk&&(N.sautoplay=1);J.Pa&&(N.autoplay=1);J.AV&&(N.sdetail=J.AV);J.partnerId&&(N.partnerid=J.partnerId);J.osid&&(N.osid=J.osid);J.fD&&(N.cc=g.bcB(J.fD));return Object.assign(R,N)}; E5n=function(J){var R=jl2();if(R)return Cpg[R]||Cpg.other;if(g.eG(J.KC)){J=navigator.userAgent;if(/[Ww]ireless[)]/.test(J))return 3;if(/[Ww]ired[)]/.test(J))return 30}return 0}; Fe=function(J){var R=new RO7,N;R.U=((N=Gfn(J).cc)==null?void 0:N.toString())||"-";R.playbackRate=J.RB.getPlaybackRate();N=J.RB.getVisibilityState();N!==0&&(R.visibilityState=N);J.KC.GW&&(R.J=1);R.V=J.videoData.g6;R.compositeLiveStatusToken=J.videoData.compositeLiveStatusToken;N=J.RB.getAudioTrack();N.Do&&N.Do.id&&N.Do.id!=="und"&&(R.Z=N.Do.id);R.connectionType=E5n(J);R.volume=J.RB.getVolume();R.muted=J.RB.isMuted();R.clipId=J.RB.NS()||"-";R.K=J.videoData.Zl||"-";return R}; g.BI=function(J,R){g.l.call(this);var N=this;this.provider=J;this.Z=!1;this.V=new Map;this.Em=new g.hy;this.QR={fpN:function(){return N.qoe}, cpC:function(){return N.K}, hxB:function(){return N.J}}; this.provider.videoData.Da()&&!this.provider.videoData.F$&&(this.K=new Kk(this.provider),this.K.J=this.provider.videoData.m7/1E3,g.P(this,this.K),this.qoe=new g.vI(this.provider,R),g.P(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Rm=this.provider.videoData.clientPlaybackNonce)&&this.V.set(this.Rm,this.K));if(J.KC.playerCanaryState==="canary"||J.KC.playerCanaryState==="holdback")this.J=new T3(this.provider),g.P(this,this.J)}; XYB=function(J){return!!J.K&&!!J.qoe}; OH=function(J){J.J&&o5f(J.J);J.qoe&&OpP(J.qoe)}; it8=function(J){if(J.qoe){J=J.qoe;for(var R=J.provider.videoData,N=J.provider.KC,C=g.K(N.t2),X=C.next();!X.done;X=C.next())S1(J,X.value);if(J.provider.T("html5_enable_qoe_cat_list"))for(C=g.K(R.P_),X=C.next();!X.done;X=C.next())S1(J,X.value);else R.t2&&S1(J,J.provider.videoData.t2);R.MR()&&(C=R.K,kz(R)&&S1(J,"manifestless"),C&&Yr(C)&&S1(J,"live-segment-"+Yr(C).toFixed(1)));iY(R)?S1(J,"sabr"):J.Ws(a5(R));if(wVg(R)||R.ZD())R.ZD()&&S1(J,"ssa"),S1(J,"lifa");R.gatewayExperimentGroup&&(C=R.gatewayExperimentGroup, C==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?C="spkadtrt":C==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(C="spkadctrl"),S1(J,C));N.nC!=="yt"&&(J.K.len=[R.lengthSeconds.toFixed(2)]);R.cotn&&!zH(R)&&J.Ga(!0);if(N.Si()&&((R=Len())&&J.u3("cblt",{m:R}),N.T("html5_log_screen_diagonal"))){N=J.u3;var u,f;R=((u=window.h5vcc)==null?0:(f=u.screen)==null?0:f.getDiagonal)?window.h5vcc.screen.getDiagonal():0;N.call(J,"cbltdiag",{v:R})}}}; uA2=function(J){if(J.provider.RB.fL()){if(J.Z)return;J.Z=!0}J.K&&cZB(J.K);if(J.J){J=J.J;var R=g.m0(J.provider);J.K<0&&(J.K=R,J.delay.start());J.J=R;J.Z=R}}; fok=function(J,R){J.K&&(J=J.K,R===58?J.K.update():J.V&&(nk(J),Dg(J).send(),J.Z=NaN))}; Tv8=function(J,R){if(g.Yp(R,1024)||g.Yp(R,512)||g.Yp(R,4)){if(J.J){var N=J.J;N.J>=0||(N.K=-1,N.delay.stop())}J.qoe&&(N=J.qoe,N.X||(N.J=-1))}if(J.provider.videoData.enableServerStitchedDai&&J.Rm){var C;(C=J.V.get(J.Rm))==null||J$n(C,R)}else J.K&&J$n(J.K,R);if(J.qoe){C=J.qoe;N=R.state;var X=g.m0(C.provider),u=C.getPlayerState(N);Zp2(C,X,u,N.seekSource||void 0);u=N.uu;g.h(N,128)&&u&&(u.Ur=u.Ur||"",n5E(C,X,u.errorCode,u.rh,u.Ur));(g.h(N,2)||g.h(N,128))&&C.reportStats(X);N.isPlaying()&&!C.X&&(C.J>=0&& (C.K.user_intent=[C.J.toString()]),C.X=!0);aMn(C)}J.J&&(C=J.J,RME(C),C.playerState=R.state,C.J>=0&&g.Yp(R,16)&&C.seekCount++,R.state.isError()&&C.send());J.provider.RB.fL()&&(J.Em=R.state)}; $TE=function(J){if(J.provider.videoData.enableServerStitchedDai&&J.Rm){var R;(R=J.V.get(J.Rm))!=null&&EH(R.K)}else J.K&&EH(J.K.K)}; Htn=function(J){J.J&&J.J.send();if(J.qoe){var R=J.qoe;if(R.V){R.Em==="PL"&&(R.Em="N");var N=g.m0(R.provider);g.k4(R,N,"vps",[R.Em]);R.X||(R.J>=0&&(R.K.user_intent=[R.J.toString()]),R.X=!0);R.provider.KC.Si()&&R.u3("finalized",{});R.VO=!0;R.reportStats(N)}}if(J.provider.videoData.enableServerStitchedDai)for(R=g.K(J.V.values()),N=R.next();!N.done;N=R.next())xtg(N.value);else J.K&&xtg(J.K);J.dispose()}; kxB=function(J,R){J.K&&o0k(J.K,R)}; v07=function(J){if(!J.K)return null;var R=au(J.K,"atr");return function(N){J.K&&o0k(J.K,N,R)}}; WYB=function(J,R,N,C){N.adFormat=N.Xn;var X=R.RB;R=new Kk(new sH(N,R.KC,{getDuration:function(){return N.lengthSeconds}, getCurrentTime:function(){return X.getCurrentTime()}, xT:function(){return X.xT()}, hT:function(){return X.hT()}, fL:function(){return X.fL()}, MD:function(){return X.MD()}, getPlayerSize:function(){return X.getPlayerSize()}, getAudioTrack:function(){return N.getAudioTrack()}, getPlaybackRate:function(){return X.getPlaybackRate()}, L3:function(){return X.L3()}, getVisibilityState:function(){return X.getVisibilityState()}, kB:function(){return X.kB()}, Nz:function(){return X.Nz()}, getVolume:function(){return X.getVolume()}, isMuted:function(){return X.isMuted()}, Zp:function(){return X.Zp()}, NS:function(){return X.NS()}, getProximaLatencyPreference:function(){return X.getProximaLatencyPreference()}, cW:function(){X.cW()}, u3:function(u,f){X.u3(u,f)}})); R.J=C;g.P(J,R);return R}; SgE=function(){this.Eu=0;this.V=this.RJ=this.N8=this.J=NaN;this.K={};this.bandwidthEstimate=NaN}; Zg=function(J,R,N){g.l.call(this);var C=this;this.KC=J;this.RB=R;this.J=N;this.K=new Map;this.Rm="";this.QR={b4:function(){return Array.from(C.K.keys())}}}; LYE=function(J,R){J.K.has(R)&&(Htn(J.K.get(R)),J.K.delete(R))}; IoE=function(){this.K=g.aj;this.array=[]}; E0B=function(J,R,N){var C=[];for(R=FYQ(J,R);RN)break}return C}; MxB=function(J,R){var N=[];J=g.K(J.array);for(var C=J.next();!C.done&&!(C=C.value,C.contains(R)&&N.push(C),C.start>R);C=J.next());return N}; KY8=function(J){return J.array.slice(FYQ(J,0x7ffffffffffff),J.array.length)}; FYQ=function(J,R){J=CE(J.array,function(N){return R-N.start||1}); return J<0?-(J+1):J}; aon=function(J,R){var N=NaN;J=g.K(J.array);for(var C=J.next();!C.done;C=J.next())if(C=C.value,C.contains(R)&&(isNaN(N)||C.endR&&(isNaN(N)||C.startJ.mediaTime+J.Z&&R1)J.V=!0;if((X===void 0?0:X)||isNaN(J.J))J.J=R;if(J.K)R!==J.mediaTime&&(J.K=!1);else if(R>0&&J.mediaTime===R){X=1500;if(J.KC.T("html5_buffer_underrun_transition_fix")){X=g.di(J.KC.experiments,"html5_min_playback_advance_for_steady_state_secs");var u=g.di(J.KC.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");X=X>0&&u>0&&Math.abs(R-J.J)(C||!J.V?X:400)}J.mediaTime=R;J.timeStamp=N;return!1}; OtP=function(J,R){this.videoData=J;this.K=R}; Ztg=function(J,R,N){return R.YW(N).then(function(){return eQ(new OtP(R,R.V))},function(C){C instanceof Error&&g.G$(C); var X=cD('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),u=yC('audio/mp4; codecs="mp4a.40.2"'),f=X||u,H=R.isLivePlayback&&!g.WH(J.U,!0);C="fmt.noneavailable";H?C="html5.unsupportedlive":f||(C="html5.missingapi");f=H||!f?2:1;X={buildRej:"1",a:R.hF(),d:!!R.H1,drm:R.Ha(),f18:R.OQ.indexOf("itag=18")>=0,c18:X};R.K&&(R.Ha()?(X.f142=!!R.K.K["142"],X.f149=!!R.K.K["149"],X.f279=!!R.K.K["279"]):(X.f133=!!R.K.K["133"],X.f140=!!R.K.K["140"],X.f242=!!R.K.K["242"]),X.cAAC=u,X.cAVC=yC('video/mp4; codecs="avc1.42001E"'), X.cVP9=yC('video/webm; codecs="vp9"'));R.U&&(X.drmsys=R.U.keySystem,u=0,R.U.K&&(u=Object.keys(R.U.K).length),X.drmst=u);return new PD(C,X,f)})}; As=function(J){this.data=window.Float32Array?new Float32Array(J):Array(J);this.J=this.K=J-1}; dT8=function(J){return J.data[J.K]||0}; qgf=function(J){this.U=J;this.V=this.J=0;this.Z=new As(50)}; r6=function(J,R,N){g.al.call(this);this.videoData=J;this.experiments=R;this.S=N;this.J=[];this.Z=0;this.V=!0;this.U=!1;this.D=0;N=new A$P;J.latencyClass==="ULTRALOW"&&(N.Z=!1);J.oB?N.J=3:g.qn(J)&&(N.J=2);J.latencyClass==="NORMAL"&&(N.U=!0);var C=g.di(R,"html5_liveness_drift_proxima_override");if(a5(J)!==0&&C){N.K=C;var X;((X=J.K)==null?0:bGQ(X))&&N.K--}iY(J)&&R.b3("html5_sabr_parse_live_metadata_playback_boundaries")&&(N.D=!0);if(g.Jf("trident/")||g.Jf("edge/"))X=g.di(R,"html5_platform_minimum_readahead_seconds")|| 3,N.V=Math.max(N.V,X);g.di(R,"html5_minimum_readahead_seconds")&&(N.V=g.di(R,"html5_minimum_readahead_seconds"));g.di(R,"html5_maximum_readahead_seconds")&&(N.S=g.di(R,"html5_maximum_readahead_seconds"));R.b3("html5_force_adaptive_readahead")&&(N.Z=!0);if(R=g.di(R,"html5_liveness_drift_chunk_override"))N.K=R;KA(J)&&(N.K=(N.K+1)/5,J.latencyClass==="LOW"&&(N.K*=2));this.policy=N;this.X=this.policy.J!==1;this.K=Y4(this,YgE(this,isNaN(J.liveChunkReadahead)?3:J.liveChunkReadahead,J))}; r$8=function(J,R){if(R)return R=J.videoData,R=YgE(J,isNaN(R.liveChunkReadahead)?3:R.liveChunkReadahead,R),Y4(J,R);if(J.J.length){if(Math.min.apply(null,J.J)>1)return Y4(J,J.K-1);if(J.policy.Z)return Y4(J,J.K+1)}return J.K}; j3Y=function(J,R){if(!J.J.length)return!1;var N=J.K;J.K=r$8(J,R===void 0?!1:R);if(R=N!==J.K)J.J=[],J.Z=0;return R}; j1=function(J,R){return R>=J.Nj()-mTQ(J)}; VxE=function(J,R,N){R=j1(J,R);N||R?R&&(J.V=!0):J.V=!1;J.X=J.policy.J===2||J.policy.J===3&&J.V}; g0B=function(J,R){R=j1(J,R);J.U!==R&&J.publish("livestatusshift",R);J.U=R}; mTQ=function(J){var R=J.policy.K;J.U||(R=Math.max(R-1,0));return R*ml(J)}; YgE=function(J,R,N){N.oB&&R--;KA(N)&&(R=1);if(a5(N)!==0&&(J=g.di(J.experiments,"html5_live_chunk_readahead_proxima_override"))){R=J;var C;((C=N.K)==null?0:bGQ(C))&&R++}return R}; ml=function(J){return J.videoData.K?Yr(J.videoData.K)||5:5}; Y4=function(J,R){R=Math.max(Math.max(1,Math.ceil(J.policy.V/ml(J))),R);return Math.min(Math.min(8,Math.floor(J.policy.S/ml(J))),R)}; A$P=function(){this.V=0;this.S=Infinity;this.Z=!0;this.K=2;this.J=1;this.D=this.U=!1}; UH=function(J){g.l.call(this);this.RB=J;this.K=0;this.J=null;this.S=this.Z=0;this.V={};this.KC=this.RB.N();this.U=new g.$t(this.hY,1E3,this);this.oB=new V6({delayMs:g.di(this.KC.experiments,"html5_seek_timeout_delay_ms")});this.VO=new V6({delayMs:g.di(this.KC.experiments,"html5_long_rebuffer_threshold_ms")});this.EB=g6(this,"html5_seek_set_cmt");this.l3=g6(this,"html5_seek_jiggle_cmt");this.HC=g6(this,"html5_seek_new_elem");this.YA=g6(this,"html5_unreported_seek_reseek");this.ma=g6(this,"html5_long_rebuffer_jiggle_cmt"); this.PC=g6(this,"html5_long_rebuffer_ssap_clip_not_match");this.tN=new V6({delayMs:2E4});this.pC=g6(this,"html5_seek_new_elem_shorts");this.Xk=g6(this,"html5_seek_new_media_source_shorts_reuse");this.eQ=g6(this,"html5_seek_new_media_element_shorts_reuse");this.T7=g6(this,"html5_reseek_after_time_jump");this.X=g6(this,"html5_gapless_handoff_close_end_long_rebuffer");this.nC=g6(this,"html5_gapless_slow_seek");this.W=g6(this,"html5_gapless_slice_append_stuck");this.dn=g6(this,"html5_gapless_slow_start"); this.D=g6(this,"html5_ads_preroll_lock_timeout");this.TW=g6(this,"html5_ssap_ad_longrebuffer_new_element");this.GW=new V6({delayMs:g.di(this.KC.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Pt:!this.KC.T("html5_report_slow_ads_as_error")});this.R1=new V6({delayMs:g.di(this.KC.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Pt:!this.KC.T("html5_skip_slow_buffering_ad")});this.VK=new V6({delayMs:g.di(this.KC.experiments,"html5_slow_start_timeout_delay_ms")});this.G7=g6(this,"html5_slow_start_no_media_source"); g.P(this,this.U)}; g6=function(J,R){var N=g.di(J.KC.experiments,R+"_delay_ms");J=J.KC.T(R+"_cfl");return new V6({delayMs:N,Pt:J})}; UTf=function(J,R){J.K=R}; pk=function(J,R,N,C,X,u,f,H){R.test(N)?(J.us(X,R,f),R.Pt||u()):(R.Mx&&R.J&&!R.Z?(N=(0,g.g9)(),C?R.K||(R.K=N):R.K=0,u=!C&&N-R.J>R.Mx,N=R.K&&N-R.K>R.kM||u?R.Z=!0:!1):N=!1,N&&(H=Object.assign({},J.fP(R),H),H.wn=f,H.we=X,H.wsuc=C,J.RB.u3("workaroundReport",H),C&&(R.reset(),J.V[X]=!1)))}; V6=function(J){var R=J===void 0?{}:J;J=R.delayMs===void 0?0:R.delayMs;var N=R.kM===void 0?1E3:R.kM;var C=R.Mx===void 0?3E4:R.Mx;R=R.Pt===void 0?!1:R.Pt;this.K=this.J=this.V=this.startTimestamp=0;this.Z=!1;this.U=Math.ceil(J/1E3);this.kM=N;this.Mx=C;this.Pt=R}; zOf=function(J){g.l.call(this);var R=this;this.RB=J;this.S=this.K=this.vC=this.mediaElement=this.playbackData=null;this.Z=0;this.U=this.nC=this.V=null;this.dn=!1;this.GW=0;this.X=!1;this.timestampOffset=0;this.D=!0;this.l3=0;this.HC=this.VK=!1;this.W=0;this.Xk=!1;this.ma=0;this.KC=this.RB.N();this.videoData=this.RB.getVideoData();this.policy=new pYg;this.tN=new UH(this.RB);this.oB=this.T7=this.G7=this.J=NaN;this.PC=new g.$t(function(){loE(R,!1)},2E3); this.R1=new g.$t(function(){l9(R)}); this.pC=new g.$t(function(){R.dn=!0;Pp7(R,{})}); this.EB=NaN;this.VO=new g.$t(function(){var N=R.KC.lr;N.K+=1E4/36E5;N.K-N.V>1/6&&(TUn(N),N.V=N.K);R.VO.start()},1E4); g.P(this,this.tN);g.P(this,this.PC);g.P(this,this.pC);g.P(this,this.R1);g.P(this,this.VO)}; c$2=function(J,R){J.playbackData=R;J.videoData.isLivePlayback&&(J.S=new qgf(function(){a:{if(J.playbackData&&J.playbackData.K.K){if(kz(J.videoData)&&J.vC){var N=J.vC.ZT.Gj()||0;break a}if(J.videoData.K){N=J.videoData.K.tN;break a}}N=0}return N}),J.K=new r6(J.videoData,J.KC.experiments,function(){return J.AY(!0)})); PI(J.RB)?(R=eOY(J),R.C_?(J.T("html5_sabr_enable_utc_seek_requests")&&iY(J.videoData)&&J.zw(R.C_,R.startSeconds),J.Z=R.startSeconds):R.startSeconds>0&&J.seekTo(R.startSeconds,{hL:"seektimeline_startPlayback",seekSource:15}),J.D=!1):wYg(J)||(J.Z=J.Z||(g.vJ(J.videoData)?0:J.videoData.startSeconds)||0)}; y$E=function(J,R){(J.vC=R)?hO2(J,!0):z3(J)}; Gx2=function(J,R){g.HK(J.tN.U);J.T("html5_exponential_memory_for_sticky")&&(R.state.isPlaying()?g.HK(J.VO):J.VO.stop());if(J.mediaElement)if(R.Ca.state===8&&rD(R.state)&&R.state.isBuffering()){R=J.mediaElement.getCurrentTime();var N=J.mediaElement.BV();var C=J.T("manifestless_post_live_ufph")||J.T("manifestless_post_live")?a6(N,Math.max(R-3.5,0)):a6(N,R-3.5);C>=0&&R>N.end(C)-1.1&&C+10?(e1(J.RB,J.getCurrentTime()+J.videoData.limitedPlaybackDurationInSeconds),J.HC=!0):J.videoData.isLivePlayback&&J.videoData.endSeconds>0&&(e1(J.RB,J.getCurrentTime()+J.videoData.endSeconds),J.HC=!0))}; txE=function(J,R){var N=J.getCurrentTime(),C=J.isAtLiveHead(N);if(J.S&&C){var X=J.S;if(X.K&&!(N>=X.J&&N50&&X.J.shift())),X=J.K,VxE(X,N,R===void 0?!0:R),g0B(X,N),R&&loE(J,!0));C!==J.VK&&(R=J.getCurrentTime()-J.oB<=500,N=J.GW>=1E3,R||N||(R=J.RB.xA(),R.qoe&&(R=R.qoe,N=g.m0(R.provider), g.k4(R,N,"lh",[C?"1":"0"])),J.VK=C,J.GW++,J.oB=J.getCurrentTime()))}; loE=function(J,R){if(J.K){var N=J.K;var C=J.getCurrentTime();!j1(N,C)&&N.Cm()?(N.policy.U&&(N.policy.K=Math.max(N.policy.K+1,10)),N=Infinity):N=C0&&z0(J.mediaElement)>0&&(J.J=w6(J,J.J,!1)),!J.mediaElement||!N7B(J))J.R1.start(750);else if(!isNaN(J.J)&&isFinite(J.J)){var R=J.T7-(J.J-J.timestampOffset);if(!(R===0||J.T("html5_enable_new_seek_timeline_logic")&&Math.abs(R)<.005))if(R=J.mediaElement.getCurrentTime()-J.J,Math.abs(R)<=J.l3||J.T("html5_enable_new_seek_timeline_logic")&&Math.abs(R)<.005)J.V&&J.V.resolve(J.mediaElement.getCurrentTime()); else{if(J.videoData.dM)J.videoData.dM=!1;else if(!HJ(J.videoData)&&J.J>=J.AY()-.1){J.J=J.AY();J.V.resolve(J.AY());cI(J.RB);return}try{var N=J.J-J.timestampOffset;J.mediaElement.seekTo(N);J.tN.K=N;J.T7=N;J.Z=J.J;J.T("html5_enable_new_seek_timeline_logic")&&(J.X=!1)}catch(C){}}}}; N7B=function(J){if(!J.mediaElement||J.mediaElement.UV()===0||J.mediaElement.hasError())return!1;var R=J.mediaElement.getCurrentTime()>0;if(!(J.videoData.V&&J.videoData.V.K||J.videoData.isLivePlayback)&&J.videoData.Ha())return R;if(J.J>=0){var N=J.mediaElement.uR();if(N.length||!R)return Qp(N,J.J-J.timestampOffset)}return R}; Rkg=function(J,R){J.U&&(J.U.resolve(R),J.RB.m1(),J.KC.Si()&&(R=J.fP(),R["native"]=""+ +J.X,R.otgt=""+(J.J+J.timestampOffset),J.RB.u3("seekEnd",R)));z3(J)}; z3=function(J){J.J=NaN;J.T7=NaN;J.V=null;J.nC=null;J.U=null;J.dn=!1;J.X=!1;J.l3=0;J.PC.stop();J.pC.stop()}; iog=function(J,R,N){var C=J.mediaElement,X=R.type;switch(X){case "seeking":var u=C.getCurrentTime()+J.timestampOffset;if(!J.V||J.X&&u!==J.J){var f=!!J.V;J.V=new lM;J.T("html5_enable_new_seek_timeline_logic")&&J.V.then(function(k){Rkg(J,k)},function(){z3(J)}); if(J.videoData.isAd()){var H;aIg({adCpn:J.videoData.clientPlaybackNonce,contentCpn:(H=J.videoData.yf)!=null?H:""},R.K)}J.T7=u;UTf(J.tN,C.getCurrentTime());J.seekTo(u,{seekSource:104,hL:"seektimeline_mediaElementEvent"});N&&C_7(N,u*1E3,!!f);J.X=!0}break;case "seeked":J.V&&J.V.resolve(J.mediaElement.getCurrentTime());break;case "loadedmetadata":PI(J.RB)||Xx2(J);l9(J);break;case "progress":l9(J);break;case "pause":J.W=J.getCurrentTime()}J.W&&((X==="play"||X==="playing"||X==="timeupdate"||X==="progress")&& J.getCurrentTime()-J.W>10&&(J.T("html5_enable_new_media_element_puase_jump")?(J.RB.us(new PD("qoe.restart",{reason:"pauseJump"})),h4(J.RB)):J.seekTo(J.W,{hL:"pauseJump"})),X!=="pause"&&X!=="play"&&X!=="playing"&&X!=="progress"&&(J.W=0))}; uhB=function(J){return(Aq(J.videoData)||!!J.videoData.liveUtcStartSeconds)&&(!!J.videoData.liveUtcStartSeconds||wYg(J))&&!!J.videoData.K}; wYg=function(J){return!!J.videoData.startSeconds&&isFinite(J.videoData.startSeconds)&&J.videoData.startSeconds>1E9}; eOY=function(J){var R=0,N=NaN,C="";if(!J.D)return{startSeconds:R,C_:N,source:C};J.videoData.PC?R=J.videoData.G7:HJ(J.videoData)&&(R=Infinity);if(g.qn(J.videoData))return{startSeconds:R,C_:N,source:C};J.videoData.startSeconds?(C="ss",R=J.videoData.startSeconds):J.videoData.wN&&(C="stss",R=J.videoData.wN);J.videoData.liveUtcStartSeconds&&(N=J.videoData.liveUtcStartSeconds);if(isFinite(R)&&(R>J.AY()||RJ.AY()||N 0?(C.onesie="0",J.handleError(new PD("html5.missingapi",C)),!1):!0}; LoB=function(J){var R=Ku();a1(R,J);return g.AM(R,dDE())}; vRf=function(J,R){var N,C,X,u,f,H,k,v,W,S,L,I,F,a,n,B,Z,A,V,p,b,w,RQ,$E,G,e;return g.Y(function(t){if(t.K==1)return R.fetchType="onesie",N=$Bk(R,J.getPlayerSize(),J.getVisibilityState()),C=new Yv(J,N),g.q(t,C.fetch(),2);X=t.J;u={player_response:X};R.loading=!1;f=J.wk.I7;if(C.UQ){H=g.K(C.UQ.entries());for(k=H.next();!k.done;k=H.next())v=k.value,W=g.K(v),S=W.next().value,L=W.next().value,I=S,F=L,f.K.set(I,F,180),I===R.videoId&&(a=F.SL(),R.j6=a);f.im=C}n=g.K(C.GH.entries());for(B=n.next();!B.done;B= n.next())Z=B.value,A=g.K(Z),V=A.next().value,p=A.next().value,b=V,w=p,f.J.set(b,w,180);g.Nn(R,u,!0);if(R.loading||Jq(R))return t.return(Promise.resolve());f.K.removeAll();f.J.removeAll();R.j6=[];RQ={};$E="onesie.response";G=0;R.errorCode?($E="auth",RQ.ec=R.errorCode,RQ.ed=R.errorDetail,RQ.es=R.l4||"",G=2):(RQ.successButUnplayable="1",RQ.disposed=""+ +R.QO(),RQ.afmts=""+ +/adaptiveFormats/.test(X),RQ.cpn=R.clientPlaybackNonce);e=new PD($E,RQ,G);return t.return(Promise.reject(e))})}; HoB=function(J,R){var N,C,X,u,f,H,k,v,W,S,L;return g.Y(function(I){switch(I.K){case 1:N=R.isAd(),C=!N,X=N?1:3,u=0;case 2:if(!(u0)){I.ZM(5);break}return g.q(I,AB(5E3),6);case 6:f=new g.C3("Retrying OnePlatform request",{attempt:u}),g.G$(f);case 5:return g.Ef(I,7),g.q(I,IJn(J,R),9);case 9:return I.return();case 7:H=g.K2(I);k=ey(H);v=k.errorCode;W=J.N();S=W.T("html5_use_network_error_code_enums")?401:"401";C&&v==="manifest.net.badstatus"&&k.details.rc===S&&(C=!1,u===X-1&&(X+= 1));if(u===X-1)return L=Fo8(N,k.details),L.details.backend="op",L.details.originec=v,I.return(Promise.reject(L));if(v==="auth"||v==="manifest.net.retryexhausted")return I.return(Promise.reject(k));J.handleError(k);if(zi(k.severity)){I.ZM(4);break}case 3:u++;I.ZM(2);break;case 4:return I.return(Promise.reject(Fo8(N,{backend:"op"})))}})}; IJn=function(J,R){function N($E){$E.readyState===2&&J.gk("ps_c")} var C,X,u,f,H,k,v,W,S,L,I,F,a,n,B,Z,A,V,p,b,w,RQ;return g.Y(function($E){switch($E.K){case 1:R.fetchType="gp";C=J.N();X=g.Wm(C,g.PJ(R));if(!X.K){u=X.getValue();$E.ZM(2);break}return g.q($E,X.K,3);case 3:u=$E.J;case 2:return f=u,H=LoB(f),k=$Bk(R,J.getPlayerSize(),J.getVisibilityState()),v=g.Em(ERB),W=g.PJ(R),S=(0,g.g9)(),L=!1,I="empty",F=0,J.gk("psns"),a={gi:N},g.q($E,g.Kn(H,k,v,void 0,a),4);case 4:n=$E.J;J.gk("psnr");if(R.QO())return $E.return();n?"error"in n&&n.error?(L=!0,I="esf:"+n.error.message, F=n.error.code):n.errorMetadata&&(L=!0,I="its",F=n.errorMetadata.status):L=!0;if(L)return B=0,Z=((0,g.g9)()-S).toFixed(),A={},A=C.T("html5_use_network_error_code_enums")?{backend:"op",rc:F,rt:Z,reason:I,has_kpt:R.EB?"1":"0",has_mdx_env:R.mdxEnvironment?"1":"0",has_omit_key_flag:g.iL("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:C.pageId?"1":"0",has_token:W?"1":"0",has_vvt:R.dn?"1":"0",is_mdx:R.isMdxPlayback?"1":"0",mdx_ctrl:R.Vp||"",token_eq:W===g.PJ(R)?"1":"0"}:{backend:"op", rc:""+F,rt:Z,reason:I,has_kpt:R.EB?"1":"0",has_mdx_env:R.mdxEnvironment?"1":"0",has_omit_key_flag:g.iL("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:C.pageId?"1":"0",has_token:W?"1":"0",has_vvt:R.dn?"1":"0",is_mdx:R.isMdxPlayback?"1":"0",mdx_ctrl:R.Vp||"",token_eq:W===g.PJ(R)?"1":"0"},V="manifest.net.connect",F===429?(V="auth",B=2):F>200&&(V="manifest.net.badstatus",F===400&&(B=2)),$E.return(Promise.reject(new PD(V,A,B)));R.loading=!1;g.Nn(R,{raw_player_response:n},!0); p=n;g.zn(R.N())&&p&&p.trackingParams&&zw(p.trackingParams);if(R.errorCode)return b={ec:R.errorCode,ed:R.errorDetail,es:R.l4||""},$E.return(Promise.reject(new PD("auth",b,2)));if(!R.loading&&!Jq(R))return w=R.isAd()?"auth":"manifest.net.retryexhausted",RQ=R.isAd()?2:1,$E.return(Promise.reject(new PD(w,{successButUnplayable:"1",hasMedia:g.OU(R)?"1":"0"},RQ)));g.IQ($E)}})}; $Zg=function(J,R,N){function C(F){F=ey(F);if(zi(F.severity))return Promise.reject(F);J.handleError(F);return!1} function X(){return!0} var u,f,H,k,v,W,S,L,I;return g.Y(function(F){switch(F.K){case 1:var a=J.N(),n=J.getPlayerSize(),B=J.getVisibilityState();J.isFullscreen();var Z=window.location.search;if(R.partnerId===38&&a.playerStyle==="books")Z=R.videoId.indexOf(":"),Z=g.bD("//play.google.com/books/volumes/"+R.videoId.slice(0,Z)+"/content/media",{aid:R.videoId.slice(Z+1),sig:R.Nc});else if(R.partnerId===30&&a.playerStyle==="docs")Z=g.bD("https://docs.google.com/get_video_info",{docid:R.videoId,authuser:R.Vs,authkey:R.A0,eurl:a.EB}); else if(R.partnerId===33&&a.playerStyle==="google-live")Z=g.bD("//google-liveplayer.appspot.com/get_video_info",{key:R.videoId});else{a.nC!=="yt"&&g.yD(Error("getVideoInfoUrl for invalid namespace: "+a.nC));var A={html5:"1",video_id:R.videoId,cpn:R.clientPlaybackNonce,eurl:a.EB,ps:a.playerStyle,el:gO(R),hl:a.VK,list:R.playlistId,agcid:R.m0,aqi:R.adQueryId,sts:20062,lact:UK()};Object.assign(A,a.K);a.forcedExperiments&&(A.forced_experiments=a.forcedExperiments);R.dn?(A.vvt=R.dn,R.mdxEnvironment&&(A.mdx_environment= R.mdxEnvironment)):g.PJ(R)&&(A.access_token=g.PJ(R));R.adFormat&&(A.adformat=R.adFormat);R.slotPosition>=0&&(A.slot_pos=R.slotPosition);R.breakType&&(A.break_type=R.breakType);R.CD!==null&&(A.ad_id=R.CD);R.SE!==null&&(A.ad_sys=R.SE);R.qH!==null&&(A.encoded_ad_playback_context=R.qH);a.captionsLanguagePreference&&(A.cc_lang_pref=a.captionsLanguagePreference);a.R1&&a.R1!==2&&(A.cc_load_policy=a.R1);var V=g.xI(g.tf(),65);g.Xk(a)&&V!=null&&!V&&(A.device_captions_on="1");a.mute&&(A.mute=a.mute);R.annotationsLoadPolicy&& a.annotationsLoadPolicy!==2&&(A.iv_load_policy=R.annotationsLoadPolicy);R.Hn&&(A.endscreen_ad_tracking=R.Hn);(V=a.G7.get(R.videoId))&&V.gB&&(A.ic_track=V.gB);R.VO&&(A.itct=R.VO);PUk(R)&&(A.autoplay="1");R.mutedAutoplay&&(A.mutedautoplay=R.mutedAutoplay);R.isAutonav&&(A.autonav="1");R.aq&&(A.noiba="1");R.isMdxPlayback&&(A.mdx="1",A.ytr=R.RE);R.mdxControlMode&&(A.mdx_control_mode=R.mdxControlMode);R.n8&&(A.ytrcc=R.n8);R.H8&&(A.utpsa="1");R.isFling&&(A.is_fling="1");R.isInlinePlaybackNoAd&&(A.mute="1"); R.vnd&&(A.vnd=R.vnd);R.forceAdsUrl&&(V=R.forceAdsUrl.split("|").length===3,A.force_ad_params=V?R.forceAdsUrl:"||"+R.forceAdsUrl);R.j2&&(A.preload=R.j2);n.width&&(A.width=n.width);n.height&&(A.height=n.height);(R.Im?0:R.AL)&&(A.splay="1");R.ypcPreview&&(A.ypc_preview="1");pA(R)&&(A.content_v=pA(R));R.oB&&(A.livemonitor=1);a.ma&&(A.authuser=a.ma);a.pageId&&(A.pageid=a.pageId);a.Xk&&(A.ei=a.Xk);a.Z&&(A.iframe="1");R.contentCheckOk&&(A.cco="1");R.racyCheckOk&&(A.rco="1");a.D&&R.s1&&(A.live_start_walltime= R.s1);a.D&&R.IE&&(A.live_manifest_duration=R.IE);a.D&&R.playerParams&&(A.player_params=R.playerParams);a.D&&R.cycToken&&(A.cyc=R.cycToken);a.D&&R.z_&&(A.tkn=R.z_);B!==0&&(A.vis=B);a.enableSafetyMode&&(A.enable_safety_mode="1");R.EB&&(A.kpt=R.EB);R.bT&&(A.kids_age_up_mode=R.bT);R.kidsAppInfo&&(A.kids_app_info=R.kidsAppInfo);R.TK&&(A.upg_content_filter_mode="1");a.widgetReferrer&&(A.widget_referrer=a.widgetReferrer.substring(0,128));R.nC?(n=R.nC.latitudeE7!=null&&R.nC.longitudeE7!=null?R.nC.latitudeE7+ ","+R.nC.longitudeE7:",",n+=","+(R.nC.clientPermissionState||0)+","+(R.nC.locationRadiusMeters||"")+","+(R.nC.locationOverrideToken||"")):n=null;n&&(A.uloc=n);R.U2&&(A.internalipoverride=R.U2);a.embedConfig&&(A.embed_config=a.embedConfig);a.i4&&(A.co_rel="1");a.ancestorOrigins.length>0&&(A.ancestor_origins=Array.from(a.ancestorOrigins).join(","));a.homeGroupInfo!==void 0&&(A.home_group_info=a.homeGroupInfo);a.livingRoomAppMode!==void 0&&(A.living_room_app_mode=a.livingRoomAppMode);a.enablePrivacyFilter&& (A.enable_privacy_filter="1");R.isLivingRoomDeeplink&&(A.is_living_room_deeplink="1");R.pk&&R.r6&&(A.clip=R.pk,A.clipt=R.r6);R.yM&&(A.disable_watch_next="1");R.Ze&&(A.forced_by_var="1");for(var p in A)!MDE.has(p)&&A[p]&&String(A[p]).length>512&&(g.G$(Error("GVI param too long: "+p)),A[p]="");p=a.tN;g.eh(a)&&(p=Lw(p.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.tN);a=g.bD(p+"get_video_info",A);Z&&(a=ZHE(a,Z));Z=a}u=Z;H=(f=R.isAd())?1:3;k=0;case 2:if(!(k0)){F.ZM(5);break}return g.q(F, AB(5E3),6);case 6:W={playerretry:k,playerretrysrc:N},f||(W.recover="embedded"),v=Fi(u,W);case 5:return g.q(F,Kon(R,v).then(X,C),7);case 7:if(S=F.J)return F.return();k++;F.ZM(2);break;case 4:L=f?"auth":"manifest.net.retryexhausted";I=f?2:1;if(!f&&Math.random()<1E-4)try{g.G$(new g.C3("b/152131571",btoa(u)))}catch(b){}return F.return(Promise.reject(new PD(L,{backend:"gvi"},I)))}})}; Kon=function(J,R){function N(n){return C(n.xhr)} function C(n){if(!J.QO()){n=n?n.status:-1;var B=0,Z=((0,g.g9)()-W).toFixed();Z=X.T("html5_use_network_error_code_enums")?{backend:"gvi",rc:n,rt:Z}:{backend:"gvi",rc:""+n,rt:Z};var A="manifest.net.connect";n===429?(A="auth",B=2):n>200&&(A="manifest.net.badstatus",n===400&&(B=2));return Promise.reject(new PD(A,Z,B))}} var X,u,f,H,k,v,W,S,L,I,F,a;return g.Y(function(n){if(n.K==1){J.fetchType="gvi";X=J.N();var B={};J.T_&&(B.ytrext=J.T_);(H=g.rq(B)?void 0:B)?(u={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:H},f=Fi(R,{action_display_post:1})):(u={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},f=R);k={};X.sendVisitorIdHeader&&J.visitorData&&(k["X-Goog-Visitor-Id"]=J.visitorData);(v=$S(X.experiments,"debug_sherlog_username"))&&(k["X-Youtube-Sherlog-Username"]=v);Object.keys(k).length> 0&&(u.headers=k);W=(0,g.g9)();return g.q(n,M8(p4,f,u).then(void 0,N),2)}S=n.J;if(!S||!S.responseText)return n.return(C(S));J.loading=!1;L=WR(S.responseText);g.Nn(J,L,!0);if(J.errorCode)return I={ec:J.errorCode,ed:J.errorDetail,es:J.l4||""},n.return(Promise.reject(new PD("auth",I,2)));if(!J.loading&&!Jq(J))return F=J.isAd()?"auth":"manifest.net.retryexhausted",a=J.isAd()?2:1,n.return(Promise.reject(new PD(F,{successButUnplayable:"1"},a)));g.IQ(n)})}; Fo8=function(J,R){return new PD(J?"auth":"manifest.net.retryexhausted",R,J?2:1)}; ts=function(J,R,N){N=N===void 0?!1:N;var C,X,u,f;g.Y(function(H){if(H.K==1){C=J.N();if(N&&(!g.uv(C)||gO(R)!=="embedded")||R.yM||gO(R)!=="adunit"&&(g.eG(C)||ba(C)||g.N3(C)||g.eh(C)||fs(C)==="WEB_CREATOR"))return H.return();X=g.Wm(C,g.PJ(R));return X.K?g.q(H,X.K,3):(u=X.getValue(),H.ZM(2))}H.K!=2&&(u=H.J);f=u;return H.return(aJf(J,R,f))})}; aJf=function(J,R,N){var C,X,u,f,H;return g.Y(function(k){if(k.K==1){g.Ef(k,2);C=LoB(N);var v=R.N();g.tf();var W={context:g.yY(R),videoId:R.videoId,racyCheckOk:R.racyCheckOk,contentCheckOk:R.contentCheckOk,autonavState:"STATE_NONE"};gO(R)==="adunit"&&(W.isAdPlayback=!0);v.embedConfig&&(W.serializedThirdPartyEmbedConfig=v.embedConfig);v.i4&&(W.showContentOwnerOnly=!0);R.jI&&(W.showShortsOnly=!0);g.xI(0,141)&&(W.autonavState=g.xI(0,140)?"STATE_OFF":"STATE_ON");if(g.Xk(v)){var S=g.xI(0,65);S=S!=null? !S:!1;var L=!!g.wJ("yt-player-sticky-caption");W.captionsRequested=S&&L}var I;if(v=(I=v.getWebPlayerContextConfig())==null?void 0:I.encryptedHostFlags)W.playbackContext={encryptedHostFlags:v};X=W;u=g.Em(QBY);J.gk("wn_s");return g.q(k,g.Kn(C,X,u),4)}if(k.K!=2)return f=k.J,J.gk("wn_r"),!f||"error"in f&&f.error||(H=f,g.zn(R.N())&&H.trackingParams&&zw(H.trackingParams),g.Nn(R,{raw_watch_next_response:f},!1)),g.MP(k,0);g.K2(k);g.IQ(k)})}; nR2=function(J){J.gk("vir");J.gk("ps_s");F8("vir",void 0,"video_to_ad");var R=STY(J);R.then(function(){J.gk("virc");F8("virc",void 0,"video_to_ad");J.gk("ps_r");F8("ps_r",void 0,"video_to_ad")},function(){J.gk("virc"); F8("virc",void 0,"video_to_ad")}); return R}; g.oC=function(J,R,N,C,X,u,f,H,k,v){k=k===void 0?new g.xC(J):k;v=v===void 0?!0:v;g.al.call(this);var W=this;this.KC=J;this.playerType=R;this.qR=N;this.Kr=C;this.getVisibilityState=u;this.visibility=f;this.wk=H;this.videoData=k;this.XI=v;this.logger=new g.Pi("VideoPlayer");this.mW=new Bv2(this.KC);this.aG=null;this.Cl=new Nr;this.pw=null;this.Bd=new V1n(this.KC,this.Kr,this);this.Z1=!0;this.Mp=this.vC=null;this.Ni=[];this.bb=new b9;this.cw=this.Rj=null;this.Zq=new b9;this.F6=null;this.xl=this.jL=!1; this.cJ=NaN;this.iA=!1;this.playerState=new g.hy;this.m8=[];this.Ma=new g.tY;this.MV=new n42(this);this.mediaElement=null;this.JB=new g.$t(this.kWM,15E3,this);this.tA=this.Av=!1;this.zP=NaN;this.TE=!1;this.zB=0;this.BO=!1;this.Ny=NaN;this.WM=new hs(new Map([["bufferhealth",function(){return btB(W.Ci)}], ["bandwidth",function(){return W.q9()}], ["networkactivity",function(){return W.KC.schedule.ma}], ["livelatency",function(){return W.isAtLiveHead()&&W.isPlaying()?DZQ(W):NaN}], ["rawlivelatency",function(){return DZQ(W)}]])); this.OZ=0;this.loop=!1;this.playbackRate=1;this.Zt=0;this.Ci=new zOf(this);this.ZJ=!1;this.g0=[];this.jN=this.t5=0;this.JA=this.Pj=!1;this.RJ=this.N8=0;this.uW=-1;this.O8="";this.M_=new g.$t(this.Jj,0,this);this.hK=!1;this.k8=this.lS=null;this.unQ=[this.Ma,this.M_,this.JB,this.WM];this.Lr=this.dH=null;this.Fe=function(){var S=W.xA();S.provider.KC.rN||S.provider.RB.getVisibilityState()===3||(S.provider.KC.rN=!0);$TE(S);if(S.J){var L=S.J;L.U&&L.K<0&&L.provider.RB.getVisibilityState()!==3&&o5f(L)}S.qoe&& (S=S.qoe,S.HC&&S.J<0&&S.provider.KC.rN&&OpP(S),S.V&&WI(S));W.vC&&x4(W);W.KC.P_&&!W.videoData.backgroundable&&W.mediaElement&&!W.Zy()&&(W.isBackground()&&W.mediaElement.gG()?(W.u3("bgmobile",{suspend:1}),W.Qd(!0,!0)):W.isBackground()||JZ(W)&&W.u3("bgmobile",{resume:1}))}; this.QR={r5:function(S){W.r5(S)}, CPB:function(S){W.aG=S}, N5B:function(){return W.z6}, w_:function(){return W.Xo}, g0k:function(){return W.XO}, miM:function(){return W.aI}, aXB:function(){}, N:function(){return W.KC}, oG:function(){return W.mediaElement}, oD7:function(S){W.ow(S)}}; this.logger.debug(function(){return"creating, type "+R}); this.Cb=new d6(function(){return W.getCurrentTime()},function(){return W.getPlaybackRate()},function(){return W.getPlayerState()},function(S,L){S!==g.Q3("endcr")||g.h(W.playerState,32)||cI(W); X(S,L,W.playerType)},function(S,L){g.vJ(W.videoData)&&W.u3(S,L)}); g.P(this,this.Cb);g.P(this,this.Ci);sB8(this,k);this.videoData.subscribe("dataupdated",this.pUO,this);this.videoData.subscribe("dataloaded",this.JO,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.u3,this);this.videoData.subscribe("ctmpstr",this.yE,this);this.Wl();agE(this.Fe);this.visibility.subscribe("visibilitystatechange",this.Fe);this.XO=new g.$t(this.HJ,g.di(this.KC.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.aI= new g.$t(this.HJ,g.di(this.KC.experiments,"html5_player_att_retry_delay_ms")||4500,this)}; Vp=function(J){return J.T("html5_not_reset_media_source")&&!J.Ha()&&!J.videoData.isLivePlayback&&g.UU(J.videoData)&&!J.KC.supportsGaplessShorts()}; sB8=function(J,R){if(J.playerType===2||J.KC.H_)R.LM=!0;var N=oXB(R.Xn,R.hV,J.KC.Z,J.KC.D);N&&(R.adFormat=N);J.playerType===2&&(R.Pa=!0);if(J.isFullscreen()||J.KC.Z)N=g.wJ("yt-player-autonavstate"),R.autonavState=N||(J.KC.Z?2:J.videoData.autonavState);R.endSeconds&&R.endSeconds>R.startSeconds&&e1(J,R.endSeconds)}; B7E=function(J){if(J.videoData.W){var R=J.wk.Us();J.videoData.Ck=J.videoData.Ck||(R==null?void 0:R.UD());J.videoData.G$=J.videoData.G$||(R==null?void 0:R.GF())}if(rOB(J.videoData)||!xC8(J.videoData))R=J.videoData.errorDetail,J.As(J.videoData.errorCode||"auth",2,unescape(J.videoData.errorReason),R,R,J.videoData.l4||void 0);J.T("html5_generate_content_po_token")&&J.S6();J.T("html5_enable_d6de4")&&J.TR();if(J.T("html5_ssap_cleanup_player_switch_ad_player")||J.T("html5_ssap_cleanup_ad_player_on_new_data"))if(R= J.wk.bS())J.O8=R.clientPlaybackNonce}; OoQ=function(J){Htn(J.z6);g.XV(J.z6);for(var R=J.Xo,N=g.K(R.K.values()),C=N.next();!C.done;C=N.next())Htn(C.value);R.K.clear();g.XV(J.Xo)}; ZoB=function(J){return J.mediaElement&&J.mediaElement.Uu()?J.mediaElement.Ov():null}; RC=function(J){if(J.T("html5_check_video_data_errors_before_playback_start")&&J.videoData.errorCode)return!1;J.N().S&&J.N().houseBrandUserStatus&&J.u3("hbut",{status:J.N().houseBrandUserStatus});if(J.videoData.Da())return!0;J.As("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.Nt=function(J,R){(R=R===void 0?!1:R)||g.vJ(J.videoData)||OH(J.xA());J.jL=R;!RC(J)||J.bb.B$()?g.eG(J.KC)&&J.videoData.isLivePlayback&&J.bb.B$()&&!J.bb.finished&&!J.jL&&J.JO():(J.bb.start(),R=J.xA(),g.m0(R.provider),R.qoe&&QCP(R.qoe),J.JO())}; dZ7=function(J){var R=J.videoData;nR2(J).then(void 0,function(N){J.videoData!==R||R.QO()||(N=ey(N),N.errorCode==="auth"&&J.videoData.errorDetail?J.As(N.errorCode,2,unescape(J.videoData.errorReason),lJ(N.details),J.videoData.errorDetail,J.videoData.l4||void 0):J.handleError(N))})}; qTB=function(J,R){J.lS=R;J.vC&&KLg(J.vC,new g.yB(R))}; r1Y=function(J){if(!g.h(J.playerState,128))if(J.videoData.isLoaded(),J.logger.debug("finished loading playback data"),J.Ni=g.t_(J.videoData.tN),g.OU(J.videoData)){J.qR.tick("bpd_s");Cp(J).then(function(){J.qR.tick("bpd_c");if(!J.QO()){J.jL&&(J.FD(dD(dD(J.playerState,512),1)),JZ(J));var N=J.videoData;N.endSeconds&&N.endSeconds>N.startSeconds&&e1(J,N.endSeconds);J.bb.finished=!0;X$(J,"dataloaded");J.Zq.B$()&&A17(J);JZY(J.Bd,J.cw)}}); J.T("html5_log_media_perf_info")&&J.u3("loudness",{v:J.videoData.wm.toFixed(3)},!0);var R=JxE(J.videoData);R&&J.u3("playerResponseExperiment",{id:R},!0);YTn(J)}else X$(J,"dataloaded")}; Cp=function(J){ib(J);J.cw=null;var R=Ztg(J.KC,J.videoData,J.Zy());J.Rj=R;J.Rj.then(function(N){jBk(J,N)},function(N){J.QO()||(N=ey(N),J.visibility.isBackground()?(ub(J,"vp_none_avail"),J.Rj=null,J.bb.reset()):(J.bb.finished=!0,J.As(N.errorCode,N.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",lJ(N.details))))}); return R}; Xe=function(J){J.logger.debug("Updating for format change");Cp(J).then(function(){return JZ(J)}); J.playerState.isOrWillBePlaying()&&J.playVideo()}; jBk=function(J,R){if(!J.QO()&&!R.videoData.QO()){J.logger.debug("finished building playback data");J.cw=R;c$2(J.Ci,J.cw);if(J.videoData.isLivePlayback){var N=mZE(J.wk.I7,J.videoData.videoId)||J.vC&&!isNaN(J.vC.ma);N=J.T("html5_onesie_live")&&N;PI(J)||J.videoData.TW>0&&!kz(J.videoData)||N||J.seekTo(J.AY(),{hL:"videoplayer_playbackData",seekSource:18})}if(J.videoData.V.K){if(J.T("html5_sabr_report_missing_url_as_error")&&Gj7(J.videoData)){J.handleError(new PD("fmt.missing",{missabrurl:"1"},2));return}J.vC? g.G$(Error("Duplicated Loader")):(N=g.di(J.KC.experiments,"html5_onesie_defer_content_loader_ms"))&&zl(J)&&mZE(J.wk.I7,J.videoData.zv)?g.BR(function(){J.QO()||J.vC||VDg(J)},N):VDg(J)}else!J.videoData.V.K&&zH(J.videoData)&&J.ea(new rH(J.videoData.videoId||"",4)); fp(J);csY(R).then(function(){var C={};J.MI(C);J.KC.Si()&&J.T("html5_log_media_perf_info")&&J.u3("av1Info",C);x4(J)})}}; gRE=function(J){J.logger.debug("start readying playback");J.T("html5_enable_ssap_autoplay_debug_logging")&&J.u3("ssap",{strdypb:1});J.mediaElement&&J.mediaElement.activate();g.Nt(J);RC(J)&&!g.h(J.playerState,128)&&(J.Zq.B$()||(J.Zq.start(),J.videoData.ZY?J.FD(dD(J.playerState,4)):J.FD(dD(dD(J.playerState,8),1))),A17(J))}; A17=function(J){J.QO();J.logger.debug("try finish readying playback");if(J.Zq.finished)J.logger.debug("already finished readying");else if(J.bb.finished)if(g.h(J.playerState,128))J.logger.debug("cannot finish readying because of error");else if(J.Ni.length)J.logger.debug(function(){return"cannot finish readying because of pending preroll: "+J.Ni}); else if(J.Cb.started||n08(J.Cb),J.aW())J.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{J.vC&&(J.xl=AzB(J.vC.timing));J.Zq.finished||(J.Zq.finished=!0);var R=J.T("html5_onesie_live")&&J.vC&&!isNaN(J.vC.ma);!J.videoData.isLivePlayback||J.videoData.TW>0&&!kz(J.videoData)||R||PI(J)||(J.logger.debug("seek to head for live"),J.seekTo(Infinity,{hL:"videoplayer_readying",seekSource:18}),J.isBackground()&&(J.tA=!0));it8(J.xA());J.logger.debug("finished readying playback"); J.publish("playbackready",J);Ln("pl_c",J.qR.timerName)||(J.qR.tick("pl_c"),F8("pl_c",void 0,"video_to_ad"));Ln("pbr",J.qR.timerName)||(J.qR.tick("pbr"),F8("pbr",void 0,"video_to_ad"))}else J.logger.debug("playback data not loaded")}; cI=function(J,R,N){R=R===void 0?!0:R;(N===void 0||N)&&J.mediaElement&&J.mediaElement.pause();J.FD(R?new g.hy(14):new g.hy)}; e1=function(J,R){J.pw&&UZQ(J);J.pw=new g.Kw(R*1E3,0x7ffffffffffff);J.pw.namespace="endcr";J.addCueRange(J.pw)}; UZQ=function(J){J.removeCueRange(J.pw);J.pw=null}; pxP=function(J,R,N,C,X){var u=J.xA(X),f=g.vJ(J.videoData)?u.getVideoData():J.videoData;f.J=N;var H=g.Tf(J);N=new mrE(f,N,R,H?H.itag:"",C);J.KC.experiments.b3("html5_refactor_sabr_video_format_selection_logging")?(N.videoId=X,J.Lr=N):u.V9(N);X=J.Bd;X.J=0;X.K=0;J.publish("internalvideoformatchange",f,R==="m")}; g.Tf=function(J){var R=$5(J);return E6(R)||!J.cw?null:g.eE(J.cw.K.videoInfos,function(N){return R.Z(N)})}; $5=function(J){if(J.cw){var R=J.Bd;var N=J.cw;J=J.C8();if(R.RB.nJ().isInline())var C=tz;else R.T("html5_exponential_memory_for_sticky")?C=YS(R.KC.lr,"sticky-lifetime")<.5?"auto":MC[xX()]:C=MC[xX()],C=g.FT("auto",C,!1,"s");if(E6(C)){if(C=g4E(R,N).compose(zHk(R,N)).compose(wI7(R,N)).compose(t1n(R,N.videoData)).compose(xr2(R,N.videoData,N)).compose(fk(R,N)).compose(lgE(R,N)),E6(J)||R.T("html5_apply_pbr_cap_for_drm"))C=C.compose(P9n(R,N))}else R.T("html5_perf_cap_override_sticky")&&(C=C.compose(fk(R, N))),R.T("html5_ustreamer_cap_override_sticky")&&(C=C.compose(P9n(R,N)));C=C.compose(lgE(R,N));R=N.videoData.MA.compose(C).compose(N.videoData.TL).compose(J)}else R=tz;return R}; TH7=function(J){var R=J.Bd;J=J.videoData;var N=t1n(R,J);R.T("html5_disable_client_autonav_cap_for_onesie")||N.compose(xr2(R,J));return N}; g.lJE=function(J,R,N,C){var X=R.K,u=R.reason;if(J.T("html5_enable_qoe_video_format_intent")){var f;if((f=J.xA().qoe)!=null&&!(X<=0)){var H=g.m0(f.provider);g.k4(f,H,"vfi",[X+"p",u])}}J.videoData.MA=R;if(J.cw&&N&&(N=J.Bd,X=J.cw,X.K.K&&(u=xX(),f=X.K.videoInfos[0].video.K,!(u>f&&f!==0&&R.K===f)))){var k;u=pIE(N,(k=X.K)==null?void 0:k.videoInfos);k=N.RB.getPlaybackRate();k>1&&u&&(k=ceE(N.KC.U,X.K.videoInfos,k),R.K!==0&&k=480;if(N.T("html5_exponential_memory_for_sticky")){v=N.KC.lr;W=1;var S=S===void 0?!1:S;Hc2(v,"sticky-lifetime");v.values["sticky-lifetime"]&&v.z5["sticky-lifetime"]||(v.values["sticky-lifetime"]=0,v.z5["sticky-lifetime"]=0);S&&YS(v,"sticky-lifetime")>.0625&&(W=v.z5["sticky-lifetime"]*2);v.values["sticky-lifetime"]+=1*Math.pow(2,v.K/W);v.z5["sticky-lifetime"]=W;v.Z.start()}if(N.T("html5_perf_cap_override_sticky")){S= N.V;v=N.T("html5_perserve_av1_perf_cap");v=v===void 0?!1:v;if(v===void 0?0:v){W=oJ();R=g.K(Object.keys(W));for(N=R.next();!N.done;N=R.next())N=N.value,N.indexOf("1")!==0&&delete W[N];g.e0("yt-player-performance-cap",W,2592E3)}else g.c1("yt-player-performance-cap");cRE(v);if(v){v=g.K(p0.keys());for(W=v.next();!W.done;W=v.next())W=W.value,W.startsWith("1")||p0.delete(W);v=g.K(u9.values());for(W=v.next();!W.done;W=v.next())W=W.value,W.startsWith("1")||u9.delete(W);v=g.K(S.keys());for(W=v.next();!W.done;W= v.next())W=W.value,W.startsWith("1")||S.delete(W)}else p0.clear(),u9.clear(),S.clear()}}J.vC&&(S=J.vC,C=C||"",S.policy.K?Kb(S.J.K,C):Kb(S.K.U,C));fp(J)}; fp=function(J){if(!J.QO()&&!g.h(J.playerState,128)&&J.videoData.V){if(J.videoData.V.K)x4(J);else{var R=$5(J),N=J.videoData;a:{var C=J.videoData.FV;if(R.K){for(var X=g.K(C),u=X.next();!u.done;u=X.next()){u=u.value;var f=u.getInfo(),H=g.o6[f.video.quality];if((!R.V||f.video.quality!=="auto")&&H<=R.K){C=u;break a}}C=C[C.length-1]}else C=C[0]}N.eQ=C;pxP(J,R.reason,P_k(J,J.videoData.eQ))}if(J.T("html5_check_unstarted")?J.playerState.isOrWillBePlaying():J.isPlaying())J.Ci.D=!1,J.playVideo()}}; x4=function(J){if(J.videoData.V&&J.videoData.V.K){var R=$5(J);J.vC&&J4Y(J.vC,R)}}; zkn=function(J){var R;return!!(J.T("html5_native_audio_track_switching")&&g.d9&&((R=J.videoData.J)==null?0:vS(R)))}; ek2=function(J){if(!zkn(J))return!1;var R;J=(R=J.mediaElement)==null?void 0:R.audioTracks();return!!(J&&J.length>1)}; c1Q=function(J){var R=wxg(J);if(R)return J.videoData.getAvailableAudioTracks().find(function(N){return N.Do.getName()===R})}; wxg=function(J){var R;if(J=(R=J.mediaElement)==null?void 0:R.audioTracks())for(R=0;R0&&(R.mu=C.mw));R.EL=C.iQ;R.Y5=Pf(N,{},C.V||void 0,kjg(C));R.Xk=EU(C)&&g.N3(N);iY(C)&&(R.e4=g.di(N.experiments,"html5_sabr_seek_epsilon_ms"),N.T("html5_sabr_report_partial_segment_estimated_duration")&&(R.pk=!0),R.K=!0,R.P_=N.T("html5_sabr_enable_utc_seek_requests"),R.Ob=N.T("html5_sabr_enable_live_clock_offset"),R.Qw=N.T("html5_disable_client_resume_policy_for_sabr"),R.wJ=N.T("html5_trigger_loader_when_idle_network"),R.Ou=N.T("html5_sabr_parse_live_metadata_playback_boundaries"), R.Ck=N.T("html5_enable_platform_backpressure_with_sabr"),R.wV=N.T("html5_consume_onesie_next_request_policy_for_sabr"),R.r6=N.T("html5_sabr_report_next_ad_break_time"),R.gC=N.T("html5_log_high_res_buffer_timeline"),R.Ql=N.T("html5_gapless_sabr_btl_last_slice")&&Fr(C),kz(C)?(R.h_=!0,R.NI=N.T("html5_disable_variability_tracker_for_live"),R.pC=N.T("html5_sabr_use_accurate_slice_info_params")):R.kA=N.T("html5_probe_request_on_sabr_request_progress"),R.S4=N.T("html5_serve_start_seconds_seek_for_post_live_sabr"), R.pL=N.T("html5_flush_index_on_updated_timestamp_offset"),R.ma=N.T("html5_enable_sabr_request_pipelining")&&!g.vJ(C),R.mR=N.T("html5_ignore_partial_segment_from_live_readahead"),R.PK=N.T("html5_use_non_active_broadcast_for_post_live"),R.PC=N.T("html5_use_centralized_player_time"),R.LJ=N.T("html5_consume_onesie_sabr_seek"),R.W=N.T("html5_enable_sabr_seek_loader_refactor"),R.sK=N.T("html5_update_segment_start_time_from_media_header"),C.enableServerStitchedDai&&(R.U=!0,R.fk=N.T("html5_reset_server_stitch_state_for_non_sabr_seek"), R.YJ=N.T("html5_remove_ssdai_append_pause"),R.eQ=N.T("html5_consume_ssdai_info_with_streaming"),R.iQ=N.T("html5_process_all_cuepoints")));R.S=R.K&&N.T("html5_sabr_live");YK(N.U,r$.BITRATE)&&(R.fC=NaN);if(H=g.di(N.experiments,"html5_request_size_max_kb"))R.l3=H*1024;N.U.Z?R.wN="; "+r$.EXPERIMENTAL.name+"=allowed":N.T("html5_enable_cobalt_tunnel_mode")&&(R.wN="; tunnelmode=true");H=C.serverPlaybackStartConfig;(H==null?0:H.enable)&&(H==null?0:H.playbackStartPolicy)&&(R.Xp=!0,BnE(R,H.playbackStartPolicy, 2));H=hkE(J);J.Cl.removeAll();a:{N=J.wk.I7;if(C=J.videoData.videoId)if(X=N.K.get(C)){N.K.remove(C);N=X;break a}N=void 0}J.vC=new g.PX(J,J.KC.schedule,R,J.videoData.K,J.videoData.V,$5(J),H,J.videoData.enableServerStitchedDai,N,J.videoData.l3);R=J.videoData.T("html5_disable_preload_for_ssdai_with_preroll")&&J.videoData.isDaiEnabled()&&zl(J)?!0:J.jL&&g.eG(J.KC)&&J.videoData.isLivePlayback;J.vC.initialize(J.getCurrentTime(),$5(J),R);J.videoData.probeUrl&&(J.vC.pC=J.videoData.probeUrl);if(J.Ni.length|| J.jL)J.videoData.cotn||H8(J,!1);y$E(J.Ci,J.vC);J.lS&&KLg(J.vC,new g.yB(J.lS));J.k8&&(J.vC.fp(J.k8),J.Ci.D=!1);g.e9(J.videoData)&&(J=J.vC,J.policy.wm=J.policy.Vn)}; ib=function(J){J.vC&&(J.vC.dispose(),J.vC=null,y$E(J.Ci,null));Vp(J)?y1B(J):k5(J)}; y1B=function(J){if(J.Mp)if(J.logger.debug("release media source"),J.MS(),J.Mp.U)try{J.KC.Si()&&J.u3("rms",{l:"vprms",sr:Vp(J),rs:UO(J.Mp)});J.Mp.clear();var R;(R=J.mediaElement)!=null&&(R.J=J.Mp);J.Mp=null}catch(N){R=new g.C3("Error while clearing Media Source in VideoPlayer: "+N.name+", "+N.message),R=ey(R),J.handleError(R),k5(J)}else k5(J)}; k5=function(J,R){R=R===void 0?!1:R;J.Mp&&(J.logger.debug("remove media source"),hcE(J.Mp),J.MS(R),J.Mp.dispose(),J.Mp=null)}; boB=function(J,R){R=R===void 0?!1:R;if(J.Mp)return J.Mp.V;J.logger.debug("update media source");a:{R=R===void 0?!1:R;try{g.Rc()&&J.videoData.hc()&>B(J.mediaElement);var N=J.mediaElement.y8(J.Zx(),J.QV())}catch(X){if(ZkE(J.MV,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",X);J.As("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}Gog(J,N,!1,!1,R)}var C;return((C=J.y8())==null?void 0:C.V)||null}; Gog=function(J,R,N,C,X){function u(f){try{tDg(J,f,N,C)}catch(H){g.G$(H),J.handleError(new PD("fmt.unplayable",{msi:"1",ename:H&&typeof H==="object"&&"name"in H?String(H.name):void 0},1))}} N=N===void 0?!1:N;C=C===void 0?!1:C;xZE(J,X===void 0?!1:X);J.Mp=R;Vp(J)&&UO(J.Mp)==="open"?u(J.Mp):PW7(J.Mp,u)}; xZE=function(J,R){R=R===void 0?!1:R;if(J.vC){var N=J.getCurrentTime()-J.uS();J.vC.seek(N,{Kj:R}).vY(function(){})}else VDg(J)}; tDg=function(J,R,N,C){N=N===void 0?!1:N;C=C===void 0?!1:C;if(J.Mp&&(!R||J.Mp===R)){J.logger.debug("media source opened");var X=J.getDuration();!X&&kz(J.videoData)&&(X=25200);if(J.Mp.isView){var u=X;J.logger.debug(function(){return"Set media source duration to "+u+", video duration "+X}); u>J.Mp.getDuration()&&JAf(J,u)}else JAf(J,X);bbg(J.vC,J.Mp,N,C);J.publish("mediasourceattached")}}; JAf=function(J,R){if(J.Mp){J.Mp.Eb(R);var N;(N=J.vC)!=null&&N.policy.PC&&(N.U=R)}}; R8Q=function(J,R){pxP(J,R.reason,R.K.info,R.token,R.videoId)}; h4=function(J,R,N,C){R=R===void 0?!1:R;N=N===void 0?!1:N;C=C===void 0?!1:C;var X,u,f;return g.Y(function(H){if(H.K==1){J.vC&&J.vC.YN();J.vC&&J.vC.QO()&&ib(J);if(J.T("html5_enable_vp9_fairplay")&&J.Ha()&&(X=J.videoData.K)!=null)for(var k in X.K)X.K.hasOwnProperty(k)&&(X.K[k].K=null,X.K[k].V=!1);J.FD(dD(J.playerState,2048));J.T("html5_ssap_keep_media_on_finish_segment")&&g.vJ(J.videoData)?J.publish("newelementrequired",C):J.publish("newelementrequired");return R?g.q(H,Cp(J),2):H.ZM(2)}J.videoData.MR()&& ((u=J.vC)==null?0:u.ma)&&!PI(J)&&((f=J.isAtLiveHead())&&HJ(J.videoData)?J.seekTo(Infinity,{hL:"videoPlayer_getNewElement"}):J.videoData.SD&&J.vC&&(k=J.vC,k.manifest.MR&&(k.manifest.SD||k.manifest.Z||k.manifest.isPremiere?(k.seek(0,{hL:"loader_resetSqless"}),k.videoTrack.D=!0,k.audioTrack.D=!0,k.videoTrack.U=!0,k.audioTrack.U=!0):VO(k.manifest)&&HX(k))));N&&J.seekTo(0,{seekSource:105});g.h(J.playerState,8)&&(J.T("html5_ssap_keep_media_on_finish_segment")&&g.vJ(J.videoData)?J.playVideo(!1,C):J.playVideo()); g.IQ(H)})}; v8=function(J,R){J.u3("hgte",{ne:+R});J.videoData.W=!1;R&&h4(J);J.vC&&cDf(J.vC)}; ocn=function(J,R){J.u3("newelem",{r:R});h4(J)}; RPk=function(J,R){J.qR.Z.p5();g.h(J.playerState,32)||(J.FD(dD(J.playerState,32,R==null?void 0:R.seekSource)),g.h(J.playerState,8)&&J.pauseVideo(!0),J.publish("beginseeking",J));J.P1()}; NFn=function(J,R){R=R==null?void 0:R.seekSource;g.h(J.playerState,32)?(J.FD(Am(J.playerState,16,32,R)),J.publish("endseeking",J)):g.h(J.playerState,2)||J.FD(dD(J.playerState,16,R));J.qR.Z.e$(J.videoData,J.playerState.isPaused())}; CXB=function(J,R){J.KC.experiments.b3("enable_adb_handling_in_sabr")&&(J.pauseVideo(!0),J.Ts(),R&&J.As("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; Xcg=function(J){var R=0,N="";if(J.lS){if(J.lS.hD)return"D,";R=J.lS.Z7();N=J.lS.lY().substring(0,4)}else J.k8&&(R=J.k8.Z7(),N=J.k8.lY().substring(0,4));return R>0?(J="AD"+R+", ",N&&(J+=N+", "),J):""}; X$=function(J,R){J.publish("internalvideodatachange",R===void 0?"dataupdated":R,J,J.videoData)}; iM8=function(J){for(var R=g.K("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),N=R.next();!N.done;N=R.next())J.Ma.L(J.mediaElement,N.value,J.ow,J);J.KC.gU&&J.mediaElement.Uu()&&(J.Ma.L(J.mediaElement,"webkitplaybacktargetavailabilitychanged",J.cEn,J),J.Ma.L(J.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",J.JE7,J))}; f3f=function(J){g.dp(J.cJ);u1Y(J)||(J.cJ=g.OE(function(){return u1Y(J)},100))}; u1Y=function(J){var R=J.mediaElement;R&&J.Av&&!J.videoData.ma&&!Ln("vfp",J.qR.timerName)&&R.UV()>=2&&!R.isEnded()&&DS(R.BV())>0&&J.qR.tick("vfp");return(R=J.mediaElement)&&!J.videoData.ma&&R.getDuration()>0&&(R.isPaused()&&R.UV()>=2&&DS(R.BV())>0&&(Ln("pbp",J.qR.timerName)||J.qR.tick("pbp"),!J.videoData.ZY||J.iA||R.isSeeking()||(J.iA=!0,J.publish("onPlaybackPauseAtStart"))),R=R.getCurrentTime(),qr(J.mW,R))?(TFY(J),!0):!1}; TFY=function(J){g.dp(J.cJ);J.JB.stop();J.videoData.ma=!0;J.KC.NI=!0;J.KC.Xn=0;var R=J.MV;if(R.videoData.J){var N=R.OB.U,C=R.videoData.J.sB;N.J.has(C)&&(N.J.delete(C),Sh(N))}R.K.stop();$Q8(J);g.h(J.playerState,8)&&J.FD(qR(J.playerState,65));J.jL=!1;uA2(J.xA());g.HK(J.XO);J.publish("playbackstarted");(J=g.gY("yt.scheduler.instance.clearPriorityThreshold"))?J():v9(0,0)}; $Q8=function(J){var R=J.wk.bS(),N={},C={};!Ln("pbs",J.qR.timerName)&&Rb.measure&&Rb.getEntriesByName&&(Rb.getEntriesByName("mark_nr")[0]?Esg("mark_nr"):Esg());R.videoId&&(N.videoId=R.videoId);R.clientPlaybackNonce&&!J.T("web_player_early_cpn")&&(N.clientPlaybackNonce=R.clientPlaybackNonce);J.mediaElement&&J.mediaElement.isPaused()&&(C.isPausedOnLoad=!0);C.itag=R.J?Number(R.J.itag):-1;R.j2&&(C.preloadType=String(J.xl?2:1));N.liveStreamMode=HM2[sU(R)];N.playerInfo=C;J.qR.infoGel(N);if(J.vC){R=J.vC.timing; window&&window.performance&&window.performance.getEntriesByName&&(R.V&&(N=window.performance.getEntriesByName(R.V),N.length&&(N=N[0],R.tick("vri",N.fetchStart),R.tick("vdns",N.domainLookupEnd),R.tick("vreq",N.requestStart),R.tick("vrc",N.responseEnd))),R.J&&(N=window.performance.getEntriesByName(R.J),N.length&&(N=N[0],R.tick("ari",N.fetchStart),R.tick("adns",N.domainLookupEnd),R.tick("areq",N.requestStart),R.tick("arc",N.responseEnd))));R=R.ticks;for(var X in R)R.hasOwnProperty(X)&&J.qR.tick(X,R[X])}}; kMg=function(J,R,N,C){R=(R+(J.uW===3?.3:0))/N;N=Math.floor(R*4);N>J.uW&&(J.u3("vpq",{q:N,cpn:C||J.videoData.clientPlaybackNonce,ratio:R.toFixed(3)}),J.uW=N)}; vcB=function(J){J.xA().zN();if(HJ(J.videoData)&&Date.now()>J.Zt+6283){if(!(!J.isAtLiveHead()||J.videoData.K&&d8(J.videoData.K))){var R=J.xA();if(R.qoe){R=R.qoe;var N=R.provider.RB.MD(),C=g.m0(R.provider);McQ(R,C,N);N=N.V;isNaN(N)||g.k4(R,C,"e2el",[N.toFixed(3)])}}J.T("html5_alc_live_log_rawlat")?(R=J.videoData,R=g.PM(R.N())?!0:g.NL(R.N())?R.qM==="6":!1):R=g.PM(J.KC);R&&J.u3("rawlat",{l:G3(J.WM,"rawlivelatency").toFixed(3)});J.Zt=Date.now()}J.videoData.J&&vS(J.videoData.J)&&(R=ZoB(J))&&R.videoHeight!== J.jN&&(J.jN=R.videoHeight,pxP(J,"a",P_k(J,J.videoData.eQ)))}; P_k=function(J,R){if(R.K.video.quality==="auto"&&vS(R.getInfo())&&J.videoData.FV)for(var N=g.K(J.videoData.FV),C=N.next();!C.done;C=N.next())if(C=C.value,C.getHeight()===J.jN&&C.K.video.quality!=="auto")return C.getInfo();return R.getInfo()}; DZQ=function(J){if(!HJ(J.videoData))return NaN;var R=0;J.vC&&J.videoData.K&&(R=kz(J.videoData)?J.vC.ZT.Gj()||0:J.videoData.K.tN);return(0,g.g9)()/1E3-J.Il()-R}; SQg=function(J){J.mediaElement&&J.mediaElement.Zy()&&(J.Ny=(0,g.g9)());J.KC.qz?g.BR(function(){Wug(J)},0):Wug(J)}; Wug=function(J){var R;if((R=J.Mp)==null||!R.DR()){if(J.mediaElement)try{J.F6=J.mediaElement.playVideo()}catch(C){ub(J,"err."+C)}if(J.F6){var N=J.F6;N.then(void 0,function(C){J.logger.debug(function(){return"playMediaElement failed: "+C}); if(!g.h(J.playerState,4)&&!g.h(J.playerState,256)&&J.F6===N)if(C&&C.name==="AbortError"&&C.message&&C.message.includes("load"))J.logger.debug(function(){return"ignore play media element failure: "+C.message}); else{var X="promise";C&&C.name&&(X+=";m."+C.name);ub(J,X);J.ZJ=!0;J.videoData.Im=!0}})}}}; ub=function(J,R){g.h(J.playerState,128)||(J.FD(Am(J.playerState,1028,9)),J.u3("dompaused",{r:R}),J.publish("onAutoplayBlocked"))}; JZ=function(J,R){R=R===void 0?!1:R;if(!J.mediaElement||!J.videoData.V)return!1;var N=R;N=N===void 0?!1:N;var C=null;var X;if((X=J.videoData.V)==null?0:X.K){C=boB(J,N);var u;(u=J.vC)==null||u.resume()}else ib(J),J.videoData.eQ&&(C=J.videoData.eQ.FU());X=J.mediaElement.gG();N=!1;X&&C!==null&&C.resource===X.resource||(Lu7(J,C),N=!0);g.h(J.playerState,2)||(C=J.Ci,R=R===void 0?!1:R,C.U||!(C.Z>0)||C.mediaElement&&C.mediaElement.getCurrentTime()>0||(R={hL:"seektimeline_resumeTime",Kj:R},C.videoData.ma|| (R.seekSource=15),C.seekTo(C.Z,R)));a:{R=N;if(iY(J.videoData)){if(!J.videoData.Ha())break a}else if(!g.Du(J.videoData))break a;if(J.mediaElement)if((C=J.videoData.U)&&J.mediaElement.Uu()){X=J.mediaElement.Ov();if(J.aG)if(X!==J.aG.element)W8(J);else if(R&&C.flavor==="fairplay"&&!NY())W8(J);else break a;if(J.T("html5_report_error_for_unsupported_tvos_widevine")&&NY()&&C.flavor==="widevine")J.As("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{J.aG=new v48(X,J.videoData, J.KC);J.aG.subscribe("licenseerror",J.yk,J);J.aG.subscribe("qualitychange",J.EAB,J);J.aG.subscribe("heartbeatparams",J.eO,J);J.aG.subscribe("keystatuseschange",J.r5,J);J.aG.subscribe("ctmp",J.u3,J);J.T("html5_widevine_use_fake_pssh")&&!J.videoData.isLivePlayback&&C.flavor==="widevine"&&J.aG.hB(new YO(I3Y,"cenc",!1));R=g.K(J.Cl.keys);for(C=R.next();!C.done;C=R.next())C=J.Cl.get(C.value),J.aG.hB(C);J.T("html5_eme_loader_sync")||J.Cl.removeAll()}}else J.As("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK", "drm.1")}return N}; Lu7=function(J,R){J.qR.tick("vta");F8("vta",void 0,"video_to_ad");J.getCurrentTime()>0&&xTY(J.Ci,J.getCurrentTime());J.mediaElement.activate(R);J.Mp&&v9(0,4);!J.videoData.ma&&J.playerState.isOrWillBePlaying()&&J.JB.start();if(zkn(J)){var N;if(R=(N=J.mediaElement)==null?void 0:N.audioTracks())R.onchange=function(){J.publish("internalaudioformatchange",J.videoData,!0)}}}; W8=function(J){J.aG&&(J.aG.dispose(),J.aG=null)}; Sc=function(J,R){R=R===void 0?!1:R;HJ(J.videoData)&&(J.isAtLiveHead()&&!J.playerState.isPaused()||J.Cm()||g.qn(J.videoData))?J=J.getCurrentTime():g.vJ(J.videoData)&&J.k8?(R=J.k8,J=J.getCurrentTime(),J=(J=Fug(R,J*1E3))?(J.y7()-J.P7())/1E3:0):J=J.AY(R);return J}; Ecg=function(J){var R=R===void 0?!1:R;J.logger.debug("reattachVideoSource");J.mediaElement&&(J.Mp?(W8(J),k5(J),boB(J,R)):(J.videoData.eQ&&J.videoData.eQ.Zn(),J.mediaElement.stopVideo()),J.playVideo())}; MYg=function(J,R){J.KC.T("html5_log_rebuffer_reason")&&(R={r:R,lact:UK()},J.mediaElement&&(R.bh=ev(J.mediaElement)),J.u3("bufreason",R))}; Lp=function(J,R,N,C,X,u,f,H,k){var v;if((v=J.videoData.K)==null?0:v.isLive){var W=N.playerType===2?N:R,S=R.videoData.videoId,L=N.videoData.videoId;if(S&&L){v=J.xA();if(v.qoe){var I=v.qoe,F=R.cpn,a=N.cpn,n=W.videoData.Xn,B=I.provider.videoData.clientPlaybackNonce,Z=I.provider.videoData.videoId,A=a!==B&&L!==Z;B=F!==B&&S!==Z;I.reportStats();I.adCpn&&I.adCpn!==F||(I.adCpn=B?F:"",I.nC=B?S:"",I.adFormat=B?n:void 0,Iu(I,2,f?4:u?2:0,a,L,X),I.reportStats(),I.adCpn=A?a:"",I.nC=A?L:"",I.adFormat=A?n:void 0, Iu(I,2,f?5:u?3:1,F,S,C),I.reportStats())}C=R.cpn;if(v.V.has(C)){if(u=v.V.get(C),Dg(u,!0).send(),nk(u),C!==v.provider.videoData.clientPlaybackNonce){xtg(u);var V;(V=v.K)==null||hMP(V);v.V.delete(C)}}else v.Rm=v.provider.videoData.clientPlaybackNonce,v.Rm&&v.K&&(v.V.set(v.Rm,v.K),Dg(v.K).send(),nk(v.K));V=N.cpn;W=W.videoData;X-=J.L2();if(v.V.has(V)){X=v.V.get(V);var p=X.V&&isNaN(X.U)?Q6(X):NaN;X=tck(X,!1);isNaN(p)||(X.S=p);X.send()}else X=WYB(v,v.provider,W,X),v.V.set(V,X),J$n(X,new g.q2(dD(new g.hy, 8),new g.hy)),cZB(X),(p=v.K)==null||nk(p);v.Rm=V;J.T("html5_unify_csi_server_stitched_transition_logging")?KuE(R.cpn,N.cpn,J.videoData.clientPlaybackNonce,N.videoData,H,void 0,k):(v=J.videoData.clientPlaybackNonce,J=N.videoData,R=(R.cpn===v?"video":"ad")+"_to_"+(N.cpn===v?"video":"ad"),v={},J.S&&(v.cttAuthInfo={token:J.S,videoId:J.videoId}),H&&(v.startTime=H),SV(R,v),g.WU({targetVideoId:J.videoId,targetCpn:N.cpn,isSsdai:!0},R),vU("pbs",k!=null?k:(0,g.g9)(),R))}}}; a3f=function(J,R){if(J.KC.Si()&&J.mediaElement){var N=J.mediaElement.fP();N.omt=(J.mediaElement.getCurrentTime()+J.uS()).toFixed(3);N.ps=J.playerState.state.toString(16);N.rt=(g.m0(J.xA().provider)*1E3).toFixed();N.e=R;J.g0[J.t5++%5]=N}try{if(R==="timeupdate"||R==="progress")return}catch(C){}J.logger.debug(function(){return"video element event "+R})}; Qvk=function(J){if(J.KC.Si()){J.g0.sort(function(C,X){return+C.rt-+X.rt}); for(var R=g.K(J.g0),N=R.next();!N.done;N=R.next())N=N.value,J.u3("vpe",Object.assign({t:N.rt},N));J.g0=[];J.t5=0}}; ncE=function(J){if(g.Jf("cobalt")&&g.Jf("nintendo switch")){var R=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;J.u3("nxdock",{d:R})}}; DQg=function(J,R,N,C,X){J.u3("xvt",{m:R,g:1,tt:N?1:0,np:C?1:0,c:X})}; H8=function(J,R){var N;(N=J.vC)==null||wc(N,R)}; zl=function(J){return g.cl(J.Ni,"ad")}; Drg=function(J,R){return g.vJ(J.videoData)&&J.k8?J.k8.handleError(R,void 0):!1}; YTn=function(J){TH(J.videoData,"html5_set_debugging_opt_in")&&(J=g.tf(),g.xI(0,183)||(oi(183,!0),J.save()))}; svE=function(J){return g.vJ(J.videoData)&&J.k8?mL(J.k8):J.videoData.AY()}; OSf=function(J,R){J.wk.er()||(J.u3("sgap",{f:R}),J.wk.clearQueue(!1,R==="pe"))}; PI=function(J){return J.T("html5_disable_video_player_initiated_seeks")&&iY(J.videoData)}; BF2=function(J){xe.call(this,J);var R=this;this.events=new g.tY(J);g.P(this,this.events);bY(this.api,"isLifaAdPlaying",function(){return R.api.isLifaAdPlaying()}); this.events.L(J,"serverstitchedvideochange",function(){R.api.isLifaAdPlaying()?(R.playbackRate=R.api.getPlaybackRate(),R.api.setPlaybackRate(1)):R.api.setPlaybackRate(R.playbackRate)}); this.playbackRate=this.api.Us()?this.api.getPlaybackRate():1}; OME=function(J){xe.call(this,J);var R=this;this.events=new g.tY(J);g.P(this,this.events);bY(this.api,"seekToChapterWithAnimation",function(N){R.seekToChapterWithAnimation(N)}); bY(this.api,"seekToTimeWithAnimation",function(N,C){R.seekToTimeWithAnimation(N,C)}); bY(this.api,"renderChapterSeekingAnimation",function(N,C,X){R.api.renderChapterSeekingAnimation(N,C,X)}); bY(this.api,"setMacroMarkers",function(N){R.setMacroMarkers(J,N)}); bY(this.api,"changeMarkerVisibility",function(N,C,X){R.changeMarkerVisibility(N,C,X)}); bY(this.api,"isSameMarkerTypeVisible",function(N){return R.isSameMarkerTypeVisible(N)})}; ZME=function(J,R,N){var C=J.api.getCurrentTime()*1E30&&X>0&&(N.width+=X,g.Lz(R.element,"width",N.width+"px")));J.size=N}}; g.AZ=function(J,R){var N=J.K[J.K.length-1];N!==R&&(J.K.push(R),oUE(J,N,R))}; g.Y5=function(J){if(!(J.K.length<=1)){var R=J.K.pop(),N=J.K[0];J.K=[N];oUE(J,R,N,!0)}}; oUE=function(J,R,N,C){R7n(J);R&&(R.unsubscribe("size-change",J.Th,J),R.unsubscribe("back",J.Ol,J));N.subscribe("size-change",J.Th,J);N.subscribe("back",J.Ol,J);if(J.Fn){g.FL(N.element,C?"ytp-panel-animate-back":"ytp-panel-animate-forward");N.IB(J.element);N.focus();J.element.scrollLeft=0;J.element.scrollTop=0;var X=J.size;J5E(J);g.Y$(J.element,X);J.U=new g.$t(function(){N_B(J,R,N,C)},20,J); J.U.start()}else N.IB(J.element),R&&R.detach()}; N_B=function(J,R,N,C){J.U.dispose();J.U=null;g.FL(J.element,"ytp-popup-animating");C?(g.FL(R.element,"ytp-panel-animate-forward"),g.Mh(N.element,"ytp-panel-animate-back")):(g.FL(R.element,"ytp-panel-animate-back"),g.Mh(N.element,"ytp-panel-animate-forward"));g.Y$(J.element,J.size);J.S=new g.$t(function(){g.Mh(J.element,"ytp-popup-animating");R.detach();g.K$(R.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);J.S.dispose();J.S=null},250,J); J.S.start()}; R7n=function(J){J.U&&g.kt(J.U);J.S&&g.kt(J.S)}; rg=function(J){g.qt.call(this,J,"ytp-shopping-product-menu");this.Jz=new g.ZM(this.G);g.P(this,this.Jz);this.hide();g.AZ(this,this.Jz);g.EL(this.G,this.element,4)}; XaB=function(J,R,N){var C,X=R==null?void 0:(C=R.text)==null?void 0:C.simpleText;X&&(N=Cg2(J,N,X,R==null?void 0:R.icon,R==null?void 0:R.secondaryIcon),R.navigationEndpoint&&N.listen("click",function(){J.G.z7("innertubeCommand",R.navigationEndpoint);J.hide()},J))}; ihQ=function(J,R,N){var C,X=R==null?void 0:(C=R.text)==null?void 0:C.simpleText;X&&Cg2(J,N,X,R==null?void 0:R.icon).listen("click",function(){var u;(R==null?void 0:(u=R.icon)==null?void 0:u.iconType)==="HIDE"?J.G.publish("featuredproductdismissed"):R.serviceEndpoint&&J.G.z7("innertubeCommand",R.serviceEndpoint);J.hide()},J)}; Cg2=function(J,R,N,C,X){R=new g.y$(g.GC({},[],!1,!!X),R,N);X&&R.updateValue("secondaryIcon",uHg(X));R.setIcon(uHg(C));g.P(J,R);J.Jz.S2(R,!0);return R}; uHg=function(J){if(!J)return null;switch(J.iconType){case "ACCOUNT_CIRCLE":return{C:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{C:"path",B:{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{C:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{C:"path",B:{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 emB();case "HIDE":return{C:"svg",B:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{C:"g",j:[{C:"path",B:{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 zT()}}; jc=function(J){B8.call(this,J,!1,!0);this.isCounterfactual=this.J=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.W=!0;this.overflowButton=new g.c({C:"button",CC:["ytp-featured-product-overflow-icon","ytp-button"],B:{"aria-haspopup":"true"}});this.overflowButton.hide();g.P(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.c({C:"img",Y:"ytp-suggested-action-badge-img",B:{src:"{{url}}"}}); this.thumbnailImage.hide();g.P(this,this.thumbnailImage);this.thumbnailIcon=new g.c({C:"div",Y:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.P(this,this.thumbnailIcon);this.banner=new g.c({C:"a",Y:"ytp-suggested-action-container",j:[this.thumbnailImage,this.thumbnailIcon,{C:"div",Y:"ytp-suggested-action-details",j:[{C:"text",Y:"ytp-suggested-action-title",cC:"{{title}}"},{C:"text",Y:"ytp-suggested-action-subtitle",cC:"{{subtitle}}"},{C:"text",Y:"ytp-suggested-action-metadata-text", cC:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.P(this,this.banner);this.banner.IB(this.V.element);this.L(this.G,"videodatachange",this.onVideoDataChange);this.L(this.G,g.Q3("suggested_action_view_model"),this.HP7);this.L(this.G,g.nw("suggested_action_view_model"),this.N3B);this.L(this.overflowButton.element,"click",this.wZ);this.L(J,"featuredproductdismissed",this.Po);this.G.createServerVe(this.banner.element,this.banner,!0)}; fEB=function(J){J.isInitialized&&(J.enabled=J.isVisible,J.dn=J.isVisible,sJ(J),J.Rn(),g.ZK(J.thumbnailImage,J.isVisible),J.shouldHideDismissButton||g.ZK(J.dismissButton,J.isVisible),J.shouldShowOverflowButton&&g.ZK(J.overflowButton,J.isVisible))}; me=function(){jc.apply(this,arguments)}; T_Q=function(J){xe.call(this,J);this.K=new me(this.api);g.P(this,this.K);g.EL(this.api,this.K.element,4)}; LHY=function(J){xe.call(this,J);var R=this;this.J="";this.K=this.api.T("html5_enable_audio_track_stickiness_phase_two");var N=new g.tY(J);g.P(this,N);N.L(J,"internalaudioformatchange",function(C,X){if(X){X="";if($aY(R,C)&&(X=C,R.K||(R.J=C),R.api.T("html5_sabr_enable_server_xtag_selection"))){var u=R.api.Us();u&&(u.getVideoData().iO=C)}R.K&&X&&Hhf(R,X)&&kb2(R)!==X&&(vU7([{settingItemId:Vw(R),settingOptionValue:{stringValue:C}}]),O52(Vw(R),{stringValue:X}))}}); N.L(J,"videoplayerreset",function(){var C;(R.J||R.K&&((C=CP())==null?0:C.size))&&WHB(R)}); N.L(J,"videodatachange",function(C,X){R.onVideoDataChange(C,X)}); this.K&&N.L(J,"applicationInitialized",function(){SN8(R)})}; WHB=function(J){if(J.K){var R;(R=kb2(J))&&Hhf(J,R)&&(J=J.api.Us())&&(J.getVideoData().iO=R)}else if(R=J.api.Us())R.getVideoData().iO=J.J}; SN8=function(J){sIg([Vw(J)]).then(function(R){if(R){R=g.K(R);for(var N=R.next();!N.done;N=R.next()){var C=N.value;N=C.key;C=C.value;N&&C&&vU7([{settingItemId:N,settingOptionValue:C}])}}})}; $aY=function(J,R){J=J.api.getAvailableAudioTracks();J=g.K(J);for(var N=J.next();!N.done;N=J.next())if(N=N.value,N.getLanguageInfo().getId()===R)return N;return null}; kb2=function(J){J=Vw(J);var R=CP();J=R?R.get(J):void 0;return J&&J.stringValue?J.stringValue:""}; Vw=function(J){var R=(484).toString();J.api.N().qM&&(R=(483).toString());return R}; Hhf=function(J,R){var N;return R.split(".")[0]!==""&&!((N=J.api.getVideoData())==null?0:cOf(N))}; vU7=function(J){var R=CP();R||(R=new Map);J=g.K(J);for(var N=J.next();!N.done;N=J.next())N=N.value,R.set(N.settingItemId,N.settingOptionValue);R=JSON.stringify(Object.fromEntries(R));g.e0("yt-player-user-settings",R,2592E3)}; g.gg=function(J,R,N,C,X,u,f){g.y$.call(this,g.GC({"aria-haspopup":"true"}),R,J);this.JE=C;this.X=!1;this.V=null;this.options={};this.J=new g.ZM(N,void 0,J,X,u,f);g.P(this,this.J);this.listen("keydown",this.Ks);this.listen("click",this.open)}; IEg=function(J){if(J.V){var R=J.options[J.V];R.element.getAttribute("aria-checked");R.element.setAttribute("aria-checked","false");J.V=null}}; FHf=function(J,R){g.gg.call(this,"Timer de suspens\u00e3o",g.fJ.SLEEP_TIMER,J,R);this.G=J;this.W={};this.U=this.oO("Off");this.S=this.K="";J.T("web_settings_menu_icons")&&this.setIcon({C:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{C:"path",B:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z", fill:"#fff"}}]});this.Z=new g.c({C:"div",CC:["ytp-menuitem-label-wrapper"],j:[{C:"div",cC:"Fim do v\u00eddeo"},{C:"div",CC:["ytp-menuitem-sublabel"],cC:"{{content}}"}]});g.P(this,this.Z);this.listen("click",this.onClick);this.L(J,"videodatachange",this.onVideoDataChange);this.L(J,"presentingplayerstatechange",this.hN);this.L(J,"settingsMenuVisibilityChanged",this.JY7);J.createClientVe(this.element,this,218889);this.hN();this.G.z7("onSleepTimerFeatureAvailable")}; EUB=function(J){var R="Off 10 15 20 30 45 60".split(" "),N;((N=J.G.getVideoData())==null?0:N.isLivePlayback)||R.push("End of video");N=J.G.getPlaylist();var C;N&&((C=N.listId)==null?void 0:C.type)!=="RD"&&R.push("End of playlist");J.CR(g.Yy(R,J.oO));J.W=g.$N(R,J.oO,J);R=J.oO("End of video");J.options[R]&&g.h9(J.options[R],J.Z)}; M5P=function(J,R){var N=J.W[R],C=N==="End of video"||N==="End of playlist";N==="Off"&&(J.K="");J.G.getPlayerState()!==0&&J.G.getPlayerState()!==5||!C?(J.U=R,g.gg.prototype.qe.call(J,R),J.Ye(R),J.G.z7("onSleepTimerSettingsChanged",N)):J.G.z7("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"O v\u00eddeo j\u00e1 terminou"}}}}})}; UJ=function(J){xe.call(this,J);var R=this;J.addEventListener("settingsMenuInitialized",function(){R.menuItem||(R.menuItem=new FHf(R.api,R.api.M0()),g.P(R,R.menuItem))}); J.addEventListener("openSettingsMenuItem",function(N){if(N==="menu_item_sleep_timer"){if(!R.menuItem){var C;(C=R.api.M0())==null||C.Df()}R.menuItem.open()}}); bY(J,"resetSleepTimerMenuSettings",function(){R.resetSleepTimerMenuSettings()}); bY(J,"setSleepTimerTimeLeft",function(N){R.setSleepTimerTimeLeft(N)}); bY(J,"setVideoTimeLeft",function(N){R.setVideoTimeLeft(N)})}; KHB=function(J){xe.call(this,J);var R=this;this.events=new g.tY(J);g.P(this,this.events);this.events.L(J,"onSnackbarMessage",function(N){switch(N){case 1:N=R.api.getPlayerStateObject(),N.isBuffering()&&g.h(N,8)&&g.h(N,16)&&R.api.z7("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.lb=function(J,R,N,C,X){R=R===void 0?!1:R;C=C===void 0?!1:C;X=X===void 0?!1:X;g.al.call(this);this.W=X;this.D=!1;this.Z=new gJ(this);this.U=this.S=null;this.V=this.J=!1;g.P(this,this.Z);this.target=J;this.K=R;this.X=N||J;this.D=C;R&&(g.RP&&this.target.setAttribute("draggable","true"),X||(this.target.style.touchAction="none"));pp(this)}; P8=function(J){g.pI(J.Z,!J.K)}; pp=function(J){J.U=null;J.S=null;J.L(zf("over"),J.Ik);J.L("touchstart",J.q_);J.K&&J.L(zf("down"),J.Bn8)}; aEf=function(J,R){for(var N=0;Nu.start&&C>=5;n+=A}a=n.substr(0,4)+" "+n.substr(4,4)+" "+n.substr(8,4)+" "+(n.substr(12,4)+" "+n.substr(16,4))}else a="";k={video_id_and_cpn:String(N.videoId)+" / "+a,codecs:"",dims_and_frames:"",bandwidth_kbps:k.toFixed(0)+" Kbps",buffer_health_seconds:W.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:L?"":"display:none",drm:L,debug_info:C,extra_debug_info:"",bandwidth_style:F,network_activity_style:F,network_activity_bytes:v.toFixed(0)+" KB", shader_info:I,shader_info_style:I?"":"display:none",playback_categories:""};v=X.clientWidth+"x"+X.clientHeight+(u>1?"*"+u.toFixed(2):"");W="-";f.totalVideoFrames&&(W=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);k.dims_and_frames=v+" / "+W;J=J.getVolume();f=euE(N);var p;v=((p=N.Z)==null?0:p.audio.K)?"DRC":Math.round(J*f)+"%";p=Math.round(J)+"% / "+v;J=N.wm.toFixed(1);isFinite(Number(J))&&(p+=" (content loudness "+J+"dB)");k.volume=p;k.resolution=X.videoWidth+"x"+X.videoHeight;if(X= N.J){if(p=X.video)J=p.fps,J>1&&(k.resolution+="@"+J),(J=g.Tf(R))&&J.video&&(k.resolution+=" / "+J.video.width+"x"+J.video.height,J.video.fps>1&&(k.resolution+="@"+J.video.fps)),k.codecs=B_Q(X),!N.Z||X.audio&&X.video?X.Qk&&(k.codecs+=" / "+X.Qk+"A"):k.codecs+=" / "+B_Q(N.Z),p.J||p.primaries?(J=p.J||"unknown",J==="smpte2084"?J+=" (PQ)":J==="arib-std-b67"&&(J+=" (HLG)"),k.color=J+" / "+(p.primaries||"unknown"),k.color_style=""):k.color_style="display:none";if(X.debugInfo)for(k.fmt_debug_info="",X=g.K(X.debugInfo), p=X.next();!p.done;p=X.next())p=p.value,k.fmt_debug_info+=p.label+":"+p.text+" ";k.fmt_debug_info_style=k.fmt_debug_info&&k.fmt_debug_info.length>0?"":"display:none"}X=N.isLivePlayback;p=N.SD;k.live_mode_style=X||p?"":"display:none";k.live_latency_style=X?"":"display:none";if(p)k.live_mode="Post-Live"+(kz(N)?" Manifestless":"");else if(X){p=G3(H,"livelatency");k.live_latency_secs=p.toFixed(2)+"s";X=kz(N)?"Manifestless, ":"";N.PC&&(X+="Windowed, ");J="Uncertain";if(p>=0&&p<120)if(N.latencyClass&&N.latencyClass!== "UNKNOWN")switch(N.latencyClass){case "NORMAL":J="Optimized for Normal Latency";break;case "LOW":J="Optimized for Low Latency";break;case "ULTRALOW":J="Optimized for Ultra Low Latency";break;default:J="Unknown Latency Setting"}else J=N.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";X+=J;(p=R.getPlaylistSequenceForTime(R.getCurrentTime()))&&(X+=", seq "+p.sequence);k.live_mode=X}!R.isGapless()||Fr(N)&&R.er()||(k.playback_categories+="Gapless ");k.playback_categories_style= k.playback_categories?"":"display:none";k.bandwidth_samples=y6(H,"bandwidth");k.network_activity_samples=y6(H,"networkactivity");k.live_latency_samples=y6(H,"livelatency");k.buffer_health_samples=y6(H,"bufferhealth");R=g.e9(N);if(N.cotn||R)k.cotn_and_local_media=(N.cotn?N.cotn:"null")+" / "+R;k.cotn_and_local_media_style=k.cotn_and_local_media?"":"display:none";TH(N,"web_player_release_debug")?(k.release_name="youtube.player.web_20241204_01_RC00",k.release_style=""):k.release_style="display:none"; k.debug_info&&S.length>0&&k.debug_info.length+S.length<=60?k.debug_info+=" "+S:k.extra_debug_info=S;k.extra_debug_info_style=k.extra_debug_info&&k.extra_debug_info.length>0?"":"display:none";return k}; B_Q=function(J){var R=/codecs="([^"]*)"/.exec(J.mimeType);return R&&R[1]?R[1]+" ("+J.itag+")":J.itag}; bb=function(J,R,N,C,X){g.c.call(this,{C:"div",Y:"ytp-horizonchart"});this.S=R;this.sampleCount=N;this.Z=C;this.U=X;this.index=0;this.heightPx=-1;this.V=this.J=null;this.K=Math.round(J/N);this.element.style.width=this.K*this.sampleCount+"px";this.element.style.height=this.S+"em"}; tZ=function(J,R){if(J.heightPx===-1){var N=null;try{N=g.iu("CANVAS"),J.J=N.getContext("2d")}catch(H){}if(J.J){var C=J.K*J.sampleCount;J.V=N;J.V.width=C;J.V.style.width=C+"px";J.element.appendChild(J.V)}else for(J.sampleCount=Math.floor(J.sampleCount/4),J.K*=4,N=0;N1?2:1,J.V.height=J.heightPx*N,J.V.style.height= J.heightPx+"px",J.J.scale(1,N)));R=g.K(R);for(C=R.next();!C.done;C=R.next()){N=J;var X=J.index,u=C.value;for(C=0;C+20&&g.Tz(R.V.element);C.classList.add("ytp-timely-actions-overlay");R.V.element.appendChild(C)}); g.P(this,this.V);g.EL(this.api,this.V.element,4)}; Pg8=function(J){J.timelyActions&&(J.Z=J.timelyActions.reduce(function(R,N){if(N.cueRangeId===void 0)return R;R[N.cueRangeId]=0;return R},{}))}; R3=function(J,R){if(J.timelyActions){J=g.K(J.timelyActions);for(var N=J.next();!N.done;N=J.next())if(N=N.value,N.cueRangeId===R)return N}}; z7n=function(J,R){if((J=R3(J,R))&&J.onCueRangeExit)return Jp(J.onCueRangeExit)}; e7E=function(J){if(J.K!==void 0){var R=(R=R3(J,J.K))&&R.onCueRangeEnter?Jp(R.onCueRangeEnter):void 0;var N=R3(J,J.K);if(N&&N.additionalTrigger){var C=!1;for(var X=g.K(N.additionalTrigger),u=X.next();!u.done;u=X.next())u=u.value,u.type&&u.args&&J.S[u.type]!==void 0&&(C=C||J.S[u.type](u.args))}else C=!0;R&&C&&(J.api.z7("innertubeCommand",R),J.setTimeout(N),J.Z[J.K]!==void 0&&J.Z[J.K]++)}}; UaB=function(J,R){return J.J===void 0?!1:R.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(R.seekLengthMilliseconds)===5E3?J.J===72:R.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(R.seekLengthMilliseconds)===1E4?J.J===74:R.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(R.seekLengthMilliseconds)===5E3?J.J===71:R.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(R.seekLengthMilliseconds)===1E4?J.J===73:!1}; pag=function(J){if(J=J.getWatchNextResponse()){var R,N;J=(R=J.playerOverlays)==null?void 0:(N=R.playerOverlayRenderer)==null?void 0:N.timelyActionsOverlayViewModel;R=g.z(J,waB);if(R!=null&&R.timelyActions)return R==null?void 0:R.timelyActions.map(function(C){return g.z(C,c5g)}).filter(function(C){return!!C})}}; h7E=function(J){xe.call(this,J);var R=this;tq(this.api,"getPlaybackRate",function(){return R.api.getPlaybackRate()}); tq(this.api,"setPlaybackRate",function(N){typeof N==="number"&&R.api.setPlaybackRate(N)})}; y52=function(J){J=J.Yi();if(!J)return!1;J=g.L4(J).exp||"";return J.includes("xpv")||J.includes("xpe")}; Gbk=function(J){J=g.K(g.NT(J,!0));for(var R=J.next();!R.done;R=J.next())if(y52(R.value))return!0;return!1}; bh7=function(J,R){J=g.K(g.NT(J,!0));for(var N=J.next();!N.done;N=J.next())if(N=N.value,y52(N)){var C={potc:"1",pot:R};N.url&&(N.url=IS(N.url,C))}}; t5P=function(J){var R=!1;J.Yq(150);J.wpc.f().finally(function(){R=!0}); return{isReady:function(){return R}, QE:function(N){return J.QE({lf:N.lf,VQ:!0,I8:!0,JS:N.JS?{kJ:N.JS.kJ,dh:N.JS.dh,Ve:N.JS.Ve}:void 0})}, ready:function(){return g.Y(function(N){if(N.K==1)return g.Ef(N,2),g.q(N,J.wpc.f(),4);if(N.K!=2)return g.MP(N,0);g.K2(N);g.IQ(N)})}, start:function(){}}}; XA=function(J){xe.call(this,J);var R=this;this.useLivingRoomPoToken=!1;this.U=new g.Qt;this.qR=null;this.S=!1;this.J=null;this.V=!1;var N=J.N().getWebPlayerContextConfig();this.events=new g.tY(J);g.P(this,this.events);this.events.L(J,"spsumpreject",function(C,X,u){R.V=X;C&&R.S&&!R.J&&(R.T("html5_generate_content_po_token")&&u?R.S6(u):R.T("html5_generate_session_po_token")&&xak(R));R.J||R.api.u3("stp",{s:+R.S,b:+R.V})}); this.events.L(J,"poTokenVideoBindingChange",function(C){R.S6(C)}); this.useLivingRoomPoToken=!(N==null||!N.useLivingRoomPoToken);J.addEventListener("csiinitialized",function(){R.qR=J.kB();var C=(R.T("html5_generate_session_po_token")||R.T("html5_generate_content_po_token"))&&!R.useLivingRoomPoToken;try{if(R.T("html5_use_shared_owl_instance"))JEE(R);else if(C){R.qR.S8("pot_isc");ofB(R);var X=g.di(R.api.N().experiments,"html5_webpo_kaios_defer_timeout_ms");X?g.BR(function(){Ct(R)},X):R.T("html5_webpo_idle_priority_job")?g.TB(g.H9(),function(){Ct(R)}):Ct(R)}}catch(u){u instanceof Error&&g.G$(u)}}); J.addEventListener("trackListLoaded",this.X.bind(this));J.S5(this)}; Rin=function(J){var R=$S(J.experiments,"html5_web_po_request_key");return R?R:g.eG(J)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; ip=function(J,R){if(J.T("html5_webpo_bge_ctmp")){var N,C={hwpo:!!J.K,hwpor:!((N=J.K)==null||!N.isReady())};J.api.u3(R,C)}}; JEE=function(J){var R,N;g.Y(function(C){if(C.K==1)return ip(J,"swpo_i"),J.D=tF8(),up(J),g.q(C,AP(),2);if(C.K!=3)return R=C.J,ip(J,"swpo_co"),g.q(C,ZNn(R),3);N=C.J;J.K=t5P(N);ip(J,"swpo_cc");J.K.ready().then(function(){J.U.resolve();ip(J,"swpo_re")}); g.BR(function(){Ct(J);ip(J,"swpo_si")},0); g.IQ(C)})}; ofB=function(J){function R(v){g.G$(v)} function N(v){(v=NMn[v])&&J.qR.S8(v)} var C=J.api.N(),X=Rin(C);try{var u=gwn(X),f=lcY(C.experiments),H=C.experiments.b3("html5_web_po_disable_remote_logging"),k=new XM({NT:X,onEvent:N,onError:R,im:u,Qu:f,o8:function(){J.api.u3("itr",{})}, PrN:H});J.K=k;J.K.ready().then(function(){J.U.resolve()}); g.P(J,k)}catch(v){v instanceof Error&&g.G$(v)}}; Ct=function(J){var R=J.api.N();J.qR.S8("pot_ist");var N;(N=J.K)==null||N.start();J.T("html5_bandaid_attach_content_po_token")||(up(J),xak(J),R=g.di(R.experiments,"html5_session_po_token_interval_time_ms")||0,R>0&&(J.Z=g.OE(function(){up(J)},R)),J.S=!0)}; up=function(J){var R,N,C,X;g.Y(function(u){if(!J.T("html5_generate_session_po_token")||J.useLivingRoomPoToken)return u.return();R=J.api.N();N=g.iL("EOM_VISITOR_DATA")||g.iL("VISITOR_DATA");C=R.qM?R.datasyncId:N;X=$S(R.experiments,"html5_mock_content_binding_for_session_token")||R.livingRoomPoTokenId||C;R.Vg=ft(J,X);g.IQ(u)})}; ft=function(J,R){if(!J.K)return J.D?J.D(R):"";try{var N=J.K.isReady();J.qR.S8(N?"pot_cms":"pot_csms");var C="";C=J.T("html5_web_po_token_disable_caching")?J.K.QE({lf:R}):J.K.QE({lf:R,JS:{kJ:R,La3:150,dh:!0,Ve:!0}});J.qR.S8(N?"pot_cmf":"pot_csmf");if(N){var X;(X=J.J)==null||X.resolve();J.J=null;if(J.V){J.V=!1;var u,f=(u=g.ih(J.api.app))==null?void 0:u.vC;f&&ssQ(f,!1)}}return C}catch(H){return g.G$(H),""}}; xak=function(J){J.K&&(J.J=new lM,J.K.ready().then(function(){J.qR.S8("pot_if");up(J)}))}; CqB=function(J){xe.call(this,J);var R=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.tY(J);g.P(this,this.events);this.events.L(J,"heartbeatRequest",function(N){if(R.freePreviewUsageDetails.length||R.freePreviewWatchedDuration!==null)N.heartbeatRequestParams||(N.heartbeatRequestParams={}),N.heartbeatRequestParams.unpluggedParams||(N.heartbeatRequestParams.unpluggedParams={}),R.freePreviewUsageDetails.length>0?N.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= R.freePreviewUsageDetails:N.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+R.freePreviewWatchedDuration}}); bY(J,"setFreePreviewWatchedDuration",function(N){R.freePreviewWatchedDuration=N}); bY(J,"setFreePreviewUsageDetails",function(N){R.freePreviewUsageDetails=N})}; Tx=function(J){g.l.call(this);this.features=[];var R=this.K,N=new d8k(J),C=new J7(J),X=new Mt(J),u=new XA(J);var f=g.PM(J.N())?void 0:new k8(J);var H=new EJ(J),k=new qNg(J),v=new h7E(J),W=new LJ(J);var S=g.PM(J.N())?new CqB(J):void 0;var L=J.T("html5_enable_ssap")?new sEg(J):void 0;var I=J.T("web_cinematic_watch_settings")&&(I=J.N().getWebPlayerContextConfig())!=null&&I.cinematicSettingsAvailable?new i0E(J):void 0;var F=new Sr(J);var a=J.T("enable_courses_player_overlay_purchase")?new Q9E(J):void 0; var n=g.Xk(J.N())?new Erk(J):void 0;var B=new $88(J);var Z=J.N().Z?new H0k(J):void 0;var A=J.T("web_player_move_autonav_toggle")&&J.N().m7?new t3Q(J):void 0;var V=g.Xk(J.N())?new OME(J):void 0;var p=J.T("web_enable_speedmaster")&&g.Xk(J.N())?new c8(J):void 0;var b=J.N().OV?void 0:new gUY(J);var w=J.T("report_pml_debug_signal")?new cxg(J):void 0;var RQ=new pcY(J),$E=new np(J);var G=J.T("enable_web_player_player_in_bar_feature")&&g.N3(J.N())?new bMY(J):void 0;var e=J.N().playerStyle==="flix"?new D8E(J): void 0;var t=navigator.mediaSession&&window.MediaMetadata&&J.N().gs?new IC(J):void 0;var E=J.T("html5_enable_drc")&&!J.N().S?new Hi(J):void 0;var y=new pn8(J),b8;a:{var FV=J.N();if(FV.S&&(FV=(b8=FV.getWebPlayerContextConfig())==null?void 0:b8.houseBrandEnvironment,FV==="apps-elements"||FV==="apps-elements-flix")){b8=new nrQ(J);break a}b8=void 0}FV=g.Xk(J.N())?new T_Q(J):void 0;var Hl=J.T("html5_enable_d6de4")?new Kp(J):void 0;var Of=g.Xk(J.N())&&J.T("web_sleep_timer")?new UJ(J):void 0;var oU=g.V_(J.N())? new WfB(J):void 0;var SE=new LHY(J),tk=new uQB(J),D=new BF2(J);var O=J.N().S?new Z0f(J):void 0;var d=J.T("enable_sabr_snackbar_message")?new KHB(J):void 0;J=J.T("web_enable_timely_actions")?new lEE(J):void 0;R.call(this,N,C,X,u,f,H,k,v,W,S,L,I,F,a,n,B,Z,A,V,p,b,w,RQ,$E,G,e,t,E,y,b8,FV,Hl,Of,oU,void 0,SE,tk,D,O,d,J)}; $0=function(){this.J=this.K=NaN}; XBf=function(J,R){this.KC=J;this.timerName="";this.V=!1;this.J=NaN;this.Z=new $0;this.K=R||null;this.V=!1}; iU2=function(J,R,N){var C=g.zn(R.OB)&&!R.OB.S;if(R.OB.ZY&&(Ui(R.OB)||R.OB.PC==="shortspage"||Hm(R.OB)||C)&&!J.V){J.V=!0;J.S=R.clientPlaybackNonce;g.iL("TIMING_ACTION")||Xi("TIMING_ACTION",J.KC.csiPageType);J.KC.csiServiceName&&Xi("CSI_SERVICE_NAME",J.KC.csiServiceName);if(J.K){C=J.K.kB();for(var X=g.K(Object.keys(C)),u=X.next();!u.done;u=X.next())u=u.value,vU(u,C[u],J.timerName);C=g.$q(uRY)(J.K.KE);g.WU(C,J.timerName);C=J.K;C.J={};C.KE={}}g.WU({playerInfo:{visibilityState:g.$q(i98)()},playerType:"LATENCY_PLAYER_HTML5"}, J.timerName);J.U!==R.clientPlaybackNonce||Number.isNaN(J.J)||(Ln("_start",J.timerName)?N=g.$q(fn)("_start",J.timerName)+J.J:g.G$(new g.C3("attempted to log gapless pbs before CSI timeline started",{cpn:R.clientPlaybackNonce})));N&&!Ln("pbs",J.timerName)&&J.tick("pbs",N)}}; KuE=function(J,R,N,C,X,u,f){J=(J===N?"video":"ad")+"_to_"+(R===N?"video":"ad");if(J!=="video_to_ad"||u!=null&&u.ma){u=J==="ad_to_video"?u:C;N=u==null?void 0:u.RD;var H={};if(C==null?0:C.S)H.cttAuthInfo={token:C.S,videoId:C.videoId};X&&(H.startTime=X);SV(J,H);var k,v,W;C={targetVideoId:(k=C==null?void 0:C.videoId)!=null?k:"empty_video",targetCpn:R,adVideoId:(v=u==null?void 0:u.videoId)!=null?v:"empty_video",adClientPlaybackNonce:(W=N==null?void 0:N.cpn)!=null?W:u==null?void 0:u.clientPlaybackNonce}; N&&(C.adBreakType=N.adBreakType,C.adType=N.adType);g.WU(C,J);vU("pbs",f!=null?f:(0,g.g9)(),J)}}; HY=function(J){IZE();L_P();J.timerName=""}; uY8=function(J){if(J.K){var R=J.K;R.J={};R.KE={}}J.V=!1;J.U=void 0;J.J=NaN}; fGB=function(J,R){g.al.call(this);this.OB=J;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.K=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.X={};this.J=0;if(J=R.session_data)this.sessionData=kq(J,"&");this.index=Math.max(0,Number(R.index)||0);this.loop=!!R.loop;this.startSeconds=Number(R.startSeconds)||0;this.title=R.playlist_title||"";this.description=R.playlist_description||"";this.author= R.author||R.playlist_author||"";R.video_id&&(this.items[this.index]=R);if(J=R.api)typeof J==="string"&&J.length===16?R.list="PL"+J:R.playlist=J;if(J=R.list)switch(R.listType){case "user_uploads":this.listId=new dQ("UU","PLAYER_"+J);break;default:var N=R.playlist_length;N&&(this.length=Number(N)||0);this.listId=g.qL(J);if(J=R.video)this.items=J.slice(0),this.loaded=!0}else if(R.playlist){J=R.playlist.toString().split(",");this.index>0&&(this.items=[]);J=g.K(J);for(N=J.next();!N.done;N=J.next())(N= N.value)&&this.items.push({video_id:N});this.length=this.items.length;if(J=R.video)this.items=J.slice(0),this.loaded=!0}this.setShuffle(!!R.shuffle);if(J=R.suggestedQuality)this.quality=J;this.X=sA(R,"playlist_");this.V=(R=R.thumbnail_ids)?R.split(","):[]}; TMQ=function(J){return!!(J.playlist||J.list||J.api)}; $7P=function(J){var R=J.index+1;return R>=J.length?0:R}; HUk=function(J){var R=J.index-1;return R<0?J.length-1:R}; g.k0=function(J,R,N,C){R=R!==void 0?R:J.index;R=J.items&&R in J.items?J.items[J.order[R]]:null;var X=null;R&&(N&&(R.autoplay="1"),C&&(R.autonav="1"),X=new g.xC(J.OB,R),g.P(J,X),X.i4=!0,X.startSeconds=J.startSeconds||X.clipStart||0,J.listId&&(X.playlistId=J.listId.toString()));return X}; kvg=function(J,R){J.index=g.I4(R,0,J.length-1);J.startSeconds=0}; vf2=function(J,R){if(R.video&&R.video.length){J.title=R.title||"";J.description=R.description;J.views=R.views;J.likes=R.likes;J.dislikes=R.dislikes;J.author=R.author||"";var N=R.loop;N&&(J.loop=N);N=g.k0(J);J.items=[];for(var C=g.K(R.video),X=C.next();!X.done;X=C.next())if(X=X.value)X.video_id=X.encrypted_id,J.items.push(X);J.length=J.items.length;(R=R.index)?J.index=R:J.findIndex(N);J.setShuffle(!1);J.loaded=!0;J.J++;J.K&&J.K()}}; LXY=function(J,R){var N,C,X,u,f,H,k;return g.Y(function(v){if(v.K==1){N=g.AM();var W=J.N(),S={context:g.yY(J),playbackContext:{contentPlaybackContext:{ancestorOrigins:W.ancestorOrigins}}},L=W.getWebPlayerContextConfig();if(L==null?0:L.encryptedHostFlags)S.playbackContext.contentPlaybackContext.encryptedHostFlags=L.encryptedHostFlags;if(L==null?0:L.hideInfo)S.playerParams={showinfo:!1};W=W.embedConfig;L=R.docid||R.video_id||R.videoId||R.id;if(!L){L=R.raw_embedded_player_response;if(!L){var I=R.embedded_player_response; I&&(L=JSON.parse(I))}if(L){var F,a,n,B,Z,A;L=((A=g.z((F=L)==null?void 0:(a=F.embedPreview)==null?void 0:(n=a.thumbnailPreviewRenderer)==null?void 0:(B=n.playButton)==null?void 0:(Z=B.buttonRenderer)==null?void 0:Z.navigationEndpoint,g.WJ))==null?void 0:A.videoId)||null}else L=null}F=(F=L)?F:void 0;a=J.playlistId?J.playlistId:R.list;n=R.listType;if(a){var V;n==="user_uploads"?V={username:a}:V={playlistId:a};WXB(W,F,R,V);S.playlistRequest=V}else R.playlist?(V={templistVideoIds:R.playlist.toString().split(",")}, WXB(W,F,R,V),S.playlistRequest=V):F&&(V={videoId:F},W&&(V.serializedThirdPartyEmbedConfig=W),S.singleVideoRequest=V);C=S;X=g.Em(SMB);g.Ef(v,2);return g.q(v,g.Kn(N,C,X),4)}if(v.K!=2)return u=v.J,f=J.N(),R.raw_embedded_player_response=u,f.VO=MY(R,g.V_(f)),f.V=f.VO==="EMBEDDED_PLAYER_MODE_PFL",u&&(H=u,H.trackingParams&&zw(H.trackingParams)),v.return(new g.xC(f,R));k=g.K2(v);k instanceof Error||(k=Error("b259802748"));g.yD(k);return v.return(J)})}; WXB=function(J,R,N,C){N.index&&(C.playlistIndex=String(Number(N.index)+1));C.videoId=R?R:"";J&&(C.serializedThirdPartyEmbedConfig=J)}; g.WY=function(J,R){vY.get(J);vY.set(J,R)}; g.Sx=function(J){g.al.call(this);this.loaded=!1;this.player=J}; IGf=function(){this.J=[];this.K=[]}; g.NT=function(J,R){return R?J.K.concat(J.J):J.K}; g.Lt=function(J,R){switch(R.kind){case "asr":FXE(R,J.J);break;default:FXE(R,J.K)}}; FXE=function(J,R){g.eE(R,function(N){return N?J.toString()===N.toString():!1})||R.push(J)}; g.I3=function(J){g.l.call(this);this.x8=J;this.K=new IGf;this.Z=null;this.U=[];this.X=[]}; Eff=function(J,R,N){if(J.x8.N().T("html5_dispatch_tracklist_loaded_event")){J.Z&&(J.Z.reject(),J.Z=null);var C=[];J.x8.publish("trackListLoaded",J.K,C,N);C.length?(N=new g.Qt,N.promise.then(R,function(){}),J.Z=N,Promise.all(C).then(N.resolve,N.reject).finally(function(){J.Z=null})):R()}else R()}; g.FA=function(J,R,N){g.I3.call(this,J);this.videoData=R;this.audioTrack=N;this.J=null;this.V=!1;this.U=R.h_;this.X=R.HR;this.V=g.UU(R)}; g.MpQ=function(J,R){return I6(J.info.mimeType)?R?J.info.itag===R:!0:!1}; g.KXg=function(J,R){if(J.K!=null&&g.PM(R.N())&&!J.K.isManifestless&&J.K.K.rawcc!=null)return!0;if(!J.MR())return!1;R=!!J.K&&J.K.isManifestless&&Object.values(J.K.K).some(function(N){return g.MpQ(N,"386")}); J=!!J.K&&!J.K.isManifestless&&tyE(J.K);return R||J}; g.Eg=function(J,R,N,C,X,u){g.I3.call(this,J);this.videoId=N;this.eT=X;this.eventId=u;this.S={};this.J=null;J=C||g.L4(R).hl||"";J=J.split("_").join("-");this.V=IS(R,{hl:J})}; aG7=function(J,R){this.J=J;this.K=R;this.onFailure=void 0}; QO8=function(J,R){return{un:J.un&&R.un,QC:J.QC&&R.QC,sync:J.sync&&R.sync,streaming:J.streaming&&R.streaming}}; Kt=function(J,R){var N=nf8,C=this;this.path=J;this.V=R;this.Z=N;this.capabilities={un:!!this.V,QC:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.U=new aG7([{name:"compileStreaming",condition:function(X){return!!C.J&&X.streaming}, IA:function(){return WebAssembly.compileStreaming(fetch(C.path))}, onFailure:function(){return C.capabilities.streaming=!1}}, {name:"sync",condition:function(X){return X.sync}, IA:function(){return dS(D7P(C),MT.Nd("wmcs",function(X){return new WebAssembly.Module(X)}))}, onFailure:function(){return C.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, IA:function(){return dS(D7P(C),MT.Nd("wmca",function(X){return WebAssembly.compile(X)}))}, onFailure:function(){return C.capabilities.QC=!1}}]); this.S=new aG7([{name:"instantiateStreaming",condition:function(X){return X.QC&&X.streaming&&!C.J&&!C.K}, IA:function(X,u){return MT.aF("wmix",function(){return WebAssembly.instantiateStreaming(fetch(C.path),u)}).then(function(f){C.K=DP(f.module); return{instance:f.instance,Ub:!1}})}, onFailure:function(){return C.capabilities.streaming=!1}}, {name:"sync",condition:function(X){return X.QC&&X.sync}, IA:function(X,u){return dS(sOg(C,X),MT.Nd("wmis",function(f){return{instance:new WebAssembly.Instance(f,u),Ub:!1}}))}, onFailure:function(){return C.capabilities.sync=!1}}, {name:"async",condition:function(X){return X.QC}, IA:function(X,u){return dS(dS(sOg(C,X),MT.Nd("wmia",function(f){return WebAssembly.instantiate(f,u)})),function(f){return{instance:f, Ub:!1}})}, onFailure:function(){return C.capabilities.QC=!1}}, {name:"asmjs",condition:function(X){return X.un}, IA:function(X,u){return DP(MT.aF("wmij",function(){return C.V(u)}).then(function(f){return{instance:{exports:f}, Ub:!0}}))}, onFailure:function(){return C.capabilities.un=!1}}],function(X,u,f){return C.Z(f,X.instance.exports)})}; ZUY=function(J){var R=BMg;return R.instantiate(J?QO8(R.capabilities,J):R.capabilities,new OUB)}; D7P=function(J){if(J.J)return J.J;var R=fetch(J.path).then(function(N){return N.arrayBuffer()}).then(function(N){J.J=DP(N); return N}).then(void 0,function(N){g.G$(Error("wasm module fetch failure: "+N.message,{cause:N})); J.J=void 0;throw N;}); J.J=DP(R);return J.J}; sOg=function(J,R){if(!R.QC)return BA(Error("wasm unavailable"));if(J.K)return J.K;J.K=qN(dS(J.compile(R),function(N){J.K=DP(N);return N}),function(N){g.G$(Error("wasm module compile failure: "+N.message,{cause:N})); J.K=void 0;throw N;}); return J.K}; d78=function(){}; qMg=function(){var J=this;this.proc_exit=function(){}; this.fd_write=function(R,N,C){if(!J.exports)return 1;R=new Uint32Array(J.exports.memory.buffer,N,C*2);N=[];for(var X=0;X=11;J=J.api.N().X&&dv;return!(!R&&!J)}; pt=function(J,R){return!J.api.isInline()&&!L1E(J,mj(R))&&g.ea(R)}; SCn=function(J){J.kT.uo();if(J.Jb&&J.xq)J.xq=!1;else if(!J.api.N().T7&&!J.lO()){var R=J.api.getPlayerStateObject();g.h(R,2)&&g.vE(J.api)||J.WQ(R);!J.api.N().TW||R.isCued()||g.h(R,1024)?J.HL():J.vA.isActive()?(J.i9(),J.vA.stop()):J.vA.start()}}; F1f=function(J,R){var N;if((N=J.api.getVideoData())==null?0:N.mutedAutoplay){var C,X;if((C=R.target)==null?0:(X=C.className)==null?0:X.includes("ytp-info-panel"))return!1}return g.ea(R)&&J.api.isMutedByMutedAutoplay()?(J.api.unMute(),J.api.getPresentingPlayerType()===2&&J.api.playVideo(),R=J.api.getPlayerStateObject(),!g.h(R,4)||g.h(R,8)||g.h(R,2)||J.HL(),!0):!1}; E_n=function(J,R,N){J.api.isFullscreen()?N<1-R&&J.api.toggleFullscreen():N>1+R&&J.api.toggleFullscreen()}; W1k=function(J){var R=oc()&&xq()>=67&&!J.api.N().X;J=J.api.N().disableOrganicUi;return!g.Jf("tizen")&&!kS&&!R&&!J}; lp=function(J,R){R=R===void 0?2:R;g.al.call(this);this.api=J;this.K=null;this.cU=new gJ(this);g.P(this,this.cU);this.J=B9E;this.cU.L(this.api,"presentingplayerstatechange",this.cS);this.K=this.cU.L(this.api,"progresssync",this.P1);this.pV=R;this.pV===1&&this.P1()}; g.PY=function(J){g.c.call(this,{C:"div",j:[{C:"div",Y:"ytp-bezel-text-wrapper",j:[{C:"div",Y:"ytp-bezel-text",cC:"{{title}}"}]},{C:"div",Y:"ytp-bezel",B:{role:"status","aria-label":"{{label}}"},j:[{C:"div",Y:"ytp-bezel-icon",cC:"{{icon}}"}]}]});this.G=J;this.J=new g.$t(this.show,10,this);this.K=new g.$t(this.hide,500,this);g.P(this,this.J);g.P(this,this.K);this.hide()}; ex=function(J,R,N){if(R<=0){N=yP();R="som desativado";var C=0}else N=N?{C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"path",JL:!0,B:{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"}}]}:{C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"path",JL:!0,B:{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"}}]},C=Math.floor(R),R=C+"volume";zx(J,N,R,C+"%")}; MKE=function(J,R){R=R?{C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{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"}}]}:zmY();var N=J.G.getPlaybackRate(),C=g.rN("A velocidade do v\u00eddeo \u00e9 $RATE",{RATE:String(N)});zx(J,R,C,N+"x")}; K1n=function(J,R){R=R?"Legendas/legendas ocultas ativadas":"Legendas/legendas ocultas desativadas";zx(J,orY(),R)}; zx=function(J,R,N,C){C=C===void 0?"":C;J.updateValue("label",N===void 0?"":N);J.updateValue("icon",R);g.vK(J.K);J.J.start();J.updateValue("title",C);g.ao(J.element,"ytp-bezel-text-hide",!C)}; al8=function(J,R){g.c.call(this,{C:"button",CC:["ytp-button","ytp-cards-button"],B:{"aria-label":"Exibir cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.V_(J.N()))},j:[{C:"span",Y:"ytp-cards-button-icon-default",j:[{C:"div",Y:"ytp-cards-button-icon",j:[J.N().T("player_new_info_card_format")?cfQ():{C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{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"}}]}]}, {C:"div",Y:"ytp-cards-button-title",cC:"Informa\u00e7\u00f5es"}]},{C:"span",Y:"ytp-cards-button-icon-shopping",j:[{C:"div",Y:"ytp-cards-button-icon",j:[{C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"path",Y:"ytp-svg-shadow",B:{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"}},{C:"path",Y:"ytp-svg-fill",B:{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"}},{C:"path",Y:"ytp-svg-shadow-fill",B:{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"}}]}]},{C:"div", Y:"ytp-cards-button-title",cC:"Compras"}]}]});this.G=J;this.V=R;this.K=null;this.J=new g.ES(this,250,!0,100);g.P(this,this.J);g.ao(this.V,"ytp-show-cards-title",g.V_(J.N()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.j1N);this.E5(!0)}; QrB=function(J,R){g.c.call(this,{C:"div",Y:"ytp-cards-teaser",j:[{C:"div",Y:"ytp-cards-teaser-box"},{C:"div",Y:"ytp-cards-teaser-text",j:J.N().T("player_new_info_card_format")?[{C:"button",Y:"ytp-cards-teaser-info-icon",B:{"aria-label":"Exibir cards","aria-haspopup":"true"},j:[cfQ()]},{C:"span",Y:"ytp-cards-teaser-label",cC:"{{text}}"},{C:"button",Y:"ytp-cards-teaser-close-button",B:{"aria-label":"Fechar"},j:[g.UI()]}]:[{C:"span",Y:"ytp-cards-teaser-label",cC:"{{text}}"}]}]});var N=this;this.G=J; this.Qg=R;this.Z=new g.ES(this,250,!1,250);this.K=null;this.X=new g.$t(this.FVQ,300,this);this.S=new g.$t(this.vvN,2E3,this);this.U=[];this.J=null;this.W=new g.$t(function(){N.element.style.margin="0"},250); this.onClickCommand=this.V=null;g.P(this,this.Z);g.P(this,this.X);g.P(this,this.S);g.P(this,this.W);J.N().T("player_new_info_card_format")?(g.FL(J.getRootNode(),"ytp-cards-teaser-dismissible"),this.L(this.qp("ytp-cards-teaser-close-button"),"click",this.JH),this.L(this.qp("ytp-cards-teaser-info-icon"),"click",this.Rr),this.L(this.qp("ytp-cards-teaser-label"),"click",this.Rr)):this.listen("click",this.Rr);this.L(R.element,"mouseover",this.O_);this.L(R.element,"mouseout",this.mq);this.L(J,"cardsteasershow", this.QGC);this.L(J,"cardsteaserhide",this.Uv);this.L(J,"cardstatechange",this.Qy);this.L(J,"presentingplayerstatechange",this.Qy);this.L(J,"appresize",this.i_);this.L(J,"onShowControls",this.i_);this.L(J,"onHideControls",this.kL);this.listen("mouseenter",this.gZ)}; n_E=function(J){g.c.call(this,{C:"button",CC:[wv.BUTTON,wv.TITLE_NOTIFICATIONS],B:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},j:[{C:"div",Y:wv.TITLE_NOTIFICATIONS_ON,B:{title:"Deixar de receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"},j:[g.Pd()]},{C:"div",Y:wv.TITLE_NOTIFICATIONS_OFF,B:{title:"Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"}, j:[{C:"svg",B:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},j:[{C:"path",B:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=J;this.K=!1;J.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")}; Dvk=function(J,R){J.K=R;J.element.classList.toggle(wv.NOTIFICATIONS_ENABLED,J.K);var N=J.api.getVideoData();N?(R=R?N.oL:N.aL)?(J=J.api.AU())?MF(J,R):g.yD(Error("No innertube service available when updating notification preferences.")):g.yD(Error("No update preferences command available.")):g.yD(Error("No video data when updating notification preferences."))}; BC7=function(J,R,N){var C=C===void 0?800:C;var X=X===void 0?600:X;J=srE(J,R);if(J=g.cv(window,J,"loginPopup","width="+C+",height="+X+",resizable=yes,scrollbars=yes"))zpk(function(){N()}),J.moveTo((screen.width-C)/2,(screen.height-X)/2)}; srE=function(J,R){var N=document.location.protocol;return NqQ(N+"//"+J+"/signin?context=popup","feature",R,"next",N+"//"+location.hostname+"/post_login")}; g.cY=function(J,R,N,C,X,u,f,H,k,v,W,S){J=J.charAt(0)+J.substring(1).toLowerCase();N=N.charAt(0)+N.substring(1).toLowerCase();if(R==="0"||R==="-1")R=null;if(C==="0"||C==="-1")C=null;var L=W.N(),I=L.userDisplayName&&g.zn(L);g.c.call(this,{C:"div",CC:["ytp-button","ytp-sb"],j:[{C:"div",Y:"ytp-sb-subscribe",B:I?{title:g.rN("Inscrever-se como $USER_NAME",{USER_NAME:L.userDisplayName}),"aria-label":"Inscrever-se no canal","data-tooltip-image":kC(L),"data-tooltip-opaque":String(g.V_(L)),tabindex:"0",role:"button"}: {"aria-label":"Inscrever-se no canal"},j:[{C:"div",Y:"ytp-sb-text",j:[{C:"div",Y:"ytp-sb-icon"},J]},R?{C:"div",Y:"ytp-sb-count",cC:R}:""]},{C:"div",Y:"ytp-sb-unsubscribe",B:I?{title:g.rN("Inscrito como $USER_NAME",{USER_NAME:L.userDisplayName}),"aria-label":"Cancelar inscri\u00e7\u00e3o no canal","data-tooltip-image":kC(L),"data-tooltip-opaque":String(g.V_(L)),tabindex:"0",role:"button"}:{"aria-label":"Cancelar inscri\u00e7\u00e3o no canal"},j:[{C:"div",Y:"ytp-sb-text",j:[{C:"div",Y:"ytp-sb-icon"}, N]},C?{C:"div",Y:"ytp-sb-count",cC:C}:""]}],B:{"aria-live":"polite"}});var F=this;this.channelId=f;this.G=W;this.V=S;var a=this.qp("ytp-sb-subscribe"),n=this.qp("ytp-sb-unsubscribe");u&&g.FL(this.element,"ytp-sb-classic");if(X){H?this.K():this.J();var B=function(){if(L.ma){var A=F.channelId;if(k||v){var V={c:A};var p;g.hS.isInitialized()&&(p=UDE(V));V=p||"";if(p=W.getVideoData())if(p=p.subscribeCommand){var b=W.AU();b?(MF(b,p,{botguardResponse:V,feature:k}),W.z7("SUBSCRIBE",A)):g.yD(Error("No innertube service available when updating subscriptions."))}else g.yD(Error("No subscribe command in videoData.")); else g.yD(Error("No video data available when updating subscription."))}n.focus();n.removeAttribute("aria-hidden");a.setAttribute("aria-hidden","true")}else BC7(g.Jz(F.G.N()),"sb_button",F.Z)},Z=function(){var A=F.channelId; if(k||v){var V=W.getVideoData();MF(W.AU(),V.unsubscribeCommand,{feature:k});W.z7("UNSUBSCRIBE",A)}a.focus();a.removeAttribute("aria-hidden");n.setAttribute("aria-hidden","true")}; this.L(a,"click",B);this.L(n,"click",Z);this.L(a,"keypress",function(A){A.keyCode===13&&B(A)}); this.L(n,"keypress",function(A){A.keyCode===13&&Z(A)}); this.L(W,"SUBSCRIBE",this.K);this.L(W,"UNSUBSCRIBE",this.J);this.V&&I&&(qzB(W),$e(W,a,this),$e(W,n,this))}else g.FL(a,"ytp-sb-disabled"),g.FL(n,"ytp-sb-disabled")}; dvP=function(J){g.c.call(this,{C:"div",Y:"ytp-title-channel",j:[{C:"div",Y:"ytp-title-beacon"},{C:"a",Y:"ytp-title-channel-logo",B:{href:"{{channelLink}}",target:J.N().W,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{C:"div",Y:"ytp-title-expanded-overlay",B:{"aria-hidden":"{{flyoutUnfocusable}}"},j:[{C:"div",Y:"ytp-title-expanded-heading",j:[{C:"div",Y:"ytp-title-expanded-title",j:[{C:"a",cC:"{{expandedTitle}}",B:{href:"{{channelTitleLink}}",target:J.N().W,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{C:"div",Y:"ytp-title-expanded-subtitle",cC:"{{expandedSubtitle}}",B:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var R=this;this.api=J;this.channel=this.qp("ytp-title-channel");this.J=this.qp("ytp-title-channel-logo");this.channelName=this.qp("ytp-title-expanded-title");this.U=this.qp("ytp-title-expanded-overlay");this.V=this.K=this.subscribeButton=null;this.Z=!1;J.createClientVe(this.J,this,36925);J.createClientVe(this.channelName,this, 37220);g.V_(this.api.N())&&O1k(this);this.L(J,"videodatachange",this.hN);this.L(J,"videoplayerreset",this.hN);this.L(this.channelName,"click",function(N){R.api.logClick(R.channelName);g.cv(window,Z1E(R));N.preventDefault()}); this.L(this.J,"click",this.AEp);this.hN()}; qCY=function(J){if(!J.api.N().kA){var R=J.api.getVideoData(),N=new g.cY("Inscreva-se",null,"Inscrito",null,!0,!1,R.ud,R.subscribed,"channel_avatar",null,J.api,!0);J.api.createServerVe(N.element,J);var C;J.api.setTrackingParams(N.element,((C=R.subscribeButtonRenderer)==null?void 0:C.trackingParams)||null);J.L(N.element,"click",function(){J.api.logClick(N.element)}); J.subscribeButton=N;g.P(J,J.subscribeButton);J.subscribeButton.IB(J.U);J.subscribeButton.hide();var X=new n_E(J.api);J.K=X;g.P(J,X);X.IB(J.U);X.hide();J.L(J.api,"SUBSCRIBE",function(){R.PY&&(X.show(),J.api.logVisibility(X.element,!0))}); J.L(J.api,"UNSUBSCRIBE",function(){R.PY&&(X.hide(),J.api.logVisibility(X.element,!1),Dvk(X,!1))})}}; O1k=function(J){var R=J.api.N();qCY(J);J.updateValue("flyoutUnfocusable","true");J.updateValue("channelTitleFocusable","-1");J.updateValue("shouldHideExpandedTitleForA11y","true");J.updateValue("shouldHideExpandedSubtitleForA11y","true");R.J||R.pC||(J.L(J.channel,"mouseenter",J.K4),J.L(J.channel,"mouseleave",J.IV),J.L(J.channel,"focusin",J.K4),J.L(J.channel,"focusout",function(N){J.channel.contains(N.relatedTarget)||J.IV()})); J.V=new g.$t(function(){J.isExpanded()&&(J.api.logVisibility(J.channelName,!1),J.subscribeButton&&(J.subscribeButton.hide(),J.api.logVisibility(J.subscribeButton.element,!1)),J.K&&(J.K.hide(),J.api.logVisibility(J.K.element,!1)),J.channel.classList.remove("ytp-title-expanded"),J.channel.classList.add("ytp-title-show-collapsed"))},500); g.P(J,J.V);J.L(J.channel,A8n,function(){YCf(J)}); J.L(J.api,"onHideControls",J.dP);J.L(J.api,"appresize",J.dP);J.L(J.api,"fullscreentoggled",J.dP)}; YCf=function(J){J.channel.classList.remove("ytp-title-show-collapsed");J.channel.classList.remove("ytp-title-show-expanded")}; r82=function(J){var R=J.api.getPlayerSize();return g.V_(J.api.N())&&R.width>=524}; Z1E=function(J){var R=J.api.N(),N=J.api.getVideoData(),C=g.vm(R)+N.R1;g.hq(N)&&(C="https://music.youtube.com"+N.R1);if(!g.V_(R))return C;R={};g.J9(J.api,"addEmbedsConversionTrackingParams",[R]);return g.bD(C,R)}; h$=function(J){var R=g.GC({"aria-haspopup":"true"});g.y$.call(this,R,J);this.listen("keydown",this.K)}; y4=function(J,R){J.element.setAttribute("aria-haspopup",String(R))}; jrE=function(J,R){g.c.call(this,{C:"div",Y:"ytp-user-info-panel",B:{"aria-label":"Informa\u00e7\u00f5es do usu\u00e1rio"},j:J.N().ma&&!J.T("embeds_web_always_enable_signed_out_state")?[{C:"div",Y:"ytp-user-info-panel-icon",cC:"{{icon}}"},{C:"div",Y:"ytp-user-info-panel-content",j:[{C:"div",Y:"ytp-user-info-panel-info",B:{tabIndex:"{{userInfoFocusable}}",role:"text"},cC:"{{watchingAsUsername}}"},{C:"div",Y:"ytp-user-info-panel-info",B:{tabIndex:"{{userInfoFocusable2}}",role:"text"},cC:"{{watchingAsEmail}}"}]}]: [{C:"div",Y:"ytp-user-info-panel-icon",cC:"{{icon}}"},{C:"div",Y:"ytp-user-info-panel-content",j:[{C:"div",j:[{C:"text",B:{tabIndex:"{{userInfoFocusable}}"},cC:"Conta desconectada"}]},{C:"div",Y:"ytp-user-info-panel-login",j:[{C:"a",B:{tabIndex:"{{userInfoFocusable2}}",role:"button"},cC:J.N().kA?"":"Fazer login no YouTube"}]}]}]});this.x8=J;this.K=R;J.N().ma||J.N().kA||this.L(this.qp("ytp-user-info-panel-login"),"click",this.OI);this.closeButton=new g.c({C:"button",CC:["ytp-collapse","ytp-button"], B:{title:"Fechar"},j:[g.hp()]});this.closeButton.IB(this.element);g.P(this,this.closeButton);this.L(window,"blur",this.hide);this.L(document,"click",this.mm);this.hN()}; VKY=function(J,R,N){g.ZM.call(this,J);this.JE=R;this.rk=N;this.getVideoUrl=new h$(6);this.zk=new h$(5);this.De=new h$(4);this.fP=new h$(3);this.Ms=new g.y$(g.GC({href:"{{href}}",target:this.G.N().W},void 0,!0),2,"Resolver problemas de reprodu\u00e7\u00e3o");this.showVideoInfo=new g.y$(g.GC(),1,"Estat\u00edsticas para nerds");this.G2=new g.da({C:"div",CC:["ytp-copytext","ytp-no-contextmenu"],B:{draggable:"false",tabindex:"1"},cC:"{{text}}"});this.XN=new OJ(this.G,this.G2);this.lh=this.bG=null;g.V_(this.G.N())&& (this.closeButton=new g.c({C:"button",CC:["ytp-collapse","ytp-button"],B:{title:"Fechar"},j:[g.hp()]}),g.P(this,this.closeButton),this.closeButton.IB(this.element),this.closeButton.listen("click",this.Ro,this));g.V_(this.G.N())&&(this.kP=new g.y$(g.GC(),8,"Conta"),g.P(this,this.kP),this.S2(this.kP,!0),this.kP.listen("click",this.giC,this),J.createClientVe(this.kP.element,this.kP,137682));this.G.N().IW&&(this.ax=new CJ("Loop",7),g.P(this,this.ax),this.S2(this.ax,!0),this.ax.listen("click",this.w1a, this),J.createClientVe(this.ax.element,this.ax,28661));g.P(this,this.getVideoUrl);this.S2(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.aoQ,this);J.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.P(this,this.zk);this.S2(this.zk,!0);this.zk.listen("click",this.s1n,this);J.createClientVe(this.zk.element,this.zk,28660);g.P(this,this.De);this.S2(this.De,!0);this.De.listen("click",this.X3a,this);J.createClientVe(this.De.element,this.De,28658);g.P(this,this.fP);this.S2(this.fP, !0);this.fP.listen("click",this.zqB,this);g.P(this,this.Ms);this.S2(this.Ms,!0);this.Ms.listen("click",this.zoQ,this);g.P(this,this.showVideoInfo);this.S2(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.mP8,this);g.P(this,this.G2);this.G2.listen("click",this.YvC,this);g.P(this,this.XN);R=document.queryCommandSupported&&document.queryCommandSupported("copy");MEf("Chromium")>=43&&(R=!0);MEf("Firefox")<=40&&(R=!1);R&&(this.bG=new g.c({C:"textarea",Y:"ytp-html5-clipboard",B:{readonly:"", tabindex:"-1"}}),g.P(this,this.bG),this.bG.IB(this.element));var C;(C=this.kP)==null||C.setIcon(bIn());var X;(X=this.ax)==null||X.setIcon({C:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{C:"path",B:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.fP.setIcon({C:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{C:"path",B:{"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.Ms.setIcon(emB());this.showVideoInfo.setIcon(w1B());this.L(J,"onLoopChange",this.onLoopChange);this.L(J,"videodatachange",this.onVideoDataChange);mvE(this);this.jl(this.G.getVideoData())}; Gx=function(J,R){var N=!1;if(J.bG){var C=J.bG.element;C.value=R;C.select();try{N=document.execCommand("copy")}catch(X){}}N?J.JE.Uv():(J.G2.W1(R,"text"),g.AZ(J.JE,J.XN),N8g(J.G2.element),J.bG&&(J.bG=null,mvE(J)));return N}; mvE=function(J){var R=!!J.bG;g.h9(J.fP,R?"Copiar informa\u00e7\u00f5es de depura\u00e7\u00e3o":"Ver informa\u00e7\u00f5es sobre depura\u00e7\u00e3o");y4(J.fP,!R);g.h9(J.De,R?"Copiar c\u00f3digo de incorpora\u00e7\u00e3o":"Ver c\u00f3digo de incorpora\u00e7\u00e3o");y4(J.De,!R);g.h9(J.getVideoUrl,R?"Copiar URL do v\u00eddeo":"Ver URL do v\u00eddeo");y4(J.getVideoUrl,!R);g.h9(J.zk,R?"Copiar URL do v\u00eddeo no momento atual":"Ver URL do v\u00eddeo no tempo atual");y4(J.zk,!R);J.De.setIcon(R?leB(): null);J.getVideoUrl.setIcon(R?p7():null);J.zk.setIcon(R?p7():null)}; g_B=function(J){return g.V_(J.G.N())?J.kP:J.ax}; pjg=function(J,R){g.qt.call(this,J);this.rk=R;this.Z=new g.tY(this);this.dn=new g.$t(this.Smf,1E3,this);this.ma=this.V=null;g.P(this,this.Z);g.P(this,this.dn);J.createClientVe(this.element,this,28656);g.FL(this.element,"ytp-contextmenu");UvE(this);this.hide()}; UvE=function(J){g.pI(J.Z);var R=J.G.N();R.playerStyle==="gvn"||R.J||R.pC||(R=J.G.jQ(),J.Z.L(R,"contextmenu",J.xRa),J.Z.L(R,"touchstart",J.iy,null,!0),J.Z.L(R,"touchmove",J.w8,null,!0),J.Z.L(R,"touchend",J.w8,null,!0))}; llY=function(J){J.G.isFullscreen()?g.EL(J.G,J.element,10):J.IB(document.body)}; bp=function(J,R,N){N=N===void 0?240:N;g.c.call(this,{C:"button",CC:["ytp-button","ytp-copylink-button"],B:{title:"{{title-attr}}","data-tooltip-opaque":String(g.V_(J.N()))},j:[{C:"div",Y:"ytp-copylink-icon",cC:"{{icon}}"},{C:"div",Y:"ytp-copylink-title",cC:"Copiar link",B:{"aria-hidden":"true"}}]});this.api=J;this.c7=R;this.K=N;this.visible=!1;this.tooltip=this.c7.Op();R=J.N();this.tooltip.element.setAttribute("aria-live","polite");g.ao(this.element,"ytp-show-copylink-title",g.V_(R));J.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.L(J,"videodatachange",this.hN);this.L(J,"videoplayerreset",this.hN);this.L(J,"appresize",this.hN);this.hN();this.addOnDisposeCallback(g.TC(this.tooltip,this.element))}; Pmn=function(J){var R=J.api.N(),N=J.api.getVideoData(),C=J.api.jQ().getPlayerSize().width;R=R.V;return!!N.videoId&&C>=J.K&&N.gC&&!g.cJ(N)&&!J.api.Yv()&&!R}; zFk=function(J){J.updateValue("icon",j7());if(J.api.N().J)J.tooltip.wD(J.element,"Link copiado para a \u00e1rea de transfer\u00eancia");else{J.updateValue("title-attr","Link copiado para a \u00e1rea de transfer\u00eancia");J.tooltip.mQ();J.tooltip.wD(J.element);var R=J.listen("mouseleave",function(){J.tL(R);J.hN();J.tooltip.ZR()})}}; eFn=function(J,R){return g.Y(function(N){if(N.K==1)return g.Ef(N,2),g.q(N,navigator.clipboard.writeText(R),4);if(N.K!=2)return N.return(!0);g.K2(N);var C=N.return,X=!1,u=g.iu("TEXTAREA");u.value=R;u.setAttribute("readonly","");var f=J.api.getRootNode();f.appendChild(u);if(C9){var H=window.getSelection();H.removeAllRanges();var k=document.createRange();k.selectNodeContents(u);H.addRange(k);u.setSelectionRange(0,R.length)}else u.select();try{X=document.execCommand("copy")}catch(v){}f.removeChild(u); return C.call(N,X)})}; t$=function(J){g.c.call(this,{C:"div",Y:"ytp-doubletap-ui-legacy",j:[{C:"div",Y:"ytp-doubletap-fast-forward-ve"},{C:"div",Y:"ytp-doubletap-rewind-ve"},{C:"div",Y:"ytp-doubletap-static-circle",j:[{C:"div",Y:"ytp-doubletap-ripple"}]},{C:"div",Y:"ytp-doubletap-overlay-a11y"},{C:"div",Y:"ytp-doubletap-seek-info-container",j:[{C:"div",Y:"ytp-doubletap-arrows-container",j:[{C:"span",Y:"ytp-doubletap-base-arrow"},{C:"span",Y:"ytp-doubletap-base-arrow"},{C:"span",Y:"ytp-doubletap-base-arrow"}]},{C:"div", Y:"ytp-doubletap-tooltip",j:[{C:"div",Y:"ytp-seek-icon-text-container",j:[{C:"div",Y:"ytp-seek-icon",cC:"{{seekIcon}}"},{C:"div",Y:"ytp-chapter-seek-text-legacy",cC:"{{seekText}}"}]},{C:"div",Y:"ytp-doubletap-tooltip-label",cC:"{{seekTime}}"}]}]}]});this.G=J;this.Z=new g.$t(this.show,10,this);this.J=new g.$t(this.hide,700,this);this.S=this.V=0;this.nC=this.U=!1;this.K=this.qp("ytp-doubletap-static-circle");g.P(this,this.Z);g.P(this,this.J);this.hide();this.X=this.qp("ytp-doubletap-fast-forward-ve"); this.W=this.qp("ytp-doubletap-rewind-ve");this.G.createClientVe(this.X,this,28240);this.G.createClientVe(this.W,this,28239);this.G.logVisibility(this.X,!0);this.G.logVisibility(this.W,!0);this.U=J.T("web_show_cumulative_seek_time");this.nC=J.T("web_center_static_circles")}; x0=function(J,R,N,C){if(C=C===void 0?null:C){var X=R===-1?J.W.visualElement:J.X.visualElement;C={seekData:C};var u=g.pR();u&&g.$q(vd)(void 0,u,X,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",C,void 0)}J.V=R===J.S?J.V+N:N;J.S=R;X=J.G.jQ().getPlayerSize();J.U?J.J.stop():g.vK(J.J);J.Z.start();J.element.setAttribute("data-side",R===-1?"back":"forward");g.FL(J.element,"ytp-time-seeking");J.K.style.width="110px";J.K.style.height="110px";C=X.width*.1-15;R===1?J.nC?(J.K.style.right=C+"px",J.K.style.left=""): (J.K.style.right="",J.K.style.left=X.width*.8-30+"px"):R===-1&&(J.nC?(J.K.style.right="",J.K.style.left=C+"px"):(J.K.style.right="",J.K.style.left=X.width*.1-15+"px"));J.K.style.top=X.height*.5+15+"px";wjg(J,J.U?J.V:N)}; c8B=function(J,R,N,C){C=C===void 0?null:C;g.vK(J.J);J.Z.start();switch(R){case -1:R="back";break;case 1:R="forward";break;default:R=""}J.element.setAttribute("data-side",R);J.K.style.width="0";J.K.style.height="0";g.FL(J.element,"ytp-chapter-seek");J.updateValue("seekText",N);J.updateValue("seekTime","");N=J.qp("ytp-seek-icon");if(C){a:if(C){switch(C){case "PREMIUM_STANDALONE":C={C:"svg",B:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},j:[{C:"path",B:{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"}},{C:"path",B:{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":C={C:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{C:"rect",B:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{C:"rect",B:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{C:"path",B:{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"}},{C:"defs",j:[{C:"linearGradient",B:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},j:[{C:"stop",B:{offset:"0.3","stop-color":"#E1002D"}},{C:"stop",B:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}C=void 0}else C=null;J.updateValue("seekIcon",C);N.style.display="inline-block"}else N.style.display="none"}; wjg=function(J,R){R=g.rN("$TOTAL_SEEK_TIME segundos",{TOTAL_SEEK_TIME:R.toString()});J.updateValue("seekTime",R)}; hFE=function(J){B8.call(this,J,!1,!0);this.tN=[];this.TW=[];this.W=!0;this.badge.element.classList.add("ytp-featured-product");this.VO=new g.c({C:"div",Y:"ytp-featured-product-open-in-new"});g.P(this,this.VO);this.countdownTimer=new g.c({C:"text",Y:"ytp-featured-product-countdown",cC:"{{content}}"});this.countdownTimer.hide();g.P(this,this.countdownTimer);this.J=new g.c({C:"div",Y:"ytp-featured-product-trending",j:[{C:"div",Y:"ytp-featured-product-trending-icon"},{C:"text",Y:"ytp-featured-product-trending-text", cC:"{{trendingOffer}}"}]});this.J.hide();g.P(this,this.J);this.overflowButton=new g.c({C:"button",CC:["ytp-featured-product-overflow-icon","ytp-button"],B:{"aria-haspopup":"true"}});this.overflowButton.hide();g.P(this,this.overflowButton);this.infoButton=new g.c({C:"button",CC:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.P(this,this.infoButton);this.X=new g.c({C:"text",Y:"ytp-featured-product-exclusive-countdown",cC:"{{content}}",B:{id:"exclusiveCountdown","aria-hidden":"true"}}); this.X.hide();g.P(this,this.X);this.S=new g.c({C:"div",Y:"ytp-featured-product-exclusive-container",B:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},j:[{C:"div",Y:"ytp-featured-product-exclusive-badge-container",j:[{C:"div",Y:"ytp-featured-product-exclusive-badge",j:[{C:"text",Y:"ytp-featured-product-exclusive-badge-text",cC:"{{exclusive}}",B:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.X]});this.S.hide();g.P(this,this.S);this.banner=new g.c({C:"a",Y:"ytp-featured-product-container", j:[{C:"div",Y:"ytp-featured-product-thumbnail",j:[{C:"img",B:{src:"{{thumbnail}}"}},this.VO]},{C:"div",Y:"ytp-featured-product-details",j:[{C:"text",Y:"ytp-featured-product-title",cC:"{{title}}"},this.G.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{C:"div",Y:"ytp-featured-product-price-container",B:{"aria-label":"{{priceA11yText}}"},j:[{C:"text",Y:"ytp-featured-product-price-when-promotion-text-enabled",cC:"{{price}}",B:{"aria-hidden":"true"}},{C:"text",Y:"ytp-featured-product-promotion-text", cC:"{{promotionText}}",B:{"aria-hidden":"true"}}]}:{C:"div",B:{"aria-label":"{{priceA11yText}}"},j:[{C:"text",Y:"ytp-featured-product-price",cC:"{{price}}",B:{"aria-hidden":"true"}},{C:"text",Y:"ytp-featured-product-sales-original-price",cC:"{{salesOriginalPrice}}",B:{"aria-hidden":"true"}},{C:"text",Y:"ytp-featured-product-price-drop-reference-price",cC:"{{priceDropReferencePrice}}",B:{"aria-hidden":"true"}}]},this.G.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{C:"div", Y:"ytp-featured-product-when-promotion-text-enabled",j:[{C:"text",Y:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",cC:"{{affiliateDisclaimer}}"},this.J,{C:"text",Y:"ytp-featured-product-vendor-when-promotion-text-enabled",cC:"{{vendor}}"}]}:{C:"div",j:[{C:"text",Y:"ytp-featured-product-affiliate-disclaimer",cC:"{{affiliateDisclaimer}}"},this.G.T("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.S:null,this.J,{C:"text",Y:"ytp-featured-product-vendor", cC:"{{vendor}}"},this.countdownTimer]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.P(this,this.banner);this.banner.IB(this.V.element);this.L(this.G,g.Q3("featured_product"),this.nTB);this.L(this.G,g.nw("featured_product"),this.TQ);this.L(this.G,"videodatachange",this.onVideoDataChange);this.L(this.infoButton.element,"click",this.oAC);this.L(this.overflowButton.element,"click",this.tH);this.L(J,"featuredproductdismissed",this.Po)}; y8f=function(J){var R,N;J=(R=J.K)==null?void 0:(N=R.bannerData)==null?void 0:N.itemData;var C,X,u;return(J==null||!J.affiliateDisclaimer)&&(J==null?0:(C=J.exclusivesData)==null?0:C.exclusiveOfferLabelText)&&(J==null?0:(X=J.exclusivesData)==null?0:X.expirationTimestampMs)&&(J==null?0:(u=J.exclusivesData)==null?0:u.exclusiveOfferCountdownText)?!0:!1}; b1E=function(J){var R,N,C,X,u=(R=J.K)==null?void 0:(N=R.bannerData)==null?void 0:(C=N.itemData)==null?void 0:(X=C.exclusivesData)==null?void 0:X.expirationTimestampMs;R=(Number(u)-Date.now())/1E3;if(R>0){if(R<604800){var f,H,k,v;N=(f=J.K)==null?void 0:(H=f.bannerData)==null?void 0:(k=H.itemData)==null?void 0:(v=k.exclusivesData)==null?void 0:v.exclusiveOfferCountdownText;if(N!==void 0)for(f=Date.now(),H=g.K(N),k=H.next();!k.done;k=H.next())if(k=k.value,k!==void 0&&k.text!==void 0&&(v=Number(k.textDisplayStartTimestampMs), !isNaN(v)&&f>=v)){k.insertCountdown?(R=k.text.replace(/\$0/,String(rS({seconds:R}))),J.X.W1(R)):J.X.W1(k.text);J.X.show();break}}var W,S,L,I;J.S.update({exclusive:(W=J.K)==null?void 0:(S=W.bannerData)==null?void 0:(L=S.itemData)==null?void 0:(I=L.exclusivesData)==null?void 0:I.exclusiveOfferLabelText});J.S.show();J1(J);var F;(F=J.YA)==null||F.start()}else GK2(J)}; GK2=function(J){var R;(R=J.YA)==null||R.stop();J.X.hide();J.S.hide();oB(J)}; tKg=function(J){var R,N,C=(R=J.K)==null?void 0:(N=R.bannerData)==null?void 0:N.itemData;return J.G.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(C==null||!C.priceReplacementText)&&(C==null?0:C.promotionText)?C==null?void 0:C.promotionText.content:null}; xvn=function(J){var R,N,C=(R=J.K)==null?void 0:(N=R.bannerData)==null?void 0:N.itemData,X,u;if(!(C!=null&&C.priceReplacementText||J.G.T("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(C==null?0:(X=C.dealsData)==null?0:(u=X.sales)==null?0:u.originalPrice)){var f,H;return C==null?void 0:(f=C.dealsData)==null?void 0:(H=f.sales)==null?void 0:H.originalPrice}return null}; JwP=function(J){var R,N,C=(R=J.K)==null?void 0:(N=R.bannerData)==null?void 0:N.itemData,X,u,f,H;if(!((C==null?0:C.priceReplacementText)||J.G.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(C==null?0:(X=C.dealsData)==null?0:(u=X.sales)==null?0:u.originalPrice))&&(C==null?0:(f=C.dealsData)==null?0:(H=f.priceDrop)==null?0:H.referencePrice)){var k,v;return C==null?void 0:(k=C.dealsData)==null?void 0:(v=k.priceDrop)==null?void 0:v.referencePrice}return null}; oFg=function(J){var R,N,C=(R=J.K)==null?void 0:(N=R.bannerData)==null?void 0:N.itemData;if(C==null?0:C.priceReplacementText)return C==null?void 0:C.priceReplacementText;if((C==null?0:C.promotionText)&&J.G.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var X;return(C==null?void 0:C.price)+" "+(C==null?void 0:(X=C.promotionText)==null?void 0:X.content)}var u,f;if(C==null?0:(u=C.dealsData)==null?0:(f=u.sales)==null?0:f.originalPrice){var H,k;return C==null?void 0:(H=C.dealsData)== null?void 0:(k=H.sales)==null?void 0:k.salesPriceAccessibilityLabel}var v,W;if(C==null?0:(v=C.dealsData)==null?0:(W=v.priceDrop)==null?0:W.referencePrice){var S,L;return(C==null?void 0:C.price)+" "+(C==null?void 0:(S=C.dealsData)==null?void 0:(L=S.priceDrop)==null?void 0:L.referencePrice)}return C==null?void 0:C.price}; Rlk=function(J){if(J.G.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var R,N,C;return J.J.Fn?null:(R=J.K)==null?void 0:(N=R.bannerData)==null?void 0:(C=N.itemData)==null?void 0:C.vendorName}var X,u,f,H,k,v;return J.J.Fn||J.S.Fn||((X=J.K)==null?0:(u=X.bannerData)==null?0:(f=u.itemData)==null?0:f.affiliateDisclaimer)?null:(H=J.K)==null?void 0:(k=H.bannerData)==null?void 0:(v=k.itemData)==null?void 0:v.vendorName}; CZB=function(J,R){RB(J);if(R){var N=g.I5.getState().entities;N=By(N,"featuredProductsEntity",R);if(N!=null&&N.productsData){R=[];N=g.K(N.productsData);for(var C=N.next();!C.done;C=N.next()){C=C.value;var X=void 0;if((X=C)!=null&&X.identifier&&C.featuredSegments){J.tN.push(C);var u=void 0;X=g.K((u=C)==null?void 0:u.featuredSegments);for(u=X.next();!u.done;u=X.next()){var f=u.value;u=NK8(f.startTimeSec);u!==void 0&&(f=NK8(f.endTimeSec),R.push(new g.Kw(u*1E3,f===void 0?0x7ffffffffffff:f*1E3,{id:C.identifier, namespace:"featured_product"})))}}}J.G.KL(R)}}}; oB=function(J){if(J.trendingOfferEntityKey){var R=g.I5.getState().entities;if(R=By(R,"trendingOfferEntity",J.trendingOfferEntityKey)){var N,C,X;R.encodedSkuId!==((N=J.K)==null?void 0:(C=N.bannerData)==null?void 0:(X=C.itemData)==null?void 0:X.encodedOfferSkuId)?J1(J):(J.J.update({trendingOffer:R.shortLabel+" \u2022 "+R.countLabel}),J.J.show(),J.banner.update({vendor:Rlk(J)}))}else J1(J)}else J1(J)}; J1=function(J){J.J.hide();J.banner.update({vendor:Rlk(J)})}; RB=function(J){J.tN=[];J.TQ();J.G.ir("featured_product")}; X6g=function(J){var R,N,C,X,u=(R=J.K)==null?void 0:(N=R.bannerData)==null?void 0:(C=N.itemData)==null?void 0:(X=C.hiddenProductOptions)==null?void 0:X.dropTimestampMs;R=(Number(u)-Date.now())/1E3;J.countdownTimer.W1(rS({seconds:R}));if(R>0){var f;(f=J.VK)==null||f.start()}}; iO7=function(J){var R;(R=J.VK)==null||R.stop();J.countdownTimer.hide()}; NK8=function(J){if(J!==void 0&&J.trim()!==""&&(J=Math.trunc(Number(J.trim())),!(isNaN(J)||J<0)))return J}; HOY=function(J,R,N){g.c.call(this,{C:"div",CC:["ytp-info-panel-action-item"],j:[{C:"div",Y:"ytp-info-panel-action-item-disclaimer",cC:"{{disclaimer}}"},{C:"a",CC:["ytp-info-panel-action-item-button","ytp-button"],B:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},j:[{C:"div",Y:"ytp-info-panel-action-item-icon",cC:"{{icon}}"},{C:"div",Y:"ytp-info-panel-action-item-label",cC:"{{label}}"}]}]});this.G=J;this.K=N;this.disclaimer=this.qp("ytp-info-panel-action-item-disclaimer");this.button= this.qp("ytp-info-panel-action-item-button");this.Da=!1;this.G.createServerVe(this.element,this,!0);this.listen("click",this.onClick);J="";N=g.z(R==null?void 0:R.onTap,tv);var C=g.z(N,g.oH);this.Da=!1;C?(J=C.url||"",J.startsWith("//")&&(J="https:"+J),this.Da=!0,g.lx(this.button,g.U5(J))):(C=g.z(N,uD8))&&!this.K?((J=C.phoneNumbers)&&J.length>0?(J="sms:"+J[0],C.messageText&&(J+="?&body="+encodeURI(C.messageText))):J="",this.Da=!0,g.lx(this.button,g.U5(J,[fWg]))):(N=g.z(N,TKf))&&!this.K&&(J=N.phoneNumber? "tel:"+N.phoneNumber:"",this.Da=!0,g.lx(this.button,g.U5(J,[$c8])));var X;if(N=(X=R.disclaimerText)==null?void 0:X.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var u;this.update({label:(u=R.bodyText)==null?void 0:u.content,icon:zT(),disclaimer:N})}else{this.disclaimer.style.display="none";var f;this.update({label:(f=R.bodyText)==null?void 0:f.content,icon:zT()})}this.G.setTrackingParams(this.element,R.trackingParams||null);this.Da&&(this.J={externalLinkData:{url:J}})}; kYE=function(J,R){var N=DK();g.Q$.call(this,J,{C:"div",Y:"ytp-info-panel-detail-skrim",j:[{C:"div",Y:"ytp-info-panel-detail",B:{role:"dialog",id:N},j:[{C:"div",Y:"ytp-info-panel-detail-header",j:[{C:"div",Y:"ytp-info-panel-detail-title",cC:"{{title}}"},{C:"button",CC:["ytp-info-panel-detail-close","ytp-button"],B:{"aria-label":"Fechar"},j:[g.UI()]}]},{C:"div",Y:"ytp-info-panel-detail-body",cC:"{{body}}"},{C:"div",Y:"ytp-info-panel-detail-items"}]}]},250);this.K=R;this.items=this.qp("ytp-info-panel-detail-items"); this.V=new g.tY(this);this.itemData=[];this.Z=N;this.L(this.qp("ytp-info-panel-detail-close"),"click",this.Uv);this.L(this.qp("ytp-info-panel-detail-skrim"),"click",this.Uv);this.L(this.qp("ytp-info-panel-detail"),"click",function(C){C.stopPropagation()}); g.P(this,this.V);this.G.createServerVe(this.element,this,!0);this.L(J,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",J.getVideoData());this.hide()}; vFg=function(J,R){J=g.K(J.itemData);for(var N=J.next();!N.done;N=J.next())N=N.value,N.G.logVisibility(N.element,R)}; LQE=function(J,R){g.c.call(this,{C:"div",Y:"ytp-info-panel-preview",B:{"aria-live":"assertive","aria-atomic":"true","aria-owns":R.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.V_(J.N()))},j:[{C:"div",Y:"ytp-info-panel-preview-text",cC:"{{text}}"},{C:"div",Y:"ytp-info-panel-preview-chevron",cC:"{{chevron}}"}]});var N=this;this.G=J;this.Em=this.K=this.videoId=null;this.Z=this.showControls=this.J=!1;this.L(this.element,"click",function(){J.logClick(N.element);J.lO();zC(R)}); this.V=new g.ES(this,250,!1,100);g.P(this,this.V);this.G.createServerVe(this.element,this,!0);this.L(J,"videodatachange",this.onVideoDataChange);this.L(J,"presentingplayerstatechange",this.Zm);this.L(this.G,"paidcontentoverlayvisibilitychange",this.Sc);this.L(this.G,"infopaneldetailvisibilitychange",this.Sc);var C=J.getVideoData()||{};WQ7(C)&&SxP(this,C);this.L(J,"onShowControls",this.I$);this.L(J,"onHideControls",this.VY)}; SxP=function(J,R){if(!R.ZI||!J.G.aW()){var N=R.zR||1E4,C=WQ7(R);J.K?R.videoId&&R.videoId!==J.videoId&&(g.vK(J.K),J.videoId=R.videoId,C?(IW7(J,N,R),J.Df()):(J.Uv(),J.K.dispose(),J.K=null)):C&&(R.videoId&&(J.videoId=R.videoId),IW7(J,N,R),J.Df())}}; WQ7=function(J){var R,N,C,X;return!!((R=J.rN)==null?0:(N=R.title)==null?0:N.content)||!!((C=J.rN)==null?0:(X=C.bodyText)==null?0:X.content)}; IW7=function(J,R,N){J.K&&J.K.dispose();J.K=new g.$t(J.gTB,R,J);g.P(J,J.K);var C;R=((C=N.rN)==null?void 0:C.trackingParams)||null;J.G.setTrackingParams(J.element,R);var X;var u,f;if(N==null?0:(u=N.rN)==null?0:(f=u.title)==null?0:f.content){var H;C=(X=N.rN)==null?void 0:(H=X.title)==null?void 0:H.content;var k,v;if((k=N.rN)==null?0:(v=k.bodyText)==null?0:v.content)C+=" \u2022 ";X=C}else X="";var W,S;N=((W=N.rN)==null?void 0:(S=W.bodyText)==null?void 0:S.content)||"";J.update({text:X+N,chevron:g.VP()})}; FQE=function(J,R){J.K&&(g.h(R,8)?(J.J=!0,J.Df(),J.K.start()):(g.h(R,2)||g.h(R,64))&&J.videoId&&(J.videoId=null))}; NZ=function(J){var R=null;try{R=J.toLocaleString("pt-BR",{style:"percent"})}catch(N){R=J.toLocaleString(void 0,{style:"percent"})}return R}; Co=function(J,R){var N=0;J=g.K(J);for(var C=J.next();!(C.done||C.value.startTime>R);C=J.next())N++;return N===0?N:N-1}; EFE=function(J,R){for(var N=0,C=g.K(J),X=C.next();!X.done;X=C.next()){X=X.value;if(R=X.timeRangeStartMillis&&R0?R[0]:null;var N=g.JT("ytp-chrome-bottom"),C=g.JT("ytp-ad-module");J.V=!(N==null||!N.contains(R));J.S=!(C==null||!C.contains(R));J.X=!(R==null||!R.hasAttribute("data-tooltip-target-fixed"));return R}; mcY=function(J,R,N){if(!J.Z){if(R){J.tooltipRenderer=R;R=J.tooltipRenderer.text;var C=!1,X;(R==null?0:(X=R.runs)==null?0:X.length)&&R.runs[0].text&&(J.update({title:R.runs[0].text.toString()}),C=!0);g.ji(J.title,C);R=J.tooltipRenderer.detailsText;X=!1;var u;if((R==null?0:(u=R.runs)==null?0:u.length)&&R.runs[0].text){C=R.runs[0].text.toString();u=C.indexOf("$TARGET_ICON");if(u>-1)if(J.tooltipRenderer.targetId){R=[];C=C.split("$TARGET_ICON");var f=new g.sI({C:"span",Y:"ytp-promotooltip-details-icon", j:[rwQ[J.tooltipRenderer.targetId]]});g.P(J,f);for(var H=[],k=g.K(C),v=k.next();!v.done;v=k.next())v=new g.sI({C:"span",Y:"ytp-promotooltip-details-component",cC:v.value}),g.P(J,v),H.push(v);C.length===2?(R.push(H[0].element),R.push(f.element),R.push(H[1].element)):C.length===1&&(u===0?(R.push(f.element),R.push(H[0].element)):(R.push(H[0].element),R.push(f.element)));u=R.length?R:null}else u=null;else u=C;if(u){if(typeof u!=="string")for(g.Tz(J.details),X=g.K(u),u=X.next();!u.done;u=X.next())J.details.appendChild(u.value); else J.update({details:u});X=!0}}g.ji(J.details,X);X=J.tooltipRenderer.acceptButton;u=!1;var W,S,L;((W=g.z(X,g.bT))==null?0:(S=W.text)==null?0:(L=S.runs)==null?0:L.length)&&g.z(X,g.bT).text.runs[0].text&&(J.update({acceptButtonText:g.z(X,g.bT).text.runs[0].text.toString()}),u=!0);g.ji(J.acceptButton,u);W=J.tooltipRenderer.dismissButton;S=!1;var I,F,a;((I=g.z(W,g.bT))==null?0:(F=I.text)==null?0:(a=F.runs)==null?0:a.length)&&g.z(W,g.bT).text.runs[0].text&&(J.update({dismissButtonText:g.z(W,g.bT).text.runs[0].text.toString()}), S=!0);g.ji(J.dismissButton,S)}N&&(J.J=N);J.targetElement=YxY(J);J.U=!1;J.G.N().T("web_player_hide_nitrate_promo_tooltip")||g.ZK(J,!0);jV7(J);J.Fn&&!J.W&&(J.W=!0,J.QR.XK(0));J.K&&J.G.logVisibility(J.element,J.Fn)}}; Hx=function(J){g.ZK(J,!1);J.K&&J.G.logVisibility(J.element,J.Fn)}; VIE=function(J){var R,N,C,X=((R=g.z(J.acceptButton,g.bT))==null?void 0:(N=R.text)==null?void 0:(C=N.runs)==null?void 0:C.length)&&!!g.z(J.acceptButton,g.bT).text.runs[0].text,u,f,H;R=((u=g.z(J.dismissButton,g.bT))==null?void 0:(f=u.text)==null?void 0:(H=f.runs)==null?void 0:H.length)&&!!g.z(J.dismissButton,g.bT).text.runs[0].text;return X||R}; jV7=function(J){var R;if(!(R=!J.targetElement)){R=J.targetElement;var N=window.getComputedStyle(R);R=N.display==="none"||N.visibility==="hidden"||R.getAttribute("aria-hidden")==="true"}if(R||J.G.isMinimized())g.ZK(J,!1);else if(R=g.rh(J.targetElement),R.width&&R.height){J.G.Hs(J.element,J.targetElement);var C=J.G.jQ().getPlayerSize().height;N=g.rh(J.qp("ytp-promotooltip-container")).height;J.V?J.element.style.top=C-N-R.height-12+"px":J.X||(C=J.G.hU().height-N-R.height-12,J.element.style.top=C+"px"); C=J.qp("ytp-promotooltip-pointer");var X=g.AU(J.targetElement,J.G.getRootNode()),u=Number(J.element.style.left.replace(/[^\d\.]/g,""));J=J.G.isFullscreen()?18:12;C.style.left=X.x-u+R.width/2-J+"px";C.style.top=N+"px"}else g.ZK(J,!1)}; kR=function(J){g.c.call(this,{C:"button",CC:["ytp-replay-button","ytp-button"],B:{title:"Reiniciar"},j:[g.wa()]});this.G=J;this.L(J,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.XD(J.getPlayerStateObject());$e(this.G,this.element,this)}; vx=function(J,R){R=R===void 0?240:R;g.c.call(this,{C:"button",CC:["ytp-button","ytp-search-button"],B:{title:"Pesquisar","data-tooltip-opaque":String(g.V_(J.N()))},j:[{C:"div",Y:"ytp-search-icon",cC:"{{icon}}"},{C:"div",Y:"ytp-search-title",cC:"Pesquisar"}]});this.api=J;this.J=R;this.visible=!1;this.updateValue("icon",{C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},j:[{C:"path",Y:"ytp-svg-fill",B:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); J.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.K();this.L(J,"appresize",this.K);this.L(J,"videodatachange",this.K);$e(J,this.element,this)}; g.Wx=function(J,R,N,C){C=C===void 0?240:C;g.c.call(this,{C:"button",CC:["ytp-button","ytp-share-button"],B:{title:"Compartilhar","aria-haspopup":"true","aria-owns":N.element.id,"data-tooltip-opaque":String(g.V_(J.N()))},j:[{C:"div",Y:"ytp-share-icon",cC:"{{icon}}"},{C:"div",Y:"ytp-share-title",cC:"Compartilhar"}]});this.api=J;this.c7=R;this.J=N;this.V=C;this.K=this.visible=!1;this.tooltip=this.c7.Op();J.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.L(J,"videodatachange", this.hN);this.L(J,"videoplayerreset",this.hN);this.L(J,"appresize",this.hN);this.L(J,"presentingplayerstatechange",this.hN);this.hN();this.addOnDisposeCallback(g.TC(this.tooltip,this.element))}; gF7=function(J){var R=J.api.N(),N=J.api.getVideoData(),C=g.V_(R)&&g.Lu(J.api)&&g.h(J.api.getPlayerStateObject(),128);R=R.V||R.disableSharing&&J.api.getPresentingPlayerType()!==2||!N.showShareButton||N.gC||C||g.cJ(N)||J.K;C=J.api.jQ().getPlayerSize().width;return!!N.videoId&&C>=J.V&&!R}; Uck=function(J,R){R.name!=="InvalidStateError"&&R.name!=="AbortError"&&(R.name==="NotAllowedError"?(J.c7.lO(),zC(J.J,J.element,!1)):g.yD(R))}; lW2=function(J,R){var N=DK(),C=J.N();N={C:"div",Y:"ytp-share-panel",B:{id:DK(),role:"dialog","aria-labelledby":N},j:[{C:"div",Y:"ytp-share-panel-inner-content",j:[{C:"div",Y:"ytp-share-panel-title",B:{id:N},cC:"Compartilhar"},{C:"a",CC:["ytp-share-panel-link","ytp-no-contextmenu"],B:{href:"{{link}}",target:C.W,title:"Compartilhar link","aria-label":"{{shareLinkWithUrl}}"},cC:"{{linkText}}"},{C:"label",Y:"ytp-share-panel-include-playlist",j:[{C:"input",Y:"ytp-share-panel-include-playlist-checkbox", B:{type:"checkbox",checked:"true"}},"Incluir lista de reprodu\u00e7\u00e3o"]},{C:"div",Y:"ytp-share-panel-loading-spinner",j:[RTB()]},{C:"div",Y:"ytp-share-panel-service-buttons",cC:"{{buttons}}"},{C:"div",Y:"ytp-share-panel-error",cC:"Ocorreu um erro ao recuperar informa\u00e7\u00f5es de compartilhamento. Tente novamente mais tarde."}]},{C:"button",CC:["ytp-share-panel-close","ytp-button"],B:{title:"Fechar"},j:[g.UI()]}]};g.Q$.call(this,J,N,250);var X=this;this.moreButton=null;this.api=J;this.tooltip= R.Op();this.V=[];this.U=this.qp("ytp-share-panel-inner-content");this.closeButton=this.qp("ytp-share-panel-close");this.L(this.closeButton,"click",this.Uv);this.addOnDisposeCallback(g.TC(this.tooltip,this.closeButton));this.Z=this.qp("ytp-share-panel-include-playlist-checkbox");this.L(this.Z,"click",this.hN);this.K=this.qp("ytp-share-panel-link");this.addOnDisposeCallback(g.TC(this.tooltip,this.K));this.api.createClientVe(this.K,this,164503);this.L(this.K,"click",function(u){u.preventDefault();X.api.logClick(X.K); var f=X.api.getVideoUrl(!0,!0,!1,!1);f=p6g(X,f);g.ue(f,X.api,u)&&X.api.z7("SHARE_CLICKED")}); this.listen("click",this.PS);this.L(J,"videoplayerreset",this.hide);this.L(J,"fullscreentoggled",this.onFullscreenToggled);this.L(J,"onLoopRangeChange",this.lMQ);this.hide()}; zlY=function(J,R){PZB(J);for(var N=R.links||R.shareTargets,C=0,X={},u=0;u'),(a=I.document)&&a.write&&(a.write(g.wd(F)),a.close()))):((I=g.cv(I,a,L,A))&&F.noopener&&(I.opener=null),I&&F.noreferrer&&(I.opener=null));I&&(I.opener||(I.opener=window),I.focus());S.preventDefault()}}}(X)); X.u4.addOnDisposeCallback(g.TC(J.tooltip,X.u4.element));H==="Facebook"?J.api.createClientVe(X.u4.element,X.u4,164504):H==="Twitter"&&J.api.createClientVe(X.u4.element,X.u4,164505);J.L(X.u4.element,"click",function(W){return function(){J.api.logClick(W.u4.element)}}(X)); J.api.logVisibility(X.u4.element,!0);J.V.push(X.u4);C++}}var k=R.more||R.moreLink,v=new g.c({C:"a",CC:["ytp-share-panel-service-button","ytp-button"],j:[{C:"span",Y:"ytp-share-panel-service-button-more",j:[{C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},j:[{C:"rect",B:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{C:"path",B:{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"}}]}]}],B:{href:k,target:"_blank",title:"Mais"}});v.listen("click",function(W){var S=k;J.api.logClick(J.moreButton.element);S=p6g(J,S);g.ue(S,J.api,W)&&J.api.z7("SHARE_CLICKED")}); v.addOnDisposeCallback(g.TC(J.tooltip,v.element));J.api.createClientVe(v.element,v,164506);J.L(v.element,"click",function(){J.api.logClick(v.element)}); J.api.logVisibility(v.element,!0);J.V.push(v);J.moreButton=v;J.updateValue("buttons",J.V)}; p6g=function(J,R){var N={};g.V_(J.api.N())&&(g.J9(J.api,"addEmbedsConversionTrackingParams",[N]),R=g.bD(R,N));return R}; PZB=function(J){for(var R=g.K(J.V),N=R.next();!N.done;N=R.next())N=N.value,N.detach(),g.XV(N);J.V=[]}; SD=function(J){return J===void 0||J.startSec===void 0||J.endSec===void 0?!1:!0}; elE=function(J,R){J.startSec+=R;J.endSec+=R}; cwg=function(J){B8.call(this,J);this.J=this.K=this.isContentForward=this.X=!1;w62(this);this.L(this.G,"changeProductsInVideoVisibility",this.GAa);this.L(this.G,"videodatachange",this.onVideoDataChange)}; hlk=function(J){J.S&&J.PC.element.removeChild(J.S.element);J.S=void 0}; GY7=function(J,R){return R.map(function(N){var C,X;if((N=(C=g.z(N,ywB))==null?void 0:(X=C.thumbnail)==null?void 0:X.thumbnails)&&N.length!==0)return N[0].url}).filter(function(N){return N!==void 0}).map(function(N){N=new g.c({C:"img", Y:"ytp-suggested-action-product-thumbnail",B:{alt:"",src:N}});g.P(J,N);return N})}; bOQ=function(J,R){J.isContentForward=R;g.ao(J.badge.element,"ytp-suggested-action-badge-content-forward",R)}; Lo=function(J){var R=J.isContentForward&&!J.BJ();g.ao(J.badge.element,"ytp-suggested-action-badge-preview-collapsed",R&&J.K);g.ao(J.badge.element,"ytp-suggested-action-badge-preview-expanded",R&&J.J)}; IB=function(J,R,N){return new g.Kw(J*1E3,R*1E3,{priority:9,namespace:N})}; tI2=function(J){J.G.ir("shopping_overlay_visible");J.G.ir("shopping_overlay_preview_collapsed");J.G.ir("shopping_overlay_preview_expanded");J.G.ir("shopping_overlay_expanded")}; w62=function(J){J.L(J.G,g.Q3("shopping_overlay_visible"),function(){J.Fe(!0)}); J.L(J.G,g.nw("shopping_overlay_visible"),function(){J.Fe(!1)}); J.L(J.G,g.Q3("shopping_overlay_expanded"),function(){J.dn=!0;sJ(J)}); J.L(J.G,g.nw("shopping_overlay_expanded"),function(){J.dn=!1;sJ(J)}); J.L(J.G,g.Q3("shopping_overlay_preview_collapsed"),function(){J.K=!0;Lo(J)}); J.L(J.G,g.nw("shopping_overlay_preview_collapsed"),function(){J.K=!1;Lo(J)}); J.L(J.G,g.Q3("shopping_overlay_preview_expanded"),function(){J.J=!0;Lo(J)}); J.L(J.G,g.nw("shopping_overlay_preview_expanded"),function(){J.J=!1;Lo(J)})}; olf=function(J){g.c.call(this,{C:"div",Y:"ytp-shorts-title-channel",j:[{C:"a",Y:"ytp-shorts-title-channel-logo",B:{href:"{{channelLink}}",target:J.N().W,"aria-label":"{{channelLogoLabel}}"}},{C:"div",Y:"ytp-shorts-title-expanded-heading",j:[{C:"div",Y:"ytp-shorts-title-expanded-title",j:[{C:"a",cC:"{{expandedTitle}}",B:{href:"{{channelTitleLink}}",target:J.N().W,tabIndex:"0"}}]}]}]});var R=this;this.api=J;this.K=this.qp("ytp-shorts-title-channel-logo");this.channelName=this.qp("ytp-shorts-title-expanded-title"); this.subscribeButton=null;J.createClientVe(this.K,this,36925);this.L(this.K,"click",function(N){R.api.logClick(R.K);g.cv(window,xcE(R));N.preventDefault()}); J.createClientVe(this.channelName,this,37220);this.L(this.channelName,"click",function(N){R.api.logClick(R.channelName);g.cv(window,xcE(R));N.preventDefault()}); JG8(this);this.L(J,"videodatachange",this.hN);this.L(J,"videoplayerreset",this.hN);this.hN()}; JG8=function(J){if(!J.api.N().kA){var R=J.api.getVideoData(),N=new g.cY("Inscreva-se",null,"Inscrito",null,!0,!1,R.ud,R.subscribed,"channel_avatar",null,J.api,!0);J.api.createServerVe(N.element,J);var C;J.api.setTrackingParams(N.element,((C=R.subscribeButtonRenderer)==null?void 0:C.trackingParams)||null);J.L(N.element,"click",function(){J.api.logClick(N.element)}); J.subscribeButton=N;g.P(J,J.subscribeButton);J.subscribeButton.IB(J.element)}}; xcE=function(J){var R=J.api.N(),N=J.api.getVideoData();N=g.vm(R)+N.R1;if(!g.V_(R))return N;R={};g.J9(J.api,"addEmbedsConversionTrackingParams",[R]);return g.bD(N,R)}; Fh=function(J){g.Q$.call(this,J,{C:"button",CC:["ytp-skip-intro-button","ytp-popup","ytp-button"],j:[{C:"div",Y:"ytp-skip-intro-button-text",cC:"Pular introdu\u00e7\u00e3o"}]},100);var R=this;this.V=!1;this.K=new g.$t(function(){R.hide()},5E3); this.NE=this.eP=NaN;g.P(this,this.K);this.S=function(){R.show()}; this.U=function(){R.hide()}; this.Z=function(){var N=R.G.getCurrentTime();N>R.eP/1E3&&N0?{C:"svg",B:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},j:[{C:"path",CC:["ytp-circle-arrow","ytp-svg-fill"],B:{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"}}, {C:"text",CC:["ytp-jump-button-text","ytp-svg-fill"],B:{x:"7.05",y:"15.05"}}]}:{C:"svg",B:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},j:[{C:"path",CC:["ytp-circle-arrow","ytp-svg-fill"],B:{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"}}, {C:"text",CC:["ytp-jump-button-text","ytp-svg-fill"],B:{x:"6.5",y:"15"}}]}]});var N=this;this.G=J;this.K=R;this.J=new g.$t(function(){N.V?(N.V=!1,N.J.start()):N.element.classList.remove("ytp-jump-spin","backwards")},250); this.V=!1;(R=R>0)?this.G.createClientVe(this.element,this,36843):this.G.createClientVe(this.element,this,36844);var C=g.rN(R?"Avance $SECONDS segundos. (\u2192)":"Volte $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.K).toString()});this.update({title:C,"data-title-no-tooltip":C,"aria-keyshortcuts":R?"\u2192":"\u2190"});this.Z=this.element.querySelector(".ytp-jump-button-text");this.Z.textContent=Math.abs(this.K).toString();this.listen("click",this.onClick,this);$e(J,this.element,this)}; fzQ=function(J,R){R?J.element.classList.add("ytp-jump-button-enabled"):J.element.classList.remove("ytp-jump-button-enabled");J.G.logVisibility(J.element,R);J.G.mQ()}; no=function(J,R){MZ.call(this,J,R,"timedMarkerCueRange","Momentos importantes da visualiza\u00e7\u00e3o");this.L(J,g.nw("timedMarkerCueRange"),this.P1);this.L(J,"updatemarkervisibility",this.updateVideoData)}; Trf=function(J){var R,N=(R=J.G.getVideoData())==null?void 0:R.Xk;if(N)for(J=J.Z.T7,N=g.K(N),R=N.next();!R.done;R=N.next())if(R=J[R.value]){var C=void 0,X=void 0,u=void 0;if(((C=R.onTap)==null?void 0:(X=C.innertubeCommand)==null?void 0:(u=X.changeEngagementPanelVisibilityAction)==null?void 0:u.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return R}}; DJ=function(J){g.c.call(this,{C:"button",CC:["ytp-miniplayer-button","ytp-button"],B:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"5","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},j:[t0B()]});this.G=J;this.visible=!1;this.listen("click",this.onClick);this.L(J,"fullscreentoggled",this.hN);this.updateValue("title",g.HE(J,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});$e(J,this.element,this);J.createClientVe(this.element, this,62946);this.hN()}; $X7=function(J,R,N){N=N===void 0?!1:N;g.c.call(this,{C:"button",CC:["ytp-mute-button","ytp-button"],B:J.N().l3?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},cC:"{{icon}}"});this.G=J;this.VO=N;this.K=null;this.Z=this.W=this.U=this.dn=NaN;this.ma=this.S=null;this.V=[];this.J=[];this.visible=!1;this.X=null;N=this.G.N();this.updateValue("icon",yP());this.tooltip=R.Op();this.K=new g.sI({C:"svg",B:{height:"100%", version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"defs",j:[{C:"clipPath",B:{id:"ytp-svg-volume-animation-mask"},j:[{C:"path",B:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{C:"path",B:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{C:"path",Y:"ytp-svg-volume-animation-mover",B:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{C:"clipPath",B:{id:"ytp-svg-volume-animation-slash-mask"},j:[{C:"path",Y:"ytp-svg-volume-animation-mover",B:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]}, {C:"path",JL:!0,CC:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],B:{"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"}},{C:"path",JL:!0,CC:["ytp-svg-fill","ytp-svg-volume-animation-hider"],B:{"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.P(this,this.K);this.S=this.K.qp("ytp-svg-volume-animation-speaker"); this.ma=this.S.getAttribute("d");this.V=g.tL("ytp-svg-volume-animation-mover",this.K.element);this.J=g.tL("ytp-svg-volume-animation-hider",this.K.element);this.tN=new J$;g.P(this,this.tN);this.nC=new J$;g.P(this,this.nC);this.listen("click",this.cLp);this.L(J,"appresize",this.qg);this.L(J,"onVolumeChange",this.onVolumeChange);var C=null;N.l3?this.addOnDisposeCallback(g.TC(R.Op(),this.element)):(R="Seu navegador n\u00e3o suporta a altera\u00e7\u00e3o de volume. $BEGIN_LINKSaiba mais$END_LINK".split(/\$(BEGIN|END)_LINK/), C=new g.Q$(J,{C:"span",CC:["ytp-popup","ytp-generic-popup"],B:{tabindex:"0"},j:[R[0],{C:"a",B:{href:"https://support.google.com/youtube/?p=noaudio",target:N.W},cC:R[2]},R[4]]},100,!0),g.P(this,C),C.hide(),C.subscribe("show",function(X){J.z8(C,X)}),g.EL(J,C.element,4)); this.message=C;J.createClientVe(this.element,this,28662);this.qg(J.jQ().getPlayerSize());this.setVolume(J.getVolume(),J.isMuted())}; vlY=function(J,R){J.dn=R;var N=J.ma;R&&(N+=jE2(Hyn,kQf,R));J.S.setAttribute("d",N)}; WzE=function(J,R){J.W=R;for(var N=20*R,C=0;C=3&&J.G.getPresentingPlayerType()!==2}; Elk=function(J){var R=SM(J.G.d3());return R?J.K?R.y4():R.mS():!1}; LzP=function(J){var R={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},N=J.playlist!=null&&J.playlist.y4();N=g.Lu(J.G)&&(!J.K||N);var C=J.K&&g.M$(J.G),X=Elk(J),u=J.K&&J.G.getPresentingPlayerType()===5,f=g.HE(J.G,"Pr\u00f3ximo","SHIFT+n"),H=g.HE(J.G,"Anterior","SHIFT+p");if(u)R.title="Iniciar v\u00eddeo";else if(J.V)R.title="Reiniciar";else if(N){var k=null;J.playlist&&(k=g.k0(J.playlist,J.K?$7P(J.playlist):HUk(J.playlist)));if(k){if(k.videoId){var v= J.playlist.listId;R.url=J.G.N().getVideoUrl(k.videoId,v?v.toString():void 0)}R.text=k.title;R.duration=k.lengthText?k.lengthText:k.lengthSeconds?g.z8(k.lengthSeconds):null;R.preview=k.PV("mqdefault.jpg")}J.K?(R.title=f,R["data-title-no-tooltip"]="Pr\u00f3ximo",R["aria-keyshortcuts"]="SHIFT+n"):(R.title=H,R["data-title-no-tooltip"]="Anterior",R["aria-keyshortcuts"]="SHIFT+p")}else if(C){if(H=(k=J.videoData)==null?void 0:g.S9(k))R.url=H.Dh(),R.text=H.title,R.duration=H.lengthText?H.lengthText:H.lengthSeconds? g.z8(H.lengthSeconds):null,R.preview=H.PV("mqdefault.jpg");R.title=f;R["data-title-no-tooltip"]="Pr\u00f3ximo";R["aria-keyshortcuts"]="SHIFT+n"}R.disabled=!C&&!N&&!X&&!u;J.update(R);J.S=!!R.url;C||N||J.V||X||u?J.J||(J.J=g.TC(J.tooltip,J.element),J.U=J.listen("click",J.onClick,J)):J.J&&(J.J(),J.J=null,J.tL(J.U),J.U=null);J.tooltip.mQ()}; KzQ=function(J,R){g.c.call(this,{C:"div",Y:"ytp-fine-scrubbing",j:[{C:"div",Y:"ytp-fine-scrubbing-draggable",j:[{C:"div",Y:"ytp-fine-scrubbing-thumbnails",B:{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}}"}}]},{C:"div",B:{"aria-hidden":"true"},Y:"ytp-fine-scrubbing-cursor"},{C:"div",Y:"ytp-fine-scrubbing-seek-time",B:{"aria-hidden":"true"}, cC:"{{seekTime}}"},{C:"div",Y:"ytp-fine-scrubbing-play",j:[e7()],B:{title:"Reproduzir desta posi\u00e7\u00e3o",role:"button"}},{C:"div",Y:"ytp-fine-scrubbing-dismiss",j:[g.UI()],B:{title:"Sair da busca precisa",role:"button"}}]});var N=this;this.api=J;this.U=this.qp("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.qp("ytp-fine-scrubbing-dismiss");this.ma=this.qp("ytp-fine-scrubbing-draggable");this.playButton=this.qp("ytp-fine-scrubbing-play");this.thumbnails=[];this.J=[];this.G7=this.K=0; this.PC=void 0;this.nC=NaN;this.T7=this.W=this.V=this.X=0;this.Z=[];this.interval=this.frameCount=0;this.S=160;this.scale=1;this.l3=0;this.isEnabled=this.VO=!1;M2B(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.TC(R,this.dismissButton));this.addOnDisposeCallback(g.TC(R,this.playButton));this.tN=new g.lb(this.ma,!0);this.tN.subscribe("dragstart",this.U6,this);this.tN.subscribe("dragmove",this.Zb,this);this.tN.subscribe("dragend",this.Tv,this);this.L(J,"SEEK_COMPLETE",this.OC);J.T("web_fix_fine_scrubbing_false_play")&& this.L(J,"rootnodemousedown",function(C){N.dn=C}); this.U.addEventListener("keydown",function(){}); g.P(this,this.tN);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.U,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; M2B=function(J,R){var N=g.z8(R),C=g.rN("Procurar $PROGRESS",{PROGRESS:g.z8(R,!0)});J.update({ariamin:0,ariamax:Math.floor(J.api.getDuration()),arianow:Math.floor(R),arianowtext:C,seekTime:N})}; azQ=function(J){J.nC=NaN;J.W=0;J.X=J.V}; DXE=function(J){var R=J.api.DY();if(R){var N=90*J.scale,C=ee(R,160*J.scale);if(R=R.levels[C]){J.S=R.width;if(!J.Z.length){C=[];for(var X=wQ(R,R.Xq()),u=R.columns*R.rows,f=R.frameCount,H=0;H<=X;H++)for(var k=fJ.Z.length;)C= void 0,(C=J.thumbnails.pop())==null||C.dispose();for(;J.thumbnails.lengthN.length;)C=void 0,(C=J.J.pop())==null||C.dispose(); for(;J.J.length-N?-R/N*J.interval*.5:-(R+N/2)/N*J.interval}; sTE=function(J){return-((J.U.offsetWidth||(J.frameCount-1)*J.S*J.scale)-J.K/2)}; QTB=function(){g.c.call(this,{C:"div",Y:"ytp-fine-scrubbing-thumbnail"})}; nl7=function(){g.c.call(this,{C:"div",Y:"ytp-fine-scrubbing-chapter-title",j:[{C:"div",Y:"ytp-fine-scrubbing-chapter-title-content",cC:"{{chapterTitle}}"}]})}; Oyg=function(J){g.c.call(this,{C:"div",Y:"ytp-heat-map-chapter",j:[{C:"svg",Y:"ytp-heat-map-svg",B:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},j:[{C:"defs",j:[{C:"clipPath",B:{id:"{{id}}"},j:[{C:"path",Y:"ytp-heat-map-path",B:{d:"",fill:"white"}}]}]},{C:"rect",Y:"ytp-heat-map-graph",B:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{C:"rect",Y:"ytp-heat-map-hover",B:{"clip-path":"url(#hm_1)",fill:"white", "fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{C:"rect",Y:"ytp-heat-map-play",B:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=J;this.S=this.qp("ytp-heat-map-svg");this.V=this.qp("ytp-heat-map-path");this.U=this.qp("ytp-heat-map-graph");this.Z=this.qp("ytp-heat-map-play");this.J=this.qp("ytp-heat-map-hover");this.Da=!1;this.K=60;J=""+g.en(this);this.update({id:J});J="url(#"+J+")";this.U.setAttribute("clip-path",J);this.Z.setAttribute("clip-path",J);this.J.setAttribute("clip-path", J);this.api.T("web_heat_map_v2")&&g.FL(this.api.getRootNode(),"ytp-heat-map-v2")}; ZyB=function(J,R){R>0&&(J.K=R,J.S.style.height=J.K+"px")}; ZJ=function(){g.c.call(this,{C:"div",Y:"ytp-chapter-hover-container",j:[{C:"div",Y:"ytp-progress-bar-padding"},{C:"div",Y:"ytp-progress-list",j:[{C:"div",CC:["ytp-play-progress","ytp-swatch-background-color"]},{C:"div",Y:"ytp-progress-linear-live-buffer"},{C:"div",Y:"ytp-load-progress"},{C:"div",Y:"ytp-hover-progress"},{C:"div",Y:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.Z=this.qp("ytp-progress-linear-live-buffer");this.V=this.qp("ytp-ad-progress-list"); this.U=this.qp("ytp-load-progress");this.S=this.qp("ytp-play-progress");this.J=this.qp("ytp-hover-progress");this.K=this.qp("ytp-chapter-hover-container")}; d7=function(J,R){g.Lz(J.K,"width",R)}; dXg=function(J,R){g.Lz(J.K,"margin-right",R+"px")}; q97=function(){this.J=this.position=this.V=this.K=this.Z=this.width=NaN}; AGB=function(){g.c.call(this,{C:"div",Y:"ytp-timed-marker"});this.K=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.A1=function(J,R){g.da.call(this,{C:"div",Y:"ytp-progress-bar-container",B:{"aria-disabled":"true"},j:[{C:"div",CC:["ytp-heat-map-container"],j:[{C:"div",Y:"ytp-heat-map-edu"}]},{C:"div",CC:["ytp-progress-bar"],B:{tabindex:"0",role:"slider","aria-label":"Bot\u00e3o deslizante de busca","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},j:[{C:"div",Y:"ytp-chapters-container"},{C:"div",Y:"ytp-timed-markers-container"},{C:"div", Y:"ytp-clip-start-exclude"},{C:"div",Y:"ytp-clip-end-exclude"},{C:"div",Y:"ytp-scrubber-container",j:[{C:"div",CC:["ytp-scrubber-button","ytp-swatch-background-color"],j:[{C:"div",Y:"ytp-scrubber-pull-indicator"},{C:"img",CC:["ytp-decorated-scrubber-button"]}]}]}]},{C:"div",CC:["ytp-fine-scrubbing-container"],j:[{C:"div",Y:"ytp-fine-scrubbing-edu"}]},{C:"div",Y:"ytp-bound-time-left",cC:"{{boundTimeLeft}}"},{C:"div",Y:"ytp-bound-time-right",cC:"{{boundTimeRight}}"},{C:"div",Y:"ytp-clip-start",B:{title:"{{clipstarttitle}}"}, cC:"{{clipstarticon}}"},{C:"div",Y:"ytp-clip-end",B:{title:"{{clipendtitle}}"},cC:"{{clipendicon}}"}]});this.api=J;this.rN=!1;this.FV=this.Im=this.pC=this.X=this.Vg=0;this.m7=null;this.G7={};this.TW={};this.clipEnd=Infinity;this.R1=this.qp("ytp-clip-end");this.ji=new g.lb(this.R1,!0);this.Xn=this.qp("ytp-clip-end-exclude");this.kA=this.qp("ytp-clip-start-exclude");this.clipStart=0;this.VK=this.qp("ytp-clip-start");this.VR=new g.lb(this.VK,!0);this.nC=this.Xk=0;this.progressBar=this.qp("ytp-progress-bar"); this.EB={};this.T7={};this.YA=this.qp("ytp-chapters-container");this.OQ=this.qp("ytp-timed-markers-container");this.K=[];this.S=[];this.pL={};this.NE=null;this.ma=-1;this.oB=this.tN=0;this.W=null;this.v7=this.qp("ytp-scrubber-button");this.AL=this.qp("ytp-decorated-scrubber-button");this.ZI=this.qp("ytp-scrubber-container");this.eQ=new g.Ms;this.t2=new q97;this.V=new xp(0,0);this.mD=null;this.Z=this.lr=!1;this.mu=null;this.dn=this.qp("ytp-heat-map-container");this.CY=this.qp("ytp-heat-map-edu");this.U= [];this.heatMarkersDecorations=[];this.HC=this.qp("ytp-fine-scrubbing-container");this.H1=this.qp("ytp-fine-scrubbing-edu");this.J=void 0;this.VO=this.j2=this.PC=!1;this.tooltip=R.Op();this.addOnDisposeCallback(g.TC(this.tooltip,this.R1));g.P(this,this.ji);this.ji.subscribe("hoverstart",this.GJ,this);this.ji.subscribe("hoverend",this.Cu,this);this.L(this.R1,"click",this.Sl);this.addOnDisposeCallback(g.TC(this.tooltip,this.VK));g.P(this,this.VR);this.VR.subscribe("hoverstart",this.GJ,this);this.VR.subscribe("hoverend", this.Cu,this);this.L(this.VK,"click",this.Sl);Y9B(this);this.L(J,"resize",this.NR);this.L(J,"presentingplayerstatechange",this.Cz);this.L(J,"videodatachange",this.yu);this.L(J,"videoplayerreset",this.QD);this.L(J,"cuerangesadded",this.c2Q);this.L(J,"cuerangesremoved",this.xEB);this.L(J,"onLoopRangeChange",this.VJ);this.L(J,"innertubeCommand",this.onClickCommand);this.L(J,g.Q3("timedMarkerCueRange"),this.Psf);this.L(J,"updatemarkervisibility",this.GI);this.L(J,"serverstitchedvideochange",this.J2B); this.updateVideoData(J.getVideoData(),!0);this.VJ(J.getLoopRange());qZ(this)&&!this.J&&(this.J=new KzQ(this.api,this.tooltip),J=g.q4(this.element).x||0,this.J.NR(J,this.X),this.J.IB(this.HC),g.P(this,this.J),this.L(this.J.dismissButton,"click",this.tF),this.L(this.J.playButton,"click",this.d7),this.L(this.J.element,"dblclick",this.d7));this.api.createClientVe(this.dn,this,139609,!0);this.api.createClientVe(this.CY,this,140127,!0);this.api.createClientVe(this.H1,this,151179,!0);this.api.createClientVe(this.progressBar, this,38856,!0)}; Y9B=function(J){if(J.K.length===0){var R=new ZJ;J.K.push(R);g.P(J,R);R.IB(J.YA,0)}for(;J.K.length>1;)J.K.pop().dispose();d7(J.K[0],"100%");J.K[0].startTime=0;J.K[0].title=""}; rGE=function(J){var R=R===void 0?NaN:R;var N=new Oyg(J.api);J.U.push(N);g.P(J,N);N.IB(J.dn);R>=0&&(N.element.style.width=R+"px")}; jTB=function(J){for(;J.S.length;)J.S.pop().dispose()}; V28=function(J){var R,N,C,X,u;return(u=g.z((X=g.z((R=J.getWatchNextResponse())==null?void 0:(N=R.playerOverlays)==null?void 0:(C=N.playerOverlayRenderer)==null?void 0:C.decoratedPlayerBarRenderer,rQ))==null?void 0:X.playerBar,mXE))==null?void 0:u.chapters}; glB=function(J){for(var R=J.K,N=[],C=0;C=f&&a<=W&&u.push(L)}k>0&&(J.dn.style.height=k+"px");f=J.U[C];W=u;L=X;F=k;a=C===0;a=a===void 0?!1:a;ZyB(f,F);S=W;I=f.K;a=a===void 0?!1:a;var n=1E3/S.length,B=[];B.push({x:0,y:100});for(var Z=0;Z0&&(N=u[u.length-1])}g.YR(J);H=[];R=g.K(R.heatMarkersDecorations||[]);for(X=R.next();!X.done;X=R.next())if(X=g.z(X.value,wWE))k=X.label,C=N=v=void 0,H.push({visibleTimeRangeStartMillis:(v= X.visibleTimeRangeStartMillis)!=null?v:-1,visibleTimeRangeEndMillis:(N=X.visibleTimeRangeEndMillis)!=null?N:-1,decorationTimeMillis:(C=X.decorationTimeMillis)!=null?C:NaN,label:k?g.Yn(k):""});J.heatMarkersDecorations=H}}; lzE=function(J,R){J.S.push(R);g.P(J,R);R.IB(J.OQ,J.OQ.children.length)}; PO2=function(J,R){R=g.K(R);for(var N=R.next();!N.done;N=R.next()){N=N.value;var C=r7(J,N.timeRangeStartMillis/(J.V.K*1E3),jD(J));g.Lz(N.element,"transform","translateX("+C+"px) scaleX(0.6)")}}; UXg=function(J,R){var N=0,C=!1;R=g.K(R);for(var X=R.next();!X.done;X=R.next()){X=X.value;if(g.z(X,hvY)){X=g.z(X,hvY);var u={startTime:NaN,title:null,onActiveCommand:void 0},f=X.title;u.title=f?g.Yn(f):"";f=X.timeRangeStartMillis;f!=null&&(u.startTime=f);u.onActiveCommand=X.onActiveCommand;X=u;N===0&&X.startTime!==0&&(J.K[N].startTime=0,J.K[N].title="",J.K[N].onActiveCommand=X.onActiveCommand,N++,C=!0);J.K.length<=N&&(u=new ZJ,J.K.push(u),g.P(J,u),u.IB(J.YA,J.YA.children.length));J.K[N].startTime= X.startTime;J.K[N].title=X.title?X.title:"";J.K[N].onActiveCommand=X.onActiveCommand;J.K[N].index=C?N-1:N}N++}for(;N=0;C--)if(J.K[C].width>0){dXg(J.K[C],0);var X=Math.floor(J.K[C].width);J.K[C].width=X;d7(J.K[C],X+"px");break}J.K[N].width=0;d7(J.K[N],"0")}else N===J.K.length-1?(C=Math.floor(J.K[N].width+R),J.K[N].width=C,d7(J.K[N],C+"px")):(R=J.K[N].width+R,C=Math.round(R),R-=C,J.K[N].width=C,d7(J.K[N],C+"px"));N=0;if(J.U.length===J.K.length)for(R=0;R< J.U.length;R++)C=J.K[R].width,J.U[R].element.style.width=C+"px",J.U[R].element.style.left=N+"px",N+=C+(J.Z?3:2)}; yGQ=function(J,R){var N=0,C=!1,X=J.K.length,u=J.V.K*1E3;u===0&&(u=J.api.getProgressState().seekableEnd*1E3);if(u>0&&J.X>0){for(var f=J.X-(J.Z?3:2)*J.tN,H=J.oB===0?3:f*J.oB,k=g.K(J.K),v=k.next();!v.done;v=k.next())v.value.width=0;for(;N1);v=(u===0?0:k/u*f)+J.K[N].width;if(v>H)J.K[N].width=v;else{J.K[N].width=0;var W=J,S=N,L=W.K[S-1];L!==void 0&&L.width> 0?L.width+=v:SJ.oB&&(J.oB=k/u),C=!0)}N++}}return C}; mo=function(J){if(J.X){var R=J.api.getProgressState(),N=J.api.getVideoData();if(!(N&&N.enableServerStitchedDai&&N.enablePreroll)||isFinite(R.current)){var C;if(((C=J.api.getVideoData())==null?0:wO(C))&&R.airingStart&&R.airingEnd)var X=VI(J,R.airingStart,R.airingEnd);else if(J.api.getPresentingPlayerType()===2&&J.api.N().T("show_preskip_progress_bar_for_skippable_ads")){var u,f,H;X=(N=(X=J.api.getVideoData())==null?void 0:(u=X.getPlayerResponse())==null?void 0:(f=u.playerConfig)==null?void 0:(H=f.webPlayerConfig)== null?void 0:H.skippableAdProgressBarDuration)?VI(J,R.seekableStart,N/1E3):VI(J,R.seekableStart,R.seekableEnd)}else X=VI(J,R.seekableStart,R.seekableEnd);u=JV(X,R.loaded,0);R=JV(X,R.current,0);f=J.V.J!==X.J||J.V.K!==X.K;J.V=X;g7(J,R,u);f&&GQE(J);byg(J)}}}; VI=function(J,R,N){return t2B(J)?new xp(Math.max(R,J.mD.startTimeMs/1E3),Math.min(N,J.mD.endTimeMs/1E3)):new xp(R,N)}; xXQ=function(J,R){var N;if(((N=J.mD)==null?void 0:N.type)==="repeatChapter"||(R==null?void 0:R.type)==="repeatChapter")R&&(R=J.K[Co(J.K,R.startTimeMs)],g.ao(R.K,"ytp-repeating-chapter",!1)),J.mD&&(R=J.K[Co(J.K,J.mD.startTimeMs)],g.ao(R.K,"ytp-repeating-chapter",!0)),J.K.forEach(function(C){g.ao(C.K,"ytp-exp-chapter-hover-container",!J.mD)})}; po=function(J,R){var N=J.V;N=N.J+R.J*N.getLength();if(J.K.length>1){N=UT(J,R.V,!0);for(var C=0,X=0;X0&&(C+=J.K[X].width,C+=J.Z?3:2);N=(J.K[N].startTime+(R.V-C)/J.K[N].width*((N===J.K.length-1?J.V.K*1E3:J.K[N+1].startTime)-J.K[N].startTime))/1E3||0}return N}; l_=function(J,R,N,C,X){R=R<0?0:Math.floor(Math.min(R,J.api.getDuration())*1E3);N=N<0?0:Math.floor(Math.min(N,J.api.getDuration())*1E3);J=J.progressBar.visualElement;C={seekData:{startMediaTimeMs:R,endMediaTimeMs:N,seekSource:C}};(R=g.pR())&&g.$q(vd)(void 0,R,J,X,C,void 0)}; JFg=function(J,R,N){return N>=J.K.length?!1:Math.abs(R-J.K[N].startTime/1E3)/J.V.K*(J.X-(J.Z?3:2)*J.tN)<4}; GQE=function(J){J.v7.style.removeProperty("height");for(var R=g.K(Object.keys(J.G7)),N=R.next();!N.done;N=R.next())oWE(J,N.value);Px(J);g7(J,J.nC,J.Xk)}; jD=function(J){var R=J.eQ.x;R=g.I4(R,0,J.X);J.t2.update(R,J.X);return J.t2}; eD=function(J){return(J.Z?135:90)-zo(J)}; zo=function(J){var R=48,N=J.api.N();J.Z?R=54:g.V_(N)&&!N.J&&(R=40);return R}; g7=function(J,R,N){J.nC=R;J.Xk=N;var C=jD(J),X=J.V.K;var u=J.V;u=u.J+J.nC*u.getLength();var f=g.rN("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.z8(u,!0),DURATION:g.z8(X,!0)}),H=Co(J.K,u*1E3);H=J.K[H].title;J.update({ariamin:Math.floor(J.V.J),ariamax:Math.floor(X),arianow:Math.floor(u),arianowtext:H?H+" "+f:f});X=J.clipStart;u=J.clipEnd;J.mD&&J.api.getPresentingPlayerType()!==2&&(X=J.mD.startTimeMs/1E3,u=J.mD.endTimeMs/1E3);X=JV(J.V,X,0);H=JV(J.V,u,1);f=J.api.getVideoData();u=g.I4(R,X,H);N=(f==null? 0:g.e9(f))?1:g.I4(N,X,H);R=r7(J,R,C);g.Lz(J.ZI,"transform","translateX("+R+"px)");w7(J,C,X,u,"PLAY_PROGRESS");(f==null?0:wO(f))?(R=J.api.getProgressState().seekableEnd)&&w7(J,C,u,JV(J.V,R),"LIVE_BUFFER"):w7(J,C,X,N,"LOAD_PROGRESS");if(J.api.T("web_player_heat_map_played_bar")){var k;(k=J.U[0])!=null&&k.Z.setAttribute("width",(u*100).toFixed(2)+"%")}}; w7=function(J,R,N,C,X){var u=J.K.length,f=R.K-J.tN*(J.Z?3:2),H=N*f;N=UT(J,H);var k=C*f;f=UT(J,k);X==="HOVER_PROGRESS"&&(f=UT(J,R.K*C,!0),k=R.K*C-RJQ(J,R.K*C)*(J.Z?3:2));C=Math.max(H-Nj2(J,N),0);for(H=N;H=J.K.length)return J.X;for(var N=0,C=0;C0||J.Xn.clientWidth>0?(u=R.clientWidth/N,J=-1*J.kA.clientWidth/N):(u/=N,J=-1*J.K[X].element.offsetLeft/N),g.Lz(R,"background-size",u+"px"),g.Lz(R,"background-position-x",J+"px"))}; cx=function(J,R,N,C,X){X||J.api.N().J?R.style.width=N+"px":g.Lz(R,"transform","scalex("+(C?N/C:0)+")")}; UT=function(J,R,N){var C=0;(N===void 0?0:N)&&(R-=RJQ(J,R)*(J.Z?3:2));N=g.K(J.K);for(var X=N.next();!X.done;X=N.next()){X=X.value;if(R>X.width)R-=X.width;else break;C++}return C===J.K.length?C-1:C}; r7=function(J,R,N){for(var C=R*J.V.K*1E3,X=-1,u=g.K(J.K),f=u.next();!f.done;f=u.next())f=f.value,C>f.startTime&&f.width>0&&X++;return R*(N.K-(J.Z?3:2)*J.tN)+(J.Z?3:2)*(X<0?0:X)+N.Z}; RJQ=function(J,R){for(var N=J.K.length,C=0,X=g.K(J.K),u=X.next();!u.done;u=X.next())if(u=u.value,u.width!==0)if(R>u.width)R-=u.width,R-=J.Z?3:2,C++;else break;return C===N?N-1:C}; g.iZ8=function(J,R,N,C){var X=J.X!==N,u=J.Z!==C;J.Vg=R;J.X=N;J.Z=C;qZ(J)&&(R=J.J)!=null&&(R.scale=C?1.5:1);GQE(J);J.K.length===1&&(J.K[0].width=N||0);X&&g.YR(J);J.J&&u&&qZ(J)&&(J.J.isEnabled&&(N=J.Z?135:90,C=N-zo(J),J.HC.style.height=N+"px",g.Lz(J.dn,"transform","translateY("+-C+"px)"),g.Lz(J.progressBar,"transform","translateY("+-C+"px)")),DXE(J.J))}; Px=function(J){var R=!!J.mD&&J.api.getPresentingPlayerType()!==2,N=J.clipStart,C=J.clipEnd,X=!0,u=!0;R&&J.mD?(N=J.mD.startTimeMs/1E3,C=J.mD.endTimeMs/1E3):(X=N>J.V.J,u=J.V.K>0&&CJ.nC);g.ao(J.v7,"ytp-scrubber-button-hover",N===C&&J.K.length>1);if(J.api.T("web_player_heat_map_played_bar")){var u;(u=J.U[0])!=null&&u.J.setAttribute("width",(R.J*100).toFixed(2)+"%")}}}; oWE=function(J,R){var N=J.G7[R];R=J.TW[R];var C=jD(J),X=JV(J.V,N.start/1E3,0),u=ORn(N,J.Z)/C.width;var f=JV(J.V,N.end/1E3,1);u!==Number.POSITIVE_INFINITY&&(X=g.I4(X,0,f-u));f=Math.min(f,X+u);N.color&&(R.style.background=N.color);N=X;R.style.left=Math.max(N*C.K+C.Z,0)+"px";cx(J,R,g.I4((f-N)*C.K+C.Z,0,C.width),C.width,!0)}; uvg=function(J,R){var N=R.getId();J.G7[N]===R&&(g.Ht(J.TW[N]),delete J.G7[N],delete J.TW[N])}; qZ=function(J){var R=g.Xk(J.api.N())&&(J.api.T("web_enable_pip_on_miniplayer")||J.api.T("web_enable_auto_pip")),N;return!((N=J.api.getVideoData())==null?0:N.isLivePlayback)&&!J.api.isMinimized()&&!J.api.isInline()&&(!J.api.Fp()||!R)}; h1=function(J){J.J&&(J.J.disable(),J.pC=0,J.dn.style.removeProperty("transform"),J.progressBar.style.removeProperty("transform"),J.HC.style.removeProperty("height"),J.element.parentElement&&J.element.parentElement.style.removeProperty("height"))}; fqf=function(J,R){var N=R/eD(J)*zo(J);g.Lz(J.progressBar,"transform","translateY("+-R+"px)");g.Lz(J.dn,"transform","translateY("+-R+"px)");g.Lz(J.HC,"transform","translateY("+N+"px)");J.HC.style.height=R+N+"px";J.element.parentElement&&(J.element.parentElement.style.height=zo(J)-N+"px")}; TjQ=function(J,R){R?J.W||(J.element.removeAttribute("aria-disabled"),J.W=new g.lb(J.progressBar,!0),J.W.subscribe("hovermove",J.SsC,J),J.W.subscribe("hoverend",J.ALB,J),J.W.subscribe("dragstart",J.PS8,J),J.W.subscribe("dragmove",J.xNC,J),J.W.subscribe("dragend",J.ToN,J),J.mu=J.listen("keydown",J.Mc)):J.W&&(J.element.setAttribute("aria-disabled","true"),J.tL(J.mu),J.W.cancel(),J.W.dispose(),J.W=null)}; t2B=function(J){var R;return!((R=J.mD)==null||!R.postId)&&J.api.getPresentingPlayerType()!==2}; yI=function(J,R){g.c.call(this,{C:"button",CC:["ytp-remote-button","ytp-button"],B:{title:"Reproduzir na TV","aria-haspopup":"true","data-priority":"8"},cC:"{{icon}}"});this.G=J;this.JE=R;this.K=null;this.L(J,"onMdxReceiversChange",this.hN);this.L(J,"presentingplayerstatechange",this.hN);this.L(J,"appresize",this.hN);J.createClientVe(this.element,this,139118);this.hN();this.listen("click",this.J,this);$e(J,this.element,this)}; Go=function(J,R){g.c.call(this,{C:"button",CC:["ytp-button","ytp-settings-button"],B:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":DK(),title:"Detalhes","data-tooltip-target-id":"ytp-settings-button"},j:[g.cd()]});this.G=J;this.JE=R;this.J=!0;this.listen("click",this.V);this.L(J,"onPlaybackQualityChange",this.updateBadge);this.L(J,"videodatachange",this.updateBadge);this.L(J,"webglsettingschanged",this.updateBadge);this.L(J,"appresize",this.K);$e(J,this.element,this);this.G.createClientVe(this.element, this,28663);this.updateBadge();this.K(J.jQ().getPlayerSize())}; $1Q=function(J,R){J.J=!!R;J.K(J.G.jQ().getPlayerSize())}; b_=function(J,R){CJ.call(this,"Anota\u00e7\u00f5es",g.fJ.wx);this.G=J;this.JE=R;this.K=!1;J.T("web_settings_menu_icons")&&this.setIcon({C:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{C:"path",B:{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.L(J,"videodatachange",this.hN);this.L(J,"onApiChange",this.hN);this.subscribe("select",this.onSelect,this);this.hN()}; t1=function(J,R){g.gg.call(this,"Faixa de \u00e1udio",g.fJ.AUDIO,J,R);this.G=J;this.tracks={};g.FL(this.element,"ytp-audio-menu-item");this.countLabel=new g.c({C:"div",j:[{C:"span",cC:"Faixa de \u00e1udio"},{C:"span",Y:"ytp-menuitem-label-count",cC:"{{content}}"}]});J.T("web_settings_menu_icons")&&this.setIcon({C:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{C:"path",B:{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.P(this,this.countLabel);g.h9(this,this.countLabel);this.L(J,"videodatachange",this.hN);this.L(J,"onPlaybackAudioChange",this.hN);this.hN()}; xR=function(J,R){CJ.call(this,"Reprodu\u00e7\u00e3o autom\u00e1tica",g.fJ.vT);this.G=J;this.JE=R;this.K=!1;this.V=[];this.L(J,"presentingplayerstatechange",this.J);this.subscribe("select",this.onSelect,this);J.createClientVe(this.element,this,113682);this.J()}; HZB=function(J,R){g.y$.call(this,g.GC({"aria-haspopup":"false"}),0,"Mais op\u00e7\u00f5es");this.G=J;this.JE=R;this.L(this.element,"click",this.onClick);this.JE.S2(this)}; kyn=function(J,R){var N;g.Xk(J.N())&&(N={C:"div",Y:"ytp-panel-footer-content",j:[{C:"span",cC:"Ajuste a qualidade do download em "},{C:"a",Y:"ytp-panel-footer-content-link",cC:"Detalhes",B:{href:"/account_downloads"}}]});g.gg.call(this,"Qualidade",g.fJ.vr,J,R,void 0,void 0,N);this.G=J;this.ma={};this.W={};this.Z={};this.tN=new Set;this.K=this.U=!1;this.S="unknown";this.nC="";this.dn=new g.HG;g.P(this,this.dn);this.U=this.G.T("web_player_use_new_api_for_quality_pullback");this.K=this.G.T("web_player_enable_premium_hbr_playback_cap"); J.T("web_settings_menu_icons")&&this.setIcon({C:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{C:"path",B:{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.FL(this.J.element,"ytp-quality-menu");this.L(J,"videodatachange",this.J7);this.L(J,"videoplayerreset",this.J7);this.L(J,"onPlaybackQualityChange",this.IP);this.J7();J.createClientVe(this.element,this,137721)}; W9g=function(J,R,N){var C=J.ma[R],X=g.o6[R];return vW7(J,C?C.qualityLabel:X?X+"p":"Autom\u00e1tico",R,N)}; SoB=function(J,R,N,C,X){var u=(R=J.K?J.Z[R]:J.W[R])&&R.quality,f=R&&R.qualityLabel;f=f?f:"Autom\u00e1tico";C&&(f="("+f);J=vW7(J,f,u||"",X);C&&J.j.push(")");(C=(C=R&&R.paygatedQualityDetails)&&C.paygatedIndicatorText)&&N&&J.j.push({C:"div",Y:"ytp-premium-label",cC:C});return J}; vW7=function(J,R,N,C){R={C:"span",CC:C,j:[R]};var X;C="ytp-swatch-color";if(J.U||J.K)C="ytp-swatch-color-white";N==="highres"?X="8K":N==="hd2880"?X="5K":N==="hd2160"?X="4K":N.indexOf("hd")===0&&N!=="hd720"&&(X="HD");X&&(R.j.push(" "),R.j.push({C:"sup",Y:C,cC:X}));return R}; JA=function(J,R,N,C){g.c.call(this,{C:"div",Y:"ytp-input-slider-section",j:[{C:"input",Y:"ytp-input-slider",B:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]});this.V=J;this.U=R;this.S=N;this.initialValue=C;this.K=this.qp("ytp-input-slider");this.J=C?C:J;this.init();this.L(this.K,"input",this.X)}; IqE=function(J,R){J.J=R;J.updateValue("slidervalue",J.J);J.K.valueAsNumber=J.J;L98(J,R)}; L98=function(J,R){J.K.style.setProperty("--yt-slider-shape-gradient-percent",(R-J.V)/(J.U-J.V)*100+"%")}; ov=function(J){JA.call(this,J.getAvailablePlaybackRates()[0],J.getAvailablePlaybackRates()[J.getAvailablePlaybackRates().length-1],.05,J.getPlaybackRate());this.G=J;this.Z=g.iu("P");this.W=DH2(this.dn,this);g.FL(this.K,"ytp-speedslider");g.FL(this.Z,"ytp-speedslider-text");J=this.Z;var R=this.K;R.parentNode&&R.parentNode.insertBefore(J,R.nextSibling);F9n(this);this.L(this.K,"change",this.ma);this.L(this.K,"keydown",this.nC)}; F9n=function(J){J.Z.textContent=J.J+"x"}; Rv=function(J,R,N,C,X,u,f){g.c.call(this,{C:"div",Y:"ytp-slider-section",B:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},j:[{C:"div",Y:"ytp-slider",j:[{C:"div",Y:"ytp-slider-handle"}]}]});this.X=J;this.W=R;this.J=N;this.V=C;this.nC=X;this.VO=u;this.range=this.V-this.J;this.PC=this.qp("ytp-slider-section");this.Z=this.qp("ytp-slider");this.dn=this.qp("ytp-slider-handle");this.S=new g.lb(this.Z, !0);this.K=f?f:N;g.P(this,this.S);this.S.subscribe("dragmove",this.hH,this);this.L(this.element,"keydown",this.ly);this.L(this.element,"wheel",this.YS);this.init()}; NQ=function(J){Rv.call(this,.05,.05,J.getAvailablePlaybackRates()[0],J.getAvailablePlaybackRates()[J.getAvailablePlaybackRates().length-1],150,20,J.getPlaybackRate());this.G=J;this.U=g.iu("P");this.tN=DH2(this.ma,this);g.FL(this.Z,"ytp-speedslider");g.FL(this.U,"ytp-speedslider-text");J=this.U;var R=this.Z;R.parentNode&&R.parentNode.insertBefore(J,R.nextSibling);EWg(this);this.L(this.G,"onPlaybackRateChange",this.updateValues)}; EWg=function(J){J.U.textContent=MfP(J,J.K)+"x"}; MfP=function(J,R){J=Number(g.I4(R,J.J,J.V).toFixed(2));R=Math.floor((J+.001)*100%5+2E-15);var N=J;R!==0&&(N=J-R*.01);return Number(N.toFixed(2))}; K9Y=function(J){g.da.call(this,{C:"div",Y:"ytp-speedslider-component"});J.T("web_settings_use_input_slider")?this.K=new ov(J):this.K=new NQ(J);g.P(this,this.K);this.element.appendChild(this.K.element)}; aqE=function(J){var R=new K9Y(J);OJ.call(this,J,R,"Personalizado");g.P(this,R)}; Qa8=function(J,R){var N=new aqE(J);g.gg.call(this,"Velocidade da reprodu\u00e7\u00e3o",g.fJ.gQ,J,R,CM(J)?void 0:"Personalizado",CM(J)?void 0:function(){g.AZ(R,N)}); var C=this;this.U=!1;g.P(this,N);this.S=new ov(J);g.P(this,this.S);J.T("web_settings_menu_icons")&&this.setIcon({C:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{C:"path",B:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]});this.G=J;this.U=!1;this.nC=null;CM(J)?(this.K=g.rN("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.G.getPlaybackRate().toString()}),this.Z=this.G.getPlaybackRate()):this.Z=this.K=null;this.W=this.G.getAvailablePlaybackRates();this.L(J,"presentingplayerstatechange",this.hN);var X;((X=this.G.getVideoData())==null?0:X.ZD())&&this.L(J,"serverstitchedvideochange",this.hN);this.L(this.S.K,"change",function(){C.U=!0;C.hN()}); this.hN()}; D12=function(J,R){var N=nWE(R);J.K&&(J.U||R===J.Z)?(J.Ye(J.K),J.W1(R.toString())):J.Ye(N)}; Bjn=function(J){J.CR(J.W.map(nWE));J.K=null;J.Z=null;var R=J.G.getPlaybackRate();if(!J.W.includes(R)||CM(J.G))sak(J,R),J.Ye(J.K)}; sak=function(J,R){J.Z=R;J.K=g.rN("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:R.toString()});R=J.W.map(nWE);R.unshift(J.K);J.CR(R)}; nWE=function(J){return J.toString()}; CM=function(J){return J.T("web_settings_menu_surface_custom_playback")}; OZE=function(J){return J.T("web_settings_menu_surface_custom_playback")&&J.T("web_settings_use_input_slider")}; d1E=function(J,R,N,C){var X=new g.ZM(R,void 0,"Modifica\u00e7\u00e3o do v\u00eddeo");g.gg.call(this,C.text||"",J,R,N,"Modifica\u00e7\u00e3o do v\u00eddeo",function(){g.AZ(N,X)}); var u=this;g.FL(this.element,"ytp-subtitles-options-menu-item");this.setting=C.option.toString();J=C.options;this.settings=g.$N(J,this.Z$,this);this.U=X;g.P(this,this.U);R=new g.y$({C:"div",Y:"ytp-menuitemtitle",cC:"Permitir um estilo de legenda diferente se especificado pelo v\u00eddeo."},0);g.P(this,R);this.U.S2(R,!0);this.Z=new g.y$({C:"div",Y:"ytp-menuitem",B:{role:"menuitemradio",tabindex:"0"},j:[{C:"div",Y:"ytp-menuitem-label",cC:"Ativ."}]},-1);g.P(this,this.Z);this.U.S2(this.Z,!0);this.L(this.Z.element, "click",function(){ZZY(u,!0)}); this.K=new g.y$({C:"div",Y:"ytp-menuitem",B:{role:"menuitemradio",tabindex:"0"},j:[{C:"div",Y:"ytp-menuitem-label",cC:"Desat"}]},-2);g.P(this,this.K);this.U.S2(this.K,!0);this.L(this.K.element,"click",function(){ZZY(u,!1)}); this.CR(g.Yy(J,this.Z$))}; ZZY=function(J,R){J.publish("settingChange",J.setting+"Override",!R);J.JE.Ol()}; X1=function(J,R){g.ZM.call(this,J,void 0,"Op\u00e7\u00f5es");var N=this;this.Zd={};for(var C=0;C=0);if(!(R<0||R===J.Z)){J.Z=R;R=243*J.scale;var N=141*J.scale,C=BS7(J.J,J.Z,R);COE(J.bg,C,R,N,!0);J.ma.start()}}; NR7=function(J){var R=J.K;J.type===3&&J.tN.stop();J.api.removeEventListener("appresize",J.dn);J.W||R.setAttribute("title",J.V);J.V="";J.K=null}; X4g=function(J){g.c.call(this,{C:"button",CC:["ytp-watch-later-button","ytp-button"],B:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.V_(J.N()))},j:[{C:"div",Y:"ytp-watch-later-icon",cC:"{{icon}}"},{C:"div",Y:"ytp-watch-later-title",cC:"Assistir mais tarde"}]});this.G=J;this.icon=null;this.visible=this.isRequestPending=this.K=!1;qzB(J);J.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.L(J,"videoplayerreset",this.onReset);this.L(J, "appresize",this.mF);this.L(J,"videodatachange",this.mF);this.L(J,"presentingplayerstatechange",this.mF);this.mF();J=this.G.N();var R=g.wJ("yt-player-watch-later-pending");J.Z&&R?(hd7(),CQQ(this)):this.hN(2);g.ao(this.element,"ytp-show-watch-later-title",g.V_(J));$e(this.G,this.element,this)}; ixY=function(J){var R=J.G.getPlayerSize(),N=J.G.N(),C=J.G.getVideoData(),X=g.V_(N)&&g.Lu(J.G)&&g.h(J.G.getPlayerStateObject(),128),u=N.V;return N.v7&&R.width>=240&&!C.isAd()&&C.v7&&!X&&!g.cJ(C)&&!J.G.Yv()&&!u}; u4E=function(J,R){BC7(g.Jz(J.G.N()),"wl_button",function(){hd7({videoId:R});window.location.reload()})}; CQQ=function(J){if(!J.isRequestPending){J.isRequestPending=!0;J.hN(3);var R=J.G.getVideoData();R=J.K?R.removeFromWatchLaterCommand:R.addToWatchLaterCommand;var N=J.G.AU(),C=J.K?function(){J.K=!1;J.isRequestPending=!1;J.hN(2);J.G.N().D&&J.G.z7("WATCH_LATER_VIDEO_REMOVED")}:function(){J.K=!0; J.isRequestPending=!1;J.hN(1);J.G.N().J&&J.G.wD(J.element);J.G.N().D&&J.G.z7("WATCH_LATER_VIDEO_ADDED")}; MF(N,R).then(C,function(){J.isRequestPending=!1;J.hN(4,"Ocorreu um erro. Tente novamente mais tarde.");J.G.N().D&&J.G.z7("WATCH_LATER_ERROR","Ocorreu um erro. Tente novamente mais tarde.")})}}; fYB=function(J,R){if(R!==J.icon){switch(R){case 3:var N=RTB();break;case 1:N=j7();break;case 2:N={C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:N={C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"path", JL:!0,B:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}J.updateValue("icon",N);J.icon=R}}; g.Iv=function(){g.Ug.apply(this,arguments);this.My=(this.Bi=g.V_(this.api.N()))&&(this.api.N().J||H1()||Tm());this.gj=48;this.Oo=69;this.Sv=this.Lx=null;this.Gx=[];this.Fj=this.xe=this.cA=this.gy=this.rk=null;this.Cr=[];this.contextMenu=this.sQ=this.overflowButton=this.GD=this.Qg=this.searchButton=this.copyLinkButton=this.shareButton=this.LV=this.mj=this.title=this.channelAvatar=this.Au=this.tooltip=null;this.s6=!1;this.O5=this.Ka=this.uZ=this.n3=null;this.S_=this.JJ=this.Tq=!1}; TR2=function(J){var R=J.api.N(),N=g.h(J.api.getPlayerStateObject(),128);return R.Z&&N&&!J.api.isFullscreen()}; $en=function(J){if(J.FP()&&!J.api.Yv()&&J.GD){var R=J.api.T("web_player_hide_overflow_button_if_empty_menu");!J.LV||R&&!ixY(J.LV)||OO2(J.GD,J.LV);!J.shareButton||R&&!gF7(J.shareButton)||OO2(J.GD,J.shareButton);!J.copyLinkButton||R&&!Pmn(J.copyLinkButton)||OO2(J.GD,J.copyLinkButton)}else{if(J.GD){R=J.GD;for(var N=g.K(R.actionButtons),C=N.next();!C.done;C=N.next())C.value.detach();R.actionButtons=[]}J.searchButton&&!g.kw(J.mj.element,J.searchButton.element)&&J.searchButton.IB(J.mj.element);J.LV&&!g.kw(J.mj.element, J.LV.element)&&J.LV.IB(J.mj.element);J.shareButton&&!g.kw(J.mj.element,J.shareButton.element)&&J.shareButton.IB(J.mj.element);J.copyLinkButton&&!g.kw(J.mj.element,J.copyLinkButton.element)&&J.copyLinkButton.IB(J.mj.element)}}; HxY=function(J,R,N){R=N?R.lastElementChild:R.firstElementChild;for(var C=null;R;){if(sn(R,"display")!=="none"&&R.getAttribute("aria-hidden")!=="true"){var X=void 0;R.tabIndex>=0?X=R:X=HxY(J,R,N);X&&(C?N?X.tabIndex>C.tabIndex&&(C=X):X.tabIndexC/1E3+1)return{msg:"in-the-past"};if(u.isLivePlayback&&!isFinite(C))return{msg:"live-infinite"};(C=R.oG())&&C.isView()&&(C=C.mediaElement);if(C&&C.TC().length>12&&g.Du(X))return{msg:"played-ranges"};if(!X.V)return null;if(!f)return{msg:"no-pvd-formats"};if(!X.V.K||!f.K)return{msg:"non-dash"};C=f.videoInfos[0];var H=X.V.videoInfos[0];J.D&&Fr(u)&&(C=R.Zx(),H= N.Zx());if(!C||!H)return{msg:"no-video-info"};if(J.V&&(T0(C)||T0(H)))return{msg:"av1"};R=J.K&&u.He()&&qk();if(H.containerType!==C.containerType)if(R)u.u3("sgap",{ierr:"container"});else return{msg:"container"};if(J.J&&!R&&(H.sB!==C.sB||H.sB===""||C.sB===""))return{msg:"codec"};if(J.Z&&H.video&&C.video&&Math.abs(H.video.width/H.video.height-C.video.width/C.video.height)>.01)return{msg:"ratio"};if(g.Du(u)&&g.Du(X))return{msg:"content-protection"};f=f.K[0];X=X.V.K[0];N=f.audio;var k=X.audio;if(N.sampleRate!== k.sampleRate&&!g.hY)if(R)u.u3("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:f.itag,cr:N.sampleRate,ni:X.itag,nr:k.sampleRate};return(N.numChannels||2)!==(k.numChannels||2)?{msg:"channel-count"}:J.U&&u.He()&&C.video.fps!==H.video.fps?{msg:"fps"}:null}; SPg=function(J,R,N){var C=J.getVideoData(),X=R.getVideoData();if(!C.N().supportsGaplessShorts())return{nq:"env"};if(N.S){if(C.Pa&&!C.isAd()||X.Pa&&!X.isAd())return{nq:"autoplay"}}else if(C.Pa||X.Pa)return{nq:"autoplay"};if(!C.W)return{nq:"client"};if(!J.er())return{nq:"no-empty"};J=WDQ(N,J,R,Infinity);return J!=null?{nq:J.msg}:null}; MQ=function(J){g.l.call(this);this.app=J;this.Z=this.V=this.WC=this.K=null;this.J=1;this.events=new g.tY(this);this.events.L(this.app.x8,g.nw("gaplessshortslooprange"),this.D);g.P(this,this.events)}; LDg=function(){this.Z=this.S=this.V=this.D=this.U=this.J=this.K=!1}; IYk=function(J){var R=new LDg;R.K=J.T("h5_gapless_support_types_diff");R.U=J.T("h5_gapless_error_on_fps_diff");R.D=J.T("html5_gapless_use_format_info_fix");R.V=J.T("html5_gapless_disable_on_av1")&&!J.T("html5_gapless_enable_on_av1");R.J=J.T("html5_gapless_check_codec_diff_strictly");R.S=J.T("html5_gapless_on_ad_autoplay");R.Z=J.T("html5_gapless_disable_diff_aspect_radio");return R}; g.KM=function(J,R,N,C){C=C===void 0?!1:C;PS.call(this);this.mediaElement=J;this.start=R;this.end=N;this.K=C}; FDE=function(J,R,N,C,X,u){u=u===void 0?0:u;g.l.call(this);var f=this;this.policy=J;this.K=R;this.J=N;this.wk=X;this.U=u;this.Z=this.V=null;this.currentVideoDuration=this.S=-1;this.D=!1;this.Kw=new lM;this.JD=C-R.uS()*1E3;this.Kw.then(void 0,function(){}); this.timeout=new g.$t(function(){f.J2("timeout")},1E4); g.P(this,this.timeout);this.X=isFinite(C);this.status={status:0,error:null}}; KD7=function(J){var R,N,C,X,u,f,H,k,v,W;return g.Y(function(S){if(S.K==1){if(J.QO())return S.return(Promise.reject(Error(J.status.error||"disposed")));J.timeout.start();R=g.av.qa();return g.q(S,J.Kw,2)}g.av.yb("gtfta",R);N=J.K.oG();if(N.isEnded())return J.J2("ended_in_finishTransition"),S.return(Promise.reject(Error(J.status.error||"")));if(!J.Z||!rm(J.Z))return J.J2("next_mse_closed"),S.return(Promise.reject(Error(J.status.error||"")));if(J.J.y8()!==J.Z)return J.J2("next_mse_mismatch"),S.return(Promise.reject(Error(J.status.error|| "")));C=E2n(J);X=C.q6;u=C.f9;f=C.mT;J.K.uQ(!1,!0);H=Mkg(N,X,f,!J.J.getVideoData().isAd());J.J.setMediaElement(H);(k=J.K.Su())&&J.J.jZ(k.x7,k.Y7);J.X&&(J.J.seekTo(J.J.getCurrentTime()+.001,{ex:!0,g9:3,hL:"gapless_pseudo"}),H.play(),eQ());v=N.fP();v.cpn=J.K.getVideoData().clientPlaybackNonce;v.st=""+X;v.et=""+f;J.J.u3("gapless",v);J.K.u3("gaplessTo",{cpn:J.J.getVideoData().clientPlaybackNonce});W=J.K.getPlayerType()===J.J.getPlayerType();DQg(J.K,u,!1,W,J.J.getVideoData().clientPlaybackNonce);DQg(J.J, J.J.getCurrentTime(),!0,W,J.K.getVideoData().clientPlaybackNonce);J.J.hK=!0;g.Sz(function(){!J.J.getVideoData().ma&&J.J.getPlayerState().isOrWillBePlaying()&&TFY(J.J)}); Qg(J,6);J.dispose();return S.return(Promise.resolve())})}; DeE=function(J){if(J.J.getVideoData().V){var R=J.wk.N().T("html5_gapless_suspend_next_loader")&&J.U===1;Gog(J.J,J.Z,R,aY8(J));Qg(J,3);Q0B(J);var N=n2f(J);R=N.pN;N=N.Ia;R.subscribe("updateend",J.sJ,J);N.subscribe("updateend",J.sJ,J);J.sJ(R);J.sJ(N)}}; Q0B=function(J){J.K.unsubscribe("internalvideodatachange",J.Sd,J);J.J.unsubscribe("internalvideodatachange",J.Sd,J);J.wk.N().T("html5_gapless_use_format_info_fix")&&(J.K.unsubscribe("internalvideoformatchange",J.Sd,J),J.J.unsubscribe("internalvideoformatchange",J.Sd,J));J.K.unsubscribe("mediasourceattached",J.Sd,J);J.J.unsubscribe("statechange",J.CM,J)}; Mkg=function(J,R,N,C){J=J.isView()?J.mediaElement:J;return new g.KM(J,R,N,C)}; Qg=function(J,R){R<=J.status.status||(J.status={status:R,error:null},R===5&&J.Kw.resolve())}; aY8=function(J){return J.wk.N().T("html5_gapless_no_clear_buffer_timeline")&&J.U===1&&iY(J.K.getVideoData())}; E2n=function(J){var R=J.K.oG();R=R.isView()?R.start:0;var N=J.K.getVideoData().isLivePlayback?Infinity:Sc(J.K,!0);N=Math.min(J.JD/1E3,N)+R;var C=J.X?100:0;J=N-J.J.xT()+C;return{Q3:R,q6:J,f9:N,mT:Infinity}}; n2f=function(J){return{pN:J.V.K.dk,Ia:J.V.J.dk}}; BRP=function(J){g.l.call(this);var R=this;this.app=J;this.U=this.J=this.K=null;this.X=!1;this.V=this.Z=null;this.D=IYk(this.app.N());this.S=function(){g.Sz(function(){s0Y(R)})}}; OxE=function(J,R,N,C,X){C=C===void 0?0:C;X=X===void 0?0:X;J.er()||nM(J);J.Z=new lM;J.K=R;var u=N,f=X===0;f=f===void 0?!0:f;var H=J.app.Us(),k=H.getVideoData().isLivePlayback?Infinity:Sc(H,!0)*1E3;u>k&&(u=k-200,J.X=!0);f&&H.getCurrentTime()>=u/1E3?J.S():(J.J=H,f&&(f=u,u=J.J,J.app.x8.addEventListener(g.Q3("vqueued"),J.S),f=isFinite(f)||f/1E3>u.getDuration()?f:0x8000000000000,J.U=new g.Kw(f,0x8000000000000,{namespace:"vqueued"}),u.addCueRange(J.U)));f=C/=1E3;u=R.getVideoData().K;C&&u&&J.J&&(H=C,k=0, R.getVideoData().isLivePlayback&&(f=Math.min(N/1E3,Sc(J.J,!0)),k=Math.max(0,f-J.J.getCurrentTime()),H=Math.min(C,Sc(R)+k)),f=EY7(u,H)||C,f!==C&&J.K.u3("qvaln",{st:C,at:f,rm:k,ct:H}));R=f;C=J.K;C.getVideoData().j2=!0;C.getVideoData().W=!0;g.Nt(C,!0);u={};J.J&&(u=J.J.Pu(),f=J.J.getVideoData().clientPlaybackNonce,u={crt:(u*1E3).toFixed(),cpn:f});C.u3("queued",u);R!==0&&C.seekTo(R+.01,{ex:!0,g9:3,hL:"videoqueuer_queued"});J.V=new FDE(J.D,J.app.Us(),J.K,N,J.app,X);N=J.V;N.status.status!==Infinity&&(Qg(N, 1),N.K.subscribe("internalvideodatachange",N.Sd,N),N.J.subscribe("internalvideodatachange",N.Sd,N),N.wk.N().T("html5_gapless_use_format_info_fix")&&(N.K.subscribe("internalvideoformatchange",N.Sd,N),N.J.subscribe("internalvideoformatchange",N.Sd,N)),N.K.subscribe("mediasourceattached",N.Sd,N),N.J.subscribe("statechange",N.CM,N),N.K.subscribe("newelementrequired",N.pu,N),N.Sd());return J.Z}; s0Y=function(J){var R,N,C,X,u,f,H,k,v;g.Y(function(W){switch(W.K){case 1:if(J.QO()||!J.Z||!J.K)return W.return();J.X&&cI(J.app.Us(),!0,!1);N=J.app.N().T("html5_force_csdai_gapful_transition")&&((R=J.app.Us())==null?void 0:R.getVideoData().isDaiEnabled());C=null;if(!J.V||N){W.ZM(2);break}g.Ef(W,3);return g.q(W,KD7(J.V),5);case 5:g.MP(W,2);break;case 3:C=X=g.K2(W);case 2:if(!J.K)return W.return();g.av.aF("vqsp",function(){D3(J.app,J.K)}); if(!J.K)return W.return();u=J.K.oG();J.app.N().T("html5_gapless_seek_on_negative_time")&&u&&u.getCurrentTime()<-.01&&J.K.seekTo(0);g.av.aF("vqpv",function(){J.app.playVideo()}); if(C||N)J.K?(f=C?C.message:"forced",(H=J.J)==null||H.u3("gapfulfbk",{r:f}),ocn(J.K,f)):(k=J.J)==null||k.u3("gapsp",{});v=J.Z;nM(J);v&&v.resolve();return W.return(Promise.resolve())}})}; nM=function(J,R){R=R===void 0?!1:R;if(J.J){if(J.U){var N=J.J;J.app.x8.removeEventListener(g.Q3("vqueued"),J.S);N.removeCueRange(J.U)}J.J=null;J.U=null}J.V&&(J.V.status.status!==6&&(N=J.V,N.status.status!==Infinity&&N.U!==1&&N.J2("Canceled")),J.V=null);J.Z=null;J.K&&!R&&J.K!==g.ih(J.app,1)&&J.K!==J.app.Us()&&J.K.dispose();J.K&&R&&k5(J.K);J.K=null;J.X=!1}; ZxE=function(J){var R;return((R=J.V)==null?void 0:R.currentVideoDuration)||-1}; de8=function(J,R,N){if(J.er())return"qie";if(J.K==null||J.K.QO()||J.K.getVideoData()==null)return"qpd";if(R.videoId!==J.K.VL())return"vinm";if(ZxE(J)<=0)return"ivd";if(N!==1)return"upt";if((N=J.V)==null)J=void 0;else if(N.getStatus().status!==5)J="niss";else if(WDQ(N.policy,N.K,N.J,N.JD)!=null)J="pge";else{R=n2f(N);J=R.pN;var C=R.Ia;R=g.di(N.wk.N().experiments,"html5_shorts_gapless_next_buffer_in_seconds");N=N.S+R;C=Qp(C.jD(),N);J=Qp(J.jD(),N);J=!(R>0)||C&&J?null:"neb"}return J!=null?J:null}; qPP=function(){g.al.call(this);var J=this;this.fullscreen=0;this.Z=this.V=this.pictureInPicture=this.K=this.J=this.inline=!1;this.U=function(){J.Fe()}; agE(this.U);this.S=this.getVisibilityState(this.Zy(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Fp(),this.Ah(),this.lR(),this.zg())}; i9=function(J){return!(J.isMinimized()||J.isInline()||J.isBackground()||J.Fp()||J.Ah()||J.lR()||J.zg())}; men=function(J){var R=J.experiments,N=R.b3.bind(R);AuB=N("html5_use_async_stopVideo");YPg=N("html5_pause_for_async_stopVideo");ruP=N("html5_not_reset_media_source");jv=N("html5_not_reset_media_source");j08=N("html5_not_reset_media_source");ZS=N("html5_retain_source_buffer_appends_for_debugging");QEf=N("web_enable_auto_pip")||N("web_enable_pip_on_miniplayer");N("html5_mediastream_applies_timestamp_offset")&&(Ud=!0);var C=g.di(R,"html5_cobalt_override_quic");C&&$4("QUIC",+(C>0));(C=g.di(R,"html5_cobalt_audio_write_ahead_ms"))&& $4("Media.AudioWriteDurationLocal",C);(C=N("html5_cobalt_enable_decode_to_texture"))&&$4("Media.PlayerConfiguration.DecodeToTexturePreferred",C?1:0);(J.Si()||N("html5_log_cpu_info"))&&SJg();Error.stackTraceLimit=50;var X=g.di(R,"html5_idle_rate_limit_ms");X&&Object.defineProperty(window,"requestIdleCallback",{value:function(u){return window.setTimeout(u,X)}}); yek(J.U);iF=N("html5_use_ump_request_slicer");AIg=N("html5_record_now");N("html5_disable_streaming_xhr")&&(Tn=!1);N("html5_byterate_constraints")&&(LP=!0);N("html5_use_non_active_broadcast_for_post_live")&&(XQ=!0);N("html5_sunset_aac_high_codec_family")&&(XS["141"]="a")}; Vkf=function(J){return J.slice(12).replace(/_[a-z]/g,function(R){return R.toUpperCase().replace("_","")}).replace("Dot",".")}; g2E=function(J){var R={},N;for(N in J.experiments.flags)if(N.startsWith("cobalt_h5vcc")){var C=Vkf(N),X=g.di(J.experiments,N);C&&X&&(R[C]=$4(C,X))}return R}; sQ=function(J,R,N,C,X){X=X===void 0?[]:X;g.l.call(this);this.KC=J;this.hE=R;this.Z=N;this.segments=X;this.K=void 0;this.J=new Map;X.length&&(this.K=X[0])}; UeE=function(J){if(!(J.segments.length<2)){var R=J.segments.shift();if(R){var N=R.K,C=[];if(N.size){N=g.K(N.values());for(var X=N.next();!X.done;X=N.next()){X=g.K(X.value);for(var u=X.next();!u.done;u=X.next()){u=u.value;for(var f=g.K(u.segments),H=f.next();!H.done;H=f.next())(H=Bc(H.value))&&C.push(H);u.removeAll()}}}(N=Bc(R))&&C.push(N);C=g.K(C);for(N=C.next();!N.done;N=C.next())J.J.delete(N.value);R.dispose()}}}; OQ=function(J,R,N,C){if(!J.K||R>N)return!1;R=new sQ(J.KC,R,N,J.K,C);C=g.K(C);for(N=C.next();!N.done;N=C.next()){N=N.value;var X=Bc(N);X&&X!==Bc(J.K)&&J.J.set(X,[N])}J=J.K;J.K.has(R.P7())?J.K.get(R.P7()).push(R):J.K.set(R.P7(),[R]);return!0}; U$=function(J,R){return J.J.get(R)}; p4k=function(J,R,N){J.J.set(R,N)}; Z3=function(J,R,N,C,X,u){return new lYB(N,N+(C||0),!C,R,J,X,u)}; lYB=function(J,R,N,C,X,u,f){g.l.call(this);this.hE=J;this.V=R;this.J=N;this.type=C;this.Z=X;this.videoData=u;this.Kd=f;this.K=new Map;nKP(u)}; Bc=function(J){return J.videoData.clientPlaybackNonce}; PQY=function(J){if(J.K.size)for(var R=g.K(J.K.values()),N=R.next();!N.done;N=R.next()){N=g.K(N.value);for(var C=N.next();!C.done;C=N.next())C.value.dispose()}J.K.clear()}; zqf=function(J){this.end=this.start=J}; g.dF=function(J,R,N){g.l.call(this);var C=this;this.api=J;this.KC=R;this.RB=N;this.PC=new Map;this.eQ=new Map;this.G7=new Map;this.J=new Map;this.Z=[];this.U=[];this.V=new Map;this.ji=new Map;this.W=new Map;this.Xn=NaN;this.R1=this.Xk=this.YA=null;this.TW=new g.$t(function(){eq7(C,C.Xn,C.YA||void 0)}); this.events=new g.tY(this);this.VK=15E3;this.dn=new g.$t(function(){C.tN=!0;var X=C.RB,u=C.VK;X.u3("sdai",{aftimeout:u});X.us(new PD("ad.fetchtimeout",{timeout:u}));w4Y(C);C.yz(!1)},this.VK); this.tN=!1;this.S=new Map;this.GW=[];this.nC=null;this.v7=new Set;this.VO=[];this.kA=[];this.j2=[];this.H1=[];this.K=void 0;this.HC=0;this.l3=!0;this.ma=!1;this.T7=[];this.CY=new Set;this.m7=new Set;this.FV=new Set;this.xP=0;this.oB=new Set;this.AL=0;this.hD=this.VR=!1;this.tE=this.X="";this.EB=null;this.QR={diQ:function(){return C.J}, IpB:function(){return C.Z}, FS8:function(){return C.V}, BX:function(X){C.onCueRangeEnter(C.J.get(X))}, Bap:function(X){C.onCueRangeExit(C.J.get(X))}, Vwf:function(X,u){C.J.set(X,u)}, Zjk:function(X){C.tE=X}, t9:function(){return C.t9()}, v0M:function(X){return C.W.get(X)}}; this.RB.getPlayerType();qTB(this.RB,this);this.pC=this.KC.Si();g.P(this,this.TW);g.P(this,this.events);g.P(this,this.dn);this.events.L(this.api,g.Q3("serverstitchedcuerange"),this.onCueRangeEnter);this.events.L(this.api,g.nw("serverstitchedcuerange"),this.onCueRangeExit)}; GU7=function(J,R,N,C,X,u,f,H){var k=cu8(J,u,u+X);J.tN&&J.RB.u3("sdai",{adaftto:1});N||J.RB.u3("sdai",{missadcon:1,enter:u,len:X,aid:H});J.KC.T("html5_ssdai_update_timeline_on_start_time_change")&&J.D&&!J.D.Ig&&(J.D.Ig=H);J.hD&&J.RB.u3("sdai",{adfbk:1,enter:u,len:X,aid:H});var v=J.RB;f=f===void 0?u+X:f;u===f&&!X&&J.KC.T("html5_allow_zero_duration_ads_on_timeline")&&J.RB.u3("sdai",{attl0d:1});u>f&&qQ(J,{reason:"enterTime_greater_than_return",hE:u,IG:f});var W=v.MN()*1E3;uv&&qQ(J,{reason:"parent_return_greater_than_content_duration",IG:f,k5C:v});v=null;W=g.N_(J.U,{IG:u},function(S,L){return S.IG-L.IG}); W>=0&&(v=J.U[W],v.IG>u&&hqB(J,R.video_id||"",u,f,v));if(k&&v)for(W=0;W.5&&J.RB.u3("sdai",{ttdtb:1,delta:f,cpn:X.cpn,enter:R.adCpn,exit:N.adCpn,seek:C,skip:u});J.api.T("html5_ssdai_enable_media_end_cue_range")&&J.api.Z4();if(R.isAd&&N.isAd){X=!!u;if(R.adCpn&&N.adCpn){var H=J.V.get(R.adCpn);var k=J.V.get(N.adCpn)}X?J.RB.u3("sdai",{igtransskip:1,enter:R.adCpn,exit:N.adCpn,seek:C,skip:u}):tk7(J,k,H,N.jt,R.jt,C,X)}else if(!R.isAd&&N.isAd){J.tE=X.cpn;J.api.publish("serverstitchedvideochange"); H=Yc(J,"a2c");J.RB.u3("sdai",H);J.xP=0;if(H=N.MP)J.HC=H.end;var v;N.adCpn&&(v=J.V.get(N.adCpn));v&&Lp(J.RB,v,X,N.jt,R.jt,C,!!u)}else if(R.isAd&&!N.isAd){var W;R.adCpn&&(W=J.V.get(R.adCpn));W&&(J.HC=0,J.tE=W.cpn,bxB(J,W),v=Yc(J,"c2a",W),J.RB.u3("sdai",v),J.xP=1,Lp(J.RB,X,W,N.jt,R.jt,C,!!u))}}; xeY=function(J,R,N){N=N===void 0?0:N;var C=(R+N)*1E3,X=g.N_(J.U,{hE:C},function(H,k){return H.hE-k.hE}); X=X<0?(X+2)*-1:X;if(X>=0)if(iY(J.RB.getVideoData())&&J.KC.T("html5_ssdai_overdecorate")||J.KC.T("html5_cabr_ssdai_overdecorate")){C=R*1E3;for(var u=X;u<=X+1&&u=f.hE-N*1E3&&C<=f.IG+N*1E3)return{QW:f,cL:R}}}else if(J=J.U[X],J.IG>=C)return{QW:J,cL:R};return{QW:void 0,cL:R}}; oDE=function(J,R){var N="";(R=Jig(J,R))&&(N=R.getId());return N?J.V.get(N):void 0}; Jig=function(J,R){if(J.tE){var N=J.J.get(J.tE);if(N&&N.start-200<=R&&N.end+200>=R)return N}J=g.K(J.J.values());for(N=J.next();!N.done;N=J.next())if(N=N.value,N.start<=R&&N.end>=R)return N}; eq7=function(J,R,N){var C=J.R1||J.api.Us().getPlayerState();jY(J,!0);J.RB.seekTo(R,N);J=J.api.Us();R=J.getPlayerState();C.isOrWillBePlaying()&&!R.isOrWillBePlaying()?J.playVideo():C.isPaused()&&!R.isPaused()&&J.pauseVideo()}; jY=function(J,R){J.Xn=NaN;J.YA=null;J.TW.stop();J.Xk&&R&&NFn(J.Xk);J.R1=null;J.Xk=null}; RtB=function(J){var R=R===void 0?-1:R;var N=N===void 0?Infinity:N;for(var C=[],X=g.K(J.U),u=X.next();!u.done;u=X.next())u=u.value,(u.hEN)&&C.push(u);J.U=C;C=g.K(J.J.values());for(X=C.next();!X.done;X=C.next())X=X.value,X.start>=R&&X.end<=N&&(J.RB.removeCueRange(X),J.J.delete(X.getId()),J.RB.u3("sdai",{rmAdCR:1}));C=xeY(J,R/1E3);R=C.QW;C=C.cL;if(R&&(C=C*1E3-R.hE,X=R.hE+C,R.durationMs=C,R.IG=X,C=J.J.get(R.cpn))){X=g.K(J.Z);for(u=X.next();!u.done;u=X.next())u=u.value,u.start===C.end?u.start= R.hE+R.durationMs:u.end===C.start&&(u.end=R.hE);C.start=R.hE;C.end=R.hE+R.durationMs}if(R=xeY(J,N/1E3).QW){var f;C="playback_timelinePlaybackId_"+R.B1+"_video_id_"+((f=R.videoData)==null?void 0:f.videoId)+"_durationMs_"+R.durationMs+"_enterTimeMs_"+R.hE+"_parentReturnTimeMs_"+R.IG;J.bf("Invalid_clearEndTimeMs_"+N+"_that_falls_during_"+C+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; N4B=function(J){J.PC.clear();J.eQ.clear();J.G7.clear();J.J.clear();J.Z=[];J.U=[];J.V.clear();J.ji.clear();J.W.clear();J.S.clear();J.GW=[];J.nC=null;J.v7.clear();J.VO=[];J.kA=[];J.j2=[];J.H1=[];J.T7=[];J.CY.clear();J.m7.clear();J.FV.clear();J.oB.clear();J.tN=!1;J.K=void 0;J.HC=0;J.l3=!0;J.ma=!1;J.xP=0;J.AL=0;J.VR=!1;J.hD=!1;J.X="";J.dn.isActive()&&AA(J)}; XLB=function(J,R,N,C,X,u){if(!J.hD)if(g.Cl7(J,N))J.pC&&J.RB.u3("sdai",{gdu:"undec",seg:N,itag:X});else if(R=mu(J,R,N,C,u),!(J.RB.getVideoData().ZD()&&(R==null?0:R.Ym)))return R}; mu=function(J,R,N,C,X){var u=J.S.get(N);if(!u){if(u=id2(J,R))return u;R=Vg(J,N-1,C!=null?C:2);if(X)return J.RB.u3("sdai",{misscue:X,sq:N,type:C,prevsstate:R==null?void 0:R.kY,prevrecord:J.S.has(N-1)}),J.S.get(N-1);if((R==null?void 0:R.kY)===2)return J.RB.u3("sdai",{adnf:1,sq:N,type:C,prevrecord:J.S.has(N-1)}),J.S.get(N-1)}return u}; id2=function(J,R){R+=J.L2();if(J.KC.T("html5_lifa_overdecorate_fix"))a:{var N=1;N=N===void 0?0:N;var C=R*1E3;J=g.K(J.U);for(var X=J.next();!X.done;X=J.next()){X=X.value;var u=X.z$?X.z$*1E3:X.hE;if(C>=X.hE-N*1E3&&C<=u+X.durationMs+N*1E3){R={QW:X,cL:R};break a}}R={QW:void 0,cL:R}}else R=xeY(J,R,1);return R.QW}; uFE=function(J,R){R=R===void 0?"":R;var N=Ei(R)||void 0;if(!R||!N){var C;J.RB.u3("sdai",{adcfg:(C=R)==null?void 0:C.length,dcfg:N==null?void 0:N.length})}return N}; fHE=function(J){if(J.T7.length)for(var R=g.K(J.T7),N=R.next();!N.done;N=R.next())J.onCueRangeExit(N.value);R=g.K(J.J.values());for(N=R.next();!N.done;N=R.next())J.RB.removeCueRange(N.value);R=g.K(J.Z);for(N=R.next();!N.done;N=R.next())J.RB.removeCueRange(N.value);J.J.clear();J.Z=[];J.PC.clear();J.eQ.clear();J.G7.clear();J.K||(J.l3=!0)}; tk7=function(J,R,N,C,X,u,f){if(R&&N){J.tE=N.cpn;bxB(J,N);var H=Yc(J,"a2a",N);J.RB.u3("sdai",H);J.xP++;Lp(J.RB,R,N,C||0,X||0,!!u,!!f)}else J.RB.u3("sdai",{misspbkonadtrans:1,enter:(N==null?void 0:N.cpn)||"",exit:(R==null?void 0:R.cpn)||"",seek:u,skip:f})}; Vg=function(J,R,N){if(N===1){if(J.PC.has(R))return J.PC.get(R)}else{if(N===2&&J.eQ.has(R))return J.eQ.get(R);if(N===3&&J.G7.has(R))return J.G7.get(R)}}; $G7=function(J,R,N,C){if(C)for(C=0;CN){var u=X.end;X.end=R;T4E(J,N,u)}else if(X.start>=R&&X.startN)X.start=N;else if(X.end>R&&X.end<=N&&X.start=R&&X.end<=N){J.RB.removeCueRange(X);if(J.T7.includes(X))J.onCueRangeExit(X);J.Z.splice(C,1);continue}C++}else T4E(J,R,N)}; T4E=function(J,R,N){R=J.w2(R,N);N=!0;g.fE(J.Z,R,function(f,H){return f.start-H.start}); for(var C=0;C0){var X=J.Z[C],u=J.Z[C-1];if(Math.round(u.end/1E3)>=Math.round(X.start/1E3)){u.end=X.end;X!==R?J.RB.removeCueRange(X):N=!1;J.Z.splice(C,1);continue}}C++}if(N)for(J.RB.addCueRange(R),R=J.RB.k_("serverstitchedcuerange",36E5),R=g.K(R),N=R.next();!N.done;N=R.next())J.J.delete(N.value.getId())}; gF=function(J,R,N){if(N===void 0||!N){N=g.K(J.GW);for(var C=N.next();!C.done;C=N.next()){C=C.value;if(R>=C.start&&R<=C.end)return;if(R===C.end+1){C.end+=1;return}}J.GW.push(new zqf(R))}}; g.Cl7=function(J,R){J=g.K(J.GW);for(var N=J.next();!N.done;N=J.next())if(N=N.value,R>=N.start&&R<=N.end)return!0;return!1}; hqB=function(J,R,N,C,X){var u;R={reason:"overlapping_playbacks",zQa:R,hE:N,IG:C,f_3:X.B1,EZO:((u=X.videoData)==null?void 0:u.videoId)||"",s68:X.durationMs,j63:X.hE,oZk:X.IG};qQ(J,R)}; qQ=function(J,R,N){J=J.RB;J.u3("timelineerror",R);R=new PD("dai.timelineerror",R);N?J.As("dai.timelineerror",1,"RETRYABLE_ERROR",lJ(R.details)):J.us(R)}; Hd8=function(J,R){var N=[];J=J.W.get(R);if(!J)return[];J=g.K(J);for(R=J.next();!R.done;R=J.next())R=R.value,R.cpn&&N.push(R.cpn);return N}; kqg=function(J,R,N){var C=0;J=J.W.get(N);if(!J)return-1;J=g.K(J);for(N=J.next();!N.done;N=J.next()){if(N.value.cpn===R)return C;C++}return-1}; vD7=function(J,R){var N=[];J=J.W.get(R);if(!J)return[];J=g.K(J);for(var C=J.next();!C.done;C=J.next())R=void 0,(C=(R=C.value.videoData)==null?void 0:R.videoId)&&N.push(C);return N}; WtY=function(J,R){var N=0;J=J.W.get(R);if(!J)return 0;J=g.K(J);for(R=J.next();!R.done;R=J.next())R=R.value,R.durationMs!==0&&R.IG!==R.hE&&N++;return N}; S37=function(J,R,N){var C=!1;if(N&&(N=J.W.get(N))){N=g.K(N);for(var X=N.next();!X.done;X=N.next())X=X.value,X.durationMs!==0&&X.IG!==X.hE&&(X=X.cpn,R===X&&(C=!0),C&&!J.m7.has(X)&&(J.RB.u3("sdai",{decoratedAd:X}),J.m7.add(X)))}}; w4Y=function(J){J.pC&&J.RB.u3("sdai",{adf:"0_"+((new Date).getTime()/1E3-J.AL)+"_isTimeout_"+J.tN})}; cu8=function(J,R,N){if(J.VO.length)for(var C=g.K(J.VO),X=C.next(),u={};!X.done;u={T2:void 0},X=C.next()){u.T2=X.value;X=u.T2.startSecs*1E3;var f=u.T2.Ly*1E3+X;if(R>X&&RX&&N0&&C>R*1E3+J.kT7)&&(C=Kt8(J,N))){R=!1;N=void 0;C=g.K(C.segments);for(X=C.next();!X.done;X=C.next()){X=X.value;if(R){N=X;break}Bc(X)===J.tE&&(R=!0)}C=void 0;if(N)C=Bc(N);else if(R){var u;C=(u=J.timeline.K)==null?void 0:Bc(u)}if(C)J.finishSegmentByCpn(J.tE,C,2,void 0);else{var f;J.api.u3("ssap",{mfnc:1,mfncc:(f=J.timeline.K)== null?void 0:Bc(f)})}}}}; FtB=function(J){return J.api.T("html5_force_ssap_gapful_switch")||J.api.T("html5_ssap_enable_legacy_browser_logic")&&!qk()}; DGB=function(J,R,N,C){J.CG.set(R,C);Q7E(J,R,N);nDE(J,N)}; KJ=function(J,R){J=U$(J.timeline,R);return(J==null?0:J.length)?J[0].P7():0}; Qj=function(J,R){var N=N===void 0?!1:N;var C=J.timeline.K;if(!C)return{clipId:"",jS:0};var X=Fug(J,R,N);if(X)return{clipId:Bc(X)||"",jS:X.P7()};J.api.u3("mci",{cs:Bc(C),mt:R,tl:WX(J),invt:!!N});return{clipId:"",jS:0}}; mL=function(J){var R=J.timeline.K;if(!R)return 0;J=0;if(R.K.size===0)return(R.y7()-R.P7())/1E3;R=R.K.values();R=g.K(R);for(var N=R.next();!N.done;N=R.next()){N=g.K(N.value);for(var C=N.next();!C.done;C=N.next())C=C.value,J+=(C.y7()-C.P7())/1E3}return J}; B4n=function(J,R){return(J=s7Y(J,R*1E3))?J.P7():0}; Od7=function(J,R){var N=U$(J.timeline,R);R=0;if(N==null?0:N.length)for(J=g.K(N),N=J.next();!N.done;N=J.next())N=N.value,R+=(N.y7()-N.P7())/1E3;else return mL(J);return R}; s7Y=function(J,R){if(J=U$(J.timeline,J.tE)){J=g.K(J);for(var N=J.next();!N.done;N=J.next())if(N=N.value,N.P7()<=R&&N.y7()>=R)return N}}; ZdY=function(J){var R=J.RB.getVideoData();J.tE&&(J=J.Mj.get(J.tE))&&(R=J);return R}; Kt8=function(J,R,N){N=N===void 0?!1:N;var C=J.timeline.K;if(C){C=C.K;var X=Array.from(C.keys());g.ik(X);R=g.N_(X,R);R=C.get(X[R<0?(R+2)*-1:R]);if(!N&&R){N=g.K(R);for(R=N.next();!R.done;R=N.next())if(R=R.value,R.P7()!==R.y7())return R;return J.timeline}return R&&R.length>0?R[R.length-1]:void 0}}; Fug=function(J,R,N){N=N===void 0?!1:N;var C=Kt8(J,R,N);if(C){if(J=C.segments,J.length){for(var X=g.K(J),u=X.next();!u.done;u=X.next())if(u=u.value,u.P7()<=R&&u.y7()>R)return u;if(N&&C.P7()===C.y7())return J[0]}}else J.api.u3("ssap",{ctnf:1})}; Ltf=function(J,R){var N;if(J.OJ)for(N=J.df.shift();N&&N!==J.OJ;)N=J.df.shift();else N=J.df.shift();if(N){if(J.oE.has(N))dG2(J,N);else if(R===3||R===4)J.PD.stop(),J.api.playVideo(1,J.api.T("html5_ssap_keep_media_on_finish_segment"));J.CG.set(J.tE,R);J.api.u3("ssap",{onvftn:1});nDE(J,N);return!1}J.api.u3("ssap",{onvftv:1});J.PD.stop();return!0}; dG2=function(J,R){R=U$(J.timeline,R);if(R==null?0:R.length)J.api.pauseVideo(),J.PD.start(R[0].Kd)}; nDE=function(J,R){var N=J.RB.getVideoData(),C=N.clientPlaybackNonce;J.Ab&&(J.events.tL(J.Ab),J.Ab=null,J.RB.uW=-1);var X=J.tE,u=!1;if(X==="")X=C,u=!0;else if(X===void 0){var f=J.RB.w_().Rm;f&&J.timeline.J.has(f)&&(X=f);J.api.u3("ssap",{mcc:X+";"+R});J.RB.us(new PD("ssap.timelineerror",{e:"missing_current_cpn",pcpn:X,ccpn:R}))}if(X===R)u&&N&&q3g(J,N,u);else{f=J.CG.get(X);if(!u&&(!f||f!==3&&f!==5&&f!==6&&f!==7)){var H=J.api.Z4(J.tE);J.api.u3("ssap",{nmec:H,cpc:J.tE,ec:R})}f&&f!==2||UQ(J);J.tE=R;UQ(J); R=U$(J.timeline,J.tE);if(R==null?0:R.length){R=R[0];H=R.getType();X!==C&&(J.a5=X,N=J.Mj.get(X));f?J.CG.delete(X):f=u?1:2;J.api.T("html5_ssap_pacf_qoe_ctmp")&&H===2&&!R.J&&(J.Ab=J.events.L(J.api,"onVideoProgress",J.rYn));J.api.u3("ssapt",{ostro:f,pcpn:X,ccpn:J.tE});a:{var k=J.tE;if(!J.x6.has(k))for(var v=g.K(J.x6),W=v.next();!W.done;W=v.next()){var S=g.K(W.value);W=S.next().value;S=S.next().value;if(S.getId().includes(k)){k=W;break a}}}W=k;v=J.api.N().T("html5_ssap_insert_su_before_nonvideo")&&W!== J.tE;S=J.RB.w_();if(S.Rm!==W){var L=S.xA(S.Rm);k=S.xA(W);S.Rm=W;k!==L&&(L.qoe&&(W=L.qoe,W.provider.KC.Si()&&W.u3("ssap",{qoesus:"1",vid:W.provider.videoData.videoId}),v&&(v=g.m0(W.provider),Zp2(W,v,"SU")),isNaN(W.S)||g.dp(W.S)),k.resume())}k=Math.max(0,pM(J,X));v=J.RB.getCurrentTime();v=Math.max(0,v-KJ(J,J.tE)/1E3);W=R.getVideoData();var I=f===3||f===5||f===6||f===7;J.api.T("html5_ssap_skip_illegal_seeking")&&(S=J.RB.getPlayerState(),S=!g.h(S,8)&&g.h(S,16),I=I||S,S&&J.api.u3("ssap",{iis:1}));S=J.RB.w_(); L=X;var F=J.tE,a=J.RB.getPlayerState();if(L!==F){var n=S.xA(L),B=S.xA(F),Z,A=L===((Z=n.getVideoData())==null?void 0:Z.clientPlaybackNonce),V;Z=F===((V=B.getVideoData())==null?void 0:V.clientPlaybackNonce);var p;V=A?((p=n.getVideoData())==null?void 0:p.videoId)||"":"nvd";var b;p=Z?((b=B.getVideoData())==null?void 0:b.videoId)||"":"nvd";A&&(b=n.qoe)!=null&&(Iu(b,4,I?4:0,F,p,k),b.reportStats());Z&&(OH(B),(b=B.qoe)!=null&&(Iu(b,4,I?5:1,L,V,v),b.reportStats()),Tv8(B,new g.q2(a,B.Em)),uA2(B));LYE(S,L)}J.api.u3("ssapt", {ostri:f,pcpn:X,ccpn:J.tE});var w;KuE(X,J.tE,C,W,(w=J.m2.get(X))!=null?w:(0,g.g9)(),N);J.m2.delete(X);u?N=void 0:N||J.api.u3("ssap",{pvdm:X+";"+J.tE,pvdmc:J.tE===C?"1":"0"});J.api.u3("ssap",{tpac:X+";"+J.tE,tpcc:C,tpv:(W==null?0:W.Da())?"1":"0"},!1,1);J.api.N().T("html5_ssap_cleanup_player_switch_ad_player")&&J.api.gh();J.api.publish("videodatachange","newdata",W,H,N,f);R.J||J.RB.getVideoData().publish("dataupdated");J.oE.delete(X);J.OJ="";W&&H===1?q3g(J,W):J.RB.u3("ssap",{nis:J.tE});H===2?J.xP++: J.xP=0}}}; q3g=function(J,R,N){N=N===void 0?!1:N;if(R.startSeconds&&J.QH){var C=R.startSeconds;R=U$(J.timeline,R.clientPlaybackNonce);if(R==null?0:R.length)C+=R[0].P7()/1E3,J.api.T("htm5_ssap_ignore_initial_seek_if_too_big")&&C>=J.M9()||(J.RB.seekTo(C,{b8:!0}),J.QH=!1,J.RB.u3("ssap",{is:J.tE,co:N?"1":"0",tse:C.toFixed()}))}}; Q7E=function(J,R,N){R=U$(J.timeline,R);if(R!=null&&R.length&&(R=Kt8(J,R[0].P7()))){R=g.K(R.segments);for(var C=R.next();!C.done;C=R.next()){C=C.value;if(Bc(C)===N)break;if(C=Bc(C)){var X=J.x6.get(C);X&&J.RB.removeCueRange(X);J.x6.delete(C)}}}}; xO=function(J){return J.RB.getVideoData().clientPlaybackNonce}; Eek=function(J,R){if(J.c8&&J.tE!==R)return!1;if(J.Y1)return!0;if(R=J.x6.get(R))if(R=R.getId().split(","),R.length>1)for(var N=0;N0?J:0)}; pM=function(J,R){R=R||J.tE;var N=J.Mj.get(R);return N?N.EL:R!==xO(J)?0:J.RB.getVideoData().EL}; WX=function(J){var R=J.tE;R||(R=J.RB.getVideoData().clientPlaybackNonce);var N,C,X=Array.from((C=(N=J.timeline.K)==null?void 0:N.K.values())!=null?C:[]);N=[];if(X==null?0:X.length)for(C=g.K(X),X=C.next();!X.done;X=C.next())if(X=X.value,X.length&&X[0]&&(X=X[0].segments,X.length)){X=g.K(X);for(var u=X.next();!u.done;u=X.next()){var f=u.value;u="st."+f.P7()+";";u+="et."+f.y7()+";";var H=Bc(f);H&&(u+="cpn."+H+";",u+="a."+(R===H?1:0)+";");if(f=f.getVideoData())H=void 0,u+="vid."+((H=f.videoId)!=null?H: "nvd");N.push(u)}}return(N.length?N.join(","):"empty."+R)+";cpcpn."+J.lY()}; IHk=function(J){J.RB.SZ(Array.from(J.x6.values()));J.x6.clear()}; Y3Q=function(J,R,N){g.l.call(this);var C=this;this.api=J;this.KC=R;this.K=N;this.S=new Map;this.J=[];this.V=this.D=null;this.nC=NaN;this.U=this.Z=this.W=null;this.X=new g.$t(function(){AiY(C,C.nC,C.W||void 0)}); this.dn=[];this.ma=new g.$t(function(){var X=C.dn.pop();if(X){var u=X.B1,f=X.playerVars;X=X.playerType;f&&(f.prefer_gapless=!0,C.api.preloadVideoByPlayerVars(f,X,NaN,"",u),C.dn.length&&g.HK(C.ma,4500))}}); this.events=new g.tY(this);N.getPlayerType();g.P(this,this.X);g.P(this,this.ma);g.P(this,this.events);this.events.L(this.api,g.Q3("childplayback"),this.onCueRangeEnter);this.events.L(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.L(this.api,"presentingplayerstatechange",this.Cx)}; VXE=function(J,R,N,C,X,u){var f=R.cpn,H=R.docid||R.video_id||R.videoId||R.id,k=J.K;u=u===void 0?X+C:u;if(X>u)return lX(J,"enterAfterReturn enterTimeMs="+X+" is greater than parentReturnTimeMs="+u.toFixed(3),f,H),"";var v=k.MN()*1E3;if(Xv)return k="returnAfterDuration parentReturnTimeMs="+u.toFixed(3)+" is greater than parentDurationMs="+v+". And timestampOffset in seconds is "+ k.uS(),lX(J,k,f,H),"";v=null;for(var W=g.K(J.J),S=W.next();!S.done;S=W.next()){S=S.value;if(X>=S.hE&&XS.hE)return lX(J,"overlappingReturn",f,H),"";if(u===S.hE)return lX(J,"outOfOrder",f,H),"";X===S.IG&&(v=S)}f="cs_childplayback_"+riE++;H={MP:Pc(C,!0),JD:Infinity,target:null};var L={B1:f,playerVars:R,playerType:N,durationMs:C,hE:X,IG:u,UM:H};J.J=J.J.concat(L).sort(function(a,n){return a.hE-n.hE}); v?j7E(J,v,{MP:Pc(v.durationMs,!0),JD:v.UM.JD,target:L}):(R={MP:Pc(X,!1),JD:X,target:L},J.S.set(R.MP,R),k.addCueRange(R.MP));R=!0;if(J.K===J.api.Us()&&(k=k.getCurrentTime()*1E3,k>=L.hE&&kR)break;if(u>R)return{QW:C,cL:R-X};N=u-C.IG/1E3}return{QW:null,cL:R-N}}; AiY=function(J,R,N){N=N===void 0?{}:N;var C=J.U||J.api.Us().getPlayerState();wF(J,!0);R=isFinite(R)?R:J.K.Nj();var X=lHB(J,R);R=X.QW;X=X.cL;var u=R&&!zM(J,R)||!R&&J.K!==J.api.Us(),f=X*1E3;f=J.V&&J.V.start<=f&&f<=J.V.end;!u&&f||eY(J);R?mGg(J,R,X,N,C):PlE(J,X,N,C)}; PlE=function(J,R,N,C){var X=J.K,u=J.api.Us();X!==u&&J.api.Kg();X.seekTo(R,Object.assign({},{hL:"application_timelinemanager"},N));zt8(J,C)}; mGg=function(J,R,N,C,X){var u=zM(J,R);if(!u){R.playerVars.prefer_gapless=!0;J.KC.T("html5_enable_ssap_entity_id")&&(R.playerVars.cached_load=!0);var f=new g.xC(J.KC,R.playerVars);f.B1=R.B1;J.api.gq(f,R.playerType)}f=J.api.Us();u||f.addCueRange(R.UM.MP);f.seekTo(N,Object.assign({},{hL:"application_timelinemanager"},C));zt8(J,X)}; zt8=function(J,R){J=J.api.Us();var N=J.getPlayerState();R.isOrWillBePlaying()&&!N.isOrWillBePlaying()?J.playVideo():R.isPaused()&&!N.isPaused()&&J.pauseVideo()}; wF=function(J,R){J.nC=NaN;J.W=null;J.X.stop();J.Z&&R&&NFn(J.Z);J.U=null;J.Z=null}; zM=function(J,R){J=J.api.Us();return!!J&&J.getVideoData().B1===R.B1}; etE=function(J){var R=J.J.find(function(X){return zM(J,X)}); if(R){var N=J.api.Us();eY(J);var C=new g.hy(8);R=pLE(J,R)/1E3;PlE(J,R,{},C);N.u3("forceParentTransition",{childPlayback:1});J.K.u3("forceParentTransition",{parentPlayback:1})}}; cin=function(J,R,N){R=R===void 0?-1:R;N=N===void 0?Infinity:N;for(var C=R,X=N,u=g.K(J.S),f=u.next();!f.done;f=u.next()){var H=g.K(f.value);f=H.next().value;H=H.next().value;H.JD>=C&&H.target&&H.target.IG<=X&&(J.K.removeCueRange(f),J.S.delete(f))}C=R;X=N;u=[];f=g.K(J.J);for(H=f.next();!H.done;H=f.next())if(H=H.value,H.hE>=C&&H.IG<=X){var k=J;k.D===H&&eY(k);zM(k,H)&&k.api.Kg()}else u.push(H);J.J=u;C=lHB(J,R/1E3);R=C.QW;C=C.cL;R&&(C*=1E3,wLn(J,R,C,R.IG===R.hE+R.durationMs?R.hE+C:R.IG));(R=lHB(J,N/1E3).QW)&& lX(J,"Invalid clearEndTimeMs="+N+" that falls during playback={timelinePlaybackId="+(R.B1+" video_id="+R.playerVars.video_id+" durationMs="+R.durationMs+" enterTimeMs="+R.hE+" parentReturnTimeMs="+R.IG+"}.Child playbacks can only have duration updated not their start."))}; wLn=function(J,R,N,C){R.durationMs=N;R.IG=C;C={MP:Pc(N,!0),JD:N,target:null};j7E(J,R,C);zM(J,R)&&J.api.Us().getCurrentTime()*1E3>N&&(R=pLE(J,R)/1E3,N=J.api.Us().getPlayerState(),PlE(J,R,{},N))}; lX=function(J,R,N,C){J.K.u3("timelineerror",{e:R,cpn:N?N:void 0,videoId:C?C:void 0})}; yi2=function(J){J&&J!=="web"&&htk.includes(J)}; yg=function(J,R){g.l.call(this);var N=this;this.data=[];this.V=J||NaN;this.J=R||null;this.K=new g.$t(function(){cc(N);hA(N)}); g.P(this,this.K)}; Gqg=function(J){cc(J);return J.data.map(function(R){return R.value})}; cc=function(J){var R=(0,g.g9)();J.data.forEach(function(N){N.expireu?{width:R.width,height:R.width/X,aspectRatio:X}:XX?J.width=J.height*N:Nk;if(xc(J)){var v=RRY(J);var W=isNaN(v)||g.iC||Bk&&g.d9||k;C9&&!g.kN(601)?v=X.aspectRatio:W=W||u.controlsType==="3";W?k?(W=u.T("place_shrunken_video_on_left_of_player")?16:J.getPlayerSize().width-R.width-16,v=Math.max((J.getPlayerSize().height-R.height)/2,0),W=new g.vq(W,v,R.width, R.height),J.B3.style.setProperty("border-radius","12px")):W=new g.vq(0,0,R.width,R.height):(N=X.aspectRatio/v,W=new g.vq((R.width-X.width/N)/2,(R.height-X.height)/2,X.width/N,X.height),N===1&&g.d9&&(v=W.width-R.height*v,v>0&&(W.width+=v,W.height+=v)));g.ao(J.element,"ytp-fit-cover-video",Math.max(W.width-X.width,W.height-X.height)<1);if(H||J.Uw)J.B3.style.display="";J.NL=!0}else{W=-R.height;C9?W*=window.devicePixelRatio:g.fW&&(W-=window.screen.height);W=new g.vq(0,W,R.width,R.height);if(H||J.Uw)J.B3.style.display= "none";J.NL=!1}Wq(J.tQ,W)||(J.tQ=W,g.eh(u)?(J.B3.style.setProperty("width",W.width+"px","important"),J.B3.style.setProperty("height",W.height+"px","important")):g.Y$(J.B3,W.getSize()),C=new g.Ms(W.left,W.top),g.ZA(J.B3,Math.round(C.x),Math.round(C.y)),C=!0);R=new g.vq((R.width-X.width)/2,(R.height-X.height)/2,X.width,X.height);Wq(J.Tw,R)||(J.Tw=R,C=!0);g.Lz(J.B3,"transform",N===1?"":"scaleX("+N+")");f&&k!==J.Or&&(k&&(J.B3.addEventListener(CBB,J.sy),J.B3.addEventListener("transitioncancel",J.sy),J.B3.classList.add(g.XT.VIDEO_CONTAINER_TRANSITIONING)), J.Or=k,J.app.x8.publish("playerUnderlayVisibilityChange",J.Or?"transitioning":"hidden"));return C}; iFn=function(){this.csn=g.pR();this.clientPlaybackNonce=null;this.elements=new Set;this.V=new Set;this.K=new Set;this.J=new Set}; uz8=function(J){if(J.csn!==g.pR())if(J.csn==="UNDEFINED_CSN")J.csn=g.pR();else{var R=g.pR(),N=g.Ut();if(R&&N){J.csn=R;for(var C=g.K(J.elements),X=C.next();!X.done;X=C.next())(X=X.value.visualElement)&&X.isClientVe()&&R&&N&&(g.Ac("combine_ve_grafts")?PA(pf(),X,N):g.$q(g.f7)(void 0,R,N,X))}if(R)for(J=g.K(J.K),N=J.next();!N.done;N=J.next())(N=N.value.visualElement)&&N.isClientVe()&&g.L7(R,N)}}; g.J5=function(J,R,N,C){g.l.call(this);var X=this;this.logger=new g.Pi("App");this.Kl=this.rV=!1;this.Oq={};this.IN={};this.fl=[];this.sF=!1;this.SN=null;this.Wc=!1;this.f8=!0;this.LN=!1;this.G0=this.Eh=null;this.Dt=!0;this.mediaElement=this.mD=null;this.Uy=NaN;this.Kp=!1;this.zd=this.hR=this.k8=this.HU=this.screenLayer=this.WC=this.playlist=null;this.QR={fL:function(){return X.k8}, fp:function(k){X.k8=k}, Db:function(k,v){X.k8&&X.k8.Db(k,v)}}; this.logger.debug("constructor begin");this.config=EgE(R||{});this.webPlayerContextConfig=N;APE();R=this.config.args||{};this.KC=new t6(R,N,N?N.canaryState:this.config.assets.player_canary_state,C,this);g.P(this,this.KC);men(this.KC);C=g2E(this.KC);this.KC.experiments.b3("jspb_serialize_with_worker")&&Whg();this.KC.experiments.b3("gzip_gel_with_worker")&&XQ8();this.KC.J&&!fvk&&(window.addEventListener(rI?"touchstart":"click",v2Q,{capture:!0,passive:!0}),fvk=!0);this.T("html5_onesie")&&(this.La=new KS(this.KC), g.P(this,this.La));this.Pz=W1(Ui(this.KC)&&!0,R.enablesizebutton);this.Hp=W1(!1,R.player_wide);this.visibility=new qPP;g.P(this,this.visibility);this.T("web_log_theater_mode_visibility")&&this.v8(W1(!1,R.player_wide));this.rV=W1(!1,R.external_list);this.events=new g.tY(this);g.P(this,this.events);this.T("start_client_gcf")&&(PG(cG(),{Vm:M6,YI:O$P()}),this.nt=cG().resolve(M6),qpQ(this.nt));this.OLC=new o1;g.P(this,this.OLC);this.Eq=new iFn;R=new WKf;this.x8=new g.ke(this,R);g.P(this,this.x8);this.template= new Jrf(this);g.P(this,this.template);this.appState=1;this.sL=TwP(this);g.P(this,R);R={};this.N_=(R.internalvideodatachange=this.YO,R.playbackready=this.qvB,R.playbackstarted=this.iPa,R.statechange=this.tia,R);this.Ox=new Tx(this.x8);this.VC=$Ig(this);R=this.T("html5_load_wasm");var u=this.T("html5_allow_asmjs");if(R&&HFg||u)this.KC.eP=J8E(this.VC,u),qN(dS(this.KC.eP,function(k){X.KC.QC=k;var v;(v=g.ih(X))==null||v.u3("wasm",{a:k.Ub})}),function(k){g.G$(k); k="message"in k&&k.message||k.toString()||"";var v;(v=g.ih(X))==null||v.u3("wasm",{e:k})}); else if(R&&!HFg){var f;(f=g.ih(this))==null||f.u3("wasm",{e:"wasm unavailable"})}this.qR=new XBf(this.KC,this.VC);this.x8.publish("csiinitialized");this.BC=kZE(this);this.BC.setPlaybackRate(this.KC.Z?1:vTg(this,Number(g.wJ("yt-player-playback-rate"))||1));g.QP(this.BC,this.N_,this);B7E(this.BC);f={};this.Gt=(f.airplayactivechange=this.onAirPlayActiveChange,f.airplayavailabilitychange=this.onAirPlayAvailabilityChange,f.beginseeking=this.p5,f.sabrCaptionsDataLoaded=this.wUf,f.endseeking=this.e$,f.internalAbandon= this.H0,f.internalaudioformatchange=this.Fy,f.internalvideodatachange=this.onVideoDataChange,f.internalvideoformatchange=this.V9,f.liveviewshift=this.B33,f.playbackstalledatstart=this.Ia8,f.progresssync=this.Ysf,f.onAbnormalityDetected=this.Ts,f.onSnackbarMessage=this.onSnackbarMessage,f.onLoadProgress=this.onLoadProgress,f.SEEK_COMPLETE=this.OC,f.SEEK_TO=this.dP3,f.onVideoProgress=this.onVideoProgress,f.onLoadedMetadata=this.onLoadedMetadata,f.onAutoplayBlocked=this.onAutoplayBlocked,f.onPlaybackPauseAtStart= this.Zi3,f.playbackready=this.UNk,f.statechange=this.Rf,f.newelementrequired=this.lI,f.heartbeatparams=this.eO,f.videoelementevent=this.ow,f.drmoutputrestricted=this.onDrmOutputRestricted,f.signatureexpired=this.OYO,f.nonfatalerror=this.mNn,f.reloadplayer=this.eoM,f);this.VE=new g.tY(this);g.P(this,this.VE);f=10;g.eG(this.KC)&&(f=3);iv(this.KC)&&(f=g.di(this.KC.experiments,"tvhtml5_unplugged_preload_cache_size"));this.I7=new bX;g.P(this,this.I7);this.N2=new yg(f,function(k){k!==g.ih(X,k.getPlayerType())&& k.dispose()}); g.P(this,this.N2);this.RH=this.Sb=-1;this.lL=new g.$t(this.template.resize,16,this.template);g.P(this,this.lL);this.lS=new Y3Q(this.x8,this.KC,this.BC);this.fX=new sQ(this.KC);this.cY=new BRP(this);g.P(this,this.cY);this.Sz=new MQ(this);g.P(this,this.Sz);yi2(this.KC.K.c);this.events.L(this.x8,g.Q3("appapi"),this.gAp);this.events.L(this.x8,g.nw("appapi"),this.mRn);this.events.L(this.x8,g.Q3("appprogressboundary"),this.M2a);this.events.L(this.x8,g.nw("applooprange"),this.DE);this.events.L(this.x8,"presentingplayerstatechange", this.Cx);this.events.L(this.x8,"resize",this.X1p);this.template.IB(GL(document,J));this.events.L(this.x8,"offlineslatestatechange",this.qsQ);this.VC.G.N().Xp&&Q4(this.VC,"offline");this.KC.HC&&g.WY("ux",g.F1);J=g.di(this.KC.experiments,"html5_defer_fetch_att_ms");this.qr=new g.$t(this.ZLn,J,this);g.P(this,this.qr);this.bS().Da()&&(g.hf()&&this.bS().tN.push("remote"),WC7(this));this.qR.tick("fs");SZf(this);if(this.KC.Si()&&this.KC.T("html5_record_h5vcc_flags")){var H;(H=g.ih(this))==null||H.u3("h5vcc", C)}this.KC.HC&&Q4(this.VC,"ux",!0);g.V_(this.VC.G.N())&&Q4(this.VC,"embed");this.T("web_player_sentinel_is_uniplayer")||g.G$(new g.C3("Player experiment flags missing","web_player_sentinel_is_uniplayer"));H=this.T("web_player_sentinel_yt_experiments_sync");J=g.Ac("web_player_sentinel_yt_experiments_sync");H!==J&&g.G$(new g.C3("b/195699950",{yt:H,player:J}));N||g.G$(new g.C3("b/179532961"));this.Vy=LCf(this);if(N=g.di(this.KC.experiments,"html5_block_pip_safari_delay"))this.g7=new g.$t(this.Yp,N,this), g.P(this,this.g7);wp=this.KC.AL;N=g.di(this.KC.experiments,"html5_performance_impact_profiling_timer_ms");N>0&&(this.mK=new g.dt(N),g.P(this,this.mK),this.events.L(this.mK,"tick",function(){X.OW&&IvB.yb("apit",X.OW);X.OW=IvB.qa()})); this.x8.publish("applicationInitialized");this.logger.debug("constructor end")}; LCf=function(J){function R(N){N.stack&&N.stack.indexOf("player")!==-1&&(N={n:N.name,m:N.message},(J.WC||J.BC).xA().us("player.exception",lJ(N)))} bK.subscribe("handleError",R);f4.push(R);return function(){bK.unsubscribe("handleError",R);var N=f4.indexOf(R);N!==-1&&f4.splice(N,1)}}; kZE=function(J){var R=new g.xC(J.KC,J.config.args);J.x8.publish("initialvideodatacreated",R);return J.So(1,R)}; FCP=function(J,R){if(J.BC!==R){R.getVideoData().autonavState=J.BC.getVideoData().autonavState;n7(J.BC,J.N_,J);var N=J.BC.getPlaybackRate();J.BC.dispose();J.BC=R;J.BC.setPlaybackRate(N);g.QP(R,J.N_,J);WC7(J)}}; $Ig=function(J){var R="",N=tXn(J);N.indexOf("//")===0&&(N=J.KC.protocol+":"+N);var C=N.lastIndexOf("/base.js");C!==-1&&(R=N.substring(0,C+1));if(N=Error().stack)if(N=N.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))N=N[1],N.includes(R)||g.G$(Error("Player module URL mismatch: "+(N+" vs "+R+".")));R=new jOk(J.x8,R);ETE(J,R);return R}; ETE=function(J,R){var N={};N=(N.destroyed=function(){J.onApiChange()},N); R.V=N}; TwP=function(J){if(J.KC.storeUserVolume){J=g.wJ("yt-player-volume")||{};var R=J.volume;J={volume:isNaN(R)?100:g.I4(Math.floor(R),0,100),muted:!!J.muted}}else J={volume:100,muted:J.KC.mute};return J}; oE=function(J){J.mediaElement=J.KC.deviceIsAudioOnly?new g.Gf(g.iu("AUDIO")):EQ.pop()||new g.Gf(g.iu("VIDEO"));g.P(J,J.mediaElement);J.WC&&J.WC.setMediaElement(J.mediaElement);try{J.KC.H1?(J.hR&&J.events.tL(J.hR),J.hR=J.events.L(J.mediaElement,"volumechange",J.dNk)):(J.mediaElement.KG(J.sL.muted),J.mediaElement.setVolume(J.sL.volume/100))}catch(X){J.J2("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(X&&typeof X==="object"&&"message"in X&&typeof X.message==="string"&&X.message.replace(/[;:,]/g, "_")));return}g.pI(J.VE);MPf(J);var R=J.template,N=J.mediaElement.Ov();R.B3=N;R.UN=!1;R.B3.parentNode||$w(R.Cn,R.B3,0);R.tQ=new g.vq(0,0,0,0);XsP(R);tA(R);N=R.B3;g.FL(N,"video-stream");g.FL(N,g.XT.MAIN_VIDEO);var C=R.app.N();C.mR&&N.setAttribute("data-no-fullscreen","true");C.T("html5_local_playsinline")?"playsInline"in we()&&(N.playsInline=!0):C.JU&&(N.setAttribute("webkit-playsinline",""),N.setAttribute("playsinline",""));C.gC&&R.B3&&R.L(N,"click",N.play,N);try{J.mediaElement.activate()}catch(X){J.J2("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(X&&typeof X==="object"&&"message"in X&&typeof X.message==="string"&&X.message.replace(/[;:,]/g,"_")))}}; D3=function(J,R,N){if(J.WC!==R){J.logger.debug(function(){return"start set presenting player, type "+R.getPlayerType()+", vid "+R.getVideoData().videoId}); var C=null;if(J.WC){C=J.WC.getPlayerState();J.logger.debug("set presenting player, destroy modules");nt(J.VC,3);RE(J,"cuerangesremoved",J.WC.D9());J.cY&&!R.isGapless()&&J.WC.isGapless()&&J.mediaElement&&J.mediaElement.stopVideo();var X=Vp(R)&&Vp(J.WC);J.qR.Kk("iv_s");KC7(J,X)}R.getPlayerType()===1&&FCP(J,R);avg(J,R);J.WC=R;J.mediaElement&&R.setMediaElement(J.mediaElement);g.QP(R,J.Gt,J);if(R.Dl())Qhf(J,"setPresenting",!1);else{J.onVideoDataChange("newdata",R,R.getVideoData());C&&!g.Yo(C,R.getPlayerState())&& J.Rf(new g.q2(R.getPlayerState(),C));N=N&&J.T("html5_player_preload_ad_fix")&&R.getPlayerType()===1;if(R.bb.finished&&!N)J.onVideoDataChange("dataloaded",R,R.getVideoData());(N=(N=R.getVideoData().J)&&N.video)&&J.x8.Yh("onPlaybackQualityChange",N.quality);RE(J,"cuerangesadded",J.WC.D9());N=R.getPlayerState();g.h(N,2)?nTf(J):g.h(N,8)?R.playVideo():R.KZ()&&R.pauseVideo();if(R.getPlayerType()===2){var u;R.getVideoData().yf=(u=g.ih(J,1))==null?void 0:u.getVideoData().clientPlaybackNonce}R.getPlayerType()!== 2||J.W7()||(u=R.getVideoData(),J.BC.Bs(u.clientPlaybackNonce,u.Xn||"",u.breakType||0,u.wm,u.videoId||""));J.logger.debug("finish set presenting player")}}}; nTf=function(J){if(!DI7(J)){var R=J.BC.oG();R&&(R=R.B6(),R instanceof Promise&&R.catch(function(){})); Na(J,jl(J.getPlayerStateObject()))}}; MPf=function(J){var R=J.mediaElement;Gi()?J.VE.L(R,"webkitpresentationmodechanged",J.Rd7):window.document.pictureInPictureEnabled&&(J.VE.L(R,"enterpictureinpicture",function(){J.vK(!0)}),J.VE.L(R,"leavepictureinpicture",function(){J.vK(!1)})); u4&&(J.VE.L(R,"webkitbeginfullscreen",function(){J.EV(3)}),J.VE.L(R,"webkitendfullscreen",function(){J.EV(0)}))}; avg=function(J,R){var N=R.getPlayerType();if(R!==J.BC&&R!==J.Oq[N]){var C;(C=J.Oq[N])==null||C.dispose();J.Oq[N]=R}}; KC7=function(J,R){R=R===void 0?!0:R;J.logger.debug("start clear presenting player");var N;if(N=J.zd){N=J.zd;var C=J.mediaElement;N=!!C&&C===N.mediaElement}N&&(J.uQ(),oE(J));J.WC&&(J.WC.uQ(!R),n7(J.WC,J.Gt,J),J.WC.getPlayerType()!==1&&J.WC.dispose());J.WC=null;J.logger.debug("finish clear presenting player")}; g.ih=function(J,R){if(R)if(R===1)J=J.BC;else if(J.getVideoData().enableServerStitchedDai&&R===2)J=J.getVideoData().enablePreroll?J.Oq[2]||J.WC:J.WC;else if(g.vJ(J.getVideoData())&&R===2){if(R=J.T("html5_ssap_return_content_player_during_preroll"))if(R=J.k8)R=J.k8,R=R.tE===""?!0:R.Hd();J=R?J.WC:J.Oq[2]||J.WC}else J=J.Oq[R]||null;else J=J.WC;return J}; shg=function(J,R,N,C){J=J.So(R,N,C);B7E(J);return J}; Ch=function(J,R){return J.W7(R)?J.BC:R}; XH=function(J,R){var N=J.WC;return N&&R===J.BC&&J.W7(R)&&J.W7(N)?N:R}; ZF2=function(J){J.logger.debug("start application playback");if(J.BC.getPlayerState().isError())J.logger.debug("start application playback done, player in error state");else{var R=ig(J);J.bS().isLoaded();R&&J.fm(6);BwQ(J);wB8(J.VC)||OFQ(J)}}; OFQ=function(J){if(!ig(J)){var R=Do(J.VC);R&&!R.created&&m7Q(J.VC)&&(J.logger.debug("reload ad module"),R.create())}}; BwQ=function(J){J.logger.debug("start presenter playback");var R=J.getVideoData(),N=J.VC;wB8(N)||N.Mm();!HFg&&N.G.T("html5_allow_asmjs")&&x72(N);Q4(N,"embed");Q4(N,"inline_preview");Q4(N,"kids");Q4(N,"remote");Q4(N,"miniplayer");Q4(N,"offline");Q4(N,"unplugged");Q4(N,"ypc",!1,!0);Q4(N,"ypc_clickwrap",!1,!0);Q4(N,"yto",!1,!0);Q4(N,"webgl",!1,!0);cEY(N)||(Q4(N,"captions",!0),Q4(N,"endscreen"),N.rP()||N.kW(),Q4(N,"creatorendscreen",!0));N.aQ();J.x8.publish("videoready",R)}; ug=function(J){J=J.bS();J.Da();return lY(J)}; SZf=function(J){J.logger.debug("start prepare initial playback");if(J.T("html5_enable_ssap_autoplay_debug_logging")){var R;(R=J.BC)==null||R.u3("ssap",{preppb:1})}J.Nm();var N=J.config.args;oE(J);R=J.bS();J.x8.Yh("onVolumeChange",J.sL);if(N&&TMQ(N)){var C=Rd(J.KC);C&&!J.rV&&(N.fetch=0);var X=g.V_(J.KC);X&&!J.rV&&(N.fetch=0);fh(J,N);g.V_(J.KC)&&J.qR.tick("ep_pr_s");if(!C||J.rV)if(X&&!J.rV)dI8(J);else if(!R.Da())J.playlist.onReady(function(){Tb(J)})}D3(J,J.BC); g.h(J.BC.getPlayerState(),128)||(N=rp2(!J.KC.deviceIsAudioOnly),N==="fmt.noneavailable"?J.J2("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):N==="html5.missingapi"?J.J2(N,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):R&&R.Da()&&ug(J)&&(J.KC.ZI||J.KC.EL)?$U(J):R.LD?J.x8.mutedAutoplay():g.wJ("yt-player-playback-on-reload")?(g.Mz("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!J.KC.ma}),g.e0("yt-player-playback-on-reload",!1),$U(J)):Hm(J.KC)||qZ2(J),g.Xk(J.KC)||fs(J.KC)=== "MWEB"?(g.TB(g.H9(),function(){Ha(J)}),g.TB(g.H9(),function(){p$n()})):(Ha(J),p$n()),J.logger.debug("finish prepare initial playback"))}; Ha=function(J){if(!J.T("use_rta_only_for_player"))if(J.T("fetch_att_independently"))g.HK(J.qr);else{var R=J.getVideoData().botguardData;R&&g.tS(R,J.KC,J.getVideoData().Pi||"")}}; qZ2=function(J){J.logger.debug("start initialize to CUED mode");J.x8.publish("initializingmode");J.fm(2);J.T("embeds_web_enable_defer_loading_remote_js")&&g.uv(J.KC)?g.TB(g.H9(),function(){Q4(J.VC,"remote")}):Q4(J.VC,"remote"); Q4(J.VC,"miniplayer");J.logger.debug("initialized to CUED mode")}; $U=function(J){J.logger.debug("start initialize application playback");if(g.h(J.BC.getPlayerState(),128))return!1;var R=J.BC.getVideoData();ug(J)&&J.KC.EL&&(EQ.length&&J.Kl?(kU(J,{muted:!1,volume:J.sL.volume},!1),va(J,!1)):EQ.length||J.sL.muted||(kU(J,{muted:!0,volume:J.sL.volume},!1),va(J,!0)));ug(J)&&g.V_(J.KC)&&R.mutedAutoplay&&(kU(J,{muted:!0,volume:J.sL.volume},!1),va(J,!0));R.LF&&kU(J,{muted:!0,volume:J.sL.volume},!1);ArE(J,1,R,!1);J.x8.publish("initializingmode");D3(J,J.BC);J.fm(3);var N;if(!(N= !J.KC.Ze)){if(N=J.zd){N=J.zd;var C=J.mediaElement;N=!!C&&C===N.mediaElement}N=N&&J.sF}N&&(J.uQ(),oE(J),J.BC.setMediaElement(J.mediaElement));gRE(J.BC);if(g.h(J.BC.getPlayerState(),128))return!1;R.ZY||Na(J,3);return J.sF=!0}; ig=function(J){J=SM(J.VC);return!!J&&J.loaded}; YZ7=function(J,R){if(!J.mD)return!1;var N=J.mD.startTimeMs*.001-1,C=J.mD.endTimeMs*.001;J.mD.type==="repeatChapter"&&C--;return Math.abs(R-N)<=1E-6||Math.abs(R-C)<=1E-6||R>=N&&R<=C}; mIE=function(J){var R,N=(R=g.ih(J))==null?void 0:R.vC;J.WC&&Fr(J.getVideoData())&&N&&N.policy.HC&&(R=rrg(J)*1E3-J.getVideoData().zI,J.T("html5_gapless_new_slr")?(J=J.Sz,jhg(J.app,"gaplessshortslooprange"),R=new g.Kw(0,R,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(J=J.app.Us())&&J.addCueRange(R)):J.setLoopRange({startTimeMs:0,endTimeMs:R,type:"shortsLoop"}))}; VPn=function(J){if(!(g.h(J.BC.getPlayerState(),64)&&J.bS().isLivePlayback&&J.mD.startTimeMs<5E3)){if(J.mD.type==="repeatChapter"){var R,N=(R=M38(J.d3()))==null?void 0:R.Dy(),C;R=(C=J.getVideoData())==null?void 0:C.gs;N instanceof g.Ug&&R&&(C=R[Co(R,J.mD.startTimeMs)],N.renderChapterSeekingAnimation(0,C.title));isNaN(Number(J.mD.loopCount))?J.mD.loopCount=0:J.mD.loopCount++;J.mD.loopCount===1&&J.x8.z7("innertubeCommand",J.getVideoData().a$)}N={hL:"application_loopRangeStart"};if(J.mD.type==="clips"|| J.mD.type==="shortsLoop")N.seekSource=58;J.BC.seekTo(J.mD.startTimeMs*.001,N)}}; vTg=function(J,R){var N=J.x8.getAvailablePlaybackRates();R=Number(R.toFixed(2));J=N[0];N=N[N.length-1];R<=J?R=J:R>=N?R=N:(J=Math.floor(R*100+.001)%5,R=J===0?R:Math.floor((R-J*.01)*100+.001)/100);return R}; rrg=function(J,R){R=g.ih(J,R);if(!R)return 0;R=Ch(J,R);return Wa(J,Sc(R),R)}; Wa=function(J,R,N){if(J.W7(N)){N=N.getVideoData();if(S5(J))N=R;else{J=J.lS;for(var C=g.K(J.J),X=C.next();!X.done;X=C.next())if(X=X.value,N.B1===X.B1){R+=X.hE/1E3;break}C=R;J=g.K(J.J);for(X=J.next();!X.done;X=J.next()){X=X.value;if(N.B1===X.B1)break;var u=X.hE/1E3;if(u1&&(X=!1);if(!J.Kp||X!==R){N=N.lock(X?"portrait":"landscape");if(N!=null)N["catch"](function(){}); J.Kp=!0}}else J.Kp&&(J.Kp=!1,N.unlock())}; RE=function(J,R,N){J.x8.publish(R,N);var C=g.eG(J.KC)||g.eh(J.KC)||g.N3(J.KC);if(N&&C){switch(R){case "cuerangemarkersupdated":var X="onCueRangeMarkersUpdated";break;case "cuerangesadded":X="onCueRangesAdded";break;case "cuerangesremoved":X="onCueRangesRemoved"}X&&J.x8.z7(X,N.map(function(u){return{getId:function(){return this.id}, end:u.end,id:u.getId(),namespace:u.namespace==="ad"?"ad":"",start:u.start,style:u.style,visible:u.visible}}))}}; aE=function(J,R,N,C,X,u){N=N===void 0?!0:N;var f=g.ih(J,X);f&&(f.getPlayerType()===2&&!J.W7(f)||g.qn(f.getVideoData()))||(J.getPresentingPlayerType()===3?SM(J.VC).yZ("control_seek",R,N):(f===J.BC&&J.mD&&!YZ7(J,R)&&J.setLoopRange(null),J.seekTo(R,N,C,X,u)))}; Qhf=function(J,R,N,C){N&&(J.uQ(),oE(J));N=g.ih(J);N.us(new PD("staleconfig",{reason:R}));var X=J.getVideoData(),u={};u.video_id=X.videoId;u.adformat=X.adFormat;X.isLivePlayback?kz(X)&&g.PM(J.KC)&&(u.live_utc_start=N.Il(),u.resume="1"):(u.start=N.getCurrentTime(),u.resume="1");X.dn&&(u.vvt=X.dn);X.S&&(u.vss_credentials_token=X.S,u.vss_credentials_token_type=X.O2);X.oauthToken&&(u.oauth_token=X.oauthToken);X.Ze&&(u.force_gvi=X.Ze);u.autoplay=1;u.reload_count=X.ji+1;u.reload_reason=R;X.Ua&&(u.unplugged_partner_opt_out= X.Ua);X.wV&&(u.ypc_is_premiere_trailer=X.wV);X.playerParams&&(u.player_params=X.playerParams);J.loadVideoByPlayerVars(u,void 0,!0,void 0,void 0,C);R==="signature"&&J.HU&&OFQ(J)}; xIg=function(J,R){J.bS().autonavState=R;g.e0("yt-player-autonavstate",R);J.x8.publish("autonavchange",R)}; Jb8=function(J){var R=J.getVideoData().OV,N=J.KC.GW,C=J.isInline()&&!J.getVideoData().y_,X=J.mediaElement;R||N||C?X.zq():(X.oV(),kU(J,J.sL))}; IE=function(J){var R=Do(J.d3());R&&R.created&&(J.logger.debug("reset ad module"),R.destroy())}; S5=function(J){return J.getVideoData().enableServerStitchedDai&&!!J.HU}; oLQ=function(J,R){R.bounds=J.getBoundingClientRect();for(var N=g.K(["display","opacity","visibility","zIndex"]),C=N.next();!C.done;C=N.next())C=C.value,R[C]=sn(J,C);R.hidden=!!J.hidden}; tXn=function(J){if(J.webPlayerContextConfig){var R=J.webPlayerContextConfig.trustedJsUrl;return R?jW(R).toString():J.webPlayerContextConfig.jsUrl}return J.config.assets&&J.config.assets.js?J.config.assets.js:""}; Lh=function(J,R){if(J.T("html5_ssap_enable_api_timing_logging")&&g.vJ(J.bS())&&!J.fX.V){var N;(N=g.ih(J))==null||N.u3("ssap",{ptnu:R})}}; ReB=function(J){return J.name==="TypeError"&&J.stack.includes("/s/player/")&&xq()<=105}; NsE=function(J){return J.isTimeout?"NO_BID":"ERR_BID"}; CAE=function(){var J=null;N5Q().then(function(R){return J=R},function(R){return J=NsE(R)}); return J}; XoE=function(){var J=AB(1E3,"NO_BID");return Os(dHE([N5Q(),J]).vY(NsE),function(){J.cancel()})}; QV=function(J){return J.m7?g.xI(g.tf(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; nh=function(J){this.player=J;this.V=this.K=1}; fQB=function(J,R,N,C,X,u){R.client||(R.client={});J.player.N().T("h5_remove_url_for_get_ad_break")||(R.client.originalUrl=N);var f=EE(N),H=g.ez(N)?!1:!0;(f||H)&&typeof Intl!=="undefined"&&(R.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);H=g.ez(N)?!1:!0;if(f||H||C!==""){var k={};N=vR(n4(C)).split("&");var v=new Map;N.forEach(function(W){W=W.split("=");W.length>1&&v.set(W[0].toString(),decodeURIComponent(W[1].toString()))}); v.has("bid")&&(k.bid=v.get("bid"));k.params=[];ijQ.forEach(function(W){v.has(W)&&(W={key:W,value:v.get(W)},k.params.push(W))}); ufg(J,k);R.adSignalsInfo=k}R.client.unpluggedAppInfo||(R.client.unpluggedAppInfo={});R.client.unpluggedAppInfo.enableFilterMode=!1;N=X.K.cosver;N!=null&&N!=="cosver"&&(R.client.osVersion=N);N=X.K.cplatform;N!=null&&N!=="cplatform"&&N!==""&&(R.client.platform=N);N=X.K.cmodel;N!=null&&N!=="cmodel"&&(R.client.deviceModel=N);N=X.K.cplayer;N!=null&&N!=="cplayer"&&(R.client.playerType=N);N=X.K.cbrand;N!=null&&N!=="cbrand"&&(R.client.deviceMake=N);R.user||(R.user={});R.user.lockedSafetyMode=!1;(X.T("embeds_web_enable_iframe_api_send_full_embed_url")|| X.T("embeds_enable_autoplay_and_visibility_signals"))&&g.zn(X)&&tUB(R,u,J.player.getPlayerState(1))}; Hjk=function(J,R){var N=!1;if(R==="")return N;R.split(",").forEach(function(C){var X={},u={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},f="ACTIVE";C[0]==="!"&&(C=C.substring(1),f="INACTIVE");C=C.split("-");C.length<3||(C[0]in Ts2&&(u.clientName=Ts2[C[0]]),C[1]in $SQ&&(u.platform=$SQ[C[1]]),u.applicationState=f,u.clientVersion=C.length>2?C[2]:"",X.remoteClient=u,J.remoteContexts?J.remoteContexts.push(X):J.remoteContexts=[X],N=!0)}); return N}; vLB=function(J){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in kXg))return!1;J=J.split(RegExp("[:&]"));var R=kXg.FLAG_AUTO_CAPTIONS_DEFAULT_ON,N="f"+(1+Math.floor(R/31)).toString();R=1<=2?f[1]:"";var H=SwB.test(R),k=LsB.exec(R);k=k!=null&&k.length>=2?k[1]:"";var v=IQ7.exec(R);v=v!=null&&v.length>=2&&!Number.isNaN(Number(v[1]))?Number(v[1]):1;var W=FsB.exec(R);W=W!=null&&W.length>=2?W[1]:"0";var S=y_(J.player.N().tN),L=J.player.getVideoData(1),I=g.LL(L.VO,!0),F="BISCOTTI_ID"in N?N.BISCOTTI_ID:"";fQB(J,I,R,F.toString(),J.player.N(), L);L={splay:!1,lactMilliseconds:N.LACT.toString(),playerHeightPixels:Math.trunc(N.P_H),playerWidthPixels:Math.trunc(N.P_W),vis:Math.trunc(N.VIS),signatureTimestamp:20062,autonavState:QV(J.player.N())};C&&(C={},Hjk(C,N.YT_REMOTE)&&(L.mdxContext=C));if(C=ELB.includes(S)?void 0:g.y5("PREF")){for(var a=C.split(RegExp("[:&]")),n=0,B=a.length;n1&&Z[1].toUpperCase()==="TRUE"){I.user.lockedSafetyMode=!0;break}}L.autoCaptionsDefaultOn= vLB(C)}R=M6n.exec(R);(R=R!=null&&R.length>=2?R[1]:"")&&k&&(I.user.credentialTransferTokens=[{token:R,scope:"VIDEO"}]);R={contentPlaybackContext:L};f={adBlock:Math.trunc(N.AD_BLOCK),params:f,breakIndex:v,breakPositionMs:W,clientPlaybackNonce:N.CPN,topLevelDomain:S,isProxyAdTagRequest:H,context:I,adSignalsInfoString:vR(n4(F.toString())),overridePlaybackContext:R};X!==void 0&&(f.cueProcessedMs=Math.round(X).toString());k&&(f.videoId=k);N.LIVE_TARGETING_CONTEXT&&(f.liveTargetingParams=N.LIVE_TARGETING_CONTEXT); N.AD_BREAK_LENGTH&&(f.breakLengthMs=Math.trunc(N.AD_BREAK_LENGTH*1E3).toString());u&&(f.driftFromHeadMs=u.toString());f.currentMediaTimeMs=Math.round(J.player.getCurrentTime(1)*1E3);(J=J.player.getGetAdBreakContext())&&(f.getAdBreakContext=J);return f}; aQB=function(){nh.apply(this,arguments)}; QYg=function(J,R,N,C,X){var u=N.FX;var f=N.MP;var H=J.player.N().wm,k=0;N.cueProcessedMs&&f&&!u&&(N=f.end-f.start,N>0&&(k=Math.floor(N/1E3)));var v={AD_BLOCK:X,AD_BREAK_LENGTH:u?u.Ly:k,AUTONAV_STATE:QV(J.player.N()),CA_TYPE:"image",CPN:J.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:J.player.DX()*1E3,LACT:UK(),LIVE_INDEX:u?J.V++:1,LIVE_TARGETING_CONTEXT:u&&u.context?u.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:J.player.getVisibilityState(), P_H:J.player.jQ().V7().height,P_W:J.player.jQ().V7().width,YT_REMOTE:H?H.join(","):""},W=Q5(aS);Object.keys(W).forEach(function(S){W[S]!=null&&(v[S.toUpperCase()]=W[S].toString())}); C!==""&&(v.BISCOTTI_ID=C);C={};K4(R)&&(C.sts="20062",(J=J.player.N().forcedExperiments)&&(C.forced_experiments=J));return Fi(g.r5(R,v),C)}; nLk=function(J,R){var N=J.player.N(),C,X=(C=J.player.getVideoData(1))==null?void 0:C.oauthToken;return g.Wm(N,X).then(function(u){if(u&&MO()){var f=Ku();a1(f,u)}return g.Kn(J.player.AU(f),R,"/youtubei/v1/player/ad_break").then(function(H){return H})})}; DSP=function(J){this.AN=J}; sYn=function(J){this.G=J}; Bs2=function(J){this.AN=J}; ZjB=function(J){g.l.call(this);this.OL=J;this.HS=Ojk(this)}; Ojk=function(J){var R=new YKE(J.OL.NN);g.P(J,R);J=g.K([new DSP(J.OL.AN),new sYn(J.OL.G),new Bs2(J.OL.AN),new yA(J.OL.X_,J.OL.FZ),new b$,new JR(J.OL.Js,J.OL.YP,J.OL.AN),new G5,new hN]);for(var N=J.next();!N.done;N=J.next())rdY(R,N.value);J=g.K(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(N=J.next();!N.done;N=J.next())tN(R,N.value,function(){}); return R}; DE=function(J){var R=J.Y8,N=J.JN;J=J.FM;var C=new hD7,X={Wa:new djY(R.get(),N),JN:N};return{P3:new Ft(N,J,R,X),context:X,uv:C}}; sN=function(J,R,N,C,X){g.l.call(this);this.J=R;this.UB=N;this.Y8=C;this.XV=X;this.listeners=[];var u=new gJ(this);g.P(this,u);u.L(J,"internalAbandon",this.H0);this.addOnDisposeCallback(function(){g.pI(u)})}; Ba=function(J){this.G=J;this.adVideoId=this.K=this.videoId=this.adCpn=this.contentCpn=null;this.U=!0;this.J=this.V=!1;this.adFormat=null;this.Z="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; dS2=function(J){J.contentCpn=null;J.adCpn=null;J.videoId=null;J.adVideoId=null;J.adFormat=null;J.Z="AD_PLACEMENT_KIND_UNKNOWN";J.actionType="unknown_type";J.V=!1;J.J=!1}; qw2=function(J,R){J=g.K(R);for(R=J.next();!R.done;R=J.next())if((R=R.value.renderer)&&(R.instreamVideoAdRenderer||R.linearAdSequenceRenderer||R.sandwichedLinearAdRenderer||R.instreamSurveyAdRenderer)){vU("ad_i");g.WU({isMonetized:!0});break}}; AbB=function(J){var R;(R=J.G.getVideoData(1))!=null&&R.ma&&(J.J=!1,R={},J.K&&J.videoId&&(R.cttAuthInfo={token:J.K,videoId:J.videoId}),SV("video_to_ad",R))}; Sw=function(J){J.J=!1;var R={};J.K&&J.videoId&&(R.cttAuthInfo={token:J.K,videoId:J.videoId});SV("ad_to_video",R);YwP(J)}; YwP=function(J){if(J.V)if(J.Z==="AD_PLACEMENT_KIND_START"&&J.actionType==="video_to_ad")$M("video_to_ad");else{var R={adBreakType:wD(J.Z),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:J.videoStreamType};J.actionType==="ad_to_video"?(J.contentCpn&&(R.targetCpn=J.contentCpn),J.videoId&&(R.targetVideoId=J.videoId)):(J.adCpn&&(R.targetCpn=J.adCpn),J.adVideoId&&(R.targetVideoId=J.adVideoId));J.adFormat&&(R.adType=J.adFormat);J.contentCpn&& (R.clientPlaybackNonce=J.contentCpn);J.videoId&&(R.videoId=J.videoId);J.adCpn&&(R.adClientPlaybackNonce=J.adCpn);J.adVideoId&&(R.adVideoId=J.adVideoId);g.WU(R,J.actionType)}}; ON=function(J){g.l.call(this);this.G=J;this.K=new Map;this.J=new gJ(this);g.P(this,this.J);this.J.L(this.G,g.Q3("ad"),this.onCueRangeEnter,this);this.J.L(this.G,g.nw("ad"),this.onCueRangeExit,this)}; rbP=function(J,R,N,C,X){g.Kw.call(this,R,N,{id:J,namespace:"ad",priority:X,visible:C})}; ZE=function(J){this.G=J}; d_=function(J){this.G=J;g.di(this.G.N().experiments,"tv_pacf_logging_sample_rate")}; U4=function(J,R){R=R===void 0?!1:R;return J.G.N().T("html5_ssap_force_ads_ctmp")?!0:(R||J.G.N().Si())&&J.G.N().T("html5_ssap_pacf_qoe_ctmp")}; qa=function(J){var R,N;return(N=(R=J.G.getVideoData(1))==null?void 0:g.vJ(R))!=null?N:!1}; ki=function(J,R){return J.G.N().T(R)}; jY7=function(J){return J.G.N().T("substitute_ad_cpn_macro_in_ssdai")}; jN=function(J){var R,N,C;return((R=J.G.getVideoData(1).getPlayerResponse())==null?void 0:(N=R.playerConfig)==null?void 0:(C=N.daiConfig)==null?void 0:C.enableServerStitchedDai)||!1}; g3n=function(J){return J.G.N().T("html5_enable_vod_slar_with_notify_pacf")}; mSP=function(J){return J.G.N().T("html5_recognize_predict_start_cue_point")}; W3=function(J){return J.G.N().experiments.b3("enable_desktop_player_underlay")}; V6Y=function(J){return J.G.N().experiments.b3("html5_load_empty_player_in_media_break_sub_lra")}; C_=function(J){return J.G.N().experiments.b3("html5_load_ads_instead_of_cue")}; Xg=function(J){return J.G.N().experiments.b3("html5_preload_ads")}; kX=function(J){return J.G.N().experiments.b3("enable_ads_control_flow_deterministic_id_generation")}; gLg=function(J){return J.G.N().experiments.b3("enable_desktop_discovery_video_abandon_pings")||g.NL(J.G.N())&&J.G.N().experiments.b3("enable_lr_discovery_video_abandon_pings")}; USB=function(J){return J.G.N().experiments.b3("enable_progres_commands_lr_feeds")}; poP=function(J){switch(J){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; lQB=function(){g.al.call(this);var J=this;this.K={};this.addOnDisposeCallback(function(){for(var R=g.K(Object.keys(J.K)),N=R.next();!N.done;N=R.next())delete J.K[N.value]})}; A5=function(){if(PAg===null){PAg=new lQB;mZ(d5).J="b";var J=mZ(d5),R=Qh(J)=="h"||Qh(J)=="b",N=!(lt(),!1);R&&N&&(J.U=!0,J.S=new T2Y)}return PAg}; ze8=function(J,R,N){J.K[R]=N}; eeQ=function(J){switch(J){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; YU=function(J,R,N){this.UB=J;this.G=R;this.JN=N;this.J=new Set;this.K=new Map;A5().subscribe("adactiveviewmeasurable",this.Sg,this);A5().subscribe("adfullyviewableaudiblehalfdurationimpression",this.AB,this);A5().subscribe("adviewableimpression",this.TP,this);A5().subscribe("adaudioaudible",this.GP,this);A5().subscribe("adaudiomeasurable",this.Ps,this)}; j5=function(J,R,N){var C=N.n2,X=N.DP,u=N.listener,f=N.Gl;N=N.B4===void 0?!1:N.B4;if(J.K.has(R))d0("Unexpected registration of layout in LidarApi");else{if(f){if(J.J.has(f))return;J.J.add(f)}J.K.set(R,u);WZ(lt().iS,"fmd",1);EyE(mZ(d5),C);var H=N?R:void 0;ze8(A5(),R,{Ax:function(){if(!X)return{};var k=J.G.getPresentingPlayerType(!0),v;return(v=J.G.getVideoData(k))!=null&&v.isAd()?{currentTime:J.UB.get().getCurrentTimeSec(k,!1,H),duration:X,isPlaying:r_(J.UB.get(),k).isPlaying(),isVpaid:!1,isYouTube:!0, volume:J.UB.get().isMuted()?0:J.UB.get().getVolume()/100}:{}}})}}; mH=function(J,R){J.K.has(R)?(J.K.delete(R),delete A5().K[R]):d0("Unexpected unregistration of layout in LidarApi")}; woY=function(J,R){if(J.G.isLifaAdPlaying()){var N=J.G.hU(!0,!0);J.vn(R,N.width*.5*1.1,N.height*.25*1.1,N.width*.5*.9,N.height*.5*.9)}}; ybf=function(J,R,N){var C={};cbg(J,C,R,N);heQ(C);C.LACT=VV(function(){return UK().toString()}); C.VIS=VV(function(){return J.getVisibilityState().toString()}); C.SDKV="h.3.0";C.VOL=VV(function(){return J.isMuted()?"0":Math.round(J.getVolume()).toString()}); C.VED="";return C}; GXn=function(J,R){var N={};if(R)return N;if(!J.kind)return g.yD(Error("AdPlacementConfig without kind")),N;if(J.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||J.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!J.adTimeOffset||!J.adTimeOffset.offsetStartMilliseconds)return g.yD(Error("malformed AdPlacementConfig")),N;N.MIDROLL_POS=VV(LC(Math.round(fK(J.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else N.MIDROLL_POS=VV(LC("0"));return N}; VV=function(J){return{toString:function(){return J()}}}; bjY=function(J,R,N){function C(H,k){(k=N[k])&&(u[H]=k)} function X(H,k){(k=N[k])&&(u[H]=f(k))} if(!N||g.rq(N))return J;var u=Object.assign({},J),f=R?encodeURIComponent:function(H){return H}; X("DV_VIEWABILITY","doubleVerifyViewability");X("IAS_VIEWABILITY","integralAdsViewability");X("MOAT_INIT","moatInit");X("MOAT_VIEWABILITY","moatViewability");C("GOOGLE_VIEWABILITY","googleViewability");C("VIEWABILITY","viewability");return u}; cbg=function(J,R,N,C){R.CPN=VV(function(){var X;(X=J.getVideoData(1))?X=X.clientPlaybackNonce:(g.G$(Error("Video data is null.")),X=null);return X}); R.AD_MT=VV(function(){if(C!=null)var X=C;else{var u=N;J.N().T("html5_ssap_use_cpn_to_get_time")||(u=void 0);if(J.N().T("enable_h5_shorts_ad_fill_ad_mt_macro")||J.N().T("enable_desktop_discovery_pings_ad_mt_macro")||g.NL(J.N())&&J.N().T("enable_lr_discovery_pings_ad_mt_macro")){var f=J.getPresentingPlayerType(!0),H;X=((H=J.getVideoData(f))==null?0:H.isAd())?t6Q(J,f,u):0}else X=t6Q(J,2,u)}return Math.round(Math.max(0,X*1E3)).toString()}); R.MT=VV(function(){return Math.round(Math.max(0,J.getCurrentTime(1,!1)*1E3)).toString()}); R.P_H=VV(function(){return J.jQ().V7().height.toString()}); R.P_W=VV(function(){return J.jQ().V7().width.toString()}); R.PV_H=VV(function(){return J.jQ().getVideoContentRect().height.toString()}); R.PV_W=VV(function(){return J.jQ().getVideoContentRect().width.toString()})}; heQ=function(J){J.CONN=VV(LC("0"));J.WT=VV(function(){return Date.now().toString()})}; t6Q=function(J,R,N){return N!==void 0?J.getCurrentTime(R,!1,N):J.getCurrentTime(R,!1)}; xSn=function(){}; JWP=function(J,R,N,C,X){var u,f,H,k,v,W,S,L,I,F,a,n,B;g.Y(function(Z){switch(Z.K){case 1:u=!!R.scrubReferrer;f=g.r5(R.baseUrl,bjY(N,u,C));H={};if(!R.headers){Z.ZM(2);break}k=J.Z();if(!k.K){v=k.getValue();Z.ZM(3);break}return g.q(Z,k.K,4);case 4:v=Z.J;case 3:W=v;S=g.K(R.headers);for(L=S.next();!L.done;L=S.next())switch(I=L.value,I.headerType){case "VISITOR_ID":g.iL("VISITOR_DATA")&&(H["X-Goog-Visitor-Id"]=g.iL("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.iL("EOM_VISITOR_DATA")&&(H["X-Goog-EOM-Visitor-Id"]= g.iL("EOM_VISITOR_DATA"));break;case "USER_AUTH":W&&(H.Authorization="Bearer "+W);break;case "PLUS_PAGE_ID":(F=J.U())&&(H["X-Goog-PageId"]=F);break;case "AUTH_USER":a=J.K();!W&&a&&(H["X-Goog-AuthUser"]=a);break;case "DATASYNC_ID":if(n=void 0,(n=J.V())==null?0:n.b3("enable_datasync_id_header_in_web_vss_pings"))B=J.J(),EE(f)&&g.iL("LOGGED_IN")&&B&&(H["X-YouTube-DataSync-Id"]=B)}"X-Goog-EOM-Visitor-Id"in H&&"X-Goog-Visitor-Id"in H&&delete H["X-Goog-Visitor-Id"];case 2:g.C5(f,void 0,u,Object.keys(H).length!== 0?H:void 0,"",!0,X),g.IQ(Z)}})}; okE=function(J,R,N,C,X){this.Z=J;this.U=R;this.K=N;this.J=C;this.V=X}; Rnk=function(J,R){this.K=J;this.JN=R}; g_=function(J,R,N,C,X,u,f){var H=H===void 0?new okE(function(){var k=J.N(),v=J.getVideoData(1);return g.Wm(k,v?g.PJ(v):"")},function(){return J.N().pageId},function(){return J.N().ma},function(){var k; return(k=J.N().datasyncId)!=null?k:""},function(){return J.N().experiments}):H; this.G=J;this.J=R;this.v3=N;this.Y8=C;this.P3=X;this.JN=u;this.uv=f;this.Z=H;this.Iq=null;this.K=new Map;this.V=new Rnk(H,this.JN)}; C27=function(J,R,N,C,X){var u=eN(J.J.get(),N);u?(N=cT(J,NuQ(u),u,void 0,void 0,C),R.hasOwnProperty("baseUrl")?J.Z.send(R,N):J.V.send(R,N,{},X)):d0("Trying to ping from an unknown layout",void 0,void 0,{layoutId:N})}; guQ=function(J,R,N,C,X,u){C=C===void 0?[]:C;var f=eN(J.J.get(),R);if(f){var H=J.v3.get().dX(R,N),k=cT(J,NuQ(f),f,X,u);C.forEach(function(v,W){v.baseUrl&&(J.V.send(v.baseUrl,k,H,v.attributionSrcMode),v.serializedAdPingMetadata&&J.P3.RX("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,f,new Ea2(v,W),void 0,void 0,f.adLayoutLoggingData))})}else d0("Trying to track from an unknown layout.",void 0,void 0,{layoutId:R, trackingType:N})}; U_=function(J,R){J.G.sendVideoStatsEngageEvent(R,void 0,2)}; QW=function(J,R){g.Mz("adsClientStateChange",R)}; XNk=function(J,R){J.K.has(R.Bt())?d0("Trying to register an existing AdErrorInfoSupplier."):J.K.set(R.Bt(),R)}; ii8=function(J,R){J.K.delete(R.Bt())||d0("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; s8=function(J,R,N){typeof N==="string"?J.G.getVideoData(1).yE(R,N):J.G.getVideoData(1).u3(R,N)}; NuQ=function(J){var R=QX(J.clientMetadata,"metadata_type_ad_placement_config");J=QX(J.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:R,BB:J}}; cT=function(J,R,N,C,X,u){var f=N?uJY(J):{},H=N?f0g(J,N.layoutId):{},k=Tu7(J),v,W=X!=null?X:(v=ls(J.Y8.get(),2))==null?void 0:v.clientPlaybackNonce;J.G.N().T("enable_player_logging_lr_home_infeed_ads")&&!W&&(W=ls(J.Y8.get(),1).clientPlaybackNonce);X=void 0;if(N){var S;if((S=J.uv.K.get(N.layoutId))==null?0:S.B4)X=N.layoutId}S={};J=Object.assign({},ybf(J.G,X,C),GXn(R.adPlacementConfig,(N==null?void 0:N.renderingContent)!==void 0),H,f,k,(S.FINAL=VV(function(){return"1"}),S.AD_CPN=VV(function(){return W|| ""}),S)); (N==null?void 0:N.renderingContent)!==void 0||(J.SLOT_POS=VV(function(){return(R.BB||0).toString()})); N={};u=Object.assign({},J,u);J=g.K(Object.values($p8));for(C=J.next();!C.done;C=J.next())C=C.value,f=u[C],f!=null&&f.toString()!=null&&(N[C]=f.toString());return N}; uJY=function(J){var R={},N,C=(N=J.Iq)==null?void 0:N.Ul/1E3;C!=null&&(R.SURVEY_ELAPSED_MS=VV(function(){return Math.round(C*1E3).toString()})); R.SURVEY_LOCAL_TIME_EPOCH_S=VV(function(){return Math.round(Date.now()/1E3).toString()}); return R}; f0g=function(J,R){J=J.K.get(R);if(!J)return{};J=J.mO();if(!J)return{};R={};return R.YT_ERROR_CODE=J.p_.toString(),R.ERRORCODE=J.rD.toString(),R.ERROR_MSG=J.errorMessage,R}; Tu7=function(J){var R={},N=J.G.getVideoData(1);R.ASR=VV(function(){var C;return(C=N==null?void 0:N.S4)!=null?C:null}); R.EI=VV(function(){var C;return(C=N==null?void 0:N.eventId)!=null?C:null}); return R}; UN=function(J,R,N){g.l.call(this);this.G=J;this.Dq=R;this.JN=N;this.listeners=[];this.wF=null;this.L6=new Map;R=new g.tY(this);g.P(this,R);R.L(J,"videodatachange",this.hdM);R.L(J,"serverstitchedvideochange",this.vin);this.JF=ls(this)}; ls=function(J,R){var N=J.G.getVideoData(R);return N?J.YW(N,R||J.G.getPresentingPlayerType(!0)):null}; Hif=function(J,R,N){var C=J.YW(R,N);J.JF=C;J.listeners.forEach(function(X){X.bV(C)})}; kI2=function(J){switch(J){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; ph=function(J,R,N){g.l.call(this);this.G=J;this.Y8=R;this.JN=N;this.listeners=[];this.P6=[];this.K=function(){d0("Called 'doUnlockPreroll' before it's initialized.")}; R=new gJ(this);N=new g.tY(this);g.P(this,N);g.P(this,R);R.L(J,"progresssync",this.ho7);R.L(J,"presentingplayerstatechange",this.CSO);R.L(J,"fullscreentoggled",this.onFullscreenToggled);R.L(J,"onVolumeChange",this.onVolumeChange);R.L(J,"minimized",this.YB);R.L(J,"overlayvisibilitychange",this.El);R.L(J,"shortsadswipe",this.k5);R.L(J,"resize",this.NR);N.L(J,g.Q3("appad"),this.jP)}; lg=function(J){qa(J.JN.get())||J.K()}; vkf=function(J,R){J.P6=J.P6.filter(function(N){return N!==R})}; Pa=function(J,R,N){return J.getCurrentTimeSec(R,N)}; Wig=function(J,R){var N;R=(N=J.Y8.get().L6.get(R))!=null?N:null;if(R===null)return d0("Expected ad video start time on playback timeline"),0;J=J.G.getCurrentTime(2,!0);return J0){var u=R.end.toString();X.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&f.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&f.adTimeOffset&&f.adTimeOffset.offsetEndMilliseconds==="-1"&&f.adTimeOffset.offsetEndMilliseconds!==u&&(f.adTimeOffset.offsetEndMilliseconds=u)}); C.map(function(f){return g.z(f,Ja)}).forEach(function(f){var H; (f=f==null?void 0:(H=f.slotEntryTrigger)==null?void 0:H.mediaTimeRangeTrigger)&&f.offsetEndMilliseconds==="-1"&&(f.offsetEndMilliseconds=u)})}return{N5:X, adSlots:C,U1:!1,ssdaiAdsConfig:J.ssdaiAdsConfig}}; h5=function(J){g.l.call(this);this.G=J;this.listeners=[];this.K=new gJ(this);g.P(this,this.K);this.K.L(this.G,"aduxclicked",this.onAdUxClicked);this.K.L(this.G,"aduxmouseover",this.MW);this.K.L(this.G,"aduxmouseout",this.xO);this.K.L(this.G,"muteadaccepted",this.FD7)}; Ek2=function(J,R,N){R=g.Yy(R,function(C){return new uUP(C,N,C.id)}); J.G.z7("onAdUxUpdate",R)}; yV=function(J,R){J=g.K(J.listeners);for(var N=J.next();!N.done;N=J.next())R(N.value)}; Gb=function(J,R){this.J=J;this.V=R===void 0?!1:R;this.K={}}; MSg=function(J,R){var N=J.startSecs+J.Ly;N=N<=0?null:N;if(N===null)return null;switch(J.event){case "start":case "continue":case "stop":break;case "predictStart":if(R)break;return null;default:return null}R=Math.max(J.startSecs,0);return{qo:new j_(R,N),kz:new xK(R,N-R,J.context,J.identifier,J.event,J.K)}}; KiE=function(){this.K=[]}; Va8=function(J,R,N){var C=g.N_(J.K,R);if(C>=0)return R;R=-C-1;return R>=J.K.length||J.K[R]>N?null:J.K[R]}; bg=function(J,R,N){g.l.call(this);this.G=J;this.JN=R;this.AN=N;this.listeners=[];this.Z=!1;this.Gh=[];this.J=null;this.U=new Gb(this,mSP(R.get()));this.V=new KiE;this.K=null}; a0f=function(J,R){J.Gh.push(R);for(var N=!1,C=g.K(J.listeners),X=C.next();!X.done;X=C.next())N=X.value.n7(R)||N;J.Z=N}; nkY=function(J,R){QW(J.AN.get(),{cuepointTrigger:{event:Qxg(R.event),cuepointId:R.identifier,totalCueDurationMs:R.Ly*1E3,playheadTimeMs:R.K,cueStartTimeMs:R.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:J.G.getVideoData(1).clientPlaybackNonce}})}; Qxg=function(J){switch(J){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return xN(J,"Unexpected cuepoint event")}}; t5=function(J){this.G=J}; DpE=function(J,R){J.G.cueVideoByPlayerVars(R,2)}; xU=function(J){this.G=J}; JE=function(J){this.G=J}; sxY=function(J){switch(J){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:xN(J,"unknown transitionReason")}}; BuE=function(J){this.G=J}; Oi8=function(J,R,N,C,X){g.l.call(this);var u=this,f=X7(function(){return new HA(u.JN)}); g.P(this,f);var H=X7(function(){return new vA(f,u.JN)}); g.P(this,H);var k=X7(function(){return new P3}); g.P(this,k);var v=X7(function(){return new pc(J)}); g.P(this,v);var W=X7(function(){return new WA(f,H,u.JN)}); g.P(this,W);var S=X7(function(){return new Eu}); g.P(this,S);this.W3=X7(function(){return new h5(R)}); g.P(this,this.W3);this.I1=X7(function(){return new u1(X)}); g.P(this,this.I1);this.qN=X7(function(){return new Ba(R)}); g.P(this,this.qN);this.TA=X7(function(){return new ON(R)}); g.P(this,this.TA);this.Es=X7(function(){return new t5(R)}); g.P(this,this.Es);this.NN=X7(function(){return new ZE(R)}); g.P(this,this.NN);this.JN=X7(function(){return new d_(R)}); g.P(this,this.JN);var L=X7(function(){return new ca(C)}); g.P(this,L);var I=X7(function(){return new qb(u.JN)}); g.P(this,I);this.Hw=X7(function(){return new xU(R)}); g.P(this,this.Hw);this.nV=X7(function(){return new $i}); g.P(this,this.nV);this.Y8=X7(function(){return new UN(R,S,u.JN)}); g.P(this,this.Y8);var F=DE({Y8:this.Y8,JN:this.JN,FM:I}),a=F.context,n=F.uv;this.P3=F.P3;this.XV=X7(function(){return new bg(R,u.JN,u.AN)}); g.P(this,this.XV);this.v1=X7(function(){return new JE(R)}); g.P(this,this.v1);this.UB=X7(function(){return new ph(R,u.Y8,u.JN)}); g.P(this,this.UB);F=X7(function(){return new qM(f,W,H,u.JN,I,"SLOT_TYPE_ABOVE_FEED",u.UB,u.Y6,u.Di)}); g.P(this,F);this.H7=X7(function(){return new HT(u.JN)}); this.v3=X7(function(){return new YU(u.UB,R,u.JN)}); g.P(this,this.v3);this.AN=X7(function(){return new g_(R,k,u.v3,u.Y8,u.P3,u.JN,n)}); g.P(this,this.AN);this.Wd=new gU(Vf,oO,function(Z,A,V,p){return v3(H.get(),Z,A,V,p)},v,W,H,I,this.JN,this.Y8); g.P(this,this.Wd);this.Za=new UD(v,F,N,this.JN,J,this.Y8,this.UB,this.qN);g.P(this,this.Za);var B=new sN(R,this.Za,this.UB,this.Y8,this.XV);this.rL=X7(function(){return B}); this.xk=B;this.Y6=new rU(v,W,this.rL,this.XV,this.UB,this.JN,this.AN,this.v1);g.P(this,this.Y6);this.oT=new ld(v,W,this.TA,this.rL,a);g.P(this,this.oT);this.Gd=new xx(this.JN,v,W,F,this.Y8,this.oT,N);g.P(this,this.Gd);this.Gg=X7(function(){return new dN(L,H,I,u.JN,u.AN,u.UB,u.v1)}); g.P(this,this.Gg);this.V0=X7(function(){return new q5}); g.P(this,this.V0);this.Ut=new Ga(J,this.W3,this.JN);g.P(this,this.Ut);this.LP=new bd(J);g.P(this,this.LP);this.RA=new ta(J);g.P(this,this.RA);this.Et=new JS(J,this.rL,a);g.P(this,this.Et);this.XM=new oA(J,this.TA,this.UB,this.Y8,a);g.P(this,this.XM);this.FF=new RA(J,this.Y8);g.P(this,this.FF);this.Di=new Xt(J,this.XV,this.UB,this.AN,this.rL);g.P(this,this.Di);this.Q0=new NN(J);g.P(this,this.Q0);this.Td=new $X(J);g.P(this,this.Td);this.E7=new Cf(J);g.P(this,this.E7);this.Vl=new Tw(J);g.P(this,this.Vl); this.Td=new $X(J);g.P(this,this.Td);this.mL=X7(function(){return new wU}); g.P(this,this.mL);this.ws=X7(function(){return new c3(u.UB)}); g.P(this,this.ws);this.WP=X7(function(){return new XdE(u.W3,u.AN,J,k,u.v3)}); g.P(this,this.WP);this.CT=X7(function(){return new Sy(u.Gd,v,f)}); g.P(this,this.CT);this.lQ=X7(function(){return new FW(u.JN,u.AN,u.Q0,u.v3)}); g.P(this,this.lQ);this.k6=X7(function(){return new rT(J,u.Td,u.Q0,u.Y8,u.v1,u.UB,u.AN,S,u.XV,u.v3,u.H7,u.Es,u.TA,u.qN,u.NN,u.I1,u.Hw,u.JN,k,a,n)}); g.P(this,this.k6);this.DZ=X7(function(){return new M72(u.UB,u.AN,u.I1,u.JN,u.v3)}); g.P(this,this.DZ);this.z9=X7(function(){return new f4E(u.W3,u.UB,u.AN,k,u.v3,u.RA,u.Vl,u.I1,u.JN,N)}); g.P(this,this.z9);this.Ip=X7(function(){return new i7Q(u.W3,u.AN,k)}); g.P(this,this.Ip);this.YK=new w_(J,this.nV,f);g.P(this,this.YK);this.bu={I4:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Gd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Y6],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Wd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Za],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oT]]),P$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Gg],["SLOT_TYPE_ABOVE_FEED",this.V0],["SLOT_TYPE_FORECASTING",this.V0], ["SLOT_TYPE_IN_PLAYER",this.V0],["SLOT_TYPE_PLAYER_BYTES",this.V0],["SLOT_TYPE_PLAYER_UNDERLAY",this.V0],["SLOT_TYPE_PLAYBACK_TRACKING",this.V0],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.V0]]),g4:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ut],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Ut],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.LP],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.LP],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.LP],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.LP],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.LP],["TRIGGER_TYPE_SLOT_ID_EXITED",this.LP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.LP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.LP],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.LP],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.LP],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.LP],["TRIGGER_TYPE_CLOSE_REQUESTED",this.RA],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Et],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.XM],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.XM],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.XM],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.XM],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.XM],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.XM],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.XM],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.FF],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.FF],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Q0],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Et],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.E7],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Vl],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Td],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Di],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Di],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Di],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Di],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Di]]),ES:new Map([["SLOT_TYPE_ABOVE_FEED",this.mL], ["SLOT_TYPE_AD_BREAK_REQUEST",this.mL],["SLOT_TYPE_FORECASTING",this.mL],["SLOT_TYPE_IN_PLAYER",this.mL],["SLOT_TYPE_PLAYER_BYTES",this.ws],["SLOT_TYPE_PLAYER_UNDERLAY",this.mL],["SLOT_TYPE_PLAYBACK_TRACKING",this.mL],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.mL]]),R7:new Map([["SLOT_TYPE_ABOVE_FEED",this.WP],["SLOT_TYPE_AD_BREAK_REQUEST",this.CT],["SLOT_TYPE_FORECASTING",this.lQ],["SLOT_TYPE_PLAYER_BYTES",this.k6],["SLOT_TYPE_PLAYBACK_TRACKING",this.DZ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.DZ],["SLOT_TYPE_IN_PLAYER",this.z9],["SLOT_TYPE_PLAYER_UNDERLAY",this.Ip]])};this.listeners=[k.get()];this.Hy={Gd:this.Gd,YP:this.JN.get(),yO:this.I1.get(),PN:this.UB.get(),Za:this.Za,yA:f.get(),i6:this.nV.get(),FZ:this.Ut,X_:k.get(),Js:this.Y8.get()}}; Zi8=function(J,R,N,C,X){g.l.call(this);var u=this,f=X7(function(){return new HA(u.JN)}); g.P(this,f);var H=X7(function(){return new vA(f,u.JN)}); g.P(this,H);var k=X7(function(){return new P3}); g.P(this,k);var v=X7(function(){return new pc(J)}); g.P(this,v);var W=X7(function(){return new WA(f,H,u.JN)}); g.P(this,W);var S=X7(function(){return new Eu}); g.P(this,S);this.W3=X7(function(){return new h5(R)}); g.P(this,this.W3);this.I1=X7(function(){return new u1(X)}); g.P(this,this.I1);this.qN=X7(function(){return new Ba(R)}); g.P(this,this.qN);this.TA=X7(function(){return new ON(R)}); g.P(this,this.TA);this.Es=X7(function(){return new t5(R)}); g.P(this,this.Es);this.NN=X7(function(){return new ZE(R)}); g.P(this,this.NN);this.JN=X7(function(){return new d_(R)}); g.P(this,this.JN);var L=X7(function(){return new ca(C)}); g.P(this,L);var I=X7(function(){return new qb(u.JN)}); g.P(this,I);var F=X7(function(){return new qM(f,W,H,u.JN,I,null,null,u.Y6,u.Di)}); g.P(this,F);this.Hw=X7(function(){return new xU(R)}); g.P(this,this.Hw);this.nV=X7(function(){return new $i}); g.P(this,this.nV);this.Y8=X7(function(){return new UN(R,S,u.JN)}); g.P(this,this.Y8);var a=DE({Y8:this.Y8,JN:this.JN,FM:I}),n=a.context,B=a.uv;this.P3=a.P3;this.XV=X7(function(){return new bg(R,u.JN,u.AN)}); this.UB=X7(function(){return new ph(R,u.Y8,u.JN)}); g.P(this,this.UB);this.v3=X7(function(){return new YU(u.UB,R,u.JN)}); g.P(this,this.v3);this.AN=X7(function(){return new g_(R,k,u.v3,u.Y8,u.P3,u.JN,B)}); g.P(this,this.AN);this.H7=X7(function(){return new HT(u.JN)}); g.P(this,this.H7);this.Wd=new gU(Vf,oO,function(A,V,p,b){return v3(H.get(),A,V,p,b)},v,W,H,I,this.JN,this.Y8); g.P(this,this.Wd);this.Za=new UD(v,F,N,this.JN,J,this.Y8,this.UB,this.qN);g.P(this,this.Za);var Z=new sN(R,this.Za,this.UB,this.Y8,this.XV);this.rL=X7(function(){return Z}); this.xk=Z;this.Y6=new rU(v,W,this.rL,this.XV,this.UB,this.JN,this.AN);g.P(this,this.Y6);this.oT=new ld(v,W,this.TA,this.rL,n);g.P(this,this.oT);this.Gd=new xx(this.JN,v,W,F,this.Y8,this.oT,N);g.P(this,this.Gd);this.Gg=X7(function(){return new dN(L,H,I,u.JN,u.AN,u.UB)}); g.P(this,this.Gg);this.V0=X7(function(){return new q5}); g.P(this,this.V0);this.Ut=new Ga(J,this.W3,this.JN);g.P(this,this.Ut);this.LP=new bd(J);g.P(this,this.LP);this.RA=new ta(J);g.P(this,this.RA);this.Et=new JS(J,this.rL,n);g.P(this,this.Et);this.XM=new oA(J,this.TA,this.UB,this.Y8,n);g.P(this,this.XM);this.Q0=new NN(J);g.P(this,this.Q0);this.E7=new Cf(J);g.P(this,this.E7);this.Vl=new Tw(J);g.P(this,this.Vl);this.v1=X7(function(){return new JE(R)}); g.P(this,this.v1);this.Td=new $X(J);g.P(this,this.Td);this.Di=new Xt(J,this.XV,this.UB,this.AN,this.rL);g.P(this,this.Di);this.mL=X7(function(){return new wU}); g.P(this,this.mL);this.ws=X7(function(){return new c3(u.UB)}); g.P(this,this.ws);this.CT=X7(function(){return new Sy(u.Gd,v,f)}); g.P(this,this.CT);this.lQ=X7(function(){return new FW(u.JN,u.AN,u.Q0,u.v3)}); g.P(this,this.lQ);this.z9=X7(function(){return new Tx2(u.W3,u.UB,u.AN,k,u.v3,u.RA,u.Vl,u.I1,u.JN,N)}); g.P(this,this.z9);this.k6=X7(function(){return new jw(J,u.Td,u.Q0,u.AN,u.v3,u.H7,u.Es,u.Y8,u.UB,u.TA,u.qN,u.NN,u.I1,u.Hw,u.JN,u.v1,n,B)}); g.P(this,this.k6);this.YK=new w_(J,this.nV,f);g.P(this,this.YK);this.bu={I4:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Gd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Y6],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Wd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Za],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oT]]),P$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Gg],["SLOT_TYPE_FORECASTING",this.V0],["SLOT_TYPE_IN_PLAYER",this.V0], ["SLOT_TYPE_PLAYER_BYTES",this.V0]]),g4:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ut],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.LP],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.LP],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.LP],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.LP],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.LP],["TRIGGER_TYPE_SLOT_ID_EXITED",this.LP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.LP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.LP],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.LP], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.LP],["TRIGGER_TYPE_CLOSE_REQUESTED",this.RA],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Et],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.XM],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.XM],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.XM],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Q0],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Et],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.E7],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.Vl],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Td],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Di],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Di],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Di],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Di],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Di]]),ES:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.mL],["SLOT_TYPE_FORECASTING",this.mL],["SLOT_TYPE_IN_PLAYER",this.mL],["SLOT_TYPE_PLAYER_BYTES",this.ws]]), R7:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.CT],["SLOT_TYPE_FORECASTING",this.lQ],["SLOT_TYPE_IN_PLAYER",this.z9],["SLOT_TYPE_PLAYER_BYTES",this.k6]])};this.listeners=[k.get()];this.Hy={Gd:this.Gd,YP:this.JN.get(),yO:this.I1.get(),PN:this.UB.get(),Za:this.Za,yA:f.get(),i6:this.nV.get(),FZ:this.Ut,X_:k.get(),Js:this.Y8.get()}}; dpE=function(J,R,N,C,X){g.l.call(this);var u=this,f=X7(function(){return new HA(u.JN)}); g.P(this,f);var H=X7(function(){return new vA(f,u.JN)}); g.P(this,H);var k=X7(function(){return new P3}); g.P(this,k);var v=X7(function(){return new pc(J)}); g.P(this,v);var W=X7(function(){return new WA(f,H,u.JN)}); g.P(this,W);var S=X7(function(){return new Eu}); g.P(this,S);this.W3=X7(function(){return new h5(R)}); g.P(this,this.W3);this.I1=X7(function(){return new u1(X)}); g.P(this,this.I1);this.qN=X7(function(){return new Ba(R)}); g.P(this,this.qN);this.TA=X7(function(){return new ON(R)}); g.P(this,this.TA);this.Es=X7(function(){return new t5(R)}); g.P(this,this.Es);this.NN=X7(function(){return new ZE(R)}); g.P(this,this.NN);this.JN=X7(function(){return new d_(R)}); g.P(this,this.JN);var L=X7(function(){return new ca(C)}); g.P(this,L);var I=X7(function(){return new qb(u.JN)}); g.P(this,I);var F=X7(function(){return new qM(f,W,H,u.JN,I,null,null,null,null)}); g.P(this,F);this.Hw=X7(function(){return new xU(R)}); g.P(this,this.Hw);this.Y8=X7(function(){return new UN(R,S,u.JN)}); g.P(this,this.Y8);var a=DE({Y8:this.Y8,JN:this.JN,FM:I}),n=a.context,B=a.uv;this.P3=a.P3;this.UB=X7(function(){return new ph(R,u.Y8,u.JN)}); g.P(this,this.UB);this.v3=X7(function(){return new YU(u.UB,R,u.JN)}); g.P(this,this.v3);this.AN=X7(function(){return new g_(R,k,u.v3,u.Y8,u.P3,u.JN,B)}); g.P(this,this.AN);this.H7=X7(function(){return new HT(u.JN)}); g.P(this,this.H7);this.Wd=new gU(Vf,oO,function(A,V,p,b){return v3(H.get(),A,V,p,b)},v,W,H,I,this.JN,this.Y8); g.P(this,this.Wd);this.Za=new UD(v,F,N,this.JN,J,this.Y8,this.UB,this.qN);g.P(this,this.Za);var Z=new sN(R,this.Za,this.UB,this.Y8);this.rL=X7(function(){return Z}); this.xk=Z;this.oT=new ld(v,W,this.TA,this.rL,n);g.P(this,this.oT);this.Gd=new xx(this.JN,v,W,F,this.Y8,this.oT,N);g.P(this,this.Gd);this.Gg=X7(function(){return new dN(L,H,I,u.JN,u.AN,u.UB)}); g.P(this,this.Gg);this.V0=X7(function(){return new q5}); g.P(this,this.V0);this.Ut=new Ga(J,this.W3,this.JN);g.P(this,this.Ut);this.LP=new bd(J);g.P(this,this.LP);this.Et=new JS(J,this.rL,n);g.P(this,this.Et);this.XM=new oA(J,this.TA,this.UB,this.Y8,n);g.P(this,this.XM);this.Q0=new NN(J);g.P(this,this.Q0);this.E7=new Cf(J);g.P(this,this.E7);this.v1=X7(function(){return new JE(R)}); g.P(this,this.v1);this.Td=new $X(J);g.P(this,this.Td);this.mL=X7(function(){return new wU}); g.P(this,this.mL);this.ws=X7(function(){return new c3(u.UB)}); g.P(this,this.ws);this.CT=X7(function(){return new Sy(u.Gd,v,f)}); g.P(this,this.CT);this.lQ=X7(function(){return new FW(u.JN,u.AN,u.Q0,u.v3)}); g.P(this,this.lQ);this.cg=X7(function(){return new Fag(u.W3,u.UB,u.AN,k,N,u.JN)}); g.P(this,this.cg);this.k6=X7(function(){return new jw(J,u.Td,u.Q0,u.AN,u.v3,u.H7,u.Es,u.Y8,u.UB,u.TA,u.qN,u.NN,u.I1,u.Hw,u.JN,u.v1,n,B)}); g.P(this,this.k6);this.bu={I4:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Gd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Wd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Za],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oT]]),P$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Gg],["SLOT_TYPE_FORECASTING",this.V0],["SLOT_TYPE_IN_PLAYER",this.V0],["SLOT_TYPE_PLAYER_BYTES",this.V0]]),g4:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ut],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.LP],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.LP],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.LP],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.LP],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.LP],["TRIGGER_TYPE_SLOT_ID_EXITED",this.LP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.LP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.LP],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.LP],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Et],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.XM],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.XM],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Q0],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Et],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.E7],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Td]]),ES:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.mL],["SLOT_TYPE_ABOVE_FEED",this.mL],["SLOT_TYPE_FORECASTING",this.mL],["SLOT_TYPE_IN_PLAYER",this.mL],["SLOT_TYPE_PLAYER_BYTES",this.ws]]),R7:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.CT],["SLOT_TYPE_FORECASTING",this.lQ],["SLOT_TYPE_IN_PLAYER", this.cg],["SLOT_TYPE_PLAYER_BYTES",this.k6]])};this.listeners=[k.get()];this.Hy={Gd:this.Gd,YP:this.JN.get(),yO:this.I1.get(),PN:this.UB.get(),Za:this.Za,yA:f.get(),i6:null,FZ:this.Ut,X_:k.get(),Js:this.Y8.get()}}; qBk=function(J,R,N,C,X){g.l.call(this);var u=this,f=X7(function(){return new HA(u.JN)}); g.P(this,f);var H=X7(function(){return new vA(f,u.JN)}); g.P(this,H);var k=X7(function(){return new P3}); g.P(this,k);var v=X7(function(){return new pc(J)}); g.P(this,v);var W=X7(function(){return new WA(f,H,u.JN)}); g.P(this,W);var S=X7(function(){return new Eu}); g.P(this,S);this.Ch=X7(function(){return new BuE(R)}); g.P(this,this.Ch);this.W3=X7(function(){return new h5(R)}); g.P(this,this.W3);this.I1=X7(function(){return new u1(X)}); g.P(this,this.I1);this.qN=X7(function(){return new Ba(R)}); g.P(this,this.qN);this.TA=X7(function(){return new ON(R)}); g.P(this,this.TA);this.Es=X7(function(){return new t5(R)}); g.P(this,this.Es);this.NN=X7(function(){return new ZE(R)}); g.P(this,this.NN);this.JN=X7(function(){return new d_(R)}); g.P(this,this.JN);var L=X7(function(){return new ca(C)}); g.P(this,L);var I=X7(function(){return new qb(u.JN)}); g.P(this,I);var F=X7(function(){return new qM(f,W,H,u.JN,I,null,null,null,null)}); g.P(this,F);this.Hw=X7(function(){return new xU(R)}); g.P(this,this.Hw);this.Y8=X7(function(){return new UN(R,S,u.JN)}); g.P(this,this.Y8);var a=DE({Y8:this.Y8,JN:this.JN,FM:I}),n=a.context,B=a.uv;this.P3=a.P3;this.UB=X7(function(){return new ph(R,u.Y8,u.JN)}); g.P(this,this.UB);this.v3=X7(function(){return new YU(u.UB,R,u.JN)}); g.P(this,this.v3);this.AN=X7(function(){return new g_(R,k,u.v3,u.Y8,u.P3,u.JN,B)}); g.P(this,this.AN);this.H7=X7(function(){return new HT(u.JN)}); g.P(this,this.H7);this.Wd=new gU(eDE,oO,function(A,V,p,b){return khB(H.get(),A,V,p,b)},v,W,H,I,this.JN,this.Y8); g.P(this,this.Wd);this.Za=new UD(v,F,N,this.JN,J,this.Y8,this.UB,this.qN);g.P(this,this.Za);var Z=new sN(R,this.Za,this.UB,this.Y8);this.rL=X7(function(){return Z}); this.xk=Z;this.oT=new ld(v,W,this.TA,this.rL,n);g.P(this,this.oT);this.Gd=new xx(this.JN,v,W,F,this.Y8,this.oT,N);g.P(this,this.Gd);this.Gg=X7(function(){return new dN(L,H,I,u.JN,u.AN,u.UB)}); g.P(this,this.Gg);this.V0=X7(function(){return new q5}); g.P(this,this.V0);this.Ut=new Ga(J,this.W3,this.JN);g.P(this,this.Ut);this.LP=new bd(J);g.P(this,this.LP);this.Et=new JS(J,this.rL,n);g.P(this,this.Et);this.XM=new oA(J,this.TA,this.UB,this.Y8,n);g.P(this,this.XM);this.Q0=new NN(J);g.P(this,this.Q0);this.E7=new Cf(J);g.P(this,this.E7);this.v1=X7(function(){return new JE(R)}); g.P(this,this.v1);this.Td=new $X(J);g.P(this,this.Td);this.mL=X7(function(){return new wU}); g.P(this,this.mL);this.ws=X7(function(){return new c3(u.UB)}); g.P(this,this.ws);this.CT=X7(function(){return new Sy(u.Gd,v,f)}); g.P(this,this.CT);this.lQ=X7(function(){return new FW(u.JN,u.AN,u.Q0,u.v3)}); g.P(this,this.lQ);this.k6=X7(function(){return new jw(J,u.Td,u.Q0,u.AN,u.v3,u.H7,u.Es,u.Y8,u.UB,u.TA,u.qN,u.NN,u.I1,u.Hw,u.JN,u.v1,n,B)}); g.P(this,this.k6);this.bl=X7(function(){return new HLf(u.W3,u.UB,u.AN,k,u.Ch,N,u.Y8)}); g.P(this,this.bl);this.bu={I4:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Gd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Wd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Za],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oT]]),P$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Gg],["SLOT_TYPE_FORECASTING",this.V0],["SLOT_TYPE_IN_PLAYER",this.V0],["SLOT_TYPE_PLAYER_BYTES",this.V0]]),g4:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ut],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.LP],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.LP],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.LP],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.LP],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.LP],["TRIGGER_TYPE_SLOT_ID_EXITED",this.LP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.LP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.LP],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.LP],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Et],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.XM],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.XM],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Q0],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Et],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.E7],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Td]]),ES:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.mL],["SLOT_TYPE_FORECASTING",this.mL],["SLOT_TYPE_IN_PLAYER",this.mL],["SLOT_TYPE_PLAYER_BYTES",this.ws]]),R7:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.CT],["SLOT_TYPE_FORECASTING",this.lQ],["SLOT_TYPE_IN_PLAYER",this.bl],["SLOT_TYPE_PLAYER_BYTES", this.k6]])};this.listeners=[k.get()];this.Hy={Gd:this.Gd,YP:this.JN.get(),yO:this.I1.get(),PN:this.UB.get(),Za:this.Za,yA:f.get(),i6:null,FZ:this.Ut,X_:k.get(),Js:this.Y8.get()}}; AWB=function(J,R,N,C,X){g.l.call(this);var u=this,f=X7(function(){return new HA(u.JN)}); g.P(this,f);var H=X7(function(){return new vA(f,u.JN)}); g.P(this,H);var k=X7(function(){return new P3}); g.P(this,k);var v=X7(function(){return new pc(J)}); g.P(this,v);var W=X7(function(){return new WA(f,H,u.JN)}); g.P(this,W);var S=X7(function(){return new Eu}); g.P(this,S);this.Ch=X7(function(){return new BuE(R)}); g.P(this,this.Ch);this.W3=X7(function(){return new h5(R)}); g.P(this,this.W3);this.I1=X7(function(){return new u1(X)}); g.P(this,this.I1);this.qN=X7(function(){return new Ba(R)}); g.P(this,this.qN);this.TA=X7(function(){return new ON(R)}); g.P(this,this.TA);this.Es=X7(function(){return new t5(R)}); g.P(this,this.Es);this.NN=X7(function(){return new ZE(R)}); g.P(this,this.NN);this.JN=X7(function(){return new d_(R)}); g.P(this,this.JN);var L=X7(function(){return new ca(C)}); g.P(this,L);var I=X7(function(){return new qb(u.JN)}); g.P(this,I);this.Hw=X7(function(){return new xU(R)}); g.P(this,this.Hw);this.Y8=X7(function(){return new UN(R,S,u.JN)}); g.P(this,this.Y8);var F=DE({Y8:this.Y8,JN:this.JN,FM:I}),a=F.context,n=F.uv;this.P3=F.P3;this.XV=X7(function(){return new bg(R,u.JN,u.AN)}); g.P(this,this.XV);this.v1=X7(function(){return new JE(R)}); g.P(this,this.v1);this.UB=X7(function(){return new ph(R,u.Y8,u.JN)}); g.P(this,this.UB);F=X7(function(){return new qM(f,W,H,u.JN,I,null,u.UB,u.Y6,u.Di,3)}); g.P(this,F);this.H7=X7(function(){return new HT(u.JN)}); this.v3=X7(function(){return new YU(u.UB,R,u.JN)}); g.P(this,this.v3);this.AN=X7(function(){return new g_(R,k,u.v3,u.Y8,u.P3,u.JN,n)}); g.P(this,this.AN);this.Za=new UD(v,F,N,this.JN,J,this.Y8,this.UB,this.qN);g.P(this,this.Za);var B=new sN(R,this.Za,this.UB,this.Y8,this.XV);this.rL=X7(function(){return B}); this.xk=B;this.Wd=new gU(wyB,oO,function(Z,A,V,p){return khB(H.get(),Z,A,V,p)},v,W,H,I,this.JN,this.Y8); g.P(this,this.Wd);this.Y6=new rU(v,W,this.rL,this.XV,this.UB,this.JN,this.AN,this.v1);g.P(this,this.Y6);this.oT=new ld(v,W,this.TA,this.rL,a);g.P(this,this.oT);this.Gd=new xx(this.JN,v,W,F,this.Y8,this.oT,N);g.P(this,this.Gd);this.Gg=X7(function(){return new dN(L,H,I,u.JN,u.AN,u.UB,u.v1)}); g.P(this,this.Gg);this.V0=X7(function(){return new q5}); g.P(this,this.V0);this.Ut=new Ga(J,this.W3,this.JN);g.P(this,this.Ut);this.LP=new bd(J);g.P(this,this.LP);this.Et=new JS(J,this.rL,a);g.P(this,this.Et);this.XM=new oA(J,this.TA,this.UB,this.Y8,a);g.P(this,this.XM);this.FF=new RA(J,this.Y8);g.P(this,this.FF);this.Di=new Xt(J,this.XV,this.UB,this.AN,this.rL);g.P(this,this.Di);this.Q0=new NN(J);g.P(this,this.Q0);this.E7=new Cf(J);g.P(this,this.E7);this.Td=new $X(J);g.P(this,this.Td);this.mL=X7(function(){return new wU}); g.P(this,this.mL);this.ws=X7(function(){return new c3(u.UB)}); g.P(this,this.ws);this.CT=X7(function(){return new Sy(u.Gd,v,f)}); g.P(this,this.CT);this.lQ=X7(function(){return new FW(u.JN,u.AN,u.Q0,u.v3)}); g.P(this,this.lQ);this.k6=X7(function(){return new rT(J,u.Td,u.Q0,u.Y8,u.v1,u.UB,u.AN,S,u.XV,u.v3,u.H7,u.Es,u.TA,u.qN,u.NN,u.I1,u.Hw,u.JN,k,a,n)}); g.P(this,this.k6);this.z9=X7(function(){return new kgE(u.W3,u.UB,u.AN,k,u.Ch,N,u.JN,u.Y8)}); g.P(this,this.z9);this.bu={I4:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Gd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Y6],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Wd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Za],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oT]]),P$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Gg],["SLOT_TYPE_FORECASTING",this.V0],["SLOT_TYPE_IN_PLAYER",this.V0],["SLOT_TYPE_PLAYER_BYTES",this.V0]]),g4:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.Ut],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.LP],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.LP],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.LP],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.LP],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.LP],["TRIGGER_TYPE_SLOT_ID_EXITED",this.LP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.LP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.LP],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.LP],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Et],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.XM],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.XM],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.FF],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.FF],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Q0],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Et],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.E7],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Td],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Di],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.Di],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Di],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Di],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Di]]),ES:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.mL],["SLOT_TYPE_FORECASTING",this.mL],["SLOT_TYPE_IN_PLAYER",this.mL],["SLOT_TYPE_PLAYER_BYTES",this.ws]]),R7:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.CT],["SLOT_TYPE_FORECASTING",this.lQ],["SLOT_TYPE_PLAYER_BYTES",this.k6],["SLOT_TYPE_IN_PLAYER",this.z9]])};this.listeners=[k.get()]; this.Hy={Gd:this.Gd,YP:this.JN.get(),yO:this.I1.get(),PN:this.UB.get(),Za:this.Za,yA:f.get(),i6:null,FZ:this.Ut,X_:k.get(),Js:this.Y8.get()}}; rWB=function(J,R,N,C){function X(){return u.J} g.l.call(this);var u=this;J.N().experiments.b3("html5_dispose_of_manager_before_dependency")?(this.K=YBP(X,J,R,N,C),this.J=(new i1(this.K)).V(),g.P(this,this.J),g.P(this,this.K)):(this.K=YBP(X,J,R,N,C),g.P(this,this.K),this.J=(new i1(this.K)).V(),g.P(this,this.J))}; RO=function(J){return J.K.Hy}; YBP=function(J,R,N,C,X){try{var u=R.N();if(g.Xk(u))var f=new Oi8(J,R,N,C,X);else if(g.uv(u))f=new Zi8(J,R,N,C,X);else if(ba(u))f=new dpE(J,R,N,C,X);else if(g.N3(u))f=new qBk(J,R,N,C,X);else if(g.eh(u))f=new AWB(J,R,N,C,X);else throw new TypeError("Unknown web interface");return f}catch(H){return f=R.N(),d0("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:f.K.cplatform,interface:f.K.c,IXM:f.K.cver,VW3:f.K.ctheme,tWB:f.K.cplayer,RDO:f.playerStyle}),new I0n(J,R,N,C,X)}}; jxB=function(J){fr.call(this,J)}; mpE=function(J,R,N,C,X){Lr.call(this,J,{C:"div",Y:"ytp-ad-timed-pie-countdown-container",j:[{C:"svg",Y:"ytp-ad-timed-pie-countdown",B:{viewBox:"0 0 20 20"},j:[{C:"circle",Y:"ytp-ad-timed-pie-countdown-background",B:{r:"10",cx:"10",cy:"10"}},{C:"circle",Y:"ytp-ad-timed-pie-countdown-inner",B:{r:"5",cx:"10",cy:"10"}},{C:"circle",Y:"ytp-ad-timed-pie-countdown-outer",B:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",R,N,C,X);this.Z=this.qp("ytp-ad-timed-pie-countdown-container");this.V=this.qp("ytp-ad-timed-pie-countdown-inner"); this.U=this.qp("ytp-ad-timed-pie-countdown-outer");this.J=Math.ceil(2*Math.PI*5);this.hide()}; VSB=function(J,R,N,C,X,u){qj.call(this,J,{C:"div",Y:"ytp-ad-action-interstitial",B:{tabindex:"0"},j:[{C:"div",Y:"ytp-ad-action-interstitial-background-container"},{C:"div",Y:"ytp-ad-action-interstitial-slot",j:[{C:"div",Y:"ytp-ad-action-interstitial-instream-info"},{C:"div",Y:"ytp-ad-action-interstitial-card",j:[{C:"div",Y:"ytp-ad-action-interstitial-image-container"},{C:"div",Y:"ytp-ad-action-interstitial-headline-container"},{C:"div",Y:"ytp-ad-action-interstitial-description-container"},{C:"div", Y:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",R,N,C);this.yT=X;this.Er=u;this.navigationEndpoint=this.K=this.skipButton=this.J=this.actionButton=null;this.T7=this.qp("ytp-ad-action-interstitial-instream-info");this.G7=this.qp("ytp-ad-action-interstitial-image-container");this.W=new Cr(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,"ytp-ad-action-interstitial-image");g.P(this,this.W);this.W.IB(this.G7);this.VO=this.qp("ytp-ad-action-interstitial-headline-container"); this.U=new WF(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,"ytp-ad-action-interstitial-headline");g.P(this,this.U);this.U.IB(this.VO);this.dn=this.qp("ytp-ad-action-interstitial-description-container");this.V=new WF(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,"ytp-ad-action-interstitial-description");g.P(this,this.V);this.V.IB(this.dn);this.Xk=this.qp("ytp-ad-action-interstitial-background-container");this.pC=new Cr(this.api,this.layoutId,this.interactionLoggingClientData, this.yO,"ytp-ad-action-interstitial-background",!0);g.P(this,this.pC);this.pC.IB(this.Xk);this.eQ=this.qp("ytp-ad-action-interstitial-action-button-container");this.slot=this.qp("ytp-ad-action-interstitial-slot");this.zT=this.qp("ytp-ad-action-interstitial-card");this.Z=new gJ;g.P(this,this.Z);this.hide()}; gkg=function(J){var R=g.JT("html5-video-player");R&&g.ao(R,"ytp-ad-display-override",J)}; P22=function(J,R,N,C){qj.call(this,J,{C:"div",Y:"ytp-ad-overlay-slot",j:[{C:"div",Y:"ytp-ad-overlay-container"}]},"invideo-overlay",R,N,C);this.W=[];this.Xk=this.VO=this.Z=this.eQ=this.T7=null;this.pC=!1;this.U=null;this.dn=0;J=this.qp("ytp-ad-overlay-container");this.G7=new DO(J,45E3,6E3,.3,.4);g.P(this,this.G7);this.V=Upg(this);g.P(this,this.V);this.V.IB(J);this.J=pN2(this);g.P(this,this.J);this.J.IB(J);this.K=l0B(this);g.P(this,this.K);this.K.IB(J);this.hide()}; Upg=function(J){var R=new g.da({C:"div",Y:"ytp-ad-text-overlay",j:[{C:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{C:"div",Y:"ytp-ad-overlay-close-container",j:[{C:"button",Y:"ytp-ad-overlay-close-button",j:[GT(zn2)]}]},{C:"div",Y:"ytp-ad-overlay-title",cC:"{{title}}"},{C:"div",Y:"ytp-ad-overlay-desc",cC:"{{description}}"},{C:"div",CC:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],cC:"{{displayUrl}}"}]});J.L(R.qp("ytp-ad-overlay-title"),"click",function(N){N7(J,R.element,N)}); J.L(R.qp("ytp-ad-overlay-link"),"click",function(N){N7(J,R.element,N)}); J.L(R.qp("ytp-ad-overlay-close-container"),"click",J.Qh);R.hide();return R}; pN2=function(J){var R=new g.da({C:"div",CC:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],j:[{C:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{C:"div",Y:"ytp-ad-overlay-close-container",j:[{C:"button",Y:"ytp-ad-overlay-close-button",j:[GT(zn2)]}]},{C:"div",Y:"ytp-ad-overlay-text-image",j:[{C:"img",B:{src:"{{imageUrl}}"}}]},{C:"div",Y:"ytp-ad-overlay-title",cC:"{{title}}"},{C:"div",Y:"ytp-ad-overlay-desc",cC:"{{description}}"},{C:"div",CC:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], cC:"{{displayUrl}}"}]});J.L(R.qp("ytp-ad-overlay-title"),"click",function(N){N7(J,R.element,N)}); J.L(R.qp("ytp-ad-overlay-link"),"click",function(N){N7(J,R.element,N)}); J.L(R.qp("ytp-ad-overlay-close-container"),"click",J.Qh);J.L(R.qp("ytp-ad-overlay-text-image"),"click",J.CsB);R.hide();return R}; l0B=function(J){var R=new g.da({C:"div",Y:"ytp-ad-image-overlay",j:[{C:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{C:"div",Y:"ytp-ad-overlay-close-container",j:[{C:"button",Y:"ytp-ad-overlay-close-button",j:[GT(zn2)]}]},{C:"div",Y:"ytp-ad-overlay-image",j:[{C:"img",B:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});J.L(R.qp("ytp-ad-overlay-image"),"click",function(N){N7(J,R.element,N)}); J.L(R.qp("ytp-ad-overlay-close-container"),"click",J.Qh);R.hide();return R}; enk=function(J,R){if(R){var N=g.z(R,yq)||null;N==null?g.yD(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(R=g.JT("video-ads ytp-ad-module")||null,R==null?g.yD(Error("Could not locate the root ads container element to attach the ad info dialog.")):(J.VO=new g.da({C:"div",Y:"ytp-ad-overlay-ad-info-dialog-container"}),g.P(J,J.VO),J.VO.IB(R),R=new vF(J.api,J.layoutId,J.interactionLoggingClientData,J.yO,J.VO.element,!1),g.P(J,R),R.init(Mj("ad-info-hover-text-button"),N,J.macros), J.U?(R.IB(J.U,0),R.subscribe("f",J.dRO,J),R.subscribe("e",J.uq,J),J.L(J.U,"click",J.vAO),J.L(g.JT("ytp-ad-button",R.element),"click",function(){var C;if(g.z((C=g.z(N.button,g.bT))==null?void 0:C.serviceEndpoint,IIE))J.pC=J.api.getPlayerState(1)===2,J.api.pauseVideo();else J.api.onAdUxClicked("ad-info-hover-text-button",J.layoutId)}),J.Xk=R):g.yD(Error("Ad info button container within overlay ad was not present."))))}else g.G$(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; cWE=function(J,R){if(wNE(J,CU)||J.api.isMinimized())return!1;var N=Ap(R.title),C=Ap(R.description);if(g.MK(N)||g.MK(C))return!1;J.createServerVe(J.V.element,R.trackingParams||null);J.V.updateValue("title",Ap(R.title));J.V.updateValue("description",Ap(R.description));J.V.updateValue("displayUrl",Ap(R.displayUrl));R.navigationEndpoint&&g.xd(J.W,R.navigationEndpoint);J.V.show();J.G7.start();J.logVisibility(J.V.element,!0);J.L(J.V.element,"mouseover",function(){J.dn++}); return!0}; hnn=function(J,R){if(wNE(J,CU)||J.api.isMinimized())return!1;var N=Ap(R.title),C=Ap(R.description);if(g.MK(N)||g.MK(C))return!1;J.createServerVe(J.J.element,R.trackingParams||null);J.J.updateValue("title",Ap(R.title));J.J.updateValue("description",Ap(R.description));J.J.updateValue("displayUrl",Ap(R.displayUrl));J.J.updateValue("imageUrl",jck(R.image));R.navigationEndpoint&&g.xd(J.W,R.navigationEndpoint);J.eQ=R.imageNavigationEndpoint||null;J.J.show();J.G7.start();J.logVisibility(J.J.element,!0); J.L(J.J.element,"mouseover",function(){J.dn++}); return!0}; yWg=function(J,R){if(J.api.isMinimized())return!1;var N=mYf(R.image),C=N;N.width0?(R=new o_(J.api,J.K),R.IB(J.playerOverlay), g.P(J,R)):g.yD(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(R)))}}else g.yD(Error("addCommonComponents() needs to be called before starting countdown."))}; i2V=function(J){function R(N){return{toString:function(){return N()}}} J.macros.SURVEY_LOCAL_TIME_EPOCH_S=R(function(){var N=new Date;return(Math.round(N.valueOf()/1E3)+-1*N.getTimezoneOffset()*60).toString()}); J.macros.SURVEY_ELAPSED_MS=R(function(){return(Date.now()-J.V).toString()})}; uB_=function(J,R,N,C,X){fU.call(this,J,R,N,C,"survey-question-multi-select");this.dn=X;this.noneOfTheAbove=null;this.submitEndpoints=[];this.U=null;this.hide()}; f7P=function(J,R,N){J.noneOfTheAbove=new oE_(J.api,J.layoutId,J.interactionLoggingClientData,J.yO);J.noneOfTheAbove.IB(J.answers);J.noneOfTheAbove.init(Mj("survey-none-of-the-above"),R,N)}; $Pk=function(J){J.J.forEach(function(R){R.K.toggleButton(!1)}); TY_(J,!0)}; TY_=function(J,R){var N=J.Z;J=H2k(J);R=R===void 0?!1:R;N.K&&(J?N.K.hide():N.K.show(),R&&N.K instanceof VZ&&!N.K.Z&&siY(N.K,!1));N.J&&(J?N.J.show():N.J.hide())}; H2k=function(J){return J.J.some(function(R){return R.K.isToggled()})||J.noneOfTheAbove.button.isToggled()}; Tv=function(J,R,N,C,X){fU.call(this,J,R,N,C,"survey-question-single-select",function(f){u.api.N().T("supports_multi_step_on_desktop")&&X([f])}); var u=this;this.hide()}; $f=function(J,R,N,C){qj.call(this,J,{C:"div",Y:"ytp-ad-survey",j:[{C:"div",Y:"ytp-ad-survey-questions"}]},"survey",R,N,C);this.questions=[];this.J=[];this.conditioningRules=[];this.K=0;this.U=this.qp("ytp-ad-survey-questions");this.api.N().T("fix_survey_color_contrast_on_destop")&&this.qp("ytp-ad-survey").classList.add("color-contrast-fix");this.api.N().T("web_enable_speedmaster")&&this.qp("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; WB9=function(J,R){var N=J.J[R],C;(C=J.V)==null||C.dispose();g.z(N,cz)?kE_(J,g.z(N,cz),J.macros):g.z(N,wL)&&vEV(J,g.z(N,wL),J.macros);J.K=R}; kE_=function(J,R,N){var C=new Tv(J.api,J.layoutId,J.interactionLoggingClientData,J.yO,J.Z.bind(J));C.IB(J.U);C.init(Mj("survey-question-single-select"),R,N);J.api.N().T("supports_multi_step_on_desktop")?J.V=C:J.questions.push(C);g.P(J,C)}; vEV=function(J,R,N){var C=new uB_(J.api,J.layoutId,J.interactionLoggingClientData,J.yO,J.Z.bind(J));C.IB(J.U);C.init(Mj("survey-question-multi-select"),R,N);J.api.N().T("supports_multi_step_on_desktop")?J.V=C:J.questions.push(C);g.P(J,C)}; HB=function(J,R,N,C){qj.call(this,J,{C:"div",Y:"ytp-ad-survey-interstitial",j:[{C:"div",Y:"ytp-ad-survey-interstitial-contents",j:[{C:"div",Y:"ytp-ad-survey-interstitial-logo",j:[{C:"div",Y:"ytp-ad-survey-interstitial-logo-image"}]},{C:"div",Y:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",R,N,C);this.K=this.actionButton=null;this.interstitial=this.qp("ytp-ad-survey-interstitial");this.J=this.qp("ytp-ad-survey-interstitial-contents");this.text=this.qp("ytp-ad-survey-interstitial-text"); this.logoImage=this.qp("ytp-ad-survey-interstitial-logo-image");this.transition=new g.ES(this,500,!1,300);g.P(this,this.transition)}; Sf9=function(J,R){R=R&&N2(R)||"";if(g.MK(R))g.G$(Error("Found ThumbnailDetails without valid image URL"));else{var N=J.style;J=J.style.cssText;var C=document.implementation.createHTMLDocument("").createElement("DIV");C.style.cssText=J;J=v$B(C.style);N.cssText=[J,'background-image:url("'+R+'");'].join("")}}; LBE=function(J){var R=g.JT("html5-video-player");R&&g.ao(R,"ytp-ad-display-override",J)}; kf=function(J,R,N,C,X,u){u=u===void 0?0:u;Lr.call(this,J,{C:"div",Y:"ytp-preview-ad",j:[{C:"div",Y:"ytp-preview-ad__text"}]},"preview-ad",R,N,C,X);var f=this;this.dn=u;this.J=0;this.Z=-1;this.V=this.qp("ytp-preview-ad__text");switch(this.dn){case 1:this.V.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.ES(this,400,!1,100,function(){f.hide()}); g.P(this,this.transition);this.hide()}; vB=function(J,R,N,C){qj.call(this,J,{C:"img",Y:"ytp-ad-avatar"},"ad-avatar",R,N,C);this.hide()}; I7d=function(J){switch(J.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; WB=function(J,R,N,C,X){X=X===void 0?!1:X;qj.call(this,J,{C:"button",Y:"ytp-ad-button-vm"},"ad-button",R,N,C);this.buttonText=this.buttonIcon=null;this.hide();this.K=X}; FBE=function(J,R,N,C,X){Lr.call(this,J,{C:"div",CC:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],j:[{C:"div",Y:"ytp-ad-avatar-lockup-card__avatar_and_text_container",j:[{C:"div",Y:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",R,N,C,X);this.startMilliseconds=0;this.adAvatar=new vB(this.api,this.layoutId,this.interactionLoggingClientData,this.yO);g.P(this,this.adAvatar);$w(this.element,this.adAvatar.element,0);this.headline=new yZ(this.api,this.layoutId, this.interactionLoggingClientData,this.yO);g.P(this,this.headline);this.headline.IB(this.qp("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new yZ(this.api,this.layoutId,this.interactionLoggingClientData,this.yO);g.P(this,this.description);this.description.IB(this.qp("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new WB(this.api, this.layoutId,this.interactionLoggingClientData,this.yO);g.P(this,this.adButton);this.adButton.IB(this.element);this.hide()}; Sp=function(J,R,N,C){qj.call(this,J,{C:"button",Y:"ytp-skip-ad-button",j:[{C:"div",Y:"ytp-skip-ad-button__text"}]},"skip-button",R,N,C);var X=this;this.J=!1;this.Z=this.qp("ytp-skip-ad-button__text");this.transition=new g.ES(this,500,!1,100,function(){X.hide()}); g.P(this,this.transition);this.K=new DO(this.element,15E3,5E3,.5,.5,!0);g.P(this,this.K);this.hide()}; EEl=function(J,R,N,C,X){Lr.call(this,J,{C:"div",Y:"ytp-skip-ad"},"skip-ad",R,N,C,X);this.skipOffsetMilliseconds=0;this.Z=this.isSkippable=!1;var u;if((u=this.api.getVideoData())==null?0:u.isDaiEnabled())this.Z=this.api.N().T("clean_player_style_fix_on_web");if(this.Z||!this.api.N().experiments.b3("disable_ad_preview_for_instream_ads"))this.J=new kf(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.K),g.P(this,this.J),this.J.IB(this.element);this.V=new Sp(this.api,this.layoutId, this.interactionLoggingClientData,this.yO);g.P(this,this.V);this.V.IB(this.element);this.hide()}; LU=function(J,R,N,C){qj.call(this,J,{C:"div",Y:"ytp-visit-advertiser-link"},"visit-advertiser-link",R,N,C);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")}; IO=function(J,R,N,C,X){qj.call(this,J,{C:"div",Y:"ytp-ad-player-overlay-layout",j:[{C:"div",Y:"ytp-ad-player-overlay-layout__player-card-container"},{C:"div",Y:"ytp-ad-player-overlay-layout__ad-info-container"},{C:"div",Y:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{C:"div",Y:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",R,N,C);this.J=X;this.VO=this.qp("ytp-ad-player-overlay-layout__player-card-container");this.K=this.qp("ytp-ad-player-overlay-layout__ad-info-container"); this.W=this.qp("ytp-ad-player-overlay-layout__skip-or-preview-container");this.dn=this.qp("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; MnV=function(J,R,N,C){qj.call(this,J,{C:"div",Y:"ytp-ad-grid-card-text",j:[{C:"div",Y:"ytp-ad-grid-card-text__metadata",j:[{C:"div",Y:"ytp-ad-grid-card-text__metadata__headline"},{C:"div",Y:"ytp-ad-grid-card-text__metadata__description",j:[{C:"div",Y:"ytp-ad-grid-card-text__metadata__description__line"},{C:"div",Y:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{C:"div",Y:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",R,N,C);this.headline=new yZ(this.api,this.layoutId,this.interactionLoggingClientData, this.yO);g.P(this,this.headline);this.headline.IB(this.qp("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new WB(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,!0);g.P(this,this.moreInfoButton);this.moreInfoButton.IB(this.qp("ytp-ad-grid-card-text__button"))}; FY=function(J,R,N,C){qj.call(this,J,{C:"div",Y:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",R,N,C);this.K=[]}; EM=function(J,R,N,C,X,u,f){Lr.call(this,J,u,f,R,N,C,X);this.playerProgressOffsetMs=0;this.J=!1}; KBf=function(J){var R=g.JT("html5-video-player");R&&g.ao(R,"ytp-ad-display-override",J)}; a78=function(J,R,N,C,X){EM.call(this,J,R,N,C,X,{C:"div",Y:"ytp-display-underlay-text-grid-cards",j:[{C:"div",Y:"ytp-display-underlay-text-grid-cards__content_container",j:[{C:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"},{C:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new FY(this.api,this.layoutId,this.interactionLoggingClientData,this.yO);g.P(this,this.adGridCardCollection); this.adGridCardCollection.IB(this.qp("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new WB(this.api,this.layoutId,this.interactionLoggingClientData,this.yO);g.P(this,this.adButton);this.adButton.IB(this.qp("ytp-display-underlay-text-grid-cards__content_container__ad_button"));this.V=this.qp("ytp-display-underlay-text-grid-cards__content_container")}; M7=function(J,R,N,C){qj.call(this,J,{C:"div",Y:"ytp-ad-details-line"},"ad-details-line",R,N,C);this.K=[];this.hide()}; KU=function(J,R,N,C){qj.call(this,J,{C:"div",Y:"ytp-image-background",j:[{C:"img",Y:"ytp-image-background-image"}]},"image-background",R,N,C);this.hide()}; QQ_=function(J,R,N,C,X){Lr.call(this,J,{C:"svg",Y:"ytp-timed-pie-countdown",B:{viewBox:"0 0 20 20"},j:[{C:"circle",Y:"ytp-timed-pie-countdown__background",B:{r:"10",cx:"10",cy:"10"}},{C:"circle",Y:"ytp-timed-pie-countdown__inner",B:{r:"5",cx:"10",cy:"10"}},{C:"circle",Y:"ytp-timed-pie-countdown__outer",B:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",R,N,C,X);this.V=this.qp("ytp-timed-pie-countdown__inner");this.J=Math.ceil(2*Math.PI*5);this.hide()}; aO=function(J,R,N,C){qj.call(this,J,{C:"div",Y:"ytp-video-interstitial-buttoned-centered-layout",B:{tabindex:"0"},j:[{C:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content",j:[{C:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{C:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",j:[{C:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{C:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {C:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{C:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{C:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",R,N,C);this.J=null;this.Z=this.qp("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.V=new gJ;g.P(this,this.V);this.hide()}; nEa=function(J){var R=g.JT("html5-video-player");R&&g.ao(R,"ytp-ad-display-override",J)}; sQf=function(J){if(!J.adAvatar||!g.z(J.adAvatar,DPL))return g.yD(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!J.headline)return g.yD(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!J.adBadge||!g.z(J.adBadge,Ql))return g.yD(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!J.adButton||!g.z(J.adButton,nU))return g.yD(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1; if(!J.adInfoRenderer||!g.z(J.adInfoRenderer,yq))return g.yD(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;J=J.durationMilliseconds||0;return typeof J!=="number"||J<=0?(g.yD(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+J)),!1):!0}; DG=function(J,R,N){fr.call(this,J);this.api=J;this.yO=R;this.J={};J=new g.c({C:"div",CC:["video-ads","ytp-ad-module"]});g.P(this,J);kS&&g.FL(J.element,"ytp-ads-tiny-mode");this.U=new Ad(J.element);g.P(this,this.U);g.EL(this.api,J.element,4);W3(N)&&(N=new g.c({C:"div",CC:["ytp-ad-underlay"]}),g.P(this,N),this.V=new Ad(N.element),g.P(this,this.V),g.EL(this.api,N.element,0));g.P(this,R4P())}; BYK=function(J,R){J=g.jF(J.J,R.id,null);J==null&&g.G$(Error("Component not found for element id: "+R.id));return J||null}; O28=function(J){g.Sx.call(this,J);var R=this;this.J=null;this.created=!1;this.V=J.N().T("h5_use_refactored_get_ad_break")?new aQB(this.player):new nh(this.player);this.Z=function(){if(R.J!=null)return R.J;var C=new ZjB({FZ:RO(R.K).FZ,Js:RO(R.K).Js,G:R.player,YP:RO(R.K).YP,AN:R.K.K.AN,X_:RO(R.K).X_,NN:R.K.K.NN});R.J=C.HS;return R.J}; this.K=new rWB(this.player,this,this.V,this.Z);g.P(this,this.K);var N=J.N();!zu(N)||g.eh(N)||ba(N)||(g.P(this,new DG(J,RO(this.K).yO,RO(this.K).YP)),g.P(this,new jxB(J)))}; Z2a=function(J){J.created!==J.loaded&&d0("Created and loaded are out of sync")}; Akf=function(J){g.Sx.prototype.load.call(J);var R=RO(J.K).YP;try{J.player.getRootNode().classList.add("ad-created")}catch(k){d0(k instanceof Error?k:String(k))}var N=J.player.getVideoData(1),C=N&&N.videoId||"",X=N&&N.getPlayerResponse()||{},u=(!J.player.N().experiments.b3("debug_ignore_ad_placements")&&X&&X.adPlacements||[]).map(function(k){return k.adPlacementRenderer}),f=((X==null?void 0:X.adSlots)||[]).map(function(k){return g.z(k,Ja)}); X=X.playerConfig&&X.playerConfig.daiConfig&&X.playerConfig.daiConfig.enableDai||!1;N&&N.MR();u=dPP(u,f,R,RO(J.K).yA);f=N&&N.clientPlaybackNonce||"";N=N&&N.EP||!1;if(U4(R,!0)&&N){var H;R={};(H=J.player.getVideoData())==null||H.u3("p_cpb",(R.cc=f,R))}H=1E3*J.player.getDuration(1);qfq(J);J.K.K.xk.fJ(f,H,N,u.RN,u.d$,u.RN,X,C)}; qfq=function(J){var R,N;if(N=(R=J.player.getVideoData(1))==null||!R.EP)R=J.player.N(),N=zu(R)&&!g.PM(R)&&R.playerStyle==="desktop-polymer";N&&(J=J.player.getInternalApi(),J.addEventListener("updateKevlarOrC3Companion",ACn),J.addEventListener("updateEngagementPanelAction",YqE),J.addEventListener("changeEngagementPanelVisibility",rCB),window.addEventListener("yt-navigate-start",mzE))}; sM=function(J,R){R===J.uG&&(J.uG=void 0)}; Yf_=function(J){var R=RO(J.K).Za,N=R.Z().zF("SLOT_TYPE_PLAYER_BYTES",1);R=ls(R.Y8.get(),1).clientPlaybackNonce;var C=!1;N=g.K(N);for(var X=N.next();!X.done;X=N.next()){X=X.value;var u=X.slotType==="SLOT_TYPE_PLAYER_BYTES"&&X.slotEntryTrigger instanceof GG?X.slotEntryTrigger.d6:void 0;u&&u===R&&(C&&d0("More than 1 preroll playerBytes slot detected",X),C=!0)}C||lg(RO(J.K).PN)}; rk9=function(J){if(qa(RO(J.K).YP))return!0;var R="";J=g.K(RO(J.K).X_.Z9.keys());for(var N=J.next();!N.done;N=J.next()){N=N.value;if(N.slotType==="SLOT_TYPE_PLAYER_BYTES"&&N.DM==="core")return!0;R+=N.slotType+" "}Math.random()<.01&&d0("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:R});return!1}; jQJ=function(J){J=g.K(RO(J.K).X_.Z9.values());for(var R=J.next();!R.done;R=J.next())if(R.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; eUn=function(J,R,N,C,X,u){N=N===void 0?[]:N;C=C===void 0?"":C;X=X===void 0?"":X;var f=RO(J.K).YP,H=J.player.getVideoData(1);H&&H.getPlayerResponse();H&&H.MR();N=dPP(R,N,f,RO(J.K).yA);yV2(RO(J.K).Gd,C,N.RN,N.d$,R,X,u)}; dPP=function(J,R,N,C){R={RN:[],d$:R};J=g.K(J);for(var X=J.next();!X.done;X=J.next())if((X=X.value)&&X.renderer!=null){var u=X.renderer;if(!N.G.N().T("html5_enable_vod_lasr_with_notify_pacf")){var f=void 0,H=void 0,k=void 0,v=void 0,W=C;g.z((v=u.sandwichedLinearAdRenderer)==null?void 0:v.adVideoStart,dU)?(f=g.z((k=u.sandwichedLinearAdRenderer)==null?void 0:k.adVideoStart,dU),f=f_8(f,W),g.ol(u.sandwichedLinearAdRenderer.adVideoStart,dU,f)):g.z((H=u.linearAdSequenceRenderer)==null?void 0:H.adStart,dU)&& (k=g.z((f=u.linearAdSequenceRenderer)==null?void 0:f.adStart,dU),f=f_8(k,W),g.ol(u.linearAdSequenceRenderer.adStart,dU,f))}R.RN.push(X)}return R}; g.BB=function(J){if(typeof DOMParser!="undefined")return R4(new DOMParser,iHk(J),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.OM=function(J){g.l.call(this);this.callback=J;this.K=new Yt(0,0,.4,0,.2,1,1,1);this.delay=new g.T9(this.next,window,this);g.P(this,this.delay)}; g.mPd=function(J){var R=J.N();return R.j2&&!R.V&&g.V_(R)?J.Yv()?(J=J.hU(),Math.min(J.width,J.height)>=315):!J.FP():!1}; g.ZG=function(J){g.c.call(this,{C:"div",Y:"ytp-more-videos-view",B:{tabIndex:"-1"}});var R=this;this.api=J;this.K=!0;this.V=new g.tY(this);this.J=[];this.suggestionData=[];this.columns=this.containerWidth=this.X=this.Z=this.scrollPosition=0;this.title=new g.c({C:"h2",Y:"ytp-related-title",cC:"{{title}}"});this.previous=new g.c({C:"button",CC:["ytp-button","ytp-previous"],B:{"aria-label":"Mostrar v\u00eddeos sugeridos anteriores"},j:[g.ma()]});this.S=new g.OM(function(N){R.suggestions.element.scrollLeft= -N}); this.next=new g.c({C:"button",CC:["ytp-button","ytp-next"],B:{"aria-label":"Mostrar mais v\u00eddeos sugeridos"},j:[g.VP()]});g.P(this,this.V);this.U=J.N().Z;g.P(this,this.title);this.title.IB(this.element);this.suggestions=new g.c({C:"div",Y:"ytp-suggestions"});g.P(this,this.suggestions);this.suggestions.IB(this.element);g.P(this,this.previous);this.previous.IB(this.element);this.previous.listen("click",this.Yf,this);g.P(this,this.S);VnK(this);g.P(this,this.next);this.next.IB(this.element);this.next.listen("click", this.M3,this);this.V.L(this.api,"appresize",this.NR);this.V.L(this.api,"fullscreentoggled",this.M2);this.V.L(this.api,"videodatachange",this.onVideoDataChange);this.NR(this.api.jQ().getPlayerSize());this.onVideoDataChange()}; VnK=function(J){for(var R={Og:0};R.Og<16;R={Og:R.Og},++R.Og){var N=new g.c({C:"a",Y:"ytp-suggestion-link",B:{href:"{{link}}",target:J.api.N().W,"aria-label":"{{aria_label}}"},j:[{C:"div",Y:"ytp-suggestion-image"},{C:"div",Y:"ytp-suggestion-overlay",B:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},j:[{C:"div",Y:"ytp-suggestion-title",cC:"{{title}}"},{C:"div",Y:"ytp-suggestion-author",cC:"{{author_and_views}}"},{C:"div",B:{"data-is-live":"{{is_live}}"},Y:"ytp-suggestion-duration", cC:"{{duration}}"}]}]});g.P(J,N);var C=N.qp("ytp-suggestion-link");g.Lz(C,"transitionDelay",R.Og/20+"s");J.V.L(C,"click",function(X){return function(u){var f=X.Og;if(J.K){var H=J.suggestionData[f],k=H.sessionData;J.U&&J.api.T("web_player_log_click_before_generating_ve_conversion_params")?(J.api.logClick(J.J[f].element),f=H.Dh(),H={},g.Axn(J.api,H),f=g.bD(f,H),g.ue(f,J.api,u)):g.ie(u,J.api,J.U,k||void 0)&&J.api.D_(H.videoId,k,H.playlistId)}else u.preventDefault(),document.activeElement.blur()}}(R)); N.IB(J.suggestions.element);J.J.push(N);J.api.createServerVe(N.element,N)}}; gEa=function(J){if(J.api.N().T("web_player_log_click_before_generating_ve_conversion_params"))for(var R=Math.floor(-J.scrollPosition/(J.Z+8)),N=Math.min(R+J.columns,J.suggestionData.length)-1;R<=N;R++)J.api.logVisibility(J.J[R].element,!0)}; g.dM=function(J){var R=J.api.Kx()?32:16;R=J.X/2+R;J.next.element.style.bottom=R+"px";J.previous.element.style.bottom=R+"px";R=J.scrollPosition;var N=J.containerWidth-J.suggestionData.length*(J.Z+8);g.ao(J.element,"ytp-scroll-min",R>=0);g.ao(J.element,"ytp-scroll-max",R<=N)}; pgU=function(J){for(var R=J.suggestionData.length,N=0;N>>0)+"_",X=0;return R}); TE("Symbol.iterator",function(J){if(J)return J;J=Symbol("Symbol.iterator");for(var R="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),N=0;N=u}}); TE("String.prototype.endsWith",function(J){return J?J:function(R,N){var C=Bg(this,R,"endsWith");R+="";N===void 0&&(N=C.length);N=Math.max(0,Math.min(N|0,C.length));for(var X=R.length;X>0&&N>0;)if(C[--N]!=R[--X])return!1;return X<=0}}); TE("Array.prototype.entries",function(J){return J?J:function(){return Z7(this,function(R,N){return[R,N]})}}); TE("Math.imul",function(J){return J?J:function(R,N){R=Number(R);N=Number(N);var C=R&65535,X=N&65535;return C*X+((R>>>16&65535)*X+C*(N>>>16&65535)<<16>>>0)|0}}); TE("globalThis",function(J){return J||g.XB}); TE("Math.trunc",function(J){return J?J:function(R){R=Number(R);if(isNaN(R)||R===Infinity||R===-Infinity||R===0)return R;var N=Math.floor(Math.abs(R));return R<0?-N:N}}); TE("Number.isNaN",function(J){return J?J:function(R){return typeof R==="number"&&isNaN(R)}}); TE("Array.prototype.keys",function(J){return J?J:function(){return Z7(this,function(R){return R})}}); TE("Array.prototype.values",function(J){return J?J:function(){return Z7(this,function(R,N){return N})}}); TE("Math.clz32",function(J){return J?J:function(R){R=Number(R)>>>0;if(R===0)return 32;var N=0;(R&4294901760)===0&&(R<<=16,N+=16);(R&4278190080)===0&&(R<<=8,N+=8);(R&4026531840)===0&&(R<<=4,N+=4);(R&3221225472)===0&&(R<<=2,N+=2);(R&2147483648)===0&&N++;return N}}); TE("Math.log10",function(J){return J?J:function(R){return Math.log(R)/Math.LN10}}); TE("Object.fromEntries",function(J){return J?J:function(R){var N={};if(!(Symbol.iterator in R))throw new TypeError(""+R+" is not iterable");R=R[Symbol.iterator].call(R);for(var C=R.next();!C.done;C=R.next()){C=C.value;if(Object(C)!==C)throw new TypeError("iterable for fromEntries should yield objects");N[C[0]]=C[1]}return N}}); TE("String.prototype.replaceAll",function(J){return J?J:function(R,N){if(R instanceof RegExp&&!R.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return R instanceof RegExp?this.replace(R,N):this.replace(new RegExp(String(R).replace(/([-()\[\]{}+?*.$\^|,:#X)C=X;C=Number(C);C<0&&(C=Math.max(0,X+C));for(N=Number(N||0);N1342177279)throw new RangeError("Invalid count value");R|=0;for(var C="";R;)if(R&1&&(C+=N),R>>>=1)N+=N;return C}}); TE("Promise.prototype.finally",function(J){return J?J:function(R){return this.then(function(N){return Promise.resolve(R()).then(function(){return N})},function(N){return Promise.resolve(R()).then(function(){throw N; })})}}); TE("String.prototype.padStart",function(J){return J?J:function(R,N){var C=Bg(this,null,"padStart");R-=C.length;N=N!==void 0?String(N):" ";return(R>0&&N?N.repeat(Math.ceil(R/N.length)).substring(0,R):"")+C}}); TE("Array.prototype.findIndex",function(J){return J?J:function(R,N){return jQE(this,R,N).i}}); TE("Math.sign",function(J){return J?J:function(R){R=Number(R);return R===0||isNaN(R)?R:R>0?1:-1}}); TE("WeakSet",function(J){function R(N){this.K=new WeakMap;if(N){N=g.K(N);for(var C;!(C=N.next()).done;)this.add(C.value)}} if(function(){if(!J||!Object.seal)return!1;try{var N=Object.seal({}),C=Object.seal({}),X=new J([N]);if(!X.has(N)||X.has(C))return!1;X.delete(N);X.add(C);return!X.has(N)&&X.has(C)}catch(u){return!1}}())return J; R.prototype.add=function(N){this.K.set(N,!0);return this}; R.prototype.has=function(N){return this.K.has(N)}; R.prototype.delete=function(N){return this.K.delete(N)}; return R}); TE("Array.prototype.copyWithin",function(J){function R(N){N=Number(N);return N===Infinity||N===-Infinity?N:N|0} return J?J:function(N,C,X){var u=this.length;N=R(N);C=R(C);X=X===void 0?u:R(X);N=N<0?Math.max(u+N,0):Math.min(N,u);C=C<0?Math.max(u+C,0):Math.min(C,u);X=X<0?Math.max(u+X,0):Math.min(X,u);if(NC;)--X in this?this[--N]=this[X]:delete this[--N];return this}}); TE("Int8Array.prototype.copyWithin",qP);TE("Uint8Array.prototype.copyWithin",qP);TE("Uint8ClampedArray.prototype.copyWithin",qP);TE("Int16Array.prototype.copyWithin",qP);TE("Uint16Array.prototype.copyWithin",qP);TE("Int32Array.prototype.copyWithin",qP);TE("Uint32Array.prototype.copyWithin",qP);TE("Float32Array.prototype.copyWithin",qP);TE("Float64Array.prototype.copyWithin",qP);TE("Array.prototype.at",function(J){return J?J:Ak}); TE("Int8Array.prototype.at",YE);TE("Uint8Array.prototype.at",YE);TE("Uint8ClampedArray.prototype.at",YE);TE("Int16Array.prototype.at",YE);TE("Uint16Array.prototype.at",YE);TE("Int32Array.prototype.at",YE);TE("Uint32Array.prototype.at",YE);TE("Float32Array.prototype.at",YE);TE("Float64Array.prototype.at",YE);TE("String.prototype.at",function(J){return J?J:Ak}); TE("Array.prototype.findLastIndex",function(J){return J?J:function(R,N){return mPE(this,R,N).i}}); TE("Int8Array.prototype.findLastIndex",rY);TE("Uint8Array.prototype.findLastIndex",rY);TE("Uint8ClampedArray.prototype.findLastIndex",rY);TE("Int16Array.prototype.findLastIndex",rY);TE("Uint16Array.prototype.findLastIndex",rY);TE("Int32Array.prototype.findLastIndex",rY);TE("Uint32Array.prototype.findLastIndex",rY);TE("Float32Array.prototype.findLastIndex",rY);TE("Float64Array.prototype.findLastIndex",rY);TE("Number.parseInt",function(J){return J||parseInt}); TE("String.raw",function(J){return J?J:function(R,N){if(R==null)throw new TypeError("Cannot convert undefined or null to object");for(var C=R.raw,X=C.length,u="",f=0;f>>0);VnP=0;g.l.prototype.uO=!1;g.l.prototype.QO=function(){return this.uO}; g.l.prototype.dispose=function(){this.uO||(this.uO=!0,this.Fk())}; g.l.prototype[Symbol.dispose]=function(){this.dispose()}; g.l.prototype.addOnDisposeCallback=function(J,R){this.uO?R!==void 0?J.call(R):J():(this.KV||(this.KV=[]),R&&(J=J.bind(R)),this.KV.push(J))}; g.l.prototype.Fk=function(){if(this.KV)for(;this.KV.length;)this.KV.shift()()};var zgE;g.M(TJ,g.l);TJ.prototype.share=function(){if(this.QO())throw Error("E:AD");this.D++;return this}; TJ.prototype.dispose=function(){--this.D||g.l.prototype.dispose.call(this)}; zgE=Symbol.dispose;eg7.prototype.K=function(J){this.J.AM("/client_streamz/bg/fic",J)}; wgg.prototype.K=function(J,R){this.J.AM("/client_streamz/bg/fiec",J,R)}; ckE.prototype.py=function(J,R){this.K.py("/client_streamz/bg/fil",J,R)}; hgB.prototype.K=function(J,R){this.J.AM("/client_streamz/bg/fcc",J,R)}; ykY.prototype.py=function(J,R,N){this.K.py("/client_streamz/bg/fcd",J,R,N)}; GEE.prototype.K=function(J){this.J.AM("/client_streamz/bg/fsc",J)}; b2k.prototype.py=function(J,R){this.K.py("/client_streamz/bg/fsl",J,R)}; tnY.prototype.py=function(J,R){this.K.py("/client_streamz/bg/frs",J,R)}; xPE.prototype.py=function(J,R,N,C,X,u){this.K.py("/client_streamz/bg/wrl",J,R,N,C,X,u)}; J_E.prototype.K=function(J,R){this.J.AM("/client_streamz/bg/ec",J,R)}; odg.prototype.py=function(J,R,N,C){this.K.py("/client_streamz/bg/el",J,R,N,C)}; RfQ.prototype.K=function(J,R,N){this.J.AM("/client_streamz/bg/cec",J,R,N)}; NkB.prototype.K=function(J,R,N){this.J.AM("/client_streamz/bg/po/csc",J,R,N)}; CPf.prototype.K=function(J,R,N){this.J.AM("/client_streamz/bg/po/ctav",J,R,N)}; Xlf.prototype.K=function(J,R,N){this.J.AM("/client_streamz/bg/po/cwsc",J,R,N)};g.GE(vl,Error);vl.prototype.name="CustomError";var VtP;var jt=void 0,rA,i6B=typeof TextDecoder!=="undefined",$KE,Tkf=typeof String.prototype.isWellFormed==="function",fLg=typeof TextEncoder!=="undefined";var Q9=String.prototype.trim?function(J){return J.trim()}:function(J){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(J)[1]},HlQ=/&/g,kdn=//g,WgE=/"/g,SXf=/'/g,Lgf=/\x00/g,$9E=/[\x00&<>"']/;var hgq=Uf(1,!0),Bl=Uf(610401301,!1);Uf(899588437,!1);Uf(188588736,!0);var ykk=Uf(691955189,!0);Uf(651175828,!1);var hAP=Uf(653718497,hgq);Uf(660014094,hgq);Uf(2147483644,!1);Uf(2147483645,!1);Uf(2147483646,hgq);Uf(2147483647,!0);var Oa=!!g.gY("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var ZL,GEd=g.mB.navigator;ZL=GEd?GEd.userAgentData||null:null;var ndg,jm,gh;ndg=Array.prototype.indexOf?function(J,R){return Array.prototype.indexOf.call(J,R,void 0)}:function(J,R){if(typeof J==="string")return typeof R!=="string"||R.length!=1?-1:J.indexOf(R,0); for(var N=0;N=0;N--)if(N in J&&J[N]===R)return N;return-1}; g.Ts=Array.prototype.forEach?function(J,R,N){Array.prototype.forEach.call(J,R,N)}:function(J,R,N){for(var C=J.length,X=typeof J==="string"?J.split(""):J,u=0;uparseFloat(RfU)){odl=String(q7);break a}}odl=RfU}var mKg=odl,r_E={};var u4,fI;g.tI=rk();u4=gk()||qK("iPod");fI=qK("iPad");g.mJ=ILP();g.hY=jE();g.d9=mq()&&!Ua();var gd2={},F9=null,UK8=nz||g.RP||typeof g.mB.btoa=="function";var y_Y=typeof Uint8Array!=="undefined",PP7=!g.sp&&typeof btoa==="function",c_g=/[-_.]/g,efk={"-":"+",_:"/",".":"="},KE={};M_.prototype.isEmpty=function(){return this.K==null}; M_.prototype.sizeBytes=function(){var J=Q2(this);return J?J.length:0}; var b8E;var lVf;var N9=typeof Symbol==="function"&&typeof Symbol()==="symbol",AE=OW(),mP=OW("2ex"),Cl=OW("1oa");Math.max.apply(Math,g.Q(Object.values({bTB:1,HTC:2,eCQ:4,pYC:8,h8f:16,Akf:32,suB:64,djn:128,wdM:256,Wtn:512,NmC:1024,yMa:2048,fR8:4096,HJC:8192,RmO:16384})));var OR=N9?function(J,R){J[AE]|=R}:function(J,R){J.jd!==void 0?J.jd|=R:Object.defineProperties(J,{jd:{value:R, configurable:!0,writable:!0,enumerable:!1}})},yjE=N9?function(J,R){J[AE]&=~R}:function(J,R){J.jd!==void 0&&(J.jd&=~R)},YN=N9?function(J){return J[AE]|0}:function(J){return J.jd|0},qV=N9?function(J){return J[AE]}:function(J){return J.jd},ZV=N9?function(J,R){J[AE]=R}:function(J,R){J.jd!==void 0?J.jd=R:Object.defineProperties(J,{jd:{value:R, configurable:!0,writable:!0,enumerable:!1}})};var It={},oNP={},c2,Xla=[];ZV(Xla,55);c2=Object.freeze(Xla);var gy,cj8=Object.freeze({});var XbB=UW(function(J){return typeof J==="number"}),Ck8=UW(function(J){return typeof J==="string"}),iEQ=UW(function(J){return typeof J==="boolean"}),nf=UW(function(J){return J!=null&&typeof J==="object"&&typeof J.then==="function"}),Qy=UW(function(J){return!!J&&(typeof J==="object"||typeof J==="function")});var pE=typeof g.mB.BigInt==="function"&&typeof g.mB.BigInt(0)==="bigint";var km=UW(function(J){return pE?J>=i8E&&J<=uVk:J[0]==="-"?u9n(J,fLf):u9n(J,Tka)}),fLf=Number.MIN_SAFE_INTEGER.toString(),i8E=pE?BigInt(Number.MIN_SAFE_INTEGER):void 0,Tka=Number.MAX_SAFE_INTEGER.toString(),uVk=pE?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Rs8=typeof Uint8Array.prototype.slice==="function",Pb=0,eZ=0,gmE;var vN2=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var K6=void 0,at=void 0,FC=void 0,ER=void 0,Q1=void 0;var n6,sR,Ajg;g.T=JJ7.prototype;g.T.init=function(J,R,N,C){C=C===void 0?{}:C;this.GE=C.GE===void 0?!1:C.GE;J&&(J=Kl(J),this.J=J.buffer,this.U=J.XX,this.Z=R||0,this.V=N!==void 0?this.Z+N:this.J.length,this.K=this.Z)}; g.T.free=function(){this.clear();dA.length<100&&dA.push(this)}; g.T.clear=function(){this.J=null;this.U=!1;this.K=this.V=this.Z=0;this.GE=!1}; g.T.reset=function(){this.K=this.Z}; g.T.qP=function(){var J=this.S;J||(J=this.J,J=this.S=new DataView(J.buffer,J.byteOffset,J.byteLength));return J}; var dA=[];q9.prototype.free=function(){this.K.clear();this.J=this.Z=-1;Yf.length<100&&Yf.push(this)}; q9.prototype.reset=function(){this.K.reset();this.V=this.K.K;this.J=this.Z=-1}; var Yf=[];var pl,UX;g.T=gA.prototype;g.T.toJSON=function(){return zd(this)}; g.T.SV=function(J){try{return UX=!0,J&&(pl=J===Vu||J!==fBn&&J!==kDP&&J!==SR2?Vu:J),JSON.stringify(zd(this),jGg)}finally{J&&(pl=void 0),UX=!1}}; g.T.clone=function(){var J=this.KP;return DB(this.constructor,AJ(J,qV(J),!1))}; g.T.XX=function(){return!!(YN(this.KP)&2)}; g.T.gS=It;g.T.toString=function(){try{return UX=!0,zd(this).toString()}finally{UX=!1}};var FPg,MuQ;ch.prototype.length=function(){return this.K.length}; ch.prototype.end=function(){var J=this.K;this.K=[];return J};var oe=J0(),$Kd=J0(),H8k=J0(),kJK=J0(),vdJ=J0(),WqP=J0(),Saf=J0(),LqU=J0();var Z6E=NH(function(J,R,N,C,X){if(J.J!==2)return!1;Y1(J,Xc(R,C,N),X);return!0},O68),dVB=NH(function(J,R,N,C,X){if(J.J!==2)return!1; Y1(J,Xc(R,C,N,!0),X);return!0},O68),kG=Symbol(),fg=Symbol(),AJk=Symbol(),jtP=Symbol(),Cg,Xy;var ILK=S8(function(J,R,N){if(J.J!==1)return!1;Ie(R,N,OX(J.K));return!0},Fy,Saf),Fqf=S8(function(J,R,N){if(J.J!==1)return!1; J=OX(J.K);Ie(R,N,J===0?void 0:J);return!0},Fy,Saf),Ed_=S8(function(J,R,N,C){if(J.J!==1)return!1; oZ(R,N,C,OX(J.K));return!0},Fy,Saf),MEa=S8(function(J,R,N){if(J.J!==0)return!1; Ie(R,N,Qu(J.K));return!0},E5,vdJ),Kqk=S8(function(J,R,N){if(J.J!==0)return!1; J=Qu(J.K);Ie(R,N,J===0?void 0:J);return!0},E5,vdJ),aLq=S8(function(J,R,N,C){if(J.J!==0)return!1; oZ(R,N,C,Qu(J.K));return!0},E5,vdJ),QUl=S8(function(J,R,N){if(J.J!==0)return!1; Ie(R,N,nl(J.K));return!0},MH,kJK),ndf=S8(function(J,R,N){if(J.J!==0)return!1; J=nl(J.K);Ie(R,N,J===0?void 0:J);return!0},MH,kJK),DK9=S8(function(J,R,N,C){if(J.J!==0)return!1; oZ(R,N,C,nl(J.K));return!0},MH,kJK),sUq=S8(function(J,R,N){if(J.J!==1)return!1; Ie(R,N,Bh(J.K));return!0},function(J,R,N){st8(J,N,aVg(R))},WqP),Bka=Lg(function(J,R,N){if(J.J!==1&&J.J!==2)return!1; R=GD(R,qV(R),N,!1,!1);if(J.J==2)for(N=nl(J.K)>>>0,N=J.K.K+N;J.K.K>>0);return!0},function(J,R,N){R=XC(R); R!=null&&R!=null&&(tQ(J,N,0),yu(J.K,R))},J0()),r_9=S8(function(J,R,N){if(J.J!==0)return!1; Ie(R,N,nl(J.K));return!0},function(J,R,N){R=C6(R); R!=null&&(R=parseInt(R,10),tQ(J,N,0),aBB(J.K,R))},J0());g.M(zs7,gA);g.M(ae,gA);var Bv=[1,2,3];var jUE=[0,Bv,qaE,DK9,Z8L];var mKf=[0,jp,[0,ILK,MEa]];g.M(Qm,gA);var s5=[1,2,3];var VEd=[0,s5,aLq,Ed_,Vl,mKf];g.M(ng,gA);var gd8=[0,jp,jUE,VEd];var UKP=[0,[1,2,3],Vl,[0,rM,-1,O8f],Vl,[0,rM,-1,QUl,O8f],Vl,[0,rM]];g.M(D2,gA);D2.prototype.Lw=function(){var J=wV(this,3,W2,3,void 0,!0);V2(J);return J[void 0]};D2.prototype.K=PfE([0,rM,UKP,dKJ,jp,gd8,sUq,Bka]);g.M(w2E,gA);var o1E=globalThis.trustedTypes,O5;g.dd.prototype.toString=function(){return this.K+""};YG.prototype.toString=function(){return this.K}; g.gd=new YG("about:invalid#zClosurez");var $c8=Vm("tel"),fWg=Vm("sms"),NAE=[Vm("data"),Vm("http"),Vm("https"),Vm("mailto"),Vm("ftp"),new mk(function(J){return/^[^:]*([/?#]|$)/.test(J)})],CiE=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Pv.prototype.toString=function(){return this.K};g.zS.prototype.toString=function(){return this.K+""};g.ym.prototype.toString=function(){return this.K+""};var JL={};g.plK=String.prototype.repeat?function(J,R){return J.repeat(R)}:function(J,R){return Array(R+1).join(J)};g.T=TL.prototype;g.T.isEnabled=function(){if(!g.mB.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{P0:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.T.set=function(J,R,N){var C=!1;if(typeof N==="object"){var X=N.aif;C=N.secure||!1;var u=N.domain||void 0;var f=N.path||void 0;var H=N.P0}if(/[;=\s]/.test(J))throw Error('Invalid cookie name "'+J+'"');if(/[;\r\n]/.test(R))throw Error('Invalid cookie value "'+R+'"');H===void 0&&(H=-1);N=u?";domain="+u:"";f=f?";path="+f:"";C=C?";secure":"";H=H<0?"":H==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+H*1E3)).toUTCString();this.K.cookie=J+"="+R+N+f+H+C+(X!=null?";samesite="+ X:"")}; g.T.get=function(J,R){for(var N=J+"=",C=(this.K.cookie||"").split(";"),X=0,u;X=0;R--)this.remove(J[R])}; var cR=new TL(typeof document=="undefined"?null:document);H7.prototype.compress=function(J){var R,N,C,X;return g.Y(function(u){switch(u.K){case 1:return R=new CompressionStream("gzip"),N=(new Response(R.readable)).arrayBuffer(),C=R.writable.getWriter(),g.q(u,C.write((new TextEncoder).encode(J)),2);case 2:return g.q(u,C.close(),3);case 3:return X=Uint8Array,g.q(u,N,4);case 4:return u.return(new X(u.J))}})}; H7.prototype.isSupported=function(J){return J<1024?!1:typeof CompressionStream!=="undefined"};g.M(kb,gA);v7.prototype.setInterval=function(J){this.intervalMs=J;this.pY&&this.enabled?(this.stop(),this.start()):this.pY&&this.stop()}; v7.prototype.start=function(){var J=this;this.enabled=!0;this.pY||(this.pY=setTimeout(function(){J.tick()},this.intervalMs),this.J=this.K())}; v7.prototype.stop=function(){this.enabled=!1;this.pY&&(clearTimeout(this.pY),this.pY=void 0)}; v7.prototype.tick=function(){var J=this;if(this.enabled){var R=Math.max(this.K()-this.J,0);R0&&(this.V.splice(0,R),this.U+=R);this.V.push(J);this.rH||this.K.enabled||this.K.start()}}; g.T.flush=function(J,R){var N=this;if(this.V.length===0)J&&J();else{var C=Date.now();if(this.tN>C&&this.W0&&(N.W=Date.now(),N.tN=N.W+I),F=UM.K?UM.J(F,UM.K,175237375,!0):UM.J(F,175237375,null,!0),F=F===null?void 0:F)&&(F=C8(F,1,-1),F!==-1&&(N.Z=new g.AT(F<1?1:F,3E5,.1),N.K.setInterval(N.Z.getValue())))}J&&J();N.X=0},S=function(I,F){var a=RU(X,nY,3); var n=MZ7(ju(X,14));n=n==null?void 0:n;g.Yw(N.Z);N.K.setInterval(N.Z.getValue());I===401&&u&&(N.ma=u);n&&(N.U+=n);F===void 0&&(F=N.isRetryable(I));F&&(N.V=a.concat(N.V),N.rH||N.K.enabled||N.K.start());R&&R("net-send-failed",I);++N.X},L=function(){N.network&&N.network.send(v,W,S)}; k?k.then(function(I){v.requestHeaders["Content-Encoding"]="gzip";v.requestHeaders["Content-Type"]="application/binary";v.body=I;v.NC=2;L()},function(){L()}):L()}}}}; g.T.n4=function(){ttf(this.J,!0);this.flush();ttf(this.J,!1)}; g.T.isRetryable=function(J){return 500<=J&&J<600||J===401||J===0};m3.prototype.send=function(J,R,N){var C=this,X,u,f,H,k,v,W,S,L,I;return g.Y(function(F){switch(F.K){case 1:return u=(X=C.QS?new AbortController:void 0)?setTimeout(function(){X.abort()},J.timeoutMillis):void 0,g.Ef(F,2,3),f=Object.assign({},{method:J.requestType, headers:Object.assign({},J.requestHeaders)},J.body&&{body:J.body},J.withCredentials&&{credentials:"include"},{signal:J.timeoutMillis&&X?X.signal:null}),g.q(F,fetch(J.url,f),5);case 5:H=F.J;if(H.status!==200){(k=N)==null||k(H.status);F.ZM(3);break}if((v=R)==null){F.ZM(7);break}return g.q(F,H.text(),8);case 8:v(F.J);case 7:case 3:g.aQ(F);clearTimeout(u);g.QE(F,0);break;case 2:W=g.K2(F);switch((S=W)==null?void 0:S.name){case "AbortError":(L=N)==null||L(408);break;default:(I=N)==null||I(400)}F.ZM(3)}})}; m3.prototype.R5=function(){return 4};g.M(Vk,g.l);Vk.prototype.wT=function(){this.Z=!0;return this}; Vk.prototype.build=function(){this.network||(this.network=new m3);var J=new jj({logSource:this.logSource,cO:this.cO?this.cO:QZB,sessionIndex:this.sessionIndex,meQ:this.Id,E4:this.V,rH:!1,wT:this.Z,Qj:this.Qj,network:this.network});g.P(this,J);if(this.J){var R=this.J,N=Zr(J.J);IZ(N,7,R)}Math.random()<.5&&(J.S=new H7);this.componentId&&(J.componentId=this.componentId);this.Ll&&(J.Ll=this.Ll);this.pageId&&(J.pageId=this.pageId);this.K&&((N=this.K)?(J.experimentIds||(J.experimentIds=new kb),R=J.experimentIds, N=N.SV(),IZ(R,4,N)):J.experimentIds&&gV(J.experimentIds,4));x9E(J.J);this.network.s5&&this.network.s5(this.logSource);this.network.m7B&&this.network.m7B(J);return J};g.M(g3,g.l);g3.prototype.flush=function(J){J=J||[];if(J.length){for(var R=new w2E,N=[],C=0;C-1?(R=J[f],N||(R.Hl=!1)):(R=new $H2(R,this.src,u,!!C,X),R.Hl=N,J.push(R));return R}; g.T.remove=function(J,R,N,C){J=J.toString();if(!(J in this.listeners))return!1;var X=this.listeners[J];R=yk(X,R,N,C);return R>-1?(w3(X[R]),g.h_(X,R),X.length==0&&(delete this.listeners[J],this.K--),!0):!1}; g.T.removeAll=function(J){J=J&&J.toString();var R=0,N;for(N in this.listeners)if(!J||N==J){for(var C=this.listeners[N],X=0;X-1?J[X]:null}; g.T.hasListener=function(J,R){var N=J!==void 0,C=N?J.toString():"",X=R!==void 0;return g.B7(this.listeners,function(u){for(var f=0;f>>0);g.GE(g.iD,g.l);g.iD.prototype[f2E]=!0;g.T=g.iD.prototype;g.T.addEventListener=function(J,R,N,C){g.xw(this,J,R,N,C)}; g.T.removeEventListener=function(J,R,N,C){I2g(this,J,R,N,C)}; g.T.dispatchEvent=function(J){var R=this.xM;if(R){var N=[];for(var C=1;R;R=R.xM)N.push(R),++C}R=this.Pr;C=J.type||J;if(typeof J==="string")J=new g.Pt(J,R);else if(J instanceof g.Pt)J.target=J.target||R;else{var X=J;J=new g.Pt(C,R);g.UF(J,X)}X=!0;var u;if(N)for(u=N.length-1;!J.J&&u>=0;u--){var f=J.currentTarget=N[u];X=uD(f,C,!0,J)&&X}J.J||(f=J.currentTarget=R,X=uD(f,C,!0,J)&&X,J.J||(X=uD(f,C,!1,J)&&X));if(N)for(u=0;!J.J&&u0){this.J--;var J=this.K;this.K=J.next;J.next=null}else J=this.V();return J};var TF;H_.prototype.add=function(J,R){var N=QeP.get();N.set(J,R);this.J?this.J.next=N:this.K=N;this.J=N}; H_.prototype.remove=function(){var J=null;this.K&&(J=this.K,this.K=this.K.next,this.K||(this.J=null),J.next=null);return J}; var QeP=new fC(function(){return new k7},function(J){return J.reset()}); k7.prototype.set=function(J,R){this.VA=J;this.scope=R;this.next=null}; k7.prototype.reset=function(){this.next=this.scope=this.VA=null};var v_,W_=!1,Kkk=new H_;se7.prototype.reset=function(){this.context=this.J=this.V=this.K=null;this.Z=!1}; var Bd2=new fC(function(){return new se7},function(J){J.reset()}); g.KC.prototype.then=function(J,R,N){return V8B(this,Di(typeof J==="function"?J:null),Di(typeof R==="function"?R:null),N)}; g.KC.prototype.$goog_Thenable=!0;g.T=g.KC.prototype;g.T.vY=function(J,R){return V8B(this,null,Di(J),R)}; g.T.catch=g.KC.prototype.vY;g.T.cancel=function(J){if(this.K==0){var R=new Zi(J);g.Sz(function(){Y5g(this,R)},this)}}; g.T.wVC=function(J){this.K=0;Mq(this,2,J)}; g.T.Kjp=function(J){this.K=0;Mq(this,3,J)}; g.T.cG=function(){for(var J;J=r0E(this);)je8(this,J,this.K,this.D);this.S=!1}; var l2E=L8;g.GE(Zi,vl);Zi.prototype.name="cancel";g.GE(g.dt,g.iD);g.T=g.dt.prototype;g.T.enabled=!1;g.T.e2=null;g.T.setInterval=function(J){this.dV=J;this.e2&&this.enabled?(this.stop(),this.start()):this.e2&&this.stop()}; g.T.NLC=function(){if(this.enabled){var J=g.yE()-this.PB;J>0&&J0&&(this.getStatus(),this.S=setTimeout(this.D2.bind(this), this.nC)),this.getStatus(),this.W=!0,this.K.send(J),this.W=!1}catch(f){this.getStatus(),HKk(this,f)}}; g.T.D2=function(){typeof Nl!="undefined"&&this.K&&(this.Z="Timed out after "+this.nC+"ms, aborting",this.J=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.T.abort=function(J){this.K&&this.V&&(this.getStatus(),this.V=!1,this.U=!0,this.K.abort(),this.U=!1,this.J=J||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),RX(this))}; g.T.Fk=function(){this.K&&(this.V&&(this.V=!1,this.U=!0,this.K.abort(),this.U=!1),RX(this,!0));g.oX.gL.Fk.call(this)}; g.T.Xf=function(){this.QO()||(this.ma||this.W||this.U?kLQ(this):this.lf8())}; g.T.lf8=function(){kLQ(this)}; g.T.isActive=function(){return!!this.K}; g.T.isComplete=function(){return g.Cv(this)==4}; g.T.getStatus=function(){try{return g.Cv(this)>2?this.K.status:-1}catch(J){return-1}}; g.T.getResponseHeader=function(J){if(this.K&&this.isComplete())return J=this.K.getResponseHeader(J),J===null?void 0:J}; g.T.getLastError=function(){return typeof this.Z==="string"?this.Z:String(this.Z)};Tr.prototype.send=function(J,R,N){R=R===void 0?function(){}:R; N=N===void 0?function(){}:N; Tqg(J.url,function(C){C=C.target;X0(C)?R(g.io(C)):N(C.getStatus())},J.requestType,J.body,J.requestHeaders,J.timeoutMillis,J.withCredentials)}; Tr.prototype.R5=function(){return 1};Hu.prototype.done=function(){this.logger.gJ(this.event,$h()-this.startTime)}; g.M(kh,TJ);g.M(Wu,kh);g.T=Wu.prototype;g.T.Zr=function(){}; g.T.m3=function(){}; g.T.gJ=function(){}; g.T.bf=function(){}; g.T.HN=function(){}; g.T.UZ=function(J,R,N){return N}; g.T.Wx=function(){}; g.T.fO=function(){}; g.T.kU=function(){}; g.T.Z8=function(){}; g.M(SR,kh);g.T=SR.prototype;g.T.update=function(J){this.logger.dispose();this.logger=J}; g.T.m3=function(J){this.logger.m3(J)}; g.T.gJ=function(J,R){this.logger.gJ(J,R)}; g.T.bf=function(J){this.logger.bf(J)}; g.T.HN=function(){this.logger.HN()}; g.T.UZ=function(J,R,N){return this.logger.UZ(J,R,N)}; g.T.Wx=function(J){this.logger.Wx(J)}; g.T.fO=function(J){this.logger.fO(J)}; g.T.kU=function(J){this.logger.kU(J)}; g.T.Z8=function(J){this.logger.Z8(J)}; g.T.Zr=function(J){this.logger.Zr(J)}; g.M(Lv,g.l);g.M(IX,kh);g.T=IX.prototype;g.T.Zr=function(J){this.metrics.CBa.py(J,this.LL)}; g.T.m3=function(J){this.S?this.metrics.eventCount.K(J,this.LL):J==="t"?this.metrics.iCn.K(this.LL):J==="n"?this.metrics.IM8.K(this.LL):(J==="h"||J==="u"||J==="k")&&(J=this.K.get(J))&&this.metrics.OCf.K(J,this.LL)}; g.T.gJ=function(J,R){this.S?this.metrics.mB.py(R,J,this.Jk,this.LL):J==="t"?this.metrics.VQC.py(R,this.LL):J==="n"?this.metrics.ZCB.py(R,this.LL):J==="h"||J==="u"||J==="k"?(J=this.K.get(J))&&this.metrics.qBN.py(R,J,this.LL):this.metrics.mB.py(R,J,this.Jk,this.LL)}; g.T.bf=function(J){var R=this.J.get(J);R?(this.metrics.tQN.K(this.LL,R),this.bC&&this.metrics.errorCount.K(J,this.Jk,this.LL)):this.metrics.errorCount.K(J,this.Jk,this.LL)}; g.T.UZ=function(J,R,N){function C(f){if(!X.QO()){var H=$h()-u;X.metrics.UeO.py(H,J,R,f,X.Jk,X.LL)}} var X=this,u=$h();N.then(function(){C(0)},function(f){f instanceof rt?C(f.code):C(-1)}); return N}; g.T.Wx=function(J){this.metrics.CuB.K(J,this.Jk,this.LL)}; g.T.fO=function(J){this.metrics.zl.K(J,this.Jk,this.LL)}; g.T.kU=function(J){this.metrics.Qmf.K(J,this.Jk,this.LL)}; g.M(F0,IX);F0.prototype.Z8=function(J){var R=this;this.V.dispose();this.Z&&this.service.dispose();this.service=this.options.ZQ("37",this.options.Qu.concat(J));this.V=new Lv(function(){return void R.service.dD()},this.options.EN); this.metrics=SF7(this.service);this.U=J}; F0.prototype.HN=function(){Ifn(this.V)};g.M(Ey,gA);g.M(Ml,gA);g.M(Kv,gA);var ef_=Kg(Kv),EbE=function(J){return UW(function(R){return R instanceof J&&!(YN(R.KP)&2)})}(Kv); Kv.messageId="bfkj";g.M(NK,gA);g.M(aX,gA);var MF8=Kg(aX);g.M(nv,g.l);nv.prototype.snapshot=function(J){if(this.QO())throw Error("Already disposed");this.logger.m3("n");var R=this.logger.share();return this.V.then(function(N){var C=N.yS;return new Promise(function(X){var u=new Hu(R,"n");C(function(f){u.done();R.Zr(f.length);R.HN();R.dispose();X(f)},[J.lf, J.HM,J.NU,J.zf])})})}; nv.prototype.j5=function(J){var R=this;if(this.QO())throw Error("Already disposed");this.logger.m3("n");var N=vu(this.logger,function(){return R.Z([J.lf,J.HM,J.NU,J.zf])},"n"); this.logger.Zr(N.length);this.logger.HN();return N}; nv.prototype.uL=function(J){this.V.then(function(R){var N;(N=R.aa3)==null||N(J)})}; nv.prototype.hA=function(){return this.logger.share()}; g.M(Ds,Error);g.M(Zs,gA);g.M(dZ,gA);g.M(ql,gA);Ah.prototype.W6=function(J,R){var N=this,C,X,u,f,H;return g.Y(function(k){if(k.K==1){var v=new Zs;C=Fc(v,1,N.NT);J&&Fc(C,2,J);R&&Fc(C,3,R);X=N.K();return g.q(k,N.client.create(C,X),2)}u=k.J;f=nE(hJ(u,2));if(f.length){v=k.return;var W=new Uint8Array(f.length);for(var S=0;S0;)R[N++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(J%62),J=Math.floor(J/62);return R.join("")}};var GL2;g.M(eR,g.l);eR.prototype.QE=function(J,R){var N=this.US(J);R==null||R(N);return vu(this.logger,function(){return g.SZ(N,2)},this.K)}; GL2=Symbol.dispose;g.M(hh,eR);hh.prototype.US=function(J,R){var N=this;++this.U>=this.S&&this.V.resolve();var C=J();J=vu(this.logger,function(){return N.Z(C)},"C"); if(J===void 0)throw new Ds(17,"YNJ:Undefined");if(!(J instanceof Uint8Array))throw new Ds(18,"ODM:Invalid");R==null||R(J);return J}; g.M(Gr,eR);Gr.prototype.US=function(){return this.Z}; g.M(bo,eR);bo.prototype.US=function(){var J=this;return vu(this.logger,function(){return IG(J.Z)},"d")}; bo.prototype.QE=function(){return this.Z}; g.M(th,eR);th.prototype.US=function(){if(this.Z)return this.Z;this.Z=bKg(this,function(J){return"_"+yL7(J)}); return bKg(this,function(J){return J})}; g.M(Jn,eR);Jn.prototype.US=function(J){var R=J();if(R.length>118)throw new Ds(19,"DFO:Invalid");J=Math.floor(Date.now()/1E3);var N=[Math.random()*255,Math.random()*255],C=N.concat([this.Z&255,this.clientState],[J>>24&255,J>>16&255,J>>8&255,J&255]);J=new Uint8Array(2+C.length+R.length);J[0]=34;J[1]=C.length+R.length;J.set(C,2);J.set(R,2+C.length);R=J.subarray(2);for(C=N=N.length;C150))try{this.cache=new zQB(J,this.logger)}catch(R){this.reportError(new Ds(22,"GBJ:init",R))}}; oy.prototype.reportError=function(J){this.logger.bf(J.code);this.onError(J);return J}; (function(J){return UW(function(R){if(!Qy(R))return!1;for(var N=g.K(Object.entries(J)),C=N.next();!C.done;C=N.next()){var X=g.K(C.value);C=X.next().value;X=X.next().value;if(!(C in R)){if(X.QhB===!0)continue;return!1}if(!X(R[C]))return!1}return!0})})({Bw:function(J){return UW(function(R){return R instanceof J})}(rZ)},"");g.M(Ny,gA);var c_l=Kg(Ny);Xtn.prototype.getMetadata=function(){return this.metadata};CB.prototype.getMetadata=function(){return this.metadata}; CB.prototype.getStatus=function(){return this.status};X3.prototype.D=function(J,R){R=R===void 0?{}:R;return new Xtn(J,this,R)}; X3.prototype.getName=function(){return this.name};var hfU=new X3("/google.internal.waa.v1.Waa/Create",Zs,Ny,function(J){return J.SV()},c_l);g.M(iE,gA);var s42=new X3("/google.internal.waa.v1.Waa/GenerateIT",dZ,iE,function(J){return J.SV()},Kg(iE));g.M(uE,gA);var y_k=new X3("/google.internal.waa.v1.Waa/Ping",ql,uE,function(J){return J.SV()},Kg(uE));var ATg=new Set(["SAPISIDHASH","APISIDHASH"]);var B38=Promise;g.M(fB,gA);fB.prototype.getValue=function(){var J=ju(this,2);if(Array.isArray(J)||J instanceof gA)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return hJ(this,2)};g.M(Tp,gA);Tp.prototype.getMessage=function(){return Wh(this,2)}; var $gQ=Kg(Tp);$V.prototype.Jw=function(J,R){J=="data"?this.V.push(R):J=="metadata"?this.U.push(R):J=="status"?this.S.push(R):J=="end"?this.Z.push(R):J=="error"&&this.J.push(R);return this}; $V.prototype.removeListener=function(J,R){J=="data"?WO(this.V,R):J=="metadata"?WO(this.U,R):J=="status"?WO(this.S,R):J=="end"?WO(this.Z,R):J=="error"&&WO(this.J,R);return this}; $V.prototype.cancel=function(){this.K.abort()}; $V.prototype.cancel=$V.prototype.cancel;$V.prototype.removeListener=$V.prototype.removeListener;$V.prototype.on=$V.prototype.Jw;g.GE(g.So,xHg);g.So.prototype.K=function(){var J=new LB(this.Z,this.V);this.J&&J.setCredentialsMode(this.J);return J}; g.So.prototype.setCredentialsMode=function(J){this.J=J}; g.GE(LB,g.iD);g.T=LB.prototype;g.T.open=function(J,R){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.nC=J;this.W=R;this.readyState=1;Iy(this)}; g.T.send=function(J){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.K=!0;var R={headers:this.X,method:this.nC,credentials:this.U,cache:void 0};J&&(R.body=J);(this.dn||g.mB).fetch(new Request(this.W,R)).then(this.Tn.bind(this),this.qy.bind(this))}; g.T.abort=function(){this.response=this.responseText="";this.X=new Headers;this.status=0;this.V&&this.V.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.K&&this.readyState!=4&&(this.K=!1,F3(this));this.readyState=0}; g.T.Tn=function(J){if(this.K&&(this.Z=J,this.J||(this.status=this.Z.status,this.statusText=this.Z.statusText,this.J=J.headers,this.readyState=2,Iy(this)),this.K&&(this.readyState=3,Iy(this),this.K)))if(this.responseType==="arraybuffer")J.arrayBuffer().then(this.Aj.bind(this),this.qy.bind(this));else if(typeof g.mB.ReadableStream!=="undefined"&&"body"in J){this.V=J.body.getReader();if(this.S){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.D=new TextDecoder;HY8(this)}else J.text().then(this.SC.bind(this),this.qy.bind(this))}; g.T.tj=function(J){if(this.K){if(this.S&&J.value)this.response.push(J.value);else if(!this.S){var R=J.value?J.value:new Uint8Array(0);if(R=this.D.decode(R,{stream:!J.done}))this.response=this.responseText+=R}J.done?F3(this):Iy(this);this.readyState==3&&HY8(this)}}; g.T.SC=function(J){this.K&&(this.response=this.responseText=J,F3(this))}; g.T.Aj=function(J){this.K&&(this.response=J,F3(this))}; g.T.qy=function(){this.K&&F3(this)}; g.T.setRequestHeader=function(J,R){this.X.append(J,R)}; g.T.getResponseHeader=function(J){return this.J?this.J.get(J.toLowerCase())||"":""}; g.T.getAllResponseHeaders=function(){if(!this.J)return"";for(var J=[],R=this.J.entries(),N=R.next();!N.done;)N=N.value,J.push(N[0]+": "+N[1]),N=R.next();return J.join("\r\n")}; g.T.setCredentialsMode=function(J){this.U=J}; Object.defineProperty(LB.prototype,"withCredentials",{get:function(){return this.U==="include"}, set:function(J){this.setCredentialsMode(J?"include":"same-origin")}});g.Er.prototype.toString=function(){var J=[],R=this.U;R&&J.push(sr(R,GJK,!0),":");var N=this.K;if(N||R=="file")J.push("//"),(R=this.X)&&J.push(sr(R,GJK,!0),"@"),J.push(g.Ns(N).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),N=this.V,N!=null&&J.push(":",String(N));if(N=this.J)this.K&&N.charAt(0)!="/"&&J.push("/"),J.push(sr(N,N.charAt(0)=="/"?b8J:tEP,!0));(N=this.Z.toString())&&J.push("?",N);(N=this.S)&&J.push("#",sr(N,xKL));return J.join("")}; g.Er.prototype.resolve=function(J){var R=this.clone(),N=!!J.U;N?g.My(R,J.U):N=!!J.X;N?R.X=J.X:N=!!J.K;N?g.KB(R,J.K):N=J.V!=null;var C=J.J;if(N)g.ay(R,J.V);else if(N=!!J.J){if(C.charAt(0)!="/")if(this.K&&!this.J)C="/"+C;else{var X=R.J.lastIndexOf("/");X!=-1&&(C=R.J.slice(0,X+1)+C)}X=C;if(X==".."||X==".")C="";else if(g.K8(X,"./")||g.K8(X,"/.")){C=Ea(X,"/");X=X.split("/");for(var u=[],f=0;f1||u.length==1&&u[0]!="")&&u.pop(), C&&f==X.length&&u.push("")):(u.push(H),C=!0)}C=u.join("/")}else C=X}N?R.J=C:N=J.Z.toString()!=="";N?Qc(R,J.Z.clone()):N=!!J.S;N&&(R.S=J.S);return R}; g.Er.prototype.clone=function(){return new g.Er(this)}; var GJK=/[#\/\?@]/g,tEP=/[#\?:]/g,b8J=/[#\?]/g,vwg=/[#\?@]/g,xKL=/#/g;g.T=D5.prototype;g.T.add=function(J,R){Z5(this);this.V=null;J=d2(this,J);var N=this.K.get(J);N||this.K.set(J,N=[]);N.push(R);this.J=this.J+1;return this}; g.T.remove=function(J){Z5(this);J=d2(this,J);return this.K.has(J)?(this.V=null,this.J=this.J-this.K.get(J).length,this.K.delete(J)):!1}; g.T.clear=function(){this.K=this.V=null;this.J=0}; g.T.isEmpty=function(){Z5(this);return this.J==0}; g.T.forEach=function(J,R){Z5(this);this.K.forEach(function(N,C){N.forEach(function(X){J.call(R,X,C,this)},this)},this)}; g.T.b4=function(){Z5(this);for(var J=Array.from(this.K.values()),R=Array.from(this.K.keys()),N=[],C=0;C0?String(J[0]):R}; g.T.toString=function(){if(this.V)return this.V;if(!this.K)return"";for(var J=[],R=Array.from(this.K.keys()),N=0;N>>3;u.V!=1&&u.V!=2&&u.V!=15&&r2(u,f,H,"unexpected tag");u.K=1;u.J=0;u.Z=0} function N(k){u.Z++;u.Z==5&&k&240&&r2(u,f,H,"message length too long");u.J|=(k&127)<<(u.Z-1)*7;k&128||(u.K=2,u.X=0,typeof Uint8Array!=="undefined"?u.U=new Uint8Array(u.J):u.U=Array(u.J),u.J==0&&X())} function C(k){u.U[u.X++]=k;u.X==u.J&&X()} function X(){if(u.V<15){var k={};k[u.V]=u.U;u.D.push(k)}u.K=0} for(var u=this,f=J instanceof Array?J:new Uint8Array(J),H=0;H0?J:null};jo.prototype.isInputValid=function(){return this.K===null}; jo.prototype.iB=function(){return this.K}; jo.prototype.Vi=function(){return!1}; jo.prototype.parse=function(J){this.K!==null&&K3n(this,J,"stream already broken");var R=null;try{var N=this.V;N.V||Mjg(N,J,"stream already broken");N.K+=J;var C=Math.floor(N.K.length/4);if(C==0)var X=null;else{try{var u=lLB(N.K.slice(0,C*4))}catch(f){Mjg(N,N.K,f.message)}N.J+=C*4;N.K=N.K.slice(C*4);X=u}R=X===null?null:this.Z.parse(X)}catch(f){K3n(this,J,f.message)}this.J+=J.length;return R};var oNK={INIT:0,eE:1,P2:2,fg:3,LG:4,rI:5,STRING:6,C6:7,SY:8,HP:9,Ng:10,bk:11,X3:12,sj:13,jH:14,fA:15,YH:16,hg:17,pM:18,wQ:19,GB:20};g.T=Vc.prototype;g.T.isInputValid=function(){return this.U!=3}; g.T.iB=function(){return this.W}; g.T.done=function(){return this.U===2}; g.T.Vi=function(){return!1}; g.T.parse=function(J){function R(){for(;L0;)if(F=J[L++], u.X===4?u.X=0:u.X++,!F)break a;if(F==='"'&&!u.D){u.K=C();break}if(F==="\\"&&!u.D&&(u.D=!0,F=J[L++],!F))break;if(u.D)if(u.D=!1,F==="u"&&(u.X=1),F=J[L++])continue;else break;H.lastIndex=L;F=H.exec(J);if(!F){L=J.length+1;break}L=F.index+1;F=J[F.index];if(!F)break}u.V+=L-a;continue;case k.HP:if(!F)continue;F==="r"?u.K=k.Ng:g2(u,J,L);continue;case k.Ng:if(!F)continue;F==="u"?u.K=k.bk:g2(u,J,L);continue;case k.bk:if(!F)continue;F==="e"?u.K=C():g2(u,J,L);continue;case k.X3:if(!F)continue;F==="a"?u.K=k.sj: g2(u,J,L);continue;case k.sj:if(!F)continue;F==="l"?u.K=k.jH:g2(u,J,L);continue;case k.jH:if(!F)continue;F==="s"?u.K=k.fA:g2(u,J,L);continue;case k.fA:if(!F)continue;F==="e"?u.K=C():g2(u,J,L);continue;case k.YH:if(!F)continue;F==="u"?u.K=k.hg:g2(u,J,L);continue;case k.hg:if(!F)continue;F==="l"?u.K=k.pM:g2(u,J,L);continue;case k.pM:if(!F)continue;F==="l"?u.K=C():g2(u,J,L);continue;case k.wQ:F==="."?u.K=k.GB:g2(u,J,L);continue;case k.GB:if("0123456789.eE+-".indexOf(F)!==-1)continue;else L--,u.V--,u.K= C();continue;default:g2(u,J,L)}}} function C(){var F=f.pop();return F!=null?F:k.eE} function X(F){u.J>1||(F||(F=S===-1?u.Z+J.substring(W,L):J.substring(S,L)),u.nC?u.S.push(F):u.S.push(JSON.parse(F)),S=L)} for(var u=this,f=u.dn,H=u.ma,k=oNK,v=J.length,W=0,S=-1,L=0;L0?(I=u.S,u.S=[],I):null}return null};Ur.prototype.isInputValid=function(){return this.U===null}; Ur.prototype.iB=function(){return this.U}; Ur.prototype.Vi=function(){return!1}; Ur.prototype.parse=function(J){function R(k){u.J=6;u.U="The stream is broken @"+u.K+"/"+f+". Error: "+k+". With input:\n";throw Error(u.U);} function N(){u.V=new Vc({PT3:!0,Ao:!0})} function C(k){if(k)for(var v=0;v1)&&R("extra status: "+k);u.S=!0;var v={};v[2]=k[0];u.Z.push(v)}} for(var u=this,f=0;f0?(J=u.Z,u.Z=[],J):null};pB.prototype.f4=function(){return this.K}; pB.prototype.getStatus=function(){return this.U}; pB.prototype.nC=function(J){J=J.target;try{if(J==this.K)a:{var R=g.Cv(this.K),N=this.K.J,C=this.K.getStatus(),X=g.io(this.K);J=[];if(g.uo(this.K)instanceof Array){var u=g.uo(this.K);u.length>0&&u[0]instanceof Uint8Array&&(this.W=!0,J=u)}if(!(R<3||R==3&&!X&&J.length==0))if(C=C==200||C==206,R==4&&(N==8?lE(this,7):N==7?lE(this,8):C||lE(this,3)),this.J||(this.J=ar8(this.K),this.J==null&&lE(this,5)),this.U>2)PO(this);else{if(J.length>this.V){var f=J.length;N=[];try{if(this.J.Vi())for(var H=0;Hthis.V){H=X.slice(this.V);this.V=X.length;try{var v=this.J.parse(H);v!=null&&this.Z&&this.Z(v)}catch(W){lE(this,5);PO(this);break a}}R==4?(X.length!= 0||this.W?lE(this,2):lE(this,4),PO(this)):lE(this,1)}}}catch(W){lE(this,6),PO(this)}};g.T=QPB.prototype;g.T.Jw=function(J,R){var N=this.J[J];N||(N=[],this.J[J]=N);N.push(R);return this}; g.T.addListener=function(J,R){this.Jw(J,R);return this}; g.T.removeListener=function(J,R){var N=this.J[J];N&&g.y9(N,R);(J=this.K[J])&&g.y9(J,R);return this}; g.T.once=function(J,R){var N=this.K[J];N||(N=[],this.K[J]=N);N.push(R);return this}; g.T.hqk=function(J){var R=this.J.data;R&&nwY(J,R);(R=this.K.data)&&nwY(J,R);this.K.data=[]}; g.T.ZYB=function(){switch(this.V.getStatus()){case 1:zp(this,"readable");break;case 5:case 6:case 4:case 7:case 3:zp(this,"error");break;case 8:zp(this,"close");break;case 2:zp(this,"end")}};DgQ.prototype.serverStreaming=function(J,R,N,C){var X=this,u=J.substring(0,J.length-C.name.length);return sPE(function(f){var H=f.uI,k=f.getMetadata(),v=ZYQ(X,!1);k=dgf(X,k,v,u+H.getName());var W=q2Q(v,H.J,!0);f=H.K(f.zt);v.send(k,"POST",f);return W},this.Z).call(this,C.D(R,N))};eo.prototype.create=function(J,R){return Yh(this.K,this.J+"/$rpc/google.internal.waa.v1.Waa/Create",J,R||{},hfU)}; eo.prototype.ping=function(J,R){return Yh(this.K,this.J+"/$rpc/google.internal.waa.v1.Waa/Ping",J,R||{},y_k)};var RAq=1,om=new WeakMap;g.M(w2,g.l);w2.prototype.signal=function(){var J=new Gp(!1);this.signals.add(J);g.P(this,J);return J}; w2.prototype.r_=function(J){return yc(this,J).r_()}; g.M(Gp,g.l);g.T=Gp.prototype;g.T.b_=function(){var J=this,R=RAq++;bE(function(){Y2B(J,R)}); return R}; g.T.detach=function(J){var R=this;bE(function(){var N=R.slots.get(J);N&&N.kp()})}; g.T.value=function(J){return this.promise(!0,J)}; g.T.r_=function(){return this.CK}; g.T.next=function(J){return this.promise(!1,J)}; g.T.promise=function(J,R){var N=this,C=A0E();bE(function(){if(N.QO())C.reject(new Zi("Signal initially disposed"));else if(R&&R.QO())C.reject(new Zi("Owner initially disposed"));else if(J&&N.Tr&&N.Gz)C.resolve(N.CK);else if(N.jA.add(C),Os(C.promise,function(){N.jA.delete(C)}),R){var X=function(){C.reject(new Zi("Owner asynchronously disposed"))}; Os(C.promise,function(){var u=om.get(R);u&&g.y9(u,X)}); mgB(R,X)}}); return C.promise}; g.T.Fk=function(){var J=this;g.l.prototype.Fk.call(this);bE(function(){for(var R=g.K(J.slots.values()),N=R.next();!N.done;N=R.next())N=N.value.kp,N();J.slots.clear();R=g.K(J.jA);for(N=R.next();!N.done;N=R.next())N.value.reject(new Zi("Signal asynchronously disposed"));J.jA.clear()})}; var xV=[],J2=!1;g.M(Rm,g.l);Rm.prototype.start=function(){var J=this;if(this.QO())throw new CN("Cannot start a disposed timer.");if(!this.S){this.Z=0;if(this.D){var R=Date.now();this.handle=setInterval(function(){J.Z=J.milliseconds>0?Math.trunc((Date.now()-R)/J.milliseconds):J.Z+1;var N;(N=J.J)==null||N.resolve();J.J=void 0;if(J.V){var C;(C=J.K)!=null&&tn(yc(C,J.V),J)}J.nP.V5(J)},this.milliseconds)}else this.handle=setTimeout(function(){J.state=3; J.handle=void 0;J.Z=1;var N;(N=J.J)==null||N.resolve();J.J=void 0;if(J.V){var C;(C=J.K)!=null&&tn(yc(C,J.V),J)}J.nP.V5(J)},this.milliseconds); this.state=1}}; Rm.prototype.cancel=function(){if(this.S){this.clear();this.state=2;var J;(J=this.J)==null||J.reject(new Nx);var R;(R=this.nP.Qa)==null||R.call(this);if(this.U){var N;(N=this.K)!=null&&tn(yc(N,this.U))}}}; Rm.prototype.Fk=function(){this.clear();var J;(J=this.J)==null||J.reject(new CN);this.state=4;g.l.prototype.Fk.call(this)}; Rm.prototype.clear=function(){this.D?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; g.XB.Object.defineProperties(Rm.prototype,{S:{configurable:!0,enumerable:!0,get:function(){return this.state===1}}, isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}}, isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}}, tick:{configurable:!0,enumerable:!0,get:function(){return this.Z}}, X:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.J!=null||(this.J=new g.Qt),this.J.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new Nx("Timer has been cancelled."));case 4:return Promise.reject(new CN("Timer has been disposed."));default:xN(this.state)}}}, V5:{configurable:!0,enumerable:!0,get:function(){if(this.QO())throw new CN("Cannot attach a signal to a disposed timer.");this.V||(this.K!=null||(this.K=new w2(this)),this.V=this.K.signal());return this.V}}, Qa:{configurable:!0,enumerable:!0,get:function(){if(this.QO())throw new CN("Cannot attach a signal to a disposed timer.");this.U||(this.K!=null||(this.K=new w2(this)),this.U=this.K.signal());return this.U}}}); g.M(Nx,vl);g.M(CN,vl);g.M(XM,oy);g.T=XM.prototype;g.T.isReady=function(){return!!this.K}; g.T.ready=function(){var J=this;return g.Y(function(R){return g.q(R,J.V.promise,0)})}; g.T.W6=function(J){return ptE(this,this.logger.UZ("c",J===void 0?1:J,this.im.W6(Bu().K,null)),new Ds(10,"JVZ:Timeout"))}; g.T.prefetch=function(){this.state===1&&(this.sT=this.W6())}; g.T.start=function(){if(this.state===1){this.state=2;var J=new Hu(this.logger,"r");this.ready().finally(function(){return void J.done()}); PuQ(this)}}; g.T.US=function(J){zon(this,J);return Cuf(this,UgE(J),!1)}; g.T.QE=function(J){zon(this,J);return Cuf(this,UgE(J),!0)};var hoE={NONE:0,tPQ:1},BtP={t0:0,IRM:1,Vra:2,ZXk:3},PZ={K$:"a",g5k:"d",VIDEO:"v"};ut.prototype.isVisible=function(){return this.aA?this.LY>=.3:this.LY>=.5};var Im={oeC:0,l9p:1},DqQ={NONE:0,UMB:1,NVM:2};fN.prototype.getValue=function(){return this.J}; g.M(TP,fN);TP.prototype.V=function(J){this.J===null&&g.AL(this.Z,J)&&(this.J=J)}; g.M($y,fN);$y.prototype.V=function(J){this.J===null&&typeof J==="number"&&(this.J=J)}; g.M(HZ,fN);HZ.prototype.V=function(J){this.J===null&&typeof J==="string"&&(this.J=J)};ky.prototype.disable=function(){this.J=!1}; ky.prototype.enable=function(){this.J=!0}; ky.prototype.isEnabled=function(){return this.J}; ky.prototype.reset=function(){this.K={};this.J=!0;this.V={}};var pz=document,KN=window;var dlg=!g.sp&&!mq();FM.prototype.now=function(){return 0}; FM.prototype.J=function(){return 0}; FM.prototype.V=function(){return 0}; FM.prototype.K=function(){return 0};g.M(Mx,FM);Mx.prototype.now=function(){return E1()&&KN.performance.now?KN.performance.now():FM.prototype.now.call(this)}; Mx.prototype.J=function(){return E1()&&KN.performance.memory?KN.performance.memory.totalJSHeapSize||0:FM.prototype.J.call(this)}; Mx.prototype.V=function(){return E1()&&KN.performance.memory?KN.performance.memory.usedJSHeapSize||0:FM.prototype.V.call(this)}; Mx.prototype.K=function(){return E1()&&KN.performance.memory?KN.performance.memory.jsHeapSizeLimit||0:FM.prototype.K.call(this)};var bYY=Fq(function(){var J=!1;try{var R=Object.defineProperty({},"passive",{get:function(){J=!0}}); g.mB.addEventListener("test",null,R)}catch(N){}return J});tjn.prototype.isVisible=function(){return nN(pz)===1};var JB2={De7:"allow-forms",y27:"allow-modals",eVQ:"allow-orientation-lock",Hba:"allow-pointer-lock",NwO:"allow-popups",bbC:"allow-popups-to-escape-sandbox",zVp:"allow-presentation",XVM:"allow-same-origin",aIC:"allow-scripts",sm3:"allow-top-navigation",jmk:"allow-top-navigation-by-user-activation"},CDY=Fq(function(){return o7B()});var fi8=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");ZT.prototype.Yi=function(J,R,N){J=J+"//"+R+N;var C=kFf(this)-N.length;if(C<0)return"";this.K.sort(function(v,W){return v-W}); N=null;R="";for(var X=0;X=k.length){C-=k.length;J+=k;R=this.V;break}N=N==null?u:N}}C="";N!=null&&(C=""+R+"trn="+N);return J+C};V8.prototype.setInterval=function(J,R){return KN.setInterval(J,R)}; V8.prototype.clearInterval=function(J){KN.clearInterval(J)}; V8.prototype.setTimeout=function(J,R){return KN.setTimeout(J,R)}; V8.prototype.clearTimeout=function(J){KN.clearTimeout(J)};g.M(U1,gA);U1.prototype.K=PfE([0,Fqf,Kqk,-2,ndf]);var sRn={ku3:1,Uf:2,Iha:3};OCg.prototype.Xx=function(J){if(typeof J==="string"&&J.length!=0){var R=this.iS;if(R.J){J=J.split("&");for(var N=J.length-1;N>=0;N--){var C=J[N].split("="),X=decodeURIComponent(C[0]);C.length>1?(C=decodeURIComponent(C[1]),C=/^[0-9]+$/g.exec(C)?parseInt(C,10):C):C=1;(X=R.K[X])&&X.V(C)}}}};var pU=null;var wf=g.mB.performance,NyL=!!(wf&&wf.mark&&wf.measure&&wf.clearMarks),zP=Fq(function(){var J;if(J=NyL){var R;if(pU===null){pU="";try{J="";try{J=g.mB.top.location.hash}catch(N){J=g.mB.location.hash}J&&(pU=(R=J.match(/\bdeid=([\d,]+)/))?R[1]:"")}catch(N){}}R=pU;J=!!R.indexOf&&R.indexOf("1337")>=0}return J}); em.prototype.disable=function(){this.K=!1;this.events!=this.J.google_js_reporting_queue&&(zP()&&g.Ts(this.events,rBY),this.events.length=0)}; em.prototype.start=function(J,R){if(!this.K)return null;var N=ABE()||qsn();J=new Ysg(J,R,N);R="goog_"+J.label+"_"+J.uniqueId+"_start";wf&&zP()&&wf.mark(R);return J}; em.prototype.end=function(J){if(this.K&&typeof J.value==="number"){var R=ABE()||qsn();J.duration=R-J.value;R="goog_"+J.label+"_"+J.uniqueId+"_end";wf&&zP()&&wf.mark(R);!this.K||this.events.length>2048||this.events.push(J)}};jRg.prototype.vZ=function(J,R,N,C,X){X=X||this.J6;try{var u=new ZT;u.K.push(1);u.J[1]=df("context",J);R.error&&R.meta&&R.id||(R=new GP(bt(R)));if(R.msg){var f=R.msg.substring(0,512);u.K.push(2);u.J[2]=df("msg",f)}var H=R.meta||{};if(this.yh)try{this.yh(H)}catch(I){}if(C)try{C(H)}catch(I){}C=[H];u.K.push(3);u.J[3]=C;var k=$qn();if(k.J){var v=k.J.url||"";u.K.push(4);u.J[4]=df("top",v)}var W={url:k.K.url||""};if(k.K.url){var S=k.K.url.match(P_);var L=pC(S[1],null,S[3],S[4])}else L="";v=[W,{url:L}];u.K.push(5); u.J[5]=v;ZCf(this.K,X,u,N)}catch(I){try{ZCf(this.K,X,{context:"ecmserr",rctx:J,msg:bt(I),url:k&&k.K.url},N)}catch(F){}}return this.Nk}; g.M(GP,dq2);var h2,y8,cZ=new em;h2=new function(){var J="https:";KN&&KN.location&&KN.location.protocol==="http:"&&(J="http:");this.J=J;this.K=.01}; y8=new jRg;KN&&KN.document&&(KN.document.readyState=="complete"?VzB():cZ.K&&Q8(KN,"load",function(){VzB()}));var p_Y=Date.now(),Xn=-1,N4=-1,XOE,ij=-1,Cz=!1;g.T=uj.prototype;g.T.getHeight=function(){return this.bottom-this.top}; g.T.clone=function(){return new uj(this.top,this.right,this.bottom,this.left)}; g.T.contains=function(J){return this&&J?J instanceof uj?J.left>=this.left&&J.right<=this.right&&J.top>=this.top&&J.bottom<=this.bottom:J.x>=this.left&&J.x<=this.right&&J.y>=this.top&&J.y<=this.bottom:!1}; g.T.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.T.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.T.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.T.scale=function(J,R){R=typeof R==="number"?R:J;this.left*=J;this.right*=J;this.top*=R;this.bottom*=R;return this};Hq.prototype.Ov=function(){return this.D};var CkP={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},rb={Of:"start",Qs:"firstquartile",o$:"midpoint",qC:"thirdquartile",COMPLETE:"complete",ERROR:"error",jG:"metric",PAUSE:"pause",FI:"resume",J$:"skip",Z5:"viewable_impression",kS:"mute",VS:"unmute",C$:"fullscreen",Zc:"exitfullscreen",J0:"bufferstart",cT:"bufferfinish",GU:"fully_viewable_audible_half_duration_impression",sI:"measurable_impression",Wj:"abandon",IS:"engagedview",TU:"impression",Oc:"creativeview",XH:"loaded", RcN:"progress",CLOSE:"close",Xaa:"collapse",e8B:"overlay_resize",HRn:"overlay_unmeasurable_impression",Ns7:"overlay_unviewable_impression",z88:"overlay_viewable_immediate_impression",bRB:"overlay_viewable_end_of_session_impression",q3:"custom_metric_viewable",RS:"audio_audible",n$:"audio_measurable",ue:"audio_impression"},LZE="start firstquartile midpoint thirdquartile resume loaded".split(" "),IT2=["start","firstquartile","midpoint","thirdquartile"],u38=["abandon"],og={UNKNOWN:-1,Of:0,Qs:1,o$:2, qC:3,COMPLETE:4,jG:5,PAUSE:6,FI:7,J$:8,Z5:9,kS:10,VS:11,C$:12,Zc:13,GU:14,sI:15,Wj:16,IS:17,TU:18,Oc:19,XH:20,q3:21,J0:22,cT:23,ue:27,n$:28,RS:29};var zEE={Twp:"addEventListener",zmn:"getMaxSize",XeO:"getScreenSize",a9n:"getState",ssB:"getVersion",OX8:"removeEventListener",zCB:"isViewable"};g.T=g.vq.prototype;g.T.clone=function(){return new g.vq(this.left,this.top,this.width,this.height)}; g.T.contains=function(J){return J instanceof g.Ms?J.x>=this.left&&J.x<=this.left+this.width&&J.y>=this.top&&J.y<=this.top+this.height:this.left<=J.left&&this.left+this.width>=J.left+J.width&&this.top<=J.top&&this.top+this.height>=J.top+J.height}; g.T.getSize=function(){return new g.a4(this.width,this.height)}; g.T.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.T.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.T.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.T.scale=function(J,R){R=typeof R==="number"?R:J;this.left*=J;this.width*=J;this.top*=R;this.height*=R;return this};var hEB={};NZk.prototype.update=function(J){J&&J.document&&(this.D=k$(!1,J,this.isMobileDevice),this.K=k$(!0,J,this.isMobileDevice),XuE(this,J),Cok(this,J))};Pq.prototype.cancel=function(){gf().clearTimeout(this.K);this.K=null}; Pq.prototype.schedule=function(){var J=this,R=gf(),N=lt().K.K;this.K=R.setTimeout(pN(N,JU(143,function(){J.J++;J.V.sample()})),lig())};g.T=zW.prototype;g.T.RL=function(){return!1}; g.T.initialize=function(){return this.isInitialized=!0}; g.T.aO=function(){return this.K.VO}; g.T.ND=function(){return this.K.nC}; g.T.Rs=function(J,R){if(!this.nC||(R===void 0?0:R))this.nC=!0,this.VO=J,this.X=0,this.K!=this||wh(this)}; g.T.getName=function(){return this.K.T7}; g.T.xj=function(){return this.K.Dz()}; g.T.Dz=function(){return{}}; g.T.bO=function(){return this.K.X}; g.T.Nt=function(){var J=Un();J.K=k$(!0,this.V,J.isMobileDevice)}; g.T.b5=function(){Cok(Un(),this.V)}; g.T.KS=function(){return this.Z.K}; g.T.sample=function(){}; g.T.isActive=function(){return this.K.S}; g.T.d_=function(J){var R=this.K;this.K=J.bO()>=this.X?J:this;R!==this.K?(this.S=this.K.S,wh(this)):this.S!==this.K.S&&(this.S=this.K.S,wh(this))}; g.T.eL=function(J){if(J.J===this.K){var R=this.Z,N=this.W;R=!(J&&(N===void 0||!N||R.volume==J.volume)&&R.V==J.V&&TW(R.K,J.K));this.Z=J;R&&fsf(this)}}; g.T.oF=function(){return this.W}; g.T.dispose=function(){this.tN=!0}; g.T.QO=function(){return this.tN};g.T=cq.prototype;g.T.observe=function(){return!0}; g.T.unobserve=function(){}; g.T.vn=function(J){this.U=J}; g.T.dispose=function(){if(!this.QO()){var J=this.J;g.y9(J.U,this);J.W&&this.oF()&&u02(J);this.unobserve();this.ma=!0}}; g.T.QO=function(){return this.ma}; g.T.xj=function(){return this.J.xj()}; g.T.bO=function(){return this.J.bO()}; g.T.aO=function(){return this.J.aO()}; g.T.ND=function(){return this.J.ND()}; g.T.d_=function(){}; g.T.eL=function(){this.c$()}; g.T.oF=function(){return this.tN};g.T=hU.prototype;g.T.bO=function(){return this.K.bO()}; g.T.aO=function(){return this.K.aO()}; g.T.ND=function(){return this.K.ND()}; g.T.create=function(J,R,N){var C=null;this.K&&(C=this.FQ(J,R,N),ei(this.K,C));return C}; g.T.zb=function(){return this.uw()}; g.T.uw=function(){return!1}; g.T.init=function(J){return this.K.initialize()?(ei(this.K,this),this.Z=J,!0):!1}; g.T.d_=function(J){J.bO()==0&&this.Z(J.aO(),this)}; g.T.eL=function(){}; g.T.oF=function(){return!1}; g.T.dispose=function(){this.U=!0}; g.T.QO=function(){return this.U}; g.T.xj=function(){return{}};yL.prototype.add=function(J,R,N){++this.V;J=new $lE(J,R,N);this.K.push(new $lE(J.J,J.K,J.V+this.V/4096));this.J=!0;return this};SyY.prototype.toString=function(){var J="//pagead2.googlesyndication.com//pagead/gen_204",R=bj(this.K);R.length>0&&(J+="?"+R);return J};tU.prototype.update=function(J,R,N){J&&(this.K+=R,this.J+=R,this.Z+=R,this.V=Math.max(this.V,this.Z));if(N===void 0?!J:N)this.Z=0};var MR2=[1,.75,.5,.3,0];x$.prototype.update=function(J,R,N,C,X,u){u=u===void 0?!0:u;R=X?Math.min(J,R):R;for(X=0;X0&&R>=f;f=!(J>0&&J>=f)||N;this.K[X].update(u&&H,C,!u||f)}};Xw.prototype.update=function(J,R,N,C){this.D=this.D!=-1?Math.min(this.D,R.LY):R.LY;this.dn=Math.max(this.dn,R.LY);this.ma=this.ma!=-1?Math.min(this.ma,R.nR):R.nR;this.VO=Math.max(this.VO,R.nR);this.oB.update(R.nR,N.nR,R.K,J,C);this.G7+=J;R.LY===0&&(this.T7+=J);this.J.update(R.LY,N.LY,R.K,J,C);N=C||N.aA!=R.aA?N.isVisible()&&R.isVisible():N.isVisible();R=!R.isVisible()||R.K;this.pC.update(N,J,R)}; Xw.prototype.w1=function(){return this.pC.V>=this.Xk};if(pz&&pz.URL){var XbV=pz.URL,iEU;if(iEU=!!XbV){var u9E;a:{if(XbV){var fVf=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var lq=fVf.exec(decodeURIComponent(XbV));if(lq){u9E=lq[1]&&lq[1].length>1?lq[1].substring(1):"true";break a}}catch(J){}}u9E=""}iEU=u9E.length>0}y8.Nk=!iEU};var Tya=new uj(0,0,0,0);var OvE=new uj(0,0,0,0);g.M($Z,g.l);g.T=$Z.prototype; g.T.Fk=function(){if(this.MM.K){if(this.vu.U0){var J=this.MM.K;J.removeEventListener&&J.removeEventListener("mouseover",this.vu.U0,am());this.vu.U0=null}this.vu.ZS&&(J=this.MM.K,J.removeEventListener&&J.removeEventListener("mouseout",this.vu.ZS,am()),this.vu.ZS=null)}this.gD&&this.gD.dispose();this.yC&&this.yC.dispose();delete this.vD;delete this.Fg;delete this.UG;delete this.MM.OS;delete this.MM.K;delete this.vu;delete this.gD;delete this.yC;delete this.iS;g.l.prototype.Fk.call(this)}; g.T.lG=function(){return this.yC?this.yC.K:this.position}; g.T.Xx=function(J){lt().Xx(J)}; g.T.oF=function(){return!1}; g.T.jb=function(){return new Xw}; g.T.yp=function(){return this.vD}; g.T.zH=function(J){return AhE(this,J,1E4)}; g.T.hN=function(J,R,N,C,X,u,f){this.XT||(this.H6&&(J=this.E6(J,N,X,f),C=C&&this.UL.LY>=(this.aA()?.3:.5),this.Am(u,J,C),this.Sp=R,J.LY>0&&-1===this.zS&&(this.zS=R),this.Bz==-1&&this.w1()&&(this.Bz=R),this.K5==-2&&(this.K5=fH(this.lG())?J.LY:-1),this.UL=J),this.Fg(this))}; g.T.Am=function(J,R,N){this.yp().update(J,R,this.UL,N)}; g.T.r7=function(){return new ut}; g.T.E6=function(J,R,N,C){N=this.r7();N.K=R;R=gf().J;R=nN(pz)===0?-1:R.isVisible()?0:1;N.J=R;N.LY=this.Q$(J);N.aA=this.aA();N.nR=C;return N}; g.T.Q$=function(J){return this.opacity===0&&Sm(this.iS,"opac")===1?0:J}; g.T.aA=function(){return!1}; g.T.WJ=function(){return this.RfB||this.dpO}; g.T.Ik=function(){Rf()}; g.T.wi=function(){Rf()}; g.T.J4=function(){return 0}; g.T.w1=function(){return this.vD.w1()}; g.T.dE=function(){var J=this.H6;J=(this.hasCompleted||this.QO())&&!J;var R=lt().J!==2||this.oTO;return this.XT||R&&J?2:this.w1()?4:3}; g.T.YX=function(){return 0};g.kZ.prototype.next=function(){return g.PB}; g.PB={done:!0,value:void 0};g.kZ.prototype.Ok=function(){return this};g.M(ghg,ut);var zv=puE([void 0,1,2,3,4,8,16]),ep=puE([void 0,4,8,16]),$_f={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:LH("p0",ep),p1:LH("p1",ep),p2:LH("p2",ep),p3:LH("p3",ep),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:SA("mtos1",[0,2,4],!1,ep),mtos2:SA("mtos2",[0,2,4],!1,ep),mtos3:SA("mtos3",[0,2,4],!1,ep),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:LH("a0",ep),a1:LH("a1",ep),a2:LH("a2",ep),a3:LH("a3",ep),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:LH("c0",ep),c1:LH("c1",ep),c2:LH("c2",ep),c3:LH("c3",ep),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:LH("qmtos",zv),qnc:LH("qnc",zv),qmv:LH("qmv",zv),qnv:LH("qnv",zv), 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:LH("ss0",ep),ss1:LH("ss1",ep),ss2:LH("ss2",ep),ss3:LH("ss3",ep),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"},HE9=Object.assign({},$_f,{avid:LC("audio"),avas:"avas",vs:"vs"}),ksK={atos:"atos",avt:SA("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(J,R){return function(N){return N[J]===void 0&&R!==void 0?R:N[J]}}("ss",0), t:"t"};MW.prototype.getValue=function(){return this.J}; MW.prototype.update=function(J,R){J>=32||(this.K&1<=.5;VL(R.volume)&&(this.Z=this.Z!=-1?Math.min(this.Z,R.volume):R.volume,this.S=Math.max(this.S,R.volume));u&&(this.tN+=J,this.W+=X?J:0);this.K.update(R.LY,N.LY,R.K,J,C,X);this.V.update(!0,J);this.U.update(X,J);this.nC.update(N.fullscreen,J);this.EB.update(X&&!u,J);J=Math.floor(R.mediaTime/1E3);this.PC.update(J,R.isVisible());this.eQ.update(J,R.LY>=1);this.HC.update(J, Ww(R))}};chk.prototype.J=function(J){this.V||(this.K(J)?(J=CtE(this.W,this.Z,J),this.U|=J,J=J==0):J=!1,this.V=J)};g.M(Q7,chk);Q7.prototype.K=function(){return!0}; Q7.prototype.S=function(){return!1}; Q7.prototype.getId=function(){var J=this,R=Yb(rb,function(N){return N==J.Z}); return og[R].toString()}; Q7.prototype.toString=function(){var J="";this.S()&&(J+="c");this.V&&(J+="s");this.U>0&&(J+=":"+this.U);return this.getId()+J};g.M(nH,Q7);nH.prototype.J=function(J,R){R=R===void 0?null:R;R!=null&&this.D.push(R);Q7.prototype.J.call(this,J)};g.M(Dy,hS7);Dy.prototype.J=function(){return null}; Dy.prototype.V=function(){return[]};g.M(sk,cq);g.T=sk.prototype;g.T.kK=function(){if(this.element){var J=this.element,R=this.J.K.V;try{try{var N=JhY(J.getBoundingClientRect())}catch(v){N=new uj(0,0,0,0)}var C=N.right-N.left,X=N.bottom-N.top,u=bCP(J,R),f=u.x,H=u.y;var k=new uj(Math.round(H),Math.round(f+C),Math.round(H+X),Math.round(f))}catch(v){k=Tya.clone()}this.V=k;this.K=TZE(this,this.V)}}; g.T.xp=function(){this.S=this.J.Z.K}; g.T.uM=function(J){var R=Sm(this.iS,"od")==1;return BZB(J,this.S,this.element,R)}; g.T.Mr=function(){this.timestamp=Rf()}; g.T.c$=function(){this.Mr();this.kK();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var J=this.element;var R=new g.a4(J.videoWidth,J.videoHeight);J=this.K;var N=fz(J),C=J.getHeight(),X=R.width;R=R.height;X<=0||R<=0||N<=0||C<=0||(X/=R,R=N/C,J=J.clone(),X>R?(N/=X,C=(C-N)/2,C>0&&(C=J.top+C,J.top=Math.round(C),J.bottom=Math.round(C+N))):(C*=X,N=Math.round((N-C)/2),N>0&&(N=J.left+N,J.left=Math.round(N),J.right=Math.round(N+C))));this.K=J}this.xp(); J=this.K;N=this.S;J=J.left<=N.right&&N.left<=J.right&&J.top<=N.bottom&&N.top<=J.bottom?new uj(Math.max(J.top,N.top),Math.min(J.right,N.right),Math.min(J.bottom,N.bottom),Math.max(J.left,N.left)):new uj(0,0,0,0);N=J.top>=J.bottom||J.left>=J.right?new uj(0,0,0,0):J;J=this.J.Z;R=X=C=0;if((this.K.bottom-this.K.top)*(this.K.right-this.K.left)>0)if(this.uM(N))N=new uj(0,0,0,0);else{C=Un().Z;R=new uj(0,C.height,C.width,0);var u;C=T4(N,(u=this.U)!=null?u:this.K);X=T4(N,Un().K);R=T4(N,R)}u=N.top>=N.bottom|| N.left>=N.right?new uj(0,0,0,0):$$(N,-this.K.left,-this.K.top);lj()||(X=C=0);this.W=new Hq(J,this.element,this.K,u,C,X,this.timestamp,R)}; g.T.getName=function(){return this.J.getName()};var vN8=new uj(0,0,0,0);g.M(Bw,sk);g.T=Bw.prototype;g.T.observe=function(){this.Z();return!0}; g.T.eL=function(){sk.prototype.c$.call(this)}; g.T.Mr=function(){}; g.T.kK=function(){}; g.T.c$=function(){this.Z();sk.prototype.c$.call(this)}; g.T.d_=function(J){J=J.isActive();J!==this.X&&(J?this.Z():(Un().K=new uj(0,0,0,0),this.K=new uj(0,0,0,0),this.S=new uj(0,0,0,0),this.timestamp=-1));this.X=J};var wM={},CEg=(wM.firstquartile=0,wM.midpoint=1,wM.thirdquartile=2,wM.complete=3,wM);g.M(Zy,$Z);g.T=Zy.prototype;g.T.oF=function(){return!0}; g.T.W4=function(){return this.s7==2}; g.T.zH=function(J){return AhE(this,J,Math.max(1E4,this.V/3))}; g.T.hN=function(J,R,N,C,X,u,f){var H=this,k=this.D(this)||{};g.UF(k,X);this.V=k.duration||this.V;this.W=k.isVpaid||this.W;this.T7=k.isYouTube||this.T7;gf();this.oB=!1;X=Gr7(this,R);yhk(this)===1&&(u=X);$Z.prototype.hN.call(this,J,R,N,C,k,u,f);this.uP&&this.uP.V&&g.Ts(this.S,function(v){v.J(H)})}; g.T.Am=function(J,R,N){$Z.prototype.Am.call(this,J,R,N);At(this).update(J,R,this.UL,N);this.Xk=Ww(this.UL)&&Ww(R);this.VO==-1&&this.eQ&&(this.VO=this.yp().V.K);this.Ww.V=0;J=this.w1();R.isVisible()&&Ek(this.Ww,"vs");J&&Ek(this.Ww,"vw");VL(R.volume)&&Ek(this.Ww,"am");Ww(R)?Ek(this.Ww,"a"):Ek(this.Ww,"mut");this.ZF&&Ek(this.Ww,"f");R.J!=-1&&(Ek(this.Ww,"bm"),R.J==1&&(Ek(this.Ww,"b"),Ww(R)&&Ek(this.Ww,"umutb")));Ww(R)&&R.isVisible()&&Ek(this.Ww,"avs");this.Xk&&J&&Ek(this.Ww,"avw");R.LY>0&&Ek(this.Ww, "pv");YZ(this,this.yp().V.K,!0)&&Ek(this.Ww,"gdr");NW(this.yp().J,1)>=2E3&&Ek(this.Ww,"pmx");this.oB&&Ek(this.Ww,"tvoff")}; g.T.jb=function(){return new KH}; g.T.yp=function(){return this.vD}; g.T.r7=function(){return new ghg}; g.T.E6=function(J,R,N,C){J=$Z.prototype.E6.call(this,J,R,N,C===void 0?-1:C);J.fullscreen=this.ZF;J.paused=this.W4();J.volume=N.volume;VL(J.volume)||(this.GW++,R=this.UL,VL(R.volume)&&(J.volume=R.volume));N=N.currentTime;J.mediaTime=N!==void 0&&N>=0?N:-1;return J}; g.T.Q$=function(J){return Un(),this.ZF?1:$Z.prototype.Q$.call(this,J)}; g.T.J4=function(){return 1}; g.T.getDuration=function(){return this.V}; g.T.dE=function(){return this.XT?2:tRE(this)?5:this.w1()?4:3}; g.T.YX=function(){return this.EB?this.yp().U.V>=2E3?4:3:2}; g.T.vn=function(J){this.yC&&this.yC.vn(J)};var WSU=g.yE();SrB.prototype.reset=function(){this.K=[];this.J=[]}; var Uk=mZ(SrB);g.M(Pw,hU);g.T=Pw.prototype;g.T.getName=function(){return(this.J?this.J:this.K).getName()}; g.T.xj=function(){return(this.J?this.J:this.K).xj()}; g.T.bO=function(){return(this.J?this.J:this.K).bO()}; g.T.init=function(J){var R=!1;(0,g.Ts)(this.V,function(N){N.initialize()&&(R=!0)}); R&&(this.Z=J,ei(this.K,this));return R}; g.T.dispose=function(){(0,g.Ts)(this.V,function(J){J.dispose()}); hU.prototype.dispose.call(this)}; g.T.zb=function(){return gh(this.V,function(J){return J.RL()})}; g.T.uw=function(){return gh(this.V,function(J){return J.RL()})}; g.T.FQ=function(J,R,N){return new sk(J,this.K,R,N)}; g.T.eL=function(J){this.J=J.J};var nVY={threshold:[0,.3,.5,.75,1]};g.M(z4,sk);g.T=z4.prototype;g.T.observe=function(){var J=this;this.dn||(this.dn=Rf());if(Uqk(298,function(){return Dyk(J)}))return!0; this.J.Rs("msf");return!1}; g.T.unobserve=function(){if(this.Z&&this.element)try{this.Z.unobserve(this.element),this.X?(this.X.unobserve(this.element),this.X=null):this.D&&(this.D.disconnect(),this.D=null)}catch(J){}}; g.T.c$=function(){var J=eA(this);J.length>0&&wb(this,J);sk.prototype.c$.call(this)}; g.T.kK=function(){}; g.T.uM=function(){return!1}; g.T.xp=function(){}; g.T.xj=function(){var J={};return Object.assign(this.J.xj(),(J.niot_obs=this.dn,J.niot_cbk=this.nC,J))}; g.T.getName=function(){return"nio"};g.M(cw,hU);cw.prototype.getName=function(){return"nio"}; cw.prototype.uw=function(){return!Un().J&&this.K.K.V.IntersectionObserver!=null}; cw.prototype.FQ=function(J,R,N){return new z4(J,this.K,R,N)};g.M(ht,zW);ht.prototype.KS=function(){return Un().K}; ht.prototype.RL=function(){var J=B2E();this.X!==J&&(this.K!=this&&J>this.K.X&&(this.K=this,wh(this)),this.X=J);return J==2};y7.prototype.sample=function(){tt(this,pH(),!1)}; y7.prototype.Z=function(){var J=lj(),R=Rf();J?(Cz||(Xn=R,g.Ts(Uk.K,function(N){var C=N.yp();C.l3=aM(C,R,N.s7!=1)})),Cz=!0):(this.D=AnE(this,R),Cz=!1,XOE=R,g.Ts(Uk.K,function(N){N.H6&&(N.yp().X=R)})); tt(this,pH(),!J)}; var G4=mZ(y7);var rnf=null,Km="",Mu=!1;var VoB=myg().Wk,JP=myg().w5;var pOP={rMM:"visible",ixn:"audible",kMf:"time",WyO:"timetype"},l5n={visible:function(J){return/^(100|[0-9]{1,2})$/.test(J)}, audible:function(J){return J=="0"||J=="1"}, timetype:function(J){return J=="mtos"||J=="tos"}, time:function(J){return/^(100|[0-9]{1,2})%$/.test(J)||/^([0-9])+ms$/.test(J)}}; UyE.prototype.setTime=function(J,R,N){R=="ms"?(this.V=J,this.Z=-1):(this.V=-1,this.Z=J);this.U=N===void 0?"tos":N;return this};g.M(Cm,Q7);Cm.prototype.getId=function(){return this.D}; Cm.prototype.S=function(){return!0}; Cm.prototype.K=function(J){var R=J.yp(),N=J.getDuration();return gh(this.X,function(C){if(C.K!=void 0)var X=zj7(C,R);else b:{switch(C.U){case "mtos":X=C.J?R.U.V:R.V.K;break b;case "tos":X=C.J?R.U.K:R.V.K;break b}X=0}X==0?C=!1:(C=C.V!=-1?C.V:N!==void 0&&N>0?C.Z*N:-1,C=C!=-1&&X>=C);return C})};g.M(Xu,PoB);Xu.prototype.K=function(J){var R=new ls2;R.K=Fw(J,$_f);R.J=Fw(J,ksK);return R};g.M(i7,Q7);i7.prototype.K=function(J){return tRE(J)};g.M(u7,hS7);g.M(fm,Q7);fm.prototype.K=function(J){return J.yp().w1()};g.M(TN,nH);TN.prototype.K=function(J){var R=g.cl(this.D,Sm(lt().iS,"ovms"));return!J.XT&&(J.s7!=0||R)};g.M($g,u7);$g.prototype.J=function(){return new TN(this.K)}; $g.prototype.V=function(){return[new fm("viewable_impression",this.K),new i7(this.K)]};g.M(Hp,Bw);Hp.prototype.Z=function(){var J=g.gY("ima.admob.getViewability"),R=Sm(this.iS,"queryid");typeof J==="function"&&R&&J(R)}; Hp.prototype.getName=function(){return"gsv"};g.M(kg,hU);kg.prototype.getName=function(){return"gsv"}; kg.prototype.uw=function(){var J=Un();lt();return J.J&&!1}; kg.prototype.FQ=function(J,R,N){return new Hp(this.K,R,N)};g.M(vp,Bw);vp.prototype.Z=function(){var J=this,R=g.gY("ima.bridge.getNativeViewability"),N=Sm(this.iS,"queryid");typeof R==="function"&&N&&R(N,function(C){g.rq(C)&&J.D++;var X=C.opt_nativeViewVisibleBounds||{},u=C.opt_nativeViewHidden;J.K=ohE(C.opt_nativeViewBounds||{});var f=J.J.Z;f.K=u?vN8.clone():ohE(X);J.timestamp=C.opt_nativeTime||-1;Un().K=f.K;C=C.opt_nativeVolume;C!==void 0&&(f.volume=C)})}; vp.prototype.getName=function(){return"nis"};g.M(Wp,hU);Wp.prototype.getName=function(){return"nis"}; Wp.prototype.uw=function(){var J=Un();lt();return J.J&&!1}; Wp.prototype.FQ=function(J,R,N){return new vp(this.K,R,N)};g.M(S4,zW);g.T=S4.prototype;g.T.RL=function(){return this.J.vk!=null}; g.T.Dz=function(){var J={};this.PC&&(J.mraid=this.PC);this.ma&&(J.mlc=1);J.mtop=this.J.U7a;this.D&&(J.mse=this.D);this.G7&&(J.msc=1);J.mcp=this.J.compatibility;return J}; g.T.zx=function(J){var R=g.sf.apply(1,arguments);try{return this.J.vk[J].apply(this.J.vk,R)}catch(N){of(538,N,.01,function(C){C.method=J})}}; g.T.initialize=function(){var J=this;if(this.isInitialized)return!this.ND();this.isInitialized=!0;if(this.J.compatibility===2)return this.D="ng",this.Rs("w"),!1;if(this.J.compatibility===1)return this.D="mm",this.Rs("w"),!1;Un().X=!0;this.V.document.readyState&&this.V.document.readyState=="complete"?hj2(this):uz(this.V,"load",function(){gf().setTimeout(JU(292,function(){return hj2(J)}),100)},292); return!0}; g.T.Nt=function(){var J=Un(),R=xyQ(this,"getMaxSize");J.K=new uj(0,R.width,R.height,0)}; g.T.b5=function(){Un().Z=xyQ(this,"getScreenSize")}; g.T.dispose=function(){GpE(this);zW.prototype.dispose.call(this)};var QRg=new function(J,R){this.key=J;this.defaultValue=R===void 0?!1:R;this.valueType="boolean"}("45378663");g.T=Ig.prototype;g.T.Fw=function(J){Hw(J,!1);EVE(J)}; g.T.nO=function(){}; g.T.PQ=function(J,R,N,C){var X=this;J=new Zy(KN,J,N?R:-1,7,this.pH(),this.s8());J.qO=C;wtE(J.iS);WZ(J.iS,"queryid",J.qO);J.Xx("");jXQ(J,function(){return X.qB.apply(X,g.Q(g.sf.apply(0,arguments)))},function(){return X.MJ.apply(X,g.Q(g.sf.apply(0,arguments)))}); (C=mZ(lz).K)&&qyE(J,C);this.V&&(J.vn(this.V),this.V=null);J.MM.OS&&mZ(OBg);return J}; g.T.d_=function(J){switch(J.bO()){case 0:if(J=mZ(lz).K)J=J.K,g.y9(J.U,this),J.W&&this.oF()&&u02(J);El();break;case 2:bz()}}; g.T.eL=function(){}; g.T.oF=function(){return!1}; g.T.MJ=function(J,R){J.XT=!0;switch(J.J4()){case 1:XZ8(J,R);break;case 2:this.WW(J)}}; g.T.NJ=function(J){var R=J.D(J);R&&(R=R.volume,J.EB=VL(R)&&R>0);oVE(J,0);return jA(J,"start",lj())}; g.T.AR=function(J,R,N){tt(G4,[J],!lj());return this.g5(J,R,N)}; g.T.g5=function(J,R,N){return jA(J,N,lj())}; g.T.Lz=function(J){return Dh(J,"firstquartile",1)}; g.T.yD=function(J){J.eQ=!0;return Dh(J,"midpoint",2)}; g.T.zn=function(J){return Dh(J,"thirdquartile",3)}; g.T.Yz=function(J){var R=Dh(J,"complete",4);db(J);return R}; g.T.hj=function(J){J.s7=3;return jA(J,"error",lj())}; g.T.jB=function(J,R,N){R=lj();if(J.W4()&&!R){var C=J.yp(),X=Rf();C.X=X}tt(G4,[J],!R);J.W4()&&(J.s7=1);return jA(J,N,R)}; g.T.Hm=function(J,R){R=this.AR(J,R||{},"skip");db(J);return R}; g.T.DW=function(J,R){Hw(J,!0);return this.AR(J,R||{},"fullscreen")}; g.T.pz=function(J,R){Hw(J,!1);return this.AR(J,R||{},"exitfullscreen")}; g.T.hG=function(J,R,N){R=J.yp();var C=Rf();R.l3=aM(R,C,J.s7!=1);tt(G4,[J],!lj());J.s7==1&&(J.s7=2);return jA(J,N,lj())}; g.T.eC=function(J){tt(G4,[J],!lj());return J.J()}; g.T.vp=function(J){tt(G4,[J],!lj());this.eB(J);db(J);return J.J()}; g.T.qB=function(){}; g.T.WW=function(){}; g.T.eB=function(){}; g.T.Xv=function(){}; g.T.lj=function(){}; g.T.s8=function(){this.K||(this.K=this.lj());return this.K==null?new Dy:new $g(this.K)}; g.T.pH=function(){return new Xu};g.M(sl,Q7);sl.prototype.K=function(J){return J.YX()==4};g.M(Bp,nH);Bp.prototype.K=function(J){J=J.YX();return J==3||J==4};g.M(Ol,u7);Ol.prototype.J=function(){return new Bp(this.K)}; Ol.prototype.V=function(){return[new sl(this.K)]};g.M(Zh,PoB);Zh.prototype.K=function(J){J&&(J.e===28&&(J=Object.assign({},J,{avas:3})),J.vs===4||J.vs===5)&&(J=Object.assign({},J,{vs:3}));var R=new ls2;R.K=Fw(J,HE9);R.J=Fw(J,ksK);return R};TfQ.prototype.J=function(){return g.gY(this.K)};g.M(d5,Ig);g.T=d5.prototype;g.T.nO=function(J,R){var N=this,C=mZ(lz);if(C.K!=null)switch(C.K.getName()){case "nis":var X=vyg(this,J,R);break;case "gsv":X=kPY(this,J,R);break;case "exc":X=WZg(this,J)}X||(R.opt_overlayAdElement?X=void 0:R.opt_adElement&&(X=uMg(this,J,R.opt_adElement,R.opt_osdId)));X&&X.J4()==1&&(X.D==g.IR&&(X.D=function(u){return N.Xv(u)}),HNg(this,X,R)); return X}; g.T.Xv=function(J){J.J=0;J.tN=0;if(J.Z=="h"||J.Z=="n"){lt();J.HC&&(lt(),Qh(this)!="h"&&Qh(this));var R=g.gY("ima.common.getVideoMetadata");if(typeof R==="function")try{var N=R(J.qO)}catch(X){J.J|=4}else J.J|=2}else if(J.Z=="b")if(R=g.gY("ytads.bulleit.getVideoMetadata"),typeof R==="function")try{N=R(J.qO)}catch(X){J.J|=4}else J.J|=2;else if(J.Z=="ml")if(R=g.gY("ima.common.getVideoMetadata"),typeof R==="function")try{N=R(J.qO)}catch(X){J.J|=4}else J.J|=2;else J.J|=1;J.J||(N===void 0?J.J|=8:N===null? J.J|=16:g.rq(N)?J.J|=32:N.errorCode!=null&&(J.tN=N.errorCode,J.J|=64));N==null&&(N={});R=N;J.X=0;for(var C in CkP)R[C]==null&&(J.X|=CkP[C]);fT2(R,"currentTime");fT2(R,"duration");VL(N.volume)&&VL()&&(N.volume*=NaN);return N}; g.T.lj=function(){lt();Qh(this)!="h"&&Qh(this);var J=S1g(this);return J!=null?new TfQ(J):null}; g.T.WW=function(J){!J.K&&J.XT&&nm(this,J,"overlay_unmeasurable_impression")&&(J.K=!0)}; g.T.eB=function(J){J.GS&&(J.w1()?nm(this,J,"overlay_viewable_end_of_session_impression"):nm(this,J,"overlay_unviewable_impression"),J.GS=!1)}; g.T.qB=function(){}; g.T.PQ=function(J,R,N,C){if(n7B()){var X=Sm(lt().iS,"mm"),u={};(X=(u[PZ.K$]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",u[PZ.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",u)[X])&&EyE(this,X);this.Z==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&of(1044,Error())}J=Ig.prototype.PQ.call(this,J,R,N,C);this.U&&(R=this.S,J.U==null&&(J.U=new mlP),R.K[J.qO]=J.U,J.U.U=WSU);return J}; g.T.Fw=function(J){J&&J.J4()==1&&this.U&&delete this.S.K[J.qO];return Ig.prototype.Fw.call(this,J)}; g.T.s8=function(){this.K||(this.K=this.lj());return this.K==null?new Dy:this.Z==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Ol(this.K):new $g(this.K)}; g.T.pH=function(){return this.Z==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Zh:new Xu}; g.T.vn=function(J,R,N,C,X){R=new uj(N,R+C,N+X,R);(J=gb(Uk,J))?J.vn(R):this.V=R}; var SWV=t2(193,KZf,void 0,iN8);g.VE("Goog_AdSense_Lidar_sendVastEvent",SWV);var LSL=JU(194,function(J,R){R=R===void 0?{}:R;J=FZ7(mZ(d5),J,R);return MmQ(J)}); g.VE("Goog_AdSense_Lidar_getViewability",LSL);var IVa=t2(195,function(){return FUE()}); g.VE("Goog_AdSense_Lidar_getUrlSignalsArray",IVa);var FSd=JU(196,function(){return JSON.stringify(FUE())}); g.VE("Goog_AdSense_Lidar_getUrlSignalsList",FSd);var Qmg=BYP(["//tpc.googlesyndication.com/sodar/",""]);g.M(Yg,g.l);Yg.prototype.Yq=function(J){this.wpc.c(J)}; Yg.prototype.US=function(J){return this.wpc.m(BfE(J))}; Yg.prototype.QE=function(J){return this.wpc.mws(BfE(J))}; g.M(qu,g.l);qu.prototype.snapshot=function(J){return this.Bw.s(Object.assign({},J.lf&&{c:J.lf},J.HM&&{s:J.HM},J.zf!==void 0&&{p:J.zf}))}; qu.prototype.uL=function(J){this.Bw.e(J)}; qu.prototype.hA=function(){return this.Bw.l()};var ayg=(new Date).getTime();var dxP="://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(" "),q1n=/\bocr\b/;var Y1n=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var c2n=0,wZQ=0,h_8=0;var yh;g.l7=null;g.zN=!1;g.GN=1;yh=Symbol("SIGNAL");g.b7={version:0,tZ:0,GM:!1,Cy:void 0,bN:void 0,B9:void 0,Cd:0,JM:void 0,Fc:void 0,Cf:!1,Gq:!1,kind:"unknown",Tt:function(){return!1}, xd:function(){}, Ph:function(){}, DIM:function(){}};var ENP=Symbol("UNSET"),MZL=Symbol("COMPUTING"),KSL=Symbol("ERRORED");Object.assign({},g.b7,{value:ENP,GM:!0,error:null,kq:r28,kind:"computed",Tt:function(J){return J.value===ENP||J.value===MZL}, xd:function(J){if(J.value===MZL)throw Error("Detected cycle in computations.");var R=J.value;J.value=MZL;var N=g.Vm2(J);try{var C=J.rea()}catch(X){C=KSL,J.error=X}finally{g.gy7(J,N)}R!==ENP&&R!==KSL&&C!==KSL&&J.kq(R,C)?J.value=R:(J.value=C,J.version++)}});var lTE;g.z_2=null;lTE=Object.assign({},g.b7,{kq:r28,value:void 0,kind:"signal"});Object.assign({},g.b7,{Gq:!0,Cf:!1,Ph:function(J){J.schedule!==null&&J.schedule(J.PJ)}, gg:!1,YPf:function(){}});g.tP(!0);g.aVf=g.tP(!1);g.QGl={No:!0,bU:!0,X9:!1,cN7:!1,D5:!1,F9:!1,Na7:ykk};g.xg=Object.assign({},{attributes:{},handleError:function(J){throw J;}},g.QGl);var y2E=Symbol("updater");g.M(Ro,g.iD);Ro.prototype.dispose=function(){window.removeEventListener("offline",this.V);window.removeEventListener("online",this.V);this.R6.An(this.U);delete Ro.instance}; Ro.prototype.Tj=function(){return this.K}; Ro.prototype.hY=function(){var J=this;this.U=this.R6.ou(function(){var R;return g.Y(function(N){if(N.K==1)return J.K?((R=window.navigator)==null?0:R.onLine)?N.ZM(3):g.q(N,oo(J),3):g.q(N,oo(J),3);J.hY();g.IQ(N)})},3E4)};C$.prototype.set=function(J,R){R=R===void 0?!0:R;0<=J&&J<52&&Number.isInteger(J)&&this.data[J]!==R&&(this.data[J]=R,this.K=-1)}; C$.prototype.get=function(J){return!!this.data[J]};var ic;g.GE(g.T9,g.l);g.T=g.T9.prototype;g.T.start=function(){this.stop();this.Z=!1;var J=xxE(this),R=JUg(this);J&&!R&&this.J.mozRequestAnimationFrame?(this.K=g.xw(this.J,"MozBeforePaint",this.V),this.J.mozRequestAnimationFrame(null),this.Z=!0):this.K=J&&R?J.call(this.J,this.V):this.J.setTimeout(nGB(this.V),20)}; g.T.stop=function(){if(this.isActive()){var J=xxE(this),R=JUg(this);J&&!R&&this.J.mozRequestAnimationFrame?Nq(this.K):J&&R?R.call(this.J,this.K):this.J.clearTimeout(this.K)}this.K=null}; g.T.isActive=function(){return this.K!=null}; g.T.yP=function(){this.Z&&this.K&&Nq(this.K);this.K=null;this.S.call(this.U,g.yE())}; g.T.Fk=function(){this.stop();g.T9.gL.Fk.call(this)};g.GE(g.$t,g.l);g.T=g.$t.prototype;g.T.nD=0;g.T.Fk=function(){g.$t.gL.Fk.call(this);this.stop();delete this.K;delete this.J}; g.T.start=function(J){this.stop();this.nD=g.qq(this.V,J!==void 0?J:this.dV)}; g.T.stop=function(){this.isActive()&&g.mB.clearTimeout(this.nD);this.nD=0}; g.T.isActive=function(){return this.nD!=0}; g.T.jy=function(){this.nD=0;this.K&&this.K.call(this.J)};g.WK.prototype[Symbol.iterator]=function(){return this}; g.WK.prototype.next=function(){var J=this.K.next();return{value:J.done?void 0:this.J.call(void 0,J.value),done:J.done}};g.GE(g.Qi,g.iD);g.T=g.Qi.prototype;g.T.isPlaying=function(){return this.K==1}; g.T.isPaused=function(){return this.K==-1}; g.T.YF=function(){this.ph("begin")}; g.T.mY=function(){this.ph("end")}; g.T.onFinish=function(){this.ph("finish")}; g.T.onStop=function(){this.ph("stop")}; g.T.ph=function(J){this.dispatchEvent(J)};var nNd=Fq(function(){var J=g.iu("DIV"),R=g.RP?"-webkit":nz?"-moz":null,N="transition:opacity 1s linear;";R&&(N+=R+"-transition:opacity 1s linear;");R=rQn({style:N});if(J.nodeType===1&&/^(script|style)$/i.test(J.tagName))throw Error("");J.innerHTML=g.wd(R);return g.DA(J.firstChild,"transition")!=""});g.GE(n$,g.Qi);g.T=n$.prototype;g.T.play=function(){if(this.isPlaying())return!1;this.YF();this.ph("play");this.startTime=g.yE();this.K=1;if(nNd())return g.Lz(this.J,this.S),this.V=g.qq(this.kdQ,void 0,this),!0;this.u_(!1);return!1}; g.T.kdQ=function(){g.rh(this.J);Nh7(this.J,this.D);g.Lz(this.J,this.Z);this.V=g.qq((0,g.wY)(this.u_,this,!1),this.U*1E3)}; g.T.stop=function(){this.isPlaying()&&this.u_(!0)}; g.T.u_=function(J){g.Lz(this.J,"transition","");g.mB.clearTimeout(this.V);g.Lz(this.J,this.Z);this.endTime=g.yE();this.K=0;if(J)this.onStop();else this.onFinish();this.mY()}; g.T.Fk=function(){this.stop();n$.gL.Fk.call(this)}; g.T.pause=function(){};var XqE={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};D$("Element","attributes")||D$("Node","attributes");D$("Element","innerHTML")||D$("HTMLElement","innerHTML");D$("Node","nodeName");D$("Node","nodeType");D$("Node","parentNode");D$("Node","childNodes");D$("HTMLElement","style")||D$("Element","style");D$("HTMLStyleElement","sheet");var Hzk=unn("getPropertyValue"),kW7=unn("setProperty");D$("Element","namespaceURI")||D$("Node","namespaceURI");var $4P={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var Lyk,UPl,SnE,WyE,IAB;Lyk=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]");UPl=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.D_a=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.BK=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]");SnE=/^http:\/\/.*/;g.sG_=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");WyE=/\s+/;IAB=/[\d\u06f0-\u06f9]/;Z$.prototype.Ok=function(){return new dE(this.J())}; Z$.prototype[Symbol.iterator]=function(){return new qh(this.J())}; Z$.prototype.K=function(){return new qh(this.J())}; g.M(dE,g.kZ);dE.prototype.next=function(){return this.J.next()}; dE.prototype[Symbol.iterator]=function(){return new qh(this.J)}; dE.prototype.K=function(){return new qh(this.J)}; g.M(qh,Z$);qh.prototype.next=function(){return this.V.next()};Yt.prototype.clone=function(){return new Yt(this.K,this.V,this.x1,this.y1,this.x2,this.y2,this.J,this.Z)};j_.prototype.clone=function(){return new j_(this.start,this.end)}; j_.prototype.getLength=function(){return this.end-this.start};(function(){if(bFE){var J=/Windows NT ([0-9.]+)/;return(J=J.exec(g.sa()))?J[1]:"0"}return Bk?(J=/1[0|1][_.][0-9_.]+/,(J=J.exec(g.sa()))?J[0].replace(/_/g,"."):"10"):g.$I?(J=/Android\s+([^\);]+)(\)|;)/,(J=J.exec(g.sa()))?J[1]:""):tnk||xPd||J_d?(J=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(J=J.exec(g.sa()))?J[1].replace(/_/g,"."):""):""})();var E$g=function(){if(g.tI)return m5(/Firefox\/([0-9.]+)/);if(g.sp||g.iC||g.jh)return mKg;if(g.hY){if(Ua()||lP()){var J=m5(/CriOS\/([0-9.]+)/);if(J)return J}return m5(/Chrome\/([0-9.]+)/)}if(g.d9&&!Ua())return m5(/Version\/([0-9.]+)/);if(u4||fI){if(J=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.sa()))return J[1]+"."+J[2]}else if(g.mJ)return(J=m5(/Android\s+([0-9.]+)/))?J:m5(/Version\/([0-9.]+)/);return""}();g.GE(g.gE,g.l);g.T=g.gE.prototype;g.T.subscribe=function(J,R,N){var C=this.J[J];C||(C=this.J[J]=[]);var X=this.S;this.K[X]=J;this.K[X+1]=R;this.K[X+2]=N;this.S=X+3;C.push(X);return X}; g.T.unsubscribe=function(J,R,N){if(J=this.J[J]){var C=this.K;if(J=J.find(function(X){return C[X+1]==R&&C[X+2]==N}))return this.fb(J)}return!1}; g.T.fb=function(J){var R=this.K[J];if(R){var N=this.J[R];this.Z!=0?(this.V.push(J),this.K[J+1]=function(){}):(N&&g.y9(N,J),delete this.K[J],delete this.K[J+1],delete this.K[J+2])}return!!R}; g.T.publish=function(J,R){var N=this.J[J];if(N){var C=Array(arguments.length-1),X=arguments.length,u;for(u=1;u0&&this.Z==0)for(;N=this.V.pop();)this.fb(N)}}return u!=0}return!1}; g.T.clear=function(J){if(J){var R=this.J[J];R&&(R.forEach(this.fb,this),delete this.J[J])}else this.K.length=0,this.J={}}; g.T.Fk=function(){g.gE.gL.Fk.call(this);this.clear();this.V.length=0};g.Up.prototype.set=function(J,R){R===void 0?this.K.remove(J):this.K.set(J,g.jz(R))}; g.Up.prototype.get=function(J){try{var R=this.K.get(J)}catch(N){return}if(R!==null)try{return JSON.parse(R)}catch(N){throw"Storage: Invalid value was encountered";}}; g.Up.prototype.remove=function(J){this.K.remove(J)};g.GE(p$,g.Up);p$.prototype.set=function(J,R){p$.gL.set.call(this,J,aAf(R))}; p$.prototype.J=function(J){J=p$.gL.get.call(this,J);if(J===void 0||J instanceof Object)return J;throw"Storage: Invalid value was encountered";}; p$.prototype.get=function(J){if(J=this.J(J)){if(J=J.data,J===void 0)throw"Storage: Invalid value was encountered";}else J=void 0;return J};g.GE(lc,p$);lc.prototype.set=function(J,R,N){if(R=aAf(R)){if(N){if(N=N.length)return g.PB;var X=N.key(R++);if(J)return g.vw(X);X=N.getItem(X);if(typeof X!=="string")throw"Storage mechanism: Invalid value was encountered";return g.vw(X)}; return C}; g.T.clear=function(){wE(this);this.K.clear()}; g.T.key=function(J){wE(this);return this.K.key(J)};g.GE(cK,e_);g.GE(D4k,e_);g.GE(hX,z9);hX.prototype.set=function(J,R){this.J.set(this.K+J,R)}; hX.prototype.get=function(J){return this.J.get(this.K+J)}; hX.prototype.remove=function(J){this.J.remove(this.K+J)}; hX.prototype.Ok=function(J){var R=this.J[Symbol.iterator](),N=this,C=new g.kZ;C.next=function(){var X=R.next();if(X.done)return X;for(X=X.value;X.slice(0,N.K.length)!=N.K;){X=R.next();if(X.done)return X;X=X.value}return g.vw(J?X.slice(N.K.length):N.J.get(X))}; return C};G9.prototype.getValue=function(){return this.J}; G9.prototype.clone=function(){return new G9(this.K,this.J)};g.T=bc.prototype;g.T.wX=function(J,R){var N=this.K;N.push(new G9(J,R));J=N.length-1;R=this.K;for(N=R[J];J>0;){var C=J-1>>1;if(R[C].K>N.K)R[J]=R[C],J=C;else break}R[J]=N}; g.T.remove=function(){var J=this.K,R=J.length,N=J[0];if(!(R<=0)){if(R==1)J.length=0;else{J[0]=J.pop();J=0;R=this.K;for(var C=R.length,X=R[J];J>1;){var u=J*2+1,f=J*2+2;u=fX.K)break;R[J]=R[u];J=u}R[J]=X}return N.getValue()}}; g.T.Y4=function(){for(var J=this.K,R=[],N=J.length,C=0;C>>16&65535|0;for(var u;N!==0;){u=N>2E3?2E3:N;N-=u;do X=X+R[C++]|0,J=J+X|0;while(--u);X%=65521;J%=65521}return X|J<<16|0};for(var s0={},cB,qWE=[],hE=0;hE<256;hE++){cB=hE;for(var Ajf=0;Ajf<8;Ajf++)cB=cB&1?3988292384^cB>>>1:cB>>>1;qWE[hE]=cB}s0=function(J,R,N,C){N=C+N;for(J^=-1;C>>8^qWE[(J^R[C])&255];return J^-1};var La={};La={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 T6=[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],kH=[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],yUE=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ViE=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],M0=Array(576);op(M0);var Ka=Array(60);op(Ka);var HQ=Array(512);op(HQ);var fa=Array(256);op(fa);var $H=Array(29);op($H);var vQ=Array(30);op(vQ);var wq8,cUE,hWE,eWf=!1;var q0;q0=[new dl(0,0,0,0,function(J,R){var N=65535;for(N>J.jr-5&&(N=J.jr-5);;){if(J.yK<=1){BQ(J);if(J.yK===0&&R===0)return 1;if(J.yK===0)break}J.g3+=J.yK;J.yK=0;var C=J.Tu+N;if(J.g3===0||J.g3>=C)if(J.yK=J.g3-C,J.g3=C,ap(J,!1),J.NP.Rl===0)return 1;if(J.g3-J.Tu>=J.GX-262&&(ap(J,!1),J.NP.Rl===0))return 1}J.wX=0;if(R===4)return ap(J,!0),J.NP.Rl===0?3:4;J.g3>J.Tu&&ap(J,!1);return 1}), new dl(4,4,8,4,O0),new dl(4,5,16,8,O0),new dl(4,6,32,32,O0),new dl(4,4,16,16,Z1),new dl(8,16,32,32,Z1),new dl(8,16,128,128,Z1),new dl(8,32,128,256,Z1),new dl(32,128,258,1024,Z1),new dl(32,258,258,4096,Z1)];var zW7={};zW7=function(){this.input=null;this.IZ=this.hM=this.Qv=0;this.output=null;this.Oj=this.Rl=this.R4=0;this.msg="";this.state=null;this.Hh=2;this.PU=0};var GWE=Object.prototype.toString; AH.prototype.push=function(J,R){var N=this.NP,C=this.options.chunkSize;if(this.ended)return!1;var X=R===~~R?R:R===!0?4:0;typeof J==="string"?N.input=sfE(J):GWE.call(J)==="[object ArrayBuffer]"?N.input=new Uint8Array(J):N.input=J;N.Qv=0;N.hM=N.input.length;do{N.Rl===0&&(N.output=new JH.xY(C),N.R4=0,N.Rl=C);J=Pjn(N,X);if(J!==1&&J!==0)return this.mY(J),this.ended=!0,!1;if(N.Rl===0||N.hM===0&&(X===4||X===2))if(this.options.to==="string"){var u=JH.e5(N.output,N.R4);R=u;u=u.length;if(u<65537&&(R.subarray&& d_f||!R.subarray))R=String.fromCharCode.apply(null,JH.e5(R,u));else{for(var f="",H=0;H0||N.Rl===0)&&J!==1);if(X===4)return(N=this.NP)&&N.state?(C=N.state.status,C!==42&&C!==69&&C!==73&&C!==91&&C!==103&&C!==113&&C!==666?J=Ip(N,-2):(N.state=null,J=C===113?Ip(N,-3):0)):J=-2,this.mY(J),this.ended=!0,J===0;X===2&&(this.mY(0),N.Rl=0);return!0}; AH.prototype.mY=function(J){J===0&&(this.result=this.options.to==="string"?this.chunks.join(""):JH.Zz(this.chunks));this.chunks=[];this.err=J;this.msg=this.NP.msg};var rl="@@redux/INIT"+YH(),RNE="@@redux/REPLACE"+YH();var NbE=typeof Symbol==="function"&&Symbol.observable||"@@observable";var YWU=[0,A_k,-3,gM];g.M(VJ,gA);VJ.prototype.getType=function(){return St(this,11)};var nzE=function(){var J=[0,r_9,YaE,rM,A_k,rM,-1,gM,A_k,gM,-1,r_9,gM,YaE,jp,YWU,rM,-1,gM];return function(R,N){if(Yf.length){var C=Yf.pop();Cf7(C,N);C.K.init(R,void 0,void 0,N);R=C}else R=new q9(R,N);try{var X=new VJ,u=X.KP;$G(J)(u,R);var f=X}finally{R.free()}return f}}();var uwg=382516983;var IIE=new g.gl("adInfoDialogEndpoint");var mi7=new g.gl("adPingingEndpoint");var Cyg=new g.gl("crossDeviceProgressCommand");var Dc=new g.gl("actionCompanionAdRenderer");var s4=new g.gl("adActionInterstitialRenderer");var rj9=new g.gl("adDurationRemainingRenderer");var yq=new g.gl("adHoverTextButtonRenderer");var Sqg=new g.gl("adInfoDialogRenderer");var dU=new g.gl("adMessageRenderer");var Ge=new g.gl("adPreviewRenderer");var Bz=new g.gl("adsEngagementPanelRenderer");var d3E=new g.gl("dismissablePanelTextPortraitImageRenderer");var OL2=new g.gl("adsEngagementPanelSectionListViewModel");var jGl=new g.gl("flyoutCtaRenderer");var sY=new g.gl("imageCompanionAdRenderer");var nG=new g.gl("instreamAdPlayerOverlayRenderer");var C8J=new g.gl("instreamSurveyAdBackgroundImageRenderer");var he=new g.gl("instreamSurveyAdPlayerOverlayRenderer");var gL=new g.gl("instreamSurveyAdRenderer"),cz=new g.gl("instreamSurveyAdSingleSelectQuestionRenderer"),wL=new g.gl("instreamSurveyAdMultiSelectQuestionRenderer"),yl=new g.gl("instreamSurveyAdAnswerRenderer"),m__=new g.gl("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var mG=new g.gl("instreamVideoAdRenderer");var VZ_=new g.gl("textOverlayAdContentRenderer"),gNk=new g.gl("enhancedTextOverlayAdContentRenderer"),U_P=new g.gl("imageOverlayAdContentRenderer");var D6=new g.gl("playerOverlayLayoutRenderer");var BD=new g.gl("videoInterstitialButtonedCenteredLayoutRenderer");var rVf=new g.gl("aboveFeedAdLayoutRenderer");var j_n=new g.gl("belowPlayerAdLayoutRenderer");var YmQ=new g.gl("inPlayerAdLayoutRenderer");var lT=new g.gl("playerBytesAdLayoutRenderer");var eH=new g.gl("playerUnderlayAdLayoutRenderer");var Vq=new g.gl("adIntroRenderer");var rL=new g.gl("playerBytesSequentialLayoutRenderer");var vMB=new g.gl("slidingTextPlayerOverlayRenderer");var UY=new g.gl("surveyTextInterstitialRenderer");var pbf=new g.gl("simpleAdBadgeRenderer");var dT=new g.gl("skipAdRenderer"),lVa=new g.gl("skipButtonRenderer");var Ja=new g.gl("adSlotRenderer");var Pz=new g.gl("squeezebackPlayerSidePanelRenderer");var PkU=new g.gl("timedPieCountdownRenderer");var DPL=new g.gl("adAvatarViewModel");var Ql=new g.gl("adBadgeViewModel");var nU=new g.gl("adButtonViewModel");var zAd=new g.gl("adDetailsLineViewModel");var eAl=new g.gl("adDisclosureBannerViewModel");var wbq=new g.gl("adPodIndexViewModel");var cjP=new g.gl("imageBackgroundViewModel");var hAK=new g.gl("adGridCardCollectionViewModel");var yj9=new g.gl("adGridCardTextViewModel");var GsE=new g.gl("adPreviewViewModel");var bEL=new g.gl("playerAdAvatarLockupCardButtonedViewModel");var tZf=new g.gl("skipAdButtonViewModel");var x_U=new g.gl("skipAdViewModel");var JJL=new g.gl("timedPieCountdownViewModel");var omf=new g.gl("visitAdvertiserLinkViewModel");var OY=new g.gl("bannerImageLayoutViewModel");var Zc=new g.gl("topBannerImageTextIconButtonedLayoutViewModel");var dL=new g.gl("adsEngagementPanelLayoutViewModel");var ze=new g.gl("displayUnderlayTextGridCardsLayoutViewModel");g.Zu=new g.gl("browseEndpoint");var RsP=new g.gl("confirmDialogEndpoint");var gqg=new g.gl("rawColdConfigGroup");var VQg=new g.gl("rawHotConfigGroup");g.mr=new g.gl("commandExecutorCommand");g.M(TbP,gA);var F0g={C4B:0,rDC:1,sW7:32,kkB:61,nZk:67,wkC:86,aek:42,jWa:60,Dj8:62,B4Q:73,fe7:76,KbB:88,R$B:90,dI3:99,z58:98,uZ7:100,Eg7:102,vZf:41,Fb7:69,ce7:70,JeM:71,SVM:2,TsC:27,ANDROID:3,EBB:54,BwB:14,vep:91,kjf:55,WjC:24,waa:20,KQ8:18,uz3:21,cS8:30,mnk:29,Ox7:28,MdO:101,qLB:34,FQ7:36,RzB:38,IOS:5,CQB:15,pdB:92,Ggf:40,AnO:25,S7O:17,Tmn:19,xMQ:64,MRC:66,Y7p:26,rnB:22,LeQ:33,DMn:68,ynn:35,hC3:53,lYk:37,PQn:39,cDB:7,JDQ:57,ggM:43,Ohn:59,mjC:93,gek:74,q2B:75,ihB:85,tdO:65,IeB:80,ZhC:8,vgB:10,QWf:58,UjB:63,VdC:72, JSn:23,OV3:11,qPp:13,NXk:12,FkO:16,X4C:56,WkC:31,GuC:77,jsC:84,og8:87,f9N:89,o5B:94,JkB:95};g.M(U0,gA);U0.prototype.Te=function(){return Wh(this,3)}; U0.prototype.DA=function(){return Wh(this,5)}; U0.prototype.Sw=function(J){return IZ(this,5,J)};g.M(pa,gA);g.M($W7,gA);g.M(lH,gA);g.T=lH.prototype;g.T.getDeviceId=function(){return Wh(this,6)}; g.T.X1=function(J){var R=wV(this,9,C6,3,void 0,!0);V2(R,J);return R[J]}; g.T.getPlayerType=function(){return St(this,36)}; g.T.setHomeGroupInfo=function(J){return ui(this,$W7,81,J)}; g.T.clearLocationPlayabilityToken=function(){return gV(this,89)};g.M(PQ,gA);PQ.prototype.getValue=function(){return Wh(this,RZ(this,jSg)===2?2:-1)}; var jSg=[2,3,4,5,6];g.M(z6,gA);z6.prototype.setTrackingParams=function(J){return gV(this,1,RAB(J,!1))};g.M(eW,gA);g.M(wl,gA);wl.prototype.X1=function(J){var R=wV(this,5,XC,3,void 0,!0);V2(R,J);return R[J]};g.M(cQ,gA);cQ.prototype.getToken=function(){return Hh(this,2)}; cQ.prototype.setToken=function(J){return IZ(this,2,J)};g.M(hH,gA);hH.prototype.setSafetyMode=function(J){return EX(this,5,J)};g.M(yJ,gA);yJ.prototype.aj=function(J){return ui(this,lH,1,J)};var te=new g.gl("thumbnailLandscapePortraitRenderer");g.NVL=new g.gl("changeEngagementPanelVisibilityAction");var lIE=new g.gl("continuationCommand");g.CfL=new g.gl("openPopupAction");g.Gv=new g.gl("webCommandMetadata");var f9k=new g.gl("metadataBadgeRenderer");var p98=new g.gl("signalServiceEndpoint");var tv=new g.gl("innertubeCommand");var O3g=new g.gl("loggingDirectives");var G4B={Qsa:"EMBEDDED_PLAYER_MODE_UNKNOWN",I98:"EMBEDDED_PLAYER_MODE_DEFAULT",UON:"EMBEDDED_PLAYER_MODE_PFP",ZJp:"EMBEDDED_PLAYER_MODE_PFL"};var mCP=new g.gl("channelThumbnailEndpoint");var jJg=new g.gl("embeddedPlayerErrorMessageRenderer");var q68=new g.gl("embeddedPlayerOverlayVideoDetailsRenderer"),VBE=new g.gl("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),gK2=new g.gl("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var XV7=new g.gl("embedsInfoPanelRenderer");var X2k=new g.gl("feedbackEndpoint");var i6V=new g.gl("callToActionButtonViewModel");var uCq=new g.gl("interactionLoggingCommandMetadata");var wKE={bhM:"WEB_DISPLAY_MODE_UNKNOWN",yDC:"WEB_DISPLAY_MODE_BROWSER",HhB:"WEB_DISPLAY_MODE_MINIMAL_UI",N4k:"WEB_DISPLAY_MODE_STANDALONE",e5B:"WEB_DISPLAY_MODE_FULLSCREEN"};g.M(tH,gA);tH.prototype.getPlayerType=function(){return St(this,7)}; tH.prototype.VL=function(){return Wh(this,19)}; tH.prototype.setVideoId=function(J){return IZ(this,19,J)};g.M(xH,gA);g.M(Jc,gA);g.M(oS,gA); var fBE=[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];g.M(RS,gA);g.M(NO,gA);NO.prototype.VL=function(){return Hh(this,RZ(this,nR)===1?1:-1)}; NO.prototype.setVideoId=function(J){return JQ(this,1,nR,v2(J))}; NO.prototype.getPlaylistId=function(){return Hh(this,RZ(this,nR)===2?2:-1)}; var nR=[1,2];g.M(HHE,gA);var LA=new g.gl("changeKeyedMarkersVisibilityCommand");var TVV=new g.gl("changeMarkersVisibilityCommand");var $Ck=new g.gl("loadMarkersCommand");var $Vf=new g.gl("suggestedActionDataViewModel");var c5g=new g.gl("timelyActionViewModel");var waB=new g.gl("timelyActionsOverlayViewModel");var ywB=new g.gl("productListItemRenderer");var H68=new g.gl("shoppingOverlayRenderer");var AOg=new g.gl("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var kDK=new g.gl("adFeedbackEndpoint");var vm_=new g.gl("menuEndpoint");var TKf=new g.gl("phoneDialerEndpoint");var uD8=new g.gl("sendSmsEndpoint");var dCQ=new g.gl("copyTextEndpoint");var WPU=new g.gl("shareEndpoint"),SR8=new g.gl("shareEntityEndpoint"),LPl=new g.gl("shareEntityServiceEndpoint"),IBK=new g.gl("webPlayerShareEntityServiceEndpoint");g.oH=new g.gl("urlEndpoint");g.WJ=new g.gl("watchEndpoint");var FPl=new g.gl("watchPlaylistEndpoint");g.EmP=new g.gl("offlineOrchestrationActionCommand");var mQB=new g.gl("compositeVideoOverlayRenderer");var MuU=new g.gl("miniplayerRenderer");var OPE=new g.gl("paidContentOverlayRenderer");var zrB=new g.gl("playerMutedAutoplayOverlayRenderer"),er7=new g.gl("playerMutedAutoplayEndScreenRenderer");var ifQ=new g.gl("unserializedPlayerResponse"),wAP=new g.gl("unserializedPlayerResponse");var KPa=new g.gl("playlistEditEndpoint");var bq;g.bT=new g.gl("buttonRenderer");bq=new g.gl("toggleButtonRenderer");var Bxn=new g.gl("counterfactualRenderer");var aBq=new g.gl("resolveUrlCommandMetadata");var QtJ=new g.gl("modifyChannelNotificationPreferenceEndpoint");var jIE=new g.gl("pingingEndpoint");var nmV=new g.gl("unsubscribeEndpoint");g.dO=new g.gl("subscribeButtonRenderer");var DVK=new g.gl("subscribeEndpoint");var Kfg=new g.gl("buttonViewModel");var ZLY=new g.gl("qrCodeRenderer");var MNP={KRB:"LIVING_ROOM_APP_MODE_UNSPECIFIED",kg7:"LIVING_ROOM_APP_MODE_MAIN",BmO:"LIVING_ROOM_APP_MODE_KIDS",WeM:"LIVING_ROOM_APP_MODE_MUSIC",wYC:"LIVING_ROOM_APP_MODE_UNPLUGGED",E6N:"LIVING_ROOM_APP_MODE_GAMING"};var oKP=new g.gl("autoplaySwitchButtonRenderer");var rQ,mXE,vXE,hvY;rQ=new g.gl("decoratedPlayerBarRenderer");mXE=new g.gl("chapteredPlayerBarRenderer");vXE=new g.gl("multiMarkersPlayerBarRenderer");hvY=new g.gl("chapterRenderer");g.pWg=new g.gl("markerRenderer");var stP=new g.gl("decoratedPlayheadRenderer");var iPB=new g.gl("desktopOverlayConfigRenderer");var CUE=new g.gl("gatedActionsOverlayViewModel");var ev2=new g.gl("heatMarkerRenderer");var zvE=new g.gl("heatmapRenderer");var T$E=new g.gl("watchToWatchTransitionRenderer");var Y6E=new g.gl("playlistPanelRenderer");var BVE=new g.gl("productUpsellSuggestedActionViewModel");var O6P=new g.gl("suggestedActionTimeRangeTrigger"),Z69=new g.gl("suggestedActionsRenderer"),dVq=new g.gl("suggestedActionRenderer");var wWE=new g.gl("timedMarkerDecorationRenderer");var d5f=new g.gl("cipher");var utE=new g.gl("playerVars");var cSE=new g.gl("playerVars");var tE=g.mB.window,qRk,AJ_,C4=(tE==null?void 0:(qRk=tE.yt)==null?void 0:qRk.config_)||(tE==null?void 0:(AJ_=tE.ytcfg)==null?void 0:AJ_.data_)||{};g.VE("yt.config_",C4);var f4=[];var Kn2=/^[\w.]*$/,Iyf={q:!0,search_query:!0},LnP=String(kq);var aS=new function(){var J=window.document;this.K=window;this.J=J}; g.VE("yt.ads_.signals_.getAdSignalsString",function(J){return vR(n4(J))});g.yE();var QMn="XMLHttpRequest"in g.mB?function(){return new XMLHttpRequest}:null;var YRa="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.Q(YRa);var BbB={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"},OHf="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.Q(YRa)),mWE=!1,DWE=ZHE,YkB=mh;g.M(UE,vl);PR.prototype.then=function(J,R,N){return this.K?this.K.then(J,R,N):this.V===1&&J?(J=J.call(N,this.J))&&typeof J.then==="function"?J:eQ(J):this.V===2&&R?(J=R.call(N,this.J))&&typeof J.then==="function"?J:zO(J):this}; PR.prototype.getValue=function(){return this.J}; PR.prototype.$goog_Thenable=!0;var wp=!1;var C9=u4||fI;var hN2=/^([0-9\.]+):([0-9\.]+)$/;g.M(Qv,vl);Qv.prototype.name="BiscottiError";g.M(ac,vl);ac.prototype.name="BiscottiMissingError";var tAQ={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},nI=null;var ilk=BYP(["data-"]),uuE={};var rJJ=0,De=g.RP?"webkit":nz?"moz":g.sp?"ms":g.jh?"o":"",jtK=g.gY("ytDomDomGetNextId")||function(){return++rJJ}; g.VE("ytDomDomGetNextId",jtK);var HmB={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};qY.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; qY.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; qY.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Af=g.mB.ytEventsEventsListeners||{};g.VE("ytEventsEventsListeners",Af);var W8Y=g.mB.ytEventsEventsCounter||{count:0};g.VE("ytEventsEventsCounter",W8Y);var F8n=Fq(function(){var J=!1;try{var R=Object.defineProperty({},"passive",{get:function(){J=!0}}); window.addEventListener("test",null,R)}catch(N){}return J}),Slg=Fq(function(){var J=!1; try{var R=Object.defineProperty({},"capture",{get:function(){J=!0}}); window.addEventListener("test",null,R)}catch(N){}return J});var xf;xf=window;g.g9=xf.ytcsi&&xf.ytcsi.now?xf.ytcsi.now:xf.performance&&xf.performance.timing&&xf.performance.now&&xf.performance.timing.navigationStart?function(){return xf.performance.timing.navigationStart+xf.performance.now()}:function(){return(new Date).getTime()};g.GE(Vv,g.l);Vv.prototype.W=function(J){J.K===void 0&&kNE(J);var R=J.K;J.J===void 0&&kNE(J);this.K=new g.Ms(R,J.J)}; Vv.prototype.lG=function(){return this.K||new g.Ms}; Vv.prototype.nC=function(){if(this.K){var J=(0,g.g9)();if(this.Z!=0){var R=this.S,N=this.K,C=R.x-N.x;R=R.y-N.y;C=Math.sqrt(C*C+R*R)/(J-this.Z);this.J[this.V]=Math.abs((C-this.U)/this.U)>.5?1:0;for(N=R=0;N<4;N++)R+=this.J[N]||0;R>=3&&this.D();this.U=C}this.Z=J;this.S=this.K;this.V=(this.V+1)%4}}; Vv.prototype.Fk=function(){g.dp(this.X);g.rJ(this.dn)};g.M(gJ,g.l);gJ.prototype.L=function(J,R,N,C,X){N=g.$q((0,g.wY)(N,C||this.oB));N={target:J,name:R,callback:N};var u;X&&F8n()&&(u={passive:!0});J.addEventListener(R,N.callback,u);this.D.push(N);return N}; gJ.prototype.tL=function(J){for(var R=0;R=p.P4)||n.K.version>=b||n.K.objectStoreNames.contains(V)||Z.push(V)}k=Z;if(k.length===0){a.ZM(5);break}v=Object.keys(N.options.Fm); W=H.objectStoreNames();if(N.UN.options.version+1)throw L.close(),N.V=!1,i$B(N,I);return a.return(L);case 8:throw R(), S instanceof Error&&!g.Ac("ytidb_async_stack_killswitch")&&(S.stack=S.stack+"\n"+f.substring(f.indexOf("\n")+1)),qz(S,N.name,"",(F=N.options.version)!=null?F:-1);}})} function R(){N.K===C&&(N.K=void 0)} var N=this;if(!this.V)throw i$B(this);if(this.K)return this.K;var C,X={blocking:function(u){u.close()}, closed:R,ys3:R,upgrade:this.options.upgrade};return this.K=C=J()};var RN=new Jg("YtIdbMeta",{Fm:{databases:{P4:1}},upgrade:function(J,R){R(1)&&g.p3(J,"databases",{keyPath:"actualName"})}});var f9,uC=new function(){}(new function(){});new g.Qt;g.M(H$,Jg);H$.prototype.J=function(J,R,N){N=N===void 0?{}:N;return(this.options.shared?SpE:W57)(J,R,Object.assign({},N))}; H$.prototype.delete=function(J){J=J===void 0?{}:J;return(this.options.shared?EtE:L5B)(this.name,J)};var es9={},K5n=g.ks("ytGcfConfig",{Fm:(es9.coldConfigStore={P4:1},es9.hotConfigStore={P4:1},es9),shared:!1,upgrade:function(J,R){R(1)&&(g.c9(g.p3(J,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.c9(g.p3(J,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.M(W$,g.l);W$.prototype.Fk=function(){for(var J=g.K(this.J),R=J.next();!R.done;R=J.next()){var N=this.K;R=N.indexOf(R.value);R>=0&&N.splice(R,1)}this.J.length=0;g.l.prototype.Fk.call(this)};M6.prototype.Sw=function(J){this.hotHashData=J;g.VE("yt.gcf.config.hotHashData",this.hotHashData||null)};var w2d=typeof TextEncoder!=="undefined"?new TextEncoder:null,$0E=w2d?function(J){return w2d.encode(J)}:function(J){J=g.IU(J); for(var R=new Uint8Array(J.length),N=0;N=R?!1:!0}; g.T.r0=function(){var J=this;if(!xs(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Ru.XL("QUEUED",this.al).then(function(R){R&&!J.hQ(R,J.lA)?J.R6.ou(function(){return g.Y(function(N){if(N.K==1)return R.id===void 0?N.ZM(2):g.q(N,J.Ru.vM(R.id,J.al),2);J.r0();g.IQ(N)})}):J.Me.Tj()&&J.Qe()})};var RI;var lxE={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};var hsa={},Oa2=g.ks("ServiceWorkerLogsDatabase",{Fm:(hsa.SWHealthLog={P4:1},hsa),shared:!0,upgrade:function(J,R){R(1)&&g.c9(g.p3(J,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var XI={},rHk=0;var i0;f5.prototype.requestComplete=function(J,R){R&&(this.J=!0);J=this.removeParams(J);this.K.get(J)||this.K.set(J,R)}; f5.prototype.isEndpointCFR=function(J){J=this.removeParams(J);return(J=this.K.get(J))?!1:J===!1&&this.J?!0:null}; f5.prototype.removeParams=function(J){return J.split("?")[0]}; f5.prototype.removeParams=f5.prototype.removeParams;f5.prototype.isEndpointCFR=f5.prototype.isEndpointCFR;f5.prototype.requestComplete=f5.prototype.requestComplete;f5.getInstance=TA;g.M($A,g.iD);g.T=$A.prototype;g.T.Tj=function(){return this.K.Tj()}; g.T.Z6=function(J){this.K.K=J}; g.T.ut=function(){var J=window.navigator.onLine;return J===void 0?!0:J}; g.T.zc=function(){this.J=!0}; g.T.listen=function(J,R){return this.K.listen(J,R)}; g.T.Nx=function(J){J=oo(this.K,J);J.then(function(R){g.Ac("use_cfr_monitor")&&TA().requestComplete("generate_204",R)}); return J}; $A.prototype.sendNetworkCheckRequest=$A.prototype.Nx;$A.prototype.listen=$A.prototype.listen;$A.prototype.enableErrorFlushing=$A.prototype.zc;$A.prototype.getWindowStatus=$A.prototype.ut;$A.prototype.networkStatusHint=$A.prototype.Z6;$A.prototype.isNetworkAvailable=$A.prototype.Tj;$A.getInstance=VW8;g.M(g.HG,g.iD);g.HG.prototype.Tj=function(){var J=g.gY("yt.networkStatusManager.instance.isNetworkAvailable");return J?J.bind(this.J)():!0}; g.HG.prototype.Z6=function(J){var R=g.gY("yt.networkStatusManager.instance.networkStatusHint").bind(this.J);R&&R(J)}; g.HG.prototype.Nx=function(J){var R=this,N;return g.Y(function(C){N=g.gY("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(R.J);return g.Ac("skip_network_check_if_cfr")&&TA().isEndpointCFR("generate_204")?C.return(new Promise(function(X){var u;R.Z6(((u=window.navigator)==null?void 0:u.onLine)||!0);X(R.Tj())})):N?C.return(N(J)):C.return(!0)})};var kA;g.M(vG,Jd);vG.prototype.writeThenSend=function(J,R){R||(R={});R=Sg(J,R);g.iS()||(this.K=!1);Jd.prototype.writeThenSend.call(this,J,R)}; vG.prototype.sendThenWrite=function(J,R,N){R||(R={});R=Sg(J,R);g.iS()||(this.K=!1);Jd.prototype.sendThenWrite.call(this,J,R,N)}; vG.prototype.sendAndWrite=function(J,R){R||(R={});R=Sg(J,R);g.iS()||(this.K=!1);Jd.prototype.sendAndWrite.call(this,J,R)}; vG.prototype.awaitInitialization=function(){return this.V.promise};var PHE=g.mB.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.VE("ytNetworklessLoggingInitializationOptions",PHE);g.L5.prototype.isReady=function(){!this.config_&>E()&&(this.config_=g.aN());return!!this.config_};var yJq,EK,K5;yJq=g.mB.ytPubsubPubsubInstance||new g.gE;EK=g.mB.ytPubsubPubsubSubscribedKeys||{};K5=g.mB.ytPubsubPubsubTopicToKeys||{};g.Mi=g.mB.ytPubsubPubsubIsSynchronous||{};g.gE.prototype.subscribe=g.gE.prototype.subscribe;g.gE.prototype.unsubscribeByKey=g.gE.prototype.fb;g.gE.prototype.publish=g.gE.prototype.publish;g.gE.prototype.clear=g.gE.prototype.clear;g.VE("ytPubsubPubsubInstance",yJq);g.VE("ytPubsubPubsubTopicToKeys",K5);g.VE("ytPubsubPubsubIsSynchronous",g.Mi); g.VE("ytPubsubPubsubSubscribedKeys",EK);var yHY={};g.M(qi,g.l);qi.prototype.append=function(J){if(!this.J)throw Error("This does not support the append operation");J=J.Ov();this.Ov().appendChild(J)}; g.M(Ad,qi);Ad.prototype.Ov=function(){return this.K};g.M(tWf,g.l);var YA=Date.now().toString();var gP={};var zA=Symbol("injectionDeps");p5.prototype.toString=function(){return"InjectionToken("+this.name+")"}; Ryk.prototype.resolve=function(J){return J instanceof l0?eg(this,J.key,[],!0):eg(this,J,[])};var wP;var hd=window;var td=g.Ac("web_enable_lifecycle_monitoring")&&yR()!==0,TpE=g.Ac("web_enable_lifecycle_monitoring");i4n.prototype.cancel=function(){for(var J=g.K(this.K),R=J.next();!R.done;R=J.next())R=R.value,R.jobId===void 0||R.VB||this.scheduler.An(R.jobId),R.VB=!0;this.J.resolve()};g.T=xA.prototype;g.T.install=function(J){this.plugins.push(J);return this}; g.T.uninstall=function(){var J=this;g.sf.apply(0,arguments).forEach(function(R){R=J.plugins.indexOf(R);R>-1&&J.plugins.splice(R,1)})}; g.T.transition=function(J,R){var N=this;td&&CLP(this.state);var C=this.transitions.find(function(u){return Array.isArray(u.from)?u.from.find(function(f){return f===N.state&&u.to===J}):u.from===N.state&&u.to===J}); if(C){this.J&&(uiE(this.J),this.J=void 0);$Og(this,J,R);this.state=J;td&&GA(this.state);C=C.action.bind(this);var X=this.plugins.filter(function(u){return u[J]}).map(function(u){return u[J]}); C(fxB(this,X),R)}else throw Error("no transition specified from "+this.state+" to "+J);}; g.T.HLB=function(J){var R=g.sf.apply(1,arguments);g.H9();for(var N=g.K(J),C=N.next(),X={};!C.done;X={tq:void 0},C=N.next())X.tq=C.value,qlB(function(u){return function(){ok(u.tq.name);Nd(function(){return u.tq.callback.apply(u.tq,g.Q(R))}); Rk(u.tq.name)}}(X))}; g.T.eyO=function(J){var R=g.sf.apply(1,arguments),N,C,X,u;return g.Y(function(f){f.K==1&&(g.H9(),N=g.K(J),C=N.next(),X={});if(f.K!=3){if(C.done)return f.ZM(0);X.u$=C.value;X.Sn=void 0;u=function(H){return function(){ok(H.u$.name);var k=Nd(function(){return H.u$.callback.apply(H.u$,g.Q(R))}); nf(k)?H.Sn=g.Ac("web_lifecycle_error_handling_killswitch")?k.then(function(){Rk(H.u$.name)}):k.then(function(){Rk(H.u$.name)},function(v){XRB(v); Rk(H.u$.name)}):Rk(H.u$.name)}}(X); qlB(u);return X.Sn?g.q(f,X.Sn,3):f.ZM(3)}X={u$:void 0,Sn:void 0};C=N.next();return f.ZM(2)})}; g.T.iz=function(J){var R=g.sf.apply(1,arguments),N=this,C=J.map(function(X){return{b9:function(){ok(X.name);Nd(function(){return X.callback.apply(X,g.Q(R))}); Rk(X.name)}, priority:Jv(N,X)}}); C.length&&(this.J=new i4n(C))}; g.XB.Object.defineProperties(xA.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Xo;g.M(CR,xA);CR.prototype.U=function(J,R){var N=this;this.K=g.TB(0,function(){N.currentState==="application_navigating"&&N.transition("none")},5E3); J(R==null?void 0:R.event)}; CR.prototype.S=function(J,R){this.K&&(g.Nh.An(this.K),this.K=null);J(R==null?void 0:R.event)};var Yu=[];g.VE("yt.logging.transport.getScrapedGelPayloads",function(){return Yu});iK.prototype.storePayload=function(J,R){J=uK(J);this.store[J]?this.store[J].push(R):(this.J={},this.store[J]=[R]);this.K++;g.Ac("more_accurate_gel_parser")&&(R=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(R));return J}; iK.prototype.smartExtractMatchingEntries=function(J){if(!J.keys.length)return[];for(var R=T$(this,J.keys.splice(0,1)[0]),N=[],C=0;C=0){C=!1;break a}}C=!0}C&&(R=Jp(R))&&this.DC(R)}}; g.T.Mv=function(J){return J}; g.T.b7=function(J){var R=this.ma;R.D=!0;R.J=J.touches.length;R.K.isActive()&&(R.K.stop(),R.U=!0);J=J.touches;R.S=x0Q(R,J)||J.length!=1;var N=J.item(0);R.S||!N?(R.X=Infinity,R.W=Infinity):(R.X=N.clientX,R.W=N.clientY);for(N=R.V.length=0;N=0)}if(N||J&&Math.pow(J.clientX-R.X,2)+Math.pow(J.clientY-R.W,2)>25)R.Z=!0}; g.T.HE=function(J){if(this.ma){var R=this.ma,N=J.changedTouches;N&&R.D&&R.J==1&&!R.Z&&!R.U&&!R.S&&x0Q(R,N)&&(R.nC=J,R.K.start());R.J=J.touches.length;R.J===0&&(R.D=!1,R.Z=!1,R.V.length=0);R.U=!1}}; g.T.DC=function(J){this.layoutId?this.yO.executeCommand(J,this.layoutId):g.yD(new g.C3("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.T.createServerVe=function(J,R){this.api.createServerVe(J,this);this.api.setTrackingParams(J,R)}; g.T.logVisibility=function(J,R){this.api.hasVe(J)&&this.api.logVisibility(J,R,this.interactionLoggingClientData)}; g.T.Fk=function(){this.clear(null);this.tL(this.oB);for(var J=g.K(this.tN),R=J.next();!R.done;R=J.next())this.tL(R.value);g.da.prototype.Fk.call(this)};g.M(bW,qj); bW.prototype.init=function(J,R,N){qj.prototype.init.call(this,J,R,N);this.K=R;if(R.text==null&&R.icon==null)g.G$(Error("ButtonRenderer did not have text or an icon set."));else{switch(R.style||null){case "STYLE_UNKNOWN":J="ytp-ad-button-link";break;default:J=null}J!=null&&g.FL(this.element,J);R.text!=null&&(J=g.Yn(R.text),g.MK(J)||(this.element.setAttribute("aria-label",J),this.V=new g.da({C:"span",Y:"ytp-ad-button-text",cC:J}),g.P(this,this.V),this.V.IB(this.element)));R.accessibilityData&&R.accessibilityData.accessibilityData&& R.accessibilityData.accessibilityData.label&&!g.MK(R.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",R.accessibilityData.accessibilityData.label);R.icon!=null&&(R=GT(R.icon,this.Z),R!=null&&(this.J=new g.da({C:"span",Y:"ytp-ad-button-icon",j:[R]}),g.P(this,this.J)),this.U?$w(this.element,this.J.element,0):this.J.IB(this.element))}}; bW.prototype.clear=function(){this.hide()}; bW.prototype.onClick=function(J){qj.prototype.onClick.call(this,J);J=g.K(o9E(this));for(var R=J.next();!R.done;R=J.next())R=R.value,this.layoutId?this.yO.executeCommand(R,this.layoutId):g.yD(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.M(tp,g.l);tp.prototype.Fk=function(){this.J&&g.rJ(this.J);this.K.clear();xn=null;g.l.prototype.Fk.call(this)}; tp.prototype.register=function(J,R){R&&this.K.set(J,R)}; var xn=null;g.M(RH,qj); RH.prototype.init=function(J,R,N){qj.prototype.init.call(this,J,R,N);J=R.hoverText||null;R=R.button&&g.z(R.button,g.bT)||null;R==null?g.yD(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new bW(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,void 0,void 0,void 0,void 0,this.V),g.P(this,this.button),this.button.init(Mj("button"),R,this.macros),J&&this.button.element.setAttribute("aria-label",g.Yn(J)),this.button.IB(this.element),this.W&&!g.Io(this.button.element, "ytp-ad-clickable")&&g.FL(this.button.element,"ytp-ad-clickable"),this.V&&(g.FL(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.T("clean_player_style_fix_on_web")&&g.FL(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),J&&(this.J=new g.da({C:"div",Y:"ytp-ad-hover-text-container"}),this.U&&(R=new g.da({C:"div",Y:"ytp-ad-hover-text-callout"}),R.IB(this.J.element),g.P(this,R)),g.P(this,this.J),this.J.IB(this.element),R=Jl(J),$w(this.J.element,R,0)), this.show())}; RH.prototype.hide=function(){this.button&&this.button.hide();this.J&&this.J.hide();qj.prototype.hide.call(this)}; RH.prototype.show=function(){this.button&&this.button.show();qj.prototype.show.call(this)};g.M(Cr,qj); Cr.prototype.init=function(J,R,N){qj.prototype.init.call(this,J,R,N);N=(J=R.thumbnail)&&N2(J)||"";g.MK(N)?Math.random()<.01&&g.G$(Error("Found AdImage without valid image URL")):(this.K?g.Lz(this.element,"backgroundImage","url("+N+")"):oP(this.element,{src:N}),oP(this.element,{alt:J&&J.accessibility&&J.accessibility.label||""}),R&&R.adRendererCommands&&R.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; Cr.prototype.clear=function(){this.hide()};g.M(Xp,qj);g.T=Xp.prototype;g.T.hide=function(){qj.prototype.hide.call(this);this.V&&this.V.focus()}; g.T.show=function(){this.V=document.activeElement;qj.prototype.show.call(this);this.Z.focus()}; g.T.init=function(J,R,N){qj.prototype.init.call(this,J,R,N);this.J=R;R.dialogMessages||R.title!=null?R.confirmLabel==null?g.yD(Error("ConfirmDialogRenderer.confirmLabel was not set.")):R.cancelLabel==null?g.yD(Error("ConfirmDialogRenderer.cancelLabel was not set.")):X9n(this,R):g.yD(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.T.clear=function(){g.pI(this.K);this.hide()}; g.T.l1=function(){this.hide()}; g.T.n6=function(){var J=this.J.cancelEndpoint;J&&(this.layoutId?this.yO.executeCommand(J,this.layoutId):g.yD(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.T.rF=function(){var J=this.J.confirmNavigationEndpoint||this.J.confirmEndpoint;J&&(this.layoutId?this.yO.executeCommand(J,this.layoutId):g.yD(Error("Missing layoutId for confirm dialog.")));this.hide()};g.M(iy,qj);g.T=iy.prototype; g.T.init=function(J,R,N){qj.prototype.init.call(this,J,R,N);this.V=R;if(R.defaultText==null&&R.defaultIcon==null)g.yD(Error("ToggleButtonRenderer must have either text or icon set."));else if(R.defaultIcon==null&&R.toggledIcon!=null)g.yD(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(R.style){switch(R.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":J="ytp-ad-toggle-button-default-style";break;default:J=null}J!=null&&g.FL(this.Z,J)}J={};R.defaultText? (N=g.Yn(R.defaultText),g.MK(N)||(J.buttonText=N,this.api.N().experiments.b3("a11y_h5_associate_survey_question")||this.K.setAttribute("aria-label",N),this.api.N().experiments.b3("fix_h5_toggle_button_a11y")&&this.J.setAttribute("aria-label",N))):g.ji(this.VO,!1);R.defaultTooltip&&(J.tooltipText=R.defaultTooltip,this.K.hasAttribute("aria-label")||this.J.setAttribute("aria-label",R.defaultTooltip));R.defaultIcon?(N=GT(R.defaultIcon),this.updateValue("untoggledIconTemplateSpec",N),R.toggledIcon?(this.dn= !0,N=GT(R.toggledIcon),this.updateValue("toggledIconTemplateSpec",N)):(g.ji(this.W,!0),g.ji(this.U,!1)),g.ji(this.K,!1)):g.ji(this.J,!1);g.rq(J)||this.update(J);R.isToggled&&(g.FL(this.Z,"ytp-ad-toggle-button-toggled"),this.toggleButton(R.isToggled));uy(this);this.L(this.element,"change",this.oe);this.show()}}; g.T.onClick=function(J){this.tN.length>0&&(this.toggleButton(!this.isToggled()),this.oe());qj.prototype.onClick.call(this,J)}; g.T.oe=function(){g.ao(this.Z,"ytp-ad-toggle-button-toggled",this.isToggled());for(var J=g.K(i3g(this,this.isToggled())),R=J.next();!R.done;R=J.next())R=R.value,this.layoutId?this.yO.executeCommand(R,this.layoutId):g.yD(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);uy(this)}; g.T.clear=function(){this.hide()}; g.T.toggleButton=function(J){g.ao(this.Z,"ytp-ad-toggle-button-toggled",J);this.K.checked=J;uy(this)}; g.T.isToggled=function(){return this.K.checked};g.M(fr,gJ);fr.prototype.S=function(J){if(Array.isArray(J)){J=g.K(J);for(var R=J.next();!R.done;R=J.next())R=R.value,R instanceof uUP&&this.Z(R)}};g.M(T8,qj);g.T=T8.prototype;g.T.init=function(J,R,N){qj.prototype.init.call(this,J,R,N);R.reasons?R.confirmLabel==null?g.yD(Error("AdFeedbackRenderer.confirmLabel was not set.")):(R.cancelLabel==null&&g.G$(Error("AdFeedbackRenderer.cancelLabel was not set.")),R.title==null&&g.G$(Error("AdFeedbackRenderer.title was not set.")),H3Q(this,R)):g.yD(Error("AdFeedbackRenderer.reasons were not set."))}; g.T.clear=function(){j0(this.U);j0(this.W);this.Z.length=0;this.hide()}; g.T.hide=function(){this.K&&this.K.hide();this.J&&this.J.hide();qj.prototype.hide.call(this);this.V&&this.V.focus()}; g.T.show=function(){this.K&&this.K.show();this.J&&this.J.show();this.V=document.activeElement;qj.prototype.show.call(this);this.U.focus()}; g.T.Pq=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.T.MDO=function(){this.hide()}; $p.prototype.Ov=function(){return this.K.element}; $p.prototype.getCommand=function(){return this.J}; $p.prototype.isChecked=function(){return this.V.checked};g.M(HF,Xp);HF.prototype.l1=function(J){Xp.prototype.l1.call(this,J);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; HF.prototype.n6=function(J){Xp.prototype.n6.call(this,J);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; HF.prototype.rF=function(J){Xp.prototype.rF.call(this,J);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.M(kp,qj);g.T=kp.prototype; g.T.init=function(J,R,N){qj.prototype.init.call(this,J,R,N);this.U=R;if(R.dialogMessage==null&&R.title==null)g.yD(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{R.confirmLabel==null&&g.G$(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(J=R.closeOverlayRenderer&&g.z(R.closeOverlayRenderer,g.bT)||null)this.K=new bW(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.P(this,this.K),this.K.init(Mj("button"),J,this.macros),this.K.IB(this.element);R.title&&(J=g.Yn(R.title),this.updateValue("title",J));if(R.adReasons)for(J=R.adReasons,N=0;N=this.G7?(this.VO.hide(),this.pC=!0,this.publish("i")):this.V&&this.V.isTemplated()&&(J=Math.max(0,Math.ceil((this.G7-J)/1E3)),J!=this.eQ&&(Sa(this.V,{TIME_REMAINING:String(J)}),this.eQ=J)))}};g.M(QZ,Lr);g.T=QZ.prototype; g.T.init=function(J,R,N){Lr.prototype.init.call(this,J,R,N);if(R.image&&R.image.thumbnail)if(R.headline)if(R.description)if((J=R.actionButton&&g.z(R.actionButton,g.bT))&&J.navigationEndpoint){var C=this.api.getVideoData(2);if(C!=null)if(R.image&&R.image.thumbnail){var X=R.image.thumbnail.thumbnails;X!=null&&X.length>0&&g.MK(g.iR(X[0].url))&&(X[0].url=C.profilePicture)}else g.G$(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.V.init(Mj("ad-image"),R.image,N);this.U.init(Mj("ad-text"), R.headline,N);this.Z.init(Mj("ad-text"),R.description,N);this.J.init(Mj("button"),J,N);N=f$(this.J.element);uc(this.J.element,N+" This link opens in new tab");this.dn=J.navigationEndpoint;this.api.Mw()||this.show();this.api.N().T("enable_larger_flyout_cta_on_desktop")&&(this.qp("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.qp("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.qp("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.qp("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.qp("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.qp("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.J.element.classList.add("ytp-flyout-cta-action-button-large"),this.J.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.qp("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.BH.bind(this));this.VO=R.startMs||0;IH(this)}else g.yD(Error("FlyoutCtaRenderer has no valid action button."));else g.yD(Error("FlyoutCtaRenderer has no description AdText."));else g.yD(Error("FlyoutCtaRenderer has no headline AdText."));else g.G$(Error("FlyoutCtaRenderer has no image."))}; g.T.onClick=function(J){Lr.prototype.onClick.call(this,J);this.api.pauseVideo();!g.kw(this.J.element,J.target)&&this.dn&&(this.layoutId?this.yO.executeCommand(this.dn,this.layoutId):g.yD(Error("Missing layoutId for flyout cta.")))}; g.T.fR=function(){if(this.K){var J=this.K.getProgressState();(J&&J.current||this.G7)&&1E3*J.current>=this.VO&&(Fp(this),g.Mh(this.element,"ytp-flyout-cta-inactive"),this.J.element.removeAttribute("tabIndex"))}}; g.T.W9=function(){this.clear()}; g.T.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.BH.bind(this))}; g.T.show=function(){this.J&&this.J.show();Lr.prototype.show.call(this)}; g.T.hide=function(){this.J&&this.J.hide();Lr.prototype.hide.call(this)}; g.T.BH=function(J){J=="hidden"?this.show():this.hide()};g.M(nr,qj);g.T=nr.prototype; g.T.init=function(J,R,N){qj.prototype.init.call(this,J,R,N);this.K=R;if(this.K.rectangle)for(J=this.K.likeButton&&g.z(this.K.likeButton,bq),R=this.K.dislikeButton&&g.z(this.K.dislikeButton,bq),this.V.init(Mj("toggle-button"),J,N),this.J.init(Mj("toggle-button"),R,N),this.L(this.element,"change",this.kt),this.Z.show(100),this.show(),N=g.K(this.K&&this.K.impressionCommands||[]),J=N.next();!J.done;J=N.next())J=J.value,this.layoutId?this.yO.executeCommand(J,this.layoutId):g.yD(Error("Missing layoutId for instream user sentiment."))}; g.T.clear=function(){this.hide()}; g.T.hide=function(){this.V.hide();this.J.hide();qj.prototype.hide.call(this)}; g.T.show=function(){this.V.show();this.J.show();qj.prototype.show.call(this)}; g.T.kt=function(){RWY(this.element,"ytp-ad-instream-user-sentiment-selected");this.K.postMessageAction&&this.api.z7("onYtShowToast",this.K.postMessageAction);this.Z.hide()}; g.T.onClick=function(J){this.tN.length>0&&this.kt();qj.prototype.onClick.call(this,J)};g.M(DO,g.l);g.T=DO.prototype;g.T.Fk=function(){this.reset();g.l.prototype.Fk.call(this)}; g.T.reset=function(){g.pI(this.Z);this.S=!1;this.K&&this.K.stop();this.U.stop();this.V&&(this.V=!1,this.D.play())}; g.T.start=function(){this.reset();this.Z.L(this.J,"mouseover",this.wb,this);this.Z.L(this.J,"mouseout",this.WH,this);this.nC&&(this.Z.L(this.J,"focusin",this.wb,this),this.Z.L(this.J,"focusout",this.WH,this));this.K?this.K.start():(this.S=this.V=!0,g.Lz(this.J,{opacity:this.W}))}; g.T.wb=function(){this.V&&(this.V=!1,this.D.play());this.U.stop();this.K&&this.K.stop()}; g.T.WH=function(){this.S?this.U.start():this.K&&this.K.start()}; g.T.tP=function(){this.V||(this.V=!0,this.X.play(),this.S=!0)};var QiE=[new sS("b.f_",!1,0),new sS("j.s_",!1,2),new sS("r.s_",!1,4),new sS("e.h_",!1,6),new sS("i.s_",!0,8),new sS("s.t_",!1,10),new sS("p.h_",!1,12),new sS("s.i_",!1,14),new sS("f.i_",!1,16),new sS("a.b_",!1,18),new sS("a.o_",!1),new sS("g.o_",!1,22),new sS("p.i_",!1,24),new sS("p.m_",!1),new sS("i.k_",!0,28),new sS("n.k_",!0,20),new sS("i.f_",!1),new sS("a.s_",!0),new sS("m.c_",!1),new sS("n.h_",!1,26),new sS("o.p_",!1)].reduce(function(J,R){J[R.J]=R;return J},{});g.M(r0,Lr);g.T=r0.prototype; g.T.init=function(J,R,N){Lr.prototype.init.call(this,J,R,N);this.dn=R;(this.VO=Dz7(this))&&g.G$(Error("hasAdControlInClickCommands_ is true."));if(!R||g.rq(R))g.yD(Error("SkipButtonRenderer was not specified or empty."));else if(!R.message||g.rq(R.message))g.yD(Error("SkipButtonRenderer.message was not specified or empty."));else{J=this.U?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};R=GT(J);R==null?g.yD(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+J.iconType+".")): (this.Z=new g.da({C:"button",CC:[this.U?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],j:[{C:"span",Y:this.U?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",j:[R]}]}),g.P(this,this.Z),this.Z.IB(this.V.element),this.J=new WF(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,"ytp-ad-skip-button-text"),this.U&&this.J.element.classList.add("ytp-ad-skip-button-text-centered"),this.J.init(Mj("ad-text"),this.dn.message,N),g.P(this,this.J),$w(this.Z.element,this.J.element, 0));var C=C===void 0?null:C;N=this.api.N();!(this.tN.length>0)&&N.J&&(kS?0:"ontouchstart"in document.documentElement&&(xgg()||DT()))&&(this.tL(this.oB),C&&this.tL(C),this.tN=[this.L(this.element,"touchstart",this.b7,this),this.L(this.element,"touchmove",this.Nl,this),this.L(this.element,"touchend",this.HE,this)])}}; g.T.clear=function(){this.G7.reset();this.hide()}; g.T.hide=function(){this.V.hide();this.J&&this.J.hide();Fp(this);Lr.prototype.hide.call(this)}; g.T.onClick=function(J){if(this.Z!=null){if(J){var R=J||window.event;R.returnValue=!1;R.preventDefault&&R.preventDefault()}var N;if(KTP(J,{contentCpn:((N=this.api.getVideoData(1))==null?void 0:N.clientPlaybackNonce)||""})===0)this.api.z7("onAbnormalityDetected");else if(Lr.prototype.onClick.call(this,J),this.publish("j"),this.api.N().T("embeds_web_enable_ad_skipped_event_publishing")&&this.api.z7("onAdSkip"),this.pC||!this.VO)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.T.Mv=function(J){if(!this.pC)return this.VO&&d0("SkipButton click commands not pruned while ALC exist"),J;var R,N=(R=g.z(J,g.mr))==null?void 0:R.commands;if(!N)return J;J=[];for(R=0;R=this.U&&siY(this,!0)};g.M(g0,bW);g0.prototype.init=function(J,R,N){bW.prototype.init.call(this,J,R,N);J=!1;R.text!=null&&(J=g.Yn(R.text),J=!g.MK(J));J?R.navigationEndpoint==null?g.G$(Error("No visit advertiser clickthrough provided in renderer,")):R.style!=="STYLE_UNKNOWN"?g.G$(Error("Button style was not a link-style type in renderer,")):this.show():g.G$(Error("No visit advertiser text was present in the renderer."))};g.M(US,qj); US.prototype.init=function(J,R,N){qj.prototype.init.call(this,J,R,N);J=R.text;g.MK(Ap(J))?g.G$(Error("SimpleAdBadgeRenderer has invalid or empty text")):(J&&J.text&&(R=J.text,this.V&&!this.J&&(R=this.api.N(),R=J.text+" "+(R&&R.J?"\u2022":"\u00b7")),R={text:R,isTemplated:J.isTemplated},J.style&&(R.style=J.style),J.targetId&&(R.targetId=J.targetId),J=new WF(this.api,this.layoutId,this.interactionLoggingClientData,this.yO),J.init(Mj("simple-ad-badge"),R,N),J.IB(this.element),g.P(this,J)),this.show())}; US.prototype.clear=function(){this.hide()};g.M(pr,K7);g.M(ly,g.al);g.T=ly.prototype;g.T.pE=function(){return this.durationMs}; g.T.stop=function(){this.K&&this.cU.tL(this.K)}; g.T.P1=function(J){this.J={seekableStart:0,seekableEnd:this.durationMs/1E3,current:J.current};this.publish("h")}; g.T.getProgressState=function(){return this.J}; g.T.zV=function(J){g.Yp(J,2)&&this.publish("g")};g.M(PF,g.al);g.T=PF.prototype;g.T.pE=function(){return this.durationMs}; g.T.start=function(){this.K||(this.K=!0,this.pY.start())}; g.T.stop=function(){this.K&&(this.K=!1,this.pY.stop())}; g.T.P1=function(){this.Ul+=100;var J=!1;this.Ul>this.durationMs&&(this.Ul=this.durationMs,this.pY.stop(),J=!0);this.J={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Ul/1E3};this.publish("h");J&&this.publish("g")}; g.T.getProgressState=function(){return this.J};g.M(w0,Lr);g.T=w0.prototype;g.T.init=function(J,R,N){Lr.prototype.init.call(this,J,R,N);var C;if(R==null?0:(C=R.templatedCountdown)==null?0:C.templatedAdText){J=R.templatedCountdown.templatedAdText;if(!J.isTemplated){g.G$(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.J=new WF(this.api,this.layoutId,this.interactionLoggingClientData,this.yO);this.J.init(Mj("ad-text"),J,{});this.J.IB(this.element);g.P(this,this.J)}this.show()}; g.T.clear=function(){this.hide()}; g.T.hide=function(){Fp(this);Lr.prototype.hide.call(this)}; g.T.W9=function(){this.hide()}; g.T.fR=function(){if(this.K!=null){var J=this.K.getProgressState();if(J!=null&&J.current!=null&&this.J){var R=this.K instanceof ly?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:J.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.K instanceof PF?J.seekableEnd:this.api.getDuration(2,!1);J=J.current;R=this.api.N().experiments.b3("enable_player_overlay_non_negative_remaining_duration_on_web")?Math.max(R-J,0):R-J;Sa(this.J,{FORMATTED_AD_DURATION_REMAINING:String(g.z8(R)), TIME_REMAINING:String(Math.ceil(R))})}}}; g.T.show=function(){IH(this);Lr.prototype.show.call(this)};g.M(cF,WF);cF.prototype.onClick=function(J){WF.prototype.onClick.call(this,J);this.api.onAdUxClicked(this.componentType)};g.M(yZ,qj);yZ.prototype.init=function(J,R){qj.prototype.init.call(this,J,R,{});if(J=R.content){g.vt(this.element,J);var N,C;R=((N=R.interaction)==null?void 0:(C=N.accessibility)==null?void 0:C.label)||J;this.element.setAttribute("aria-label",R)}else g.yD(Error("AdSimpleAttributedString does not have text content"))}; yZ.prototype.clear=function(){this.hide()}; yZ.prototype.onClick=function(J){qj.prototype.onClick.call(this,J)};g.M(G8,qj); G8.prototype.init=function(J,R){qj.prototype.init.call(this,J,R,{});(J=R.label)&&J.content&&!g.MK(J.content)?(this.adBadgeText.init(Mj("ad-simple-attributed-string"),new hl(J)),(R=R.adPodIndex)&&R.content&&!g.MK(R.content)&&(this.K=new yZ(this.api,this.layoutId,this.interactionLoggingClientData,this.yO),this.K.IB(this.element),g.P(this,this.K),this.K.element.classList.add("ytp-ad-badge__pod-index"),this.K.init(Mj("ad-simple-attributed-string"),new hl(R))),this.element.classList.add(this.J?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.yD(Error("No label is returned in AdBadgeViewModel."))}; G8.prototype.show=function(){this.adBadgeText.show();var J;(J=this.K)==null||J.show();qj.prototype.show.call(this)}; G8.prototype.hide=function(){this.adBadgeText.hide();var J;(J=this.K)==null||J.hide();qj.prototype.hide.call(this)};g.M(by,qj); by.prototype.init=function(J,R){qj.prototype.init.call(this,J,R,{});(J=R.adPodIndex)&&J.content&&!g.MK(J.content)&&(this.K=new yZ(this.api,this.layoutId,this.interactionLoggingClientData,this.yO),this.K.IB(this.element),g.P(this,this.K),this.K.init(Mj("ad-simple-attributed-string"),new hl(J)),(this.api.N().T("clean_player_style_fix_on_web")?R.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.J||R.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()}; by.prototype.show=function(){var J;(J=this.K)==null||J.show();qj.prototype.show.call(this)}; by.prototype.hide=function(){var J;(J=this.K)==null||J.hide();qj.prototype.hide.call(this)};g.M(tl,qj); tl.prototype.init=function(J,R){qj.prototype.init.call(this,J,R,{});if(R!=null&&R.text){var N;if(((N=R.text)==null?0:N.content)&&!g.MK(R.text.content)){this.K=new g.da({C:"div",Y:"ytp-ad-disclosure-banner__text",cC:R.text.content});g.P(this,this.K);this.K.IB(this.element);var C,X;J=((C=R.interaction)==null?void 0:(X=C.accessibility)==null?void 0:X.label)||R.text.content;this.element.setAttribute("aria-label",J);var u;if((u=R.interaction)==null?0:u.onTap)this.J=new g.da({C:"div",Y:"ytp-ad-disclosure-banner__chevron",j:[g.VP()]}), g.P(this,this.J),this.J.IB(this.element);this.show()}}else g.yD(Error("No banner text found in AdDisclosureBanner."))}; tl.prototype.clear=function(){this.hide()};xp.prototype.getLength=function(){return this.K-this.J};g.M(o_,g.da);o_.prototype.P1=function(){var J=this.J.getProgressState(),R=J.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.N().T("show_preskip_progress_bar_for_skippable_ads")&&(R=this.V?this.V/1E3:J.seekableEnd);J=JV(new xp(J.seekableStart,R),J.current,0);this.progressBar.style.width=J*100+"%"}; o_.prototype.onStateChange=function(){g.eh(this.api.N())||(this.api.getPresentingPlayerType()===2?this.K===-1&&(this.show(),this.K=this.J.subscribe("h",this.P1,this),this.P1()):this.K!==-1&&(this.hide(),this.J.fb(this.K),this.K=-1))};g.M(R_,qj); R_.prototype.init=function(J,R,N,C){qj.prototype.init.call(this,J,R,N);N=!0;if(R.skipOrPreviewRenderer){var X=R.skipOrPreviewRenderer;J=g.z(X,dT);X=g.z(X,Ge);J?(X=new VZ(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.J,this.dn),X.IB(this.W),X.init(Mj("skip-button"),J,this.macros),g.P(this,X)):X&&!this.api.N().experiments.b3("disable_ad_preview_for_instream_ads")&&(J=new Kr(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.J,!1),J.IB(this.W),J.init(Mj("ad-preview"),X, this.macros),aH(J),g.P(this,J));if(J=g.z(R.skipOrPreviewRenderer,dT)){N=!1;var u=J.skipOffsetMilliseconds}}R.brandInteractionRenderer&&(J=R.brandInteractionRenderer.brandInteractionRenderer,X=new nr(this.api,this.layoutId,this.interactionLoggingClientData,this.yO),X.IB(this.G7),X.init(Mj("instream-user-sentiment"),J,this.macros),g.P(this,X));if(J=g.z(R,jGl))if(J=g.z(J,jGl))X=new QZ(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.J,!!R.showWithoutLinkedMediaLayout),g.P(this,X), X.IB(this.U),X.init(Mj("flyout-cta"),J,this.macros);J=(this.api.N().T("disable_ad_duration_remaining_for_instream_video_ads")||R.adPodIndex!==void 0)&&!1;C=C&&C.videoAdDurationSeconds;if(R.adBadgeRenderer){var f=R.adBadgeRenderer;X=g.z(f,Ql);X!=null?(f=new G8(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,J),g.P(this,f),f.IB(this.K),f.init(Mj("ad-badge"),X,this.macros),this.V=f.element):(X=f.simpleAdBadgeRenderer,X==null&&(X={text:{text:"An\u00fancio",isTemplated:!1}}),f=new US(this.api, this.layoutId,this.interactionLoggingClientData,this.yO,!0),g.P(this,f),f.IB(this.K),f.init(Mj("simple-ad-badge"),X,this.macros))}R.adPodIndex&&(X=g.z(R.adPodIndex,wbq),X!=null&&(N=new by(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,N),g.P(this,N),N.IB(this.K),N.init(Mj("ad-pod-index"),X)));R.adDurationRemaining&&!R.showWithoutLinkedMediaLayout&&(N=R.adDurationRemaining.adDurationRemainingRenderer,N==null&&(N={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}", isTemplated:!0}}}),C=new w0(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.J,C,J),g.P(this,C),C.IB(this.K),C.init(Mj("ad-duration-remaining"),N,this.macros),J&&C.element.classList.add("ytp-ad-duration-remaining-autohide"));R.adInfoRenderer&&(C=g.z(R.adInfoRenderer,yq))&&(N=new vF(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.element,void 0,J),g.P(this,N),this.api.N().T("enable_ad_pod_index_autohide")&&this.V!==null?this.K.insertBefore(N.element,this.V.nextSibling): N.IB(this.K),N.init(Mj("ad-info-hover-text-button"),C,this.macros));R.visitAdvertiserRenderer&&(N=g.z(R.visitAdvertiserRenderer,g.bT))&&(X=Z3k(this)&&this.Z?this.Z:this.K)&&(C=new g0(this.api,this.layoutId,this.interactionLoggingClientData,this.yO),g.P(this,C),C.IB(X),C.init(Mj("visit-advertiser"),N,this.macros),XL(C.element),N=f$(C.element),uc(C.element,N+" This link opens in new tab"));!(C=this.api.N())||g.PH(C)||C.controlsType!="3"&&!C.disableOrganicUi||(u=new o_(this.api,this.J,u,J),u.IB(this.T7), g.P(this,u));R.adDisclosureBannerRenderer&&(R=g.z(R.adDisclosureBannerRenderer,eAl))&&(u=new tl(this.api,this.layoutId,this.interactionLoggingClientData,this.yO),u.IB(this.VO),u.init(Mj("ad-disclosure-banner"),R),g.P(this,u));this.api.N().T("enable_updated_html5_player_focus_style")&&g.FL(this.element,"ytp-ad-player-overlay-updated-focus-style");J&&this.api.N().J&&this.K.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()}; R_.prototype.clear=function(){this.hide()};iw.prototype.set=function(J,R,N){N=N!==void 0?Date.now()+N:void 0;this.K.set(J,R,N)}; iw.prototype.get=function(J){return this.K.get(J)}; iw.prototype.remove=function(J){this.K.remove(J)};var $a=null,HC=null,ka=null,jin=null;g.VE("yt.www.ads.eventcache.getLastCompanionData",function(){return $a}); g.VE("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.VE("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return HC}); g.VE("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return ka}); g.VE("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return jin});var V$E=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);vC.prototype.handleResponse=function(J,R){if(!R)throw Error("request needs to be passed into ConsistencyService");var N,C;R=((N=R.IF.context)==null?void 0:(C=N.request)==null?void 0:C.consistencyTokenJars)||[];var X;(J=(X=J.responseContext)==null?void 0:X.consistencyTokenJar)&&this.replace(R,J)}; vC.prototype.replace=function(J,R){J=g.K(J);for(var N=J.next();!N.done;N=J.next())delete this.K[N.value.encryptedTokenJarContents];Uz8(this,R)};var o19=window.location.hostname.split(".").slice(-2).join("."),C1;SC.getInstance=function(){C1=g.gY("yt.clientLocationService.instance");C1||(C1=new SC,g.VE("yt.clientLocationService.instance",C1));return C1}; g.T=SC.prototype; g.T.setLocationOnInnerTubeContext=function(J){J.client||(J.client={});if(this.K)J.client.locationInfo||(J.client.locationInfo={}),J.client.locationInfo.latitudeE7=Math.floor(this.K.coords.latitude*1E7),J.client.locationInfo.longitudeE7=Math.floor(this.K.coords.longitude*1E7),J.client.locationInfo.horizontalAccuracyMeters=Math.round(this.K.coords.accuracy),J.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.V||this.locationPlayabilityToken)J.client.locationPlayabilityToken=this.V|| this.locationPlayabilityToken}; g.T.handleResponse=function(J){var R;J=(R=J.responseContext)==null?void 0:R.locationPlayabilityToken;J!==void 0&&(this.locationPlayabilityToken=J,this.K=void 0,g.iL("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=WC(this))&&this.localStorage.set("yt-location-playability-token",J,15552E3):g.hc("YT_CL",JSON.stringify({loctok:J}),15552E3,o19,!0))}; g.T.clearLocationPlayabilityToken=function(J){J==="TVHTML5"?(this.localStorage=WC(this))&&this.localStorage.remove("yt-location-playability-token"):g.GO("YT_CL");this.V=void 0;this.J!==-1&&(clearTimeout(this.J),this.J=-1)}; g.T.getCurrentPositionFromGeolocation=function(){var J=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var R=!1,N=1E4;g.iL("INNERTUBE_CLIENT_NAME")==="MWEB"&&(R=!0,N=15E3);return new Promise(function(C,X){navigator.geolocation.getCurrentPosition(function(u){J.K=u;C(u)},function(u){X(u)},{enableHighAccuracy:R, maximumAge:0,timeout:N})})}; g.T.createUnpluggedLocationInfo=function(J){var R={};J=J.coords;if(J==null?0:J.latitude)R.latitudeE7=Math.floor(J.latitude*1E7);if(J==null?0:J.longitude)R.longitudeE7=Math.floor(J.longitude*1E7);if(J==null?0:J.accuracy)R.locationRadiusMeters=Math.round(J.accuracy);return R}; g.T.createLocationInfo=function(J){var R={};J=J.coords;if(J==null?0:J.latitude)R.latitudeE7=Math.floor(J.latitude*1E7);if(J==null?0:J.longitude)R.longitudeE7=Math.floor(J.longitude*1E7);return R};g.T=e4f.prototype;g.T.contains=function(J){return Object.prototype.hasOwnProperty.call(this.K,J)}; g.T.get=function(J){if(this.contains(J))return this.K[J]}; g.T.set=function(J,R){this.K[J]=R}; g.T.b4=function(){return Object.keys(this.K)}; g.T.remove=function(J){delete this.K[J]};I_.prototype.getModuleId=function(J){return J.serviceId.getModuleId()}; I_.prototype.get=function(J){a:{var R=this.mappings.get(J.toString());switch(R.type){case "mapping":J=R.value;break a;case "factory":R=R.value();this.mappings.set(J.toString(),{type:"mapping",value:R});J=R;break a;default:J=xN(R)}}return J}; I_.prototype.registerService=function(J,R){this.mappings.set(J.toString(),{type:"mapping",value:R});return J}; new I_;var XG={},w9E=(XG.WEB_UNPLUGGED="^unplugged/",XG.WEB_UNPLUGGED_ONBOARDING="^unplugged/",XG.WEB_UNPLUGGED_OPS="^unplugged/",XG.WEB_UNPLUGGED_PUBLIC="^unplugged/",XG.WEB_CREATOR="^creator/",XG.WEB_KIDS="^kids/",XG.WEB_EXPERIMENTS="^experiments/",XG.WEB_MUSIC="^music/",XG.WEB_REMIX="^music/",XG.WEB_MUSIC_EMBEDDED_PLAYER="^music/",XG.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",XG);M3.prototype.U=function(J,R,N){R=R===void 0?{}:R;N=N===void 0?n9:N;var C={context:g.LL(J.clickTrackingParams,!1,this.Z)};var X=this.J(J);if(X){this.K(C,X,R);var u;R=g.Em(this.V());(X=(u=g.z(J.commandMetadata,g.Gv))==null?void 0:u.apiUrl)&&(R=X);u=PzB(bL(R));J=Object.assign({},{command:J},void 0);C={input:u,Nu:tc(u),IF:C,config:J};C.config.aJ?C.config.aJ.identity=N:C.config.aJ={identity:N};return C}g.yD(new g.C3("Error: Failed to create Request from Command.",J))}; g.XB.Object.defineProperties(M3.prototype,{Z:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.M(KL,M3);g.M(a_,KL);a_.prototype.U=function(){return{input:"/getDatasyncIdsEndpoint",Nu:tc("/getDatasyncIdsEndpoint","GET"),IF:{}}}; a_.prototype.V=function(){return[]}; a_.prototype.J=function(){}; a_.prototype.K=function(){};var RL8={},D68=(RL8.GET_DATASYNC_IDS=FE(a_),RL8);var im={},NAd=(im["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",im["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",im["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",im["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",im["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",im["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",im["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", im["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",im["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",im["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",im["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",im["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",im["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",im["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",im["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", im["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",im["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",im["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",im["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",im["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",im["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",im["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", im["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",im.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",im["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",im["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",im["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",im["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",im["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",im["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", im["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",im["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",im["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",im["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",im["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",im["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",im["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",im["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",im["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",im["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",im.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",im["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",im["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",im["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",im["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",im["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",im["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",im["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",im["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",im["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",im["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",im["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",im["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",im["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",im["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",im["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",im["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",im["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",im["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",im["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",im["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",im["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", im["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",im["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",im["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",im["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",im["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",im["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",im["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",im["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",im["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", im["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",im["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",im["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",im["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",im["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",im["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",im["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",im["video.translations"]= "LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",im),um={},xzY=(um.auto_search="LATENCY_ACTION_AUTO_SEARCH",um.ad_to_ad="LATENCY_ACTION_AD_TO_AD",um.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",um.app_startup="LATENCY_ACTION_APP_STARTUP",um.browse="LATENCY_ACTION_BROWSE",um.cast_splash="LATENCY_ACTION_CAST_SPLASH",um.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",um.channels="LATENCY_ACTION_CHANNELS",um.chips="LATENCY_ACTION_CHIPS",um.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",um.direct_playback= "LATENCY_ACTION_DIRECT_PLAYBACK",um.editor="LATENCY_ACTION_EDITOR",um.embed="LATENCY_ACTION_EMBED",um.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",um.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",um.explore="LATENCY_ACTION_EXPLORE",um.favorites="LATENCY_ACTION_FAVORITES",um.home="LATENCY_ACTION_HOME",um.inboarding="LATENCY_ACTION_INBOARDING",um.library="LATENCY_ACTION_LIBRARY",um.live="LATENCY_ACTION_LIVE",um.live_pagination="LATENCY_ACTION_LIVE_PAGINATION", um.management="LATENCY_ACTION_MANAGEMENT",um.mini_app="LATENCY_ACTION_MINI_APP_PLAY",um.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",um.onboarding="LATENCY_ACTION_ONBOARDING",um.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",um.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",um.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",um.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",um.prebuffer="LATENCY_ACTION_PREBUFFER",um.prefetch= "LATENCY_ACTION_PREFETCH",um.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",um.profile_switcher="LATENCY_ACTION_LOGIN",um.projects="LATENCY_ACTION_PROJECTS",um.reel_watch="LATENCY_ACTION_REEL_WATCH",um.results="LATENCY_ACTION_RESULTS",um.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",um.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",um.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",um.review="LATENCY_ACTION_REVIEW",um.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",um.search_ui= "LATENCY_ACTION_SEARCH_UI",um.search_suggest="LATENCY_ACTION_SUGGEST",um.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",um.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",um.seek="LATENCY_ACTION_PLAYER_SEEK",um.settings="LATENCY_ACTION_SETTINGS",um.store="LATENCY_ACTION_STORE",um.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",um.tenx="LATENCY_ACTION_TENX",um.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",um.watch="LATENCY_ACTION_WATCH",um.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN", um["watch,watch7"]="LATENCY_ACTION_WATCH",um["watch,watch7_html5"]="LATENCY_ACTION_WATCH",um["watch,watch7ad"]="LATENCY_ACTION_WATCH",um["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",um.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",um.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",um.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",um.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",um.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",um.gel_compression="LATENCY_ACTION_GEL_COMPRESSION", um.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",um.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",um);Object.assign(xzY,NAd);g.M(bw,DZ);var vsE=new Ys("aft-recorded",bw);var CiJ=g.mB.ytLoggingGelSequenceIdObj_||{};g.VE("ytLoggingGelSequenceIdObj_",CiJ);var JM=g.mB.ytLoggingLatencyUsageStats_||{};g.VE("ytLoggingLatencyUsageStats_",JM);tV.prototype.tick=function(J,R,N,C){ob(this,"tick_"+J+"_"+R)||g.Mz("latencyActionTicked",{tickName:J,clientActionNonce:R},{timestamp:N,cttAuthInfo:C})}; tV.prototype.info=function(J,R,N){var C=Object.keys(J).join("");ob(this,"info_"+C+"_"+R)||(J=Object.assign({},J),J.clientActionNonce=R,g.Mz("latencyActionInfo",J,{cttAuthInfo:N}))}; tV.prototype.jspbInfo=function(J,R,N){for(var C="",X=0;X=X.length?(R.append(X),J-=X.length):J?(R.append(new Uint8Array(X.buffer,X.byteOffset,J)),N.append(new Uint8Array(X.buffer,X.byteOffset+J,X.length-J)),J=0):N.append(X);return{I5:R,WY:N}}; g.T.isFocused=function(J){return J>=this.Pd&&J=64&&(this.S.set(J.subarray(0,64-this.J),this.J),R=64-this.J,this.J=0,kAY(this,this.S,0));for(;R+64<=N;R+=64)kAY(this,J,R);R=this.start&&(J=2&&N.ssdaiAdsConfig&&d0("Unexpected ad placement renderers length",J.slot,null,{length:C.length});C.some(function(X){var u,f,H,k;return!!((u=X.renderer)==null?0:(f=u.linearAdSequenceRenderer)==null?0:(H=f.linearAds)==null?0:H.length)||!((k=X.renderer)==null||!k.instreamVideoAdRenderer)})||ZR8(J)})}; Dp.prototype.KH=function(){Stg(this.K)};s_.prototype.wd=function(){var J=this;W2f(this.J,function(){var R=QX(J.slot.clientMetadata,"metadata_type_ad_break_request_data");return R.cueProcessedMs?J.K.get().fetch({Mh:R.getAdBreakUrl,D3:new g.Kw(R.Cj,R.Q6),cueProcessedMs:R.cueProcessedMs}):J.K.get().fetch({Mh:R.getAdBreakUrl,D3:new g.Kw(R.Cj,R.Q6)})})}; s_.prototype.KH=function(){Stg(this.J)};BT.prototype.wd=function(){var J=this.slot.clientMetadata,R,N=(R=this.slot.fulfilledLayout)!=null?R:QX(J,"metadata_type_fulfilled_layout");hZY(this.callback,this.slot,N)}; BT.prototype.KH=function(){mE(this.callback,this.slot,new x("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")};Zp.prototype.build=function(J,R){return R.fulfilledLayout||O_(R,{Om:["metadata_type_fulfilled_layout"]})?new BT(J,R):this.V(J,R)};g.M(dN,Zp); dN.prototype.V=function(J,R){if(O_(R,{Om:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Dp(J,R,this.K,this.J,this.FM,this.JN,this.AN,this.UB,this.v1);if(O_(R,{Om:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new s_(J,R,this.K,this.J,this.FM,this.JN);throw new x("Unsupported slot with type: "+R.slotType+" and client metadata: "+nQ(R.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.M(q5,Zp);q5.prototype.V=function(J,R){throw new x("Unsupported slot with type: "+R.slotType+" and client metadata: "+nQ(R.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.T=ddB.prototype;g.T.pP=function(){return this.slot}; g.T.LC=function(){return this.layout}; g.T.init=function(){}; g.T.release=function(){}; g.T.startRendering=function(J){if(J.layoutId!==this.layout.layoutId)this.callback.dL(this.slot,J,new KQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var R=QX(J.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.H3(this.slot,J),cVY(this.V, this.slot,R)):d0("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,J)}}; g.T.vU=function(J,R){J.layoutId!==this.layout.layoutId?this.callback.dL(this.slot,J,new KQ("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.mV(this.slot,J,R),AvE(this),YtY(this))};g.M(m4,g.al);g.T=m4.prototype;g.T.pP=function(){return this.J.slot}; g.T.LC=function(){return this.J.layout}; g.T.init=function(){this.V.get().addListener(this)}; g.T.release=function(){this.V.get().removeListener(this);this.dispose()}; g.T.Rt=function(){}; g.T.wg=function(){}; g.T.WF=function(){}; g.T.ge=function(){}; g.T.startRendering=function(J){var R=this;jJ(this.J,J,function(){return void R.wB()})}; g.T.wB=function(){this.V.get().wB(this.K)}; g.T.vU=function(J,R){var N=this;jJ(this.J,J,function(){var C=N.V.get();Ek2(C,N.K,3);N.K=[];N.callback.mV(N.slot,J,R)})}; g.T.Fk=function(){this.V.QO()||this.V.get().removeListener(this);g.al.prototype.Fk.call(this)}; g.XB.Object.defineProperties(m4.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.J.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.J.layout}}});eJ.prototype.dX=function(J,R){R=R===void 0?!1:R;var N=(this.V.get(J)||[]).concat();if(R=R&&mdf(J)){var C=this.V.get(R);C&&N.push.apply(N,g.Q(C))}hK(this,J,N);this.K.add(J);R&&this.K.add(R)}; eJ.prototype.r3=function(J,R){R=R===void 0?!1:R;if(!this.K.has(J)){var N=R&&mdf(J);N&&(R=!this.K.has(N));this.dX(J,R)}};g.M(UdQ,K7);g.M(xi,m4);g.T=xi.prototype;g.T.IT=function(J,R){pw("ads-engagement-panel-layout",J,this.S.get().Z9,this.AN.get(),this.Z,this.U,this.pP(),this.LC(),R)}; g.T.startRendering=function(J){gN(this.Np,this.pP(),this.LC(),g.z(this.LC().renderingContent,dL),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(R,N,C,X,u){return new UdQ(R,N,C,X,u)},this.K); m4.prototype.startRendering.call(this,J)}; g.T.H3=function(J,R){this.U===R.layoutId&&(this.Z===null?this.Z=this.AN.get().eV():d0("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.T.mV=function(){}; g.T.Xe=function(){}; g.T.HV=function(){}; g.T.Lb=function(){}; g.T.SX=function(){}; g.T.TT=function(){}; g.T.DI=function(){}; g.T.yg=function(){}; g.T.cV=function(){}; g.T.QL=function(){}; g.T.N7=function(){}; g.T.Fk=function(){ri(this.o1(),this);m4.prototype.Fk.call(this)};g.M(ln2,K7);g.M(JY,m4);g.T=JY.prototype;g.T.IT=function(J,R){pw("banner-image",J,this.S.get().Z9,this.AN.get(),this.Z,this.U,this.pP(),this.LC(),R)}; g.T.startRendering=function(J){gN(this.Np,this.pP(),this.LC(),g.z(this.LC().renderingContent,OY),this.callback,"metadata_type_banner_image_layout_view_model",function(R,N,C,X,u){return new ln2(R,N,C,X,u)},this.K); m4.prototype.startRendering.call(this,J)}; g.T.H3=function(J,R){this.U===R.layoutId&&(this.Z===null?this.Z=this.AN.get().eV():d0("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.T.mV=function(){}; g.T.Xe=function(){}; g.T.HV=function(){}; g.T.Lb=function(){}; g.T.SX=function(){}; g.T.TT=function(){}; g.T.DI=function(){}; g.T.yg=function(){}; g.T.cV=function(){}; g.T.QL=function(){}; g.T.N7=function(){}; g.T.Fk=function(){ri(this.o1(),this);m4.prototype.Fk.call(this)};g.M(oW,K7);g.M(RW,m4);g.T=RW.prototype;g.T.IT=function(J,R){pw("action-companion",J,this.S.get().Z9,this.AN.get(),this.Z,this.U,this.pP(),this.LC(),R)}; g.T.startRendering=function(J){gN(this.Np,this.pP(),this.LC(),g.z(this.LC().renderingContent,Dc),this.callback,"metadata_type_action_companion_ad_renderer",function(R,N,C,X,u){return new oW(R,N,C,X,u)},this.K); m4.prototype.startRendering.call(this,J)}; g.T.H3=function(J,R){R.layoutId===this.layout.layoutId?this.Np.r3("impression"):this.U===R.layoutId&&(this.Z===null?this.Z=this.AN.get().eV():d0("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.T.mV=function(){}; g.T.Xe=function(){}; g.T.HV=function(){}; g.T.Lb=function(){}; g.T.SX=function(){}; g.T.TT=function(){}; g.T.DI=function(){}; g.T.yg=function(){}; g.T.cV=function(){}; g.T.QL=function(){}; g.T.N7=function(){}; g.T.Fk=function(){ri(this.o1(),this);m4.prototype.Fk.call(this)};g.M(eXg,K7);g.M(NE,m4);g.T=NE.prototype;g.T.IT=function(J,R){pw("image-companion",J,this.S.get().Z9,this.AN.get(),this.Z,this.U,this.pP(),this.LC(),R)}; g.T.startRendering=function(J){gN(this.Np,this.pP(),this.LC(),g.z(this.LC().renderingContent,sY),this.callback,"metadata_type_image_companion_ad_renderer",function(R,N,C,X,u){return new eXg(R,N,C,X,u)},this.K); m4.prototype.startRendering.call(this,J)}; g.T.H3=function(J,R){R.layoutId===this.layout.layoutId?this.Np.r3("impression"):this.U===R.layoutId&&(this.Z===null?this.Z=this.AN.get().eV():d0("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.T.mV=function(){}; g.T.Xe=function(){}; g.T.HV=function(){}; g.T.Lb=function(){}; g.T.SX=function(){}; g.T.TT=function(){}; g.T.DI=function(){}; g.T.yg=function(){}; g.T.cV=function(){}; g.T.QL=function(){}; g.T.N7=function(){}; g.T.Fk=function(){ri(this.o1(),this);m4.prototype.Fk.call(this)};g.M(cvB,K7);g.M(CG,m4);g.T=CG.prototype;g.T.IT=function(J,R){pw("shopping-companion",J,this.S.get().Z9,this.AN.get(),this.Z,this.U,this.pP(),this.LC(),R)}; g.T.startRendering=function(J){gN(this.Np,this.pP(),this.LC(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(R,N,C,X,u){return new cvB(R,N,C,X,u)},this.K); m4.prototype.startRendering.call(this,J)}; g.T.H3=function(J,R){R.layoutId===this.layout.layoutId?this.Np.r3("impression"):this.U===R.layoutId&&(this.Z===null?this.Z=this.AN.get().eV():d0("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.T.mV=function(){}; g.T.Xe=function(){}; g.T.HV=function(){}; g.T.Lb=function(){}; g.T.SX=function(){}; g.T.TT=function(){}; g.T.DI=function(){}; g.T.yg=function(){}; g.T.cV=function(){}; g.T.QL=function(){}; g.T.N7=function(){}; g.T.Fk=function(){ri(this.o1(),this);m4.prototype.Fk.call(this)};g.M(iJ,m4);g.T=iJ.prototype;g.T.startRendering=function(J){gN(this.Np,this.pP(),this.LC(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(R,N,C,X,u){return new oW(R,N,C,X,u)},this.K); m4.prototype.startRendering.call(this,J)}; g.T.H3=function(){}; g.T.mV=function(){}; g.T.Xe=function(){}; g.T.HV=function(){}; g.T.Lb=function(){}; g.T.SX=function(){}; g.T.TT=function(){}; g.T.DI=function(){}; g.T.yg=function(){}; g.T.cV=function(){}; g.T.QL=function(){}; g.T.N7=function(){}; g.T.Fk=function(){ri(this.o1(),this);m4.prototype.Fk.call(this)}; g.T.IT=function(){};g.T=xdB.prototype;g.T.pP=function(){return this.slot}; g.T.LC=function(){return this.layout}; g.T.init=function(){this.UB.get().addListener(this);this.UB.get().P6.push(this);var J=QX(this.layout.clientMetadata,"metadata_type_video_length_seconds"),R=QX(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");l1(this.layout.w3)&&j5(this.v3.get(),this.layout.layoutId,{n2:R,DP:J,listener:this})}; g.T.release=function(){this.UB.get().removeListener(this);vkf(this.UB.get(),this);l1(this.layout.w3)&&mH(this.v3.get(),this.layout.layoutId)}; g.T.startRendering=function(J){this.callback.H3(this.slot,J)}; g.T.vU=function(J,R){gLg(this.JN.get())&&!this.K&&(this.Np.r3("abandon"),this.K=!0);this.callback.mV(this.slot,J,R)}; g.T.jP=function(J){switch(J.id){case "part2viewed":this.Np.r3("start");this.Np.r3("impression");break;case "videoplaytime25":this.Np.r3("first_quartile");break;case "videoplaytime50":this.Np.r3("midpoint");break;case "videoplaytime75":this.Np.r3("third_quartile");break;case "videoplaytime100":gLg(this.JN.get())?this.K||(this.Np.r3("complete"),this.K=!0):this.Np.r3("complete");tK(this.Np)&&G_(this.Np,Infinity,!0);USB(this.JN.get())&&XW(this.J,Infinity,!0);break;case "engagedview":tK(this.Np)||this.Np.r3("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:d0("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.T.onVolumeChange=function(){}; g.T.gV=function(){}; g.T.YB=function(){}; g.T.El=function(){}; g.T.onFullscreenToggled=function(){}; g.T.bB=function(){}; g.T.bv=function(){}; g.T.L5=function(J){USB(this.JN.get())&&XW(this.J,J*1E3,!1);tK(this.Np)&&G_(this.Np,J*1E3,!1)}; g.T.k5=function(){}; g.T.Sg=function(){this.Np.r3("active_view_measurable")}; g.T.TP=function(){this.Np.r3("active_view_viewable")}; g.T.AB=function(){this.Np.r3("active_view_fully_viewable_audible_half_duration")}; g.T.Ps=function(){this.Np.r3("audio_measurable")}; g.T.GP=function(){this.Np.r3("audio_audible")};g.M(uJ,m4);g.T=uJ.prototype;g.T.init=function(){m4.prototype.init.call(this);var J=QX(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),R={adsClientData:this.layout.AE};this.K.push(new pr(J,this.layout.layoutId,QX(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),R,!0))}; g.T.pm=function(){this.Z||this.UB.get().resumeVideo(1)}; g.T.startRendering=function(J){m4.prototype.startRendering.call(this,J);zb(this.UB.get(),"ad-showing");this.callback.H3(this.slot,J);this.U.uG=this}; g.T.vU=function(J,R){m4.prototype.vU.call(this,J,R);e5(this.UB.get(),"ad-showing");sM(this.U,this)}; g.T.IT=function(J){switch(J){case "ad-info-icon-button":(this.Z=this.UB.get().W4(1))||this.UB.get().pauseVideo();break;case "visit-advertiser":this.UB.get().pauseVideo()}}; g.T.Fk=function(){m4.prototype.Fk.call(this)};g.M(fG,K7);g.M(Ti,m4);g.T=Ti.prototype;g.T.startRendering=function(J){gN(this.Np,this.pP(),this.LC(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(R,N,C,X,u){return new fG(R,N,C,X,u)},this.K); m4.prototype.startRendering.call(this,J)}; g.T.H3=function(){}; g.T.mV=function(){}; g.T.Xe=function(){}; g.T.HV=function(){}; g.T.Lb=function(){}; g.T.SX=function(){}; g.T.TT=function(){}; g.T.DI=function(){}; g.T.yg=function(){}; g.T.cV=function(){}; g.T.QL=function(){}; g.T.N7=function(){}; g.T.Fk=function(){ri(this.o1(),this);m4.prototype.Fk.call(this)}; g.T.IT=function(){};g.M($P,K7);g.M(HD,m4);HD.prototype.init=function(){m4.prototype.init.call(this);this.K.push(new $P(g.z(this.layout.renderingContent,ze),this.layout.layoutId,{adsClientData:this.layout.AE}))}; HD.prototype.IT=function(){za(this.Z.get(),this.U)&&U_(this.AN.get(),3)}; HD.prototype.startRendering=function(J){m4.prototype.startRendering.call(this,J);this.callback.H3(this.slot,J)}; HD.prototype.Fk=function(){m4.prototype.Fk.call(this)};g.M(kP,K7);g.M(vD,m4);vD.prototype.init=function(){m4.prototype.init.call(this);var J=g.z(this.layout.renderingContent,s4)||QX(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),R=V3(this.Np);this.K.push(new kP(J,R,this.layout.layoutId,{adsClientData:this.layout.AE},!0,!0))}; vD.prototype.startRendering=function(J){m4.prototype.startRendering.call(this,J);this.callback.H3(this.slot,J)}; vD.prototype.IT=function(J,R){if(R===this.layout.layoutId)switch(J){case "skip-button":var N;(J=(N=QX(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:N.current)&&J.B0(this.pP(),this.layout)}}; vD.prototype.Fk=function(){m4.prototype.Fk.call(this)};Sy.prototype.build=function(J,R,N,C){if(WD(C,{Om:["metadata_type_ad_break_response_data"],BU:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new ddB(J,N,C,this.J,this.V,this.K);throw new KQ("Unsupported layout with type: "+C.layoutType+" and client metadata: "+nQ(C.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.M(Rck,K7);g.M(LG,m4);g.T=LG.prototype;g.T.IT=function(J,R){pw("ads-engagement-panel",J,this.S.get().Z9,this.AN.get(),this.Z,this.U,this.pP(),this.LC(),R)}; g.T.startRendering=function(J){gN(this.Np,this.pP(),this.LC(),g.z(this.LC().renderingContent,Bz),this.callback,"metadata_type_ads_engagement_panel_renderer",function(R,N,C,X,u){return new Rck(R,N,C,X,u)},this.K); m4.prototype.startRendering.call(this,J)}; g.T.H3=function(J,R){R.layoutId===this.layout.layoutId?this.Np.r3("impression"):this.U===R.layoutId&&(this.Z===null?this.Z=this.AN.get().eV():d0("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.T.mV=function(){}; g.T.Xe=function(){}; g.T.HV=function(){}; g.T.Lb=function(){}; g.T.SX=function(){}; g.T.TT=function(){}; g.T.DI=function(){}; g.T.yg=function(){}; g.T.cV=function(){}; g.T.QL=function(){}; g.T.N7=function(){}; g.T.Fk=function(){ri(this.o1(),this);m4.prototype.Fk.call(this)};g.M(IW,m4);g.T=IW.prototype;g.T.IT=function(J,R){pw("top-banner-image-text-icon-buttoned",J,this.S.get().Z9,this.AN.get(),this.Z,this.U,this.pP(),this.LC(),R)}; g.T.startRendering=function(J){gN(this.Np,this.pP(),this.LC(),g.z(this.LC().renderingContent,Zc),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(R,N,C,X,u){return new fG(R,N,C,X,u)},this.K); m4.prototype.startRendering.call(this,J)}; g.T.H3=function(J,R){this.U===R.layoutId&&(this.Z===null?this.Z=this.AN.get().eV():d0("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.T.mV=function(){}; g.T.Xe=function(){}; g.T.HV=function(){}; g.T.Lb=function(){}; g.T.SX=function(){}; g.T.TT=function(){}; g.T.DI=function(){}; g.T.yg=function(){}; g.T.cV=function(){}; g.T.QL=function(){}; g.T.N7=function(){}; g.T.Fk=function(){ri(this.o1(),this);m4.prototype.Fk.call(this)};XdE.prototype.build=function(J,R,N,C){if(WD(C,NaE())||g.z(C.renderingContent,Bz)!==void 0)return new LG(J,N,C,this.W3,this.AN,this.o1,this.v3,this.K);if(WD(C,zXB())||g.z(C.renderingContent,Dc)!==void 0)return new RW(J,N,C,this.W3,this.AN,this.o1,this.v3,this.K);if(WD(C,w0E())||g.z(C.renderingContent,sY)!==void 0)return new NE(J,N,C,this.W3,this.AN,this.o1,this.v3,this.K);if(WD(C,hXf()))return new CG(J,N,C,this.W3,this.AN,this.o1,this.v3,this.K);if(WD(C,tdE()))return new iJ(J,N,C,this.W3,this.AN,this.o1, this.v3,this.K);if(WD(C,PKE())||g.z(C.renderingContent,OY)!==void 0)return new JY(J,N,C,this.W3,this.AN,this.o1,this.v3,this.K);if(WD(C,CWk())||g.z(C.renderingContent,Zc)!==void 0)return new IW(J,N,C,this.W3,this.AN,this.o1,this.v3,this.K);if(WD(C,Jpn()))return new Ti(J,N,C,this.W3,this.AN,this.o1,this.v3,this.K);if(WD(C,p0E())||g.z(C.renderingContent,dL)!==void 0)return new xi(J,N,C,this.W3,this.AN,this.o1,this.v3,this.K);throw new KQ("Unsupported layout with type: "+C.layoutType+" and client metadata: "+ nQ(C.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};i7Q.prototype.build=function(J,R,N,C){if(WD(C,{Om:["metadata_type_linked_player_bytes_layout_id"],BU:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new HD(J,N,C,this.W3,this.AN,this.K);throw new KQ("Unsupported layout with type: "+C.layoutType+" and client metadata: "+nQ(C.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.T=udg.prototype;g.T.pP=function(){return this.slot}; g.T.LC=function(){return this.layout}; g.T.init=function(){}; g.T.release=function(){}; g.T.startRendering=function(J){J.layoutId!==this.layout.layoutId?this.callback.dL(this.slot,J,new KQ("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.H3(this.slot,J),this.Np.r3("impression"),L_(this.zD,J,"normal"))}; g.T.vU=function(J,R){J.layoutId!==this.layout.layoutId?this.callback.dL(this.slot,J,new KQ("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.mV(this.slot,J,R)};g.T=Ta8.prototype;g.T.pP=function(){return this.slot}; g.T.LC=function(){return this.layout}; g.T.init=function(){}; g.T.release=function(){}; g.T.startRendering=function(J){J.layoutId!==this.layout.layoutId?this.callback.dL(this.slot,J,new KQ("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.H3(this.slot,J),this.Np.r3("impression"),L_(this.zD,J,"normal"))}; g.T.vU=function(J,R){J.layoutId!==this.layout.layoutId?this.callback.dL(this.slot,J,new KQ("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.mV(this.slot,J,R)};FW.prototype.build=function(J,R,N,C){if(!this.JN.get().G.N().T("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(WD(C,fKP()))return new udg(J,N,C,this.AN,this.zD)}else if(WD(C,{Om:[],BU:["LAYOUT_TYPE_FORECASTING"]}))return new Ta8(J,N,C,this.AN,this.zD);throw new KQ("Unsupported layout with type: "+C.layoutType+" and client metadata: "+nQ(C.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.M(kTE,K7);g.M(E4,m4);g.T=E4.prototype;g.T.init=function(){m4.prototype.init.call(this);var J=g.z(this.layout.renderingContent,D6)||QX(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),R={adsClientData:this.layout.AE};this.K.push(new kTE(J,QX(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,R))}; g.T.pm=function(){this.Z||this.UB.get().resumeVideo(2)}; g.T.startRendering=function(J){m4.prototype.startRendering.call(this,J);this.callback.H3(this.slot,J);this.U.uG=this}; g.T.vU=function(J,R){m4.prototype.vU.call(this,J,R);sM(this.U,this)}; g.T.IT=function(J){if(za(this.S.get(),this.D))switch(J){case "visit-advertiser-link":U_(this.AN.get(),3)}switch(J){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Z||this.UB.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Z=this.UB.get().W4(2))||this.UB.get().pauseVideo();break;case "visit-advertiser-link":this.UB.get().pauseVideo();vng(this).xo();break;case "skip-button":if(J=vng(this), !this.layout.renderingContent&&J.pO)d0("Requesting to skip by LegacyPlayerBytes when components enabled"),J.lN(this.pP(),this.layout);else{var R;(J=(R=QX(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:R.current)&&J.B0(this.pP(),this.layout)}}}; g.T.Fk=function(){m4.prototype.Fk.call(this)};g.M(ME,m4);g.T=ME.prototype;g.T.init=function(){m4.prototype.init.call(this);var J=g.z(this.layout.renderingContent,nG)||QX(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),R={adsClientData:this.layout.AE},N;(N=!!this.layout.renderingContent)||(N=!KG(this).pO);this.K.push(new pr(J,this.layout.layoutId,QX(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),R,N))}; g.T.pm=function(){this.Z||this.UB.get().resumeVideo(2)}; g.T.startRendering=function(J){m4.prototype.startRendering.call(this,J);this.callback.H3(this.slot,J);this.U.uG=this}; g.T.vU=function(J,R){m4.prototype.vU.call(this,J,R);sM(this.U,this)}; g.T.IT=function(J){if(za(this.S.get(),this.D))switch(J){case "visit-advertiser":U_(this.AN.get(),3)}switch(J){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Z||this.UB.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Z=this.UB.get().W4(2))||this.UB.get().pauseVideo();break;case "visit-advertiser":this.UB.get().pauseVideo();KG(this).xo();break;case "skip-button":if(J=KG(this),!this.layout.renderingContent&& J.pO)d0("Requesting to skip by LegacyPlayerBytes"),J.lN(this.pP(),this.layout);else{var R;(J=(R=QX(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:R.current)&&J.B0(this.pP(),this.layout)}}}; g.T.Fk=function(){m4.prototype.Fk.call(this)};g.M(SIg,K7);g.M(aW,m4);g.T=aW.prototype;g.T.startRendering=function(J){var R=this;jJ(this.J,J,function(){R.K.push(new SIg(QX(R.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),J.layoutId,J.AE));R.wB();R.callback.H3(R.slot,J);g.h(r_(R.UB.get(),1),512)&&R.callback.dL(R.pP(),R.LC(),new KQ("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.T.bv=function(){}; g.T.bB=function(J){if(J.state.isError()){var R;this.callback.dL(this.pP(),this.LC(),new KQ("A player error happened during adNotify",{playerErrorCode:(R=J.state.uu)==null?void 0:R.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.T.onFullscreenToggled=function(){}; g.T.YB=function(){}; g.T.El=function(){}; g.T.gV=function(){}; g.T.onVolumeChange=function(){}; g.T.jP=function(){}; g.T.k5=function(){}; g.T.IT=function(){};g.M(IKE,K7);g.M(QC,m4);QC.prototype.init=function(){m4.prototype.init.call(this);var J=g.z(this.layout.renderingContent,BD),R=V3(this.Np);this.K.push(new IKE(J,R,this.layout.layoutId,{adsClientData:this.layout.AE}))}; QC.prototype.startRendering=function(J){m4.prototype.startRendering.call(this,J);this.callback.H3(this.slot,J)}; QC.prototype.IT=function(J,R){if(R===this.layout.layoutId)switch(J){case "skip-button":var N;(J=(N=QX(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:N.current)&&J.B0(this.pP(),this.layout)}}; QC.prototype.Fk=function(){m4.prototype.Fk.call(this)};Fag.prototype.build=function(J,R,N,C){if(J=O4(J,N,C,this.W3,this.UB,this.AN,this.J,this.K,this.JN))return J;throw new KQ("Unsupported layout with type: "+C.layoutType+" and client metadata: "+nQ(C.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.T=EnE.prototype;g.T.pP=function(){return this.slot}; g.T.LC=function(){return this.layout}; g.T.init=function(){this.UB.get().addListener(this);this.UB.get().P6.push(this);var J=QX(this.layout.clientMetadata,"metadata_type_video_length_seconds"),R=QX(this.layout.clientMetadata,"metadata_type_active_view_traffic_type"),N=QX(this.layout.clientMetadata,"metadata_type_active_view_identifier");l1(this.layout.w3)&&j5(this.v3.get(),this.layout.layoutId,{n2:R,DP:J,listener:this,Gl:N})}; g.T.release=function(){this.UB.get().removeListener(this);vkf(this.UB.get(),this);l1(this.layout.w3)&&mH(this.v3.get(),this.layout.layoutId)}; g.T.startRendering=function(J){this.callback.H3(this.slot,J)}; g.T.vU=function(J,R){qE(this,"abandon");this.callback.mV(this.slot,J,R)}; g.T.jP=function(J){switch(J.id){case "part2viewed":this.Np.r3("start");this.Np.r3("impression");break;case "videoplaytime25":this.Np.r3("first_quartile");break;case "videoplaytime50":this.Np.r3("midpoint");break;case "videoplaytime75":this.Np.r3("third_quartile");break;case "videoplaytime100":qE(this,"complete");tK(this.Np)&&G_(this.Np,Infinity,!0);break;case "engagedview":tK(this.Np)||this.Np.r3("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:d0("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.T.onVolumeChange=function(){}; g.T.gV=function(){}; g.T.YB=function(){}; g.T.El=function(){}; g.T.onFullscreenToggled=function(){}; g.T.bB=function(J){this.K||(g.Yp(J,4)&&!g.Yp(J,2)?y3(this.Np,"pause"):Al(J,4)<0&&!(Al(J,2)<0)&&y3(this.Np,"resume"))}; g.T.bv=function(){}; g.T.L5=function(J){tK(this.Np)&&G_(this.Np,J*1E3,!1)}; g.T.k5=function(){qE(this,"swipe")}; g.T.Sg=function(){this.Np.r3("active_view_measurable")}; g.T.TP=function(){this.Np.r3("active_view_viewable")}; g.T.AB=function(){this.Np.r3("active_view_fully_viewable_audible_half_duration")}; g.T.Ps=function(){this.Np.r3("audio_measurable")}; g.T.GP=function(){this.Np.r3("audio_audible")};M72.prototype.build=function(J,R,N,C){R=["metadata_type_ad_placement_config"];for(var X=g.K(wN()),u=X.next();!u.done;u=X.next())R.push(u.value);if(WD(C,{Om:R,BU:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return N.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new EnE(J,N,C,this.UB,this.AN,this.JN,this.v3):new xdB(J,N,C,this.UB,this.AN,this.I1,this.JN,this.v3);throw new KQ("Unsupported layout with type: "+C.layoutType+" and client metadata: "+nQ(C.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory."); };var jy={contentCpn:"",JC:new Map};djY.prototype.NO=function(J,R){var N={};R=Object.assign({},R,(N.cc=this.Js.pR(),N));this.Js.G.u3(J,R)};var KgP,k_,qIf; KgP={oBn:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",tVf:"AUTHENTICATION_MALFORMED",VVk:"AUTHENTICATION_MISSING",ZxO:"BAD_REQUEST",SLO:"CAST_SESSION_DEVICE_MISMATCHED",TXf:"CAST_SESSION_VIDEO_MISMATCHED",xnO:"CAST_TOKEN_EXPIRED",MVk:"CAST_TOKEN_FAILED",YLO:"CAST_TOKEN_MALFORMED",hzO:"CGI_PARAMS_MALFORMED",paf:"CGI_PARAMS_MISSING",n5O:"DEVICE_FALLBACK",Slf:"GENERIC_WITH_LINK_AND_CPN",TVk:"ERROR_HDCP",xON:"LICENSE",YlB:"VIDEO_UNAVAILABLE",DOp:"FORMAT_UNAVAILABLE",bJO:"GEO_FAILURE", dMC:"HTML5_AUDIO_RENDERER_ERROR",v6a:"GENERIC_WITHOUT_LINK",Fe3:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",cn8:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",Jna:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",g6Q:"HTML5_SPS_UMP_STATUS_REJECTED",QEB:"INVALID_DRM_MESSAGE",n4C:"PURCHASE_NOT_FOUND",d07:"PURCHASE_REFUNDED",qkn:"RENTAL_EXPIRED",U0C:"RETRYABLE_ERROR",x0B:"SERVER_ERROR",yU7:"SIGNATURE_EXPIRED",aRa:"STOPPED_BY_ANOTHER_PLAYBACK",snB:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",jnn:"STREAMING_NOT_ALLOWED", o4a:"STREAM_LICENSE_NOT_FOUND",KkN:"TOO_MANY_REQUESTS",R5O:"TOO_MANY_REQUESTS_WITH_LINK",usa:"TOO_MANY_STREAMS_PER_ENTITLEMENT",ngk:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",S27:"VIDEO_FORBIDDEN",T48:"VIDEO_NOT_FOUND",Cv3:"BROWSER_OR_EXTENSION_ERROR"};k_={}; g.jx=(k_.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.",k_.DEVICE_FALLBACK="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel neste dispositivo.",k_.GENERIC_WITH_LINK_AND_CPN="Ocorreu um erro. Tente novamente mais tarde. (ID de reprodu\u00e7\u00e3o: $CPN) $BEGIN_LINKSaiba mais$END_LINK", k_.LICENSE="Ocorreu um erro ao licenciar este v\u00eddeo.",k_.VIDEO_UNAVAILABLE="V\u00eddeo indispon\u00edvel",k_.FORMAT_UNAVAILABLE="O v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel na qualidade selecionada. Tente novamente mais tarde.",k_.GEO_FAILURE="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel em seu pa\u00eds.",k_.HTML5_AUDIO_RENDERER_ERROR="Erro ao renderizar \u00e1udio. Reinicie seu computador.",k_.GENERIC_WITHOUT_LINK="Ocorreu um erro. Tente novamente mais tarde.",k_.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "Este formato de v\u00eddeo n\u00e3o \u00e9 suportado.",k_.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",k_.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",k_.HTML5_SPS_UMP_STATUS_REJECTED="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK", k_.INVALID_DRM_MESSAGE="A mensagem espec\u00edfica do sistema de DRM (gest\u00e3o de direitos digitais) \u00e9 inv\u00e1lida.",k_.PURCHASE_NOT_FOUND="Este v\u00eddeo requer pagamento.",k_.PURCHASE_REFUNDED="A compra deste v\u00eddeo foi estornada.",k_.RENTAL_EXPIRED="O aluguel deste v\u00eddeo expirou.",k_.CAST_SESSION_DEVICE_MISMATCHED="O dispositivo na sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.",k_.CAST_SESSION_VIDEO_MISMATCHED="O v\u00eddeo da sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.", k_.CAST_TOKEN_FAILED="Sess\u00e3o de transmiss\u00e3o n\u00e3o dispon\u00edvel. Atualize ou tente novamente mais tarde.",k_.CAST_TOKEN_EXPIRED="A sess\u00e3o de transmiss\u00e3o expirou. Atualize.",k_.CAST_TOKEN_MALFORMED="Sess\u00e3o de transmiss\u00e3o inv\u00e1lida. Atualize ou tente novamente mais tarde.",k_.SERVER_ERROR="Ocorreu um erro interno do servidor. Tente novamente mais tarde.",k_.STOPPED_BY_ANOTHER_PLAYBACK="Sua conta est\u00e1 reproduzindo este v\u00eddeo em outro local. Recarregue esta p\u00e1gina para continuar assistindo.", k_.STREAM_LICENSE_NOT_FOUND="Reprodu\u00e7\u00e3o de v\u00eddeo interrompida. Tente novamente.",k_.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Foram utilizados muitos dispositivos/endere\u00e7os IP no per\u00edodo de 24 horas.",k_.STREAMING_NOT_ALLOWED="Reprodu\u00e7\u00e3o n\u00e3o permitida porque este v\u00eddeo est\u00e1 fixado a outro dispositivo.",k_.RETRYABLE_ERROR="Ocorreu um erro tempor\u00e1rio no servidor. Tente novamente mais tarde.",k_.TOO_MANY_REQUESTS="Fa\u00e7a login para assistir este v\u00eddeo.", k_.TOO_MANY_REQUESTS_WITH_LINK="$BEGIN_LINKClique aqui$END_LINK para assistir este v\u00eddeo no YouTube.",k_.TOO_MANY_STREAMS_PER_USER="A reprodu\u00e7\u00e3o foi interrompida porque est\u00e3o sendo exibidos muitos v\u00eddeos da mesma conta.",k_.TOO_MANY_STREAMS_PER_ENTITLEMENT="A reprodu\u00e7\u00e3o foi interrompida porque este v\u00eddeo foi reproduzido em muitos dispositivos.",k_.UNSUPPORTED_DEVICE="A reprodu\u00e7\u00e3o n\u00e3o \u00e9 compat\u00edvel com este dispositivo.",k_.VIDEO_FORBIDDEN= "O acesso a este v\u00eddeo \u00e9 proibido.",k_.VIDEO_NOT_FOUND="N\u00e3o foi poss\u00edvel localizar o v\u00eddeo.",k_.BROWSER_OR_EXTENSION_ERROR="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK",k_); qIf={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED", 5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};var aDE;var QZV=g.sa(),n1l=QZV.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!n1l||n1l.length<2)aDE=void 0;else{var D9a=QZV.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);aDE=D9a&&D9a.length===6?Number(D9a[5].replace("_",".")):0}var uY=aDE,dv=uY>=0;g.M(g.tY,gJ);g.tY.prototype.L=function(J,R,N,C,X){return gJ.prototype.L.call(this,J,R,N,C,X)};var vj={},sV=(vj.FAIRPLAY="fairplay",vj.PLAYREADY="playready",vj.WIDEVINE="widevine",vj.CLEARKEY=null,vj.FLASHACCESS=null,vj.UNKNOWN=null,vj.WIDEVINE_CLASSIC=null,vj);xP.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var Wj={},r$=(Wj.WIDTH={name:"width",video:!0,valid:640,oW:99999},Wj.HEIGHT={name:"height",video:!0,valid:360,oW:99999},Wj.FRAMERATE={name:"framerate",video:!0,valid:30,oW:9999},Wj.BITRATE={name:"bitrate",video:!0,valid:3E5,oW:2E9},Wj.EOTF={name:"eotf",video:!0,valid:"bt709",oW:"catavision"},Wj.CHANNELS={name:"channels",video:!1,valid:2,oW:99},Wj.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",oW:"invalidformat"},Wj.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", oW:"nope"},Wj.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",oW:"av99.0.05M.08"},Wj.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",oW:"invalid"},Wj);var sZP=["h","H"],BAE=["9","("],Olf=["9h","(h"],Zl_=["8","*"],d98=["a","A"],qXq=["o","O"],AQ_=["m","M"],YXf=["mac3","MAC3"],rQE=["meac3","MEAC3"],SK={},Am2=(SK.h=sZP,SK.H=sZP,SK["9"]=BAE,SK["("]=BAE,SK["9h"]=Olf,SK["(h"]=Olf,SK["8"]=Zl_,SK["*"]=Zl_,SK.a=d98,SK.A=d98,SK.o=qXq,SK.O=qXq,SK.m=AQ_,SK.M=AQ_,SK.mac3=YXf,SK.MAC3=YXf,SK.meac3=rQE,SK.MEAC3=rQE,SK),jZ9=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),L4g=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var L1={},XS=(L1["0"]="f",L1["160"]="h",L1["133"]="h",L1["134"]="h",L1["135"]="h",L1["136"]="h",L1["137"]="h",L1["264"]="h",L1["266"]="h",L1["138"]="h",L1["298"]="h",L1["299"]="h",L1["304"]="h",L1["305"]="h",L1["214"]="h",L1["216"]="h",L1["374"]="h",L1["375"]="h",L1["140"]="a",L1["141"]="ah",L1["327"]="sa",L1["258"]="m",L1["380"]="mac3",L1["328"]="meac3",L1["161"]="H",L1["142"]="H",L1["143"]="H",L1["144"]="H",L1["222"]="H",L1["223"]="H",L1["145"]="H",L1["224"]="H",L1["225"]="H",L1["146"]="H",L1["226"]= "H",L1["227"]="H",L1["147"]="H",L1["384"]="H",L1["376"]="H",L1["385"]="H",L1["377"]="H",L1["149"]="A",L1["261"]="M",L1["381"]="MAC3",L1["329"]="MEAC3",L1["598"]="9",L1["278"]="9",L1["242"]="9",L1["243"]="9",L1["244"]="9",L1["775"]="9",L1["776"]="9",L1["777"]="9",L1["778"]="9",L1["779"]="9",L1["780"]="9",L1["781"]="9",L1["782"]="9",L1["783"]="9",L1["247"]="9",L1["248"]="9",L1["353"]="9",L1["355"]="9",L1["356"]="9",L1["271"]="9",L1["577"]="9",L1["313"]="9",L1["579"]="9",L1["272"]="9",L1["302"]="9", L1["303"]="9",L1["407"]="9",L1["408"]="9",L1["308"]="9",L1["315"]="9",L1["330"]="9h",L1["331"]="9h",L1["332"]="9h",L1["333"]="9h",L1["334"]="9h",L1["335"]="9h",L1["336"]="9h",L1["337"]="9h",L1["338"]="so",L1["600"]="o",L1["250"]="o",L1["251"]="o",L1["774"]="o",L1["194"]="*",L1["195"]="*",L1["220"]="*",L1["221"]="*",L1["196"]="*",L1["197"]="*",L1["279"]="(",L1["280"]="(",L1["317"]="(",L1["318"]="(",L1["273"]="(",L1["274"]="(",L1["357"]="(",L1["358"]="(",L1["275"]="(",L1["359"]="(",L1["360"]="(",L1["276"]= "(",L1["583"]="(",L1["584"]="(",L1["314"]="(",L1["585"]="(",L1["561"]="(",L1["277"]="(",L1["361"]="(h",L1["362"]="(h",L1["363"]="(h",L1["364"]="(h",L1["365"]="(h",L1["366"]="(h",L1["591"]="(h",L1["592"]="(h",L1["367"]="(h",L1["586"]="(h",L1["587"]="(h",L1["368"]="(h",L1["588"]="(h",L1["562"]="(h",L1["409"]="(",L1["410"]="(",L1["411"]="(",L1["412"]="(",L1["557"]="(",L1["558"]="(",L1["394"]="1",L1["395"]="1",L1["396"]="1",L1["397"]="1",L1["398"]="1",L1["399"]="1",L1["720"]="1",L1["721"]="1",L1["400"]= "1",L1["401"]="1",L1["571"]="1",L1["402"]="1",L1["694"]="1h",L1["695"]="1h",L1["696"]="1h",L1["697"]="1h",L1["698"]="1h",L1["699"]="1h",L1["700"]="1h",L1["701"]="1h",L1["702"]="1h",L1["703"]="1h",L1["386"]="3",L1["387"]="w",L1["406"]="6",L1["787"]="1",L1["788"]="1",L1["645"]="(",L1["646"]="(",L1["647"]="(",L1["648"]="(",L1["649"]="(",L1["650"]="(",L1["651"]="(",L1["652"]="(",L1["653"]="(",L1["654"]="(",L1["655"]="(",L1["656"]="(",L1["657"]="(",L1["658"]="(",L1["659"]="(",L1["660"]="(",L1["661"]="(", L1["662"]="(",L1["663"]="(",L1["664"]="(",L1["665"]="(",L1["666"]="(",L1["667"]="(",L1["668"]="(",L1["669"]="(",L1["670"]="(",L1["671"]="(",L1["672"]="(",L1["673"]="(",L1["674"]="(h",L1["675"]="(h",L1["676"]="(h",L1["677"]="(h",L1["678"]="(h",L1["679"]="(h",L1["680"]="(h",L1["681"]="(h",L1["682"]="(h",L1["683"]="(h",L1["684"]="(h",L1["685"]="(h",L1["686"]="(h",L1["687"]="(h",L1["688"]="A",L1["689"]="A",L1["690"]="A",L1["691"]="MEAC3",L1["773"]="i",L1["806"]="I",L1["805"]="I",L1);var Ir={},XSB=(Ir.STEREO_LAYOUT_UNKNOWN=0,Ir.STEREO_LAYOUT_LEFT_RIGHT=1,Ir.STEREO_LAYOUT_TOP_BOTTOM=2,Ir);var FG,MC;FG={};g.o6=(FG.auto=0,FG.tiny=144,FG.light=144,FG.small=240,FG.medium=360,FG.large=480,FG.hd720=720,FG.hd1080=1080,FG.hd1440=1440,FG.hd2160=2160,FG.hd2880=2880,FG.highres=4320,FG);MC={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var Nk="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");R6.prototype.isHdr=function(){return this.J==="smpte2084"||this.J==="arib-std-b67"};iM.prototype.nL=function(){return this.containerType===2}; iM.prototype.isEncrypted=function(){return!!this.xi}; iM.prototype.B7=function(){return!!this.audio}; iM.prototype.Ky=function(){return!!this.video};g.M(OO,g.al);g.T=OO.prototype;g.T.appendBuffer=function(J,R,N){if(this.dk.Fi()!==this.appendWindowStart+this.start||this.dk.MK()!==this.appendWindowEnd+this.start||this.dk.uS()!==this.timestampOffset+this.start)this.dk.supports(1),this.dk.UY(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.dk.nh(this.timestampOffset+this.start);this.dk.appendBuffer(J,R,N)}; g.T.abort=function(){this.dk.abort()}; g.T.remove=function(J,R){this.dk.remove(J+this.start,R+this.start)}; g.T.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.T.clear=function(){this.dk.clear()}; g.T.UY=function(J,R){this.appendWindowStart=J;this.appendWindowEnd=R}; g.T.jU=function(){return this.timestampOffset+this.start}; g.T.Fi=function(){return this.appendWindowStart}; g.T.MK=function(){return this.appendWindowEnd}; g.T.nh=function(J){this.timestampOffset=J}; g.T.uS=function(){return this.timestampOffset}; g.T.jD=function(J){J=this.dk.jD(J===void 0?!1:J);return BS(J,this.start,this.end)}; g.T.XB=function(){return this.dk.XB()}; g.T.Fh=function(){return this.dk.Fh()}; g.T.DR=function(){return this.dk.DR()}; g.T.ML=function(){return this.dk.ML()}; g.T.Oe=function(){this.dk.Oe()}; g.T.kN=function(J){return this.dk.kN(J)}; g.T.U4=function(){return this.dk.U4()}; g.T.zm=function(){return this.dk.zm()}; g.T.IH=function(){return this.dk.IH()}; g.T.CA=function(J,R,N){this.dk.CA(J,R,N)}; g.T.GZ=function(J,R,N){this.dk.GZ(J,R,N)}; g.T.pp=function(J,R){return this.dk.pp(J,R)}; g.T.supports=function(J){return this.dk.supports(J)}; g.T.Qz=function(){return this.dk.Qz()}; g.T.isView=function(){return!0}; g.T.bH=function(){return this.dk.bH()?this.isActive:!1}; g.T.isLocked=function(){return this.Hb&&!this.isActive}; g.T.fP=function(J){J=this.dk.fP(J);J.vw=this.start+"-"+this.end;return J}; g.T.Xw=function(){return this.dk.Xw()}; g.T.fn=function(){return this.dk.fn()}; g.T.HF=function(){return this.dk.HF()}; g.T.Fk=function(){n7(this.dk,this.IM);g.al.prototype.Fk.call(this)};var Ud=!1;g.M(dm,g.al);g.T=dm.prototype;g.T.appendBuffer=function(J,R,N){this.iC=!1;N&&(this.gM=N);if(J.length){var C;((C=this.CP)==null?0:C.appendBuffer)?this.CP.appendBuffer(J):this.CP?this.CP.append(J):this.Ne&&this.Ne.webkitSourceAppend(this.id,J)}R&&(R.isEncrypted()&&(this.fU=this.gM),R.type===3&&(this.RT=R),this.Jq.push(R.Ki()),this.Jq.length>4&&this.Jq.shift());this.o4&&(this.o4.length>=2||J.length>1048576?delete this.o4:this.o4.push(J))}; g.T.abort=function(){try{this.CP?this.CP.abort():this.Ne&&this.Ne.webkitSourceAbort(this.id)}catch(J){j08&&g.yD(new g.C3("Error while abort the source buffer: "+J.name+", "+J.message))}this.gM=this.RT=null}; g.T.remove=function(J,R,N){this.iC=!1;var C;if((C=this.CP)==null?0:C.remove)N&&N({b:Ke(this.jD()),s:J,e:R}),this.CP.remove(J,R)}; g.T.removeAll=function(){this.remove(this.Fi(),this.MK())}; g.T.clear=function(){this.DR()||(this.abort(),this.removeAll(),this.fU=this.gM=this.RT=null,this.appendWindowStart=this.timestampOffset=0,this.B2=Mk([],[]),this.iC=!1,this.o4=ZS?[]:void 0,this.sR=!0)}; g.T.Fi=function(){if(Ud&&this.Ky)return this.appendWindowStart;var J;return((J=this.CP)==null?void 0:J.appendWindowStart)||0}; g.T.MK=function(){var J;return((J=this.CP)==null?void 0:J.appendWindowEnd)||0}; g.T.UY=function(J,R){this.CP&&(Ud&&this.Ky?(this.appendWindowStart=J,this.CP.appendWindowEnd=R):J>this.Fi()?(this.CP.appendWindowEnd=R,this.CP.appendWindowStart=J):(this.CP.appendWindowStart=J,this.CP.appendWindowEnd=R))}; g.T.jU=function(){return this.timestampOffset}; g.T.nh=function(J){Ud?this.timestampOffset=J:this.supports(1)&&(this.CP.timestampOffset=J)}; g.T.uS=function(){return Ud?this.timestampOffset:this.supports(1)?this.CP.timestampOffset:0}; g.T.jD=function(J){if(J===void 0?0:J)return this.iC||this.XB()||(this.B2=this.jD(!1),this.iC=!0),this.B2;try{return this.CP?this.CP.buffered:this.Ne?this.Ne.webkitSourceBuffered(this.id):Mk([0],[Infinity])}catch(R){return Mk([],[])}}; g.T.XB=function(){var J;return((J=this.CP)==null?void 0:J.updating)||!1}; g.T.DR=function(){return this.sR}; g.T.ML=function(){return!this.sR&&this.XB()}; g.T.Oe=function(){this.sR=!1}; g.T.kN=function(J){var R=J==null?void 0:J.sB;J=J==null?void 0:J.containerType;return!R&&!J||R===this.sB&&J===this.containerType}; g.T.U4=function(){return this.gM}; g.T.zm=function(){return this.fU}; g.T.pp=function(J,R){return this.containerType!==J||this.sB!==R}; g.T.CA=function(J,R,N){if(this.containerType!==J||N&&this.pp(J,N))this.supports(4),qk()&&this.CP.changeType(R),N&&(this.sB=N);this.containerType=J}; g.T.GZ=function(J,R,N){this.containerType&&this.pp(J,R)&&qk()&&this.CP.changeType(N);this.containerType=J;this.sB=R}; g.T.Qz=function(){return this.RT}; g.T.isView=function(){return!1}; g.T.supports=function(J){switch(J){case 1:var R;return((R=this.CP)==null?void 0:R.timestampOffset)!==void 0;case 0:var N;return!((N=this.CP)==null||!N.appendBuffer);case 2:var C;return!((C=this.CP)==null||!C.remove);case 3:var X,u;return!!(((X=this.CP)==null?0:X.addEventListener)&&((u=this.CP)==null?0:u.removeEventListener));case 4:return!(!this.CP||!this.CP.changeType);default:return!1}}; g.T.bH=function(){return!this.XB()}; g.T.isLocked=function(){return!1}; g.T.fP=function(J){J.to=this.uS();J.up=this.XB();var R,N=((R=this.CP)==null?void 0:R.appendWindowStart)||0,C;R=((C=this.CP)==null?void 0:C.appendWindowEnd)||Infinity;J.aw=N.toFixed(3)+"-"+R.toFixed(3);return J}; g.T.Fh=function(){var J;return((J=this.CP)==null?void 0:J.writeHead)||0}; g.T.Xw=function(){for(var J={},R=0;R=7&&YI7(this,function(){g.BR(function(){b7P(J,J.getCurrentTime(),0)},500)}); return R}; g.T.seekTo=function(J){this.UV()>0&&(dv&&uY<4&&(J=Math.max(.1,J)),this.setCurrentTime(J))}; g.T.Qd=function(){if(!this.J&&this.Mp)if(this.Mp.U)try{var J;mx(this,{l:"mer",sr:(J=this.RB)==null?void 0:Vp(J),rs:UO(this.Mp)});this.Mp.clear();this.J=this.Mp;this.Mp=void 0}catch(R){J=new g.C3("Error while clearing Media Source in MediaElement: "+R.name+", "+R.message),g.yD(J),this.stopVideo()}else this.stopVideo()}; g.T.stopVideo=function(){var J=this;if(!this.J){var R;(R=this.Mp)==null||hcE(R);if(AuB){if(!this.V){var N=new lM;N.then(void 0,function(){}); this.V=N;YPg&&this.pause();g.BR(function(){J.V===N&&(wm(J),N.resolve())},200)}}else wm(this)}}; g.T.kC=function(){var J=this.BV();return DS(J)>0&&this.getDuration()?ne(J,this.getCurrentTime()):0}; g.T.GC=function(){var J=this.getDuration();return J===Infinity?1:J?this.kC()/J:0}; g.T.fP=function(){try{var J=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Ke(this.TC(),",",3),vbu:Ke(this.BV()),vbs:Ke(this.uR()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.UV(),vns:""+this.sz(),vec:""+this.WV(),vemsg:this.iB(),vvol:""+this.getVolume(),vdom:""+ +this.Yb(),vsrc:""+ +!!this.tS(),vw:""+J.width,vh:""+J.height}}catch(R){return{}}}; g.T.hasError=function(){return this.WV()>0}; g.T.addEventListener=function(J,R){this.Z.listen(J,R,!1,this);this.Bh(J)}; g.T.removeEventListener=function(J,R){this.Z.tL(J,R,!1,this)}; g.T.dispatchEvent=function(J){if(this.V&&J.type==="pause")return!1;if(ruP){var R,N=((R=J.K)==null?void 0:R.timeStamp)||Infinity;R=N>performance.now()?N-Date.now()+performance.now():N;N=this.J||this.Mp;if((N==null?0:N.DR())||R<=((N==null?void 0:N.S)||0)){var C;mx(this,{l:"mede",sr:(C=this.RB)==null?void 0:Vp(C),et:J.type});return!1}if(this.CO)return mx(this,{l:"medes",et:J.type}),N&&J.type==="seeking"&&(N.S=performance.now(),this.CO=!1),!1}return this.Z.dispatchEvent(J)}; g.T.oV=function(){this.S=!1}; g.T.zq=function(){this.S=!0;this.KG(!0)}; g.T.e3=function(){this.S&&!this.aD()&&this.KG(!0)}; g.T.Fk=function(){this.D&&this.removeEventListener("volumechange",this.e3);AuB&&wm(this);g.l.prototype.Fk.call(this)}; var AuB=!1,YPg=!1,ruP=!1;g.T=g.hy.prototype;g.T.isPaused=function(){return g.h(this,4)}; g.T.isPlaying=function(){return g.h(this,8)&&!g.h(this,512)&&!g.h(this,64)&&!g.h(this,2)}; g.T.isOrWillBePlaying=function(){return g.h(this,8)&&!g.h(this,2)&&!g.h(this,1024)}; g.T.isCued=function(){return g.h(this,64)&&!g.h(this,8)&&!g.h(this,4)}; g.T.isBuffering=function(){return g.h(this,1)&&!g.h(this,2)}; g.T.isError=function(){return g.h(this,128)}; g.T.isSuspended=function(){return g.h(this,512)}; g.T.KZ=function(){return g.h(this,64)&&g.h(this,4)}; g.T.toString=function(){return"PSt."+this.state.toString(16)}; var EC={},Mv=(EC.BUFFERING="buffering-mode",EC.CUED="cued-mode",EC.ENDED="ended-mode",EC.PAUSED="paused-mode",EC.PLAYING="playing-mode",EC.SEEKING="seeking-mode",EC.UNSTARTED="unstarted-mode",EC);g.M(Vr,g.l);g.T=Vr.prototype;g.T.yw=function(){return this.V}; g.T.pP=function(){return this.slot}; g.T.LC=function(){return this.layout}; g.T.init=function(){var J=QX(this.layout.clientMetadata,"metadata_type_video_length_seconds"),R=QX(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");l1(this.layout.w3)&&j5(this.v3.get(),this.layout.layoutId,{n2:R,DP:J,listener:this,B4:this.CL()});XNk(this.AN.get(),this);J=this.uv;R=this.layout.layoutId;var N={B4:this.CL()};J.K.set(R,N);this.Px()}; g.T.Q1=function(){}; g.T.release=function(){l1(this.layout.w3)&&mH(this.v3.get(),this.layout.layoutId);ii8(this.AN.get(),this);this.uv.K.delete(this.layout.layoutId);this.wY()}; g.T.IX=function(){}; g.T.G4=function(){}; g.T.startRendering=function(J){ge(gD(this));if(Uc(this,J)){var R=this.K;U4(R.params.Wa.JN.get(),!0)&&Z7n(R,"p_sr",{});pT(this);this.qA(J);this.CL()||this.M$(!1)}}; g.T.H3=function(J,R){if(R.layoutId===this.layout.layoutId){this.zW="rendering";this.J=this.UB.get().isMuted()||this.UB.get().getVolume()===0;this.r3("impression");this.r3("start");if(this.UB.get().isMuted()){cr(this,"mute");var N;J=((N=mO(this))==null?void 0:N.muteCommands)||[];fw(this.I1.get(),J,this.layout.layoutId)}if(this.UB.get().isFullscreen()){this.dX("fullscreen");var C;N=((C=mO(this))==null?void 0:C.fullscreenCommands)||[];fw(this.I1.get(),N,this.layout.layoutId)}this.CL()||(C=this.qN.get(), C.V&&!C.J&&(C.U=!1,C.J=!0,C.actionType!=="ad_to_video"&&(F8("pbs",void 0,C.actionType),g.Ac("finalize_all_timelines")&&F_n(C.actionType))));this.w4(1);this.E0(R);var X;R=((X=mO(this))==null?void 0:X.impressionCommands)||[];fw(this.I1.get(),R,this.layout.layoutId)}}; g.T.Sa=function(J,R,N){this.D={p_:3,rD:J==="load_timeout"?402:400,errorMessage:R.message};this.r3("error");var C;J=((C=mO(this))==null?void 0:C.errorCommands)||[];fw(this.I1.get(),J,this.layout.layoutId);this.CL()||this.To.dL(this.slot,this.layout,R,N)}; g.T.Fl=function(){if(this.zW==="rendering"){cr(this,"pause");var J,R=((J=mO(this))==null?void 0:J.pauseCommands)||[];fw(this.I1.get(),R,this.layout.layoutId);this.w4(2)}}; g.T.cj=function(){if(this.zW==="rendering"){cr(this,"resume");var J,R=((J=mO(this))==null?void 0:J.resumeCommands)||[];fw(this.I1.get(),R,this.layout.layoutId)}}; g.T.UJ=function(J,R){R=R===void 0?!1:R;if(this.zW==="rendering"){var N={currentTimeSec:J,flush:R};pG(this.K,"p_ip",N);G_(this.Np,J*1E3,R);this.J||G_(this.Np,J*1E3,R===void 0?!1:R);var C=this.Ee();if(C){C/=1E3;if(J>=C*.25||R)this.r3("first_quartile"),pG(this.K,"p_fq",N);if(J>=C*.5||R)this.r3("midpoint"),pG(this.K,"p_sq",N);if(J>=C*.75||R)this.r3("third_quartile"),pG(this.K,"p_tq",N);this.JN.get().G.N().experiments.b3("enable_progress_command_flush_on_kabuki")?XW(this.Z,J*1E3,R):XW(this.Z,J*1E3,XF2(this)? R:!1)}}}; g.T.pR=function(){var J;return((J=ls(this.Y8.get(),1))==null?void 0:J.clientPlaybackNonce)||""}; g.T.Cg=function(J,R){J.layoutId!==this.layout.layoutId?this.To.dL(this.slot,J,new KQ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):R()}; g.T.mV=function(J,R,N){if(R.layoutId===this.layout.layoutId)switch(this.zW="not_rendering",this.layoutExitReason=void 0,this.CL()||(J=N!=="normal"||this.position+1===this.S)&&this.M$(J),this.vj(N),this.w4(0),N){case "abandoned":if(b1(this.Np,"impression")){var C,X=((C=mO(this))==null?void 0:C.abandonCommands)||[];fw(this.I1.get(),X,this.layout.layoutId)}break;case "normal":C=((X=mO(this))==null?void 0:X.completeCommands)||[];fw(this.I1.get(),C,this.layout.layoutId);break;case "skipped":var u;C=((u= mO(this))==null?void 0:u.skipCommands)||[];fw(this.I1.get(),C,this.layout.layoutId)}}; g.T.Bt=function(){return this.layout.layoutId}; g.T.mO=function(){return this.D}; g.T.Sg=function(){if(this.zW==="rendering"){this.Np.r3("active_view_measurable");var J,R=((J=mO(this))==null?void 0:J.activeViewMeasurableCommands)||[];fw(this.I1.get(),R,this.layout.layoutId)}}; g.T.AB=function(){if(this.zW==="rendering"){this.Np.r3("active_view_fully_viewable_audible_half_duration");var J,R=((J=mO(this))==null?void 0:J.activeViewFullyViewableAudibleHalfDurationCommands)||[];fw(this.I1.get(),R,this.layout.layoutId)}}; g.T.TP=function(){if(this.zW==="rendering"){this.Np.r3("active_view_viewable");var J,R=((J=mO(this))==null?void 0:J.activeViewViewableCommands)||[];fw(this.I1.get(),R,this.layout.layoutId)}}; g.T.GP=function(){if(this.zW==="rendering"){this.Np.r3("audio_audible");var J,R=((J=mO(this))==null?void 0:J.activeViewAudioAudibleCommands)||[];fw(this.I1.get(),R,this.layout.layoutId)}}; g.T.Ps=function(){if(this.zW==="rendering"){this.Np.r3("audio_measurable");var J,R=((J=mO(this))==null?void 0:J.activeViewAudioMeasurableCommands)||[];fw(this.I1.get(),R,this.layout.layoutId)}}; g.T.M$=function(J){this.qN.get().M$(QX(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,J,this.position,this.S,!1)}; g.T.onFullscreenToggled=function(J){if(this.zW==="rendering")if(J){this.dX("fullscreen");var R,N=((R=mO(this))==null?void 0:R.fullscreenCommands)||[];fw(this.I1.get(),N,this.layout.layoutId)}else this.dX("end_fullscreen"),R=((N=mO(this))==null?void 0:N.endFullscreenCommands)||[],fw(this.I1.get(),R,this.layout.layoutId)}; g.T.onVolumeChange=function(){if(this.zW==="rendering")if(this.UB.get().isMuted()){cr(this,"mute");var J,R=((J=mO(this))==null?void 0:J.muteCommands)||[];fw(this.I1.get(),R,this.layout.layoutId)}else cr(this,"unmute"),J=((R=mO(this))==null?void 0:R.unmuteCommands)||[],fw(this.I1.get(),J,this.layout.layoutId)}; g.T.YB=function(){}; g.T.El=function(){}; g.T.gV=function(){}; g.T.jP=function(){}; g.T.k5=function(){}; g.T.dX=function(J){this.Np.dX(J,!this.J)}; g.T.r3=function(J){this.Np.r3(J,!this.J)}; g.T.CL=function(){var J=QX(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return J===void 0?(d0("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.JN.get().CL(J)};g.M(tm,Vr);g.T=tm.prototype;g.T.Px=function(){}; g.T.wY=function(){var J=this.AN.get();J.Iq===this&&(J.Iq=null);this.pY.stop()}; g.T.IX=function(){this.pY.stop();Vr.prototype.Fl.call(this)}; g.T.G4=function(){Jo(this);Vr.prototype.cj.call(this)}; g.T.Ee=function(){return QX(this.LC().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.T.vU=function(J,R){var N=this;this.Cg(J,function(){N.zW!=="rendering_stop_requested"&&(N.zW="rendering_stop_requested",N.layoutExitReason=R,Pr(N,R),N.pY.stop())})}; g.T.P1=function(){var J=Date.now(),R=J-this.Wp;this.Wp=J;this.Ul+=R;this.Ul>=this.Ee()?this.J3():(this.UJ(this.Ul/1E3),xo(this,this.Ul))}; g.T.vj=function(){}; g.T.bv=function(){}; g.M(oq,tm);g.T=oq.prototype;g.T.bB=function(J){if(this.zW!=="not_rendering"){J=zk(this,J);var R=this.UB.get().getPresentingPlayerType()===2;this.zW==="rendering_start_requested"?R&&Z6(J)&&this.Bl():R?g.Yp(J,2)?d0("Receive player ended event during MediaBreak",this.pP(),this.LC()):el(this,J):this.n1()}}; g.T.qA=function(){N0B(this);Lin(this.UB.get());this.AN.get().Iq=this;Ln("pbp")||Ln("pbs")||F8("pbp");Ln("pbp","watch")||Ln("pbs","watch")||F8("pbp",void 0,"watch");this.Bl()}; g.T.E0=function(J){this.qN.get();var R=QX(J.clientMetadata,"metadata_type_ad_placement_config").kind,N=this.position===0;J=QX(J.clientMetadata,"metadata_type_linked_in_player_layout_type");J={adBreakType:wD(R),adType:Lr7(J)};var C=void 0;N?R!=="AD_PLACEMENT_KIND_START"&&(C="video_to_ad"):C="ad_to_ad";vU("ad_mbs",void 0,C);g.WU(J,C);Jo(this)}; g.T.n1=function(){this.QG()}; g.T.J3=function(){upE(this);this.QG()}; g.M(Rq,tm);g.T=Rq.prototype;g.T.bB=function(J){this.zW!=="not_rendering"&&(J=zk(this,J),el(this,J))}; g.T.qA=function(){d0("Not used in SSAP")}; g.T.E0=function(){Jo(this)}; g.T.n1=function(){d0("Not used in SSAP")}; g.T.J3=function(){upE(this);this.To.Xy(this.pP(),this.LC(),"normal")}; g.M(NJ,Rq);NJ.prototype.vU=function(J,R){var N=this;this.Cg(J,function(){YP(N.V,R)&&(N.zW="rendering_stop_requested",N.layoutExitReason=R,Pr(N,R),N.pY.stop())})}; NJ.prototype.startRendering=function(J){ge(gD(this));Uc(this,J)&&(pT(this),this.AN.get().Iq=this)};g.M(iN,Vr);g.T=iN.prototype;g.T.n1=function(){this.QG()}; g.T.bB=function(J){if(this.zW!=="not_rendering"){J=zk(this,J);var R=this.UB.get().getPresentingPlayerType()===2;this.zW==="rendering_start_requested"?R&&Z6(J)&&this.Bl():!R||g.Yp(J,2)?this.QG():el(this,J)}}; g.T.Px=function(){QX(this.LC().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=QX(this.LC().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.T.wY=function(){QX(this.LC().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.xD){var J=this.context.Wa,R=this.xD,N=this.LC().layoutId;if(U4(J.JN.get(),!0)){var C={};J.NO("mccru",(C.cid=R,C.p_ac=N,C))}this.TA.get().removeCueRange(this.xD)}this.xD=void 0;var X;(X=this.cD)==null||X.dispose();this.By&&this.By.dispose()}; g.T.qA=function(J){var R=C_(this.JN.get()),N=Xg(this.JN.get());if(R&&N&&!this.CL()){N=QX(J.clientMetadata,"metadata_type_preload_player_vars");var C=g.di(this.JN.get().G.N().experiments,"html5_preload_wait_time_secs");N&&this.By&&this.By.start(C*1E3)}$2k(this,J);N0B(this);R?(N=this.Es.get(),J=QX(J.clientMetadata,"metadata_type_player_vars"),N.G.loadVideoByPlayerVars(J,!1,2)):DpE(this.Es.get(),QX(J.clientMetadata,"metadata_type_player_vars"));var X;(X=this.cD)==null||X.start();R||this.Es.get().G.playVideo(2)}; g.T.E0=function(){var J;(J=this.cD)==null||J.stop();this.xD="adcompletioncuerange:"+this.LC().layoutId;this.TA.get().addCueRange(this.xD,0x7ffffffffffff,0x8000000000000,!1,this,2,2);J=this.context.Wa;var R=this.xD,N=this.LC().layoutId;if(U4(J.JN.get(),!0)){var C={};J.NO("mccr",(C.cid=R,C.p_ac=N,C))}(this.adCpn=Rzf(this))||d0("Media layout confirmed started, but ad CPN not set.");this.NN.get().U$("onAdStart",this.adCpn);this.n9=Date.now()}; g.T.Ee=function(){var J;return(J=ls(this.Y8.get(),2))==null?void 0:J.W7Q}; g.T.xo=function(){this.Np.dX("clickthrough")}; g.T.vU=function(J,R){var N=this;this.Cg(J,function(){if(N.zW!=="rendering_stop_requested"){N.zW="rendering_stop_requested";N.layoutExitReason=R;Pr(N,R);var C;(C=N.cD)==null||C.stop();N.By&&N.By.stop();HrE(N)}})}; g.T.onCueRangeEnter=function(J){if(J!==this.xD)d0("Received CueRangeEnter signal for unknown layout.",this.pP(),this.LC(),{cueRangeId:J});else{var R=this.context.Wa,N=this.LC().layoutId;if(U4(R.JN.get(),!0)){var C={};R.NO("mccre",(C.cid=J,C.p_ac=N,C))}this.TA.get().removeCueRange(this.xD);this.xD=void 0;ki(this.context.JN.get(),"html5_ssap_flush_at_stop_rendering")&&this.CL()||(J=QX(this.LC().clientMetadata,"metadata_type_video_length_seconds"),this.UJ(J,!0),this.r3("complete"))}}; g.T.vj=function(J){J!=="abandoned"&&this.NN.get().U$("onAdComplete");this.NN.get().U$("onAdEnd",this.adCpn)}; g.T.onCueRangeExit=function(){}; g.T.bv=function(J){this.zW==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&J>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.UB.get().B_(!0),this.UJ(J))}; g.T.UJ=function(J,R){Vr.prototype.UJ.call(this,J,R===void 0?!1:R);R=Date.now()-this.n9;var N=J*1E3,C={contentCpn:this.pR(),adCpn:Rzf(this)};if(J>=5&&!this.CS){var X=R<1E3?0:1;BF(X,"i.k_",{metadata:C,RQ:R,uJ:Math.floor(N/1E3)});Xi("IKDSTAT",X);X===0&&k8P(this)&&this.NN.get().U$("onAbnormalityDetected");this.CS=!0}this.JN.get().G.N().experiments.b3("enable_ik_opt")&&J-this.V2>=5&&(X=R=2||(this.a9.vU(this.layout,R),J=ki(this.params.context.JN.get(),"html5_ssap_pass_transition_reason")&&R==="abandoned",this.xU()&&!J&&(ki(this.params.context.JN.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(R)||d0("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:R})),this.v1.get().finishSegmentByCpn(this.layout.layoutId, ls(this.Y8.get(),1).clientPlaybackNonce,yr(R,this.params.context.JN))),this.UB.get().removeListener(this),this.a7()&&re(this.a9.yw())&&this.ew.mV(this.slot,this.layout,this.a9.yw().K))}; g.T.Dr=function(J,R,N){BaP({cpn:J,Js:this.Y8.get(),Wi:!0});this.LC().layoutId!==J||ki(this.params.context.JN.get(),"html5_ssap_pass_transition_reason")&&N===5||(this.a9.yw().currentState<2&&(J=Gk(N,this.params.context.JN),J==="error"?this.ew.dL(this.slot,this.layout,new KQ("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:N},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):L_(this.Q0, this.layout,J)),ki(this.params.context.JN.get(),"html5_ssap_exit_without_waiting_for_transition")||this.ew.mV(this.slot,this.layout,this.a9.yw().K))};g.M(HP,g.l);g.T=HP.prototype;g.T.pP=function(){return this.slot}; g.T.LC=function(){return this.layout}; g.T.bV=function(){}; g.T.jX=function(){return this.nx[this.RR]}; g.T.hk=function(){return this.RR}; g.T.IX=function(J,R){var N=this.jX();R.layoutId!==vP(N,J,R)?d0("pauseLayout for a PlayerBytes layout that is not currently active",J,R):N.IX()}; g.T.G4=function(J,R){var N=this.jX();R.layoutId!==vP(N,J,R)?d0("resumeLayout for a PlayerBytes layout that is not currently active",J,R):N.G4()}; g.T.lN=function(J,R){var N=this.jX();KrE(this,J,R);aO7(N,J,R)&&this.AT(N.pP(),N.LC(),"skipped")}; g.T.B0=function(J,R){var N=this.jX();QHB(this);npE(N,J,R)&&(J=D2g(this,N,J,R),J!==void 0&&(this.CL()?d0("Should not happen. Should delete"):B0E(this,N.pP(),N.LC(),J)))}; g.T.Bq=function(J,R){var N=Object.assign({},kB(this),{layoutId:R.layoutId}),C=N.layoutId,X=N.Wi;if(N.B4){var u={};VC(N.Js,"wrse",(u.ec=C,u.is=X,u.ctp=mI(C),u))}wi(this.Ae,J,R)}; g.T.H3=function(J,R){var N;(N=this.jX())==null||N.H3(J,R)}; g.T.mV=function(J,R,N){R.layoutId===this.LC().layoutId&&(this.Hu=!1,ri(this.o1(),this));var C;(C=this.jX())==null||C.mV(J,R,N)}; g.T.bv=function(J){var R;(R=this.jX())==null||R.bv(J)}; g.T.mx=function(J,R,N){this.hk()===-1&&(this.callback.H3(this.slot,this.layout),this.RR++);var C=this.jX();C?(C.Sa(J,R,N),this.CL()&&this.callback.dL(this.slot,this.layout,R,N)):d0("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.hk()),layoutId:this.LC().layoutId})}; g.T.onFullscreenToggled=function(J){var R;(R=this.jX())==null||R.onFullscreenToggled(J)}; g.T.YB=function(J){var R;(R=this.jX())==null||R.YB(J)}; g.T.gV=function(J){var R;(R=this.jX())==null||R.gV(J)}; g.T.onVolumeChange=function(){var J;(J=this.jX())==null||J.onVolumeChange()}; g.T.CH=function(J,R,N){cM(this.Ae,J,R,N)}; g.T.BM=function(J){J.startRendering(J.LC())}; g.T.init=function(){var J=QX(this.LC().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");J&&(J.current=this);if(this.nx.length<1)throw new x("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.nx.length)});if(J=QX(this.LC().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))J.current=this;J=g.K(this.nx);for(var R=J.next();!R.done;R=J.next())R=R.value,R.init(),ydE(this.Ae,this.slot,R.LC()),GAB(this.Ae,this.slot,R.LC()); if(this.CL())for(this.Y8.get().addListener(this),KaE(Maf(this),this.Y8.get()),J=Maf(this),J=g.K(J),R=J.next();!R.done;R=J.next())this.eF(R.value)}; g.T.eF=function(J){var R=QX(J.clientMetadata,"metadata_type_player_vars");R?(J.layoutType!=="LAYOUT_TYPE_MEDIA"&&d0("Non-video ad contains playerVars",this.slot,J),this.Es.get().addPlayerResponseForAssociation({playerVars:R})):(J=IOf(J),this.Es.get().addPlayerResponseForAssociation({RD:J}))}; g.T.release=function(){var J=QX(this.LC().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");J&&(J.current=null);if(J=QX(this.LC().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))J.current=null;J=g.K(this.nx);for(var R=J.next();!R.done;R=J.next())R=R.value,b52(this.Ae,this.slot,R.LC()),R.release();this.CL()&&(this.Y8.get().removeListener(this),aKn())}; g.T.Cg=function(J){return J.layoutId!==this.LC().layoutId?(this.callback.dL(this.pP(),J,new KQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.LC().layoutId+("and LayoutType: "+this.LC().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.T.Co=function(){this.UB.get().addListener(this);Yj(this.o1(),this)}; g.T.bB=function(J){if(J.state.isError()){var R,N;this.mx((R=J.state.uu)==null?void 0:R.errorCode,new KQ("There was a player error during this media layout.",{playerErrorCode:(N=J.state.uu)==null?void 0:N.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(R=this.jX())&&R.bB(J)}; g.T.CL=function(){var J=QX(this.pP().clientMetadata,"metadata_type_eligible_for_ssap");return J===void 0?(d0("Expected SSAP eligibility in PlayerBytes slots",this.pP(),this.LC()),!1):this.JN.get().CL(J)}; g.T.El=function(){}; g.T.Xe=function(){}; g.T.HV=function(){}; g.T.Lb=function(){}; g.T.SX=function(){}; g.T.TT=function(){}; g.T.DI=function(){}; g.T.yg=function(){}; g.T.cV=function(){}; g.T.QL=function(){}; g.T.N7=function(){}; g.T.jP=function(){}; g.T.k5=function(){}; g.M(Iq,HP);g.T=Iq.prototype;g.T.Wq=function(J,R,N){this.AT(J,R,N)}; g.T.kc=function(J,R){this.AT(J,R,"error")}; g.T.AT=function(J,R,N){var C=this;sHB(this,J,R,N,function(){WP(C,C.hk()+1)})}; g.T.startRendering=function(J){this.Cg(J)&&(this.Co(),AbB(this.qN.get()),V6Y(this.JN.get())||Lin(this.UB.get()),this.hk()===-1&&WP(this,this.hk()+1))}; g.T.vU=function(J,R){var N=this;this.Hu=!0;this.hk()===this.nx.length?this.callback.mV(this.slot,this.layout,R):(J=this.jX(),J.vU(J.LC(),R),this.D1=function(){N.callback.mV(N.slot,N.layout,R)}); this.UB.get().G.Kg();DpE(this.Es.get(),{});J=r_(this.UB.get(),1);J.isPaused()&&!g.h(J,2)&&this.UB.get().playVideo();this.UB.get().removeListener(this);this.Hu&&Or8(this)}; g.T.Dr=function(){}; g.T.LZ=function(){}; g.T.Xy=function(){}; g.M(Fg,HP);g.T=Fg.prototype;g.T.Wq=function(J,R,N){J=Object.assign({},kB(this),{layoutId:R.layoutId,layoutExitReason:N});R=J.layoutId;N=J.layoutExitReason;var C={};VC(J.Js,"prse",(C.xc=R,C.ler=N,C.ctp=mI(R),C))}; g.T.kc=function(){d0("onSubLayoutError in SSAP")}; g.T.AT=function(){d0("exitSubLayoutAndPlayNext in SSAP")}; g.T.jX=function(){return this.GT}; g.T.hk=function(){var J=this;return this.nx.findIndex(function(R){var N;return R.LC().layoutId===((N=J.GT)==null?void 0:N.LC().layoutId)})}; g.T.BM=function(J){ZO(this.GT===void 0,"replacing another adapter");this.GT=J;J.startRendering(J.LC())}; g.T.CH=function(J,R,N){cM(this.Ae,J,R,N);var C;ZO(R.layoutId===((C=this.GT)==null?void 0:C.LC().layoutId),"currentAdapter does not match exiting layout",{slot:J?"slot: "+J.slotType:"",subLayout:OS(R)})&&(this.GT=void 0)}; g.T.release=function(){HP.prototype.release.call(this);ZO(this.GT===void 0,"currentAdapter is still active during release");this.GT=void 0}; g.T.xU=function(){return this.UB.get().getPresentingPlayerType()===2}; g.T.vU=function(J,R){function N(){E8(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(R)||d0("Composite stopRendering: Unexpected layout exit reason",this.slot,J,{layoutExitReason:R}))} function C(){this.GT&&MJ(this,this.GT,R);if(this.xU()&&(!E8(this)||R!=="abandoned")){N.call(this);var u;var f=((u=this.Y8.get().G.getVideoData())==null?void 0:u.clientPlaybackNonce)||"";u=ls(this.Y8.get(),1).clientPlaybackNonce;this.v1.get().finishSegmentByCpn(f,u,yr(R,this.JN))}ZrB(this,R)} function X(){if(this.GT){var u=this.GT;u.yw().currentState<2&&u.vU(u.LC(),R);u=E8(this)&&R==="abandoned";this.xU()&&!u&&(N.call(this),this.v1.get().finishSegmentByCpn(this.GT.LC().layoutId,ls(this.Y8.get(),1).clientPlaybackNonce,yr(R,this.JN)))}} ZO(J.layoutId===this.LC().layoutId,"StopRendering for wrong layout")&&YP(this.mU.J,R)&&(this.a7()?C.call(this):X.call(this))}; g.T.mV=function(J,R,N){HP.prototype.mV.call(this,J,R,N);R.layoutId===this.LC().layoutId&&this.UB.get().removeListener(this)}; g.T.pR=function(){return ls(this.Y8.get(),1).clientPlaybackNonce}; g.T.Dr=function(J,R,N){BaP(Object.assign({},kB(this),{cpn:J}));if(!E8(this)||N!==5)if(this.a7()){if(this.GT&&this.GT.LC().layoutId!==R){var C=this.GT.LC().layoutId;C!==J&&d0("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:C,exitingCpn:J,enteringCpn:R});J=Gk(N,this.JN);MJ(this,this.GT,J)}else this.GT&&d0("onClipExited: active layout is entering again");R===this.pR()&&qSf(this,N)}else{if(this.GT&&this.GT.LC().layoutId===J)d2B(this,this.GT,N);else{var X;d0("Exiting cpn does not match active cpn", this.slot,(C=this.GT)==null?void 0:C.LC(),{exitingCpn:J,transitionReason:N,activeCpn:(X=this.GT)==null?void 0:X.LC().layoutId})}R===this.pR()&&(this.GT!==void 0&&(d0("active adapter is not properly exited",this.slot,this.layout,{activeLayout:OS(this.GT.LC())}),d2B(this,this.GT,N)),qSf(this,N),ZrB(this,this.mU.J.K))}}; g.T.a7=function(){return ki(this.JN.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.T.startRendering=function(J){this.Cg(J)&&(J=this.mU,ZO(J.K===1,"tickStartRendering: state is not initial"),J.K=2,this.Co())}; g.T.LZ=function(J){slE(Object.assign({},kB(this),{cpn:J}));var R=this.nx.find(function(N){return N.LC().layoutId===J}); R?(this.mU.K!==2&&(uNE(this.Td,this.slot.slotId),ZO(this.mU.K===2,"Expect started"),this.callback.H3(this.slot,this.layout)),this.BM(R),wi(this.Ae,this.slot,R.LC())):Alg(this,J)}; g.T.lN=function(J,R){KrE(this,J,R);var N=this.jX();N?aO7(N,J,R)&&YSE(this,"skipped"):rlE(this,"onSkipRequested")}; g.T.B0=function(J,R){var N;a:{if(N=this.jX()){if(QHB(this),npE(N,J,R)&&(J=D2g(this,N,J,R),J!==void 0)){N={Cq:N,LuM:this.nx[J]};break a}}else rlE(this,"SkipWithAdPodSkip");N=void 0}if(J=N)N=J.Cq,R=J.LuM,J=N.LC().layoutId,this.a7()?MJ(this,N,"skipped"):N.vU(N.LC(),"skipped"),N=R.LC().layoutId,this.v1.get().finishSegmentByCpn(J,N,yr("skipped",this.JN))}; g.T.Bq=function(){d0("Not used in html5_ssap_fix_layout_exit")}; g.T.bB=function(J){var R;(R=this.jX())==null||R.bB(J)}; g.T.mx=function(){d0("Not used in html5_ssap_fix_layout_exit")}; g.T.Xy=function(J,R,N){var C;if(((C=this.jX())==null?void 0:C.LC().layoutId)!==R.layoutId)return void d0("requestToExitSubLayout: wrong layout");YSE(this,N)};g.M(K_,g.l);g.T=K_.prototype;g.T.pP=function(){return this.a9.pP()}; g.T.LC=function(){return this.a9.LC()}; g.T.init=function(){var J=QX(this.LC().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");J&&(J.current=this);this.Px()}; g.T.Px=function(){this.a9.init()}; g.T.release=function(){var J=QX(this.LC().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");J&&(J.current=null);this.wY()}; g.T.wY=function(){this.a9.release()}; g.T.IX=function(){this.a9.IX()}; g.T.G4=function(){this.a9.G4()}; g.T.lN=function(J,R){d0("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.pP(),this.LC(),{requestingSlot:J,requestingLayout:R})}; g.T.startRendering=function(J){J.layoutId!==this.LC().layoutId?this.callback.dL(this.pP(),J,new KQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.LC().layoutId+("and LayoutType: "+this.LC().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.UB.get().addListener(this),Yj(this.o1(),this),AbB(this.qN.get()),V6Y(this.JN.get())||Lin(this.UB.get()),this.a9.startRendering(J))}; g.T.vU=function(J,R){this.Hu=!0;this.a9.vU(J,R);this.UB.get().G.Kg();DpE(this.Es.get(),{});J=r_(this.UB.get(),1);J.isPaused()&&!g.h(J,2)&&this.UB.get().playVideo();this.UB.get().removeListener(this);this.Hu&&this.a9.n1()}; g.T.H3=function(J,R){this.a9.H3(J,R)}; g.T.mV=function(J,R,N){R.layoutId===this.LC().layoutId&&(this.Hu=!1,ri(this.o1(),this));this.a9.mV(J,R,N);R.layoutId===this.LC().layoutId&&Sw(this.qN.get())}; g.T.bv=function(J){this.a9.bv(J)}; g.T.bB=function(J){if(J.state.isError()){var R,N;this.mx((R=J.state.uu)==null?void 0:R.errorCode,new KQ("There was a player error during this media layout.",{playerErrorCode:(N=J.state.uu)==null?void 0:N.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.a9.bB(J)}; g.T.mx=function(J,R,N){this.a9.Sa(J,R,N)}; g.T.onFullscreenToggled=function(J){this.a9.onFullscreenToggled(J)}; g.T.YB=function(J){this.a9.YB(J)}; g.T.gV=function(J){this.a9.gV(J)}; g.T.onVolumeChange=function(){this.a9.onVolumeChange()}; g.T.El=function(){}; g.T.Xe=function(){}; g.T.HV=function(){}; g.T.Lb=function(){}; g.T.SX=function(){}; g.T.TT=function(){}; g.T.DI=function(){}; g.T.yg=function(){}; g.T.cV=function(){}; g.T.QL=function(){}; g.T.N7=function(){}; g.T.jP=function(){}; g.T.k5=function(){};g.T=aq.prototype;g.T.pP=function(){return this.slot}; g.T.LC=function(){return this.layout}; g.T.init=function(){this.XV.get().addListener(this);this.UB.get().addListener(this);var J=QX(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var R=QX(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.Z){var N=this.XV.get().Gh.slice(-1)[0];N!==void 0&&(J=N.startSecs*1E3,R=(N.startSecs+N.Ly)*1E3)}this.Q1(J,R);var C;N=(C=this.Y8.get().JF)==null?void 0:C.clientPlaybackNonce;C=this.layout.AE.adClientDataEntry;QW(this.AN.get(),{daiStateTrigger:{filledAdsDurationMs:R-J,contentCpn:N, adClientData:C}});var X=this.XV.get();X=Va8(X.V,J,R);X!==null&&(QW(this.AN.get(),{daiStateTrigger:{filledAdsDurationMs:X-J,contentCpn:N,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:C}}),this.v1.get().mf(X,R))}; g.T.release=function(){this.wY();this.XV.get().removeListener(this);this.UB.get().removeListener(this)}; g.T.startRendering=function(){this.qA();this.callback.H3(this.slot,this.layout)}; g.T.vU=function(J,R){this.lz(R);this.driftRecoveryMs!==null&&(n_(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(gpf(this)-QX(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.UB.get().G.DX()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.mV(this.slot,this.layout,R)}; g.T.n7=function(){return!1}; g.T.DS=function(J){var R=QX(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),N=QX(this.layout.clientMetadata,"metadata_type_layout_exit_ms");J*=1E3;if(R<=J&&J0&&h3(this.K(),R)}; g.T.HV=function(J){this.U.delete(J.slotId);for(var R=[],N=g.K(this.Zo.values()),C=N.next();!C.done;C=N.next()){C=C.value;var X=C.trigger;X instanceof Mf&&X.triggeringSlotId===J.slotId&&R.push(C)}R.length>0&&h3(this.K(),R)}; g.T.Lb=function(J){for(var R=[],N=g.K(this.Zo.values()),C=N.next();!C.done;C=N.next()){C=C.value;var X=C.trigger;X instanceof $x&&X.slotType===J.slotType&&X.K!==J.slotId&&R.push(C)}R.length>0&&h3(this.K(),R)}; g.T.SX=function(J){this.V.add(J.slotId);for(var R=[],N=g.K(this.Zo.values()),C=N.next();!C.done;C=N.next())C=C.value,C.trigger instanceof SH&&J.slotId===C.trigger.triggeringSlotId&&R.push(C);R.length>0&&h3(this.K(),R)}; g.T.TT=function(J){this.V.delete(J.slotId);this.Z.add(J.slotId);for(var R=[],N=g.K(this.Zo.values()),C=N.next();!C.done;C=N.next())if(C=C.value,C.trigger instanceof LD)J.slotId===C.trigger.triggeringSlotId&&R.push(C);else if(C.trigger instanceof xB){var X=C.trigger;J.slotId===X.slotId&&this.J.has(X.triggeringLayoutId)&&R.push(C)}R.length>0&&h3(this.K(),R)}; g.T.DI=function(J){for(var R=[],N=g.K(this.Zo.values()),C=N.next();!C.done;C=N.next())C=C.value,C.trigger instanceof In&&J.slotId===C.trigger.triggeringSlotId&&R.push(C);R.length>0&&h3(this.K(),R)}; g.T.yg=function(J){for(var R=[],N=g.K(this.Zo.values()),C=N.next();!C.done;C=N.next())C=C.value,C.trigger instanceof Fb&&J.slotId===C.trigger.triggeringSlotId&&R.push(C);R.length>0&&h3(this.K(),R)}; g.T.cV=function(J,R){this.S.add(R.layoutId)}; g.T.QL=function(J,R){this.S.delete(R.layoutId)}; g.T.H3=function(J,R){this.J.add(R.layoutId);for(var N=[],C=g.K(this.Zo.values()),X=C.next();!X.done;X=C.next())if(X=X.value,X.trigger instanceof Je)R.layoutId===X.trigger.triggeringLayoutId&&N.push(X);else if(X.trigger instanceof Te){var u=X.trigger;J.slotType===u.slotType&&R.layoutType===u.layoutType&&R.layoutId!==u.K&&N.push(X)}else X.trigger instanceof xB&&(u=X.trigger,R.layoutId===u.triggeringLayoutId&&this.Z.has(u.slotId)&&N.push(X));N.length>0&&h3(this.K(),N)}; g.T.mV=function(J,R,N){this.J.delete(R.layoutId);J=[];for(var C=g.K(this.Zo.values()),X=C.next();!X.done;X=C.next())if(X=X.value,X.trigger instanceof Rn&&R.layoutId===X.trigger.triggeringLayoutId&&J.push(X),X.trigger instanceof on){var u=X.trigger;R.layoutId===u.triggeringLayoutId&&u.K.includes(N)&&J.push(X)}J.length>0&&h3(this.K(),J)}; g.T.N7=function(){}; g.T.fJ=function(){this.Z.clear()}; g.T.zM=function(){};g.M(ta,g.l);ta.prototype.Rx=function(J,R,N,C){if(this.Zo.has(R.triggerId))throw new x("Tried to register duplicate trigger for slot.");if(!(R instanceof bN))throw new x("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in CloseRequestedTriggerAdapter");this.Zo.set(R.triggerId,new Qq(J,R,N,C))}; ta.prototype.F_=function(J){this.Zo.delete(J.triggerId)};g.M(JS,g.l);JS.prototype.Rx=function(J,R,N,C){if(this.Zo.has(R.triggerId))throw new x("Tried to register duplicate trigger for slot.");if(!(R instanceof GG||R instanceof kx))throw new x("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Zo.set(R.triggerId,new Qq(J,R,N,C))}; JS.prototype.F_=function(J){this.Zo.delete(J.triggerId)}; JS.prototype.fJ=function(J){for(var R=[],N=R.push,C=N.apply,X=[],u=g.K(this.Zo.values()),f=u.next();!f.done;f=u.next())f=f.value,f.trigger instanceof GG&&f.trigger.d6===J&&X.push(f);C.call(N,R,g.Q(X));N=R.push;C=N.apply;X=[];u=g.K(this.Zo.values());for(f=u.next();!f.done;f=u.next())f=f.value,f.trigger instanceof kx&&f.trigger.K!==J&&X.push(f);C.call(N,R,g.Q(X));R.length&&h3(this.K(),R)}; JS.prototype.zM=function(J){for(var R=[],N=R.push,C=N.apply,X=[],u=g.K(this.Zo.values()),f=u.next();!f.done;f=u.next()){f=f.value;var H=f.trigger;H instanceof kx&&H.K===J&&X.push(f)}C.call(N,R,g.Q(X));R.length&&h3(this.K(),R)};g.M(oA,g.l);g.T=oA.prototype;g.T.Rx=function(J,R,N,C){if(this.Zo.has(R.triggerId))throw new x("Tried to register duplicate trigger for slot.");var X="adtriggercuerange:"+R.triggerId;if(R instanceof uT)xmE(this,J,R,N,C,X,R.K.start,R.K.end,R.d6,R.visible);else if(R instanceof to)xmE(this,J,R,N,C,X,0x7ffffffffffff,0x8000000000000,R.d6,R.visible);else throw new x("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in CueRangeTriggerAdapter");}; g.T.F_=function(J){var R=this.Zo.get(J.triggerId);R&&this.TA.get().removeCueRange(R.cueRangeId);this.Zo.delete(J.triggerId)}; g.T.onCueRangeEnter=function(J){var R=JR7(this,J);if(R&&(R=this.Zo.get(R)))if(g.h(r_(this.UB.get()),32))this.K.add(R.cueRangeId);else{var N=R==null?void 0:R.Oi.trigger;if(N instanceof uT||N instanceof to){if(U4(this.context.JN.get())){var C=R.Oi.slot,X=R.Oi.layout,u={};this.context.Wa.NO("cre",(u.ca=R.Oi.category,u.tt=N.triggerType,u.st=C.slotType,u.lt=X==null?void 0:X.layoutType,u.cid=J,u))}h3(this.J(),[R.Oi])}}}; g.T.onCueRangeExit=function(J){(J=JR7(this,J))&&(J=this.Zo.get(J))&&this.K.delete(J.cueRangeId)}; g.T.bB=function(J){if(Al(J,16)<0){J=g.K(this.K);for(var R=J.next();!R.done;R=J.next())this.onCueRangeEnter(R.value,!0);this.K.clear()}}; g.T.Xe=function(){}; g.T.HV=function(){}; g.T.Lb=function(){}; g.T.SX=function(){}; g.T.TT=function(){}; g.T.DI=function(){}; g.T.yg=function(){}; g.T.cV=function(){}; g.T.QL=function(){}; g.T.H3=function(){}; g.T.mV=function(){}; g.T.N7=function(){}; g.T.bv=function(){}; g.T.onFullscreenToggled=function(){}; g.T.YB=function(){}; g.T.El=function(){}; g.T.gV=function(){}; g.T.onVolumeChange=function(){}; g.T.jP=function(){}; g.T.k5=function(){};g.M(RA,g.l);g.T=RA.prototype; g.T.Rx=function(J,R,N,C){if(this.J.has(R.triggerId)||this.V.has(R.triggerId))throw new x("Tried to re-register the trigger.");J=new Qq(J,R,N,C);if(J.trigger instanceof iT)this.J.set(J.trigger.triggerId,J);else if(J.trigger instanceof Nf)this.V.set(J.trigger.triggerId,J);else throw new x("Incorrect TriggerType: Tried to register trigger of type "+J.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.J.has(J.trigger.triggerId)&&J.slot.slotId===this.K&&h3(this.Z(),[J])}; g.T.F_=function(J){this.J.delete(J.triggerId);this.V.delete(J.triggerId)}; g.T.bV=function(J){J=J.slotId;if(this.K!==J){var R=[];this.K!=null&&R.push.apply(R,g.Q(oJn(this.V,this.K)));J!=null&&R.push.apply(R,g.Q(oJn(this.J,J)));this.K=J;R.length&&h3(this.Z(),R)}}; g.T.Dr=function(){}; g.T.LZ=function(){};g.M(NN,g.l);g.T=NN.prototype;g.T.Rx=function(J,R,N,C){if(this.Zo.has(R.triggerId))throw new x("Tried to register duplicate trigger for slot.");if(!(R instanceof Hz))throw new x("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Zo.set(R.triggerId,new Qq(J,R,N,C))}; g.T.F_=function(J){this.Zo.delete(J.triggerId)}; g.T.H3=function(){}; g.T.mV=function(){}; g.T.Xe=function(){}; g.T.HV=function(){}; g.T.Lb=function(){}; g.T.SX=function(){}; g.T.TT=function(){}; g.T.DI=function(){}; g.T.yg=function(){}; g.T.cV=function(){}; g.T.QL=function(){}; g.T.N7=function(){};g.M(Cf,g.l);g.T=Cf.prototype;g.T.N7=function(J,R){for(var N=[],C=g.K(this.Zo.values()),X=C.next();!X.done;X=C.next()){X=X.value;var u=X.trigger;u.opportunityType===J&&(u.associatedSlotId&&u.associatedSlotId!==R||N.push(X))}N.length&&h3(this.K(),N)}; g.T.Rx=function(J,R,N,C){if(this.Zo.has(R.triggerId))throw new x("Tried to register duplicate trigger for slot.");if(!(R instanceof vug))throw new x("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in OpportunityEventTriggerAdapter");this.Zo.set(R.triggerId,new Qq(J,R,N,C))}; g.T.F_=function(J){this.Zo.delete(J.triggerId)}; g.T.Xe=function(){}; g.T.HV=function(){}; g.T.Lb=function(){}; g.T.SX=function(){}; g.T.TT=function(){}; g.T.DI=function(){}; g.T.yg=function(){}; g.T.cV=function(){}; g.T.QL=function(){}; g.T.H3=function(){}; g.T.mV=function(){};g.M(Xt,g.l);g.T=Xt.prototype;g.T.Rx=function(J,R,N,C){J=new Qq(J,R,N,C);if(R instanceof CD||R instanceof fD||R instanceof Xb||R instanceof vz||R instanceof vaE){if(this.Zo.has(R.triggerId))throw new x("Tried to register duplicate trigger for slot.");this.Zo.set(R.triggerId,J);N=N.slotId;J=this.V.has(N)?this.V.get(N):new Set;J.add(R);this.V.set(N,J)}else throw new x("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in PrefetchTriggerAdapter");}; g.T.F_=function(J){this.Zo.delete(J.triggerId)}; g.T.Xe=function(J){var R=J.slotId;if(this.V.has(R)){J=0;var N=new Set;R=g.K(this.V.get(R));for(var C=R.next();!C.done;C=R.next())if(C=C.value,N.add(C.triggerId),C instanceof fD&&C.breakDurationMs){J=C.breakDurationMs;break}un(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",J,N)}}; g.T.HV=function(){}; g.T.Lb=function(){}; g.T.SX=function(){}; g.T.TT=function(){}; g.T.DI=function(){}; g.T.yg=function(){}; g.T.cV=function(){}; g.T.QL=function(){}; g.T.H3=function(){}; g.T.mV=function(){}; g.T.N7=function(){}; g.T.n7=function(J){if(this.K){this.J&&this.J.stop();this.Z&&g.HK(this.Z);J=J.Ly*1E3+1E3;for(var R=0,N=g.K(this.Zo.values()),C=N.next();!C.done;C=N.next())C=C.value.trigger,C instanceof CD&&C.breakDurationMs<=J&&C.breakDurationMs>R&&(R=C.breakDurationMs);J=R;if(J>0)return un(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",J,new Set,!0),un(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",J,new Set,!1),!0}return!1}; g.T.DS=function(){}; g.T.fJ=function(J){this.K&&this.K.contentCpn!==J?(d0("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:J,fetchInstructionsCpn:this.K.contentCpn}),ff(this)):NXB(this)}; g.T.zM=function(J){this.K&&this.K.contentCpn!==J&&d0("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:J,fetchInstructionsCpn:this.K.contentCpn},!0);ff(this)}; g.T.b1=function(J){var R=this;if(this.K)d0("Unexpected multiple fetch instructions for the current content");else{this.K=J;J=XeE(J);this.J=new g.$t(function(){NXB(R)},J?J:6E5); this.J.start();this.Z=new g.$t(function(){R.K&&(R.J&&(R.J.stop(),R.J.start()),RdE(R,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},C5Y(this.K)); J=this.UB.get().getCurrentTimeSec(1,!1);for(var N=g.K(this.XV.get().Gh),C=N.next();!C.done;C=N.next())C=C.value,s8(this.AN.get(),"nocache","ct."+Date.now()+";cmt."+J+";d."+C.Ly.toFixed(3)+";tw."+(C.startSecs-J)+";cid."+C.identifier+";")}}; g.T.Fk=function(){g.l.prototype.Fk.call(this);ff(this)};g.M(Tw,g.l);g.T=Tw.prototype;g.T.Rx=function(J,R,N,C){if(this.Zo.has(R.triggerId))throw new x("Tried to register duplicate trigger for slot.");if(!(R instanceof an))throw new x("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Zo.set(R.triggerId,new Qq(J,R,N,C));J=this.K.has(R.triggeringLayoutId)?this.K.get(R.triggeringLayoutId):new Set;J.add(R);this.K.set(R.triggeringLayoutId,J)}; g.T.F_=function(J){this.Zo.delete(J.triggerId);if(!(J instanceof an))throw new x("Incorrect TriggerType: Tried to unregister trigger of type "+J.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var R=this.J.get(J.triggerId);R&&(R.dispose(),this.J.delete(J.triggerId));if(R=this.K.get(J.triggeringLayoutId))R.delete(J),R.size===0&&this.K.delete(J.triggeringLayoutId)}; g.T.Xe=function(){}; g.T.HV=function(){}; g.T.Lb=function(){}; g.T.SX=function(){}; g.T.TT=function(){}; g.T.DI=function(){}; g.T.yg=function(){}; g.T.cV=function(){}; g.T.QL=function(){}; g.T.N7=function(){}; g.T.H3=function(J,R){var N=this;if(this.K.has(R.layoutId)){J=this.K.get(R.layoutId);J=g.K(J);var C=J.next();for(R={};!C.done;R={Od:void 0},C=J.next())R.Od=C.value,C=new g.$t(function(X){return function(){var u=N.Zo.get(X.Od.triggerId);h3(N.V(),[u])}}(R),R.Od.durationMs),C.start(),this.J.set(R.Od.triggerId,C)}}; g.T.mV=function(){};g.M($X,g.l);$X.prototype.Rx=function(J,R,N,C){if(this.Zo.has(R.triggerId))throw new x("Tried to register duplicate trigger for slot.");if(!(R instanceof ho))throw new x("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in VideoTransitionTriggerAdapter.");this.Zo.set(R.triggerId,new Qq(J,R,N,C))}; $X.prototype.F_=function(J){this.Zo.delete(J.triggerId)};WA.prototype.f2=function(J){return J.kind==="AD_PLACEMENT_KIND_START"};g.M(IA,g.l);g.T=IA.prototype;g.T.logEvent=function(J){this.RX(J)}; g.T.Qc=function(J,R,N){this.RX(J,void 0,void 0,void 0,R,void 0,void 0,void 0,R.adSlotLoggingData,void 0,void 0,N)}; g.T.Fz=function(J,R,N,C){this.RX(J,void 0,void 0,void 0,R,N?N:void 0,void 0,void 0,R.adSlotLoggingData,N?N.adLayoutLoggingData:void 0,void 0,C)}; g.T.FO=function(J,R,N,C){ki(this.JN.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+J,"trigger:",N,"slot:",R,"layout:",C);Oj(this.K.get())&&this.RX(J,void 0,void 0,void 0,R,C?C:void 0,void 0,N,R.adSlotLoggingData,C?C.adLayoutLoggingData:void 0)}; g.T.OR=function(J,R,N,C,X){this.RX(J,R,N,C,void 0,void 0,void 0,void 0,void 0,void 0,void 0,X)}; g.T.v9=function(J,R,N,C){this.RX("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,N,C,void 0,void 0,N.adSlotLoggingData,C?C.adLayoutLoggingData:void 0,{errorType:J,errorMessage:R})}; g.T.RX=function(J,R,N,C,X,u,f,H,k,v,W,S){var L=this;S=S===void 0?0:S;ki(this.JN.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+J,"slot:",X,"layout:",u,"ping:",f,"Opportunity:",{opportunityType:R,associatedSlotId:N,ywa:C,aq8:H,adSlotLoggingData:k,adLayoutLoggingData:v});try{var I=function(){if(!L.JN.get().G.N().T("html5_disable_client_tmp_logs")&&J!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){J||d0("Empty PACF event type",X,u);var F=Oj(L.K.get()),a={eventType:J,eventOrder:++L.eventCount},n={}; X&&(n.slotData=BM(F,X));u&&(n.layoutData=zZE(F,u));f&&(n.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:f.ping.serializedAdPingMetadata,pingIndex:f.index});H&&(n.triggerData=sj(H.trigger,H.category));R&&(n.opportunityData=eZ2(F,R,N,C));F={organicPlaybackContext:{contentCpn:ls(L.Y8.get(),1).clientPlaybackNonce}};F.organicPlaybackContext.isLivePlayback=ls(L.Y8.get(),1).MR;var B;F.organicPlaybackContext.isMdxPlayback=(B=ls(L.Y8.get(),1))==null?void 0: B.isMdxPlayback;var Z;if((Z=ls(L.Y8.get(),1))==null?0:Z.daiEnabled)F.organicPlaybackContext.isDaiContent=!0;var A;if(B=(A=ls(L.Y8.get(),2))==null?void 0:A.clientPlaybackNonce)F.adVideoPlaybackContext={adVideoCpn:B};F&&(n.externalContext=F);a.adClientData=n;k&&(a.serializedSlotAdServingData=k.serializedSlotAdServingDataEntry);v&&(a.serializedAdServingData=v.serializedAdServingDataEntry);W&&(a.errorInfo=W);g.Mz("adsClientStateChange",{adsClientEvent:a})}}; S&&S>0?g.TB(g.H9(),function(){return I()},S):I()}catch(F){ki(this.JN.get(),"html5_log_pacf_logging_errors")&&g.TB(g.H9(),function(){d0(F instanceof Error?F:String(F),X,u,{pacf_message:"exception during pacf logging"})})}};var VtK=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.M(Ft,IA);g.T=Ft.prototype; g.T.Qc=function(J,R,N){IA.prototype.Qc.call(this,J,R,N);U4(this.JN.get())&&(N={},this.context.Wa.NO("pacf",(N.et=J,N.st=R.slotType,N.si=R.slotId,N)))}; g.T.Fz=function(J,R,N,C){var X=VtK.has(J);IA.prototype.Fz.call(this,J,R,N,C);U4(this.JN.get(),X)&&(C={},this.context.Wa.NO("pacf",(C.et=J,C.st=R.slotType,C.si=R.slotId,C.lt=N==null?void 0:N.layoutType,C.li=N==null?void 0:N.layoutId,C.p_ac=N==null?void 0:N.layoutId,C)))}; g.T.OR=function(J,R,N,C,X){IA.prototype.OR.call(this,J,R,N,C,X);U4(this.JN.get())&&(N={},this.context.Wa.NO("pacf",(N.et=J,N.ot=R,N.ss=C==null?void 0:C.length,N)))}; g.T.FO=function(J,R,N,C){IA.prototype.FO.call(this,J,R,N,C);if(U4(this.JN.get())){var X={};this.context.Wa.NO("pacf",(X.et=J,X.tt=N.trigger.triggerType,X.tc=N.category,X.st=R.slotType,X.si=R.slotId,X.lt=C==null?void 0:C.layoutType,X.li=C==null?void 0:C.layoutId,X.p_ac=C==null?void 0:C.layoutId,X))}}; g.T.v9=function(J,R,N,C){IA.prototype.v9.call(this,J,R,N,C);if(U4(this.JN.get(),!0)){var X={};this.context.Wa.NO("perror",(X.ert=J,X.erm=R,X.st=N.slotType,X.si=N.slotId,X.lt=C==null?void 0:C.layoutType,X.li=C==null?void 0:C.layoutId,X.p_ac=C==null?void 0:C.layoutId,X))}}; g.T.RX=function(J,R,N,C,X,u,f,H,k,v,W){if(g.eG(this.JN.get().G.N())){var S=this.JN.get();S=g.di(S.G.N().experiments,"H5_async_logging_delay_ms")}else S=void 0;IA.prototype.RX.call(this,J,R,N,C,X,u,f,H,k,v,W,S)};Eu.prototype.clear=function(){this.K.clear()};aA.prototype.resolve=function(J){MN(this,J)}; aA.prototype.reject=function(J){Kf(this,J)}; aA.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; aA.prototype.wait=function(){var J=this;return function N(){return Yfk(N,function(C){if(C.K==1)return C.S=0,C.Z=2,g.q(C,{Ux:J},4);if(C.K!=2)return C.return(C.J);g.aQ(C);return g.QE(C,0)})}()}; var qYB=UW(function(J){return Qy(J)?J instanceof aA:!1});var YX=window.thf||"pt-BR";mN.prototype.aj=function(J){this.client=J}; mN.prototype.K=function(){this.clear();this.csn=g.pR()}; mN.prototype.clear=function(){this.V.clear();this.J.clear();this.Z.clear();this.csn=null};gS.prototype.aj=function(J){g.$q(Vy().aj).bind(Vy())(J)}; gS.prototype.clear=function(){g.$q(Vy().clear).bind(Vy())()};g.T=Uu.prototype;g.T.aj=function(J){this.client=J}; g.T.j3=function(J,R){var N=this;R=R===void 0?{}:R;g.$q(function(){var C,X,u,f=((C=g.z(J==null?void 0:J.commandMetadata,g.Gv))==null?void 0:C.rootVe)||((X=g.z(J==null?void 0:J.commandMetadata,uCq))==null?void 0:(u=X.screenVisualElement)==null?void 0:u.uiType);if(f){C=g.z(J==null?void 0:J.commandMetadata,aBq);if(C==null?0:C.parentTrackingParams){var H=g.VD(C.parentTrackingParams);if(C.parentCsn)var k=C.parentCsn}else R.clickedVisualElement?H=R.clickedVisualElement:J.clickTrackingParams&&(H=g.VD(J.clickTrackingParams)); a:{C=g.z(J,g.WJ);X=g.z(J,FPl);if(C){if(X=a_E(C,"VIDEO")){C={token:X,videoId:C.videoId};break a}}else if(X&&(C=a_E(X,"PLAYLIST"))){C={token:C,playlistId:X.playlistId};break a}C=void 0}R=Object.assign({},{cttAuthInfo:C,parentCsn:k},R);if(g.Ac("expectation_logging")){var v;R.loggingExpectations=((v=g.z(J==null?void 0:J.commandMetadata,uCq))==null?void 0:v.loggingExpectations)||void 0}ln(N,f,H,R)}else g.G$(new g.C3("Error: Trying to create a new screen without a rootVeType",J))})()}; g.T.clickCommand=function(J,R,N){J=J.clickTrackingParams;N=N===void 0?0:N;J?(N=g.pR(N===void 0?0:N))?(q7E(this.client,N,g.VD(J),R),R=!0):R=!1:R=!1;return R}; g.T.stateChanged=function(J,R,N){this.visualElementStateChanged(g.VD(J),R,N===void 0?0:N)}; g.T.visualElementStateChanged=function(J,R,N){N=N===void 0?0:N;N===0&&this.J.has(N)?this.X.push([J,R]):OV8(this,J,R,N)};wS.prototype.fetch=function(J,R,N){var C=this,X=qhB(J,R,N);return new Promise(function(u,f){function H(){if(N==null?0:N.rC)try{var v=C.handleResponse(J,X.status,X.response,N);u(v)}catch(W){f(W)}else u(C.handleResponse(J,X.status,X.response,N))} X.onerror=H;X.onload=H;var k;X.send((k=R.body)!=null?k:null)})}; wS.prototype.handleResponse=function(J,R,N,C){N=N.replace(")]}'","");try{var X=JSON.parse(N)}catch(u){g.G$(new g.C3("JSON parsing failed after XHR fetch",J,R,N));if((C==null?0:C.rC)&&N)throw new g.Zw(1,"JSON parsing failed after XHR fetch");X={}}R!==200&&(g.G$(new g.C3("XHR API fetch failed",J,R,N)),X=Object.assign({},X,{errorMetadata:{status:R}}));return X};cA.getInstance=function(){var J=g.gY("ytglobal.storage_");J||(J=new cA,g.VE("ytglobal.storage_",J));return J}; cA.prototype.estimate=function(){var J,R,N;return g.Y(function(C){J=navigator;return((R=J.storage)==null?0:R.estimate)?C.return(J.storage.estimate()):((N=J.webkitTemporaryStorage)==null?0:N.queryUsageAndQuota)?C.return(ARg()):C.return()})}; g.VE("ytglobal.storageClass_",cA);FU.prototype.bf=function(J){this.handleError(J)}; FU.prototype.logEvent=function(J,R){switch(J){case "IDB_DATA_CORRUPTED":g.Ac("idb_data_corrupted_killswitch")||this.K("idbDataCorrupted",R);break;case "IDB_UNEXPECTEDLY_CLOSED":this.K("idbUnexpectedlyClosed",R);break;case "IS_SUPPORTED_COMPLETED":g.Ac("idb_is_supported_completed_killswitch")||this.K("idbIsSupportedCompleted",R);break;case "QUOTA_EXCEEDED":rRk(this,R);break;case "TRANSACTION_ENDED":this.V&&Math.random()<=.1&&this.K("idbTransactionEnded",R);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":J= Object.assign({},R,{hasWindowUnloaded:this.J}),this.K("idbTransactionAborted",J)}};var K1={},IPE=g.ks("yt-player-local-media",{Fm:(K1.index={P4:2},K1.media={P4:2},K1.captions={P4:5},K1),shared:!1,upgrade:function(J,R){R(2)&&(g.p3(J,"index"),g.p3(J,"media"));R(5)&&g.p3(J,"captions");R(6)&&(lS(J,"metadata"),lS(J,"playerdata"))}, version:5});var g1L={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},ar;a:{var Qo=g.sa();Qo=Qo.toLowerCase();if(g.K8(Qo,"android")){var U9q=Qo.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(U9q){var ph8=parseFloat(U9q[1]);if(ph8<100){ar=ph8;break a}}var lDP=Qo.match("("+Object.keys(g1L).join("|")+")");ar=lDP?g1L[lDP[0]]:0}else ar=void 0}var la=ar,ps=la>=0;var $tg=window;var j8E=Fq(function(){var J,R;return(R=(J=window).matchMedia)==null?void 0:R.call(J,"(prefers-reduced-motion: reduce)").matches});var yy;g.hS=new cy;yy=0;var Gw={s9:function(J,R){J.splice(0,R)}, Az:function(J,R){var N=J[0];J[0]=J[R%J.length];J[R%J.length]=N}, hp:function(J){J.reverse()}};var MDE=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var Tn=zdn()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.iC?!0:!1;var SDB={r23:"adunit",up8:"detailpage",iJB:"editpage",VPQ:"embedded",jEC:"leanback",WR3:"previewpage",Kyn:"profilepage",Iz:"unplugged",EPB:"playlistoverview",X9Q:"sponsorshipsoffer",lRB:"shortspage",BVQ:"handlesclaiming",OT7:"immersivelivepage",kDp:"creatormusic",q77:"immersivelivepreviewpage",xen:"admintoolyurt",p93:"shortsaudiopivot"};var n1;n1={};g.XT=(n1.STOP_EVENT_PROPAGATION="html5-stop-propagation",n1.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",n1.IV_DRAWER_OPEN="ytp-iv-drawer-open",n1.MAIN_VIDEO="html5-main-video",n1.VIDEO_CONTAINER="html5-video-container",n1.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",n1.HOUSE_BRAND="house-brand",n1);var bVP={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var R1g={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},NNf={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"},IME={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var Vqg={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.WV.prototype.getLanguageInfo=function(){return this.Do}; g.WV.prototype.getXtags=function(){if(!this.xtags){var J=this.id.split(";");J.length>1&&(this.xtags=J[1])}return this.xtags}; g.WV.prototype.toString=function(){return this.Do.name}; g.WV.prototype.getLanguageInfo=g.WV.prototype.getLanguageInfo;SB.prototype.isLocked=function(){return this.V&&!!this.J&&this.J===this.K}; SB.prototype.compose=function(J){if(J.V&&E6(J))return tz;if(J.V||E6(this))return J;if(this.V||E6(J))return this;var R=this.J&&J.J?Math.max(this.J,J.J):this.J||J.J,N=this.K&&J.K?Math.min(this.K,J.K):this.K||J.K;R=Math.min(R,N);var C=0;LP&&(C=this.fC!==0&&J.fC!==0?Math.min(this.fC,J.fC):this.fC===0?J.fC:this.fC);return LP&&R===this.J&&N===this.K&&C===this.fC||!LP&&R===this.J&&N===this.K?this:LP?new SB(R,N,!1,N===this.K&&C===this.fC?this.reason:J.reason,C):new SB(R,N,!1,N===this.K?this.reason:J.reason)}; SB.prototype.Z=function(J){return!J.video||LP&&this.fC!==0&&this.fC=0}; g.T.Yj=function(){var J=this.segments[this.segments.length-1];return J?J.endTime:NaN}; g.T.MN=function(){return this.segments[0].startTime}; g.T.K1=function(){return this.segments.length}; g.T.TM=function(){return 0}; g.T.qn=function(J){return(J=this.Dk(J))?J.SQ:-1}; g.T.kX=function(J){return(J=this.Lh(J))?J.sourceURL:""}; g.T.getStartTime=function(J){return(J=this.Lh(J))?J.startTime:0}; g.T.eb=function(J){return this.getStartTime(J)+this.getDuration(J)}; g.T.KO=oQ(1);g.T.isLoaded=function(){return this.segments.length>0}; g.T.Lh=function(J){if(this.K&&this.K.SQ===J)return this.K;J=g.N_(this.segments,new PV(J,0,0,0,""),function(R,N){return R.SQ-N.SQ}); return this.K=J>=0?this.segments[J]:null}; g.T.Dk=function(J){if(this.K&&this.K.startTime<=J&&J=0?this.segments[J]:this.segments[Math.max(0,-J-2)]}; g.T.append=function(J){if(J.length)if(J=g.t_(J),this.segments.length){var R=this.segments.length?g.Pl(this.segments).endTime:0,N=J[0].SQ-this.yR();N>1&&DKE(this.segments);for(N=N>0?0:-N+1;NJ.SQ&&this.index.H4()<=J.SQ+1}; g.T.update=function(J,R,N){this.index.append(J);q_E(this.index,N);J=this.index;J.J=R;J.V="update"}; g.T.M7=function(){return this.hh()?!0:gG.prototype.M7.call(this)}; g.T.Rd=function(J,R){var N=this.index.kX(J),C=this.index.getStartTime(J),X=this.index.getDuration(J),u;R?X=u=0:u=this.info.fC>0?this.info.fC*X:1E3;return new bG([new zt(3,this,void 0,"liveCreateRequestInfoForSegment",J,C,X,0,u,!R)],N)}; g.T.p4=function(){return this.hh()?0:this.initRange.length}; g.T.lq=function(){return!1};C0.prototype.update=function(J){var R=void 0;this.J&&(R=this.J);var N=new C0,C=Array.from(J.getElementsByTagName("S"));if(C.length){var X=+R9(J,"timescale")||1,u=(+C[0].getAttribute("t")||0)/X,f=+R9(J,"startNumber")||0;N.Z=u;var H=R?R.startSecs+R.Ly:0,k=Date.parse(DE8(R9(J,"yt:segmentIngestTime")))/1E3;N.U=J.parentElement.tagName==="SegmentTemplate";N.U&&(N.D=R9(J,"media"));J=R?f-R.SQ:1;N.S=J>0?0:-J+1;J=g.K(C);for(C=J.next();!C.done;C=J.next()){C=C.value;for(var v=+C.getAttribute("d")/X,W=(+C.getAttribute("yt:sid")|| 0)/X,S=+C.getAttribute("r")||0,L=0;L<=S;L++)if(R&&f<=R.SQ)f++;else{var I=new QWg(f,H,v,k+W,u);N.K.push(I);var F=C;var a=X,n=I.startSecs;I=F.getAttribute("yt:cuepointTimeOffset");var B=F.getAttribute("yt:cuepointDuration");if(I&&B){I=Number(I);n=-I/a+n;a=Number(B)/a;B=F.getAttribute("yt:cuepointContext")||null;var Z=F.getAttribute("yt:cuepointIdentifier")||"";F=F.getAttribute("yt:cuepointEvent")||"";F=new xK(n,a,B,Z,zLl[F]||"unknown",I)}else F=null;F&&N.V.push(F);f++;H+=v;u+=v;k+=v+W}}N.K.length&& (N.J=g.Pl(N.K))}this.S=N.S;this.J=N.J||this.J;g.xd(this.K,N.K);g.xd(this.V,N.V);this.U=N.U;this.D=N.D;this.Z===-1&&(this.Z=N.getStreamTimeOffset())}; C0.prototype.getStreamTimeOffset=function(){return this.Z===-1?0:this.Z};g.M(iB,g.zj);g.T=iB.prototype;g.T.h9=function(){return this.j8}; g.T.s2=function(J,R){J=uB(this,J);return J>=0&&(R||!this.segments[J].pending)}; g.T.H4=function(){return this.AD?this.segments.length?this.Dk(this.MN()).SQ:-1:g.zj.prototype.H4.call(this)}; g.T.MN=function(){if(this.SD)return 0;if(!this.AD)return g.zj.prototype.MN.call(this);if(!this.segments.length)return 0;var J=Math.max(g.Pl(this.segments).endTime-this.YD,0);return this.Up>0&&this.Dk(J).SQ0)return this.LX/1E3;if(!this.segments.length)return g.zj.prototype.Yj.call(this);var J=this.yR();if(!this.AD||J<=this.segments[this.segments.length-1].SQ)J=this.segments[this.segments.length-1];else{var R=this.segments[this.segments.length-1];J=new PV(J,Math.max(0,R.startTime-(R.SQ-J)*this.j8),this.j8,0,"sq/"+J,void 0,void 0,!0)}return this.SD?Math.min(this.YD,J.endTime):J.endTime}; g.T.K1=function(){return this.AD?this.segments.length?this.yR()-this.H4()+1:0:g.zj.prototype.K1.call(this)}; g.T.yR=function(){var J=Math.min(this.Q7,Math.max(g.zj.prototype.yR.call(this),this.ib)),R=this.YD*1E3;R=this.LX>0&&this.LX0&&this.ib>0&&!R&&(R=this.Dk(this.YD))&&(J=Math.min(R.SQ-1,J));return J}; g.T.QA=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.T.q$=function(J){var R=uB(this,J.SQ);if(R>=0)this.segments[R]=J;else if(this.segments.splice(-(R+1),0,J),this.f1&&J.SQ%(300/this.j8)===0){var N=this.segments[0].SQ,C=Math.floor(this.f1/this.j8);J=J.SQ-C;R=-(R+1)-C;R>0&&J>N&&(this.segments=this.segments.slice(R))}}; g.T.bW=function(){return this.ib}; g.T.nZ=function(J){return XQ?!this.J&&J>=0&&this.yR()<=J:g.zj.prototype.nZ.call(this,J)}; g.T.Dk=function(J){if(!this.AD)return g.zj.prototype.Dk.call(this,J);if(!this.segments.length)return null;var R=this.segments[this.segments.length-1];if(J=R.endTime)R=R.SQ+Math.floor((J-R.endTime)/this.j8+1);else{R=CE(this.segments,function(C){return J=C.endTime?1:0}); if(R>=0)return this.segments[R];var N=-(R+1);R=this.segments[N-1];N=this.segments[N];R=Math.floor((J-R.endTime)/((N.startTime-R.endTime)/(N.SQ-R.SQ-1))+1)+R.SQ}return this.Lh(R)}; g.T.Lh=function(J){if(!this.AD)return g.zj.prototype.Lh.call(this,J);if(!this.segments.length)return null;var R=uB(this,J);if(R>=0)return this.segments[R];var N=-(R+1);R=this.j8;if(N===0)var C=Math.max(0,this.segments[0].startTime-(this.segments[0].SQ-J)*R);else N===this.segments.length?(C=this.segments[this.segments.length-1],C=C.endTime+(J-C.SQ-1)*R):(C=this.segments[N-1],R=this.segments[N],R=(R.startTime-C.endTime)/(R.SQ-C.SQ-1),C=C.endTime+(J-C.SQ-1)*R);return new PV(J,C,R,0,"sq/"+J,void 0,void 0, !0)}; var XQ=!1;g.M(f0,o9);g.T=f0.prototype;g.T.SM=function(){return!0}; g.T.M7=function(){return!0}; g.T.K2=function(J){return this.jx()&&J.V&&!J.Z||!J.K.index.nZ(J.SQ)}; g.T.AF=function(){}; g.T.Hi=function(J,R){return typeof J!=="number"||isFinite(J)?o9.prototype.Hi.call(this,J,R===void 0?!1:R):new bG([new zt(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.FB,void 0,this.FB*this.info.fC)],"")}; g.T.Rd=function(J,R){var N=N===void 0?!1:N;if(this.index.s2(J))return o9.prototype.Rd.call(this,J,R);var C=this.index.getStartTime(J),X=Math.round(this.FB*this.info.fC),u=this.FB;R&&(u=X=0);return new bG([new zt(N?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",J,C,u,void 0,X,!R)],J>=0?"sq/"+J:"")};g.M(T2,gG);g.T=T2.prototype;g.T.yW=function(){return!1}; g.T.jx=function(){return!1}; g.T.SM=function(){return!1}; g.T.AF=function(){return new bG([new zt(1,this,void 0,"otfInit")],this.U)}; g.T.zK=function(){return null}; g.T.vR=function(J){this.K2(J);return Y4Q(this,hx(J),!1)}; g.T.Hi=function(J,R){R=R===void 0?!1:R;J=this.index.qn(J);R&&(J=Math.min(this.index.yR(),J+1));return Y4Q(this,J,!0)}; g.T.KU=function(J){J.info.type===1&&(this.K||(this.K=GV(J.K)),J.J&&J.J.uri==="http://youtube.com/streaming/otf/durations/112015"&&rYY(this,J.J))}; g.T.K2=function(J){return J.V===0?!0:this.index.yR()>J.SQ&&this.index.H4()<=J.SQ+1}; g.T.p4=function(){return 0}; g.T.lq=function(){return!1};$r.prototype.qP=function(){return this.K.qP()};g.T=g.L0.prototype;g.T.s2=function(J){return J<=this.yR()}; g.T.TM=function(J){return this.offsets[J]}; g.T.getStartTime=function(J){return this.gw[J]/this.K}; g.T.eb=function(J){return this.getStartTime(J)+this.getDuration(J)}; g.T.KO=oQ(0);g.T.Il=function(){return NaN}; g.T.getDuration=function(J){J=this.TH(J);return J>=0?J/this.K:-1}; g.T.TH=function(J){return J+1=0}; g.T.Yj=function(){return this.J?this.gw[this.count]/this.K:NaN}; g.T.MN=function(){return 0}; g.T.K1=function(){return this.count}; g.T.kX=function(){return""}; g.T.qn=function(J){J=g.N_(this.gw.subarray(0,this.count),J*this.K);return J>=0?J:Math.max(0,-J-2)}; g.T.isLoaded=function(){return this.yR()>=0}; g.T.Nb=function(J,R){if(J>=this.yR())return 0;var N=0;for(R=this.getStartTime(J)+R;Jthis.getStartTime(J);J++)N=Math.max(N,PJg(this,J)/this.getDuration(J));return N}; g.T.resize=function(J){J+=2;var R=this.offsets;this.offsets=new Float64Array(J+1);var N=this.gw;this.gw=new Float64Array(J+1);for(J=0;J0&&J&&(N=N.range.end+1,J=Math.min(J,this.info.contentLength-N),J>0&&C.push(new zt(4,this,lG(N,J),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,R)));return new bG(C)}; g.T.KU=function(J){if(J.info.type===1){if(this.K)return;this.K=GV(J.K)}else if(J.info.type===2){if(this.U||this.index.yR()>=0)return;if(g.kY(this.info)){var R=this.index,N=J.qP();J=J.info.range.start;var C=g.Cq(N,0,1936286840);N=z12(C);R.K=N.y6;var X=N.y3;R.offsets[0]=N.iE+J+C.size;R.gw[0]=X;R.J=!0;J=N.KA.length;for(C=0;C0&&J===u[0].ER)for(J=0;J=R+N)break}X.length||g.yD(new g.C3("b189619593",""+J,""+R,""+N));return new bG(X)}; g.T.KM=function(J){for(var R=this.a4(J.info),N=J.info.range.start+J.info.J,C=[],X=0;X=this.index.TM(N+1);)N++;return this.xx(N,R,J.V).aB}; g.T.K2=function(J){J.Nn();return this.M7()?!0:J.range.end+1this.info.contentLength&&(R=new Uz(R.start,this.info.contentLength-1)),new bG([new zt(4,J.K,R,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,J.clipId)]);J.type===4&&(J=this.a4(J),J=J[J.length-1]);var N=0,C=J.range.start+J.J+J.V;J.type===3&&(J.Nn(),N=J.SQ,C===J.range.end+1&&(N+=1));return this.xx(N,C,R)}; g.T.vR=function(){return null}; g.T.Hi=function(J,R,N){R=R===void 0?!1:R;J=this.index.qn(J);R&&(J=Math.min(this.index.yR(),J+1));return this.xx(J,this.index.TM(J),0,N)}; g.T.yW=function(){return!0}; g.T.jx=function(){return!0}; g.T.SM=function(){return!1}; g.T.p4=function(){return this.indexRange.length+this.initRange.length}; g.T.lq=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var sC={},ieP=(sC.COLOR_PRIMARIES_BT709="bt709",sC.COLOR_PRIMARIES_BT2020="bt2020",sC.COLOR_PRIMARIES_UNKNOWN=null,sC.COLOR_PRIMARIES_UNSPECIFIED=null,sC),Bj={},e92=(Bj.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Bj.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Bj.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Bj.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Bj.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Bj.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Bj);g.EV.prototype.getName=function(){return this.name}; g.EV.prototype.getId=function(){return this.id}; g.EV.prototype.getIsDefault=function(){return this.isDefault}; g.EV.prototype.toString=function(){return this.name}; g.EV.prototype.getName=g.EV.prototype.getName;g.EV.prototype.getId=g.EV.prototype.getId;g.EV.prototype.getIsDefault=g.EV.prototype.getIsDefault;var yY7=/action_display_post/;var Gig,a9,QO;g.M(n0,g.al);g.T=n0.prototype;g.T.isLoading=function(){return this.state===1}; g.T.NV=function(){return this.state===3}; g.T.Nka=function(J){var R=J.getElementsByTagName("Representation");if(J.getElementsByTagName("SegmentList").length>0||J.getElementsByTagName("SegmentTemplate").length>0){this.MR=this.J=!0;this.timeline||(this.timeline=new BeB);q4Y(this.timeline,J);this.publish("refresh");for(J=0;J=0?W=pq(L):S=S+"?range="+L}k.call(H,new PV(v.SQ,v.startSecs,v.Ly,v.K,S,W,v.J))}C=X}N.update(C,this.isLive,this.HC)}AY8(this.timeline);return!0}this.duration=nPn(R9(J,"mediaPresentationDuration")); a:{for(J=0;J0))return this.AY()-J}}J=this.K;for(var R in J){var N=J[R].index;if(N.isLoaded()&&!I6(J[R].info.mimeType))return N.MN()}return 0}; g.T.getStreamTimeOffset=function(){return this.D}; g.T.Il=function(J){for(var R in this.K){var N=this.K[R].index;if(N.isLoaded()){var C=N.qn(J),X=N.Il(C);if(X)return X+J-N.getStartTime(C)}}return NaN}; var g8=null,eLV,UV=!((eLV=navigator.mediaCapabilities)==null||!eLV.decodingInfo),k0E={commentary:1,alternate:2,dub:3,main:4};var u9=new Set,p0=new Map;z2.prototype.clone=function(J){return new z2(this.flavor,J,this.J,this.experiments)}; z2.prototype.fP=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; z2.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 whE={},J6=(whE.playready=["com.youtube.playready","com.microsoft.playready"],whE.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],whE),OC={},bSB=(OC.widevine="DRM_SYSTEM_WIDEVINE",OC.fairplay="DRM_SYSTEM_FAIRPLAY",OC.playready="DRM_SYSTEM_PLAYREADY",OC),Zl={},cQV=(Zl.widevine=1,Zl.fairplay=2,Zl.playready=3,Zl);RF.prototype.py=function(J,R){R=R===void 0?1:R;this.Tk+=R;this.J+=J;J/=R;for(var N=0;N0)C+="."+oF[X].toFixed(0)+"_"+N.K[X].toFixed(0);else break;N=C}N&&(J[R]=N)}this.K=new b_Q;return J}; g.T.toString=function(){return""};g.T=Ae2.prototype;g.T.isActive=function(){return!1}; g.T.TO=function(){}; g.T.C1=function(){}; g.T.Nd=function(J,R){return R}; g.T.qa=function(){}; g.T.yb=function(){}; g.T.aF=function(J,R){return R()}; g.T.UX=function(){return{}}; g.T.toString=function(){return""};var dC,hLl,yQL,Gdl,bll,tta,qv,MT,pJ,IvB,ua;dC=new Ae2;hLl=!!+uL("html5_enable_profiler");yQL=!!+uL("html5_onesie_enable_profiler");Gdl=!!+uL("html5_offline_encryption_enable_profiler");bll=!!+uL("html5_performance_impact_profiling_timer_ms");tta=!!+uL("html5_drm_enable_profiler");qv=hLl||yQL||Gdl||bll||tta?new OD8:dC;g.av=hLl?qv:dC;MT=yQL?qv:dC;pJ=Gdl?qv:dC;IvB=bll?qv:dC;ua=tta?qv:dC;var ia;g.M(Cs,g.l); Cs.prototype.initialize=function(J,R){for(var N=this,C=g.K(Object.keys(J)),X=C.next();!X.done;X=C.next()){X=g.K(J[X.value]);for(var u=X.next();!u.done;u=X.next())if(u=u.value,u.xi)for(var f=g.K(Object.keys(u.xi)),H=f.next();!H.done;H=f.next()){var k=H.value;H=k;k=J6[k];!k&&this.T("html5_enable_vp9_fairplay")&&H==="fairplay"&&(k=["com.youtube.fairplay.sbdl"]);if(k){k=g.K(k);for(var v=k.next();!v.done;v=k.next())v=v.value,this.V[v]=this.V[v]||new z2(H,v,u.xi[H],this.OB.experiments),this.K[H]=this.K[H]|| {},this.K[H][u.mimeType]=!0}}}NY()&&(this.V["com.youtube.fairplay"]=new z2("fairplay","com.youtube.fairplay","",this.OB.experiments),this.T("html5_enable_vp9_fairplay")||(this.K.fairplay=this.K.fairplay||{},this.K.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.K.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.J=GG8(R,this.useCobaltWidevine,this.T("html5_enable_safari_fairplay"),this.T("html5_enable_vp9_fairplay")).filter(function(W){return!!N.V[W]})}; Cs.prototype.T=function(J){return this.OB.experiments.b3(J)};var HM2={"":"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"};Ufg.prototype.T=function(J){return this.experiments.b3(J)};var IUf={RED:"red",gZn:"white"};pzB.prototype.b3=function(J){J=this.flags[J];JSON.stringify(J);return J==="true"};var z$B=Promise.resolve(),h$B=window.queueMicrotask?window.queueMicrotask.bind(window):e$8;HH.prototype.canPlayType=function(J,R){J=J.canPlayType?J.canPlayType(R):!1;C9?J=J||x99[R]:la===2.2?J=J||J0U[R]:oc()&&(J=J||oGa[R]);return!!J}; HH.prototype.isTypeSupported=function(J){return this.nC?window.cast.receiver.platform.canDisplayType(J):yC(J)}; var J0U={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},oGa={"application/x-mpegURL":"maybe"},x99={"application/x-mpegURL":"maybe"};g.M(Ls,g.al);Ls.prototype.add=function(J,R){if(!this.items[J]&&(R.XQ||R.nH||R.gB)){var N=this.items,C=R;Object.isFrozen&&!Object.isFrozen(R)&&(C=Object.create(R),Object.freeze(C));N[J]=C;this.publish("vast_info_card_add",J)}}; Ls.prototype.remove=function(J){var R=this.get(J);delete this.items[J];return R}; Ls.prototype.get=function(J){return this.items[J]||null}; Ls.prototype.isEmpty=function(){return g.rq(this.items)};g.M(IF,g.Ub);IF.prototype.K=function(J,R){return g.Ub.prototype.K.call(this,J,R)}; IF.prototype.J=function(J,R,N){var C=this;return g.Y(function(X){return X.K==1?g.q(X,g.Ub.prototype.J.call(C,J,R,N),2):X.return(X.J)})}; g.M(FO,g.pX);FO.prototype.encrypt=function(J,R){return g.pX.prototype.encrypt.call(this,J,R)};var Mw;Ks.prototype.add=function(J){if(this.pos+20>this.data.length){var R=new Uint8Array(this.data.length*2);R.set(this.data);this.data=R}for(;J>31;)this.data[this.pos++]=Mw[(J&31)+32],J>>=5;this.data[this.pos++]=Mw[J|0]}; Ks.prototype.SV=function(){return g.ow(this.data.subarray(0,this.pos))}; Ks.prototype.reset=function(){this.pos=0};aF.prototype.x5=function(J,R){var N=Math.pow(this.alpha,J);this.K=R*(1-N)+N*this.K;this.J+=J}; aF.prototype.Gj=function(){return this.K/(1-Math.pow(this.alpha,this.J))};Q_.prototype.x5=function(J,R){J=Math.min(this.K,Math.max(1,Math.round(J*this.resolution)));J+this.J>=this.K&&(this.V=!0);for(;J--;)this.values[this.J]=R,this.J=(this.J+1)%this.K;this.GM=!0}; Q_.prototype.percentile=function(J){var R=this;if(!this.V&&this.J===0)return 0;this.GM&&(g.ik(this.U,function(N,C){return R.values[N]-R.values[C]}),this.GM=!1); return this.values[this.U[Math.round(J*((this.V?this.K:this.J)-1))]]||0}; Q_.prototype.Gj=function(){return this.S?(this.percentile(this.Z-this.S)+this.percentile(this.Z)+this.percentile(this.Z+this.S))/3:this.percentile(this.Z)};g.M(ns,g.l);ns.prototype.pC=function(){var J;(J=this.T7)==null||J.start();if(A6(this)&&this.policy.X){var R;(R=this.wk)==null||R.YG()}};fUE.prototype.T=function(J){return this.experiments.b3(J)};g.M($ME,g.l);var L0k="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),aUg={nea:"caoe",dna:"capsv",Unk:"cbrand",QuO:"cbr",GD7:"cbrver",rSk:"cchip",bxa:"ccappver",zzN:"ccrv",LtB:"cfrmver",tR7:"c",ZTQ:"cver",IYN:"ctheme",VRO:"cplayer",VSk:"cmodel",MSf:"cnetwork",DVp:"cos",ykn:"cosver",ah8:"cplatform",trB:"crqyear"};g.M(t6,g.l);g.T=t6.prototype;g.T.T=function(J){return this.experiments.b3(J)}; g.T.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.T.getVideoUrl=function(J,R,N,C,X,u,f){R={list:R};N&&(X?R.time_continue=N:R.t=N);N=f?"music.youtube.com":g.Jz(this);X=N==="www.youtube.com";!u&&C&&X?u="https://youtu.be/"+J:g.eh(this)?(u="https://"+N+"/fire",R.v=J):(u&&X?(u=this.protocol+"://"+N+"/shorts/"+J,C&&(R.feature="share")):(u=this.protocol+"://"+N+"/watch",R.v=J),C9&&(J=k4E())&&(R.ebc=J));return g.bD(u,R)}; g.T.getVideoEmbedCode=function(J,R,N,C){R="https://"+g.Jz(this)+"/embed/"+R;C&&(R=g.bD(R,{list:C}));C=N.width;N=N.height;R=XK(R);J=XK(J!=null?J:"YouTube video player");return'')}; g.T.supportsGaplessAudio=function(){return g.hY&&!C9&&xq()>=74||g.tI&&g.kN(68)?!0:!1}; g.T.supportsGaplessShorts=function(){return!this.T("html5_enable_short_gapless")||this.pC||g.d9?!1:!0}; g.T.getPlayerType=function(){return this.K.cplayer}; g.T.Si=function(){return this.NE}; g.T.Tx=function(){this.T("html5_enable_lawnmower_messaging")}; var sLE=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],K0Y=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],nQf=[19];var A8={},ZcY=(A8["140"]={numChannels:2},A8["141"]={numChannels:2},A8["251"]={audioSampleRate:48E3,numChannels:2},A8["774"]={audioSampleRate:48E3,numChannels:2},A8["380"]={numChannels:6},A8["328"]={numChannels:6},A8),Y_={},BUY=(Y_["1"]='video/mp4; codecs="av01.0.08M.08"',Y_["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',Y_["9"]='video/webm; codecs="vp9"',Y_["("]='video/webm; codecs="vp9"',Y_["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',Y_.h='video/mp4; codecs="avc1.64001e"', Y_.H='video/mp4; codecs="avc1.64001e"',Y_.o='audio/webm; codecs="opus"',Y_.a='audio/mp4; codecs="mp4a.40.2"',Y_.ah='audio/mp4; codecs="mp4a.40.2"',Y_.mac3='audio/mp4; codecs="ac-3"; channels=6',Y_.meac3='audio/mp4; codecs="ec-3"; channels=6',Y_),rC={},OcE=(rC["337"]={width:3840,height:2160,bitrate:3E7,fps:30},rC["336"]={width:2560,height:1440,bitrate:15E6,fps:30},rC["335"]={width:1920,height:1080,bitrate:75E5,fps:30},rC["702"]={width:7680,height:4320,bitrate:4E7,fps:60},rC["701"]={width:3840,height:2160, bitrate:2E7,fps:60},rC["700"]={width:2560,height:1440,bitrate:1E7,fps:60},rC["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},rC["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},rC["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},rC["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},rC["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"}, rC["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},rC["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},rC["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},rC["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},rC["315"]={width:3840,height:2160,bitrate:2E7,fps:60},rC["308"]={width:2560,height:1440,bitrate:1E7,fps:60},rC["303"]={width:1920,height:1080,bitrate:5E6,fps:60}, rC["302"]={width:1280,height:720,bitrate:25E5,fps:60},rC["299"]={width:1920,height:1080,bitrate:75E5,fps:60},rC["298"]={width:1280,height:720,bitrate:35E5,fps:60},rC["571"]={width:7680,height:4320,bitrate:3E7,fps:60},rC["401"]={width:3840,height:2160,bitrate:15E6,fps:60},rC["400"]={width:2560,height:1440,bitrate:75E5,fps:60},rC["399"]={width:1920,height:1080,bitrate:2E6,fps:60},rC["398"]={width:1280,height:720,bitrate:1E6,fps:60},rC["397"]={width:854,height:480,bitrate:4E5,fps:30},rC["396"]={width:640, height:360,bitrate:25E4,fps:30},rC["787"]={width:1080,height:608,bitrate:2E5,fps:30},rC["788"]={width:1080,height:608,bitrate:4E5,fps:30},rC["313"]={width:3840,height:2160,bitrate:8E6,fps:30},rC["271"]={width:2560,height:1440,bitrate:4E6,fps:30},rC["248"]={width:1920,height:1080,bitrate:2E6,fps:30},rC["247"]={width:1280,height:720,bitrate:15E5,fps:30},rC["244"]={width:854,height:480,bitrate:52E4,fps:30},rC["243"]={width:640,height:360,bitrate:28E4,fps:30},rC["137"]={width:1920,height:1080,bitrate:4E6, fps:30},rC["136"]={width:1280,height:720,bitrate:3E6,fps:30},rC["135"]={width:854,height:480,bitrate:1E6,fps:30},rC["385"]={width:1920,height:1080,bitrate:6503313,fps:60},rC["376"]={width:1280,height:720,bitrate:5706960,fps:60},rC["384"]={width:1280,height:720,bitrate:3660979,fps:60},rC["225"]={width:1280,height:720,bitrate:5805E3,fps:30},rC["224"]={width:1280,height:720,bitrate:453E4,fps:30},rC["145"]={width:1280,height:720,bitrate:2682052,fps:30},rC);g.T=LW.prototype;g.T.getInfo=function(){return this.K}; g.T.FU=function(){return null}; g.T.Mb=function(){var J=this.FU();return J?(J=g.L4(J.resource),Number(J.expire)):NaN}; g.T.Zn=function(){}; g.T.getHeight=function(){return this.K.video.height};YDg.prototype.build=function(){mMk(this);var J=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],R={};a:if(this.K)var N=this.K;else{N="";for(var C=g.K(this.V),X=C.next();!X.done;X=C.next())if(X=X.value,X.Do){if(X.Do.getIsDefault()){N=X.Do.getId();break a}N||(N=X.Do.getId())}}C=g.K(this.V);for(X=C.next();!X.done;X=C.next())if(X=X.value,this.S||!X.Do||X.Do.getId()===N)R[X.itag]||(R[X.itag]=[]),R[X.itag].push(X);N=g.K(this.J);for(C=N.next();!C.done;C=N.next())if(C=C.value,X=R[C.K]){X=g.K(X);for(var u=X.next();!u.done;u= X.next()){var f=J,H=f.push;u=u.value;var k="#EXT-X-MEDIA:TYPE=AUDIO,",v="YES",W="audio";if(u.Do){W=u.Do;var S=W.getId().split(".")[0];S&&(k+='LANGUAGE="'+S+'",');(this.K?this.K===W.getId():W.getIsDefault())||(v="NO");W=W.getName()}S="";C!==null&&(S=C.itag.toString());S=Fk(this,u.url,S);k=k+('NAME="'+W+'",DEFAULT='+(v+',AUTOSELECT=YES,GROUP-ID="'))+(jLE(u,C)+'",URI="'+(S+'"'));H.call(f,k)}}N=g.K(this.U);for(C=N.next();!C.done;C=N.next())C=C.value,X=RCE,C=(f=C.Do)?'#EXT-X-MEDIA:URI="'+Fk(this,C.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+X+'",LANGUAGE="'+f.getId()+'",NAME="'+f.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,C&&J.push(C);N=this.U.length>0?RCE:void 0;C=g.K(this.J);for(X=C.next();!X.done;X=C.next())X=X.value,H=R[X.K],f=void 0,((f=H)==null?void 0:f.length)>0&&(f=X,H=H[0],H="#EXT-X-STREAM-INF:BANDWIDTH="+(f.bitrate+H.bitrate)+',CODECS="'+(f.codecs+","+H.codecs+'",RESOLUTION=')+(f.width+"x"+f.height+',AUDIO="')+(jLE(H,f)+'",')+(N?'SUBTITLES="'+N+'",':"")+"CLOSED-CAPTIONS=NONE",f.fps>1&&(H+= ",FRAME-RATE="+f.fps),f.Y$&&(H+=",VIDEO-RANGE="+f.Y$),J.push(H),J.push(Fk(this,X.url,"")));return J.join("\n")}; var RCE="text";g.M(EA,LW);EA.prototype.Mb=function(){return this.expiration}; EA.prototype.FU=function(){if(!this.resource||this.resource.QO()){var J=this.J.build();J="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(J);this.resource=new Ay(J)}return this.resource};g.M(ML,LW);ML.prototype.FU=function(){return new Ay(this.J.Yi())}; ML.prototype.Zn=function(){this.J=pP(this.J)};g.M(KW,LW);KW.prototype.FU=function(){return new Ay(this.J)};var jK={},ca2=(jK.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",jK.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",jK.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",jK);g.T=g.ad.prototype;g.T.getId=function(){return this.id}; g.T.getName=function(){return this.name}; g.T.isServable=function(){return this.K}; g.T.Yi=function(){return this.url}; g.T.getXtags=function(){return this.xtags}; g.T.toString=function(){return this.languageCode+": "+g.Qz(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.T.Da=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var tNE={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},xMn={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},JSY=/^(\d*)_((\d*)_?(\d*))$/;var Rrk={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},NSg={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var m1={},lPQ=(m1.ALWAYS=1,m1.BY_REQUEST=3,m1.UNKNOWN=void 0,m1),Vo={},hrE=(Vo.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",Vo.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",Vo.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",Vo.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",Vo);var b9E; b9E=function(J){for(var R=Object.keys(J),N={},C=0;CC-R?-1:J}; g.T.Xq=function(){return this.J.yR()}; g.T.Jy=function(){return this.J.H4()}; g.T.RP=function(J){this.J=J};g.M(bv,yz);bv.prototype.J=function(J,R){return yz.prototype.J.call(this,"$N|"+J,R)}; bv.prototype.U=function(J,R,N){return new G1(J,R,N,this.isLive)};var JOf=[],xN2=new Set;g.M(g.xC,g.al);g.T=g.xC.prototype;g.T.N=function(){return this.OB}; g.T.T=function(J){return this.OB.T(J)}; g.T.xB=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.T.hasSupportedAudio51Tracks=function(){var J;return!((J=this.lr)==null||!J.EB)}; g.T.getUserAudio51Preference=function(){var J=1;iv(this.OB)&&this.T("html5_ytv_surround_toggle_default_off")?J=0:g.NL(this.OB)&&this.isLivePlayback&&this.Ha()&&(J=0);var R;return(R=g.wJ("yt-player-audio51"))!=null?R:J}; g.T.TJ=function(){this.QO()||(this.K.J||this.K.unsubscribe("refresh",this.TJ,this),this.DJ(-1))}; g.T.DJ=function(J){if(!this.isLivePlayback||!this.U||this.U.flavor!=="fairplay"){var R=TmY(this.K,this.X0);if(R.length>0){for(var N=g.K(R),C=N.next();!C.done;C=N.next())C=C.value,C.startSecs=Math.max(C.startSecs,this.MN());this.publish("cuepointupdated",R,J);this.X0+=R.length;if(kz(this)&&this.OB.Si())for(R=g.K(R),N=R.next();!N.done;N=R.next())N=N.value,this.u3("cuepoint",{segNum:J,event:N.event,startSecs:N.startSecs,id:N.identifier.slice(-16)}),N.event==="start"&&(N=N.startSecs,this.PR.start=this.EL, this.PR.end=N+3)}}}; g.T.Ha=function(){return this.M5!==void 0?this.M5:this.M5=!!this.xi||!!this.K&&O6(this.K)}; g.T.YW=function(J){var R=this;if(this.QO())return zO();this.FV=this.eQ=this.V=null;TH(this,"html5_high_res_logging_always")&&(this.OB.NE=!0);return EKQ(this,J).then(void 0,function(){return MBf(R,J)}).then(void 0,function(){return KWn(R)}).then(void 0,function(){return QJf(R)})}; g.T.n5=function(){this.u3("ssap",{npa:0})}; g.T.DY=function(){if(this.cotn)return null;var J=g.PM(this.OB)||this.T("web_l3_storyboard");if(!this.mR)if(this.playerResponse&&this.playerResponse.storyboards){var R=this.playerResponse.storyboards,N=R.playerStoryboardSpecRenderer;N&&N.spec?this.mR=new yz(N.spec,this.lengthSeconds,void 0,!1,J):(R=R.playerLiveStoryboardSpecRenderer)&&R.spec&&this.K&&(N=D9f(this.K.K).index)&&(this.mR=new bv(R.spec,this.K.isLive,N,J))}else this.l0?this.mR=new yz(this.l0,this.lengthSeconds,void 0,!1,J):this.wJ&&this.K&& (R=D9f(this.K.K).index)&&(this.mR=new bv(this.wJ,this.K.isLive,R,J));return this.mR}; g.T.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var J=this.playerResponse.storyboards;return(J=J.playerStoryboardSpecRenderer||J.playerLiveStoryboardSpecRenderer)&&J.spec||null}return this.l0||this.wJ}; g.T.AY=function(){return this.K&&!isNaN(this.K.AY())?this.K.AY():kz(this)?0:this.lengthSeconds}; g.T.MN=function(){return this.K&&!isNaN(this.K.MN())?this.K.MN():0}; g.T.getPlaylistSequenceForTime=function(J){if(this.K&&this.J){var R=this.K.K[this.J.id];if(!R)return null;var N=R.index.qn(J);R=R.index.getStartTime(N);return{sequence:N,elapsed:Math.floor((J-R)*1E3)}}return null}; g.T.Da=function(){return!this.QO()&&!(!this.videoId&&!this.F$)}; g.T.hF=function(){var J,R,N;return!!this.adaptiveFormats||!!((J=this.playerResponse)==null?0:(R=J.streamingData)==null?0:(N=R.adaptiveFormats)==null?0:N.length)}; g.T.isLoaded=function(){return Jq(this)&&!this.LJ&&!this.NI}; g.T.PV=function(J){J||(J="hqdefault.jpg");var R=this.X[J];return R||this.OB.dn||J==="pop1.jpg"||J==="pop2.jpg"||J==="sddefault.jpg"||J==="hq720.jpg"||J==="maxresdefault.jpg"?R:od(this.OB,this.videoId,J)}; g.T.MR=function(){return this.isLivePlayback||this.SD||this.PC||!(!this.liveUtcStartSeconds||!this.IE)}; g.T.isOtf=function(){return!!this.K&&(this.K.isOtf||!this.SD&&!this.isLivePlayback&&this.K.J)}; g.T.getAvailableAudioTracks=function(){return this.V?this.V.getAvailableAudioTracks().length>0?this.V.getAvailableAudioTracks():this.Wu||[]:[]}; g.T.getAudioTrack=function(){var J=this;if(this.Z&&!vS(this.Z))return g.eE(this.getAvailableAudioTracks(),function(C){return C.id===J.Z.id})||this.qV; if(this.Wu){if(!this.X7)for(var R=g.K(this.Wu),N=R.next();!N.done;N=R.next())if(N=N.value,N.Do.getIsDefault()){this.X7=N;break}return this.X7||this.qV}return this.qV}; g.T.getPlayerResponse=function(){return this.playerResponse}; g.T.getWatchNextResponse=function(){return this.T7}; g.T.getHeartbeatResponse=function(){return this.Pb}; g.T.Dh=function(){return this.watchUrl?this.watchUrl:this.OB.getVideoUrl(this.videoId)}; g.T.hc=function(){return!!this.K&&(xEf(this.K)||JyP(this.K)||oYg(this.K))}; g.T.getEmbeddedPlayerResponse=function(){return this.Lx}; g.T.He=function(){return(this.eventLabel||this.OB.PC)==="shortspage"}; g.T.isAd=function(){return this.e6||!!this.adFormat}; g.T.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.T.ZD=function(){var J,R,N;return this.isDaiEnabled()&&!!((J=this.playerResponse)==null?0:(R=J.playerConfig)==null?0:(N=R.daiConfig)==null?0:N.ssaEnabledPlayback)}; g.T.l8=function(){return Pn7(this)?this.Bv:this.s$||this.wV}; g.T.kQ=function(){return this.Jn||this.wV}; g.T.Pl=function(){return TH(this,"html5_samsung_vp9_live")}; g.T.useInnertubeDrmService=function(){return!0}; g.T.u3=function(J,R,N){this.publish("ctmp",J,R,N)}; g.T.yE=function(J,R,N){this.publish("ctmpstr",J,R,N)}; g.T.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.T.getGetAdBreakContext=function(J,R){J=J===void 0?NaN:J;R=R===void 0?NaN:R;var N={isSabr:iY(this)},C,X=(C=this.getHeartbeatResponse())==null?void 0:C.adBreakHeartbeatParams;X&&(N.adBreakHeartbeatParams=X);if(this.T("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.K&&!isNaN(J)&&!isNaN(R)){R=J-R;for(var u in this.K.K)if(C=this.K.K[u],C.info.Ky()||C.info.B7())if(C=C.index,C.isLoaded()){u=C.qn(R);C=C.Il(u)+R-C.getStartTime(u);this.u3("gabc",{t:J.toFixed(3),mt:R.toFixed(3),sg:u,igt:C.toFixed(3)}); N.livePlaybackPosition={utcTimeMillis:""+(C*1E3).toFixed(0)};break}}return N}; g.T.Yv=function(J,R){if(!g.V_(this.OB))return!1;var N;if(((N=this.OB.getWebPlayerContextConfig())==null?0:N.embedsEnableEmc3ds)||(this.OB.VO||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||R)return!1;var C,X;return!!(((C=this.embeddedPlayerConfig)==null?0:(X=C.embeddedPlayerFlags)==null?0:X.isShortsExperienceEligible)&&J.width<=J.height)}; g.T.Fk=function(){g.al.prototype.Fk.call(this);this.A_=null;delete this.PT;delete this.accountLinkingConfig;delete this.K;this.V=this.Pb=this.playerResponse=this.T7=null;this.OQ=this.adaptiveFormats="";delete this.botguardData;this.Xk=this.suggestions=this.xJ=null};var usB={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},fCf={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},iq2={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},NGf={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"},XnQ={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},CGE={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"};g.M(GH,g.l);g.T=GH.prototype;g.T.handleExternalCall=function(J,R,N){var C=this.state.D[J],X=this.state.X[J],u=C;if(X)if(N&&SJ(N,MtL))u=X;else if(!C)throw Error('API call from an untrusted origin: "'+N+'"');this.logApiCall(J,N);if(u){N=!1;C=g.K(R);for(X=C.next();!X.done;X=C.next())if(String(X.value).includes("javascript:")){N=!0;break}N&&g.G$(Error('Dangerous call to "'+J+'" with ['+R+"]."));return u.apply(this,R)}throw Error('Unknown API method: "'+J+'".');}; g.T.logApiCall=function(J,R,N){var C=this.app.N();C.bT&&!this.state.W.has(J)&&(this.state.W.add(J),g.Mz("webPlayerApiCalled",{callerUrl:C.loaderUrl,methodName:J,origin:R||void 0,playerStyle:C.playerStyle||void 0,embeddedPlayerMode:C.VO,errorCode:N}))}; g.T.publish=function(J){var R=g.sf.apply(1,arguments);this.state.V.publish.apply(this.state.V,[J].concat(g.Q(R)));if(J==="videodatachange"||J==="resize"||J==="cardstatechange")this.state.J.publish.apply(this.state.J,[J].concat(g.Q(R))),this.state.Z.publish.apply(this.state.Z,[J].concat(g.Q(R)))}; g.T.z7=function(J){var R=g.sf.apply(1,arguments);this.state.V.publish.apply(this.state.V,[J].concat(g.Q(R)));this.state.J.publish.apply(this.state.J,[J].concat(g.Q(R)))}; g.T.zA=function(J){var R=g.sf.apply(1,arguments);this.state.V.publish.apply(this.state.V,[J].concat(g.Q(R)));this.state.J.publish.apply(this.state.J,[J].concat(g.Q(R)));this.state.Z.publish.apply(this.state.Z,[J].concat(g.Q(R)))}; g.T.Yh=function(J){var R=g.sf.apply(1,arguments);this.state.V.publish.apply(this.state.V,[J].concat(g.Q(R)));this.state.J.publish.apply(this.state.J,[J].concat(g.Q(R)));this.state.Z.publish.apply(this.state.Z,[J].concat(g.Q(R)));this.state.U.publish.apply(this.state.U,[J].concat(g.Q(R)))}; g.T.T=function(J){return this.app.N().T(J)}; g.T.Fk=function(){if(this.state.element){var J=this.state.element,R;for(R in this.state.K)this.state.K.hasOwnProperty(R)&&(J[R]=null);this.state.element=null}g.l.prototype.Fk.call(this)};g.M(o1,g.gE);o1.prototype.publish=function(J){var R=g.sf.apply(1,arguments);if(this.U.has(J))return this.U.get(J).push(R),!0;var N=!1;try{for(R=[R],this.U.set(J,R);R.length;)N=g.gE.prototype.publish.call.apply(g.gE.prototype.publish,[this,J].concat(g.Q(R.shift())))}finally{this.U.delete(J)}return N};g.M(WKf,g.l);WKf.prototype.Fk=function(){this.U.dispose();this.Z.dispose();this.J.dispose();this.V.dispose();this.W=this.K=this.X=this.D=this.S=void 0};var LKn=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.M(N$,GH);g.T=N$.prototype;g.T.getApiInterface=function(){return Array.from(this.state.S)}; g.T.l2=function(J,R){this.state.U.subscribe(J,R)}; g.T.SpO=function(J,R){this.state.U.unsubscribe(J,R)}; g.T.getPlayerState=function(J){return gTQ(this.app,J)}; g.T.ze=function(){return gTQ(this.app)}; g.T.Ehf=function(J,R,N){KK2(this)&&(Ma(this.app,!0,1),aE(this.app,J,R,N,1))}; g.T.getCurrentTime=function(J,R,N){var C=this.getPlayerState(J);if(this.app.getAppState()===2&&C===5){var X;return((X=this.app.getVideoData())==null?void 0:X.startSeconds)||0}return this.T("web_player_max_seekable_on_ended")&&C===0?rrg(this.app,J):J?this.app.getCurrentTime(J,R,N):this.app.getCurrentTime(J)}; g.T.MF=function(){return this.app.getCurrentTime(1)}; g.T.yF=function(){var J=this.app.Il(1);return isNaN(J)?this.getCurrentTime(1):J}; g.T.lE=function(){return this.app.getDuration(1)}; g.T.oN=function(J,R){J=g.I4(Math.floor(J),0,100);isFinite(J)&&kU(this.app,{volume:J,muted:this.isMuted()},R)}; g.T.qQO=function(J){this.oN(J,!1)}; g.T.Zg=function(J){kU(this.app,{muted:!0,volume:this.getVolume()},J)}; g.T.WaB=function(){this.Zg(!1)}; g.T.Vx=function(J){Xm(this.app)&&!this.T("embeds_enable_emc3ds_muted_autoplay")||kU(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},J)}; g.T.WuC=function(){Xm(this.app)&&this.T("embeds_enable_emc3ds_muted_autoplay")||this.Vx(!1)}; g.T.getPlayerMode=function(){var J={};this.app.getVideoData().wL&&(J.pfp={enableIma:g.cJ(this.app.getVideoData())&&this.app.bS().allowImaMonetization,autoplay:lY(this.app.bS()),mutedAutoplay:this.app.bS().mutedAutoplay});return J}; g.T.L7=function(){var J=this.app.getPresentingPlayerType();if(this.T("html5_enable_ssap_autoplay_debug_logging")){var R;(R=g.ih(this.app))==null||R.u3("ssap",{pbintl:J})}if(J===2&&!this.app.W7()&&(R=Do(this.app.d3()),!rk9(R)||jQJ(R)))return;J===3?SM(this.app.d3()).yZ("control_play"):this.app.N().T("html5_ssap_ignore_play_for_ad")&&g.vJ(this.app.bS())&&J===2||this.app.playVideo(J)}; g.T.BkB=function(){Ma(this.app,!0,1);this.L7()}; g.T.pauseVideo=function(J){var R=this.app.getPresentingPlayerType();if(R!==2||this.app.W7()||rk9(Do(this.app.d3())))R===3?SM(this.app.d3()).yZ("control_pause"):this.app.pauseVideo(R,J)}; g.T.x7C=function(){var J=this.app,R=!1;J.KC.VR&&(J.x8.publish("pageTransition"),R=!0);J.stopVideo(R)}; g.T.clearVideo=function(){}; g.T.getAvailablePlaybackRates=function(){var J=this.app.N();return J.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(J.Z?J.ancestorOrigins[0]:window.location.origin)||J.zo?xV_:tuL:[1]}; g.T.getPlaybackQuality=function(J){return(J=g.ih(this.app,J))?J.getPlaybackQuality():"unknown"}; g.T.vTC=function(){}; g.T.getAvailableQualityLevels=function(J){return(J=g.ih(this.app,J))?(J=g.Yy(J.T9(),function(R){return R.quality}),J.length&&(J[0]==="auto"&&J.shift(),J=J.concat(["auto"])),J):[]}; g.T.AX=function(){return this.getAvailableQualityLevels(1)}; g.T.oK=function(){return this.nS()}; g.T.fB=function(){return 1}; g.T.getVideoLoadedFraction=function(J){return this.app.getVideoLoadedFraction(J)}; g.T.nS=function(){return this.getVideoLoadedFraction()}; g.T.WG=function(){return 0}; g.T.getSize=function(){var J=this.app.jQ().getPlayerSize();return{width:J.width,height:J.height}}; g.T.setSize=function(){this.app.jQ().resize()}; g.T.loadVideoById=function(J,R,N,C){if(!J)return!1;J=R1(J,R,N);return this.app.loadVideoByPlayerVars(J,C)}; g.T.ANB=function(J,R,N){J=this.loadVideoById(J,R,N,1);Ma(this.app,J,1)}; g.T.cueVideoById=function(J,R,N,C){J=R1(J,R,N);this.app.cueVideoByPlayerVars(J,C)}; g.T.V3=function(J,R,N){this.cueVideoById(J,R,N,1)}; g.T.loadVideoByUrl=function(J,R,N,C){J=Szg(J,R,N);return this.app.loadVideoByPlayerVars(J,C)}; g.T.xpB=function(J,R,N){J=this.loadVideoByUrl(J,R,N,1);Ma(this.app,J,1)}; g.T.cueVideoByUrl=function(J,R,N,C){J=Szg(J,R,N);this.app.cueVideoByPlayerVars(J,C)}; g.T.UE=function(J,R,N){this.cueVideoByUrl(J,R,N,1)}; g.T.Kz=function(){var J=this.app.N();if(J.dn)return"";var R=this.app.bS(),N=void 0;R.isLivePlayback||(N=Math.floor(this.app.getCurrentTime(1)));return J.getVideoUrl(R.videoId,this.getPlaylistId()||void 0,N)}; g.T.hX=function(){return this.app.getDebugText()}; g.T.getVideoEmbedCode=function(){var J=this.app.N();if(J.dn)return"";var R=this.app.bS();return J.getVideoEmbedCode(R.isPrivate?"":R.title,this.app.bS().videoId,this.app.jQ().getPlayerSize(),this.getPlaylistId()||void 0)}; g.T.YL=function(J,R,N){return eRg(this.app,J,R,N)}; g.T.removeCueRange=function(J){return crB(this.app,J)}; g.T.loadPlaylist=function(J,R,N,C){this.app.loadPlaylist(J,R,N,C)}; g.T.G7Q=function(J,R,N,C){this.loadPlaylist(J,R,N,C);Ma(this.app,!0,1)}; g.T.cuePlaylist=function(J,R,N,C){this.app.cuePlaylist(J,R,N,C)}; g.T.nextVideo=function(J,R){this.app.nextVideo(J,R)}; g.T.w3p=function(){this.nextVideo();Ma(this.app,!0,1)}; g.T.previousVideo=function(J){this.app.previousVideo(J)}; g.T.JzB=function(){this.previousVideo();Ma(this.app,!0,1)}; g.T.playVideoAt=function(J){this.app.playVideoAt(J)}; g.T.EiC=function(J){this.playVideoAt(J);Ma(this.app,!0,1)}; g.T.setShuffle=function(J){var R=this.app.getPlaylist();R&&R.setShuffle(J)}; g.T.setLoop=function(J){var R=this.app.getPlaylist();R&&(R.loop=J)}; g.T.aK=function(){var J=this.app.getPlaylist();if(!J)return null;for(var R=[],N=0;NC?C:L);return{airingStart:X,airingEnd:f,allowSeeking:this.app.xB(),clipEnd:R.clipEnd, clipStart:R.clipStart,current:u,displayedStart:-1,duration:J,ingestionTime:H,isAtLiveHead:k,loaded:v,seekableStart:W,seekableEnd:S,offset:N,viewerLivestreamJoinMediaTime:C}}; g.T.isInline=function(){return this.app.isInline()}; g.T.setInline=function(J){this.app.setInline(J)}; g.T.wv=function(){return g.ih(this.app,1).fP(!0)}; g.T.toggleSubtitles=function(){var J=g.a3(this.app.d3());J&&J.XwQ()}; g.T.getPlayerSize=function(){var J=this.app.jQ().getPlayerSize();return{width:J.width,height:J.height}}; g.T.setCenterCrop=function(J){this.app.jQ().setCenterCrop(J)}; g.T.getLoopVideo=function(){return this.app.getLoopVideo()}; g.T.setLoopVideo=function(J){this.app.setLoopVideo(J)}; var aCE="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public qoe_cat raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "), DBP="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");var gC={},Oq8=(gC["api.invalidparam"]=2,gC.auth=150,gC["drm.auth"]=150,gC["heartbeat.net"]=150,gC["heartbeat.servererror"]=150,gC["heartbeat.stop"]=150,gC["html5.unsupportedads"]=5,gC["fmt.noneavailable"]=5,gC["fmt.decode"]=5,gC["fmt.unplayable"]=5,gC["html5.missingapi"]=5,gC["html5.unsupportedlive"]=5,gC["drm.unavailable"]=5,gC["mrm.blocked"]=151,gC["embedder.identity.denied"]=152,gC);g.M(g.fu,uh);g.T=g.fu.prototype;g.T.isExternalMethodAvailable=function(J,R){return this.state.D[J]?!0:!!(this.state.X[J]&&R&&SJ(R,MtL))}; g.T.getBandwidthEstimate=function(){return qw(this.app.N().schedule)}; g.T.reportPlaybackIssue=function(J){J=J===void 0?"":J;var R=g.ih(this.app);R&&(J={gpu:(0,g.Lk)(),d:J},R.handleError(new PD("feedback",J)))}; g.T.getInternalApi=function(){return Object.assign({},this.state.K)}; g.T.getInternalApiInterface=function(){return g.dq(this.state.K)}; g.T.queueNextVideo=function(J,R,N,C,X){N=N===void 0?NaN:N;this.app.queueNextVideo(J,R,N,C===void 0?"":C,X===void 0?"":X)}; g.T.bE=function(J){J=this.app.getPlayerStateObject(J);return{isBuffering:g.h(J,1),isCued:J.isCued(),isDomPaused:g.h(J,1024),isEnded:g.h(J,2),isError:g.h(J,128),isOrWillBePlaying:J.isOrWillBePlaying(),isPaused:J.isPaused(),isPlaying:J.isPlaying(),isSeeking:g.h(J,16),isUiSeeking:g.h(J,32),isUnstarted:g.h(J,64)}}; g.T.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()}; g.T.startSeekCsiAction=function(){this.app.kB().Z.K=(0,g.g9)()}; g.T.xu=function(J,R,N){return this.getCurrentTime(J===void 0?1:J,R,N)}; g.T.seekToStreamTime=function(J,R,N,C){var X=this.app;R=R===void 0?!0:R;var u=g.ih(X,1),f=0;u&&u.getStreamTimeOffset()&&!u.uS()&&(f=u.getStreamTimeOffset());aE(X,J-f,R,N,1,C)}; g.T.getStreamTimeOffset=function(){var J=g.ih(this.app,1);return J?J.getStreamTimeOffset():0}; g.T.seekToLiveHead=function(J,R){var N=g.ih(this.app,1);N&&(N=N.getVideoData())&&N.isLivePlayback&&aE(this.app,Infinity,J,R,1)}; g.T.requestSeekToWallTimeSeconds=function(J,R){var N=g.ih(this.app,1);N&&N.zw(J,R)}; g.T.fi3=function(J,R,N,C,X){this.seekTo(J,R,N,C===void 0?1:C,X)}; g.T.jlC=function(J,R,N,C){this.seekBy(J,R,N,C,1)}; g.T.setVolume=function(J,R){this.oN(J,R===void 0?!0:R)}; g.T.mute=function(J){this.Zg(J===void 0?!0:J)}; g.T.unMute=function(J){this.Vx(J===void 0?!0:J)}; g.T.syncVolume=function(){var J=TwP(this.app);kU(this.app,{volume:J.volume,muted:J.muted},!1)}; g.T.getAvailableQualityLabels=function(){var J=g.ih(this.app,1);return J?g.Yy(J.T9(),function(R){return R.qualityLabel}):[]}; g.T.channelSubscribed=function(){this.z7("SUBSCRIBE",this.app.bS().ud)}; g.T.channelUnsubscribed=function(){this.z7("UNSUBSCRIBE",this.app.bS().ud)}; g.T.setScreenLayer=function(J){this.app.setScreenLayer(J)}; g.T.getCurrentPlaylistSequence=function(){return g.ih(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())}; g.T.getPlaylistSequenceForTime=function(J){return g.ih(this.app).getPlaylistSequenceForTime(J)}; g.T.shouldSendVisibilityState=function(){return!0}; g.T.confirmYpcRental=function(){var J=g.ih(this.app,1);J&&J.aT("ypc_clickwrap")}; g.T.setHomeGroupInfo=function(J){this.app.N().homeGroupInfo=J}; g.T.setConnectedRemoteApps=function(J){this.app.N().wm=J}; g.T.setLivingRoomAppMode=function(J){this.app.N().livingRoomAppMode=S0("LIVING_ROOM_APP_MODE_UNSPECIFIED",J,MNP)}; g.T.setEnablePrivacyFilter=function(J){this.app.N().enablePrivacyFilter=J===void 0?!1:J}; g.T.togglePictureInPicture=function(){this.app.togglePictureInPicture()}; g.T.addUtcCueRange=function(J,R,N,C,X){return wsk(this.app,J,R,N,C,X)}; g.T.Ex=function(J){J=J===void 0?1:J;var R=this.RM(J);if(J=g.ih(this.app,J)){J=J.getVideoData();R.hasProgressBarBoundaries=J.hasProgressBarBoundaries();R.isPremiere=J.isPremiere;R.itct=J.VO;R.playerResponseCpn=J.playerResponseCpn;var N;var C=J.hasProgressBarBoundaries()&&((N=J.progressBarStartPosition)==null?0:N.utcTimeMillis)?fK(J.progressBarStartPosition.utcTimeMillis):null;R.progressBarStartPositionUtcTimeMillis=C;var X;N=J.hasProgressBarBoundaries()&&((X=J.progressBarEndPosition)==null?0:X.utcTimeMillis)? fK(J.progressBarEndPosition.utcTimeMillis):null;R.progressBarEndPositionUtcTimeMillis=N;R.ypcOriginalItct=J.dQ;R.ypcPreview=J.ypcPreview;R.paidContentOverlayText=sJB(J);R.paidContentOverlayDurationMs=B$8(J);J.K&&D9(J.K)&&(R.usingLocalMedia="true");R.transitionEndpointAtEndOfStream=J.transitionEndpointAtEndOfStream}return R}; g.T.getAdState=function(){return this.app.getAdState()}; g.T.isNotServable=function(J){if(J!==this.app.config.args.video_id)return!1;var R=(J=(J=g.ih(this.app,1))?J.getPlayerState():null)?J.uu:null;return!!(J&&R&&g.h(J,128)&&ZqB(R.errorCode)===5)}; g.T.supportsGaplessAudio=function(){return this.app.N().supportsGaplessAudio()}; g.T.supportsGaplessShorts=function(){return this.app.N().supportsGaplessShorts()}; g.T.enqueueVideoByPlayerVars=function(J,R,N,C){N=N===void 0?Infinity:N;this.app.enqueueVideoByPlayerVars(J,R,N,C===void 0?"":C)}; g.T.clearQueue=function(){this.app.clearQueue()}; g.T.Dy=function(){return g.Cu(this)}; g.T.sendAbandonmentPing=function(){var J=g.ih(this.app);J&&J.sendAbandonmentPing()}; g.T.setAutonavState=function(J,R){R=R===void 0?!1:R;if(this.T("web_player_autonav_use_server_provided_state")&&!R&&(R=this.app.bS(),R==null?0:Ru2(R))){if(this.T("web_player_autonav_server_provided_state_pause_killswitch"))return;if(J===3)R.autonavState!==3&&(R.Yn=R.autonavState);else if(R.Yn!==void 0)J=R.Yn,R.Yn=void 0;else return}xIg(this.app,J)}; g.T.setAutonav=function(J,R){this.setAutonavState(J?2:1,R===void 0?!1:R)}; g.T.setLoopRange=function(J){this.app.setLoopRange(J)}; g.T.getLoopRange=function(){return this.app.getLoopRange()}; g.T.hasSupportedAudio51Tracks=function(){var J;return!((J=g.ih(this.app,1))==null||!J.hasSupportedAudio51Tracks())}; g.T.setUserAudio51Preference=function(J,R){R=R===void 0?!1:R;var N=g.ih(this.app,1);N&&N.setUserAudio51Preference(J,R)}; g.T.getUserAudio51Preference=function(){var J,R;return(R=(J=g.ih(this.app,1))==null?void 0:J.getUserAudio51Preference())!=null?R:1}; g.T.setProximaLatencyPreference=function(J){var R=g.ih(this.app,1);R&&R.setProximaLatencyPreference(J)}; g.T.getProximaLatencyPreference=function(){var J=g.ih(this.app,1);return J?J.getProximaLatencyPreference():0}; g.T.isProximaLatencyEligible=function(){var J=g.ih(this.app,1);return J?J.isProximaLatencyEligible():!1}; g.T.getAppState=function(){return this.app.getAppState()}; g.T.updateLastActiveTime=function(){mc()}; g.T.setBlackout=function(J){this.app.setBlackout(J)}; g.T.setUserEngagement=function(J){this.app.N().F$!==J&&(this.app.N().F$=J,(J=g.ih(this.app,1))&&fp(J))}; g.T.updateSubtitlesUserSettings=function(J,R){R=R===void 0?!0:R;g.a3(this.app.d3()).SI(J,R)}; g.T.getCaptionWindowContainerId=function(){var J=g.a3(this.app.d3());return J?J.getCaptionWindowContainerId():""}; g.T.toggleSubtitlesOn=function(){var J=g.a3(this.app.d3());J&&J.Wz()}; g.T.isSubtitlesOn=function(){var J=g.a3(this.app.d3());return J?J.isSubtitlesOn():!1}; g.T.getPlayerResponse=function(J){return(J=g.ih(this.app,J))?J.getVideoData().getPlayerResponse():null}; g.T.NF=function(){return this.getPlayerResponse(1)}; g.T.getEmbeddedPlayerResponse=function(){var J=g.ih(this.app,1);return J?J.getVideoData().getEmbeddedPlayerResponse():null}; g.T.getWatchNextResponse=function(J){return(J=g.ih(this.app,J))?J.getVideoData().getWatchNextResponse():null}; g.T.Ry=function(){return this.getWatchNextResponse(1)}; g.T.getHeartbeatResponse=function(J){return(J=g.ih(this.app,J))?J.getVideoData().getHeartbeatResponse():null}; g.T.LB=function(){return this.getHeartbeatResponse(1)}; g.T.getStoryboardFrame=function(J,R){var N=this.app.DY();if(!N)return null;R=N.levels[R];return R?(J=g.cm(R,J))?{column:J.column,columns:J.columns,height:J.Vv,row:J.row,rows:J.rows,url:J.url,width:J.TY}:null:null}; g.T.getStoryboardFrameIndex=function(J,R){var N=this.app.DY();if(!N)return-1;R=N.levels[R];if(!R)return-1;J-=this.uS();return R.iH(J)}; g.T.getStoryboardLevel=function(J){var R=this.app.DY();return R?(R=R.levels[J])?{index:J,intervalMs:R.K,maxFrameIndex:R.Xq(),minFrameIndex:R.Jy()}:null:null}; g.T.getNumberOfStoryboardLevels=function(){var J=this.app.DY();return J?J.levels.length:0}; g.T.QF=function(){return this.getAudioTrack(1)}; g.T.getAudioTrack=function(J){return(J=g.ih(this.app,J))?J.getAudioTrack():this.app.getVideoData().qV}; g.T.setAudioTrack=function(J,R,N){this.Ez()===3&&SM(this.app.d3()).yZ("control_set_audio_track",J);if(N=g.ih(this.app,N))if(N.QO()||g.h(N.playerState,128))J=!1;else{var C,X=!((C=N.videoData.V)==null||!C.K);C=X&&R?N.getCurrentTime()-N.uS():NaN;if(N.KC.experiments.b3("html5_record_audio_format_intent")){var u=N.xA();if(u.qoe){u=u.qoe;var f=[J.Do.id,isNaN(C)?"m":"t"];g.k4(u,g.m0(u.provider),"afi",f)}}if(X)R&&(X=btB(N.Ci),N.u3("aswh",{id:J.id,xtags:J.xtags,bh:X.toFixed(3)})),N.vC.setAudioTrack(J,C,R); else if(ek2(N)){b:{R=N.mediaElement.audioTracks();for(X=0;X=400)if(J=this.bS(),this.G.N().T("client_respect_autoplay_switch_button_renderer"))J=!!J.autoplaySwitchButtonRenderer;else{var R,N,C,X;J=!!((R=J.getWatchNextResponse())==null?0:(N=R.contents)==null?0:(C=N.twoColumnWatchNextResults)==null?0:(X=C.autoplay)==null?0:X.autoplay)!==!1}if(J)this.K||(this.K=!0,g.ZK(this,this.K),this.G.N().T("web_player_autonav_toggle_always_listen")||h3E(this), R=this.bS(),this.nM(R.autonavState),this.G.logVisibility(this.element,this.K));else if(this.K=!1,g.ZK(this,this.K),!this.G.N().T("web_player_autonav_toggle_always_listen"))for(this.G.N().T("web_player_autonav_toggle_always_listen"),R=g.K(this.J),N=R.next();!N.done;N=R.next())this.tL(N.value)}; g.T.nM=function(J){bqn(this)?this.isChecked=J!==1:((J=J!==1)||(g.tf(),J=g.Ac("web_autonav_allow_off_by_default")&&!g.xI(0,141)&&g.iL("AUTONAV_OFF_BY_DEFAULT")?!1:!g.xI(0,140)),this.isChecked=J);GtP(this)}; g.T.onClick=function(){this.isChecked=!this.isChecked;this.G.Yo(this.isChecked?2:1);GtP(this);if(bqn(this)){var J=this.bS().autoplaySwitchButtonRenderer;this.isChecked&&(J==null?0:J.onEnabledCommand)?this.G.z7("innertubeCommand",J.onEnabledCommand):!this.isChecked&&(J==null?0:J.onDisabledCommand)&&this.G.z7("innertubeCommand",J.onDisabledCommand)}this.G.logClick(this.element)}; g.T.getValue=function(){return this.isChecked}; g.T.bS=function(){return this.G.getVideoData(1)};g.M(t3Q,xe);g.M(CJ,g.y$);CJ.prototype.onClick=function(){this.enabled&&(X_(this,!this.checked),this.publish("select",this.checked))}; CJ.prototype.getValue=function(){return this.checked}; CJ.prototype.setEnabled=function(J){(this.enabled=J)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var JIE=["en-CA","en","es-MX","fr-CA"];g.M(T7,CJ);T7.prototype.hN=function(J){J?this.K||(this.JE.S2(this),this.K=!0):this.K&&(this.JE.zj(this),this.K=!1);this.K&&X_(this,mDB())}; T7.prototype.Z=function(){g.Mh(this.element,"ytp-menuitem-highlight-transition-enabled")}; T7.prototype.V=function(J){var R=mDB();J!==R&&(R=g.tf(),oi(190,J),oi(192,!0),R.save(),this.G.z7("cinematicSettingsToggleChange",J))}; T7.prototype.Fk=function(){this.K&&this.JE.zj(this);CJ.prototype.Fk.call(this)};g.M(i0E,xe);i0E.prototype.updateCinematicSettings=function(J){this.K=J;var R;(R=this.menuItem)==null||R.hN(J);this.api.publish("onCinematicSettingsVisibilityChange",J)};g.M(uQB,xe);uQB.prototype.YO=function(J,R){R=R.clipConfig;J==="dataloaded"&&R&&R.startTimeMs!=null&&R.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(R.startTimeMs)),endTimeMs:Math.floor(Number(R.endTimeMs)),postId:R.postId,type:"clips"})};g.M($8,CJ);$8.prototype.V=function(J){this.Z(J?1:0)}; $8.prototype.J=function(){var J=this.hasDrcAudioTrack(),R=this.K()===1&&J;X_(this,R);this.setEnabled(J)}; $8.prototype.Fk=function(){this.JE.zj(this);CJ.prototype.Fk.call(this)};g.M(Hi,xe);Hi.prototype.getDrcUserPreference=function(){return this.K}; Hi.prototype.setDrcUserPreference=function(J){g.e0("yt-player-drc-pref",J,31536E3);J!==this.K&&(this.K=J,this.updateEnvironmentData(),(J=this.api.Us())&&this.J()&&Xe(J))}; Hi.prototype.updateEnvironmentData=function(){this.api.N().OQ=this.K===1}; Hi.prototype.J=function(){var J,R,N=(J=this.api.getVideoData())==null?void 0:(R=J.V)==null?void 0:R.K;if(!N)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.T("mta_drc_mutual_exclusion_removal")){var C=this.api.getAudioTrack().Do.id;return gh(N,function(X){var u;return X.audio.K&&((u=X.Do)==null?void 0:u.id)===C})}return gh(N,function(X){var u; return((u=X.audio)==null?void 0:u.K)===!0})};g.M(k8,xe);k8.prototype.onVideoDataChange=function(){var J=this,R=this.api.getVideoData();this.api.ir("embargo",1);var N=R==null?void 0:R.MY.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(N==null?0:N.length)?T8B(this,N.filter(function(C){return fjB(J,C)})):(R==null?0:R.cueRanges)&&T8B(this,R.cueRanges.filter(function(C){return fjB(J,C)}))}; k8.prototype.J=function(J){return J.embargo!==void 0}; k8.prototype.Fk=function(){xe.prototype.Fk.call(this);this.K={}};g.M($88,xe); $88.prototype.addEmbedsConversionTrackingParams=function(J){var R=this.api.N(),N=R.widgetReferrer,C=R.EB,X=this.K,u="",f=R.getWebPlayerContextConfig();f&&(u=f.embedsIframeOriginParam||"");N.length>0&&(J.embeds_widget_referrer=N);C.length>0&&(J.embeds_referring_euri=C);R.Z&&u.length>0&&(J.embeds_referring_origin=u);f&&f.embedsFeature&&(J.feature=f.embedsFeature);X.length>0&&(R.T("embeds_web_enable_lite_experiment_control_arm_logging")?X.unshift(28572):g.KI(g.cH(R))&&X.unshift(159628),R=X.join(","), R=g.Rc()?R:g.LE(R,4),J.source_ve_path=R);this.K.length=0};g.M(H0k,xe);g.M(k2f,g.l);k2f.prototype.Fk=function(){g.l.prototype.Fk.call(this);this.K=null;this.J&&this.J.disconnect()};g.M(WfB,xe);g.M(vi,g.c);vi.prototype.show=function(){g.c.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; vi.prototype.onVideoDataChange=function(J){var R,N,C=(R=this.api.getVideoData())==null?void 0:(N=R.getPlayerResponse())==null?void 0:N.playabilityStatus;C&&(R=SV7(C),g.h(this.api.getPlayerStateObject(),128)||J==="dataloaderror"||!R?(this.J=0,FfQ(this),this.hide()):(J=(R.remainingTimeSecs||0)*1E3,J>0&&(this.show(),this.updateValue("label",Q88(R.label)),Ijk(this,J))))}; vi.prototype.Fk=function(){FfQ(this);g.c.prototype.Fk.call(this)};g.M(Erk,xe);g.M(Wi,g.c);Wi.prototype.onClick=function(){this.x8.logClick(this.element);this.x8.z7("onFullerscreenEduClicked")}; Wi.prototype.hN=function(){this.x8.isFullscreen()?this.J?this.K.hide():this.K.show():this.hide();this.x8.logVisibility(this.element,this.x8.isFullscreen()&&!this.J)};g.M(Sr,xe);Sr.prototype.updateFullerscreenEduButtonSubtleModeState=function(J){var R;(R=this.K)!=null&&(g.ao(R.element,"ytp-fullerscreen-edu-button-subtle",J),J&&!R.V&&(R.element.setAttribute("title","Role para ver detalhes"),$e(R.x8,R.element,R),R.V=!0))}; Sr.prototype.updateFullerscreenEduButtonVisibility=function(J){var R;(R=this.K)!=null&&(R.J=J,R.hN())};g.M(MLE,g.c);g.M(Q9E,xe);g.M(nrQ,xe);g.M(D8E,xe);g.M(Z0f,xe);var B8P="fs pe srt fpt nreqs nress nrese rsf_pj rse_pj rsf_pej rse_pej rsf_pc rse_pc".split(" "),O0k="bpd_c bpd_s gv mb_s pl_c pl_i plev".split(" ");g.M(LJ,xe);LJ.prototype.getSphericalProperties=function(){var J=g.I1(this.api.d3());return J?J.getSphericalProperties():{}}; LJ.prototype.setSphericalProperties=function(J){if(J){var R=g.I1(this.api.d3());R&&R.setSphericalProperties(J,!0)}};g.M(d8k,xe);g.T=d8k.prototype;g.T.createClientVe=function(J,R,N,C){this.api.createClientVe(J,R,N,C===void 0?!1:C)}; g.T.createServerVe=function(J,R,N){this.api.createServerVe(J,R,N===void 0?!1:N)}; g.T.setTrackingParams=function(J,R){this.api.setTrackingParams(J,R)}; g.T.logClick=function(J,R){this.api.logClick(J,R)}; g.T.logVisibility=function(J,R,N){this.api.logVisibility(J,R,N)}; g.T.hasVe=function(J){return this.api.hasVe(J)}; g.T.destroyVe=function(J){this.api.destroyVe(J)};var AIg=!1;YVB.prototype.setPlaybackRate=function(J){this.playbackRate=Math.max(1,J)}; YVB.prototype.getPlaybackRate=function(){return this.playbackRate};U8g.prototype.Ya=function(J){var R=WS(J.info.K.info,this.manifest.MR),N=J.info.SQ+this.Z,C=J.info.startTime*1E3;if(this.policy.pC)try{C=this.policy.pC?kr(J)*1E3:J.info.startTime*1E3}catch(f){Math.random()>.99&&this.logger&&(C=GV(J.K).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:J.info.Ki(),encodedDataView:g.SZ(C,4)})),C=J.info.startTime*1E3}var X=J.info.clipId;if(this.policy.pC){if(J.info.K.yW())var u=J.info.duration;else J.Z===-1&&(J.Z=vf(J)),u=J.Z||J.info.duration;u*=1E3}else u=J.info.duration* 1E3;this.policy.pC&&(C<0||u<0)&&this.logger&&(this.logger({missingSegInfo:J.info.Ki(),startTimeMs:C,durationMs:u}),C<0&&(C=J.info.startTime*1E3),u<0&&(u=J.info.duration*1E3));return{formatId:R,SQ:N,startTimeMs:C,clipId:X,DO:u}}; U8g.prototype.nh=function(J){this.timestampOffset=J};nJ.prototype.seek=function(J,R){J!==this.K&&(this.seekCount=0);this.K=J;var N=this.videoTrack.J,C=this.audioTrack.J,X=this.audioTrack.CP,u=tL8(this,this.videoTrack,J,this.videoTrack.CP,R);R=tL8(this,this.audioTrack,this.policy.Vg?J:u,X,R);J=Math.max(J,u,R);this.U=!0;this.manifest.isManifestless&&(hTB(this,this.videoTrack,N),hTB(this,this.audioTrack,C));return J}; nJ.prototype.isSeeking=function(){return this.U}; nJ.prototype.xV=function(J){this.V=J}; var b08=2/24;var RVB=0;g.T=jr.prototype;g.T.rq=function(){this.X=this.now();X3B(this.I9,this.X);this.nP.rq()}; g.T.iP=function(J,R){var N=this.policy.K?(0,g.g9)():0;mm(this,J,R);J-this.S<10&&this.J>0||this.QM(J,R);this.nP.iP(J,R);this.policy.K&&(J=(0,g.g9)()-N,this.VK+=J,this.oB=Math.max(J,this.oB))}; g.T.QM=function(J,R){var N=(J-this.S)/1E3,C=R-this.V;this.Mz||(ZF(this.I9,N,C),this.Ho(N,C));this.S=J;this.V=R}; g.T.qI=function(){this.ma&&NIE(this);this.nP.qI()}; g.T.O$=function(J){this.ma||(this.ma=this.U-this.YA+J,this.ji=this.U,this.kA=this.D)}; g.T.e7=function(J,R){J=J===void 0?this.D:J;R=R===void 0?this.U:R;this.J>0||(this.nC=J,this.J=R,this.W=this.isActive=!0)}; g.T.LI=function(){}; g.T.Cw=function(){var J,R={rn:this.requestNumber,rt:(this.D-this.K).toFixed(),lb:this.U,stall:(1E3*this.Z).toFixed(),ht:(this.X-this.K).toFixed(),elt:(this.nC-this.K).toFixed(),elb:this.J,d:(J=this.tN)==null?void 0:J.SV()};this.url&&qVg(R,this.url);this.policy.K&&(R.mph=this.oB.toFixed(),R.tph=this.VK.toFixed());R.ulb=this.pC;R.ult=this.VO;R.abw=this.l3;return R}; g.T.now=function(){return(0,g.g9)()}; g.T.deactivate=function(){this.isActive&&(this.isActive=!1)};g.M(Vj,jr);g.T=Vj.prototype;g.T.Cw=function(){var J=jr.prototype.Cw.call(this);J.pb=this.Ln;J.pt=(1E3*this.EB).toFixed();J.se=this.Xn;return J}; g.T.d5=function(){var J=this.nP;this.T7||(this.T7=J.d5?J.d5():1);return this.T7}; g.T.eN=function(){return this.sV?this.d5()!==1:!1}; g.T.AJ=function(J,R,N){if(!this.TW){this.TW=!0;if(!this.Mz){mm(this,J,R);this.QM(J,R);var C=this.d5();this.Xn=N;C===2?this.Mz||(this.VO?DF(this.I9,this.VO/1E3,this.pC,this.eQ||this.policy.nC):DF(this.I9,R/Math.max(this.policy.X,N||this.l3),R,.01),BH(this.I9,R,this.Z)):C===1&&(N=(J-this.K)/1E3,!(N<=this.policy.J)&&this.policy.J||this.GW||this.policy.D||!(this.J>0)||uOE(this,N,R),this.J>0&&BH(this.I9,R,this.Z));J=(J-this.K)/1E3||.01;this.policy.S&&!(this.J>0)||si(this.I9,J,this.V,isg(this),this.xg)}this.deactivate()}}; g.T.Y9=function(J,R,N){N&&(this.T7=2);J<0&&this.j8&&(J=this.j8);R?this.Xk+=J:this.eQ+=J}; g.T.QM=function(J,R){var N=(J-this.S)/1E3,C=R-this.V,X=this.d5();this.isActive?X===1&&((C>0||this.policy.V)&&(N>.2||C<1024)?(this.Z+=N,C>0&&N>.2&&uOE(this,this.Mi?N:.05,C),this.GW=!0):C>0&&(uOE(this,N,C),this.GW=!0)):R&&R>=2048&&this.e7(J,R);jr.prototype.QM.call(this,J,R)}; g.T.Tp=function(J){if(!this.Mz){mm(this,J,this.U);var R=(J-this.K)/1E3;this.d5()!==2&&this.J>0&&(this.Z+=(J-this.S)/1E3,BH(this.I9,this.V,this.Z));si(this.I9,R,this.V,isg(this),this.xg,!0);J=(J-this.S)/1E3;ZF(this.I9,J,0);this.Ho(J,0)}}; g.T.e7=function(J,R){J=J===void 0?this.D:J;R=R===void 0?this.U:R;if(!(this.J>0)&&(jr.prototype.e7.call(this,J,R),this.d5()===1)){R=(this.X-this.K)/1E3;var N=(J-this.X)/1E3;this.sV&&HsB(this,this.now());this.R1||this.Mz||(this.j8&&(N=Math.max(0,N-this.j8)),J=this.I9,J.D.x5(1,R),J.VO.x5(1,N))}}; g.T.EX=function(){this.sV&&HsB(this,this.now());return this.G7}; g.T.oA=function(){var J;if(J=this.V>this.AG)J=(J=this.V)?J>=2048:!1;return J}; g.T.Bf=function(){return this.HC}; g.T.wP=function(J){J=J===void 0?this.now():J;if(this.sV){HsB(this,J);if(this.T7?this.eN():this.dn!==this.PC){var R=this.PC;if(J0?N+J:N+Math.max(J,R)}; g.T.lW=function(){return this.now()-this.nC}; g.T.yV=function(){return(this.V-this.J)*1E3/this.lW()||0}; g.T.B5=function(){return this.nC};go.prototype.feed=function(J){wB(this.K,J);this.hY()}; go.prototype.hY=function(){if(this.Z){if(!this.K.getLength())return;var J=this.K.split(this.V-this.J),R=J.I5;J=J.WY;if(!this.nP.O$(this.Z,R,this.J,this.V))return;this.J+=R.getLength();this.K=J;this.J===this.V&&(this.Z=this.V=this.J=void 0)}for(;;){var N=0;J=g.K(knY(this.K,N));R=J.next().value;N=J.next().value;N=g.K(knY(this.K,N));J=N.next().value;N=N.next().value;if(R<0||J<0)break;if(!this.K.p8(N,J)){if(!this.nP.O$||!this.K.p8(N,1))break;N=this.K.split(N).WY;this.nP.O$(R,N,0,J)&&(this.Z=R,this.J= N.getLength(),this.V=J,this.K=new eV([]));break}J=this.K.split(N).WY.split(J);N=J.WY;this.nP.qT(R,J.I5);this.K=N}}; go.prototype.dispose=function(){this.K=new eV};g.T=Ue.prototype;g.T.VV=function(){return 0}; g.T.bW=function(){return null}; g.T.L0=function(){return null}; g.T.B$=function(){return this.state>=1}; g.T.isComplete=function(){return this.state>=3}; g.T.NV=function(){return this.state===5}; g.T.onStateChange=function(){}; g.T.XD=function(J){var R=this.state;this.state=J;this.onStateChange(R);this.callback&&this.callback(this,R)}; g.T.vN=function(J){J&&this.state=this.xhr.HEADERS_RECEIVED}; g.T.getResponseHeader=function(J){try{return this.xhr.getResponseHeader(J)}catch(R){return""}}; g.T.iZ=function(){return+this.getResponseHeader("content-length")}; g.T.Sr=function(){return this.J}; g.T.jg=function(){return this.status>=200&&this.status<300&&!!this.J}; g.T.HY=function(){return this.K.getLength()>0}; g.T.JV=function(){var J=this.K;this.K=new eV;return J}; g.T.vJ=function(){return this.K}; g.T.abort=function(){this.QO=!0;this.xhr.abort()}; g.T.Wo=function(){return!0}; g.T.QB=function(){return this.V}; g.T.iB=function(){return""};g.T=LJg.prototype; g.T.run=function(){var J=this,R,N,C,X,u,f,H,k,v,W,S,L,I,F,a;return g.Y(function(n){if(n.K==1){J.status=200;R=J.K.get("docid");N=CK(J.K.get("fmtid")||"");C=J.K.get("lmt")||"0";X=+(J.K.get("csz")||0);if(!R||!N||!X)throw Error("Invalid local URL");J.K.get("ck")&&J.K.get("civ")&&(u=new SiB(J.K.get("ck"),J.K.get("civ")));f=J.range;H=Math.floor(f.start/X);k=Math.floor(f.end/X);v=H}if(n.K!=5)return v<=k?g.q(n,nXQ(R,N,C,v,u),5):n.ZM(0);W=n.J;if(W===void 0)throw Error("invariant: data is undefined");S=v*X; L=(v+1)*X;I=Math.max(0,f.start-S);F=Math.min(f.end+1,L)-(I+S);a=new Uint8Array(W.buffer,I,F);J.J.append(a);J.loaded+=F;J.loaded=200&&this.status<300&&!!this.J}; g.T.HY=function(){return!!this.K.getLength()}; g.T.JV=function(){this.HY();var J=this.K;this.K=new eV;return J}; g.T.vJ=function(){this.HY();return this.K}; g.T.QO=function(){return this.U}; g.T.abort=function(){this.V&&this.V.cancel().catch(function(){}); this.Z&&this.Z.abort();this.U=!0}; g.T.Wo=function(){return!0}; g.T.QB=function(){return this.S}; g.T.iB=function(){return this.errorMessage};g.T=ESE.prototype;g.T.onDone=function(){if(!this.QO){this.status=this.xhr.status;try{this.response=this.xhr.response,this.J=this.response.byteLength}catch(J){}this.K=!0;this.nP.qI()}}; g.T.gi=function(){this.xhr.readyState===2&&this.nP.rq()}; g.T.zN=function(J){this.QO||(this.status=this.xhr.status,this.K||(this.J=J.loaded),this.nP.iP((0,g.g9)(),J.loaded))}; g.T.H$=function(){return this.xhr.readyState>=2}; g.T.getResponseHeader=function(J){try{return this.xhr.getResponseHeader(J)}catch(R){return g.G$(Error("Could not read XHR header "+J)),""}}; g.T.iZ=function(){return+this.getResponseHeader("content-length")}; g.T.Sr=function(){return this.J}; g.T.jg=function(){return this.status>=200&&this.status<300&&this.K&&!!this.J}; g.T.HY=function(){return this.K&&!!this.response&&!!this.response.byteLength}; g.T.JV=function(){this.HY();var J=this.response;this.response=void 0;return new eV([new Uint8Array(J)])}; g.T.vJ=function(){this.HY();return new eV([new Uint8Array(this.response)])}; g.T.abort=function(){this.QO=!0;this.xhr.abort()}; g.T.Wo=function(){return!1}; g.T.QB=function(){return!1}; g.T.iB=function(){return""};g.Pi.prototype.info=function(){}; g.Pi.prototype.debug=function(){}; g.Pi.prototype.K=oQ(36);var QFf=new Map,sFg=new Map,nSY=new function(){var J=this;this.K=new Map;this.QR={Om8:function(){return J.K}}};g.M(z7,g.l);z7.prototype.BY=function(){if(!this.eX.length)return[];var J=this.eX;this.eX=[];this.V=g.Pl(J).info;return J}; z7.prototype.uc=function(){return this.eX}; z7.prototype.Fk=function(){g.l.prototype.Fk.call(this);this.K=null;this.eX.length=0;this.aB.length=0;this.V=null};g.M(wo,g.l);g.T=wo.prototype;g.T.hyN=function(){if(!this.QO()){var J=(0,g.g9)(),R=!1;if(this.timing.J>0){if(this.U){this.policy.kA&&(this.K=0);return}var N=this.timing.Bf();this.timing.wP();var C=this.timing.Bf();C-N>=this.policy.Vc*.8?(this.K++,this.logger.debug(function(){return"Mispredicted by "+(C-N).toFixed(0)}),R=this.K>=5):this.K=0}else{var X=J-this.timing.EX(); X>0&&(this.K+=1);J=CJk(ci(this),!1)*this.policy.H8;(R=X>J*1E3)&&this.logger.debug(function(){return"Elbow late by "+X.toFixed(3)})}this.K>0&&this.nP.u9(); R?this.nk(!1):this.J.start()}}; g.T.nk=function(J){this.Z=!0;J&&(J=ci(this),J.V+=1);this.nP.BK();this.lastError="net.timeout";yj(this)}; g.T.canRetry=function(J){var R=ci(this);J=J?this.policy.Wu:this.policy.wm;return R.timedOut0&&(R=R.K.getUint8(0),J.ubyte=R,N===1&&R===0&&(J.b248180278=!0))}this.e8&&(J.rc=this.policy.F$?this.e8:this.e8.toString());this.policy.j2&&this.fW&&(J.tr=this.fW);J.itag=this.info.aB[0].K.info.itag;J.ml=""+ +this.info.aB[0].K.M7();J.sq=""+this.info.aB[0].SQ;this.Um&&(J.ifi=""+ +U6(this.info.resource.V));this.e8!==410&&this.e8!==500&&this.e8!==503||(J.fmt_unav="true");var C;(N=this.errorMessage||((C=this.xhr)== null?void 0:C.iB()))&&(J.msg=N);this.m4&&(J.smb="1");this.info.isDecorated()&&(J.sdai="1");return J}; g.T.Se=function(){return fFP(this.timing)}; g.T.iB=function(){return this.xhr.iB()||""}; g.T.oA=function(){return this.isComplete()||this.timing.oA()}; g.T.iP=function(){!this.QO()&&this.xhr&&(this.e8=this.xhr.status,this.policy.s$&&this.GN&&this.pX(!1),this.Ek()?this.vN(2):!this.Tz&&this.oA()&&(this.vN(),this.Tz=!0))}; g.T.rq=function(){if(!this.QO()&&this.xhr){if(!this.Vb&&this.xhr.H$()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var J=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Vb=((0,g.g9)()-J)/1E3}this.xhr.H$()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.m0&&!yR7()&&g.e0("yt-player-headers-readable",!0,2592E3);J=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var R=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),N;(N=this.Ce)==null||N.stop();this.ib=J||this.ib; this.LX=R||this.LX}}; g.T.qI=function(){var J=this.xhr;if(!this.QO()&&J){this.e8=J.status;J=this.F8(J);if(this.policy.j2){var R;(R=this.Ce)==null||R.stop()}J===5?yj(this.GA):this.XD(J);this.GA.J.stop()}}; g.T.F8=function(J){var R=this;ukB(this);if(G7(this.GA,this.xhr.status,this.ub?this.timing.W||this.tb:this.xhr.jg(),!1,this.Bu))return 5;var N="";be(this.GA,this.xhr)&&(N=A6E(this.GA,this.xhr));if(N)return dG(ci(this.GA)),this.info.eR(this.Um,N),3;N=J.Sr();if(this.KX){this.pX(!0);ukB(this);if(G7(this.GA,this.xhr.status,this.timing.W||this.tb,!1,this.Bu))return 5;if(!this.il){if(this.tb)return dG(ci(this.GA)),3;this.GA.lastError="net.closed";return 5}}else{if(G7(this.GA,this.xhr.status,this.xhr.jg(), !1,this.Bu))return 5;var C=this.info.V;if(C&&C!==N||J.QB())return this.GA.lastError="net.closed",5;this.pX(!0)}C=vS2(this)?J.getResponseHeader("X-Bandwidth-Est"):0;if(J=vS2(this)?J.getResponseHeader("X-Bandwidth-Est3"):0)this.cz=!0,this.policy.yn&&(C=J);dw2(this.GA,N,C?Number(C):0);this.logger.debug(function(){var X=R.timing;return"Succeeded, rtpd="+(X.EB*1E3+X.K-Date.now()).toFixed(0)}); return 4}; g.T.canRetry=function(){this.QO();var J=this.info.isDecorated();return this.GA.canRetry(J)}; g.T.onStateChange=function(){this.isComplete()&&(this.policy.TG?this.BK():this.timing.deactivate())}; g.T.nk=function(J){this.GA.nk(J)}; g.T.u9=function(){this.callback&&this.callback(this,this.state)}; g.T.eW=function(){return this.GA.eW()}; g.T.dispose=function(){Ue.prototype.dispose.call(this);this.GA.dispose();var J;(J=this.Ce)==null||J.dispose();this.policy.TG||this.BK()}; g.T.BK=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.T.BY=function(){if(!this.uc().length)return[];this.md=!0;return this.GN.BY()}; g.T.Ek=function(){if(this.state<1)return!1;if(this.GN&&this.GN.eX.length)return!0;var J;return((J=this.xhr)==null?0:J.HY())?!0:!1}; g.T.uc=function(){this.pX(!1);return this.GN?this.GN.uc():[]}; g.T.pX=function(J){try{if(J||this.xhr.H$()&&this.xhr.HY()&&!be(this.GA,this.xhr)&&!this.Q9)this.GN||(this.GN=new z7(this.policy,this.info.aB)),this.xhr.HY()&&(this.KX?this.KX.feed(this.xhr.JV()):er(this.GN,this.xhr.JV(),J&&!this.xhr.HY()))}catch(R){this.KX?Cv8(this,R):g.G$(R)}}; g.T.qT=function(J,R){switch(J){case 21:J=R.split(1).WY;Xm2(this,J);break;case 22:this.il=!0;er(this.GN,new eV([]),!0);break;case 43:if(J=Hy(new X2(R),1))this.info.eR(this.Um,J),this.tb=!0;break;case 45:R=vV(new X2(R));J=R.qk;R=R.i8;J&&R&&(this.Lo=J/R);break;case 44:this.BN=y3Y(new X2(R));var N,C,X;!this.timing.W&&((N=this.BN)==null?void 0:N.action)===4&&((C=this.BN)==null?0:(X=C.Wg)==null?0:X.ub)&&(this.ub=this.BN.Wg.ub);break;case 53:this.policy.j2&&(J=wMB(new X2(R)).Y0)&&(this.Ce||(this.Y0=J,this.Ce= new g.$t(this.fK,J,this)),this.Ce.start());break;case 60:this.eM=kK(new X2(R));break;case 64:this.policy.Yn&&(J=A3E(new X2(R)),this.policy.Tx(J));break;case 58:if(J=KEB(new X2(R)))this.W_=J,J.W_===3&&(this.Bu=!0)}}; g.T.O$=function(J,R,N,C){N||this.timing.O$(C);if(J!==21)return!1;if(J=this.policy.s$)if(C=R.getLength()+N===C,J*=this.info.aB[0].K.info.fC,!C&&R.getLength()0)return!1;if(!this.xhr.H$())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.KX)var J=!this.info.V;else this.xhr.iZ()?J=!1:(J=this.xhr.getResponseHeader("content-type"),J=J==="audio/mp4"||J==="video/mp4"||J==="video/webm");if(!J)return!1;if(isNaN(this.info.A2)){J=this.xhr.getResponseHeader("x-head-seqnum");var R=this.timing.policy.U?1:0;if(!J)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(J)>this.info.aB[0].SQ+R)return!1}return!0}; g.T.XS=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.T.bW=function(){this.xhr&&(this.ib=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.ib}; g.T.L0=function(){this.xhr&&(this.LX=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.LX}; g.T.WV=function(){return this.GA.WV()}; g.T.fK=function(){if(!this.QO()&&this.xhr){this.fW="heartbeat";var J=this.GA;J.K+=2;this.u9()}};g.M(No,jr);g.T=No.prototype;g.T.QM=function(J,R){var N=(J-this.S)/1E3,C=R-this.V;this.J>0?C>0&&(this.dn&&(N>.2||C<1024?(this.Z+=N,N>.2&&DF(this.I9,.05,C,this.Mi?Math.max(.05,C/this.Mi):.05)):DF(this.I9,N,C,this.Mi?Math.max(N,C/this.Mi):N)),this.PC&&(this.G7+=C,this.T7+=N)):R>2048&&this.e7(J,R);jr.prototype.QM.call(this,J,R)}; g.T.AJ=function(J,R){mm(this,J,R);this.QM(J,R);this.dn&&(R=this.V*this.snapshot.stall+this.V/this.snapshot.byterate,this.J>0&&BH(this.I9,this.G7,this.Z),J=(J-this.K)/1E3||.01,this.policy.S&&!(this.J>0)||si(this.I9,J,this.V,R,!1))}; g.T.Tp=function(J){mm(this,J,this.U);var R=(J-this.S)/1E3;ZF(this.I9,R,0);this.Ho(R,0);!this.dn&&this.J>0||(R=this.V*this.snapshot.stall+this.V/this.snapshot.byterate,this.J>0&&(this.Z+=(J-this.S)/1E3,BH(this.I9,this.G7,this.Z)),si(this.I9,((J-this.K)/1E3||.01)*this.policy.W,this.V,R,!1,!0))}; g.T.kG=function(J){J=J.oI||2147483647;(J&2)!==2&&(this.PC=!1);(J&1)===1&&(this.dn=!0)}; g.T.NH=function(J){J=J.oI||2147483647;(J&2)===2&&(this.PC=!1);(J&1)===1&&(this.dn=!1)}; g.T.B5=function(){return this.nC}; g.T.lW=function(){var J=this.PC?this.now()-this.S:0;return Math.max(this.T7*1E3+J,1)}; g.T.yV=function(){return this.G7*1E3/this.lW()}; g.T.e7=function(J,R){J=J===void 0?this.D:J;R=R===void 0?this.U:R;this.J>0||(jr.prototype.e7.call(this,J,R),R=this.I9,J=(J-this.X)/1E3,R.D.x5(1,(this.X-this.K)/1E3),R.VO.x5(1,J))}; g.T.LI=function(J){this.HC=J}; g.T.Cw=function(){var J=jr.prototype.Cw.call(this);J.rbw=this.yV();J.rbe=+this.PC;J.gbe=+this.dn;J.ackt=(this.HC-this.K).toFixed();return J}; g.T.wP=function(){}; g.T.Bf=function(){return NaN}; g.T.EX=function(){return this.K+this.snapshot.delay*1E3};Cb.prototype.qT=function(J,R){R.getLength();switch(J){case 20:J=new X2(R);J={t4:fX(J,1),videoId:Hy(J,2),itag:fX(J,3),lmt:fX(J,4),xtags:Hy(J,5),k7:fX(J,6),E2:T5(J,8),Go:fX(J,9),e$3:fX(J,10),startMs:fX(J,11),durationMs:fX(J,12),Aw:fX(J,14),timeRange:k3(J,15,XMk),nT:fX(J,16),xF:fX(J,17),clipId:Hy(J,1E3)};this.wl(J);break;case 21:this.kO(R,!1);break;case 22:this.Lm(R);break;case 31:J=Ss(R,VGB);this.x9(J);break;case 52:J=Ss(R,c3B);this.mM(J);break;default:this.NW(J,R)}}; Cb.prototype.wl=function(){}; Cb.prototype.NW=function(){};g.M(fak,Cb);g.T=fak.prototype; g.T.NW=function(J,R){R.getLength();switch(J){case 35:this.Dp(R);break;case 44:this.ov(R);break;case 43:this.JG(R);break;case 53:this.Fx(R);break;case 55:J=new X2(R);(J={timeline:k3(J,1,bQP),bLa:k3(J,2,JKE)},J.timeline)&&J.timeline.oa&&this.nP.IY(J.timeline.oa,J.timeline.Zya,J.bLa);break;case 56:this.Xr();break;case 57:this.jO(R);break;case 42:this.a8(R);break;case 45:this.yq(R);break;case 59:this.sZ(R);break;case 51:this.EZ(R);break;case 49:this.kG(R);break;case 50:this.NH(R);break;case 47:this.fZ(R); break;case 58:this.l$(R);break;case 61:this.nP.JY.LI((0,g.g9)());break;case 66:this.q8(R);break;case 46:this.b6(R);break;case 67:this.onSnackbarMessage(R)}}; g.T.EZ=function(J){J=new X2(J);J={ijB:Wy(J,1,$K),q$8:Wy(J,2,$K)};this.nP.EZ(J)}; g.T.sZ=function(J){var R=new X2(J);J=vy(R,1);var N=vy(R,2);R=vy(R,3);this.nP.sZ(J,N,R)}; g.T.yq=function(J){J=vV(new X2(J));this.nP.yq(J)}; g.T.fZ=function(J){J=Ss(J,pM8);this.nP.fZ(J)}; g.T.a8=function(J){J=new X2(J);J={videoId:Hy(J,1),formatId:k3(J,2,$K),endTimeMs:fX(J,3),Xk7:fX(J,4),mimeType:Hy(J,5),aM:k3(J,6,ZQ2),indexRange:k3(J,7,ZQ2),cF:k3(J,8,dbB)};this.nP.a8(J)}; g.T.jO=function(J){J=JKE(new X2(J));this.nP.jO(J)}; g.T.Xr=function(){this.nP.Xr()}; g.T.Dp=function(J){J=gj7(new X2(J));this.nP.Dp(J)}; g.T.Fx=function(J){J=wMB(new X2(J));this.nP.Fx(J)}; g.T.ov=function(J){J=y3Y(new X2(J));this.nP.ov(J)}; g.T.JG=function(J){J={redirectUrl:Hy(new X2(J),1)};this.nP.JG(J)}; g.T.kO=function(J){var R=J.getUint8(0);if(J.getLength()!==1){J=J.split(1).WY;var N=this.J[R]||null;N&&Tc(this.nP.uB,R,N,J)}}; g.T.Lm=function(J){J=J.getUint8(0);var R=this.J[J]||null;R&&this.nP.Lm(J,R)}; g.T.mM=function(J){this.nP.mM(J)}; g.T.wl=function(J){var R=J.t4,N=J.E2,C=J.k7,X=J.xF,u=J.nT,f=J.Go,H=J.startMs,k=J.durationMs,v=J.timeRange,W=J.Aw,S=J.clipId,L=VH(J);J=jZ9.has(XS[""+J.itag]);this.J[R]=L;this.nP.Y9(L,J,{t4:R,E2:!!N,k7:C!=null?C:-1,Go:f!=null?f:-1,startMs:H!=null?H:-1,durationMs:k!=null?k:-1,Aw:W,xF:X,nT:u,clipId:S,timeRange:v})}; g.T.kG=function(J){J={oI:fX(new X2(J),1)};this.nP.kG(J)}; g.T.NH=function(J){J={oI:fX(new X2(J),1)};this.nP.NH(J)}; g.T.x9=function(J){this.nP.x9(J)}; g.T.l$=function(J){J=KEB(new X2(J));this.nP.l$(J)}; g.T.q8=function(J){J={ET:k3(new X2(J),1,zYk)};this.nP.q8(J)}; g.T.onSnackbarMessage=function(J){J=fX(new X2(J),1);this.nP.onSnackbarMessage(J)}; g.T.b6=function(J){J={reloadPlaybackParams:k3(new X2(J),1,MGB)};this.nP.b6(J)};g.M(XP,g.l);g.T=XP.prototype;g.T.SL=function(){return Array.from(this.Li.keys())}; g.T.pj=function(J){J=this.Li.get(J);var R=J.eX;J.JW+=R.getLength();J.eX=new eV;return R}; g.T.vV=function(J){return this.Li.get(J).vV}; g.T.zC=function(J){return this.Li.get(J).zC}; g.T.Y9=function(J,R,N,C){this.Li.get(J)||SA7(this,J,R);R=this.Li.get(J);if(this.manifest){J=IaE(this,J,N);if(C)for(var X=g.K(J),u=X.next();!u.done;u=X.next()){u=u.value;var f=C;u.W=f;u.startTime+=f;u.dN+=f;u.y0+=f}L7k(this,N.t4,R,J)}else N.E2?R.XA=N.Aw:R.Aq.push(N),R.VT.push(N)}; g.T.c_=function(J){var R;return((R=this.Li.get(J))==null?void 0:R.aB)||[]}; g.T.vN=function(){for(var J=g.K(this.Li.values()),R=J.next();!R.done;R=J.next())R=R.value,R.aY&&(R.zN&&R.zN(),R.aY=!1)}; g.T.Lm=function(J,R){this.logger.debug(function(){return"[onMediaEnd] formatId: "+R}); var N=this.Li.get(R);if(iF){if(N&&!N.vV){if(N.zX.get(J))N.zX.get(J).s4=!0;else{var C;((C=this.KY)==null?0:C.AL)&&N.zX.set(J,{data:new eV,rG:0,s4:!0})}N.zC=!0}}else N&&!N.zC&&(N.zC=!0)}; g.T.BY=function(J){if(iF){var R=this.Li.get(J);if(R)for(var N=g.K(R.zX),C=N.next();!C.done;C=N.next()){var X=g.K(C.value);C=X.next().value;X=X.next().value;var u=R.uh.get(C);if(e3(u[0])){if(!X.s4)continue;var f=u,H=X.data;H.getLength();u=0;var k=[];f=g.K(f);for(var v=f.next();!v.done;v=f.next()){v=v.value;var W=v.V,S=cU(H,u,W);u+=W;k.push(new $r(v,S))}R.tB.push.apply(R.tB,g.Q(k))}else if(X.data.getLength()>0||!u[0].range&&X.s4)H=void 0,u=u[0],k=X.rG,f=X.data,u.range||(H=X.s4),v=f.getLength(),H=new $r(FI7(u, u.J+k,v,H),f),X.rG+=H.info.V,R.tB.push(H);R.zX.get(C).data=new eV;X.s4&&R.zX.delete(C)}J=this.Li.get(J);if(!J)return[];R=J.tB;J.tB=[];N=g.K(R);for(C=N.next();!C.done;C=N.next())J.JW+=C.value.info.V;return R||[]}N=(R=this.Li.get(J))==null?void 0:R.GN;if(!N)return[];this.pX(J,N);return N.BY()}; g.T.Ek=function(J){if(iF)return fb(this,J);var R,N,C;return!!((N=(R=this.Li.get(J))==null?void 0:R.GN)==null?0:(C=N.uc())==null?0:C.length)||fb(this,J)}; g.T.pX=function(J,R){for(;fb(this,J);){var N=this.pj(J);var C=J;C=this.Li.get(C).vV&&!vCB(this,C);er(R,N,C&&W7n(this,J))}}; g.T.Fk=function(){g.l.prototype.Fk.call(this);for(var J=g.K(this.Li.keys()),R=J.next();!R.done;R=J.next())$LQ(this,R.value);var N;if((N=this.KY)==null?0:N.U7)for(J=g.K(this.Li.values()),R=J.next();!R.done;R=J.next())R=R.value,R.zX.clear(),R.uh.clear(),R.tB.length=0,R.aB.length=0,R.VT.length=0,R.Aq.length=0;this.Li.clear()}; var iF=!1;g.M($O,g.l);g.T=$O.prototype;g.T.iP=function(){!this.QO()&&this.xhr&&(this.pX(!1),gc(this.nP,this))}; g.T.rq=function(){}; g.T.qI=function(){if(!this.QO()&&this.xhr){var J=this.F8();J===5?yj(this.GA):this.XD(J);this.GA.J.stop();var R;(R=this.YQ)==null||R.stop()}}; g.T.F8=function(){var J="";be(this.GA,this.xhr)&&(J=A6E(this.GA,this.xhr));if(J)return this.info.resource.eR(this.Um,J),3;this.pX(!0);if(G7(this.GA,this.xhr.status,this.xhr.jg(),this.info.EM(),this.Bu))return 5;if(this.KW)return 3;dw2(this.GA,this.xhr.Sr(),0);this.policy.VR&&doE(this.nP);return 4}; g.T.pX=function(J){var R=this.xhr;if((J||!be(this.GA,this.xhr))&&R.HY()){J=R.JV();var N=J.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+N}); this.KX.feed(J)}}; g.T.qT=function(J,R){this.xhr.Wo()&&J===21&&this.JY.e7();this.Ra.qT(J,R)}; g.T.O$=function(J,R,N,C){N||this.JY.O$(C);if(J!==21)return!1;this.JY.W=!0;J=R.getLength();N||(this.y$=R.getUint8(0),R=R.split(1).WY);var X=this.Ra.J[this.y$],u=this.manifest.V.get(X);if(u&&(u=u.info.fC*.01,J+N!==C&&J0){J=this.JY.lW();R=this.JY.yV();var N=K7P(this,J);if(!(R>N.iV||N.tJ>0&&this.info.C4()>N.tJ)){this.Rc=(0,g.g9)();var C;(C=this.YQ)==null||C.stop();this.policy.VR&&(C=this.nP,J={Bn:Math.round(R*J/1E3),tV:J},C.policy.VR&&(C.dn=J,C.jp++));this.nk(!1)}}}}; g.T.nk=function(J){this.GA.nk(J)}; g.T.ov=function(J){this.nP.ov(J,this.x4())}; g.T.JG=function(J){this.KW=!0;this.info.resource.eR(this.Um,J.redirectUrl)}; g.T.kG=function(J){this.JY instanceof No&&this.JY.kG(J)}; g.T.NH=function(J){this.JY instanceof No&&this.JY.NH(J)}; g.T.IY=function(J,R,N){this.nP.IY(J,R,N,this.x4())}; g.T.a8=function(J){var R=J.formatId,N=VH({itag:R.itag,lmt:R.lmt,xtags:R.xtags}),C,X,u=new Uz(((C=J.aM)==null?void 0:C.first)||0,((X=J.aM)==null?void 0:X.iM)||0),f,H;C=new Uz(((f=J.indexRange)==null?void 0:f.first)||0,((H=J.indexRange)==null?void 0:H.iM)||0);if(!this.manifest.V.get(N)){N=J.cF||{};if(this.policy.XZ){var k,v;J=(k=J.mimeType)!=null?k:"";k=(v=R.itag)!=null?v:0;v=XS[""+k];N.mimeType=v!=="9"&&v!=="9h"?J:'video/webm; codecs="'+["vp09",v==="9h"?"02":"00","51",v==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else N.mimeType=J.mimeType;N.itag=R.itag;N.lastModified=""+(R.lmt||0);N.xtags=R.xtags;R=this.manifest;v=Zj("");k=Bf(N,null);K0(R,new FQ(v,k,u,C))}}; g.T.yq=function(J){this.nP.yq(J)}; g.T.onSnackbarMessage=function(J){if(this.policy.XU)this.nP.onSnackbarMessage(J)}; g.T.x9=function(J){this.wR=J;this.h8=(0,g.g9)();this.nP.x9(J)}; g.T.sZ=function(J,R,N){this.nP.sZ(J,R,N)}; g.T.jO=function(J){J.scope===2&&(this.zyM=J);this.nP.jO(J)}; g.T.Xr=function(){this.g$=!0;this.nP.Xr()}; g.T.EZ=function(J){this.policy.v7&&this.nP.EZ(J)}; g.T.fZ=function(J){this.nP.fZ(J,this.x4())}; g.T.l$=function(J){J.W_===3&&(this.Bu=!0);this.nP.l$(J)}; g.T.q8=function(J){this.nP.q8(J)}; g.T.b6=function(J){this.nP.b6(J)}; g.T.canRetry=function(){this.QO();return this.GA.canRetry(!1)}; g.T.dispose=function(){if(!this.QO()){g.l.prototype.dispose.call(this);this.GA.dispose();var J;(J=this.YQ)==null||J.dispose();this.XD(-1);this.BK()}}; g.T.XD=function(J){this.state=J;gc(this.nP,this)}; g.T.EM=function(){return this.info.EM()}; g.T.W2=function(){return this.g$}; g.T.N9=function(){return this.zyM}; g.T.Y9=function(J,R,N){N.clipId&&(this.clipId=N.clipId);this.policy.U&&!R&&(this.Is=N.Go,this.Xc=N.startMs);var C=0;this.policy.Im&&this.EA&&this.clipId&&(C=KJ(this.EA,this.clipId)/1E3);this.uB.Y9(J,R,N,C);if(this.policy.iY&&this.JY instanceof Vj){var X;C=(X=this.wR)==null?void 0:X.Xi;this.JY.Y9(N.durationMs/1E3,R,C>0&&N.Go+1>=C)}this.uB.Li.get(J).Kf=!0}; g.T.Lm=function(J,R){this.uB.Lm(J,R)}; g.T.mM=function(J){this.requestIdentifier=J}; g.T.BY=function(J){return this.uB.BY(J)}; g.T.c_=function(J){return this.uB.c_(J)}; g.T.Ek=function(J){return this.uB.Ek(J)}; g.T.SL=function(){return this.uB.SL()}; g.T.d5=function(){return 1}; g.T.x4=function(){return this.JY.requestNumber}; g.T.eU=function(){return this.requestIdentifier}; g.T.P5=function(){return this.clipId}; g.T.Yi=function(){return this.Um.Yi()}; g.T.IU=function(){this.BK()}; g.T.BK=function(){this.JY.deactivate();var J;(J=this.xhr)==null||J.abort()}; g.T.isComplete=function(){return this.state>=3}; g.T.cB=function(){return this.state===3}; g.T.NV=function(){return this.state===5}; g.T.JZ=function(){return this.state===4}; g.T.Jc=function(){return this.isComplete()}; g.T.B$=function(){return this.state>=1}; g.T.eW=function(){return this.policy.kA?this.GA.eW():0}; g.T.u9=function(){this.policy.kA&&gc(this.nP,this)}; g.T.kR=function(){return ftg(this.info)}; g.T.WV=function(){return this.GA.WV()}; g.T.v_=function(){var J=YiE(this.GA);Object.assign(J,$Ug(this.info));J.req="sabr";J.rn=this.x4();var R;if((R=this.xhr)==null?0:R.status)J.rc=this.policy.F$?this.xhr.status:this.xhr.status.toString();var N;(R=(N=this.xhr)==null?void 0:N.iB())&&(J.msg=R);this.Rc&&(N=K7P(this,this.Rc-this.JY.B5()),J.letm=N.g8Q,J.mrbps=N.iV,J.mram=N.tJ);return J}; g.T.wE=function(){return{Is:this.Is,Xc:this.Xc,isDecorated:this.info.isDecorated()}};aa8.prototype.tick=function(J,R){this.ticks[J]=R?window.performance.timing.navigationStart+R:(0,g.g9)()};g.M(YA7,g.al);g.T=YA7.prototype; g.T.HD=function(J,R,N,C){var X=!1;this.policy.eQ&&(X=N?this.tN===J.SQ:this.ma===J.SQ);if(this.S&&C&&!X){C=[];X=[];var u=[],f=void 0,H=0;R&&(C=R.K,X=R.J,u=R.Z,f=R.V,H=R.kY);this.policy.eQ&&(N?this.tN=J.SQ:this.ma=J.SQ);this.S.qX(J.SQ,J.startTime,this.J,C,X,u,N,H,f)}if(this.policy.eQ){if(N||this.policy.iQ){this.J===1&&vk(this,5,"noad");var k;J.SQ!==((k=this.K)==null?void 0:k.SQ)&&(jd8(this,J,R,N),isNaN(J.startTime)||mLE(this,J.SQ,Wk(this,J.startTime,J.SQ),!!R,this.S))}}else N&&jd8(this,J,R)}; g.T.K7=function(J,R,N){var C=this.videoTrack.K.index.yR()<=R;this.K={Kb:J,SQ:R,bZ:N};C&&kO(this,J,R)}; g.T.YN=function(){this.S&&this.S.YN()}; g.T.u3=function(J,R){this.vC.u3(J,R)}; g.T.lP=function(J,R){var N=this.videoTrack.K.index.qn(J);if(N>=0){var C;var X=((C=Vg(R.lS,N,2))==null?void 0:C.tC)||"";if(this.policy.U||X)return R.o7(J,N),gCk(this.vC,J,J,N),this.u3("sdai",{cmskpad:1,t:J.toFixed(3),sq:N}),!0}this.u3("sdai",{cmskpad:0,t:J.toFixed(3),sq:N});return!1};g.M(FP,g.l);FP.prototype.MI=function(J,R,N){N=N===void 0?{}:N;this.policy.Y5=Pf(J,N,this.Z,R===void 0?!1:R)};eI2.prototype.Dg=function(J){var R=this;if(this.policy.xn){var N=new Set(J);N.size===this.VO.size&&[].concat(g.Q(N)).every(function(C){return R.VO.has(C)})||(this.vC.u3("lwnmow",{itagDenylist:[].concat(g.Q(J)).join(",")}),this.vC.RZ(!!N.size),this.W=-1,this.VO=N,Qx(this,this.K),this.T7=!0)}}; eI2.prototype.MI=function(J,R,N){N=N===void 0?{}:N;var C=this.policy.Y5;this.U.MI(J,R===void 0?!1:R,N);if(C!==this.policy.Y5){Qx(this,this.K);nb(this);var X,u;C>this.policy.Y5&&((X=this.J)==null?0:T0(X.info))&&((u=this.nextVideo)==null||!T0(u.info))&&(this.nC=!0)}};HA2.prototype.nh=function(J){this.timestampOffset=J;this.flush()}; HA2.prototype.flush=function(){if(this.K.pos>0){var J={a:this.track.B7(),u:this.K.SV(),pd:Math.round(this.Z),ad:Math.round(this.V)},R=this.J;if(R){var N=R.K.info;J.itag=N.itag;N.K&&(J.xtags=N.K);J.sq=R.SQ;J.st=R.startTime;J.sd=R.duration;this.track.policy.ye&&(J.si=R.Ki());R.Z&&(J.esl=R.J+R.V);R.Nn()&&(J.eos=1)}isNaN(this.timestampOffset)||(J.to=this.timestampOffset);var C;if(R=(C=this.track.CP)==null?void 0:C.fP({})){for(var X in R)this.S[X]!==R[X]&&(J["sb_"+X]=R[X]);this.S=R}this.track.u3("sbu", J);this.K.reset();this.buffered=[];this.U=this.V=this.Z=0;this.timestampOffset=this.J=void 0}};Ww7.prototype.dispose=function(){this.dn=!0}; Ww7.prototype.QO=function(){return this.dn}; g.M(AD,Error);var I3Y=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]);jT.prototype.skip=function(J){this.offset+=J}; jT.prototype.TM=function(){return this.offset};g.T=YUE.prototype;g.T.f0=function(){return this.J}; g.T.I6=function(){return this.J.length?this.J[this.J.length-1]:null}; g.T.ke=function(){this.J=[];gH(this);Aq7(this)}; g.T.pj=function(){this.HC=this.J.shift().info}; g.T.c_=function(){return g.Yy(this.J,function(J){return J.info})}; g.T.B7=function(){return!!this.S.info.audio}; g.T.getDuration=function(){return this.S.index.Yj()};g.M(Dt,Ue);g.T=Dt.prototype;g.T.onStateChange=function(){this.QO()&&(uF(this.uB,this.formatId),this.K.dispose())}; g.T.v_=function(){var J=k1k(this.uB,this.formatId),R;var N=((R=this.uB.Li.get(this.formatId))==null?void 0:R.bytesReceived)||0;var C;R=((C=this.uB.Li.get(this.formatId))==null?void 0:C.JW)||0;return{expected:J,received:N,bytesShifted:R,sliceLength:vCB(this.uB,this.formatId),isAnyMediaEndReceived:this.uB.zC(this.formatId)}}; g.T.Se=function(){return 0}; g.T.oA=function(){return!0}; g.T.BY=function(){return this.uB.BY(this.formatId)}; g.T.uc=function(){return[]}; g.T.Ek=function(){return this.uB.Ek(this.formatId)}; g.T.WV=function(){return this.lastError}; g.T.eW=function(){return 0};g.M(lF,g.l);g.T=lF.prototype;g.T.B7=function(){return!!this.K.info.audio}; g.T.I6=function(){return this.Z.I6()}; g.T.pj=function(J){this.Z.pj(J);var R;(R=this.X)!=null&&(R.U.add(J.info.SQ),R.policy.CY?aK(R,R.Zf,R.D6,J,-1):R.K=aK(R,R.Zf,R.D6,J,R.K),R.V=J,R.S=(0,g.g9)());this.fC=Math.max(this.fC,J.info.K.info.fC||0)}; g.T.getDuration=function(){if(this.policy.J){var J=this.vC.fL();if(J)return mL(J)}return this.K.index.Yj()}; g.T.ke=function(){Bi(this);this.Z.ke()}; g.T.hx=function(){return this.Z}; g.T.isRequestPending=function(J){return this.V.length?J===this.V[this.V.length-1].info.aB[0].SQ:!1}; g.T.nh=function(J){var R;(R=this.X)==null||R.nh(J);var N;(N=this.W)==null||N.nh(J)}; g.T.u3=function(J,R){this.vC.u3(J,R)}; g.T.Pu=function(){return this.vC.Pu()}; g.T.dispose=function(){var J;(J=this.W)==null||J.flush();g.l.prototype.dispose.call(this)};g.s1Y.prototype.Tx=function(J){this.OB.Tx(J)};g.M(uI,g.l);uI.prototype.V=function(){this.J++>15||(this.K=!this.K,new d$B(this.vC,this.policy,this.I9,this.resource,this.K),this.delay.start())}; g.T=d$B.prototype;g.T.rq=function(){}; g.T.iP=function(){}; g.T.qI=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Sr()===this.size)this.vC.u3("rqs",this.getInfo());else{var J="net.connect";this.xhr.status>200?J="net.badstatus":this.xhr.H$()&&(J="net.closed");this.onError(J)}}; g.T.onError=function(J){var R=this;this.vC.handleError(J,this.getInfo());IK("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(N){R.vC.u3("pathprobe",N)},function(N){R.vC.handleError(N.errorCode,N.details)})}; g.T.getInfo=function(){var J=this.timing.Cw();J.shost=VM(this.location.base);J.pb=this.size;return J};g.M(fS,g.l); fS.prototype.D=function(J,R){if(J.D){this.manifest.isLive?(J=this.manifest.Up&&this.manifest.Z?J.K.Rd(this.manifest.Up,!1):J.K.Hi(Infinity),J.A2=this.A2):J=J.K.Rd(0,!1);if(this.nC){var N=this.nC;J.A2===0&&(J.U=N.X)}else J.U=this.W;return J}N=J.J;if(!N.K.M7())return N.K.yW()?(J=m82(this.U,J.K.info.fC,R.K.info.fC,0),J=N.K.zK(N,J)):J=N.K.vR(N),J;var C=N.y0-this.vC.getCurrentTime(),X=!N.range||N.V===0&&N.J===0?0:N.range.length-(N.J+N.V),u=N.K;this.Du(J,C)&&X===0&&(this.manifest.isManifestless?u=J.K:(u= N.startTime+cX,N.V&&(u+=N.duration),qU(J,u),N=J.J,u=N.K));u.yW()?(X=this.V,R=m82(this.U,u.info.fC,R.K.info.fC,C,X.Z.length>0&&X.X===0&&this.vC.kD),C=os(J),J=N.K.zK(N,R),(R=J.V)&&J.aB.length>1&&(C||J.resource.J||J.aB[0].K!==N.K?J=N.K.zK(N,J.aB[0].V):(C=J.aB[J.aB.length-1],u=C.V/R,!C.Z&&u<.4&&(J=N.K.zK(N,R-C.V))))):(N.SQ<0&&(R=yH(N),R.pr=""+J.V.length,this.vC.isSeeking()&&(R.sk="1"),R.snss=N.U,this.vC.u3("nosq",R)),J=u.vR(N));if(this.policy.VO)for(N=g.K(J.aB),R=N.next();!R.done;R=N.next())R.value.type= 6;return J}; fS.prototype.Du=function(J,R){if(!os(J)||!J.K.M7())return!1;var N=this.V.T7||HuE(J)||R<=this.policy.e6||this.V.nC;this.logger.debug(function(){return"ready to adapt: "+N+", upgrade pending: "+HuE(J)+", health: "+R}); return N}; fS.prototype.Fk=function(){g.l.prototype.Fk.call(this)}; var cX=2/24;g.M(kv,g.l);kv.prototype.Ld=function(J,R,N){var C;var X=((C=this.J)==null?void 0:C.reason)==="m"?"m":this.J&&GCE(this,this.J)?this.J.reason:"a";this.vC.Ld(new Iz(J,X,N));$v(this.vC,R,J,!0)}; kv.prototype.dR=function(J,R){for(var N=g.K(this.tN),C=N.next();!C.done;C=N.next())if(C=C.value,C.id===J)return this.KY.V4||(this.V=[C]),this.S=this.manifest.K[J],iI(this.KY)&&(this.nC=!0),new Iz(this.S,R?"t":"m");this.V=[];return null}; kv.prototype.MI=function(J,R,N){N=N===void 0?{}:N;this.K.MI(J,R===void 0?!1:R,N)};SO.prototype.EM=function(){return this.requestType===1}; SO.prototype.C4=function(){var J;return((J=this.nP)==null?void 0:J.C4())||0}; SO.prototype.isDecorated=function(){var J;return!((J=this.data)==null||!J.RW)};LS.prototype.encrypt=function(J){this.QC.exports.AES128CTRCipher_encrypt(this.cipher,J.byteOffset,J.byteLength);return J}; LS.prototype.QO=function(){return this.cipher===0}; LS.prototype.dispose=function(){this.QC.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};Is.prototype.encrypt=function(J,R){return DP(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:R},this.key,J).catch(function(N){return Promise.reject(N.name+": "+N.message)}).then(function(N){return new Uint8Array(N)}))}; Is.prototype.QO=function(){return this.K}; Is.prototype.dispose=function(){this.K=!0}; MT.C1(Is,{encrypt:HJg("oan2")});FX.prototype.encrypt=function(J,R){js(this.J,R);return DP(this.J.encrypt(J))}; FX.prototype.QO=function(){return this.K}; FX.prototype.dispose=function(){this.K=!0}; MT.C1(FX,{encrypt:HJg("oap")});E$.prototype.encrypt=function(J,R){var N=this.QC.Aa(R),C=this.K;C.QC.exports.AES128CTRCipher_setCounter(C.cipher,(N!=null?N:R).byteOffset);R=this.QC.Aa(J);this.K.encrypt(R!=null?R:J);N&&this.QC.free(N.byteOffset);return R?DP(this.QC.QQ(R)):DP(J)}; E$.prototype.QO=function(){return this.K.QO()}; E$.prototype.dispose=function(){this.K.dispose()}; MT.C1(E$,{encrypt:HJg("oalw")});MrP.prototype.encrypt=function(J){(0,g.g9)();return(new FO(this.K.K)).encrypt(J,this.iv)}; MrP.prototype.decrypt=function(J,R){(0,g.g9)();return(new FO(this.K.K)).decrypt(J,R)};g.M(KS,g.l);KS.prototype.V=function(J,R){if(R){R=R instanceof g.jB?R:as(this,R);var N;((N=this.K.get(J))==null?void 0:VM(N.location))!==VM(R)&&this.K.set(J,new ZJP(R,J))}else this.K.delete(J)}; KS.prototype.load=function(){var J=this,R,N,C,X,u,f,H,k,v,W;return g.Y(function(S){switch(S.K){case 1:R=J.K.get(0);g.Ef(S,2);var L;if(L=R&&!J.J)L=VM(R.location),L=J.J===h7(L);if(L){S.ZM(4);break}return g.q(S,Bo2(J,J.J?2:0),5);case 5:if(N=S.J)J.V(0,N),U6(N)&&J.V(1,pP(N));case 4:g.MP(S,3);break;case 2:C=g.K2(S);g.G$(C);if(!J.J){S.ZM(3);break}J.J=!1;return g.q(S,J.load(),7);case 7:return S.return();case 3:if(!J.KC.experiments.b3("html5_onesie_probe_ec_hosts")){S.ZM(0);break}g.Ef(S,9);X=J;u=X.V;f=3;return g.q(S, Bo2(J,1),11);case 11:return u.call(X,f,S.J),H=J,k=H.V,v=4,g.q(S,Bo2(J,2),12);case 12:k.call(H,v,S.J);g.MP(S,0);break;case 9:W=g.K2(S),g.G$(W),g.IQ(S)}})}; KS.prototype.D=function(){var J=this,R,N;return g.Y(function(C){g.HK(J.X);R=g.di(J.KC.experiments,"html5_onesie_prewarm_max_lact_ms");if(UK()>=R)return C.return();(N=J.K.get(0))&&sKk(J,N);g.IQ(C)})}; var n8E={w9O:0,SkC:1,JUf:2,TUQ:3,Kt3:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};dUY.prototype.decrypt=function(J){var R=this,N,C,X,u,f,H;return g.Y(function(k){switch(k.K){case 1:if(R.K.length&&!R.K[0].isEncrypted)return k.return();R.J=!0;R.X$.gk("omd_s");N=new Uint8Array(16);g1()?C=new IF(J):X=new FO(J);case 2:if(!R.K.length||!R.K[0].isEncrypted){k.ZM(4);break}u=R.K.shift();if(!C){f=X.decrypt(u.buffer.yc(),N);k.ZM(5);break}return g.q(k,C.decrypt(u.buffer.yc(),N),6);case 6:f=k.J;case 5:H=f;for(var v=0;v=4)){var R=A4(this),N=this.xhr;R.rc=N.status;J&&(R.ab=!0);if(N.iB()){var C="onesie.net";R.msg=N.iB()}else N.status>=400?C="onesie.net.badstatus":N.jg()?this.ST||(C="onesie.response.noplayerresponse"):C=N.status===204?"onesie.net.nocontent":"onesie.net.connect";C?this.Rs(new PD(C,R)):(this.gk("or_fs"),this.JY.AJ((0,g.g9)(),N.Sr(),0),this.XD(4),this.rU&&this.u3("rqs",R));this.rU&&this.u3("ombre", "ok."+ +!C);this.lc=!1;rc(this);h2B(this.X$);if(!this.Md){this.wf.stop();var X;(X=this.Ey)==null||X.stop()}var u;if(J=(u=this.g_)==null?void 0:OJE(u))for(u=0;u1E3){var J;(J=this.JY)==null||J.Tp((0,g.g9)());J=A4(this);if(this.KC.Si()&&this.xhr instanceof WJB){var R=this.xhr;J.xrs=R.xhr.readyState;J.xpb=R.K.getLength();J.xdc=R.Z}this.Rs(new PD("net.timeout",J))}}else(0,g.g9)()-this.JY.K>1E4&&((R=this.JY)==null||R.Tp((0,g.g9)()),this.dg());this.isComplete()||this.FR.start()}}; g.T.dg=function(){this.logger.info("Onesie request timed out");this.lc=!1;if(!rc(this)){var J=A4(this);J.timeout="1";this.Rs(new PD("onesie.request",J))}}; g.T.Rs=function(J){var R=this;J=ey(J);this.Py?this.RB.us(J):(this.Kw.reject(J),this.Py=!0);h2B(this.X$);this.Md||this.wf.stop();this.gk("or_fe");var N,C;(N=this.g_)==null||(C=OJE(N))==null||C.forEach(function(X){R.u3("pathprobe",X)}); this.XD(5);this.dispose()}; g.T.isComplete=function(){return this.state>=3}; g.T.JZ=function(){return this.state===4}; g.T.Jc=function(J){var R,N;return this.isComplete()||!!((R=this.UQ)==null?0:(N=R.get(J))==null?0:N.K)}; g.T.cB=function(){return!1}; g.T.NV=function(){return this.state===5}; g.T.notifySubscribers=function(J){for(var R=0;R102400&&!this.KK&&(this.gk("or100k"),this.KK=!0);if(J.HY()){var R=J.JV(),N=R.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+N}); this.rU&&this.u3("ombrss","len."+N);this.KX.feed(R)}if(this.UQ)for(var C=g.K(this.UQ.keys()),X=C.next();!X.done;X=C.next()){var u=X.value;J=void 0;(J=this.UQ.get(u))==null||J.vN();this.notifySubscribers(u)}}catch(f){this.Rs(f)}}; g.T.x4=function(){return this.JY.requestNumber}; g.T.eU=function(J){return this.bA.get(J)}; g.T.wE=function(){return{Is:this.Is,Xc:this.Xc,isDecorated:!1}};g.M(kcB,g.l);g.T=kcB.prototype;g.T.b$=function(J,R){this.nC=void 0;doE(this);BHB(this,J,R)}; g.T.LU=function(J){if(this.K.length===0)return!1;var R=this.K[0];return R instanceof Yv?J===this.vC.getCurrentTime()*1E3:!(R instanceof $O&&Tok(R.info))&&Math.abs(R.kR()-J)<50}; g.T.Dp=function(J){this.J=J;this.nC=(0,g.g9)()+(J.backoffTimeMs||0)}; g.T.ov=function(J,R){if(J.action===void 0){var N=this.RB.Sx();N!==void 0&&this.vC.i$(N)}else if(J.action!==0||!this.VO)switch(J.action===0&&this.policy.t7&&(J.action=2),N={},N.reason=J.tXQ,N.action=J.action,N.requestNum=R,J.action){case 1:this.policy.U&&this.Z&&this.Z.YC(void 0,void 0,N);break;case 0:this.VO=!0;this.videoData.ZD()&&this.policy.U&&this.Z&&this.Z.YC(void 0,void 0,N);this.vC.XR(N);break;case 2:this.vC.handleError("sabr.config",N,1);break;case 5:CXB(this.RB,!0);break;case 6:CXB(this.RB, !1);break;case 3:this.policy.YA&&((J=this.manifest.X)!=null&&(J.X=!0),this.vC.handleError("sabr.hostfallback",N))}}; g.T.IY=function(J,R,N,C){if(this.policy.J){this.vC.u3("ssap",{rn:C,v:R,tl:ADQ(J)});var X=this.vC.fL();J={JC:J,context:N,version:R};Ob7(this,N);X?ZbB(this,X,J):(this.vC.u3("ssap",{cacheclips:1,rn:C,v:R}),this.D=J)}}; g.T.jO=function(J){var R=this.policy.ma||this.policy.J;this.vC.u3("ssap",{onsbrctxt:J.type,dflt:J.sendByDefault,enable:R?1:0});R&&Ob7(this,J)}; g.T.Xr=function(){}; g.T.yq=function(J){if(J.qk!==void 0&&J.i8){var R=J.qk/J.i8;this.audioTrack.D=!1;this.videoTrack.D=!1;if(this.policy.W||this.policy.LJ||this.policy.U2)this.vC.ww.J=!1;this.vC.o6(R,1);if(this.RB.getCurrentTime()!==R){var N={hL:"sabr_seek",Kj:!0,b8:!0};J.seekSource&&(N.seekSource=J.seekSource);Y8(this.vC,R+this.policy.e4/1E3,N)}}}; g.T.onSnackbarMessage=function(J){this.RB.publish("onSnackbarMessage",J)}; g.T.x9=function(J){J.Xi&&J.Vf&&mf(this.manifest,J.Xi,J.Vf);this.policy.Ou&&(J.dc&&J.Ff&&(this.manifest.H_=J.dc/J.Ff),J.X4&&J.sA&&(this.manifest.iY=J.X4/J.sA));J.o5!=null&&this.RB.Ws(J.o5);this.policy.Ob&&J.r9&&(J=((0,g.g9)()-J.r9)/1E3,this.vC.ZT.x5(1,J))}; g.T.l$=function(J){this.vC.l$(J)}; g.T.sZ=function(J,R,N){this.policy.V&&this.vC.u3("sabrctxtplc",{start:J?J.join("_"):"",stop:R?R.join("_"):"",discard:N?N.join("_"):""});if(J){J=g.K(J);for(var C=J.next();!C.done;C=J.next())this.eS.add(C.value)}if(R)for(R=g.K(R),J=R.next();!J.done;J=R.next())J=J.value,this.eS.has(J)&&this.eS.delete(J);if(N)for(N=g.K(N),R=N.next();!R.done;R=N.next())R=R.value,this.videoData.sabrContextUpdates.has(R)&&(this.videoData.sabrContextUpdates.delete(R),R===3&&(this.videoData.pG=""))}; g.T.EZ=function(){}; g.T.fZ=function(J,R){BnE(this.policy,J,4,R)}; g.T.q8=function(J){if(J==null?0:J.ET)if(J=J.ET.C0){J=g.K(J);for(var R=J.next();!R.done;R=J.next())if(R=R.value,R.formatId){var N=this.manifest.V.get(VH(R.formatId));N&&N.info&&(N.info.debugInfo=R.debugInfo)}}}; g.T.b6=function(J){(J=J==null?void 0:J.reloadPlaybackParams)&&this.RB.publish("reloadplayer",J)}; g.T.VL=function(){return this.RB.VL()||""}; g.T.C4=function(){var J=Gc(this.audioTrack,!0)*1E3,R=Gc(this.videoTrack,!0)*1E3;return Math.min(J,R)}; g.T.NO=function(J,R){this.vC.u3(J,R)}; g.T.gE=function(J){xoB(this.vC,ozg(this.G7,J))}; g.T.Fk=function(){g.l.prototype.Fk.call(this);this.J=void 0;BHB(this,!0,"i");this.K=[]};Ydf.prototype.hY=function(J,R){if(this.Z)return gOQ(this,R);if(R=ro(J)){var N=R.J;N&&N.V&&N.K&&(J=J.V.length?J.V[0]:null)&&J.state>=2&&!J.NV()&&J.info.A2===0&&(this.Z=J,this.D=N,this.J=R.info,this.S=this.startTimeSecs=Date.now()/1E3,this.U=this.J.startTime)}return NaN}; Ydf.prototype.clear=function(){this.J=this.D=this.Z=null;this.K=this.U=this.S=this.startTimeSecs=NaN;this.V=!1};g.M(g.PX,g.l);g.T=g.PX.prototype;g.T.initialize=function(J,R,N){this.logger.debug(function(){return"Initialized, t="+J}); J=J||0;this.policy.K||(R=NOE(this.K),R8Q(this.RB,new Iz(R.video,R.reason)),this.RB.Yk(new Iz(R.audio,R.reason)));this.manifest.isManifestless&&eB2(this.Z);this.S&&jzg(this.S,this.videoTrack.K);R=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var C=!this.manifest.isManifestless;this.policy.S4&&(C=C||this.manifest.SD);this.policy.PC||(this.currentTime=C?J:R);this.policy.W&&this.seek(this.getCurrentTime(),{}).vY(function(){}); if(this.policy.K){var X;((X=this.nC)==null?0:HbB(X,this.VL()||""))&&zak(this)&&PFB(this,this.videoTrack)&&PFB(this,this.audioTrack)&&(qdQ(this.X,this.nC),this.policy.S&&lmn(this))}else this.dn&&(ean(this,this.videoTrack),ean(this,this.audioTrack),HW2(this.dn),delete this.dn);N?(this.policy.OQ?(this.VK=N,wc(this,N)):wc(this,!1),g.HK(this.QZ)):(N=this.getCurrentTime()===0,Tl(this.Z,this.videoTrack,this.videoTrack.K,N),Tl(this.Z,this.audioTrack,this.audioTrack.K,N),this.policy.K&&SdY(this.X,!0),this.policy.W|| this.seek(this.getCurrentTime(),{}).vY(function(){}),this.timing.tick("gv")); (this.manifest.Up||this.manifest.Q7||this.manifest.G7||this.manifest.YA||this.manifest.kA)&&this.RB.Cp(this.manifest)}; g.T.resume=function(){if(this.isSuspended||this.kD){this.logger.debug("Resumed.");this.Oz=this.kD=this.isSuspended=!1;try{this.hY()}catch(J){g.yD(J)}}}; g.T.MS=function(J,R){J=J===void 0?!1:J;R=R===void 0?!1:R;this.logger.debug("detaching media source");yD2(this);Vp(this.RB)&&(this.U=NaN);J?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.G7&&this.u3("loader",{setsmb:1}),this.policy.VO=!0,this.ke()):(this.policy.OQ?wc(this,this.VK):wc(this,!1),R||this.ke())}; g.T.setAudioTrack=function(J,R,N){N=N===void 0?!1:N;if(!this.QO()){var C=!isNaN(R);N&&C&&(this.audioTrack.nC=Date.now(),this.policy.lr&&(this.HC=!0));if(this.policy.K){var X=this.J.dR(J.id,C);this.logger.debug(function(){return"Logging new audio format: "+X.K.info.id}); this.RB.Yk(X)}else{var u=Jqg(this.K,J.id,C);this.logger.debug(function(){return"Logging new audio format: "+u.audio.info.id}); this.RB.Yk(new Iz(u.audio,u.reason))}if(C&&(N=this.audioTrack.K.index.qn(R),this.u3("setAudio",{id:J.id,cmt:R,sq:N}),N>=0)){this.policy.K&&(this.J.X=!0,this.b$(!0,"mosaic"));$$E(this.audioTrack,N,NaN,NaN);this.policy.pL||this.policy.jq&&!this.manifest.isLive||jL(this.manifest,N,!1);return}this.RB.CV()}}; g.T.setPlaybackRate=function(J){J!==this.W.getPlaybackRate()&&this.W.setPlaybackRate(J)}; g.T.Ld=function(J){var R=J.K.info.B7();this.logger.debug(function(){return"New "+(R?"audio":"video")+" format from SABR: "+EO(J.K.info)}); R?this.RB.Yk(J):R8Q(this.RB,J)}; g.T.gE=function(J){wG(J.aB[J.aB.length-1])&&xoB(this,ozg(this.K,J.aB[0].K))}; g.T.hC=function(){return this.RB.hC()}; g.T.fE=function(){return this.RB.fE()}; g.T.l$=function(J){this.RB.N().Si()&&this.u3("sps",{status:J.W_||""});if(J.W_===1)this.RB.videoData.h7=0;else if(J.W_===2||J.W_===3){var R=!1;if(J.W_===3){R=this.RB.xN();var N;this.ji=(N=J.Cr7)!=null?N:Infinity;this.RB.videoData.h7=R+1;(R=zB2(this))&&ssQ(this,!0)}this.RB.iq(!0,R)}}; g.T.R0=function(){return this.RB.R0()}; g.T.D9=function(){return this.RB.D9()}; g.T.UO=function(J){this.RB.UO(J)}; g.T.RyN=function(){var J,R=(J=this.RB.oG())==null?void 0:J.getCurrentTime();R?this.RB.u3("rms",{cta:R}):g.HK(this.Xn)}; g.T.hY=function(){tTf(this);if(this.Mp&&rm(this.Mp)&&!this.Mp.XB()&&(!this.policy.PC||isFinite(this.getCurrentTime()))){var J=zc(this.videoTrack);J=this.policy.Pb&&J&&J.Nn();this.manifest.isManifestless&&this.manifest.Z&&q8(this.manifest)?(this.U=q8(this.manifest),this.Mp.Eb(this.U)):VO(this.manifest)&&!J?isNaN(this.U)?(this.U=this.getCurrentTime()+3600,this.Mp.Eb(this.U)):this.U<=this.getCurrentTime()+1800&&(this.U=Math.max(this.U+1800,this.getCurrentTime()+3600),this.Mp.Eb(this.U)):this.Mp.isView|| (J=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),(!isFinite(this.U)||this.U!==J)&&J>0&&(this.Mp.Eb(J),this.U=J))}if(!this.QO())if(d8(this.manifest)&&this.manifest.NV()){var R=this.manifest;this.handleError("manifest.net.retryexhausted",R.eQ?{rc:R.e8}:{rc:R.e8.toString()},1)}else if(this.policy.K)a:{try{nOg(this.X);this.manifest.isManifestless&&this.policy.S&&A7(this.ww);if(haf(this)&&this.Mp&&!gm(this.Mp)&&this.videoTrack.G7&&this.audioTrack.G7){this.u3("ssap",{delaysb:1,v:this.videoTrack.K.info.id, vf:this.videoTrack.K.info.sB,a:this.audioTrack.K.info.id,af:this.audioTrack.K.info.sB});var N=this.Mp,C=this.videoTrack.K,X=this.audioTrack.K;!gm(N)&&X&&C&&(ecE(N,C.info,X.info,this.policy.wN),GcQ(this,N))}var u;((u=this.Mp)==null?0:gm(u))&&this.SA();this.policy.K||eO(this);SdY(this.X)}catch(H){g.G$(H);R=H;if(R.message.includes("changeType")){this.u3("ssap",{exp:R.name,msg:R.message,s:R.stack});break a}this.handleError("fmt.unplayable",{exp:R.name,msg:R.message,s:R.stack},1)}EvQ(this);g.HK(this.Xk)}else if(!this.manifest.J|| !WR8(this.videoTrack)&&!WR8(this.audioTrack)||(this.videoTrack.U||this.audioTrack.U)&&this.policy.VK?N=!1:(this.ke(),this.RB.seekTo(Infinity,{hL:"checkLoaderTracksSync",o6:!0}),N=!0),!N){tTf(this);this.manifest.isManifestless&&(SLE(this.videoTrack),SLE(this.audioTrack),A7(this.ww),(N=ro(this.videoTrack))&&N.J&&(N=N.J.V&&!this.policy.hn,this.u3(N===this.policy.D.CJ?"strm":"strmbug",{strm:N,sfmp4:this.policy.D.CJ,dfs:this.policy.hn},!0)));if(this.Mp)this.SA();else if(this.policy.Z){var f;N=!1;if(this.policy.pg)for(C= g.K([this.videoTrack,this.audioTrack]),X=C.next();!X.done;X=C.next()){u=X.value;for(X=ro(u);X&&u.I6()!==zc(u);X=ro(u))u.pj(X);N=N||!!X}else(R=ro(this.videoTrack))&&this.videoTrack.pj(R),(f=ro(this.audioTrack))&&this.audioTrack.pj(f);ck(this.videoTrack)&&ck(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(R||f||N)&&VB(this)}eO(this);Tl(this.Z,this.videoTrack,this.videoTrack.K,!1);Tl(this.Z,this.audioTrack,this.audioTrack.K,!1);this.policy.IL||ov2(this,this.videoTrack, this.audioTrack);j1k(this.Z,this.videoTrack,this.audioTrack);j1k(this.Z,this.audioTrack,this.videoTrack);EvQ(this);this.S&&(R=this.S,R.Z?(f=R.S+R.policy.iN,R.V||(f=Math.min(f,R.startTimeSecs+R.policy.PY)),R=Math.max(0,f*1E3-Date.now())):R=NaN,isNaN(R)||g.HK(this.kA,R));g.HK(this.Xk)}}; g.T.XR=function(J){this.RB.XR(J)}; g.T.SA=function(){var J=this;if(this.Mp){var R=this.Mp.K,N=this.Mp.J;nvE(this,this.audioTrack);nvE(this,this.videoTrack);var C=CIg(this);if(C){if(this.policy.Jp){if(!R.U4()){var X=ro(this.audioTrack);if(X){if(!lI(this,this.audioTrack,R,X.info))return;uXE(this,this.audioTrack,R,X)}}if(!N.U4()&&(X=ro(this.videoTrack))){if(!lI(this,this.videoTrack,N,X.info))return;uXE(this,this.videoTrack,N,X)}}this.jh||(this.jh=(0,g.g9)(),this.logger.debug(function(){return"Appends pause start "+J.jh+" reason "+C}), this.policy.V&&this.u3("apdps",{r:C}))}else if(this.jh&&(Ncg(this,this.jh),this.jh=0),XXB(this),X=!1,this.policy.J&&NA(this.videoTrack)||!HSQ(this,this.videoTrack,N)||(X=!0,DLE(this.timing),ZWB(this.timing)),this.Mp&&!this.Mp.vV()&&(this.policy.J&&NA(this.audioTrack)||!HSQ(this,this.audioTrack,R)||(X=!0,sdk(this.timing),dLk(this.timing)),!this.QO()&&this.Mp)){if(!this.policy.HC&&ck(this.videoTrack)&&ck(this.audioTrack)&&rm(this.Mp)&&!this.Mp.XB()){N=!1; N=zc(this.audioTrack);if(this.policy.J){var u;R=(u=this.k8)==null?void 0:Qj(u,N.dN*1E3);N=!(!R||R.clipId!==N.clipId);this.u3("ssap",{eos:N})}else u=N.K,N=u===this.manifest.K[u.info.id];N&&(this.logger.debug("Setting EOS"),wd7(this.Mp),icY(this.schedule))}X&&!this.Mp.isAsync()&&VB(this)}}}; g.T.sU=function(J){var R,N=J===((R=this.Mp)==null?void 0:R.K)?this.audioTrack:this.videoTrack,C;(C=N.tN)==null||C.stop();var X;if((X=ro(N))==null?0:X.isLocked){if(this.RB.N().Si()){var u;this.u3("eosl",{ounlock:(u=ro(N))==null?void 0:u.info.Ki()})}var f;I8E(this,J===((f=this.Mp)==null?void 0:f.K))}var H;if(this.policy.lr&&J===((H=this.Mp)==null?void 0:H.K)&&this.eQ){R=this.eQ-this.getCurrentTime();var k;this.RB.u3("asl",{l:R,xtag:(k=zc(this.audioTrack))==null?void 0:k.K.info.K});this.HC=!1;this.eQ= 0}J.DR()&&J.jD().length===0&&(J.Oe(),this.Mp&&!this.Mp.DR()&&(this.RB.N().Si()&&this.RB.u3("rms",{ld:"seek"}),this.Mp.S=performance.now(),this.RB.vF(),this.RB.N().Si()&&g.HK(this.Xn)));var v;(v=N.W)!=null&&Od(v,0);this.policy.oB&&this.policy.nw&&this.Mp&&(N=J.Qz())&&N.Nn()&&!Qp(J.jD(),Math.min(N.dN+cX,N.y0))&&this.u3("sbunb",{st:N.dN,et:N.y0});this.policy.ji?PhE(this):this.hY()}; g.T.OP8=function(J){if(this.Mp){var R=zc(J===this.Mp.K?this.audioTrack:this.videoTrack);if(J=J.HF())for(var N=0;Nthis.V&&(this.V=N,g.rq(this.K)||(this.K={},this.Z.stop(),this.J.stop())),this.K[R]=J,g.HK(this.J))}}; bI.prototype.U=function(){for(var J=g.K(Object.keys(this.K)),R=J.next();!R.done;R=J.next()){var N=R.value;R=this.publish;for(var C=this.V,X=this.K[N].match(P_),u=[],f=g.K(X[6].split("&")),H=f.next();!H.done;H=f.next())H=H.value,H.indexOf("cpi=")===0?u.push("cpi="+C.toString()):H.indexOf("ek=")===0?u.push("ek="+g.Ns(N)):u.push(H);X[6]="?"+u.join("&");N="skd://"+X.slice(2).join("");X=N.length*2;C=new Uint8Array(X+4);C[0]=X%256;C[1]=(X-C[0])/256;for(X=0;X0)for(var N=g.K(this.K),C=N.next();!C.done;C=N.next())if(R===C.value.info.cryptoPeriodIndex){R=!0;break a}R=!1}if(!R){R=(0,g.g9)();a:{N=J.cryptoPeriodIndex;if(!isNaN(N)){C=g.K(this.V.values());for(var X=C.next();!X.done;X=C.next())if(Math.abs(X.value.cryptoPeriodIndex-N)<=1){N=!0;break a}}N=!1}N?(N=J.K,N=Math.max(0,Math.random()*((isNaN(N)?120:N)-30))*1E3):N=0;this.publish("log_qoe",{wvagt:"delay."+N,cpi:J.cryptoPeriodIndex,reqlen:this.K.length, ignore:this.Z});N<=0?dAB(this,J):this.Z||(this.K.push({time:R+N,info:J}),g.HK(this.J,N))}}; t4.prototype.Fk=function(){this.K=[];Gl.prototype.Fk.call(this)};var cj={},gvf=(cj.DRM_TRACK_TYPE_AUDIO="AUDIO",cj.DRM_TRACK_TYPE_SD="SD",cj.DRM_TRACK_TYPE_HD="HD",cj.DRM_TRACK_TYPE_UHD1="UHD1",cj);g.M(r4E,g.l);g.M(pXY,g.al);g.T=pXY.prototype;g.T.r5=function(J){var R=this;this.QO()||J.size<=0||(J.forEach(function(N,C){var X=cf(R.J)?C:N;C=new Uint8Array(cf(R.J)?N:C);cf(R.J)&&C98(C);N=g.SZ(C,4);C98(C);C=g.SZ(C,4);R.K[N]?R.K[N].status=X:R.K[C]?R.K[C].status=X:R.K[N]={type:"",status:X}}),xAk(this,","),xv(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.T.error=function(J,R,N,C){this.QO()||(this.publish("licenseerror",J,R,N,C),J==="drm.provision"&&(J=(Date.now()-this.S)/1E3,this.S=NaN,this.publish("ctmp","provf",{et:J.toFixed(3)})));zi(R)&&this.dispose()}; g.T.shouldRetry=function(J,R){return this.VO&&this.D?!1:!J&&this.requestNumber===R.requestNumber}; g.T.Fk=function(){this.K={};g.al.prototype.Fk.call(this)}; g.T.fP=function(){var J={ctype:this.W.contentType||"",length:this.W.initData.length,requestedKeyIds:this.tN,cryptoPeriodIndex:this.cryptoPeriodIndex};this.V&&(J.keyStatuses=this.K);return J}; g.T.getInfo=function(){var J=this.Z.join();if(Js(this)){var R=new Set,N;for(N in this.K)this.K[N].status!=="usable"&&R.add(this.K[N].type);J+="/UKS."+Array.from(R)}return J+="/"+this.cryptoPeriodIndex}; g.T.Yi=function(){return this.url};g.M(ou,g.l);g.T=ou.prototype;g.T.oi=function(J){if(this.U){var R=J.messageType||"license-request";this.U(new Uint8Array(J.message),R)}}; g.T.r5=function(){this.D&&this.D(this.K.keyStatuses)}; g.T.onClosed=function(){this.QO()||g.Jf("xboxone")&&this.V&&this.V("closed")}; g.T.bI=function(J){this.U&&this.U(J.message,"license-request")}; g.T.N6=function(J){if(this.V){if(this.J){var R=this.J.error.code;J=this.J.error.systemCode}else R=J.errorCode,J=J.systemCode;this.V("t.prefixedKeyError;c."+R+";sc."+J,R,J)}}; g.T.Hq=function(){this.S&&this.S()}; g.T.update=function(J){var R=this;if(this.K)return(ua.isActive()?ua.aF("emeupd",function(){return R.K.update(J)}):this.K.update(J)).then(null,jq(function(N){ikg(R,"t.update",N)})); this.J?this.J.update(J):this.element.addKey?this.element.addKey(this.X.keySystem,J,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.X.keySystem,J,this.initData,this.sessionId);return eQ()}; g.T.Fk=function(){this.K&&(this.W?this.K.close().catch(g.G$):this.K.close());this.element=null;g.l.prototype.Fk.call(this)};g.M(Ru,g.l);g.T=Ru.prototype;g.T.b_=function(){var J=this;if(this.K.keySystemAccess)return(ua.isActive()?ua.aF("emenew",function(){return J.K.keySystemAccess.createMediaKeys()}):this.K.keySystemAccess.createMediaKeys()).then(function(N){if(!J.QO())if(J.J=N,ua.isActive())ua.aF("emeset",function(){return J.element.setMediaKeys(N)}); else{var C;(C=J.element)==null||C.setMediaKeys(N)}}); if(w8(this.K))this.V=new (eL())(this.K.keySystem);else if(hI(this.K)){this.V=new (eL())(this.K.keySystem);var R;(R=this.element)==null||R.webkitSetMediaKeys(this.V)}else ua.isActive()&&this.u3("emev",{v:"01b"}),U7(this.U,this.element,["keymessage","webkitkeymessage"],this.BE),U7(this.U,this.element,["keyerror","webkitkeyerror"],this.EU),U7(this.U,this.element,["keyadded","webkitkeyadded"],this.fQ);return null}; g.T.setServerCertificate=function(){return this.J.setServerCertificate?this.K.flavor==="widevine"&&this.K.c9?this.J.setServerCertificate(this.K.c9):G2(this.K)&&this.K.HC?this.J.setServerCertificate(this.K.HC):null:null}; g.T.createSession=function(J,R){var N=J.initData;if(this.K.keySystemAccess){R&&R("createsession");var C=this.J.createSession();yO(this.K)?N=ueQ(N,this.K.HC):G2(this.K)&&(N=ZSE(N)||new Uint8Array(0));R&&R("genreq");var X=ua.isActive()?ua.aF("emegen",function(){return C.generateRequest(J.contentType,N)}):C.generateRequest(J.contentType,N); var u=new ou(null,null,null,C,null,this.D);X.then(function(){R&&R("genreqsuccess")},jq(function(H){ikg(u,"t.generateRequest",H)})); return u}if(w8(this.K))return T67(this,N);if(hI(this.K))return fgg(this,N);if((X=this.element)==null?0:X.generateKeyRequest)this.element.generateKeyRequest(this.K.keySystem,N);else{var f;(f=this.element)==null||f.webkitGenerateKeyRequest(this.K.keySystem,N)}return this.Z=new ou(this.element,this.K,N,null,null,this.D)}; g.T.BE=function(J){var R=$rg(this,J);R&&R.bI(J)}; g.T.EU=function(J){var R=$rg(this,J);R&&R.N6(J)}; g.T.fQ=function(J){var R=$rg(this,J);R&&R.Hq(J)}; g.T.getMetrics=function(){if(this.J&&this.J.getMetrics)try{var J=this.J.getMetrics()}catch(R){}return J}; g.T.Fk=function(){this.V=this.J=null;var J;(J=this.Z)==null||J.dispose();J=g.K(Object.values(this.S));for(var R=J.next();!R.done;R=J.next())R.value.dispose();this.S={};g.l.prototype.Fk.call(this);delete this.element};g.T=Nr.prototype;g.T.get=function(J){J=this.findIndex(J);return J!==-1?this.values[J]:null}; g.T.remove=function(J){J=this.findIndex(J);J!==-1&&(this.keys.splice(J,1),this.values.splice(J,1))}; g.T.removeAll=function(){this.keys=[];this.values=[]}; g.T.set=function(J,R){var N=this.findIndex(J);N!==-1?this.values[N]=R:(this.keys.push(J),this.values.push(R))}; g.T.findIndex=function(J){return g.wk(this.keys,function(R){return g.uk(J,R)})};g.M(v48,g.al);g.T=v48.prototype;g.T.eqM=function(J){this.SP({onecpt:1});J.initData&&LlE(this,new Uint8Array(J.initData),J.initDataType)}; g.T.gvB=function(J){this.SP({onndky:1});LlE(this,J.initData,J.contentType)}; g.T.hB=function(J){this.SP({onneedkeyinfo:1});this.KC.T("html5_eme_loader_sync")&&(this.D.get(J.initData)||this.D.set(J.initData,J));SHP(this,J)}; g.T.vI=function(J){this.V.push(J);Ck(this)}; g.T.createSession=function(J){var R=Fl8(this)?s5n(J):g.SZ(J.initData);this.J.get(R);this.tN=!0;J=new pXY(this.videoData,this.KC,J,this.drmSessionId);this.J.set(R,J);J.subscribe("ctmp",this.hv,this);J.subscribe("keystatuseschange",this.r5,this);J.subscribe("licenseerror",this.yk,this);J.subscribe("newlicense",this.Lu,this);J.subscribe("newsession",this.D0,this);J.subscribe("sessionready",this.fu,this);J.subscribe("fairplay_next_need_key_info",this.M6,this);this.KC.T("html5_enable_vp9_fairplay")&&J.subscribe("qualitychange", this.xI,this);this.KC.T("html5_enable_sabr_drm_hd720p")&&J.subscribe("sabrlicenseconstraint",this.K7p,this);e8f(J,this.Z)}; g.T.Lu=function(J){this.QO()||(this.SP({onnelcswhb:1}),J&&!this.heartbeatParams&&(this.heartbeatParams=J,this.publish("heartbeatparams",J)))}; g.T.D0=function(){this.QO()||(this.SP({newlcssn:1}),this.V.shift(),this.tN=!1,Ck(this))}; g.T.fu=function(){if(w8(this.K)&&(this.SP({onsnrdy:1}),this.G7--,this.G7===0)){var J=this.nC,R,N;(R=J.element)==null||(N=R.msSetMediaKeys)==null||N.call(R,J.V)}}; g.T.r5=function(J){if(!this.QO()){!this.PC&&this.videoData.T("html5_log_drm_metrics_on_key_statuses")&&(E4E(this),this.PC=!0);this.SP({onksch:1});var R=this.xI;if(!Js(J)&&g.iC&&J.J.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var N="large";else{N=[];var C=!0;if(Js(J))for(var X=g.K(Object.keys(J.K)),u=X.next();!u.done;u=X.next())u=u.value,J.K[u].status==="usable"&&N.push(J.K[u].type),J.K[u].status!=="unknown"&&(C=!1);if(!Js(J)||C)N=J.Z;N=tOg(N)}R.call(this,N);this.publish("keystatuseschange", J)}}; g.T.hv=function(J,R){this.QO()||this.publish("ctmp",J,R)}; g.T.M6=function(J,R){this.QO()||this.publish("fairplay_next_need_key_info",J,R)}; g.T.yk=function(J,R,N,C){this.QO()||(this.videoData.T("html5_log_drm_metrics_on_error")&&E4E(this),this.publish("licenseerror",J,R,N,C))}; g.T.C8=function(){return this.X}; g.T.xI=function(J){var R=g.FT("auto",J,!1,"l");if(this.videoData.iQ){if(IJ(this.X,R))return}else if(XTE(this.X,J))return;this.X=R;this.publish("qualitychange");this.SP({updtlq:J})}; g.T.K7p=function(J){this.videoData.sabrLicenseConstraint=J}; g.T.Fk=function(){this.K.keySystemAccess&&this.element&&(this.ma?this.element.setMediaKeys(null).catch(g.G$):this.element.setMediaKeys(null));this.element=null;this.V=[];for(var J=g.K(this.J.values()),R=J.next();!R.done;R=J.next())R=R.value,R.unsubscribe("ctmp",this.hv,this),R.unsubscribe("keystatuseschange",this.r5,this),R.unsubscribe("licenseerror",this.yk,this),R.unsubscribe("newlicense",this.Lu,this),R.unsubscribe("newsession",this.D0,this),R.unsubscribe("sessionready",this.fu,this),R.unsubscribe("fairplay_next_need_key_info", this.M6,this),this.KC.T("html5_enable_vp9_fairplay")&&R.unsubscribe("qualitychange",this.xI,this),R.dispose();this.J.clear();this.S.removeAll();this.D.removeAll();this.heartbeatParams=null;g.al.prototype.Fk.call(this)}; g.T.fP=function(){for(var J={systemInfo:this.K.fP(),sessions:[]},R=g.K(this.J.values()),N=R.next();!N.done;N=R.next())J.sessions.push(N.value.fP());return J}; g.T.getInfo=function(){return this.J.size<=0?"no session":""+this.J.values().next().value.getInfo()+(this.U?"/KR":"")}; g.T.SP=function(J,R){R=R===void 0?!1:R;this.QO()||(lJ(J),(this.KC.Si()||R)&&this.publish("ctmp","drmlog",J))};g.M(n42,g.l);g.T=n42.prototype;g.T.ID=function(){return!!this.OZ}; g.T.Dl=function(){return this.J}; g.T.handleError=function(J){var R=this;drg(this,J);if((J.errorCode!=="html5.invalidstate"&&J.errorCode!=="fmt.unplayable"&&J.errorCode!=="fmt.unparseable"||!ZkE(this,J.errorCode,J.details))&&!rsf(this,J)){if(this.OB.nC!=="yt"&&Asn(this,J)&&this.videoData.qz&&(0,g.g9)()/1E3>this.videoData.qz&&this.OB.nC==="hm"){var N=Object.assign({e:J.errorCode},J.details);N.stalesigexp="1";N.expire=this.videoData.qz;N.init=this.videoData.s_/1E3;N.now=(0,g.g9)()/1E3;N.systelapsed=((0,g.g9)()-this.videoData.s_)/1E3; J=new PD(J.errorCode,N,2);this.RB.As(J.errorCode,2,"SIGNATURE_EXPIRED",lJ(J.details))}if(zi(J.severity)){var C;N=(C=this.RB.vC)==null?void 0:C.K.K;if(this.OB.T("html5_use_network_error_code_enums"))if(qH7(J)&&N&&N.isLocked())var X="FORMAT_UNAVAILABLE";else if(this.OB.S||J.errorCode!=="auth"||J.details.rc!==429)J.errorCode==="ump.spsrejectfailure"&&(X="HTML5_SPS_UMP_STATUS_REJECTED");else{X="TOO_MANY_REQUESTS";var u="6"}else qH7(J)&&N&&N.isLocked()?X="FORMAT_UNAVAILABLE":this.OB.S||J.errorCode!=="auth"|| J.details.rc!=="429"?J.errorCode==="ump.spsrejectfailure"&&(X="HTML5_SPS_UMP_STATUS_REJECTED"):(X="TOO_MANY_REQUESTS",u="6");this.RB.As(J.errorCode,J.severity,X,lJ(J.details),u)}else this.RB.publish("nonfatalerror",J),C=/^pp/.test(this.videoData.clientPlaybackNonce),this.us(J.errorCode,J.details),C&&J.errorCode==="manifest.net.connect"&&(J="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.g9)(),IK(J,"manifest",function(f){R.S=!0;R.u3("pathprobe",f)},function(f){R.us(f.errorCode, f.details)}))}}; g.T.u3=function(J,R){this.RB.xA().u3(J,R)}; g.T.us=function(J,R){R=lJ(R);this.RB.xA().us(J,R)};V1n.prototype.xX=function(J,R){return(R===void 0?0:R)?{rl:J?fk(this,J):tz,PX:J?wI7(this,J):tz,QTk:J?zHk(this,J):tz,Zbk:J?t1n(this,J.videoData):tz,EE:J?xr2(this,J.videoData,J):tz,GNk:J?lgE(this,J):tz}:{rl:J?fk(this,J):tz}}; V1n.prototype.T=function(J){return this.KC.T(J)};g.M(T3,g.l);T3.prototype.onError=function(J){if(J!=="player.fatalexception"||this.provider.T("html5_exception_to_health"))J==="sabr.fallback"&&(this.encounteredSabrFallback=!0),J.match(Ndq)?this.networkErrorCount++:this.nonNetworkErrorCount++}; T3.prototype.send=function(){if(!(this.V||this.K<0)){RME(this);var J=g.m0(this.provider)-this.K,R="PLAYER_PLAYBACK_STATE_UNKNOWN",N=this.playerState.uu;this.playerState.isError()?R=N&&N.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.h(this.playerState,2)?R="PLAYER_PLAYBACK_STATE_ENDED":g.h(this.playerState,64)?R="PLAYER_PLAYBACK_STATE_UNSTARTED":g.h(this.playerState,16)||g.h(this.playerState,32)?R="PLAYER_PLAYBACK_STATE_SEEKING":g.h(this.playerState,1)&&g.h(this.playerState, 4)?R="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.h(this.playerState,1)?R="PLAYER_PLAYBACK_STATE_BUFFERING":g.h(this.playerState,4)?R="PLAYER_PLAYBACK_STATE_PAUSED":g.h(this.playerState,8)&&(R="PLAYER_PLAYBACK_STATE_PLAYING");N=HM2[sU(this.provider.videoData)];a:switch(this.provider.KC.playerCanaryState){case "canary":var C="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":C="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:C="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var X=Ngf(this.provider), u=this.J<0?J:this.J-this.K;J=this.provider.KC.mu+36E5<(0,g.g9)();R={started:this.J>=0,stateAtSend:R,joinLatencySecs:u,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:C,playerCanaryStage:X,isAd:this.provider.videoData.isAd(),liveMode:N,hasDrm:!!g.Du(this.provider.videoData),isGapless:this.provider.videoData.W,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:iY(this.provider.videoData)};J||g.Mz("html5PlayerHealthEvent",R);this.V=!0;this.dispose()}}; T3.prototype.Fk=function(){this.V||this.send();window.removeEventListener("error",this.Ju);window.removeEventListener("unhandledrejection",this.Ju);g.l.prototype.Fk.call(this)}; var Ndq=/\bnet\b/;g.M(X8E,g.l);X8E.prototype.Fk=function(){g.l.prototype.Fk.call(this);u$Y(this)};var fM7=/[?&]cpn=/;var We7=[2,5,30];g.Lk=Fq(function(){var J="";try{var R=g.iu("CANVAS").getContext("webgl");R&&(R.getExtension("WEBGL_debug_renderer_info"),J=R.getParameter(37446),J=J.replace(/[ :]/g,"_"))}catch(N){}return J});g.M(g.vI,g.l);g.T=g.vI.prototype;g.T.Pm=function(){var J=g.m0(this.provider);Fe8(this,J)}; g.T.UT=function(){return this.G7}; g.T.Su=function(){return{x7:this.x7,Y7:this.Y7}}; g.T.jZ=function(J,R){this.x7=J;this.Y7=R}; g.T.Ws=function(J){if(!this.TW){this.TW=!0;var R="";switch(J){case 1:R="proximaui";break;case 2:R=I9E(this.provider.videoData)?"proximawpcc":this.provider.videoData.T("html5_enable_proxima")||this.provider.videoData.T("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:R="proximaauto"}R!==""&&S1(this,R)}}; g.T.Cp=function(J){this.K.lwc=[[J.Up?J.Up.toFixed():"",J.Q7?J.Q7.toFixed():"",J.G7?(J.G7*1E3).toFixed():"",J.YA?(J.YA*1E3).toFixed():"",J.kA?(J.kA*1E3).toFixed():""].join(":")]}; g.T.reportStats=function(J){J=J===void 0?NaN:J;if(!this.QO()&&(J=J>=0?J:g.m0(this.provider),["PL","B","S"].indexOf(this.Em)>-1&&(!g.rq(this.K)||J>=this.U+30)&&(g.k4(this,J,"vps",[this.Em]),this.U=J),!g.rq(this.K))){this.sequenceNumber===7E3&&g.G$(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){WI(this,J);var R=J,N=this.provider.RB.L3(),C=N.droppedVideoFrames||0,X=N.totalVideoFrames||0,u=C-this.x7,f=X&&!this.Y7;C>N.totalVideoFrames||u>5E3?DtQ(this,"html5.badframedropcount","df."+C+";tf."+ N.totalVideoFrames):(u>0||f)&&g.k4(this,R,"df",[u]);this.x7=C;this.Y7=X;this.W>0&&(g.k4(this,J,"glf",[this.W]),this.W=0);qv.isActive()&&(J=qv.UX(),Object.keys(J).length>0&&this.u3("profile",J));this.R1&&S1(this,"lwnmow");this.provider.KC.Si()&&this.provider.T("html5_record_now")&&this.u3("now",{wt:(0,g.g9)()});J={};this.provider.videoData.J&&(J.fmt=this.provider.videoData.J.itag,(R=this.provider.videoData.Z)&&R.itag!==J.fmt&&(J.afmt=R.itag));J.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&& (J.adcpn=this.adCpn);this.nC&&(J.addocid=this.nC);this.contentCpn&&(J.ccpn=this.contentCpn);this.ma&&(J.cdocid=this.ma);this.provider.videoData.cotn&&(J.cotn=this.provider.videoData.cotn);J.el=gO(this.provider.videoData);J.content_v=pA(this.provider.videoData);J.ns=this.provider.KC.nC;J.fexp=PT8(this.provider.KC.experiments).toString();J.cl=(702949575).toString();(R=this.provider.videoData.adFormat||this.adFormat)&&(J.adformat=R);(R=sU(this.provider.videoData))&&(J.live=R);this.provider.videoData.Ha()&& (J.drm=1,this.provider.videoData.U&&(J.drm_system=cQV[this.provider.videoData.U.flavor]||0),this.provider.videoData.qM&&(J.drm_product=this.provider.videoData.qM));MO()&&this.provider.videoData.S&&(J.ctt=this.provider.videoData.S,J.cttype=this.provider.videoData.O2,this.provider.videoData.mdxEnvironment&&(J.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(J.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.lk&&(J.dai_fallback= "1")):this.provider.videoData.B1?J.dai="cs":this.provider.videoData.Xd&&(J.dai="disabled");J.seq=this.sequenceNumber++;if(this.provider.videoData.iX){if(R=this.provider.videoData.iX,J&&R)for(R.ns==="3pp"&&(J.ns="3pp"),this.FV.has(R.ns)&&S1(this,"hbps"),R.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=R.shbpslc),N=g.K(Object.keys(R)),C=N.next();!C.done;C=N.next())C=C.value,this.j2.has(C)||(J[C]=R[C])}else J.event="streamingstats",J.docid=this.provider.videoData.videoId,J.ei=this.provider.videoData.eventId; this.isEmbargoed&&(J.embargoed="1");Object.assign(J,this.provider.KC.K);if(R=J.seq)R={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+R,serializedWatchEndpointLoggingContext:this.provider.videoData.Kq},this.serializedHouseBrandPlayerServiceLoggingContext&&(R.serializedHouseBrandPlayerServiceLoggingContext=IG(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(R.playerResponseCpn=this.provider.videoData.playerResponseCpn),HI.length&& (R.decoderInfo=HI),this.provider.RB.fL()&&(R.transitionStitchType=4,this.tN&&(R.timestampOffsetMsecs=this.tN)),this.remoteControlMode&&(R.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(R.remoteConnectedDevices=this.remoteConnectedDevices),R=g.QA(R,OQQ),R=g.SZ(R,4),this.K.qclc=[R];J=g.bD("//"+this.provider.KC.Qw+"/api/stats/qoe",J);N=R="";C=g.K(Object.keys(this.K));for(X=C.next();!X.done;X=C.next())X=X.value,this.K[X]===null?g.G$(new g.C3("Stats report key has invalid value", X)):(X="&"+X+"="+this.K[X].join(","),X.length>100?N+=X:R+=X);KeQ(this,J+R,N.replace(/ /g,"%20"))}this.K={}}}; g.T.RZ=function(J){this.R1=J}; g.T.Ow=function(){if(this.provider.videoData.U){var J=this.provider.videoData.U;S1(this,"eme-"+(J.keySystemAccess?"final":w8(J)?"ms":yO(J)?"ytfp":hI(J)?"safarifp":"nonfinal"))}}; g.T.V9=function(J){var R=g.m0(this.provider);if(!this.provider.KC.experiments.b3("html5_refactor_sabr_video_format_selection_logging")||J.K.id!==this.pC){var N=[J.K.id,J.J,this.pC,J.reason];J.token&&N.push(J.token);g.k4(this,R,"vfs",N);this.pC=J.K.id;N=this.provider.RB.getPlayerSize();if(N.width>0&&N.height>0){N=[Math.round(N.width),Math.round(N.height)];var C=g.CW();C>1&&N.push(C);g.k4(this,R,"view",N)}this.Xk||(this.provider.KC.Si()&&S1(this,"rqs2"),this.provider.videoData.K&&D9(this.provider.videoData.K)&& (this.K.preload=["1"]));this.V=this.Xk=!0}J.reason==="m"&&++this.m7===100&&sCB(this,2);g.k4(this,R,"vps",[this.Em]);this.reportStats(R)}; g.T.Fy=function(J){var R=g.m0(this.provider);if(this.provider.KC.experiments.b3("html5_refactor_sabr_audio_format_selection_logging")){R=J.K;var N=[R.audio&&R.video?R.Qk?R.Qk:"":R.id];R.Do&&R.Do.id&&N.push(R.Do.id);R=N.join(";");R!==this.D&&(N=[R,this.D,J.reason],J.token&&N.push(J.token),g.k4(this,g.m0(this.provider),"afs",N),this.D=R)}else J.K.id!==this.D&&(N=[J.K.id,this.D,J.reason],J.token&&N.push(J.token),g.k4(this,R,"afs",N),this.D=J.K.id)}; g.T.S7=oQ(43);g.T.UP=function(J){this.isEmbargoed=J}; g.T.tM=oQ(29);g.T.KR=oQ(33);g.T.onPlaybackRateChange=function(J){var R=g.m0(this.provider);J&&J!==this.VR&&(g.k4(this,R,"rate",[J]),this.VR=J);this.reportStats(R)}; g.T.Je=oQ(25);g.T.getPlayerState=function(J){if(g.h(J,128))return"ER";if(g.h(J,2048))return"B";if(g.h(J,512))return"SU";if(g.h(J,16)||g.h(J,32))return"S";if(J.isOrWillBePlaying()&&g.h(J,64))return"B";var R=Cxf[jl(J)];g.eG(this.provider.KC)&&R==="B"&&this.provider.RB.getVisibilityState()===3&&(R="SU");R==="B"&&g.h(J,4)&&(R="PB");return R}; g.T.Fk=function(){g.l.prototype.Fk.call(this);g.dp(this.S);g.dp(this.YA)}; g.T.Ga=function(J){this.isOffline=J;g.k4(this,g.m0(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.T.u3=function(J,R,N){var C=this.K.ctmp||[],X=this.CY.indexOf(J)!==-1;X||this.CY.push(J);if(!N||!X){var u=typeof R!=="string"?lJ(R):R;u=BgY(u);if(!N&&!/^t[.]/.test(u)){var f=g.m0(this.provider)*1E3;u="t."+f.toFixed()+";"+u}C.push(J+":"+u);this.logger.debug(function(){return"ctmp "+J+" "+u}); this.K.ctmp=C;aMn(this);return f}}; g.T.Qm=function(J,R,N){this.Z={NNB:Number(this.u3("glrem",{nst:J.toFixed(),rem:R.toFixed(),ca:+N})),iI:J,GTa:R,isAd:N}}; g.T.Bs=function(J,R,N){g.k4(this,g.m0(this.provider),"ad_playback",[J,R,N])}; g.T.resume=function(){var J=this;this.provider.KC.Si()&&this.u3("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.S)?QCP(this):this.S=g.OE(function(){J.reportStats()},1E4)}; var h8={},Cxf=(h8[5]="N",h8[-1]="N",h8[3]="B",h8[0]="EN",h8[2]="PA",h8[1]="PL",h8[-1E3]="ER",h8[1E3]="N",h8),HI=[];dt7.prototype.M9=function(){return this.K}; dt7.prototype.update=function(){if(this.D){var J=this.provider.RB.hT(this.provider.videoData.clientPlaybackNonce)||0,R=g.m0(this.provider);J>=this.provider.RB.getDuration()-.1&&(this.previouslyEnded=!0);if(J!==this.K||YJE(this,J,R)){var N;if(!(N=JR-this.Sp+2||YJE(this,J,R))){N=this.provider.RB.getVolume();var C=N!==this.W,X=this.provider.RB.isMuted()?1:0;X!==this.X?(this.X=X,N=!0):(!C||this.Z>=0||(this.W=N,this.Z=R),N=R-this.Z,this.Z>=0&&N>2?(this.Z=-1,N=!0):N=!1)}N&&(EH(this),this.V= J);this.Sp=R;this.K=J}}};rZB.prototype.send=function(J){var R=this;if(!this.HC){var N=mt8(this),C=g.bD(this.uri,N);this.KC.T("vss_through_gel_double")&&Vc7(C);this.ma&&!this.KC.T("html5_simplify_pings")?Pbn(this,C):jCB(this,J).then(function(X){R.ma&&(X=X||{},X.method="POST",X.postParams={atr:R.attestationResponse});kff(C,X,{token:R.nC,Jm:R.EB,mdxEnvironment:R.mdxEnvironment},R.KC,J,R.tN,R.isFinal&&R.NE||R.VO||R.V&&R.t2)}); this.HC=!0}}; rZB.prototype.J=function(J){J===void 0&&(J=NaN);return Number(J.toFixed(3)).toString()}; var yo={},p8f=(yo.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,yo.LIVING_ROOM_APP_MODE_MAIN=1,yo.LIVING_ROOM_APP_MODE_KIDS=2,yo.LIVING_ROOM_APP_MODE_MUSIC=3,yo.LIVING_ROOM_APP_MODE_UNPLUGGED=4,yo.LIVING_ROOM_APP_MODE_GAMING=5,yo),GK={},Utg=(GK.EMBEDDED_PLAYER_MODE_UNKNOWN=0,GK.EMBEDDED_PLAYER_MODE_DEFAULT=1,GK.EMBEDDED_PLAYER_MODE_PFP=2,GK.EMBEDDED_PLAYER_MODE_PFL=3,GK);g.M(Kk,g.l);g.T=Kk.prototype;g.T.zN=function(){this.K.update();bpg(this)&&(eMY(this),w8Q(this),this.z4())}; g.T.Fk=function(){g.l.prototype.Fk.call(this);nk(this);qJE(this.K)}; g.T.fP=function(){return mt8(au(this,"playback"))}; g.T.z4=function(){this.provider.videoData.D.eventLabel=gO(this.provider.videoData);this.provider.videoData.D.playerStyle=this.provider.KC.playerStyle;this.provider.videoData.Xp&&(this.provider.videoData.D.feature="pyv");this.provider.videoData.D.vid=this.provider.videoData.videoId;var J=this.provider.videoData.D;var R=this.provider.videoData;R=R.isAd()||!!R.Xp;J.isAd=R}; g.T.eV=function(J){var R=au(this,"engage");R.dn=J;return g5B(R,Nv7(this.provider))};RO7.prototype.isEmpty=function(){return this.endTime===this.startTime};sH.prototype.T=function(J){return this.KC.T(J)}; sH.prototype.getCurrentTime=function(J){if(this.T("html5_ssap_current_time_for_logging_refactor")){var R=this.RB.fL();if(R&&(J=J||R.lY()))return pM(R,J)}else if(g.vJ(this.videoData)){var N=this.RB.fL();if(N)return J=this.RB.getCurrentTime(),N=(((R=Qj(N,J*1E3))==null?void 0:R.jS)||0)/1E3,J-N}return this.RB.getCurrentTime()}; sH.prototype.xT=function(J){if(this.T("html5_ssap_current_time_for_logging_refactor")){var R=this.RB.fL();if(R&&(J=J||R.lY()))return pM(R,J)}else if(g.vJ(this.videoData)){var N=this.RB.fL();if(N)return J=this.RB.xT(),N=(((R=Qj(N,J*1E3))==null?void 0:R.jS)||0)/1E3,J-N}return this.RB.xT()}; var Cpg={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.M(g.BI,g.l);g.T=g.BI.prototype;g.T.zN=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Rm){var J;(J=this.V.get(this.Rm))==null||J.zN()}else this.K&&this.K.zN()}; g.T.UP=function(J){this.qoe&&this.qoe.UP(J)}; g.T.tM=oQ(28);g.T.KR=oQ(32);g.T.us=function(J,R){this.qoe&&DtQ(this.qoe,J,R);if(this.J)this.J.onError(J)}; g.T.V9=function(J){this.qoe&&this.qoe.V9(J)}; g.T.Fy=function(J){this.qoe&&this.qoe.Fy(J)}; g.T.onPlaybackRateChange=function(J){if(this.qoe)this.qoe.onPlaybackRateChange(J);this.K&&EH(this.K.K)}; g.T.S7=oQ(42);g.T.u3=function(J,R,N){this.qoe&&this.qoe.u3(J,R,N)}; g.T.Qm=function(J,R,N){this.qoe&&this.qoe.Qm(J,R,N)}; g.T.Ws=function(J){var R;(R=this.qoe)==null||R.Ws(J)}; g.T.Cp=function(J){var R;(R=this.qoe)==null||R.Cp(J)}; g.T.RZ=function(J){this.qoe&&this.qoe.RZ(J)}; g.T.Bs=function(J,R,N){this.qoe&&this.qoe.Bs(J,R,N)}; g.T.Je=oQ(24);g.T.UT=function(){if(this.qoe)return this.qoe.UT()}; g.T.fP=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Rm){var J,R;return(R=(J=this.V.get(this.Rm))==null?void 0:J.fP())!=null?R:{}}return this.K?this.K.fP():{}}; g.T.Su=function(){var J;return(J=this.qoe)==null?void 0:J.Su()}; g.T.jZ=function(J,R){var N;(N=this.qoe)==null||N.jZ(J,R)}; g.T.eV=function(J){return this.K?this.K.eV(J):function(){}}; g.T.z4=function(){this.K&&this.K.z4()}; g.T.getVideoData=function(){return this.provider.videoData}; g.T.resume=function(){this.qoe&&this.qoe.resume()};g.M(Zg,g.l); Zg.prototype.Wl=function(J,R,N){if(this.K.has(J)){var C=this.K.get(J);if(R.videoId&&!XYB(C))this.J.u3("ssap",{rlc:J}),LYE(this,J);else return}if(!this.K.has(J)){C=new sH(R,this.KC,this.RB);var X=Math.round(g.m0(this.J.provider)*1E3);C=new g.BI(C,X);XYB(C)||this.J.u3("nqv",{vv:R.videoId});X=this.J.getVideoData();this.K.set(J,C);if(C.qoe){var u=C.qoe,f=X.videoId||"";u.contentCpn=X.clientPlaybackNonce;u.ma=f}it8(C);N===2&&(this.KC.T("html5_log_ad_playback_docid")?(N=this.J,N.qoe&&(N=N.qoe,C=R.Xn||"", X=R.breakType||0,R=R.videoId||"",u=this.KC.nC||"yt",g.k4(N,g.m0(N.provider),"ad_playback",[J,C,X,R,u]))):this.J.Bs(J,R.Xn||"",R.breakType||0))}}; Zg.prototype.xA=function(J){J=J||this.Rm;return this.K.get(J)||this.J};g.M(d6,g.l);g.T=d6.prototype; g.T.KL=function(J,R){this.sync();R&&this.K.array.length>=2E3&&this.k_("captions",1E4);R=this.K;if(J.length>1&&J.length>R.array.length)R.array=R.array.concat(J),R.array.sort(R.K);else for(var N=g.K(J),C=N.next();!C.done;C=N.next())C=C.value,!R.array.length||R.K(C,R.array[R.array.length-1])>0?R.array.push(C):g.fE(R.array,C,R.K);J=g.K(J);for(R=J.next();!R.done;R=J.next())R=R.value,R.namespace==="ad"&&this.Z("ssap",{acrsid:R.getId(),acrsst:R.start,acrset:R.end,acrscpt:R.playerType});this.V=NaN;this.sync()}; g.T.uY=function(J){J.length>1E4&&g.G$(new g.C3("Over 10k cueRanges removal occurs with a sample: ",J[0]));if(!this.QO()){for(var R=g.K(J),N=R.next();!N.done;N=R.next())(N=N.value)&&N.namespace==="ad"&&this.Z("ssap",{rcrid:N.getId(),rcst:N.start,rcet:N.end,rcpt:N.playerType});var C=new Set(J);this.J=this.J.filter(function(X){return!C.has(X)}); Q37(this.K,C);this.sync()}}; g.T.k_=function(J,R){var N=(isNaN(this.V)?g.h(this.S(),2)?0x8000000000000:this.W()*1E3:this.V)-R;R=this.D9().filter(function(C){return C.namespace===J&&C.endthis.K,u=g.h(N,8)&&g.h(N,16),f=this.RB.nJ().isBackground()||N.isSuspended();pk(this,this.oB,u&&!f,X,"qoe.slowseek",function(){},"timeout"); var H=isFinite(this.K);H=u&&H&&xjE(R,this.K);var k=!C||Math.abs(C-this.K)>10,v=this.KC.T("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),W=C===0&&this.J&&[11,10].includes(this.J);pk(this,this.EB,H&&k&&!f&&(!v||!W),X,"qoe.slowseek",function(){R.seekTo(J.K)},"set_cmt"); k=H&&Qp(R.BV(),this.K);var S=this.RB.vC;H=!S||!S.policy.HC;var L=.001;iY(this.RB.getVideoData())&&(L=g.di(this.KC.experiments,"html5_sabr_jiggle_cmt_ms")/1E3);var I=function(){R.seekTo(J.K+L)}; pk(this,this.l3,k&&H&&!f,X,"qoe.slowseek",I,"jiggle_cmt");H=function(){return h4(J.RB)}; pk(this,this.HC,k&&!f,X,"qoe.slowseek",H,"new_elem");k=rD(N);v=N.isBuffering();var F=R.BV(),a=a6(F,C),n=a>=0&&F.end(a)>C+5,B=k&&v&&n;W=this.RB.getVideoData();pk(this,this.pC,C<.002&&this.K<.002&&u&&g.eG(this.KC)&&g.UU(W)&&!f,X,"qoe.slowseek",H,"slow_seek_shorts");pk(this,this.nC,W.He()&&u&&!f&&!W.ma,X,"qoe.slowseek",H,"slow_seek_gapless_shorts");pk(this,this.ma,B&&!f,k&&!v,"qoe.longrebuffer",I,"jiggle_cmt");pk(this,this.tN,B&&!f,k&&!v,"qoe.longrebuffer",H,"new_elem_nnr");if(S){var Z=S.getCurrentTime(); u=R.TC();u=pdf(u,Z);u=!S.isSeeking()&&C===u;pk(this,this.YA,k&&v&&u&&!f,k&&!v&&!u,"qoe.longrebuffer",function(){R.seekTo(Z)},"seek_to_loader")}u={}; I=a6(F,Math.max(C-3.5,0));B=I>=0&&C>F.end(I)-1.1;var A=I>=0&&I+1=0&&B&&A<11;u.close2edge=B;u.gapsize=A;u.buflen=F.length;this.J&&(u.seekSour=this.J);if(I=this.RB.fL()){B=I.lY();A=B!==Qj(I,C*1E3).clipId;var V=g.di(this.KC.experiments,"html5_ssap_skip_seeking_offset_ms"),p=(KJ(I,B)+V)/1E3;pk(this,this.PC,A&&k&&v&&!f,k&&!v,"qoe.longrebuffer",function(){R.seekTo(p)},"ssap_clip_not_match")}pk(this,this.VO,k&&v&&!f,k&&!v,"qoe.longrebuffer", function(){},"timeout",u); u=N.isSuspended();u=zl(this.RB)&&!u;pk(this,this.D,u,!u,"qoe.start15s",function(){J.RB.aT("ad")},"ads_preroll_timeout"); I=C-this.Z<.5;var b;u=!((b=this.RB.fL())==null||!b.Hd());A=(B=W.isAd()||u&&this.KC.experiments.b3("html5_ssap_skip_slow_ad"))&&k&&!v&&I;b=function(){var w=J.RB,RQ=g.vJ(w.videoData)&&w.k8,$E=w.wk.Us();($E&&w.videoData.isAd()&&$E.getVideoData().B1===w.getVideoData().B1||!w.videoData.W7)&&!RQ?w.As("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+w.videoData.videoId):TH(w.videoData,"html5_ssap_skip_slow_ad")&&RQ&&w.k8.Hd()&&(w.us(new PD("ssap.transitionfailure",{cpn:Qj(w.k8,w.xT()).clipId,pcpn:w.k8.lY(), cmt:w.xT()})),w=w.k8,RQ=w.RB.xT(),(RQ=s7Y(w,RQ))&&aHn(w,RQ.y7()/1E3))}; pk(this,this.GW,A,!A,"ad.rebuftimeout",b,"skip_slow_ad");I=B&&v&&Qp(R.BV(),C+5)&&I;pk(this,this.R1,I&&!f,!I,"ad.rebuftimeout",b,"skip_slow_ad_buf");b=N.isOrWillBePlaying()&&g.h(N,64)&&!f;pk(this,this.VK,b,X,"qoe.start15s",function(){},"timeout"); b=!!S&&!S.Mp&&N.isOrWillBePlaying();pk(this,this.G7,b,X,"qoe.start15s",H,"newElemMse");b=sO(F,0);I=g.h(N,16)||g.h(N,32);I=!f&&N.isOrWillBePlaying()&&v&&!I&&(g.h(N,64)||C===0)&&b>5;pk(this,this.Xk,g.UU(W)&&I,k&&!v,"qoe.longrebuffer",function(){J.RB.CV()},"reset_media_source"); pk(this,this.eQ,g.UU(W)&&I,k&&!v,"qoe.longrebuffer",H,"reset_media_element");this.Z===0&&(this.S=C);I=v&&this.K===0&&C>1&&C===this.S;pk(this,this.T7,g.UU(W)&&I,k&&!v,"qoe.slowseek",function(){R.seekTo(0)},"reseek_after_time_jump"); f=N.isOrWillBePlaying()&&!f;n=Sc(this.RB)-C<6&&!n&&this.RB.sM();pk(this,this.X,W.He()&&f&&v&&n,k&&!v,"qoe.longrebuffer",function(){h4(J.RB,!1,!0)},"handoff_end_long_buffer_reload"); S=(S==null?void 0:Bc7(S))||NaN;S=F.length>1||!isNaN(S)&&S-.1<=C;pk(this,this.W,Fr(W)&&f&&v&&S,k&&!v,"qoe.longrebuffer",H,"gapless_slice_append_stuck");S=a>=0&&F.end(a)>=2;f=Fr(W)&&this.RB.hK&&S&&!W.ma&&f&&(v||g.h(N,8)&&g.h(N,16));pk(this,this.dn,f,X,"qoe.start15s",H,"gapless_slow_start");N=!!(u&&b>5&&N.isPlaying()&&C<.1);pk(this,this.TW,N,C>.5&&k,"qoe.longrebuffer",H,"ssap_stuck_in_ad_beginning");this.Z=C;this.U.start()}}; UH.prototype.us=function(J,R,N){R=this.fP(R);R.wn=N;R.wdup=this.V[J]?"1":"0";this.RB.us(new PD(J,R));this.V[J]=!0}; UH.prototype.fP=function(J){J=Object.assign(this.RB.fP(!0),J.fP());this.K&&(J.stt=this.K.toFixed(3));this.RB.getVideoData().isLivePlayback&&(J.ct=this.RB.getCurrentTime().toFixed(3),J.to=this.RB.uS().toFixed(3));delete J.uga;delete J.euri;delete J.referrer;delete J.fexp;delete J.vm;return J}; V6.prototype.reset=function(){this.K=this.J=this.V=this.startTimestamp=0;this.Z=!1}; V6.prototype.test=function(J){if(!this.U||this.J)return!1;if(!J)return this.reset(),!1;J=(0,g.g9)();if(!this.startTimestamp)this.startTimestamp=J,this.V=0;else if(this.V>=this.U)return this.J=J,!0;this.V+=1;return!1}; V6.prototype.fP=function(){var J={},R=(0,g.g9)();this.startTimestamp&&(J.wsd=(R-this.startTimestamp).toFixed());this.J&&(J.wtd=(R-this.J).toFixed());this.K&&(J.wssd=(R-this.K).toFixed());return J};g.M(zOf,g.l);g.T=zOf.prototype;g.T.setMediaElement=function(J){(this.mediaElement=J)?(this.mediaElement&&(this.U||this.Z||!this.mediaElement.nN()||this.seekTo(.01,{hL:"seektimeline_setupMediaElement"})),l9(this)):z3(this)}; g.T.getCurrentTime=function(){if(PI(this.RB)){if(!isNaN(this.J))return this.J}else if(!isNaN(this.J)&&isFinite(this.J))return this.J;return this.mediaElement&&N7B(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.Z||0}; g.T.Sx=function(){return this.eQ}; g.T.xT=function(){return this.getCurrentTime()-this.uS()}; g.T.Nj=function(){return this.K?this.K.Nj():Infinity}; g.T.isAtLiveHead=function(J){if(!this.K)return!1;J===void 0&&(J=this.getCurrentTime());return j1(this.K,J)}; g.T.Cm=function(){return!!this.K&&this.K.Cm()}; g.T.seekTo=function(J,R){var N=R===void 0?{}:R;R=N.Al===void 0?!1:N.Al;var C=N.ZH===void 0?0:N.ZH;var X=N.ex===void 0?!1:N.ex;var u=N.g9===void 0?0:N.g9;var f=N.hL===void 0?"":N.hL;var H=N.seekSource===void 0?void 0:N.seekSource;var k=N.o6===void 0?!1:N.o6;var v=N.Kj===void 0?!1:N.Kj;N=N.b8===void 0?!1:N.b8;k&&(J+=this.uS());iY(this.videoData)&&this.T("html5_sabr_enable_utc_seek_requests")&&H===29&&(this.eQ=void 0);k=J=this.AY())||!g.qn(this.videoData),W||(a={st:a,mst:this.AY()},this.K&&this.T("html5_high_res_seek_logging")&&(a.ht=this.K.Nj(),a.adft=mTQ(this.K)),this.RB.u3("seeknotallowed",a)),a=W));if(!a)return this.V&&(this.V=null,oR2(this)),QS(this.getCurrentTime());a=.005;v&&this.T("html5_sabr_seek_no_shift_tolerance")&&(a=0);if(Math.abs(J-this.J)<=a&&this.dn)return this.U;f&&(a=J,(this.KC.Si()||this.T("html5_log_seek_reasons"))&& this.RB.u3("seekreason",{reason:f,tgt:a}));H&&(this.tN.J=H);this.dn&&z3(this);this.U||(this.U=new lM);J&&!isFinite(J)&&hO2(this,!1);(f=N||k)||(f=J,f=!(this.videoData.isLivePlayback&&this.videoData.V&&!this.videoData.V.K&&!(this.mediaElement&&this.mediaElement.UV()>0&&z0(this.mediaElement)>0)||kz(this.videoData)&&this.MN()===this.AY(!1)?0:isFinite(f)||!kz(this.videoData)));f||(J=w6(this,J,X));J&&!isFinite(J)&&hO2(this,!1);this.Z=J;this.l3=u;this.J=J;this.W=0;this.K&&(X=this.K,u=J,VxE(X,u,!1),g0B(X, u));X=this.RB;u=J;f={Al:R,seekSource:H};X.Ci.Z=u;N=X.mW;N.mediaTime=u;N.K=!0;f.Al&&RPk(X,f);f=u>X.videoData.endSeconds&&u>X.videoData.limitedPlaybackDurationInSeconds;X.pw&&f&&isFinite(u)&&UZQ(X);uR.start&&UZQ(this.RB);return this.U}; g.T.AY=function(J){if(!this.videoData.isLivePlayback)return svE(this.RB);var R;return wO(this.videoData)&&((R=this.mediaElement)==null?0:R.isPaused())&&this.videoData.K?(J=this.getCurrentTime(),huf(this.Il(J)*1E3)+J):this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&iY(this.videoData)&&this.videoData.K?J?this.videoData.K.dn||0:this.videoData.K.iY||0:kz(this.videoData)&&this.videoData.PC&&this.videoData.K?this.videoData.K.AY()+this.timestampOffset:this.videoData.V&&this.videoData.V.K?!J&& this.K?this.K.Nj():svE(this.RB)+this.timestampOffset:this.mediaElement?NY()?huf(this.mediaElement.mH().getTime()):z0(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.T.MN=function(){if(g.vJ(this.videoData)){var J=this.RB;g.vJ(J.videoData);var R,N;return(N=(R=J.k8)==null?void 0:R.MN())!=null?N:J.videoData.MN()}if(this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&iY(this.videoData)){var C;return((C=this.videoData.K)==null?void 0:C.H_)||0}R=this.videoData?this.videoData.MN()+this.timestampOffset:this.timestampOffset;return wO(this.videoData)&&this.videoData.K&&(N=Number((J=this.videoData.progressBarStartPosition)==null?void 0:J.utcTimeMillis)/1E3,J= this.getCurrentTime(),J=this.Il(J)-J,!isNaN(N)&&!isNaN(J))?Math.max(R,N-J):R}; g.T.vF=function(){this.U||this.seekTo(this.Z,{hL:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.T.u6=function(){return this.dn&&!isFinite(this.J)}; g.T.Fk=function(){y$E(this,null);this.tN.dispose();g.l.prototype.Fk.call(this)}; g.T.fP=function(){var J={};this.vC&&Object.assign(J,this.vC.fP());this.mediaElement&&Object.assign(J,this.mediaElement.fP());return J}; g.T.ZZ=function(J){this.timestampOffset=J}; g.T.getStreamTimeOffset=function(){return kz(this.videoData)?0:this.videoData.K?this.videoData.K.getStreamTimeOffset():0}; g.T.uS=function(){return this.timestampOffset}; g.T.Il=function(J){return this.videoData&&this.videoData.K?this.videoData.K.Il(J-this.timestampOffset):NaN}; g.T.GC=function(){if(!this.mediaElement)return 0;if(Aq(this.videoData)){var J=this.mediaElement,R=J.BV();J=(DS(R)>0&&J.getDuration()?R.end(R.length-1):0)+this.timestampOffset-this.MN();R=this.AY()-this.MN();return Math.max(0,Math.min(1,J/R))}return this.mediaElement.GC()}; g.T.Yk=function(J){this.S&&(this.S.K=J)}; g.T.zw=function(J,R){this.RB.u3("requestUtcSeek",{time:J});iY(this.videoData)&&this.T("html5_sabr_enable_utc_seek_requests")&&(this.eQ=J);var N;(N=this.vC)==null||N.zw(J);R&&(this.ma=R)}; g.T.i$=function(J){iY(this.videoData)&&this.T("html5_sabr_enable_utc_seek_requests")&&(this.eQ=void 0);if(this.ma)this.RB.u3("utcSeekingFallback",{source:"streamTime",timeSeconds:this.ma}),this.RB.seekTo(this.ma,{hL:"utcSeekingFallback_streamTime"}),this.ma=0;else{var R=this.getCurrentTime();isNaN(R)||(J=this.Il(R)-J,R-=J,this.RB.u3("utcSeekingFallback",{source:"estimate",timeSeconds:R}),this.RB.seekTo(R,{hL:"utcSeekingFallback_estimate"}))}}; g.T.IR=function(){this.ma=0}; g.T.T=function(J){return this.KC&&this.KC.T(J)};g.M(hs,g.l);hs.prototype.start=function(){this.J.start()}; hs.prototype.stop=function(){this.J.stop()}; hs.prototype.clear=function(){for(var J=g.K(this.K.values()),R=J.next();!R.done;R=J.next())R.value.clear()}; hs.prototype.sample=function(){for(var J=g.K(this.V),R=J.next();!R.done;R=J.next()){var N=g.K(R.value);R=N.next().value;N=N.next().value;this.K.has(R)||this.K.set(R,new T7E(Xvf.has(R)));this.K.get(R).update(N())}this.J.start()}; var Xvf=new Set(["networkactivity"]);T7E.prototype.update=function(J){this.K?(this.buffer.add(J-this.r_||0),this.r_=J):this.buffer.add(J)}; T7E.prototype.clear=function(){this.buffer.clear();this.r_=0};b9.prototype.B$=function(){return this.started}; b9.prototype.start=function(){this.started=!0}; b9.prototype.reset=function(){this.finished=this.started=!1};var WoB=!1;g.M(g.oC,g.al);g.T=g.oC.prototype;g.T.Fk=function(){this.logger.debug("dispose");g.dp(this.cJ);QuE(this.Fe);this.visibility.unsubscribe("visibilitystatechange",this.Fe);OoQ(this);ib(this);g.Nh.An(this.zP);this.uQ();this.cw=null;g.XV(this.videoData);g.XV(this.MV);g.XV(this.XO);g.XV(this.aI);g.iP(this.unQ);this.pw=null;g.al.prototype.Fk.call(this)}; g.T.Bs=function(J,R,N,C,X){if(this.KC.T("html5_log_ad_playback_docid")){var u=this.xA();if(u.qoe){u=u.qoe;var f=this.KC.nC||"yt";g.k4(u,g.m0(u.provider),"ad_playback",[J,R,N,X,f])}}else this.xA().Bs(J,R,N);this.T("html5_log_media_perf_info")&&this.u3("adloudness",{ld:C.toFixed(3),cpn:J})}; g.T.UD=function(){var J;return(J=this.vC)==null?void 0:J.UD()}; g.T.GF=function(){var J;return(J=this.vC)==null?void 0:J.GF()}; g.T.Zx=function(){var J;return(J=this.vC)==null?void 0:J.Zx()}; g.T.QV=function(){var J;return(J=this.vC)==null?void 0:J.QV()}; g.T.Ha=function(){return this.videoData.Ha()}; g.T.w_=function(){return this.Xo}; g.T.Wl=function(){!this.z6||this.z6.QO();this.z6=new g.BI(new sH(this.videoData,this.KC,this));this.Xo=new Zg(this.KC,this,this.z6)}; g.T.getVideoData=function(){return this.videoData}; g.T.N=function(){return this.KC}; g.T.xX=function(J){return this.Bd.xX(this.cw,J===void 0?!1:J)}; g.T.xA=function(J){if(J)a:{for(var R=this.Xo,N=g.K(R.K.values()),C=N.next();!C.done;C=N.next())if(C=C.value,C.getVideoData().videoId===J){J=C;break a}J=R.J}else J=this.Xo.xA();return J}; g.T.nJ=function(){return this.visibility}; g.T.oG=function(){return this.mediaElement}; g.T.JO=function(){if(this.videoData.isLoaded()){var J=this.MV;g.di(J.OB.experiments,"html5_player_min_build_cl")>0&&g.di(J.OB.experiments,"html5_player_min_build_cl")>702949575&&YHP(J,"oldplayer");r1Y(this)}else this.videoData.LJ||this.videoData.NI?this.jL&&g.eG(this.KC)&&this.videoData.isLivePlayback||(this.videoData.LJ?LWE(this.videoData):(J=this.xA(),J.qoe&&(J=J.qoe,S1(J,"protected"),J.provider.videoData.U?J.Ow():J.provider.videoData.subscribe("dataloaded",J.Ow,J)),WWY(this.videoData))):!this.videoData.loading&& this.XI&&dZ7(this)}; g.T.fp=function(J){this.k8=J;this.vC&&this.vC.fp(J)}; g.T.Wt=oQ(15);g.T.isFullscreen=function(){return this.visibility.isFullscreen()}; g.T.isBackground=function(){return this.visibility.isBackground()}; g.T.sendAbandonmentPing=function(){g.h(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.HJ(!0),OoQ(this),g.Nh.An(this.zP))}; g.T.lT=function(){$TE(this.xA())}; g.T.As=function(J,R,N,C,X,u){this.logger.debug(function(){return"set player error: ec="+J+", detail="+X}); var f,H;g.AL(KgP,N)?f=N:N?H=N:f="GENERIC_WITHOUT_LINK";C=(C||"")+(";a6s."+mM());if(J==="auth"||J==="drm.auth"||J==="heartbeat.stop")N&&(C+=";r."+N.replaceAll(" ","_")),u&&(C+="sr."+u.replaceAll(" ","_"));R={errorCode:J,errorDetail:X,errorMessage:H||g.jx[f]||"",Wh:f,l4:u||"",Ur:C,rh:R,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=J;X$(this,"dataloaderror");this.FD(ZX(this.playerState,128,R));g.Nh.An(this.zP);ib(this);this.Qd()}; g.T.aT=function(J){this.Ni=this.Ni.filter(function(R){return J!==R}); this.logger.debug(function(){return"set preroll ready for "+J}); g.vJ(this.videoData)&&!this.aW()&&this.qR.S8("pl_pr");this.Zq.B$()&&A17(this)}; g.T.aW=function(){var J;(J=!!this.Ni.length)||(J=this.Cb.K.array[0],J=!!J&&J.start<=-0x8000000000000);return J}; g.T.Cm=function(){return this.Ci.Cm()}; g.T.isPlaying=function(){return this.playerState.isPlaying()}; g.T.KZ=function(){return this.playerState.KZ()&&this.videoData.ZY}; g.T.getPlayerState=function(){return this.playerState}; g.T.getPlayerType=function(){return this.playerType}; g.T.getPreferredQuality=function(){if(this.cw){var J=this.cw;J=J.videoData.MA.compose(J.videoData.TL);J=KP(J)}else J="auto";return J}; g.T.G3=oQ(19);g.T.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.T.setMediaElement=function(J){this.logger.debug("set media element");if(this.mediaElement&&J.Ov()===this.mediaElement.Ov()&&(J.isView()||this.mediaElement.isView())){if(J.isView()||!this.mediaElement.isView())g.pI(this.Ma),this.mediaElement=J,this.mediaElement.RB=this,iM8(this),this.Ci.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.uQ();if(!this.playerState.isError()){var R=qR(this.playerState,512);g.h(R,8)&&!g.h(R,2)&&(R=dD(R,1));J.isView()&&(R=qR(R,64));this.FD(R)}this.mediaElement= J;this.mediaElement.RB=this;$C(this.KC)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);iM8(this);this.Ci.setMediaElement(this.mediaElement);this.T("html5_prewarm_media_source")&&!this.MV.ID()&&ypE(this.mediaElement)}}; g.T.uQ=function(J,R,N){J=J===void 0?!1:J;R=R===void 0?!1:R;N=N===void 0?!1:N;this.logger.debug("remove media element");if(this.mediaElement){var C=this.getCurrentTime();C>0&&(this.Ci.Z=C);this.Ci.setMediaElement(null);!J&&Vp(this)?y1B(this):k5(this,N);this.vC&&(VB(this.vC),H8(this,R));this.JB.stop();if(this.mediaElement&&(!this.Zq.B$()||this.playerState.isError()||g.h(this.playerState,2)||this.FD(dD(this.playerState,512)),this.mediaElement)){g.pI(this.Ma);if(J||!this.mediaElement.isView())this.qR.Kk("mesv_s"), this.mediaElement.stopVideo(),W8(this);this.mediaElement=this.mediaElement.RB=null}}}; g.T.playVideo=function(J,R){J=J===void 0?!1:J;R=R===void 0?!1:R;var N=this,C,X,u,f,H,k;return g.Y(function(v){if(v.K==1){N.logger.debug("start play video");N.T("html5_enable_ssap_autoplay_debug_logging")&&N.u3("ssap",{playv:J});var W=window.google_image_requests;W&&W.length>10&&(window.google_image_requests=W.slice(-10));if(g.h(N.playerState,128))return v.return();if(N.MV.Dl())return N.publish("signatureexpired"),v.return();N.mediaElement&&OH(N.xA());gRE(N);(g.h(N.playerState,64)||J)&&N.FD(dD(N.playerState, 8));return N.Zq.finished&&N.mediaElement?N.cw||!N.Rj?v.ZM(2):g.q(v,N.Rj,3):v.return()}if(v.K!=2&&g.h(N.playerState,128))return v.return();if(!N.videoData.V)return N.videoData.isLivePlayback&&!g.WH(N.KC.U,!0)?(C="html5.unsupportedlive",X=2):(C=N.videoData.Ha()?"fmt.unplayable":"fmt.noneavailable",X=1),g.G$(Error("selectableFormats")),N.As(C,X,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),v.return();if(N.Zy()&&N.videoData.V.K)return N.logger.debug("rebuild playbackData for airplay"), v.return(Cp(N));if(PI(N))W=N.Ci,HJ(W.videoData)?!W.isAtLiveHead(W.getCurrentTime())&&W.Cm()&&W.RB.seekTo(Infinity,{hL:"seektimeline_peggedToLive",seekSource:34}):g.vJ(W.videoData)&&W.getCurrentTime()=0?J:this.getCurrentTime()}; g.T.Il=function(){var J;return((J=this.videoData.K)==null?0:J.Il)?this.videoData.K.Il(this.getCurrentTime()-this.uS()):this.mediaElement&&(J=this.mediaElement.mH())&&(J=J.getTime(),!isNaN(J))?J/1E3+this.getCurrentTime():NaN}; g.T.getDuration=function(J){return g.vJ(this.videoData)&&this.k8?J?Od7(this.k8,J):mL(this.k8):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.uS():this.AY()?this.AY():0}; g.T.MD=function(){var J=new SgE;if(this.vC){var R=this.KC.schedule,N=this.KC.Si();N=N===void 0?!1:N;J.N8=R.ma;J.RJ=R.l3;J.bandwidthEstimate=qw(R);if(N){N=(R.D.Gj()*1E3).toFixed();var C=(R.VO.Gj()*1E3).toFixed(),X=Oi(R).toFixed(2),u=((R.S.Gj()||0)*1E9).toFixed(2),f=R.V.Gj().toFixed(0),H=R.PC.Gj().toFixed(0),k=R.X.percentile(.5).toFixed(2),v=R.X.percentile(.92).toFixed(2),W=R.X.percentile(.96).toFixed(2),S=R.X.percentile(.98).toFixed(2);R.K?R.K.reset():R.K=new Ks;R.K.add(R.tN);R.K.add(R.interruptions.length); for(var L=0,I=R.interruptions.length-1;I>=0;I--){var F=R.interruptions[I];R.K.add(F-L);L=F}L=0;for(I=R.J.length-1;I>=0;I--){F=R.J[I];var a=F.stamp/36E5;R.K.add(a-L);L=a;R.K.add(F.net/1E3);R.K.add(F.max)}R=R.K.SV();J.K={ttr:N,ttm:C,d:X,st:u,bw:f,abw:H,v50:k,v92:v,v96:W,v98:S,"int":R}}MOP(this.vC,J)}else this.mediaElement&&(J.Eu=ev(this.mediaElement));J.N8=this.N8;J.RJ=this.RJ;J.V=this.isAtLiveHead()&&this.isPlaying()?DZQ(this):NaN;return J}; g.T.GQ=function(J,R){this.RJ+=J;this.N8+=R}; g.T.GC=function(){return this.mediaElement?g.qn(this.videoData)?1:Aq(this.videoData)?this.isAtLiveHead()||this.Cm()?1:this.Ci.GC():this.mediaElement.GC():0}; g.T.fP=function(J){var R={};if(J===void 0?0:J){Object.assign(R,this.xA().fP());this.mediaElement&&(Object.assign(R,this.mediaElement.fP()),Object.assign(R,this.L3()));this.vC&&Object.assign(R,this.vC.fP());this.aG&&(R.drm=JSON.stringify(this.aG.fP()));R.state=this.playerState.state.toString(16);g.h(this.playerState,128)&&(R.debug_error=JSON.stringify(this.playerState.uu));this.aW()&&(R.prerolls=this.Ni.join(","));this.videoData.CY&&(R.ismb=this.videoData.CY);this.videoData.latencyClass!=="UNKNOWN"&& (R.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(R.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)R.is_mosaic=1;this.videoData.cotn&&(R.is_offline=1,R.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(R.playerResponseCpn=this.videoData.playerResponseCpn);this.wk.isOrchestrationLeader()&&(R.leader=1);this.videoData.isLivePlayback&&(this.videoData.K&& Yr(this.videoData.K)&&(R.segduration=Yr(this.videoData.K)),J=this.Ci,R.lat=J.S?dT8(J.S.Z):0,R.liveutcstart=this.videoData.liveUtcStartSeconds);R.relative_loudness=this.videoData.wm.toFixed(3);if(J=g.Tf(this))R.optimal_format=J.video.qualityLabel;R.user_qual=xX();R.release_version="youtube.player.web_20241204_01_RC00";g.vJ(this.videoData)&&this.k8&&(R.ssap=WX(this.k8))}R.debug_videoId=this.videoData.videoId;return R}; g.T.addCueRange=function(J){this.WK([J])}; g.T.removeCueRange=function(J){this.Cb.uY([J])}; g.T.k_=function(J,R){return this.Cb.k_(J,R)}; g.T.WK=function(J,R){this.Cb.KL(J,R)}; g.T.SZ=function(J){this.Cb.uY(J)}; g.T.D9=function(){return this.Cb.D9()||[]}; g.T.Zy=function(){return this.visibility.Zy()}; g.T.j7=function(){this.mediaElement&&this.mediaElement.j7()}; g.T.pUO=function(){X$(this)}; g.T.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.T.ow=function(J){var R=J.target.tS();if(this.mediaElement&&this.mediaElement.tS()&&this.mediaElement.tS()===R){a3f(this,J.type);switch(J.type){case "error":var N=cS(this.mediaElement)||"",C=this.mediaElement.iB();if(N==="capability.changed"){this.T("html5_restart_on_capability_change")?(this.u3("capchg",{msg:C}),h4(this,!0)):Cp(this);return}if(this.mediaElement.hasError()&&(ZkE(this.MV,N,{msg:C})||g.vJ(this.videoData)&&this.k8&&(C=this.playerState.uu,this.k8.handleError(N,C==null?void 0:C.rh))))return; if(this.isBackground()&&this.mediaElement.WV()===4){this.Qd();ub(this,"unplayable");return}break;case "durationchange":N=this.mediaElement.getDuration();isFinite(N)&&(!this.Mp||N>0)&&N!==1&&this.Eb(N);break;case "ratechange":this.vC&&this.vC.setPlaybackRate(this.mediaElement.getPlaybackRate());n08(this.Cb);this.xA().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":ncE(this);this.publish("onLoadedMetadata");f3f(this);N=this.Il();this.videoData.pg&&(this.videoData.pg=N);break; case "loadstart":f3f(this);break;case "progress":case "suspend":this.P1();this.publish("onLoadProgress",this,this.GC());break;case "playing":this.qR.Kk("plev");this.tA&&!PI(this)&&(this.tA=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{hL:"videoplayer_onPlaying"})));break;case "timeupdate":N=this.mediaElement&&!this.mediaElement.getCurrentTime();C=this.mediaElement&&this.mediaElement.UV()===0;if(N&&(!this.Av||C))return;this.Av=this.Av||!!this.mediaElement.getCurrentTime(); u1Y(this);this.P1();if(!this.mediaElement||this.mediaElement.tS()!==R)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.TC().length>0&&this.mediaElement.BV().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.vC)return;this.T("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.UV()>2||!this.mediaElement.isSeeking()&&Qp(this.mediaElement.BV(),this.mediaElement.getCurrentTime()))&& (N=this.mediaElement.fP(),N.bh=ev(this.mediaElement).toFixed(3),this.u3("uwe",N));g.vJ(this.videoData)&&this.k8&&aHn(this.k8,this.mediaElement.getCurrentTime());break;case "resize":ncE(this);this.videoData.J&&this.videoData.J.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.ZJ&&g.h(this.playerState,8)&&!g.h(this.playerState,1024)&&this.getCurrentTime()===0&&g.d9){ub(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.tS()=== R){iog(this.Ci,J,this.k8||void 0);this.publish("videoelementevent",J);R=this.playerState;C=this.mW;var X=this.mediaElement;N=this.videoData.clientPlaybackNonce;var u=g.vJ(this.videoData)&&this.k8?mL(this.k8):void 0;if(!g.h(R,128)){var f=R.state;X=X?X:J.target;var H=X.getCurrentTime();if(!g.h(R,64)||J.type!=="ended"&&J.type!=="pause"){u=u||X.getDuration();u=X.isEnded()||H>1&&Math.abs(H-u)<1.1;var k=J.type==="pause"&&X.isEnded();H=J.type==="ended"||J.type==="waiting"||J.type==="timeupdate"&&!g.h(R, 4)&&!qr(C,H);if(k||u&&H)X.sz()>0&&X.tS()&&(f=14);else switch(J.type){case "error":cS(X)&&(f|=128);break;case "pause":g.h(R,256)?(f^=256)||(f=64):g.h(R,32)||g.h(R,2)||g.h(R,4)||(f=4,g.h(R,1)&&g.h(R,8)&&(f|=1));break;case "playing":H=f;f=(f|8)&-1093;H&4?(f|=1,sc(C,X,!0)):qr(C,X.getCurrentTime())&&(f&=-2);g.h(R,1)&&sc(C,X)&&(f|=1);break;case "seeking":f|=16;g.h(R,8)&&(f|=1);f&=-3;break;case "seeked":f&=-17;sc(C,X,!0);break;case "waiting":g.h(R,2)||(f|=1);sc(C,X);break;case "timeupdate":H=g.h(R,16),u= g.h(R,4),(g.h(R,8)||H)&&!u&&qr(C,X.getCurrentTime())&&(f=8),sc(C,X)&&(f|=1)}}C=f;f=null;C&128&&(f=J.target,X=cS(f),H=1,X?(X==="capability.changed"&&(H=2),u="GENERIC_WITHOUT_LINK",k=f.fP(),k.mediaElem="1",/AUDIO_RENDERER/.test(f.iB())&&(u="HTML5_AUDIO_RENDERER_ERROR"),f={errorCode:X,errorMessage:g.jx[u]||"",Wh:u,Ur:lJ(k),rh:H,cpn:R.uu?R.uu.cpn:""}):f=null,f&&(f.cpn=N));R=ZX(R,C,f)}!g.h(this.playerState,1)&&g.h(R,1)&&MYg(this,"evt"+J.type);this.FD(R)}}}; g.T.cEn=function(J){J=J.K.availability==="available";J!==this.BO&&(this.BO=J,this.publish("airplayavailabilitychange"))}; g.T.JE7=function(){var J=(0,g.g9)(),R=this.mediaElement.Zy();this.u3("airplay",{ia:R});!R&&!isNaN(this.Ny)&&J-this.Ny<2E3||(this.Ny=J,R!==this.Zy()&&(J=this.visibility,J.K!==R&&(J.K=R,J.Fe()),this.u3("airplay",{rbld:R}),Xe(this)),this.publish("airplayactivechange"))}; g.T.yz=function(J){if(this.vC){var R=this.vC,N=R.V,C=R.getCurrentTime(),X=Date.now()-N.W;N.W=NaN;N.u3("sdai",{adfetchdone:J,d:X});J&&!isNaN(N.D)&&N.J!==3&&gCk(N.vC,C,N.D,N.U);N.policy.U?N.V=NaN:N.Z=NaN;vk(N,4,N.J===3?"adfps":"adf");VB(R)}}; g.T.P1=function(J){var R=this;J=J===void 0?!1:J;if(this.mediaElement&&this.videoData){txE(this.Ci,this.isPlaying());var N=this.getCurrentTime();!this.vC||g.h(this.playerState,4)&&g.qn(this.videoData)||g.h(this.playerState,32)&&iY(this.videoData)||a8E(this.vC,N);this.T("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&kMg(this,N,this.videoData.lengthSeconds);N>5&&(this.Ci.Z=N);var C=g.k9();C?g.Nh.An(this.zP):g.Zx(this.zP);var X=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!X||wO(this.videoData))&& !g.h(this.playerState,128)){var u=function(){if(R.mediaElement&&!g.h(R.playerState,128)){R.KC.Si()&&a3f(R,"pfx");var f=R.getCurrentTime();R.T("html5_buffer_underrun_transition_fix")&&(f-=R.uS());var H=ev(R.mediaElement),k=g.h(R.playerState,8),v=qr(R.mW,f),W=JlQ(R.mW,f,(0,g.g9)(),H);k&&v?R.FD(qR(R.playerState,1)):k&&W?(k=R.getDuration(),v=HJ(R.videoData),k&&Math.abs(k-f)<1.1?(R.u3("setended",{ct:f,bh:H,dur:k,live:v}),R.mediaElement.Mf()?(R.logger.debug("seek to 0 because of looping"),R.seekTo(0,{hL:"videoplayer_loop", seekSource:37})):cI(R)):(R.playerState.isBuffering()||MYg(R,"progress_fix"),R.FD(dD(R.playerState,1)))):(k&&!v&&!W&&f>0&&(k=(Date.now()-R.OZ)/1E3,v=R.getDuration(),f>v-1&&R.u3("misspg",{t:f.toFixed(2),d:v.toFixed(2),r:k.toFixed(2),bh:H.toFixed(2)})),R.playerState.isPaused()&&R.playerState.isBuffering()&&ev(R.mediaElement)>5&&R.FD(qR(R.playerState,1)));R.P1()}}; this.mediaElement.TC().length===0?this.zP=C?g.Nh.ou(u,100):g.BR(u,100):this.zP=C?g.Nh.ou(u,500):g.BR(u,500)}this.videoData.EL=N;this.k8&&UQ(this.k8);!J&&this.isPlaying()&&vcB(this);bkk(this.Bd,this.cw,this.oG(),this.isBackground())&&x4(this);this.publish("progresssync",this,J);X&&wO(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; g.T.Jj=function(){this.As("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.T.UT=function(){return this.xA().UT()}; g.T.q9=function(){return this.vC?this.vC.q9():qw(this.KC.schedule,!0)}; g.T.FD=function(J){if(!g.Yo(this.playerState,J)){this.logger.debug(function(){return"Setting state "+J.toString()}); var R=new g.q2(J,this.playerState);this.playerState=J;Qvk(this);var N=!this.m8.length;this.m8.push(R);var C=this.mediaElement&&this.mediaElement.isSeeking();C=R.Ca.state===8&&!C;g.Yp(R,1)&&C&&g.h(this.playerState,8)&&!g.h(this.playerState,64)&&this.vC&&(wk2(this.vC),this.mediaElement&&ev(this.mediaElement)>=5&&ys8(this.Bd,this.cw)&&x4(this));(C=g.di(this.KC.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.h(J,1)&&(g.h(J,8)||g.h(J,16))?this.M_.start(C):this.M_.stop();(Al(R,8)<0||g.Yp(R, 1024))&&this.JB.stop();!g.Yp(R,8)||this.videoData.ma||g.h(R.state,1024)||this.JB.start();g.h(R.state,8)&&Al(R,16)<0&&!g.h(R.state,32)&&!g.h(R.state,2)&&this.playVideo();g.h(R.state,2)&&Aq(this.videoData)&&(this.Eb(this.getCurrentTime()),this.P1(!0));g.Yp(R,2)&&(this.HJ(!0),this.KC.Si()&&this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&iY(this.videoData)&&this.videoData.K&&(C={minst:""+this.videoData.K.H_,cminst:""+(this.videoData.K.MN()+this.uS()),maxst:""+this.videoData.K.iY,hts:""+ this.videoData.K.dn,cmaxst:""+(this.videoData.K.AY()+this.uS())},this.u3("sabrSeekableBoundaries",C)));g.Yp(R,128)&&this.Qd();this.videoData.K&&this.videoData.isLivePlayback&&!this.Pj&&(Al(R,8)<0?ISE(this.videoData.K):g.Yp(R,8)&&this.videoData.K.resume());Gx2(this.Ci,R);Tv8(this.xA(),R);if(N&&!this.QO())try{for(var X=g.K(this.m8),u=X.next();!u.done;u=X.next()){var f=u.value;DTE(this.Cb,f);this.publish("statechange",f)}}finally{this.m8.length=0}}}; g.T.cW=function(){this.qR.tick("qoes")}; g.T.vF=function(){this.Ci.vF()}; g.T.yk=function(J,R,N,C){a:{var X=this.MV;C=C===void 0?"LICENSE":C;N=N.substring(0,256);var u=zi(R);J==="drm.keyerror"&&this.aG&&this.aG.J.keys.length>1&&X.Z<96&&(J="drm.sessionlimitexhausted",u=!1);if(u)if(X.videoData.J&&X.videoData.J.video.isHdr())juB(X,J);else{if(X.RB.As(J,R,C,N),suQ(X,{detail:N}))break a}else X.us(J,{detail:N});J==="drm.sessionlimitexhausted"&&(X.u3("retrydrm",{sessionLimitExhausted:1}),X.Z++,Ecg(X.RB))}}; g.T.EAB=function(){var J=this,R=g.di(this.KC.experiments,"html5_license_constraint_delay"),N=kI();R&&N?(R=new g.$t(function(){fp(J);X$(J)},R),g.P(this,R),R.start()):(fp(this),X$(this))}; g.T.eO=function(J){this.publish("heartbeatparams",J)}; g.T.r5=function(J){this.u3("keystatuses",JsE(J));var R="auto",N=!1;this.videoData.J&&(R=this.videoData.J.video.quality,N=this.videoData.J.video.isHdr());if(this.T("html5_drm_check_all_key_error_states")){var C=o4B(R,N);C=Js(J)?RHk(J,C):J.Z.includes(C)}else{a:{R=o4B(R,N);for(C in J.K)if(J.K[C].status==="output-restricted"){var X=J.K[C].type;if(R===""||X==="AUDIO"||R===X){C=!0;break a}}C=!1}C=!C}if(this.T("html5_enable_vp9_fairplay")){if(N)if(J.X){var u;if((u=this.aG)==null?0:G2(u.K))if((N=this.aG)== null)N=0;else{R=u=void 0;X=g.K(N.J.values());for(var f=X.next();!f.done;f=X.next())f=f.value,u||(u=N6f(f,"SD")),R||(R=N6f(f,"AUDIO"));N.SP({sd:u,audio:R});N=u==="output-restricted"||R==="output-restricted"}else N=!C;if(N){this.u3("drm",{dshdr:1});juB(this.MV);return}}else{this.videoData.vO||(this.videoData.vO=!0,this.u3("drm",{dphdr:1}),h4(this,!0));return}var H;if((H=this.aG)==null?0:G2(H.K))return}else if(H=J.X&&C,N&&!H){juB(this.MV);return}C||RHk(J,"AUDIO")&&RHk(J,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), J=JsE(J),this.JA?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.T("html5_report_fatal_drm_restricted_error_killswitch")||this.As("drm.keyerror",2,void 0,"info."+J)):(this.JA=!0,this.us(new PD("qoe.restart",Object.assign({},{retrydrm:1},J))),x4(this),Ecg(this)))}; g.T.kWM=function(){if(!this.videoData.ma&&this.mediaElement&&!this.isBackground()){var J="0";this.mediaElement.UV()>0&&ev(this.mediaElement)>=5&&this.videoData.V&&this.videoData.V.K&&(this.FD(dD(this.playerState,1)),MYg(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),J="1");Qvk(this);var R=this.videoData.V;J={restartmsg:J,mfmt:!HPE(this.videoData),mdrm:!(!(R&&R.videoInfos&&R.videoInfos.length&&R.videoInfos[0].xi)||this.aG),mfmtinfo:!this.videoData.J,prerolls:this.aW()?this.Ni.join(","): "0"};if(this.aG){R=this.aG;if(R.J.size<=0){var N="ns;";R.W||(N+="nr;");R=N+="ql."+R.V.length}else R=JsE(R.J.values().next().value),R=lJ(R);J.drmp=R}var C;Object.assign(J,((C=this.vC)==null?void 0:C.fP())||{});var X;Object.assign(J,((X=this.mediaElement)==null?void 0:X.fP())||{});this.xA().us("qoe.start15s",lJ(J));this.publish("loadsofttimeout")}}; g.T.Eb=function(J){this.videoData.lengthSeconds!==J&&(this.videoData.lengthSeconds=J,X$(this))}; g.T.HJ=function(J,R){var N=this;J=J===void 0?!1:J;if(!this.TE)if(Ln("att_s","player_att")||F8("att_s",void 0,"player_att"),this.T("use_rta_for_player"))(function(){var X,u,f,H;return g.Y(function(k){switch(k.K){case 1:if(!(X=J)){k.ZM(2);break}return g.q(k,g.hGf(),3);case 3:X=!k.J;case 2:if(X)return k.return();g.Ef(k,4);u=v07(N.xA());if(!u)throw Error();f={};return g.q(k,g.cgB((f.cpn=N.videoData.clientPlaybackNonce,f.encryptedVideoId=N.videoData.videoId||"",f),3E4),6);case 6:H=k.J;if(N.TE)throw Error(); if(!H.challenge)throw g.G$(Error("Not sending attestation ping; no attestation challenge string")),Error();N.TE=!0;var v=[H.challenge];H.error?v.push("r1c="+H.error):H.webResponse&&v.push("r1a="+H.webResponse);var W;((W=H.adblockReporting)==null?void 0:W.reportingStatus)!==void 0&&v.push("r6a="+H.adblockReporting.reportingStatus);var S;((S=H.adblockReporting)==null?void 0:S.broadSpectrumDetectionResult)!==void 0&&v.push("r6b="+H.adblockReporting.broadSpectrumDetectionResult);u(v.join("&"));F8("att_f", void 0,"player_att");g.MP(k,0);break;case 4:g.K2(k),F8("att_e",void 0,"player_att"),g.IQ(k)}})})().then(function(){R==null||R()}); else{var C=new g.l_g(this.videoData);if("c1a"in C.Uk&&!g.hS.isInitialized()){F8("att_wb",void 0,"player_att");this.zB===2&&Math.random()<.01&&g.G$(Error("Botguard not available after 2 attempts"));if(J)return;if(this.zB<5){g.HK(this.aI);this.zB++;return}}(C=g.P58(C))?(F8("att_f",void 0,"player_att"),kxB(this.xA(),C),this.TE=!0):F8("att_e",void 0,"player_att")}}; g.T.AY=function(J){return this.Ci.AY(J===void 0?!1:J)}; g.T.MN=function(){return this.Ci.MN()}; g.T.uS=function(){return this.Ci?this.Ci.uS():0}; g.T.getStreamTimeOffset=function(){return this.Ci?this.Ci.getStreamTimeOffset():0}; g.T.L2=function(){var J=0;this.KC.T("web_player_ss_media_time_offset")&&(J=this.getStreamTimeOffset()===0?this.uS():this.getStreamTimeOffset());return J}; g.T.setPlaybackRate=function(J){var R;this.playbackRate!==J&&pIE(this.Bd,(R=this.videoData.V)==null?void 0:R.videoInfos)&&(this.playbackRate=J,x4(this));this.playbackRate=J;this.mediaElement&&this.mediaElement.setPlaybackRate(J)}; g.T.getPlaybackRate=function(){return this.playbackRate}; g.T.getPlaybackQuality=function(){var J="unknown";if(this.videoData.J&&(J=this.videoData.J.video.quality,J==="auto"&&this.mediaElement)){var R=ZoB(this);R&&R.videoHeight>0&&(J=Jy(R.videoWidth,R.videoHeight))}return J}; g.T.isHdr=function(){return!!(this.videoData.J&&this.videoData.J.video&&this.videoData.J.video.isHdr())}; g.T.z4=function(){this.xA().z4()}; g.T.sendVideoStatsEngageEvent=function(J,R){var N=this.xA();N.K?(N=au(N.K,"engage"),N.dn=J,N.send(R)):R&&R()}; g.T.eV=function(J){return this.xA().eV(J)}; g.T.isAtLiveHead=function(J,R){R=R===void 0?!1:R;return HJ(this.videoData)&&(this.Z1||R)?this.Ci.isAtLiveHead(J):!1}; g.T.DX=function(){var J=this.AY(),R=this.getCurrentTime(),N;(N=!HJ(this.videoData))||(N=this.Ci,N=!(N.K&&N.K.V));return N||this.Cm()||isNaN(J)||isNaN(R)?0:Math.max(0,J-R)}; g.T.Je=oQ(23);g.T.S7=oQ(41);g.T.UP=function(J){this.xA().UP(J)}; g.T.Ws=function(J){this.xA().Ws(J)}; g.T.RZ=function(J){this.xA().RZ(J)}; g.T.tM=oQ(27);g.T.KR=oQ(31);g.T.Cp=function(J){this.xA().Cp(J)}; g.T.L3=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.T.setLoop=function(J){this.loop=J;this.mediaElement&&$C(this.KC)&&this.mediaElement.setLoop(J);this.vC&&this.T("html5_loop_skip_set_end_of_stream")&&(J?this.vC.policy.HC=!0:cDf(this.vC))}; g.T.Mf=function(){return this.mediaElement&&$C(this.KC)?this.mediaElement.Mf():this.loop}; g.T.ZZ=function(J){this.u3("timestamp",{o:J.toString()});this.Ci.ZZ(J)}; g.T.gk=function(J){this.qR.tick(J)}; g.T.S8=function(J){return this.qR.S8(J)}; g.T.Kk=function(J){this.qR.Kk(J)}; g.T.u3=function(J,R,N){N=N===void 0?!1:N;this.xA().u3(J,R,N)}; g.T.yE=function(J,R,N){N=N===void 0?!1:N;this.xA().u3(J,R,N)}; g.T.us=function(J){this.xA().us(J.errorCode,lJ(J.details));J=J.errorCode;if(this.videoData.isLivePlayback&&(J==="qoe.longrebuffer"||J==="qoe.slowseek")||J==="qoe.restart"){J=this.vC?oe2(this.vC.videoTrack):{};var R,N;this.u3("lasoe",Object.assign(this.vC?oe2(this.vC.audioTrack):{},(R=this.Mp)==null?void 0:(N=R.K)==null?void 0:N.Xw()));var C,X;this.u3("lvsoe",Object.assign(J,(C=this.Mp)==null?void 0:(X=C.J)==null?void 0:X.Xw()))}}; g.T.Qm=function(J,R,N){this.xA().Qm(J,R,N)}; g.T.XR=function(J){this.videoData.zZ=!0;this.us(new PD("sabr.fallback",J));h4(this,!0)}; g.T.Pu=function(){return g.m0(this.xA().provider)}; g.T.getPlayerSize=function(){return this.Kr.getPlayerSize()}; g.T.V7=function(){return this.Kr.V7()}; g.T.kB=function(){return this.qR}; g.T.Nz=function(){return this.wk.Nz()}; g.T.getVolume=function(){return this.wk.getVolume()}; g.T.Zp=function(){return this.wk.Zp()}; g.T.isMuted=function(){return this.wk.isMuted()}; g.T.NS=function(){return this.wk.NS()}; g.T.T=function(J){return this.KC.T(J)}; g.T.lP=function(){var J=this.getCurrentTime(),R=J-this.uS();var N=this.mediaElement?DS(this.mediaElement.BV()):0;N=Math.floor(Math.max(N-R,0))+100;var C;if(!this.T("html5_ssdai_disable_seek_to_skip")&&((C=this.vC)==null?0:C.ym(R,this.AY())))return this.u3("sdai",{skipad:1,ct:R.toFixed(3),adj:0}),!0;var X;return((X=this.vC)==null?0:X.lP(R,N))?(this.u3("sdai",{skipad:1,ct:R.toFixed(3),adj:N.toFixed(3)}),iY(this.videoData)&&this.vC.seek(R+N,{seekSource:89,hL:"videoplayer_skipServerStitchedAd"}),fJn(this.Ci, J),!0):!1}; g.T.Si=function(){return this.KC.Si()}; g.T.hC=function(){if(this.T("html5_generate_content_po_token"))return this.videoData.Yr||"";this.wk.SH();return this.KC.Vg||""}; g.T.fE=function(){if(this.videoData.videoId)return this.videoData.jE}; g.T.VL=function(){return this.videoData.videoId}; g.T.R0=function(){return this.wk.La}; g.T.sM=function(){return this.wk.sM()}; g.T.zw=function(J,R){this.Ci.zw(J,R)}; g.T.IR=function(){this.Ci.IR()}; g.T.iq=function(J,R){var N=this.T("html5_generate_content_po_token")?this.videoData:void 0;this.wk.iq(J,R,N)}; g.T.BW=function(J,R){var N;(N=this.vC)==null||N.BW(J,R)}; g.T.wj=function(){var J=this.y8();return!!J&&J.wj()}; g.T.fL=function(){return this.k8}; g.T.jZ=function(J,R){this.xA().jZ(J,R)}; g.T.Su=function(){return this.xA().Su()}; g.T.xN=function(){return this.videoData.h7}; g.T.er=function(){return this.wk.er()}; g.T.Rv=function(){return this.wk.Rv(this)};g.M(BF2,xe);g.M(OME,xe);g.T=OME.prototype;g.T.seekToChapterWithAnimation=function(J){var R=this;if(g.Cu(this.api)&&!(J<0)){var N=this.api.getVideoData(),C=N.gs;if(C&&J=0)return;R=~R;g.oG(this.items,R,0,J);$w(this.menuItems.element,J.element,R)}J.subscribe("size-change",this.RY,this);this.menuItems.publish("size-change")}; g.T.zj=function(J){J.unsubscribe("size-change",this.RY,this);this.QO()||(g.y9(this.items,J),this.menuItems.element.removeChild(J.element),this.menuItems.publish("size-change"))}; g.T.RY=function(){this.menuItems.publish("size-change")}; g.T.focus=function(){for(var J=0,R=0;R1&&g.Y5(this)}; g.T.Th=function(){R7n(this);this.Fn&&(J5E(this),g.Y$(this.element,this.size))}; g.T.Ol=function(){var J=this.K.pop();oUE(this,J,this.K[this.K.length-1],!0)}; g.T.WE=function(J){if(!J.defaultPrevented)switch(J.keyCode){case 27:this.Uv();J.preventDefault();break;case 37:this.K.length>1&&this.Ol();J.preventDefault();break;case 39:J.preventDefault()}}; g.T.focus=function(){this.K.length&&this.K[this.K.length-1].focus()}; g.T.Fk=function(){g.Q$.prototype.Fk.call(this);this.U&&this.U.dispose();this.S&&this.S.dispose()};g.M(rg,g.qt);rg.prototype.open=function(J,R){this.initialize(J.items)&&this.Df(R,!!R)}; rg.prototype.initialize=function(J){g.dg(this.Jz);if(J===void 0||J.length===0)return!1;var R=J.length;J=g.K(J);for(var N=J.next();!N.done;N=J.next())this.S2(N.value,R--);return!0}; rg.prototype.S2=function(J,R){J.menuNavigationItemRenderer?XaB(this,J.menuNavigationItemRenderer,R):J.menuServiceItemRenderer&&ihQ(this,J.menuServiceItemRenderer,R)};g.M(jc,B8);g.T=jc.prototype;g.T.l6=function(J){J.target!==this.dismissButton.element&&J.target!==this.overflowButton.element&&(this.q2(),this.onClickCommand&&this.G.z7("innertubeCommand",this.onClickCommand))}; g.T.Po=function(){this.enabled=!1;this.nC.hide()}; g.T.gY=function(){return!!this.K&&this.enabled}; g.T.onVideoDataChange=function(J,R){this.JK(R);if(this.K){this.m9();a:if(!this.isCounterfactual){var N,C,X;this.banner.update({title:(N=this.K)==null?void 0:N.title,subtitle:(C=this.K)==null?void 0:C.subtitle,metadata:(X=this.K)==null?void 0:X.metadataText});var u;this.onClickCommand=g.z((u=this.K)==null?void 0:u.onTap,tv);var f;if(J=g.z((f=this.K)==null?void 0:f.onOverflow,tv))this.X=g.z(J,vm_);var H;if((H=this.K)==null?0:H.thumbnailImage){var k,v;f=((k=this.K)==null?void 0:(v=k.thumbnailImage)== null?void 0:v.sources)||[];if(f.length===0)break a;this.thumbnailImage.update({url:f[0].url})}else{var W;if((W=this.K)==null?0:W.thumbnailIconName){var S;this.thumbnailIcon.update({icon:(S=this.K)==null?void 0:S.thumbnailIconName})}}var L;this.shouldShowOverflowButton=!((L=this.K)==null||!L.shouldShowOverflowButton);var I;this.shouldHideDismissButton=!((I=this.K)==null||!I.shouldHideDismissButton)}var F;this.banner.element.setAttribute("aria-label",((F=this.K)==null?void 0:F.a11yLabel)||"");var a; this.l3=(a=this.K)==null?void 0:a.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;fEB(this)}}; g.T.HP7=function(){this.isVisible=!0;fEB(this)}; g.T.N3B=function(){this.isVisible=!1;fEB(this)}; g.T.dS=function(){B8.prototype.dS.call(this);this.J&&this.G.logVisibility(this.banner.element,this.isVisible)}; g.T.q2=function(){B8.prototype.q2.call(this,!1);this.J&&this.G.logClick(this.banner.element)}; g.T.wZ=function(J){this.S||(this.S=new rg(this.G),g.P(this,this.S));var R,N;if((R=this.X)==null?0:(N=R.menu)==null?0:N.menuRenderer)this.S.open(this.X.menu.menuRenderer,J.target),J.preventDefault()}; g.T.JK=function(){}; g.T.m9=function(){}; g.T.Fk=function(){this.G.ir("suggested_action_view_model");B8.prototype.Fk.call(this)};g.M(me,jc); me.prototype.JK=function(J){var R,N,C;this.productUpsellSuggestedActionViewModel=g.z((R=J.getWatchNextResponse())==null?void 0:(N=R.playerOverlays)==null?void 0:(C=N.playerOverlayRenderer)==null?void 0:C.suggestedActionViewModel,BVE);var X;if((X=this.productUpsellSuggestedActionViewModel)==null?0:X.content){var u;this.K=g.z((u=this.productUpsellSuggestedActionViewModel)==null?void 0:u.content,$Vf)}var f,H;if(this.J=!!((f=this.productUpsellSuggestedActionViewModel)==null?0:(H=f.loggingDirectives)==null? 0:H.trackingParams)){var k,v;this.G.setTrackingParams(this.banner.element,((k=this.productUpsellSuggestedActionViewModel)==null?void 0:(v=k.loggingDirectives)==null?void 0:v.trackingParams)||null)}var W;this.isCounterfactual=!((W=this.productUpsellSuggestedActionViewModel)==null||!W.isCounterfactualServing)}; me.prototype.m9=function(){var J=[],R,N=g.K(((R=this.productUpsellSuggestedActionViewModel)==null?void 0:R.ranges)||[]);for(R=N.next();!R.done;R=N.next()){var C=R.value;C&&(R=Number(C.startTimeMilliseconds),C=Number(C.endTimeMilliseconds),isNaN(R)||isNaN(C)||J.push(new g.Kw(R,C,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.G.KL(J)};g.M(T_Q,xe);g.M(LHY,xe);LHY.prototype.onVideoDataChange=function(J){var R;J==="newdata"&&(this.J||this.K&&((R=CP())==null?0:R.size))&&WHB(this);this.K&&J==="dataloaded"&&(J=kb2(this))&&(J=$aY(this,this.J||J))&&this.api.setAudioTrack(J,!0)};g.M(g.gg,g.y$);g.T=g.gg.prototype;g.T.open=function(){g.AZ(this.JE,this.J)}; g.T.Ye=function(J){IEg(this);var R=this.options[J];R&&(R.element.setAttribute("aria-checked","true"),this.W1(this.Q4(J)),this.V=J)}; g.T.CR=function(J){g.dg(this.J);for(var R={},N=!1,C=0;C=0?this.K.playbackRate:1}catch(J){return 1}}; g.T.setPlaybackRate=function(J){this.getPlaybackRate()!==J&&(this.K.playbackRate=J);return J}; g.T.Mf=function(){return this.K.loop}; g.T.setLoop=function(J){this.K.loop=J}; g.T.canPlayType=function(J,R){return this.K.canPlayType(J,R)}; g.T.isPaused=function(){return this.K.paused}; g.T.isSeeking=function(){return this.K.seeking}; g.T.isEnded=function(){return this.K.ended}; g.T.aD=function(){return this.K.muted}; g.T.KG=function(J){bJ();this.K.muted=J}; g.T.TC=function(){return this.K.played||Mk([],[])}; g.T.BV=function(){try{var J=this.K.buffered}catch(R){}return J||Mk([],[])}; g.T.uR=function(){return this.K.seekable||Mk([],[])}; g.T.mH=function(){var J=this.K;return J.getStartDate?J.getStartDate():null}; g.T.getCurrentTime=function(){return this.K.currentTime}; g.T.setCurrentTime=function(J){this.K.currentTime=J}; g.T.getDuration=function(){return this.K.duration}; g.T.load=function(){var J=this.K.playbackRate;try{this.K.load()}catch(R){}this.K.playbackRate=J}; g.T.pause=function(){this.K.pause()}; g.T.play=function(){var J=this.K.play();if(!J||!J.then)return null;J.then(void 0,function(){}); return J}; g.T.UV=function(){return this.K.readyState}; g.T.sz=function(){return this.K.networkState}; g.T.WV=function(){return this.K.error?this.K.error.code:null}; g.T.iB=function(){return this.K.error?this.K.error.message:""}; g.T.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.K instanceof window.HTMLVideoElement&&this.K.getVideoPlaybackQuality)return this.K.getVideoPlaybackQuality();if(this.K){var J=this.K,R=J.webkitDroppedFrameCount;if(J=J.webkitDecodedFrameCount)return{droppedVideoFrames:R||0,totalVideoFrames:J}}return{}}; g.T.Zy=function(){return!!this.K.webkitCurrentPlaybackTargetIsWireless}; g.T.j7=function(){return!!this.K.webkitShowPlaybackTargetPicker()}; g.T.togglePictureInPicture=function(){var J=this.K,R=window.document;window.document.pictureInPictureEnabled?this.K!==R.pictureInPictureElement?J.requestPictureInPicture():R.exitPictureInPicture():Gi()&&J.webkitSetPresentationMode(J.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.T.lG=function(){var J=this.K;return new g.Ms(J.offsetLeft,J.offsetTop)}; g.T.getSize=function(){return g.rh(this.K)}; g.T.setSize=function(J){g.Y$(this.K,J)}; g.T.getVolume=function(){return this.K.volume}; g.T.setVolume=function(J){bJ();this.K.volume=J}; g.T.Bh=function(J){this.U[J]||(this.K.addEventListener(J,this.listener),this.U[J]=this.listener)}; g.T.setAttribute=function(J,R){this.K.setAttribute(J,R)}; g.T.removeAttribute=function(J){this.K.removeAttribute(J)}; g.T.hasAttribute=function(J){return this.K.hasAttribute(J)}; g.T.nf=oQ(45);g.T.ih=oQ(47);g.T.VN=oQ(49);g.T.qS=oQ(51);g.T.B6=function(){return dJ(this.K)}; g.T.dK=function(J){g.FL(this.K,J)}; g.T.Yx=function(J){return g.DA(this.K,J)}; g.T.Yb=function(){return g.kw(document.body,this.K)}; g.T.audioTracks=function(){var J=this.K;if("audioTracks"in J)return J.audioTracks}; g.T.Fk=function(){for(var J=g.K(Object.keys(this.U)),R=J.next();!R.done;R=J.next())R=R.value,this.K.removeEventListener(R,this.U[R]);PS.prototype.Fk.call(this)}; g.T.CN=function(J){this.K.disableRemotePlayback=J};g.M(bb,g.c);g.M(x5,g.c);x5.prototype.show=function(){g.c.prototype.show.call(this);this.hN();this.x8.T("html5_enable_moving_s4n_window")&&g.eG(this.x8.N())&&this.X()}; x5.prototype.hide=function(){g.c.prototype.hide.call(this);this.delay.stop();this.Z.stop()}; x5.prototype.hN=function(){var J=(0,g.g9)(),R=OhY(this.x8);tZ(this.K,R.bandwidth_samples);tZ(this.S,R.network_activity_samples);tZ(this.V,R.live_latency_samples);tZ(this.J,R.buffer_health_samples);var N={};R=g.K(Object.entries(R));for(var C=R.next();!C.done;C=R.next()){var X=g.K(C.value);C=X.next().value;X=X.next().value;this.W[C]!==X&&(N[C]=" "+String(X));this.W[C]=X}this.update(N);J=(0,g.g9)()-J>25?5E3:500;this.delay.start(J)}; x5.prototype.X=function(){this.U?(this.position+=1,this.position>15&&(this.U=!1)):(--this.position,this.position<=0&&(this.U=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.Z.start(2E4)};g.M(qNg,xe);g.M(J$,g.l);J$.prototype.K=function(){var J=(0,g.g9)()-this.startTime;J=Jthis.Z[J])&&(this.K=J,e7E(this))}; g.T.onCueRangeExit=function(J){var R=z7n(this,J);R&&this.K===J&&this.api.z7("innertubeCommand",R);this.clearTimeout();this.K=void 0}; g.T.onTimeout=function(J){this.K!==void 0&&(J==null?void 0:J.cueRangeId)===this.K&&(J=z7n(this,this.K))&&this.api.z7("innertubeCommand",J)}; g.T.OO=function(J){this.J=J}; g.T.m1=function(){e7E(this);this.J=void 0}; g.T.setTimeout=function(J){var R=this,N=Number(J==null?void 0:J.maxVisibleDurationMilliseconds);N&&(this.clearTimeout(),this.U=setTimeout(function(){R.onTimeout(J)},N))}; g.T.clearTimeout=function(){this.U&&clearTimeout(this.U);this.U=void 0}; g.T.Fk=function(){this.timelyActions=this.J=this.K=this.videoId=void 0;this.Z={};this.uY();this.clearTimeout();xe.prototype.Fk.call(this)};g.M(h7E,xe);var t8={},NMn=(t8[1]="pot_ss",t8[2]="pot_sf",t8[3]="pot_se",t8[4]="pot_xs",t8[5]="pot_xf",t8[6]="pot_xe",t8);g.M(XA,xe);XA.prototype.Fk=function(){this.Z&&(g.dp(this.Z),this.Z=void 0);xe.prototype.Fk.call(this)}; XA.prototype.SH=function(){this.K&&!this.K.isReady()&&up(this)}; XA.prototype.X=function(J,R,N){var C=this;if(Gbk(J)){var X=N||"",u;if((u=this.K)==null?0:u.isReady())R=ft(this,X),bh7(J,R);else{var f=new g.Qt;R.push(f.promise);this.U.promise.then(function(){var H=ft(C,X);bh7(J,H);f.resolve()})}}}; XA.prototype.S6=function(J){var R=this;this.K&&(this.K.isReady()||(J.Yr=ft(this,J.videoId)),this.J=new lM,this.K.ready().then(function(){R.qR.S8("pot_if");J.Yr=ft(R,J.videoId)}))};g.M(CqB,xe);g.M(Tx,g.l);Tx.prototype.K=function(){for(var J=g.K(g.sf.apply(0,arguments)),R=J.next();!R.done;R=J.next())(R=R.value)&&this.features.push(R)}; Tx.prototype.Fk=function(){for(var J=this.features.length-1;J>=0;J--)this.features[J].dispose();this.features.length=0;g.l.prototype.Fk.call(this)};$0.prototype.p5=function(){this.J=(0,g.g9)()}; $0.prototype.reset=function(){this.K=this.J=NaN}; $0.prototype.e$=function(J,R){if(J.clientPlaybackNonce&&!isNaN(this.K)){if(Math.random()<.01){R=R?"pbp":"pbs";var N={startTime:this.K};J.S&&(N.cttAuthInfo={token:J.S,videoId:J.videoId});SV("seek",N);g.WU({clientPlaybackNonce:J.clientPlaybackNonce},"seek");isNaN(this.J)||vU("pl_ss",this.J,"seek");vU(R,(0,g.g9)(),"seek")}this.reset()}};g.T=XBf.prototype;g.T.reset=function(){$M(this.timerName)}; g.T.tick=function(J,R){vU(J,R,this.timerName)}; g.T.S8=function(J){return Ib(J,this.timerName)}; g.T.Kk=function(J){bs(J,void 0,this.timerName)}; g.T.infoGel=function(J){g.WU(J,this.timerName)};g.M(fGB,g.al);g.T=fGB.prototype;g.T.y4=function(J){return this.loop||!!J||this.index+1=0}; g.T.setShuffle=function(J){this.shuffle=J;J=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var R=0;R0)||Zo(this,1,!0)}; g.T.Jg=function(){this.S=!0;this.K.tL(this.U);this.U=this.K.L(document,"mouseup",this.dZ)}; g.T.dZ=function(){this.S=!1;Zo(this,8,!1);this.K.tL(this.U);this.U=this.K.L(this.target,"mousedown",this.Jg)}; g.T.gb=function(J){if(J=(J=J.changedTouches)&&J[0])this.ma=J.identifier,this.K.tL(this.X),this.X=this.K.L(this.target,"touchend",this.vS,void 0,!0),Zo(this,1024,!0)}; g.T.vS=function(J){if(J=J.changedTouches)for(var R=0;R1280||u>720)if(X=N.PV("maxresdefault.jpg"))break;if(C>640||u>480)if(X=N.PV("maxresdefault.jpg"))break; if(C>320||u>180)if(X=N.PV("sddefault.jpg")||N.PV("hqdefault.jpg")||N.PV("mqdefault.jpg"))break;if(X=N.PV("default.jpg"))break}g.uv(R)&&(R=new Image,R.addEventListener("load",function(){nsE()}),R.src=X?X:"",this.api.kB().tick("ftr")); this.U.style.backgroundImage=X?"url("+X+")":""};g.M(g.Y0,g.c);g.Y0.prototype.resize=function(){}; g.Y0.prototype.J=function(J){var R=this;this.V=!1;flE(this);var N=J.Wh,C=this.api.N();N!=="GENERIC_WITHOUT_LINK"||C.S?N==="TOO_MANY_REQUESTS"?(C=this.api.getVideoData(),this.W1(mY(this,"TOO_MANY_REQUESTS_WITH_LINK",C.Dh(),void 0,void 0,void 0,!1))):N!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||C.S?this.api.N().T("html5_enable_bandaid_error_screen")&&N==="HTML5_SPS_UMP_STATUS_REJECTED"&&!C.S?(C=C.hostLanguage,J="//support.google.com/youtube?p=videoError",C&&(J=g.bD(J,{hl:C})),this.W1(mY(this,"HTML5_SPS_UMP_STATUS_REJECTED", J))):this.api.N().T("enable_adb_handling_in_sabr")&&N==="BROWSER_OR_EXTENSION_ERROR"&&!C.S?(C=C.hostLanguage,J="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",C&&(J=g.bD(J,{hl:C})),this.W1(mY(this,"BROWSER_OR_EXTENSION_ERROR",J))):this.W1(g.rv(J.errorMessage)):this.W1(mY(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(J=C.hostLanguage,N="//support.google.com/youtube/?p=player_error1",J&&(N=g.bD(N, {hl:J})),this.W1(mY(this,"GENERIC_WITH_LINK_AND_CPN",N,!0)),C.VR&&!C.Z&&uGE(this,function(u){if(g.ie(u,R.api,!Rd(R.api.N()))){u={as3:!1,html5:!0,player:!0,cpn:R.api.getVideoData().clientPlaybackNonce};var f=R.api;f.zA("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:u});f.isFullscreen()&&f.toggleFullscreen()}})); if(this.V){var X=this.qp("ytp-error-link");X&&(this.api.createClientVe(X,this,216104),this.api.logVisibility(X,!0),uGE(this,function(){R.api.logClick(X)}))}}; var i1k=/([^<>]+)<\/a>/;g.M(TCY,g.c);g.T=TCY.prototype;g.T.onClick=function(J){this.innertubeCommand?(this.G.z7("innertubeCommand",this.innertubeCommand),J.preventDefault()):g.ie(J,this.G,!0);this.G.logClick(this.element)}; g.T.onVideoDataChange=function(J,R){H1Q(this,R);this.Em&&kK8(this,this.Em)}; g.T.FH=function(J){var R=this.G.getVideoData();this.videoId!==R.videoId&&H1Q(this,R);this.K&&kK8(this,J.state);this.Em=J.state}; g.T.Df=function(){this.Z.show();this.G.publish("paidcontentoverlayvisibilitychange",!0);this.G.logVisibility(this.element,!0)}; g.T.Uv=function(){this.Z.hide();this.G.publish("paidcontentoverlayvisibilitychange",!1);this.G.logVisibility(this.element,!1)};g.M(V4,g.c);V4.prototype.hide=function(){this.K.stop();this.message.style.display="none";g.c.prototype.hide.call(this)}; V4.prototype.onStateChange=function(J){this.XD(J.state)}; V4.prototype.XD=function(J){if(g.h(J,128))var R=!1;else{var N;R=((N=this.api.Us())==null?0:N.jL)?!1:g.h(J,16)||g.h(J,1)?!0:!1}R?this.K.start():this.hide()}; V4.prototype.J=function(){this.message.style.display="block"};g.M(gv,g.Q$);gv.prototype.onMutedAutoplayChange=function(J){this.V&&(J?(v_7(this),this.Df()):(this.K&&this.logClick(),this.Uv()))}; gv.prototype.Cx=function(J){this.api.isMutedByMutedAutoplay()&&g.Yp(J,2)&&this.Uv()}; gv.prototype.onClick=function(){this.api.unMute();this.logClick()}; gv.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.M(g.Ug,g.tY);g.T=g.Ug.prototype;g.T.init=function(){var J=this.api,R=J.getPlayerStateObject();this.A1=J.getPlayerSize();this.FD(R);this.FY();this.NR();this.api.publish("basechromeinitialized",this);this.sD()&&this.api.publish("standardControlsInitialized")}; g.T.onVideoDataChange=function(J,R){var N=this.mZ!==R.videoId;if(N||J==="newdata"){J=this.api;J.isFullscreen()||(this.A1=J.getPlayerSize());var C;((C=this.api.getVideoData(1))==null?0:g.vJ(C))&&this.dC()}N&&(this.mZ=R.videoId,N=this.kT,N.tN=3E3,Zo(N,512,!0),this.FY());this.api.T("web_render_jump_buttons")&&R.showSeekingControls&&(this.AK=572)}; g.T.Q97=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.T.JR=function(){var J=this.api.SS()&&this.api.fV(),R=this.api.T6();return this.Tq||J||this.qL||R}; g.T.dC=function(){var J=!this.JR();g.ao(this.api.getRootNode(),"ytp-menu-shown",!J);var R;((R=this.api.getVideoData(1))==null?0:g.vJ(R))&&g.ao(this.api.getRootNode(),"ytp-hide-controls",!J)}; g.T.zE=function(J){try{if(!g.kw(this.api.getRootNode(),J))return!1}catch(R){return!1}for(;J&&!eLB(J);)J=J===this.api.getRootNode()?null:J.parentElement||null;return!!J}; g.T.cN=function(J){var R=this.api.getRootNode();g.ao(R,"ytp-autohide",J);g.ao(R,"ytp-autohide-active",!0);this.Vj.start(J?250:100);J&&(this.Jb=!1,g.Mh(R,"ytp-touch-mode"));this.xq=!J;this.api.bL(!J)}; g.T.hJ=function(){var J=this.api.getRootNode();g.ao(J,"ytp-autohide-active",!1)}; g.T.WVn=function(){this.qh=!0}; g.T.kAn=function(J){if(this.api.N().T("player_doubletap_to_seek")||this.api.N().X)this.qh=!1,this.iK&&this.tL(this.iK),this.hq===0&&pt(this,J)?(this.i9(),this.qK.start(),this.iK=this.L(this.api.jQ(),"touchmove",this.WVn,void 0,!0)):this.qK.stop();IlE(this)&&pt(this,J)&&!this.api.N().X&&SCn(this);var R=this.Uj.bQ();if(!g.V_(this.api.N())&&rI&&F1f(this,J))R&&J.preventDefault();else if(this.Jb=!0,g.FL(this.api.getRootNode(),"ytp-touch-mode"),this.kT.uo(),this.api.N().T("player_doubletap_to_seek")||this.api.N().X)if(R= this.api.getPlayerStateObject(),!(!this.api.xB()||g.h(R,2)&&g.vE(this.api)||g.h(R,64))){R=Date.now()-this.Q2;this.hq+=1;if(R<=350){this.yG=!0;R=this.api.getPlayerSize().width/3;var N=this.api.getRootNode().getBoundingClientRect(),C=J.targetTouches[0].clientX-N.left;N=J.targetTouches[0].clientY-N.top;var X=(this.hq-1)*10;C>0&&CR*2&&C=650;this.kT.resize();g.ao(R,"ytp-fullscreen",this.api.isFullscreen());g.ao(R,"ytp-large-width-mode",N);g.ao(R,"ytp-small-mode",this.FP());g.ao(R,"ytp-tiny-mode",this.LO());g.ao(R,"ytp-big-mode",this.Kx());this.DD&&this.DD.resize(J)}; g.T.Cx=function(J){this.FD(J.state);this.FY()}; g.T.u0=oQ(5);g.T.TF=function(){var J=!!this.mZ&&!this.api.kh()&&!this.Ty,R=this.api.getPresentingPlayerType()===2,N=this.api.N();if(R){if(xPd&&N.T("enable_visit_advertiser_support_on_ipad_mweb"))return!1;R=Do(this.api.d3());J&&(R&&R.player?J=(J=R.player.getVideoData(2))?J.isListed&&!g.PM(R.player.N()):!1:(d0("showInfoBarDuringAd: this is null"),J=!1));return J}return J&&(N.tD||this.api.isFullscreen()||N.OV)}; g.T.FY=function(){var J=this.TF();this.fh!==J&&(this.fh=J,g.ao(this.api.getRootNode(),"ytp-hide-info-bar",!J))}; g.T.FD=function(J){var R=J.isCued()||this.api.aW()&&this.api.getPresentingPlayerType()!==3;R!==this.isCued&&(this.isCued=R,this.V_&&this.tL(this.V_),this.V_=this.L(this.api.jQ(),"touchstart",this.kAn,void 0,R));var N=this.kT,C=J.isPlaying()&&!g.h(J,32)||this.api.wM();Zo(N,128,!C);N=this.kT;C=this.api.getPresentingPlayerType()===3;Zo(N,256,C);N=this.api.getRootNode();g.h(J,2)?C=[Mv.ENDED]:(C=[],g.h(J,8)?C.push(Mv.PLAYING):g.h(J,4)&&C.push(Mv.PAUSED),g.h(J,1)&&!g.h(J,32)&&C.push(Mv.BUFFERING),g.h(J, 32)&&C.push(Mv.SEEKING),g.h(J,64)&&C.push(Mv.UNSTARTED));g.uk(this.xK,C)||(g.K$(N,this.xK),this.xK=C,g.Ep(N,C));C=this.api.N();var X=g.h(J,2);a:{var u=this.api.N();var f=u.controlsType;switch(f){case "2":case "0":u=!1;break a}u=f==="3"&&!g.h(J,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:jQJ(Do(this.api.d3())))||this.api.T6()||g.V_(u)&&this.api.getPresentingPlayerType()===2?!1:!0}g.ao(N,"ytp-hide-controls",!u);g.ao(N,"ytp-native-controls",C.controlsType==="3"&&!R&&!X&&!this.qL);g.h(J, 128)&&!g.V_(C)?(this.DD||(this.DD=new g.Y0(this.api),g.P(this,this.DD),g.EL(this.api,this.DD.element,4)),this.DD.J(J.uu),this.DD.show()):this.DD&&(this.DD.dispose(),this.DD=null)}; g.T.lO=function(){return this.api.SS()&&this.api.fV()?(this.api.wI(!1,!1),!0):this.api.kh()?(g.WE(this.api,!0),!0):!1}; g.T.onMutedAutoplayChange=function(J){this.qL=J;this.dC()}; g.T.Kx=function(){return!1}; g.T.FP=function(){return!this.Kx()&&(this.api.getPlayerSize().width=0&&R.left>=0&&R.bottom>R.top&&R.right>R.left?R:null;R=this.size;J=J.clone();R=R.clone();C&&(f=R,X=5,(X&65)==65&&(J.x=C.right)&&(X&=-2),(X&132)==132&&(J.y=C.bottom)&&(X&=-5),J.xC.right&&(f.width=Math.min(C.right-J.x,u+f.width-C.left),f.width=Math.max(f.width,0))),J.x+f.width>C.right&&X&1&&(J.x=Math.max(C.right-f.width,C.left)),J.yC.bottom&&(f.height=Math.min(C.bottom-J.y,u+f.height-C.top),f.height=Math.max(f.height,0))),J.y+f.height>C.bottom&&X&4&&(J.y=Math.max(C.bottom-f.height,C.top)));C=new g.vq(0,0,0,0);C.left=J.x;C.top=J.y;C.width= R.width;C.height=R.height;g.ZA(this.element,new g.Ms(C.left,C.top));g.pI(this.Z);this.Z.L(document,"contextmenu",this.LDC);this.Z.L(this.G,"fullscreentoggled",this.onFullscreenToggled);this.Z.L(this.G,"pageTransition",this.qc)}; g.T.LDC=function(J){if(!J.defaultPrevented){var R=mj(J);g.kw(this.element,R)||this.Uv();this.G.N().disableNativeContextMenu&&J.preventDefault()}}; g.T.onFullscreenToggled=function(){this.Uv();llY(this)}; g.T.qc=function(){this.Uv()};g.M(bp,g.c);bp.prototype.onClick=function(){var J=this,R,N,C,X;return g.Y(function(u){if(u.K==1)return R=J.api.N(),N=J.api.getVideoData(),C=J.api.getPlaylistId(),X=R.getVideoUrl(N.videoId,C,void 0,!0),g.q(u,eFn(J,X),2);u.J&&zFk(J);J.api.logClick(J.element);g.IQ(u)})}; bp.prototype.hN=function(){this.updateValue("icon",{C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{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=Pmn(this);g.ao(this.element,"ytp-copylink-button-visible", this.visible);g.ZK(this,this.visible);this.tooltip.mQ();this.api.logVisibility(this.element,this.visible&&this.D)}; bp.prototype.Ev=function(J){g.c.prototype.Ev.call(this,J);this.api.logVisibility(this.element,this.visible&&J)}; bp.prototype.Fk=function(){g.c.prototype.Fk.call(this);g.Mh(this.element,"ytp-copylink-button-visible")};g.M(t$,g.c);t$.prototype.show=function(){g.c.prototype.show.call(this);g.HK(this.J)}; t$.prototype.hide=function(){this.Z.stop();this.V=0;this.qp("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.Mh(this.element,"ytp-chapter-seek");g.Mh(this.element,"ytp-time-seeking");g.c.prototype.hide.call(this)}; t$.prototype.xQ=function(J,R,N,C){this.V=J===this.S?this.V+C:C;this.S=J;var X=J===-1?this.W:this.X;X&&this.G.logClick(X);this.U?this.J.stop():g.vK(this.J);this.Z.start();this.element.setAttribute("data-side",J===-1?"back":"forward");var u=3*this.G.jQ().getPlayerSize().height;X=this.G.jQ().getPlayerSize();X=X.width/3-3*X.height;this.K.style.width=u+"px";this.K.style.height=u+"px";J===1?(this.K.style.left="",this.K.style.right=X+"px"):J===-1&&(this.K.style.right="",this.K.style.left=X+"px");var f=u* 2.5;u=f/2;var H=this.qp("ytp-doubletap-ripple");H.style.width=f+"px";H.style.height=f+"px";J===1?(J=this.G.jQ().getPlayerSize().width-R+Math.abs(X),H.style.left="",H.style.right=J-u+"px"):J===-1&&(J=Math.abs(X)+R,H.style.right="",H.style.left=J-u+"px");H.style.top="calc((33% + "+Math.round(N)+"px) - "+u+"px)";if(N=this.qp("ytp-doubletap-ripple"))N.classList.remove("ytp-doubletap-ripple"),N.classList.add("ytp-doubletap-ripple");wjg(this,this.U?this.V:C)};g.M(hFE,B8);g.T=hFE.prototype;g.T.tH=function(J){this.G7||(this.G7=new rg(this.G),g.P(this,this.G7));var R,N;if((R=this.EB)==null?0:(N=R.menu)==null?0:N.menuRenderer)this.G7.open(this.EB.menu.menuRenderer,J.target),J.preventDefault()}; g.T.oAC=function(){this.G.z7("innertubeCommand",this.kA);this.G.logClick(this.infoButton.element)}; g.T.gY=function(){return!!this.K}; g.T.BJ=function(){return!!this.K}; g.T.l6=function(J){J.target===this.dismissButton.element||J.target===this.overflowButton.element||J.target===this.infoButton.element?J.preventDefault():(this.ji&&this.G.z7("innertubeCommand",this.ji),this.q2(!1))}; g.T.Po=function(){this.q2(!0);var J,R;((J=this.K)==null?0:(R=J.bannerData)==null?0:R.dismissedStatusKey)&&this.TW.push(this.K.bannerData.dismissedStatusKey);this.TQ()}; g.T.vP=function(){this.TQ();RB(this)}; g.T.nTB=function(J){var R=this,N;if(J.id!==((N=this.K)==null?void 0:N.identifier)){this.TQ();N=g.K(this.tN);for(var C=N.next();!C.done;C=N.next()){var X=C.value,u=void 0,f=void 0;if((C=(u=X)==null?void 0:(f=u.bannerData)==null?void 0:f.itemData)&&X.identifier===J.id){f=u=void 0;var H=((u=X)==null?void 0:(f=u.bannerData)==null?void 0:f.dismissedStatusKey)||"";if(this.TW.includes(H))break;this.K=X;this.banner.element.setAttribute("aria-label",C.accessibilityLabel||"");C.trackingParams&&(this.Z=!0,this.G.setTrackingParams(this.badge.element, C.trackingParams));this.nC.show();sJ(this);g.ZK(this.VO,!C.stayInApp);iO7(this);GK2(this);oB(this);this.ji=g.z(C.onTapCommand,tv);if(X=g.z(C.menuOnTap,tv))this.EB=g.z(X,vm_);X=void 0;this.banner.update({thumbnail:(X=(C.thumbnailSources||[])[0])==null?void 0:X.url,title:C.productTitle,price:C.priceReplacementText?C.priceReplacementText:C.price,salesOriginalPrice:xvn(this),priceDropReferencePrice:JwP(this),promotionText:tKg(this),priceA11yText:oFg(this),affiliateDisclaimer:C.affiliateDisclaimer,vendor:Rlk(this)}); H=f=u=X=void 0;((X=C)==null?0:(u=X.hiddenProductOptions)==null?0:u.showDropCountdown)&&((f=C)==null?0:(H=f.hiddenProductOptions)==null?0:H.dropTimestampMs)&&(this.VK=new g.$t(function(){X6g(R)},1E3),this.VO.hide(),this.countdownTimer.show(),X6g(this)); this.G.T("web_player_enable_featured_product_banner_exclusives_on_desktop")&&y8f(this)&&(this.YA=new g.$t(function(){b1E(R)},1E3),b1E(this))}}}}; g.T.TQ=function(){this.K&&(this.K=void 0,this.Rn())}; g.T.onVideoDataChange=function(J,R){var N=this;J==="dataloaded"&&RB(this);var C,X;J=R==null?void 0:(C=R.getPlayerResponse())==null?void 0:(X=C.videoDetails)==null?void 0:X.isLiveContent;var u,f,H;R=g.z((u=R.getWatchNextResponse())==null?void 0:(f=u.playerOverlays)==null?void 0:(H=f.playerOverlayRenderer)==null?void 0:H.productsInVideoOverlayRenderer,H68);this.G.T("web_player_enable_info_button_in_banner_on_desktop")&&!J?this.infoButton.show():this.infoButton.hide();this.G.T("web_player_enable_overflow_button_in_banner_on_desktop")&& (this.overflowButton.show(),this.dismissButton.hide(),this.infoButton.hide());var k=R==null?void 0:R.featuredProductsEntityKey;this.trendingOfferEntityKey=R==null?void 0:R.trendingOfferEntityKey;var v;if(u=R==null?void 0:(v=R.dismissButton)==null?void 0:v.trackingParams)this.G.setTrackingParams(this.dismissButton.element,u),this.U=!0;var W;(v=R==null?void 0:(W=R.dismissButton)==null?void 0:W.a11yLabel)&&this.dismissButton.element.setAttribute("aria-label",g.Yn(v));this.kA=R==null?void 0:R.onClickCommand; this.tN.length||(CZB(this,k),oB(this));var S;(S=this.VR)==null||S.call(this);this.VR=g.I5.subscribe(function(){CZB(N,k);oB(N)})}; g.T.Fk=function(){RB(this);iO7(this);GK2(this);B8.prototype.Fk.call(this)};g.M(HOY,g.c);HOY.prototype.onClick=function(){this.G.logClick(this.element,this.J)};g.M(kYE,g.Q$);g.T=kYE.prototype;g.T.show=function(){g.Q$.prototype.show.call(this);this.G.publish("infopaneldetailvisibilitychange",!0);this.G.logVisibility(this.element,!0);vFg(this,!0)}; g.T.hide=function(){g.Q$.prototype.hide.call(this);this.G.publish("infopaneldetailvisibilitychange",!1);this.G.logVisibility(this.element,!1);vFg(this,!1)}; g.T.getId=function(){return this.Z}; g.T.F7=function(){return this.itemData.length}; g.T.onVideoDataChange=function(J,R){if(R){var N,C,X,u;this.update({title:((N=R.Vc)==null?void 0:(C=N.title)==null?void 0:C.content)||"",body:((X=R.Vc)==null?void 0:(u=X.bodyText)==null?void 0:u.content)||""});var f;J=((f=R.Vc)==null?void 0:f.trackingParams)||null;this.G.setTrackingParams(this.element,J);f=g.K(this.itemData);for(J=f.next();!J.done;J=f.next())J.value.dispose();this.itemData=[];var H;if((H=R.Vc)==null?0:H.ctaButtons)for(R=g.K(R.Vc.ctaButtons),H=R.next();!H.done;H=R.next())if(H=g.z(H.value, i6V))H=new HOY(this.G,H,this.K),H.Da&&(this.itemData.push(H),H.IB(this.items))}}; g.T.Fk=function(){this.hide();g.Q$.prototype.Fk.call(this)};g.M(LQE,g.c);g.T=LQE.prototype;g.T.onVideoDataChange=function(J,R){SxP(this,R);this.Em&&FQE(this,this.Em)}; g.T.Zm=function(J){var R=this.G.getVideoData();this.videoId!==R.videoId&&SxP(this,R);FQE(this,J.state);this.Em=J.state}; g.T.Sc=function(J){(this.Z=J)?this.hide():this.K&&this.show()}; g.T.I$=function(){this.J||this.Df();this.showControls=!0}; g.T.VY=function(){this.J||this.Uv();this.showControls=!1}; g.T.Df=function(){var J;if((J=this.G)==null?0:J.T("embeds_web_enable_info_panel_sizing_fix")){var R;J=(R=this.G)==null?void 0:R.getPlayerSize();R=J.width<380;var N;J=J.height<(((N=this.G)==null?0:N.Yv())?400:280);var C,X;if((((C=this.G)==null?0:C.getPlayerStateObject().isCued())||((X=this.G)==null?0:g.h(X.getPlayerStateObject(),1024)))&&R&&J)return}this.K&&!this.Z&&(this.V.show(),this.G.publish("infopanelpreviewvisibilitychange",!0),this.G.logVisibility(this.element,!0))}; g.T.Uv=function(){this.K&&!this.Z&&(this.V.hide(),this.G.publish("infopanelpreviewvisibilitychange",!1),this.G.logVisibility(this.element,!1))}; g.T.gTB=function(){this.J=!1;this.showControls||this.Uv()};var Td9={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(Td9).reduce(function(J,R){J[Td9[R]]=R;return J},{}); var $H8={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys($H8).reduce(function(J,R){J[$H8[R]]=R;return J},{}); var Hgl={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Hgl).reduce(function(J,R){J[Hgl[R]]=R;return J},{});var kS9,vGE;kS9=[{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"}];vGE=[{option:0,text:NZ(0)},{option:.25,text:NZ(.25)},{option:.5,text:NZ(.5)},{option:.75,text:NZ(.75)},{option:1,text:NZ(1)}]; g.u_=[{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:kS9},{option:"fontSizeIncrement",text:"Tamanho da fonte",options:[{option:-2,text:NZ(.5)},{option:-1,text:NZ(.75)},{option:0,text:NZ(1)},{option:1, text:NZ(1.5)},{option:2,text:NZ(2)},{option:3,text:NZ(3)},{option:4,text:NZ(4)}]},{option:"background",text:"Cor de fundo",options:kS9},{option:"backgroundOpacity",text:"Opacidade de fundo",options:vGE},{option:"windowColor",text:"Cor da janela",options:kS9},{option:"windowOpacity",text:"Opacidade da janela",options:vGE},{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:NZ(.25)},{option:.5,text:NZ(.5)},{option:.75,text:NZ(.75)},{option:1,text:NZ(1)}]}];var Wk8=[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.M(nFB,g.tY);g.T=nFB.prototype; g.T.ix=function(J){J.repeat||(this.V.GO=!1);var R=!1,N=J.keyCode,C=mj(J),X=!J.altKey&&!J.ctrlKey&&!J.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||Wk8.includes(N)),u=!1,f=!1,H=this.api.N();J.defaultPrevented?(X=!1,f=!0):H.wN&&!this.api.isMutedByEmbedsMutedAutoplay()&&(X=!1);if(N===9)R=!0;else{if(C)switch(N){case 32:case 13:if(C.tagName==="BUTTON"||C.tagName==="A"||C.tagName==="INPUT")R=!0,X=!1;else if(X){var k=C.getAttribute("role");!k||k!=="option"&&k!=="button"&&k.indexOf("menuitem")!==0|| (R=!0,C.click(),u=!0)}break;case 37:case 39:case 36:case 35:R=C.getAttribute("role")==="slider";break;case 38:case 40:k=C.getAttribute("role"),C=N===38?C.previousSibling:C.nextSibling,k==="slider"?R=!0:X&&(k==="option"?(C&&C.getAttribute("role")==="option"&&C.focus(),u=R=!0):k&&k.indexOf("menuitem")===0&&(C&&C.hasAttribute("role")&&C.getAttribute("role").indexOf("menuitem")===0&&C.focus(),u=R=!0))}if(X&&!u)switch(N){case 38:u=Math.min(this.api.getVolume()+5,100);ex(this.rk,u,!1);this.api.setVolume(u); f=u=!0;break;case 40:u=Math.max(this.api.getVolume()-5,0);ex(this.rk,u,!0);this.api.setVolume(u);f=u=!0;break;case 36:this.api.xB()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),f=u=!0);break;case 35:this.api.xB()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),f=u=!0)}}R&&Xh(this,!0);(R||f)&&this.kT.uo();(u||X&&this.handleGlobalKeyDown(N,J.shiftKey,J.ctrlKey,J.altKey,J.metaKey,J.key,J.code,J.repeat))&&J.preventDefault();H.D&&(J={keyCode:J.keyCode, altKey:J.altKey,ctrlKey:J.ctrlKey,metaKey:J.metaKey,shiftKey:J.shiftKey,handled:J.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Yh("onKeyPress",J))}; g.T.t3=function(J){var R=J.keyCode;(!this.api.T("web_player_spacebar_control_bugfix")||this.api.T("web_player_spacebar_control_bugfix")&&!this.Z)&&this.handleGlobalKeyUp(R,J.shiftKey,J.ctrlKey,J.altKey,J.metaKey,J.key,J.code)&&J.preventDefault()}; g.T.handleGlobalKeyUp=function(J,R,N,C,X,u,f){this.api.publish("keyboardserviceglobalkeyup",{keyCode:J,shiftKey:R,ctrlKey:N,altKey:C,metaKey:X,key:u,code:f});R=!1;if(this.V.GO)return R;(N=g.I1(this.api.d3()))&&(N=N.Bo)&&N.Fn&&(N.OF(J),R=!0);switch(J){case 9:Xh(this,!0);R=!0;break;case 32:if(this.api.T("web_speedmaster_spacebar_control")&&(!this.api.T("web_player_spacebar_control_bugfix")&&!this.Z||this.api.T("web_player_spacebar_control_bugfix"))&&!this.api.N().wN){var H,k;J=(H=this.progressBar)== null?void 0:(k=H.J)==null?void 0:k.isEnabled;R=this.HL(J)}}return R}; g.T.handleGlobalKeyDown=function(J,R,N,C,X,u,f,H){H||(this.V.GO=!1);var k=!1,v=this.api.N();if(v.wN&&!this.api.isMutedByEmbedsMutedAutoplay())return k;var W=g.I1(this.api.d3());if(W&&(W=W.Bo)&&W.Fn)switch(J){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:k=W.mP(J)}v.S||k||(k=u||String.fromCharCode(J).toLowerCase(),this.J+=k,"awesome".indexOf(this.J)===0?(k=!0,7===this.J.length&&RWY(this.api.getRootNode(),"ytp-color-party")):(this.J=k,k="awesome".indexOf(this.J)===0));if(!k&&(!this.api.isMutedByEmbedsMutedAutoplay()|| Wk8.includes(J))){var S=this.api.getVideoData(),L,I;W=(L=this.progressBar)==null?void 0:(I=L.J)==null?void 0:I.isEnabled;L=S?S.gs:[];I=Bk?C:N;switch(J){case 80:R&&!v.T7&&(zx(this.rk,xYE(),"Anterior"),this.api.previousVideo(),k=!0);break;case 78:R&&!v.T7&&(zx(this.rk,lW(),"Pr\u00f3ximo"),this.api.nextVideo(),k=!0);break;case 74:this.api.xB()&&(this.api.startSeekCsiAction(),this.K?this.api.T("enable_key_press_seek_logging")?(k=i_(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"), x0(this.K,-1,10,k)):x0(this.K,-1,10):zx(this.rk,{C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{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),k=!0);break;case 76:this.api.xB()&&(this.api.startSeekCsiAction(),this.K?this.api.T("enable_key_press_seek_logging")?(k=i_(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),x0(this.K,1,10,k)):x0(this.K,1,10):zx(this.rk,{C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{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),k=!0);break;case 37:this.api.xB()&&(this.api.startSeekCsiAction(),I?(I=KQE(L,this.api.getCurrentTime()*1E3),I!==-1&&this.K!=null&&(c8B(this.K,-1,L[I].title),this.api.seekTo(L[I].startTime/1E3,void 0,void 0,void 0,53),k=!0)):(this.K?this.api.T("enable_key_press_seek_logging")?(k=i_(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),x0(this.K,-1,5,k)):x0(this.K,-1,5):zx(this.rk,{C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{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),k=!0));break;case 39:this.api.xB()&&(this.api.startSeekCsiAction(),I?(I=MI8(L,this.api.getCurrentTime()*1E3),I!==-1&&this.K!=null&&(c8B(this.K,1,L[I].title),this.api.seekTo(L[I].startTime/1E3,void 0,void 0,void 0,52),k=!0)):(this.K!=null?this.api.T("enable_key_press_seek_logging")?(k=i_(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),x0(this.K,1,5,k)):x0(this.K,1,5):zx(this.rk,{C:"svg",B:{height:"100%",version:"1.1", viewBox:"0 0 36 36",width:"100%"},j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{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),k=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),ex(this.rk,this.api.getVolume(),!1)):(this.api.mute(),ex(this.rk,0,!0));k=!0;break;case 32:k=this.api.T("web_speedmaster_spacebar_control")?!this.api.N().T7:this.HL(W);break;case 75:k=this.HL(W);break;case 190:R?v.enableSpeedOptions&&sVg(this)&&(k=this.api.getPlaybackRate(),this.api.setPlaybackRate(k+.25,!0),MKE(this.rk,!1),k=!0):this.api.xB()&&(this.step(1),k=!0);break;case 188:R? v.enableSpeedOptions&&sVg(this)&&(k=this.api.getPlaybackRate(),this.api.setPlaybackRate(k-.25,!0),MKE(this.rk,!0),k=!0):this.api.xB()&&(this.step(-1),k=!0);break;case 70:xBB(this.api)&&(this.api.toggleFullscreen().catch(function(){}),k=!0); break;case 27:W?(this.progressBar.tF(),k=!0):this.S()&&(k=!0)}if(v.controlsType!=="3")switch(J){case 67:g.a3(this.api.d3())&&(v=this.api.getOption("captions","track"),this.api.toggleSubtitles(),K1n(this.rk,!v||v&&!v.displayName),k=!0);break;case 79:fo(this,"textOpacity");break;case 87:fo(this,"windowOpacity");break;case 187:case 61:fo(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:fo(this,"fontSizeIncrement",!0,!0)}var F;R||N||C||(J>=48&&J<=57?F=J-48:J>=96&&J<=105&&(F=J-96));F!=null&&this.api.xB()&& (this.api.startSeekCsiAction(),v=this.api.getProgressState(),this.api.seekTo(F/10*(v.seekableEnd-v.seekableStart)+v.seekableStart,void 0,void 0,void 0,81),k=!0);k&&this.kT.uo()}this.Z||this.api.publish("keyboardserviceglobalkeydown",{keyCode:J,shiftKey:R,ctrlKey:N,altKey:C,metaKey:X,key:u,code:f,repeat:H},this.V);return k}; g.T.step=function(J){this.api.xB();if(this.api.getPlayerStateObject().isPaused()){var R=this.api.getVideoData().J;R&&(R=R.video)&&this.api.seekBy(J/(R.fps||30),void 0,void 0,J>0?77:78)}}; g.T.HL=function(J){if(!this.api.N().T7){var R;var N,C=(R=this.api.getVideoData())==null?void 0:(N=R.getPlayerResponse())==null?void 0:N.playabilityStatus;if(C){var X;R=((X=g.z(C.miniplayer,MuU))==null?void 0:X.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else R=!1;R&&this.api.z7("onExpandMiniplayer");J?this.progressBar.d7():(J=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.rk.WQ(J),J?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.T.Fk=function(){g.vK(this.U);g.tY.prototype.Fk.call(this)};g.M(g.To,g.c);g.To.prototype.M8=oQ(11);g.To.prototype.hN=function(){var J=this.G.N(),R=J.V||this.G.T("web_player_hide_overflow_button_if_empty_menu")&&this.GD.isEmpty();J=g.V_(J)&&g.Lu(this.G)&&g.h(this.G.getPlayerStateObject(),128);var N=this.G.getPlayerSize();this.visible=this.G.FP()&&!J&&N.width>=240&&!g.cJ(this.G.getVideoData())&&!R&&!this.K&&!this.G.Yv();g.ao(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.G.mQ();this.G.logVisibility(this.element,this.visible&&this.D)}; g.To.prototype.Ev=function(J){g.c.prototype.Ev.call(this,J);this.G.logVisibility(this.element,this.visible&&J)}; g.To.prototype.Fk=function(){g.c.prototype.Fk.call(this);g.Mh(this.element,"ytp-overflow-button-visible")};g.M(BKQ,g.Q$);g.T=BKQ.prototype;g.T.UI=function(J){J=mj(J);g.kw(this.element,J)&&(g.kw(this.K,J)||g.kw(this.closeButton,J)||zC(this))}; g.T.Uv=function(){g.Q$.prototype.Uv.call(this);this.G.ZR(this.element)}; g.T.show=function(){this.Fn&&this.G.publish("OVERFLOW_PANEL_OPENED");g.Q$.prototype.show.call(this);this.element.setAttribute("aria-modal","true");ZO7(this,!0)}; g.T.hide=function(){g.Q$.prototype.hide.call(this);this.element.removeAttribute("aria-modal");ZO7(this,!1)}; g.T.onFullscreenToggled=function(J){!J&&this.bQ()&&zC(this)}; g.T.isEmpty=function(){return this.actionButtons.length===0}; g.T.focus=function(){for(var J=g.K(this.actionButtons),R=J.next();!R.done;R=J.next())if(R=R.value,R.Fn){R.focus();break}};g.M(dc2,g.c);dc2.prototype.onClick=function(J){g.ie(J,this.api)&&this.api.playVideoAt(this.index)};g.M(qxB,g.Q$);g.T=qxB.prototype;g.T.show=function(){g.Q$.prototype.show.call(this);this.K.L(this.api,"videodatachange",this.Vh);this.K.L(this.api,"onPlaylistUpdate",this.Vh);this.Vh()}; g.T.hide=function(){g.Q$.prototype.hide.call(this);g.pI(this.K);this.updatePlaylist(null)}; g.T.Vh=function(){this.updatePlaylist(this.api.getPlaylist());this.api.N().V&&(this.qp("ytp-playlist-menu-title-name").removeAttribute("href"),this.V&&(this.tL(this.V),this.V=null))}; g.T.pF=function(){var J=this.playlist,R=J.author,N=R?"por $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",C={CURRENT_POSITION:String(J.index+1),PLAYLIST_LENGTH:String(J.getLength())};R&&(C.AUTHOR=R);this.update({title:J.title,subtitle:g.rN(N,C),playlisturl:this.api.getVideoUrl(!0)});R=J.J;if(R===this.Z)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[J.index];else{N=g.K(this.playlistData);for(C=N.next();!C.done;C=N.next())C.value.dispose(); N=J.getLength();this.playlistData=[];for(C=0;C=this.J&&!J.V&&!R.isAd()&&!this.api.Yv()}else J=!1;this.visible=J;g.ZK(this,this.visible);g.ao(this.element,"ytp-search-button-visible",this.visible);g.ao(this.element,"ytp-show-search-title",!this.api.FP());this.api.logVisibility(this.element,this.visible&&this.D)}; vx.prototype.Ev=function(J){g.c.prototype.Ev.call(this,J);this.api.logVisibility(this.element,this.visible&&J)};g.M(g.Wx,g.c);g.T=g.Wx.prototype;g.T.Y2=oQ(8);g.T.onClick=function(){var J=this,R=this.api.N(),N=this.api.getVideoData(this.api.getPresentingPlayerType()),C=this.api.getPlaylistId();R=this.api.T("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):R.getVideoUrl(N.videoId,C,void 0,!0);if(navigator.share)try{var X=navigator.share({title:N.title,url:R});X instanceof Promise&&X.catch(function(u){Uck(J,u)})}catch(u){u instanceof Error&&Uck(this,u)}else this.c7.lO(),zC(this.J,this.element,!1); this.api.logClick(this.element)}; g.T.hN=function(){var J=this.api.N(),R=this.api.Yv();g.ao(this.element,"ytp-show-share-title",g.V_(J)&&!R);this.c7.Kx()&&R?(J=(this.api.jQ().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Lz(this.element,"right",J+"px")):R&&g.Lz(this.element,"right","0px");this.updateValue("icon",{C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{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=gF7(this);g.ao(this.element,"ytp-share-button-visible",this.visible);g.ZK(this,this.visible);this.tooltip.mQ();this.api.logVisibility(this.element,gF7(this)&&this.D)}; g.T.Ev=function(J){g.c.prototype.Ev.call(this,J);this.api.logVisibility(this.element,this.visible&&J)}; g.T.Fk=function(){g.c.prototype.Fk.call(this);g.Mh(this.element,"ytp-share-button-visible")};g.M(lW2,g.Q$);g.T=lW2.prototype;g.T.PS=function(J){J=mj(J);g.kw(this.U,J)||g.kw(this.closeButton,J)||zC(this)}; g.T.Uv=function(){g.Q$.prototype.Uv.call(this);this.tooltip.ZR(this.element);this.api.logVisibility(this.K,!1);for(var J=g.K(this.V),R=J.next();!R.done;R=J.next())R=R.value,this.api.hasVe(R.element)&&this.api.logVisibility(R.element,!1)}; g.T.show=function(){var J=this.Fn;g.Q$.prototype.show.call(this);this.hN();J||this.api.z7("onSharePanelOpened")}; g.T.lMQ=function(){this.Fn&&this.hN()}; g.T.hN=function(){var J=this;g.FL(this.element,"ytp-share-panel-loading");g.Mh(this.element,"ytp-share-panel-fail");var R=this.api.getVideoData(),N=this.api.getPlaylistId()&&this.Z.checked;R.getSharePanelCommand&&MF(this.api.AU(),R.getSharePanelCommand,{includeListId:N}).then(function(C){J.QO()||(g.Mh(J.element,"ytp-share-panel-loading"),zlY(J,C))}); R=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",R);this.updateValue("linkText",R);this.updateValue("shareLinkWithUrl",g.rN("Compartilhar o link $URL",{URL:R}));N8g(this.K);this.api.logVisibility(this.K,!0)}; g.T.onFullscreenToggled=function(J){!J&&this.bQ()&&zC(this)}; g.T.focus=function(){this.K.focus()}; g.T.Fk=function(){g.Q$.prototype.Fk.call(this);PZB(this)};g.M(cwg,B8);g.T=cwg.prototype;g.T.Fk=function(){tI2(this);B8.prototype.Fk.call(this)}; g.T.l6=function(J){J.target!==this.dismissButton.element&&(this.q2(!1),this.G.z7("innertubeCommand",this.onClickCommand))}; g.T.Po=function(){this.pC=!0;this.q2(!0);this.Rn()}; g.T.GAa=function(J){this.X=J;this.Rn()}; g.T.onVideoDataChange=function(J,R){if(J=!!R.videoId&&this.videoId!==R.videoId)this.videoId=R.videoId,this.pC=!1,this.ma=!0,this.W=this.dn=!1,tI2(this),bOQ(this,!1),this.J=this.K=!1,Lo(this),hlk(this);if(J||!R.videoId)this.U=this.Z=!1;var N,C;if(R==null?0:(N=R.getPlayerResponse())==null?0:(C=N.videoDetails)==null?0:C.isLiveContent)this.Fe(!1);else{var X,u,f;R=g.z((X=R.getWatchNextResponse())==null?void 0:(u=X.playerOverlays)==null?void 0:(f=u.playerOverlayRenderer)==null?void 0:f.productsInVideoOverlayRenderer, H68);this.X=this.enabled=!1;if(R){if(X=R==null?void 0:R.featuredProductsEntityKey){u=g.I5.getState().entities;var H;if((H=By(u,"featuredProductsEntity",X))==null?0:H.productsData){this.Fe(!1);return}}this.enabled=!0;if(!this.Z){var k;H=(k=R.badgeInteractionLogging)==null?void 0:k.trackingParams;(this.Z=!!H)&&this.G.setTrackingParams(this.badge.element,H||null)}if(!this.U){var v;if(this.U=!((v=R.dismissButton)==null||!v.trackingParams)){var W;this.G.setTrackingParams(this.dismissButton.element,((W= R.dismissButton)==null?void 0:W.trackingParams)||null)}}R.isContentForward&&(k=R.productsData,bOQ(this,!0),hlk(this),k=GY7(this,k),v=[],k.length>0&&v.push(k[0]),k.length>1&&(W=new g.c({C:"div",Y:"ytp-suggested-action-more-products-icon"}),g.P(this,W),v.push(W),v.push.apply(v,g.Q(k.slice(1)))),this.S=new g.c({C:"div",j:v,Y:"ytp-suggested-action-content-forward-container"}),g.P(this,this.S),this.PC.element.append(this.S.element));this.text=g.Yn(R.text);var S;if(k=(S=R.dismissButton)==null?void 0:S.a11yLabel)this.l3= g.Yn(k);this.onClickCommand=R.onClickCommand;this.timing=R.timing;this.KL()}tYk(this);sJ(this);this.Rn()}}; g.T.gY=function(){return!this.X&&this.enabled&&!this.pC&&!this.G.FP()&&!this.R1&&(this.W||this.ma)}; g.T.lV=function(J){B8.prototype.lV.call(this,J);if(this.K||this.J)this.timing&&SD(this.timing.preview)&&(this.K=!1,Lo(this),this.J=!1,Lo(this),this.G.ir("shopping_overlay_preview_collapsed"),this.G.ir("shopping_overlay_preview_expanded"),J=IB(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),SD(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.G.ir("shopping_overlay_expanded"),J.end=this.timing.expanded.endSec*1E3),this.G.KL([J])), this.dn=!0,sJ(this);Lo(this)}; g.T.Fe=function(J){(this.W=J)?(DM(this),sJ(this,!1)):(tI2(this),this.T7.start());this.Rn()}; g.T.KL=function(J){var R=this.timing;J=(J===void 0?0:J)+this.G.getCurrentTime();var N=[],C=R.visible,X=R.preview;R=R.expanded;SD(C)&&(elE(C,J),N.push(IB(C.startSec,C.endSec,"shopping_overlay_visible")));SD(X)&&(elE(X,J),C=X.startSec+1,N.push(IB(X.startSec,C,"shopping_overlay_preview_collapsed")),N.push(IB(C,X.endSec,"shopping_overlay_preview_expanded")));SD(R)&&(elE(R,J),N.push(IB(R.startSec,R.endSec,"shopping_overlay_expanded")));this.G.KL(N)};g.M(olf,g.c); olf.prototype.hN=function(){var J=this.api.N();g.ZK(this,g.V_(J)&&this.api.Yv());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Fn);var R=this.api.getVideoData(),N=!1;this.api.getPresentingPlayerType()===2?N=!!R.videoId&&!!R.isListed&&!!R.author&&!!R.R1&&!!R.profilePicture:g.V_(J)&&(N=!!R.videoId&&!!R.R1&&!!R.profilePicture&&!g.cJ(R)&&!J.V&&!(J.X&&this.api.getPlayerSize().width<200));var C=R.profilePicture;J=g.V_(J)?R.expandedTitle:R.author;C=C===void 0?"":C;J=J=== void 0?"":J;N?(this.J!==C&&(this.K.style.backgroundImage="url("+C+")",this.J=C),this.updateValue("channelLogoLabel",g.rN("Foto do canal $CHANNEL_NAME",{CHANNEL_NAME:J})),g.FL(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Mh(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.K,N&&this.D);this.api.logVisibility(this.channelName,N&&this.D);this.subscribeButton&&(this.subscribeButton.channelId=R.ud);this.updateValue("expandedTitle",R.expandedTitle)};g.M(Fh,g.Q$);Fh.prototype.show=function(){g.Q$.prototype.show.call(this);this.K.start()}; Fh.prototype.hide=function(){g.Q$.prototype.hide.call(this);this.K.stop()}; Fh.prototype.yu=function(J,R){J==="dataloaded"&&((this.eP=R.eP,this.NE=R.NE,isNaN(this.eP)||isNaN(this.NE))?this.V&&(this.G.ir("intro"),this.G.removeEventListener(g.Q3("intro"),this.S),this.G.removeEventListener(g.nw("intro"),this.U),this.G.removeEventListener("onShowControls",this.Z),this.hide(),this.V=!1):(this.G.addEventListener(g.Q3("intro"),this.S),this.G.addEventListener(g.nw("intro"),this.U),this.G.addEventListener("onShowControls",this.Z),J=new g.Kw(this.eP,this.NE,{priority:9,namespace:"intro"}), this.G.KL([J]),this.V=!0))};g.M(ET,g.c);ET.prototype.onClick=function(){this.G.j7()}; ET.prototype.hN=function(){var J=!0;g.V_(this.G.N())&&(J=J&&this.G.jQ().getPlayerSize().width>=480);g.ZK(this,J);this.updateValue("icon",this.G.Zy()?{C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"path",JL:!0,B:{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"}}]}: {C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{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.M(NrB,g.c);NrB.prototype.Fk=function(){this.K=null;g.c.prototype.Fk.call(this)};g.M(MZ,g.c);MZ.prototype.onClick=function(){this.G.z7("innertubeCommand",this.J)}; MZ.prototype.X=function(J){J!==this.U&&(this.update({title:J,ariaLabel:J}),this.U=J);J?this.show():this.hide()}; MZ.prototype.S=function(){this.K.disabled=this.J==null;g.ao(this.K,"ytp-chapter-container-disabled",this.K.disabled);this.P1()};g.M(Ko,MZ);Ko.prototype.onClickCommand=function(J){g.z(J,LA)&&this.P1()}; Ko.prototype.updateVideoData=function(J,R){var N,C,X;J=g.z((N=R.getWatchNextResponse())==null?void 0:(C=N.playerOverlays)==null?void 0:(X=C.playerOverlayRenderer)==null?void 0:X.decoratedPlayerBarRenderer,rQ);var u;this.J=(u=g.z(J==null?void 0:J.playerBarActionButton,g.bT))==null?void 0:u.command;MZ.prototype.S.call(this)}; Ko.prototype.P1=function(){var J="",R=this.Z.K,N,C=((N=this.G.getLoopRange())==null?void 0:N.type)==="clips";if(R.length>1&&!C){J=this.G.getProgressState().current*1E3;N=Co(R,J);J=R[N].title||"Cap\u00edtulos";if(N!==this.currentIndex||this.V)this.G.z7("innertubeCommand",R[N].onActiveCommand),this.currentIndex=N;this.V=!1}else this.V=!0;MZ.prototype.X.call(this,J)};g.M(aB,g.c);aB.prototype.U=function(J){g.h(J.state,32)?XWE(this,this.api.DY()):this.Fn&&(g.h(J.state,16)||g.h(J.state,1))||this.K.hide()}; aB.prototype.zN=function(){var J=this.api.getPlayerStateObject();(g.h(J,32)||g.h(J,16))&&iyP(this)}; aB.prototype.S=function(){this.V=NaN;iyP(this)}; aB.prototype.hide=function(){this.J&&XWE(this,null);g.c.prototype.hide.call(this)};g.M(ulQ,g.c);g.T=ulQ.prototype;g.T.onClick=function(){var J=this;if(this.G.N().TW||this.G.N().X){this.G.logClick(this.element);try{this.G.toggleFullscreen().catch(function(R){J.HO(R)})}catch(R){this.HO(R)}}else zC(this.message,this.element,!0)}; g.T.HO=function(J){String(J).includes("fullscreen error")?g.G$(J):g.yD(J);this.s0()}; g.T.s0=function(){this.disable();this.message.Df(this.element,!0)}; g.T.M2=function(){Ze()===this.G.getRootNode()?this.J.start():(this.J.stop(),this.message&&this.message.hide())}; g.T.oz=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var J=window.screen.width*.9,R=window.screen.height*.9,N=Math.max(window.outerWidth,window.innerWidth),C=Math.max(window.outerHeight,window.innerHeight);if(N>C!==J>R){var X=N;N=C;C=X}J>N&&R>C&&this.s0()}}; g.T.disable=function(){var J=this;if(!this.message){var R=(s7(["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.Q$(this.G,{C:"div",CC:["ytp-popup","ytp-generic-popup"],B:{role:"alert",tabindex:"0"},j:[R[0],{C:"a",B:{href:"https://support.google.com/youtube/answer/6276924", target:this.G.N().W},cC:R[2]},R[4]]},100,!0);this.message.hide();g.P(this,this.message);this.message.subscribe("show",function(N){J.c7.z8(J.message,N)}); g.EL(this.G,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.K)();this.K=null}}; g.T.hN=function(){var J=xBB(this.G),R=this.G.N().X&&this.G.getPlayerSize().width<250;g.ZK(this,J&&!R);var N;((N=this.G.N())==null?0:N.T("embeds_use_parent_visibility_in_ve_logging"))?this.G.logVisibility(this.element,this.Fn&&this.D):this.G.logVisibility(this.element,this.Fn)}; g.T.EV=function(J){if(J){var R={C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"g",Y:"ytp-fullscreen-button-corner-2",j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{C:"g",Y:"ytp-fullscreen-button-corner-3",j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{C:"g",Y:"ytp-fullscreen-button-corner-0",j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{C:"g", Y:"ytp-fullscreen-button-corner-1",j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};J=g.HE(this.G,"Sair da tela inteira","f");this.update({"data-title-no-tooltip":"Sair da tela inteira"});document.activeElement===this.element&&this.G.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(N){g.G$(N)})}else R={C:"svg", B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"g",Y:"ytp-fullscreen-button-corner-0",j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{C:"g",Y:"ytp-fullscreen-button-corner-1",j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{C:"g",Y:"ytp-fullscreen-button-corner-2",j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{C:"g",Y:"ytp-fullscreen-button-corner-3", j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},J=g.HE(this.G,"Tela inteira","f"),this.update({"data-title-no-tooltip":"Tela inteira"});J=this.message?null:J;this.update({title:J,icon:R});this.c7.Op().mQ()}; g.T.Fk=function(){this.message||((0,this.K)(),this.K=null);g.c.prototype.Fk.call(this)}; g.T.Ev=function(J){g.c.prototype.Ev.call(this,J);var R;((R=this.G.N())==null?0:R.T("embeds_use_parent_visibility_in_ve_logging"))&&this.G.logVisibility(this.element,this.Fn&&J)};g.M(QI,g.c);QI.prototype.onClick=function(){this.G.logClick(this.element);this.G.seekBy(this.K,!0);var J=this.K>0?1:-1,R=Math.abs(this.K),N=this.G.Dy().gy;N&&x0(N,J,R);this.J.isActive()?this.V=!0:(J=["ytp-jump-spin"],this.K<0&&J.push("backwards"),this.element.classList.add.apply(this.element.classList,g.Q(J)),g.HK(this.J))};g.M(no,MZ);no.prototype.onClickCommand=function(J){g.z(J,TVV)&&this.P1()}; no.prototype.updateVideoData=function(){var J,R;this.J=(J=Trf(this))==null?void 0:(R=J.onTap)==null?void 0:R.innertubeCommand;MZ.prototype.S.call(this)}; no.prototype.P1=function(){var J="",R=this.Z.S,N,C=(N=Trf(this))==null?void 0:N.headerTitle;N=C?g.Yn(C):"";var X;C=((X=this.G.getLoopRange())==null?void 0:X.type)==="clips";R.length>1&&!C&&(J=this.G.getProgressState().current*1E3,X=EFE(R,J),J=X!=null?R[X].title:N,X!=null&&X!==this.currentIndex&&(this.G.z7("innertubeCommand",R[X].onActiveCommand),this.currentIndex=X));MZ.prototype.X.call(this,J)};g.M(DJ,g.c);DJ.prototype.onClick=function(){this.G.z7("onCollapseMiniplayer");this.G.logClick(this.element)}; DJ.prototype.hN=function(){this.visible=!this.G.isFullscreen();g.ZK(this,this.visible);this.G.logVisibility(this.element,this.visible&&this.D)}; DJ.prototype.Ev=function(J){g.c.prototype.Ev.call(this,J);this.G.logVisibility(this.element,this.visible&&J)};g.M($X7,g.c);g.T=$X7.prototype;g.T.qg=function(J){this.visible=J.width>=300||this.VO;g.ZK(this,this.visible);this.G.logVisibility(this.element,this.visible&&this.D)}; g.T.cLp=function(){this.G.N().l3?this.G.isMuted()?this.G.unMute():this.G.mute():zC(this.message,this.element,!0);this.G.logClick(this.element)}; g.T.onVolumeChange=function(J){this.setVolume(J.volume,J.muted)}; g.T.setVolume=function(J,R){var N=this,C=R?0:J/100,X=this.G.N();J=C===0?1:J>50?1:0;if(this.U!==J){var u=this.dn;isNaN(u)?vlY(this,J):r58(this.tN,function(H){vlY(N,u+(N.U-u)*H)},250); this.U=J}C=C===0?1:0;if(this.Z!==C){var f=this.W;isNaN(f)?WzE(this,C):r58(this.nC,function(H){WzE(N,f+(N.Z-f)*H)},250); this.Z=C}X.l3&&(X=g.HE(this.G,"Sem \u00e1udio","m"),C=g.HE(this.G,"Reativar o som","m"),this.updateValue("title",R?C:X),this.update({"data-title-no-tooltip":R?"Reativar o som":"Sem \u00e1udio"}),this.tooltip.mQ())}; g.T.Ev=function(J){g.c.prototype.Ev.call(this,J);this.G.logVisibility(this.element,this.visible&&J)}; var Hyn=["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"],kQf=["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.M(g.sT,g.c);g.sT.prototype.onStateChange=function(J){this.XD(J.state)}; g.sT.prototype.XD=function(J){var R=g.qn(this.G.getVideoData()),N=!1;J.isOrWillBePlaying()?J=R?4:2:g.h(J,2)?(J=3,N=R):J=1;this.element.disabled=N;if(this.K!==J){R=null;switch(J){case 2:R=g.HE(this.G,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:R="Reiniciar";this.update({"data-title-no-tooltip":"Reiniciar"});break;case 1:R=g.HE(this.G,"Reproduzir","k");this.update({"data-title-no-tooltip":"Reproduzir"});break;case 4:R="Interromper reprodu\u00e7\u00e3o ao vivo",this.update({"data-title-no-tooltip":"Interromper reprodu\u00e7\u00e3o ao vivo"})}J=== 3?this.update({title:R,icon:S9E(J)}):(this.update({title:R}),(R=S9E(J))&&this.K&&this.K!==3?man(this.transition,this.element,R):this.updateValue("icon",R));this.tooltip.mQ();this.K=J}}; g.sT.prototype.onVideoDataChange=function(){g.ao(this.element,"ytp-play-button-playlist",g.Lu(this.G))}; g.sT.prototype.HL=function(J){this.G.logClick(this.element);if(this.G.getPlayerStateObject().isOrWillBePlaying())this.G.pauseVideo();else{if(this.G.isMinimized()&&this.G.getPlayerStateObject().isCued()){var R={},N;if((N=this.G.getVideoData())==null?0:N.S)R.cttAuthInfo={token:this.G.getVideoData().S,videoId:this.G.getVideoData().videoId};SV("direct_playback",R);this.G.kB().timerName="direct_playback"}else this.K===3&&HY(this.G.kB());this.G.playVideo()}this.G.isMinimized()&&(J==null?void 0:J.type)=== "click"&&this.element.blur()};g.M(g.Bx,g.c);g.T=g.Bx.prototype;g.T.onVideoDataChange=function(){IzE(this);this.Z&&(this.tL(this.Z),this.Z=null);this.videoData=this.G.getVideoData(1);if(this.playlist=this.G.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.Z=this.L(this.G,"progresssync",this.SG);this.V=FzY(this);LzP(this);this.II(this.G.jQ().getPlayerSize())}; g.T.II=function(J){J=J===void 0?this.G.jQ().getPlayerSize():J;var R,N=((R=this.G.getLoopRange())==null?void 0:R.type)==="clips";J=(g.Lu(this.G)||this.K&&g.M$(this.G)&&!this.G.T("web_hide_next_button")||Elk(this))&&!N&&(this.K||J.width>=400);g.ZK(this,J);this.G.logVisibility(this.element,J)}; g.T.onClick=function(J){this.G.logClick(this.element);var R=!0;this.S?R=g.ie(J,this.G):J.preventDefault();R&&(this.K&&this.G.getPresentingPlayerType()===5?this.G.publish("ytoprerollinternstitialnext"):this.K?(HY(this.G.kB()),this.G.publish("playlistnextbuttonclicked",this.element),this.G.nextVideo(!0)):this.V?this.G.seekTo(0):(HY(this.G.kB()),this.G.publish("playlistprevbuttonclicked",this.element),this.G.previousVideo(!0)))}; g.T.SG=function(){var J=FzY(this);J!==this.V&&(this.V=J,LzP(this))}; g.T.Fk=function(){this.J&&(this.J(),this.J=null);IzE(this);g.c.prototype.Fk.call(this)};g.M(KzQ,g.c);g.T=KzQ.prototype;g.T.xS=function(J){this.U6(J.pageX);this.Zb(J.pageX+J.deltaX);azQ(this)}; g.T.U6=function(J){this.nC=J-this.G7}; g.T.Zb=function(J){J-=this.G7;!isNaN(this.nC)&&this.thumbnails.length>0&&(this.W=J-this.nC,this.thumbnails.length>0&&this.W!==0&&(this.V=this.X+this.W,J=BrB(this,this.V),this.V<=this.K/2&&this.V>=sTE(this)?(this.api.seekTo(J,!1,void 0,void 0,25),g.Lz(this.ma,"transform","translateX("+(this.V-this.K/2)+"px)"),M2B(this,J)):this.V=this.X))}; g.T.Tv=function(){this.dn&&(this.dn.I0=!0);var J=(0,g.g9)()-this.l3<300;if(Math.abs(this.W)<5&&!J){this.l3=(0,g.g9)();J=this.nC+this.W;var R=this.K/2-J;this.U6(J);this.Zb(J+R);azQ(this);this.api.logClick(this.U)}azQ(this)}; g.T.OC=function(){OT(this,this.api.getCurrentTime())}; g.T.play=function(J){this.api.seekTo(BrB(this,this.V),void 0,void 0,void 0,26);this.api.playVideo();J&&this.api.logClick(this.playButton)}; g.T.onExit=function(J){this.api.seekTo(this.T7,void 0,void 0,void 0,63);this.api.playVideo();J&&this.api.logClick(this.dismissButton)}; g.T.NR=function(J,R){this.G7=J;this.K=R;OT(this,this.api.getCurrentTime())}; g.T.enable=function(){this.isEnabled||(this.isEnabled=!0,this.T7=this.api.getCurrentTime(),M2B(this,this.T7),g.ao(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.PC=this.L(this.element,"wheel",this.xS),this.logVisibility(this.isEnabled))}; g.T.disable=function(){this.isEnabled=!1;this.hide();g.ao(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.PC&&this.tL(this.PC);this.logVisibility(this.isEnabled)}; g.T.reset=function(){this.disable();this.Z=[];this.VO=!1}; g.T.logVisibility=function(J){this.api.logVisibility(this.element,J);this.api.logVisibility(this.U,J);this.api.logVisibility(this.dismissButton,J);this.api.logVisibility(this.playButton,J)}; g.T.Fk=function(){for(;this.J.length;){var J=void 0;(J=this.J.pop())==null||J.dispose()}g.c.prototype.Fk.call(this)}; g.M(QTB,g.c);g.M(nl7,g.c);g.M(Oyg,g.c);g.M(ZJ,g.c);ZJ.prototype.Ov=function(J){return J==="PLAY_PROGRESS"?this.S:J==="LOAD_PROGRESS"?this.U:J==="LIVE_BUFFER"?this.Z:this.J};q97.prototype.update=function(J,R,N,C){N=N===void 0?0:N;this.width=R;this.Z=N;this.K=R-N-(C===void 0?0:C);this.position=g.I4(J,N,N+this.K);this.V=this.position-N;this.J=this.V/this.K};g.M(AGB,g.c);g.M(g.A1,g.da);g.T=g.A1.prototype; g.T.GI=function(){var J=!1,R=this.api.getVideoData();if(!R)return J;this.api.ir("timedMarkerCueRange");jTB(this);for(var N=g.K(R.Xk),C=N.next();!C.done;C=N.next()){C=C.value;var X=void 0,u=(X=this.T7[C])==null?void 0:X.markerType;X=void 0;var f=(X=this.T7[C])==null?void 0:X.markers;if(!f)break;if(u==="MARKER_TYPE_TIMESTAMPS"){J=g.K(f);for(u=J.next();!u.done;u=J.next()){X=u.value;u=new AGB;f=void 0;u.title=((f=X.title)==null?void 0:f.simpleText)||"";u.timeRangeStartMillis=Number(X.startMillis);u.K= Number(X.durationMillis);var H=f=void 0;u.onActiveCommand=(H=(f=X.onActive)==null?void 0:f.innertubeCommand)!=null?H:void 0;lzE(this,u)}PO2(this,this.S);J=this.S;u=this.pL;X=[];f=null;for(H=0;Hk&&(f.end=k);k=aWY(k,k+W);X.push(k);f=k;u[k.id]=J[H].onActiveCommand}}this.api.KL(X);this.NE=this.T7[C];J=!0}else if(u==="MARKER_TYPE_HEATMAP"){C=this.T7[C];W=v=X=k=H=f=void 0;if(C&& C.markers){u=(X=(W=C.markersMetadata)==null?void 0:(v=W.heatmapMetadata)==null?void 0:v.minHeightDp)!=null?X:0;X=(f=(k=C.markersMetadata)==null?void 0:(H=k.heatmapMetadata)==null?void 0:H.maxHeightDp)!=null?f:60;f=this.K.length;H=null;for(k=0;k=W&&F<=S&&v.push(I)}X>0&&(this.dn.style.height= X+"px");W=this.U[k];S=v;I=u;var a=X,n=k===0;n=n===void 0?!1:n;ZyB(W,a);L=S;F=W.K;n=n===void 0?!1:n;var B=1E3/L.length,Z=[];Z.push({x:0,y:100});for(var A=0;A0&&(H=v[v.length-1])}g.YR(this)}X= void 0;u=[];if(C=(X=C.markersDecoration)==null?void 0:X.timedMarkerDecorations)for(C=g.K(C),X=C.next();!X.done;X=C.next())X=X.value,k=H=f=void 0,u.push({visibleTimeRangeStartMillis:(f=X.visibleTimeRangeStartMillis)!=null?f:-1,visibleTimeRangeEndMillis:(H=X.visibleTimeRangeEndMillis)!=null?H:-1,decorationTimeMillis:(k=X.decorationTimeMillis)!=null?k:NaN,label:X.label?g.Yn(X.label):""});C=u;this.heatMarkersDecorations=C}}R.jj=this.S;g.ao(this.element,"ytp-timed-markers-enabled",J);return J}; g.T.NR=function(){g.YR(this);mo(this);PO2(this,this.S);if(this.J){var J=g.q4(this.element).x||0;this.J.NR(J,this.X)}}; g.T.onClickCommand=function(J){if(J=g.z(J,LA)){var R=J.key;J.isVisible&&R&&cGg(this,R)}}; g.T.Psf=function(J){this.api.z7("innertubeCommand",this.pL[J.id])}; g.T.P1=function(){mo(this);var J=this.api.getCurrentTime();(Jthis.clipEnd)&&this.Sl()}; g.T.Mc=function(J){if(!J.defaultPrevented){var R=!1;switch(J.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);R=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);R=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);R=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);R=!0;break;case 38:this.api.T("enable_key_press_seek_logging")&&l_(this,this.api.getCurrentTime(),this.api.getCurrentTime()+5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"); this.api.seekBy(5,void 0,void 0,72);R=!0;break;case 40:this.api.T("enable_key_press_seek_logging")&&l_(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),R=!0}R&&J.preventDefault()}}; g.T.yu=function(J,R){this.updateVideoData(R,J==="newdata")}; g.T.QD=function(){this.yu("newdata",this.api.getVideoData())}; g.T.updateVideoData=function(J,R){R=R===void 0?!1:R;var N=!!J&&J.Da();if(N&&(wO(J)||t2B(this)?this.lr=!1:this.lr=J.allowLiveDvr,g.ao(this.api.getRootNode(),"ytp-enable-live-buffer",!(J==null||!wO(J))),this.api.T("enable_custom_playhead_parsing"))){var C,X,u,f=g.z((C=J.getWatchNextResponse())==null?void 0:(X=C.playerOverlays)==null?void 0:(u=X.playerOverlayRenderer)==null?void 0:u.decoratedPlayerBarRenderer,rQ);if(f==null?0:f.progressColor)for(C=0;C0;)this.U.pop().dispose();this.heatMarkersDecorations=[];this.EB={};var S;(S=this.J)==null||S.reset();h1(this);g.ao(this.api.getRootNode(),"ytp-fine-scrubbing-exp",qZ(this))}else this.Sl();this.Iu()}if(J){var L;S=((L=this.mD)==null?void 0:L.type)==="clips";if(L=!J.isLivePlayback){L=this.api.getVideoData();R=g.je(L);N=V28(L);var I;L=R!=null||N!=null&&N.length>0||((I= L.iN)==null?void 0:I.length)>0}if(L&&!S){I=this.api.getVideoData();S=g.je(I);L=!1;if(S==null?0:S.markersMap){L=this.api.getVideoData();var F;L.Lk=((F=S.visibleOnLoad)==null?void 0:F.key)||L.Lk;F=g.K(S.markersMap);for(S=F.next();!S.done;S=F.next())S=S.value,S.key&&S.value&&(this.EB[S.key]=S.value,S.value.onChapterRepeat&&(L.a$=S.value.onChapterRepeat));L.Lk!=null&&cGg(this,L.Lk);L=!0}var a;if(((a=I.iN)==null?void 0:a.length)>0){a=g.I5.getState().entities;F=g.K(I.iN);for(S=F.next();!S.done;S=F.next())if(S= S.value,N=void 0,R=(N=By(a,"macroMarkersListEntity",S))==null?void 0:N.markersList,H=N=void 0,((N=R)==null?void 0:N.markerType)==="MARKER_TYPE_TIMESTAMPS"||((H=R)==null?void 0:H.markerType)==="MARKER_TYPE_HEATMAP")this.T7[S]=R;L=this.GI()||L}!L&&(a=V28(I))&&(UXg(this,a),I.gs=this.K,glB(this));xXQ(this,null);J.yJ&&this.U.length===0&&(J=J.yJ,a=J.key,J.isVisible&&a&&cGg(this,a))}else Y9B(this),jTB(this)}mo(this)}; g.T.Cz=function(J){this.W&&!g.h(J.state,32)&&this.api.getPresentingPlayerType()!==3&&this.W.cancel();var R;((R=this.J)==null?0:R.isEnabled)&&g.h(J.state,8)&&this.api.pauseVideo();this.api.T("web_always_show_scrubber")&&(J=this.api.getPresentingPlayerType()===2||!this.api.xB()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0,g.ao(this.v7,"ytp-hide-scrubber-button",J))}; g.T.VJ=function(J){var R=!!this.mD!==!!J,N=this.mD;this.mD=J;xXQ(this,N);(J==null?void 0:J.type)!=="clips"&&J||(J?(this.updateValue("clipstarticon",yf2()),this.updateValue("clipendicon",yf2()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",p1P()),this.updateValue("clipendicon",UYB()),this.updateValue("clipstarttitle","Assista o v\u00eddeo completo"),this.updateValue("clipendtitle","Assista o v\u00eddeo completo")),R&&(this.updateVideoData(this.api.getVideoData(), !0),g.YR(this)),Px(this));g7(this,this.nC,this.Xk)}; g.T.SsC=function(J,R,N){var C=g.q4(this.element),X=jD(this).K,u=N?N.getAttribute("data-tooltip"):void 0,f=N?N.getAttribute("data-position"):void 0,H=N?N.getAttribute("data-offset-y"):void 0;H=H?Number(H):0;f&&(J=JV(this.V,Number(N.getAttribute("data-position")),0)*X+g.q4(this.progressBar).x);this.eQ.x=J-C.x;this.eQ.y=R-C.y;J=jD(this);N=po(this,J);R=0;var k;if((k=this.api.getVideoData())==null?0:wO(k))(k=this.api.getProgressState().seekableEnd)&&N>k&&(N=k,J.position=JV(this.V,k)*jD(this).K),R=this.V.J; t2B(this)&&(R=this.V.J);k=u||g.z8(this.lr?N-this.V.K:N-R);R=J.position+this.Vg;N-=this.api.uS();var v;if((v=this.J)==null||!v.isEnabled)if(this.api.DY()){if(this.K.length>1){v=UT(this,this.eQ.x,!0);if(!this.mD)for(C=0;C1)for(C=0;C0)for(v=this.eQ.x,C=g.K(this.S),X=C.next();!X.done;X=C.next())X=X.value,f=r7(this,X.timeRangeStartMillis/ (this.V.K*1E3),jD(this)),g.ao(X.element,"ytp-timed-marker-hover",f<=v&&f+6>=v);C=this.tooltip.scale;H=(isNaN(H)?0:H)-45*C;this.api.T("web_key_moments_markers")?this.NE?(v=EFE(this.S,N*1E3),v=v!=null?this.S[v].title:""):(v=Co(this.K,N*1E3),v=this.K[v].title):(v=Co(this.K,N*1E3),v=this.K[v].title);v||(H+=16*C);this.tooltip.scale===.6&&(this.api.T("web_cairo_modern_miniplayer")?(H=this.api.jQ().getPlayerSize().height-225,H=v?H+110:H+110+16,this.api.T("web_cairo_modern_miniplayer_inset_progress_bar")&& (H-=12)):H=v?110:126);C=Co(this.K,N*1E3);this.ma=JFg(this,N,C)?C:JFg(this,N,C+1)?C+1:-1;g.ao(this.api.getRootNode(),"ytp-progress-bar-snap",this.ma!==-1&&this.K.length>1);C=!1;X=g.K(this.heatMarkersDecorations);for(f=X.next();!f.done;f=X.next()){f=f.value;var W=N*1E3;W>=f.visibleTimeRangeStartMillis&&W<=f.visibleTimeRangeEndMillis&&(v=f.label,k=g.z8(f.decorationTimeMillis/1E3),C=!0)}this.j2!==C&&(this.j2=C,this.api.logVisibility(this.CY,this.j2));g.ao(this.api.getRootNode(),"ytp-progress-bar-decoration", C);C=160*this.tooltip.scale*2;X=v.length*(this.Z?8.55:5.7);X=X<=C?X:C;f=X<160*this.tooltip.scale;C=3;!f&&X/2>J.position&&(C=1);!f&&X/2>this.X-J.position&&(C=2);this.api.N().X&&(H-=10);this.U.length&&this.U[0].Da&&(H-=14*(this.Z?2:1),this.PC||(this.PC=!0,this.api.logVisibility(this.dn,this.PC)));var S;if(qZ(this)&&(((S=this.J)==null?0:S.isEnabled)||this.pC>0)){var L;H-=((L=this.J)==null?0:L.isEnabled)?eD(this):this.pC}S=void 0;qZ(this)&&(S="Puxe para cima para uma busca precisa",this.VO||(this.VO= !0,this.api.logVisibility(this.H1,this.VO)));this.tooltip.K_(R,N,k,!!u,H,v,C,S)}else this.tooltip.K_(R,N,k,!!u,H);g.FL(this.api.getRootNode(),"ytp-progress-bar-hover");byg(this)}; g.T.ALB=function(){this.Iu();g.Mh(this.api.getRootNode(),"ytp-progress-bar-hover");this.PC&&(this.PC=!1,this.api.logVisibility(this.dn,this.PC));this.VO&&(this.VO=!1,this.api.logVisibility(this.H1,this.VO))}; g.T.PS8=function(J,R){qZ(this)&&this.J&&(this.J.VO?OT(this.J,this.api.getCurrentTime()):DXE(this.J),this.J.show(),g.ao(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.J.isEnabled));this.m7&&(this.m7.dispose(),this.m7=null);this.Im=R;this.FV=this.api.getCurrentTime();this.K.length>1&&this.ma!==-1?this.api.seekTo(this.K[this.ma].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(po(this,jD(this)),!1,void 0,void 0,7);g.FL(this.element,"ytp-drag");(this.rN=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}; g.T.ToN=function(){if(qZ(this)&&this.J){var J=eD(this);this.pC>=J*.5?(this.J.enable(),OT(this.J,this.api.getCurrentTime()),fqf(this,J)):h1(this)}if(g.h(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var R;if((R=this.J)==null?0:R.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.K.length>1&&this.ma!==-1)this.api.T("html5_enable_progress_bar_slide_seek_logging")&&l_(this,this.FV,this.K[this.ma].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.K[this.ma].startTime/1E3,void 0,void 0,void 0,7);else{J=po(this,jD(this));this.api.T("html5_enable_progress_bar_slide_seek_logging")&&l_(this,this.FV,J,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(J,void 0,void 0,void 0,7);R=g.K(this.heatMarkersDecorations);for(var N=R.next();!N.done;N=R.next())N=N.value,J*1E3>=N.visibleTimeRangeStartMillis&&J*1E3<=N.visibleTimeRangeEndMillis&& this.api.logClick(this.CY)}g.Mh(this.element,"ytp-drag");this.rN&&!g.h(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.T.xNC=function(J,R){J=jD(this);J=po(this,J);this.api.seekTo(J,!1,void 0,void 0,7);var N;qZ(this)&&((N=this.J)==null?0:N.VO)&&(OT(this.J,J),this.J.isEnabled||(this.pC=g.I4(this.Im-R-10,0,eD(this)),fqf(this,this.pC)))}; g.T.Iu=function(){this.tooltip.VX()}; g.T.GJ=function(){this.mD||(this.updateValue("clipstarticon",gIE()),this.updateValue("clipendicon",gIE()),g.FL(this.element,"ytp-clip-hover"))}; g.T.Cu=function(){this.mD||(this.updateValue("clipstarticon",p1P()),this.updateValue("clipendicon",UYB()),g.Mh(this.element,"ytp-clip-hover"))}; g.T.Sl=function(){this.clipStart=0;this.clipEnd=Infinity;Px(this);g7(this,this.nC,this.Xk)}; g.T.c2Q=function(J){J=g.K(J);for(var R=J.next();!R.done;R=J.next())if(R=R.value,R.visible){var N=R.getId();if(!this.G7[N]){var C=g.iu("DIV");R.tooltip&&C.setAttribute("data-tooltip",R.tooltip);this.G7[N]=R;this.TW[N]=C;g.L$(C,R.style);oWE(this,N);this.api.N().T("disable_ad_markers_on_content_progress_bar")||this.K[0].V.appendChild(C)}}else uvg(this,R)}; g.T.xEB=function(J){J=g.K(J);for(var R=J.next();!R.done;R=J.next())uvg(this,R.value)}; g.T.tF=function(J){this.J&&(this.J.onExit(J!=null),h1(this))}; g.T.d7=function(J){this.J&&(this.J.play(J!=null),h1(this))}; g.T.J2B=function(){TjQ(this,this.api.xB())}; g.T.Fk=function(){TjQ(this,!1);g.da.prototype.Fk.call(this)};g.M(yI,g.c);yI.prototype.isActive=function(){return!!this.G.getOption("remote","casting")}; yI.prototype.hN=function(){var J=!1;this.G.getOptions().includes("remote")&&(J=this.G.getOption("remote","receivers").length>1);g.ZK(this,J&&this.G.jQ().getPlayerSize().width>=400);this.G.logVisibility(this.element,this.Fn);var R=1;J&&this.isActive()&&(R=2);if(this.K!==R){this.K=R;switch(R){case 1:this.updateValue("icon",{C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{C:"path",JL:!0,B:{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.V0n())}g.ao(this.element,"ytp-remote-button-active",this.isActive())}}; yI.prototype.J=function(){if(this.G.getOption("remote","quickCast"))this.G.setOption("remote","quickCast",!0);else{var J=this.JE,R=this.element;if(J.bQ())J.Uv();else{J.initialize();a:{var N=g.K(J.Jz.items);for(var C=N.next();!C.done;C=N.next())if(C=C.value,C.priority===1){N=C;break a}N=null}N&&(N.open(),J.Df(R));J.Df(R)}}this.G.logClick(this.element)};g.M(Go,g.c);Go.prototype.K=function(J){var R=this.G.N(),N=400;this.G.T("web_player_small_hbp_settings_menu")&&R.S?N=300:R.X&&(N=200);J=this.J&&J.width>=N;g.ZK(this,J);this.G.logVisibility(this.element,J)}; Go.prototype.V=function(){if(this.JE.Fn)this.JE.Uv();else{var J=g.a3(this.G.d3());J&&!J.loaded&&(J.gX("tracklist",{includeAsr:!0}).length||J.load());this.G.logClick(this.element);this.JE.Df(this.element)}}; Go.prototype.updateBadge=function(){var J=this.G.isHdr(),R=this.G.getPresentingPlayerType(),N=R!==2&&R!==3,C=g.Fm(this.G),X=N&&!!g.I1(this.G.d3());R=X&&C.displayMode===1;C=X&&C.displayMode===2;N=(X=R||C)||!N?null:this.G.getPlaybackQuality();g.ao(this.element,"ytp-hdr-quality-badge",J);g.ao(this.element,"ytp-hd-quality-badge",!J&&(N==="hd1080"||N==="hd1440"));g.ao(this.element,"ytp-4k-quality-badge",!J&&N==="hd2160");g.ao(this.element,"ytp-5k-quality-badge",!J&&N==="hd2880");g.ao(this.element,"ytp-8k-quality-badge", !J&&N==="highres");g.ao(this.element,"ytp-3d-badge-grey",!J&&X&&R);g.ao(this.element,"ytp-3d-badge",!J&&X&&C)};g.M(b_,CJ);b_.prototype.isLoaded=function(){var J=g.Og(this.G.d3());return J!==void 0&&J.loaded}; b_.prototype.hN=function(){g.Og(this.G.d3())!==void 0&&this.G.getPresentingPlayerType()!==3?this.K||(this.JE.S2(this),this.K=!0):this.K&&(this.JE.zj(this),this.K=!1);X_(this,this.isLoaded())}; b_.prototype.onSelect=function(J){this.isLoaded();J?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.publish("annotationvisibility",J)}; b_.prototype.Fk=function(){this.K&&this.JE.zj(this);CJ.prototype.Fk.call(this)};g.M(t1,g.gg);t1.prototype.hN=function(){var J=this.G.getAvailableAudioTracks();J.length>1?(this.CR(g.Yy(J,this.K)),this.tracks=g.$N(J,this.K,this),this.countLabel.W1(J.length?" ("+J.length+")":""),this.publish("size-change"),this.Ye(this.K(this.G.getAudioTrack())),this.enable(!0)):this.enable(!1)}; t1.prototype.qe=function(J){g.gg.prototype.qe.call(this,J);this.G.setAudioTrack(this.tracks[J]);this.JE.Ol()}; t1.prototype.K=function(J){return J.toString()};g.M(xR,CJ); xR.prototype.J=function(){var J=this.G.getPresentingPlayerType();if(J!==2&&J!==3&&g.M$(this.G))this.K||(this.JE.S2(this),this.K=!0,this.V.push(this.L(this.G,"videodatachange",this.J)),this.V.push(this.L(this.G,"videoplayerreset",this.J)),this.V.push(this.L(this.G,"onPlaylistUpdate",this.J)),this.V.push(this.L(this.G,"autonavchange",this.Z)),J=this.G.getVideoData(),this.Z(J.autonavState),this.G.logVisibility(this.element,this.K));else if(this.K){this.JE.zj(this);this.K=!1;J=g.K(this.V);for(var R=J.next();!R.done;R= J.next())this.tL(R.value)}}; xR.prototype.Z=function(J){X_(this,J!==1)}; xR.prototype.onSelect=function(J){this.G.Yo(J?2:1);this.K&&(this.G.logVisibility(this.element,this.K),this.G.logClick(this.element))}; xR.prototype.Fk=function(){this.K&&this.JE.zj(this);CJ.prototype.Fk.call(this)};g.M(HZB,g.y$);HZB.prototype.onClick=function(J){J.preventDefault();var R,N;(R=g.Cu(this.G))==null||(N=R.M0())==null||N.Uv();var C,X;(C=g.Cu(this.G))==null||(X=C.A6())==null||X.Df(J.target)};g.M(kyn,g.gg);g.T=kyn.prototype; g.T.J7=function(){var J=this.G.getPresentingPlayerType();if(J!==2&&J!==3){this.ma=this.G.T9();J=this.G.getAvailableQualityLevels();if(this.K){this.Z={};var R=g.J9(this.G,"getAvailableQualityData",[]);R=g.K(R);for(var N=R.next();!N.done;N=R.next())N=N.value,this.Z[N.qualityLabel]=N;R=Object.keys(this.Z);J[J.length-1]==="auto"&&R.push("auto");this.tN=new Set(J)}else if(this.U){N=g.J9(this.G,"getAvailableQualityData",[]);R=[];N=g.K(N);for(var C=N.next();!C.done;C=N.next())C=C.value,this.W[C.quality]= C,C.quality&&R.push(C.quality);J[J.length-1]==="auto"&&R.push("auto")}else R=J;g.YzP(this.G)&&this.G.hF()&&R.unshift("missing-qualities");rxE(this.G)&&R.unshift("inline-survey");this.CR(R);J=this.G.getVideoData().cotn?!0:!1;N=this.dn.Tj();N=!g.Xk(this.G.N())||!(J===void 0?0:J)||!(N===void 0||N);J=this.J;N=N===void 0?!1:N;J.Pc&&g.ao(J.qp("ytp-panel-footer"),"ytp-panel-hide-footer",N===void 0?!1:N);if(R.length){this.IP();this.enable(!0);return}}this.enable(!1)}; g.T.IP=function(){if(this.K){var J=this.G.getPreferredQuality();this.tN.has(J)&&(this.S=this.G.getPlaybackQuality(),this.nC=this.G.getPlaybackQualityLabel(),J==="auto"?(this.Ye(J),this.W1(this.Q4(J))):this.Ye(this.nC))}else J=this.G.getPreferredQuality(),this.options[J]&&(this.S=this.G.getPlaybackQuality(),this.Ye(J),J==="auto"&&this.W1(this.Q4(J)))}; g.T.qe=function(J){if(J!=="missing-qualities"){g.gg.prototype.qe.call(this,J);var R=this.K?this.Z[J]:this.W[J];var N=R==null?void 0:R.quality,C=R==null?void 0:R.formatId,X=R==null?void 0:R.paygatedQualityDetails;R=X==null?void 0:X.endpoint;if(X){var u;X=(u=this.options[J])==null?void 0:u.element;this.G.logClick(X)}if(this.K){var f,H;if((f=g.z(R,g.CfL))==null?0:(H=f.popup)==null?0:H.notificationActionRenderer)this.G.z7("innertubeCommand",R);else if(R){this.G.z7("innertubeCommand",R);return}C?this.G.setPlaybackQuality(N, C):this.G.setPlaybackQuality(N)}else{if(this.U){var k,v;if((k=g.z(R,g.CfL))==null?0:(v=k.popup)==null?0:v.notificationActionRenderer)this.G.z7("innertubeCommand",R);else if(R){this.G.z7("innertubeCommand",R);return}}this.G.setPlaybackQuality(J)}this.JE.Uv();this.J7()}}; g.T.open=function(){for(var J=g.K(Object.values(this.options)),R=J.next();!R.done;R=J.next()){R=R.value;var N=void 0;this.G.hasVe((N=R)==null?void 0:N.element)&&(N=void 0,this.G.logVisibility((N=R)==null?void 0:N.element,!0))}g.gg.prototype.open.call(this);this.G.logClick(this.element)}; g.T.F1=function(J,R,N){var C=this;if(J==="missing-qualities")return new g.y$({C:"a",CC:["ytp-menuitem"],B:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.G.N().W,tabindex:"0",role:"menuitemradio"},j:[{C:"div",CC:["ytp-menuitem-label"],cC:"{{label}}"}]},R,this.Q4(J));if(J!=="inline-survey"){var X,u=(X=this.K?this.Z[J]:this.W[J])==null?void 0:X.paygatedQualityDetails;X=u==null?void 0:u.veType;u=u==null?void 0:u.trackingParams;R=g.gg.prototype.F1.call(this,J,R,N);u?(this.G.createServerVe(R.element, this,!0),this.G.setTrackingParams(R.element,u)):X&&this.G.createClientVe(R.element,this,X,!0);return R}J=[{C:"span",cC:"Que tal?"}];N=g.K([!0,!1]);u=N.next();for(X={};!u.done;X={Zu:void 0},u=N.next())X.Zu=u.value,u=new g.c({C:"span",Y:"ytp-menuitem-inline-survey-response",j:[X.Zu?hmB():P4g()],B:{tabindex:"0",role:"button"}}),u.listen("click",function(f){return function(){var H=f.Zu,k=g.ih(C.G.app);k&&(k.u3("iqsr",{tu:H}),k.getVideoData().Ti=!0);C.JE.Uv();C.J7()}}(X)),J.push(u); return new g.y$({C:"div",Y:"ytp-menuitem",B:{"aria-disabled":"true"},j:[{C:"div",CC:["ytp-menuitem-label"],j:J}]},R)}; g.T.Q4=function(J,R){R=R===void 0?!1:R;if(J==="missing-qualities")return{C:"div",cC:"Faltam op\u00e7\u00f5es?"};if(J==="inline-survey")return"";var N=this.U||this.K?[SoB(this,J,R,!1)]:[W9g(this,J)];var C=this.G.getPreferredQuality();R||C!=="auto"||J!=="auto"||(N.push(" "),this.K?N.push(SoB(this,this.nC,R,!0,["ytp-menu-label-secondary"])):this.U?N.push(SoB(this,this.S,R,!0,["ytp-menu-label-secondary"])):N.push(W9g(this,this.S,["ytp-menu-label-secondary"])));return{C:"div",j:N}};g.M(JA,g.c);JA.prototype.init=function(){this.updateValue("minvalue",this.V);this.updateValue("maxvalue",this.U);this.updateValue("stepvalue",this.S);this.updateValue("slidervalue",this.J);L98(this,this.J)}; JA.prototype.X=function(){IqE(this,Number(this.K.value));this.K.focus()};g.M(ov,JA);ov.prototype.X=function(){JA.prototype.X.call(this);this.Z&&F9n(this)}; ov.prototype.ma=function(){this.W()}; ov.prototype.dn=function(){this.G.setPlaybackRate(this.J,!0)}; ov.prototype.nC=function(J){if(!J.defaultPrevented){switch(J.code){case "ArrowDown":var R=-this.S;break;case "ArrowUp":R=this.S;break;default:return}IqE(this,Math.min(this.U,Math.max(Number((this.J+R).toFixed(2)),this.V)));this.W();F9n(this);J.preventDefault()}};g.M(Rv,g.c);g.T=Rv.prototype;g.T.init=function(){this.cK(this.K);this.updateValue("minvalue",this.J);this.updateValue("maxvalue",this.V)}; g.T.ly=function(J){if(!J.defaultPrevented){switch(J.keyCode){case 37:case 40:var R=-this.X;break;case 39:case 38:R=this.X;break;default:return}this.cK(this.K+R);J.preventDefault()}}; g.T.YS=function(J){var R=this.K;R+=(J.deltaX||-J.deltaY)<0?-this.W:this.W;this.cK(R);J.preventDefault()}; g.T.hH=function(J){J=(J-g.q4(this.Z).x)/this.nC*this.range+this.J;this.cK(J)}; g.T.cK=function(J,R){R=R===void 0?"":R;J=g.I4(J,this.J,this.V);R===""&&(R=J.toString());this.updateValue("valuenow",J);this.updateValue("valuetext",R);this.dn.style.left=(J-this.J)/this.range*(this.nC-this.VO)+"px";this.K=J}; g.T.focus=function(){this.PC.focus()};g.M(NQ,Rv);NQ.prototype.ma=function(){this.G.setPlaybackRate(this.K,!0)}; NQ.prototype.cK=function(J){Rv.prototype.cK.call(this,J,MfP(this,J).toString());this.U&&(EWg(this),this.tN())}; NQ.prototype.updateValues=function(){var J=this.G.getPlaybackRate();MfP(this,this.K)!==J&&(this.cK(J),EWg(this))};g.M(K9Y,g.da);K9Y.prototype.focus=function(){this.K.focus()};g.M(aqE,OJ);g.M(Qa8,g.gg);g.T=Qa8.prototype;g.T.Q4=function(J){return J==="1"?"Normal":J.toLocaleString()}; g.T.hN=function(){var J,R=(J=this.G.getVideoData())==null?void 0:J.ZD();J=this.G.getPresentingPlayerType(R);this.enable(J!==2&&J!==3);Bjn(this)}; g.T.CR=function(J){g.gg.prototype.CR.call(this,J);this.S&&this.S.K.focus()}; g.T.aZ=function(J){g.gg.prototype.aZ.call(this,J);J?(this.nC=this.L(this.G,"onPlaybackRateChange",this.onPlaybackRateChange),Bjn(this),D12(this,this.G.getPlaybackRate())):(this.tL(this.nC),this.nC=null)}; g.T.onPlaybackRateChange=function(J){var R=this.G.getPlaybackRate();!this.U&&this.W.includes(R)||sak(this,R);D12(this,J)}; g.T.F1=function(J,R,N){return J===this.K&&OZE(this.G)?g.gg.prototype.F1.call(this,J,R,N,{C:"div",Y:"ytp-speed-slider-menu-footer",j:[this.S]}):g.gg.prototype.F1.call(this,J,R,N)}; g.T.qe=function(J){g.gg.prototype.qe.call(this,J);J===this.K?this.G.setPlaybackRate(this.Z,!0):this.G.setPlaybackRate(Number(J),!0);OZE(this.G)&&J===this.K||this.JE.Ol()}; g.T.mA=function(J){var R=J===this.K;this.U=!1;R&&CM(this.G)&&!OZE(this.G)?(J=new aqE(this.G),g.AZ(this.JE,J)):g.gg.prototype.mA.call(this,J)};g.M(d1E,g.gg);g.T=d1E.prototype;g.T.Ye=function(J){g.gg.prototype.Ye.call(this,J)}; g.T.Z$=function(J){return J.option.toString()}; g.T.getOption=function(J){return this.settings[J]}; g.T.Q4=function(J){return this.getOption(J).text||""}; g.T.qe=function(J){g.gg.prototype.qe.call(this,J);this.publish("settingChange",this.setting,this.settings[J].option)};g.M(X1,g.ZM);X1.prototype.TD=function(J){for(var R=g.K(Object.keys(J)),N=R.next();!N.done;N=R.next()){var C=N.value;if(N=this.Zd[C]){var X=J[C].toString();C=!!J[C+"Override"];N.options[X]&&(N.Ye(X),N.Z.element.setAttribute("aria-checked",String(!C)),N.K.element.setAttribute("aria-checked",String(C)))}}}; X1.prototype.fT=function(J,R){this.publish("settingChange",J,R)};g.M(iX,g.gg);iX.prototype.K=function(J){return J.languageCode}; iX.prototype.Q4=function(J){return this.languages[J].languageName||""}; iX.prototype.qe=function(J){this.publish("select",J);this.G.logClick(this.element);g.Y5(this.JE)};g.M(YoQ,g.gg);g.T=YoQ.prototype;g.T.gp=function(J){return g.rq(J)?"__off__":J.displayName}; g.T.Q4=function(J){return J==="__off__"?"Desativado":J==="__translate__"?"Traduzir automaticamente":J==="__contribute__"?"Adicionar legendas/CC":J==="__correction__"?"Sugerir corre\u00e7\u00f5es na legenda":(J==="__off__"?{}:this.tracks[J]).displayName}; g.T.qe=function(J){if(J==="__translate__")this.K.open();else if(J==="__contribute__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var R=g.bn(this.G.N(),this.G.getVideoData());g.Tg(R)}else if(J==="__correction__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var N=rF2(this);uX(this,N);g.gg.prototype.qe.call(this,this.gp(N));var C,X;N=(R=this.G.getVideoData().getPlayerResponse())==null?void 0:(C=R.captions)==null?void 0:(X=C.playerCaptionsTracklistRenderer)== null?void 0:X.openTranscriptCommand;this.G.z7("innertubeCommand",N);this.JE.Ol();this.Z&&this.G.logClick(this.Z)}else{if(J==="__correction__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();R=rF2(this);uX(this,R);g.gg.prototype.qe.call(this,this.gp(R));var u,f;R=(N=this.G.getVideoData().getPlayerResponse())==null?void 0:(u=N.captions)==null?void 0:(f=u.playerCaptionsTracklistRenderer)==null?void 0:f.openTranscriptCommand;this.G.z7("innertubeCommand",R)}else this.G.logClick(this.element), uX(this,J==="__off__"?{}:this.tracks[J]),g.gg.prototype.qe.call(this,J);this.JE.Ol()}}; g.T.hN=function(){var J=this.G.getOptions();J=J&&J.indexOf("captions")!==-1;var R=this.G.getVideoData(),N=R&&R.YJ,C,X=!((C=this.G.getVideoData())==null||!g.e9(C));C={};if(J||N){var u;if(J){var f=this.G.getOption("captions","track");C=this.G.getOption("captions","tracklist",{includeAsr:!0});var H=X?[]:this.G.getOption("captions","translationLanguages");this.tracks=g.$N(C,this.gp,this);X=g.Yy(C,this.gp);var k,v;rF2(this)&&((u=R.getPlayerResponse())==null?0:(k=u.captions)==null?0:(v=k.playerCaptionsTracklistRenderer)== null?0:v.openTranscriptCommand)&&X.push("__correction__");if(H.length&&!g.rq(f)){if((u=f.translationLanguage)&&u.languageName){var W=u.languageName;u=H.findIndex(function(S){return S.languageName===W}); A_Y(H,u)}qoE(this.K,H);X.push("__translate__")}u=this.gp(f)}else this.tracks={},X=[],u="__off__";X.unshift("__off__");this.tracks.__off__={};N&&X.unshift("__contribute__");this.tracks[u]||(this.tracks[u]=f,X.push(u));this.CR(X);this.Ye(u);f&&f.translationLanguage?this.K.Ye(this.K.K(f.translationLanguage)):IEg(this.K);J&&this.U.TD(this.G.getSubtitlesUserSettings());this.countLabel.W1(C&&C.length?" ("+C.length+")":"");this.publish("size-change");this.G.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.T.rZ=function(J){var R=this.G.getOption("captions","track");R=g.Vs(R);R.translationLanguage=this.K.languages[J];uX(this,R)}; g.T.fT=function(J,R){if(J==="reset")this.G.resetSubtitlesUserSettings();else{var N={};N[J]=R;this.G.updateSubtitlesUserSettings(N)}AFg(this,!0);this.S.start();this.U.TD(this.G.getSubtitlesUserSettings())}; g.T.cYp=function(J){J||g.vK(this.S)}; g.T.Fk=function(){g.vK(this.S);g.gg.prototype.Fk.call(this)}; g.T.open=function(){g.gg.prototype.open.call(this);this.options.__correction__&&!this.Z&&(this.Z=this.options.__correction__.element,this.G.createClientVe(this.Z,this,167341),this.G.logVisibility(this.Z,!0))};g.M(ja7,g.qt);g.T=ja7.prototype; g.T.initialize=function(){if(!this.isInitialized){var J=this.G.N();this.isInitialized=!0;try{this.j_=new kyn(this.G,this)}catch(N){g.G$(Error("QualityMenuItem creation failed"))}g.P(this,this.j_);var R=new YoQ(this.G,this);g.P(this,R);J.V||(R=new b_(this.G,this),g.P(this,R));J.enableSpeedOptions&&(R=new Qa8(this.G,this),g.P(this,R));(g.V_(J)||J.S)&&(J.J||J.pC)&&(R=new HZB(this.G,this),g.P(this,R));J.m7&&!J.T("web_player_move_autonav_toggle")&&(J=new xR(this.G,this),g.P(this,J));J=new t1(this.G,this); g.P(this,J);this.G.publish("settingsMenuInitialized");$1Q(this.settingsButton,this.Jz.F7())}}; g.T.S2=function(J){this.initialize();this.Jz.S2(J);$1Q(this.settingsButton,this.Jz.F7())}; g.T.zj=function(J){this.Fn&&this.Jz.F7()<=1&&this.hide();this.Jz.zj(J);$1Q(this.settingsButton,this.Jz.F7())}; g.T.Df=function(J){this.initialize();this.Jz.F7()>0&&g.qt.prototype.Df.call(this,J)}; g.T.Uv=function(){this.KF?this.KF=!1:g.qt.prototype.Uv.call(this)}; g.T.show=function(){g.qt.prototype.show.call(this);g.FL(this.G.getRootNode(),"ytp-settings-shown")}; g.T.hide=function(){g.qt.prototype.hide.call(this);g.Mh(this.G.getRootNode(),"ytp-settings-shown")}; g.T.Fe=function(J){this.G.logVisibility(this.element,J);this.G.publish("settingsMenuVisibilityChanged",J)};g.M(fM,g.c);fM.prototype.onClick=function(){if(Vfk(this)&&(this.G.toggleSubtitles(),this.G.logClick(this.element),!this.isEnabled())){var J=!1,R=g.xI(g.tf(),65);g.Xk(this.G.N())&&R!=null&&(J=!R);J&&this.G.N().T("web_player_nitrate_promo_tooltip")&&this.G.publish("showpromotooltip",this.element)}}; fM.prototype.K=function(J){var R,N;(R=g.Cu(this.G))==null||(N=R.M0())==null||N.Df(J)}; fM.prototype.isEnabled=function(){return!!this.G.getOption("captions","track").displayName}; fM.prototype.hN=function(){var J=Vfk(this),R=300;this.G.N().X&&(R=480);if(this.G.N().S){this.updateValue("title",g.HE(this.G,"Legendas/legendas ocultas","c"));this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"});var N=J}else{if(J)(N=this.qp("ytp-subtitles-button-icon"))==null||N.setAttribute("fill-opacity","1"),this.updateValue("title",g.HE(this.G,"Legendas/legendas ocultas","c")),this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"});else{var C;(C=this.qp("ytp-subtitles-button-icon"))== null||C.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"})}N=!0}this.tooltip.mQ();N=N&&this.G.jQ().getPlayerSize().width>=R;g.ZK(this,N);this.G.logVisibility(this.element,N);J?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.M(g.TM,g.c);g.T=g.TM.prototype; g.T.P1=function(){var J=this.api.jQ().getPlayerSize().width,R=this.X;this.api.N().X&&(R=400);R=J>=R&&(!$c(this)||!g.h(this.api.getPlayerStateObject(),64));g.ZK(this,R);g.ao(this.element,"ytp-time-display-allow-autohide",R&&J<400);J=this.api.getProgressState();if(R){R=this.api.getPresentingPlayerType();var N=this.api.getCurrentTime(R,!1);this.J&&(N-=J.airingStart);Hc(this)&&(N-=this.mD.startTimeMs/1E3);N=g.z8(N);this.V!==N&&(this.updateValue("currenttime",N),this.V=N);R=Hc(this)?g.z8((this.mD.endTimeMs- this.mD.startTimeMs)/1E3):g.z8(this.api.getDuration(R,!1));this.Z!==R&&(this.updateValue("duration",R),this.Z=R)}gW2(this,J.isAtLiveHead);U1P(this,this.api.getLoopRange())}; g.T.onLoopRangeChange=function(J){var R=this.mD!==J;this.mD=J;R&&(this.P1(),p5f(this))}; g.T.L7N=function(){this.api.setLoopRange(null)}; g.T.onVideoDataChange=function(J,R,N){this.updateVideoData((this.api.N().T("enable_topsoil_wta_for_halftime")||this.api.N().T("enable_topsoil_wta_for_halftime_live_infra"))&&N===2?this.api.getVideoData(1):R);this.P1();p5f(this)}; g.T.updateVideoData=function(J){this.WO=J.isLivePlayback&&!J.oB;this.J=wO(J);this.isPremiere=J.isPremiere;g.ao(this.element,"ytp-live",$c(this))}; g.T.onClick=function(J){J.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.T.Fk=function(){this.K&&this.K();g.c.prototype.Fk.call(this)};g.M(Prk,g.c);g.T=Prk.prototype;g.T.M2=function(){var J=this.api.Kx();this.V!==J&&(this.V=J,lq2(this,this.api.getVolume(),this.api.isMuted()))}; g.T.U_=function(J){g.ZK(this,J.width>=350)}; g.T.yY=function(J){if(!J.defaultPrevented){var R=J.keyCode,N=null;R===37?N=this.volume-5:R===39?N=this.volume+5:R===36?N=0:R===35&&(N=100);N!==null&&(N=g.I4(N,0,100),N===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(N)),J.preventDefault())}}; g.T.Ls=function(J){var R=J.deltaX||-J.deltaY;J.deltaMode?this.api.setVolume(this.volume+(R<0?-10:10)):this.api.setVolume(this.volume+g.I4(R/10,-10,10));J.preventDefault()}; g.T.iYC=function(){kc(this,this.K,!0,this.J,this.api.H9());this.W=this.volume;this.api.isMuted()&&this.api.unMute()}; g.T.Dm=function(J){var R=this.V?78:52,N=this.V?18:12;J-=g.q4(this.X).x;this.api.setVolume(g.I4((J-N/2)/(R-N),0,1)*100)}; g.T.qmO=function(){kc(this,this.K,!1,this.J,this.api.H9());this.volume===0&&(this.api.mute(),this.api.setVolume(this.W))}; g.T.onVolumeChange=function(J){lq2(this,J.volume,J.muted)}; g.T.yj=function(){kc(this,this.K,this.isDragging,this.J,this.api.H9())}; g.T.Fk=function(){g.c.prototype.Fk.call(this);g.Mh(this.S,"ytp-volume-slider-active")};g.M(vc,g.c); vc.prototype.onVideoDataChange=function(){var J=this.api.N();this.NR();this.visible=!!this.api.getVideoData().videoId&&!g.cJ(this.api.getVideoData(1));g.ZK(this,this.visible);this.api.logVisibility(this.element,this.visible&&this.D);if(this.visible){var R=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",R)}J.V&&(this.K&&(this.tL(this.K),this.K=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.FL(this.element,"no-link")); R=this.api.N();J=this.api.getVideoData();var N="";R.V||(R=g.Jz(R),R.indexOf("www.")===0&&(R=R.substring(4)),N=g.hq(J)?"Assistir no YouTube Music":R==="youtube.com"?"Assistir no YouTube":g.rN("Assista em $WEBSITE",{WEBSITE:R}));this.updateValue("title",N)}; vc.prototype.onClick=function(J){this.api.T("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var R=this.api.N(),N=this.api.getVideoUrl(!g.ea(J),!1,!0,!0);if(g.V_(R)){var C={};g.V_(R)&&g.J9(this.api,"addEmbedsConversionTrackingParams",[C]);N=g.bD(N,C)}g.ue(N,this.api,J);this.api.T("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; vc.prototype.NR=function(){var J={C:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},j:[{C:"path",JL:!0,Y:"ytp-svg-fill",B:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, R=28666,N=this.api.getVideoData();this.api.Yv()?J={C:"svg",B:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},j:[{C:"path",B:{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.hq(N)&&(J={C:"svg",B:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},j:[{C:"path",B:{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"}},{C:"path",B:{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"}},{C:"path",B:{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"}},{C:"path",B:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{C:"path",B:{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"}},{C:"path",B:{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"}},{C:"path",B:{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"}},{C:"path",B:{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"}},{C:"path",B:{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"}},{C:"path",B:{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"}},{C:"path",B:{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"}},{C:"path",B:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},R=216163);g.hq(N)?g.FL(this.element,"ytp-youtube-music-button"):g.Mh(this.element,"ytp-youtube-music-button");J.B=Object.assign({},J.B,{"aria-hidden":"true"});this.updateValue("logoSvg",J);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,R,!0)}; vc.prototype.Ev=function(J){g.c.prototype.Ev.call(this,J);this.api.logVisibility(this.element,this.visible&&J)};g.M(eJB,g.tY);g.T=eJB.prototype;g.T.zN=function(){if(this.G.T("web_player_max_seekable_on_ended")||!g.h(this.G.getPlayerStateObject(),2))this.progressBar.P1(),this.tN.P1()}; g.T.cN=function(){this.TZ();this.kT.J?this.zN():this.progressBar.Iu()}; g.T.eG=function(){this.zN();this.W.start()}; g.T.TZ=function(){var J;if(J=!this.G.N().J){J=this.progressBar;var R=2*g.CW()*J.X;J=J.V.getLength()*1E3/J.api.getPlaybackRate()/R<300}J=J&&this.G.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;R=!J;this.kT.J||(J=R=!1);R?this.ma||(this.ma=this.L(this.G,"progresssync",this.zN)):this.ma&&(this.tL(this.ma),this.ma=null);J?this.W.isActive()||this.W.start():this.W.stop()}; g.T.NR=function(){var J=this.G.Kx(),R=this.G.jQ().getPlayerSize(),N=cFg(this),C=Math.max(R.width-N*2,100);if(this.Xk!==R.width||this.eQ!==J){this.Xk=R.width;this.eQ=J;var X=hJ2(this);this.V.element.style.width=X+"px";this.V.element.style.left=N+"px";g.iZ8(this.progressBar,N,X,J);this.G.Op().QJ=X}N=this.J;C=Math.min(570*(J?1.5:1),C);J=Math.min(413*(J?1.5:1),Math.round((R.height-yFg(this))*.82));N.maxWidth=C;N.maxHeight=J;N.Th();this.TZ();this.G.N().T("html5_player_dynamic_bottom_gradient")&&Rvg(this.HC, R.height)}; g.T.onVideoDataChange=function(){var J=this.G.getVideoData();this.T7.style.background=J.wL?J.RF:"";this.dn&&fzQ(this.dn,J.showSeekingControls);this.nC&&fzQ(this.nC,J.showSeekingControls)}; g.T.Ov=function(){return this.V.element};g.M(Gy2,B8);g.T=Gy2.prototype;g.T.l6=function(J){J.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.z7("innertubeCommand",this.onClickCommand),this.Po())}; g.T.Po=function(){this.enabled=!1;this.nC.hide()}; g.T.onVideoDataChange=function(J,R){J==="dataloaded"&&bZf(this);J=[];var N,C,X,u;if(R=(u=g.z((N=R.getWatchNextResponse())==null?void 0:(C=N.playerOverlays)==null?void 0:(X=C.playerOverlayRenderer)==null?void 0:X.suggestedActionsRenderer,Z69))==null?void 0:u.suggestedActions)for(N=g.K(R),C=N.next();!C.done;C=N.next())(C=g.z(C.value,dVq))&&g.z(C.trigger,O6P)&&J.push(C);if(J.length!==0){N=[];J=g.K(J);for(C=J.next();!C.done;C=J.next())if(C=C.value,X=g.z(C.trigger,O6P))u=(u=C.title)?g.Yn(u):"View Chapters", R=X.timeRangeStartMillis,X=X.timeRangeEndMillis,R!=null&&X!=null&&C.tapCommand&&(N.push(new g.Kw(R,X,{priority:9,namespace:"suggested_action_button_visible",id:u})),this.suggestedActions[u]=C.tapCommand);this.G.KL(N)}}; g.T.gY=function(){return this.enabled}; g.T.Fe=function(){this.enabled?this.T7.start():DM(this);this.Rn()}; g.T.Fk=function(){bZf(this);B8.prototype.Fk.call(this)};var oV={},Wc=(oV.CHANNEL_NAME="ytp-title-channel-name",oV.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",oV.LINK="ytp-title-link",oV.SESSIONLINK="yt-uix-sessionlink",oV.SUBTEXT="ytp-title-subtext",oV.TEXT="ytp-title-text",oV.TITLE="ytp-title",oV);g.M(SY,g.c);SY.prototype.onClick=function(J){this.api.logClick(this.element);var R=this.api.N(),N=this.api.getVideoUrl(!g.ea(J),!1,!0);g.V_(R)&&(R={},g.J9(this.api,"addEmbedsConversionTrackingParams",[R]),N=g.bD(N,R));g.ue(N,this.api,J)}; SY.prototype.hN=function(){var J=this.api.getVideoData(),R=this.api.N();this.updateValue("title",J.title);var N={C:"a",Y:Wc.CHANNEL_NAME,B:{href:"{{channelLink}}",target:"_blank"},cC:"{{channelName}}"};this.api.N().V&&(N={C:"span",Y:Wc.CHANNEL_NAME,cC:"{{channelName}}",B:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",N);tfP(this);this.api.getPresentingPlayerType()===2&&(N=this.api.getVideoData(),N.videoId&&N.isListed&&N.author&&N.R1&&N.profilePicture?(this.updateValue("channelLink", N.R1),this.updateValue("channelName",N.author),this.updateValue("channelTitleFocusable","0")):tfP(this));N=R.externalFullscreen||!this.api.isFullscreen()&&R.OV;g.ao(this.link,Wc.FULLERSCREEN_LINK,N);R.dn||!J.videoId||N||g.cJ(J)||R.V?this.K&&(this.updateValue("url",null),this.tL(this.K),this.K=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.K||(this.K=this.L(this.link,"click",this.onClick)));R.V&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.V_(R)?J.expandedTitle: J.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.M(g.LM,g.c);g.T=g.LM.prototype;g.T.setEnabled=function(J){if(this.type!=null)if(J)switch(this.type){case 3:case 2:Ju8(this);this.S.show();break;default:this.S.show()}else this.S.hide();this.X=J}; g.T.K_=function(J,R,N,C,X,u,f,H){if(!this.VO||this.env.X){this.type===3&&this.Iu();this.type!==1&&(g.L$(this.element,"ytp-tooltip ytp-bottom ytp-rounded-tooltip"),this.type=1,this.X&&this.S.show(),this.J&&this.J.dispose(),(this.J=this.api.DY())&&this.J.subscribe("l",this.Yc,this));if(H){var k=g.rh(this.bg).height||141;this.PC.style.bottom=k+2+"px"}this.update({text:N,title:u!=null?u:"",eduText:H!=null?H:""});g.ao(this.text,"ytp-tooltip-text-no-title",this.type===1&&!u);this.api.isInline()&&g.FL(this.text, "ytp-modern-tooltip-text");g.ao(this.element,"ytp-text-detail",!!C);N=-1;this.J&&(N=ee(this.J,243*this.scale),this.env.T("web_l3_storyboard")&&this.J.levels.length===4&&(N=this.J.levels.length-1),N=quE(this.J,N,R));RqE(this,N);if(f)switch(R=g.rh(this.element).width,f){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=R+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=R/2+"px",this.title.style.textAlign="center"}o2E(this, !!C,J,X)}}; g.T.VX=function(){this.type===1&&this.Iu()}; g.T.wD=function(J,R){if(this.type)if(this.type===3)this.Iu();else return;x1n(this,J,3,R)}; g.T.mQ=function(){this.K&&!this.W&&this.K.hasAttribute("title")&&(this.V=this.K.getAttribute("title")||"",this.K.removeAttribute("title"),this.X&&Ju8(this))}; g.T.Yc=function(J,R){J<=this.Z&&this.Z<=R&&(J=this.Z,this.Z=NaN,RqE(this,J))}; g.T.C3n=function(){Zff(this.J,this.Z,243*this.scale)}; g.T.Iu=function(){switch(this.type){case 2:var J=this.K;J.removeEventListener("mouseout",this.nC);J.addEventListener("mouseover",this.U);J.removeEventListener("blur",this.nC);J.addEventListener("focus",this.U);NR7(this);break;case 3:NR7(this);break;case 1:this.J&&(this.J.unsubscribe("l",this.Yc,this),this.J=null),this.api.removeEventListener("videoready",this.dn),this.ma.stop()}this.type=null;this.X&&this.S.hide()}; g.T.ZR=function(){if(this.K)for(var J=0;J=0;R--)if(this.Gx[R]===J){this.Gx.splice(R,1);break}Zo(this.kT,64,this.Gx.length>0)}; g.T.JR=function(){this.api.SS()&&this.api.fV();return!!this.Sv||TR2(this)||g.Ug.prototype.JR.call(this)}; g.T.RC=oQ(3);g.T.Y2=oQ(7);g.T.M8=oQ(10);g.T.dC=function(){var J=!this.JR(),R=J&&this.api.SS()&&!g.h(this.api.getPlayerStateObject(),2)&&!g.cJ(this.api.getVideoData())&&!this.api.N().V&&!this.api.Yv(),N=this.Bi&&g.Lu(this.api)&&g.h(this.api.getPlayerStateObject(),128);J||N?(this.Fj.show(),this.cA.show()):(this.Fj.hide(),this.cA.hide(),this.api.ZR(this.xe.element));R?this.Qg.Df():this.Qg.Uv();this.sQ&&w5B(this.sQ,this.S_||!J);this.api.T("web_player_hide_overflow_button_if_empty_menu")&&$en(this);g.Ug.prototype.dC.call(this)}; g.T.Hs=function(J,R,N,C,X){J.style.left="";J.style.top="";J.style.bottom="";var u=g.rh(J),f=C||this.sQ&&g.kw(this.sQ.Ov(),R),H=C=null;N!=null&&f||(C=g.rh(R),H=g.AU(R,this.api.getRootNode()),N==null&&(N=H.x+C.width/2));N-=u.width/2;f?(R=this.sQ,C=cFg(R),H=hJ2(R),f=this.api.jQ().getPlayerSize().height,N=g.I4(N,C,C+H-u.width),u=f-yFg(R)-u.height):g.kw(this.xe.element,R)?(R=this.api.jQ().getPlayerSize().width,N=g.I4(N,12,R-u.width-12),u=this.Kx()?this.Oo:this.gj,this.api.N().playerStyle==="gvn"&&(u+= 20),this.Bi&&(u-=this.Kx()?26:18)):(R=this.api.jQ().getPlayerSize(),N=g.I4(N,12,R.width-u.width-12),u=H.y>(R.height-C.height)/2?H.y-u.height-12:H.y+C.height+12);J.style.top=u+(X||0)+"px";J.style.left=N+"px"}; g.T.cN=function(J){J&&(this.api.ZR(this.xe.element),this.sQ&&this.api.ZR(this.sQ.Ov()));this.My&&(g.ao(this.contextMenu.element,"ytp-autohide",J),g.ao(this.contextMenu.element,"ytp-autohide-active",!0));g.Ug.prototype.cN.call(this,J)}; g.T.hJ=function(){g.Ug.prototype.hJ.call(this);this.My&&(g.ao(this.contextMenu.element,"ytp-autohide-active",!1),this.My&&(this.contextMenu.hide(),this.GD&&this.GD.hide()))}; g.T.hU=function(J,R){var N=this.api.jQ().getPlayerSize();N=new g.vq(0,0,N.width,N.height);if(J||this.kT.J&&!this.JR()){if(this.api.N().tD||R)J=this.Kx()?this.Oo:this.gj,N.top+=J,N.height-=J;this.sQ&&(N.height-=yFg(this.sQ))}return N}; g.T.M2=function(J){var R=this.api.getRootNode();J?R.parentElement?(R.setAttribute("aria-label","Player de v\u00eddeo do YouTube em tela cheia"),this.api.N().externalFullscreen||(R.parentElement.insertBefore(this.n3.element,R),R.parentElement.insertBefore(this.uZ.element,R.nextSibling))):g.yD(Error("Player not in DOM.")):(R.setAttribute("aria-label","Player de v\u00eddeo do YouTube"),this.n3.detach(),this.uZ.detach());this.NR();this.FY()}; g.T.Kx=function(){var J=this.api.N();return this.api.isFullscreen()&&!J.X||!1}; g.T.showControls=function(J){this.Tq=!J;this.dC()}; g.T.NR=function(){var J=this.Kx();this.tooltip.scale=J?1.5:1;this.contextMenu&&g.ao(this.contextMenu.element,"ytp-big-mode",J);this.dC();this.api.T("web_player_hide_overflow_button_if_empty_menu")||$en(this);this.FY();var R=this.api.Yv();R&&J?(J=(this.api.jQ().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Lz(this.xe.element,"padding-left",J+"px"),g.Lz(this.xe.element,"padding-right",J+"px")):R&&(g.Lz(this.xe.element,"padding-left",""),g.Lz(this.xe.element,"padding-right",""));g.Ug.prototype.NR.call(this)}; g.T.TF=function(){if(TR2(this)&&!g.Lu(this.api))return!1;var J=this.api.getVideoData();return!g.V_(this.api.N())||this.api.getPresentingPlayerType()===2||!this.Lx||((J=this.Lx||J.Lx)?(J=J.embedPreview)?(J=J.thumbnailPreviewRenderer,J=J.videoDetails&&g.z(J.videoDetails,q68)||null):J=null:J=null,J&&J.collapsedRenderer&&J.expandedRenderer)?g.Ug.prototype.TF.call(this):!1}; g.T.FY=function(){g.Ug.prototype.FY.call(this);this.api.logVisibility(this.title.element,!!this.fh);this.Au&&this.Au.Ev(!!this.fh);this.channelAvatar.Ev(!!this.fh);this.overflowButton&&this.overflowButton.Ev(this.FP()&&!!this.fh);this.shareButton&&this.shareButton.Ev(!this.FP()&&!!this.fh);this.LV&&this.LV.Ev(!this.FP()&&!!this.fh);this.searchButton&&this.searchButton.Ev(!this.FP()&&!!this.fh);this.copyLinkButton&&this.copyLinkButton.Ev(!this.FP()&&!!this.fh);if(!this.fh){this.api.ZR(this.xe.element); for(var J=0;J5&&R.u3("glrs",{cmt:N});R.seekTo(0,{seekSource:58});R.u3("glrre",{cmt:N})}}; MQ.prototype.Fk=function(){this.K=null;g.l.prototype.Fk.call(this)};g.M(g.KM,PS);g.T=g.KM.prototype;g.T.isView=function(){return!0}; g.T.nN=function(){var J=this.mediaElement.getCurrentTime();if(J=4&&J!=="player-reload-after-handoff";this.status={status:Infinity,error:J};if(this.K&&this.J){var C=this.J.getVideoData().clientPlaybackNonce;this.K.us(new PD("dai.transitionfailure",Object.assign(R,{cpn:C,transitionTimeMs:this.JD,msg:J})));v8(this.K,N)}this.Kw.reject(J);this.dispose()}}; g.T.sM=function(){return this.status.status>=4&&this.status.status<6}; g.T.Fk=function(){Q0B(this);this.K.unsubscribe("newelementrequired",this.pu,this);if(this.V){var J=this.V.J;this.V.K.dk.unsubscribe("updateend",this.sJ,this);J.dk.unsubscribe("updateend",this.sJ,this)}g.l.prototype.Fk.call(this)}; g.T.CM=function(J){g.Yp(J,128)&&this.J2("player-error-event")};g.M(BRP,g.l);g.T=BRP.prototype;g.T.clearQueue=function(J,R){J=J===void 0?!1:J;R=R===void 0?!1:R;this.Z&&this.Z.reject("Queue cleared");this.app.N().T("html5_gapless_fallback_on_qoe_restart_v2")||R&&this.J&&v8(this.J,!1);nM(this,J)}; g.T.er=function(){return!this.K}; g.T.Rv=function(J){return this.K===J}; g.T.sM=function(){var J;return((J=this.V)==null?void 0:J.sM())||!1}; g.T.Fk=function(){nM(this);g.l.prototype.Fk.call(this)};g.M(qPP,g.al);g.T=qPP.prototype;g.T.getVisibilityState=function(J,R,N,C,X,u,f,H){return J?4:M1E()?3:R?2:N?1:C?5:X?7:u?8:f?9:H?10:0}; g.T.EV=function(J){this.fullscreen!==J&&(this.fullscreen=J,this.Fe())}; g.T.setMinimized=function(J){this.J!==J&&(this.J=J,this.Fe())}; g.T.setInline=function(J){this.inline!==J&&(this.inline=J,this.Fe())}; g.T.vK=function(J){this.pictureInPicture!==J&&(this.pictureInPicture=J,this.Fe())}; g.T.setSqueezeback=function(J){this.V!==J&&(this.V=J,this.Fe())}; g.T.v8=function(J){this.Z!==J&&(this.Z=J,this.Fe())}; g.T.Zy=function(){return this.K}; g.T.Zp=function(){return this.fullscreen!==0}; g.T.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.T.jo=function(){return this.fullscreen}; g.T.isMinimized=function(){return this.J}; g.T.isInline=function(){return this.inline}; g.T.isBackground=function(){return M1E()}; g.T.Fp=function(){return this.pictureInPicture}; g.T.Ah=function(){return!1}; g.T.lR=function(){return this.V}; g.T.zg=function(){return this.Z}; g.T.Fe=function(){this.publish("visibilitychange");var J=this.getVisibilityState(this.Zy(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Fp(),this.Ah(),this.lR(),this.zg());J!==this.S&&this.publish("visibilitystatechange");this.S=J}; g.T.Fk=function(){QuE(this.U);g.al.prototype.Fk.call(this)};g.M(sQ,g.l);g.T=sQ.prototype;g.T.enqueue=function(J,R){if(J.Z!==this)return!1;if(this.segments.length===0||(R===void 0?0:R))this.K=J;this.segments.push(J);return!0}; g.T.P7=function(){return this.hE||0}; g.T.y7=function(){return this.Z||0}; g.T.removeAll=function(){for(;this.segments.length;){var J=void 0;(J=this.segments.pop())==null||J.dispose()}this.J.clear();this.V=void 0}; g.T.Fk=function(){this.removeAll();g.l.prototype.Fk.call(this)}; g.M(lYB,g.l);g.T=lYB.prototype;g.T.P7=function(){return this.hE}; g.T.y7=function(){return this.V}; g.T.getType=function(){return this.type}; g.T.getVideoData=function(){return this.videoData}; g.T.jl=function(J){nKP(J);this.videoData=J}; g.T.Fk=function(){PQY(this);g.l.prototype.Fk.call(this)};g.M(g.dF,g.l);g.T=g.dF.prototype;g.T.w2=function(J,R,N){return new g.Kw(J,R,{id:N,namespace:"serverstitchedcuerange",priority:9})}; g.T.onCueRangeEnter=function(J){this.T7.push(J);var R=J.getId();this.RB.u3("sdai",{oncueEnter:1,cpn:R,start:J.start,end:J.end,ct:(this.RB.getCurrentTime()||0).toFixed(3),cmt:(this.RB.xT()||0).toFixed(3)});var N=R==="";this.oB.add(J.J);var C=this.V.get(R);if(N){var X;if(this.RB.getVideoData().ZD()&&((X=this.K)==null?0:X.Tl)&&this.X){this.xP=0;this.K=void 0;this.EB&&(this.events.tL(this.EB),this.EB=null);this.X="";this.l3=!0;return}}else if(this.RB.u3("sdai",{enterAdCueRange:1}),this.RB.getVideoData().ZD()&& (C==null?0:C.Ym))return;if(this.l3&&!this.K)this.l3=!1,!N&&C&&(N=this.RB.getCurrentTime(),rF(this,{MP:J,isAd:!0,Qq:!0,jt:N,adCpn:R},{isAd:!1,Qq:!1,jt:N}),this.tE=C.cpn,bxB(this,C),J=Yc(this,"midab",C),this.RB.u3("sdai",J),this.xP=1),this.ma=!1;else if(this.K){if(this.K.Qq)this.RB.u3("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.K.adCpn,transitionTime:this.K.jt,cpn:R,currentTime:this.RB.getCurrentTime()}),C=this.RB.getCurrentTime(),J={MP:J,isAd:!N,Qq:!0,jt:C,adCpn:R},R={MP:this.K.MP,isAd:this.K.isAd, Qq:!1,jt:C,adCpn:this.K.adCpn},this.K.MP&&this.oB.delete(this.K.MP.J),rF(this,J,R);else{if(this.K.MP===J){this.RB.u3("sdai",{same_cue_range_pair_enter:1,acpn:this.K.adCpn,transitionTime:this.K.jt,cpn:R,currentTime:this.RB.getCurrentTime(),cueRangeStartTime:J.start,cueRangeEndTime:J.end});this.K=void 0;return}if(this.K.adCpn===R){R&&this.RB.u3("sdai",{dchtsc:R});this.K=void 0;return}J={MP:J,isAd:!N,Qq:!0,jt:this.RB.getCurrentTime(),adCpn:R};rF(this,J,this.K)}this.K=void 0;this.ma=!1}else this.K={MP:J, isAd:!N,Qq:!0,jt:this.RB.getCurrentTime(),adCpn:R}}; g.T.onCueRangeExit=function(J){var R=J.getId();this.RB.u3("sdai",{oncueExit:1,cpn:R,start:J.start,end:J.end,ct:(this.RB.getCurrentTime()||0).toFixed(3),cmt:(this.RB.xT()||0).toFixed(3)});var N=R==="",C=this.V.get(R);if(this.RB.getVideoData().ZD()&&!N&&C){if(C.Ym)return;C.Ym=!0;this.S.clear();if(this.KC.T("html5_lifa_no_rewatch_ad_sbc"))if(this.RB.wj()){var X=C.hE;this.RB.BW(X/1E3,(X+C.durationMs)/1E3)}else this.RB.u3("lifa",{remove:0})}if(this.oB.has(J.J))if(this.oB.delete(J.J),this.T7=this.T7.filter(function(u){return u!== J}),this.l3&&(this.ma=this.l3=!1,this.RB.u3("sdai",{cref:1})),this.K){if(this.K.Qq){if(this.K.MP===J){this.RB.u3("sdai",{same_cue_range_pair_exit:1, acpn:this.K.adCpn,transitionTime:this.K.jt,cpn:R,currentTime:this.RB.getCurrentTime(),cueRangeStartTime:J.start,cueRangeEndTime:J.end});this.K=void 0;return}if(this.K.adCpn===R){R&&this.RB.u3("sdai",{dchtsc:R});this.K=void 0;return}R={MP:J,isAd:!N,Qq:!1,jt:this.RB.getCurrentTime(),adCpn:R};rF(this,this.K,R)}else this.RB.u3("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.K.adCpn,transitionTime:this.K.jt,upcomingCpn:R,contentCpn:this.RB.getVideoData().clientPlaybackNonce,currentTime:this.RB.getCurrentTime()}); this.K=void 0;this.ma=!1}else this.K={MP:J,isAd:!N,Qq:!1,jt:this.RB.getCurrentTime(),adCpn:R};else this.RB.u3("sdai",{ignore_single_exit:1})}; g.T.t9=function(){return{cpn:this.RB.getVideoData().clientPlaybackNonce,durationMs:0,hE:0,playerType:1,IG:0,videoData:this.RB.getVideoData(),errorCount:0}}; g.T.Hd=function(){if(this.hD)return!1;var J=void 0;this.tE&&(J=this.V.get(this.tE));return this.RB.getVideoData().ZD()?!!J&&!J.Ym:!!J}; g.T.seekTo=function(J,R,N,C){J=J===void 0?0:J;R=R===void 0?{}:R;N=N===void 0?!1:N;C=C===void 0?null:C;if(this.RB.getVideoData().ZD()&&J<=this.HC/1E3)this.RB.pauseVideo(),this.HC=0,this.ma=!0,h4(this.RB),this.RB.seekTo(J),this.RB.playVideo();else if(this.ma=!0,N)eq7(this,J,R);else{N=this.api.Us();var X=N===this.Xk?this.R1:null;jY(this,!1);this.Xn=J;this.YA=R;C!=null&&this.TW.start(C);N&&(this.R1=X||N.getPlayerState(),RPk(N),this.Xk=N)}}; g.T.Fk=function(){jY(this,!1);RtB(this);N4B(this);g.l.prototype.Fk.call(this)}; g.T.YV=function(J){this.VR=J;this.RB.u3("sdai",{swebm:J})}; g.T.eR=function(J,R,N){if(N&&R){var C=this.S.get(J);if(C){C.locations||(C.locations=new Map);var X=Number(R.split(";")[0]);N=new g.jB(N);this.pC&&this.RB.u3("sdai",{hdlredir:1,itag:R,seg:J,hostport:VM(N)});C.locations.set(X,N)}}}; g.T.vx=function(J,R,N,C,X,u){var f=C===3;X=XLB(this,J,R,C,N,u);if(!X)return gF(this,R,f),X=g.Cl7(this,R)?"undec":"ncp",this.RB.u3("sdai",{gvprp:X,mt:J,seg:R,tt:C,itag:N,ce:u}),null;f||this.S.set(R,X);J=X.q0;var H;C=((H=Vg(this,R-1,C))==null?void 0:H.tC)||"";C===""&&this.RB.u3("sdai",{eds:1});H=uFE(this,X.ssdaiAdsConfig);N=this.RB.getVideoData();var k;u=((k=N.J)==null?void 0:k.containerType)||0;k=N.XU[u];R=X.Lj&&R>=X.Lj?X.Lj:void 0;return{RW:{UR:J?Hd8(this,J):[],FN:H,tC:C,sY:R,Dw:fK(k.split(";")[0]), yy:k.split(";")[1]||""}}}; g.T.aH=function(J){a:{if(!this.hD){var R=id2(this,J);if(!(this.RB.getVideoData().ZD()&&(R==null?0:R.Ym)))break a}R=void 0}var N=R;if(!N)return this.RB.u3("sdai",{gvprp:"ncp",mt:J}),null;R=N.q0;var C=uFE(this,N.ssdaiAdsConfig);J=N.Lj&&N.ac&&J>=N.ac?N.Lj:void 0;N=this.RB.getVideoData();var X,u=((X=N.J)==null?void 0:X.containerType)||0;X=N.XU[u];return{UR:R?Hd8(this,R):[],FN:C,sY:J,Dw:fK(X.split(";")[0]),yy:X.split(";")[1]||""}}; g.T.z2=function(J,R,N,C,X,u){var f=Number(N.split(";")[0]);X=C===3;J=XLB(this,J,R,C,N,u);this.pC&&this.RB.u3("sdai",{gdu:1,seg:R,itag:f,pb:""+!!J});if(!J)return gF(this,R,X),null;J.locations||(J.locations=new Map);if(!J.locations.has(f)){var H,k;u=(H=J.videoData.getPlayerResponse())==null?void 0:(k=H.streamingData)==null?void 0:k.adaptiveFormats;if(!u)return this.RB.u3("sdai",{gdu:"noadpfmts",seg:R,itag:f}),gF(this,R,X),null;H=u.find(function(F){return F.itag===f}); if(!H||!H.url){var v=J.videoData.videoId;J=[];C=g.K(u);for(var W=C.next();!W.done;W=C.next())J.push(W.value.itag);this.RB.u3("sdai",{gdu:"nofmt",seg:R,vid:v,itag:f,fullitag:N,itags:J.join(",")});gF(this,R,X);return null}J.locations.set(f,new g.jB(H.url,!0))}H=J.locations.get(f);if(!H)return this.RB.u3("sdai",{gdu:"nourl",seg:R,itag:f}),gF(this,R,X),null;H=new Oz(H);this.VR&&(H.get("dvc")?this.RB.u3("sdai",{dvc:H.get("dvc")||""}):H.set("dvc","webm"));var S;(k=(S=Vg(this,R-1,C))==null?void 0:S.tC)&& H.set("daistate",k);J.Lj&&R>=J.Lj&&H.set("skipsq",""+J.Lj);(k=this.RB.getVideoData().clientPlaybackNonce)&&H.set("cpn",k);S=[];J.q0&&(S=Hd8(this,J.q0),S.length>0&&H.set("acpns",S.join(",")));X||this.S.set(R,J);X=null;X=H.get("aids");var L;if((((W=X)==null?void 0:(L=W.split(","))==null?void 0:L.length)||0)!==S.length)if(J.q0){var I;this.RB.u3("sdai",{acpns_aids_nm:1,ids:vD7(this,J.q0).join("_"),acpns:S.join("_"),aids:(I=X)==null?void 0:I.replace(/,/g,"_"),cpn:k,trackType:C})}else this.RB.u3("sdai", {acpns_aids_nm:"noAdBreakId",cpn:k});C=H.Yi();(C==null?void 0:C.length)>2048&&this.RB.u3("sdai",{urltoolong:1,sq:R,itag:f,len:C.length});this.pC&&(C&&(L=J.cpn,W=J.q0,S37(this,L,W),W&&!this.FV.has(W)&&(L=kqg(this,L,W),I=WtY(this,W),this.RB.u3("sdai",{iofa:L}),this.RB.u3("sdai",{noawnzd:I-L}),this.RB.u3("sdai",{acpns:S.join("."),aids:(v=X)==null?void 0:v.replace(/,/g,".")}),this.FV.add(W))),this.RB.u3("sdai",{gdu:"v",seg:R,itag:N,ast:J.hE.toFixed(3),alen:J.durationMs.toFixed(3),acpn:J.cpn,avid:J.videoData.videoId})); return C}; g.T.ym=function(J,R,N){var C=mu(this,J,N);return(C=C?(C.hE+C.durationMs)/1E3:0)&&R>C?(this.o7(J,N,!0),this.RB.seekTo(C),!0):!1}; g.T.o7=function(J,R,N){N=N===void 0?!1:N;var C=mu(this,J,R);if(C){var X=void 0,u=C.q0;if(u){this.RB.u3("sdai",{skipadonsq:R,sts:N,abid:u,acpn:C.cpn,avid:C.videoData.videoId});N=this.W.get(u);if(!N)return;N=g.K(N);for(u=N.next();!u.done;u=N.next())u=u.value,u.Lj=R,u.ac=J,u.hE>C.hE&&(X=u)}this.X=C.cpn;fHE(this);J=this.RB.getCurrentTime();tk7(this,C,X,J,J,!1,!0)}}; g.T.Fa=function(){for(var J=g.K(this.U),R=J.next();!R.done;R=J.next())R=R.value,R.Lj=NaN,R.ac=NaN;fHE(this);this.RB.u3("sdai",{rsac:"resetSkipAd",sac:this.X});this.X=""}; g.T.S0=oQ(39); g.T.qX=function(J,R,N,C,X,u,f,H,k){C.length>0&&this.RB.u3("sdai",{onssinfo:1,sq:J,start:R.toFixed(3),cpns:C.join(","),ds:X.join(","),isVideo:f?1:0});k&&(f?this.eQ.set(J,{tC:k,kY:H}):this.PC.set(J,{tC:k,kY:H}));H=iY(this.RB.getVideoData())&&this.KC.T("html5_process_all_cuepoints");if(f||H){if(C.length&&X.length)for(this.X&&this.X===C[0]&&this.RB.u3("sdai",{skipfail:1,sq:J,acpn:this.X}),J=R+this.L2(),f=0;f0&&(this.xP=0,this.tE="",this.api.publish("serverstitchedvideochange"));J=this.RB;J.videoData.lk=!0;J.us(new PD("qoe.restart",N));h4(J,!0);J.videoData.ZD()&&J.T("html5_reload_caption_on_ssdai_fallback")&&J.wk.Ad();return!0}; g.T.YN=function(){this.RB.u3("sdai",{rstdaist:1});this.PC.clear();this.eQ.clear();this.G7.clear()}; g.T.Mu=function(J){var R;if(J!==((R=this.nC)==null?void 0:R.identifier))this.RB.u3("sdai",{ignorenoad:J});else{this.v7.add(J);var N;((N=this.nC)==null?void 0:N.identifier)===J&&AA(this)}}; g.T.Z7=function(){return this.xP}; g.T.lY=function(){return this.tE}; g.T.Ar=function(J){var R=Do(this.api.d3());R=R?R.Ar(J):!1;if(this.KC.T("html5_ssdai_update_timeline_on_start_time_change"))if(R)this.D={OE:J.identifier,Zj:J.startSecs};else if(this.D&&this.D.OE===J.identifier&&J.startSecs>this.D.Zj+1){this.api.u3("sdai",{cueStChg:J.identifier,oldSt:this.D.Zj.toFixed(3),newSt:J.startSecs.toFixed(3),abid:this.D.Ig});if(this.D.Ig){var N=J.startSecs-this.D.Zj,C=this.W.get(this.D.Ig);if(C){C=g.K(C);for(var X=C.next();!X.done;X=C.next())X=X.value,X.hE>=0&&(X.hE+=N*1E3)}}this.D.Zj= J.startSecs}return R}; g.T.jf=function(J){return this.hD?!1:!!id2(this,J)}; g.T.Xa=function(J){var R=this;this.RB.pauseVideo();var N=this.RB.getCurrentTime(),C=this.V.get(this.tE),X=this.J.get(this.tE);if(C){this.X=this.tE;this.ma=!1;C.Ym=!0;var u=this.RB.getCurrentTime();this.K={MP:X,isAd:!0,Qq:!1,jt:u,adCpn:this.tE,Tl:C,D88:J};this.RB.getVideoData().ZD()&&Lp(this.RB,C,this.t9(),u,this.RB.getCurrentTime(),!1,!0,J,(0,g.g9)());if(X==null?0:X.start)this.HC=u*1E3-X.start;this.S.clear();h4(this.RB);this.tE=this.t9().cpn;this.api.publish("serverstitchedvideochange");this.RB.seekTo(N); this.RB.playVideo();this.EB||(this.EB=this.events.L(this.api,"progresssync",function(){var f=C.z$?C.z$*1E3:C.hE,H=R.J.get(C.cpn);H&&R.RB.removeCueRange(H);R.J.delete(C.cpn);R.V.delete(C.cpn);H=R.U.indexOf(C);H>=0&&R.U.splice(H,1);H=[];for(var k=g.K(R.Z),v=k.next();!v.done;v=k.next())v=v.value,v.end<=f?R.RB.removeCueRange(v):H.push(v);R.Z=H;T4E(R,0,f+C.durationMs)})); return!0}this.RB.u3("sdai",{skipFail:N});return!1}; var yuk=0;g.M(EDE,g.l);g.T=EDE.prototype; g.T.Db=function(J,R){R=R===void 0?"":R;if(this.timeline.V===R)return!0;var N=this.timeline.K,C=N==null?void 0:N.getVideoData();if(!N||!C)return this.api.u3("ssap",{htsm:N?0:1}),!1;if(this.api.T("html5_ssap_clear_timeline_before_update")){var X=this.timeline,u;(u=X.K)==null||PQY(u);X.J.clear()}X=Bc(N);var f=!1;u=[];var H=new Map;N=[];var k=[],v=0,W=0,S=0,L=[];J=g.K(J);for(var I=J.next();!I.done;I=J.next())a:{var F=void 0,a=void 0,n=I.value,B=n.clipId;if(B){if(n.Xm){S=n.Xm.lM||0;I=n.Xm.LK||1;var Z= Number(((n.Xm.If||0)/(n.Xm.ZU||1)*1E3).toFixed(0));S=I=Z+Number((S/I*1E3).toFixed(0))}else I=Z=S,this.Rq.has(B)||this.oE.add(B);var A=(a=H.get(B))!=null?a:0,V=this.timeline.V;a=!1;if(V&&this.api.T("html5_ssap_clear_timeline_before_update")){if(V=this.x6.get(B))V.start=Z,V.end=I,a=!0}else{if(V){var p=B;V=Z;var b=I,w=A,RQ=U$(this.timeline,p);if(RQ!=null&&RQ.length){w=H){this.CG.set(J,N);Q7E(this,J,R);this.m2.set(J,(0,g.g9)());if(N=this.x6.get(R))for(N=N.getId().split(","),N=g.K(N),f=N.next();!f.done;f=N.next())f=f.value,f!==R&&this.oE.has(f)&&(this.oE.delete(f),this.Rq.add(f));UQ(this);R=u.P7()/1E3;u=void 0;N=(u=g.di(this.api.N().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?u:0;this.api.T("html5_ssap_keep_media_on_finish_segment")?this.RB.seekTo(R+ N/1E3,{Kj:!0}):this.RB.seekTo(R+N/1E3);this.c8?(this.api.u3("ssap",{gpfreload:this.tE}),FtB(this)||(this.c8=!1),h4(this.RB,!1,!1,this.api.T("html5_ssap_keep_media_on_finish_segment"))):C&&h4(this.RB,!1,!1,this.api.T("html5_ssap_keep_media_on_finish_segment"));X&&this.api.playVideo(1,this.api.T("html5_ssap_keep_media_on_finish_segment"));return[J]}}}return[]}; g.T.M9=function(){var J=this.timeline.K;if(!J)return 0;var R=J.y7();J=g.K(J.K.values());for(var N=J.next();!N.done;N=J.next()){N=g.K(N.value);for(var C=N.next();!C.done;C=N.next())C=C.value,C.y7()>R&&(R=C.y7())}return R/1E3}; g.T.MN=function(){var J=this.RB.getCurrentTime()*1E3;var R=s7Y(this,J);if(!R){var N=U$(this.timeline,this.tE);if(N){N=g.K(N);for(var C=N.next();!C.done;C=N.next())C=C.value,C.P7()>J&&(R=C)}}return R&&R.getType()===1?R.P7()/1E3:0}; g.T.getVideoData=function(J){if(J===2&&!this.Hd()){if(this.a5&&this.Mj.has(this.a5))return this.Mj.get(this.a5);this.api.u3("ssap",{lpanf:""+xO(this)});return null}return ZdY(this)}; g.T.Hd=function(){var J=U$(this.timeline,this.tE);return(J==null?0:J.length)?J[0].getType()===2:!1}; g.T.T6=function(){var J=U$(this.timeline,this.tE);return(J==null?0:J.length)?J[0].J:!1}; g.T.seekTo=function(J,R){R=R===void 0?{}:R;var N=B4n(this,this.RB.getCurrentTime());this.RB.seekTo(J+N/1E3,R)}; g.T.w2=function(J,R,N){return new g.Kw(J,R,{id:N,namespace:"ssap",priority:9})}; g.T.onCueRangeEnter=function(J){if(!this.JQ.has(J.getId())){this.api.u3("ssap",{oce:1,cpn:J.getId(),st:J.start,et:J.end,ct:(this.RB.getCurrentTime()||0).toFixed(3),cmt:(this.RB.xT()||0).toFixed(3)});for(var R=J.getId().split(","),N=0;NN+1)for(C=N+1;Cthis.V;)(N=this.data.shift())&&GM(this,N,!0);hA(this)}; g.T.remove=function(J,R){R=R===void 0?!1:R;var N=this.data.find(function(C){return C.key===J}); N&&(GM(this,N,R),g.GJ(this.data,function(C){return C.key===J}),hA(this))}; g.T.removeAll=function(J){if(J=J===void 0?!1:J)for(var R=g.K(this.data),N=R.next();!N.done;N=R.next())GM(this,N.value,J);this.data=[];hA(this)}; g.T.Fk=function(){var J=this;g.l.prototype.Fk.call(this);this.data.forEach(function(R){GM(J,R,!0)}); this.data=[]};g.M(bX,g.l);bX.prototype.Hf=function(J){if(J)return this.J.get(J)}; bX.prototype.Fk=function(){this.K.removeAll();this.J.removeAll();g.l.prototype.Fk.call(this)};g.S5d=Fq(function(){var J=window.AudioContext||window.webkitAudioContext;try{return new J}catch(R){return R.name}});g.M(Jrf,g.c);g.T=Jrf.prototype;g.T.dK=function(){g.Ep(this.element,g.sf.apply(0,arguments))}; g.T.uQ=function(){this.B3&&(this.B3.removeEventListener("focus",this.Xg),g.Ht(this.B3),this.B3=null)}; g.T.Nm=function(){this.QO();var J=this.app.N();J.Ze||this.dK("tag-pool-enabled");J.S&&this.dK(g.XT.HOUSE_BRAND);J.playerStyle==="gvn"&&(this.dK("ytp-gvn"),this.element.style.backgroundColor="transparent");J.VR&&(this.AO=g.aI("yt-dom-content-change",this.resize,this));this.L(window,"orientationchange",this.resize,this);this.L(window,"resize",this.resize,this)}; g.T.bL=function(J){g.PH(this.app.N());this.UN=!J;tA(this)}; g.T.resize=function(){if(this.B3){var J=this.V7();if(!J.isEmpty()){var R=!g.Qs(J,this.Tw.getSize()),N=XsP(this);R&&(this.Tw.width=J.width,this.Tw.height=J.height);J=this.app.N();(N||R||J.VR)&&this.app.x8.publish("resize",this.getPlayerSize())}}}; g.T.yu=function(J,R){this.updateVideoData(R)}; g.T.updateVideoData=function(J){if(this.B3){var R=this.app.N();C9&&(this.B3.setAttribute("x-webkit-airplay","allow"),J.title?this.B3.setAttribute("title",J.title):this.B3.removeAttribute("title"));this.B3.setAttribute("controlslist","nodownload");R.yd&&J.videoId&&(this.B3.poster=J.PV("default.jpg"))}R=g.BJ(J,"yt:bgcolor");this.Cn.style.backgroundColor=R?R:"";this.mC=F6(g.BJ(J,"yt:stretch"));this.O0=F6(g.BJ(J,"yt:crop"),!0);g.ao(this.element,"ytp-dni",J.wL);this.resize()}; g.T.setGlobalCrop=function(J){this.ED=F6(J,!0);this.resize()}; g.T.setCenterCrop=function(J){this.r$=J;this.resize()}; g.T.EV=function(){}; g.T.getPlayerSize=function(){var J=this.app.N(),R=this.app.x8.isFullscreen(),N=J.externalFullscreen&&g.V_(J);if(R&&oc()&&!N)return new g.a4(window.outerWidth,window.outerHeight);N=!isNaN(this.R_.width)&&!isNaN(this.R_.height);var C=this.app.N().T("kevlar_player_enable_squeezeback_fullscreen_sizing");if(R&&!N&&C)return new g.a4(this.element.clientWidth,this.element.clientHeight);if(R||J.GG){if(window.matchMedia){J="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.GY&&this.GY.media=== J||(this.GY=window.matchMedia(J));var X=this.GY&&this.GY.matches}if(X)return new g.a4(window.innerWidth,window.innerHeight)}else if(N)return this.R_.clone();return new g.a4(this.element.clientWidth,this.element.clientHeight)}; g.T.V7=function(){var J=this.app.N().T("enable_desktop_player_underlay"),R=this.getPlayerSize(),N=g.di(this.app.N().experiments,"player_underlay_min_player_width");return J&&this.bq&&R.width>N?(J=g.di(this.app.N().experiments,"player_underlay_video_width_fraction"),new g.a4(Math.min(R.height*this.getVideoAspectRatio(),R.width*J),Math.min(R.height,R.width*J/this.getVideoAspectRatio()))):R}; g.T.getVideoAspectRatio=function(){return isNaN(this.mC)?RRY(this):this.mC}; g.T.getVideoContentRect=function(J){var R=this.V7();J=NwE(this,R,this.getVideoAspectRatio(),J);return new g.vq((R.width-J.width)/2,(R.height-J.height)/2,J.width,J.height)}; g.T.B_=function(J){this.bq=J;this.resize()}; g.T.Mw=function(){return this.Or}; g.T.onMutedAutoplayChange=function(){tA(this)}; g.T.setInternalSize=function(J){g.Qs(this.R_,J)||(this.R_=J,this.resize())}; g.T.Fk=function(){this.AO&&g.QR(this.AO);this.uQ();g.c.prototype.Fk.call(this)};g.T=iFn.prototype;g.T.click=function(J,R){this.elements.has(J);this.K.has(J);var N=g.pR();N&&J.visualElement&&g.EI(N,J.visualElement,R)}; g.T.createClientVe=function(J,R,N,C){var X=this;C=C===void 0?!1:C;this.elements.has(J);this.elements.add(J);N=wRg(N);J.visualElement=N;var u=g.pR(),f=g.Ut();u&&f&&(g.Ac("combine_ve_grafts")?PA(pf(),N,f):g.$q(g.f7)(void 0,u,f,N));R.addOnDisposeCallback(function(){X.elements.has(J)&&X.destroyVe(J)}); C&&this.J.add(J)}; g.T.createServerVe=function(J,R,N){var C=this;N=N===void 0?!1:N;this.elements.has(J);this.elements.add(J);R.addOnDisposeCallback(function(){C.destroyVe(J)}); N&&this.J.add(J)}; g.T.destroyVe=function(J){this.elements.has(J);this.elements.delete(J);this.V.delete(J);this.K.delete(J);this.J.delete(J)}; g.T.j3=function(J,R){this.clientPlaybackNonce!==R&&(this.clientPlaybackNonce=R,ln(pf(),J),uz8(this))}; g.T.setTrackingParams=function(J,R){this.elements.has(J);R&&(J.visualElement=g.VD(R))}; g.T.hasVe=function(J){return this.elements.has(J)};g.M(g.J5,g.l);g.J5.create=function(J,R,N,C){try{var X=typeof J==="string"?J:"player"+g.en(J),u=RV[X];if(u){try{u.dispose()}catch(H){g.yD(H)}RV[X]=null}var f=new g.J5(J,R,N,C);f.addOnDisposeCallback(function(){RV[X]=null;f.Vy&&f.Vy()}); return RV[X]=f}catch(H){throw g.yD(H),(H&&H instanceof Error?H:Error(String(H))).stack;}}; g.T=g.J5.prototype;g.T.nJ=function(){return this.visibility}; g.T.AU=function(){this.SN||(this.SN=g.AM(Ku(),dDE()));return this.SN}; g.T.uQ=function(J){if(this.mediaElement){this.hR&&(this.events.tL(this.hR),this.hR=null);g.pI(this.VE);this.WC&&this.WC.uQ(!0,!1,J);this.template.uQ();try{this.T("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Ta()}catch(R){g.G$(R)}this.mediaElement=null}}; g.T.Us=function(){return this.WC}; g.T.Kg=function(){var J=this;this.WC!==this.BC&&(this.logger.debug(function(){var R,N;return"release presenting player, type "+((R=J.WC)==null?void 0:R.getPlayerType())+", vid "+((N=J.WC)==null?void 0:N.getVideoData().videoId)}),D3(this,this.BC))}; g.T.So=function(J,R,N){var C=this,X=this.qR;J===2&&(X=new XBf(this.KC));J=new g.oC(this.KC,J,X,this.template,function(u,f,H){C.x8.publish(u,f,H)},function(){return C.x8.getVisibilityState()},this.visibility,this,R,N); TXg(R.getPlayerResponse())&&this.T("html5_ssap_pacf_qoe_ctmp")&&this.n5();return J}; g.T.qvB=function(){if(!ig(this)){this.logger.debug("application playback ready");if(this.T("html5_enable_ssap_autoplay_debug_logging")){var J;(J=this.BC)==null||J.u3("ssap",{onpbrdy:1})}this.fm(5)}}; g.T.n5=function(){var J;(J=this.BC)==null||J.u3("ssap",{rpa:1})}; g.T.UNk=function(J){if(!ig(this)){this.logger.debug("playback ready");yrB(this);var R=J.getPlayerState();J.KZ()?this.pauseVideo():R.isOrWillBePlaying()&&this.playVideo()}}; g.T.canPlayType=function(J){return cD(J)}; g.T.N=function(){return this.KC}; g.T.getVideoData=function(){Lh(this,"gvd");return this.WC.getVideoData()}; g.T.lZ=oQ(17);g.T.bS=function(){return this.BC.getVideoData()}; g.T.getVideoLoadedFraction=function(J){J=g.ih(this,J);return J?g.e9(J.getVideoData())?1:(J=J.oG())?J.GC():0:0}; g.T.jQ=function(){return this.template}; g.T.d3=function(){return this.VC}; g.T.kB=function(){return this.qR}; g.T.nG=function(J){var R=g.ih(this,1);R&&cI(R,J)}; g.T.Nz=function(){var J=this.VC.Nz();this.x8.publish("videoStatsPingCreated",J);return J}; g.T.getVolume=function(){return Math.round(this.x8.getVolume())}; g.T.isMuted=function(){return this.x8.isMuted()}; g.T.NS=function(){if(this.WC===this.BC&&this.mD)return this.mD.postId}; g.T.ZLn=function(){var J=this;this.T("use_rta_only_for_player")||(g.eG(this.KC)?g.Wm(this.KC,g.PJ(this.getVideoData())).then(function(R){a1(Ku(),R);v6B(J.getVideoData(),J.KC,J.AU())}):v6B(this.getVideoData(),this.KC,this.AU()))}; g.T.S6=function(J){this.x8.publish("poTokenVideoBindingChange",J)}; g.T.TR=function(J){this.x8.publish("d6de4videobindingchange",J)}; g.T.SH=function(){this.UW&&this.UW.SH()}; g.T.S5=function(J){this.UW=J}; g.T.Ij=function(J){J===1&&(this.qR.tick("vr"),$Q8(this.WC),iU2(this.qR,this.WC.getVideoData(),hRE(this)),hiY(this.VC));var R=this.KC;(Hm(R)&&R.D||g.eh(R))&&(this.W7()||this.x8.Yh("onAdStateChange",J))}; g.T.setLoopVideo=function(J){this.WC===this.BC&&this.WC.Mf()!==J&&(this.WC.setLoop(J),this.x8.z7("onLoopChange",J))}; g.T.getLoopVideo=function(){return this.WC.Mf()}; g.T.setLoopRange=function(J){var R=!1;!!this.mD!==!!J?R=!0:this.mD&&J&&(R=this.mD.startTimeMs!==J.startTimeMs||this.mD.endTimeMs!==J.endTimeMs||this.mD.postId!==J.postId||this.mD.type!==J.type);if(R){if(this.WC&&Fr(this.getVideoData())){R=(J==null?void 0:J.endTimeMs)||-1;var N;(N=g.ih(this))==null||N.u3("slr",{et:R})}this.BC.Cb.ir("applooprange");if(J)N=new g.Kw(J.startTimeMs,J.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.BC.addCueRange(N);else{this.bS().clipConfig=void 0;var C,X;((C= this.mD)==null?void 0:C.type)!=="repeatChapter"||isNaN(Number((X=this.mD)==null?void 0:X.loopCount))||(N={loopCount:String(this.mD.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.Mz("repeatChapterLoopEvent",N))}this.mD=J;this.x8.z7("onLoopRangeChange",J||void 0);this.WC===this.BC&&(this.DE(),this.WC.lT())}}; g.T.getLoopRange=function(){return this.mD}; g.T.DE=function(){var J="";this.mD?this.WC!==this.BC?J="pnea":YZ7(this,this.BC.getCurrentTime())&&(this.mD.loopCount=0,J="ilr"):J="nlr";if(this.WC&&Fr(this.getVideoData()))if(this.T("html5_gapless_log_loop_range_info")){var R,N,C;(C=g.ih(this))==null||C.u3("slrre",{rej:J,ct:this.BC.getCurrentTime(),lst:(R=this.mD)==null?void 0:R.startTimeMs,let:(N=this.mD)==null?void 0:N.endTimeMs})}else{var X;(X=g.ih(this))==null||X.u3("slrre",{})}J||VPn(this)}; g.T.setPlaybackRate=function(J,R){isNaN(J)||(J=vTg(this,J),this.BC.getPlaybackRate()!==J&&(this.BC.setPlaybackRate(J),R&&!this.KC.Z&&g.e0("yt-player-playback-rate",J),this.x8.Yh("onPlaybackRateChange",J)))}; g.T.getCurrentTime=function(J,R,N){R=R===void 0?!0:R;if(this.getPresentingPlayerType()===3)return SM(this.VC).getCurrentTime();var C=J===2&&this.getVideoData().enableServerStitchedDai,X=g.vJ(this.getVideoData());Lh(this,"gct");J=C||X?g.ih(this):g.ih(this,J);if(!J)return 0;if(X&&this.k8)return R=this.k8,J=J.getCurrentTime(),N?N=pM(R,N):(N=B4n(R,J),N=J-N/1E3),N;if(R){if(C&&this.HU&&(N=this.HU.HC/1E3,N!==0))return N;N=XH(this,J);return Wa(this,N.getCurrentTime(),N)}C&&this.HU?(N=this.HU,J=J.getCurrentTime(), N=(N=Jig(N,J*1E3))?J-N.start/1E3:J):N=J.getCurrentTime();return N}; g.T.kC=function(){var J=g.ih(this);if(!J)return 0;J=XH(this,J);return Wa(this,J.kC(),J)}; g.T.getDuration=function(J,R){R=R===void 0?!0:R;var N=this.getVideoData(),C=J===2&&N.enableServerStitchedDai,X=g.vJ(N);var u=C||X?g.ih(this):g.ih(this,J);if(!u)return 0;if(N.hasProgressBarBoundaries()&&!C&&!X){var f,H=Number((f=N.progressBarStartPosition)==null?void 0:f.utcTimeMillis),k;N=Number((k=N.progressBarEndPosition)==null?void 0:k.utcTimeMillis);if(!isNaN(H)&&!isNaN(N))return(N-H)/1E3}Lh(this,"agd");if(X&&this.k8)return R=Od7(this.k8,this.k8.lY()),J===1&&R===0?u.getDuration():R;if(R)return u= Ch(this,u),Wa(this,u.getDuration(),u);C&&this.HU?(J=this.HU,u=u.getCurrentTime(),u=(u=oDE(J,u*1E3))?u.durationMs/1E3:0):u=u.getDuration();return u}; g.T.Il=function(J){var R=g.ih(this,J);return R?this.W7(R)?(R=Ch(this,R),R.Il()-R.getCurrentTime()+this.getCurrentTime(J)):R.Il():0}; g.T.D7=function(){return this.fX}; g.T.addPlayerResponseForAssociation=function(J){this.k8&&this.k8.addPlayerResponseForAssociation(J)}; g.T.finishSegmentByCpn=function(J,R,N){Lh(this,"afsc");return this.k8?this.k8.finishSegmentByCpn(J,R,N):[]}; g.T.Nm=function(){this.template.Nm();var J=this.x8;J.state.element=this.template.element;var R=J.state.element,N;for(N in J.state.K)J.state.K.hasOwnProperty(N)&&(R[N]=J.state.K[N]);(J=T5E(this.template.element))&&this.events.L(this.template,J,this.onFullscreenChange);this.events.L(window,"resize",this.afC)}; g.T.getDebugText=function(J){var R=this.BC.fP(J);if(this.WC&&this.WC!==this.BC){for(var N=this.WC.fP(J),C=g.K(Object.keys(N)),X=C.next();!X.done;X=C.next())X=X.value,R["ad"+X]=N[X];if(J){N=R;C={};if(X=GL(document,"movie_player"))C.bounds=X.getBoundingClientRect(),C["class"]=X.className;X={};var u=g.JT("video-ads");u?(oLQ(u,X),X.html=u.outerHTML):X.missing=1;u={};var f=g.JT("videoAdUiSkipContainer"),H=g.JT("ytp-ad-skip-button-container"),k=g.JT("ytp-skip-ad-button"),v=f||H||k;v?(oLQ(v,u),u.ima=f?1: 0,u.bulleit=H?1:0,u.component=k?1:0):u.missing=1;C=JSON.stringify({player:C,videoAds:X,skipButton:u});N.ad_skipBtnDbgInfo=C}}J&&this.mediaElement&&(R["0sz"]=""+(+this.mediaElement.getSize().area()===0),R.op=this.mediaElement.Yx("opacity"),N=this.mediaElement.lG().y+this.mediaElement.getSize().height,R.yof=""+(+N<=0),R.dis=this.mediaElement.Yx("display"));J&&((J=(0,g.Lk)())&&(R.gpu=J),(J=this.KC.playerStyle)&&(R.ps=J),this.KC.pC&&(R.webview=1));R.debug_playbackQuality=this.x8.getPlaybackQuality(1); R.debug_date=(new Date).toString();R.origin=window.origin;R.timestamp=Date.now();delete R.uga;delete R.q;return JSON.stringify(R,null,2)}; g.T.getFeedbackProductData=function(){var J={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.N().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20241204_01_RC00"},R=this.getPlayerStateObject().uu;R&&(J.player_error_code=R.errorCode,J.player_error_details=JSON.stringify(R.errorDetail));return J}; g.T.getPresentingPlayerType=function(J){Lh(this,"gppt");if(this.appState===1)return 1;if(ig(this))return 3;var R;if(J&&((R=this.HU)==null?0:R.Hd(this.getCurrentTime())))return 2;var N;return g.vJ(this.getVideoData())&&((N=this.k8)==null?0:N.Hd())?2:g.ih(this).getPlayerType()}; g.T.T6=function(){Lh(this,"invp");return g.vJ(this.getVideoData())&&this.k8?this.k8.T6():!1}; g.T.getPlayerStateObject=function(J){return this.getPresentingPlayerType()===3?SM(this.VC).Em:g.ih(this,J).getPlayerState()}; g.T.getAppState=function(){return this.appState}; g.T.ow=function(J){switch(J.type){case "loadedmetadata":this.lL.start();J=g.K(this.fl);for(var R=J.next();!R.done;R=J.next())R=R.value,wsk(this,R.id,R.ttB,R.ibQ,void 0,!1);this.fl=[];break;case "loadstart":this.qR.Kk("gv");break;case "progress":case "timeupdate":DS(J.target.BV())>=2&&this.qR.Kk("l2s");break;case "playing":g.fW&&this.lL.start();if(g.eG(this.KC))J=!1;else{R=g.I1(this.d3());J=this.mediaElement.Yx("display")==="none"||this.mediaElement.getSize().area()===0;var N=xc(this.template),C=this.WC.getVideoData(), X=g.N3(this.KC);C=EU(C);R=!N||R||X||C||this.KC.GW;J=J&&!R}J&&(this.WC.u3("hidden",{},!0),this.getVideoData().ji||(this.getVideoData().ji=1,this.lI(),this.WC.playVideo()))}}; g.T.onLoadProgress=function(J,R){this.x8.zA("onLoadProgress",R)}; g.T.Ia8=function(){this.x8.publish("playbackstalledatstart")}; g.T.wUf=function(){this.x8.publish("sabrCaptionsDataLoaded")}; g.T.onVideoProgress=function(J,R){J=XH(this,J);R=Wa(this,J.getCurrentTime(),J);this.x8.Yh("onVideoProgress",R)}; g.T.onAutoplayBlocked=function(){this.x8.Yh("onAutoplayBlocked");var J,R=(J=g.ih(this))==null?void 0:J.getVideoData();R&&(R.fF=!0)}; g.T.Ysf=function(){this.x8.publish("progresssync")}; g.T.Zi3=function(){this.x8.zA("onPlaybackPauseAtStart")}; g.T.tia=function(J){if(this.getPresentingPlayerType()===1){g.Yp(J,1)&&!g.h(J.state,64)&&this.bS().isLivePlayback&&this.BC.isAtLiveHead()&&this.x8.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Yp(J,2)){if(this.mD&&this.mD.endTimeMs>=(this.getDuration()-1)*1E3){VPn(this);return}nTf(this)}if(g.h(J.state,128)){var R=J.state;this.cancelPlayback(5);R=R.uu;JSON.stringify({errorData:R,debugInfo:this.getDebugText(!0)});this.x8.Yh("onError",ZqB(R.errorCode));this.x8.zA("onDetailedError",{errorCode:R.errorCode, errorDetail:R.errorDetail,message:R.errorMessage,messageKey:R.Wh,cpn:R.cpn});(0,g.g9)()-this.KC.mu>6048E5&&this.x8.zA("onReloadRequired")}R={};if(J.state.isPlaying()&&!J.state.isBuffering()&&!Ln("pbresume","ad_to_video")&&Ln("_start","ad_to_video")){var N=this.getVideoData();R.clientPlaybackNonce=N.clientPlaybackNonce;N.videoId&&(R.videoId=N.videoId);g.WU(R,"ad_to_video");vU("pbresume",void 0,"ad_to_video");hiY(this.VC)}this.x8.publish("applicationplayerstatechange",J)}}; g.T.Rf=function(J){this.getPresentingPlayerType()!==3&&this.x8.publish("presentingplayerstatechange",J)}; g.T.Cx=function(J){Na(this,jl(J.state));g.h(J.state,1024)&&this.x8.isMutedByMutedAutoplay()&&(kU(this,{muted:!1,volume:this.sL.volume},!1),va(this,!1))}; g.T.YO=function(J,R,N){J==="newdata"&&WC7(this);this.x8.publish("applicationvideodatachange",J,N)}; g.T.Fy=function(J,R){this.x8.zA("onPlaybackAudioChange",this.x8.getAudioTrack().Do.name);this.x8.publish("internalaudioformatchange",this.x8.getAudioTrack().Do.id,R)}; g.T.V9=function(J){var R=this.WC.getVideoData();J===R&&this.x8.Yh("onPlaybackQualityChange",J.J.video.quality)}; g.T.gh=function(){var J=this.Oq[2];if(J){var R=J.getVideoData();J=J.O8;var N;(N=g.ih(this))==null||N.u3("ssdai",{cleanaply:1,acpn:R==null?void 0:R.clientPlaybackNonce,avid:R.videoId,ccpn:J,sccpn:this.bS().clientPlaybackNonce===J?1:0,isDai:this.bS().enableServerStitchedDai?1:0});delete this.Oq[2]}}; g.T.onVideoDataChange=function(J,R,N){this.logger.debug(function(){return"on video data change "+J+", player type "+R.getPlayerType()+", vid "+N.videoId}); this.KC.Si()&&R.u3("vdc",{type:J,vid:N.videoId||"",cpn:N.clientPlaybackNonce||""});R===this.BC&&(this.KC.We=N.oauthToken);if(R===this.BC){this.getVideoData().enableServerStitchedDai&&!this.HU?this.HU=new g.dF(this.x8,this.KC,this.BC):!this.getVideoData().enableServerStitchedDai&&this.HU&&(this.HU.dispose(),this.HU=null);if(this.KC.Si()&&g.vJ(N)){var C,X;R.u3("ssap",{vdctype:J,vid:N.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:((C=this.fX.K)==null?void 0:(X=C.getVideoData())== null?void 0:X.clientPlaybackNonce)||""})}var u,f;!g.vJ(this.getVideoData())||J!=="newdata"&&J!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((u=this.fX.K)==null?void 0:(f=u.getVideoData())==null?void 0:f.clientPlaybackNonce)?!g.vJ(this.getVideoData())&&this.k8&&(this.KC.Si()&&R.u3("ssap",{tlmdis:2,vid:N.videoId||"",cpn:N.clientPlaybackNonce||""}),this.k8.dispose(),this.k8=null):(UeE(this.fX),this.T("html5_ssap_cleanup_ad_player_on_new_data")&&this.gh(),C=Z3(this.fX,1,0,this.getDuration(1)* 1E3,this.getVideoData()),this.fX.enqueue(C,!0),OQ(this.fX,0,this.getDuration(1)*1E3,[C]),p4k(this.fX,this.getVideoData().clientPlaybackNonce,[C]),this.k8&&(this.k8.dispose(),this.k8=null,this.KC.Si()&&R.u3("ssap",{tlmdis:1})),this.KC.Si()&&R.u3("ssap",{tlmcreate:1}),this.k8=new EDE(this.x8,this.fX,this.BC),this.BC.fp(this.k8))}if(J==="newdata")this.logger.debug("new video data, destroy modules"),nt(this.VC,2),this.x8.publish("videoplayerreset",R);else{if(!this.mediaElement)return;J==="dataloaded"&& (this.WC===this.BC?(Gn(N.OB,N.jY),ZF2(this)):BwQ(this));R.getPlayerType()===1&&(this.KC.l3&&Jb8(this),this.getVideoData().isLivePlayback&&!this.KC.iO&&this.J2("html5.unsupportedlive",2,"DEVICE_FALLBACK"),N.isLoaded()&&((ZPE(N)||this.getVideoData().A_)&&this.x8.publish("legacyadtrackingpingchange",this.getVideoData()),N.hasProgressBarBoundaries()&&UIg(this)));this.x8.publish("videodatachange",J,N,R.getPlayerType())}this.x8.Yh("onVideoDataChange",{type:J,playertype:R.getPlayerType()});this.DE();(C= N.Lp)?this.Eq.j3(C,N.clientPlaybackNonce):uz8(this.Eq)}; g.T.ij=function(){fh(this,null);this.x8.zA("onPlaylistUpdate")}; g.T.M2a=function(J){delete this.IN[J.getId()];this.BC.removeCueRange(J);a:{J=this.getVideoData();var R,N,C,X,u,f,H,k,v,W,S=((R=J.T7)==null?void 0:(N=R.contents)==null?void 0:(C=N.singleColumnWatchNextResults)==null?void 0:(X=C.autoplay)==null?void 0:(u=X.autoplay)==null?void 0:u.sets)||((f=J.T7)==null?void 0:(H=f.contents)==null?void 0:(k=H.twoColumnWatchNextResults)==null?void 0:(v=k.autoplay)==null?void 0:(W=v.autoplay)==null?void 0:W.sets);if(S)for(R=g.K(S),N=R.next();!N.done;N=R.next())if(N=N.value, X=C=void 0,N=N.autoplayVideo||((C=N.autoplayVideoRenderer)==null?void 0:(X=C.autoplayEndpointRenderer)==null?void 0:X.endpoint),C=g.z(N,g.WJ),u=X=void 0,N!=null&&((X=C)==null?void 0:X.videoId)===J.videoId&&((u=C)==null?0:u.continuePlayback)){J=N;break a}J=null}(R=g.z(J,g.WJ))&&this.x8.z7("onPlayVideo",{sessionData:{autonav:"1",itct:J==null?void 0:J.clickTrackingParams},videoId:R.videoId,watchEndpoint:R})}; g.T.fm=function(J){var R=this;J!==this.appState&&(this.logger.debug(function(){return"app state change "+R.appState+" -> "+J}),J===2&&this.getPresentingPlayerType()===1&&(Na(this,-1),Na(this,5)),this.appState=J,this.x8.publish("appstatechange",J))}; g.T.J2=function(J,R,N,C,X){this.BC.As(J,R,N,C,X)}; g.T.hw=function(J,R){this.BC.handleError(new PD(J,R))}; g.T.isAtLiveHead=function(J,R){R=R===void 0?!1:R;var N=g.ih(this,J);if(!N)return!1;J=Ch(this,N);N=XH(this,N);return J!==N?J.isAtLiveHead(Wa(this,N.getCurrentTime(),N),!0):J.isAtLiveHead(void 0,R)}; g.T.DX=function(){var J=g.ih(this);return J?Ch(this,J).DX():0}; g.T.seekTo=function(J,R,N,C,X){R=R!==!1;if(C=g.ih(this,C))this.appState===2&&$U(this),Lh(this,"seekTo"),this.W7(C)?S5(this)?this.HU.seekTo(J,{seekSource:X},R,N):this.lS.seekTo(J,{seekSource:X},R,N):g.vJ(this.getVideoData())&&this.k8?this.k8.seekTo(J,{Al:!R,ZH:N,hL:"application",seekSource:X}):C.seekTo(J,{Al:!R,ZH:N,hL:"application",seekSource:X})}; g.T.seekBy=function(J,R,N,C){this.seekTo(this.getCurrentTime()+J,R,N,C)}; g.T.OC=function(){this.x8.Yh("SEEK_COMPLETE")}; g.T.Ts=function(){this.x8.z7("onAbnormalityDetected")}; g.T.onSnackbarMessage=function(J){this.x8.z7("onSnackbarMessage",J)}; g.T.dP3=function(J,R){var N=J.getVideoData();if(this.appState===1||this.appState===2)N.startSeconds=R;this.appState===2?g.h(J.getPlayerState(),512)||$U(this):this.x8.Yh("SEEK_TO",R)}; g.T.onAirPlayActiveChange=function(){this.x8.publish("airplayactivechange");this.KC.T("html5_external_airplay_events")&&this.x8.zA("onAirPlayActiveChange",this.x8.Zy())}; g.T.onAirPlayAvailabilityChange=function(){this.x8.publish("airplayavailabilitychange");this.KC.T("html5_external_airplay_events")&&this.x8.zA("onAirPlayAvailabilityChange",this.x8.BO())}; g.T.showAirplayPicker=function(){var J;(J=this.WC)==null||J.j7()}; g.T.p5=function(){this.x8.publish("beginseeking")}; g.T.e$=function(){this.x8.publish("endseeking")}; g.T.getStoryboardFormat=function(J){return(J=g.ih(this,J))?Ch(this,J).getVideoData().getStoryboardFormat():null}; g.T.DY=function(J){return(J=g.ih(this,J))?Ch(this,J).getVideoData().DY():null}; g.T.W7=function(J){J=J||this.WC;var R=!1;if(J){J=J.getVideoData();if(S5(this))J=J===this.HU.RB.getVideoData();else a:if(R=this.lS,J===R.K.getVideoData()&&R.J.length)J=!0;else{R=g.K(R.J);for(var N=R.next();!N.done;N=R.next())if(J.B1===N.value.B1){J=!0;break a}J=!1}R=J}return R}; g.T.uC=function(J,R,N,C,X,u,f){this.logger.debug(function(){return"Adding video to timeline id="+J.video_id+"\n lengthMs="+C+" enterTimeMs="+X}); var H="",k=S5(this),v;(v=g.ih(this))==null||v.u3("appattl",{sstm:this.HU?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:k});H=k?GU7(this.HU,J,R,N,C,X,u,f):VXE(this.lS,J,N,C,X,u);this.logger.debug(function(){return"Video added to timeline id="+J.video_id+" timelinePlaybackId="+H}); return H}; g.T.ju=function(J,R,N,C,X,u,f){if(S5(this)){var H=GU7(this.HU,J,R,N,C,X,u,f);this.logger.debug(function(){return"Remaining video added to timeline id="+J.video_id+" timelinePlaybackId="+H})}return""}; g.T.Mu=function(J){var R;(R=this.HU)==null||R.Mu(J)}; g.T.mf=function(J,R){J=J===void 0?-1:J;R=R===void 0?Infinity:R;S5(this)||cin(this.lS,J,R)}; g.T.xw=function(J,R,N){if(S5(this)){var C=this.HU,X=C.ji.get(J);X?(N===void 0&&(N=X.IG),X.durationMs=R,X.IG=N):C.bf("Invalid_timelinePlaybackId_"+J+"_specified")}else{C=this.lS;X=null;for(var u=g.K(C.J),f=u.next();!f.done;f=u.next())if(f=f.value,f.B1===J){X=f;break}X?(N===void 0&&(N=X.IG),wLn(C,X,R,N)):lX(C,"InvalidTimelinePlaybackId timelinePlaybackId="+J)}}; g.T.enqueueVideoByPlayerVars=function(J,R,N,C){N=N===void 0?Infinity:N;C=C===void 0?"":C;this.W7();J=new g.xC(this.KC,J);C&&(J.B1=C);psY(this,J,R,N)}; g.T.queueNextVideo=function(J,R,N,C,X){N=N===void 0?NaN:N;J=this.preloadVideoByPlayerVars(J,R===void 0?1:R,N,C===void 0?"":C,X===void 0?"":X);R=this.Us();J&&R&&(this.T("html5_check_queue_on_data_loaded")?this.N().supportsGaplessShorts()&&R.getVideoData().W&&(N=this.Sz,C=this.cY.D,N.V!==J&&(N.WC=R,N.V=J,N.J=1,N.K=J.getVideoData(),N.Z=C,N.K.isLoaded()?N.U():N.K.subscribe("dataloaded",N.U,N))):(N=SPg(R,J,this.cY.D),N!=null?(R.u3("sgap",N),R.getVideoData().W&&v8(R,!1)):(J=J.getVideoData(),R=this.Sz,R.K!== J&&(R.K=J,R.J=1,J.isLoaded()?R.S():R.K.subscribe("dataloaded",R.S,R)))))}; g.T.Uz=function(J,R,N,C){var X=this;N=N===void 0?0:N;C=C===void 0?0:C;var u=g.ih(this);u&&(Ch(this,u).Pj=!0);OxE(this.cY,J,R,N,C).then(function(){X.x8.zA("onQueuedVideoLoaded")},function(){})}; g.T.er=function(){return this.cY.er()}; g.T.Rv=function(J){return this.cY.Rv(J)}; g.T.clearQueue=function(J,R){J=J===void 0?!1:J;R=R===void 0?!1:R;this.logger.debug("Clearing queue");this.cY.clearQueue(J,R)}; g.T.loadVideoByPlayerVars=function(J,R,N,C,X,u){R=R===void 0?1:R;if(R===2&&this.bS().enableServerStitchedDai&&this.BC&&!zl(this.BC)){var f;(f=this.BC)==null||f.u3("lvonss",{vid:(J==null?void 0:J.videoId)||"",ptype:R});return!1}var H=!1;f=new g.xC(this.KC,J);f.reloadPlaybackParams=u;g.uv(this.KC)&&!f.Pa&&HY(this.qR);var k;u=this.qR;var v=(k=f.l3)!=null?k:"";u.timerName=v;this.qR.S8("pl_i");this.T("web_player_early_cpn")&&f.clientPlaybackNonce&&this.qR.infoGel({clientPlaybackNonce:f.clientPlaybackNonce}); if(!TGB(f).supportsVp9Encoding){var W;(W=g.ih(this))==null||W.u3("noVp9",{})}if(this.N().supportsGaplessShorts()){k=de8(this.cY,f,R);if(k==null){Na(this,-1);J=this.cY;J.app.N().T("html5_gapless_new_slr")?jhg(J.app,"gaplessshortslooprange"):J.app.setLoopRange(null);J.app.getVideoData().dM=!0;var S,L;(S=J.K)==null||(L=S.vC)==null||L.resume();var I;(I=J.K)==null||OH(I.xA());N={hL:"gapless_to_next_video",seekSource:60};var F;(F=J.app.Us())==null||F.seekTo(ZxE(J),N);if(!J.app.getPlayerStateObject(R).isPlaying()){var a; (a=g.ih(J.app))==null||a.playVideo(!0)}J.S();return!0}F=this.T("html5_shorts_gapless_preload_fallback");a=this.cY.K;F&&a&&!a.QO()&&(S=a.getVideoData(),S=this.KC.T("html5_autonav_autoplay_in_preload_key")?FH(this,R,S):EN(this,R,S.videoId,S.B1),this.N2.set(S,a,3600));this.cY.clearQueue(F);var n;(n=g.ih(this))==null||n.u3("sgap",{f:k})}if(X){for(;f.bd.length&&f.bd[0].isExpired();)f.bd.shift();H=f.bd.length-1;H=H>0&&X.J(f.bd[H])&&X.J(f.bd[H-1]);f.bd.push(X)}N||(J&&TMQ(J)?(Rd(this.KC)&&!this.rV&&(J.fetch= 0),fh(this,J)):this.playlist&&fh(this,null),J&&(this.rV=W1(!1,J.external_list)));this.x8.publish("loadvideo");R=this.gq(f,R,C);H&&this.J2("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+f.bd.join()).replace(/[;:,]/g,"_"));return R}; g.T.preloadVideoByPlayerVars=function(J,R,N,C,X){R=R===void 0?1:R;N=N===void 0?NaN:N;C=C===void 0?"":C;X=X===void 0?"":X;var u="";if(this.KC.T("html5_autonav_autoplay_in_preload_key"))u=PVf(this,R,J,X);else{var f=E7(J);u=EN(this,R,f,X)}if(this.N2.get(u))return this.logger.debug(function(){return"already preloaded "+u}),null; J=new g.xC(this.KC,J);X&&(J.B1=X);return lvf(this,J,R,N,C)}; g.T.setMinimized=function(J){this.visibility.setMinimized(J);(J=bUn(this.VC))&&(this.isMinimized()?J.load():J.unload());this.x8.publish("minimized")}; g.T.setInline=function(J){this.visibility.setInline(J)}; g.T.setInlinePreview=function(J){this.visibility.setInline(J);J=this.VC;J=J.G.N().showInlinePreviewUi?J.WU.get("inline_preview"):void 0;J&&(this.isInline()?J.load():J.unload(),this.x8.z7("onInlinePreviewModeChange"))}; g.T.vK=function(J){var R=this.KC.T("html5_block_pip_non_mse")&&typeof MediaSource==="undefined",N=this.KC.iY&&this.KC.T("html5_block_pip_with_events")||R;J&&N&&this.getVideoData()&&!this.getVideoData().backgroundable?this.g7&&R?this.g7.start():this.Yp():this.visibility.vK(J)}; g.T.setSqueezeback=function(J){this.visibility.setSqueezeback(J)}; g.T.Yp=function(){var J,R=(J=this.mediaElement)==null?void 0:J.Ov();R&&dJ(R).catch(function(N){return g.G$(N)})}; g.T.Rd7=function(){this.mediaElement.Ov();this.mediaElement.Ov().webkitPresentationMode==="picture-in-picture"?this.vK(!0):this.vK(!1)}; g.T.togglePictureInPicture=function(){var J=g.ih(this);J&&J.togglePictureInPicture()}; g.T.gq=function(J,R,N){R=R===void 0?1:R;this.logger.debug(function(){return"start load video, id "+J.videoId+", type "+R}); Ln("_start",this.qR.timerName)||g.$q(i3)(void 0,this.qR.timerName);var C=!1,X=ArE(this,R,J,!1);X?(C=!0,J.dispose()):(X=shg(this,R,J,N),(this.T("html5_onesie")||this.T("html5_load_before_stop"))&&RC(X)&&g.Nt(X),this.lL.stop(),R===1&&R!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,R),D3(this,X));X===this.BC&&(this.KC.We=J.oauthToken);if(!RC(X))return!1;if(X===this.BC){this.fm(1);N=$U(this);if(C&&this.T("html5_player_preload_ad_fix")&&X.getPlayerType()===1&&X.bb.finished)this.onVideoDataChange("dataloaded", X,X.getVideoData());return N}gRE(X);return!0}; g.T.cueVideoByPlayerVars=function(J,R){var N=this;R=R===void 0?1:R;if(this.bS().enableServerStitchedDai&&this.BC&&!zl(this.BC)&&J&&Object.keys(J).length>0){var C;(C=this.BC)==null||C.u3("qvonss",{vid:(J==null?void 0:J.videoId)||"",ptype:R})}else if(J&&TMQ(J))if(this.f8=!0,fh(this,J),(J=g.k0(this.playlist))&&J.Da())Kh(this,J,R);else this.playlist.onReady(function(){Tb(N)}); else{R||(R=this.getPresentingPlayerType());R===1&&this.ij();C=new g.xC(this.KC,J);var X=g.V_(this.KC)&&!this.KC.dn&&R===1&&!C.isAd()&&!C.Xn;this.x8.publish("cuevideo");X?(this.Us().getVideoData().loading=!0,LXY(C,J?J:{}).then(function(u){Kh(N,u,R)}),C.dispose()):Kh(this,C,R)}}; g.T.D_=function(J,R,N,C,X,u,f){if(!J&&!N)throw Error("Playback source is invalid");if(Ui(this.KC)||g.PM(this.KC))return R=R||{},R.lact=UK(),R.vis=this.x8.getVisibilityState(),this.x8.z7("onPlayVideo",{videoId:J,watchEndpoint:u,sessionData:R,listId:N}),!1;uY8(this.qR);this.qR.reset();J={video_id:J};C&&(J.autoplay="1");C&&(J.autonav="1");u&&(J.player_params=u.playerParams);f&&(J.oauth_token=f);N?(J.list=N,this.loadPlaylist(J)):this.loadVideoByPlayerVars(J,1);return!0}; g.T.cuePlaylist=function(J,R,N,C){this.f8=!0;zRE(this,J,R,N,C)}; g.T.loadPlaylist=function(J,R,N,C){this.f8=!1;zRE(this,J,R,N,C)}; g.T.OT=function(){return this.x8.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.y4())}; g.T.AC=oQ(13); g.T.nextVideo=function(J,R){var N=g.S9(this.BC.getVideoData());g.M$(this.x8)&&N?this.D_(N.videoId,R?N.oR:N.sessionData,N.playlistId,R,void 0,N.IQ||void 0):this.rV?this.x8.zA("onPlaylistNext"):this.getPresentingPlayerType()===3?SM(this.VC).nextVideo():!this.playlist||Rd(this.KC)&&!this.x8.isFullscreen()||(this.playlist.y4(J)&&kvg(this.playlist,$7P(this.playlist)),this.playlist.loaded?(J=R&&this.KC.T("html5_player_autonav_logging"),R&&this.x8.publish("playlistautonextvideo"),this.gq(g.k0(this.playlist,void 0, R,J),1)):this.f8=!1)}; g.T.previousVideo=function(J){this.rV?this.x8.zA("onPlaylistPrevious"):this.getPresentingPlayerType()===3?SM(this.VC).iL():!this.playlist||Rd(this.KC)&&!this.x8.isFullscreen()||(this.playlist.mS(J)&&kvg(this.playlist,HUk(this.playlist)),this.playlist.loaded?this.gq(g.k0(this.playlist),1):this.f8=!1)}; g.T.playVideoAt=function(J){this.rV?this.x8.zA("onPlaylistIndex",J):this.playlist&&(this.playlist.loaded?this.gq(g.k0(this.playlist,J),1):this.f8=!1,kvg(this.playlist,J))}; g.T.getPlaylist=function(){return this.playlist}; g.T.PO=oQ(21);g.T.gAp=function(J){this.x8.Yh("onCueRangeEnter",J.getId())}; g.T.mRn=function(J){this.x8.Yh("onCueRangeExit",J.getId())}; g.T.Ad=function(){var J=g.a3(this.d3());J&&J.Ad()}; g.T.WK=function(J,R,N){var C=g.ih(this,R);if(C){var X=this.bS();if(g.vJ(X)){Lh(this,"acrl");if(this.k8)if(this.T("html5_ssap_enable_cpn_triggered_media_end")&&C.getPlayerType()===2&&this.k8.Hd()&&(this.BC.u3("ssap",{acrla:J.length?J[0].getId():"",acrll:J.length,pt:C.getPlayerType(),acpn:C.getVideoData().clientPlaybackNonce,ccpn:this.BC.getVideoData().clientPlaybackNonce}),C=this.BC),R===1)for(var u=KJ(this.k8,X.clientPlaybackNonce),f=g.K(J),H=f.next();!H.done;H=f.next())H=H.value,H.start+=u,H.end+= u,H.jS=u,H.V=X.clientPlaybackNonce;else if(this.T("html5_ssap_enable_cpn_triggered_media_end")&&R===2)for(this.getPresentingPlayerType(),X=g.K(J),u=X.next();!u.done;u=X.next())u.value.V=this.k8.lY();X=g.K(J);for(u=X.next();!u.done;u=X.next())f=void 0,u.value.playerType=(f=R)!=null?f:1}C.WK(J,N);R&&this.getPresentingPlayerType()!==R||RE(this,"cuerangesadded",J)}else this.T("html5_ssap_enable_cpn_triggered_media_end")&&this.BC.u3("ssap",{acrlpnf:this.BC.getVideoData().clientPlaybackNonce})}; g.T.SZ=function(J,R){var N=g.ih(this,R);N&&(N.SZ(J),R&&this.getPresentingPlayerType()!==R||RE(this,"cuerangesremoved",J))}; g.T.Z4=function(J){var R=this.Us()||this.BC,N=R.Cb;if(N){var C=this.getPresentingPlayerType();if(this.KC.Si()){var X=N.ip("ad");R.u3("ssap",{hac:X?"1":"0",cpn:J,pt:C})}return this.T("html5_ssap_enable_cpn_triggered_media_end")?N.Z4(C,J):N.Z4(C)}return 0}; g.T.iPa=function(){function J(){var C=R.screenLayer||(R.isMinimized()?3:0),X=g.pR(C);if(X&&X!=="UNDEFINED_CSN"){var u=R.KC.T("web_player_attach_player_response_ve"),f=R.KC.T("web_playback_associated_ve");C={cpn:R.getVideoData().clientPlaybackNonce,csn:X};R.getVideoData().VO&&(u||f)&&(u=g.VD(R.getVideoData().VO),g.L7(X,u),f&&(C.playbackVe=u.getAsJson()));R.getVideoData().queueInfo&&(C.queueInfo=R.getVideoData().queueInfo);X={};R.T("web_playback_associated_log_ctt")&&R.getVideoData().S&&(X.cttAuthInfo= {token:R.getVideoData().S,videoId:R.getVideoData().videoId});g.Mz("playbackAssociated",C,X)}else g.G$(new g.C3("CSN Missing or undefined during playback association"))} var R=this;this.getPresentingPlayerType();iU2(this.qR,this.WC.getVideoData(),hRE(this));ug(this)&&this.KC.Z&&gO(this.bS())==="embedded"&&this.Dt&&Math.random()<.01&&g.Mz("autoplayTriggered",{intentional:this.Wc});this.Dt=!1;hiY(this.VC);this.T("web_player_defer_ad")&&OFQ(this);this.x8.zA("onPlaybackStartExternal");(this.KC.T("mweb_client_log_screen_associated"),ba(this.KC))||J();var N={};this.getVideoData().S&&(N.cttAuthInfo={token:this.getVideoData().S,videoId:this.getVideoData().videoId});N.sampleRate= 20;SV("player_att",N);if(this.getVideoData().botguardData||this.T("fetch_att_independently"))g.Xk(this.KC)||fs(this.KC)==="MWEB"?g.TB(g.H9(),function(){Ha(R)}):Ha(this); this.DE();mIE(this)}; g.T.H0=function(){this.x8.publish("internalAbandon");IE(this)}; g.T.onApiChange=function(){this.KC.D&&this.WC?this.x8.Yh("onApiChange",this.WC.getPlayerType()):this.x8.Yh("onApiChange")}; g.T.dNk=function(){var J=this.mediaElement;J={volume:g.I4(Math.floor(J.getVolume()*100),0,100),muted:J.aD()};J.muted||va(this,!1);this.sL=g.Vs(J);this.x8.Yh("onVolumeChange",J)}; g.T.mutedAutoplay=function(J,R){var N=this.getVideoData().videoId;isNaN(this.Uy)&&(this.Uy=this.getVideoData().startSeconds);if(this.T("embeds_enable_full_length_inline_muted_autoplay")){if(J&&(J=Math.floor(J)),R||N)this.loadVideoByPlayerVars({video_id:R?R:N,playmuted:!0,start:this.Uy,muted_autoplay_duration:J}),this.x8.zA("onMutedAutoplayStarts")}else N&&(this.loadVideoByPlayerVars({video_id:N,playmuted:!0,start:this.Uy}),this.x8.zA("onMutedAutoplayStarts"))}; g.T.onFullscreenChange=function(){var J=GZ8(this);this.EV(J?1:0);tPn(this,!!J)}; g.T.EV=function(J){var R=!!J,N=!!this.jo()!==R;this.visibility.EV(J);this.template.EV(R);this.T("html5_media_fullscreen")&&!R&&this.mediaElement&&GZ8(this)===this.mediaElement.Ov()&&this.mediaElement.B6();this.template.resize();N&&this.qR.tick("fsc");N&&(this.x8.publish("fullscreentoggled",R),J=this.bS(),R={fullscreen:R,videoId:J.DG||J.videoId,time:this.getCurrentTime()},this.x8.getPlaylistId()&&(R.listId=this.x8.getPlaylistId()),this.x8.Yh("onFullscreenChange",R))}; g.T.Zp=function(){return this.visibility.Zp()}; g.T.isFullscreen=function(){return this.visibility.isFullscreen()}; g.T.jo=function(){return this.visibility.jo()}; g.T.afC=function(){this.WC&&(this.jo()!==0&&this.jo()!==1||this.EV(GZ8(this)?1:0),this.KC.iY&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)<.33&&this.mediaElement.B6())}; g.T.B33=function(J){this.getPresentingPlayerType()!==3&&this.x8.publish("liveviewshift",J)}; g.T.playVideo=function(J,R){this.logger.debug(function(){return"play video, player type "+J}); var N=g.ih(this,J);N&&(this.appState===2?(g.uv(this.KC)&&HY(this.qR),$U(this)):g.h(N.getPlayerState(),2)?(R=36,this.getVideoData().He()&&(R=37),this.seekTo(0,void 0,void 0,void 0,R)):N.playVideo(!1,R))}; g.T.pauseVideo=function(J,R){(J=g.ih(this,J))&&J.pauseVideo(R)}; g.T.stopVideo=function(J){J=J===void 0?!1:J;this.logger.debug(function(){return"stop video"}); var R=this.BC.getVideoData(),N=new g.xC(this.KC,{video_id:R.DG||R.videoId,oauth_token:R.oauthToken});N.X=g.Vs(R.X);var C;!J||(C=this.webPlayerContextConfig)!=null&&C.disableStaleness||(N.ej=!0);this.cancelPlayback(6);Kh(this,N,1)}; g.T.cancelPlayback=function(J,R){var N=this;this.logger.debug(function(){return"start cancel playback, type "+R}); var C=g.ih(this,R);C?R===2&&C.getPlayerType()===1&&(yOg(this.bS())||g.vJ(this.getVideoData()))?C.u3("canclpb",{r:"no_adpb_ssdai"}):(this.KC.Si()&&C.u3("canclpb",{r:J}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+N.appState}):(C===this.WC&&(this.logger.debug("cancel playback, destroy modules"),nt(this.VC,J)),R===1&&(C.stopVideo(),IE(this)),C.Qd(void 0,J!==6),RE(this,"cuerangesremoved",C.D9()),C.Cb.reset(),this.cY&&C.isGapless()&& (C.uQ(!0),C.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; g.T.sendVideoStatsEngageEvent=function(J,R,N){(R=g.ih(this,R))&&DMY(this.KC,J)?R.sendVideoStatsEngageEvent(J,N):N&&N()}; g.T.eV=function(J){var R=g.ih(this);return R&&DMY(this.KC,J)?R.eV(J):null}; g.T.updatePlaylist=function(){!Rd(this.KC)&&g.V_(this.KC)&&dI8(this);this.x8.zA("onPlaylistUpdate")}; g.T.setSizeStyle=function(J,R){this.Pz=J;this.T("web_log_theater_mode_visibility")?this.v8(R):this.Hp=R;this.x8.publish("sizestylechange",J,R);this.template.resize()}; g.T.v8=function(J){this.visibility.v8(J)}; g.T.zg=function(){return this.T("web_log_theater_mode_visibility")?this.visibility.zg():this.Hp}; g.T.isMinimized=function(){return this.visibility.isMinimized()}; g.T.isInline=function(){return this.visibility.isInline()}; g.T.Fp=function(){return this.visibility.Fp()}; g.T.Ah=function(){return this.visibility.Ah()}; g.T.lR=function(){return this.visibility.lR()}; g.T.yX=function(){return this.Pz}; g.T.getAdState=function(){if(this.getPresentingPlayerType()===3)return SM(this.VC).getAdState();Lh(this,"gas");if(!this.W7()){var J=Do(this.d3());if(J)return J.getAdState()}return-1}; g.T.X1p=function(J){var R=this.template.getVideoContentRect();Wq(this.G0,R)||(this.G0=R,this.WC&&fp(this.WC),this.BC&&this.BC!==this.WC&&fp(this.BC),this.jo()===1&&this.Kp&&tPn(this,!0));this.Eh&&g.Qs(this.Eh,J)||(this.x8.publish("appresize",J),this.Eh=J)}; g.T.xB=function(){return this.x8.xB()}; g.T.OYO=function(){this.getPresentingPlayerType()===2&&this.lS.isManifestless()?etE(this.lS):(this.HU&&(RtB(this.HU),IE(this)),Qhf(this,"signature"))}; g.T.eoM=function(J){J&&Qhf(this,"reloadPlayerEvent",void 0,J)}; g.T.lI=function(J){this.uQ(J);oE(this)}; g.T.mNn=function(J){if(J.errorCode==="manifest.net.badstatus"){var R=this.KC.experiments.b3("html5_use_network_error_code_enums")?401:"401";J.details.rc===R&&this.x8.z7("onPlayerRequestAuthFailed")}}; g.T.eO=function(J){this.x8.publish("heartbeatparams",J)}; g.T.Yo=function(J){this.x8.z7("onAutonavChangeRequest",J!==1)}; g.T.oG=function(){return this.mediaElement}; g.T.setBlackout=function(J){this.KC.GW!==J&&(this.KC.GW=J,this.WC&&(this.WC.lT(),this.KC.l3&&Jb8(this),this.WC.UP(J)))}; g.T.qsQ=function(){var J=g.ih(this);if(J){var R=!this.x8.wM();(J.Z1=R)||J.JB.stop();J.videoData.K&&(R?J.videoData.K.resume():ISE(J.videoData.K));if(J.vC){var N=J.videoData.T("html5_disable_preload_for_ssdai_with_preroll")&&zl(J)&&J.videoData.isDaiEnabled();R&&!N?J.vC.resume():H8(J,!0)}g.h(J.playerState,2)||R?g.h(J.playerState,512)&&R&&J.FD(qR(J.playerState,512)):J.FD(dD(J.playerState,512));J=J.xA();J.qoe&&(J=J.qoe,g.k4(J,g.m0(J.provider),"stream",[R?"A":"I"]))}}; g.T.onLoadedMetadata=function(){this.x8.zA("onLoadedMetadata")}; g.T.onDrmOutputRestricted=function(){this.x8.zA("onDrmOutputRestricted")}; g.T.jM=function(){this.Wc=!0}; g.T.Fk=function(){this.VC.dispose();this.Ox.dispose();this.lS.dispose();this.HU&&this.HU.dispose();this.fX.removeAll();this.fX.dispose();this.k8&&this.k8.dispose();this.BC.dispose();this.uQ();g.iP(g.Zf(this.Oq),this.playlist);g.l.prototype.Fk.call(this)}; g.T.T=function(J){return this.KC.T(J)}; g.T.setScreenLayer=function(J){this.screenLayer=J}; g.T.getInternalApi=function(){return this.x8.getInternalApi()}; g.T.createSubtitlesModuleIfNeeded=function(){return this.VC.createSubtitlesModuleIfNeeded()}; g.T.isOrchestrationLeader=function(){var J=BY(this.VC);return J?J.isOrchestrationLeader():!1}; g.T.getVideoUrl=function(J,R,N,C,X){if(this.mD&&this.mD.postId)return J=this.KC.getVideoUrl(J),J=Jh(J,"v"),J.replace("/watch","/clip/"+this.mD.postId);var u=this.x8.Yv()||this.KC.PC==="shortspage",f=g.hq(this.getVideoData());return this.KC.getVideoUrl(J,R,N,C,X,u,f)}; g.T.sM=function(){return this.cY.sM()}; g.T.iq=function(J,R,N){this.x8.publish("spsumpreject",J,R,N)}; g.T.YG=function(){try{for(var J=g.K(Object.values(this.Oq)),R=J.next();!R.done;R=J.next()){var N=R.value;N.QO()||N.YG()}if(this.T("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var C=g.K(Gqg(this.N2)),X=C.next();!X.done;X=C.next()){var u=X.value;u.QO()||u.YG()}this.BC.YG()}catch(f){g.G$(f)}}; g.T.Xa=function(){if(this.HU){var J=(0,g.g9)();return this.HU.Xa(J)}return!1}; var RV={};var LkU={d1:[{nj:/Unable to load player module/,weight:20},{nj:/Failed to fetch/,weight:500},{nj:/XHR API fetch failed/,weight:10},{nj:/JSON parsing failed after XHR fetch/,weight:10},{nj:/Retrying OnePlatform request/,weight:10},{nj:/CSN Missing or undefined during playback association/,weight:100},{nj:/Non-recoverable error. Do not retry./,weight:0},{nj:/Internal Error. Retry with an exponential backoff./,weight:0},{nj:/API disabled by application./,weight:0}],SW:[{callback:ReB,weight:500}]};var SwB=/[&\?]action_proxy=1/,WsB=/[&\?]token=([\w-]*)/,LsB=/[&\?]video_id=([\w-]*)/,IQ7=/[&\?]index=([\d-]*)/,FsB=/[&\?]m_pos_ms=([\d-]*)/,M6n=/[&\?]vvt=([\w-]*)/,ijQ="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(" "),ELB="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(" "),Ts2={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"},$SQ={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},kXg={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};nh.prototype.bR=function(J){this.player.kB().tick(J)}; nh.prototype.fetch=function(J,R){var N=this;if(!J.match(/\[BISCOTTI_ID\]/g))return this.J(J,R);var C=this.K===1;C&&this.bR("a_bid_s");var X=CAE();if(X!==null)return C&&this.bR("a_bid_f"),this.J(J,R,X);X=XoE();C&&Os(X,function(){N.bR("a_bid_f")}); return X.then(function(u){return N.J(J,R,u)})}; nh.prototype.J=function(J,R,N){var C=this,X=R===void 0?{}:R;R=X.FX;var u=X.MP;var f=X.cueProcessedMs;N=N===void 0?"":N;var H=this.player.getVideoData(1);X=this.player.N().wm;var k=0;if(f&&u&&!R){var v=u.end-u.start;v>0&&(k=Math.floor(v/1E3))}k=R?R.Ly:k;var W={AD_BLOCK:this.K++,AD_BREAK_LENGTH:k,AUTONAV_STATE:QV(this.player.N()),CA_TYPE:"image",CPN:H.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.DX()*1E3,LACT:UK(),LIVE_INDEX:R?this.V++:1,LIVE_TARGETING_CONTEXT:R&&R.context?R.context:"",MIDROLL_POS:u? Math.round(u.start/1E3):0,MIDROLL_POS_MS:u?Math.round(u.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.jQ().V7().height,P_W:this.player.jQ().V7().width,YT_REMOTE:X?X.join(","):""},S=Q5(aS);Object.keys(S).forEach(function(I){S[I]!=null&&(W[I.toUpperCase()]=S[I].toString())}); N!==""&&(W.BISCOTTI_ID=N);N={};K4(J)&&(N.sts="20062",(R=this.player.N().forcedExperiments)&&(N.forced_experiments=R));var L=Fi(g.r5(J,W),N);return L.split("?").length!==2?nC(Error("Invalid AdBreakInfo URL")):g.Wm(this.player.N(),H==null?void 0:H.oauthToken).then(function(I){if(I&&MO()){var F=Ku();a1(F,I)}I=C.player.AU(F);F=KsE(C,L,W,H.isMdxPlayback,f);return g.Kn(I,F,"/youtubei/v1/player/ad_break").then(function(a){return a})})}; nh.prototype.reset=function(){this.V=this.K=1};g.M(aQB,nh); aQB.prototype.J=function(J,R,N){R=R===void 0?{}:R;var C=R.FX;var X=R.MP;var u=R.cueProcessedMs;N=N===void 0?"":N;R=this.K;this.K++;var f=this.player.N().T("h5_disable_macro_substitution_in_get_ad_break")?J:QYg(this,J,{FX:C,MP:X,cueProcessedMs:u},N,R);if(f.split("?").length!==2)return Math.random()<.1&&g.G$(Error("Invalid AdBreakInfo URL")),nC(Error("Invalid AdBreakInfo URL"));var H=this.player.getVideoData(1).isMdxPlayback,k=N;N=WsB.exec(f);N=N!=null&&N.length>=2?N[1]:"";J=SwB.test(f);var v=LsB.exec(f); v=v!=null&&v.length>=2?v[1]:"";var W=IQ7.exec(f);W=W!=null&&W.length>=2&&!Number.isNaN(Number(W[1]))?Number(W[1]):1;var S=FsB.exec(f);S=S!=null&&S.length>=2?S[1]:"0";var L=y_(this.player.N().tN),I=g.LL(this.player.getVideoData(1).VO,!0);fQB(this,I,f,k===""?"":k,this.player.N(),this.player.getVideoData(1));k={splay:!1,lactMilliseconds:String(UK()),playerHeightPixels:Math.trunc(this.player.jQ().V7().height),playerWidthPixels:Math.trunc(this.player.jQ().V7().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20062,autonavState:QV(this.player.N())};if(H){H={};var F=this.player.N().wm;Hjk(H,F?F.join(","):"")&&(k.mdxContext=H)}if(H=ELB.includes(L)?void 0:g.y5("PREF")){F=H.split(RegExp("[:&]"));for(var a=0,n=F.length;a1&&B[1].toUpperCase()==="TRUE"){I.user.lockedSafetyMode=!0;break}}k.autoCaptionsDefaultOn=vLB(H)}f=M6n.exec(f);(f=f!=null&&f.length>=2?f[1]:"")&&v&&(I.user.credentialTransferTokens= [{token:f,scope:"VIDEO"}]);f={contentPlaybackContext:k};k=this.player.getVideoData(1).getGetAdBreakContext();H=this.player.getVideoData(1).clientPlaybackNonce;F=u!==void 0?Math.round(u).toString():void 0;a=(C==null?0:C.context)?C.context:void 0;n=0;u&&X&&!C&&(X=X.end-X.start,X>0&&(n=Math.floor(X/1E3)));C=(C=Math.trunc((C?C.Ly:n)*1E3))?String(C):void 0;X=this.player.DX()*1E3;X=Number.isNaN(X)?0:Math.trunc(X);R={adBlock:R,params:N,breakIndex:W,breakPositionMs:S,clientPlaybackNonce:H,topLevelDomain:L, isProxyAdTagRequest:J,context:I,overridePlaybackContext:f,cueProcessedMs:F,videoId:v?v:void 0,liveTargetingParams:a,breakLengthMs:C,driftFromHeadMs:X?String(X):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:k?k:void 0};return nLk(this,R)};var I2l={iXa:"replaceUrlMacros",rkO:"onAboutThisAdPopupClosed",peQ:"executeCommand"};DSP.prototype.Lw=function(){return"adPingingEndpoint"}; DSP.prototype.DL=function(J,R,N){C27(this.AN.get(),J,R,N)};sYn.prototype.Lw=function(){return"changeEngagementPanelVisibilityAction"}; sYn.prototype.DL=function(J){this.G.z7("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:J})};Bs2.prototype.Lw=function(){return"loggingUrls"}; Bs2.prototype.DL=function(J,R,N){J=g.K(J);for(var C=J.next();!C.done;C=J.next())C=C.value,C27(this.AN.get(),C.baseUrl,R,N,C.attributionSrcMode)};g.M(ZjB,g.l);g.M(sN,g.l);g.T=sN.prototype;g.T.addListener=function(J){this.listeners.push(J)}; g.T.removeListener=function(J){this.listeners=this.listeners.filter(function(R){return R!==J})}; g.T.fJ=function(J,R,N,C,X,u,f,H){if(J==="")d0("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(J!==this.K||N){this.K=J;this.UB.get().fJ(J,R,N,C,X,u,f,H);this.Y8.get().fJ(J,R,N,C,X,u,f,H);var k;(k=this.XV)==null||k.get().fJ(J,R,N,C,X,u,f,H);this.J.fJ(J,R,N,C,X,u,f,H);k=g.K(this.listeners);for(var v=k.next();!v.done;v=k.next())v.value.fJ(J,R,N,C,X,u,f,H)}else d0("Duplicate content video loaded signal")}; g.T.H0=function(){this.K&&this.zM(this.K)}; g.T.zM=function(J){this.K=void 0;for(var R=g.K(this.listeners),N=R.next();!N.done;N=R.next())N.value.zM(J)};Ba.prototype.M$=function(J,R,N,C,X){dS2(this);this.U=!R&&N===0;var u=this.G.getVideoData(1),f=this.G.getVideoData(2);u&&(this.contentCpn=u.clientPlaybackNonce,this.videoId=u.videoId,this.K=u.S);f&&(this.adCpn=f.clientPlaybackNonce,this.adVideoId=f.videoId,this.adFormat=f.adFormat);this.Z=J;C<=0?(dS2(this),this.U=!R&&N===0):(this.actionType=this.U?R?"unknown_type":"video_to_ad":R?"ad_to_video":"ad_to_ad",this.videoStreamType=X?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.V=!0,Ln("_start",this.actionType)&&YwP(this)))}; Ba.prototype.reset=function(){return new Ba(this.G)};g.M(ON,g.l);ON.prototype.addCueRange=function(J,R,N,C,X,u,f){u=u===void 0?3:u;f=f===void 0?1:f;this.K.has(J)?d0("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:J}):(J=new rbP(J,R,N,C,u),this.K.set(J.id,{MP:J,listener:X,pV:f}),this.G.KL([J],f))}; ON.prototype.removeCueRange=function(J){var R=this.K.get(J);R?(this.G.uY([R.MP],R.pV),this.K.delete(R.MP.id)):d0("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:J})}; ON.prototype.onCueRangeEnter=function(J){if(this.K.has(J.id))this.K.get(J.id).listener.onCueRangeEnter(J.id)}; ON.prototype.onCueRangeExit=function(J){if(this.K.has(J.id))this.K.get(J.id).listener.onCueRangeExit(J.id)}; g.M(rbP,g.Kw);ZE.prototype.Ij=function(J){this.G.Ij(J)}; ZE.prototype.U$=function(J){var R=g.sf.apply(1,arguments);J==="onAdStart"||J==="onAdEnd"?this.G.Yh.apply(this.G,[J].concat(g.Q(R))):this.G.z7.apply(this.G,[J].concat(g.Q(R)))};d_.prototype.CL=function(J){return J&&qa(this)};var PAg=null;g.M(lQB,g.al);lQB.prototype.Ax=function(J){return this.K.hasOwnProperty(J)?this.K[J].Ax():{}}; g.VE("ytads.bulleit.getVideoMetadata",function(J){return A5().Ax(J)}); g.VE("ytads.bulleit.triggerExternalActivityEvent",function(J,R,N){var C=A5();N=poP(N);N!==null&&C.publish(N,{queryId:J,viewabilityString:R})});g.T=YU.prototype; g.T.dX=function(J,R){if(!this.K.has(J))return{};if(R==="seek"){R=this.G.N().T("html5_dai_enable_active_view_creating_completed_adblock");R=R===void 0?!1:R;var N=mZ(d5).nO(J,{});N?db(N):R&&(J=mZ(d5).PQ(null,Rf(),!1,J),J.s7=3,KFY([J]));return{}}R=eeQ(R);if(R===null)return{};var C=this.G.Us();C=C&&ZoB(C);if(!C)return{};var X=this.G.getPresentingPlayerType(!0);if((N=this.G.getVideoData(X))==null||!N.isAd())return{};N={opt_adElement:C,opt_fullscreen:this.UB.get().isFullscreen()};return KZf(R,J,N)}; g.T.vn=function(J,R,N,C,X){this.K.has(J)&&(C<=0||X<=0||mZ(d5).vn(J,R,N,C,X))}; g.T.Sg=function(J){var R;(R=this.K.get(J.queryId))==null||R.Sg()}; g.T.AB=function(J){var R;(R=this.K.get(J.queryId))==null||R.AB()}; g.T.TP=function(J){var R;(R=this.K.get(J.queryId))==null||R.TP()}; g.T.GP=function(J){var R;(R=this.K.get(J.queryId))==null||R.GP()}; g.T.Ps=function(J){var R;(R=this.K.get(J.queryId))==null||R.Ps()};xSn.prototype.send=function(J,R,N,C){try{JWP(this,J,R,N,C===void 0?!1:C)}catch(X){}};g.M(okE,xSn);Rnk.prototype.send=function(J,R,N,C){var X=!1;try{if(C==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||C==="ATTRIBUTION_SRC_MODE_XHR_OPTION")X=!0,J=jpk(J);C=X;var u=J.match(P_);if(u[1]==="https")var f=J;else u[1]="https",f=pC("https",u[2],u[3],u[4],u[5],u[6],u[7]);var H=A2Y(f);u=[];var k=MAg(f)&&this.JN.get().G.N().experiments.b3("add_auth_headers_to_remarketing_google_dot_com_ping");if(K4(f)||k)u.push({headerType:"USER_AUTH"}),u.push({headerType:"PLUS_PAGE_ID"}),u.push({headerType:"VISITOR_ID"}),u.push({headerType:"EOM_VISITOR_ID"}), u.push({headerType:"AUTH_USER"}),u.push({headerType:"DATASYNC_ID"});this.K.send({baseUrl:f,scrubReferrer:H,headers:u},R,N,C)}catch(v){}};g_.prototype.eV=function(){var J=this.G.Us();return J&&(J=J.eV(1))?J:null};g.M(UN,g.l);g.T=UN.prototype;g.T.pR=function(){return this.G.getVideoData(1).clientPlaybackNonce}; g.T.addListener=function(J){this.listeners.push(J)}; g.T.removeListener=function(J){this.listeners=this.listeners.filter(function(R){return R!==J})}; g.T.fJ=function(){this.L6.clear();this.wF=null;this.Dq.get().clear()}; g.T.zM=function(){}; g.T.hdM=function(J,R,N,C,X){R.videoId==="nPpU29QrbiU"&&this.G.u3("ads_ssm_vdc_s",{pt:N,dvt:J});jN(this.JN.get())&&J!=="dataloaded"||Hif(this,R,N);if(qa(this.JN.get())&&J==="newdata"&&X!==void 0){J=this.pR();var u=R.clientPlaybackNonce,f={};VC(this,"rte",(f.ec=u,f.xc=C==null?void 0:C.clientPlaybackNonce,f.tr=X,f.pt=N,f.ia=u!==J,f.ctp=mI(u),f));R=R.clientPlaybackNonce;C=C==null?void 0:C.clientPlaybackNonce;X=kI2(X);if(X!==1)if(C!==void 0)for(N=g.K(this.listeners),J=N.next();!J.done;J=N.next())J.value.Dr(C, R,X);else d0("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:R,transitionReason:String(X)});X=g.K(this.listeners);for(C=X.next();!C.done;C=X.next())C.value.LZ(R)}}; g.T.vin=function(J,R){J!==void 0&&(this.wF=J,R===void 0?d0("Expected ad video start time on SS video changed"):this.L6.set(J,R));var N=this.G.getPresentingPlayerType(!0),C=this.G.getVideoData(N);this.G.getVideoData(1).u3("ads_ssvc",{pt:N,cpn:C==null?void 0:C.clientPlaybackNonce,crtt:this.G.getCurrentTime(1,!1),atlh:this.G.isAtLiveHead(),adstt:R});C?Hif(this,C,N):d0("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.G.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:J})}; g.T.YW=function(J,R){var N=J.author,C=J.clientPlaybackNonce,X=J.isListed,u=J.B1,f=J.title,H=J.Vp,k=J.RE,v=J.isMdxPlayback,W=J.O2,S=J.mdxEnvironment,L=J.isAutonav,I=J.Pk,F=J.Pa,a=J.EP,n=J.videoId||"",B=J.profilePicture||"",Z=J.ud||"",A=J.He()||!1,V=J.ZD()||!1;J=J.n8||void 0;u=this.Dq.get().K.get(u)||{layoutId:null,slotId:null};var p=this.G.getVideoData(1),b=p.MR();p=p.getPlayerResponse();R=1E3*this.G.getDuration(R);var w=1E3*this.G.getDuration(1),RQ,$E,G=(p==null?void 0:(RQ=p.playerConfig)==null?void 0: ($E=RQ.daiConfig)==null?void 0:$E.enableDai)||!1,e,t;RQ=(p==null?void 0:(e=p.playerConfig)==null?void 0:(t=e.daiConfig)==null?void 0:t.enablePreroll)||!1;return Object.assign({},u,{videoId:n,author:N,clientPlaybackNonce:C,W7Q:R,Tg:w,daiEnabled:G,E8:RQ,isListed:X,MR:b,profilePicture:B,title:f,ud:Z,Vp:H,RE:k,n8:J,isMdxPlayback:v,O2:W,mdxEnvironment:S,isAutonav:L,Pk:I,Pa:F,EP:a,He:A,ZD:V})}; g.T.Fk=function(){this.listeners.length=0;this.JF=null;g.l.prototype.Fk.call(this)};g.M(ph,g.l);g.T=ph.prototype;g.T.fJ=function(){var J=this;qa(this.JN.get())||(this.K=Es(function(){J.G.QO()||J.G.aT("ad",1)}))}; g.T.zM=function(){}; g.T.addListener=function(J){this.listeners.push(J)}; g.T.removeListener=function(J){this.listeners=this.listeners.filter(function(R){return R!==J})}; g.T.L5=function(){}; g.T.playVideo=function(){this.G.playVideo()}; g.T.pauseVideo=function(){this.G.pauseVideo()}; g.T.resumeVideo=function(J){this.W4(J)&&this.G.playVideo()}; g.T.W4=function(J){return this.G.getPlayerState(J)===2}; g.T.getCurrentTimeSec=function(J,R,N){var C=this.Y8.get().wF;if(J===2&&!R&&C!==null)return Wig(this,C);ki(this.JN.get(),"html5_ssap_use_cpn_to_get_time")||(N=void 0);return N!==void 0?this.G.getCurrentTime(J,R,N):this.G.getCurrentTime(J,R)}; g.T.getVolume=function(){return this.G.getVolume()}; g.T.isMuted=function(){return this.G.isMuted()}; g.T.getPresentingPlayerType=function(){return this.G.getPresentingPlayerType(!0)}; g.T.getPlayerState=function(J){return this.G.getPlayerState(J)}; g.T.isFullscreen=function(){return this.G.isFullscreen()}; g.T.isAtLiveHead=function(){return this.G.isAtLiveHead()}; g.T.B_=function(J){this.G.B_(J)}; g.T.ho7=function(){var J=this.G.getPresentingPlayerType(!0),R=this.getCurrentTimeSec(J,!1);if(J===2){J=g.K(this.listeners);for(var N=J.next();!N.done;N=J.next())N.value.bv(R)}else if(J===1)for(J=g.K(this.P6),N=J.next();!N.done;N=J.next())N.value.L5(R)}; g.T.CSO=function(J){for(var R=g.K(this.listeners),N=R.next();!N.done;N=R.next())N.value.bB(J,this.getPresentingPlayerType())}; g.T.onFullscreenToggled=function(J){for(var R=g.K(this.listeners),N=R.next();!N.done;N=R.next())N.value.onFullscreenToggled(J)}; g.T.onVolumeChange=function(){for(var J=g.K(this.listeners),R=J.next();!R.done;R=J.next())R.value.onVolumeChange()}; g.T.YB=function(){for(var J=this.G.isMinimized(),R=g.K(this.listeners),N=R.next();!N.done;N=R.next())N.value.YB(J)}; g.T.El=function(J){for(var R=g.K(this.listeners),N=R.next();!N.done;N=R.next())N.value.El(J)}; g.T.NR=function(){for(var J=this.G.jQ().V7(),R=g.K(this.listeners),N=R.next();!N.done;N=R.next())N.value.gV(J)}; g.T.jP=function(J){for(var R=g.K(this.listeners),N=R.next();!N.done;N=R.next())N.value.jP(J)}; g.T.k5=function(){for(var J=g.K(this.listeners),R=J.next();!R.done;R=J.next())R.value.k5()};g.M(I0n,g.l);g.M(w_,g.l);w_.prototype.Fk=function(){this.nV.QO()||this.nV.get().removeListener(this);g.l.prototype.Fk.call(this)};ca.prototype.fetch=function(J){var R=J.D3;return this.K.fetch(J.Mh,{FX:J.FX===void 0?void 0:J.FX,MP:R,cueProcessedMs:J.cueProcessedMs===void 0?0:J.cueProcessedMs}).then(function(N){return FiE(N,R)})};g.M(h5,g.l);g.T=h5.prototype;g.T.addListener=function(J){this.listeners.push(J)}; g.T.removeListener=function(J){this.listeners=this.listeners.filter(function(R){return R!==J})}; g.T.wB=function(J){Ek2(this,J,1)}; g.T.onAdUxClicked=function(J,R){yV(this,function(N){N.IT(J,R)})}; g.T.MW=function(J){yV(this,function(R){R.wg(J)})}; g.T.xO=function(J){yV(this,function(R){R.WF(J)})}; g.T.FD7=function(J){yV(this,function(R){R.ge(J)})};Gb.prototype.reduce=function(J){switch(J.event){case "unknown":return}var R=J.identifier;var N=this.K[R];N?R=N:(N={T8:null,AZ:-Infinity},R=this.K[R]=N);N=J.startSecs+J.K/1E3;if(!(N=this.J.startSecs&&N.startSecs<=this.J.startSecs+this.J.Ly)?d0("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.J=N,a0f(this, N)))}}; g.T.Fk=function(){this.K!=null&&(this.K.unsubscribe("cuepointupdated",this.yQ,this),this.K=null);this.listeners.length=0;this.Gh.length=0;g.l.prototype.Fk.call(this)};t5.prototype.addPlayerResponseForAssociation=function(J){this.G.addPlayerResponseForAssociation(J)};g.T=JE.prototype;g.T.uC=function(J,R,N,C,X,u,f){return this.G.uC(J,R,N,C,X,u,f)}; g.T.mf=function(J,R){this.G.mf(J,R)}; g.T.xw=function(J,R,N){this.G.xw(J,R,N)}; g.T.Mu=function(J){this.G.Mu(J)}; g.T.ju=function(J,R,N,C,X,u,f){this.G.ju(J,R,N,C,X,u,f)}; g.T.lP=function(J){return this.G.lP(J)}; g.T.finishSegmentByCpn=function(J,R,N){N=sxY(N);this.G.finishSegmentByCpn(J,R,N)};g.M(Oi8,g.l);g.M(Zi8,g.l);g.M(dpE,g.l);g.M(qBk,g.l);g.M(AWB,g.l);g.M(rWB,g.l);rWB.prototype.V=function(){return this.J};g.M(jxB,fr); jxB.prototype.Z=function(J){var R=J.content;if(R.componentType==="shopping-companion")switch(J.actionType){case 1:case 2:J=this.K.getVideoData(1);this.K.z7("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId,shoppingCompanionCarouselRenderer:R.renderer,layoutId:R.layoutId,macros:R.macros,onLayoutVisibleCallback:R.K,interactionLoggingClientData:R.interactionLoggingClientData});break;case 3:this.K.z7("updateKevlarOrC3Companion",{})}else if(R.componentType==="action-companion")switch(J.actionType){case 1:case 2:J=this.K.getVideoData(1); this.K.z7("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId,actionCompanionAdRenderer:R.renderer,layoutId:R.layoutId,macros:R.macros,onLayoutVisibleCallback:R.K,interactionLoggingClientData:R.interactionLoggingClientData});break;case 3:R.renderer&&(R=this.K.getVideoData(1),this.K.z7("updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId})),this.K.z7("updateKevlarOrC3Companion",{})}else if(R.componentType==="image-companion")switch(J.actionType){case 1:case 2:J=this.K.getVideoData(1);this.K.z7("updateKevlarOrC3Companion", {contentVideoId:J&&J.videoId,imageCompanionAdRenderer:R.renderer,layoutId:R.layoutId,macros:R.macros,onLayoutVisibleCallback:R.K,interactionLoggingClientData:R.interactionLoggingClientData});break;case 3:R=this.K.getVideoData(1),this.K.z7("updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId}),this.K.z7("updateKevlarOrC3Companion",{})}else if(R.componentType==="top-banner-image-text-icon-buttoned")switch(J.actionType){case 1:case 2:J=this.K.getVideoData(1);this.K.z7("updateKevlarOrC3Companion", {contentVideoId:J&&J.videoId,topBannerImageTextIconButtonedLayoutViewModel:R.renderer,layoutId:R.layoutId,macros:R.macros,onLayoutVisibleCallback:R.K,interactionLoggingClientData:R.interactionLoggingClientData});break;case 3:R.renderer&&(R=this.K.getVideoData(1),this.K.z7("updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId})),this.K.z7("updateKevlarOrC3Companion",{})}else if(R.componentType==="banner-image")switch(J.actionType){case 1:case 2:J=this.K.getVideoData(1);this.K.z7("updateKevlarOrC3Companion", {contentVideoId:J&&J.videoId,bannerImageLayoutViewModel:R.renderer,layoutId:R.layoutId,macros:R.macros,onLayoutVisibleCallback:R.K,interactionLoggingClientData:R.interactionLoggingClientData});break;case 3:R=this.K.getVideoData(1),this.K.z7("updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId}),this.K.z7("updateKevlarOrC3Companion",{})}else if(R.componentType==="ads-engagement-panel")switch(R=R.renderer,J.actionType){case 1:case 2:this.K.z7("updateEngagementPanelAction",R.addAction);this.K.z7("changeEngagementPanelVisibility", R.expandAction);break;case 3:this.K.z7("changeEngagementPanelVisibility",R.hideAction),this.K.z7("updateEngagementPanelAction",R.removeAction)}else if(R.componentType==="ads-engagement-panel-layout"){var N=R.renderer;switch(J.actionType){case 1:case 2:this.K.z7("updateEngagementPanelAction",{action:Jp(N.addAction),layoutId:R.layoutId,onLayoutVisibleCallback:R.K,interactionLoggingClientData:R.interactionLoggingClientData});this.K.z7("changeEngagementPanelVisibility",Jp(N.expandAction));break;case 3:this.K.z7("changeEngagementPanelVisibility", Jp(N.hideAction)),this.K.z7("updateEngagementPanelAction",{action:Jp(N.removeAction)})}}};g.M(mpE,Lr);g.T=mpE.prototype;g.T.init=function(J,R,N){Lr.prototype.init.call(this,J,R,N);g.Lz(this.V,"stroke-dasharray","0 "+this.J);this.api.N().T("enable_dark_mode_style_endcap_timed_pie_countdown")&&(this.V.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.U.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.api.N().T("enable_dsa_ad_badge_for_action_endcap_on_web")&&this.Z.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.T.clear=function(){this.hide()}; g.T.hide=function(){Fp(this);Lr.prototype.hide.call(this)}; g.T.show=function(){IH(this);Lr.prototype.show.call(this)}; g.T.W9=function(){this.hide()}; g.T.fR=function(){if(this.K){var J=this.K.getProgressState();J!=null&&J.current!=null&&g.Lz(this.V,"stroke-dasharray",J.current/J.seekableEnd*this.J+" "+this.J)}};g.M(VSB,qj);g.T=VSB.prototype; g.T.init=function(J,R,N){qj.prototype.init.call(this,J,R,N);if(R.image&&R.image.thumbnail)if(R.headline)if(R.description)if(R.backgroundImage&&R.backgroundImage.thumbnail)if(R.actionButton&&g.z(R.actionButton,g.bT))if(J=R.durationMilliseconds||0,typeof J!=="number"||J<=0)g.yD(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+J));else if(R.navigationEndpoint){var C=this.api.getVideoData(2);if(C!=null){var X=R.image.thumbnail.thumbnails;X!=null&& X.length>0&&g.MK(g.iR(X[0].url))&&(X[0].url=C.profilePicture,g.MK(g.iR(C.profilePicture))&&KJ8("VideoPlayer",239976093,"Expected non-empty profile picture."));X=R.backgroundImage.thumbnail.thumbnails;X!=null&&X.length>0&&g.MK(g.iR(X[0].url))&&(X[0].url=C.PV());X=R.headline;X!=null&&g.MK(g.iR(X.text))&&(X.text=C.author)}this.W.init(Mj("ad-image"),R.image,N);this.U.init(Mj("ad-text"),R.headline,N);this.V.init(Mj("ad-text"),R.description,N);this.pC.init(Mj("ad-image"),R.backgroundImage,N);C=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.api.N().T("enable_dark_mode_style_endcap")&&(this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background"),this.U.element.classList.add("ytp-ad-action-interstitial-headline-light"),this.V.element.classList.add("ytp-ad-action-interstitial-description-light"),C.push("ytp-ad-action-interstitial-action-button-dark"));this.api.N().J&&(C.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),C.push("ytp-ad-action-interstitial-action-button-dark")); this.api.N().T("enable_unified_action_endcap_on_web")&&!this.api.N().J&&(C.push("ytp-ad-action-interstitial-action-button-unified"),this.eQ.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.W.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Xk.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.zT.classList.add("ytp-ad-action-interstitial-card-unified"),this.dn.classList.add("ytp-ad-action-interstitial-description-container-unified"), this.V.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.VO.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.U.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.G7.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.T7.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new bW(this.api,this.layoutId,this.interactionLoggingClientData, this.yO,C);g.P(this,this.actionButton);this.actionButton.IB(this.eQ);this.actionButton.init(Mj("button"),g.z(R.actionButton,g.bT),N);XL(this.actionButton.element);C=f$(this.actionButton.element);uc(this.actionButton.element,C+" This link opens in new tab");this.navigationEndpoint=R.navigationEndpoint;this.Z.L(this.G7,"click",this.w7,this);this.Z.L(this.dn,"click",this.w7,this);!this.api.N().T("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.N().J||this.Z.L(this.VO,"click",this.w7, this);this.K=this.yT?new ly(this.api,J):new PF(J);g.P(this,this.K);if(R.skipButton){if((J=g.z(R.skipButton,lVa))&&this.K&&(this.skipButton=new r0(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.K,this.Er),g.P(this,this.skipButton),this.skipButton.IB(this.element),this.skipButton.init(Mj("skip-button"),J,N)),this.api.N().T("enable_dsa_ad_badge_for_action_endcap_on_web")){N=this.api.T("disable_ad_preview_for_instream_ads");if(J=R.adBadgeRenderer)if(J=g.z(J,pbf))C=new US(this.api, this.layoutId,this.interactionLoggingClientData,this.yO,!0,N),C.IB(this.T7),C.init(Mj("simple-ad-badge"),J,this.macros),g.P(this,C);if(J=R.adInfoRenderer)if(J=g.z(J,yq))N=new vF(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.element,void 0,N),N.IB(this.T7),N.init(Mj("ad-info-hover-text-button"),J,this.macros),g.P(this,N)}}else R.nonskippableOverlayRenderer&&(J=g.z(R.nonskippableOverlayRenderer,Ge))&&this.K&&(this.J=new Kr(this.api,this.layoutId,this.interactionLoggingClientData, this.yO,this.K,!1),g.P(this,this.J),this.J.IB(this.element),this.J.init(Mj("ad-preview"),J,N));R.countdownRenderer&&(R=R.countdownRenderer,g.z(R,PkU)&&this.K&&(N=new mpE(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.K),g.P(this,N),N.IB(this.element),N.init(Mj("timed-pie-countdown"),g.z(R,PkU),this.macros)));this.show();this.element.focus()}else g.yD(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.yD(Error("AdActionInterstitialRenderer has no button.")); else g.yD(Error("AdActionInterstitialRenderer has no background AdImage."));else g.yD(Error("AdActionInterstitialRenderer has no description AdText."));else g.yD(Error("AdActionInterstitialRenderer has no headline AdText."));else g.yD(Error("AdActionInterstitialRenderer has no image."))}; g.T.clear=function(){g.pI(this.Z);this.hide()}; g.T.show=function(){gkg(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.J&&this.J.show();qj.prototype.show.call(this)}; g.T.hide=function(){gkg(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.J&&this.J.hide();qj.prototype.hide.call(this)}; g.T.w7=function(){this.navigationEndpoint&&(this.layoutId?this.yO.executeCommand(this.navigationEndpoint,this.layoutId):g.yD(Error("Missing layoutId for ad action interstitial.")))};var zn2={iconType:"CLOSE"},CU=new g.a4(320,63);g.M(P22,qj);g.T=P22.prototype; g.T.init=function(J,R,N){qj.prototype.init.call(this,J,R,N);this.Z=R;this.W=g.t_(this.Z.onClickCommands||[]);this.T7=this.Z.onErrorCommand||null;if(J=this.Z.contentSupportedRenderer)J=this.Z.contentSupportedRenderer,R=this.Z.adInfoRenderer||null,g.z(J,VZ_)?(this.U=g.JT("ytp-ad-overlay-ad-info-button-container",this.V.element),enk(this,R),J=cWE(this,g.z(J,VZ_))):g.z(J,gNk)?(this.U=g.JT("ytp-ad-overlay-ad-info-button-container",this.J.element),enk(this,R),J=hnn(this,g.z(J,gNk))):g.z(J,U_P)?(this.U= g.JT("ytp-ad-overlay-ad-info-button-container",this.K.element),enk(this,R),J=yWg(this,g.z(J,U_P))):(g.yD(Error("InvideoOverlayAdRenderer content could not be initialized.")),J=!1);J&&(this.show(),GIQ(this,!0))}; g.T.clear=function(){GIQ(this,!1);this.G7.reset();this.dn=0;this.V.hide();this.logVisibility(this.V.element,!1);this.J.hide();this.logVisibility(this.J.element,!1);this.K.hide();this.logVisibility(this.K.element,!1);this.hide();this.dispose()}; g.T.CsB=function(){this.eQ&&(this.layoutId?this.yO.executeCommand(this.eQ,this.layoutId):g.yD(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.T.Qh=function(){a:{if(this.Z&&this.Z.closeButton&&this.Z.closeButton.buttonRenderer){var J=this.Z.closeButton.buttonRenderer;if(J.serviceEndpoint){J=[J.serviceEndpoint];break a}}J=[]}J=g.K(J);for(var R=J.next();!R.done;R=J.next())R=R.value,this.layoutId?this.yO.executeCommand(R,this.layoutId):g.yD(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.T.dRO=function(){this.pC||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.T.uq=function(){this.pC||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.uq("invideo-overlay")}; g.T.vAO=function(J){J.target===this.U&&g.JT("ytp-ad-button",this.Xk.element).click()};g.M(bin,Lr);g.T=bin.prototype;g.T.init=function(J,R,N){Lr.prototype.init.call(this,J,R,N);J=R.durationMs;this.V=J==null||J===0?0:J+this.K.getProgressState().current*1E3;if(R.text)var C=R.text.templatedAdText;else R.staticMessage&&(C=R.staticMessage);this.messageText.init(Mj("ad-text"),C,N);this.messageText.IB(this.J.element);this.Z.show(100);this.show()}; g.T.clear=function(){this.hide()}; g.T.hide=function(){tSE(this,!1);Lr.prototype.hide.call(this);this.J.hide();this.messageText.hide();Fp(this)}; g.T.show=function(){tSE(this,!0);Lr.prototype.show.call(this);IH(this);this.J.show();this.messageText.show()}; g.T.W9=function(){this.hide()}; g.T.fR=function(){if(this.K!=null){var J=this.K.getProgressState();J!=null&&J.current!=null&&(J=1E3*J.current,!this.dn&&J>=this.V?(this.Z.hide(),this.dn=!0):this.messageText&&this.messageText.isTemplated()&&(J=Math.max(0,Math.ceil((this.V-J)/1E3)),J!==this.U&&(Sa(this.messageText,{TIME_REMAINING:String(J)}),this.U=J)))}};g.M(xpf,qj);g.T=xpf.prototype; g.T.init=function(J,R,N){qj.prototype.init.call(this,J,R,{});R.image&&R.image.thumbnail?R.headline?R.description?R.actionButton&&g.z(R.actionButton,g.bT)?(this.V.init(Mj("ad-image"),R.image,N),this.J.init(Mj("ad-text"),R.headline,N),this.Z.init(Mj("ad-text"),R.description,N),J=["ytp-ad-underlay-action-button"],this.api.N().T("use_blue_buttons_for_desktop_player_underlay")&&J.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new bW(this.api,this.layoutId,this.interactionLoggingClientData,this.yO, J),R.backgroundColor&&g.Lz(this.element,"background-color",g.XE(R.backgroundColor)),g.P(this,this.actionButton),this.actionButton.IB(this.U),this.actionButton.init(Mj("button"),g.z(R.actionButton,g.bT),N),R=g.di(this.api.N().experiments,"player_underlay_video_width_fraction"),this.api.N().T("place_shrunken_video_on_left_of_player")?(N=this.K,g.Mh(N,"ytp-ad-underlay-left-container"),g.FL(N,"ytp-ad-underlay-right-container"),g.Lz(this.K,"margin-left",Math.round((R+.02)*100)+"%")):(N=this.K,g.Mh(N,"ytp-ad-underlay-right-container"), g.FL(N,"ytp-ad-underlay-left-container")),g.Lz(this.K,"width",Math.round((1-R-.04)*100)+"%"),this.api.Mw()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.PP.bind(this)),this.api.addEventListener("resize",this.Gi.bind(this))):g.yD(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.yD(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.yD(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.yD(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.T.show=function(){JkU(!0);this.actionButton&&this.actionButton.show();qj.prototype.show.call(this)}; g.T.hide=function(){JkU(!1);this.actionButton&&this.actionButton.hide();qj.prototype.hide.call(this)}; g.T.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.PP.bind(this));this.api.removeEventListener("resize",this.Gi.bind(this));this.hide()}; g.T.onClick=function(J){qj.prototype.onClick.call(this,J);this.actionButton&&g.kw(this.actionButton.element,J.target)&&this.api.pauseVideo()}; g.T.PP=function(J){J==="transitioning"?(this.K.classList.remove("ytp-ad-underlay-clickable"),this.show()):J==="visible"?this.K.classList.add("ytp-ad-underlay-clickable"):J==="hidden"&&(this.hide(),this.K.classList.remove("ytp-ad-underlay-clickable"))}; g.T.Gi=function(J){J.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):J.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); g.Lz(this.J.element,"font-size",J.width/40+"px")};g.M(XY,qj); XY.prototype.init=function(J,R,N){qj.prototype.init.call(this,J,R,N);R.toggledLoggingParams&&(this.toggledLoggingParams=R.toggledLoggingParams);R.answer&&g.z(R.answer,g.bT)?(J=new bW(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),J.IB(this.answer),J.init(Mj("ytp-ad-survey-answer-button"),g.z(R.answer,g.bT),N),J.show()):R.answer&&g.z(R.answer,bq)&&(this.K=new iy(this.api,this.layoutId,this.interactionLoggingClientData,this.yO, ["ytp-ad-survey-answer-toggle-button"]),this.K.IB(this.answer),g.P(this,this.K),this.K.init(Mj("survey-answer-button"),g.z(R.answer,bq),N));this.show()}; XY.prototype.DC=function(J){this.layoutId?T_(this.yO,J,this.layoutId,this.macros):g.yD(new g.C3("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; XY.prototype.onClick=function(J){qj.prototype.onClick.call(this,J);if(this.api.N().T("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; XY.prototype.clear=function(){this.hide()};g.M(oE_,qj);oE_.prototype.init=function(J,R,N){qj.prototype.init.call(this,J,R,N);R.answer&&g.z(R.answer,bq)&&(this.button=new iy(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.IB(this.K),this.button.init(Mj("survey-none-of-the-above-button"),g.z(R.answer,bq),N));this.show()};g.M(iq,bW);iq.prototype.init=function(J,R,N){bW.prototype.init.call(this,J,R,N);J=!1;R.text&&(R=g.Yn(R.text),J=!g.MK(R));J||g.G$(Error("No submit text was present in the renderer."))}; iq.prototype.onClick=function(J){this.publish("l");bW.prototype.onClick.call(this,J)};g.M(uq,qj); uq.prototype.init=function(J,R,N){qj.prototype.init.call(this,J,R,N);if(J=R.skipOrPreviewRenderer)g.z(J,dT)?(J=g.z(J,dT),N=new VZ(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.Z,!0),N.IB(this.skipOrPreview),N.init(Mj("skip-button"),J,this.macros),g.P(this,N),this.K=N):g.z(J,Ge)&&(J=g.z(J,Ge),N=new Kr(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.Z,!1),N.IB(this.skipOrPreview),N.init(Mj("ad-preview"),J,this.macros),aH(N),g.P(this,N),this.K=N);this.K== null&&g.yD(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(R)));R.submitButton&&(J=R.submitButton,g.z(J,g.bT)&&(J=g.z(J,g.bT),N=new iq(this.api,this.layoutId,this.interactionLoggingClientData,this.yO),N.IB(this.submitButton),N.init(Mj("survey-submit"),J,this.macros),g.P(this,N),this.J=N));J=this.api.T("disable_ad_preview_for_instream_ads");if(N=R.adBadgeRenderer){N=g.z(N,pbf);var C=new US(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,!0, J,!0);C.IB(this.V);C.init(Mj("simple-ad-badge"),N,this.macros);this.adBadge=C.element;g.P(this,C)}if(N=R.adDurationRemaining)N=g.z(N,rj9),C=new w0(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.Z,void 0,J),C.IB(this.V),C.init(Mj("ad-duration-remaining"),N,this.macros),g.P(this,C);(R=R.adInfoRenderer)&&g.z(R,yq)&&(N=new vF(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.element,void 0,J),g.P(this,N),J&&this.adBadge!==void 0?this.V.insertBefore(N.element, this.adBadge.nextSibling):N.IB(this.V),N.init(Mj("ad-info-hover-text-button"),g.z(R,yq),this.macros));this.show()}; uq.prototype.clear=function(){this.hide()};g.M(fU,qj);fU.prototype.init=function(J,R,N){qj.prototype.init.call(this,J,R,N);i2V(this)}; fU.prototype.show=function(){this.V=Date.now();qj.prototype.show.call(this)}; fU.prototype.yI=function(){};g.M(uB_,fU);g.T=uB_.prototype;g.T.init=function(J,R,N){var C=this;fU.prototype.init.call(this,J,R,N);R.questionText&&RgE(this,R.questionText);R.answers&&R.answers.forEach(function(X,u){g.z(X,yl)&&NYd(C,g.z(X,yl),N,u)}); this.U=new Set(this.J.map(function(X){return X.K.K})); (J=R.noneOfTheAbove)&&(J=g.z(J,m__))&&f7P(this,J,N);R.surveyAdQuestionCommon&&XgV(this,R.surveyAdQuestionCommon);R.submitEndpoints&&(this.submitEndpoints=R.submitEndpoints);this.L(this.element,"change",this.onChange);this.show()}; g.T.yI=function(){TY_(this,!1);this.Z.J.subscribe("l",this.UPC,this)}; g.T.onChange=function(J){J.target===this.noneOfTheAbove.button.K?$Pk(this):this.U.has(J.target)&&(this.noneOfTheAbove.button.toggleButton(!1),TY_(this,!0))}; g.T.UPC=function(){var J=[],R=this.J.reduce(function(X,u,f){var H=u.toggledLoggingParams;u.K&&u.K.isToggled()&&H&&(X.push(H),J.push(f));return X},[]).join("&"),N=this.submitEndpoints.map(function(X){if(!X.loggingUrls)return X; X=g.gq(X);X.loggingUrls=X.loggingUrls.map(function(u){u.baseUrl&&(u.baseUrl=tB(u.baseUrl,R));return u}); return X}); if(N){N=g.K(N);for(var C=N.next();!C.done;C=N.next())C=C.value,this.layoutId?T_(this.yO,C,this.layoutId,this.macros):g.yD(Error("Missing layoutId for multi_select_question."))}this.api.N().T("supports_multi_step_on_desktop")&&this.dn(J)}; g.T.clear=function(){this.api.N().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.M(Tv,fU);Tv.prototype.init=function(J,R,N){var C=this;fU.prototype.init.call(this,J,R,N);R.questionText&&RgE(this,R.questionText);R.answers&&R.answers.forEach(function(X,u){g.z(X,yl)&&NYd(C,g.z(X,yl),N,u)}); R.surveyAdQuestionCommon?XgV(this,R.surveyAdQuestionCommon):g.yD(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(R)));this.show()}; Tv.prototype.clear=function(){this.api.N().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.M($f,qj);$f.prototype.init=function(J,R,N){var C=this;qj.prototype.init.call(this,J,R,N);if(this.api.N().T("supports_multi_step_on_desktop")){var X;this.conditioningRules=(X=R.conditioningRules)!=null?X:[];var u;this.J=(u=R.questions)!=null?u:[];var f;((f=R.questions)==null?0:f.length)&&WB9(this,0)}else(R.questions||[]).forEach(function(H){g.z(H,cz)?kE_(C,g.z(H,cz),N):g.z(H,wL)&&vEV(C,g.z(H,wL),N)}); this.show()}; $f.prototype.clear=function(){this.api.N().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; $f.prototype.Z=function(J){var R=this;if(this.api.N().T("supports_multi_step_on_desktop")){var N;if((N=this.conditioningRules)==null?0:N.length){var C;if(J.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(X){return X.questionIndex===R.K})==null)g.yD(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(X){if(X.questionIndex===R.K)switch(X.condition){case "CONDITION_ALL_OF":var u;if((u=X.answerIndices)==null?0:u.every(function(H){return J.includes(H)}))C=X.nextQuestionIndex; break;case "CONDITION_ANY_OF":var f;if((f=X.answerIndices)==null?0:f.some(function(H){return J.includes(H)}))C=X.nextQuestionIndex; break;default:g.yD(Error("Expected specified condition in survey conditioning rules."))}}),C!=null)WB9(this,C); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.yD(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.M(HB,qj); HB.prototype.init=function(J,R,N){var C=this;qj.prototype.init.call(this,J,R,N);J=R.timeoutSeconds||0;if(typeof J!=="number"||J<0)g.yD(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+J));else if(R.timeoutCommands)if(R.text)if(R.ctaButton&&g.z(R.ctaButton,g.bT))if(R.brandImage)if(R.backgroundImage&&g.z(R.backgroundImage,te)&&g.z(R.backgroundImage,te).landscape){this.layoutId||g.yD(Error("Missing layoutId for survey interstitial."));Sf9(this.interstitial,g.z(R.backgroundImage, te).landscape);Sf9(this.logoImage,R.brandImage);g.vt(this.text,g.Yn(R.text));var X=["ytp-ad-survey-interstitial-action-button"];X.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new bW(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,X);g.P(this,this.actionButton);this.actionButton.IB(this.J);this.actionButton.init(Mj("button"),g.z(R.ctaButton,g.bT),N);this.actionButton.show();this.K=new ly(this.api,J*1E3);this.K.subscribe("g",function(){C.transition.hide()}); g.P(this,this.K);this.L(this.element,"click",function(u){var f=u.target===C.interstitial;u=C.actionButton.element.contains(u.target);if(f||u)if(C.transition.hide(),f)C.api.onAdUxClicked(C.componentType,C.layoutId)}); this.transition.show(100)}else g.yD(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.yD(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.yD(Error("SurveyTextInterstitialRenderer has no button."));else g.yD(Error("SurveyTextInterstitialRenderer has no text."));else g.yD(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; HB.prototype.clear=function(){this.hide()}; HB.prototype.show=function(){LBE(!0);qj.prototype.show.call(this)}; HB.prototype.hide=function(){LBE(!1);qj.prototype.hide.call(this)};g.M(kf,Lr);g.T=kf.prototype; g.T.init=function(J,R){Lr.prototype.init.call(this,J,R,{});if(R.durationMilliseconds){if(R.durationMilliseconds<0){g.yD(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+R.durationMilliseconds));return}this.J=R.durationMilliseconds}else this.J=this.K.pE();var N;if((N=R.previewText)==null||!N.text||g.MK(R.previewText.text))g.yD(Error("No text is returned for AdPreview."));else{this.U=R.previewText;R.previewText.isTemplated||g.vt(this.V,R.previewText.text);var C; if(((C=this.api.getVideoData(1))==null?0:C.Ix)&&R.previewImage){var X,u;(J=((u=z5(((X=R.previewImage)==null?void 0:X.sources)||[],52,!1))==null?void 0:u.url)||"")&&J.length?(this.previewImage=new g.da({C:"img",Y:"ytp-preview-ad__image",B:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",J),g.P(this,this.previewImage),this.previewImage.IB(this.element)):g.yD(Error("Failed to get imageUrl in AdPreview."))}else this.V.classList.add("ytp-preview-ad__text--padding--wide")}}; g.T.clear=function(){this.hide()}; g.T.hide=function(){Fp(this);Lr.prototype.hide.call(this)}; g.T.show=function(){IH(this);Lr.prototype.show.call(this)}; g.T.W9=function(){this.hide()}; g.T.fR=function(){if(this.K){var J=this.K.getProgressState();if(J!=null&&J.current)if(J=1E3*J.current,J>=this.J)this.transition.hide();else{var R;if((R=this.U)==null?0:R.isTemplated)if(R=Math.max(0,Math.ceil((this.J-J)/1E3)),R!==this.Z){var N,C;(J=(N=this.U)==null?void 0:(C=N.text)==null?void 0:C.replace("{TIME_REMAINING}",String(R)))&&g.vt(this.V,J);this.Z=R}}}};g.M(vB,qj); vB.prototype.init=function(J,R){qj.prototype.init.call(this,J,R,{});var N,C;if((J=((C=z5(((N=R.image)==null?void 0:N.sources)||[],I7d(R),!0))==null?void 0:C.url)||"")&&J.length){N=this.qp("ytp-ad-avatar");N.src=J;var X,u;if(C=(X=R.interaction)==null?void 0:(u=X.accessibility)==null?void 0:u.label)N.alt=C;switch(R.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(R.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner"); break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.yD(Error("Failed to get imageUrl in AdAvatar."))}; vB.prototype.clear=function(){this.hide()}; vB.prototype.onClick=function(J){qj.prototype.onClick.call(this,J)};g.M(WB,qj); WB.prototype.init=function(J,R){qj.prototype.init.call(this,J,R,{});var N;J=(N=R.label)==null?void 0:N.content;if((N=J!=null&&!g.MK(J))||R.iconImage){N&&(this.buttonText=new g.da({C:"span",Y:"ytp-ad-button-vm__text",cC:J}),g.P(this,this.buttonText),this.buttonText.IB(this.element));var C,X,u=((C=R.interaction)==null?0:(X=C.accessibility)==null?0:X.label)||N?J:"";u&&uc(this.element,u+" This link opens in new tab");XL(this.element);if(R.iconImage){C=void 0;if(R.iconImage){a:{X=R.iconImage;if(X.sources)for(X= g.K(X.sources),J=X.next();!J.done;J=X.next())if(J=J.value,u=void 0,(u=J.clientResource)==null?0:u.imageName){X=J;break a}X=void 0}if(X){var f;C={iconType:(f=X.clientResource)==null?void 0:f.imageName}}}f=GT(C,!1,this.K);f!=null&&(this.buttonIcon=new g.da({C:"span",Y:"ytp-ad-button-vm__icon",j:[f]}),g.P(this,this.buttonIcon),R.iconLeading?($w(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):N?(this.buttonIcon.IB(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.IB(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(R.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(R.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact"); break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.G$(Error("AdButton does not have label or an icon."))}; WB.prototype.clear=function(){this.hide()}; WB.prototype.onClick=function(J){qj.prototype.onClick.call(this,J)};g.M(FBE,Lr);g.T=FBE.prototype; g.T.init=function(J,R){Lr.prototype.init.call(this,J,R,{});this.api.N().T("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.qp("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"),$w(this.qp("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(J=g.z(R.avatar,DPL)){var N=R.headline;if(N){var C=R.description;if(C){var X=g.z(R.button,nU);X?(this.adAvatar.init(Mj("ad-avatar"),J),this.headline.init(Mj("ad-simple-attributed-string"),new hl(N)),this.description.init(Mj("ad-simple-attributed-string"),new hl(C)),N.content&&N.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(Mj("ad-button"),X),this.startMilliseconds=R.startMs||0,this.api.Mw()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.wr.bind(this)),IH(this)):g.yD(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.yD(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.yD(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.yD(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.T.fR=function(){if(this.K){var J=this.K.getProgressState();J&&J.current&&1E3*J.current>=this.startMilliseconds&&(Fp(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.T.W9=function(){this.clear()}; g.T.onClick=function(J){this.api.pauseVideo();Lr.prototype.onClick.call(this,J)}; g.T.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.wr.bind(this))}; g.T.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Lr.prototype.show.call(this)}; g.T.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Lr.prototype.hide.call(this)}; g.T.wr=function(J){J==="hidden"?this.show():this.hide()};g.M(Sp,qj);g.T=Sp.prototype; g.T.init=function(J,R){qj.prototype.init.call(this,J,R,{});if(!R.label||g.MK(R.label))g.yD(Error("No label is returned for SkipAdButton."));else if(g.vt(this.Z,R.label),J=GT({iconType:"SKIP_NEXT_NEW"}),J==null)g.yD(Error("Unable to retrieve icon for SkipAdButton"));else if(this.V=new g.da({C:"span",Y:"ytp-skip-ad-button__icon",j:[J]}),g.P(this,this.V),this.V.IB(this.element),this.api.N().experiments.b3("enable_skip_to_next_messaging")&&(R=g.iR(R.targetId)))this.J=!0,this.element.setAttribute("data-tooltip-target-id",R), this.element.setAttribute("data-tooltip-target-fixed","")}; g.T.onClick=function(J){J&&J.preventDefault();var R,N;KTP(J,{contentCpn:(N=(R=this.api.getVideoData(1))==null?void 0:R.clientPlaybackNonce)!=null?N:""})===0?this.api.z7("onAbnormalityDetected"):(qj.prototype.onClick.call(this,J),this.api.N().T("embeds_web_enable_ad_skipped_event_publishing")&&this.api.z7("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.T.clear=function(){this.K.reset();this.hide()}; g.T.hide=function(){qj.prototype.hide.call(this)}; g.T.show=function(){this.K.start();qj.prototype.show.call(this);this.J&&this.api.N().experiments.b3("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.M(EEl,Lr);g.T=EEl.prototype; g.T.init=function(J,R){Lr.prototype.init.call(this,J,R,{});J=g.z(R.preskipState,GsE);if(this.Z||!this.api.N().experiments.b3("disable_ad_preview_for_instream_ads")){if(!J){g.yD(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}var N;(N=this.J)==null||N.init(Mj("preview-ad"),J);(N=this.J)!=null&&(N.transition.show(100),N.show())}(N=g.z(R.skippableState,tZf))?(R.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=R.skipOffsetMilliseconds:(g.G$(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds= 5E3),this.V.init(Mj("skip-button"),N),this.show()):g.yD(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.T.show=function(){IH(this);Lr.prototype.show.call(this)}; g.T.hide=function(){!this.isSkippable&&this.J?this.J.hide():this.V&&this.V.hide();Fp(this);Lr.prototype.hide.call(this)}; g.T.clear=function(){var J;(J=this.J)==null||J.clear();this.V&&this.V.clear();Fp(this);Lr.prototype.hide.call(this)}; g.T.W9=function(){this.hide()}; g.T.fR=function(){if(1E3*this.K.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var J;(J=this.J)!=null&&J.transition.hide();(J=this.V)!=null&&(J.transition.show(),J.show())}};g.M(LU,qj); LU.prototype.init=function(J,R){qj.prototype.init.call(this,J,R,{});if(R.label){var N;((N=R.label)==null?0:N.content)&&!g.MK(R.label.content)&&(this.linkText=new g.da({C:"span",Y:"ytp-visit-advertiser-link__text",cC:R.label.content}),g.P(this,this.linkText),this.linkText.IB(this.element));var C,X;if((C=R.interaction)==null?0:(X=C.accessibility)==null?0:X.label)uc(this.element,R.interaction.accessibility.label+" This link opens in new tab");else{var u;((u=R.label)==null?0:u.content)&&!g.MK(R.label.content)&&uc(this.element, R.label.content+" This link opens in new tab")}XL(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.yD(Error("No label found in VisitAdvertiserLink."))}; LU.prototype.onClick=function(J){qj.prototype.onClick.call(this,J);this.api.onAdUxClicked(this.componentType,this.layoutId)}; LU.prototype.clear=function(){this.hide()};g.M(IO,qj); IO.prototype.init=function(J,R,N,C){qj.prototype.init.call(this,J,R,{});if(R.skipOrPreview){N=R.skipOrPreview;J=g.z(N,x_U);N=g.z(N,GsE);var X,u=this.api.N().T("clean_player_style_fix_on_web")&&((X=this.api.getVideoData())==null?void 0:X.isDaiEnabled());J?(this.o7=new EEl(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.J),g.P(this,this.o7),this.o7.IB(this.W),this.o7.init(Mj("skip-ad"),J)):!N||this.api.N().experiments.b3("disable_ad_preview_for_instream_ads")&&!u||(this.Z=new kf(this.api, this.layoutId,this.interactionLoggingClientData,this.yO,this.J,1),g.P(this,this.Z),this.Z.IB(this.W),this.Z.init(Mj("ad-preview"),N),X=this.Z,X.transition.show(100),X.show());if(X=g.z(R.skipOrPreview,x_U))var f=X.skipOffsetMilliseconds}R.playerAdCard&&(X=g.z(R.playerAdCard,bEL))&&(this.playerAdCard=new FBE(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.J),g.P(this,this.playerAdCard),this.playerAdCard.IB(this.VO),this.playerAdCard.init(Mj("ad-avatar-lockup-card"),X));X=this.api.N().T("disable_ad_duration_remaining_for_instream_video_ads")|| R.adPodIndex!==void 0;R.adBadgeRenderer&&((J=g.z(R.adBadgeRenderer,Ql))?(this.V=new G8(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,X),g.P(this,this.V),this.V.IB(this.K),this.V.init(Mj("ad-badge"),J)):g.yD(Error("AdBadgeViewModel is not found in player overlay layout.")));R.adPodIndex&&(J=g.z(R.adPodIndex,wbq))&&(this.adPodIndex=new by(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,g.z(R.skipOrPreview,x_U)===void 0),g.P(this,this.adPodIndex),this.adPodIndex.IB(this.K), this.adPodIndex.init(Mj("ad-pod-index"),J));R.adInfoRenderer&&(J=g.z(R.adInfoRenderer,yq))&&(this.adInfoButton=new vF(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.element,void 0,X),g.P(this,this.adInfoButton),this.api.N().T("enable_ad_pod_index_autohide")&&this.V!==void 0?this.K.insertBefore(this.adInfoButton.element,this.V.element.nextSibling):this.adInfoButton.IB(this.K),this.adInfoButton.init(Mj("ad-info-hover-text-button"),J,this.macros));var H;J=this.api.N().T("clean_player_style_fix_on_web")&& ((H=this.api.getVideoData())==null?void 0:H.isDaiEnabled());R.adDurationRemaining&&(!X||J)&&(H=g.z(R.adDurationRemaining,rj9))&&(this.adDurationRemaining=new w0(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.J,C.videoAdDurationSeconds,X),g.P(this,this.adDurationRemaining),X&&this.adPodIndex!==void 0?this.K.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?X?this.K.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling): this.K.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.IB(this.K),this.adDurationRemaining.init(Mj("ad-duration-remaining"),H,this.macros),X&&this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));R.visitAdvertiserLink&&(C=g.z(R.visitAdvertiserLink,omf))&&(this.visitAdvertiserLink=new LU(this.api,this.layoutId,this.interactionLoggingClientData,this.yO),g.P(this,this.visitAdvertiserLink),this.visitAdvertiserLink.IB(this.K), this.visitAdvertiserLink.init(Mj("visit-advertiser-link"),C));R.adDisclosureBanner&&(R=g.z(R.adDisclosureBanner,eAl))&&(this.adDisclosureBanner=new tl(this.api,this.layoutId,this.interactionLoggingClientData,this.yO),g.P(this,this.adDisclosureBanner),this.adDisclosureBanner.IB(this.dn),this.adDisclosureBanner.init(Mj("ad-disclosure-banner"),R));this.api.N().T("show_preskip_progress_bar_for_skippable_ads")&&(this.U=new o_(this.api,this.J,f,X),g.P(this,this.U),g.EL(this.api,this.U.element,4));this.show()}; IO.prototype.clear=function(){this.hide()};g.M(MnV,qj);g.T=MnV.prototype; g.T.init=function(J,R){qj.prototype.init.call(this,J,R,{});if(R!=null&&R.title)if(J=R.title)if(this.headline.init(Mj("ad-simple-attributed-string"),new hl(J)),J=g.z(R.moreInfoButton,nU)){if(this.moreInfoButton.init(Mj("ad-button"),J),R.descriptions)R.descriptions.length>0&&(J=R.descriptions[0])&&(this.K=new yZ(this.api,this.layoutId,this.interactionLoggingClientData,this.yO),g.P(this,this.K),this.K.IB(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.K.init(Mj("ad-simple-attributed-string"), new hl(J))),R.descriptions.length>1&&(R=R.descriptions[1])&&(this.J=new yZ(this.api,this.layoutId,this.interactionLoggingClientData,this.yO),g.P(this,this.J),this.J.IB(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.J.init(Mj("ad-simple-attributed-string"),new hl(R)))}else g.yD(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.yD(Error("No headline found in AdGridCardText."));else g.yD(Error("No headline found in AdGridCardText."))}; g.T.onClick=function(J){qj.prototype.onClick.call(this,J);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.T.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var J;(J=this.K)==null||J.clear();var R;(R=this.J)==null||R.clear()}; g.T.hide=function(){this.headline.hide();this.moreInfoButton.hide();var J;(J=this.K)==null||J.hide();var R;(R=this.J)==null||R.hide();qj.prototype.hide.call(this)}; g.T.show=function(){qj.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var J;(J=this.K)==null||J.show();var R;(R=this.J)==null||R.show()};g.M(FY,qj);FY.prototype.init=function(J,R){qj.prototype.init.call(this,J,R,{});if(R!=null&&R.gridCards)if(R.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.yD(Error("Only single column style is currently supported in AdGridCardCollection."));else for(J=g.K(R.gridCards),R=J.next();!R.done;R=J.next()){if(R=g.z(R.value,yj9)){var N=new MnV(this.api,this.layoutId,this.interactionLoggingClientData,this.yO);g.P(this,N);N.IB(this.element);N.init(Mj("ad-grid-card-text"),R);this.K.push(N)}}else g.yD(Error("No grid cards found in AdGridCardCollection."))}; FY.prototype.show=function(){for(var J=g.K(this.K),R=J.next();!R.done;R=J.next())R.value.show();qj.prototype.show.call(this)}; FY.prototype.clear=function(){this.hide();for(var J=g.K(this.K),R=J.next();!R.done;R=J.next())R.value.clear()}; FY.prototype.hide=function(){for(var J=g.K(this.K),R=J.next();!R.done;R=J.next())R.value.hide();qj.prototype.hide.call(this)};g.M(EM,Lr);g.T=EM.prototype;g.T.init=function(J,R,N,C,X){X=X===void 0?0:X;Lr.prototype.init.call(this,J,R,N,C);this.playerProgressOffsetMs=X;IH(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.VU.bind(this));this.api.addEventListener("resize",this.Kc.bind(this));this.api.Mw()?(this.J=!0,this.api.B_(!0),this.show()):this.hide()}; g.T.fR=function(){if(this.K){var J=this.K.getProgressState();J&&J.current&&!this.J&&1E3*J.current>=this.playerProgressOffsetMs&&(this.J=!0,this.api.B_(!0),this.show())}}; g.T.W9=function(){this.J&&this.api.B_(!1);this.hide()}; g.T.clear=function(){this.api.B_(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.VU.bind(this));this.api.removeEventListener("resize",this.Kc.bind(this));Fp(this);this.hide()}; g.T.hide=function(){KBf(!1);Lr.prototype.hide.call(this)}; g.T.show=function(){KBf(!0);Lr.prototype.show.call(this)};g.M(a78,EM);g.T=a78.prototype;g.T.init=function(J,R,N,C){if(R!=null&&R.adGridCardCollection)if(R!=null&&R.adButton){var X=Number(R.playerProgressOffsetMs||"0");isNaN(X)?EM.prototype.init.call(this,J,R,N,C):EM.prototype.init.call(this,J,R,N,C,X);J=g.z(R.adGridCardCollection,hAK);this.adGridCardCollection.init(Mj("ad-grid-card-collection"),J);R=g.z(R.adButton,nU);this.adButton.init(Mj("ad-button"),R);this.hide()}else g.yD(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.yD(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.T.onClick=function(J){this.adButton&&g.kw(this.adButton.element,J.target)&&this.api.pauseVideo();EM.prototype.onClick.call(this,J);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.T.Kc=function(){}; g.T.clear=function(){this.hide();this.adGridCardCollection.clear();this.adButton.clear();EM.prototype.clear.call(this)}; g.T.show=function(){this.adGridCardCollection.show();this.adButton.show();EM.prototype.show.call(this)}; g.T.hide=function(){this.adGridCardCollection.hide();this.adButton.hide();EM.prototype.hide.call(this)}; g.T.VU=function(J){J==="transitioning"?(this.V.classList.remove("ytp-ad-underlay-clickable"),this.show()):J==="visible"?this.V.classList.add("ytp-ad-underlay-clickable"):J==="hidden"&&(this.hide(),this.V.classList.remove("ytp-ad-underlay-clickable"))};g.M(M7,qj); M7.prototype.init=function(J,R){qj.prototype.init.call(this,J,R,{});if(R.attributes===void 0)g.yD(Error("No attributes found in AdDetailsLineViewModel."));else if(R.style===void 0)g.yD(Error("No style found in AdDetailsLineViewModel."));else{J=g.K(R.attributes);for(var N=J.next();!N.done;N=J.next())if(N=N.value,N.text!==void 0){N=N.text;var C=R.style,X=new yZ(this.api,this.layoutId,this.interactionLoggingClientData,this.yO);g.P(this,X);X.IB(this.element);a:switch(C){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":C="ytp-ad-details-line__text--style-responsive"; break a;default:C="ytp-ad-details-line__text--style-standard"}X.element.classList.add(C);X.init(Mj("ad-simple-attributed-string"),new hl(N));this.K.push(X)}this.show()}}; M7.prototype.show=function(){this.K.forEach(function(J){J.show()}); qj.prototype.show.call(this)}; M7.prototype.clear=function(){this.hide()}; M7.prototype.hide=function(){this.K.forEach(function(J){J.hide()}); qj.prototype.hide.call(this)};g.M(KU,qj);KU.prototype.init=function(J,R){qj.prototype.init.call(this,J,R,{});var N,C;(J=((C=z5(((N=R.image)==null?void 0:N.sources)||[]))==null?void 0:C.url)||"")&&J.length?(N=this.qp("ytp-image-background-image"),g.Lz(N,"backgroundImage","url("+J+")"),R.blurLevel!==void 0&&g.Lz(N,"filter","blur("+R.blurLevel+"px)"),R.gradient!==void 0&&(R=new g.c({C:"div",CC:["ytp-image-background--gradient-vertical"]}),g.P(this,R),R.IB(this.element)),this.show()):g.yD(Error("Failed to get imageUrl in ImageBackground."))}; KU.prototype.clear=function(){this.hide()};g.M(QQ_,Lr);g.T=QQ_.prototype;g.T.init=function(J,R){Lr.prototype.init.call(this,J,R,{});g.Lz(this.V,"stroke-dasharray","0 "+this.J);this.show()}; g.T.clear=function(){this.hide()}; g.T.hide=function(){Fp(this);Lr.prototype.hide.call(this)}; g.T.show=function(){IH(this);Lr.prototype.show.call(this)}; g.T.W9=function(){this.hide()}; g.T.fR=function(){if(this.K){var J=this.K.getProgressState();J!=null&&J.current!=null&&g.Lz(this.V,"stroke-dasharray",J.current/J.seekableEnd*this.J+" "+this.J)}};g.M(aO,qj); aO.prototype.init=function(J,R){qj.prototype.init.call(this,J,R,{});if(sQf(R)){this.adAvatar=new vB(this.api,this.layoutId,this.interactionLoggingClientData,this.yO);g.P(this,this.adAvatar);this.adAvatar.IB(this.qp("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(Mj("ad-avatar"),g.z(R.adAvatar,DPL));this.headline=new yZ(this.api,this.layoutId,this.interactionLoggingClientData,this.yO);g.P(this,this.headline);this.headline.IB(this.qp("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(Mj("ad-simple-attributed-string"),new hl(R.headline));if(J=g.z(R.adDetailsLine,zAd))this.detailsLine=new M7(this.api,this.layoutId,this.interactionLoggingClientData,this.yO),g.P(this,this.detailsLine),this.detailsLine.IB(this.qp("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(Mj("ad-details-line"),J);this.adButton=new WB(this.api,this.layoutId,this.interactionLoggingClientData,this.yO);g.P(this,this.adButton);this.adButton.IB(this.qp("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container")); this.adButton.init(Mj("ad-button"),g.z(R.adButton,nU));J=this.api.T("disable_ad_preview_for_instream_ads");this.adBadge=new G8(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,J);g.P(this,this.adBadge);this.adBadge.IB(this.Z);this.adBadge.init(Mj("ad-badge"),g.z(R.adBadge,Ql));this.adInfoButton=new vF(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.element,void 0,J);g.P(this,this.adInfoButton);this.adInfoButton.IB(this.Z);this.adInfoButton.init(Mj("ad-info-hover-text-button"), g.z(R.adInfoRenderer,yq),this.macros);if(J=g.z(R.skipAdButton,tZf))this.skipAdButton=new Sp(this.api,this.layoutId,this.interactionLoggingClientData,this.yO),g.P(this,this.skipAdButton),this.skipAdButton.IB(this.element),this.skipAdButton.init(Mj("skip-button"),J);this.J=new PF(R.durationMilliseconds);g.P(this,this.J);if(J=g.z(R.countdownViewModel,JJL))this.K=new QQ_(this.api,this.layoutId,this.interactionLoggingClientData,this.yO,this.J),g.P(this,this.K),this.K.IB(this.qp("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")), this.K.init(Mj("timed-pie-countdown"),J);if(R=g.z(R.imageBackground,cjP))this.imageBackground=new KU(this.api,this.layoutId,this.interactionLoggingClientData,this.yO),g.P(this,this.imageBackground),this.imageBackground.IB(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(Mj("image-background"),R);this.show();this.element.focus()}}; aO.prototype.clear=function(){g.pI(this.V);this.hide()}; aO.prototype.show=function(){nEa(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();qj.prototype.show.call(this)}; aO.prototype.hide=function(){nEa(!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.K&&this.K.hide();this.imageBackground&&this.imageBackground.hide();qj.prototype.hide.call(this)};var Fk9="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.M(DG,fr); DG.prototype.Z=function(J){var R=J.id,N=J.content,C=N.componentType;if(!Fk9.includes(C))switch(J.actionType){case 1:J=this.api;var X=this.yO,u=N.layoutId,f=N.interactionLoggingClientData,H=N instanceof kP?N.yT:!1,k=N instanceof kP||N instanceof pr?N.Er:!1;f=f===void 0?{}:f;H=H===void 0?!1:H;k=k===void 0?!1:k;switch(C){case "invideo-overlay":J=new P22(J,u,f,X);break;case "player-overlay":J=new R_(J,u,f,X,new lp(J),k);break;case "player-overlay-layout":J=new IO(J,u,f,X,new lp(J));break;case "survey":J= new $f(J,u,f,X);break;case "ad-action-interstitial":J=new VSB(J,u,f,X,H,k);break;case "video-interstitial-buttoned-centered":J=new aO(J,u,f,X);break;case "survey-interstitial":J=new HB(J,u,f,X);break;case "ad-message":J=new bin(J,u,f,X,new lp(J,1));break;case "player-underlay":J=new xpf(J,u,f,X);break;case "display-underlay-text-grid-cards":J=new a78(J,u,f,X,new lp(J));break;default:J=null}if(!J){g.G$(Error("No UI component returned from ComponentFactory for type: "+C));break}g.qs(this.J,R)?g.G$(Error("Ad UI component already registered: "+ R)):this.J[R]=J;J.bind(N);N instanceof $P?this.V?this.V.append(J.gP):g.yD(Error("Underlay view was not created but UnderlayRenderer was created")):this.U.append(J.gP);break;case 2:R=BYK(this,J);if(R==null)break;R.bind(N);break;case 3:N=BYK(this,J),N!=null&&(g.XV(N),g.qs(this.J,R)?(N=this.J,R in N&&delete N[R]):g.G$(Error("Ad UI component does not exist: "+R)))}}; DG.prototype.Fk=function(){g.iP(Object.values(this.J));this.J={};fr.prototype.Fk.call(this)};g.M(O28,g.Sx);g.T=O28.prototype;g.T.create=function(){try{Z2a(this),this.load(),this.created=!0,Z2a(this)}catch(J){d0(J instanceof Error?J:String(J))}}; g.T.load=function(){try{Akf(this)}finally{qa(RO(this.K).YP)&&this.player.aT("ad",1)}}; g.T.destroy=function(){var J=this.player.getVideoData(1);this.K.K.xk.zM(J&&J.clientPlaybackNonce||"");this.unload();this.created=!1}; g.T.unload=function(){g.Sx.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(R){d0(R instanceof Error?R:String(R))}if(this.J!=null){var J=this.J;this.J=null;J.dispose()}this.V.reset()}; g.T.d4=function(){return!1}; g.T.getAdState=function(){return-1}; g.T.getOptions=function(){return Object.values(I2l)}; g.T.gX=function(J,R){R=R===void 0?{}:R;switch(J){case "replaceUrlMacros":return J=R,J.url?(R=ybf(this.player),Object.assign(R,J.UIC),J=g.r5(J.url,R)):J=null,J;case "onAboutThisAdPopupClosed":this.pm(R);break;case "executeCommand":J=R;J.command&&J.layoutId&&this.executeCommand(J);break;default:return null}}; g.T.Ar=function(J){var R;return!((R=this.K.K.XV)==null||!R.get().Ar(J))}; g.T.pm=function(J){J.isMuted&&qKf(RO(this.K).X_,RO(this.K).FZ,J.layoutId);this.uG&&this.uG.pm()}; g.T.executeCommand=function(J){RO(this.K).yO.executeCommand(J.command,J.layoutId)};g.VE("yt.player.Application.create",g.J5.create);g.VE("yt.player.Application.createAlternate",g.J5.create);feE(ed(),LkU);var EGU=g.gY("ytcsi.tick");EGU&&EGU("pe");g.WY("ad",O28);g.M(g.OM,g.l);g.OM.prototype.start=function(J,R,N){this.config={from:J,to:R,duration:N,startTime:(0,g.g9)()};this.next()}; g.OM.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.OM.prototype.next=function(){if(this.config){var J=this.config,R=J.from,N=J.to,C=J.duration;J=J.startTime;var X=(0,g.g9)()-J;J=this.K;C=FyB(J,X/C);if(C==0)J=J.V;else if(C==1)J=J.Z;else{X=EF(J.V,J.y1,C);var u=EF(J.y1,J.y2,C);J=EF(J.y2,J.Z,C);X=EF(X,u,C);u=EF(u,J,C);J=EF(X,u,C)}J=g.I4(J,0,1);this.callback(R+(N-R)*J);J<1&&this.delay.start()}};g.M(g.ZG,g.c);g.T=g.ZG.prototype;g.T.hasSuggestions=function(){return this.suggestionData.length>0}; g.T.M3=function(){this.K&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.T.show=function(){g.c.prototype.show.call(this);gEa(this)}; g.T.Yf=function(){this.K&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.T.M2=function(){this.NR(this.api.jQ().getPlayerSize())}; g.T.NR=function(J){var R=this.api.Yv()?.5625:16/9,N=this.api.Kx();J=J.width-(N?112:58);N=Math.ceil(J/(N?320:192));var C=(J-N*8)/N;R=Math.floor(C/R);for(var X=g.K(this.J),u=X.next();!u.done;u=X.next())u=u.value.qp("ytp-suggestion-image"),u.style.width=C+"px",u.style.height=R+"px";this.suggestions.element.style.height=R+"px";this.Z=C;this.X=R;this.containerWidth=J;this.columns=N;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.dM(this)}; g.T.onVideoDataChange=function(){var J=this.api.N(),R=this.api.getVideoData();this.U=R.wL?!1:J.Z;this.suggestionData=R.suggestions?g.IM(R.suggestions,function(N){return N&&!N.playlistId}):[]; pgU(this);R.wL?this.title.update({title:g.rN("Mais v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:R.author})}):this.title.update({title:this.api.Yv()?"Mais Shorts":"Mais v\u00eddeos"})}; g.T.scrollTo=function(J){J=g.I4(J,this.containerWidth-this.suggestionData.length*(this.Z+8),0);this.S.start(this.scrollPosition,J,1E3);this.scrollPosition=J;g.dM(this);gEa(this)};})(_yt_player);