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). */ /* Copyright 2015-present Dan Abramov SPDX-License-Identifier: MIT */ 'use strict';var Z=["G","C","call","push","indexOf","1970-01-01T10:45:07.000+10:45","scheme","now","1969-12-31T21:30:10.000-02:30","Xl","https://local","://","","length","V","get","/videoplayback","W","r","fromCharCode","path","1970-01-01T03:45:11.000+03:45","pop","set","J","assign","{];{/[","startsWith","youtube.player.web_20260208_10_RC00","fJ","\\.googlevideo\\.com$","match","url","signatureCipher","slice","f6","split","&","a1.googlevideo.com","local","forEach","mn","/api/manifest","http://local", "toString","splice","1969-12-31T16:01:07.000-08:00",'/};["',"cmo=pf","fvip","rr","undefined","unshift","fallback_count","join","=","s","redirector.googlevideo.com","n","1","/","Dw",",","/initplayback","www.youtube.com","//","1970-01-01T04:15:02.000+04:15","XR","%3D","index.m3u8","playerfallback","BV","file","t9","reverse",',["";}',"clone","Untrusted URL","rr?[1-9].*\\.c\\.youtube\\.com$","cmo=td","/file/index.m3u8","\\.a1\\.googlevideo\\.com$","replace","1969-12-31T19:15:04.000-04:45","RhJmGaGTh1IjKAB89_-_w8_", "1969-12-31T19:15:16.000-04:45","sp","1970-01-01T02:45:01.000+02:45","cmo"],eC,tY,H5,r6,ngm,w6,Rd,pw,c5,L55,Fm,m5,NH,g6,Ek,dHG,tCm,sk,yG,Id,r2,HwO,ZV,kOH,pF,KF,C00,zL,w55,vgk,bwd,ZwO,Vg,uH,me,UM,SB,Qg,XG,qk6,yg,PB,Ix,zMg,$e,fE,nE,r0,CE,vE,bP,Zw,R2,KE,qb,a2,zc,pE,al0,p5k,cE,cYH,jU,o2,V2,U0,Yk5,g0,SU,Q2,Dw,Js,Gc,WE,s0,XL,ogg,I2,VCg,$W,fH,ey,Bh,rr,LH,tj,Hh,k2,CH,ggl,Skw,wr,vh,bN,Zm,RA,KH,qo,ze,Qd5,jy,lN,m$,Ow6,UE,DHw,T6l,xHM,MCO,Qa,Te,sE,Xl,Ph,ya,$2,eA,fC,iN,dw,Sy,ww,CC,bc,vN,gr,RY,KC,qV,sdY,aY,pC,cN, YC,Ab,jA,Om,V_,lc,NV,gw,Q_,X5m,Jb,DS,MV,SA,yYl,XO,y_,PN,IY,$C,fR,ic,BD,nR,rP,fVM,LR,HD,wP,tG,B2G,ne5,LeC,vD,tB6,bW,ZO,HF5,KR,RU,aU,pR,wB0,cD,lW,uW,Vh,AG,bFG,UN,SW,Qh,T$,EN,DO,Ma,G$,sN,X_,yh,PD,$_,fu,nu,r8,d8,t5,Hn,Lu,k6,Cu,w8,vn,bE,RW,Ku,qZ,zd,aW,qMM,lE,Vv,j2,cn,Oj,oW,NZ,h5,zIH,g8,J5,MZ,pB0,Gd,x6,Wn,yv,Pn,$6,iE,cu0,Au5,Br,nr,Lr,rj,oew,k1,Hr,VBG,wj,uGO,Z3,vr,RQ,Kr,q7,zp,bw,pr,aQ,Y1,cr,lw,VS,A6,Ol,uw,Fy,m7,Ul,N7,h6,D3,J6,M7,gj,El,Sx,x1,Wr,sl,Xy,Pr,IQ,$1,iw,ft,oQ,em,nt,rf,Lt,t8,HU,kl,Ct,wf,bh,RD,Kt, qS,z7,aD,pt,cU,Zg,Yl,A8,F8,uh,m2,Ui,NS,Sm,Ei,QN,J8,xl,WU,si,X8,yN,PU,ID,$l,ih,fO,ev,BX,nO,dp,HX,wp,vX,tR,Zd,KO,qn,gem,hI0,pO,YY,AR,OO,SM5,o1,VK,lT,uT,mD,UO,Sv,EO,QK,TP,Dd,JR,Mn,GP,xY,sO,Xa,yK,$Y,iT,eI,nY,LY,de,tD,HT,k0,CY,Ju0,bU,Ze,KY,qf,GLw,zD,pY,Y0,xT6,lU,uU,FP,Uz,Nf,hD,sx6,XBk,ge,SI,Ez,TD,JD,Mf,GD,x0,De,WT,PHG,sz,IVk,XP,yX,eug,B0G,ej,B9,nn,rO,Ln,dO,td,H9,kb,wO,Cn,nWg,LBC,db5,HEG,bC,Zr,CR,Kn,kcm,CPk,wEM,vWl,aa,pn,c9,bEl,ZEl,Yb,Ad,OZ,oa,V8,lC,Ruw,uC,Ff,mr,KBM,UZ,q0O,N_,aw5,gO,EZ,pEd,Tm,VU5,Y0C,AsC, j25,OE6,oWg,Dr,Jd,lw5,Gm,xb,uLg,FBC,mbM,W9,Ub5,huk,Xf,sZ,gWw,y8,S0k,$b,fd,Ia,EW5,P9,nd,T0C,DbG,tV,MUH,Gcd,xbG,wg,ZD,vs,Cd,Rn,Kd,WBG,zC,XEO,an,cs,Yx,ys0,AV,PPl,iEd,rjG,Vy,L$g,on,Fg,U1,jw,Nx,doO,mX,tyg,Sw,TC,E1,CN0,whC,v2d,bHY,ZHO,kP,Cg,wV,RrY,K$G,bi,Z1,qE0,am6,qD,phw,zW,aK,cj0,li,ui,jA5,Fj,OHk,mR,Uy,ND,h4,gV,Ss,o2G,VyC,J4,Wi,GW,lmC,F$0,Pi,mod,IK,$P,Nrm,hrg,UoH,g2G,E2C,QAC,Trk,AjM,YP,YEG,ii,ek,nI,Jjg,rK,LI,to,wK,My0,H7,KI,qp,Z6,Geg,v7,CI,c7,jk,xo5,W$G,FA,UY,ho,sAl,T_,Jo,QP,sY,l5,gK,yjG,xc,Mp,G_,XA, Xh5,W7,$c,f$,L$,PNC,Hp,w5,vp,$ow,br,Rq,K$,fSl,zB,aq,egl,j8,YX,lr,AM,Vp,hM,Ld0,dV5,HCg,Nd,Qp,ktC,Dy,Ccm,xX,JM,wNg,vC5,bCH,ZCk,RgC,XK,Iq,zgg,cb5,Ymd,Ab5,jYl,pNw,aSM,ir,nv,fv,oCg,Lv,dF,tw,kp,Cv,lSY,uOg,Fd5,NwG,mV5,vQ,bm,Rc,ZW,hg5,ac,SmM,qE,gCY,Yp,cQ,TwH,DVH,Jb0,MAM,Aw,OA,WdY,sYC,oc,um,FF,Vd,lm,ISg,UA,mc,hw,gF,EA,Su,$VM,iC6,fOg,DW,ME,xp,n_G,GI,XF,PQ,yd,eVC,Zj,HR6,k$O,CWY,wDH,Pp,R0,KX,q8,z6,zVH,cGM,AGm,jUC,OW,o_m,VC,ll,lOM,mJ,u_w,UW,hg,gA,EW,QC,M8,xi,WW,sW,fP,F3O,BZ,nP,Uam,rb,LP,th,E_C,NPg,ZL,RO,KP,q9, zK,aO,pP,cZ,G$G,jh,Oe,oO,Vz,xaY,Fo,mh,Ue,N9,hh,gb,Ee,Qz,TK,DL,M9,GK,x4,WZ,se,Xo,yz,PZ,IO,$4,ip,f5,eJ,Be,C5,wo,ve,b1,W35,ZJ,K5,qI,z2,YF,Ap,jJ,Og,l1,u1,Ft,sU5,XDH,mq,yGd,PWl,NI,DJ,Jp,$a6,iR5,xF,sg,Xt,Pe,y3,$F,i1,eZ,Bb,eX5,dZ,Hb,CN,C$,wZ,ZR,R6,bs,KN,qg,a6,pN,zn,t7,cb,A7,t2m,OV,Ng,h7,m0,gZ,SZ,kdC,Tn,CEM,DR,J7,v65,Gn,buG,Zuw,RX6,HuO,Wb,zXm,axG,yY,Pb,B1,ns,pn0,rx,Ls,dx,tl,kB,wx,v1,c55,bz,Zs,A50,qy,aB,ps,c1,YB,Al,j4,Ov,oB,VT,Ou6,lz,V20,mZO,upg,Fl0,UZd,hXk,SjC,E6Y,g6C,T8m,hl,gx,QT,DZd,J5O,Ev,M25,Gd5,y5w, Xnd,My,Gw,xB,W1,PEw,fi,Ixg,$ZM,Li,dS,tn,f3k,eBw,n15,L7Y,d70,Ci,RN,qM,co,YI,An,jY,lo,HrG,kpH,CwC,wr5,mC,v15,brM,NM,hn,RBO,gS,Qe,a3k,c65,Ylk,A6G,Or0,o1G,zBw,VxO,D4,F7H,m7d,xI,U75,Njw,XD,hB5,g1l,SlM,E1G,io,QQY,Tjd,D7H,J66,Mx5,GpO,k_,x7w,W7C,Xrd,n8,Pw0,I36,$7H,irC,fg5,ekw,L8,dq,tT,HL,r8w,kn,tmM,dSw,Bfg,HtC,L2M,nll,k76,Chl,wUM,vl6,bt5,Zt5,Rk5,K2C,qi0,YiG,zkC,K8,qB,aF,OtH,lgO,Vmw,zY,Yn,u8O,Oq,F25,USm,Fb,mSH,DSH,NfY,mx,J8G,Uq,xSC,Mmd,G7C,W2k,hT,XU5,y8k,PhG,Igl,$Sd,it0,fdO,sDY,Bpw,nYd,rRY,HO6,tvY,LD5,vYG, TY,bOd,ZOl,R7C,KDl,MB,z7C,adl,GY,cRO,ARM,YO0,j1Y,Vvw,OOw,e$,rQ,nB,ldO,BR,LB,uaC,t_,Unm,mnm,CB,kA,vR,ZC,RH,qC,NpG,aH,SOg,cR,YA,EYl,Q1k,DnM,xnG,JRl,Mv5,GPM,A_,oH,j$,XXm,mZ,F$,uR,NC,Idg,n00,Lbk,Be5,eCC,rD5,S$,J_,CUg,dfg,tIw,HY0,PT0,aem,PR,zCk,o0Y,qzm,gQ,f0,Gl,X$,pTm,DC,iOl,$nO,feO,Qb,Kbk,L0,g0m,hC0,C0,E0m,QI5,wN,TeO,Df5,JDC,GDO,xf5,ZE,sIM,Ro,XTg,yDw,Iek,$fY,qG,frd,BO6,zj,nb0,ao,p0,c6,rd6,CCM,VL,Fd,KrO,ar0,YZl,AdC,jal,MG,Onw,ob0,DE,olk,QL,J$,Tj,UR,P6,Io,ie,fS,eL,lrg,Bl,ufM,FrM,LS,U_0,NOg,hSl,gbC,kU,SZk, Ebg,Qa0,CS,TOk,D_k,JdO,w_,Mj5,GmG,vl,x_d,saY,bA,X9C,ydO,PCg,Zk,R5,KS,IrO,$_M,ink,fDk,eiw,Bg6,nxH,pS,cl,LX6,twM,AX,kC0,Hd0,Of,CM0,o5,wsY,RiC,vx0,bdG,Zd6,q1C,aDC,cV6,Odl,AVO,jn6,lA,uA,FY,mA,lD0,ugM,FXg,Uf,NL,hX,Ngk,UxG,hi6,gxw,QQ,S1M,Qnm,GT,xU,PMG,IDm,$xm,idw,eZw,BVC,r4g,LRg,eH,kWl,CiO,LK,vPG,tQ,ZgM,HJ,k$,CK,RZm,KRd,wH,bgH,vJ,bB,zZG,qyG,Z7,A40,jKl,KK,zR,Ogg,pK,cJ,oPG,OX,jH,Vsd,Y$,FRH,mDm,UDg,NVl,hZ6,gP0,Sy6,uB,AQ,uj0,DD5,FW,Msd,GWO,gH,xD5,UX,NJ,WR0,SH,XiY,Pil,EX,QF,I1Y,$Dl,igw,f6m,e0d,tkl,D7,LU6,ncG, BKd,ro6,k_Y,w76,vc5,MJ,R0H,rT,l6d,LJ,dT,FUG,NK0,HK,k3,h05,vK,CJ,SYk,EcM,QvY,TKk,DpO,Jol,wT,MkM,svg,yow,I65,$p0,X75,fyC,elG,rMl,dd5,nXd,t8m,kBm,Zi,wpl,CrO,RM,b$d,KJ,Knw,qaC,q6,zl6,pJ,pp5,aM,cK,Y3,YaC,jG,jq5,AH,O$H,oM,oXm,OF,lL,uL,EF,TU,lyg,x3,uKY,Fn5,mdk,Udd,V85,hlY,Ql,EXm,QqM,T5G,Dd5,N5d,UF,F4,hH,JMg,Di,SG,my,$3,M6,gT,sF,X4,GBO,xdm,iL,W,yM5,fa,e1,PrY,i$5,fWM,rE,La,BFw,Dx,dEg,Hvl,CmH,Td,t0,wQ6,vpG,bvG,vP,Rem,Kcm,Zvm,qAw,Ka,zo,pa,cP,Yk,A0,ze0,j1,qr,oT,V0,ly,uy,FN,pQG,cw5,YAl,AwC,jcY,OvG,mE,opC,VuO, uFg,UI,FcO,mEk,UEk,NFC,hed,gpk,SAl,Nr,EpM,Q0,To,Df,xEk,Mr,Go,xk,sI,Wc6,XN,y0,IT,scG,$k,iy,PmC,$Ew,ivl,IWl,Lf,Cf,tk,w$,fjm,BAC,eTm,eb,niw,rgC,LJM,d8Y,nf,Cll,wWG,vi6,k6k,HXg,CTk,tVM,bXw,R7,XQ0,ZXm,yw5,RTm,KJ0,qWC,pWM,zTG,q2,ajM,cgm,YWd,OXg,Agd,j00,VVm,oi0,ljm,u30,Y5,FJk,NAg,m8w,hT5,U85,giw,SWm,Ei5,Q05,TAl,D8g,Jgk,MVm,G6g,x8G,WJ5,s06,O7,XWG,ygk,PlO,IjY,$80,iX5,fLM,e$0,n4w,lG,uG,FH,m4,U7,Sb,rhM,E7,Lhw,d9w,thM,HPO,kK0,M2,CpM,GF,x5,Wy,wZd,s7,XH,y7,Py,I7,$5,v40,iG,fh,bP5,ZPG,Khg,z$5,Bu,rs,aL5,pZk,chY,YeY, Lh,AhG,ds,ti,Hu,Ch,ws,vu,bx,Zc,Kh,qj,zS,o45,VhC,lLm,uo5,m90,U95,NbO,h$5,g4G,Sel,Ys,QO0,D9k,Jh6,Mhd,OP,Ai,jS,VM,GKw,x9G,ow,Wh5,XZ0,Ppl,mI,$9G,fJC,iP5,ecG,Bow,nF5,Nj,hi,gs,rpw,Lqd,dI0,tJ5,H50,k2k,C15,weC,vFM,EP,b5w,Z5d,QM,Dc,RcY,Mj,Kq6,qgk,zcM,aJk,peC,GS,cpw,Iw,$s,ApG,ix,dk,eD,k9,lJg,hcO,utg,gFl,t4M,dyH,Cz5,V4H,Fc,Al5,F9C,Nx0,gB6,EBd,DyY,Jld,GwC,W95,X1H,sB0,is5,Pz5,ylY,f4g,rnk,LCk,dMw,tYY,cV,Hik,CoY,kt,C6,a4G,poH,zL5,cng,by,G2l,wd,v$,bq,ZK,AnG,jNG,Oi0,ux,K6,oI0,VY0,qw,uD0,FCH,l4G,mMY,UMk,ph,NSM,hL5, ypO,gIg,Zf,s$,na,EIk,QNd,Ugg,MZl,jt,W0l,QB6,M45,eLm,GqM,rd,L6,IZ,c$,Pf,Bf,f6,TSk,VZY,BZm,HN5,kn6,vDl,K06,pbM,lRd,gD0,TZG,Dgd,Gnk,xg5,lsw,myM,hbG,Sv5,Txw,nIC,KCl,Y9,rTG,Pom,Os,I45,Yt,Is6,eE,$y5,LxH,N6,GU,JH,gXC,tll,lq,H86,ma,Us,Nw,kYG,COG,gd,hS,SE,wLC,Es,Qx,vnM,T0,RFM,Z8l,b8O,DK,qq5,P$,zFY,auC,pLG,cTg,AT5,jFM,on6,lul,ubY,Fxl,iq,fe,eo,BA,mBO,UBO,ne,rR,Le,Nqd,hFG,tf,wR,vA,RJ,Hy,k5,Kf,a7,Ak,jb,pf,cy,qm,Ke,gn5,ff,By,r$,d$,vy,Z0,bG,Eng,QFk,cA,JT0,Mlm,Yq,jo,xBm,GYl,Wxm,Ou,oJ,lg,FC,mW,XL5,yTg,Iud,Uu,gR,i8C, Nm,fCk,e4k,POw,$BY,BQk,nA0,r_G,dCd,LZO,HBk,CRY,wRM,klO,vAG,bB0,R4H,qcC,z4k,Mm,Gy,aCG,pRw,xq,c_5,WA,Ycl,A_6,jHY,XC,OBM,oAw,PA,IJ,lCC,u$6,xxG,mCH,e3,nl,UCw,Scw,y_6,PRO,Ht,xC0,QHm,XR5,DCm,wJ,Ll,EAd,gAH,h4G,NQY,Cl,dJ,ky,iB5,bn,ZB,Rm,Kl,qW,zN,fE5,am,pl,BNO,nvg,Yy,Oo,dGw,Ar,j3,un,om,kjM,CeC,w6w,Uo,RKk,KjH,Qw,qR6,zKO,hr,gJ,S3,Eo,TN,DB,Jr,MW,GN,aEk,Wt,p6M,so,XI,YRk,c$w,A$H,joY,yw,Pt,Im,ovw,$y,QoM,Bm,nz,TNd,rG,Lz,ta,Hm,kG,DG5,J$C,Mak,Cz,Gjl,xGG,wG,vm,Wj5,soO,bJ,ZA,X6M,y$G,PeM,IEM,$Gl,Kz,qQ,za,i0O,fkk,eR5, pz,cm,B_d,nUk,rXd,LA5,dLY,tL0,HSd,kTO,Aa,CAO,wlM,vUl,uJ,qf5,zRg,ak6,UQ,NQ,cXd,YfY,AX0,j5H,ha,oUG,VLM,gG,FAk,ULg,N_m,EQ,Q56,T_d,DLO,sQ,JX5,MLO,xLw,rJ,WZM,Qj,GT5,Xlk,yXM,PAM,Ikg,$Ld,f70,WAO,Xn,eA5,yj,Pm,Ir,BHm,n$M,iJ,fT,tHm,ru,HKY,kR5,LT,DA,kL,wJ0,ZK5,ZH,TQM,sHm,RP,KT,qs,zf,aP,pT,Kml,uD,pJO,cQm,qX5,zAg,a7w,OKw,YXM,AQY,jR5,UC,o$C,VH0,J_g,Glw,$CY,vt,uW6,Ns,Fm5,UJH,l76,NHd,g$5,E$M,hAH,QRM,THl,DJk,GRd,MH5,Wm5,sRC,XJY,Tf,yQl,PK,PB5,Gf,xL,X5,yZ,mt,Pk,$L,iD,f3,ec,iKC,n3,fi0,bK5,BTw,kj,bK,rHY,fz,Zo,HJ5,Rp, CLH,wKG,v3Y,K3,bJG,ZJH,aiM,z2M,R2k,qFH,Ky6,jMm,OJg,VGm,li5,Fym,g3C,Yj,Aq,TT6,jc,Oh,JH6,MG5,x6k,WyG,sMg,PL6,IiO,$6m,iJd,BEO,nk6,LE6,drM,Ha0,ko6,wPl,Za6,KEm,mL,Uh,qIk,pPG,Jq,lfg,jT5,FE5,mrG,NE6,h9g,Urk,GH,Mi,SI5,Ekw,QTm,WS,GUl,lK,Cy5,PS,y0m,L2,B$0,L45,rkG,tb5,Hf0,kFk,CGO,wym,v5H,bf0,k7,GoM,J0d,a0k,w7,vY,bd,ZX,Rl,ckG,Y7H,Ofw,p2,zk,AkM,qU,al,tA,HY,Y7,Vbm,AA,j_,l0m,F4O,m2H,hp5,Ox,uHM,ol,N$k,ld,S7G,E5C,ud,sTO,Ux,Ex,QW,DX,JVk,D25,Jkd,JA,GFd,MU,Gk,x2k,Xh,x7,sx,s76,yVw,$2Y,ifd,cS,X,PY,Il,fcw,e5,Bsw,nsO,riO, L_,dj6,dL,wu0,vsG,HF,bhl,KIl,p_,cF,Yr,zaY,AK,oy,lS,uS,GR,Fw,Ai6,acd,jwG,Oh6,osY,hK,gL,VSm,lc6,uqw,FIl,mjw,Ujk,TJ,Er,S5,NsO,QD,D5,hak,gs5,SPM,QwH,Tsw,Djg,MSM,GSk,xjG,WIM,XuG,JK,yiw,GJ,Px5,IcY,WF,sr,Xw,fPM,$j5,enY,Bkk,n9k,ihd,dzY,tDM,kgO,n9,CXm,Bj,wV5,L9,bj6,Zjm,RnY,tJ,Kwk,qww,Hj,pVM,cc5,A0G,V1C,YwH,km,C9,wz,VDM,lPd,vj,bF,Zp,uz0,FwC,mzO,Uz0,hnC,RV,GgM,PXk,C4k,Ym,AJ,wfg,vuM,ZL6,Rv5,KKw,q$g,zvg,jN,aY0,pfd,cZ5,oV,AZ5,oug,uF,VV,Y$d,OLw,Fu,VtH,mP,S$m,Euw,QZm,TYY,D3l,U8,NO,JZ6,hJ,SN,WKk,sZ0,P4M,IYY,QV,$30, iL0,fKH,TG,eUC,gz,Bdw,G5m,Xf5,Mtl,yZm,JJ,ntg,rSm,La0,dww,tE0,MO,H6w,GG,s8,Xu,yV,xm,k0G,w$O,vtd,Cqm,b65,Z6G,Kag,qsC,Pj,zUm,aKC,cSg,IV,YsM,AS0,$m,iF,fU,mw6,FaM,Nd5,lK6,rcg,hUH,u0w,VEg,j45,O60,otw,Ss5,EtG,gtG,nU,DwC,dM,HjY,Iy,$r,f9,eN,MEk,wM,rM,G0G,vg,xwg,bb,Wak,s4w,Zh,kK,CU,RC,LU,ySm,KU,tE,q1,z8,aC,Hg,JS6,X$g,pU,IKg,cg,Pqm,$wG,i6m,f2G,ezk,BRH,rf0,YK,x3O,AE,jr,znw,aPY,LWg,dmm,oC,hE,Cgw,to5,HeC,Vc,ub,be6,Zek,Rzk,KWC,quG,zzY,a2g,Sr,pAw,E3,cfd,Qc,Af5,Yum,OeH,oql,jJ5,Dh,l2G,uC5,FW5,Um0,NRl,gq5,M1,JE,hzG, Eqm,xK,TRw,Wg,QJk,G8,s3,XV,MoM,JfO,$K,yc,n7,WW6,I25,XAM,Pg0,yfw,L7,ieH,fBC,e8k,BJw,nyk,rr5,LFH,dWM,tI,t3d,Hld,kNG,wtO,HG,CnH,Jg,vyM,dD,ZlY,vG,aB5,ArO,jmm,OlM,z8g,K7,zv,Rt,Z9,oym,at,ptg,bY,qq,crm,R8d,C7,lB6,KF6,uIm,FFH,V3G,mWG,UWm,p7,NJY,gyl,So5,h8M,Eyg,QmM,DWO,Jrk,xWH,M30,GNm,cG,WF5,sm0,XtC,Pnl,Yf,AI,IBH,$Wl,ilY,fAw,jO,e1d,BGM,nG5,raC,L6M,dQ5,tfH,HzY,kaY,CJY,wm6,vGC,bzw,R15,K6m,qQG,VE,O_,lY,FS,pmm,U_,caw,YQG,Aag,mT,jrg,aAk,gD,oGk,lAw,unC,E_,VfY,QE,OzY,iS,rz,lF,wAH,gM,N1,lb,FV,U3,Tv,mQ5,Yod,kf,Mq, Gv,UQH,NGk,h10,xf,gG6,SQM,WG,F6m,EGd,Qrm,TGm,DQM,s_,MfH,xQk,W6w,PG,PJM,srg,Xmw,yE,Q46,XS,JaY,IAm,$Q0,iz5,fHO,GaC,$f,eyG,BuG,nLY,rFw,tKM,HT5,kfk,fq,CD6,bTk,eT,pkm,ZTC,qC6,aHC,oLd,VK6,Bw,zyl,rl,nq,lHm,u5w,AF5,RyY,wkw,Ftm,ms5,Us5,Nud,hyY,SCC,dl,gL5,QP5,ELm,DsG,Tul,Hw,tt,JF5,MKG,kQ,xsm,Wt6,GfC,XkO,yF5,PDH,IHY,$sd,wl,foY,eDO,BCl,vw,njl,rq5,bu,LLg,diC,H3d,RG,Kq,qK,aG,kH6,pq,zu,tcY,CKC,wSC,vjk,b3M,Z3Y,RDG,KL5,qh5,YQ,aoC,pS5,cq0,At,YhH,Aql,jpY,O3M,p6,sN5,jT,loG,Od,oG,uhm,FLC,V$,mil,Uik,lu,NCw,z1w,cw,ojk, hDl,uu,TC6,Di0,Jq5,Mcd,GHw,xiM,FX,gl,e5d,B7O,Ed,Q$,n75,fXg,D_,rAO,Jt,LiC,Gu,kkk,CdG,xQ,b2Y,sd,y$,dU6,Pw,Z2k,IG,MK,R5G,KiG,H26,qxm,$Q,z5g,t_m,XX,pY5,cAC,aXd,Yx6,iu,fx,uQm,o7m,Bx,V_g,jlw,FiG,AA5,N75,mUk,e7,h5G,O2w,SxH,Qlk,bl5,D9,yaG,DUY,Ww,dc,Lx,Hx,Cx,wc,JAk,vx,Wi5,slg,Kx,bj,GkH,ZZ,XYm,kV,zh,Re,qu,nx,t2,nrd,M_k,rc,rK6,YV,T7O,Pd5,dXM,t5H,H_C,CSG,kJH,wF5,eEH,LvM,b_d,Z_d,REY,Kv0,qrk,j7,Ot,zEO,a56,IXl,pFY,oe,cKM,Yr6,AK6,VA,jyO,O_6,lj,or6,V5m,l5C,uwM,mXO,uj,Fv0,Fi,UX5,NLw,hE5,Sr5,ErY,grd,mS,Ut,Nu,h2,QyC, TLk,DXg,JKG,Et,M5H,xXd,Wv6,GJH,sy6,J2,$Xl,Gh,fpY,XFw,yKd,PSg,I5g,Mu,i_O,eWk,nmm,rJO,LP5,Wx,Xi,xV,yA,tNG,H9d,Ie,CF5,Px,wjM,vmY,$V,Z95,KPk,q8d,zWl,ij,ap0,pj5,cJ5,fQ,e9,Y8g,AJY,omM,lpg,uuO,FP5,mOw,UOY,Nz6,hWO,gmg,Em0,S8H,rU,LQ,Tz6,dU,nQ,QVm,tW,GG0,WPd,wU,b_,$O5,CQ,sV5,fh5,Ipd,kZ,vO,Xj0,eYH,ZI,BM5,R_,nKH,KQ,rE5,Lkd,d1g,a_,k8H,trd,Cbw,LId,O5,vF,l_,u_,FU,bUC,ZU6,RYk,m_,Nk,hW,ahg,cE6,q35,U5,KkY,AEH,oKH,gU,Vr5,lh6,S9,E5,FkG,OUm,Ti,m1C,Q9,U1H,NMC,JW,gKw,Gi,EKd,QCH,S3l,TMd,D1w,JEO,MrH,s5,XU,y9,WO,G8m,x1C,PO, I_,Wkw,sCm,Xgm,i_,yEg,iUw,fp,f9Y,PbC,$1d,BDG,Bc,nf0,np,rIl,LTO,rW,dqw,tO5,H7G,kvM,CYY,wGl,vfw,b7H,Lp,tL,dW,Z7C,Rtm,KTH,q_g,kH,zt0,a96,pGl,Hc,cIG,Y_6,AIM,Cp,O7l,jtH,wW,vc,of5,VO6,l9H,uSw,FTw,bI,ZG,UqY,Kp,mqg,qv,ND5,zE,as,htY,S_5,Efk,QtO,TDl,gf5,Dqd,JIO,MOH,pp,st0,GvC,WTm,cc,YH,AL,XGC,jz,yI6,I9g,Op,Ra,i7d,f_0,eG0,Bll,nQk,rtC,Lul,dKO,os,VI,tTk,Hqm,ku0,Cuk,ww5,lI,vQd,bqC,RGC,KuG,a_G,Ydk,AtM,Up,Nv,Oq0,oQg,jG5,VTd,hL,gW,Sz,uXO,l_5,UK0,Nlm,hGk,gQk,Ep,QI,EQM,TE,TlY,DG,JtG,Gu5,xKl,xH,Mv,GE,e_k,XwC,yI,Pc,I_k, Wc,sp,XZ,$Kg,iqw,Is,nA,LA,dI,r20,ee,tB,B2,du0,nV6,t75,Bcl,iI,fA,Hx6,LSl,kh5,H2,Cjg,wx5,bx5,kh,ZxG,R_M,CA,wI,KSl,z_w,qtO,aZ0,v2,b8,pxH,Zv,c2C,Yt6,A26,Ru,KA,je0,OxO,qc,oVg,V75,pA,zz,au,lZY,c2,uiG,Yh,AB,OD,FSg,mud,ou,Uum,VU,NcM,h_0,l8,gVm,EVO,StM,QeH,TcY,Dum,J2k,M7w,GhH,xuH,u8,FB,sel,y2O,hB,PjC,$um,gI,ix6,fIw,BU6,eHm,ED,rW5,Tz,QU,L_H,t9m,C_l,wO5,iT0,JB,Mc,Ra5,Dv,vZM,Gz,xh,RHY,uUH,MX,xr,Iu,F_C,v9g,$h,dz,i8,fM,O3,P2,mkm,NUC,hH5,gZ6,S5g,EZG,Q_l,TUC,Dk5,jZG,mk,GiM,HM,xkw,kz,BM,s_g,yWM,CM,P_Y,wi,b2,$kO,ZM, vM,eQG,tN,Rb,rLk,BWG,nH0,di,JWH,KM,nM,M9O,LM,dvH,tzw,HpY,kEY,iQg,IIO,fG5,CI5,wcd,bpM,Yz,AN,Zpw,vHO,qpd,zQ5,aGl,pM,ab,pc6,zr,ql,cM,RQC,cLH,jQ,Ypk,js5,yAl,OpH,oH5,Vz5,FgO,OG,uZO,l2,lGk,ob,mvG,Uvg,NWm,hQ0,gHw,SpG,EHm,Qs5,rL,UG,Nl,SQ,Tr,BF,DM,DvY,JLk,MzY,GEg,JN,Gr,sG,Wgg,XcM,yLl,PId,$vl,fvY,ePH,WM,IGk,Bd,nhC,Xk,Ml,rB6,rX,dcw,L1O,Lm,hN,t3,Hd,kzY,nm,QJ,Ib,yJ,PM,$z,ip6,i2,EG,xz,C8O,TWg,w2g,vhO,gi,vd,eq,bAd,Cm,ZAm,K1C,kw,qD5,bQ,av5,p2G,cBH,YD5,ABO,ju5,OAG,NNk,Zt,ohO,UGd,hK6,TIm,RE,lx,Gzm,xcO,MeC,W1Y,Km,zU, BP,sud,X26,yBG,St,E$,P8k,q4,zs,dd,yf,sSk,O$,kqM,z0,H$,Ivm,$c0,iAk,pm,Bi6,nzO,Yw,A3,rN0,tQY,vwM,bmm,Zmm,Rs0,owG,VqM,iQ,MJH,uTY,F8C,fD,m45,ltO,NXm,hsk,SBg,fw,eM6,flG,kg,nw;eC=function(f){return function(){return fw[f].apply(this,arguments)}}; g.B5=function(f,e){return fw[f]=e}; tY=function(f,e){if(e)for(var B=0;B=this.length))return this[f]}; Rd=function(f,e,B){f instanceof String&&(f=String(f));for(var n=f.length-1;n>=0;n--){var r=f[n];if(e.call(B,r,n,f))return{qf:n,lP:r}}return{qf:-1,lP:void 0}}; g.qH=function(f,e,B){f=f.split(".");B=B||g.Kw;for(var n;f.length&&(n=f.shift());)f.length||e===void 0?B[n]&&B[n]!==Object.prototype[n]?B=B[n]:B=B[n]={}:B[n]=e}; pw=function(f,e){var B=g.zO("CLOSURE_FLAGS");f=B&&B[f];return f!=null?f:e}; g.zO=function(f,e){f=f.split(".");e=e||g.Kw;for(var B=0;B=0;--B)B in n&&e.call(void 0,n[B],B,f)}; g.GO=function(f,e,B){return Array.prototype.filter.call(f,e,B)}; g.xg=function(f,e,B){return Array.prototype.map.call(f,e,B)}; sk=function(f,e,B){return Array.prototype.reduce.call(f,e,B)}; yG=function(f,e){return Array.prototype.some.call(f,e,void 0)}; g.P5=function(f,e,B){return Array.prototype.every.call(f,e,B)}; g.$g=function(f,e,B){e=Id(f,e,B);return e<0?null:typeof f==="string"?f.charAt(e):f[e]}; Id=function(f,e,B){const n=f.length,r=typeof f==="string"?f.split(""):f;for(let L=0;L=0;n--)if(n in r&&e.call(B,r[n],n,f))return n;return-1}; g.eB=function(f,e){return Array.prototype.indexOf.call(f,e,void 0)>=0}; r2=function(f){if(!Array.isArray(f))for(let e=f.length-1;e>=0;e--)delete f[e];f.length=0}; g.d2=function(f,e){e=Array.prototype.indexOf.call(f,e,void 0);let B;(B=e>=0)&&g.LF(f,e);return B}; g.LF=function(f,e){return Array.prototype.splice.call(f,e,1).length==1}; g.tu=function(f,e){e=Id(f,e);e>=0&&g.LF(f,e)}; HwO=function(f,e){let B=0;tCm(f,function(n,r){e.call(void 0,n,r,f)&&g.LF(f,r)&&B++})}; g.HB=function(f){return Array.prototype.concat.apply([],arguments)}; g.ke=function(f){const e=f.length;if(e>0){const B=Array(e);for(let n=0;n>>1);let H;B?H=e.call(void 0,f[t],t,f):H=e(n,f[t]);H>0?r=t+1:(L=t,d=!H)}return d?r:-r-1}; g.cB=function(f,e){f.sort(e||zL)}; C00=function(f,e){const B=zL;g.cB(f,function(n,r){return B(e(n),e(r))})}; g.Ye=function(f,e,B){if(!g.Yg(f)||!g.Yg(e)||f.length!=e.length)return!1;const n=f.length;B=B||w55;for(let r=0;re?1:f{const n=B.event,r=e[n];e.hasOwnProperty(n)?r!==null&&(B.equals(r)||(e[n]=null)):e[n]=B}); HwO(f,B=>e[B.event]===null)}; g.OM=function(f,e,B){for(const n in f)e.call(B,f[n],n,f)}; g.ox=function(f,e,B){const n={};for(const r in f)e.call(B,f[r],r,f)&&(n[r]=f[r]);return n}; Vg=function(f,e){const B={};for(const n in f)B[n]=e.call(void 0,f[n],n,f);return B}; g.lH=function(f,e,B){for(const n in f)if(e.call(B,f[n],n,f))return!0;return!1}; uH=function(f,e){for(const B in f)if(!e.call(void 0,f[B],B,f))return!1;return!0}; g.FG=function(f){for(const e in f)return e}; me=function(f){for(const e in f)return f[e]}; UM=function(f){const e=[];let B=0;for(const n in f)e[B++]=f[n];return e}; g.NT=function(f){const e=[];let B=0;for(const n in f)e[B++]=n;return e}; g.hu=function(f,e){return f!==null&&e in f}; g.g2=function(f,e){for(const B in f)if(f[B]==e)return!0;return!1}; SB=function(f,e){for(const B in f)if(e.call(void 0,f[B],B,f))return B}; Qg=function(f,e){return(e=SB(f,e))&&f[e]}; g.TL=function(f){for(const e in f)return!1;return!0}; g.DV=function(f){for(const e in f)delete f[e]}; g.Ju=function(f,e,B){return f!==null&&e in f?f[e]:B}; g.MT=function(f,e){for(const B in f)if(!(B in e)||f[B]!==e[B])return!1;for(const B in e)if(!(B in f))return!1;return!0}; g.GL=function(f){const e={};for(const B in f)e[B]=f[B];return e}; g.xe=function(f){if(!f||typeof f!=="object")return f;if(typeof f.clone==="function")return f.clone();if(typeof Map!=="undefined"&&f instanceof Map)return new Map(f);if(typeof Set!=="undefined"&&f instanceof Set)return new Set(f);if(f instanceof Date)return new Date(f.getTime());const e=Array.isArray(f)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(f)||f instanceof DataView?{}:new f.constructor(f.length);for(const B in f)e[B]=g.xe(f[B]);return e}; g.sM=function(f,e){let B,n;for(let r=1;rn.C); g.OM(B,(n,r)=>{n=f.J[r]!==void 0?String(f.J[r]):n.C&&n.G!==null?String(n.G):"";n.length>0&&(e[r]=n)},f); return e}; zMg=function(f){f=Ix(f);const e=[];g.OM(f,(B,n)=>{n in Object.prototype||typeof B!="undefined"&&e.push([n,":",B].join(""))}); return e}; $e=function(f,e){return f.lastIndexOf(e,0)==0}; fE=function(f,e){const B=f.length-e.length;return B>=0&&f.indexOf(e,B)==B}; g.eU=function(f){return/^[\s\xa0]*$/.test(f)}; g.BE=function(f,e){return f.indexOf(e)!=-1}; nE=function(f,e){return g.BE(f.toLowerCase(),e.toLowerCase())}; g.LE=function(f,e){let B=0;f=String(f).trim().split(".");e=String(e).trim().split(".");const n=Math.max(f.length,e.length);for(let d=0;B==0&&de?1:0}; g.d0=function(){var f=g.Kw.navigator;return f&&(f=f.userAgent)?f:""}; CE=function(f){if(!ts&&!HE||!kW)return!1;for(let e=0;e0:!1}; Zw=function(){return bP()?!1:vE("Opera")}; R2=function(){return bP()?!1:vE("Trident")||vE("MSIE")}; KE=function(){return bP()?CE("Microsoft Edge"):vE("Edg/")}; qb=function(){return vE("Firefox")||vE("FxiOS")}; a2=function(){return vE("Safari")&&!(zc()||(bP()?0:vE("Coast"))||Zw()||(bP()?0:vE("Edge"))||KE()||(bP()?CE("Opera"):vE("OPR"))||qb()||vE("Silk")||vE("Android"))}; zc=function(){return bP()?CE("Chromium"):(vE("Chrome")||vE("CriOS"))&&!(bP()?0:vE("Edge"))||vE("Silk")}; pE=function(){return vE("Android")&&!(zc()||qb()||Zw()||vE("Silk"))}; al0=function(f){const e={};f.forEach(B=>{e[B[0]]=B[1]}); return B=>e[B.find(n=>n in e)]||""}; p5k=function(f){var e=g.d0();if(f==="Internet Explorer"){if(R2())if((f=/rv: *([\d\.]*)/.exec(e))&&f[1])e=f[1];else{f="";var B=/MSIE +([\d\.]+)/.exec(e);if(B&&B[1])if(e=/Trident\/(\d.\d)/.exec(e),B[1]=="7.0")if(e&&e[1])switch(e[1]){case "4.0":f="8.0";break;case "5.0":f="9.0";break;case "6.0":f="10.0";break;case "7.0":f="11.0"}else f="7.0";else f=B[1];e=f}else e="";return e}const n=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");B=[];let r;for(;r=n.exec(e);)B.push([r[1],r[2],r[3]||void 0]); e=al0(B);switch(f){case "Opera":if(Zw())return e(["Version","Opera"]);if(bP()?CE("Opera"):vE("OPR"))return e(["OPR"]);break;case "Microsoft Edge":if(bP()?0:vE("Edge"))return e(["Edge"]);if(KE())return e(["Edg"]);break;case "Chromium":if(zc())return e(["Chrome","CriOS","HeadlessChrome"])}return f==="Firefox"&&qb()||f==="Safari"&&a2()||f==="Android Browser"&&pE()||f==="Silk"&&vE("Silk")?(e=B[2])&&e[1]||"":""}; cE=function(f){if(bP()&&f!=="Silk"){var e=kW.brands.find(({brand:B})=>B===f); if(!e||!e.version)return NaN;e=e.version.split(".")}else{e=p5k(f);if(e==="")return NaN;e=e.split(".")}return e.length===0?NaN:Number(e[0])}; cYH=function(){let f=null;if(!YW)return f;try{const e=B=>B; f=YW.createPolicy("goog#html",{createHTML:e,createScript:e,createScriptURL:e})}catch(e){}return f}; jU=function(){As===void 0&&(As=cYH());return As}; o2=function(f){const e=jU();f=e?e.createScriptURL(f):f;return new O0(f)}; V2=function(f){if(f instanceof O0)return f.C;throw Error("");}; g.FL=function(f){if(f instanceof uP)return f.C;throw Error("");}; U0=function(f){return new mB(e=>e.substr(0,f.length+1).toLowerCase()===f+":")}; Yk5=function(f,e=Nb){if(f instanceof uP)return f;for(let B=0;B{if(n instanceof PE)n=n.C;else throw Error("");return n}).every(n=>"data-loaded".indexOf(n)!==0))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); f.setAttribute("data-loaded",e)}; I2=function(f,e){f.__closure__error__context__984382||(f.__closure__error__context__984382={});f.__closure__error__context__984382.severity=e}; VCg=function(f){var e=g.zO("window.location.href");f==null&&(f='Unknown Error of type "null/undefined"');if(typeof f==="string")return{message:f,name:"Unknown error",lineNumber:"Not available",fileName:e,stack:"Not available"};let B,n;var r=!1;try{B=f.lineNumber||f.line||"Not available"}catch(L){B="Not available",r=!0}try{n=f.fileName||f.filename||f.sourceURL||g.Kw.$googDebugFname||e}catch(L){n="Not available",r=!0}e=$W(f);if(!(!r&&f.lineNumber&&f.fileName&&f.stack&&f.message&&f.name)){r=f.message; if(r==null){if(f.constructor&&f.constructor instanceof Function){if(f.constructor.name)r=f.constructor.name;else if(r=f.constructor,iP[r])r=iP[r];else{r=String(r);if(!iP[r]){const L=/function\s+([^\(]+)/m.exec(r);iP[r]=L?L[1]:"[Anonymous]"}r=iP[r]}r='Unknown Error of type "'+r+'"'}else r="Unknown Error of unknown type";typeof f.toString==="function"&&Object.prototype.toString!==f.toString&&(r+=": "+f.toString())}return{message:r,name:f.name||"UnknownError",lineNumber:B,fileName:n,stack:e||"Not available"}}return{message:f.message, name:f.name,lineNumber:f.lineNumber,fileName:f.fileName,stack:e}}; $W=function(f,e){e||(e={});e[fH(f)]=!0;let B=f.stack||"";var n=f.cause;n&&!e[fH(n)]&&(B+="\nCaused by: ",n.stack&&n.stack.indexOf(n.toString())==0||(B+=typeof n==="string"?n:n.message+"\n"),B+=$W(n,e));f=f.errors;if(Array.isArray(f)){n=1;let r;for(r=0;r4);r++)e[fH(f[r])]||(B+="\nInner error "+n++ +": ",f[r].stack&&f[r].stack.indexOf(f[r].toString())==0||(B+=typeof f[r]==="string"?f[r]:f[r].message+"\n"),B+=$W(f[r],e));r")!=-1&&(f=f.replace(mHl,">")),f.indexOf('"')!=-1&&(f=f.replace(UHM,""")),f.indexOf("'")!=-1&&(f=f.replace(N6k,"'")),f.indexOf("\x00")!=-1&&(f=f.replace(hMH,"�")));return f}; g.dr=function(f){return f==null?"":String(f)}; tj=function(f){let e=0;for(let B=0;B>>0;return e}; Hh=function(f){const e=Number(f);return e==0&&g.eU(f)?NaN:e}; k2=function(f){return String(f).replace(/\-([a-z])/g,function(e,B){return B.toUpperCase()})}; CH=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; ggl=function(f){return f.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(e,B,n){return B+n.toUpperCase()})}; Skw=function(f){var e=1;f=f.split(":");const B=[];for(;e>0&&f.length;)B.push(f.shift()),e--;f.length&&B.push(f.join(":"));return B}; wr=function(){return ts||HE?!!kW&&!!kW.platform:!1}; vh=function(){return wr()?kW.platform==="Android":vE("Android")}; bN=function(){return vE("iPhone")&&!vE("iPod")&&!vE("iPad")}; Zm=function(){return bN()||vE("iPad")||vE("iPod")}; RA=function(){return wr()?kW.platform==="macOS":vE("Macintosh")}; KH=function(){return wr()?kW.platform==="Windows":vE("Windows")}; qo=function(f){qo[" "](f);return f}; ze=function(f,e){try{return qo(f[e]),!0}catch(B){}return!1}; Qd5=function(f,e){var B=EgO;return Object.prototype.hasOwnProperty.call(B,f)?B[f]:B[f]=e(f)}; g.pH=function(f){return Qd5(f,function(){return g.LE(aA,f)>=0})}; g.ch=function(f,e,B){return Math.min(Math.max(f,e),B)}; g.Aj=function(f,e){f%=e;return f*e<0?f+e:f}; jy=function(f,e,B){return f+B*(e-f)}; g.OE=function(f,e){this.x=f!==void 0?f:0;this.y=e!==void 0?e:0}; lN=function(f,e){return f==e?!0:f&&e?f.x==e.x&&f.y==e.y:!1}; g.uN=function(f,e){this.width=f;this.height=e}; g.Fl=function(f,e){return f==e?!0:f&&e?f.width==e.width&&f.height==e.height:!1}; m$=function(f){return f.width*f.height}; Ow6=function(f){return new PE(f[0].toLowerCase())}; UE=function(f){if(f instanceof Tc)return f;f=String(f).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return Dw(f)}; DHw=function(f){return T6l(f)}; T6l=function(f){const e=UE("");return Dw(f.map(B=>Js(UE(B))).join(Js(e).toString()))}; xHM=function(f){var e;if(!No.test("div"))throw Error("");if(JYO.indexOf("DIV")!==-1)throw Error("");let B="":(f=DHw(e.map(n=>n instanceof Tc?n:UE(String(n)))),B+=">"+f.toString()+""); return Dw(B)}; MCO=function(f){var e="";const B=Object.keys(f);for(let L=0;L2&&fC(r,d,n,2);return d}; fC=function(f,e,B,n){function r(L){L&&e.appendChild(typeof L==="string"?f.createTextNode(L):L)} for(;n0?r(L):g.MH(L&&typeof L.length=="number"&&typeof L.item=="function"?g.ke(L):L,r)}}; g.BN=function(f){return iN(document,f)}; iN=function(f,e){e=String(e);f.contentType==="application/xhtml+xml"&&(e=e.toLowerCase());return f.createElement(e)}; g.nC=function(f){return document.createTextNode(String(f))}; g.rw=function(f,e){f.appendChild(e)}; g.LC=function(f){let e;for(;e=f.firstChild;)f.removeChild(e)}; dw=function(f,e,B){f.insertBefore(e,f.childNodes[B]||null)}; g.tb=function(f){return f&&f.parentNode?f.parentNode.removeChild(f):null}; g.HN=function(f,e){return f&&e?f==e||f.contains(e):!1}; Sy=function(f){return f.nodeType==9?f:f.ownerDocument||f.document}; g.kC=function(f,e){if("textContent"in f)f.textContent=e;else if(f.nodeType==3)f.data=String(e);else if(f.firstChild&&f.firstChild.nodeType==3){for(;f.lastChild!=f.firstChild;)f.removeChild(f.lastChild);f.firstChild.data=String(e)}else g.LC(f),f.appendChild(Sy(f).createTextNode(String(e)))}; ww=function(f){return f.tagName=="A"&&f.hasAttribute("href")||f.tagName=="INPUT"||f.tagName=="TEXTAREA"||f.tagName=="SELECT"||f.tagName=="BUTTON"?!f.disabled&&(!f.hasAttribute("tabindex")||CC(f)):f.hasAttribute("tabindex")&&CC(f)}; CC=function(f){f=f.tabIndex;return typeof f==="number"&&f>=0&&f<32768}; bc=function(f,e,B){if(!e&&!B)return null;const n=e?String(e).toUpperCase():null;return vN(f,function(r){return(!n||r.nodeName==n)&&(!B||typeof r.className==="string"&&g.eB(r.className.split(/\s+/),B))},!0)}; vN=function(f,e,B){f&&!B&&(f=f.parentNode);for(B=0;f;){if(e(f))return f;f=f.parentNode;B++}return null}; gr=function(f){this.C=f||g.Kw.document||document}; RY=function(){return!(!ZS||!ZS.performance)}; KC=function(f){return g.IA?"webkit"+f:f.toLowerCase()}; qV=function(f){return function(){return f}}; g.zt=function(){}; sdY=function(f){var e=e||0;return function(){return f.apply(this,Array.prototype.slice.call(arguments,0,e))}}; aY=function(f){let e=!1,B;return function(){e||(B=f(),e=!0);return B}}; pC=function(f){let e=f;return function(){if(e){const B=e;e=null;B()}}}; cN=function(f,e,B){let n=0;return function(r){g.Kw.clearTimeout(n);const L=arguments;n=g.Kw.setTimeout(function(){f.apply(B,L)},e)}}; YC=function(f,e,B,n){this.top=f;this.right=e;this.bottom=B;this.left=n}; Ab=function(f){return f.right-f.left}; jA=function(f,e){return f==e?!0:f&&e?f.top==e.top&&f.right==e.right&&f.bottom==e.bottom&&f.left==e.left:!1}; Om=function(f,e,B){e instanceof g.OE?(f.left+=e.x,f.right+=e.x,f.top+=e.y,f.bottom+=e.y):(f.left+=e,f.right+=e,typeof B==="number"&&(f.top+=B,f.bottom+=B));return f}; g.oY=function(f,e,B,n){this.left=f;this.top=e;this.width=B;this.height=n}; V_=function(f,e){return f==e?!0:f&&e?f.left==e.left&&f.width==e.width&&f.top==e.top&&f.height==e.height:!1}; g.uc=function(f,e,B){if(typeof e==="string")(e=lc(f,e))&&(f.style[e]=B);else for(const r in e){B=f;var n=e[r];const L=lc(B,r);L&&(B.style[L]=n)}}; lc=function(f,e){let B=FO[e];if(!B){var n=k2(e);B=n;f.style[n]===void 0&&(n=(g.IA?"Webkit":md?"Moz":null)+ggl(n),f.style[n]!==void 0&&(B=n));FO[e]=B}return B}; g.Um=function(f,e){const B=f.style[k2(e)];return typeof B!=="undefined"?B:f.style[lc(f,e)]||""}; NV=function(f,e){const B=Sy(f);return B.defaultView&&B.defaultView.getComputedStyle&&(f=B.defaultView.getComputedStyle(f,null))?f[e]||f.getPropertyValue(e)||"":""}; gw=function(f,e){return NV(f,e)||(f.currentStyle?f.currentStyle[e]:null)||f.style&&f.style[e]}; g.Em=function(f,e,B){let n;e instanceof g.OE?(n=e.x,e=e.y):(n=e,e=B);f.style.left=SA(n,!1);f.style.top=SA(e,!1)}; Q_=function(f){try{return f.getBoundingClientRect()}catch(e){return{left:0,top:0,right:0,bottom:0}}}; X5m=function(f){const e=Sy(f);let B=gw(f,"position"),n=B=="fixed"||B=="absolute";for(f=f.parentNode;f&&f!=e;f=f.parentNode)if(f.nodeType==11&&f.host&&(f=f.host),B=gw(f,"position"),n=n&&B=="static"&&f!=e.documentElement&&f!=e.body,!n&&(f.scrollWidth>f.clientWidth||f.scrollHeight>f.clientHeight||B=="fixed"||B=="absolute"||B=="relative"))return f;return null}; g.Tt=function(f){var e=Sy(f);const B=new g.OE(0,0);if(f==(e?Sy(e):document).documentElement)return B;f=Q_(f);e=Qa(e);e=Ph(e.C);B.x=f.left+e.x;B.y=f.top+e.y;return B}; Jb=function(f,e){const B=new g.OE(0,0);let n=$2(Sy(f));if(!ze(n,"parent"))return B;do{const r=n==e?g.Tt(f):DS(f);B.x+=r.x;B.y+=r.y}while(n&&n!=e&&n!=n.parent&&(f=n.frameElement)&&(n=n.parent));return B}; g.Gt=function(f,e){f=MV(f);e=MV(e);return new g.OE(f.x-e.x,f.y-e.y)}; DS=function(f){f=Q_(f);return new g.OE(f.left,f.top)}; MV=function(f){if(f.nodeType==1)return DS(f);f=f.changedTouches?f.changedTouches[0]:f;return new g.OE(f.clientX,f.clientY)}; g.xC=function(f,e,B){if(e instanceof g.uN)B=e.height,e=e.width;else if(B==void 0)throw Error("missing height argument");f.style.width=SA(e,!0);f.style.height=SA(B,!0)}; SA=function(f,e){typeof f=="number"&&(f=(e?Math.round(f):f)+"px");return f}; g.WN=function(f){var e=yYl;if(gw(f,"display")!="none")return e(f);const B=f.style,n=B.display,r=B.visibility,L=B.position;B.visibility="hidden";B.position="absolute";B.display="inline";f=e(f);B.display=n;B.position=L;B.visibility=r;return f}; yYl=function(f){const e=f.offsetWidth,B=f.offsetHeight,n=g.IA&&!e&&!B;return(e===void 0||n)&&f.getBoundingClientRect?(f=Q_(f),new g.uN(f.right-f.left,f.bottom-f.top)):new g.uN(e,B)}; g.sm=function(f,e){f.style.display=e?"":"none"}; XO=function(f){return f?f.passive&&P0w()?f:f.capture||!1:!1}; y_=function(f,e,B,n){return typeof f.addEventListener==="function"?(f.addEventListener(e,B,XO(n)),!0):!1}; PN=function(f){return f.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[f.visibilityState||f.webkitVisibilityState||f.mozVisibilityState||""]??0}; IY=function(f){try{return!!f&&f.location.href!=null&&ze(f,"foo")}catch{return!1}}; $C=function(f){let e=f;for(;f&&f!=f.parent;)f=f.parent,IY(f)&&(e=f);return e}; fR=function(){return(ts||HE)&&kW?kW.mobile:!ic()&&(vE("iPod")||vE("iPhone")||vE("Android")||vE("IEMobile"))}; ic=function(){return(ts||HE)&&kW?!kW.mobile&&(vE("iPad")||vE("Android")||vE("Silk")):vE("iPad")||vE("Android")&&!vE("Mobile")||vE("Silk")}; BD=function(){var f=g.Kw;const e=[];let B=null,n;do{n=f;if(IY(n)){var r=n.location.href;B=n.document&&n.document.referrer||null}else r=B,B=null;e.push(new eW(r||""));try{f=n.parent}catch(L){f=null}}while(f&&n!==f);for(let L=0,d=e.length-1;L<=d;++L)e[L].depth=d-L;n=g.Kw;if(n.location&&n.location.ancestorOrigins&&n.location.ancestorOrigins.length===e.length-1)for(f=1;f=0;--r){var L=f[r];!B&&IlG.test(L.url)&&(B=L);if(L.url&&!L.C){e=L;break}}r=null;L=f.length&&f[n].url;e.depth!==0&&L&&(r=f[n]);return new $Hw(e,r,B)}; rP=function(f,e){if(f)for(const B in f)Object.prototype.hasOwnProperty.call(f,B)&&e(f[B],B,f)}; fVM=function(){const f=[];rP(iw5,e=>{f.push(e)}); return f}; LR=function(f,e){const B={};B[f]=e;return[B]}; HD=function(f,e,B,n,r){const L=[];rP(f,(d,t)=>{(d=tG(d,e,B,n,r))&&L.push(`${t}=${d}`)}); return L.join(e)}; wP=function(f,e,B,n,r,L,d,t,H,k){var C;(f|40)==f&&(C=n(t,H,k));(f-5^29)>=f&&(f-8|59)=f&&f-7<<1e&&(e=B.length);return 3997-e-f.J.length-1}; ne5=function(f,e){g.P5(e,r=>r.depth>=0); const B=sk(e,(r,L)=>Math.max(r,L.depth),-1),n=vgk(B+2); n[0]=f;g.MH(e,r=>n[r.depth+1]=r.C); return n}; LeC=function(){return ruH().map(f=>tG(f))}; vD=function(f){f.AGl=!0;return f}; tB6=function(){const f=bW("IFRAME"),e={};g.MH(dT0(),B=>{f.sandbox&&f.sandbox.supports&&f.sandbox.supports(B)&&(e[B]=!0)}); return e}; bW=function(f,e=document){return e.createElement(String(f).toLowerCase())}; ZO=function(f){ZS.google_image_requests||(ZS.google_image_requests=[]);const e=bW("IMG",ZS.document);e.src=f;ZS.google_image_requests.push(e)}; HF5=function(){RU();const f=ZS.document;return!!(f&&f.body&&f.body.getBoundingClientRect&&typeof ZS.setInterval==="function"&&typeof ZS.clearInterval==="function"&&typeof ZS.setTimeout==="function"&&typeof ZS.clearTimeout==="function")}; KR=function(){RU();return LeC()}; RU=function(){var f=qa(kLd);if(!f.C){if(!ZS)throw Error("Context has not been set and window is undefined.");f.C=qa(CHm)}return f.C}; aU=function(f){return(z$||(z$=new TextEncoder)).encode(f)}; pR=function(f){g.Kw.setTimeout(()=>{throw f;},0)}; wB0=function(f){return Array.prototype.map.call(f,function(e){e=e.toString(16);return e.length>1?e:"0"+e}).join("")}; cD=function(f){const e=[];for(let B=0;B>6|192:((r&64512)==55296&&n+1>18|240,e[B++]=r>>12&63|128):e[B++]=r>>12|224,e[B++]=r>>6&63|128),e[B++]=r&63|128)}return e}; g.ON=function(f,e){e===void 0&&(e=0);AG();e=jW[e];const B=Array(Math.floor(f.length/3)),n=e[64]||"";let r=0,L=0;for(;r>2];d=e[(d&3)<<4|t>>4];t=e[(t&15)<<2|H>>6];H=e[H&63];B[L++]=""+k+d+t+H}k=0;H=n;switch(f.length-r){case 2:k=f[r+1],H=e[(k&15)<<2]||n;case 1:f=f[r],B[L]=""+e[f>>2]+e[(f&3)<<4|k>>4]+H+n}return B.join("")}; g.oU=function(f,e,B){if(e){const n=[];let r=0;for(let L=0;L255){const t=Error("go/unicode-to-byte-error");if(B)throw t;n[r++]=d&255;d>>=8}n[r++]=d}f=g.ON(n,e)}else f=g.Kw.btoa(f);return f}; lW=function(f){const e=[];Vh(f,function(B){e.push(B)}); return e}; uW=function(f){const e=f.length;let B=e*3/4;B%3?B=Math.floor(B):g.BE("=.",f[e-1])&&(B=g.BE("=.",f[e-2])?B-2:B-1);const n=new Uint8Array(B);let r=0;Vh(f,function(L){n[r++]=L}); return r!==B?n.subarray(0,r):n}; Vh=function(f,e){function B(r){for(;n>4);d!=64&&(e(L<<4&240|d>>2),t!=64&&e(d<<6&192|t))}}; AG=function(){if(!F_){F_={};var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"];for(let B=0;B<5;B++){const n=f.concat(e[B].split(""));jW[B]=n;for(let r=0;r=e||(B[f]=n+1,f=Error(),I2(f,"incident"),pR(f))}}; G$=function(f,e=!1){return e&&Symbol.for&&f?Symbol.for(f):f!=null?Symbol(f):Symbol()}; sN=function(f,e){return e===void 0?f.C!==x_&&!!(2&(f.JI[WD]|0)):!!(2&e)&&f.C!==x_}; X_=function(f,e){if(f!=null)if(typeof f==="string")f=f?new hG(f,gP):SW();else if(f.constructor!==hG)if(f!=null&&f instanceof Uint8Array)f=f.length?new hG(new Uint8Array(f),gP):SW();else{if(!e)throw Error();f=void 0}return f}; yh=function(f,e){if(typeof e!=="number"||e<0||e>=f.length)throw Error();}; PD=function(f,e,B){const n=e&128?0:-1,r=f.length;var L;if(L=!!r)L=f[r-1],L=L!=null&&typeof L==="object"&&L.constructor===Object;const d=r+(L?-1:0);for(e=e&128?1:0;e>>0;e2=e;Bn=(f-e)/4294967296>>>0}; r8=function(f){if(f<0){nu(0-f);f=e2;var e=Bn;e=~e;f?f=~f+1:e+=1;const [B,n]=[f,e];e2=B>>>0;Bn=n>>>0}else nu(f)}; d8=function(f,e){const B=e*4294967296+(f>>>0);return Number.isSafeInteger(B)?B:Lu(f,e)}; t5=function(f,e){const B=e&2147483648;B&&(f=~f+1>>>0,e=~e>>>0,f==0&&(e=e+1>>>0));f=d8(f,e);return typeof f==="number"?B?-f:f:B?"-"+f:f}; Hn=function(f,e){return fu(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(e))<>>=0;f>>>=0;var B;e<=2097151?B=""+(4294967296*e+f):B=""+(BigInt(e)<>>0)):B=Lu(f,e);return B}; Cu=function(f){f.length<16?r8(Number(f)):(f=BigInt(f),e2=Number(f&BigInt(4294967295))>>>0,Bn=Number(f>>BigInt(32)&BigInt(4294967295)))}; w8=function(f){if(f!=null&&typeof f!=="number")throw Error(`Value of float/double field must be a number, found ${typeof f}: ${f}`);return f}; vn=function(f){return f.displayName||f.name||"unknown type name"}; bE=function(f){if(f!=null&&typeof f!=="boolean")throw Error(`Expected boolean but got ${c5(f)}: ${f}`);return f}; RW=function(f){switch(typeof f){case "bigint":return!0;case "number":return Zx(f);case "string":return Ked.test(f);default:return!1}}; Ku=function(f){if(typeof f!=="number")throw DO("int32");if(!Zx(f))throw DO("int32");return f|0}; qZ=function(f){return f==null?f:Ku(f)}; zd=function(f){if(f==null)return f;if(typeof f==="string"&&f)f=+f;else if(typeof f!=="number")return;return Zx(f)?f|0:void 0}; aW=function(f){if(f==null)return f;if(typeof f==="string"&&f)f=+f;else if(typeof f!=="number")return;return Zx(f)?f>>>0:void 0}; qMM=function(f){var e=pu?1024:0;if(!RW(f))throw DO("int64");const B=typeof f;switch(e){case 512:switch(B){case "string":return cn(f);case "bigint":return String(Y6(64,f));default:return j2(f)}case 1024:switch(B){case "string":return Oj(f);case "bigint":return fu(Y6(64,f));default:return oW(f)}case 0:switch(B){case "string":return cn(f);case "bigint":return fu(Y6(64,f));default:return Vv(f)}default:return Q2(e,"Unknown format requested type for int64")}}; lE=function(f){return f==null?f:qMM(f)}; Vv=function(f){RW(f);f=uE(f);ml(f)||(r8(f),f=t5(e2,Bn));return f}; j2=function(f){RW(f);f=uE(f);ml(f)?f=String(f):(r8(f),f=k6());return f}; cn=function(f){RW(f);var e=uE(Number(f));if(ml(e))return String(e);e=f.indexOf(".");e!==-1&&(f=f.substring(0,e));e=f.length;(f[0]==="-"?e<20||e===20&&f<="-9223372036854775808":e<19||e===19&&f<="9223372036854775807")||(Cu(f),f=k6());return f}; Oj=function(f){var e=uE(Number(f));if(ml(e))return fu(e);e=f.indexOf(".");e!==-1&&(f=f.substring(0,e));return fu(Y6(64,BigInt(f)))}; oW=function(f){return ml(f)?fu(Vv(f)):fu(j2(f))}; NZ=function(f){if(f==null)return f;if(typeof f==="bigint")return Uj(f)?f=Number(f):(f=Y6(64,f),f=Uj(f)?Number(f):String(f)),f;if(RW(f))return typeof f==="number"?Vv(f):cn(f)}; h5=function(f){const e=typeof f;if(f==null)return f;if(e==="bigint")return fu(Y6(64,f));if(RW(f))return e==="string"?Oj(f):oW(f)}; zIH=function(f){if(f==null)return f;const e=typeof f;if(e==="bigint")return String(Y6(64,f));if(RW(f)){if(e==="string")return cn(f);if(e==="number")return Vv(f)}}; g8=function(f){if(f==null)return f;var e=typeof f;if(e==="bigint")return String(aVM(64,f));if(RW(f)){if(e==="string")return RW(f),e=uE(Number(f)),ml(e)&&e>=0?f=String(e):(e=f.indexOf("."),e!==-1&&(f=f.substring(0,e)),f[0]==="-"?e=!1:(e=f.length,e=e<20?!0:e===20&&f<="18446744073709551615"),e||(Cu(f),f=Lu(e2,Bn))),f;if(e==="number")return RW(f),f=uE(f),f>=0&&ml(f)||(r8(f),f=d8(e2,Bn)),f}}; J5=function(f,e=!1){k_(58,f);if(f[Z[20]]!==Z[16]){var B=f[Z[76]]();B[Z[23]](Z[70],Z[59]);return B}var n=f[Z[61]]();B=new g.S2(n);var r=f[Z[15]](Z[49]);const L=decodeURIComponent(f[Z[15]](Z[41])||Z[12])[Z[36]](Z[62]);if(r&&L&&L[Z[13]]>1&&L[1])return n=B.C,f=n[Z[82]](/^[^.]*/,Z[12]),g.Ej(B,`${n[Z[4]](Z[50])===0?Z[50]:Z[18]}${r}---${L[1]}${f}`),B=new g.Qv(B[Z[44]]()),B[Z[23]](Z[53],Z[59]),B;if(e)return B=f[Z[76]](),B[Z[23]](Z[53],Z[59]),B;r=B.C[Z[31]](Z[81]);B.C[Z[31]](Z[30])?(g.Ej(B,Z[57]),n=B[Z[44]]()): B.C[Z[31]](Z[78])?(g.Ej(B,Z[64]),n=B[Z[44]]()):(B=Td(n),Dx(B)&&(n=B));B=new g.Qv(n);B[Z[23]](Z[48],Z[59]);r&&B[Z[23]](Z[79],Z[38]);return B}; MZ=function(f){if(f==null||typeof f=="string"||f instanceof hG)return f}; pB0=function(f){if(typeof f!=="string")throw Error();return f}; Gd=function(f){if(f!=null&&typeof f!=="string")throw Error();return f}; x6=function(f){return f==null||typeof f==="string"?f:void 0}; Wn=function(f,e){if(!(f instanceof e))throw Error(`Expected instanceof ${vn(e)} but got ${f&&vn(f.constructor)}`);return f}; yv=function(f,e,B){if(f!=null&&f[sj]===Xp)return f;if(Array.isArray(f)){var n=f[WD]|0;B=n|B&32|B&2;B!==n&&(f[WD]=B);return new e(f)}}; Pn=function(f){return f}; $6=function(f){const e=m5(IW);return e?f[e]:void 0}; iE=function(f,e){for(const B in f)!isNaN(B)&&e(f,+B,f[B])}; cu0=function(f){const e=new fr;iE(f,(B,n,r)=>{e[n]=[...r]}); e.Ms=f.Ms;return e}; Au5=function(f,e){e<100||Ma(YM0,1)}; Br=function(f,e,B,n){const r=n!==void 0;n=!!n;var L=m5(IW),d;!r&&L&&(d=f[L])&&iE(d,Au5);L=[];var t=f.length;let H;d=4294967295;let k=!1;const C=!!(e&64),w=C?e&128?0:-1:void 0;e&1||(H=t&&f[t-1],H!=null&&typeof H==="object"&&H.constructor===Object?(t--,d=t):H=void 0,!C||e&128||r||(k=!0,d=(ex??Pn)(d-w,w,f,H,void 0)+w));e=void 0;for(var v=0;v=d){const K=v-w;(e??(e={}))[K]=b}else L[v]=b}if(H)for(let b in H){t=H[b];if(t==null||(t=B(t,n))==null)continue; v=+b;let K;C&&!Number.isNaN(v)&&(K=v+w)0?void 0:f===0?t6||(t6=[0,void 0]):[-f,void 0];case "string":return[0,f];case "object":return f}}; k1=function(f,e){return Hr(f,e[0],e[1])}; Hr=function(f,e,B,n=0){if(f==null){var r=32;B?(f=[B],r|=128):f=[];e&&(r=r&-16760833|(e&1023)<<14)}else{if(!Array.isArray(f))throw Error("narr");r=f[WD]|0;if(Cr&&1&r)throw Error("rfarr");2048&r&&!(2&r)&&VBG();if(r&256)throw Error("farr");if(r&64)return(r|n)!==r&&(f[WD]=r|n),f;if(B&&(r|=128,B!==f[0]))throw Error("mid");a:{B=f;r|=64;var L=B.length;if(L){var d=L-1;const H=B[d];if(H!=null&&typeof H==="object"&&H.constructor===Object){e=r&128?0:-1;d-=e;if(d>=1024)throw Error("pvtlmt");for(var t in H)if(L= +t,L1024)throw Error("spvt");r=r&-16760833|(t&1023)<<14}}}f[WD]=r|64|n;return f}; VBG=function(){if(Cr)throw Error("carr");Ma(lVk,5)}; wj=function(f,e,B){if((f|72)==f){for(var n=64,r=[];++n-r[Z[13]]-32;){switch(n){case 58:n-=14;case 91:case 92:case 93:continue;case 123:n=47;case 94:case 95:case 96:continue;case 46:n=95}r[Z[3]](String[Z[19]](n))}var L=r}(f&73)==f&&(e[18]!==9&&(e[19]===new B(Z[8])/1E3||((0,e[46])(e[89],e[36]),0))&&(0,e[16])(e[59],e[79]),e[53]<=-10&&(e[68]===-9&&((0,e[69])((0,e[54])(e[16],(0,e[7])(e[79],(0,e[84])(),e[90]),(0,e[7])(e[89],(0,e[51])(),e[90]),(0,e[new B(Z[5])/1E3])(e[89],(0,e[57])(),e[40]),e[8],e[49]), (0,e[80])(((0,e[48])(e[89],(0,e[84])(),e[90]),e[30])(e[64]),e[7],e[79],(0,e[11])(),e[40]),e[75],(0,e[20])(e[79],e[29]),(0,e[48])(e[79],(0,e[11])(),e[40])-(0,e[7])(e[79],(0,e[51])(),e[90]),(0,e[73])(e[17],e[70]),e[89]),1)||(((((0,e[21])(e[79],e[76]),(0,e[73])(e[79],e[66]),e[80])((0,e[21])(e[44],e[87]),e[24],e[49],e[38]),(0,e[21])(e[79],e[3]),e[75])(e[49]),e[39])((0,e[22])(e[new B(Z[85])/1E3],e[76]),e[88],(0,e[74])(e[46],e[82]),e[51],(0,e[89])(),e[50]),(0,e[60])((0,e[28])(e[95],e[76]),e[new B(Z[46])/ 1E3],e[76],e[19]),e[9])(e[93],e[32])),e[93]!=2&&(0,e[9])(e[88],e[53]),L=[]);f-8<<1>=f&&(f-1|24)=19&&e[Z[74]]();return L}; uGO=function(f,e){if(typeof f!=="object")return f;if(Array.isArray(f)){var B=f[WD]|0;f.length===0&&B&1?f=void 0:B&2||(!e||4096&B||16&B?f=vr(f,B,!1,e&&!(B&16)):(f[WD]|=34,B&4&&Object.freeze(f)));return f}if(f!=null&&f[sj]===Xp)return e=f.JI,B=e[WD]|0,sN(f,B)?f:bw(f,e,B)?Z3(f,e):vr(e,B);if(f instanceof hG)return f}; Z3=function(f,e,B){f=new f.constructor(e);B&&(f.C=x_);f.V=x_;return f}; vr=function(f,e,B,n){n??(n=!!(34&e));f=Br(f,e,uGO,n);n=32;B&&(n|=2);e=e&16769217|n;f[WD]=e;return f}; RQ=function(f){const e=f.JI,B=e[WD]|0;return sN(f,B)?bw(f,e,B)?Z3(f,e,!0):new f.constructor(vr(e,B,!1)):f}; Kr=function(f){if(f.C!==x_)return!1;var e=f.JI;e=vr(e,e[WD]|0);e[WD]|=2048;f.JI=e;f.C=void 0;f.V=void 0;return!0}; q7=function(f){if(!Kr(f)&&sN(f,f.JI[WD]|0))throw Error();}; zp=function(f,e){e===void 0&&(e=f[WD]|0);e&32&&!(e&4096)&&(f[WD]=e|4096)}; bw=function(f,e,B){return B&2?!0:B&32&&!(B&4096)?(e[WD]=B|2,f.C=x_,!0):!1}; pr=function(f,e,B,n,r){Object.isExtensible(f);e=aQ(f.JI,e,B,r);if(e!==null||n&&f.V!==x_)return e}; aQ=function(f,e,B,n){if(e===-1)return null;const r=e+(B?0:-1),L=f.length-1;let d,t;if(!(L<1+(B?0:-1))){if(r>=L)if(d=f[L],d!=null&&typeof d==="object"&&d.constructor===Object)B=d[e],t=!0;else if(r===L)B=d;else return;else B=f[r];if(n&&B!=null){n=n(B);if(n==null)return n;if(!Object.is(n,B))return t?d[e]=n:f[r]=n,n}return B}}; Y1=function(f,e,B,n){q7(f);const r=f.JI;cr(r,r[WD]|0,e,B,n);return f}; cr=function(f,e,B,n,r){const L=B+(r?0:-1);var d=f.length-1;if(d>=1+(r?0:-1)&&L>=d){const t=f[d];if(t!=null&&typeof t==="object"&&t.constructor===Object)return t[B]=n,e}if(L<=d)return f[L]=n,e;n!==void 0&&(d=(e??(e=f[WD]|0))>>14&1023||536870912,B>=d?n!=null&&(f[d+(r?0:-1)]={[B]:n}):f[L]=n);return e}; lw=function(f,e,B,n,r){let L=f.JI,d=L[WD]|0;n=sN(f,d)?1:n;r=!!r||n===3;n===2&&Kr(f)&&(L=f.JI,d=L[WD]|0);f=A6(L,e);let t=f===jx?7:f[WD]|0,H=Ol(t,d);var k=4&H?!1:!0;if(k){4&H&&(f=[...f],t=0,H=oQ(H,d),d=cr(L,d,e,f));let C=0,w=0;for(;C{const t=yv(d,B,e);L=t!==d&&t!=null;return t}); if(n!=null)return L&&!sN(n)&&zp(f,e),n}; sl=function(f,e,B,n){let r=f.JI,L=r[WD]|0;e=Wr(r,L,e,B,n);if(e==null)return e;L=r[WD]|0;if(!sN(f,L)){const d=RQ(e);d!==e&&(Kr(f)&&(r=f.JI,L=r[WD]|0),e=d,L=cr(r,L,B,e,n),zp(r,L))}return e}; Xy=function(f,e,B,n,r,L,d,t,H){var k=sN(f,B);L=k?1:L;t=!!t||L===3;k=H&&!k;(L===2||k)&&Kr(f)&&(e=f.JI,B=e[WD]|0);f=A6(e,r,d);var C=f===jx?7:f[WD]|0,w=Ol(C,B);if(H=!(4&w)){var v=f,b=B;const K=!!(2&w);K&&(b|=2);let Y=!K,l=!0,m=0,F=0;for(;m32)for(r|=(B&127)>>4,L=3;L<32&&B&128;L+=7)B=d[t++],r|=(B&127)<>>0,r>>>0);throw Error();}; Kt=function(f){let e=0,B=f.C;const n=B+10,r=f.G;for(;B>>0}; aD=function(f){const e=z7(f);f=z7(f);return d8(e,f)}; pt=function(f){const e=z7(f);f=z7(f);return fu(BigInt.asUintN(64,(BigInt(f>>>0)<>>0)))}; cU=function(f){var e=f.W;e||(e=f.G,e=f.W=new DataView(e.buffer,e.byteOffset,e.byteLength));e=e.getFloat64(f.C,!0);Zg(f,f.C+8);return e}; Zg=function(f,e){f.C=e;if(e>f.J)throw Error();}; Yl=function(f,e){if(e<0)throw Error();const B=f.C;e=B+e;if(e>f.J)throw Error();f.C=e;return B}; A8=function(f,e){if(e==0)return SW();var B=Yl(f,e);f.fM&&f.U?B=f.G.subarray(B,B+e):(f=f.G,e=B+e,B=B===e?new Uint8Array(0):f.slice(B,e));return B.length==0?SW():new hG(B,gP)}; F8=function(f,e,B,n){if(jm.length){const r=jm.pop();uh(r,n);r.C.init(f,e,B,n);return r}return new mTd(f,e,B,n)}; uh=function(f,{wb:e=!1}={}){f.wb=e}; m2=function(f){var e=f.C;if(e.C==e.J)return!1;f.V=f.C.C;var B=qS(f.C)>>>0;e=B>>>3;B&=7;if(!(B>=0&&B<=5))throw Error();if(e<1)throw Error();f.J=e;f.G=B;return!0}; Ui=function(f){switch(f.G){case 0:f.G!=0?Ui(f):Kt(f.C);break;case 1:f=f.C;Zg(f,f.C+8);break;case 2:if(f.G!=2)Ui(f);else{var e=qS(f.C)>>>0;f=f.C;Zg(f,f.C+e)}break;case 5:f=f.C;Zg(f,f.C+4);break;case 3:e=f.J;do{if(!m2(f))throw Error();if(f.G==4){if(f.J!=e)throw Error();break}Ui(f)}while(1);break;default:throw Error();}}; NS=function(f,e,B){const n=f.C.J;var r=qS(f.C)>>>0;r=f.C.C+r;let L=r-n;L<=0&&(f.C.J=r,B(e,f,void 0,void 0,void 0),L=r-f.C.C);if(L)throw Error();f.C.C=r;f.C.J=n}; Sm=function(f){var e=qS(f.C)>>>0,B=f.C;f=Yl(B,e);var n=B.G;(B=h8)||(B=h8=new TextDecoder("utf-8",{fatal:!0}));e=f+e;n=f===0&&e===n.length?n:n.subarray(f,e);try{var r=B.decode(n)}catch(L){if(gf===void 0){try{B.decode(new Uint8Array([128]))}catch(d){}try{B.decode(new Uint8Array([97])),gf=!0}catch(d){gf=!1}}!gf&&(h8=void 0);throw L;}return r}; Ei=function(f){const e=qS(f.C)>>>0;return A8(f.C,e)}; QN=function(f,e,B){var n=qS(f.C)>>>0;for(n=f.C.C+n;f.C.C0||e>127;)f.C.push(e&127|128),e=(e>>>7|B<<25)>>>0,B>>>=7;f.C.push(e)}; si=function(f,e){f.C.push(e>>>0&255);f.C.push(e>>>8&255);f.C.push(e>>>16&255);f.C.push(e>>>24&255)}; X8=function(f,e){for(;e>127;)f.C.push(e&127|128),e>>>=7;f.C.push(e)}; yN=function(f,e){if(e>=0)X8(f,e);else{for(let B=0;B<9;B++)f.C.push(e&127|128),e>>=7;f.C.push(1)}}; PU=function(f,e){e.length!==0&&(f.J.push(e),f.G+=e.length)}; ID=function(f,e,B){X8(f.C,e*8+B)}; $l=function(f,e){ID(f,e,2);e=f.C.end();PU(f,e);e.push(f.G);return e}; ih=function(f,e){var B=e.pop();for(B=f.G+f.C.length()-B;B>127;)e.push(B&127|128),B>>>=7,f.G++;e.push(B);f.G++}; fO=function(f,e,B){if(B!=null){switch(typeof B){case "string":J8(B)}ID(f,e,1);switch(typeof B){case "number":f=f.C;nu(B);si(f,e2);si(f,Bn);break;case "bigint":B=BigInt.asUintN(64,B);B=new Dg(Number(B&BigInt(4294967295)),Number(B>>BigInt(32)));f=f.C;e=B.C;si(f,B.G);si(f,e);break;default:B=J8(B),f=f.C,e=B.C,si(f,B.G),si(f,e)}}}; ev=function(f,e,B){ID(f,e,2);X8(f.C,B.length);PU(f,f.C.end());PU(f,B)}; BX=function(){const f=class{constructor(){throw Error();}};Object.setPrototypeOf(f,f.prototype);return f}; nO=function(f,e){if(e==null||e=="")return new f;e=JSON.parse(e);if(!Array.isArray(e))throw Error("dnarr");e[WD]|=32;return new f(e)}; dp=function(f,e){return new rp(f,e,LO)}; HX=function(f,e,B,n,r){e=tR(e,n);e!=null&&(B=$l(f,B),r(e,f),ih(f,B))}; wp=function(f,e,B,n){var r=n[f];if(r)return r;r={};r.hm=n;r.Z1=oew(n[0]);var L=n[1];let d=1;L&&L.constructor===Object&&(r.extensions=L,L=n[++d],typeof L==="function"&&(r.bG=!0,kY??(kY=L),CO??(CO=n[d+1]),L=n[d+=2]));const t={};for(;L&&Array.isArray(L)&&L.length&&typeof L[0]==="number"&&L[0]>0;){for(var H=0;Hr(L,d,t,n):r}; KO=function(f,e,B,n,r){const L=B.NW;let d,t;f[e]=(H,k,C)=>L(H,k,C,t||(t=wp(R1,Zd,KO,n).Z1),d||(d=qn(n)),r)}; qn=function(f){let e=f[zP];if(e!=null)return e;const B=wp(R1,Zd,KO,f);e=B.bG?(n,r)=>kY(n,r,B):(n,r)=>{for(;m2(r)&&r.G!=4;){var L=r.J,d=B[L]; if(d==null){var t=B.extensions;t&&(t=t[L])&&(t=hI0(t),t!=null&&(d=B[L]=t))}if(d==null||!d(r,n,L)){t=r;d=t.V;Ui(t);if(t.wb)var H=void 0;else H=t.C.C-d,t.C.C=d,H=A8(t.C,H);d=void 0;t=n;H&&((d=t[IW]??(t[IW]=new fr))[L]??(d[L]=[])).push(H)}}if(n=$6(n))n.Ms=B.hm[a1];return!0}; f[zP]=e;f[a1]=gem.bind(f);return e}; gem=function(f,e,B,n){var r=this[R1];const L=this[zP],d=k1(void 0,r.Z1),t=$6(f);if(t){var H=!1,k=r.extensions;if(k){r=(C,w,v)=>{if(v.length!==0)if(k[w])for(const b of v){C=F8(b);try{H=!0,L(d,C)}finally{C.free()}}else n?.(f,w,v)}; if(e==null)iE(t,r);else if(t!=null){const C=t[e];C&&r(t,e,C)}if(H){let C=f[WD]|0;if(C&2&&C&2048&&!B?.fO)throw Error();const w=$_(C),v=(b,K)=>{if(aQ(f,b,w)!=null)switch(B?.S2a){case 1:return;default:throw Error();}K!=null&&(C=cr(f,C,b,K,w));delete t[b]}; e==null?PD(d,d[WD]|0,(b,K)=>{v(b,K)}):v(e,aQ(d,e,w))}}}}; hI0=function(f){f=vX(f);const e=f[0].NW;if(f=f[1]){const B=qn(f),n=wp(R1,Zd,KO,f).Z1;return(r,L,d)=>e(r,L,d,n,B)}return e}; pO=function(f,e,B){f[e]=B.xq}; YY=function(f,e,B,n){let r,L;const d=B.xq;f[e]=(t,H,k)=>d(t,H,k,L||(L=wp(cX,pO,YY,n).Z1),r||(r=AR(n)))}; AR=function(f){let e=f[jv];if(!e){const B=wp(cX,pO,YY,f);e=(n,r)=>OO(n,r,B); f[jv]=e}return e}; OO=function(f,e,B){PD(f,f[WD]|0,(n,r)=>{if(r!=null){var L=SM5(B,n);L?L(e,r,n):n<500||Ma(EeY,3)}}); (f=$6(f))&&iE(f,(n,r,L)=>{PU(e,e.C.end());for(n=0;nn(d,t,H,L,r)}else B=n; return f[e]=B}}; o1=function(f,e,B){if(Array.isArray(e)){var n=e[WD]|0;if(n&4)return e;for(var r=0,L=0;r>BigInt(32)));WU(f.C,B.G,B.C);break;default:B=xl(e),WU(f.C,B.G,B.C)}}}; Sv=function(f,e,B){e=zd(e);e!=null&&e!=null&&(ID(f,B,0),yN(f.C,e))}; EO=function(f,e,B){e=e==null||typeof e==="boolean"?e:typeof e==="number"?!!e:void 0;e!=null&&(ID(f,B,0),f.C.C.push(e?1:0))}; QK=function(f,e,B){e=x6(e);e!=null&&ev(f,B,aU(e))}; TP=function(f,e,B,n,r){e=tR(e,n);e!=null&&(B=$l(f,B),r(e,f),ih(f,B))}; Dd=function(f,e){return(B,n)=>{{const L={nE:!0};n&&Object.assign(L,n);B=F8(B,void 0,void 0,L);try{const d=new f,t=d.JI;qn(e)(t,B);var r=d}finally{B.free()}}return r}}; JR=function(f){return function(){const e=new QxM;OO(this.JI,e,wp(cX,pO,YY,f));PU(e,e.C.end());const B=new Uint8Array(e.G),n=e.J,r=n.length;let L=0;for(let d=0;dnO(f,e)}; GP=function(f,e){return(...B)=>{if(f.C>-1)return e(...B);try{return f.C=f.J.C.now(),e(...B)}finally{f.V+=f.J.C.now()-f.C,f.C=-1,f.G+=1}}}; xY=function(){return qa(T26)}; sO=function(f,e,B,n){if(Math.random()<(n||f.C))try{let r;B instanceof WX?r=B:(r=new WX,rP(B,function(d,t){var H=r;const k=H.V++;d=LR(t,d);H.C.push(k);H.G[k]=d})); const L=r.Dw(f.G,"pagead2.googlesyndication.com","/pagead/gen_204?id="+e+"&");L&&(RU(),ZO(L))}catch(r){}}; Xa=function(){const f=g.Kw.performance;return f&&f.now&&f.timing?Math.floor(f.now()+f.timing.navigationStart):g.u0()}; yK=function(){const f=g.Kw.performance;return f&&f.now?f.now():null}; $Y=function(f){f&&PX&&I1()&&(PX.clearMarks(`goog_${f.label}_${f.uniqueId}_start`),PX.clearMarks(`goog_${f.label}_${f.uniqueId}_end`))}; iT=function(f,e,B,n,r,L,d){let t="";f&&(t+=f+":");B&&(t+="//",e&&(t+=e+"@"),t+=B,n&&(t+=":"+n));r&&(t+=r);L&&(t+="?"+L);d&&(t+="#"+d);return t}; g.fY=function(f){return f.match(DTg)}; eI=function(f){return f?decodeURI(f):f}; g.BT=function(f){return eI(g.fY(f)[3]||null)}; nY=function(f){return eI(g.fY(f)[5]||null)}; g.re=function(f){f=g.fY(f);return iT(f[1],f[2],f[3],f[4])}; LY=function(f){f=g.fY(f);return iT(null,null,null,null,f[5],f[6],f[7])}; de=function(f){const e=f.indexOf("#");return e<0?f:f.slice(0,e)}; tD=function(f,e){if(f){f=f.split("&");for(let B=0;B=0?(r=f[B].substring(0,n),L=f[B].substring(n+1)):r=f[B];e(r,L?rr(L):"")}}}; HT=function(f,e){if(!e)return f;var B=f.indexOf("#");B<0&&(B=f.length);let n=f.indexOf("?"),r;n<0||n>B?(n=B,r=""):r=f.substring(n+1,B);f=[f.slice(0,n),r,f.slice(B)];B=f[1];f[1]=e?B?B+"&"+e:e:B;return f[0]+(f[1]?"?"+f[1]:"")+f[2]}; k0=function(f,e,B){if(Array.isArray(e))for(let n=0;n=0&&eB)r=B;n+=e.length+1;return rr(f.slice(n,r!==-1?r:0))}; qf=function(f,e){const B=f.search(RI);let n=0,r;const L=[];for(;(r=Ze(f,n,e,B))>=0;)L.push(f.substring(n,r)),n=Math.min(f.indexOf("&",r)+1||B,B);L.push(f.slice(n));return L.join("").replace(MBk,"$1")}; GLw=function(f,e,B){return bU(qf(f,e),e,B)}; zD=function(f){let e=f.toString();f.name&&e.indexOf(f.name)==-1&&(e+=": "+f.name);f.message&&e.indexOf(f.message)==-1&&(e+=": "+f.message);if(f.stack)a:{f=f.stack;var B=e;try{f.indexOf(B)==-1&&(f=B+"\n"+f);let n;for(;f!=n;)n=f,f=f.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");e=f.replace(/\n */g,"\n");break a}catch(n){e=B;break a}e=void 0}return e}; pY=function(f,e,B,n){return GP(xY().C.C,()=>{let r,L;try{f.mu&&f.mu.C?(L=f.mu.start(e.toString(),3),r=B(),f.mu.end(L)):r=B()}catch(d){let t=f.rr;try{$Y(L),t=f.G(e,new aI(zD(d)),void 0,n)}catch(H){f.FM(217,H)}if(!t)throw d;}return r})()}; Y0=function(f,e,B,n){var r=cT;return GP(xY().C.C,(...L)=>pY(r,f,()=>e.apply(B,L),n))}; xT6=function(){var f=xY().J,e=AD>=0?Date.now()-jI-AD:-1;const B=Oz?Date.now()-jI-oI:-1,n=VX>=0?Date.now()-jI-VX:-1;let r;if(f==947190542)return 100;if(f==79463069)return 200;f=[2E3,4E3];r=[250,500,1E3];cT.FM(637,Error(),.001,void 0);let L=e;B!=-1&&B1500&&n<4E3?500:d}; lU=function(f){const e=f!==f.top,B=f.top===$C(f);let n=-1,r=0,L;e&&B&&f.top.mraid?(n=3,L=f.top.mraid):n=(L=f.mraid)?e?B?2:1:0:-1;L&&(L.IS_GMA_SDK||(r=2),uH(Wel,d=>typeof L[d]==="function")||(r=1)); return{IP:L,compatibility:r,jW:n}}; uU=function(f,e,B=!1){if(f&&e!==null&&e!=e.top){if(!e.top)return new g.uN(-12245933,-12245933);e=e.top}try{return B?(new g.uN(e.innerWidth,e.innerHeight)).round():Xl(e||window).round()}catch(n){return new g.uN(-12245933,-12245933)}}; FP=function(f,e,B){try{if(f){if(!e.top)return new YC(-12245933,-12245933,-12245933,-12245933);e=e.top}const {height:r,width:L}=uU(f,e,B);if(L===-12245933)return new YC(L,L,L,L);var n=Qa(e.document);const {x:d,y:t}=Ph(n.C);return new YC(t,d+L,t+r,d)}catch{return new YC(-12245933,-12245933,-12245933,-12245933)}}; Uz=function(f){return new YC(f.top,f.right,f.bottom,f.left)}; Nf=function(f){const e=f.top||0,B=f.left||0;return new YC(e,B+(f.width||0),e+(f.height||0),B)}; hD=function(f){return f!=null&&f>=0&&f<=1}; sx6=function(f,e=ZS){e!==null&&e!=e.top&&(e=e.top);let B=0,n=0;try{const r=e.document,L=r.body,d=r.documentElement;if(r.compatMode=="CSS1Compat"&&d.scrollHeight)B=d.scrollHeight!=f.height?d.scrollHeight:d.offsetHeight,n=d.scrollWidth!=f.width?d.scrollWidth:d.offsetWidth;else{let t=d.scrollHeight,H=d.scrollWidth,k=d.offsetHeight,C=d.offsetWidth;d.clientHeight!=k&&(t=L.scrollHeight,H=L.scrollWidth,k=L.offsetHeight,C=L.offsetWidth);t>f.height?t>k?(B=t,n=H):(B=k,n=C):tnE(f,e))||nE(f,"OMI/")&&!nE(f,"XiaoMi/")?!0:nE(f,"Presto")&&nE(f,"Linux")&&!nE(f,"X11")&&!nE(f,"Android")&&!nE(f,"Mobi"):!1}; ge=function(){return qa(yuY)}; SI=function(f,e){e&&e.screen&&(f.V=new g.uN(e.screen.width,e.screen.height))}; Ez=function(f,e){const B=f.C?new g.uN(Ab(f.C),f.C.getHeight()):new g.uN(0,0);f.W=sx6(B,e)}; TD=function(){var f=ge();if(f.U>0||f.K)return!0;f=RU().G.isVisible();const e=PN(QX)===0;return f||e}; JD=function(f){const e=g.ke(f.W);g.MH(e,B=>{B.Ed(f.C)}); f.C!=f||De(f)}; Mf=function(f,e){g.eB(f.W,e)||(f.W.push(e),e.Ed(f.C),e.U(f.V),e.ZC()&&(f.Cq=!0))}; GD=function(f){f.Cq=f.W.length?yG(f.W,e=>e.ZC()):!1}; x0=function(f){f=f.C;f.BS();f.Z9();var e=ge();e.X=FP(!1,f.J,e.isMobileDevice);Ez(ge(),f.J);f.V.C=f.kA()}; De=function(f){const e=g.ke(f.W);g.MH(e,B=>{B.U(f.V)})}; WT=function(f,e){return f.K?new YC(Math.max(e.top+f.K.top,e.top),Math.min(e.left+f.K.right,e.right),Math.min(e.top+f.K.bottom,e.bottom),Math.max(e.left+f.K.left,e.left)):e.clone()}; PHG=function(f){switch(Math.trunc(f.J)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; sz=function(f,e){return f.Je.J?!1:f.Ge.G?!1:typeof f.Ctypeof e.C?!1:f.C{f.add(B.G,B.C,PHG(B))})}; XP=function(f,e){rP(e,(B,n)=>{B===void 0||f.add(n,B,0)}); return f}; yX=function(f){var e=$TO;f.G&&(g.cB(f.C,(B,n)=>sz(n,B)?1:sz(B,n)?-1:0),f.G=!1); return sk(f.C,(B,n)=>{n=e(n);return`${B}${B!=""&&n!=""?"&":""}${n}`},"")}; g.PT=function(f){f&&typeof f.dispose=="function"&&f.dispose()}; g.II=function(f){for(let e=0,B=arguments.length;e{var r=f.C;if(!n.C&&(n.J(e,B),n.V())){n.C=!0;var L=n.G();const d=new iU;d.add("id","av-js");d.add("type","verif");d.add("vtype",n.W);n=qa(iFC);d.add("i",n.C++);d.add("adk",r);XP(d,L);r=new fwG(d);fn(r)}})}; B0G=function(f){return g.xg(f,(e,B,n)=>B>0?n[B]-n[B-1]:n[B])}; ej=function(f,e,B){f=g.xg(f.C,n=>e(n)); return B?f:B0G(f)}; B9=function(f,e=!0){return ej(f,B=>B.C,e)}; nn=function(f,e,B){const n=g.i0(f.G,r=>e<=r); return n==-1?0:B(f.C[n])}; rO=function(f,e){return nn(f,e,B=>B.C)}; Ln=function(f,e=!0){return ej(f,B=>B.J,e)}; dO=function(f,e){return nn(f,e,B=>B.J)}; td=function(f,e){return nn(f,e,B=>B.G)}; H9=function(f){g.MH(f.C,e=>{e.G=0})}; kb=function(f,e=!0){return Ln(f.G,e)}; wO=function(f,e){e=Cn(e);return e===0?0:Cn(f)/e}; Cn=function(f){return Math.max(f.bottom-f.top,0)*Math.max(f.right-f.left,0)}; nWg=function(f,e){if(!f||!e)return!1;let B=0;for(;f!==null&&B++<100;){if(f===e)return!0;try{if(f=f.parentElement||f){const n=Sy(f),r=n&&$2(n),L=r&&r.frameElement;L&&(f=L)}}catch(n){break}}return!1}; LBC=function(f,e,B){if(!f||!e)return!1;e=Om(f.clone(),-e.left,-e.top);f=(e.left+e.right)/2;e=(e.top+e.bottom)/2;IY(window.top)&&window.top&&window.top.document&&(window=window.top);if(!rsk())return!1;f=window.document.elementFromPoint(f,e);if(!f)return!1;e=(e=(e=Sy(B))&&e.defaultView&&e.defaultView.frameElement)&&nWg(e,f);const n=f===B;f=!n&&f&&vN(f,r=>r===B); return!(e||n||f)}; db5=function(f,e,B,n){return ge().J?!1:Ab(f)<=0||f.getHeight()<=0?!0:B&&n?v9(208,()=>LBC(f,e,B)):!1}; HEG=function(f){f=f.Sj.tj;var e;if(e=f&&f.getAttribute)e=/-[a-z]/.test("googleAvInapp")?!1:tUm&&f.dataset?"googleAvInapp"in f.dataset:f.hasAttribute?f.hasAttribute("data-"+CH()):!!f.getAttribute("data-"+CH());e&&(ge().G=!0)}; bC=function(f,e){e!=f.Nr&&(f.Nr=e,f=ge(),e?f.U++:f.U>0&&f.U--)}; Zr=function(f,e){if(f.Yu){if(e.getName()===f.Yu.getName())return;f.Yu.dispose();f.Yu=null}e=e.create(f.Sj.C,f.ih,f.ZC());if(e=e!=null&&e.observe()?e:null)f.Yu=e}; CR=function(f,e,B,n){if((f|48)==f){const L=e[B],d=L[Z[4]](Z[55]);d>0?Ra(57,n,L[Z[34]](0,d),L[Z[34]](d+1)):L&&(n[L]=Z[12]);var r=[]}if(!((f^36)&10))throw e;f-5>>3||(r=e!==null);f<<2&13||(k_(59,e),r=e[Z[24]]);return r}; Kn=function(f,e,B){if(!f.Ne||f.rl==-1||e.G===-1||f.Ne.G===-1)return 0;f=e.G-f.Ne.G;return f>B?0:f}; kcm=function(f,e,B){if(f.Yu){f.Yu.W();var n=f.Yu.PS,r=n.V,L=r.C;if(n.U!=null){var d=n.J;f.M1=new g.OE(d.left-L.left,d.top-L.top)}L=f.e0()?Math.max(n.C,n.W):n.C;d={};r.volume!==null&&(d.volume=r.volume);r=f.pJ(n);f.Ne=n;f.gi(L,e,B,!1,d,r,n.K)}}; CPk=function(f){if(f.N7&&f.It){var e=PB(f.ih,"od")==1,B=ge().C,n=f.It,r=f.Yu?f.Yu.getName():"ns",L=f.M1,d=new g.uN(Ab(B),B.getHeight());B=f.e0();f={Cu:r,M1:L,qV:d,e0:B,R6:f.qM.R6,mw:e};if(e=n.G){e.W();r=e.PS;L=r.V.C;var t=d=null;r.U!=null&&L&&(d=r.J,d=new g.OE(d.left-L.left,d.top-L.top),t=new g.uN(L.right-L.left,L.bottom-L.top));r=B?Math.max(r.C,r.W):r.C;B={Cu:e.getName(),M1:d,qV:t,e0:B,mw:!1,R6:r}}else B=null;B&&eug(n,f,B)}}; wEM=function(f,e,B){e&&(f.kM=e);B&&(f.Rp=B)}; g.q_=function(){}; g.zm=function(f){return{value:f,done:!1}}; vWl=function(f){const e={ptlt:g.u0()-f.W};var B=f.G;B&&(e.pnk=B);(B=f.J)&&(e.pnc=B);(B=f.V)&&(e.pnmm=B);(f=f.C)&&(e.pns=f);return e}; aa=function(f){return hD(f.volume)&&f.volume>0}; pn=function(f,e){const B={};if(f!==void 0)if(e!=null)for(const n in e){const r=e[n];n in Object.prototype||r!=null&&(B[n]=typeof r==="function"?r(f):f[r])}else g.sM(B,f);return yX(XP(new iU,B))}; c9=function(f,e){const B=f.G[e],n=B[1];f.J+=B[0];n>0&&f.C[e]==0&&(f.C[e]=1)}; bEl=function(f){const e=g.NT(f.G);let B=0;for(const n in f.C)g.eB(e,n)&&f.C[n]==1&&(B+=f.G[n][1],f.C[n]=2);return B}; ZEl=function(f){let e=0;for(const B in f.C){const n=f.C[B];if(n==1||n==2)e+=f.G[B][1]}return e}; Yb=function(f,e,B){let n=f.uY;Oz||B||f.K==-1||(n+=e-f.K);return n}; Ad=function(f){return[f.top,f.left,f.bottom,f.right]}; OZ=function(f){return f===void 0?f:Number(f)?jj(f,3):0}; oa=function(f,e,B){let n=f.length;for(;nMath.max(1E4,f.J/3)?0:e);var B=f.K(f)||{};B=B.currentTime!==void 0?B.currentTime:f.A;const n=B-f.A;let r=0;n>=0?(f.Cq+=e,f.PS+=Math.max(e-n,0),r=Math.min(n,f.Cq)):f.Z9+=Math.abs(n);n!=0&&(f.Cq=0);f.BS==-1&&n>0&&(f.BS=VX>=0?Date.now()-jI-VX:-1);f.A=B;return r}; uC=function(f){const e=!!PB(xY().ih,"umt");return f.Ed||!e&&!f.uY?0:1}; Ff=function(f,e){return f.cS[e!=null&&e=15E3?!0:f.MC?B?!0:f.J>0?e>=f.J/2:f.WS>0?e>=f.WS:!1:!1}; KBM=function(f,e){yG(f.U,B=>B.J==e.J)||f.U.push(e)}; UZ=function(f){const e=rO(f.iK().C,1);return mr(f,e)}; q0O=function(f){const e=jj(f.qM.R6,2),B=f.Zc.J;var n=f.qM,r=Ff(f);const L=OZ(r.V),d=OZ(r.U),t=OZ(n.volume),H=jj(r.X,2),k=jj(r.A,2),C=jj(n.R6,2),w=jj(r.Cq,2),v=jj(r.eI,2);n=jj(n.y5,2);const b=f.dn().clone().round();f=f.Yu&&f.Yu.J?(f.Yu?f.Yu.J:null).clone().round():null;r=kb(r,!1);return{au:e,t5:B,WR:L,r3:d,sz:t,Lt:H,cR:k,R6:C,QB:w,GU:v,y5:n,position:b,K0:f,ue:r}}; N_=function(f,e){oa(f.C,e,()=>({au:0,t5:void 0,WR:-1,r3:-1,sz:-1,Lt:-1,cR:-1,R6:-1,QB:-1,GU:-1,y5:-1,position:void 0,K0:void 0,ue:[]})); f.C[e]=q0O(f)}; aw5=function(f,e){if(g.eB(zu0,e))return!0;const B=f.CB[e];return B!==void 0?(f.CB[e]=!0,!B):!1}; gO=function(f,e,B,n,r){if(f.Fh)return{"if":0,vs:0};var L=f.dn().clone().round();const d=f.Yu?f.Yu.J:null,t=ge();var H=xY();const k=f.iK();var C=f.Yu?f.Yu.getName():"ns";const w={};w["if"]=t.J?1:void 0;w.sdk=f.V?f.V:void 0;w.t=f.timeCreated;w.p=[L.top,L.left,L.bottom,L.right];L&&d&&!jA(d,L)&&(L=d.round(),w.cp=[L.top,L.left,L.bottom,L.right]);w.tos=B9(k.G,!1);w.mtos=kb(k);w.mcvt=k.Z9.J;w.ps=void 0;L=Yb(k,Date.now()-jI,f.tb());w.vht=L;w.mut=k.qC.J;w.a=OZ(f.qM.volume);w.mv=OZ(k.U);w.fs=f.Nr?1:0;w.ft= k.Ed.C;w.at=k.W.C;w.as=k.V>0?1:0;w.atos=B9(k.C);w.ssb=B9(k.kA,!1);w.amtos=Ln(k.C,!1);w.uac=f.xA;w.vpt=k.J.C;C=="nio"&&(w.nio=1,w.avms="nio");w.gmm="4";w.gdr=mr(f,k.J.C,!0)?1:0;w.efpf=f.G6;if(C=="gsv"||C=="nis")C=f.Yu,C.Cq>0&&(w.nnut=C.Cq);w.tcm=uC(f);w.nmt=f.Z9;w.bt=f.PS;w.pst=f.BS;w.vpaid=f.Ed;w.dur=f.J;w.vmtime=f.A;w.is=f.Zc.J;f.C.length>=1&&(w.i0=f.C[0].t5,w.a0=[f.C[0].sz],w.c0=[f.C[0].R6],w.ss0=[f.C[0].y5],C=f.C[0].position,L=f.C[0].K0,w.p0=C?Ad(C):void 0,C&&L&&!jA(L,C)&&(w.cp0=Ad(L)));f.C.length>= 2&&(w.i1=f.C[1].t5,w.a1=V8(f.C[1].WR,f.C[1].sz,f.C[1].r3),w.c1=V8(f.C[1].Lt,f.C[1].R6,f.C[1].cR),w.ss1=V8(f.C[1].QB,f.C[1].y5,f.C[1].GU),C=f.C[1].position,L=f.C[1].K0,w.p1=C?Ad(C):void 0,C&&L&&!jA(L,C)&&(w.cp1=Ad(L)),w.mtos1=f.C[1].ue);f.C.length>=3&&(w.i2=f.C[2].t5,w.a2=V8(f.C[2].WR,f.C[2].sz,f.C[2].r3),w.c2=V8(f.C[2].Lt,f.C[2].R6,f.C[2].cR),w.ss2=V8(f.C[2].QB,f.C[2].y5,f.C[2].GU),C=f.C[2].position,L=f.C[2].K0,w.p2=C?Ad(C):void 0,C&&L&&!jA(L,C)&&(w.cp2=Ad(L)),w.mtos2=f.C[2].ue);f.C.length>=4&&(w.i3= f.C[3].t5,w.a3=V8(f.C[3].WR,f.C[3].sz,f.C[3].r3),w.c3=V8(f.C[3].Lt,f.C[3].R6,f.C[3].cR),w.ss3=V8(f.C[3].QB,f.C[3].y5,f.C[3].GU),C=f.C[3].position,L=f.C[3].K0,w.p3=C?Ad(C):void 0,C&&L&&!jA(L,C)&&(w.cp3=Ad(L)),w.mtos3=f.C[3].ue);w.cs=ZEl(f.Zc);e&&(w.ic=bEl(f.Zc),w.dvpt=k.J.G,w.dvs=td(k.G,.5),w.dfvs=td(k.G,1),w.davs=td(k.C,.5),w.dafvs=td(k.C,1),B&&(k.J.G=0,H9(k.G),H9(k.C)),f.K$()&&(w.dtos=k.cS,w.dav=k.N,w.dtoss=f.Rh+1,B&&(k.cS=0,k.N=0,f.Rh++)),w.dat=k.W.G,w.dft=k.Ed.G,B&&(k.W.G=0,k.Ed.G=0));w.ps=[t.W.width, t.W.height];w.bs=[Ab(t.C),t.C.getHeight()];w.scs=[t.V.width,t.V.height];w.dom=t.domain;f.gk&&(w.vds=f.gk);if(f.U.length>0||f.Dx)e=g.ke(f.U),f.Dx&&e.push(f.Dx),w.pings=g.xg(e,v=>v.toString()); e=g.xg(g.GO(f.U,v=>v.U()),v=>v.getId()); kOH(e);w.ces=e;f.G&&(w.vmer=f.G);f.N&&(w.vmmk=f.N);f.eI&&(w.vmiec=f.eI);w.avms=f.Yu?f.Yu.getName():"ns";f.Yu&&g.sM(w,f.Yu.i_());n?(w.c=jj(f.qM.R6,2),w.ss=jj(f.qM.y5,2)):w.tth=Date.now()-jI-hd;w.mc=jj(k.A,2);w.nc=jj(k.X,2);w.mv=OZ(k.U);w.nv=OZ(k.V);w.lte=jj(f.Mg,2);n=Ff(f,r);kb(k);w.qmtos=kb(n);w.qnc=jj(n.X,2);w.qmv=OZ(n.U);w.qnv=OZ(n.V);w.qas=n.V>0?1:0;w.qi=f.tC;w.avms||(w.avms="geo");w.psm=k.WS.C;w.psv=k.WS.getValue();w.psfv=k.Fl.getValue();w.psa=k.BS.getValue();H=zMg(H.ih);H.length&&(w.veid=H); f.W&&g.sM(w,vWl(f.W));w.avas=f.NF();w.vs=f.ZX();w.co=pEd(f);w.tm=k.PS;w.tu=k.Lq;return w}; EZ=function(f,e,B){var n=f.KS[e];if(n!=null)return n;n=aw5(f,e);const r=SB(Sj,L=>L==e); f=gO(f,n,n,B,cs6[Sj[r]]);e=="fully_viewable_audible_half_duration_impression"&&(f.std="csm");return f}; pEd=function(f){var e=f.Lq.toString(10).padStart(2,"0");e=`${f.Ch}${e}`;f.Lq<99&&f.Lq++;return e}; Tm=function(f,e,B){Q8(B,"mousedown",()=>Y0C(f),301); Q8(e,"scroll",()=>AsC(f),302); Q8(B,"touchmove",()=>j25(f),303); Q8(B,"mousemove",()=>OE6(f),304); Q8(B,"keydown",()=>oWg(f),305)}; VU5=function(){var f=document.documentElement;try{if(!IY($2().top))return"2";var e;let B=[];const n=$2(f.ownerDocument);for(f=n;f!=n.top;f=f.parent)if(f.frameElement)B.push(f.frameElement);else break;return(e=B)&&e.length!=0?"1":"0"}catch(B){return"2"}}; Y0C=function(f){g.OM(f.C,e=>{e.J>1E5||++e.J})}; AsC=function(f){g.OM(f.C,e=>{e.C>1E5||++e.C})}; j25=function(f){g.OM(f.C,e=>{e.C>1E5||++e.C})}; OE6=function(f){g.OM(f.C,e=>{e.V>1E5||++e.V})}; oWg=function(f){g.OM(f.C,e=>{e.G>1E5||++e.G})}; Dr=function(f,e){return g.$g(f.C,B=>B.tC==e)}; Jd=function(f,e){return e?g.$g(f.C,B=>B.Sj.tj==e):null}; lw5=function(f,e){return g.$g(f.G,B=>B.Aa()==2&&B.tC==e)}; Gm=function(){var f=M_;return f.C.length==0?f.G:f.G.length==0?f.C:g.HB(f.G,f.C)}; xb=function(f,e){f=e.Aa()==1?f.C:f.G;const B=Id(f,n=>n==e); return B!=-1?(f.splice(B,1),e.Yu&&e.Yu.unobserve(),e.dispose(),!0):!1}; uLg=function(f){var e=M_;let B;if(xb(e,f)){switch(f.Aa()){case 0:B=()=>null; case 2:B=()=>lw5(e,f.tC); break;case 1:B=()=>Dr(e,f.tC)}for(let n=B();n;n=B())xb(e,n)}}; FBC=function(f){var e=M_;f=g.GO(f,B=>!Jd(e,B.Sj.tj)); e.C.push(...f)}; mbM=function(f){var e=M_;const B=[];g.MH(f,n=>{yG(e.C,r=>r.Sj.tj===n.Sj.tj&&r.tC===n.tC)||(e.C.push(n),B.push(n))})}; W9=function(f,e){if(f.G==null)return!1;const B=(n,r)=>{e(n,r)}; f.C=g.$g(f.G,n=>n!=null&&n.A()); f.C&&(f.C.init(B)?x0(f.C.C):e(f.C.C.N(),f.C));return f.C!=null}; Ub5=function(f){if(!f.length)return[];f=g.GO(f,e=>e!=null&&e.cS()); for(let e=1;esZ(f,r)),N05); n=GP(n,()=>{f.V.unobserve(e);f.V.observe(e);sZ(f,Xf(f))}); B.ResizeObserver?(f.cS=new B.ResizeObserver(n),f.cS.observe(e)):B.MutationObserver&&(f.Cq=new g.Kw.MutationObserver(n),f.Cq.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));f.V.observe(e);sZ(f,Xf(f));return!0}; Xf=function(f){return f.V&&f.V.takeRecords?f.V.takeRecords():[]}; sZ=function(f,e){try{if(e.length){f.Lq||(f.Lq=Date.now()-jI);var B=gWw(e),n=Jb(f.element,f.G.C.J),r=n.x,L=n.y;f.J=new YC(Math.round(L),Math.round(r)+B.boundingClientRect.width,Math.round(L)+B.boundingClientRect.height,Math.round(r));f.C=WT(f,f.J);var d=Uz(B.intersectionRect);f.A=Om(d,f.J.left-d.left,f.J.top-d.top)}}catch(t){f.unobserve(),cT.FM(299,t,void 0,void 0)}}; gWw=function(f){return sk(f,(e,B)=>e.time>B.time?e:B,f[0])}; y8=function(){xY();const f=ge();return f.J||f.G?0:2}; S0k=function(f,e){if(!f.V){e=Y0(142,e);RU();var B;QX.visibilityState?B="visibilitychange":QX.mozVisibilityState?B="mozvisibilitychange":QX.webkitVisibilityState&&(B="webkitvisibilitychange");B&&y_(QX,B,e,{capture:!1})&&(f.V=e)}}; $b=function(f){const e=TD(),B=Date.now()-jI;e?(Oz||(oI=B,g.MH(M_.C,n=>{var r=n.iK();r.uY=Yb(r,B,n.c9!=1)})),Oz=!0):(f.U=P9(f,B),Oz=!1,hd=B,g.MH(M_.C,n=>{n.N7&&(n.iK().K=B)})); Ia(f,Gm(),!e)}; fd=function(){var f=iC;f.W||(f.W=!0,S0k(f,(...e)=>$b(f,...e)),$b(f))}; Ia=function(f,e,B){if(!f.done&&(f.G.cancel(),e.length!=0)){f.J=null;try{EW5();var n=Date.now()-jI;xY().W=n;if(qa(ew).C!=null)for(let r=0;r{r.qM.R6=0}):f.G.schedule()}}}; EW5=function(){qa(Bs);const f=qa(ew);f.C!=null&&f.C.C?x0(f.C.C):ge().update(ZS)}; P9=function(f,e){f=f.U;Oz&&(f+=e-oI);return f}; nd=function(){const f=qa(ew);if(f.C!=null){var e=f.C;g.MH(Gm(),B=>Zr(B,e))}}; T0C=function(f=()=>({})){var e=iC; cT.Sm="av-js";rg.C=.01;Q2Y([B=>{var n=xY(),r={bin:n.G,type:"error"};n=Ix(n.ih);if(!e.J){var L=ZS.document,d=AD>=0?Date.now()-jI-AD:-1;const C=Date.now()-jI;e.C.xb==-1&&(d=C);const w=ge(),v=xY(),b=Ix(v.ih),K=Gm();try{if(K.length>0){var t=w.C;t&&(b.bs=[Ab(t),t.getHeight()]);var H=w.W;H&&(b.ps=[H.width,H.height]);ZS.screen&&(b.scs=[ZS.screen.width,ZS.screen.height])}else b.url=encodeURIComponent(ZS.location.href.substring(0,512)),L.referrer&&(b.referrer=encodeURIComponent(L.referrer.substring(0,512))); b.tt=d;b.pt=AD;b.bin=v.G;ZS.google_osd_load_pub_page_exp!==void 0&&(b.olpp=ZS.google_osd_load_pub_page_exp);b.deb=[1,e.C.Hf,e.C.ME,e.C.Kn,e.C.xb,0,e.G.G,e.C.bJ,e.C.GI,e.C.eB,e.C.ou,-1].join(";");b.tvt=P9(e,C);w.G&&(b.inapp=1);if(ZS!==null&&ZS!=ZS.top){K.length>0&&(b.iframe_loc=encodeURIComponent(ZS.location.href.substring(0,512)));var k=w.X;b.is=[Ab(k),k.getHeight()]}}catch(Y){b.error=1}e.J=b}t=g.GL(e.J);H=xY().C;PB(H.J,"prf")==1?(k=new Ld,L=H.C,d=0,L.C>-1&&(d=L.J.C.now()-L.C),k=N7(k,1,w8(L.V+d), 0),L=H.C,k=N7(k,5,qZ(L.C>-1?L.G+1:L.G),0),k=N7(k,2,lE(H.G.C.J()),"0"),k=N7(k,3,lE(H.G.C.G()),"0"),H=N7(k,4,lE(H.G.C.C()),"0"),H={pf:g.ON(H.G())}):H={};g.sM(t,H);g.sM(B,r,n,t,f())}])}; DbG=function(){var f=dg||ZS;if(!f)return"";const e=[];if(!f.location||!f.location.href)return"";e.push(`${"url"}=${encodeURIComponent(f.location.href.substring(0,512))}`);f.document&&f.document.referrer&&e.push(`${"referrer"}=${encodeURIComponent(f.document.referrer.substring(0,512))}`);return e.join("&")}; tV=function(){let f="youtube.player.web_20260208_10_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20260208_10_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20260208_10_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20260208_10_RC00".match(/_(\d{8})_\d+_RC\d+$/);if(f?.length==2)return f[1];f="youtube.player.web_20260208_10_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);return f?.length==3?"20"+f[1]+f[2]:null}; MUH=function(f){try{const e=f.split(",");return e.length>g.NT(JsG).length?null:sk(e,(B,n)=>{n=n.toLowerCase().split("=");if(n.length!=2||Hs[n[0]]===void 0||!Hs[n[0]](n[1]))throw Error(`Entry (${n[0]}, ${n[1]}) is invalid.`);B[n[0]]=n[1];return B},{})}catch(e){return null}}; Gcd=function(f,e){if(f.C==void 0)return 0;switch(f.W){case "mtos":return f.G?dO(e.C,f.C):dO(e.G,f.C);case "tos":return f.G?rO(e.C,f.C):rO(e.G,f.C)}return 0}; xbG=function(f){const e=xY(),B=qa(kx);f&&!e.V&&(e.V=!0,B.tL=!0,B.K&&B.fail("w",!0))}; wg=function(){try{const f=qa(kx);Cd(f,"removeEventListener","ready",wg);vs(f)}catch(f){cT.FM(541,f,void 0,void 0)}}; ZD=function(f,e){try{var B=qa(kx);B.PS=!0;let r;r=f?new YC(f.y,f.x+f.width,f.y+f.height,f.x):new YC(0,0,0,0);const L=Date.now()-jI,d=TD();var n=new bM(L,d,B);n.C=r;n.volume=e;B.U(n)}catch(r){cT.FM(542,r,void 0,void 0)}}; vs=function(f){typeof f.G.IP.AFMA_LIDAR==="string"?(f.Lq=!0,WBG(f)):(f.G.compatibility=3,f.K="nc",f.fail("w"))}; Cd=function(f,e,...B){try{return f.G.IP[e].apply(f.G.IP,B)}catch(n){s2k(n,r=>{r.method=e})}}; Rn=function(f,e,B){Cd(f,"addEventListener",e,B)}; Kd=function(f){xY().V=!!Cd(f,"isViewable");Rn(f,"viewableChange",xbG);Cd(f,"getState")==="loading"?Rn(f,"ready",wg):vs(f)}; WBG=function(f){f.PS=!1;const e=PB(xY().ih,"rmmt")==1,B=!!Cd(f,"isViewable");(e?!B:1)&&RU().setTimeout(qx(524,()=>{f.PS||(zC(f),cT.FM(540,Error(),void 0,void 0),f.K="mt",f.fail("w"))}),500); XEO(f);Rn(f,f.G.IP.AFMA_LIDAR,ZD)}; zC=function(f){Cd(f,"removeEventListener",f.G.IP.AFMA_LIDAR,ZD);f.Lq=!1}; XEO=function(f){var e=PB(xY().ih,"sneio")==1;const B=f.G.IP.AFMA_LIDAR_EXP_1!==void 0,n=f.G.IP.AFMA_LIDAR_EXP_2!==void 0;(e=e&&n)&&(f.G.IP.AFMA_LIDAR_EXP_2=!0);B&&(f.G.IP.AFMA_LIDAR_EXP_1=!e)}; an=function(f,e){if(Cd(f,"getState")==="loading")return new g.uN(-1,-1);e=Cd(f,e);if(!e)return new g.uN(-1,-1);f=parseInt(e.width,10);e=parseInt(e.height,10);return isNaN(f)||isNaN(e)?new g.uN(-1,-1):new g.uN(f,e)}; cs=function(){const f=ge();return{sv:"968",...(pd!==null&&{v:pd}),["if"]:f.J?"1":"0",nas:String(M_.C.length)}}; Yx=function(f,e){const B=f[e];B!==void 0&&B>0&&(f[e]=Math.floor(B*1E3))}; ys0=function(f){T0C(()=>{const e=cs();f.G!=null&&(e.sdk=f.G);const B=qa(ew);B.C!=null&&(e.avms=B.C.getName());return e})}; AV=function(f,e,B,n){f=f.A(null,n,!0,e);f.V=B;FBC([f]);return f}; PPl=function(f,e,B){e.Fh=!0;switch(e.Aa()){case 1:jw(e,B);break;case 2:f.Z9(e)}}; iEd=function(f,e,B){ZwO(e);const n=f.C;g.MH(e,r=>{const L=g.xg(r.criteria,d=>{var t=MUH(d);if(t==null)d=null;else if(d=new Iw0,t.visible!=null&&(d.C=t.visible/100),t.audible!=null&&(d.G=t.audible==1),t.time!=null){const H=t.timetype=="mtos"?"mtos":"tos",k=fE(t.time,"%")?"%":"ms";t=parseInt(t.time,10);k=="%"&&(t/=100);d.setTime(t,k,H)}return d}); yG(L,d=>d==null)||KBM(B,new $b5(r.id,r.event,L,n))})}; rjG=function(){const f=[];var e=xY();f.push(qa(fm0));PB(e.ih,"mvp_lv")&&f.push(qa(kx));e=[new erl,new Brm];e.push(new n2k(f));e.push(new O1(ZS));return e}; Vy=function(){const f=[new O1(ZS)],e=qa(ew);e.G=f;W9(e,()=>{on("i")})?iC.done||(nd(),fd()):on("i")}; L$g=function(f){if(!f.isInitialized){f.isInitialized=!0;try{const n=Date.now()-jI,r=xY(),L=ge();AD=n;r.J=79463069;f.G!=="o"&&(dg=$C(ZS));if(HF5()){iC.C.ME=0;iC.C.xb=Date.now()-jI-n;var e=rjG(),B=qa(ew);B.G=e;W9(B,()=>{Vy()})?iC.done||(nd(),Mf(B.C.C,f),fd()):L.J?Vy():fd()}else lM=!0}catch(n){throw M_.reset(),n; }}}; on=function(f){iC.G.cancel();uM=f;iC.done=!0}; Fg=function(f){if(f.G)return f.G;const e=qa(ew).C;if(e)switch(e.getName()){case "nis":f.G="n";break;case "gsv":f.G="m"}f.G||(f.G="h");return f.G}; U1=function(f,e,B){if(f.C==null)return e.gk|=4,!1;f=mX(f.C,B,e);e.gk|=f;return f==0}; jw=function(f,e){if(!f.IA){var B=EZ(f,"start",TD());B=f.No.C(B).C;var n={id:"lidarv"};n.r=e;n.sv="968";pd!==null&&(n.v=pd);tD(B,(r,L)=>n[r]=r=="mtos"||r=="tos"?L:encodeURIComponent(L)); e=DbG();tD(e,(r,L)=>n[r]=encodeURIComponent(L)); e="//pagead2.googlesyndication.com/pagead/gen_204?"+yX(XP(new iU,n));fn(e);f.IA=!0}}; Nx=function(f,e,B){Ia(iC,[f],!TD());N_(f,B);B!=4&&oa(f.cS,B,f.rE);return EZ(f,e,TD())}; doO=function(f,e,B,n){let r;r=Jd(M_,B);r!==null&&r.tC!==e&&(f.K(r),r=null);r||(e=f.A(B,Date.now()-jI,!1,e),M_.G.length==0&&(xY().J=79463069),mbM([e]),r=e,r.V=Fg(f),n&&(r.Fl=n));return r}; mX=function(f,e,B){f=f.G();if(typeof f==="function"){var n={...(pd!==null&&{v:pd}),sv:"968",cb:hV,e:tyg(e)};const r=EZ(B,e,TD());g.sM(n,r);B.KS[e]=r;n=B.Aa()==2?HHO(n).join("&"):B.No.C(n).C;try{return f(B.tC,n,e),0}catch(L){return 2}}else return 1}; tyg=function(f){const e=$e(f,"custom_metric_viewable")?"custom_metric_viewable":f;f=SB(Sj,B=>B==e); return gg[f]}; Sw=function(f){return{viewability:f.C,googleViewability:f.G}}; TC=function(f,e,B={}){f=E1(qa(Qy),e,B,f);return Sw(f)}; E1=function(f,e,B={},n){var r={};g.sM(r,{opt_adElement:void 0,opt_fullscreen:void 0},B);var L=f.N(e,B);B=L?L.No:f.cS();if(r.opt_bounds)return B.C(DD("ol",n));if(n!==void 0)if(Mx(n)!==void 0)if(lM)f=DD("ue",n);else if(L$g(f),uM=="i")f=DD("i",n),f["if"]=0;else if(e=f.N(e,r)){b:{uM=="i"&&(e.Fh=!0);L=r.opt_fullscreen;L!==void 0&&bC(e,!!L);if(L=!ge().G)(L=nE(g.d0(),"CrKey")&&!(nE(g.d0(),"CrKey")&&nE(g.d0(),"SmartSpeaker"))||nE(g.d0(),"PlayStation")||nE(g.d0(),"Roku")||XBk()||nE(g.d0(),"Xbox"))||(L=g.d0(), L=nE(L,"AppleTV")||nE(L,"Apple TV")||nE(L,"CFNetwork")||nE(L,"tvOS")),L||(L=g.d0(),L=nE(L,"sdk_google_atv_x86")||nE(L,"Android TV")),L=!L;L&&(RU(),L=PN(QX)===0);var d=L;if(d){switch(e.Aa()){case 1:jw(e,"pv");break;case 2:f.Z9(e)}on("pv")}L=n.toLowerCase();if(!d&&(PB(xY().ih,"ssmol")&&L==="loaded"?0:g.eB(ke0,L))&&e.c9==0){uM!="i"&&(iC.done=!1);d=r!==void 0?r.opt_nativeTime:void 0;VX=d=typeof d==="number"?d:Date.now()-jI;e.N7=!0;var t=TD();e.c9=1;e.CB={};e.CB.start=!1;e.CB.firstquartile=!1;e.CB.midpoint= !1;e.CB.thirdquartile=!1;e.CB.complete=!1;e.CB.resume=!1;e.CB.pause=!1;e.CB.skip=!1;e.CB.mute=!1;e.CB.unmute=!1;e.CB.viewable_impression=!1;e.CB.measurable_impression=!1;e.CB.fully_viewable_audible_half_duration_impression=!1;e.CB.fullscreen=!1;e.CB.exitfullscreen=!1;e.Rh=0;t||(e.iK().K=d);Ia(iC,[e],!t)}(d=e.Hb[L])&&c9(e.Zc,d);PB(xY().ih,"fmd")||g.eB(Hi,L)&&e.Dx&&e.Dx.G(e,null);let H;switch(e.Aa()){case 1:H=$e(L,"custom_metric_viewable")?f.kA.custom_metric_viewable:f.kA[L];break;case 2:H=f.lC[L]}if(H&& (n=H.call(f,e,r,n),PB(xY().ih,"fmd")&&g.eB(Hi,L)&&e.Dx&&e.Dx.G(e,null),n!==void 0)){r=DD(void 0,L);g.sM(r,n);n=r;break b}n=void 0}e.c9==3&&f.K(e);f=n}else f=DD("nf",n);else f=void 0;else lM?f=DD("ue"):L?(f=DD(),g.sM(f,gO(L,!0,!1,!1))):f=DD("nf");return typeof f==="string"?B.C():B.C(f)}; CN0=function(f,e,B){let n=Dr(M_,e);n||(n=AV(f,e,"n",B.opt_nativeTime||-1));return n}; whC=function(f,e,B){var n=Dr(M_,e);n||(n=B.opt_nativeTime||-1,n=AV(f,e,Fg(f),n),B.opt_osdId&&(n.Fl=B.opt_osdId));return n}; v2d=function(f,e){let B=Dr(M_,e);B||(B=AV(f,e,"h",-1));return B}; bHY=function(f,e,B){B=B.opt_configurable_tracking_events;f.C!=null&&Array.isArray(B)&&iEd(f,B,e)}; ZHO=function(f){xY();switch(Fg(f)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; kP=function(f,e){e&&(f.Cq=e)}; Cg=function(f,...e){e=e.filter(Boolean).join("&");if(!e)return f;const B=f.match(/[?&]adurl=/);return B?f.slice(0,B.index+1)+e+"&"+f.slice(B.index+1):f+(f.indexOf("?")<0?"?":"&")+e}; wV=function(f,e){return e?"&"+f+"="+encodeURIComponent(e):""}; RrY=function(f){f=f.V;if(!f)return"";let e=wV("uap",f.platform)+wV("uapv",f.platformVersion)+wV("uafv",f.uaFullVersion)+wV("uaa",f.architecture)+wV("uam",f.model)+wV("uab",f.bitness);f.fullVersionList&&(e+="&uafvl="+encodeURIComponent(f.fullVersionList.map(B=>encodeURIComponent(B.brand)+";"+encodeURIComponent(B.version)).join("|"))); f.wow64!=null&&(e+="&uaw="+Number(f.wow64));return e.slice(1)}; K$G=function(f,e,B,n,r){var L=window,d;B?d="//pagead2.googlesyndication.com/bg/"+LH(B)+".js":d="";B=L.document;const t={};e&&(t._scs_=e);t._bgu_=d;t._bgp_=n;t._li_="v_h.3.0.0.0";r&&(t._upb_=r);(e=L.GoogleTyFxhY)&&typeof e.push=="function"||(e=L.GoogleTyFxhY=[]);e.push(t);e=Qa(B).createElement("SCRIPT");e.type="text/javascript";e.async=!0;f=(0,g.hj)`//tpc.googlesyndication.com/sodar/${LH(f)+".js"}`;g.y2(e,f);(L=(L.GoogleTyFxhYEET||{})[e.src])?L():B.getElementsByTagName("head")[0].appendChild(e)}; bi=function(f="bevasrsg"){return new Promise(e=>{if(window===window.top)var B=window;else{try{B=!!window?.top?.location.href&&!1}catch(r){B=!0}B=B?window:window.top}let n=B[f];n?.bevasrs?e(new vi(n.bevasrs)):(n||(n={nqfbel:[]},B[f]=n),n.nqfbel.push(r=>{e(new vi(r))}))})}; Z1=function(f){const e={c:f.KV,e:f.Yt,mc:f.xS,me:f.IB};f.xr&&(e.co={c:f.xr.hw,a:f.xr.Ob,s:f.xr.q4});return e}; qE0=function(f){f.G!==void 0&&(f.J.forEach(e=>{f.G?.removeEventListener(e,f.V)}),f.G=void 0)}; am6=async function(f){if(!f.eU.wpc)throw new RK(30,"NWA");if(f.C)return f.C;const e=await f.eU.wpc();f.C=new zrm(e);return f.C}; qD=function(f){const e=[];Pr(f,Kg,6).forEach(B=>{g.BU(B,2)<=53&&e.push(g.BU(B,1))}); return e}; phw=function(f){const e=[];Pr(f,Kg,6).forEach(B=>{g.BU(B,2)>53&&e.push(g.BU(B,1))}); return e}; zW=function(f){f.then(()=>{},()=>{})}; aK=function(f){return{fieldType:2,fieldName:f}}; g.pg=function(f){return{fieldType:3,fieldName:f}}; cj0=function(f,e){return Ul(f,e,Ku)}; li=function(f){var e=new ci;e=kl(e,1,f.G);var B=YEG(f);e=Ul(e,B,pB0);B=[];const n=[];for(var r of f.C.keys())n.push(r.split(","));for(r=0;r>>31)&4294967295;w=r[0];var K=r[1],Y=r[2],l=r[3],m=r[4];for(b=0;b<80;b++){if(b<40)if(b<20){var F=l^K&(Y^l);var N=1518500249}else F=K^Y^l,N=1859775393;else b<60?(F=K&Y|l&(K|Y),N=2400959708):(F=K^Y^l,N=3395469782);F=((w<<5|w>>>27)&4294967295)+F+m+N+v[b]&4294967295;m=l;l=Y;Y=(K<<30|K>>>2)&4294967295;K=w;w=F}r[0]=r[0]+w&4294967295;r[1]=r[1]+K&4294967295;r[2]= r[2]+Y&4294967295;r[3]=r[3]+l&4294967295;r[4]=r[4]+m&4294967295} function B(w,v){if(typeof w==="string"){w=unescape(encodeURIComponent(w));for(var b=[],K=0,Y=w.length;K=56;b--)L[b]=v&255,v>>>=8;e(L);for(b=v=0;b<5;b++)for(var K=24;K>=0;K-=8)w[v++]=r[b]>>K&255;return w} for(var r=[],L=[],d=[],t=[128],H=1;H<64;++H)t[H]=0;var k,C;f();return{reset:f,update:B,digest:n,uJ:function(){for(var w=n(),v="",b=0;b{var r=new Q4;r=kl(r,1,n.brand);return kl(r,2,n.version)})); typeof f.mobile==="boolean"&&Y1(Ey,2,bE(f.mobile));D1=f.getHighEntropyValues(e)}const B=new Set(e);return D1.then(n=>{const r=Ey.clone();B.has("platform")&&kl(r,3,n.platform);B.has("platformVersion")&&kl(r,4,n.platformVersion);B.has("architecture")&&kl(r,5,n.architecture);B.has("model")&&kl(r,6,n.model);B.has("uaFullVersion")&&kl(r,7,n.uaFullVersion);return r.VD()}).catch(()=>Ey.VD())}; J4=function(f){return wf(f,1,1)}; Wi=function(f,e){$1(f.C,MD,1,e);Lt(e,1)||J4(e);f.MN||(e=GW(f),rf(e,5)||kl(e,5,f.locale));f.uach&&(e=GW(f),sl(e,xP,9)||$1(e,xP,9,f.uach))}; GW=function(f){var e=sl(f.C,MD,1);e||(e=new MD,Wi(f,e));f=e;e=sl(f,sy,11);e||(e=new sy,$1(f,sy,11,e));return e}; lmC=function(f,e){f.G=e}; F$0=function(f){const e=f.MN?void 0:$2();e?VyC(e,TW).then(B=>{f.uach=uld(B??"[]");B=GW(f);$1(B,xP,9,f.uach);return!0}).catch(()=>!1):Promise.resolve(!1)}; g.Xj=function(f,e,B,n){this.V=f;this.W=e;this.C=this.J=f;this.U=B||0;this.X=n||2}; g.y4=function(f){f.C=Math.min(f.W,f.C*f.X);f.J=Math.min(f.W,f.C+(f.U?Math.round(f.U*(Math.random()-.5)*2*f.C):0));f.G++}; Pi=function(){return"https://play.google.com/log?format=json&hasfast=true"}; mod=function(f,e){if(!f.WS)return()=>{}; const B=()=>{f.flush()}; return e?()=>{e().then(B)}:B}; IK=function(f){f.J.isFinal=!0;f.flush();f.J.isFinal=!1}; $P=function(f){f.K||(f.K=Pi());try{return(new URL(f.K)).toString()}catch(e){return(new URL(f.K,$2().location.origin)).toString()}}; Nrm=function(f){UoH(f,(e,B)=>{e=new URL(e);e.searchParams.set("format","json");let n=!1;try{n=$2().navigator.sendBeacon(e.toString(),B.VD())}catch{}n||(f.N=!1);return n})}; hrg=function(f,e,B=null,n=f.withCredentials){const r={},L=new URL($P(f));B&&(r.Authorization=B);f.sessionIndex&&(r["X-Goog-AuthUser"]=f.sessionIndex,L.searchParams.set("authuser",f.sessionIndex));f.pageId&&(Object.defineProperty(r,"X-Goog-PageId",{value:f.pageId}),L.searchParams.set("pageId",f.pageId));return{url:L.toString(),body:e,Ot:1,requestHeaders:r,requestType:"POST",withCredentials:n,timeoutMillis:f.timeoutMillis}}; UoH=function(f,e){if(f.C.length!==0){var B=new URL($P(f));B.searchParams.delete("format");var n=f.BH();n&&B.searchParams.set("auth",n);B.searchParams.set("authuser",f.sessionIndex||"0");for(n=0;n<10&&f.C.length;++n){const r=f.C.slice(0,32),L=f.J.build(r,f.V,f.U,f.hW,f.A,f.Ed);if(!e(B.toString(),L)){++f.U;break}f.V=0;f.U=0;f.A=0;f.Ed=0;f.C=f.C.slice(r.length)}f.G.enabled&&f.G.stop()}}; g2G=function(f,e){f.buildLabel=e;return f}; E2C=function(f){f.network=new SEk;return f}; QAC=function(f,e){f.C=e}; Trk=function(f){f.G=!0;return f}; AjM=function(f){return f.fields.map(e=>e.fieldType)}; YP=function(f,...e){e=ii(e);return f.C.has(e)?f.C.get(e):void 0}; YEG=function(f){return f.fields.map(e=>e.fieldName)}; ii=function(...f){return f?f.join(","):"key"}; g.fI=function(f,e){this.type=f;this.currentTarget=this.target=e;this.defaultPrevented=this.G=!1}; ek=function(f,e){g.fI.call(this,f?f.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.C=null;f&&this.init(f,e)}; nI=function(f){return!(!f||!f[B7])}; Jjg=function(f,e,B,n,r){this.listener=f;this.proxy=null;this.src=e;this.type=B;this.capture=!!n;this.handler=r;this.key=++Dog;this.removed=this.N_=!1}; rK=function(f){f.removed=!0;f.listener=null;f.proxy=null;f.src=null;f.handler=null}; LI=function(f){this.src=f;this.listeners={};this.C=0}; g.dK=function(f,e){const B=e.type;B in f.listeners&&g.d2(f.listeners[B],e)&&(rK(e),f.listeners[B].length==0&&(delete f.listeners[B],f.C--))}; to=function(f,e,B,n){for(let r=0;r1)));d=d.next)r||(L=d);r&&(B.C==0&&n==1?Jo(B,e):(L?(n=L,n.next==B.V&&(B.V=n),n.next=n.next.next):Mp(B),G_(B,r,3,e)))}f.J=null}else l5(f,3,e)}; QP=function(f,e){f.G||f.C!=2&&f.C!=3||xc(f);f.V?f.V.next=e:f.G=e;f.V=e}; sY=function(f,e,B,n){const r=UY(null,null,null);r.C=new g.u5(function(L,d){r.J=e?function(t){try{const H=e.call(n,t);L(H)}catch(H){d(H)}}:L; r.G=B?function(t){try{const H=B.call(n,t);H===void 0&&t instanceof W7?d(t):L(H)}catch(H){d(H)}}:d}); r.C.J=f;QP(f,r);return r.C}; l5=function(f,e,B){f.C==0&&(f===B&&(e=3,B=new TypeError("Promise cannot resolve to itself")),f.C=1,gK(B,f.Yv,f.Xe,f)||(f.X=B,f.C=e,f.J=null,xc(f),e!=3||B instanceof W7||Xh5(f,B)))}; gK=function(f,e,B,n){if(f instanceof g.u5)return T_(f,e,B,n),!0;if(f)try{var r=!!f.$goog_Thenable}catch(L){r=!1}else r=!1;if(r)return f.then(e,B,n),!0;if(g.jC(f))try{const L=f.then;if(typeof L==="function")return yjG(f,L,e,B,n),!0}catch(L){return B.call(n,L),!0}return!1}; yjG=function(f,e,B,n,r){function L(H){t||(t=!0,n.call(r,H))} function d(H){t||(t=!0,B.call(r,H))} let t=!1;try{e.call(f,d,L)}catch(H){L(H)}}; xc=function(f){f.U||(f.U=!0,g.Sk(f.xk,f))}; Mp=function(f){let e=null;f.G&&(e=f.G,f.G=e.next,e.next=null);f.G||(f.V=null);return e}; G_=function(f,e,B,n){if(B==3&&e.G&&!e.V)for(;f&&f.W;f=f.J)f.W=!1;if(e.C)e.C.J=null,XA(e,B,n);else try{e.V?e.J.call(e.context):XA(e,B,n)}catch(r){yP.call(null,r)}mU.put(e)}; XA=function(f,e,B){e==2?f.J.call(f.context,B):f.G&&f.G.call(f.context,B)}; Xh5=function(f,e){f.W=!0;g.Sk(function(){f.W&&yP.call(null,e)})}; W7=function(f){Ek.call(this,f)}; g.P7=function(f,e){g.pI.call(this);this.D0=f||1;this.eR=e||g.Kw;this.oH=(0,g.VG)(this.Lu,this);this.Pj=g.u0()}; g.Iv=function(f,e,B){if(typeof f==="function")B&&(f=(0,g.VG)(f,B));else if(f&&typeof f.handleEvent=="function")f=(0,g.VG)(f.handleEvent,f);else throw Error("Invalid listener argument");return Number(e)>2147483647?-1:g.Kw.setTimeout(f,e||0)}; $c=function(f,e){let B=null;return(new g.u5(function(n,r){B=g.Iv(function(){n(e)},f); B==-1&&r(Error("Failed to schedule timer."))})).wT(function(n){g.Kw.clearTimeout(B); throw n;})}; f$=function(f,e,...B){f.G.has(e)||f.G.set(e,new i5(e,B))}; g.Bp=function(f,e,...B){f.G.has(e)||f.G.set(e,new e8(e,B))}; g.r5=function(f,e,...B){g.n$(f,e,1,B)}; L$=function(f){f.C.enabled||f.C.start();f.W++;f.W>=f.J&&f.V()}; PNC=function(f){for(let e=0;e>1&7)==3&&(k_(61,e),H=decodeURIComponent(e[Z[15]](Z[41])||Z[12])[Z[36]](Z[62]),k=e[Z[20]]===Z[16]&&H[Z[13]]>1&&!!H[1]);if((f|48)==f)for(B=(B%e[Z[13]]+e[Z[13]])%e[Z[13]];B--;)e[Z[52]](e[Z[22]]());f+7&14||e[Z[3]](B);(f&120)==f&&(k=B(r,L,d));return k}; vp=function(f){switch(f){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}; $ow=function(f){switch(f){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS"; default:return""}}; g.Zy=function(f){return(new br).VD(f)}; br=function(){}; Rq=function(f,e,B){if(e==null)B.push("null");else{if(typeof e=="object"){if(Array.isArray(e)){var n=e;e=n.length;B.push("[");var r="";for(var L=0;L2?f.C.statusText:""}catch(B){e=""}f.V=e+" ["+f.getStatus()+"]";YX(f)}}finally{AM(f)}}}; AM=function(f,e){if(f.C){f.U&&(clearTimeout(f.U),f.U=null);const B=f.C;f.C=null;e||f.dispatchEvent("ready");try{B.onreadystatechange=null}catch(n){}}}; Vp=function(f){var e=f.getStatus();a:switch(e){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var B=!0;break a;default:B=!1}if(!B){if(e=e===0)f=g.fY(String(f.K))[1]||null,!f&&g.Kw.self&&g.Kw.self.location&&(f=g.Kw.self.location.protocol.slice(0,-1)),e=!Bwd.test(f?f.toLowerCase():"");B=e}return B}; g.oq=function(f){return f.C?f.C.readyState:0}; g.ur=function(f){try{return f.C?f.C.responseText:""}catch(e){return""}}; g.FK=function(f){try{if(!f.C)return null;if("response"in f.C)return f.C.response;switch(f.cS){case "":case "text":return f.C.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in f.C)return f.C.mozResponseArrayBuffer}return null}catch(e){return null}}; g.mn=function(f){const e={};f=(f.C&&g.oq(f)>=2?f.C.getAllResponseHeaders()||"":"").split("\r\n");for(let n=0;n{setTimeout(()=>{try{L.V()}finally{r.dispose()}})}); L.J=1E5;L.flushInterval=3E4;L.C.setInterval(3E4);return L}; dV5=function(f){if(f.timer===void 0){const e=Math.max(0,f.C+f.G-Nd());f.timer=setTimeout(()=>{try{f.callback()}finally{f.C=Nd(),f.timer=void 0}},e)}}; HCg=function(f,e=[]){return new tAd(f,e)}; Nd=function(){return globalThis.performance?.now?.()??Date.now()}; Qp=function(f,e){if(f.disable)return new Ea;e=e?qD(e):[];return HCg({kI:f.kI,kJ:f.zI,Kd:f.Os,wH:f.wH,FI:f.FI,XD:f.XD},e)}; ktC=function(f){if(!f)return null;f=t8(f,4);return f===null||f===void 0?null:o2(f)}; Dy=function(){TB.instance||(TB.instance=new TB);return TB.instance}; Ccm=function(f,e,B,n){if(!e&&!B)return Promise.resolve();if(!n)return JM(e,B);let r;(r=f.G)[n]||(r[n]=new Promise((L,d)=>{JM(e,B).then(()=>{f.C=n;L()},t=>{delete f.G[n]; d(t)})})); return f.G[n]}; xX=function(f,e){return Ccm(f,sl(e,Md,1,IU),sl(e,GB,2,IU),rf(e,3,void 0,IU))}; JM=function(f,e){return e?wNg(e):f?vC5(f):Promise.resolve()}; wNg=function(f){return new Promise((e,B)=>{const n=g.BN("SCRIPT"),r=ktC(f);g.y2(n,r);n.onload=()=>{g.tb(n);e()}; n.onerror=()=>{g.tb(n);B(Error("EWLS"))}; (g.Jj("HEAD")[0]||document.documentElement).appendChild(n)})}; vC5=function(f){return new Promise(e=>{const B=g.BN("SCRIPT");if(f){var n=t8(f,6);n=n===null||n===void 0?null:WE(n)}else n=null;B.textContent=s0(n);XL(B);(g.Jj("HEAD")[0]||document.documentElement).appendChild(B);g.tb(B);e()})}; bCH=function(f,e){return Ct(f,1,e)}; ZCk=function(f,e){return Ct(f,2,e)}; RgC=function(f,e){return Ct(f,3,e)}; XK=async function(f,e,B,n,r){e=RgC(ZCk(bCH(new Wp,f.requestKey),e),B);B=f.C();f=await n.W("c",f.requestKey,r,f.client.create(e,B));const L=T$(m7(f,2));if(L.length)return hM(n,()=>{var d=new Uint8Array(L.length);for(var t=0;tPromise.resolve("E:CTO"))}catch(C){t="E:UCE"}}let H; const k=new g.Xj(d?L.Ok:L.lJ,L.qL,L.SB,L.hh);for(let C=1;C<=L.maxAttempts;C++){if(C!==1){ir(f,0);f.C=new eu(k.getValue(),L.d6,L.cG);const w=await f.C.promise;f.C=void 0;w===1?(C=1,k.reset()):g.y4(k)}try{let w;B?w=B:(ir(f,5),w=await fv(zgg(e,f.logger,C,n.C,t),L.CN,()=>Promise.reject(Error("RGF:Fetch timed out")))); ir(f,3);await fv(xX(n,w),L.ZD,()=>Promise.reject(Error("DTZ:Script timed out"))); ir(f,8);await r;const v=new BQ({challenge:w,RY:f.options.RY,fS:f.options.fS});await fv(v.kW,L.hk,()=>Promise.reject(Error("QEG:Setup timed out"))); H=v;break}catch(w){f.handleError(w),nv(f)}}if(f.HS())break;H&&(B=void 0,aSM(f,d),d=H,pNw(f,H),nv(f));ir(f,2);f.C=new eu(L.dW,L.d6,L.cG);f.isPaused&&f.C.pause();await f.C.promise;f.C=void 0;if(f.HS())break}d?.dispose()}; Ymd=function(f){f.X=Error("Cancelled by dispose");f.W.resolve();zW(f.U.promise);f.U.reject(Error("Cancelled by dispose"));f.logger.dispose();Promise.all(f.V).then(async()=>{f.J?.dispose();f.J=void 0}); f.V=[];f.C?.G();zW(f.G.promise);f.G.reject(Error("Cancelled by dispose"))}; Ab5=async function(f){if(f.HS())throw Error("Already disposed");f.C?.G();await f.G.promise}; jYl=function(f,e){const B=f.le;f.le=()=>{B();e()}}; pNw=function(f,e){f.HS()||(f.J=e,f.logger.update(e.G2()),f.W.resolve(),f.U.resolve(void 0),f.le())}; aSM=function(f,e){e&&(Promise.all(f.V).then(()=>void e.dispose()),f.V=[])}; var OCM=function(f){return CR[Z[2]](this,1,f)}; ir=function(f,e){f.K=e;f.options.HzL?.(e)}; nv=function(f){f.HS()||(f.G.resolve(),f.G=new g.rF)}; fv=function(f,e,B){let n;const r=new Promise(L=>{n=setTimeout(L,e)}); return Promise.race([f.finally(()=>void clearTimeout(n)), r.then(B)])}; oCg=function(f,e){f.endTimeMs=Date.now()+e;f.tick()}; Lv=function(f){f.C&&(clearTimeout(f.C),f.C=null)}; dF=function(f,e){try{return globalThis.sessionStorage.setItem(f,e),!0}catch(B){return!1}}; tw=function(f,e=0,B=f.length,n){let r=0;for(n&&(r=tw(n));e>1,HQ),tw(f,f.length>>1)];return e.toString(16)+B.toString(16)}; Cv=function(f,e){var B=[tw(e,0,e.length>>1,void 0),tw(e,e.length>>1)];f=new Uint32Array(f.buffer);e=f[0];const [n,r]=B;for(B=1;B>>8|d<<24,d+=L|0,d^=t+38293,L=L<<3|L>>>29,L^=d,H=H>>>8|H<<24,H+=t|0,H^=k+38293,t=t<<3|t>>>29,t^=H;L=[L,d];f[B]^=L[0];B+1void globalThis.sessionStorage.removeItem(k))?dF(e,g.ON(d))?"s":"t":"i"}; uOg=function(f,e){var B=globalThis.sessionStorage.getItem(f);if(!B)return["m"];let n;try{n=uW(B),Cv(n,e)}catch(r){return globalThis.sessionStorage.removeItem(f),["c"]}for(e=4;e<7&&n[e]===0;)e++;for(B=0;B=B?(globalThis.sessionStorage.removeItem(f),["e"]):["a",new Uint8Array(n.buffer,e+4)]}; Fd5=function(f){var e=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!e)return new wF(f);var B=e.split(",");if(B.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new wF(f);e=B.slice(1);e.length===1&&e[0]===""&&(e=[]);B=Number(B[0]);return isNaN(B)||B<0||B>e.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new wF(f)):new wF(f,B,e)}; NwG=function(f){function e(){B-=n;B-=r;B^=r>>>13;n-=r;n-=B;n^=B<<8;r-=B;r-=n;r^=n>>>13;B-=n;B-=r;B^=r>>>12;n-=r;n-=B;n^=B<<16;r-=B;r-=n;r^=n>>>5;B-=n;B-=r;B^=r>>>3;n-=r;n-=B;n^=B<<10;r-=B;r-=n;r^=n>>>15} f=mV5(f);let B=2654435769,n=2654435769,r=314159265;const L=f.length;let d=L,t=0;for(;d>=12;d-=12,t+=12)B+=vQ(f,t),n+=vQ(f,t+4),r+=vQ(f,t+8),e();r+=L;switch(d){case 11:r+=f[t+10]<<24;case 10:r+=f[t+9]<<16;case 9:r+=f[t+8]<<8;case 8:n+=f[t+7]<<24;case 7:n+=f[t+6]<<16;case 6:n+=f[t+5]<<8;case 5:n+=f[t+4];case 4:B+=f[t+3]<<24;case 3:B+=f[t+2]<<16;case 2:B+=f[t+1]<<8;case 1:B+=f[t+0]}e();return UVd.toString(r)}; mV5=function(f){const e=[];for(let B=0;B{f.V.resolve()},e); f.addOnDisposeCallback(()=>void clearTimeout(B))}; Rc=function(f,e){var B=`${e(f.error.message)}:${e(f.error.stack)}`.substring(0,2048);e=B.length+1;B=ZW(B);const n=new Uint8Array(4+B.length);n.set([42,e&127|128,e>>7,f.error.code]);n.set(B,4);return n}; ZW=function(f){return globalThis.TextEncoder?(new TextEncoder).encode(f):g.Y_(f)}; hg5=function(f,e,B){return f instanceof $X?Iq(f,B,e,1):f.M8(B)}; ac=async function(f){let e=void 0;f.W++;const B=new g.rF;f.eU instanceof Kv&&f.eU.V.push(B.promise);if(f.l5){const L=new g.rF;setTimeout(()=>void L.resolve()); await L.promise}const n=f.logger.share();try{f.state=5;const L=[],d=await fv(f.eU.snapshot({KV:{},gQ:L}),f.JZ.ze,()=>Promise.reject(new RK(15,"MDA:Timeout"))); qE(f,"MDA:Disposed");const t=L[0];f.state=6;const H=await fv(hg5(f.K1,n,d),f.JZ.Ef,()=>Promise.reject(new RK(10,"BWB:Timeout"))); qE(f,"BWB:Disposed");f.state=7;e=hM(n,()=>{const k=gCY(f,H,B,t);k.V.promise.then(()=>void f.U()); return k},"i")}catch(L){e?.dispose(); if(!f.G){const d=SmM(f,L);B.resolve();var r;if(r=f.eU instanceof Kv&&f.W<2)a:if(L instanceof RK)r=L.code!==32&&L.code!==20&&L.code!==10;else{if(L instanceof zI)switch(L.code){case 2:case 13:case 14:case 4:break;default:r=!1;break a}r=!0}if(r){const t=setTimeout(()=>void f.U(),(1+Math.random()*.25)*(f.C?6E4:1E3)); f.addOnDisposeCallback(()=>void clearTimeout(t)); return}f.G=d}n.mj(f.C?13:14);f.V.reject(f.G);return}finally{n.dispose()}f.state=8;f.W=0;f.C?.dispose();f.C=e;f.V.resolve()}; SmM=function(f,e){if(!(e instanceof RK))if(e instanceof zI){const B=Error(e.toString());B.stack=e.stack;e=new RK(11,"EBH:Error",B)}else e=new RK(12,"BSO:Unknown",e);return f.reportError(e)}; qE=function(f,e){if(f.HS())throw new RK(f.C?20:32,e);}; gCY=function(f,e,B,n){const r=(aW(pr(e,2))??0)*1E3;if(r<=0)throw new RK(31,"TTM:Invalid");if(rf(e,4))return new EC0(f.logger,rf(e,4),r);if(!(aW(pr(e,3))??0))return new QYM(f.logger,T$(m7(e,1)),r);if(!n)throw new RK(4,"PMD:Undefined");n=n(T$(m7(e,1)));if(typeof n!=="function")throw new RK(16,"APF:Failed");f.X=Math.floor((Date.now()+r)/1E3);f=new pv(f.logger,n,aW(pr(e,3))??0,r);f.addOnDisposeCallback(()=>void B.resolve()); return f}; Yp=function(f,e,B){try{if(f.HS())throw new RK(21,"BNT:disposed");if(!f.C&&f.G)throw f.G;return TwH(f,e,B)??DVH(f,e,B)??Jb0(f,e,B)}catch(n){if(!e.IB)throw cQ(f,n);return MAM(f,B,n)}}; cQ=function(f,e){e=e instanceof RK?e:new RK(5,"TVD:error",e);return f.reportError(e)}; TwH=function(f,e,B){return f.C?.d3(()=>Aw(f,e),B,n=>{if(f.C instanceof pv&&e.xr?.q4)try{f.cache?.C(Aw(f,e),n,e.xr.hw,f.X-120)}catch(r){f.reportError(new RK(24,"ELX:write",r))}})}; DVH=function(f,e,B){if(e.xr?.Ob)try{const n=f.cache?.G(Aw(f,e),e.xr.hw);return n?B?hM(f.logger,()=>g.ON(n,2),"a"):n:void 0}catch(n){f.reportError(new RK(23,"RXO:read",n))}}; Jb0=function(f,e,B){const n={stack:[],error:void 0,hasError:!1};try{if(!e.xS)throw new RK(29,"SDF:notready");return NH(n,new ju(f.logger,0,f.state)).d3(()=>Aw(f,e),B)}catch(r){n.error=r,n.hasError=!0}finally{g6(n)}}; MAM=function(f,e,B){const n={stack:[],error:void 0,hasError:!1};try{const r=cQ(f,B);return NH(n,new GtH(f.logger,r)).d3(()=>[],e)}catch(r){n.error=r,n.hasError=!0}finally{g6(n)}}; Aw=function(f,e){return e.Yt?e.Yt:e.KV?hM(f.logger,()=>e.Yt=ZW(e.KV),"c"):[]}; OA=function(){let f=0,e;return B=>{e||(e=new Ea);const n=new ju(e,f,1),r=n.d3(()=>ZW(B),!0); n.dispose();f++;return r}}; WdY=function(f,e={}){return new xVY(f,e)}; sYC=function(f){f.U.E1("data",e=>{if("1"in e){var B=e["1"];let n;try{n=f.X(B)}catch(r){oc(f,new zI(13,`Error when deserializing response data; error: ${r}, response: ${B}`))}n&&Vd(f,n)}if("2"in e)for(e=lm(f,e["2"]),B=0;B{um(f,FF(f));for(let e=0;e{if(f.C.length!==0){var e=f.xhr.G;e!==0||Vp(f.xhr)||(e=6);var B=-1;switch(e){case 0:var n=2;break;case 7:n=10;break;case 8:n=4;break;case 6:B=f.xhr.getStatus();n=vp(B);break;default:n=14}um(f,FF(f));e=fSl(e)+", error: "+f.xhr.getLastError();B!==-1&&(e+=`, http status code: ${B}`);oc(f,new zI(n,e))}})}; oc=function(f,e){for(let B=0;B{e[n]=B[n]}); return e}; Vd=function(f,e){for(let B=0;B{if(Vp(f.xhr)){var n=g.ur(f.xhr);if(e&&f.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");n=atob(n)}try{var r=f.X(n)}catch(d){oc(f,mc(new zI(13,`Error when deserializing response data; error: ${d}, response: ${n}`),B));return}n=vp(f.xhr.getStatus());um(f,FF(f));n===0?Vd(f,r):oc(f,mc(new zI(n,"Xhr succeeded but the status code is not 200"),B))}else{n=g.ur(f.xhr);let d;r=FF(f);if(n){var L= lm(f,n);n=L.code;d=L.details;L=L.metadata}else n=2,d=`Rpc failed due to xhr error. uri: ${String(f.xhr.K)}, error code: ${f.xhr.G}, error: ${f.xhr.getLastError()}`,L=r;um(f,r);oc(f,mc(new zI(n,d,L),B))}})}; UA=function(f,e){e=f.indexOf(e);e>-1&&f.splice(e,1)}; mc=function(f,e){e.stack&&(f.stack+="\n"+e.stack);return f}; g.NE=function(f){this.V=f.gR||null;this.J=f.SA||!1;this.G=void 0}; hw=function(f,e){g.pI.call(this);this.Cq=f;this.U=e;this.W=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.N=new Headers;this.G=null;this.A="GET";this.Ed="";this.C=!1;this.X=this.J=this.V=null;this.K=new AbortController}; gF=function(f){f.J.read().then(f.ws.bind(f)).catch(f.QR.bind(f))}; EA=function(f){f.readyState=4;f.V=null;f.J=null;f.X=null;Su(f)}; Su=function(f){f.onreadystatechange&&f.onreadystatechange.call(f)}; $VM=function(f){if(f.t0&&typeof f.t0=="function")return f.t0();if(typeof Map!=="undefined"&&f instanceof Map||typeof Set!=="undefined"&&f instanceof Set)return Array.from(f.values());if(typeof f==="string")return f.split("");if(g.Yg(f)){const e=[],B=f.length;for(let n=0;n>4&15).toString(16)+(f&15).toString(16)}; GI=function(f,e){this.G=this.C=null;this.J=f||null;this.V=!!e}; XF=function(f){f.C||(f.C=new Map,f.G=0,f.J&&tD(f.J,function(e,B){f.add(rr(e),B)}))}; PQ=function(f,e){XF(f);e=yd(f,e);return f.C.has(e)}; g.Ic=function(f,e,B){f.remove(e);B.length>0&&(f.J=null,f.C.set(yd(f,e),g.ke(B)),f.G=f.G+B.length)}; yd=function(f,e){e=String(e);f.V&&(e=e.toLowerCase());return e}; eVC=function(f,e){e&&!f.V&&(XF(f),f.J=null,f.C.forEach(function(B,n){const r=n.toLowerCase();n!=r&&(this.remove(n),g.Ic(this,r,B))},f)); f.V=e}; g.$p=function(f){let e="";g.OM(f,function(B,n){e+=n;e+=":";e+=B;e+="\r\n"}); return e}; g.im=function(f,e,B){if(g.TL(B))return f;B=g.$p(B);if(typeof f==="string")return bU(f,g.nH(e),B);g.WQ(f,e,B);return f}; g.fX=function(f){g.$0.call(this);this.G=f;this.C={}}; var rGg=function(f,e){return wP[Z[2]](this,8,f,e)}; var eV=function(f,e,B,n,r,L){if(Array.isArray(B))for(let d=0;dr=>n.intercept(r,B),f)}; k$O=function(f,e){return e.reduce((B,n)=>r=>n.intercept(r,B),f)}; CWY=function(f,e,B){const n=e.jg,r=e.getMetadata(),L=R0(f,!0);f=KX(f,r,L,B+n.getName());B=q8(L,n.G,!1);ISg(B,r["X-Goog-Encode-Response-If-Executable"]==="base64");e=n.C(e.ow);L.send(f,"POST",e);return B}; wDH=function(f,e,B,n,r,L={}){const d=e.substring(0,e.length-r.name.length),t=L?.signal;return k$O(H=>new Promise((k,C)=>{if(t?.aborted){const b=new zI(1,"Aborted");b.cause=t.reason;C(b)}else{var w={},v=CWY(f,H,d);v.E1("error",b=>void C(b)); v.E1("metadata",b=>{w=b}); v.E1("data",b=>{k(WdY(b,w))}); t&&t.addEventListener("abort",()=>{v.cancel();const b=new zI(1,"Aborted");b.cause=t.reason;C(b)})}}),f.yd).call(f,r.U(B,n)).then(H=>H.XH)}; Pp=function(f,e,B,n,r,L={}){return wDH(f,e,B,n,r,L)}; R0=function(f,e){e=f.C&&!e;return f.ju||e?new g.p$(new g.NE({gR:f.ju,SA:e})):new g.p$}; KX=function(f,e,B,n){e["Content-Type"]="application/json+protobuf";e["X-User-Agent"]="grpc-web-javascript/0.1";const r=e.Authorization;if(r&&v_l.has(r.split(" ")[0])||f.withCredentials)B.X=!0;if(f.N4)n=g.im(n,"$httpHeaders",e);else for(const L of Object.keys(e))B.headers.set(L,e[L]);return n}; q8=function(f,e,B){let n;B&&(f.isActive(),B=new bRk(f),n=new ZR0(B));return new RV5({xhr:f,jb:n},e)}; z6=function(){this.C=new K3C;this.G="https://jnn-pa.googleapis.com".replace(/\/+$/,"")}; zVH=function(f){if(g.eU(g.dr(f)))return!1;if(f.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;let e;try{e=new g.S2(f)}catch(B){return g.$g(a0,n=>f.search(n)>0)!=null}return e.U.match(qN5)?!0:g.$g(a0,B=>f.match(B)!=null)!=null}; g.pX=function(f,e){return f.replace(aOl,function(B,n){try{let r=g.Ju(e,n);if(r==null||r.toString()==null)return B;r=r.toString();if(r==""||!g.eU(g.dr(r)))return encodeURIComponent(r).replace(/%2C/g,",")}catch(r){}return B})}; cGM=function(f){const e=f.JI;return Xy(f,e,e[WD]|0,pDG,2,1)}; AGm=function(f){var e;if((e=f[cW])!=null)f=e;else{if(Yi!==Yi)throw Error();f=f[cW]=YN5(f.C)}return f}; jUC=function(f){return f[Ag]??(f[Ag]=new Map(cGM(AGm(f)).map(e=>[e.getName(),g.BU(e,2)])))}; OW=function(f){if(f.PX!==void 0){var e=jV;jV=!0;try{for(let B=f.PX;B!==void 0;B=B.yR9){const n=B.NXl;n.u2||(n.u2=!0,OW(n),n.Ek?.(n))}}finally{jV=e}}}; o_m=function(f,e){const B=Object.create(ORC);B.value=f;e!==void 0&&(B.qR=e);f=()=>{if(jV)throw Error("");return B.value}; f[o0]=B;return[f,n=>VC(B,n), n=>{VC(B,n(B.value))}]}; VC=function(f,e){f.qR(f.value,e)||(f.value=e,f.version++,VW0++,OW(f))}; ll=function(f,e=""){var B={};f=o_m(f,B.equals);B=B.debugName;f[0][o0].debugName=B&&e?`${B}__${e}`:B??e??"[signal]"}; lOM=function(){var f=g.ul;F3.instance||(F3.instance=new F3(f));return F3.instance}; mJ=function(f,e){return f.V?f.V:f.V=new Promise(async B=>{const n=window.AbortController?new window.AbortController:void 0,r=n?.signal;let L=!1;try{n&&(f.G=f.Na.Br(()=>{n.abort()},e||2E4)),await fetch("/generate_204",{method:"HEAD", signal:r}),L=!0}catch{L=!1}finally{f.V=void 0,f.G&&(f.Na.lK(f.G),f.G=0),L!==f.C&&(f.C=L,f.C?f.dispatchEvent("networkstatus-online"):f.dispatchEvent("networkstatus-offline")),B(L)}})}; u_w=function(f){f.C===-1&&(f.C=f.data.reduce((e,B,n)=>e+(B?2**n:0),0)); return f.C}; UW=function(f){f.setAttribute("role","link")}; hg=function(f,e){Array.isArray(e)&&(e=e.join(" "));e===""||e==void 0?(N8||(N8={atomic:!1,autocomplete:"none",dropeffect:"none",haspopup:!1,live:"off",multiline:!1,multiselectable:!1,orientation:"vertical",readonly:!1,relevant:"additions text",required:!1,sort:"none",busy:!1,disabled:!1,hidden:!1,invalid:"false"}),e=N8,"label"in e?f.setAttribute("aria-label",e.label):f.removeAttribute("aria-label")):f.setAttribute("aria-label",e)}; gA=function(f){f=f.getAttribute("aria-label");return f==null||f==void 0?"":String(f)}; g.SV=function(f,e,B){g.$0.call(this);this.C=null;this.V=!1;this.U=f;this.W=B;this.G=e||window;this.J=(0,g.VG)(this.wP,this)}; EW=function(f){f=f.G;return f.requestAnimationFrame||f.webkitRequestAnimationFrame||f.mozRequestAnimationFrame||f.oRequestAnimationFrame||f.msRequestAnimationFrame||null}; QC=function(f){f=f.G;return f.cancelAnimationFrame||f.cancelRequestAnimationFrame||f.webkitCancelRequestAnimationFrame||f.mozCancelRequestAnimationFrame||f.oCancelRequestAnimationFrame||f.msCancelRequestAnimationFrame||null}; g.T6=function(f,e,B){g.$0.call(this);this.C=f;this.D0=e||0;this.G=B;this.J=(0,g.VG)(this.R7,this)}; M8=function(f,e,B,n,r,L){if((f&92)==f){for(var d=64,t=[];++d-t[Z[13]]-32;)switch(d){case 46:d=95;default:t[Z[3]](String[Z[19]](d));case 94:case 95:case 96:break;case 123:d-=76;case 92:case 93:continue;case 58:d=44;case 91:}var H=t}if(f-7<19&&(f<<2&7)>=1){if(!(Dx(e[Z[0]])||e[Z[0]][Z[27]](Z[39])||e[Z[0]][Z[27]](Z[10])||e[Z[0]][Z[27]](Z[43])))throw new g.Dj(Z[77],e[Z[0]]);d=g.sA(e[Z[0]]);e[Z[6]]=d[Z[17]];e[Z[24]]=d[Z[1]]+(d[Z[24]]!=null?`:${d[Z[24]]}`:Z[12]);t=d[Z[0]];t[Z[27]](Z[16])?(e[Z[20]]=Z[16], t=t[Z[34]](14)):t[Z[27]](Z[63])?(e[Z[20]]=Z[63],t=t[Z[34]](13)):t[Z[27]](Z[42])?(t=Jg(73,t,e),t=t[0]):(e[Z[20]]=t,t=Z[12]);var k=e[Z[1]];e[Z[1]]=k_(14,t);Object[Z[25]](e[Z[1]],wP(1,d[Z[14]][Z[44]]()));Object[Z[25]](e[Z[1]],k);e[Z[1]][Z[72]]===Z[69]&&(delete e[Z[1]][Z[72]],e[Z[20]]+=Z[80]);e[Z[0]]=Z[12];e[Z[32]]=Z[12];e[Z[14]]&&(d=Ra(1,e));H=[]}(f>>2&15)>=12&&(f^53)>>4<2&&(H=B(n,r,L));return H}; g.G6=function(f){f.stop();f.R7()}; xi=function(f){f.mu=g.Iv(()=>{f.mu=null;f.C&&!f.G&&(f.C=!1,xi(f))},f.D0); const e=f.J;f.J=null;f.W.apply(null,e)}; WW=function(f){return typeof f.className=="string"?f.className:f.getAttribute&&f.getAttribute("class")||""}; sW=function(f){return f.classList?f.classList:WW(f).match(/\S+/g)||[]}; g.X3=function(f,e){typeof f.className=="string"?f.className=e:f.setAttribute&&f.setAttribute("class",e)}; g.yC=function(f,e){return f.classList?f.classList.contains(e):g.eB(sW(f),e)}; g.PW=function(f,e){if(f.classList)f.classList.add(e);else if(!g.yC(f,e)){const B=WW(f);g.X3(f,B+(B.length>0?" "+e:e))}}; g.I0=function(f,e){if(f.classList)Array.prototype.forEach.call(e,function(n){g.PW(f,n)}); else{var B={};Array.prototype.forEach.call(sW(f),function(n){B[n]=!0}); Array.prototype.forEach.call(e,function(n){B[n]=!0}); e="";for(const n in B)e+=e.length>0?" "+n:n;g.X3(f,e)}}; g.$i=function(f,e){f.classList?f.classList.remove(e):g.yC(f,e)&&g.X3(f,Array.prototype.filter.call(sW(f),function(B){return B!=e}).join(" "))}; g.il=function(f,e){f.classList?Array.prototype.forEach.call(e,function(B){g.$i(f,B)}):g.X3(f,Array.prototype.filter.call(sW(f),function(B){return!g.eB(e,B)}).join(" "))}; g.h=function(f,e,B){B?g.PW(f,e):g.$i(f,e)}; fP=function(f,e){const B=!g.yC(f,e);g.h(f,e,B)}; g.eh=function(){g.pI.call(this);this.C=0;this.endTime=this.startTime=null}; F3O=function(f,e){Array.isArray(e)||(e=[e]);e=e.map(function(B){return typeof B==="string"?B:B.property+" "+B.duration+"s "+B.timing+" "+B.delay+"s"}); g.uc(f,"transition",e.join(","))}; BZ=function(f,e,B,n,r){g.eh.call(this);this.G=f;this.W=e;this.U=B;this.V=n;this.X=Array.isArray(r)?r:[r]}; nP=function(f,e,B,n){return new BZ(f,e,{opacity:B},{opacity:n},{property:"opacity",duration:e,timing:"ease-in",delay:0})}; Uam=function(f){f=f.trim();if(f=="")return null;var e=String(f.slice(0,4)).toLowerCase();if(("url("1||f&&f.split(")"),null;if(f.indexOf("(")>0){if(/"|'/.test(f))return null;e=/([\-\w]+)\(/g;let B;for(;B=e.exec(f);)if(!(B[1].toLowerCase()in maC))return null}return f}; rb=function(f,e){f=g.Kw[f];return f&&f.prototype?(e=Object.getOwnPropertyDescriptor(f.prototype,e))&&e.get||null:null}; LP=function(f){const e=g.Kw.CSSStyleDeclaration;return e&&e.prototype&&e.prototype[f]||null}; th=function(f,e,B,n){if(f)return f.apply(e,n);if(g.db&&document.documentMode<10){if(!e[B].call)throw Error("IE Clobbering detected");}else if(typeof e[B]!="function")throw Error("Clobbering detected");return e[B].apply(e,n)}; E_C=function(f){if(!f)return"";const e=document.createElement("div").style;NPg(f).forEach(function(B){const n=g.IA&&B in hVd?B:B.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");$e(n,"--")||$e(n,"var")||(B=th(g_m,f,f.getPropertyValue?"getPropertyValue":"getAttribute",[B])||"",B=Uam(B),B!=null&&th(SN0,e,e.setProperty?"setProperty":"setAttribute",[n,B]))}); return e.cssText||""}; NPg=function(f){g.Yg(f)?f=g.ke(f):(f=g.NT(f),g.d2(f,"cssText"));return f}; g.k4=function(f){var e;let B=e=0,n=!1;f=f.split(QU5);for(let r=0;r.4?-1:1;return(e==0?null:e)==-1?"rtl":"ltr"}; g.bp=function(f){if(f instanceof CP||f instanceof wb||f instanceof vZ)return f;if(typeof f.next=="function")return new CP(()=>f); if(typeof f[Symbol.iterator]=="function")return new CP(()=>f[Symbol.iterator]()); if(typeof f.w$=="function")return new CP(()=>f.w$()); throw Error("Not an iterator or iterable.");}; ZL=function(f,e,B,n,r,L,d,t){this.C=f;this.X=e;this.J=B;this.W=n;this.V=r;this.U=L;this.G=d;this.K=t}; RO=function(f,e){if(e==0)return f.C;if(e==1)return f.G;let B=jy(f.C,f.J,e),n=jy(f.J,f.V,e);f=jy(f.V,f.G,e);B=jy(B,n,e);n=jy(n,f,e);return jy(B,n,e)}; KP=function(f,e){if(e==0)return f.X;if(e==1)return f.K;let B=jy(f.X,f.W,e),n=jy(f.W,f.U,e);f=jy(f.U,f.K,e);B=jy(B,n,e);n=jy(n,f,e);return jy(B,n,e)}; q9=function(f,e){let B=(e-f.C)/(f.G-f.C);if(B<=0)return 0;if(B>=1)return 1;let n=0,r=1,L=0;for(var d=0;d<8;d++){L=RO(f,B);const t=(RO(f,B+1E-6)-L)/1E-6;if(Math.abs(L-e)<1E-6)return B;if(Math.abs(t)<1E-6)break;else L1E-6&&d<8;d++)L=0}; g.Y4=function(f){g.$0.call(this);this.U=1;this.J=[];this.V=0;this.C=[];this.G={};this.X=!!f}; G$G=function(f,e,B){g.Sk(function(){f.apply(e,B)})}; g.Ah=function(f){this.xD=f}; jh=function(f){this.xD=f}; Oe=function(f){this.data=f}; oO=function(f){return f===void 0||f instanceof Oe?f:new Oe(f)}; Vz=function(f){this.xD=f}; g.lp=function(f){const e=f.creation;f=f.expiration;return!!f&&fg.u0()}; g.up=function(f){this.xD=f}; xaY=function(){}; Fo=function(){}; mh=function(f){this.C=f;this.G=null}; Ue=function(f){if(f.C==null)throw Error("Storage mechanism: Storage unavailable");f.isAvailable()||pR(Error("Storage mechanism: Storage unavailable"))}; N9=function(){let f=null;try{f=g.Kw.localStorage||null}catch(e){}mh.call(this,f)}; hh=function(){let f=null;try{f=g.Kw.sessionStorage||null}catch(e){}mh.call(this,f)}; gb=function(f,e){this.G=f;this.C=e+"::"}; g.Sh=function(f){const e=new N9;return e.isAvailable()?f?new gb(e,f):e:null}; Ee=function(f,e){this.C=f;this.G=e}; Qz=function(){}; TK=function(){let f=Error();f.name="SecurityError";throw f;}; DL=function(){return{get opener(){return null},get closed(){return!0},get location(){TK()},get document(){TK()},postMessage:function(){}, close:function(){}, focus:function(){}}}; M9=function(f){var e,B,n=f.length,r=0;for(e=0;e>>6:(L<65536?t[B++]=224|L>>>12:(t[B++]=240|L>>>18,t[B++]=128|L>>>12&63),t[B++]=128|L>>> 6&63),t[B++]=128|L&63);return t}; GK=function(f){for(var e=f.length;--e>=0;)f[e]=0}; x4=function(f,e,B,n,r){this.OR=f;this.Ah=e;this.I3=B;this.wf=n;this.f4=r;this.Ol=f&&f.length}; WZ=function(f,e){this.FT=f;this.ym=0;this.Mw=e}; se=function(f,e){f.bR[f.pending++]=e&255;f.bR[f.pending++]=e>>>8&255}; Xo=function(f,e,B){f.Vi>16-B?(f.V7|=e<>16-f.Vi,f.Vi+=B-16):(f.V7|=e<>>=1,B<<=1;while(--e>0);return B>>>1}; IO=function(f,e,B){var n=Array(16),r=0,L;for(L=1;L<=15;L++)n[L]=r=r+B[L-1]<<1;for(B=0;B<=e;B++)r=f[B*2+1],r!==0&&(f[B*2]=PZ(n[r]++,r))}; $4=function(f){var e;for(e=0;e<286;e++)f.jj[e*2]=0;for(e=0;e<30;e++)f.n1[e*2]=0;for(e=0;e<19;e++)f.Mn[e*2]=0;f.jj[512]=1;f.x0=f.YF=0;f.TN=f.matches=0}; ip=function(f){f.Vi>8?se(f,f.V7):f.Vi>0&&(f.bR[f.pending++]=f.V7);f.V7=0;f.Vi=0}; f5=function(f,e,B){ip(f);se(f,B);se(f,~B);Jh.CC(f.bR,f.window,e,B,f.pending);f.pending+=B}; eJ=function(f,e,B,n){var r=e*2,L=B*2;return f[r]>>7)];yz(f,d,B);t=He[d];t!==0&&(r-=kF[d],Xo(f,r,t))}}while(n>1;d>=1;d--)Be(f,B,d);H=L;do d=f.P0[1],f.P0[1]=f.P0[f.Zx--],Be(f,B,1),n=f.P0[1],f.P0[--f.aF]=d,f.P0[--f.aF]=n,B[H*2]=B[d*2]+B[n*2],f.depth[H]=(f.depth[d]>=f.depth[n]?f.depth[d]:f.depth[n])+1,B[d*2+1]=B[n*2+1]=H,f.P0[1]=H++,Be(f,B,1);while(f.Zx>= 2);f.P0[--f.aF]=f.P0[1];d=e.FT;H=e.ym;n=e.Mw.OR;r=e.Mw.Ol;L=e.Mw.Ah;var k=e.Mw.I3,C=e.Mw.f4,w,v=0;for(w=0;w<=15;w++)f.bf[w]=0;d[f.P0[f.aF]*2+1]=0;for(e=f.aF+1;e<573;e++){var b=f.P0[e];w=d[d[b*2+1]*2+1]+1;w>C&&(w=C,v++);d[b*2+1]=w;if(!(b>H)){f.bf[w]++;var K=0;b>=k&&(K=L[b-k]);var Y=d[b*2];f.x0+=Y*(w+K);r&&(f.YF+=Y*(n[b*2+1]+K))}}if(v!==0){do{for(w=C-1;f.bf[w]===0;)w--;f.bf[w]--;f.bf[w+1]+=2;f.bf[C]--;v-=2}while(v>0);for(w=C;w!==0;w--)for(b=f.bf[w];b!==0;)n=f.P0[--e],n>H||(d[n*2+1]!==w&&(f.x0+=(w-d[n* 2+1])*d[n*2],d[n*2+1]=w),b--)}IO(B,t,f.bf)}; ve=function(f,e,B){var n,r=-1,L=e[1],d=0,t=7,H=4;L===0&&(t=138,H=3);e[(B+1)*2+1]=65535;for(n=0;n<=B;n++){var k=L;L=e[(n+1)*2+1];++d>>=1)if(e&1&&f.jj[B*2]!==0)return 0;if(f.jj[18]!==0||f.jj[20]!==0||f.jj[26]!==0)return 1;for(B=32;B<256;B++)if(f.jj[B*2]!==0)return 1;return 0}; ZJ=function(f,e,B){f.bR[f.Oz+f.TN*2]=e>>>8&255;f.bR[f.Oz+f.TN*2+1]=e&255;f.bR[f.yH+f.TN]=B&255;f.TN++;e===0?f.jj[B*2]++:(f.matches++,e--,f.jj[(n5[B]+256+1)*2]++,f.n1[(e<256?tp[e]:tp[256+(e>>>7)])*2]++);return f.TN===f.WQ-1}; K5=function(f,e){f.msg=RS[e];return e}; qI=function(f){for(var e=f.length;--e>=0;)f[e]=0}; z2=function(f){var e=f.state,B=e.pending;B>f.Sy&&(B=f.Sy);B!==0&&(Jh.CC(f.output,e.bR,e.In,B,f.X$),f.X$+=B,e.In+=B,f.BO+=B,f.Sy-=B,e.pending-=B,e.pending===0&&(e.In=0))}; YF=function(f,e){var B=f.kE>=0?f.kE:-1,n=f.WL-f.kE,r=0;if(f.level>0){f.B4.ud===2&&(f.B4.ud=W35(f));wo(f,f.SS);wo(f,f.Po);ve(f,f.jj,f.SS.ym);ve(f,f.n1,f.Po.ym);wo(f,f.TB);for(r=18;r>=3&&f.Mn[aS[r]*2+1]===0;r--);f.x0+=3*(r+1)+5+5+4;var L=f.x0+3+7>>>3;var d=f.YF+3+7>>>3;d<=L&&(L=d)}else L=d=n+5;if(n+4<=L&&B!==-1)Xo(f,e?1:0,3),f5(f,B,n);else if(f.strategy===4||d===L)Xo(f,2+(e?1:0),3),C5(f,p5,ce);else{Xo(f,4+(e?1:0),3);B=f.SS.ym+1;n=f.Po.ym+1;r+=1;Xo(f,B-257,5);Xo(f,n-1,5);Xo(f,r-4,4);for(L=0;L>>8&255;f.bR[f.pending++]=e&255}; Og=function(f,e){var B=f.hJ,n=f.WL,r=f.W9,L=f.b9,d=f.WL>f.E4-262?f.WL-(f.E4-262):0,t=f.window,H=f.Nw,k=f.PF,C=f.WL+258,w=t[n+r-1],v=t[n+r];f.W9>=f.Rr&&(B>>=2);L>f.qk&&(L=f.qk);do{var b=e;if(t[b+r]===v&&t[b+r-1]===w&&t[b]===t[n]&&t[++b]===t[n+1]){n+=2;for(b++;t[++n]===t[++b]&&t[++n]===t[++b]&&t[++n]===t[++b]&&t[++n]===t[++b]&&t[++n]===t[++b]&&t[++n]===t[++b]&&t[++n]===t[++b]&&t[++n]===t[++b]&&nr){f.sC=e;r=b;if(b>=L)break;w=t[n+r-1];v=t[n+r]}}}while((e=k[e&H])>d&&--B!== 0);return r<=f.qk?r:f.qk}; l1=function(f){var e=f.E4,B;do{var n=f.hn-f.qk-f.WL;if(f.WL>=e+(e-262)){Jh.CC(f.window,f.window,e,e,0);f.sC-=e;f.WL-=e;f.kE-=e;var r=B=f.ux;do{var L=f.head[--r];f.head[r]=L>=e?L-e:0}while(--B);r=B=e;do L=f.PF[--r],f.PF[r]=L>=e?L-e:0;while(--B);n+=e}if(f.B4.J3===0)break;r=f.B4;B=f.window;L=f.WL+f.qk;var d=r.J3;d>n&&(d=n);d===0?B=0:(r.J3-=d,Jh.CC(B,r.input,r.uX,d,L),r.state.wrap===1?r.W4=oS(r.W4,B,d,L):r.state.wrap===2&&(r.W4=V3(r.W4,B,d,L)),r.uX+=d,r.yX+=d,B=d);f.qk+=B;if(f.qk+f.yD>=3)for(n=f.WL-f.yD, f.gC=f.window[n],f.gC=(f.gC<=3&&(f.gC=(f.gC<=3)if(B=ZJ(f,f.WL-f.sC,f.Gv-3),f.qk-=f.Gv,f.Gv<=f.g4&&f.qk>=3){f.Gv--;do f.WL++,f.gC=(f.gC<=3&&(f.gC=(f.gC<4096)&&(f.Gv=2));if(f.W9>=3&&f.Gv<=f.W9){n=f.WL+f.qk-3;B=ZJ(f,f.WL-1-f.SQ,f.W9-3);f.qk-=f.W9-1;f.W9-=2;do++f.WL<=n&&(f.gC=(f.gC<=3&&f.WL>0&&(n=f.WL-1,B=L[n],B===L[++n]&&B===L[++n]&&B===L[++n])){for(r=f.WL+258;B===L[++n]&&B===L[++n]&&B===L[++n]&&B===L[++n]&&B===L[++n]&&B===L[++n]&&B===L[++n]&&B===L[++n]&&nf.qk&&(f.Gv=f.qk)}f.Gv>=3?(B=ZJ(f,1,f.Gv-3),f.qk-=f.Gv,f.WL+=f.Gv,f.Gv=0):(B=ZJ(f,0,f.window[f.WL]),f.qk--,f.WL++);if(B&&(YF(f,!1),f.B4.Sy===0))return 1}f.yD=0;return e=== 4?(YF(f,!0),f.B4.Sy===0?3:4):f.TN&&(YF(f,!1),f.B4.Sy===0)?1:2}; XDH=function(f,e){for(var B;;){if(f.qk===0&&(l1(f),f.qk===0)){if(e===0)return 1;break}f.Gv=0;B=ZJ(f,0,f.window[f.WL]);f.qk--;f.WL++;if(B&&(YF(f,!1),f.B4.Sy===0))return 1}f.yD=0;return e===4?(YF(f,!0),f.B4.Sy===0?3:4):f.TN&&(YF(f,!1),f.B4.Sy===0)?1:2}; mq=function(f,e,B,n,r){this.X8=f;this.Bv=e;this.Sb=B;this.Xu=n;this.func=r}; yGd=function(){this.B4=null;this.status=0;this.bR=null;this.wrap=this.pending=this.In=this.c6=0;this.ey=null;this.mE=0;this.method=8;this.Vm=-1;this.Nw=this.qm=this.E4=0;this.window=null;this.hn=0;this.head=this.PF=null;this.b9=this.Rr=this.strategy=this.level=this.g4=this.hJ=this.W9=this.qk=this.sC=this.WL=this.iX=this.SQ=this.Gv=this.kE=this.uf=this.yc=this.g7=this.ux=this.gC=0;this.jj=new Jh.jx(1146);this.n1=new Jh.jx(122);this.Mn=new Jh.jx(78);qI(this.jj);qI(this.n1);qI(this.Mn);this.TB=this.Po= this.SS=null;this.bf=new Jh.jx(16);this.P0=new Jh.jx(573);qI(this.P0);this.aF=this.Zx=0;this.depth=new Jh.jx(573);qI(this.depth);this.Vi=this.V7=this.yD=this.matches=this.YF=this.x0=this.Oz=this.TN=this.WQ=this.yH=0}; PWl=function(f,e){if(!f||!f.state||e>5||e<0)return f?K5(f,-2):-2;var B=f.state;if(!f.output||!f.input&&f.J3!==0||B.status===666&&e!==4)return K5(f,f.Sy===0?-5:-2);B.B4=f;var n=B.Vm;B.Vm=e;if(B.status===42)if(B.wrap===2)f.W4=0,Ap(B,31),Ap(B,139),Ap(B,8),B.ey?(Ap(B,(B.ey.text?1:0)+(B.ey.fL?2:0)+(B.ey.extra?4:0)+(B.ey.name?8:0)+(B.ey.comment?16:0)),Ap(B,B.ey.time&255),Ap(B,B.ey.time>>8&255),Ap(B,B.ey.time>>16&255),Ap(B,B.ey.time>>24&255),Ap(B,B.level===9?2:B.strategy>=2||B.level<2?4:0),Ap(B,B.ey.os& 255),B.ey.extra&&B.ey.extra.length&&(Ap(B,B.ey.extra.length&255),Ap(B,B.ey.extra.length>>8&255)),B.ey.fL&&(f.W4=V3(f.W4,B.bR,B.pending,0)),B.mE=0,B.status=69):(Ap(B,0),Ap(B,0),Ap(B,0),Ap(B,0),Ap(B,0),Ap(B,B.level===9?2:B.strategy>=2||B.level<2?4:0),Ap(B,3),B.status=113);else{var r=8+(B.qm-8<<4)<<8;r|=(B.strategy>=2||B.level<2?0:B.level<6?1:B.level===6?2:3)<<6;B.WL!==0&&(r|=32);B.status=113;jJ(B,r+(31-r%31));B.WL!==0&&(jJ(B,f.W4>>>16),jJ(B,f.W4&65535));f.W4=1}if(B.status===69)if(B.ey.extra){for(r= B.pending;B.mE<(B.ey.extra.length&65535)&&(B.pending!==B.c6||(B.ey.fL&&B.pending>r&&(f.W4=V3(f.W4,B.bR,B.pending-r,r)),z2(f),r=B.pending,B.pending!==B.c6));)Ap(B,B.ey.extra[B.mE]&255),B.mE++;B.ey.fL&&B.pending>r&&(f.W4=V3(f.W4,B.bR,B.pending-r,r));B.mE===B.ey.extra.length&&(B.mE=0,B.status=73)}else B.status=73;if(B.status===73)if(B.ey.name){r=B.pending;do{if(B.pending===B.c6&&(B.ey.fL&&B.pending>r&&(f.W4=V3(f.W4,B.bR,B.pending-r,r)),z2(f),r=B.pending,B.pending===B.c6)){var L=1;break}L=B.mEr&&(f.W4=V3(f.W4,B.bR,B.pending-r,r));L===0&&(B.mE=0,B.status=91)}else B.status=91;if(B.status===91)if(B.ey.comment){r=B.pending;do{if(B.pending===B.c6&&(B.ey.fL&&B.pending>r&&(f.W4=V3(f.W4,B.bR,B.pending-r,r)),z2(f),r=B.pending,B.pending===B.c6)){L=1;break}L=B.mEr&&(f.W4=V3(f.W4,B.bR,B.pending-r,r));L===0&&(B.status=103)}else B.status= 103;B.status===103&&(B.ey.fL?(B.pending+2>B.c6&&z2(f),B.pending+2<=B.c6&&(Ap(B,f.W4&255),Ap(B,f.W4>>8&255),f.W4=0,B.status=113)):B.status=113);if(B.pending!==0){if(z2(f),f.Sy===0)return B.Vm=-1,0}else if(f.J3===0&&(e<<1)-(e>4?9:0)<=(n<<1)-(n>4?9:0)&&e!==4)return K5(f,-5);if(B.status===666&&f.J3!==0)return K5(f,-5);if(f.J3!==0||B.qk!==0||e!==0&&B.status!==666){n=B.strategy===2?XDH(B,e):B.strategy===3?sU5(B,e):Ug[B.level].func(B,e);if(n===3||n===4)B.status=666;if(n===1||n===3)return f.Sy===0&&(B.Vm= -1),0;if(n===2&&(e===1?(Xo(B,2,3),yz(B,256,p5),B.Vi===16?(se(B,B.V7),B.V7=0,B.Vi=0):B.Vi>=8&&(B.bR[B.pending++]=B.V7&255,B.V7>>=8,B.Vi-=8)):e!==5&&(Xo(B,0,3),f5(B,0,0),e===3&&(qI(B.head),B.qk===0&&(B.WL=0,B.kE=0,B.yD=0))),z2(f),f.Sy===0))return B.Vm=-1,0}if(e!==4)return 0;if(B.wrap<=0)return 1;B.wrap===2?(Ap(B,f.W4&255),Ap(B,f.W4>>8&255),Ap(B,f.W4>>16&255),Ap(B,f.W4>>24&255),Ap(B,f.yX&255),Ap(B,f.yX>>8&255),Ap(B,f.yX>>16&255),Ap(B,f.yX>>24&255)):(jJ(B,f.W4>>>16),jJ(B,f.W4&65535));z2(f);B.wrap>0&& (B.wrap=-B.wrap);return B.pending!==0?0:1}; NI=function(f){if(!(this instanceof NI))return new NI(f);f=this.options=Jh.assign({level:-1,method:8,chunkSize:16384,AB:15,DD:8,strategy:0,to:""},f||{});f.raw&&f.AB>0?f.AB=-f.AB:f.Bm&&f.AB>0&&f.AB<16&&(f.AB+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.B4=new hp;this.B4.Sy=0;var e=this.B4;var B=f.level,n=f.method,r=f.AB,L=f.DD,d=f.strategy;if(e){var t=1;B===-1&&(B=6);r<0?(t=0,r=-r):r>15&&(t=2,r-=16);if(L<1||L>9||n!==8||r<8||r>15||B<0||B>9||d<0||d>4)e=K5(e,-2);else{r===8&&(r=9);var H= new yGd;e.state=H;H.B4=e;H.wrap=t;H.ey=null;H.qm=r;H.E4=1<>=7;L<30;L++)for(kF[L]=d<<7,r=0;r<1<=k.E4&&(e===0&&(qI(k.head),k.WL=0,k.kE=0,k.yD=0),B=new Jh.YC(k.E4),Jh.CC(B,L,d-k.E4,k.E4,0),L=B,d=k.E4);B=f.J3;n=f.uX;r=f.input;f.J3=d;f.uX=0;f.input=L;for(l1(k);k.qk>=3;){L=k.WL;d=k.qk-2;do k.gC=(k.gC<e:f.length===1?f[0]:f.reduce((e,B)=>(...n)=>e(B(...n)))}; $a6=function(){var f=[];return e=>(B,n)=>{B=e(B,n);let r=()=>{throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}; const L={getState:B.getState,dispatch:(d,...t)=>r(d,...t)}; n=f.map(d=>d(L)); r=Jp(...n)(B.dispatch);return{...B,dispatch:r}}}; iR5=function(f){Object.keys(f).forEach(e=>{const B=f[e];if(typeof B(void 0,{type:MI})==="undefined")throw Error(`The slice reducer for key "${e}" returned undefined during initialization. `+"If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof B(void 0,{type:`@@redux/PROBE_UNKNOWN_ACTION${G2()}`})==="undefined")throw Error(`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${MI}' or other actions in "redux/*" `+ "namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.");})}; xF=function(f,e,B){function n(){if(C)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return t} function r(v){if(typeof v!=="function")throw Error(`Expected the listener to be a function. Instead, received: '${typeof v}'`);if(C)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let b=!0;k===H&&(k=H.slice());k.push(v);return function(){if(b){if(C)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details."); b=!1;k===H&&(k=H.slice());k.splice(k.indexOf(v),1);H=null}}} function L(v){if(typeof v!=="object"||v===null)var b=!1;else{for(b=v;Object.getPrototypeOf(b)!==null;)b=Object.getPrototypeOf(b);b=Object.getPrototypeOf(v)===b}if(!b)throw Error(`Actions must be plain objects. Instead, the actual type was: '${typeof v}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`); if(typeof v.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(C)throw Error("Reducers may not dispatch actions.");try{C=!0,t=d(t,v)}finally{C=!1}b=H=k;for(let K=0;K1?e[f[0]]=f[1]:f.length===1&&Object.assign(e,f[0])}; g.Q=function(f,e){return f in fN?fN[f]:e}; Bb=function(f){const e=fN.EXPERIMENT_FLAGS;return e?e[f]:void 0}; eX5=function(f){nN.forEach(e=>e(f))}; g.LN=function(f){return f&&window.yterr?function(){try{return f.apply(this,arguments)}catch(e){g.rZ(e)}}:f}; g.rZ=function(f){var e=g.zO("yt.logging.errors.log");e?e(f,"ERROR",void 0,void 0,void 0,void 0,void 0):(e=g.Q("ERRORS",[]),e.push([f,"ERROR",void 0,void 0,void 0,void 0,void 0]),eZ("ERRORS",e));eX5(f)}; dZ=function(f,e,B,n,r){var L=g.zO("yt.logging.errors.log");L?L(f,"WARNING",e,B,n,void 0,r):(L=g.Q("ERRORS",[]),L.push([f,"WARNING",e,B,n,void 0,r]),eZ("ERRORS",L))}; Hb=function(f,e){e=f.split(e);const B={};for(let L=0,d=e.length;L{const r=g.nH(n);g.MH(Array.isArray(B)?B:[B],L=>{L==""?e.push(r):e.push(`${r}=${g.nH(L)}`)})}); return e.join("&")}; C$=function(f){f.charAt(0)==="?"&&(f=f.substring(1));return Hb(f,"&")}; wZ=function(f){return f.split(",").map(e=>C$(e))}; g.vb=function(f){return f.indexOf("?")!==-1?(f=(f||"").split("#")[0],f=f.split("?",2),C$(f.length>1?f[1]:f[0])):{}}; ZR=function(f,e){return bs(f,e||{},!0)}; R6=function(f,e){return bs(f,e||{},!1)}; bs=function(f,e,B){var n=f.split("#",2);f=n[0];n=n.length>1?"#"+n[1]:"";var r=f.split("?",2);f=r[0];r=C$(r[1]||"");for(const L in e)if(B||!g.hu(r,L))r[L]=e[L];return g.vT(f,r)+n}; KN=function(f){if(!e)var e=window.location.href;const B=g.fY(f)[1]||null,n=g.BT(f);B&&n?(f=g.fY(f),e=g.fY(e),f=f[3]==e[3]&&f[1]==e[1]&&f[4]==e[4]):f=n?g.BT(e)===n&&(Number(g.fY(e)[4]||null)||null)===(Number(g.fY(f)[4]||null)||null):!0;return f}; qg=function(f){f||(f=document.location.href);f=g.fY(f)[1]||null;return f!==null&&f==="https"}; a6=function(f){f=zn(f);return f===null?!1:f[0]==="com"&&f[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; pN=function(f){f=zn(f);return f===null?!1:f[1]==="google"?!0:f[2]==="google"?f[0]==="au"&&f[1]==="com"?!0:f[0]==="uk"&&f[1]==="co"?!0:!1:!1}; zn=function(f){f=g.BT(f);return f!==null?f.split(".").reverse():null}; t7=function(f){return f&&f.match(r50)?f:rr(f)}; cb=function(f){a:{let B;try{B=f.C.top.location.href}catch(n){f=2;break a}f=B?B===f.G.location.href?0:1:2}f={dt:Llg,flash:"0",frm:f};try{f.u_tz=-(new Date).getTimezoneOffset();try{var e=ZS.history.length}catch(B){e=0}f.u_his=e;f.u_h=ZS.screen?.height;f.u_w=ZS.screen?.width;f.u_ah=ZS.screen?.availHeight;f.u_aw=ZS.screen?.availWidth;f.u_cd=ZS.screen?.colorDepth}catch(B){}return f}; A7=function(f=$F()){var e=YD,B=Object,n=B.assign,r=cb(e);var L=e.C;let d,t,H,k,C,w,v;try{var b=L.screenX;var K=L.screenY}catch(l){}try{var Y=L.outerWidth;d=L.outerHeight}catch(l){}try{t=L.innerWidth,H=L.innerHeight}catch(l){}try{k=L.screenLeft,C=L.screenTop}catch(l){}try{t=L.innerWidth,H=L.innerHeight}catch(l){}try{w=L.screen.availWidth,v=L.screen.availTop}catch(l){}L=[k,C,b,K,w,v,Y,d,t,H];b=uU(!1,e.C.top);K=new dZl;"SVGElement"in g.Kw&&"createElementNS"in g.Kw.document&&K.set(0);Y=tB6();Y["allow-top-navigation-by-user-activation"]&& K.set(1);Y["allow-popups-to-escape-sandbox"]&&K.set(2);g.Kw.crypto&&g.Kw.crypto.subtle&&K.set(3);"TextDecoder"in g.Kw&&"TextEncoder"in g.Kw&&K.set(4);K=u_w(K);e=n.call(B,r,{bc:K,bih:b.height,biw:b.width,brdim:L.join(),vis:PN(e.G),wgl:!!ZS.WebGLRenderingContext});e.ca_type="image";f&&(e.bid=f);return e}; t2m=function(){if(!jZ)return null;const f=jZ();return"open"in f?f:null}; g.o6=function(f){switch(OV(f)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; OV=function(f){return f&&"status"in f?f.status:-1}; g.VY=function(f,e){typeof f==="function"&&(f=g.LN(f));return window.setTimeout(f,e)}; g.ls=function(f,e){typeof f==="function"&&(f=g.LN(f));return window.setInterval(f,e)}; g.us=function(f){window.clearTimeout(f)}; g.Fx=function(f){window.clearInterval(f)}; g.UV=function(f){f=m0(f);return typeof f==="string"&&f==="false"?!1:!!f}; Ng=function(f,e){f=m0(f);return f===void 0&&e!==void 0?e:Number(f||0)}; h7=function(){return g.Q("EXPERIMENTS_TOKEN","")}; m0=function(f){return g.Q("EXPERIMENT_FLAGS",{})[f]}; gZ=function(){const f=[],e=g.Q("EXPERIMENTS_FORCED_FLAGS",{});for(var B of Object.keys(e))f.push({key:B,value:String(e[B])});B=g.Q("EXPERIMENT_FLAGS",{});for(const n of Object.keys(B))n.startsWith("force_")&&e[n]===void 0&&f.push({key:n,value:String(B[n])});return f}; SZ=function(f,e,B="GET",n="",r,L,d,t=!1,H){const k=t2m();if(!k)return null;const C=()=>{(k&&"readyState"in k?k.readyState:0)===4&&e&&g.LN(e)(k)}; "onloadend"in k?k.addEventListener("loadend",C,!1):k.onreadystatechange=C;g.UV("debug_forward_web_query_parameters")&&(f=HuO(f));k.open(B,f,!0);L&&(k.responseType=L);d&&(k.withCredentials=!0);B=B==="POST"&&(window.FormData===void 0||!(n instanceof FormData));if(r=kdC(f,r))for(const w in r)k.setRequestHeader(w,r[w]),"content-type"===w.toLowerCase()&&(B=!1);B&&k.setRequestHeader("Content-Type","application/x-www-form-urlencoded");H&&"onprogress"in k&&(k.onprogress=()=>{H(k.responseText)}); if(t&&"setAttributionReporting"in XMLHttpRequest.prototype){f={eventSourceEligible:!0,triggerEligible:!1};try{k.setAttributionReporting(f)}catch(w){dZ(w)}}k.send(n);return k}; kdC=function(f,e={}){const B=KN(f),n=g.Q("INNERTUBE_CLIENT_NAME"),r=g.UV("web_ajax_ignore_global_headers_if_set");for(const t in EV){let H=g.Q(EV[t]);const k=t==="X-Goog-AuthUser"||t==="X-Goog-PageId";t!=="X-Goog-Visitor-Id"||H||(H=g.Q("VISITOR_DATA"));var L;if(!(L=!H)){if(!(L=B||(g.BT(f)?!1:!0))){L=f;var d;if(d=g.UV("add_auth_headers_to_remarketing_google_dot_com_ping")&&t==="Authorization"&&(n==="TVHTML5"||n==="TVHTML5_UNPLUGGED"||n==="TVHTML5_SIMPLY")&&pN(L))L=nY(L)||"",L=L.split("/"),L="/"+(L.length> 1?L[1]:""),d=L==="/pagead";L=d?!0:!1}L=!L}L||r&&e[t]!==void 0||n==="TVHTML5_UNPLUGGED"&&k||(e[t]=H)}"X-Goog-EOM-Visitor-Id"in e&&"X-Goog-Visitor-Id"in e&&delete e["X-Goog-Visitor-Id"];if(B||!g.BT(f))e["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(B||!g.BT(f)){let t;try{t=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch{}t&&(e["X-YouTube-Time-Zone"]=t)}document.location.hostname.endsWith("youtubeeducation.com")||!B&&g.BT(f)||(e["X-YouTube-Ad-Signals"]=CN(A7()));return e}; Tn=function(f,e){e.method="POST";e.postParams||(e.postParams={});return g.QY(f,e)}; CEM=function(f,e){if(window.fetch&&e.format!=="XML"){var B={method:e.method||"GET",credentials:"same-origin"};e.headers&&(B.headers=e.headers);e.priority&&(B.priority=e.priority);f=DR(f,e);var n=J7(f,e);n&&(B.body=n);e.withCredentials&&(B.credentials="include");var r=e.context||g.Kw,L=!1,d;fetch(f,B).then(t=>{if(!L){L=!0;d&&g.us(d);var H=t.ok,k=C=>{C=C||{};H?e.onSuccess&&e.onSuccess.call(r,C,t):e.onError&&e.onError.call(r,C,t);e.onFinish&&e.onFinish.call(r,C,t)}; (e.format||"JSON")==="JSON"&&(H||t.status>=400&&t.status<500)?t.json().then(k,()=>{k(null)}):k(null)}}).catch(()=>{e.onError&&e.onError.call(r,{},{})}); f=e.timeout||0;e.onFetchTimeout&&f>0&&(d=g.VY(()=>{L||(L=!0,g.us(d),e.onFetchTimeout.call(e.context||g.Kw))},f))}else g.QY(f,e)}; g.QY=function(f,e){const B=e.format||"JSON";f=DR(f,e);var n=J7(f,e);let r=!1,L;const d=wng(f,t=>{if(!r){r=!0;L&&g.us(L);var H=g.o6(t),k=null,C=400<=t.status&&t.status<500,w=500<=t.status&&t.status<600;if(H||C||w)k=v65(f,B,t,e.convertToSafeHtml);H&&(H=buG(B,t,k));k=k||{};C=e.context||g.Kw;H?e.onSuccess&&e.onSuccess.call(C,t,k):e.onError&&e.onError.call(C,t,k);e.onFinish&&e.onFinish.call(C,t,k)}},e.method,n,e.headers,e.responseType,e.withCredentials,!1,e.onProgress); n=e.timeout||0;if(e.onTimeout&&n>0){const t=e.onTimeout;L=g.VY(()=>{r||(r=!0,d.abort(),g.us(L),t.call(e.context||g.Kw,d))},n)}return d}; DR=function(f,e){e.includeDomain&&(f=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+f);const B=g.Q("XSRF_FIELD_NAME");if(e=e.urlParams)e[B]&&delete e[B],f=ZR(f,e);return f}; J7=function(f,e){const B=g.Q("XSRF_FIELD_NAME"),n=g.Q("XSRF_TOKEN");var r=e.postBody||"",L=e.postParams;const d=g.Q("XSRF_FIELD_NAME");let t;e.headers&&(t=e.headers["Content-Type"]);e.excludeXsrf||g.BT(f)&&!e.withCredentials&&g.BT(f)!==document.location.hostname||e.method!=="POST"||t&&t!=="application/x-www-form-urlencoded"||e.postParams&&e.postParams[d]||(L||(L={}),L[B]=n);(g.UV("ajax_parse_query_data_only_when_filled")&&L&&Object.keys(L).length>0||L)&&typeof r==="string"&&(r=C$(r),g.sM(r,L),r=e.postBodyFormat&& e.postBodyFormat==="JSON"?JSON.stringify(r):g.we(r));L=r||L&&!g.TL(L);!Mg&&L&&e.method!=="POST"&&(Mg=!0,g.rZ(Error("AJAX request with postData should use POST")));return r}; v65=function(f,e,B,n){let r=null;switch(e){case "JSON":let L;try{L=B.responseText}catch(d){throw n=Error("Error reading responseText"),n.params=f,dZ(n),d;}f=B.getResponseHeader("Content-Type")||"";L&&f.indexOf("json")>=0&&(L.substring(0,5)===")]}'\n"&&(L=L.substring(5)),r=JSON.parse(L));break;case "XML":if(f=(f=B.responseXML)?Zuw(f):null)r={},g.MH(f.getElementsByTagName("*"),d=>{r[d.tagName]=RX6(d)})}n&&Gn(r); return r}; Gn=function(f){if(g.jC(f))for(const e in f)e==="html_content"||fE(e,"_html")?f[e]=Dw(f[e]):Gn(f[e])}; buG=function(f,e,B){if(e&&e.status===204)return!0;switch(f){case "JSON":return!!B;case "XML":return Number(B&&B.return_code)===0;case "RAW":return!0;default:return!!B}}; Zuw=function(f){return f?(f=("responseXML"in f?f.responseXML:f).getElementsByTagName("root"))&&f.length>0?f[0]:null:null}; RX6=function(f){let e="";g.MH(f.childNodes,B=>{e+=B.nodeValue}); return e}; HuO=function(f){var e=window.location.search,B=g.BT(f);g.UV("debug_handle_relative_url_for_query_forward_killswitch")||!B&&KN(f)&&(B=document.location.hostname);var n=nY(f);n=(B=B&&(B.endsWith("youtube.com")||B.endsWith("youtube-nocookie.com")))&&n&&n.startsWith("/api/");if(!B||n)return f;const r=C$(e),L={};g.MH(KlY,d=>{r[d]&&(L[d]=r[d])}); return R6(f,L)}; Wb=function(f,e){const B=g.GL(e);let n;return(new g.u5((r,L)=>{B.onSuccess=d=>{g.o6(d)?r(new qjm(d)):L(new xD(`Request failed, status=${OV(d)}`,"net.badstatus",d))}; B.onError=d=>{L(new xD("Unknown request error","net.unknown",d))}; B.onTimeout=d=>{L(new xD("Request timed out","net.timeout",d))}; n=g.QY(f,B)})).wT(r=>{r instanceof W7&&n?.abort(); return ho(r)})}; g.sV=function(f,e,B,n,r=-1,L){const d=H=>new g.u5(k=>{setTimeout(k,H)}),t=(H,k,C)=>H.wT(w=>{if(k<=0||OV(w.xhr)===403)return ho(new xD("Request retried too many times","net.retryexhausted",w.xhr)); const v=Math.pow(2,B-k+1)*C,b=r>0?Math.min(r,v):v;return d(C).then(()=>{L&&L(w,k-1);return t(Wb(f,e),k-1,b)})}); return t(Wb(f,e),B-1,n)}; zXm=function(f,e=null){f.J=2;f.G=e}; axG=function(f,e=null){f.J=1;f.G=e}; yY=function(f=null){const e=new Xx;zXm(e,f);return e}; Pb=function(f=null){const e=new Xx;axG(e,f);return e}; g.is=function(f,e,B,n="youtube.com",r=!1){I6||$D.set(""+f,e,{EF:B,path:"/",domain:n,secure:r})}; g.fs=function(f,e){if(!I6)return $D.get(""+f,e)}; g.e4=function(f,e="/",B="youtube.com"){I6||$D.remove(""+f,e,B)}; B1=function(){if(!$D.isEnabled())return!1;if(!$D.isEmpty())return!0;$D.set("TESTCOOKIESENABLED","1",{EF:60});if($D.get("TESTCOOKIESENABLED")!=="1")return!1;$D.remove("TESTCOOKIESENABLED");return!0}; g.u=function(f,e){if(f)return f[e.name]}; ns=function(f){const e=g.Q("INNERTUBE_HOST_OVERRIDE");e&&(f=String(e)+String(LY(f)));return f}; pn0=function(f){const e={};g.UV("json_condensed_response")&&(e.prettyPrint="false");return f=R6(f,e)}; rx=function(f,e="POST"){f={method:e,mode:KN(f)?"same-origin":"cors",credentials:KN(f)?"same-origin":"include"};e={};const B={};for(const n of Object.keys(e))e[n]&&(B[n]=e[n]);Object.keys(B).length>0&&(f.headers=B);return f}; Ls=function(f,e={}){return`${"service"}:${f}/${Object.keys(e).sort().map(B=>B+":"+e[B]).join("/")}`}; dx=function(){const f=/Chrome\/(\d+)/.exec(g.d0());return f?parseFloat(f[1]):NaN}; tl=function(){var f=/\sCobalt\/(\S+)\s/.exec(g.d0());if(!f)return NaN;const e=[];for(const B of f[1].split("."))f=parseInt(B,10),f>=0&&e.push(f);return parseFloat(e.join("."))}; kB=function(){return g.H1("android")&&g.H1("chrome")&&!(g.H1("trident/")||g.H1("edge/"))&&!g.H1("cobalt")}; g.Cs=function(){return g.H1("cobalt")}; wx=function(){return g.H1("cobalt")&&g.H1("appletv")}; v1=function(){return g.H1("(ps3; leanback shell)")||g.H1("ps3")&&g.Cs()}; c55=function(){return g.H1("(ps4; leanback shell)")||g.H1("ps4")&&g.Cs()}; g.Yj5=function(){return g.Cs()&&(g.H1("ps4 vr")||g.H1("ps4 pro vr"))}; bz=function(){const f=/WebKit\/([0-9]+)/.exec(g.d0());return!!(f&&parseInt(f[1],10)>=600)}; Zs=function(){const f=/WebKit\/([0-9]+)/.exec(g.d0());return!!(f&&parseInt(f[1],10)>=602)}; A50=function(){return g.H1("iemobile")||g.H1("windows phone")&&g.H1("edge")}; qy=function(){return(RB||Ks)&&g.H1("applewebkit")&&!g.H1("version")&&(!g.H1("safari")||g.H1("gsa/"))}; aB=function(){return g.zw&&g.H1("version/")}; ps=function(){return g.H1("smart-tv")&&g.H1("samsung")}; g.H1=function(f){const e=g.d0();return e?e.toLowerCase().indexOf(f)>=0:!1}; c1=function(){return h4()||qy()||aB()?!0:g.Q("EOM_VISITOR_DATA")?!1:!0}; YB=function(f,e){return e===void 0||e===null?f:e==="1"||e===!0||e===1||e==="True"?!0:!1}; Al=function(f,e,B){for(const n in B)if(B[n]==e)return B[n];return f}; j4=function(f,e){return e===void 0||e===null?f:Number(e)}; Ov=function(f,e){return e===void 0||e===null?f:e.toString()}; oB=function(f,e){if(e){if(f==="fullwidth")return Infinity;if(f==="fullheight")return 0}return f&&(e=f.match(jW5))&&(f=Number(e[2]),e=Number(e[1]),!isNaN(f)&&!isNaN(e)&&f>0)?e/f:NaN}; VT=function(f){var e=f.docid||f.video_id||f.videoId||f.id;if(e)return e;e=f.raw_player_response;e||(f=f.player_response)&&(e=JSON.parse(f));return e&&e.videoDetails&&e.videoDetails.videoId||null}; Ou6=function(f){return lz(f,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.uz=function(f){return f==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||f==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; lz=function(f,e=!1){e=e?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(e="EMBEDDED_PLAYER_MODE_PFL");let B=f.raw_embedded_player_response;if(!B&&(f=f.embedded_player_response))try{B=JSON.parse(f)}catch(n){return e}return B?Al(e,B.embeddedPlayerMode,o6k):e}; V20=function(){if(g.UV("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!c1())return Error("User has not consented - not fetching biscotti id.");const f=g.Q("PLAYER_VARS",{});if(g.Ju(f,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Ou6(f))return Error("Biscotti id fetching has been disabled for pfl.")}; mZO=function(){const f=V20();if(f!==void 0)return ho(f);Fe||(Fe=Wb("//googleads.g.doubleclick.net/pagead/id",lxG).then(upg).wT(e=>Fl0(2,e))); return Fe}; upg=function(f){f=f.xhr.responseText;if(!$e(f,")]}'"))throw new m9;f=JSON.parse(f.substr(4));if((f.type||1)>1)throw new m9;f=f.id;i1(f);Fe=Pb(f);UZd(18E5,2);return f}; Fl0=function(f,e){e=new N85(e);i1("");Fe=yY(e);f>0&&UZd(12E4,f-1);throw e;}; UZd=function(f,e){g.VY(function(){Wb("//googleads.g.doubleclick.net/pagead/id",lxG).then(upg,B=>Fl0(e,B)).wT(g.zt)},f)}; hXk=function(){try{const f=g.zO("yt.ads.biscotti.getId_");return f?f():mZO()}catch(f){return ho(f)}}; SjC=function(f){f&&(f.dataset?f.dataset[g6C()]="true":ogg(f))}; E6Y=function(f){return f?f.dataset?f.dataset[g6C()]:f.getAttribute("data-loaded"):null}; g6C=function(){return QWM.loaded||(QWM.loaded="loaded".replace(/\-([a-z])/g,(f,e)=>e.toUpperCase()))}; T8m=function(){var f=document;if("visibilityState"in f)return f.visibilityState;const e=Ny+"VisibilityState";if(e in f)return f[e]}; hl=function(f,e){let B;yG(f,n=>{B=e[n];return!!B}); return B}; gx=function(f){if(f.requestFullscreen)f=f.requestFullscreen(void 0);else if(f.webkitRequestFullscreen)f=f.webkitRequestFullscreen();else if(f.mozRequestFullScreen)f=f.mozRequestFullScreen();else if(f.msRequestFullscreen)f=f.msRequestFullscreen();else if(f.webkitEnterFullscreen)f=f.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return f instanceof Promise?f:Promise.resolve()}; QT=function(f){var e;g.S4()?Ev()==f&&(e=document):e=f;return e&&(f=hl(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],e))?(e=f.call(e),e instanceof Promise?e:Promise.resolve()):Promise.resolve()}; DZd=function(f){return g.$g(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],e=>`on${e.toLowerCase()}`in f)}; J5O=function(){var f=document;return g.$g(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],e=>`on${e.toLowerCase()}`in f)}; g.S4=function(){return!!hl(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; Ev=function(f=!1){let e=hl(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(f)for(;e&&e.shadowRoot;)e=e.shadowRoot.fullscreenElement;return e?e:null}; M25=function(f){if(document.body&&document.documentElement){const e=document.body.scrollTop+document.documentElement.scrollTop;f.C=f.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);f.G=f.clientY+e}}; Gd5=function(f,e,B,n={}){f.addEventListener&&(e!="mouseenter"||"onmouseenter"in document?e!="mouseleave"||"onmouseenter"in document?e=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(e="MozMousePixelScroll"):e="mouseout":e="mouseover");return SB(Tw,r=>{const L=typeof r[4]==="boolean"&&r[4]==!!n,d=g.jC(r[4])&&g.jC(n)&&g.MT(r[4],n);return!!r.length&&r[0]==f&&r[1]==e&&r[2]==B&&(L||d)})}; g.Ds=function(f,e,B,n={}){if(!f||!f.addEventListener&&!f.attachEvent)return"";let r=Gd5(f,e,B,n);if(r)return r;r=++xZG.count+"";const L=!(e!="mouseenter"&&e!="mouseleave"||!f.addEventListener||"onmouseenter"in document);let d;d=L?t=>{t=new Wlw(t);if(!vN(t.relatedTarget,H=>H==f,!0))return t.currentTarget=f,t.type=e,B.call(f,t)}:t=>{t=new Wlw(t); t.currentTarget=f;return B.call(f,t)}; d=g.LN(d);f.addEventListener?(e=="mouseenter"&&L?e="mouseover":e=="mouseleave"&&L?e="mouseout":e=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(e="MozMousePixelScroll"),sWO()||typeof n==="boolean"?f.addEventListener(e,d,n):f.addEventListener(e,d,!!n.capture)):f.attachEvent(`on${e}`,d);Tw[r]=[f,e,B,d,n];return r}; y5w=function(f){return Xnd(f,e=>g.yC(e,"ytp-ad-has-logging-urls"))}; Xnd=function(f,e){const B=document.body||document;return g.Ds(B,"click",n=>{const r=vN(n.target,L=>L===B||e(L),!0); r&&r!==B&&!r.disabled&&(n.currentTarget=r,f.call(r,n))})}; g.Jl=function(f){f&&(typeof f=="string"&&(f=[f]),g.MH(f,e=>{if(e in Tw){var B=Tw[e];const n=B[0],r=B[1],L=B[3];B=B[4];n.removeEventListener?sWO()||typeof B==="boolean"?n.removeEventListener(r,L,B):n.removeEventListener(r,L,!!B.capture):n.detachEvent&&n.detachEvent(`on${r}`,L);delete Tw[e]}}))}; My=function(f){for(let e in Tw)Tw[e][0]==f&&g.Jl(e)}; Gw=function(f){f=f||window.event;let e;f.composedPath&&typeof f.composedPath==="function"?e=f.composedPath():e=f.path;e&&e.length?f=e[0]:(f=f||window.event,f=f.target||f.srcElement,f.nodeType==3&&(f=f.parentNode));return f}; xB=function(f){this.X=f;this.C=null;this.V=0;this.U=null;this.W=0;this.G=[];for(f=0;f<4;f++)this.G.push(0);this.J=0;this.A=g.Ds(window,"mousemove",(0,g.VG)(this.N,this));this.K=g.ls((0,g.VG)(this.Ed,this),25)}; W1=function(f,e,B,n){for(let r=0;r0?B:0;B=n?Date.now()+n*1E3:0;if((n=n?g.Xe.yI():g.Xe.Qn())&&window.JSON){typeof e!=="string"&&(e=JSON.stringify(e,void 0));try{n.set(f,e,B)}catch(r){n.remove(f)}}}; g.IB=function(f){const e=g.Xe.Qn(),B=g.Xe.yI();if(!e&&!B||!window.JSON)return null;let n;try{n=e.get(f)}catch(r){}if(typeof n!=="string")try{n=B.get(f)}catch(r){}if(typeof n!=="string")return null;try{n=JSON.parse(n,void 0)}catch(r){}return n}; PEw=function(){var f=g.Xe.yI();if(f&&(f=f.hs("yt-player-quality")))return f.creation}; g.$B=function(f){try{const e=g.Xe.Qn(),B=g.Xe.yI();e&&e.remove(f);B&&B.remove(f)}catch(e){}}; g.iz=function(){return g.IB("yt-remote-session-screen-id")}; fi=function(){if(!g.Kw.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Kw.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Kw.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Kw.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Kw.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(f){return"WEB_DISPLAY_MODE_UNKNOWN"}}; Ixg=function(){eY.instance||(eY.instance=new eY);return eY.instance}; $ZM=function(f){switch(f){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}}; g.ni=function(){Bo||(Bo=new iuO);return Bo}; Li=function(f,e){var B=`f${Math.floor(f/31)+1}`;f=1<10&&pi.shift()))}; YI=function(f,e){zq||(aN?aN.logEvent(f,e):(pi.push({type:"EVENT",eventType:f,payload:e}),pi.length>10&&pi.shift()))}; An=function(f){if(f.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; jY=function(f){return f.substr(0,f.indexOf(":"))||f}; lo=function(f,e,B,n){e=jY(e);let r;r=f instanceof Error?f:Error(`Unexpected error: ${f}`);if(r instanceof g.OU)return r;f={objectStoreNames:B,dbName:e,dbVersion:n};if(r.name==="QuotaExceededError")return new g.OU("QUOTA_EXCEEDED",f);if(g.oN&&r.name==="UnknownError")return new g.OU("QUOTA_MAYBE_EXCEEDED",f);if(r instanceof Ve)return new g.OU("MISSING_INDEX",{...f,objectStore:r.objectStore,index:r.index});if(r.name==="InvalidStateError"&&txG.some(L=>r.message.includes(L)))return new g.OU("EXECUTE_TRANSACTION_ON_CLOSED_DB", f); if(r.name==="AbortError")return new g.OU("UNKNOWN_ABORT",f,r.message);r.args=[{...f,name:"IdbError",N1:r.name}];r.level="WARNING";return r}; g.uo=function(f,e,B){const n=qM();return new g.OU("IDB_NOT_SUPPORTED",{context:{caller:f,publicName:e,version:B,hasSucceededOnce:n?.hasSucceededOnce}})}; HrG=function(f){if(!f)throw Error();throw f;}; kpH=function(f){return f}; CwC=function(f,e,B,n,r){try{if(f.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");const L=B(f.state.value);L instanceof g.FD?mC(f,e,L,n,r):n(L)}catch(L){r(L)}}; wr5=function(f,e,B,n,r){try{if(f.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");const L=B(f.state.reason);L instanceof g.FD?mC(f,e,L,n,r):n(L)}catch(L){r(L)}}; mC=function(f,e,B,n,r){e===B?r(new TypeError("Circular promise chain detected.")):B.then(L=>{L instanceof g.FD?mC(f,e,L,n,r):n(L)},L=>{r(L)})}; v15=function(f,e,B){const n=()=>{try{f.removeEventListener("success",r),f.removeEventListener("error",L)}catch{}},r=()=>{e(f.result); n()},L=()=>{B(f.error); n()}; f.addEventListener("success",r);f.addEventListener("error",L)}; brM=function(f){return new Promise((e,B)=>{v15(f,e,B)})}; NM=function(f){return new g.FD(new UU((e,B)=>{v15(f,e,B)}))}; hn=function(f,e){return new g.FD(new UU((B,n)=>{const r=()=>{const L=f?e(f):null;L?L.then(d=>{f=d;r()},n):B()}; r()}))}; RBO=function(f){return NM(f).then(e=>e?new Zr5(f,e):null)}; g.K7H=function(f){f.cursor.continue(void 0);return RBO(f.request)}; gS=function(){return g.UV("idb_immediate_commit")}; g.SY=async function(f,e,B,n){const r={mode:"readonly",XG:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof B==="string"?r.mode=B:Object.assign(r,B);f.transactionCount++;B=r.XG?3:1;let L=0,d;for(;!d;){L++;const C=Math.round((0,g.T)());try{var t=f.C.transaction(e,r.mode),H=n,k=!!r.commit;const w=new qlm(t),v=await zBw(w,H,k),b=Math.round((0,g.T)());a3k(f,C,b,L,void 0,e.join(),r);return v}catch(w){H=Math.round((0,g.T)());const v=lo(w,f.C.name,e.join(),f.C.version);if(v instanceof g.OU&&!v.C||L>=B)a3k(f,C, H,L,v,e.join(),r),d=v}}return Promise.reject(d)}; g.EU=function(f,e,B){f=f.C.createObjectStore(e,B);return new prC(f)}; Qe=function(f,e){f.C.objectStoreNames.contains(e)&&f.C.deleteObjectStore(e)}; a3k=function(f,e,B,n,r,L,d){e=B-e;r?(r instanceof g.OU&&(r.type==="QUOTA_EXCEEDED"||r.type==="QUOTA_MAYBE_EXCEEDED")&&YI("QUOTA_EXCEEDED",{dbName:jY(f.C.name),objectStoreNames:L,transactionCount:f.transactionCount,transactionMode:d.mode}),r instanceof g.OU&&r.type==="UNKNOWN_ABORT"&&(B-=f.J,B<0&&B>=2147483648&&(B=0),YI("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:L,transactionDuration:e,transactionCount:f.transactionCount,dbDuration:B}),f.G=!0),c65(f,!1,n,L,e,d.tag),co(r)):c65(f,!0,n,L,e, d.tag)}; c65=function(f,e,B,n,r,L="IDB_TRANSACTION_TAG_UNKNOWN"){YI("TRANSACTION_ENDED",{objectStoreNames:n,connectionHasUnknownAbortedTransaction:f.G,duration:r,isSuccessful:e,tryCount:B,tag:L})}; g.Tq=function(f,e,B){f.C.createIndex(e,B,{unique:!1})}; g.Jn=function(f,e,B){f=f.C.openCursor(e.query,e.direction);return D4(f).then(n=>hn(n,B))}; Ylk=function(f,e){return g.Jn(f,{query:e},B=>B.delete().then(()=>g.MM(B))).then(()=>{})}; A6G=function(f,e,B){const n=[];return g.Jn(f,{query:e},r=>{if(!(B!==void 0&&n.length>=B))return n.push(r.getValue()),g.MM(r)}).then(()=>n)}; Or0=function(f){const e=[];return g.jQO(f,{query:void 0},B=>{e.push(B.cursor.primaryKey);return g.K7H(B)}).then(()=>e)}; o1G=function(f){return"getAllKeys"in IDBObjectStore.prototype?NM(f.C.getAllKeys(void 0,void 0)):Or0(f)}; g.jQO=function(f,e,B){const n=e.query;e=e.direction;f="openKeyCursor"in IDBObjectStore.prototype?f.C.openKeyCursor(n,e):f.C.openCursor(n,e);return RBO(f).then(r=>hn(r,B))}; zBw=function(f,e,B){const n=new Promise((r,L)=>{try{const d=e(f);B&&f.commit();d.then(t=>{r(t)}).catch(L)}catch(d){L(d),f.abort()}}); return Promise.all([n,f.done]).then(([r])=>r)}; g.Gq=function(f,e,B){const {query:n=null,direction:r="next"}=e;f=f.C.openCursor(n,r);return D4(f).then(L=>hn(L,B))}; VxO=function(f,e,B){const n=[];return g.Gq(f,{query:e},r=>{if(!(B!==void 0&&n.length>=B))return n.push(r.getValue()),g.MM(r)}).then(()=>n)}; D4=function(f){return NM(f).then(e=>e?new l3g(f,e):null)}; g.MM=function(f){f.cursor.continue(void 0);return D4(f.request)}; F7H=function(f,e,B){return new Promise((n,r)=>{let L;L=e!==void 0?self.indexedDB.open(f,e):self.indexedDB.open(f);const d=B.blocked,t=B.blocking,H=B.v1,k=B.upgrade,C=B.closed;let w;const v=()=>{w||(w=new uyH(L.result,{closed:C}));return w}; L.addEventListener("upgradeneeded",b=>{try{if(b.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(L.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");b.dataLoss&&b.dataLoss!=="none"&&YI("IDB_DATA_CORRUPTED",{reason:b.dataLossMessage||"unknown reason",dbName:jY(f)});const K=v(),Y=new qlm(L.transaction);k&&k(K,l=>b.oldVersion=l,Y); Y.done.catch(l=>{r(l)})}catch(K){r(K)}}); L.addEventListener("success",()=>{const b=L.result;t&&b.addEventListener("versionchange",()=>{t(v())}); b.addEventListener("close",()=>{YI("IDB_UNEXPECTEDLY_CLOSED",{dbName:jY(f),dbVersion:b.version});H&&H()}); n(v())}); L.addEventListener("error",()=>{r(L.error)}); d&&L.addEventListener("blocked",()=>{d()})})}; m7d=function(f,e,B={}){return F7H(f,e,B)}; xI=async function(f,e={}){try{const B=self.indexedDB.deleteDatabase(f),n=e.blocked;n&&B.addEventListener("blocked",()=>{n()}); await brM(B)}catch(B){throw lo(B,f,"",-1);}}; U75=function(f,e){return new g.OU("INCOMPATIBLE_DB_VERSION",{dbName:f.name,oldVersion:f.options.version,newVersion:e})}; g.Wo=function(f,e){if(!e)throw g.uo("openWithToken",jY(f.name));return f.open()}; Njw=async function(f,e){return g.SY(await g.Wo(sU,e),["databases"],{XG:!0,mode:"readwrite"},B=>{const n=B.objectStore("databases");return n.get(f.actualName).then(r=>{if(r?f.actualName!==r.actualName||f.publicName!==r.publicName||f.userIdentifier!==r.userIdentifier:1)return n.put(f).then(()=>{})})})}; XD=async function(f,e){return f?(await g.Wo(sU,e)).delete("databases",f):void 0}; hB5=async function(f,e){const B=[];e=await g.Wo(sU,e);await g.SY(e,["databases"],{XG:!0,mode:"readonly"},n=>{B.length=0;return g.Jn(n.objectStore("databases"),{},r=>{f(r.getValue())&&B.push(r.getValue());return g.MM(r)})}); return B}; g1l=function(f,e){return hB5(B=>B.publicName===f&&B.userIdentifier!==void 0,e)}; SlM=async function(){if(qM()?.hasSucceededOnce)return!0;var f;if(!(f=ye&&bz()&&!Zs()||g.Po)){try{f=self;var e=!!(f.indexedDB&&f.IDBIndex&&f.IDBKeyRange&&f.IDBObjectStore)}catch(B){e=!1}f=!e}if(f||!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return!1;try{return await Njw({actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0},IN),await XD("yt-idb-test-do-not-use",IN),!0}catch(B){return!1}}; E1G=function(){if($I!==void 0)return $I;zq=!0;return $I=SlM().then(f=>{zq=!1;if(Ki()?.G()){var e={hasSucceededOnce:qM()?.hasSucceededOnce||f};Ki()?.set("LAST_RESULT_ENTRY_KEY",e,2592E3,!0)}return f})}; io=function(){return g.zO("ytglobal.idbToken_")||void 0}; g.f8=function(){const f=io();return f?Promise.resolve(f):E1G().then(e=>{e?(g.qH("ytglobal.idbToken_",IN),e=IN):e=void 0;return e})}; QQY=function(f){if(!g.kI())throw f=new g.OU("AUTH_INVALID",{dbName:f}),co(f),f;const e=g.Ho();return{actualName:`${f}:${e}`,publicName:f,userIdentifier:e}}; Tjd=async function(f,e,B,n){var r=Error().stack??"";const L=await g.f8();if(!L)throw e=g.uo("openDbImpl",f,e),g.UV("ytidb_async_stack_killswitch")||(e.stack=`${e.stack}\n${r.substring(r.indexOf("\n")+1)}`),co(e),e;An(f);r=B?{actualName:f,publicName:f,userIdentifier:void 0}:QQY(f);try{return await Njw(r,L),await m7d(r.actualName,e,n)}catch(d){try{await XD(r.actualName,L)}catch{}throw d;}}; D7H=function(f,e,B={}){return Tjd(f,e,!1,B)}; J66=function(f,e,B={}){return Tjd(f,e,!0,B)}; Mx5=async function(f,e={}){const B=await g.f8();B&&(An(f),f=QQY(f),await xI(f.actualName,e),await XD(f.actualName,B))}; GpO=function(f,e,B){f=f.map(async n=>{await xI(n.actualName,e);await XD(n.actualName,B)}); return Promise.all(f).then(()=>{})}; k_=function(f,e,B,n,r,L,d,t,H){f-5>>3||e[Z[45]](e[Z[13]],0,B);if((f|56)==f&&e[Z[0]])var k=M8(1,e);if((f>>1&21)==4){k=e[Z[36]](Z[12]);el[Z[35]](k,37);el[Z[67]](k,1);el[Z[9]](k,21);el[Z[35]](k,58);el[Z[9]](k,17);el[Z[35]](k,46);el[Z[9]](k,11);var C=k[Z[54]](Z[12])}if((f+6^21)=f){k=e[Z[36]](Z[60]);let w=0;k[0]||w++;const v={};for(;w=f&&(f+4&63){B||(B=new sQM(f,e));return B}}; g.BL=function(f,e){return Xrd(f,e)}; n8=function(f){return g.Wo(y65(),f)}; Pw0=async function(f,e,B,n){f={config:f,hashData:e,timestamp:n!==void 0?n:(0,g.T)()};B=await n8(B);await B.clear("hotConfigStore");return await B.put("hotConfigStore",f)}; I36=async function(f,e,B,n,r){f={config:f,hashData:e,configData:B,timestamp:r!==void 0?r:(0,g.T)()};n=await n8(n);await n.clear("coldConfigStore");return await n.put("coldConfigStore",f)}; $7H=async function(f){f=await n8(f);let e=void 0;await g.SY(f,["coldConfigStore"],{mode:"readwrite",XG:!0},B=>g.Gq(B.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},n=>{e=n.getValue()})); return e}; irC=async function(f){f=await n8(f);let e=void 0;await g.SY(f,["hotConfigStore"],{mode:"readwrite",XG:!0},B=>g.Gq(B.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},n=>{e=n.getValue()})); return e}; fg5=async function(){await x7w("ytGcfConfig")}; ekw=function(){if(!rq.instance){const f=new rq;rq.instance=f}return rq.instance}; L8=function(f,e){f.G=e;g.qH("yt.gcf.config.hotConfigGroup",f.G||null)}; dq=function(f,e){f.C=e;g.qH("yt.gcf.config.coldConfigGroup",f.C||null)}; tT=function(){return g.zO("yt.gcf.config.coldConfigGroup")}; HL=function(){return g.zO("yt.gcf.config.hotConfigGroup")}; r8w=function(f){if(!f.G||!f.C){if(!io()){const e=g.uo("scheduleGetConfigs");dZ(e)}f.V||(f.V=g.ul.Br(async()=>{try{await Bfg(f)}catch{}try{await nll(f)}catch{}f.V&&(f.V=0)},100))}}; kn=function(f,e){f.coldHashData=e;g.qH("yt.gcf.config.coldHashData",f.coldHashData||null)}; tmM=async function(f){if(g.UV("start_client_gcf")||g.UV("delete_gcf_config_db"))g.UV("start_client_gcf")&&(await g.f8()&&g.kI()&&!g.UV("delete_gcf_config_db")?(f.W=!0,r8w(f)):(L2M(f),dSw(f))),g.UV("delete_gcf_config_db")&&await fg5()}; dSw=function(f){L8(f,g.Q("RAW_HOT_CONFIG_GROUP"));f.Jv(g.Q("SERIALIZED_HOT_HASH_DATA"))}; Bfg=async function(f){if(f.G)return HL();if(!f.W)return f=g.uo("getHotConfig IDB not initialized"),dZ(f),Promise.reject(f);const e=io(),B=g.Q("TIME_CREATED_MS");if(e){var n=await irC(e);if(n&&n.timestamp>B)return L8(f,n.config),f.Jv(n.hashData),HL()}else n=g.uo("getHotConfig token error"),dZ(n);dSw(f);e&&f.G&&f.hotHashData&&await Pw0(f.G,f.hotHashData,e,B);return f.G?HL():(f=new g.Dj("Config not available in ytConfig"),dZ(f),Promise.reject(f))}; HtC=function(f,e){f.configData=e;g.qH("yt.gcf.config.coldConfigData",f.configData||null)}; L2M=function(f){dq(f,g.Q("RAW_COLD_CONFIG_GROUP"));kn(f,g.Q("SERIALIZED_COLD_HASH_DATA"));HtC(f,f.C?.configData)}; nll=async function(f){if(f.C)return tT();if(!f.W)return f=g.uo("getColdConfig IDB not initialized"),dZ(f),Promise.reject(f);const e=io(),B=g.Q("TIME_CREATED_MS");if(e){var n=await $7H(e);if(n&&n.timestamp>B)return dq(f,n.config),HtC(f,n.configData),kn(f,n.hashData),tT()}else n=g.uo("getColdConfig"),dZ(n);L2M(f);e&&f.C&&f.coldHashData&&f.configData&&await I36(f.C,f.coldHashData,f.configData,e,B);return f.C?tT():(f=new g.Dj("Config not available in ytConfig"),dZ(f),Promise.reject(f))}; k76=async function(f,e,B){if(g.UV("start_client_gcf")){B&&L8(f,B);f.Jv(e);const n=io();n&&(B||(B=(await irC(n))?.config),await Pw0(B,e,n));if(B){f=f.U;for(const r of f.C)r(B)}}}; Chl=async function(f,e,B){g.UV("start_client_gcf")&&(kn(f,e),f=io())&&(B||(B=(await $7H(f))?.config),B&&await I36(B,e,B.configData,f))}; wUM=function(){var f=ekw(),e=(0,g.T)()-f.J;if(!(f.J!==0&&e0&&(e.request={internalExperimentFlags:B});bt5(f,void 0,e);Zt5(void 0,e);Rk5(void 0,e);K2C(f,void 0,e);qi0(void 0,e);g.UV("start_client_gcf")&&zkC(void 0,e);g.Q("DELEGATED_SESSION_ID")&& !g.UV("pageid_as_header_web")&&(e.user={onBehalfOfUser:g.Q("DELEGATED_SESSION_ID")});!g.UV("fill_delegate_context_in_gel_killswitch")&&(f=g.Q("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(e.user={...e.user,serializedDelegationContext:f});f=g.Q("INNERTUBE_CONTEXT");g.UV("enable_persistent_device_token")&&f?.client?.rolloutToken&&(e.client.rolloutToken=f?.client?.rolloutToken);f=Object;B=f.assign;var n=e.client,r=g.Q("DEVICE","");const L={};for(const [d,t]of Object.entries(C$(r))){r=d;const H= t;r==="cbrand"?L.deviceMake=H:r==="cmodel"?L.deviceModel=H:r==="cbr"?L.browserName=H:r==="cbrver"?L.browserVersion=H:r==="cos"?L.osName=H:r==="cosver"?L.osVersion=H:r==="cplatform"&&(L.platform=H)}e.client=B.call(f,n,L);return e}; bt5=function(f,e,B){f=f.zO;if(f==="WEB"||f==="MWEB"||f===1||f===2)e?(B=sl(e,vL,96)||new vL,f=fi(),f=Object.keys(agg).indexOf(f),f=f===-1?null:f,f!==null&&wf(B,3,f),$1(e,vL,96,B)):B&&(B.client.mainAppWebInfo=B.client.mainAppWebInfo??{},B.client.mainAppWebInfo.webDisplayMode=fi())}; Zt5=function(f,e){const B=g.zO("yt.embedded_player.embed_url");B&&(f?(e=sl(f,bO,7)||new bO,kl(e,4,B),$1(f,bO,7,e)):e&&(e.thirdParty={embedUrl:B}))}; Rk5=function(f,e){if(g.UV("web_log_memory_total_kbytes")&&g.Kw.navigator?.deviceMemory){const B=g.Kw.navigator?.deviceMemory;f?Y1(f,95,lE(B*1E6)):e&&(e.client.memoryTotalKbytes=`${B*1E6}`)}}; K2C=function(f,e,B){f.appInstallData&&(e?(B=sl(e,Zu,62)??new Zu,kl(B,6,f.appInstallData),$1(e,Zu,62,B)):B&&(B.client.configInfo=B.client.configInfo||{},B.client.configInfo.appInstallData=f.appInstallData))}; qi0=function(f,e){var B=n15();B&&(f?wf(f,61,pUG[B]):e&&(e.client.connectionType=B));g.UV("web_log_effective_connection_type")&&(B=L7Y())&&(f?wf(f,94,c85[B]):e&&(e.client.effectiveConnectionType=B))}; YiG=function(f,e,B={}){let n={};g.Q("EOM_VISITOR_DATA")?n={"X-Goog-EOM-Visitor-Id":g.Q("EOM_VISITOR_DATA")}:n={"X-Goog-Visitor-Id":B.visitorData||g.Q("VISITOR_DATA","")};if(e&&e.includes("www.youtube-nocookie.com"))return n;e=B.qE||g.Q("AUTHORIZATION");e||(f?e=`Bearer ${g.zO("gapi.auth.getToken")().access_token}`:(f=Ixg().J5(RF),g.UV("pageid_as_header_web")||delete f["X-Goog-PageId"],n={...n,...f}));e&&(n.Authorization=e);return n}; zkC=function(f,e){var B=wUM();if(B){var n=B.coldConfigData,r=B.coldHashData;B=B.hotHashData;f?(e=sl(f,Zu,62)??new Zu,n=kl(e,1,n),kl(n,3,r).Jv(B),$1(f,Zu,62,e)):e&&(e.client.configInfo=e.client.configInfo||{},n&&(e.client.configInfo.coldConfigData=n),r&&(e.client.configInfo.coldHashData=r),B&&(e.client.configInfo.hotHashData=B))}}; K8=function(f){this.version=1;this.args=f}; qB=function(f,e){this.topic=f;this.C=e}; aF=function(f,e){const B=zY();B&&B.publish.call(B,f.toString(),f,e)}; OtH=function(f){var e=A8C;const B=zY();if(!B)return 0;const n=B.subscribe(e.toString(),(r,L)=>{var d=g.zO("ytPubsub2Pubsub2SkipSubKey");d&&d==n||(d=()=>{if(p8[n])try{if(L&&e instanceof qB&&e!=r)try{{var t=e.C,H=L;if(!H.args||!H.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");let k;try{if(!t.tB){const C=new t;t.tB=C.version}k=t.tB}catch(C){}if(!k||H.version!=k)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{L=Reflect.construct(t, g.ke(H.args))}catch(C){throw C.message="yt.pubsub2.Data.deserialize(): "+C.message,C;}}}catch(k){throw k.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+e.toString()+": "+k.message,k;}f.call(window,L)}catch(k){g.rZ(k)}},jDg[e.toString()]?g.Z4()?g.ul.Br(d):g.VY(d,0):d())}); p8[n]=!0;cL[e.toString()]||(cL[e.toString()]=[]);cL[e.toString()].push(n);return n}; lgO=function(){var f=olk;const e=OtH(function(B){f.apply(void 0,arguments);Vmw(e)}); return e}; Vmw=function(f){const e=zY();e&&(typeof f==="number"&&(f=[f]),g.MH(f,B=>{e.unsubscribeByKey(B);delete p8[B]}))}; zY=function(){return g.zO("ytPubsub2Pubsub2Instance")}; Yn=function(f,e,B={sampleRate:.1}){Math.random(){B=B.data;if(B.op==="gzippedGelBatch"){var n=Vt.get(B.key);n&&(mSH(B.gzippedBatch,n.latencyPayload,n.url,n.options,n.sendFn),Vt.delete(B.key))}},e=Oq(); e&&(e.addEventListener("message",f),e.onerror=()=>{Vt.clear()},oF=!0)}}; Fb=function(f,e,B,n,r=!1){const L={startTime:(0,g.T)(),ticks:{},infos:{}};if(lO)try{const t=NfY(e);if(t!=null&&(t>hkg||t=QD5&&(Tfd++,lO=!1);g.UV("gel_compression_csi_killswitch")||!g.UV("log_gel_compression_latency")&&!g.UV("log_gel_compression_latency_lr")||Yn("gel_compression",e,{sampleRate:.1});n.headers||(n.headers={});n.headers["Content-Encoding"]="gzip";n.postBody=f;n.postParams=void 0;r(B,n)}; DSH=function(f){(0,g.T)();if(lO){if(!f.body)return f;try{const e=typeof f.body==="string"?f.body:JSON.stringify(f.body);let B=e;if(typeof e==="string"){const n=NfY(e);if(n!=null&&(n>hkg||n{}; e.options.onError=async(r,L)=>{const d=Mmd(L),t=G7C(L);t&&f.SI&&f.SI("web_enable_error_204")&&f.handleError(Error("Request failed due to compression"),e.url,L);if(f.SI&&f.SI("nwl_consider_error_code")&&d||f.SI&&!f.SI("nwl_consider_error_code")&&f.potentialEsfErrorCounter<=f.LI)if(f.GZ.I0&&await f.GZ.I0(),!f.GZ.rZ()){B(r,L);f.SI&&f.SI("nwl_consider_error_code")&&e?.id!==void 0&&await f.RR.UB(e.id,f.Dr,!1);return}f.SI&&f.SI("nwl_consider_error_code")&&!d&&f.potentialEsfErrorCounter>f.LI||(f.potentialEsfErrorCounter++, e?.id!==void 0&&(e.sendCount{f.GZ.rZ()&&f.J()},f.Vh)):await f.RR.sS(e.id,f.Dr)),B(r,L))}; const n=e.options.onSuccess?e.options.onSuccess:()=>{}; e.options.onSuccess=async(r,L)=>{e?.id!==void 0&&await f.RR.sS(e.id,f.Dr);f.GZ.sY&&f.SI&&f.SI("vss_network_hint")&&f.GZ.sY(!0);n(r,L)}; return e}; Mmd=function(f){return(f=f?.error?.code)&&f>=400&&f<=599?!1:!0}; G7C=function(f){f=f?.error?.code;return!(f!==400&&f!==415)}; W2k=function(){if(NB)return NB();NB=g.BL("LogsDatabaseV2",{lf:{LogsRequestsStore:{sT:2}},shared:!1,upgrade(f,e,B){e(2)&&g.EU(f,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});e(3);e(5)&&(B=B.objectStore("LogsRequestsStore"),B.C.indexNames.contains("newRequest")&&B.C.deleteIndex("newRequest"),g.Tq(B,"newRequestV2",["status","interface","timestamp"]));e(7)&&Qe(f,"sapisid");e(9)&&Qe(f,"SWHealthLog")},version:9});return NB()}; hT=function(f){return g.Wo(W2k(),f)}; XU5=async function(f,e){const B={startTime:(0,g.T)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}};e=await hT(e);f={...f,options:JSON.parse(JSON.stringify(f.options)),interface:g.Q("INNERTUBE_CONTEXT_CLIENT_NAME",0)};f=await e.put("LogsRequestsStore",f);B.ticks.tc=(0,g.T)();sDY(B);return f}; y8k=async function(f,e){const B={startTime:(0,g.T)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}};e=await hT(e);var n=g.Q("INNERTUBE_CONTEXT_CLIENT_NAME",0),r=[f,n,0];n=[f,n,(0,g.T)()];const L=IDBKeyRange.bound(r,n);let d="prev";g.UV("use_fifo_for_networkless")&&(d="next");let t=void 0;r=f==="NEW"?"readwrite":"readonly";g.UV("use_readonly_for_get_most_recent_by_status_killswitch")&&(r="readwrite");await g.SY(e,["LogsRequestsStore"],{mode:r,XG:!0},H=>g.Gq(H.objectStore("LogsRequestsStore").index("newRequestV2"), {query:L,direction:d},k=>{k.getValue()&&(t=k.getValue(),f==="NEW"&&(t.status="QUEUED",k.update(t)))})); B.ticks.tc=(0,g.T)();sDY(B);return t}; PhG=async function(f,e){return g.SY(await hT(e),["LogsRequestsStore"],{mode:"readwrite",XG:!0},B=>{const n=B.objectStore("LogsRequestsStore");return n.get(f).then(r=>{if(r)return r.status="QUEUED",n.put(r).then(()=>r)})})}; Igl=async function(f,e,B=!0,n){return g.SY(await hT(e),["LogsRequestsStore"],{mode:"readwrite",XG:!0},r=>{const L=r.objectStore("LogsRequestsStore");return L.get(f).then(d=>d?(d.status="NEW",B&&(d.sendCount+=1),n!==void 0&&(d.options.compress=n),L.put(d).then(()=>d)):g.FD.resolve(void 0))})}; $Sd=async function(f,e){return(await hT(e)).delete("LogsRequestsStore",f)}; it0=async function(f){f=await hT(f);const e=(0,g.T)()-2592E6;await g.SY(f,["LogsRequestsStore"],{mode:"readwrite",XG:!0},B=>g.Jn(B.objectStore("LogsRequestsStore"),{},n=>{if(n.getValue().timestamp<=e)return n.delete().then(()=>g.MM(n))}))}; fdO=async function(){await x7w("LogsDatabaseV2")}; sDY=function(f){g.UV("nwl_csi_killswitch")||Yn("networkless_performance",f,{sampleRate:1})}; Bpw=function(f){return g.Wo(e7O(),f)}; nYd=async function(f){f=await Bpw(f);const e=(0,g.T)()-2592E6;await g.SY(f,["SWHealthLog"],{mode:"readwrite",XG:!0},B=>g.Jn(B.objectStore("SWHealthLog"),{},n=>{if(n.getValue().timestamp<=e)return n.delete().then(()=>g.MM(n))}))}; rRY=async function(f){await (await Bpw(f)).clear("SWHealthLog")}; g.gq=function(f,e,B,n,r="",L=!1,d=!1){if(f)if(B&&!g.Cs())dZ(new g.Dj("Legacy referrer-scrubbed ping detected")),f&&LD5(f,void 0,{scrubReferrer:!0});else if(r)SZ(f,e,"POST",r,n);else if(g.Q("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||n||d)SZ(f,e,"GET","",n,void 0,L,d);else{b:{try{c:{var t=new dn5({url:f});if(t.C.dsh==="1")var H=null;else{var k=t.C.ae;if(k==="1"){const w=t.C.adurl;if(w)try{H={version:3,Zt:decodeURIComponent(w),Kb:Cg(t.G,"act=1","ri=1",RrY(t))};break c}catch(v){}}H=k==="2"?{version:4,Zt:Cg(t.G, "dct=1","suid="+t.J,"ri=1"),Kb:Cg(t.G,"act=1","ri=1","suid="+t.J)}:null}}if(H){const w=nY(f);var C=!(!w||!w.endsWith("/aclk")||KY(f,"ri")!=="1");break b}}catch(w){}C=!1}C?tvY(f)?(e&&e(),B=!0):B=!1:B=!1;B||LD5(f,e)}}; HO6=function(f,e=""){tvY(f,e)||g.gq(f,void 0,void 0,void 0,e)}; tvY=function(f,e=""){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(f,e))return!0}catch(B){}return!1}; var kP6=function(f,e,B,n,r,L,d,t,H){return CTk[Z[2]](this,1,f,e,B,n,r,L,d,t,H)}; LD5=function(f,e,B={}){const n=new Image,r=""+wXM++;Sl[r]=n;n.onload=n.onerror=()=>{e&&Sl[r]&&e();delete Sl[r]}; B.scrubReferrer&&(n.referrerPolicy="no-referrer");n.src=f}; vYG=function(f){return document.featurePolicy?.allowedFeatures().includes("attribution-reporting")?f+"&nis=6":f+"&nis=5"}; TY=function(){Eq||(Eq=new Qt("yt.offline"));return Eq}; bOd=function(f){if(g.UV("offline_error_handling")){var e=TY().get("errors",!0)||{};e[f.message]={name:f.name,stack:f.stack};f.level&&(e[f.message].level=f.level);TY().set("errors",e,2592E3,!0)}}; ZOl=function(){if(!Du.instance){const f=g.zO("yt.networkRequestMonitor.instance")||new Du;g.qH("yt.networkRequestMonitor.instance",f);Du.instance=f}return Du.instance}; R7C=function(){if(!JT.instance){const f=g.zO("yt.networkStatusManager.instance")||new JT;g.qH("yt.networkStatusManager.instance",f);JT.instance=f}return JT.instance}; KDl=function(f,e){f.rateLimit?f.C?(g.ul.lK(f.V),f.V=g.ul.Br(()=>{f.J!==e&&(f.dispatchEvent(e),f.J=e,f.C=(0,g.T)())},f.rateLimit-((0,g.T)()-f.C))):(f.dispatchEvent(e),f.J=e,f.C=(0,g.T)()):f.dispatchEvent(e)}; MB=function(){let f=g.zO("yt.networklessRequestController.instance");f||(f=new qOH,g.qH("yt.networklessRequestController.instance",f),g.UV("networkless_logging")&&g.f8().then(e=>{f.Dr=e;J8G(f);f.W.resolve();f.Ri&&Math.random()<=f.oi&&f.Dr&&nYd(f.Dr);g.UV("networkless_immediately_drop_sw_health_store")&&z7C(f)})); return f}; z7C=async function(f){if(!f.Dr)throw g.uo("clearSWHealthLogsDb");rRY(f.Dr).catch(e=>{f.handleError(e)})}; adl=function(f,e,B,n=!1){e=g.UV("web_fp_via_jspb")?Object.assign({},e):e;g.UV("use_request_time_ms_header")?e.headers&&KN(f)&&(e.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.T)()))):e.postParams?.requestTimeMs&&(e.postParams.requestTimeMs=Math.round((0,g.T)()));B&&Object.keys(e).length===0?g.gq(f):e.compress?e.postBody?(typeof e.postBody!=="string"&&(e.postBody=JSON.stringify(e.postBody)),Fb(f,e.postBody,e,g.QY,n)):Fb(f,JSON.stringify(e.postParams),e,Tn,n):g.QY(f,e)}; GY=function(f,e){g.UV("use_event_time_ms_header")&&KN(f)&&(e.headers||(e.headers={}),e.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.T)())));return e}; g.xn=function(f,e,B,n){!g.Q("VISITOR_DATA")&&e!=="visitor_id"&&Math.random()<.01&&dZ(new g.Dj("Missing VISITOR_DATA when sending innertube request.",e,B,n));if(!f.isReady())throw f=new g.Dj("innertube xhrclient not ready",e,B,n),g.rZ(f),f;const r={headers:n.headers||{},method:"POST",postParams:B,postBody:n.postBody,postBodyFormat:n.postBodyFormat||"JSON",onTimeout:()=>{n.onTimeout()}, onFetchTimeout:n.onTimeout,onSuccess:(k,C)=>{if(n.onSuccess)n.onSuccess(C)}, onFetchSuccess:k=>{if(n.onSuccess)n.onSuccess(k)}, onProgress:k=>{if(n.onProgress)n.onProgress(k)}, onError:(k,C)=>{if(n.onError)n.onError(C)}, onFetchError:k=>{if(n.onError)n.onError(k)}, timeout:n.timeout,withCredentials:!0,compress:n.compress};r.headers["Content-Type"]||(r.headers["Content-Type"]="application/json");B="";var L=f.config_.C7;L&&(B=L);L=f.config_.E6||!1;const d=YiG(L,B,n);Object.assign(r.headers,d);r.headers.Authorization&&!B&&L&&(r.headers["x-origin"]=window.location.origin);const t=ZR(`${B}${`/${"youtubei"}/${f.config_.innertubeApiVersion}/${e}`}`,{alt:"json"}),H=(k=!1)=>{try{if(k&&n.retry&&!n.networklessOptions.bypassNetworkless)r.method="POST",n.networklessOptions.writeThenSend? MB().writeThenSend(t,r):MB().sendAndWrite(t,r);else if(n.compress){const C=!n.networklessOptions.writeThenSend;if(r.postBody){let w=r.postBody;typeof w!=="string"&&(w=JSON.stringify(r.postBody));Fb(t,w,r,g.QY,C)}else Fb(t,JSON.stringify(r.postParams),r,Tn,C)}else Tn(t,r)}catch(C){if(C.name==="InvalidAccessError")dZ(Error("An extension is blocking network request."));else throw C;}}; g.zO("ytNetworklessLoggingInitializationOptions")&&pX6.isNwlInitialized?E1G().then(k=>{H(k)}):H(!1)}; g.IF=function(f,e,B){const n=g.WL();if(n&&e){const r=n.subscribe(f,function(){const L=arguments,d=()=>{sq[r]&&e.apply&&typeof e.apply=="function"&&e.apply(B||window,L)}; try{g.Xb[f]?d():g.VY(d,0)}catch(t){g.rZ(t)}},B); sq[r]=!0;PL[f]||(PL[f]=[]);PL[f].push(r);return r}return 0}; cRO=function(f){const e=g.IF("LOGGED_IN",function(B){f.apply(void 0,arguments);g.$n(e)})}; g.$n=function(f){const e=g.WL();e&&(typeof f==="number"?f=[f]:typeof f==="string"&&(f=[parseInt(f,10)]),g.MH(f,B=>{e.unsubscribeByKey(B);delete sq[B]}))}; g.iO=function(f,e){const B=g.WL();return B?B.publish.apply(B,arguments):!1}; ARM=function(f){const e=g.WL();if(e)if(e.clear(f),f)YO0(f);else for(let B in PL)YO0(B)}; g.WL=function(){return g.Kw.ytPubsubPubsubInstance}; YO0=function(f){PL[f]&&(f=PL[f],g.MH(f,e=>{sq[e]&&delete sq[e]}),f.length=0)}; g.fB=function(f,e,B=null){j1Y(f,e,B)}; j1Y=function(f,e,B=null){const n=OOw(typeof f==="string"?f:f.toString());let r=document.getElementById(n);var L=r&&E6Y(r);const d=r&&!L;L?e&&e():(e&&(L=g.IF(n,e),e=`${g.od(e)}`,oYM[e]=L),d||(r=Vvw(f,n,()=>{E6Y(r)||(SjC(r),g.iO(n),g.VY(()=>{ARM(n)},0))},B)))}; Vvw=function(f,e,B,n=null){const r=g.BN("SCRIPT");r.id=e;r.onload=()=>{B&&setTimeout(B,0)}; r.onreadystatechange=()=>{switch(r.readyState){case "loaded":case "complete":r.onload()}}; n&&r.setAttribute("nonce",n);g.y2(r,typeof f==="string"?g.IS(f):f);f=document.getElementsByTagName("head")[0]||document.body;f.insertBefore(r,f.firstChild);return r}; OOw=function(f){const e=document.createElement("a");g.E0(e,f);f=e.href.replace(/^[a-zA-Z]+:\/\//,"//");return`js-${tj(f)}`}; e$=function(f,e){if(f===e)f=!0;else if(Array.isArray(f)&&Array.isArray(e))f=g.Ye(f,e,e$);else if(g.jC(f)&&g.jC(e))a:if(g.NT(f).length!=g.NT(e).length)f=!1;else{for(let B in f)if(!e$(f[B],e[B])){f=!1;break a}f=!0}else f=!1;return f}; rQ=function(f,...e){if(!BR(f)||e.some(B=>!BR(B)))throw Error("Only objects may be merged."); for(const B of e)nB(f,B)}; nB=function(f,e){for(const B in e)if(BR(e[B])){if(B in f&&!BR(f[B]))throw Error("Cannot merge an object into a non-object.");B in f||(f[B]={});nB(f[B],e[B])}else if(LB(e[B])){if(B in f&&!LB(f[B]))throw Error("Cannot merge an array into a non-array.");B in f||(f[B]=[]);ldO(f[B],e[B])}else f[B]=e[B];return f}; ldO=function(f,e){for(const B of e)BR(B)?f.push(nB({},B)):LB(B)?f.push(ldO([],B)):f.push(B);return f}; BR=function(f){return typeof f==="object"&&!Array.isArray(f)}; LB=function(f){return typeof f==="object"&&Array.isArray(f)}; uaC=function(f,e){if(!e)return!1;for(let B=0;B(f&15).toString(16)).join("")}; Unm=function(){({n2d:e=!1,bcY:f=!0}={});var f,e;if(g.zO("_lact",window)==null){var B=parseInt(g.Q("LACT"),10);B=isFinite(B)?Date.now()-Math.max(B,0):-1;g.qH("_lact",B,window);g.qH("_fact",B,window);B==-1&&kA();mnm(e,f);new xB(()=>{CB("mouse",100)})}}; mnm=function(f=!1,e=!0){var B=window;g.Ds(B.document,"keydown",kA);g.Ds(B.document,"keyup",kA);g.Ds(B.document,"mousedown",kA);g.Ds(B.document,"mouseup",kA);f?g.Ds(B,"touchmove",()=>{CB("touchmove",200)},{passive:!0}):(g.Ds(B,"resize",()=>{CB("resize",200)}),e&&g.Ds(B,"scroll",()=>{CB("scroll",200)})); g.Ds(B.document,"touchstart",kA,{passive:!0});g.Ds(B.document,"touchend",kA,{passive:!0})}; CB=function(f,e){wQ[f]||(wQ[f]=!0,g.ul.Br(()=>{kA();wQ[f]=!1},e))}; kA=function(){g.zO("_lact",window)==null&&(Unm(),g.zO("_lact",window));var f=Date.now();g.qH("_lact",f,window);g.zO("_fact",window)==-1&&g.qH("_fact",f,window);(f=g.zO("ytglobal.ytUtilActivityCallback_"))&&f()}; vR=function(){const f=g.zO("_lact",window);return f==null?-1:Math.max(Date.now()-f,0)}; ZC=function(f){return new bR(f)}; RH=function(f,e){f.C.set(e.cB,e);const B=f.J.get(e.cB);if(B)try{B.Ej(f.resolve(e.cB))}catch(n){B.sB(n)}}; qC=function(f,e,B,n=!1){if(B.indexOf(e)>-1)throw Error(`Deps cycle for: ${e}`);if(f.G.has(e))return f.G.get(e);if(!f.C.has(e)){if(n)return;throw Error(`No provider for: ${e}`);}n=f.C.get(e);B.push(e);if(n.dt!==void 0)var r=n.dt;else if(n.Fe)r=n[KB]?NpG(f,n[KB],B):[],r=n.Fe(...r);else if(n.Da){r=n.Da;const L=r[KB]?NpG(f,r[KB],B):[];r=new r(...L)}else throw Error(`Could not resolve providers for: ${e}`);B.pop();n.PEq||f.G.set(e,r);return r}; NpG=function(f,e,B){return e?e.map(n=>n instanceof bR?qC(f,n.key,B,!0):qC(f,n,B)):[]}; aH=function(){zl||(zl=new h7g);return zl}; SOg=function(){var f=gY5;return()=>{const e=aH();e.resolve(ZC(f))||RH(e,{cB:f,Da:f,[KB]:void 0});return e.resolve(f)}}; cR=function(){return"h5vcc"in pB&&pB.h5vcc.traceEvent?.traceBegin&&pB.h5vcc.traceEvent?.traceEnd?1:"performance"in pB&&pB.performance.mark&&pB.performance.measure?2:0}; YA=function(f){const e=cR();switch(e){case 1:pB.h5vcc.traceEvent.traceBegin("YTLR",f);break;case 2:pB.performance.mark(`${f}-start`);break;case 0:break;default:Q2(e,"unknown trace type")}}; EYl=function(f){var e=cR();switch(e){case 1:pB.h5vcc.traceEvent.traceEnd("YTLR",f);break;case 2:e=`${f}-start`;const B=`${f}-end`;pB.performance.mark(B);pB.performance.measure(f,e,B);break;case 0:break;default:Q2(e,"unknown trace type")}}; Q1k=function(f){var e=Array.from(f.C.keys()).sort((B,n)=>(f.C[n].priority??0)-(f.C[B].priority??0)); for(const B of e)e=f.C[B],e.jobId===void 0||e.sW||(f.scheduler.lK(e.jobId),Ci(e.d4,10))}; DnM=function(f,e,B){TpO&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed(`[${f.constructor.name}] '${f.state}' to '${e}'`),console.log("with message: ",B),console.groupEnd())}; xnG=function(f,e){const B=e.filter(r=>(f.G??r.priority??0)===10),n=e.filter(r=>(f.G??r.priority??0)!==10); return f.V.VXA?async(...r)=>{await JRl(B,...r);Mv5(f,n,...r)}:(...r)=>{GPM(B,...r); Mv5(f,n,...r)}}; JRl=async function(f,...e){g.bo();for(const B of f){let n;d70(()=>{A_(B.name);const r=j$(()=>B.callback(...e)); Oc(r)?n=g.UV("web_lifecycle_error_handling_killswitch")?r.then(()=>{oH(B.name)}):r.then(()=>{oH(B.name)},L=>{window.onerror?.(L.message,"",0,0,L); oH(B.name)}):oH(B.name)}); n&&await n}}; Mv5=function(f,e,...B){e=e.map(n=>({d4:()=>{A_(n.name);j$(()=>n.callback(...B)); oH(n.name)}, priority:f.G??n.priority??0})); e.length&&(f.J=new WDd(e))}; GPM=function(f,...e){g.bo();for(const B of f)d70(()=>{A_(B.name);j$(()=>B.callback(...e)); oH(B.name)})}; A_=function(f){Vb&&f&&YA(f)}; oH=function(f){Vb&&f&&EYl(f)}; j$=function(f){if(g.UV("web_lifecycle_error_handling_killswitch"))return f();try{return f()}catch(e){window.onerror?.(e.message,"",0,0,e)}}; XXm=function(){lR||(lR=new s16);return lR}; mZ=function(f,e){const B=uR(e);if(f.G[B])return f.G[B];const n=Object.keys(f.store)||[];if(n.length<=1&&uR(e)===n[0])return n;const r=[];for(let d=0;d{B=B.data;if(B.op==="serializedGelBatch"){var n=h_.get(B.key);n&&(PT0(B.serializedBatch,n.client,n.resolve,n.networklessOptions,n.isIsolated,n.useVSSEndpoint,n.dangerousLogToVisitorSession,n.requestsOutstanding),h_.delete(B.key))}},e=Oq(); e&&(e.addEventListener("message",f),e.onerror=()=>{h_.clear()}); yRl=!0}}; n00=function(f,e){if(f.endpoint==="log_event"){gQ(f);var B=S$(f),n=$nO(f.payload)||"",r=iOl(n),L=200;if(r){if(r.enabled===!1&&!g.UV("web_payload_policy_disabled_killswitch"))return;L=feO(r.tier);if(L===400){eCC(f,e);return}}Ec[B]=!0;B={cttAuthInfo:B,isJspb:!1,tier:L};NC().storePayload(B,f.payload);Be5(e,!1,B,Qb(n))}}; Lbk=function(f,e,B){if(e.endpoint==="log_event"){gQ(void 0,e);var n=S$(e,!0),r=iOl(f),L=200;if(r){if(r.enabled===!1&&!g.UV("web_payload_policy_disabled_killswitch"))return;L=feO(r.tier);if(L===400){rD5(f,e,B);return}}Ec[n]=!0;n={cttAuthInfo:n,isJspb:!0,tier:L};NC().storePayload(n,Lr(e.payload));Be5(B,!0,n,Qb(f))}}; Be5=function(f,e=!1,B,n=!1){f&&(Tl=new f);f=Ng("tvhtml5_logging_max_batch_ads_fork")||Ng("tvhtml5_logging_max_batch")||Ng("web_logging_max_batch")||100;const r=(0,g.T)(),L=DC(e,B.tier),d=L.V;n&&(L.J=!0);n=0;B&&(n=NC().getSequenceCount(B));n>=1E3?J_({writeThenSend:!0},e,B.tier):n>=f?MC||(MC=Gl(()=>{J_({writeThenSend:!0},e,B.tier);MC=void 0},0)):r-d>=10&&(dfg(e,B.tier),L.V=r)}; eCC=function(f,e){if(f.endpoint==="log_event"){g.UV("more_accurate_gel_parser")&&NC().storePayload({isJspb:!1},f.payload);gQ(f);var B=S$(f),n=new Map;n.set(B,[f.payload]);var r=$nO(f.payload)||"";e&&(Tl=new e);return new g.u5((L,d)=>{Tl&&Tl.isReady()?tIw(n,Tl,L,d,{bypassNetworkless:!0},!0,Qb(r)):L()})}}; rD5=function(f,e,B){if(e.endpoint==="log_event"){gQ(void 0,e);var n=S$(e,!0),r=new Map;r.set(n,[Lr(e.payload)]);B&&(Tl=new B);return new g.u5(L=>{Tl&&Tl.isReady()?HY0(r,Tl,L,{bypassNetworkless:!0},!0,Qb(f)):L()})}}; S$=function(f,e=!1){var B="";if(f.dangerousLogToVisitorSession)B="visitorOnlyApprovedKey";else if(f.cttAuthInfo){if(e){e=f.cttAuthInfo.token;B=f.cttAuthInfo;const n=new kDH;B.videoId?n.setVideoId(B.videoId):B.playlistId&&D3(n,2,xA,Gd(B.playlistId));WR[e]=n}else e=f.cttAuthInfo,B={},e.videoId?B.videoId=e.videoId:e.playlistId&&(B.playlistId=e.playlistId),sc[f.cttAuthInfo.token]=B;B=f.cttAuthInfo.token}return B}; J_=function(f={},e=!1,B){new g.u5((n,r)=>{const L=DC(e,B),d=L.J;L.J=!1;X$(L.G);X$(L.C);L.C=0;Tl&&Tl.isReady()?B===void 0&&g.UV("enable_web_tiered_gel")?CUg(n,r,f,e,300,d):CUg(n,r,f,e,B,d):(dfg(e,B),n())})}; CUg=function(f,e,B={},n=!1,r=200,L=!1){var d=Tl,t=new Map;const H=new Map,k={isJspb:n,cttAuthInfo:void 0,tier:r},C={isJspb:n,cttAuthInfo:void 0};if(n){for(const w of Object.keys(Ec))e=g.UV("enable_web_tiered_gel")?NC().smartExtractMatchingEntries({keys:[k,C],sizeLimit:1E3}):NC().extractMatchingEntries({isJspb:!0,cttAuthInfo:w}),e.length>0&&t.set(w,e),(g.UV("web_fp_via_jspb_and_json")&&B.writeThenSend||!g.UV("web_fp_via_jspb_and_json"))&&delete Ec[w];HY0(t,d,f,B,!1,L)}else{for(const w of Object.keys(Ec))t= g.UV("enable_web_tiered_gel")?NC().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:w,tier:r},{isJspb:!1,cttAuthInfo:w}],sizeLimit:1E3}):NC().extractMatchingEntries({isJspb:!1,cttAuthInfo:w}),t.length>0&&H.set(w,t),(g.UV("web_fp_via_jspb_and_json")&&B.writeThenSend||!g.UV("web_fp_via_jspb_and_json"))&&delete Ec[w];tIw(H,d,f,e,B,!1,L)}}; dfg=function(f=!1,e=200){const B=()=>{J_({writeThenSend:!0},f,e)},n=DC(f,e); var r=n===wT0||n===v0l?5E3:bY6;g.UV("web_gel_timeout_cap")&&!n.C&&(r=Gl(()=>{B()},r),n.C=r); X$(n.G);r=g.Q("LOGGING_BATCH_TIMEOUT",Ng("web_gel_debounce_ms",1E4));g.UV("shorten_initial_gel_batch_timeout")&&yb&&(r=ZYd);r=Gl(()=>{Ng("gel_min_batch_size")>0?NC().getSequenceCount({cttAuthInfo:void 0,isJspb:f,tier:e})>=RCC&&B():B()},r); n.G=r}; tIw=function(f,e,B,n,r={},L,d){const t=Math.round((0,g.T)());let H=f.size;const k=Kbk(d);for(const [C,w]of f){f=C;d=w;const v=g.xe({context:g.wq(e.config_||g.C8())});if(!g.Yg(d)&&!g.UV("throw_err_when_logevent_malformed_killswitch")){n();break}v.events=d;(d=sc[f])&&qzm(v,f,d);delete sc[f];const b=f==="visitorOnlyApprovedKey";zCk(v,t,b);aem(r);const K=m=>{g.UV("start_client_gcf")&&g.ul.Br(async()=>{await pTm(m)}); H--;H||B()}; let Y=0;const l=()=>{Y++;if(r.bypassNetworkless&&Y===1)try{g.xn(e,k,v,PR({writeThenSend:!0},b,K,l,L)),yb=!1}catch(m){g.rZ(m),n()}H--;H||B()}; try{g.xn(e,k,v,PR(r,b,K,l,L)),yb=!1}catch(m){g.rZ(m),n()}}}; HY0=function(f,e,B,n={},r,L){const d=Math.round((0,g.T)()),t={value:f.size};var H=new Map([...f]);for(const [l]of H){var k=l,C=f.get(k);H=new g.IH;var w=e.config_||g.C8(),v=new $A,b=new cDk;kl(b,1,w.Ac);kl(b,2,w.Ig);wf(b,16,w.Th);kl(b,17,w.innertubeContextClientVersion);if(w.BM){var K=w.BM,Y=new Zu;K.coldConfigData&&kl(Y,1,K.coldConfigData);K.appInstallData&&kl(Y,6,K.appInstallData);K.coldHashData&&kl(Y,3,K.coldHashData);K.hotHashData&&Y.Jv(K.hotHashData);$1(b,Zu,62,Y)}(K=g.Kw.devicePixelRatio)&& K!=1&&Y1(b,65,w8(K));K=h7();K!==""&&kl(b,54,K);K=gZ();if(K.length>0){Y=new YzH;for(let m=0;m{g.UV("start_client_gcf")&&g.ul.Br(async()=>{await pTm(H)}); t.value--;t.value||B()},()=>{t.value--; t.value||B()},r); n.headers["Content-Type"]="application/json+protobuf";n.postBodyFormat="JSPB";n.postBody=f;g.xn(e,L,"",n);yb=!1}; aem=function(f){g.UV("always_send_and_write")&&(f.writeThenSend=!1)}; PR=function(f,e,B,n,r){f={retry:!0,onSuccess:B,onError:n,networklessOptions:f,dangerousLogToVisitorSession:e,kDC:!!r,headers:{},postBodyFormat:"",postBody:"",compress:g.UV("compress_gel")||g.UV("compress_gel_lr")};f0()&&(f.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.T)())));return f}; zCk=function(f,e,B){f0()||(f.requestTimeMs=String(e));g.UV("unsplit_gel_payloads_in_logs")&&(f.unsplitGelPayloadsInLogs=!0);!B&&(e=g.Q("EVENT_ID"))&&(B=o0Y(),f.serializedClientEventId={serializedEventId:e,clientCounter:String(B)})}; o0Y=function(){let f=g.Q("BATCH_CLIENT_COUNTER")||0;f||(f=Math.floor(Math.random()*65535/2));f++;f>65535&&(f=1);eZ("BATCH_CLIENT_COUNTER",f);return f}; qzm=function(f,e,B){let n;if(B.videoId)n="VIDEO";else if(B.playlistId)n="PLAYLIST";else return;f.credentialTransferTokenTargetId=B;f.context=f.context||{};f.context.user=f.context.user||{};f.context.user.credentialTransferTokens=[{token:e,scope:n}]}; gQ=function(f,e){var B=g.zO("yt.logging.transport.enableScrapingForTest"),n=m0("il_payload_scraping");n=(n!==void 0?String(n):"")==="enable_il_payload_scraping";if(!B)if(n)n0=[],g.qH("yt.logging.transport.enableScrapingForTest",!0),g.qH("yt.logging.transport.scrapedPayloadsForTesting",n0),g.qH("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.qH("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.qH("yt.logging.transport.scrapeClientEvent",!0);else return;B=g.zO("yt.logging.transport.scrapedPayloadsForTesting");n=g.zO("yt.logging.transport.payloadToScrape");e&&(e=e.payload,(e=g.zO("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(e)())&&B.push(e));e=g.zO("yt.logging.transport.scrapeClientEvent");if(n&&n.length>=1)for(let r=0;r{XXm().currentState==="none"?f():XXm().install({none:{callback:f}})},e):Ci(f,0,e)}; X$=function(f){g.UV("transport_use_scheduler")?g.ul.lK(f):g.us(f)}; pTm=async function(f){f=f?.responseContext?.globalConfigGroup;var e=g.u(f,le5),B=f?.hotHashData;const n=g.u(f,uP6),r=f?.coldHashData,L=aH().resolve(ZC(rq));L&&(B&&(e?await k76(L,B,e):await k76(L,B)),r&&(n?await Chl(L,r,n):await Chl(L,r)));e=f?.rawFinchStaticConfigGroup;(f=f?.finchStaticHashData)?(B=aH().resolve(ZC(FbO)))?await B.DDS({config:e||{},tvL:f||""}):(e||f)&&dZ(new g.Dj("FinchConfigManagerService is not present, but Finch config data is present.")):e&&dZ(new g.Dj("Finch config data is present, but hash is missing."))}; DC=function(f,e=200){return f?e===300?wT0:mf5:e===300?v0l:Uf5}; iOl=function(f){if(g.UV("enable_web_tiered_gel")){f=Neg[f||""];var e=aH().resolve(ZC(rq))?.sO()?.loggingHotConfig?.eventLoggingConfig?.payloadPolicies;if(e)for(let B=0;Bf!==void 0)}; g.be=function(f=0){f=E0m(f);if(!f&&!g.Q("USE_CSN_FALLBACK",!0))return null;f||(f="UNDEFINED_CSN");return f?f:null}; GDO=function(f){for(const e of Object.values(MI0))if(g.be(e)===f)return!0;return!1}; xf5=function(f,e,B){const n=Df5();(B=g.be(B))&&delete n[B];e&&(n[f]=e)}; ZE=function(f){return Df5()[f]}; sIM=function(f,e,B=0,n){if(f!==E0m(B)||e!==g.Q(wN(B)))if(xf5(f,n,B),QI5(f,B),eZ(wN(B),e),e=()=>{setTimeout(()=>{f&&g.t$("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:WbM,clientScreenNonce:f})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(e)}catch(r){e()}else e()}; Ro=function(f,e){var B=g.Q("VALID_SESSION_TEMPDATA_DOMAINS",[]),n=g.BT(window.location.href);n&&B.push(n);n=g.BT(f);if(g.eB(B,n)||!n&&$e(f,"/"))if(B=document.createElement("a"),g.E0(B,f),f=B.href)if(f=LY(f),f=de(f))if(!e.csn&&(e.itct||e.ved)&&(e=Object.assign({csn:g.be()},e)),r){var r=parseInt(r,10);isFinite(r)&&r>0&&XTg(f,e,r)}else XTg(f,e)}; XTg=function(f,e,B){f=yDw(f);e=e?g.we(e):"";B=B||5;c1()&&g.is(f,e,B)}; yDw=function(f){for(let e of PUY)f=qf(f,e);return"ST-"+tj(f).toString(36)}; Iek=function(f){if(f.name==="JavaException")return!0;f=f.stack;return f.includes("chrome://")||f.includes("-extension://")||f.includes("webkit-masked-url://")}; $fY=function(f){if(!f.stack)return!0;const e=!f.stack.includes("\n");return e&&f.stack.includes("ErrorType: ")||e&&f.stack.includes("Anonymous function (Unknown script")||f.stack.toLowerCase()==="not available"||f.fileName==="user-script"||f.fileName.startsWith("user-script:")?!0:!1}; qG=function(){if(!K0){var f=K0=new iY5;f.gS.length=0;f.eG.length=0;frd(f,eSG)}return K0}; frd=function(f,e){e.gS&&f.gS.unshift.apply(f.gS,e.gS);e.eG&&f.eG.unshift.apply(f.eG,e.eG)}; BO6=function(f){const e=f.length;let B=0;const n=()=>f.charCodeAt(B++); do{var r=zj(n);if(r===Infinity)break;const L=r>>3;switch(r&7){case 0:r=zj(n);if(L===2)return r;break;case 1:if(L===2)return;B+=8;break;case 2:r=zj(n);if(L===2)return f.substr(B,r);B+=r;break;case 5:if(L===2)return;B+=4;break;default:return}}while(B500));n++);n=r}else if(typeof f==="object")for(r in f){if(f[r]){a:{var L=r;var d=f[r],t=e,H=B;if(typeof d!=="string"||L!=="clickTrackingParams"&&L!=="trackingParams"){L=0;break a}L=(d=BO6(atob(d.replace(/-/g,"+").replace(/_/g,"/"))))?ao(`${L}.ve`,d,t,H):0}n+=L;n+=ao(r,f[r],e,B);if(n>500)break}}else B[e]=p0(f),n+=B[e].length;else B[e]=p0(f),n+=B[e].length;return n}; ao=function(f,e,B,n){B+=`.${f}`;f=p0(e);n[B]=f;return B.length+f.length}; p0=function(f){try{return(typeof f==="string"?f:String(JSON.stringify(f))).substr(0,500)}catch(e){return`unable to serialize ${typeof f} (${e.message})`}}; c6=function(f){g.J(f)}; g.Yv=function(f){g.J(f,"WARNING")}; g.J=function(f,e="ERROR"){var B={};B.name=g.Q("INNERTUBE_CONTEXT_CLIENT_NAME",1);B.version=g.Q("INNERTUBE_CONTEXT_CLIENT_VERSION");rd6(f,B,e)}; rd6=function(f,e,B="ERROR"){if(f){f.hasOwnProperty("level")&&f.level&&(B=f.level);if(g.UV("console_log_js_exceptions")||["test","dev","autopush","staging"].includes(g.Q("SERVER_VERSION"))){var n=[];n.push(`Name: ${f.name}`);n.push(`Message: ${f.message}`);f.hasOwnProperty("params")&&n.push(`Error Params: ${JSON.stringify(f.params)}`);f.hasOwnProperty("args")&&n.push(`Error args: ${JSON.stringify(f.args)}`);n.push(`File name: ${f.fileName}`);n.push(`Stacktrace: ${f.stack}`);window.console.log(n.join("\n"), f)}if(!(Lrl>=5)){n=[];for(r of d_M)try{r()&&n.push(r())}catch(K){}var r=n;r=[...tjC,...r];var L=VCg(f);n=L.message||"Unknown Error";const v=L.name||"UnknownError";var d=L.stack||f.G||"Not available";if(d.startsWith(`${v}: ${n}`)){var t=d.split("\n");t.shift();d=t.join("\n")}t=L.lineNumber||"Not available";L=L.fileName||"Not available";let b=0;if(f.hasOwnProperty("args")&&f.args&&f.args.length)for(var H=0;H=500);H++);else if(f.hasOwnProperty("params")&& f.params){const K=f.params;if(typeof f.params==="object")for(H in K){if(!K[H])continue;const Y=`params.${H}`,l=p0(K[H]);e[Y]=l;b+=Y.length+l.length;if(b>500)break}else e.params=p0(K)}if(r.length)for(H=0;H=500);H++);navigator.vendor&&!e.hasOwnProperty("vendor")&&(e["device.vendor"]=navigator.vendor);e={message:n,name:v,lineNumber:t,fileName:L,stack:d,params:e,sampleWeight:1};H=Number(f.columnNumber);isNaN(H)||(e.lineNumber=`${e.lineNumber}:${H}`); if(f.level==="IGNORED")var k=0;else a:{f=qG();for(k of f.gS)if(e.message&&e.message.match(k.bM)){k=k.weight;break a}for(var C of f.eG)if(C.callback(e)){k=C.weight;break a}k=1}e.sampleWeight=k;k=e;for(var w of Hn6){if(!w.CI[k.name])continue;C=w.CI[k.name];for(const K of C){C=k.message.match(K.Yz);if(!C)continue;k.params["params.error.original"]=C[0];f=K.groups;e={};for(H=0;H1E3&&g.Yv(new g.Dj("IL Attach cache exceeded limit"))}d=QL(B,e);NG.has(d)?Tj(B, e):gN.set(d,!0)}}n=n.filter(t=>{t.csn!==e?(t.csn=e,t=!0):t=!1;return t}); B={csn:e,parentVe:B.getAsJson(),childVes:g.xg(n,t=>t.getAsJson())}; e==="UNDEFINED_CSN"?DE("visualElementAttached",L,B):f?L0("visualElementAttached",B,f,L):g.t$("visualElementAttached",B,L)}; AdC=function(f,e,B,n,r,L,d){J$(B,e);n=UR({cttAuthInfo:ZE(e)||void 0,automatedLogEventSource:d},e);B={csn:e,ve:B.getAsJson(),eventType:1};r&&(B.clientData=r);e==="UNDEFINED_CSN"?DE("visualElementShown",n,B):f?L0("visualElementShown",B,f,n):g.t$("visualElementShown",B,n)}; jal=function(f,e,B,n=!1){const r=n?16:8;n=UR({cttAuthInfo:ZE(e)||void 0,endOfSequence:n,automatedLogEventSource:void 0},e);B={csn:e,ve:B.getAsJson(),eventType:r};e==="UNDEFINED_CSN"?DE("visualElementHidden",n,B):f?L0("visualElementHidden",B,f,n):g.t$("visualElementHidden",B,n)}; MG=function(f,e,B,n,r,L){Onw(f,e,B,void 0,n,r,L)}; Onw=function(f,e,B,n,r,L,d){J$(B,e);n=n||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";L=UR({cttAuthInfo:ZE(e)||void 0,automatedLogEventSource:d},e);B={csn:e,ve:B.getAsJson(),gestureType:n};r&&(B.clientData=r);e==="UNDEFINED_CSN"?DE("visualElementGestured",L,B):f?L0("visualElementGestured",B,f,L):g.t$("visualElementGestured",B,L)}; ob0=function(){let f;f=t_(16);const e=[];for(let B=0;B{g.MH(e,B=>{J$(B,f);const n=UR({cttAuthInfo:ZE(f)||void 0,automatedLogEventSource:void 0},f);B={csn:f,ve:B.getAsJson(),eventType:4};f==="UNDEFINED_CSN"?DE("visualElementShown",n,B):g.t$("visualElementShown",B,n)})})()}; g.Xd=function(f,e){g.LN(()=>{g.MH(e,B=>{jal(void 0,f,B)})})()}; g.yL=function(f,e,B){g.LN(MG)(void 0,f,e,B,void 0)}; P6=function(f,e,B,n){g.LN(Onw)(void 0,f,e,B,n,void 0)}; Io=function(f){var e=":"+(Qz.getInstance().C++).toString(36);return f+e}; g.$v=function(f=!1){g.$0.call(this);this.Ys=new g.Y4(f);g.A(this,this.Ys)}; ie=function(){const f="ytp-id-"+Vjw.toString();Vjw++;return f}; fS=function(f,e,B,n){if(n.substring(0,2)==="{{")f.S6[n]=[e,B];else return n}; eL=function(f,e,B,n){if(B==="child"){g.LC(e);let L;n===void 0?L=void 0:L=!Array.isArray(n)||n&&typeof n.L==="string"?[n]:n;B=lrg(f,L);for(var r of B)e.appendChild(r)}else B==="style"?g.uc(e,"cssText",n?n:""):n===null||n===void 0?e.removeAttribute(B):(r=n.toString(),B==="href"&&(r=g.FL(g.hs(r))),e.setAttribute(B,r))}; lrg=function(f,e){const B=[];if(!e)return B;for(const n of e){if(n==null)continue;e=n.nodeType;e===1||e===3?B.push(n):n&&typeof n.L==="string"?B.push(f.createElement(n)):n.element?B.push(n.element):typeof n==="string"&&n.indexOf("\n")!==-1?n.split("\n").forEach((r,L)=>{L>0&&B.push(g.BN("BR"));B.push(g.nC(r))}):B.push(g.nC(n))}return B}; Bl=function(f=null,e=null){if(f==null)return g.Yv(Error("Got null or undefined adText object")),"";let B=g.dr(f.text);if(!f.isTemplated)return B;if(e==null)return g.Yv(Error("Missing required parameters for a templated message")),B;for(const [n,r]of Object.entries(e))B=B.replace("{"+n+"}",r);return B}; ufM=function(f=null){return f!=null&&(f=f.thumbnail,f!=null&&f.thumbnails!=null&&f.thumbnails.length!=0&&f.thumbnails[0].url!=null)?g.dr(f.thumbnails[0].url):""}; FrM=function(f=null){return f!=null&&(f=f.thumbnail,f!=null&&f.thumbnails!=null&&f.thumbnails.length!=0&&f.thumbnails[0].width!=null&&f.thumbnails[0].height!=null)?new g.uN(f.thumbnails[0].width||0,f.thumbnails[0].height||0):new g.uN(0,0)}; g.nS=function(f){if(f.simpleText)return f.simpleText;if(f.runs){const e=[];for(const B of f.runs)B.text&&e.push(B.text);return e.join("")}return""}; g.r_=function(f){if(f.simpleText)return f=document.createTextNode(f.simpleText),f;const e=[];if(f.runs)for(let t=0;tB!=null),f.C.command&&(e=e.concat(f.C.command))); return e||[]}; twM=function(){YU==null&&(YU=new dxH);return YU}; AX=function(f,e){if(f.simpleText){a:{f=f.simpleText;if(e&&(e=Hd0(f))){e=eA("SPAN",null,e);break a}e=g.nC(f)}return e}const B=[];if(f.runs)for(let n=0;nr.baseUrl),twM().register(B,f),g.PW(B,"ytp-ad-has-logging-urls")); return B||eA("SPAN",null,n)}; Hd0=function(f){f=f.split(/(?:\r\n|\r|\n)/g);if(f.length>1){const e=[f[0]];for(let B=1;Bf.V(r))); e.confirmLabel&&(e=g.nS(e.confirmLabel),f.updateValue("confirmLabel",e),f.C.D(f.A,"click",r=>f.U(r))); f.C.D(f.cS,"click",r=>f.W(r))}; o5=function(f){f.A&&(f.isToggled()?(g.sm(f.U,!1),g.sm(f.W,!0),f.G.setAttribute("aria-checked",!0)):(g.sm(f.U,!0),g.sm(f.W,!1),f.G.setAttribute("aria-checked",!1)))}; wsY=function(f,e){let B=null;f.J&&(B=(e?[f.J.defaultServiceEndpoint,f.J.defaultNavigationEndpoint]:[f.J.toggledServiceEndpoint]).filter(n=>n!=null)); return B||[]}; RiC=function(f,e){var B=e.cancelRenderer&&e.cancelRenderer.buttonRenderer||null;B&&(f.C=new VQ(f.api,f.layoutId,f.interactionLoggingClientData,f.lY,["ytp-ad-feedback-dialog-close-button"],"button"),g.A(f,f.C),f.C.init(Io("button"),B,f.macros),f.C.listen("click",f.X,f),f.C.di(f.element));e.title&&(B=g.nS(e.title),f.updateValue("title",B));e.reasonsTitle&&(B=g.nS(e.reasonsTitle),f.updateValue("reasonsTitle",B));e.reasons&&vx0(f,e.reasons);e.cancelLabel&&(B=g.nS(e.cancelLabel),f.updateValue("cancelLabel", B),g.Ds(f.W,"click",()=>f.X())); e.confirmLabel&&(B=g.nS(e.confirmLabel),f.updateValue("confirmLabel",B),g.Ds(f.U,"click",()=>bdG(f))); e.undoRenderer&&Zd6(f,e.undoRenderer)}; vx0=function(f,e){for(const n of e){e=n.reason;if(e==null){g.Yv(Error("AdFeedbackReason.reason was not set."));continue}var B=n.endpoint;if(B==null){g.Yv(Error("AdFeedbackReason.endpoint was not set."));continue}const r=new KX5(e,B);g.A(f,r);e=f.A;B=r.V3();e.appendChild(B);f.V.push(r)}}; bdG=function(f){var e=f.V.filter(B=>B.isChecked()); e.length!==0&&(e=e[0].getCommand(),f.layoutId?f.lY.executeCommand(e,f.layoutId):g.J(Error("Missing layoutId for ad feedback dialog.")),f.api.onAdUxClicked("ad-feedback-dialog-confirm-button",f.layoutId),f.publish("a"),f.hide())}; Zd6=function(f,e){if(e=e&&e.buttonRenderer||null)e.serviceEndpoint?(f.G=new VQ(f.api,f.layoutId,f.interactionLoggingClientData,f.lY,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.A(f,f.G),f.G.init(Io("ad-feedback-undo-mute-button"),e,f.macros),f.G.listen("click",f.Lq,f),f.G.di(f.cS)):g.Yv(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))}; q1C=function(f){f.C&&f.C.listen("click",f.cS,f);g.Ds(f.U,"click",()=>f.cS())}; aDC=function(f,e){if(e=e.content&&e.content.adFeedbackRenderer||null)f.G=new zid(f.api,f.layoutId,f.interactionLoggingClientData,f.lY),g.A(f,f.G),f.G.init(Io("ad-feedback-dialog"),e,f.macros),f.G.di(f.A),f.G.subscribe("a",()=>f.publish("c"))}; cV6=function(f,e){if(e=e.content&&e.content.confirmDialogRenderer||null)f.V=new ps6(f.api,f.layoutId,f.interactionLoggingClientData,f.lY),g.A(f,f.V),f.V.init(Io("ad-mute-confirm-dialog"),e,f.macros),f.V.di(f.A),f.V.subscribe("b",()=>f.publish("c"))}; Odl=function(f,e,B){f.button==null?g.J(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(f.G&&g.PW(f.G.element,"ytp-ad-info-hover-text-short"),(e=e&&e.serviceEndpoint&&g.u(e.serviceEndpoint,Y1C)||null)?(AVO(f,e,B),f.button.listen("click",()=>{f.C&&!f.C.ef&&(f.C.show(),jn6(f))})):f.button.listen("click",()=>jn6(f)))}; AVO=function(f,e,B){e=e.dialog&&g.u(e.dialog,oxm)||null;e==null?g.J(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(f.C=new VwM(f.api,f.layoutId,f.interactionLoggingClientData,f.lY,f.V),g.A(f,f.C),f.C.init(Io("ad-info-dialog"),e,B),f.C.di(f.V),f.C.subscribe("d",()=>f.publish("f")),f.C.subscribe("c",()=>f.publish("e")))}; jn6=function(f){f.api.onAdUxClicked("ad-info-icon-button",f.layoutId)}; lA=function(f,e){e&&g.kC(f.element,Bl(f.C,e))}; uA=function(f){f.C&&f.A===-1&&(f.A=f.C.subscribe("h",f.J,f),f.BS=f.C.subscribe("g",f.W,f),f.J())}; FY=function(f){f.C!=null&&f.A!==-1&&(f.C.nW(f.A),f.C.nW(f.BS),f.BS=-1,f.A=-1)}; mA=function(f,e){f=f.element.element;e?f.setAttribute("aria-hidden","true"):f.removeAttribute("aria-hidden")}; lD0=function(f){switch(f){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Q2(f,"unknown result type")}}; ugM=function(f,e){let B=1;f.isTrusted===!1&&(B=0);eZ("ISDSTAT",B);Uf(B,"i.s_",{triggerContext:"sk",metadata:e});return B}; FXg=function(f,e){const B=[];e?e.isTrusted===!0?B.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):e.isTrusted===!1?B.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):B.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):B.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");Uf(0,"a.s_",{metadata:f,states:B});eZ("ASDSTAT",0)}; Uf=function(f,e,B){e=mxG[e];const n={detected:f===0,source:`${e.G}${B.triggerContext??""}${B.X_??""}`,detectionStates:B.states,durationMs:B.Yd};B.metadata&&(n.contentCpn=B.metadata.contentCpn,n.adCpn=B.metadata.adCpn);g.t$("biscottiBasedDetection",n);e.C!==void 0&&(B=Number(g.Q("CATSTAT",0)),e.C!==void 0?(e=e.C,f=lD0(f),f=B&~(3<e.adLifecycleCommand?UxG(e.adLifecycleCommand):!1)}; UxG=function(f){return f.action==="END_LINEAR_AD"||f.action==="END_LINEAR_AD_PLACEMENT"}; hi6=function(f,e){f.U||(f.U=!0,f.G&&(e?f.G.cS.hide():f.G.hide()),e?(f=f.V,f.IA.show(),f.show()):f.V.show())}; g.SL=function(f,e){var B=Math.abs(Math.floor(f)),n=Math.floor(B/86400);const r=Math.floor(B%86400/3600),L=Math.floor(B%3600/60);B=Math.floor(B%60);if(e){e="";n>0&&(e+=` ${n} `+"Dias");if(n>0||r>0)e+=` ${r} `+"Horas";e+=` ${L} `+"Minutos";e+=` ${B} `+"Segundos";n=e.trim()}else{e="";n>0&&(e+=`${n}:`,r<10&&(e+="0"));if(n>0||r>0)e+=`${r}:`,L<10&&(e+="0");e+=`${L}:`;B<10&&(e+="0");n=e+B}return f>=0?n:`-${n}`}; g.Ef=function(f){return(!("button"in f)||typeof f.button!=="number"||f.button===0)&&!("shiftKey"in f&&f.shiftKey)&&!("altKey"in f&&f.altKey)&&!("metaKey"in f&&f.metaKey)&&!("ctrlKey"in f&&f.ctrlKey)}; gxw=function(f,e){return f.G+e*(f.C-f.G)}; QQ=function(f,e,B){return f.C-f.G?g.ch((e-f.G)/(f.C-f.G),0,1):B!=null?B:Infinity}; S1M=function(f){f=f.api.S();return g.TT(f)&&f.G}; g.Dk=function(f){f&=16777215;var e=[(f&16711680)>>16,(f&65280)>>8,f&255];f=e[0];var B=e[1];e=e[2];f=Number(f);B=Number(B);e=Number(e);if(f!=(f&255)||B!=(B&255)||e!=(e&255))throw Error('"('+f+","+B+","+e+'") is not a valid RGB color');B=f<<16|B<<8|e;return f<16?"#"+(16777216|B).toString(16).slice(1):"#"+B.toString(16)}; g.ML=function(){if(!JX){JX=new S8(new ExY);const f=Ng("client_streamz_web_flush_count",-1);f!==-1&&(JX.J=f)}return JX}; Qnm=function(){let f=!1;try{f=!!window.sessionStorage.getItem("session_logininfo")}catch{f=!0}return(g.Q("INNERTUBE_CLIENT_NAME")==="WEB"||g.Q("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&f}; GT=function(){try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");eZ("LOGIN_INFO","");window.sessionStorage.setItem("from_switch_account","1");var f;let B=TgY;B||(B=document.querySelector("#persist_identity"));if(f=B){var e=f.src?(new URL(f.src)).origin:"*";f.contentWindow?.postMessage({action:"clear"},e)}}catch{}}; xU=function(f){f&&(f.startsWith("https://accounts.google.com/AddSession")?GT():f.startsWith("https://accounts.google.com/ServiceLogin")?GT():f.startsWith("https://myaccount.google.com")&&g.sA(f).G.endsWith("/youtubeoptions")&>());if(g.Q("LOGGED_IN",!0)&&Qnm()){var e=g.Q("VALID_SESSION_TEMPDATA_DOMAINS",[]);var B=g.BT(window.location.href);B&&e.push(B);B=g.BT(f);g.eB(e,B)||!B&&$e(f,"/")?(e=LY(f),(e=de(e))?(e=yDw(e),e=(e=g.fs(e)||null)?C$(e):{}):e=null):e=null;e==null&&(e={});B=e;var n=void 0;Qnm()? (n||(n=g.Q("LOGIN_INFO")),n?(B.session_logininfo=n,B=!0):B=!1):B=!1;B&&Ro(f,e)}}; g.Dx5=function(f){var e=window;f=g.vT(f,{});xU(f);f=g.hs(f+"");e=e.location;f=SU(f);f!==void 0&&(e.href=f)}; g.Wl=function(f,e={},B=!1){const n=g.Q("EVENT_ID");n&&(e.ei||(e.ei=n));e&&Ro(f,e);B||(xU(f),g.Dx5(f))}; PMG=function(f,e,B){var n=f.videoId,r=g.sf(f),L=f.S(),d={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(vR()),referer:document.location.toString(),signatureTimestamp:20492},t=g.ni();f.isAutonav&&(d.autonav=!0);t.jI(141)&&(d.autonavState=t.jI(140)?"STATE_OFF":"STATE_ON");d.autoCaptionsDefaultOn=t.jI(66);JVk(f)&&(d.autoplay=!0);L.K&&f.cycToken&&(d.cycToken=f.cycToken);L.enablePrivacyFilter&&(d.enablePrivacyFilter=!0);f.isFling&&(d.fling=!0);var H=f.forceAdsUrl;if(H){t={};var k=[];H=H.split(","); for(var C of H){var w=C.split("|");w.length!==3||C.includes("=")||(w[0]=`breaktype=${w[0]}`,w[1]=`offset=${w[1]}`,w[2]=`url=${w[2]}`);H={adtype:"video_ad"};for(var v of w){const [N,...E]=v.split("=");H[N]=E.join("=")}w=H.url;const Y=H.presetad,l=H.viralresponseurl,m=Number(H.campaignid),F=H.bibliotecaadid;if(H.adtype==="in_display_ad")w&&(t.url=w),Y&&(t.presetAd=Y),l&&(t.viralAdResponseUrl=l),m&&(t.viralCampaignId=String(m)),F&&(t.bibliotecaAdId=F);else if(H.adtype==="video_ad"){const N={offset:{kind:"OFFSET_MILLISECONDS", value:String(Number(H.offset)||0)}};if(H=Mwm[H.breaktype])N.breakType=H;w&&(N.url=w);Y&&(N.presetAd=Y);l&&(N.viralAdResponseUrl=l);m&&(N.viralCampaignId=String(m));F&&(N.bibliotecaAdId=F);k.push(N)}}d.forceAdParameters={videoAds:k,inDisplayAd:t}}f.isInlinePlaybackNoAd&&(d.isInlinePlaybackNoAd=!0);f.isLivingRoomDeeplink&&(d.isLivingRoomDeeplink=!0);C=f.z2;if(C!=null){C={startWalltime:String(C)};if(v=f.Xo)C.manifestDuration=String(v||14400);d.liveContext=C}f.mutedAutoplay&&(d.mutedAutoplay=!0,C=L.getWebPlayerContextConfig(), C?.embedsHostFlags?.allowMutedAutoplayDurationMode&&C?.embedsHostFlags?.allowMutedAutoplayDurationMode.includes(GCg[f.mutedAutoplayDurationMode])&&(d.mutedAutoplayDurationMode=GCg[f.mutedAutoplayDurationMode]));if(f.Mk?0:f.mS)d.splay=!0;C=f.vnd;C===5&&(d.vnd=C);C={};if(v=f.isMdxPlayback)C.triggeredByMdx=v;if(v=f.M7)C.skippableAdsSupported=v.split(",").includes("ska");if(k=f.d8){v=f.m1;t=[];for(var b of xxG(k)){k=b.platform;k={applicationState:b.Np?"INACTIVE":"ACTIVE",clientFormFactor:WXm[k]||"UNKNOWN_FORM_FACTOR", clientName:snd[b.KD]||"UNKNOWN_INTERFACE",clientVersion:b.deviceVersion||"",platform:XsH[k]||"UNKNOWN_PLATFORM"};H={};if(v){var K=void 0;try{K=JSON.parse(v)}catch(Y){g.Yv(Y)}K&&(H={params:[{key:"ms",value:K.ms}]},K.advertising_id&&(H.advertisingId=K.advertising_id),K.limit_ad_tracking!==void 0&&K.limit_ad_tracking!==null&&(H.limitAdTracking=K.limit_ad_tracking),k.osName=K.os_name,k.userAgent=K.user_agent,k.windowHeightPoints=K.window_height_points,k.windowWidthPoints=K.window_width_points)}t.push({adSignalsInfo:H, remoteClient:k})}C.remoteContexts=t}b=f.sourceContainerPlaylistId;K=f.serializedMdxMetadata;if(b||K)v={},b&&(v.mdxPlaybackContainerInfo={sourceContainerPlaylistId:b}),K&&(v.serializedMdxMetadata=K),C.mdxPlaybackSourceContext=v;d.mdxContext=C;b=e.width;b>0&&(d.playerWidthPixels=Math.round(b));if(e=e.height)d.playerHeightPixels=Math.round(e);B!==0&&(d.vis=B);if(B=L.widgetReferrer)d.widgetReferrer=B.substring(0,128);g.XY(L)&&d&&(d.ancestorOrigins=L.ancestorOrigins);f.defaultActiveSourceVideoId&&(d.compositeVideoContext= {defaultActiveSourceVideoId:f.defaultActiveSourceVideoId});if(L=L.getWebPlayerContextConfig())d.encryptedHostFlags=L.encryptedHostFlags;n={videoId:n,context:r,playbackContext:{contentPlaybackContext:d}};f.CG&&(n.playbackContext.reloadPlaybackContext={reloadPlaybackParams:f.CG?.reloadPlaybackParams});f.contentCheckOk&&(n.contentCheckOk=!0);if(r=f.clientPlaybackNonce)n.cpn=r;if(r=f.playerParams)n.params=r;if(r=f.playlistId)n.playlistId=r;f.racyCheckOk&&(n.racyCheckOk=!0);r=f.S();d=r.embedConfig;f.YE&& r.Y("embeds_enable_per_video_embed_config")?n.serializedThirdPartyEmbedConfig=f.YE:d&&(n.serializedThirdPartyEmbedConfig=d);n.captionParams={};d=g.ni().jI(65);f.deviceCaptionsOn!=null?n.captionParams.deviceCaptionsOn=f.deviceCaptionsOn:g.yQ(r)&&(n.captionParams.deviceCaptionsOn=d!=null?!d:!1);f.yw&&(n.captionParams.deviceCaptionsLangPref=f.yw);f.tU.length?n.captionParams.viewerSelectedCaptionLangs=f.tU:g.yQ(r)&&(d=g.Pl(),d?.length&&(n.captionParams.viewerSelectedCaptionLangs=d));d=f.fetchType==="onesie"&& f.Y("html5_onesie_attach_po_token");L=f.fetchType!=="onesie"&&f.Y("html5_non_onesie_attach_po_token");if(d||L)d=f.S(),d.zt&&(n.serviceIntegrityDimensions={},n.serviceIntegrityDimensions.poToken=d.zt);r.Y("fetch_att_independently")&&(n.attestationRequest={omitBotguardData:!0});n.playbackContext||(n.playbackContext={});n.playbackContext.devicePlaybackCapabilities=yVw(f);n.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&f.ri("noVp9",{});return n}; g.I5=function(f,e,B,n,r=!1){B&&Ro(f,B);B=g.hs(f);const L=g.FL(B);f!=L&&dZ(Error(`Unsafe window.open URL: ${f}`));f=L;e=e||tj(f).toString(36);try{if(r)return r=f,r=vYG(r),xU(r),g.Mb(window,r,e,"attributionsrc")}catch(d){g.rZ(d)}xU(f);return g.Mb(window,B,e,n)}; IDm=function(f){$U=f}; $xm=function(f){iA=f}; idw=function(f){fK=f}; eZw=function(){f15=fK=iA=$U=null}; BVC=function(f){f.addEventListener("updateKevlarOrC3Companion",IDm);f.addEventListener("updateEngagementPanelAction",$xm);f.addEventListener("changeEngagementPanelVisibility",idw);window.addEventListener("yt-navigate-start",eZw)}; r4g=function(){var f=window.location.href;if(g.UV("kevlar_disable_theme_param"))return null;const e=nY(f);if(g.UV("enable_dark_theme_only_on_shorts")&&e?.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{const B=g.vb(f).theme;return nPC.get(B)||null}catch(B){}return null}; LRg=function(f,e){if(e.encryptedTokenJarContents&&(f.C[e.encryptedTokenJarContents]=e,typeof e.expirationSeconds==="string")){const B=Number(e.expirationSeconds);setTimeout(()=>{delete f.C[e.encryptedTokenJarContents]},B*1E3); f.G&&g.is("CONSISTENCY",e.encryptedTokenJarContents,B,void 0,!0)}}; eH=function(f){return f.localStorage===void 0?new Qt("yt-client-location"):f.localStorage}; g.rH=function(f,e=!1,B=!1){var n=g.Q("INNERTUBE_CONTEXT");if(!n)return g.J(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};n=g.xe(n);g.UV("web_no_tracking_params_in_shell_killswitch")||delete n.clickTracking;n.client||(n.client={});var r=n.client;r.clientName==="MWEB"&&r.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(r.clientFormFactor=g.Q("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");r.screenWidthPoints=window.innerWidth;r.screenHeightPoints=window.innerHeight;r.screenPixelDensity= Math.round(window.devicePixelRatio||1);r.screenDensityFloat=window.devicePixelRatio||1;r.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var L=g.ni();var d="USER_INTERFACE_THEME_LIGHT";L.jI(165)?d="USER_INTERFACE_THEME_DARK":L.jI(174)?d="USER_INTERFACE_THEME_LIGHT":!g.UV("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(d="USER_INTERFACE_THEME_DARK");L=r4g()||d;r.userInterfaceTheme= L;if(!e){if(L=n15())r.connectionType=L;g.UV("web_log_effective_connection_type")&&(L=L7Y())&&(n.client.effectiveConnectionType=L)}g.UV("web_log_memory_total_kbytes")&&g.Kw.navigator?.deviceMemory&&(n.client.memoryTotalKbytes=`${g.Kw.navigator?.deviceMemory*1E6}`);if(g.UV("web_gcf_hashes_innertube")){var t=wUM();t&&(L=t.coldConfigData,d=t.coldHashData,t=t.hotHashData,n.client.configInfo=n.client.configInfo||{},L&&(n.client.configInfo.coldConfigData=L),d&&(n.client.configInfo.coldHashData=d),t&&(n.client.configInfo.hotHashData= t))}L=g.vb(g.Kw.location.href);!g.UV("web_populate_internal_geo_killswitch")&&L.internalcountrycode&&(r.internalGeo=L.internalcountrycode);r.clientName==="MWEB"||r.clientName==="WEB"?(r.mainAppWebInfo||(r.mainAppWebInfo={}),r.mainAppWebInfo.graftUrl=g.Kw.location.href,g.UV("kevlar_woffle")&&dDO.instance&&(L=dDO.instance,r.mainAppWebInfo.pwaInstallabilityStatus=!L.C&&L.G?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),r.mainAppWebInfo.webDisplayMode=fi(),r.mainAppWebInfo.isWebNativeShareAvailable= navigator&&navigator.share!==void 0):r.clientName==="TVHTML5"&&(!g.UV("web_lr_app_quality_killswitch")&&(L=g.Q("LIVING_ROOM_APP_QUALITY"))&&(r.tvAppInfo=Object.assign(r.tvAppInfo||{},{appQuality:L})),L=g.Q("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(r.tvAppInfo=Object.assign(r.tvAppInfo||{},{certificationScope:L}));if(!g.UV("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!=="undefined")try{var H=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch{}H=void 0}H&&(r.timeZone=H)}(H= h7())?r.experimentsToken=H:delete r.experimentsToken;r=gZ();BJ.instance||(BJ.instance=new BJ);H=UM(BJ.instance.C);n.request={...n.request,internalExperimentFlags:r,consistencyTokenJars:H};!g.UV("web_prequest_context_killswitch")&&(r=g.Q("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(n.request.externalPrequestContext=r);H=g.ni();r=H.jI(58);H=H.get("gsml","");n.user={...n.user};r&&(n.user.enableSafetyMode=r);H&&(n.user.lockedSafetyMode=!0);g.UV("warm_op_csn_cleanup")?B&&(e=g.be())&&(n.clientScreenNonce=e): !e&&(e=g.be())&&(n.clientScreenNonce=e);f&&(n.clickTracking={clickTrackingParams:f});if(f=g.zO("yt.mdx.remote.remoteClient_"))n.remoteClient=f;nK.getInstance().setLocationOnInnerTubeContext(n);try{var k=A7(),C=k.bid;delete k.bid;n.adSignalsInfo={params:[],bid:C};for(const [w,v]of Object.entries(k))k=w,C=v,n.adSignalsInfo.params?.push({key:k,value:`${C}`});if(n.client?.clientName==="TVHTML5"||n.client?.clientName==="TVHTML5_UNPLUGGED"){const w=g.Q("INNERTUBE_CONTEXT");w.adSignalsInfo&&(n.adSignalsInfo.advertisingId= w.adSignalsInfo.advertisingId,n.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",n.adSignalsInfo.limitAdTracking=w.adSignalsInfo.limitAdTracking)}}catch(w){g.J(w)}return n}; kWl=function(f,e){if(!f)return!1;var B=g.u(f,tsM)?.signal;if(B&&e.Wb)return!!e.Wb[B];if((B=g.u(f,Hg5)?.request)&&e.J6)return!!e.J6[B];for(const n in f)if(e.EQ[n])return!0;return!1}; CiO=function(f){const e={"Content-Type":"application/json"};g.Q("EOM_VISITOR_DATA")?e["X-Goog-EOM-Visitor-Id"]=g.Q("EOM_VISITOR_DATA"):g.Q("VISITOR_DATA")&&(e["X-Goog-Visitor-Id"]=g.Q("VISITOR_DATA"));e["X-Youtube-Bootstrap-Logged-In"]=g.Q("LOGGED_IN",!1);g.Q("DEBUG_SETTINGS_METADATA")&&(e["X-Debug-Settings-Metadata"]=g.Q("DEBUG_SETTINGS_METADATA"));f!=="cors"&&((f=g.Q("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(e["X-Youtube-Client-Name"]=f),(f=g.Q("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(e["X-Youtube-Client-Version"]= f),(f=g.Q("CHROME_CONNECTED_HEADER"))&&(e["X-Youtube-Chrome-Connected"]=f),(f=g.Q("DOMAIN_ADMIN_STATE"))&&(e["X-Youtube-Domain-Admin-State"]=f));(f=g.Q("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(e["X-YouTube-Lava-Device-Context"]=f);return e}; LK=function(f){return()=>new f}; vPG=function(f){if(f.length===1)return f[0];var e=wig.UNKNOWN_INTERFACE;if(e){e=new RegExp(e);for(var B of f)if(e.exec(B))return B}const n=[];Object.entries(wig).forEach(([r,L])=>{"UNKNOWN_INTERFACE"!==r&&n.push(L)}); B=new RegExp(n.join("|"));f.sort((r,L)=>r.length-L.length); for(const r of f)if(!B.exec(r))return r;return f[0]}; g.dH=function(f){return`/youtubei/v1/${vPG(f)}`}; tQ=function(f){return g.zO("ytcsi."+(f||"")+"data_")||bgH(f)}; ZgM=function(){const f=tQ();f.info||(f.info={});return f.info}; HJ=function(f){f=tQ(f);f.metadata||(f.metadata={});return f.metadata}; k$=function(f){f=tQ(f);f.tick||(f.tick={});return f.tick}; CK=function(f){f=tQ(f);if(f.gel){const e=f.gel;e.gelInfos||(e.gelInfos={});e.gelTicks||(e.gelTicks={})}else f.gel={gelTicks:{},gelInfos:{}};return f.gel}; RZm=function(f){f=CK(f);f.gelInfos||(f.gelInfos={});return f.gelInfos}; KRd=function(){const f=CK();f.preLoggedGelInfos||(f.preLoggedGelInfos=[]);return f.preLoggedGelInfos}; wH=function(f){let e=tQ(f).nonce;e||(e=g.HR(16),tQ(f).nonce=e);return e}; bgH=function(f){const e={tick:{},info:{}};g.qH("ytcsi."+(f||"")+"data_",e);return e}; vJ=function(){let f=g.zO("ytcsi.debug");f||(f=[],g.qH("ytcsi.debug",f),g.qH("ytcsi.reference",{}));return f}; bB=function(f){f=f||"";const e=qyG();if(e[f])return e[f];const B=vJ(),n={timerName:f,info:{},tick:{},span:{},jspbInfo:[]};B.push(n);return e[f]=n}; zZG=function(f){f=f||"";const e=qyG();e[f]&&delete e[f];const B=vJ(),n={timerName:f,info:{},tick:{},span:{},jspbInfo:[]};B.push(n);e[f]=n}; qyG=function(){const f=g.zO("ytcsi.reference");if(f)return f;vJ();return g.zO("ytcsi.reference")}; Z7=function(f){return a1C[f]||"LATENCY_ACTION_UNKNOWN"}; A40=function(f,e,B={}){var n=Math.round(B.timestamp||(0,g.T)());HU(f,1,n{const n=(0,g.T)();for(const r in qJ)qJ[r]&&n-qJ[r].time>6E4&&delete qJ[r];f&&(f.C=0)},5E3)); return B.count>5?(B.count===6&&Math.random()*1E5<1&&(B=new g.Dj("CSI data exceeded logging limit with key",e.split("_")),e.indexOf("plev")>=0||g.Yv(B)),!0):!1}; Ogg=function(){var f;g.UV("csi_use_performance_navigation_timing")?(f=aR?.getEntriesByType?.("navigation")?.[0]?.toJSON?.())?(f.requestStart=pK(f.requestStart),f.responseEnd=pK(f.responseEnd),f.redirectStart=pK(f.redirectStart),f.redirectEnd=pK(f.redirectEnd),f.domainLookupEnd=pK(f.domainLookupEnd),f.connectStart=pK(f.connectStart),f.connectEnd=pK(f.connectEnd),f.responseStart=pK(f.responseStart),f.secureConnectionStart=pK(f.secureConnectionStart),f.domainLookupStart=pK(f.domainLookupStart),f.isPerformanceNavigationTiming= !0):f=aR.timing:f=g.UV("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(aR.timing)):aR.timing;return f}; pK=function(f){return Math.round(cJ()+f)}; cJ=function(){return(g.UV("csi_use_time_origin")||g.UV("csi_use_time_origin_tvhtml5"))&&aR.timeOrigin?Math.floor(aR.timeOrigin):aR.timing.navigationStart}; oPG=function(){const f=KRd(),e=RZm();var B=void 0;for(var n=0;n{rQ(e,t);rQ(L,t);d=!0}; for(const t of f)r(t);d&&jH(L)}}; OX=function(f,e){Y$("_start",f,e)}; jH=function(f,e){if(!g.UV("web_csi_action_sampling_enabled")||!tQ(e).actionDisabled){var B=bB(e||"");rQ(B.info,f);f.loadType&&(B=f.loadType,HJ(e).loadType=B);rQ(RZm(e),f);B=wH(e);e=tQ(e).cttAuthInfo;KK().info(f,B,e)}}; Vsd=function(){return(aH().resolve(ZC(rq))?.sO()?.loggingHotConfig?.csiConfig?.debugTicks??[]).map(f=>Object.values(f)[0])}; Y$=function(f,e,B){if(!g.UV("web_csi_action_sampling_enabled")||!tQ(B).actionDisabled){var n=wH(B),r;if(r=g.UV("web_csi_debug_sample_enabled")&&n){aH().resolve(ZC(rq))?.sO()&&!l1g&&(l1g=!0,Y$("gcfl",(0,g.T)(),B));r=aH().resolve(ZC(rq))?.sO()?.loggingHotConfig?.csiConfig?.debugSampleWeight||0;var L;if(L=r!==0)b:{L=Vsd();if(L.length>0)for(let t=0;t{e.name.startsWith("mark_")&&aR.clearMarks?.(e.name)})}; mDm=function(){switch(T8m()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}}; UDg=function(f){const e={},B=(n,r,L)=>{r=r.match("_rid")?r.split("_rid")[0]:r;typeof L==="number"&&(L=JSON.stringify(L));n.requestIds?n.requestIds.push({endpoint:r,id:L}):n.requestIds=[{endpoint:r,id:L}]}; for(const [n,r]of Object.entries(f)){f=n;const L=r;switch(f){case "GetBrowse_rid":B(e,f,L);break;case "GetGuide_rid":B(e,f,L);break;case "GetHome_rid":B(e,f,L);break;case "GetPlayer_rid":B(e,f,L);break;case "GetSearch_rid":B(e,f,L);break;case "GetSettings_rid":B(e,f,L);break;case "GetTrending_rid":B(e,f,L);break;case "GetWatchNext_rid":B(e,f,L);break;case "yt_red":e.isRedSubscriber=!!L;break;case "yt_ad":e.isMonetized=!!L}}return e}; NVl=function(f,e){f=document.querySelector(f);if(!f)return!1;var B="";const n=f.nodeName;n==="SCRIPT"?(B=f.src,B||(B=f.getAttribute("data-timing-href"))&&(B=window.location.protocol+B)):n==="LINK"&&(B=f.href);Gc(document)&&f.setAttribute("nonce",Gc(document));return B?(f=aR.getEntriesByName(B))&&f[0]&&(f=f[0],B=cJ(),Y$("rsf_"+e,B+Math.round(f.fetchStart)),Y$("rse_"+e,B+Math.round(f.responseEnd)),f.transferSize!==void 0&&f.transferSize===0)?!0:!1:!1}; hZ6=function(){const f=window.location.protocol;var e=aR.getEntriesByType("resource");e=g.GO(e,B=>B.name.indexOf(`${f}//fonts.gstatic.com/s/`)===0); (e=sk(e,(B,n)=>n.duration>B.duration?n:B,{duration:0}))&&e.startTime>0&&e.responseEnd>0&&(Y$("wffs",pK(e.startTime)),Y$("wffe",pK(e.responseEnd)))}; gP0=function(f,e,B){aR&&aR.measure&&(f.startsWith("measure_")||(f="measure_"+f),B?aR.measure(f,e,B):e?aR.measure(f,e):aR.measure(f))}; Sy6=function(f){var e=AQ("aft",f);if(e)return e;e=g.Q((f||"")+"TIMING_AFT_KEYS",["ol"]);const B=e.length;for(let n=0;nB.name==="first-paint"))return pK(f.startTime)}let e; g.UV("csi_use_performance_navigation_timing")?e=aR.getEntriesByType("first-paint")[0].startTime:e=aR.timing.PRa;return e?Math.max(0,e):0}; FW=function(f){bgH(f);J46();FRH();f||(g.Q("TIMING_ACTION")&&eZ("PREVIOUS_ACTION",g.Q("TIMING_ACTION")),eZ("TIMING_ACTION",""))}; Msd=function(){var f=["pbs","pbu"];g.LN(()=>{bB("").info.actionType="watch";f&&eZ("TIMING_AFT_KEYS",f);eZ("TIMING_ACTION","watch");var e=UDg(g.Q("TIMING_INFO",{}));Object.keys(e).length>0&&jH(e);e={isNavigation:!0,actionType:Z7(g.Q("TIMING_ACTION"))};var B=g.Q("PREVIOUS_ACTION");B&&(e.previousAction=Z7(B));if(B=g.Q("CLIENT_PROTOCOL"))e.httpProtocol=B;if(B=g.Q("CLIENT_TRANSPORT"))e.transportProtocol=B;(B=g.be())&&B!=="UNDEFINED_CSN"&&(e.clientScreenNonce=B);B=mDm();if(B===1||B===-1)e.isVisible=!0; B=HJ().loadType==="cold";var n=ZgM();B||(B=n.yt_lt==="cold");if(B){e.loadType="cold";B=ZgM();n=Ogg();let d=cJ();const t=g.Q("CSI_START_TIMESTAMP_MILLIS",0);t>0&&!g.UV("embeds_web_enable_csi_start_override_killswitch")&&(d=t);d&&(Y$("srt",n.responseStart),B.prerender!==1&&OX(d));B=DD5();B>0&&Y$("fpt",B);B=Ogg();B.isPerformanceNavigationTiming&&jH({performanceNavigationTiming:!0},void 0);Y$("nreqs",B.requestStart,void 0);Y$("nress",B.responseStart,void 0);Y$("nrese",B.responseEnd,void 0);B.redirectEnd- B.redirectStart>0&&(Y$("nrs",B.redirectStart,void 0),Y$("nre",B.redirectEnd,void 0));B.domainLookupEnd-B.domainLookupStart>0&&(Y$("ndnss",B.domainLookupStart,void 0),Y$("ndnse",B.domainLookupEnd,void 0));B.connectEnd-B.connectStart>0&&(Y$("ntcps",B.connectStart,void 0),Y$("ntcpe",B.connectEnd,void 0));B.secureConnectionStart>=cJ()&&B.connectEnd-B.secureConnectionStart>0&&(Y$("nstcps",B.secureConnectionStart,void 0),Y$("ntcpe",B.connectEnd,void 0));aR&&"getEntriesByType"in aR&&hZ6();B=[];if(document.querySelector&& aR&&aR.getEntriesByName)for(r in mm)mm.hasOwnProperty(r)&&(n=mm[r],NVl(r,n)&&B.push(n));var r=B;if(r.length>0){e.resourceInfo=[];for(var L of r)e.resourceInfo.push({resourceCache:L})}}jH(e);oPG();uB(!0);L=g.Q("TIMING_ACTION");g.zO("ytglobal.timingready_")&&L&&UX()&&Sy6()&&uj0()})()}; GWO=function(){var f={};g.LN(()=>{UX()&&NJ("aa",void 0,void 0);zZG();FW();uB(!1);f.cttAuthInfo&&(tQ().cttAuthInfo=f.cttAuthInfo);eZ("TIMING_AFT_KEYS",[]);f.TRq?g.hQ({loadType:"hot"}):g.hQ({loadType:"warm"});eZ("TIMING_ACTION","");delete g.Q("TIMING_INFO",{}).yt_lt;g.LN(OX)(f.startTime,void 0)})()}; gH=function(f,e={}){g.LN(()=>{xD5(f);var B=e.sampleRate;if(!g.UV("web_csi_action_sampling_enabled")||B===void 0||B<=1)B=!1;else{var n=wH(f);B=ar0(n)%B!==0}B&&(tQ(f).actionDisabled=!0);bB(f||"").info.actionType=f;e.cttAuthInfo&&(tQ(f).cttAuthInfo=e.cttAuthInfo);eZ(f+"TIMING_ACTION",f);g.LN(OX)(e.startTime,f);B={actionType:Z7(f)};e.bzq&&(B.previousAction=Z7(g.Q("TIMING_ACTION")));(n=g.be())&&n!=="UNDEFINED_CSN"&&(B.clientScreenNonce=n);g.hQ(B,f);uB(!0,f)})()}; xD5=function(f){g.LN(()=>{UX(f)&&NJ("aa",void 0,f);zZG(f);FW(f)})()}; UX=function(f){return g.LN(()=>SH("_start",f))()}; g.hQ=function(f,e,B=!1){g.LN(jH)(f,e,B)}; NJ=function(f,e,B){return g.LN(Y$)(f,e,B)}; WR0=function(f){g.LN(gP0)("action_finished",f,void 0)}; SH=function(f,e){return g.LN(()=>{const B=k$(e);return f in B})()}; XiY=function(f){if(!g.UV("universal_csi_network_ticks"))return"";f=nY(f)||"";const e=Object.keys(sKY);for(let B=0;B{}; const e=sKY[f];return e?(EX(e),()=>{var B=g.UV("universal_csi_network_ticks")?(B=y4g[f])?EX(B):!1:!1;return B}):()=>{}}; EX=function(f,e,B){return g.LN(()=>{if(SH(f,B))return!1;NJ(f,e,B);return!0})()}; QF=function(f,e,B){g.LN(()=>{if(!UX(B)||SH(f,B))return!1;NJ(f,e,B);return!0})()}; I1Y=function(){g.LN(()=>{const f=wH();requestAnimationFrame(()=>{setTimeout(()=>{f===wH()&&NJ("ftl",void 0,void 0)},0)})})()}; $Dl=function(f,e,B,n,r){if(TR.instance!==void 0){if(n=TR.instance,f=[f!==n.V,e!==n.GZ,B!==n.C,r!==n.J,!1,!1,!1],f.some(L=>L))throw new g.Dj("InnerTubeTransportService is already initialized",f); }else TR.instance=new TR(f,e,B,n,r)}; igw=function(f,e){a:{f=f.V;var B=g.u(e,tsM)?.signal;if(B&&f.Wb&&(B=f.Wb[B])){var n=B();break a}if((B=g.u(e,Hg5)?.request)&&f.J6&&(B=f.J6[B])){n=B();break a}for(n in e)if(f.EQ[n]&&(e=f.EQ[n])){n=e();break a}n=void 0}if(n!==void 0)return Promise.resolve(n)}; f6m=function(f,e,B){f=f.C.J5(e?.Vt?.identity||RF,{sessionIndex:e?.Vt?.sessionIndex});return{...CiO(B),...f}}; e0d=async function(f,e,B){f=await g.Np(f.C.J5(e?.Vt?.identity||RF,{sessionIndex:e?.Vt?.sessionIndex}));return Promise.resolve({...CiO(B),...f})}; tkl=async function(f,e,B,n=()=>{}){var r=e.config?.z1?.WU; if(r&&f.J&&f.J.has(r)&&!e.config?.z1?.disableCache){var L=await f.J.get(r);if(L&&!L.isExpired())return n=BKd(L),g.UV("web_process_response_store_responses")&&!L.isProcessed()&&(ncG(f,n,e),await ro6(f.J,r)),Promise.resolve(n)}await LU6(e);(r=e.config?.requestKey)&&f.G.has(r)?B=f.G.get(r):(L=JSON.stringify(e.IF),e.yl={...e.yl,headers:{...(e.yl?.headers??{}),...B}},B={...e.yl},e.yl.method==="POST"&&(B={...B,body:L}),e.config?.HD&&NJ(e.config.HD),B=f.GZ.fetch(e.input,B,e.config),r&&f.G.set(r,B));(B=await B)&& g.UV("web_streaming_player")&&Array.isArray(B)&&(B=B[0].playerResponse);if(B&&"error"in B&&B?.error?.details){L=B.error.details;for(const d of L)(L=d["@type"])&&dpG.indexOf(L)>-1&&(delete d["@type"],B=d)}r&&f.G.has(r)&&f.G.delete(r);e.config?.BD&&NJ(e.config.BD);ncG(f,B,e);e.config?.VO&&NJ(e.config.VO);n();return B||void 0}; D7=function(f,e,B){const n=igw(f,e);return n?new g.u5(async(r,L)=>{const d=(await n).W(e,B,RF);d?(xU(d.input),L=d.yl?.mode==="cors"?"cors":void 0,L=f.C.xV?f6m(f,d.config,L):await e0d(f,d.config,L),r(tkl(f,d,L))):L(new g.Dj("Error: Failed to build request for command.",e))}):ho(new g.Dj("Error: No request builder found for command.",e))}; g.JQ=function(f,e,B,n,r={Vt:{identity:RF}}){let L=()=>{}; L=Pil(XiY(B));e.context||(e.context=g.rH(n,!0));return new g.u5(async d=>{var t=ns(B);t=KN(t)?"same-origin":"cors";t=f.C.xV?f6m(f,r,t):await e0d(f,r,t);var H=pn0(ns(B));H={input:H,yl:rx(H),IF:e,config:r};d(tkl(f,H,t,L))})}; LU6=async function(f){if(f?.IF?.context){f=f.IF.context;for(const e of[])await e.g29(f)}}; ncG=function(f,e,B){if(e&&!e?.sequenceMetaData?.skipProcessing&&f.W)for(const n of HI5)f.W[n]&&f.W[n].handleResponse(e,B)}; BKd=function(f){return{...f.data.innertubeResponse,cacheMetadata:{isCacheHit:!0}}}; ro6=async function(f,e){const B=f.C.get(e);B&&(B.entryData.isProcessed=!0,await k_Y(f,e,B.entryData))}; k_Y=async function(f,e,B){var n=f.G;if(B.expireTimestampMs){n=Number(B.expireTimestampMs)-Math.round((0,g.T)());const r=Ng("mweb_override_response_store_expiration_ms");r>0&&r{f.remove(e)},n); f.C.set(e,{entryData:B,timer:n})}; w76=function(f,e){if(f=f.C.get(e))return new C56(f.entryData)}; vc5=function(f,e){const B=f.C.get(e);B&&(clearTimeout(B.timer),f.C.delete(e))}; MJ=function(f,e,B){if(!g.UV("state_tags_killswitch")){var n=new bIC(e);if((n.C?.stateTagsModified||[]).length>0){var r=f.C.qA();for(var L of r){var d=w76(f.C,L);if(d){a:{r=n.C?.stateTagsModified||[];d=(new bIC(BKd(d))).C?.relevantStateTags||[];for(var t of d)if(t.stateTag!=null&&r.includes(t.stateTag)&&t.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){r=!0;break a}r=!1}r&&vc5(f.C,L)}}}}n=e.responseContext?.maxAgeSeconds;if(B&&n&&Number(n)>0){n=Number(n)*1E3;L=Math.round((0,g.T)()); t=L.toString();e={innertubeResponse:e,serverDateTimestampMs:t,lastModifiedTimestampMs:t,expireTimestampMs:(L+n).toString(),isProcessed:!0};if(n=g.Q("INNERTUBE_CONTEXT_CLIENT_NAME"))e.clientName=n;f.C.put(B,new C56(e))}}; var ZI5=function(f,e){return GR[Z[2]](this,13,f,e)}; R0H=function(f,e,B){if(f.C){const n=nY(qf(e,"key"))||"/UNKNOWN_PATH";f.C.start(n)}f=B;g.UV("wug_networking_gzip_request")&&(f=DSH(B));return new window.Request(e,f)}; g.nJ=function(f,e,B){if(!$$){const d=aH();RH(d,{cB:KUd,Da:qY5});if(B?.l8){RH(d,{cB:iB,dt:g.Q("INNERTUBE_CONTEXT_CLIENT_NAME",B.clientInterface)});RH(d,{cB:fJ,dt:5184E6});RH(d,{cB:eG,Da:z0H,[KB]:[iB,fJ]});RH(d,{cB:BK,Da:a6k});var n=d.resolve(BK),r=window;if(r.ytInitialVideoId){var L=r.ytInitialVideoId;r.ytInitialPlayerResponse&&MJ(n,r.ytInitialPlayerResponse,Ls("player",{videoId:L}));r.ytInitialWatchNextResponse&&MJ(n,r.ytInitialWatchNextResponse,Ls("next",{videoId:L}));r.ytInitialReelItemWatchResponse&& MJ(n,r.ytInitialReelItemWatchResponse,Ls("reel_item_watch",{videoId:L}))}}n={EQ:{feedbackEndpoint:LK(p7g),modifyChannelNotificationPreferenceEndpoint:LK(co5),playlistEditEndpoint:LK(YY6),shareEntityEndpoint:LK(Aow),subscribeEndpoint:LK(jvM),unsubscribeEndpoint:LK(OIG),webPlayerShareEntityServiceEndpoint:LK(ocC)}};r=nK.getInstance();L={};r&&(L.client_location=r);B?.l8&&(r=d.resolve(BK),L.store=r);f===void 0&&(f=Ixg());e===void 0&&(e=d.resolve(KUd));$Dl(n,e,f,L,B?.l8?d.resolve(eG):void 0);RH(d,{cB:Vkk, dt:TR.instance});$$=d.resolve(Vkk)}return $$}; rT=function(f){const e={};f=f.split("&");for(const B of f)f=B.split("="),f.length===2&&(e[f[0]]=f[1]);return e}; l6d=async function(){var f=window;await bi(LJ());const e=f.bgevmc;if(!e)throw Error("BGE Controls not exposed");return{pause:()=>{e.p()}, resume:()=>{e.r()}, checkForRefresh:()=>e.cr()}}; LJ=function(){return g.UV("bg_st_hr")?"havuokmhhs-0":`${"havuokmhhs"}-${Math.floor(globalThis.performance?.timeOrigin||0)}`}; dT=function(f){window.bgens=f}; FUG=function(){return new Promise(f=>{const e=window;e.ntpevasrs!==void 0?f(new uAw(e.ntpevasrs)):(e.ntpqfbel===void 0&&(e.ntpqfbel=[]),e.ntpqfbel.push(B=>{f(new uAw(B))}))})}; NK0=function(){if(c1()){var f=g.Q("PLAYER_VARS",{});if(g.Ju(f,"privembed",!1)!="1"&&!Ou6(f)){var e=()=>{tH=!0;"google_ad_status"in window?eZ("DCLKSTAT",1):eZ("DCLKSTAT",2)}; try{const B=Gc(document);g.fB(mpG,e,B)}catch(B){}Up5.push(g.ul.Br(()=>{if(!(tH||"google_ad_status"in window)){try{if(mpG.toString()&&e){var B=`${g.od(e)}`,n=oYM[B];n&&g.$n(n)}}catch(r){}tH=!0;eZ("DCLKSTAT",3)}},5E3))}}}; HK=function(){const f=Number(g.Q("DCLKSTAT",0));return isNaN(f)?0:f}; k3=function(f,e){f.C=e}; h05=async function(f){let e;if(g.Kw.ytAtP&&!g.UV("ytatp_ks")){var B=await g.Kw.ytAtP;delete g.Kw.ytAtP;let r=B?.R;e=B?.T;r?f.G.C(1,f.J++):(f.G.C(2,f.J++),B=await CJ(f,wT(e,null)),r=JSON.stringify(B));g.Kw.ytAtRC?g.Kw.ytAtRC(r):g.Yv(Error("ytAtRC not defined for ytAtP."))}else g.Kw.ytAtRC?Ci(async()=>{e=g.Kw.ytAtT;delete g.Kw.ytAtT;if(g.Kw.ytAtRC){f.G.C(2,f.J++);var r=await CJ(f,wT(e,null));g.Kw.ytAtRC&&g.Kw.ytAtRC(JSON.stringify(r))}else f.G.C(6,f.J++)},2,Ng("att_init_delay",0)):(e=g.Kw.ytAtT,delete g.Kw.ytAtT, f.G.C(1,f.J++)); B=await FUG();B.bindInnertubeChallengeFetcher(r=>{f.G.C(3,f.J++);return CJ(f,wT(e,r))}); B.registerChallengeFetchedCallback(r=>{r=r.challenge;if(!r)throw Error("BGE_MACR");r={challenge:r,y_:rT(r),eU:n,bgChallenge:new sa};r=Promise.resolve(r);f.C=r}); const n=await bi(LJ());B=B.getLatestChallengeResponse().challenge;if(!B)throw Error("BGE_MACIL");return{challenge:B,y_:rT(B),eU:n,bgChallenge:new sa}}; var gcw=function(f,e,B,n,r,L,d){return GR[Z[2]](this,3,f,e,B,n,r,L,d)}; vK=async function(f){var e=wT(void 0,Dy().C);try{var B=await SYk(f,e)}catch(t){return g.Yv(Error("Failed to fetch attestation challenge after 5 attempts; not retrying for 24h.")),EcM(f,864E5),{challenge:"",y_:{},eU:void 0,bgChallenge:void 0}}e=B.qc;const n=B.Sp;EcM(f,(Number(n.t)||7200)*1E3);f=void 0;if("c1a"in n&&B.bgChallenge){B=B.bgChallenge;var r=new sa;if(B.interpreterJavascript){var L=sg(B.interpreterJavascript);L=s0(L).toString();var d=new Md;kl(d,6,L);$1(r,Md,1,d,IU)}else B.interpreterUrl&& (L=Xt(B.interpreterUrl),L=V2(L).toString(),d=new GB,kl(d,4,L),$1(r,GB,2,d,IU));B.interpreterHash&&Ct(r,3,B.interpreterHash,IU);B.program&&Ct(r,4,B.program,IU);B.globalName&&Ct(r,5,B.globalName,IU);B.clientExperimentsStateBlob&&Ct(r,7,B.clientExperimentsStateBlob,IU);try{await xX(Dy(),r)}catch(t){return g.Yv(t),{challenge:e,y_:n,eU:f,bgChallenge:r}}try{f=new BQ({challenge:r,RY:{kI:"aGIf"}}),await f.kW}catch(t){g.Yv(t),f=void 0}}return{challenge:e,y_:n,eU:f,bgChallenge:r}}; CJ=async function(f,e){const B=f.V;if(!B||B.rZ())return QvY(f,e);QF("att_pna",void 0,"attestation_challenge_fetch");return new Promise(n=>{B.Vw("publicytnetworkstatus-online",()=>{QvY(f,e).then(n)})})}; SYk=async function(f,e){let B=void 0,n=0;for(;n<5;){if(n>0){const r=1E3*Math.pow(2,n-1)+Math.random()*1E3;await new Promise(L=>{g.wS(0,()=>{L(void 0)},r)})}try{f.G.C(4,f.J++); const r=await CJ(f,e);return TKk(r)}catch(r){B=r,r instanceof Error&&g.Yv(r)}n++}throw B;}; EcM=function(f,e){const B=Date.now()+e,n=async()=>{const r=B-Date.now();r<1E3?await DpO(f):Ci(n,0,Math.min(r,6E4))}; n()}; QvY=async function(f,e){dT(2);try{const B=await CJ(f.network,e);B?B.challenge&&!B.bgChallenge?dT(1):dT(4):dT(3);return B}catch(B){dT(3)}}; TKk=function(f){if(!f)throw Error("Fetching Attestation challenge returned falsy");if(!f.challenge)throw Error("Missing Attestation challenge");const e=f.challenge,B=rT(e);if("c1a"in B&&(!f.bgChallenge||!f.bgChallenge.program))throw Error("Expected bg challenge but missing.");return{...f,qc:e,Sp:B}}; DpO=async function(f){const e=await Promise.race([f.C,null]);var B=vK(f);f.C=B;e?.eU?.dispose()}; Jol=function(f,e){return new Promise(B=>{g.wS(0,()=>{B(e())},f)})}; wT=function(f,e){const B={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};f&&(B.eacrToken=f);e&&(B.interpreterHash=e);return B}; MkM=function(){return new Promise(f=>{const e=window;e.attmp!==void 0?f(e.attmp):(e.attmq===void 0&&(e.attmq=[]),e.attmq.push(B=>{f(B)}))})}; g.G_6=async function(f,e){if(g.UV("attmusi")&&g.UV("attmusi_ue")){var B=window;return B.attmp!==void 0?B.attmp.s("ENGAGEMENT_TYPE_PLAYBACK",f,e):(await MkM()).s("ENGAGEMENT_TYPE_PLAYBACK",f,e)}return(B=(B=g.zO("yt.aba.att"))?B:bL.instance!==void 0?bL.instance.W.bind(bL.instance):null)?B("ENGAGEMENT_TYPE_PLAYBACK",f,e):Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"})}; g.xpk=async function(){if(g.UV("attmusi")&&g.UV("attmusi_ue"))return window.attmp===void 0?!1:(await MkM()).ir();var f;return(f=(f=g.zO("yt.aba.att2"))?f:bL.instance!==void 0?bL.instance.U.bind(bL.instance):null)?f():Promise.resolve(!1)}; svg=function(f,e){var B=g.zO("ytDebugData.callbacks");B||(B={},g.qH("ytDebugData.callbacks",B));if(g.UV("web_dd_iu")||WU5.includes(f))B[f]=e}; yow=function(f){let e="";for(let n=0;n=0||Ze(f,0,"gad_source",f.search(RI))>=0}; kBm=function(f,e){var B=aH().resolve(H$m);if(t8m(e)){var n=KY(e,"gclid");e={handleEvent:r=>{f&&!f.closed&&typeof f.postMessage==="function"&&r&&r.origin&&r.source===f&&r.data&&r.data.action==="gcl_setup"&&f.postMessage({action:"gcl_transfer",...(n&&{gclid:n}),gadSource:2},r.origin)}}; for(const [r,L]of B.C){const d=r,t=L;if(d.closed)try{window.removeEventListener("message",t),B.C.delete(d)}catch(H){g.J(H)}}f&&B.C.size<15&&(B.C.set(f,e),window.addEventListener("message",e))}}; Zi=function(f,e,B){if(!e)return f.length>=1?f[f.length-1]:null;for(const n of f)if(n.width&&n.height&&(B&&n.width>=e||!B&&n.height>=e))return n;for(e=f.length-1;e>=0;e--)if(B&&f[e].width||!B&&f[e].height)return f[e];return f[0]}; wpl=function(f,e,B,n,r,L){B?(f.Hd(2),g.fB(g.IS(B),()=>{if(window.trayride)CrO(f,n,r);else{f.Hd(3);const d=OOw(B),t=document.getElementById(d);t&&(ARM(d),t.parentNode.removeChild(t));g.Yv(new g.Dj("BL:ULB",`${B}`))}},L)):e?(L=g.BN("SCRIPT"),e instanceof xW?(L.textContent=s0(e),XL(L)):L.textContent=e,L.nonce=Gc(document),document.head.appendChild(L),document.head.removeChild(L),window.trayride?CrO(f,n,r):(f.Hd(4),g.Yv(new g.Dj("BL:ULBJ")))):g.Yv(new g.Dj("BL:ULV"))}; CrO=function(f,e,B){f.Hd(5);const n=!!f.vE&&vXG.includes(g.BT(f.vE)||"");try{const r=new BQ({program:e,globalName:"trayride",RY:{disable:!g.UV("att_web_record_metrics")||!g.UV("att_skip_metrics_for_cookieless_domains_ks")&&n,kI:"aGIf"}});r.kW.then(()=>{f.Hd(6);B&&B(e)}); f.C(r)}catch(r){f.Hd(7),r instanceof Error&&g.Yv(r)}}; RM=function(){const f=g.zO("yt.abuse.playerAttLoader");return f&&["bgvma","bgvmb","bgvmc"].every(e=>e in f)?f:null}; b$d=function(f,e,B){let n=!1;for(const [r]of f.zC.entries()){const L=r;L.slotType==="SLOT_TYPE_PLAYER_BYTES"&&L.hL==="core"&&(n=!0)}if(n){a:if(!B){for(const [r,L]of f.zC.entries())if(f=r,B=L,f.slotType==="SLOT_TYPE_IN_PLAYER"&&f.hL==="core"){B=B.layoutId;break a}B=void 0}B?e.B_(B):NL("No triggering layout ID available when attempting to mute.")}}; KJ=function(f,e,B){f.HS();f.C.get(e)&&g.J(Error(`Extension name ${e} already registered`));f.C.set(e,B)}; Knw=function(f,e=[],B,n){f.HS();const r=[],L=[];for(const d of e)g.u(d,Z$Y)||g.u(d,RlY)?r.push(d):L.push(d);for(const d of r)q6(f,d,B,n);for(const d of L)q6(f,d,B,n)}; qaC=function(f,e){KJ(f,e.p$(),(B,n,r)=>{e.Un(B,n,r)})}; q6=function(f,e,B,n){f.HS();e.loggingUrls&&zl6(f,"loggingUrls",e.loggingUrls,B,n);for(const [r,L]of Object.entries(e)){e=r;const d=L;e==="openPopupAction"?zU(f.tF.get(),"innertubeCommand",{openPopupAction:d}):e==="confirmDialogEndpoint"?zU(f.tF.get(),"innertubeCommand",{confirmDialogEndpoint:d}):ay5.hasOwnProperty(e)||zl6(f,e,d,B,n)}}; zl6=function(f,e,B,n,r){if((f=f.C.get(e))&&typeof f==="function")try{f(B,n,r)}catch(L){g.J(L)}else e=new g.Dj("Unhandled field",e),g.Yv(e)}; pJ=function(f,e,B){if(B&&!B.includes(f.layoutType))return!1;for(const n of e)if(!aM(f.clientMetadata,n))return!1;return!0}; pp5=function(f,e){switch(f){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return e(f),8}}; aM=function(f,e){return f.C.has(e)}; cK=function(f){return Array.from(f.C.keys())}; Y3=function(f,e,B){if(B&&B!==f.slotType)return!1;for(const n of e)if(!aM(f.clientMetadata,n))return!1;return!0}; YaC=function(f){return cMl.get(f)?.Pb||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; jG=function(f,e){const B={type:e.slotType,controlFlowManagerLayer:AM0.get(e.hL)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};e.slotEntryTrigger&&(B.entryTriggerType=e.slotEntryTrigger.triggerType);e.slotPhysicalPosition!==1&&(B.slotPhysicalPosition=e.slotPhysicalPosition);if(f){B.debugData={slotId:e.slotId};if(f=e.slotEntryTrigger)B.debugData.slotEntryTriggerData=AH(f);f=e.slotFulfillmentTriggers;B.debugData.fulfillmentTriggerData=[];for(const n of f)B.debugData.fulfillmentTriggerData.push(AH(n));e= e.slotExpirationTriggers;B.debugData.expirationTriggerData=[];for(const n of e)B.debugData.expirationTriggerData.push(AH(n))}return B}; jq5=function(f,e){const B={type:e.layoutType,controlFlowManagerLayer:AM0.get(e.hL)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};f&&(B.debugData={layoutId:e.layoutId});return B}; AH=function(f,e){const B={type:f.triggerType};e!=null&&(B.category=e);f.triggeringSlotId!=null&&(B.triggerSourceData||(B.triggerSourceData={}),B.triggerSourceData.associatedSlotId=f.triggeringSlotId);f.triggeringLayoutId!=null&&(B.triggerSourceData||(B.triggerSourceData={}),B.triggerSourceData.associatedLayoutId=f.triggeringLayoutId);return B}; O$H=function(f,e,B,n){e={opportunityType:e};f&&(n||B)&&(n=g.xg(n||[],r=>jG(f,r)),e.debugData={...(B&&B.length>0?{associatedSlotId:B}:{}), ...(n.length>0?{slots:n}:{})});return e}; oM=function(f,e){return B=>oXm(OF(f),e.slotId,e.slotType,e.slotPhysicalPosition,e.hL,e.slotEntryTrigger,e.slotFulfillmentTriggers,e.slotExpirationTriggers,B.layoutId,B.layoutType,B.hL)}; oXm=function(f,e,B,n,r,L,d,t,H,k,C){return{adClientDataEntry:{slotData:jG(f,{slotId:e,slotType:B,slotPhysicalPosition:n,hL:r,slotEntryTrigger:L,slotFulfillmentTriggers:d,slotExpirationTriggers:t,clientMetadata:new Vl([])}),layoutData:jq5(f,{layoutId:H,layoutType:k,hL:C,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bC:new Map,clientMetadata:new Vl([]),BL:{}})}}}; OF=function(f){return f.C||f.iY.get().Z.S().Y("html5_force_debug_data_for_client_tmp_logs")}; lL=function(f,e){f.G.add(e)}; uL=function(f,e){f.G.delete(e)}; EF=function(f,e,B){if(F4(f.C,e)){a:switch(my(f.C,e).C){case "exit_requested":var n=!0;break a;default:n=!1}if(!n)a:switch(my(f.C,e).C){case "rendering_stop_requested":n=!0;break a;default:n=!1}if(n&&(my(f.C,e).W=!0,!B))return;if(UF(my(f.C,e)))my(f.C,e).W=!0,V85(f,e,B);else{a:switch(my(f.C,e).V){case "fill_requested":B=!0;break a;default:B=!1}if(B)my(f.C,e).W=!0,F4(f.C,e)&&(N6(f.nh,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",e),f=my(f.C,e),f.V="fill_cancel_requested",f.X.qy());else{B= hH(f.C,e);(n=f.iY.get().Z.S().experiments.SI("h5_enable_layout_unscheduling_events"))&&(B?f.AG(e,B):NL(Error("Layout is null for LayoutUnscheduled event."),e,B,void 0,!1));N6(f.nh,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",e);const t=my(f.C,e);var r=e.slotEntryTrigger;const H=t.Cq.get(r.triggerId);H&&(H.Rk(r),t.Cq.delete(r.triggerId));for(var L of e.slotFulfillmentTriggers)if(r=t.Ed.get(L.triggerId))r.Rk(L),t.Ed.delete(L.triggerId);for(var d of e.slotExpirationTriggers)if(L=t.N.get(d.triggerId))L.Rk(d), t.N.delete(d.triggerId);t.layout!=null&&(d=t.layout,gT(t,d.layoutExitNormalTriggers),gT(t,d.layoutExitSkipTriggers),gT(t,d.layoutExitMuteTriggers),gT(t,d.layoutExitUserInputSubmittedTriggers),gT(t,d.layoutExitUserCancelledTriggers));t.X=void 0;t.G!=null&&(t.G.release(),t.G=void 0);t.J!=null&&(t.J.release(),t.J=void 0);d=f.C;my(d,e)&&(d=SG(d,`${e.slotType}_${e.slotPhysicalPosition}`))&&d.delete(e.slotId);N6(f.nh,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",e);for(const k of f.G)k.XB(e),B&&!n&&k.AG(e,B)}}}}; TU=function(f,e){if(F4(f.C,e)){my(f.C,e).U=!1;var B=Ql;e=my(f.C,e);const n=[...e.K];r2(e.K);B(f,n)}}; lyg=function(f,e){F4(f.C,e)&&UF(my(f.C,e))&&hH(f.C,e)&&!Di(f.C,e)&&(JH(f.nh,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",e,hH(f.C,e)??void 0),f=my(f.C,e),f.C!=="entered"&&M6(f.slot,f.C,"enterLayoutForSlot"),f.C="rendering",f.J.startRendering(f.layout))}; x3=function(f,e,B,n){NL(B,e,void 0,void 0,B.v$);B.m_?GU(f.nh,n,B.m_,e):NL("adsClientErrorMessage is missing.",e);EF(f,e,!0)}; uKY=function(f,e,B){if(F4(f.C,e))if(my(f.C,e).V=B?"filled":"not_filled",B===null){JH(f.nh,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",e);for(var n of f.G)n.U3(e);EF(f,e,!1)}else{JH(f.nh,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",e,B);JH(f.nh,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",e,B);if(n=B.LV??B.clientMetadata.RA("metadata_type_sub_layouts"))for(const d of n)JH(f.nh,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",e,d);for(const d of f.G)d.Yf(e);if(F4(f.C,e))if(my(f.C,e).W)EF(f,e,!1);else{JH(f.nh, "ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",e,B);try{var r=f.C;if(!my(r,e))throw new WK("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!r.vt.a_.get(e.slotType))throw new WK("No LayoutRenderingAdapterFactory registered for slot of type: "+e.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");if(B.layoutExitNormalTriggers.length==0&&B.layoutExitSkipTriggers.length==0&&B.layoutExitMuteTriggers.length==0&&B.layoutExitUserInputSubmittedTriggers.length== 0&&B.layoutExitUserCancelledTriggers.length==0)throw new WK("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");sF(r,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",B.layoutExitNormalTriggers);sF(r,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",B.layoutExitSkipTriggers);sF(r,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",B.layoutExitMuteTriggers);sF(r,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",B.layoutExitUserInputSubmittedTriggers);sF(r,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED", B.layoutExitUserCancelledTriggers)}catch(d){d instanceof WK?f.fz(e,B,d,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):f.fz(e,B,new WK(`Unexpected error: ${d}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");EF(f,e,!0);return}my(f.C,e).U=!0;try{var L=f.C;const d=my(L,e),t=L.vt.a_.get(e.slotType).get().build(L.V,L.G,e,B);t.init();d.layout=B;if(d.J)throw new WK("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER"); d.J=t;X4(L,d,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",B.layoutExitNormalTriggers);X4(L,d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",B.layoutExitSkipTriggers);X4(L,d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",B.layoutExitMuteTriggers);X4(L,d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",B.layoutExitUserInputSubmittedTriggers);X4(L,d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",B.layoutExitUserCancelledTriggers)}catch(d){TU(f,e);d instanceof WK?f.fz(e,B,d,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"): f.fz(e,B,new WK(`Unexpected error: ${d}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");EF(f,e,!0);return}JH(f.nh,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",e,B);for(const d of f.G)d.bE(e,B);TU(f,e);lyg(f,e)}else f=f.iY.get(),g.yl(f.Z.S())||PK(f.Z.S())||g.IM(f.Z.S())?f=!0:(NL("Composite VOD on legacy path."),f=!1),f&&NL("slot is unscheduled after been fulfilled.",e,B)}}; Fn5=function(f,e,B){e.hL!=="core"&&JH(f.nh,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",e,B)}; mdk=function(f,e,B){JH(f.nh,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",e,B);for(const n of f.G)n.bE(e,B)}; Udd=function(f,e,B){JH(f.nh,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",e,B);for(const n of f.G)n.TD(e,B)}; V85=function(f,e,B){if(F4(f.C,e)&&UF(my(f.C,e))){var n=hH(f.C,e);if(n&&Di(f.C,e))N5d(f,e,n,B?"error":"abandoned");else{N6(f.nh,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",e);try{const r=my(f.C,e);if(!r)throw new M("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");r.C!=="enter_requested"&&r.C!=="entered"&&r.C!=="rendering"&&M6(r.slot,r.C,"exitSlot");r.C="exit_requested";if(r.G===void 0)throw r.C="scheduled",new M("Cannot exit slot because adapter is not defined", void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");r.G.Dh()}catch(r){r instanceof M&&r.m_?(GU(f.nh,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",r.m_,e),NL(r,e,void 0,void 0,r.v$)):(GU(f.nh,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",e),NL(r,e))}}}}; hlY=function(f,e,B,n){JH(f.nh,YaC(n),e,B);for(const r of f.G)r.DW(e,B,n)}; Ql=function(f,e){e.sort((r,L)=>{if(r.category===L.category)return r.trigger.triggerId.localeCompare(L.trigger.triggerId);const d=t=>{NL("TriggerCategoryOrder enum does not contain trigger category: "+t)}; return pp5(r.category,d)-pp5(L.category,d)}); var B=new Map;for(var n of e){if(!F4(f.C,n.slot))continue;if(my(f.C,n.slot).U){my(f.C,n.slot).K.push(n);continue}gXC(f.nh,n.slot,n,n.layout);(e=B.get(n.category))||(e=[]);e.push(n);B.set(n.category,e)}for(const [r,L]of SaM)n=L,(e=B.get(r))&&EXm(f,e,n);(n=B.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&QqM(f,n);(n=B.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&T5G(f,n);(B=B.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&Dd5(f,B)}; EXm=function(f,e,B){for(const n of e)n.layout&&Di(f.C,n.slot)&&N5d(f,n.slot,n.layout,B)}; QqM=function(f,e){for(const B of e)EF(f,B.slot,!1)}; T5G=function(f,e){for(const B of e){a:switch(my(f.C,B.slot).V){case "not_filled":e=!0;break a;default:e=!1}e&&(N6(f.nh,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",B.slot),f.C.oG(B.slot))}}; Dd5=function(f,e){for(const r of e){N6(f.nh,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",r.slot);for(const L of f.G)L.Ht(r.slot);try{var B=f.C,n=r.slot;const L=my(B,n);if(!L)throw new M("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!L.G)throw new M("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(L.C!=="scheduled")throw new M("Tried to enter a slot from stage: "+L.C,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE"); if(UF(L))throw new M("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(const d of SG(B,`${n.slotType}_${n.slotPhysicalPosition}`).values())if(L!==d&&UF(d)&&(L.slot.fulfilledLayout?.layoutType!=="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"||d.layout?.layoutType!=="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"))throw new M("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:d.C},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}catch(L){L instanceof M&&L.m_?(GU(f.nh,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",L.m_,r.slot),NL(L,r.slot,hH(f.C,r.slot),void 0,L.v$)):(GU(f.nh,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",r.slot),NL(L,r.slot));EF(f,r.slot,!0);continue}e=my(f.C,r.slot);e.C!=="scheduled"&&M6(e.slot,e.C,"enterSlot");e.C="enter_requested";e.G.MF()}}; N5d=function(f,e,B,n){F4(f.C,e)&&(JH(f.nh,cMl.get(n)?.CQ||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED",e,B),f=my(f.C,e),f.C!=="rendering"&&M6(f.slot,f.C,"exitLayout"),f.C="rendering_stop_requested",f.J.Ps(B,n))}; UF=function(f){return f.C==="enter_requested"||f.isActive()}; F4=function(f,e){return my(f,e)!=null}; hH=function(f,e){(f=my(f,e))?f.layout!=null&&!f.layout&&NL("Unexpected empty layout",e):NL("Unexpected undefined slotState",e);return f?.layout||null}; JMg=function(f){const e=[];f.C.forEach(B=>{for(const n of B.values())e.push(n.slot)}); return e}; Di=function(f,e){f=my(f,e);if(e=f.layout!=null)a:switch(f.C){case "rendering":case "rendering_stop_requested":e=!0;break a;default:e=!1}return e}; SG=function(f,e){return(f=f.C.get(e))?f:new Map}; my=function(f,e){return SG(f,`${e.slotType}_${e.slotPhysicalPosition}`).get(e.slotId)}; $3=function(f,e,B){if(B.length==0)throw new M(`No ${M8k.get(e)} triggers found for slot.`,void 0,GBO(e));for(const n of B)if(!f.vt.LF.get(n.triggerType))throw new M("No trigger adapter registered for "+e+" trigger of type: "+n.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; M6=function(f,e,B){NL(`Slot stage was ${e} when calling method ${B}`,f)}; gT=function(f,e){for(const B of e)if(e=f.A.get(B.triggerId))e.Rk(B),f.A.delete(B.triggerId)}; sF=function(f,e,B){for(const n of B)if(!f.vt.LF.get(n.triggerType))throw new WK(`No trigger adapter registered for ${M8k.get(e)} trigger of type: ${n.triggerType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; X4=function(f,e,B,n){for(const r of n)n=f.vt.LF.get(r.triggerType),n.PJ(B,r,e.slot,e.layout?e.layout:null),e.A.set(r.triggerId,n)}; GBO=function(f){switch(f){case "TRIGGER_CATEGORY_SLOT_ENTRY":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_ENTRY_TRIGGER";case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_EXPIRATION_TRIGGER";case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_FULFILLMENT_TRIGGER";default:return"ADS_CLIENT_ERROR_MESSAGE_INVALID_TRIGGER"}}; xdm=function(f){return iL(f.mF).concat(iL(f.LF)).concat(iL(f.Wz)).concat(iL(f.B3)).concat(iL(f.a_))}; iL=function(f){const e=[];for(const B of f.values())B.TZ&&e.push(B);return e}; W=function(f){return new Wnk(f)}; yM5=function(f){const e=new sqC((B,n,r,L)=>new Xpm(f.C.vt,B,n,r,L,f.C.iY),new Set(xdm(f.C.vt).concat(f.C.listeners)),f.C.nh,f.C.iY); g.A(f,e);return e}; fa=function(f,e,B){Knw(f.C(),e,B)}; e1=function(f,e,B,n){(f=f.C())||NL("Could not initiate a command router instance.");q6(f,e,B,n)}; PrY=function(f,e){const B=e.bgp&&e.bgub,n=!!e.upb;e.siub&&e.scs&&(B||n)&&(n&&BP(f.iY.get(),"html5_export_sodar_snapshot")&&Fm(async r=>(await bi(LJ())).snapshot(r)),K$G(e.siub,e.scs,e.bgub,e.bgp,e.upb))}; i$5=function(f,e,B,n){f.C&&NL("Currently active request ongoing for slot. This should never happen",f.slot);f.C=e();f.C.then(r=>{f.C=null;n&&n(r);const L=r.BP?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE";var d=f.G.get(),t=f.slot.slotId,H=oM(f.I6.get(),{slotId:f.slot.slotId,slotType:f.slot.slotType,slotPhysicalPosition:f.slot.slotPhysicalPosition,hL:f.slot.hL,slotEntryTrigger:f.slot.slotEntryTrigger,slotFulfillmentTriggers:f.slot.slotFulfillmentTriggers,slotExpirationTriggers:f.slot.slotExpirationTriggers}); const k=na(d.G.get(),L,t),C={layoutId:k,layoutType:L,hL:"core"};r={layoutId:k,layoutType:L,bC:new Map,layoutExitNormalTriggers:[new Iyk(d.C,t)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:"core",clientMetadata:new Vl([new $dg(r)]),BL:H(C)};uKY(f.callback,f.slot,r)},r=>{f.C=null; B&&B();r instanceof W7||x3(f.callback,f.slot,new M(r,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})}; fWM=function(f){if(f.C==null)f.callback.aI(f.slot);else try{f.C.cancel(),f.C=null,f.callback.aI(f.slot)}catch(e){f.C=null,x3(f.callback,f.slot,new M(e,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}}; rE=function(f,e,B=!1,n=""){!f&&B&&g.Yv(Error(`Player URL validator detects invalid url. ${n}: ${e}`));return f}; La=function(f,e){return e&&e.test(f)?!0:!1}; BFw=function(f){return(f=eed&&eed.exec(f))?f[0]:""}; Dx=function(f){return rE(La(f,npg),f,!1,"Trusted Stream URL")}; g.dE=function(f){return rE(La(f,rwd),f,!1,"Trusted Image URL")}; dEg=function(f){return rE(La(f,Lcw),f,!1,"Trusted Promoted Video Domain URL")}; Hvl=function(f){return rE(La(f,tul),f,!1,"Drm Licensor URL")}; CmH=function(f,e=!1){return rE(La(f,kIw),f,e,"Captions URL")}; Td=function(f){f=new g.S2(f);g.Qd(f,document.location.protocol);g.Ej(f,document.location.hostname);document.location.port&&g.TI(f,document.location.port);return f.toString()}; t0=function(f){f=new g.S2(f);g.Qd(f,document.location.protocol);return f.toString()}; wQ6=function(f){return f===-0x8000000000000?"BEFORE_MEDIA_START":f===0?"MEDIA_START":f===0x7ffffffffffff?"MEDIA_END":f===0x8000000000000?"AFTER_MEDIA_END":f.toString()}; g.HP=function(f,e){return f.start-e.start||f.priority-e.priority||f.G-e.G}; g.kk=function(f){return`crn_${f}`}; g.Ca=function(f){return`crx_${f}`}; vpG=function(f,e){switch(f.style){case wE.CHAPTER_MARKER:return e?8:5;case wE.AD_MARKER:return 6;case wE.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; bvG=function(f){f.gX?.get().eJ(f.slot.clientMetadata.RA("metadata_type_cue_point").identifier)}; vP=function(f,e){return Y3(f,e.Gt,e.slotType)?!0:!1}; Rem=function(f){if(f.slot.clientMetadata.RA("metadata_type_allow_pause_ad_break_request_slot_reschedule")){const e=Zvm(f,f.slot);by(f.C.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",()=>[e])}}; Kcm=function(f){if(f.slot.clientMetadata.RA("metadata_type_prefetch_metadata")){const e=Zvm(f,f.slot);by(f.C.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",()=>[e])}}; Zvm=function(f,e){const B=Zf(f.G.get(),f.slot.slotType);f={...f.slot};if(e.slotEntryTrigger){var n=e.slotId;var r=e.slotEntryTrigger;n=r.triggeringSlotId!=null&&r.triggeringSlotId===n?r.clone(B):r}else n=void 0;return{...f,slotId:B,slotEntryTrigger:n,slotFulfillmentTriggers:qAw(e.slotId,B,e.slotFulfillmentTriggers),slotExpirationTriggers:qAw(e.slotId,B,e.slotExpirationTriggers)}}; qAw=function(f,e,B){const n=[];for(const r of B)n.push(r.triggeringSlotId!=null&&r.triggeringSlotId===f?r.clone(e):r);return n}; g.RT=function(f,e){for(const B of Object.keys(e)){const n=e[B];f=f.replace(new RegExp("\\$"+B,"gi"),()=>n)}return f}; Ka=function(f,e,B){e.layoutId!==f.layout.layoutId?f.C.fz(f.slot,e,new WK("Unknown layout received. "+`Required LayoutId: ${f.layout.layoutId}`+`and LayoutType: ${f.layout.layoutType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):B()}; zo=function(f,e,B,n,r,L,d,t){n=n||B.clientMetadata.RA(L);f=qr(f);const H=pC(()=>{r.TD(e,B)}); t.push(d(n,f,B.layoutId,{adsClientData:B.BL},()=>{H()}))}; pa=function(f,e,B,n,r,L,d,t,H){if(e===f)if(H){if(H===t.layoutId){a:{for(const k of B.keys())if(k.slotType==="SLOT_TYPE_PLAYER_BYTES"&&L===B.get(k).layoutId){f=!0;break a}f=!1}f?aT(n,1):r?r():NL("Tried to call engagePingCallback but it is null",d,t)}}else NL("Companion AdUxClick received without a layoutId",d,t)}; cP=function(f){return!!f.get("active_view_viewable")?.length||!!f.get("active_view_measurable")?.length||!!f.get("active_view_fully_viewable_audible_half_duration")?.length||!!f.get("audio_audible")?.length||!!f.get("audio_measurable")?.length}; Yk=function(f){return f?.activeViewTracking?.trafficType??"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; A0=function(f){return new Map([["impression",f.impressionPings||[]],["error",f.errorPings||[]],["mute",f.mutePings||[]],["unmute",f.unmutePings||[]],["pause",f.pausePings||[]],["rewind",f.rewindPings||[]],["resume",f.resumePings||[]],["skip",f.skipPings||[]],["swipe",f.swipePings||[]],["close",f.closePings||[]],["progress",f.progressPings||[]],["clickthrough",f.clickthroughPings||[]],["fullscreen",f.fullscreenPings||[]],["active_view_viewable",f.activeViewViewablePings||[]],["active_view_measurable", f.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",f.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",f.activeViewTracking?.activeViewAudioAudiblePings||[]],["audio_measurable",f.activeViewTracking?.activeViewAudioMeasurablePings||[]],["end_fullscreen",f.endFullscreenPings||[]],["channel_clickthrough",f.channelClickthroughPings||[]],["abandon",f.abandonPings||[]],["start",f.startPings||[]],["first_quartile",f.firstQuartilePings||[]],["midpoint", f.secondQuartilePings||[]],["third_quartile",f.thirdQuartilePings||[]],["complete",f.completePings||[]],["unmuted_impression",f.unmutedImpressionPings||[]],["unmuted_error",f.unmutedErrorPings||[]],["unmuted_mute",f.unmutedMutePings||[]],["unmuted_unmute",f.unmutedUnmutePings||[]],["unmuted_pause",f.unmutedPausePings||[]],["unmuted_resume",f.unmutedResumePings||[]],["unmuted_close",f.unmutedClosePings||[]],["unmuted_progress",f.unmutedProgressPings||[]],["unmuted_clickthrough",f.unmutedClickthroughPings|| []],["unmuted_fullscreen",f.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",f.unmutedEndFullscreenPings||[]],["unmuted_abandon",f.unmutedAbandonPings||[]],["unmuted_start",f.unmutedStartPings||[]],["unmuted_first_quartile",f.unmutedFirstQuartilePings||[]],["unmuted_midpoint",f.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",f.unmutedThirdQuartilePings||[]],["unmuted_complete",f.unmutedCompletePings||[]],["unmuted_skip",f.unmutedSkipPings||[]]])}; ze0=function(f){switch(f){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen"; case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "swipe":return null;case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile"; case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null; default:return null}}; j1=function(){return["metadata_type_ad_placement_config"]}; qr=function(f){var e=f.Ud.get();return OI(e,f.X)}; oT=function(f,e,B){aW6(f.Ud.get(),f.layoutId,e,B,f.U??void 0,f.W)}; V0=function(f,e,B=!1){f.C.has(e)?oT(f,e,[]):f.kp(e,B)}; ly=function(f,e,B=!1){for(;f.Ve.hasOwnProperty("offsetMilliseconds"))}; pQG=function(f,e,B){f.U=e;f.W=B}; cw5=function(){const f=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];j1().forEach(e=>{f.push(e)}); return{Gt:f,Nj:["LAYOUT_TYPE_PANEL"]}}; YAl=function(){const f=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];j1().forEach(e=>{f.push(e)}); return{Gt:f,Nj:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; AwC=function(){const f=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];j1().forEach(e=>{f.push(e)}); return{Gt:f,Nj:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; jcY=function(){const f=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];j1().forEach(e=>{f.push(e)}); return{Gt:f,Nj:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; OvG=function(){const f=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];j1().forEach(e=>{f.push(e)}); return{Gt:f,Nj:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; mE=function(f,e,B=!1){var n=f.W();if(n){for(;f.V{f.push(e)}); return{Gt:f,Nj:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; VuO=function(){const f=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];j1().forEach(e=>{f.push(e)}); return{Gt:f,Nj:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; var lWw=function(f,e,B,n,r,L){return w5[Z[2]](this,32,f,e,B,n,r,L)}; uFg=function(){const f=["metadata_type_ad_action_interstitial_renderer"];j1().forEach(e=>{f.push(e)}); return{Gt:f,Nj:["LAYOUT_TYPE_ENDCAP"]}}; UI=function(f,e){return pJ(f,e.Gt,e.Nj)?!0:!1}; FcO=function(){const f=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];j1().forEach(e=>{f.push(e)}); return{Gt:f,Nj:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; mEk=function(){const f=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];j1().forEach(e=>{f.push(e)}); return{Gt:f,Nj:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; UEk=function(){const f=["metadata_type_client_forecasting_ad_renderer"];j1().forEach(e=>{f.push(e)}); return{Gt:f,Nj:["LAYOUT_TYPE_FORECASTING"]}}; NFC=function(f,e){return aM(f.clientMetadata,"metadata_type_ad_info_ad_metadata")?f.clientMetadata.RA("metadata_type_ad_info_ad_metadata"):e?{channelId:e.UL,channelThumbnailUrl:e.profilePicture,channelTitle:e.author,videoTitle:e.title}:(NL("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})}; hed=function(f,e){return aM(f.clientMetadata,"metadata_ad_video_is_listed")?f.clientMetadata.RA("metadata_ad_video_is_listed"):e?e.isListed:(NL("No layout metadata nor AdPlayback specified for ad video isListed"),!1)}; gpk=function(f){return f.layout.renderingContent?f.layout.clientMetadata.RA("metadata_type_player_bytes_callback_ref")?.current:f.layout.clientMetadata.RA("metadata_type_player_bytes_callback")}; SAl=function(){return{Gt:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Nj:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}}; Nr=function(f){return f.layout.renderingContent?f.layout.clientMetadata.RA("metadata_type_player_bytes_callback_ref")?.current:f.layout.clientMetadata.RA("metadata_type_player_bytes_callback")}; EpM=function(){return{Gt:["metadata_type_valid_ad_message_renderer"],Nj:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}}; Q0=function(f,e,B,n,r,L,d,t,H){return UI(B,SAl())||B.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.u(B.renderingContent,h0)!==void 0?new QcO(f,e,B,n,r,L,d,t,H):UI(B,{Gt:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Nj:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||B.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.u(B.renderingContent,gE)!==void 0? new TF6(f,e,B,n,r,L,d,t,H):UI(B,uFg())||B.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.u(B.renderingContent,S1)!==void 0?new DE0(f,e,B,n,L):UI(B,EpM())?new JwH(e,B,f,n,r,H):UI(B,{Gt:["metadata_type_instream_ad_player_overlay_renderer"],Nj:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new Mud(f,e,B,n,r,t):B.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.u(B.renderingContent,EI)!==void 0?new GId(f,e,B,n,L):null}; To=function(f){return!f.oldState.isPlaying()&&f.state.isPlaying()}; Df=function(f,e,B){return f{f.removeEventListener("playing",B);e(...n)}; f.addEventListener("playing",B)}; XN=function(){let f=g.zO("yt.player.utils.videoElement_");f||(f=g.BN("VIDEO"),g.qH("yt.player.utils.videoElement_",f));return f}; y0=function(f){const e=XN();return!!(e&&e.canPlayType&&e.canPlayType(f))}; IT=function(f){if(/opus/.test(f)&&g.PP&&!cZ("38")&&!g.Cs())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(f);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(f);if(/webm/.test(f)&&!c55())return!1;f==='audio/mp4; codecs="mp4a.40.2"'&&(f='video/mp4; codecs="avc1.4d401f"');return!!y0(f)}; scG=function(f){try{const e=IT('video/mp4; codecs="avc1.42001E"')||IT('video/webm; codecs="vp9"');return(IT('audio/mp4; codecs="mp4a.40.2"')||IT('audio/webm; codecs="opus"'))&&(e||!f)||y0('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch{return"html5.missingapi"}}; $k=function(){const f=XN();return!(!f.webkitSupportsPresentationMode||typeof f.webkitSetPresentationMode!=="function")}; iy=function(){const f=XN();try{const e=f.muted;f.muted=!e;return f.muted!==e}catch{}return!1}; PmC=function(f,e){ff(f,2,e.a8,eb,3);ff(f,3,e.innertubeRequest,XQ0,3);By(f,4,e.onesieUstreamerConfig);By(f,9,e.u8);ff(f,10,e.A9,nf,3);ff(f,15,e.reloadPlaybackParams,yw5,3);r$(f,18,e.al)}; $Ew=function(f,e){ff(f,1,e.formatId,Lf,3);d$(f,2,e.startTimeMs);d$(f,3,e.durationMs);d$(f,4,e.Ie);d$(f,5,e.qq);ff(f,9,e.D0i,IWl,3);ff(f,11,e.fcq,tk,1);ff(f,12,e.SP,tk,1)}; ivl=function(f,e){r$(f,1,e.videoId);d$(f,2,e.lmt)}; IWl=function(f,e){if(e.Ft)for(let B=0;B>31));d$(f,16,e.Pv);d$(f,17,e.detailedNetworkType);d$(f,18,e.pn);d$(f,19,e.Ln);d$(f,21,e.Ak);d$(f,23,e.m9);d$(f,28,e.CZ);d$(f,29,e.iP);d$(f,34,e.visibility);B=e.playbackRate;if(B!==void 0){var n=new ArrayBuffer(4);(new Float32Array(n))[0]=B;B=(new Uint32Array(n))[0];if(B!==void 0)for(bG(f,285),Z0(f,4),n=0;n<4;)f.view.setUint8(f.pos,B&255),B>>=8,f.pos+=1,n+=1}d$(f,36,e.fT); ff(f,38,e.mediaCapabilities,niw,3);d$(f,39,e.pu);d$(f,40,e.ID);d$(f,44,e.playerState);vy(f,46,e.Hg);d$(f,48,e.e2);d$(f,50,e.L1);d$(f,51,e.QX);d$(f,54,e.uM);if(e.St)for(B=0;B>31));r$(f,2,e.message)}; vi6=function(f,e){d$(f,1,e.clientState);ff(f,2,e.izY,Cll,1)}; k6k=function(f,e){By(f,1,e.zd);ff(f,2,e.xN,wWG,3);ff(f,3,e.coldStartInfo,vi6,3)}; HXg=function(f,e){d$(f,1,e.type);By(f,2,e.value)}; CTk=function(f,e,B,n,r,L,d,t,H,k){if(!((f^14)&4)){for(var C=64,w=[];++C-w[Z[13]]-32;){switch(C){case 91:C=44;continue;case 123:C=65;break;case 65:C-=18;continue;case 58:C=96;continue;case 46:C=95}w[Z[3]](String[Z[19]](C))}var v=w}(f&61)==f&&(v=n(r,L,d,t,H,k));return v}; tVM=function(f,e){r$(f,1,e.hl);r$(f,12,e.deviceMake);r$(f,13,e.deviceModel);d$(f,16,e.clientName);r$(f,17,e.clientVersion);r$(f,18,e.osName);r$(f,19,e.osVersion)}; bXw=function(f,e){r$(f,1,e.name);r$(f,2,e.value)}; R7=function(f,e){r$(f,1,e.url);if(e.ag)for(let B=0;B=Math.floor(L*16/9)*1.3||f>=L*1.3)return e;e=r}return"tiny"}; uG=function(f){return f.indexOf("/mp4")>=0?1:f.indexOf("/webm")>=0?2:f.indexOf("/x-flv")>=0?3:f.indexOf("/vtt")>=0?4:0}; FH=function(f){return f.includes("vtt")||f.includes("text/mp4")}; m4=function(f){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(f)}; U7=function(f){return/(vp9|vp09|vp8|avc1|av01|av02)/.test(f)}; Sb=function(f,e,B,n,r,L,d){const t=new N2;e in g.V7||(e="small");e==="light"&&(e="tiny");n&&r?(r=Number(r),n=Number(n)):(r=g.V7[e],n=Math.round(r*16/9));L=new hk(n,r,0,null,void 0,e,L,d);f=unescape(f.replace(/"/g,'"'));return new g$(B,f,{audio:t,video:L})}; rhM=function(f){return f.NC==="H"||f.NC==="h"}; E7=function(f){return f.NC==="9h"||f.NC==="(h"}; Lhw=function(f){return!!f.contentProtection&&!!f.contentProtection.fairplay&&(f.NC==="("||f.NC==="(h"||f.NC==="A"||f.NC==="MEAC3")||Q7&&!!f.contentProtection&&f.NC==="1e"}; d9w=function(f){return f.NC==="MAC3"||f.NC==="MEAC3"||f.NC==="M"||f.NC==="I"}; g.TF=function(f){return f.containerType===1}; thM=function(f){return f.NC==="("||f.NC==="(h"||f.NC==="H"||Q7&&f.NC==="1e"}; HPO=function(f,e=1){const B={};f.video&&(f.video.width&&(B[D0.WIDTH.name]=f.video.width),f.video.height&&(B[D0.HEIGHT.name]=f.video.height),f.video.fps&&(B[D0.FRAMERATE.name]=f.video.fps*e),f.video.C&&(B[D0.EOTF.name]=f.video.C),f.EA&&(B[D0.BITRATE.name]=f.EA*8*e),f.NC==="("&&(B[D0.CRYPTOBLOCKFORMAT.name]="subsample"),f.video.projectionType==="EQUIRECTANGULAR"||f.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||f.video.projectionType==="MESH")&&(B[D0.DECODETOTEXTURE.name]="true");f.audio?.numChannels&& f.NC!=="i"&&f.NC!=="I"&&(B[D0.CHANNELS.name]=f.audio.numChannels);return B}; g.Jk=function(f,e){return{itag:+f.itag,lmt:e?0:f.lastModified,xtags:f.G||""}}; kK0=function(f){const e=navigator.mediaCapabilities;if(!e?.decodingInfo||f.NC==="f")return Promise.resolve();const B={type:f.audio&&f.video?"file":"media-source"};f.video&&(B.video={contentType:f.mimeType,width:f.video.width||640,height:f.video.height||360,bitrate:f.EA*8||1E6,framerate:f.video.fps||30});f.audio&&(B.audio={contentType:f.mimeType,channels:`${f.audio.numChannels||2}`,bitrate:f.EA*8||128E3,samplerate:f.audio.sampleRate||44100});return e.decodingInfo(B).then(n=>{f.W=n})}; M2=function(f,e){return{start(B){return f[B]},end(B){return e[B]},length:f.length}}; CpM=function(f,e,B){const n=[],r=[];for(let L=0;LL-d); r.sort((L,d)=>L-d); return M2(n,r)}; GF=function(f,e=",",B=f?f.length:0){const n=[];if(f)for(B=Math.max(f.length-B,0);B=e)return B}catch(B){}return-1}; Wy=function(f,e){return x5(f,e)>=0}; wZd=function(f,e){if(!f)return NaN;e=x5(f,e);return e>=0?f.start(e):NaN}; s7=function(f,e){if(!f)return NaN;e=x5(f,e);return e>=0?f.end(e):NaN}; XH=function(f){return f&&f.length?f.end(f.length-1):NaN}; y7=function(f){return XH(f)>0}; Py=function(f,e){f=s7(f,e);return f>=0?f-e:0}; I7=function(f,e,B){const n=[],r=[];for(let L=0;LB||(n.push(Math.max(e,f.start(L))-e),r.push(Math.min(B,f.end(L))-e));return M2(n,r)}; $5=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; v40=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; iG=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; fh=function(f){try{return f.J()==="open"}catch(e){return!1}}; bP5=function(f,e){fh(f)?g.Sk(()=>{e(f)}):f.callback=e}; ZPG=function(f,e,B){eS&&(Bu(f.mediaElement,{l:"mswssb",sr:f.mediaElement.Kq?.Wt()},!1),e.V_(f.N,f),B.V_(f.N,f));f.C=e;f.G=B;g.A(f,e);g.A(f,B)}; Khg=function(f,e,B,n=""){n=e.mimeType+n;const r=B.mimeType;e=e.NC;B=B.NC;f.uY=f.D9?.addSourceBuffer(r);f.Z9=n.split(";")[0]==="fakesb"?void 0:f.D9?.addSourceBuffer(n);f.eX&&(f.eX.webkitSourceAddId("0",r),f.eX.webkitSourceAddId("1",n));B=new R$d(f.uY,f.eX,"0",uG(r),B,!1);n=new R$d(f.Z9,f.eX,"1",uG(n),e,!0);ZPG(f,B,n)}; z$5=function(f,e,B,n){if(!f.C||!f.G)return null;const r=f.C.isView()?f.C.o6:f.C,L=f.G.isView()?f.G.o6:f.G,d=new nh(f.mediaElement,f.D9,!0);d.V=f.V;ZPG(d,new qeH(r,e,B,n),new qeH(L,e,B,n));fh(f)||f.C.vB(f.C.gA());return d}; Bu=function(f,e,B=!1){f.Kq?.wA()&&f.Kq.ri("rms",e,B)}; rs=function(f){f=f.K();return f.length<1?NaN:f.end(f.length-1)}; aL5=function(f,e){f.vL&&f.vL.equals(e)||(f.vL&&f.vL.dispose(),f.vL=e)}; pZk=function(f){!f.G&&v40()&&(f.V?f.V.then(()=>pZk(f)):f.O3()||(f.G=f.Sw()))}; chY=function(f){f.G&&(f.G.dispose(),f.G=void 0)}; YeY=function(f,e,B){f.isPaused()||f.getCurrentTime()>e||B>10||(f.play(),g.VY(()=>{YeY(f,f.getCurrentTime(),B+1)},500))}; Lh=function(f){return Py(f.tR(),f.getCurrentTime())}; AhG=function(f,e){if(f.J()===0||f.hasError())return!1;const B=f.getCurrentTime()>0;return e>=0&&(f=f.K(),f.length||!B)?Wy(f,e):B}; ds=function(f){f.O3()&&(f.Kq&&f.Kq.FF("rs_s"),ye&&f.getCurrentTime()>0&&f.seekTo(0),f.Fl(),f.load(),aL5(f,null));delete f.V}; ti=function(f){switch(f.ND()){case 2:return"progressive.net.retryexhausted";case 3:return f=f.jU(),f?.includes("MEDIA_ERR_CAPABILITY_CHANGED")||jOY&&f?.includes("audio_output_change")?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; Hu=function(f){return f.isPlaying()&&!f.C(16)&&!f.C(32)}; Ch=function(f,e,B,n){if(!(e===f.state&&B===f.iE&&n===f.seekSource||e!==void 0&&(e&128&&!B||e&2&&e&16))){var r;if(r=e)r=e||f.state,r=!!(r&16||r&32);f=new g.ks(e,B,r?n?n:f.seekSource:null)}return f}; ws=function(f,e,B=!1){return OPg(f,e.getCurrentTime(),(0,g.T)(),Lh(e),B)}; vu=function(f,e,B=null){return Ch(f,f.state|e,null,B)}; bx=function(f,e){return Ch(f,f.state&~e,null,null)}; Zc=function(f,e,B,n=null){return Ch(f,(f.state|e)&~B,null,n)}; g.Rw=function(f,e){return e.state===f.state&&e.iE===f.iE}; Kh=function(f){return f.C(128)?-1:f.C(2)?0:f.C(2048)?3:f.C(64)?-1:f.C(1)&&!f.C(32)?3:f.C(8)?1:f.C(4)?2:-1}; qj=function(f){return f.layout.clientMetadata.RA("METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; zS=function(f,e){V0(f.aA,e,!f.C)}; o45=function(f){NL("Received layout exit signal when not in layout exit flow.",f.slot,f.layout)}; VhC=function(f){if(f.IX==="rendering"){zS(f,"pause");var e=qj(f)?.pauseCommands||[];fa(f.y3.get(),e,f.layout.layoutId);f.QE(2)}}; lLm=function(f){if(f.IX==="rendering"){zS(f,"resume");var e=qj(f)?.resumeCommands||[];fa(f.y3.get(),e,f.layout.layoutId)}}; uo5=function(f,e,B=!1){f.C||ly(f.aA,e,B)}; m90=function(f){return(qj(f)?.progressCommands||[]).findIndex(e=>!!g.u(e?.command,FhH))!==-1}; U95=function(f,e){switch(e){case "normal":f.kp("complete");break;case "skipped":f.kp("skip");break;case "abandoned":uy(f.aA,"impression")&&f.kp("abandon")}}; NbO=function(f,e){f.J||(e=new g.aw(e.state,new g.ks),f.J=!0);return e}; h$5=function(f,e){To(e)?f.QE(1):e.IC(4)&&!e.IC(2)&&VhC(f);hX(e,4)<0&&!(hX(e,2)<0)&&lLm(f)}; g4G=function(f){f.position===0&&(f.yz.get(),f=f.layout.clientMetadata.RA("metadata_type_ad_placement_config").kind,f={adBreakType:ph(f)},NJ("ad_bl"),g.hQ(f))}; g.cu=function(f,e,B){SH(f,B)||QF(f,e,B);SH(f,"video_to_ad")||QF(f,e,"video_to_ad");SH(f,"ad_to_video")||QF(f,e,"ad_to_video");SH(f,"ad_to_ad")||QF(f,e,"ad_to_ad")}; Sel=function(f){f.Bx=Date.now();Ys(f,f.TJ);f.timer.start()}; Ys=function(f,e){e={current:e/1E3,duration:f.KC()/1E3};zU(f.tF.get(),"onAdPlaybackProgress",e)}; QO0=function(f){return new E4O({...f,KY:f.callback,QE:()=>{}})}; D9k=function(f){return new TbH({...f,QE:e=>{zU(f.tF.get(),"onAdIntroStateChange",e)}})}; Jh6=function(f){return new TbH({...f,QE:e=>{f.tF.get().b7(e)}})}; Mhd=function(f){var e=f.Fq,B=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"];for(const n of j1())B.push(n);if(UI(e,{Gt:B,Nj:["LAYOUT_TYPE_MEDIA_BREAK"]}))return QO0(f);e=f.Fq;B=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];for(const n of j1())B.push(n);if(UI(e,{Gt:B,Nj:["LAYOUT_TYPE_MEDIA"]}))return aM(f.Fq.clientMetadata,"metadata_type_ad_intro")?D9k(f):Jh6(f)}; OP=function(f,e,B){const n=Ai(f);f.YI===f.uo.length-1&&NL("Unexpected skip with target requested during the last sublayout");if(B.renderingContent===void 0&&B.layoutId!==jS(n,e,B)){NL("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",n.tE(),n.oX(),{requestingSlot:e,requestingLayout:B});var r=!1}else r=!0;if(r){a:{if((r=n.oX().clientMetadata.RA("metadata_type_ad_pod_skip_target"))&&r>0&&r{ow(f,f.YI+1)})}; GKw=function(f,e,B,n){x9G(f,e,B,"skipped",()=>{ow(f,n)})}; x9G=function(f,e,B,n,r){if(!f.oT){var L=Ai(f);L?(L.oX().layoutId!==B.layoutId&&NL("SubLayout mismatch in exitSubLayout",e,B,{exitingSubLayout:B.layoutId,activeSubLayout:L.oX().layoutId}),f.oT=!0,L.Ps(L.oX(),n),hlY(f.pQ,e,B,n),f.oT=!1,f.tK?(f.tK(),lx(f.yz.get())):r()):NL("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",e,B)}}; ow=function(f,e){if(f.YI===f.uo.length-1)f.YI++,ux(f.Gb,f.layout),lx(f.yz.get());else a:{if(f.YI===-1&&(f.callback.TD(f.slot,f.layout),e>0)){NL("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",f.slot,f.layout,{indexToPlay:e,layoutId:f.layout.layoutId});break a}f.YI=e;e=Ai(f);if(f.YI>0){var B=f.yz.get();B.G=!1;const n={};B.C&&B.videoId&&(n.cttAuthInfo={token:B.C,videoId:B.videoId});gH("ad_to_ad",n)}B=g.u(e.oX().renderingContent,S1);!B?.isEligibleToBeSkippedWhenNoEngagementOnLayoutId|| (f.e6.get().A2.get(B.isEligibleToBeSkippedWhenNoEngagementOnLayoutId)??!1)?e.startRendering(e.oX()):ow(f,f.YI+1)}}; Wh5=function(f){(f=Ai(f))&&f.FC()}; XZ0=function(f){return new sOM(f.P1,f.mY,f.gX,f.Ke,f.Q9,f.e6,f.yz,f.pQ,f.slot,f.layout,f.Q8,f.Gb,f.Le,f.iY)}; Ppl=function(f,e,B,n,r,L,d,t,H,k,C,w,v,b,K,Y,l,m,F,N,E,Lw){const d6={Ud:t,UA:H,wj:k,Ke:C,mY:w,Q9:v,e6:b,JF:K,yz:Y,tF:l,y3:m,dR:F,iY:N,context:Lw};t=UI(n,{Gt:["metadata_type_sub_layouts"],Nj:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||n.LV!==void 0&&n.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";H=UI(n,{Gt:[],Nj:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});k=()=>{const TO=n.LV??n.clientMetadata.RA("metadata_type_sub_layouts"),AY=XZ0({P1:f,mY:w,gX:E,Ke:C,Q9:v,e6:b,yz:Y,pQ:e,slot:B,layout:n, Q8:L,Gb:d,Le:r,iY:N}),Dl=[];for(let W5=0;W5{JY.Ps(TO[W5],"normal")}, MU:W5,Xw:TO.length,lx:!1});if(!lP)return;Dl.push(lP)}AY.uo=Dl;return AY}; K=()=>{const TO=Mhd({...d6,callback:{TD:f.TD.bind(f),DW:f.DW.bind(f),fz:f.fz.bind(f)},slot:B,Fq:n,xL:()=>{ux(d,n)}, MU:0,Xw:1,lx:!0});return TO?new yhY(f,C,v,Y,TO,r,N):TO}; if(t)return k();if(H)return K()}; mI=function(f,e){Fq(f.Ud.get(),{driftRecoveryInfo:{contentCpn:f.mY.get().XY?.clientPlaybackNonce,adClientData:f.layout.BL.adClientDataEntry,...e}})}; $9G=function(f){var e=f.layout.clientMetadata.RA("metadata_type_layout_enter_ms");const B=f.layout.clientMetadata.RA("metadata_type_layout_exit_ms");f=f.Mj.get();e=ILH(f.J,e,B);return Math.min(B,e!==null?e:Infinity)}; fJC=function(f,e){const B=iP5(f,e);B||NL("Expected subLRA found by layout ID",f.slot,f.layout,{layoutId:e});f.C={dU:B};B?B.startRendering(B.oX()):e===f.G&&NL("Failed to find rendering adapter for survey media layout",f.slot,f.layout,{surveyMediaLayoutId:e})}; iP5=function(f,e){return e==null?null:f.J.find(B=>B.oX().layoutId===e)||null}; ecG=function(f,e,B,n,r,L,d,t,H,k){var C=r-n;const w=(f.fulfilledLayout||f.clientMetadata.RA("metadata_type_fulfilled_layout"))?.clientMetadata.RA("metadata_type_ssdai_ads_config")||"",v=f.clientMetadata.RA("metadata_type_triggering_cue_point")?.current?.identifier;v||UP(k,"ads_cpu",`slid.${e.layoutId}`);if(!C)return d.jn(B,w,2,L,n,r,f.slotId,v),UP(k,"ads_iraot",`slid.${e.layoutId};enterMs.${n};exitMs.${r};vid.${B.video_id}`),null;C=d.PV(B,w,2,L,n,r,f.slotId,v);UP(k,"ads_atct",`slid.${e.layoutId};enterMs.${n};exitMs.${r};vid.${B.video_id};pid.${C};cid.${v}`); if(!C)return NL("Unexpected failure to add to playback timeline",f,e,H()),null;f=f.slotId;e=e.layoutId;C?(t.C.has(C)&&NL("Unexpected remap of timeline playback"),t.C.set(C,{slotId:f,layoutId:e})):NL("Invalid timeline playback ID");n+L>r&&d.Pe(C,r-n);return C}; Bow=function(f,e,B){const n=e.clientMetadata.RA("metadata_type_sodar_extension_data");if(n)try{PrY(B,n)}catch(r){NL("Unexpected error when loading Sodar",f,e,{error:r})}}; nF5=function(f,e,B,n,r,L,d){Nj(f,e,new g.aw(B,new g.ks),n,r,d,!1,L)}; Nj=function(f,e,B,n,r,L,d=!0,t){To(B)&&Df(r,0,null)&&(!uy(f,"impression")&&t&&t(),f.kp("impression"));uy(f,"impression")&&(B.IC(4)&&!B.IC(2)&&f.MM("pause"),hX(B,4)<0&&!(hX(B,2)<0)&&f.MM("resume"),B.IC(16)&&r>=.5&&f.MM("seek"),d&&B.IC(2)&&hi(f,B.state,e,n,r,L))}; hi=function(f,e,B,n,r,L,d,t,H){uy(f,"impression")&&(L?(L=r-n,L=L>=-1&&L<=2):L=Math.abs(n-r)<=1,gs(f,e,L?n:r,B,n,d,t&&L),L&&!H&&f.kp("complete"))}; gs=function(f,e,B,n,r,L,d){ly(f,B*1E3,d);r<=0||B<=0||e?.C(16)||e?.C(32)||(Df(B,r*.25,n)&&(L&&!uy(f,"first_quartile")&&L("first"),f.kp("first_quartile")),Df(B,r*.5,n)&&(L&&!uy(f,"midpoint")&&L("second"),f.kp("midpoint")),Df(B,r*.75,n)&&(L&&!uy(f,"third_quartile")&&L("third"),f.kp("third_quartile")))}; rpw=function(f,e){uy(f,"impression")&&f.MM(e?"fullscreen":"end_fullscreen")}; Lqd=function(f){uy(f,"impression")&&f.MM("clickthrough")}; dI0=function(f){f.MM("active_view_measurable")}; tJ5=function(f){uy(f,"impression")&&!uy(f,"seek")&&f.MM("active_view_fully_viewable_audible_half_duration")}; H50=function(f){uy(f,"impression")&&!uy(f,"seek")&&f.MM("active_view_viewable")}; k2k=function(f){uy(f,"impression")&&!uy(f,"seek")&&f.MM("audio_audible")}; C15=function(f){uy(f,"impression")&&!uy(f,"seek")&&f.MM("audio_measurable")}; weC=function(f,e){UP(f.Ud.get(),"ads_imp",`cpn.${f.layout.clientMetadata.RA("metadata_type_content_cpn")};acpn.${J0(f.mY.get(),2)?.clientPlaybackNonce};clr.${e};skp.${!!g.u(f.layout.clientMetadata.RA("metadata_type_instream_ad_player_overlay_renderer")?.skipOrPreviewRenderer,SS)}`)}; vFM=function(f,e,B){UP(f.Ud.get(),"ads_qua",`cpn.${f.layout.clientMetadata.RA("metadata_type_content_cpn")};acpn.${J0(f.mY.get(),2)?.clientPlaybackNonce};qt.${e};clr.${B}`)}; EP=function(f){return{enterMs:f.clientMetadata.RA("metadata_type_layout_enter_ms"),exitMs:f.clientMetadata.RA("metadata_type_layout_exit_ms")}}; b5w=function(f,e){UP(f.Ud.get(),"ads_imp",`acpn.${J0(f.mY.get(),2)?.clientPlaybackNonce};clr.${e}`)}; Z5d=function(f,e,B){UP(f.Ud.get(),"ads_qua",`cpn.${f.layout.clientMetadata.RA("metadata_type_content_cpn")};acpn.${J0(f.mY.get(),2)?.clientPlaybackNonce};qt.${e};clr.${B}`)}; QM=function(f){return`${Math.round(f.width)}x${Math.round(f.height)}`}; Dc=function(f,e,B=TS){B.widthf.width*f.height*.2)return{tY:3,R4:501,errorMessage:`ad(${QM(B)}) to container(${QM(f)}) ratio exceeds limit.`};if(B.height>f.height/3-e)return{tY:3,R4:501,errorMessage:`ad(${QM(B)}) covers container(${QM(f)}) center.`}}; RcY=function(f,e){const B=f.clientMetadata.RA("metadata_type_ad_placement_config");return new Ji(f.bC,e,B,f.layoutId)}; Mj=function(f){return f.clientMetadata.RA("metadata_type_invideo_overlay_ad_renderer")}; Kq6=function(){const f=["metadata_type_invideo_overlay_ad_renderer"];j1().forEach(e=>{f.push(e)}); return{Gt:f,Nj:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; qgk=function(){const f=["metadata_type_invideo_overlay_ad_renderer"];for(const e of j1())f.push(e);return{Gt:f,Nj:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; zcM=function(f=null){return f!=null&&(f=f.thumbnail,f!=null&&f.thumbnails!=null&&f.thumbnails.length!=0&&f.thumbnails[0].width!=null&&f.thumbnails[0].height!=null)?new g.uN(f.thumbnails[0].width||0,f.thumbnails[0].height||0):new g.uN(0,0)}; aJk=function(){const f=SAl();f.Gt.push("metadata_type_ad_info_ad_metadata");return f}; peC=function(f){switch(f){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new M(`Invalid layout exit reason: ${f}`)}}; GS=function(f){return f?.layoutId!=null&&f?.layoutType!=null}; cpw=function(f){if(!GS(f.adLayoutMetadata))return!1;f=f.renderingContent;return g.u(f,xs)||g.u(f,Wu)||g.u(f,sP)||g.u(f,Xq)||g.u(f,yM)||g.u(f,Pu)?!0:!1}; Iw=function(f){return!!(f.A8&&f.slot&&f.layout)}; $s=function(f){const e=f.config?.adPlacementConfig;f=f.renderer;return!(!e||e.kind==null||!f)}; ApG=function(f){if(!GS(f.adLayoutMetadata))return!1;f=f.renderingContent;return g.u(f,S1)||g.u(f,EI)||g.u(f,YgG)||g.u(f,h0)||g.u(f,gE)?!0:!1}; ix=function(f){return f.playerVars!==void 0&&f.pings!==void 0&&f.externalVideoId!==void 0}; dk=function(f){if(!GS(f.adLayoutMetadata))return!1;f=f.renderingContent;var e=g.u(f,fj);return e?eD(e):(e=g.u(f,BV))?ix(e):(e=g.u(f,nj))?e.playerVars!==void 0:(e=g.u(f,S1))?e.durationMilliseconds!==void 0:g.u(f,rk)||g.u(f,Lj)?!0:!1}; eD=function(f){f=(f.sequentialLayouts||[]).map(e=>g.u(e,tc)); return f.length>0&&f.every(dk)}; k9=function(f){return GS(f.adLayoutMetadata)?(f=g.u(f.renderingContent,HV))&&f.pings?!0:!1:!1}; lJg=function(f){if(!GS(f.adLayoutMetadata))return!1;if(g.u(f.renderingContent,jS5)||g.u(f.renderingContent,Cj))return!0;const e=g.u(f.renderingContent,wk);return g.u(f.renderingContent,vV)||g.u(e?.sidePanel,O5w)||g.u(e?.sidePanel,oF5)||g.u(e?.sidePanel,VJH)?!0:!1}; hcO=function(f){var e;(e=!f)||(e=f.adSlotMetadata,e=!(e?.slotId!==void 0&&e?.slotType!==void 0));if(e||!(utg(f)||f.slotEntryTrigger&&f.slotFulfillmentTriggers&&f.slotExpirationTriggers))return!1;f=f.fulfillmentContent?.fulfilledLayout;return(e=g.u(f,tc))?dk(e):(e=g.u(f,bX))?lJg(e):(e=g.u(f,FqM))?ApG(e):(e=g.u(f,mIO))?cpw(e):(e=g.u(f,UI5))?GS(e.adLayoutMetadata)?g.u(e.renderingContent,xs)?!0:!1:!1:(e=g.u(f,ZP))?k9(e):(f=g.u(f,Nod))?GS(f.adLayoutMetadata)?g.u(f.renderingContent,Cj)?!0:!1:!1:!1}; utg=function(f){return(f=g.u(f.fulfillmentContent?.fulfilledLayout,bX))&&f.adLayoutMetadata?.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"&&f.layoutExitNormalTriggers===void 0}; gFl=function(f){for(const e of f||[]){f=g.u(e,R8);if(f===void 0||!hcO(f))break;if((f=g.u(f.fulfillmentContent?.fulfilledLayout,ZP))&&k9(f))return!0}return!1}; var Sgg=function(f){return wj[Z[2]](this,16,f)}; var QS0=function(f,e=!1){if(!f.questions?.length||!f.playbackCommands||!e&&f.questions.length!==1)return!1;for(const B of f.questions)if(!EFO(g.u(B,Kj)?.surveyAdQuestionCommon||g.u(B,qz)?.surveyAdQuestionCommon))return!1;return!0},ToY=function(f){({instreamSurveyAdRenderer:f}=f?.playerOverlay||{}); return f?f.playbackCommands&&f.questions&&f.questions.length===1?EFO(g.u(f.questions[0],Kj)?.surveyAdQuestionCommon||g.u(f.questions[0],qz)?.surveyAdQuestionCommon):!1:!1},EFO=function(f){if(!f)return!1; f=g.u(f.instreamAdPlayerOverlay,zg);const e=g.u(f?.skipOrPreviewRenderer,SS),B=g.u(f?.adInfoRenderer,a8);return(g.u(f?.skipOrPreviewRenderer,pj)||e)&&B?!0:!1},DIl=function(f){return f.linearAds!=null&&GS(f.adLayoutMetadata)},JpC=function(f){return f.linearAd!=null&&f.adVideoStart!=null},xI5=function(f,e,B){const n=(B.adSlots??[]).map(d=>g.u(d,R8)); if(B.BP)if(e.clientMetadata.RA("metadata_type_allow_pause_ad_break_request_slot_reschedule"))by(f.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>[],e.slotId); else{if(f.iY.get().Z.S().Y("h5_check_forecasting_renderer_for_throttled_midroll")){var r=B.Jz.filter(d=>d.renderer?.clientForecastingAdRenderer!=null); r.length!==0?MJH(f.J,r,n,e.slotId,B.ssdaiAdsConfig):by(f.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>[],e.slotId)}else by(f.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>[],e.slotId); G2l(f.V,e)}else{r={E$:Math.round(e.clientMetadata.RA("metadata_type_ad_break_request_data")?.E$||0),Cs:e.clientMetadata.RA("metadata_type_ad_break_request_data")?.Cs};var L=e.clientMetadata.RA("metadata_type_cue_point");MJH(f.J,B.Jz,n,e.slotId,B.ssdaiAdsConfig,r,L)}},Wq0=function(f,e){for(const B of e){if(B.slotType==="SLOT_TYPE_PLAYER_BYTES"&&B.fulfilledLayout)if(e=void 0,B.fulfilledLayout.renderingContent)e=B.fulfilledLayout.clientMetadata.RA("metadata_type_player_vars"); else{if(B.fulfilledLayout.LV)for(const n of B.fulfilledLayout.LV)if(n.renderingContent&&(e=n.clientMetadata.RA("metadata_type_player_vars")))break}else e=void 0;if(e){f.Ke.get().Z.preloadVideoByPlayerVars(e,2,300);break}}},XeG=function(f,e,B,n,r,L,d,t){const H=J0(f.mY.get(),1); if(sSk(f.iY.get())){const k=cV(f.G.get(),B,n,r,H.clientPlaybackNonce,H.Wr,H.daiEnabled,H,L,d);Wq0(f,k);by(f.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>k,e)}else by(f.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>cV(f.G.get(),B,n,r,H.clientPlaybackNonce,H.Wr,H.daiEnabled,H,L,d,t),e)},P10=function(f,e,B,n,r,L,d){e=ypO(e,L,Number(n.prefetchMilliseconds)||0,d); f=e instanceof M?e:Y9(f,n,r,e,B);return f instanceof M?f:[f]},fRg=function(f,e,B,n,r){const L=Zf(f.G.get(),"SLOT_TYPE_AD_BREAK_REQUEST"); n=[new IJC({getAdBreakUrl:n.getAdBreakUrl,E$:0,Cs:0}),new $IM];f=e.pauseDurationMs?e.lactThresholdMs?{slotId:L,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Ac(f.C,L),slotFulfillmentTriggers:[new i5m(f.C)],slotExpirationTriggers:[new jD(f.C,r),new Ow(f.C,L)],hL:"core",clientMetadata:new Vl(n),adSlotLoggingData:B}:new M("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new M("AdPlacementConfig for Pause Ads is missing pause_duration_ms");return f instanceof M?f:[f]},Xz=function(f,e,B){if(f.beforeContentVideoIdStartedTrigger)f=f.beforeContentVideoIdStartedTrigger?new o8(V5,e,f.id):new M("Not able to create BeforeContentVideoIdStartedTrigger"); else if(f.layoutIdExitedTrigger)f=f.layoutIdExitedTrigger?.triggeringLayoutId?new lX(V5,f.layoutIdExitedTrigger.triggeringLayoutId,f.id):new M("Not able to create LayoutIdExitedTrigger");else if(f.layoutExitedForReasonTrigger)f.layoutExitedForReasonTrigger?.triggeringLayoutId&&f.layoutExitedForReasonTrigger?.layoutExitReason?(e=peC(f.layoutExitedForReasonTrigger.layoutExitReason),f=e instanceof M?e:new uX(V5,f.layoutExitedForReasonTrigger.triggeringLayoutId,[e],f.id)):f=new M("Not able to create LayoutIdExitedForReasonTrigger"); else if(f.onLayoutSelfExitRequestedTrigger)f=f.onLayoutSelfExitRequestedTrigger?.triggeringLayoutId?new Fz(V5,f.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,f.id):new M("Not able to create OnLayoutSelfExitRequestedTrigger");else if(f.onNewPlaybackAfterContentVideoIdTrigger)f=f.onNewPlaybackAfterContentVideoIdTrigger?new jD(V5,e,f.id):new M("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else if(f.skipRequestedTrigger)f=f.skipRequestedTrigger?.triggeringLayoutId?new mw(V5,f.skipRequestedTrigger.triggeringLayoutId, f.id):new M("Not able to create SkipRequestedTrigger");else if(f.slotIdEnteredTrigger)f=f.slotIdEnteredTrigger?.triggeringSlotId?new Uw(V5,f.slotIdEnteredTrigger.triggeringSlotId,f.id):new M("Not able to create SlotIdEnteredTrigger");else if(f.slotIdExitedTrigger)f=f.slotIdExitedTrigger?.triggeringSlotId?new Ow(V5,f.slotIdExitedTrigger.triggeringSlotId,f.id):new M("Not able to create SkipRequestedTrigger");else if(f.surveySubmittedTrigger)f=f.surveySubmittedTrigger?.triggeringLayoutId?new Nz(V5,f.surveySubmittedTrigger.triggeringLayoutId, f.id):new M("Not able to create SurveySubmittedTrigger");else if(f.mediaResumedTrigger)f=f.mediaResumedTrigger&&f.id?new ed5(f.id):new M("Not able to create MediaResumedTrigger");else if(f.closeRequestedTrigger)f=f.closeRequestedTrigger?.triggeringLayoutId?new hc(V5,f.closeRequestedTrigger.triggeringLayoutId,f.id):new M("Not able to create CloseRequestedTrigger");else if(f.slotIdScheduledTrigger)f=f.slotIdScheduledTrigger?.triggeringSlotId?new Ac(V5,f.slotIdScheduledTrigger.triggeringSlotId,f.id): new M("Not able to create SlotIdScheduledTrigger");else if(f.mediaTimeRangeTrigger){var n=Number(f.mediaTimeRangeTrigger?.offsetStartMilliseconds),r=Number(f.mediaTimeRangeTrigger?.offsetEndMilliseconds);isFinite(n)&&isFinite(r)?(r===-1&&(r=B),B=n>r?new M("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:n,offsetEndMs:r},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",r===B&&n-500<=r):new zK(n,r),f=B instanceof M?B:new gk(V5,e,B,!1,f.id)):f=new M("Not able to create MediaTimeRangeTrigger")}else f= f.contentVideoIdEndedTrigger?f.contentVideoIdEndedTrigger?new SD(V5,e,!1,f.id):new M("Not able to create ContentVideoIdEndedTrigger"):f.layoutIdEnteredTrigger?f.layoutIdEnteredTrigger?.triggeringLayoutId?new Ew(V5,f.layoutIdEnteredTrigger.triggeringLayoutId,f.id):new M("Not able to create LayoutIdEnteredTrigger"):f.timeRelativeToLayoutEnterTrigger?f.timeRelativeToLayoutEnterTrigger?.triggeringLayoutId?new Q5(V5,Number(f.timeRelativeToLayoutEnterTrigger.durationMs),f.timeRelativeToLayoutEnterTrigger.triggeringLayoutId, f.id):new M("Not able to create TimeRelativeToLayoutEnterTrigger"):f.onDifferentLayoutIdEnteredTrigger?f.onDifferentLayoutIdEnteredTrigger?.triggeringLayoutId&&f.onDifferentLayoutIdEnteredTrigger.slotType&&f.onDifferentLayoutIdEnteredTrigger.layoutType?new Tg(V5,f.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,f.onDifferentLayoutIdEnteredTrigger.slotType,f.onDifferentLayoutIdEnteredTrigger.layoutType,f.id):new M("Not able to create CloseRequestedTrigger"):f.liveStreamBreakStartedTrigger?f.liveStreamBreakStartedTrigger&& f.id?new DP(V5,f.id):new M("Not able to create LiveStreamBreakStartedTrigger"):f.liveStreamBreakEndedTrigger?f.liveStreamBreakEndedTrigger&&f.id?new Jc(V5,f.id):new M("Not able to create LiveStreamBreakEndedTrigger"):f.liveStreamBreakScheduledDurationMatchedTrigger?f.liveStreamBreakScheduledDurationMatchedTrigger?.breakDurationMs?new Mz(Number(f.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,f.id):new M("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger"): f.liveStreamBreakScheduledDurationNotMatchedTrigger?f.liveStreamBreakScheduledDurationNotMatchedTrigger?.breakDurationMs?new Gg(Number(f.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,f.id):new M("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger"):f.newSlotScheduledWithBreakDurationTrigger?f.newSlotScheduledWithBreakDurationTrigger?.breakDurationMs?new x9(Number(f.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,f.id):new M("Not able to create NewSlotScheduledWithBreakDurationTrigger"): f.prefetchCacheExpiredTrigger?new WV(V5,f.id):new M("Not able to convert an AdsControlflowTrigger.");return f},y5=function(f,e){e.C>=2&&(f.slot_pos=e.adPodIndex); f.autoplay="1"},r7m=function(f,e,B,n,r,L,d,t){return e===null?new M("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:e, ActionCompanionAdRenderer:n}):[BZm(f,e,d,L,H=>{var k=H.slotId;H=t(H);var C=n.adLayoutLoggingData;const w=new Vl([new nDG(n),new PV(r)]);k=na(B.G.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",k);const v={layoutId:k,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",hL:"core"};return{layoutId:k,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",bC:new Map,layoutExitNormalTriggers:[new jD(B.C,d)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], hL:"core",clientMetadata:w,BL:H(v),adLayoutLoggingData:C}})]},dgk=function(f,e,B,n,r,L,d,t){return e===null?new M("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:e, TopBannerImageTextIconButtonedLayoutViewModel:n}):[BZm(f,e,d,L,H=>{var k=H.slotId;H=t(H);var C=n.adLayoutLoggingData;const w=new Vl([new L0Y(n),new PV(r)]);k=na(B.G.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",k);const v={layoutId:k,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",hL:"core"};return{layoutId:k,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",bC:new Map,layoutExitNormalTriggers:[new jD(B.C,d)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[], layoutExitUserCancelledTriggers:[],hL:"core",clientMetadata:w,BL:H(v),adLayoutLoggingData:C}})]},Csd=function(f,e,B,n,r,L){if(!L)for(const d of e)I8(f,d.renderer,d.config.adPlacementConfig.kind); f=Array.from(f.values()).filter(d=>tZM(d)); e=[];for(const d of f)for(const t of d.UJ)L=H=>t.Lm(H,d.instreamVideoAdRenderer.elementId,t.H7),t.isContentVideoCompanion?e.push(HN5(B,n,r,d.instreamVideoAdRenderer.elementId,t.associatedCompositePlayerBytesLayoutId,t.adSlotLoggingData,L)):f.length>1?e.push(kn6(B,n,r,d.instreamVideoAdRenderer.elementId,t.adSlotLoggingData,H=>t.Lm(H,d.instreamVideoAdRenderer.elementId,t.H7,t.associatedCompositePlayerBytesLayoutId))):e.push(kn6(B,n,r,d.instreamVideoAdRenderer.elementId,t.adSlotLoggingData,L)); return e},I8=function(f,e,B){if(e=wb5(e))for(const n of e)n&&n.externalVideoId?(e=$9(f,n.externalVideoId),e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=n,e.NK=B)):NL("InstreamVideoAdRenderer without externalVideoId")},wb5=function(f){const e=[],B=f.sandwichedLinearAdRenderer&&f.sandwichedLinearAdRenderer.linearAd&&g.u(f.sandwichedLinearAdRenderer.linearAd,BV); if(B)return e.push(B),e;if(f.instreamVideoAdRenderer)return e.push(f.instreamVideoAdRenderer),e;if(f.linearAdSequenceRenderer&&f.linearAdSequenceRenderer.linearAds){for(const n of f.linearAdSequenceRenderer.linearAds)g.u(n,BV)&&e.push(g.u(n,BV));return e}return null},tZM=function(f){if(f.instreamVideoAdRenderer===void 0)return NL("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1; for(const e of f.UJ){if(e.Lm===void 0)return!1;if(e.H7===void 0)return NL("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(f.NK===void 0||e.wy===void 0||f.NK!==e.wy&&e.wy!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(f.instreamVideoAdRenderer.elementId===void 0)return NL("InstreamVideoAdRenderer has no elementId",void 0,void 0,{kind:f.NK,"matching APSR kind":e.wy}),!1}return!0},$9=function(f,e){f.has(e)||f.set(e,{instreamVideoAdRenderer:void 0, NK:void 0,adVideoId:e,UJ:[]});return f.get(e)},iX=function(f,e,B,n,r,L,d,t,H){r?$9(f,r).UJ.push({nsa:e, wy:B,isContentVideoCompanion:n,H7:d,associatedCompositePlayerBytesLayoutId:L,adSlotLoggingData:t,Lm:H}):NL("Companion AdPlacementSupportedRenderer without adVideoId")},fL=function(f){let e=0; for(const B of f.questions)(f=g.u(B,Kj)||g.u(B,qz))&&(e+=f.surveyAdQuestionCommon?.durationMilliseconds||0);return e},et=function(f){var e=g.u(f.questions?.[0],Kj)?.surveyAdQuestionCommon||g.u(f.questions?.[0],qz)?.surveyAdQuestionCommon; e=[...(f.playbackCommands?.instreamAdCompleteCommands||[]),...(e?.timeoutCommands||[])];return{impressionCommands:f.playbackCommands?.impressionCommands,errorCommands:f.playbackCommands?.errorCommands,muteCommands:f.playbackCommands?.muteCommands,unmuteCommands:f.playbackCommands?.unmuteCommands,pauseCommands:f.playbackCommands?.pauseCommands,rewindCommands:f.playbackCommands?.rewindCommands,resumeCommands:f.playbackCommands?.resumeCommands,skipCommands:f.playbackCommands?.skipCommands,progressCommands:f.playbackCommands?.progressCommands, qEY:f.playbackCommands?.clickthroughCommands,fullscreenCommands:f.playbackCommands?.fullscreenCommands,activeViewViewableCommands:f.playbackCommands?.activeViewViewableCommands,activeViewMeasurableCommands:f.playbackCommands?.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:f.playbackCommands?.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:f.playbackCommands?.activeViewTracking?.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:f.playbackCommands?.activeViewTracking?.activeViewAudioMeasurableCommands, endFullscreenCommands:f.playbackCommands?.endFullscreenCommands,abandonCommands:f.playbackCommands?.abandonCommands,completeCommands:e}},ZNC=function(f,e,B,n,r,L,d){return(t,H)=>vDl(f,H.slotId,t,L,(k,C)=>{var w=H.layoutId; k=d(k);return Bf(e,w,C,r,k,"LAYOUT_TYPE_SURVEY",[new bNC(B),n],B.adLayoutLoggingData)})},zdC=function(f,e,B,n,r,L,d){if(!RdO(f))return new M("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:f}); const t=f.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[K06(L,e,B,n,H=>{var k=H.slotId;H=d(H);k=na(r.G.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",k);const C={layoutId:k,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",hL:"core"},w=new lX(r.C,n);return{layoutId:k,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",bC:new Map,layoutExitNormalTriggers:[w],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], hL:"core",clientMetadata:new Vl([new qV5(t)]),BL:H(C)}})]},RdO=function(f){f=g.u(f?.additionalPlayerOverlay,aR5); if(!f)return!1;const e=f.slidingMessages;return f.title&&e&&e.length!==0?!0:!1},A70=function(f,e,B,n,r){if(!f.playerOverlay?.instreamSurveyAdRenderer)return()=>[]; if(!ToY(f))return()=>new M("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:f}); const L=f.playerOverlay.instreamSurveyAdRenderer,d=fL(L);return d<=0?()=>new M("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:L}):(t,H)=>{const k=pbM(t,B,n,C=>{var w=C.slotId; C=H(C);var v=et(L);w=na(r.G.get(),"LAYOUT_TYPE_SURVEY",w);const b={layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",hL:"core"},K=new lX(r.C,n),Y=new mw(r.C,w),l=new Nz(r.C,w),m=new c76(r.C);return{layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",bC:new Map,layoutExitNormalTriggers:[K,m],layoutExitSkipTriggers:[Y],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[l],layoutExitUserCancelledTriggers:[],hL:"core",clientMetadata:new Vl([new YV5(L),new PV(e),new nL(d/1E3),new rY(v)]),BL:C(b),adLayoutLoggingData:L.adLayoutLoggingData}}); t=zdC(f,B,k.slotId,n,r,t,H);return t instanceof M?t:[k,...t]}},F0M=function(f,e,B,n,r,L,d){const t=[]; try{let H,k=[];if(B.renderer.linearAdSequenceRenderer)H=w=>{w=j60(w.slotId,B,e,r(w),n,L);k=w.e$;return w.iJ}; else if(B.renderer.instreamVideoAdRenderer)H=w=>{var v=w.slotId;w=r(w);const b=B.config.adPlacementConfig,{aH:K,tT:Y}=ONC(b);var l=B.renderer.instreamVideoAdRenderer;if(l?.playerOverlay?.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var m=LL(l);const F=Math.min(K+m.videoLengthSeconds*1E3,Y),N=new dY(0,[m.videoLengthSeconds]);var E=m.videoLengthSeconds,Lw=m.playerVars,d6=m.instreamAdPlayerOverlayRenderer,TO=m.playerOverlayLayoutRenderer,AY=m.adVideoId, Dl=oDO(B),W5=m.bC;m=m.l4;var lP=l?.adLayoutLoggingData;l=l?.sodarExtensionData;v=na(e.G.get(),"LAYOUT_TYPE_MEDIA",v);const JY={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",hL:"core"};return{layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",bC:W5,layoutExitNormalTriggers:[new Jc(e.C)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:"core",clientMetadata:new Vl([new tZ(n),new Hf(E),new ku(Lw),new CL(K),new wY(F),d6&&new vf(d6),TO&& new b4(TO),new PV(b),new ZY(AY),new RZ(N),new KL(Dl),l&&new q3(l),new z5({current:null}),new aZ,new pL(m)].filter(VZY)),BL:w(JY),adLayoutLoggingData:lP}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");const C=lRd(f,n,B.adSlotLoggingData,H,d);t.push(C);for(const w of k){const v=w(f,r);if(v instanceof M)return v;t.push(...v)}}catch(H){return new M(H,{errorMessage:H.message,AdPlacementRenderer:B,numberOfSurveyRenderers:uxd(B)})}return t},uxd=function(f){({linearAds:f}=f.renderer.linearAdSequenceRenderer||{}); return f?.length?f.filter(e=>g.u(e,BV)?.playerOverlay?.instreamSurveyAdRenderer!=null).length:0},j60=function(f,e,B,n,r,L){const d=e.config.adPlacementConfig,{aH:t, tT:H}=ONC(d);var {linearAds:k}=e.renderer.linearAdSequenceRenderer||{};if(!k?.length)throw new TypeError("Expected linear ads");const C=[],w={TF:t,MU:0,Er:C};k=k.map(b=>mgm(f,b,w,B,n,d,r,H)).map((b,K)=>{K=new dY(K,C); return b(K)}); const v=k.map(b=>b.Pg); return{iJ:Ugg(B,f,t,v,d,oDO(e),n,H,L),e$:k.map(b=>b.bP)}},mgm=function(f,e,B,n,r,L,d,t){const H=LL(g.u(e,BV)),k=B.TF,C=B.MU,w=Math.min(k+H.videoLengthSeconds*1E3,t); B.TF=w;B.MU++;B.Er.push(H.videoLengthSeconds);const v=g.u(e,BV)?.playerOverlay?.instreamSurveyAdRenderer;if(H.adVideoId==="nPpU29QrbiU"&&v==null)throw new TypeError("Survey slate media has no survey overlay");return b=>{y5(H.playerVars,b);var K=H.videoLengthSeconds,Y=H.playerVars,l=H.bC,m=H.l4,F=H.instreamAdPlayerOverlayRenderer,N=H.playerOverlayLayoutRenderer,E=H.adVideoId,Lw=g.u(e,BV)?.adLayoutLoggingData,d6=g.u(e,BV)?.sodarExtensionData;const TO=na(n.G.get(),"LAYOUT_TYPE_MEDIA",f),AY={layoutId:TO, layoutType:"LAYOUT_TYPE_MEDIA",hL:"adapter"};b={layoutId:TO,layoutType:"LAYOUT_TYPE_MEDIA",bC:l,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:"adapter",clientMetadata:new Vl([new tZ(d),new Hf(K),new ku(Y),new CL(k),new wY(w),new cf(C),new z5({current:null}),F&&new vf(F),N&&new b4(N),new PV(L),new ZY(E),new RZ(b),d6&&new q3(d6),v&&new NZY(v),new aZ,new pL(m)].filter(VZY)),BL:r(AY),adLayoutLoggingData:Lw}; K=A70(g.u(e,BV),L,d,b.layoutId,n);return{Pg:b,bP:K}}},LL=function(f){if(!f)throw new TypeError("Expected instream video ad renderer"); if(!f.playerVars)throw new TypeError("Expected player vars in url encoded string");const e=C$(f.playerVars);var B=Number(e.length_seconds);if(isNaN(B))throw new TypeError("Expected valid length seconds in player vars");var n=Number(f.trimmedMaxNonSkippableAdDurationMs);B=isNaN(n)?B:Math.min(B,n/1E3);({instreamAdPlayerOverlayRenderer:n=null}=f.playerOverlay||{});const {playerOverlayLayoutRenderer:r=null}=f.playerOverlay||{};var L=e.video_id;L||(L=(L=f.externalVideoId)?L:void 0);if(!L)throw new TypeError("Expected valid video id in IVAR"); return{playerVars:e,videoLengthSeconds:B,instreamAdPlayerOverlayRenderer:n,playerOverlayLayoutRenderer:r,adVideoId:L,bC:f.pings?A0(f.pings):new Map,l4:Yk(f.pings)}},oDO=function(f){f=Number(f.driftRecoveryMs); return isNaN(f)||f<=0?null:f},ONC=function(f){const {offsetStartMilliseconds:e, offsetEndMilliseconds:B}=f.adTimeOffset||{};f=Number(e);if(isNaN(f))throw new TypeError("Expected valid start offset");const n=Number(B);if(isNaN(n))throw new TypeError("Expected valid end offset");return{aH:f,tT:n}},hdl=function(f){const e=f.clientMetadata.RA("metadata_type_player_bytes_callback_ref")?.current; if(!e)return null;const B=f.clientMetadata.RA("metadata_type_ad_pod_skip_target_callback_ref");var n=f.layoutId,r=f.clientMetadata.RA("metadata_type_content_cpn"),L=f.clientMetadata.RA("metadata_type_instream_ad_player_overlay_renderer"),d=f.clientMetadata.RA("metadata_type_player_underlay_renderer"),t=f.clientMetadata.RA("metadata_type_ad_placement_config"),H=f.clientMetadata.RA("metadata_type_video_length_seconds");var k=aM(f.clientMetadata,"metadata_type_layout_enter_ms")&&aM(f.clientMetadata, "metadata_type_layout_exit_ms")?(f.clientMetadata.RA("metadata_type_layout_exit_ms")-f.clientMetadata.RA("metadata_type_layout_enter_ms"))/1E3:void 0;return{ma:n,contentCpn:r,IK:e,Yn:B,instreamAdPlayerOverlayRenderer:L,instreamAdPlayerUnderlayRenderer:d,adPlacementConfig:t,videoLengthSeconds:H,vR:k,inPlayerLayoutId:f.clientMetadata.RA("metadata_type_linked_in_player_layout_id"),inPlayerSlotId:f.clientMetadata.RA("metadata_type_linked_in_player_slot_id")}},EDG=function(f,e,B,n,r,L,d,t,H,k,C,w,v,b, K){n=Zf(n,"SLOT_TYPE_PLAYER_BYTES"); f=gD0(r,f,d,B,n,H,k);if(f instanceof M)return f;k=f.clientMetadata.RA("metadata_type_fulfilled_layout")?.layoutId;if(!k)return new M("Invalid adNotify layout");e=SVl(k,r,L,B,t,e,H,C,w,v,b,K,d);return e instanceof M?e:[f,...e]},SVl=function(f,e,B,n,r,L,d,t,H,k,C,w,v){B=Q65(e,B,n,L,d,t,H,k,C,w,v); if(B instanceof M)return B;f=TZG(e,f,d,r,B);return f instanceof M?f:[...f.Zr,f.gw]},J7H=function(f,e,B,n,r,L,d,t,H,k,C,w,v,b){e=Q65(f,e,B,r,L,t,H,k,C,w,v,b); if(e instanceof M)return e;f=Dgd(f,B,L,d,n,t.sA,e);return f instanceof M?f:f.Zr.concat(f.gw)},Q65=function(f,e,B,n,r,L,d,t,H,k,C,w){const v=Yu(n); return v instanceof WK?new M(v):k.Z.S().experiments.SI("html5_refactor_in_player_slot_generation")?b=>{var K=new dY(0,[v.Xf]);b=MZl(e,v.layoutId,v.dc,B,AZ(v.playerVars,v.IY,L,H,K),v.Xf,r,K,d(b),t.get(v.dc.externalVideoId),w);K=[];if(v.dc.playerOverlay.instreamAdPlayerOverlayRenderer){const Y=hdl(b);if(!Y)return NL("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,b),{layout:b,Zr:[]};K=[Gnk(f,Y.contentCpn,Y.ma,l=>jt(e,l.slotId,"core",Y,oM(C,l)), Y.inPlayerSlotId), ...K];if(Y.instreamAdPlayerUnderlayRenderer&&O$(k)){const l=Y.instreamAdPlayerUnderlayRenderer;K=[xg5(f,Y.contentCpn,Y.ma,m=>W0l(e,m.slotId,l,Y.adPlacementConfig,Y.ma,oM(C,m))), ...K]}}return{layout:b,Zr:K}}:b=>{const K=new dY(0,[v.Xf]); return{layout:MZl(e,v.layoutId,v.dc,B,AZ(v.playerVars,v.IY,L,H,K),v.Xf,r,K,d(b),t.get(v.dc.externalVideoId),w),Zr:[]}}},Yu=function(f){if(!f.playerVars)return new WK("No playerVars available in InstreamVideoAdRenderer."); if(f.elementId==null||f.playerVars==null||f.playerOverlay==null||f.playerOverlay?.instreamAdPlayerOverlayRenderer==null&&f.playerOverlay?.playerOverlayLayoutRenderer==null||f.pings==null||f.externalVideoId==null)return new WK("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:f});const e=C$(f.playerVars);let B=Number(e.length_seconds);isNaN(B)&&(B=0,NL("Expected valid length seconds in player vars but got NaN"));return{layoutId:f.elementId,dc:f,playerVars:e,IY:f.playerVars,Xf:B}}, AZ=function(f,e,B,n,r){f.iv_load_policy=n; e=C$(e);if(e.cta_conversion_urls)try{f.cta_conversion_urls=JSON.parse(e.cta_conversion_urls)}catch(L){NL(L)}B.Nn&&(f.ctrl=B.Nn);B.d8&&(f.ytr=B.d8);B.M7&&(f.ytrcc=B.M7);B.isMdxPlayback&&(f.mdx="1");f.vvt&&(f.vss_credentials_token=f.vvt,B.pF&&(f.vss_credentials_token_type=B.pF),B.mdxEnvironment&&(f.mdx_environment=B.mdxEnvironment));y5(f,r);return f},s6g=function(f){const e=new Map; for(const B of f)(f=B.renderer.remoteSlotsRenderer)&&f.hostElementId&&e.set(f.hostElementId,f);return e},oZ=function(f){return f.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"},Xbm=function(f){return f!=null},nBd=function(f,e,B,n,r,L,d,t,H,k,C,w,v,b,K){const Y=[]; for(const E of f){if(utg(E))continue;if(E?.adSlotMetadata?.slotType==="SLOT_TYPE_IN_PLAYER")continue;var l=y7Y(E,n,B.Wr);if(l instanceof M)return l;var m={slotId:E.adSlotMetadata.slotId,slotType:E.adSlotMetadata.slotType,slotPhysicalPosition:E.adSlotMetadata.slotPhysicalPosition??1,hL:"core",slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:l.slotExpirationTriggers},F=g.u(E.fulfillmentContent.fulfilledLayout,tc);if(F){if(!dk(F))return new M("Invalid PlayerBytesAdLayoutRenderer"); var N=w&&!(oZ(E)&&E.slotEntryTrigger.beforeContentVideoIdStartedTrigger);l=l.slotFulfillmentTriggers.some(Lw=>Lw instanceof Mz); F=N?PsM(m,E.adSlotMetadata.triggerEvent,F,B,n,L,f,v,l,H,b):IRl(m,E.adSlotMetadata.triggerEvent,F,e,B,n,r,L,d,t,H,k,f,C,E.adSlotMetadata.triggeringSourceLayoutId);if(F instanceof M)return F;l=[];K?l.push(new Vf({current:K})):l.push(new Vf({current:null}));oZ(E)&&l.push(new l4({kD:oZ(E)&&!!E.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));N&&l.push(new aZ);B.sA&&l.push(new $gd({}));m={...m,clientMetadata:new Vl(l),fulfilledLayout:F.layout,adSlotLoggingData:E.adSlotMetadata.adSlotLoggingData}; Y.push(...F.Zr);Y.push(m);continue}if(N=g.u(E.fulfillmentContent.fulfilledLayout,bX)){if(!lJg(N))return new M("Invalid PlayerUnderlayAdLayoutRenderer");N=iN0(N,n,B.Wr,L,m,E.adSlotMetadata.triggerEvent,E.adSlotMetadata.triggeringSourceLayoutId);if(N instanceof M)return N;m={...m,clientMetadata:new Vl([]),fulfilledLayout:N,adSlotLoggingData:E.adSlotMetadata.adSlotLoggingData};Y.push(m);continue}if(N=g.u(E.fulfillmentContent.fulfilledLayout,Nod)){if(!GS(N.adLayoutMetadata)||!g.u(N.renderingContent,Cj))return new M("Invalid InPlayerOrganicOverlayAdLayoutRenderer"); N=N.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?fsk(N,n,B.Wr,L,m):new M(`LayoutType [${N.adLayoutMetadata.layoutType}] is invalid for InPlayerOrganicOverlaySlot`);if(N instanceof M)return N;m={...m,clientMetadata:new Vl([]),fulfilledLayout:N,adSlotLoggingData:E.adSlotMetadata.adSlotLoggingData};Y.push(m);continue}if(N=g.u(E.fulfillmentContent.fulfilledLayout,mIO)){if(!cpw(N))return new M("Invalid AboveFeedAdLayoutRenderer");N=eb6(N,n,B.Wr,L,m,E.adSlotMetadata.triggerEvent, E.adSlotMetadata.triggeringSourceLayoutId);if(N instanceof M)return N;m={...m,clientMetadata:new Vl([]),fulfilledLayout:N,adSlotLoggingData:E.adSlotMetadata.adSlotLoggingData};Y.push(m);continue}if(N=g.u(E.fulfillmentContent.fulfilledLayout,UI5)){if(!GS(N.adLayoutMetadata)||!g.u(N.renderingContent,xs))return new M("Invalid BelowPlayerAdLayoutRenderer");N=eb6(N,n,B.Wr,L,m,E.adSlotMetadata.triggerEvent,E.adSlotMetadata.triggeringSourceLayoutId);if(N instanceof M)return N;m={...m,clientMetadata:new Vl([]), fulfilledLayout:N,adSlotLoggingData:E.adSlotMetadata.adSlotLoggingData};Y.push(m);continue}if(N=g.u(E.fulfillmentContent.fulfilledLayout,ZP)){if(!k9(N))return new M("Invalid PlayerBytesSequenceItemAdLayoutRenderer");N=BxC(N,n,B.Wr,L,m,E.adSlotMetadata.triggerEvent);if(N instanceof M)return N;m={...m,clientMetadata:new Vl([]),fulfilledLayout:N,adSlotLoggingData:E.adSlotMetadata.adSlotLoggingData};Y.push(m)}else return new M(`Unable to retrieve a client slot [${m.slotType}] from a given AdSlotRenderer`)}return Y}, BxC=function(f,e,B,n,r,L){const d={layoutId:f.adLayoutMetadata.layoutId, layoutType:f.adLayoutMetadata.layoutType,hL:"core"};e=u4(f,e,B);return e instanceof M?e:(B=g.u(f.renderingContent,HV))&&B.pings?{...d,renderingContent:f.renderingContent,bC:A0(B.pings),...e,BL:oM(n,r)(d),clientMetadata:new Vl([new PV(Fc(L)),new rY({progressCommands:B.progressCommands})]),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData}:new M("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")},eb6=function(f,e,B,n,r,L,d){const t={layoutId:f.adLayoutMetadata.layoutId, layoutType:f.adLayoutMetadata.layoutType,hL:"core"};e=u4(f,e,B);if(e instanceof M)return e;B=[];B.push(new PV(Fc(L)));L==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&d!==void 0&&B.push(new mK(d));return{...t,renderingContent:f.renderingContent,bC:new Map([["impression",g.u(f.renderingContent,sP)?g.u(f.renderingContent,sP)?.impressionPings||[]:g.u(f.renderingContent,xs)?g.u(f.renderingContent,xs)?.impressionPings||[]:g.u(f.renderingContent,Wu)?g.u(f.renderingContent,Wu)?.impressionPings||[]:[]]]),...e, BL:oM(n,r)(t),clientMetadata:new Vl(B),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData}},iN0=function(f,e,B,n,r,L,d){if(f.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")a:{var t=g.u(f.renderingContent,wk); const H=g.u(f.renderingContent,Cj);d=new Map;if(t){d=g.u(t.sidePanel,oF5);if(!d){f=new M("DismissablePanelTextPortraitImageRenderer is missing");break a}d=new Map([["impression",d.impressionPings||[]],["resume",d.resumePings||[]]])}else if(!H){f=new M("AdsEngagementPanelSectionListViewModel is missing");break a}t={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,hL:"core"};e=u4(f,e,B);f=e instanceof M?e:{...t,renderingContent:f.renderingContent,bC:d,...e,BL:oM(n,r)(t), clientMetadata:new Vl([new PV(Fc(L))]),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData}}else f.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.u(f.renderingContent,jS5)?(d={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,hL:"core"},e=u4(f,e,B),f=e instanceof M?e:{...d,renderingContent:f.renderingContent,bC:new Map,...e,BL:oM(n,r)(d),clientMetadata:new Vl([new PV(Fc(L))]),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData}):f=new M("CounterfactualRenderer is missing"): f.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?f=new M("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):f.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?f=new M("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):f.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.u(f.renderingContent,vV)?(L={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,hL:"core"},e=u4(f, e,B),f=e instanceof M?e:d?{...L,renderingContent:f.renderingContent,bC:new Map,...e,BL:oM(n,r)(L),clientMetadata:new Vl([new mK(d)]),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData}:new M("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):f=new M("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):f.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.u(f.renderingContent,Cj)?(L={layoutId:f.adLayoutMetadata.layoutId, layoutType:f.adLayoutMetadata.layoutType,hL:"core"},e=u4(f,e,B),f=e instanceof M?e:{...L,renderingContent:f.renderingContent,bC:new Map([]),...e,BL:oM(n,r)(L),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Vl([])}):f=new M("AdsEngagementPanelSectionListViewModel is missing"):(f.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_IMAGE_QR_CODE"?t=new M("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):t=new M(`LayoutType [${f.adLayoutMetadata.layoutType}] is invalid for PlayerUnderlaySlot`), f=t);return f},fsk=function(f,e,B,n,r){if(!g.u(f.renderingContent,Cj))return new M("AdsEngagementPanelSectionListViewModel is missing"); const L={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,hL:"core"};e=u4(f,e,B);return e instanceof M?e:{...L,renderingContent:f.renderingContent,bC:new Map([]),...e,BL:oM(n,r)(L),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Vl([])}},PsM=function(f,e,B,n,r,L,d,t,H,k,C){if(C?.E$===void 0||C?.Cs===void 0)return new M("Cached ad break range from cue point is missing"); var w=u4(B,r,n.Wr);if(w instanceof M)return w;w={layoutExitMuteTriggers:[],layoutExitNormalTriggers:w.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.u(B.renderingContent,BV))return f=rlg(f,e,B,w,r,L,d,n.Wr,C.E$,C.Cs,k),f instanceof M?f:f.Xi===void 0?new M("Expecting associatedInPlayerSlot for single DAI media layout"):{layout:f.layout,Zr:[f.Xi]};var v=g.u(B.renderingContent,fj);if(v){if(!GS(B.adLayoutMetadata))return new M("Invalid ad layout metadata"); if(!eD(v))return new M("Invalid sequential layout");v=v.sequentialLayouts.map(b=>b.playerBytesAdLayoutRenderer); f=L90(f,e,B,w,v,r,n,L,d,t,C.E$,C.Cs,H,k);return f instanceof M?f:{layout:f.r0,Zr:f.Zr}}return new M("Not able to convert a sequential layout")},L90=function(f,e,B,n,r,L,d,t,H,k,C,w,v,b){var K=dyH(r,C,w); if(K instanceof M)return K;const Y=[],l=[];for(const AY of K){a:{var m=f,F=r[AY.MU],N=AY,E=e;K=L;var Lw=d,d6=t,TO=H;const Dl=U$(F);if(Dl instanceof M){K=Dl;break a}const W5={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,hL:"adapter"};N=t4M(E,F,N,K,void 0,b);if(N instanceof M){K=N;break a}m={...W5,...N3,bC:Dl,renderingContent:F.renderingContent,clientMetadata:new Vl(N),BL:oM(d6,m)(W5),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData};K=(K=hZ(TO,m,K,Lw.Wr,d6, void 0,!0))?K instanceof M?K:{layout:m,Xi:K}:new M("Expecting associatedInPlayerSlot")}if(K instanceof M)return K;Y.push(K.layout);l.push(K.Xi)}r={layoutId:B.adLayoutMetadata.layoutId,layoutType:B.adLayoutMetadata.layoutType,hL:"core"};e=[new KL(Number(B.driftRecoveryMs)),new CL(C),new wY(w),new PV(Fc(e)),new Hsm(k),new aZ];v&&e.push(new kwk);return{r0:{...r,...n,LV:Y,bC:new Map,clientMetadata:new Vl(e),BL:oM(t,f)(r)},Zr:l}},rlg=function(f,e,B,n,r,L,d,t,H,k,C){if(!dk(B))return new M("Invalid PlayerBytesAdLayoutRenderer"); const w=U$(B);if(w instanceof M)return w;const v={layoutId:B.adLayoutMetadata.layoutId,layoutType:B.adLayoutMetadata.layoutType,hL:"core"};var b=g.u(B.renderingContent,BV);if(!b)return new M("Invalid rendering content for DAI media layout");b=LL(b);H={QV:b,MU:0,TF:H,tf:Math.min(H+b.videoLengthSeconds*1E3,k),Yi:new dY(0,[b.videoLengthSeconds])};e=t4M(e,B,H,r,Number(B.driftRecoveryMs)??void 0,C);if(e instanceof M)return e;f={...v,...n,bC:w,renderingContent:B.renderingContent,clientMetadata:new Vl(e), BL:oM(L,f)(v),adLayoutLoggingData:B.adLayoutMetadata.adLayoutLoggingData};return(r=hZ(d,f,r,t,L,void 0,!0))?r instanceof M?r:{layout:f,Xi:r}:new M("Expecting associatedInPlayerSlot")},IRl=function(f,e,B,n,r,L,d,t,H,k,C,w,v,b,K){const Y=u4(B,L,r.Wr); if(Y instanceof M)return Y;if(g.u(B.renderingContent,BV)){H=Cz5([B],r,H);if(H instanceof M)return H;if(H.length!==1)return new M("Only expected one media layout.");f=w15(f,e,B,Y,H[0],void 0,"core",n,L,d,t,k,v,b,r.Wr,void 0,K);return f instanceof M?f:{layout:f.layout,Zr:f.Xi?[f.Xi]:[]}}var l=g.u(B.renderingContent,fj);if(l){if(!GS(B.adLayoutMetadata))return new M("Invalid ad layout metadata");if(!eD(l))return new M("Invalid sequential layout");l=l.sequentialLayouts.map(m=>m.playerBytesAdLayoutRenderer); f=vBg(f,e,B.adLayoutMetadata,Y,l,n,L,r,H,d,t,k,C,w,v,b,K);return f instanceof M?f:{layout:f.r0,Zr:f.Zr}}return new M("Not able to convert a sequential layout")},vBg=function(f,e,B,n,r,L,d,t,H,k,C,w,v,b,K,Y,l){const m=new gY({current:null}),F=Cz5(r,t,H); if(F instanceof M)return F;H=[];const N=[];var E=void 0;for(let Dl=0;Dl0&&(F.push(Y),F.push(new M3(d6.adPodSkipTarget)));(L=k.get(d6.externalVideoId))&&F.push(new G5(L));L=F}else L=new M("Invalid vod media renderer")}if(L instanceof M)return L;f={...d,...n,bC:m,renderingContent:B.renderingContent,clientMetadata:new Vl(L),BL:oM(C,f)(d),adLayoutLoggingData:B.adLayoutMetadata.adLayoutLoggingData};B=g.u(B.renderingContent,BV);if(!B||!ix(B))return new M("Invalid meida renderer");w=$9(w,B.externalVideoId); w.instreamVideoAdRenderer=B;w.NK="AD_PLACEMENT_KIND_START";return b?(H=hZ(v,f,H,K,C,Y,!1),H instanceof M?H:qvd(f.layoutId,v)&&H?{layout:{...f,clientMetadata:new Vl(L.concat(new clG(H)))}}:{layout:f,Xi:H}):{layout:f}},Zs6=function(f,e,B,n,r){if(!dk(e))return new M("Invalid PlayerBytesAdLayoutRenderer"); const L=g.u(e.renderingContent,S1);if(!L||L.durationMilliseconds===void 0)return new M("Invalid endcap renderer");const d={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,hL:"adapter"};n=[new xu(L.durationMilliseconds),new rY({impressionCommands:void 0,abandonCommands:L.abandonCommands?[{commandExecutorCommand:L.abandonCommands}]:void 0,completeCommands:L.completionCommands}),new PV(n),new Wf("LAYOUT_TYPE_ENDCAP")];r&&(n.push(new T5(r.Yi.adPodIndex-1)),n.push(new cf(r.Yi.adPodIndex)), n.push(new M3(r.adPodSkipTarget??-1)));return{...d,...N3,renderingContent:e.renderingContent,clientMetadata:new Vl(n),bC:L.skipPings?new Map([["skip",L.skipPings]]):new Map,BL:oM(B,f)(d),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData}},hZ=function(f,e,B,n,r,L,d){f=f.filter(w=>w.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&w.adSlotMetadata.triggeringSourceLayoutId===e.layoutId); if(f.length!==0){if(f.length!==1)return new M("Invalid InPlayer slot association for the given PlayerBytes layout");var t=f[0];f=y7Y(t,B,n);if(f instanceof M)return f;f={slotId:t.adSlotMetadata.slotId,slotType:t.adSlotMetadata.slotType,slotPhysicalPosition:t.adSlotMetadata.slotPhysicalPosition??1,hL:"core",slotEntryTrigger:f.slotEntryTrigger,slotFulfillmentTriggers:f.slotFulfillmentTriggers,slotExpirationTriggers:f.slotExpirationTriggers};var H=g.u(t.fulfillmentContent.fulfilledLayout,FqM);if(!H|| !ApG(H))return new M("Invalid InPlayerAdLayoutRenderer");var k={layoutId:H.adLayoutMetadata.layoutId,layoutType:H.adLayoutMetadata.layoutType,hL:"core"};B=u4(H,B,n);if(B instanceof M)return B;n=[];var C=H.adLayoutMetadata.layoutType;d&&n.push(new aZ);if(C==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")n.push(...Yvw(t.adSlotMetadata.triggerEvent,e)),(L=Al5(B,e.layoutId))&&n.push(new jBY(L));else if(C==="LAYOUT_TYPE_ENDCAP"||C==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){n.push(new PV(Fc(t.adSlotMetadata.triggerEvent))); if(C==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new M("Cannot parse endcap layout since AdUxReadyApi is not provided");L&&n.push(L)}else return new M("Not able to parse an SDF InPlayer layout");r={...k,...B,renderingContent:H.renderingContent,bC:new Map,BL:oM(r,f)(k),clientMetadata:new Vl(n),adLayoutLoggingData:H.adLayoutMetadata.adLayoutLoggingData};return{...f,fulfilledLayout:r,clientMetadata:new Vl([])}}},Yvw=function(f,e){const B=[]; B.push(new PV(Fc(f)));B.push(new mK(e.layoutId));(f=e.clientMetadata.RA("metadata_type_player_bytes_callback_ref"))&&B.push(new z5(f));(f=e.clientMetadata.RA("metadata_type_ad_pod_skip_target_callback_ref"))&&B.push(new gY(f));(f=e.clientMetadata.RA("metadata_type_remote_slots_data"))&&B.push(new G5(f));(f=e.clientMetadata.RA("metadata_type_ad_next_params"))&&B.push(new DY(f));(f=e.clientMetadata.RA("metadata_type_ad_video_clickthrough_endpoint"))&&B.push(new JZ(f));(f=e.clientMetadata.RA("metadata_type_ad_pod_info"))&& B.push(new RZ(f));(e=e.clientMetadata.RA("metadata_type_ad_video_id"))&&B.push(new ZY(e));return B},Rb0=function(f,e,B,n,r,L){const d=n.Bo.inPlayerSlotId,t=k=>s$(e,k),H={layoutId:n.Bo.inPlayerLayoutId, layoutType:"LAYOUT_TYPE_ENDCAP",hL:"core"};B={slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hL:"core",slotEntryTrigger:new Ew(t,f),slotFulfillmentTriggers:[new Uw(t,d)],slotExpirationTriggers:[new Ow(t,d),new jD(t,B)]};f={...H,layoutExitNormalTriggers:[new lX(t,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bC:new Map,clientMetadata:new Vl([new OsY(n.Bo),new PV(n.adPlacementConfig),r]),BL:oM(L,B)(H), adLayoutLoggingData:n.Bo.adLayoutLoggingData};return{...B,clientMetadata:new Vl([new Xc(f)])}},qvd=function(f,e){for(const B of e)if(B.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){e=g.u(B.fulfillmentContent.fulfilledLayout,bX); if(!e)continue;if((e=g.u(e.renderingContent,wk))&&e.associatedPlayerBytesLayoutId===f)return B}},y7Y=function(f,e,B){const n=Xz(f.slotEntryTrigger,e,B); if(n instanceof M)return n;const r=[];for(var L of f.slotFulfillmentTriggers){const d=Xz(L,e,B);if(d instanceof M)return d;r.push(d)}L=[];for(const d of f.slotExpirationTriggers){f=Xz(d,e,B);if(f instanceof M)return f;L.push(f)}return{slotEntryTrigger:n,slotFulfillmentTriggers:r,slotExpirationTriggers:L}},u4=function(f,e,B){const n=[]; for(var r of f.layoutExitNormalTriggers||[]){var L=Xz(r,e,B);if(L instanceof M)return L;n.push(L)}r=[];for(var d of f.layoutExitSkipTriggers||[]){L=Xz(d,e,B);if(L instanceof M)return L;r.push(L)}d=[];for(var t of f.layoutExitMuteTriggers||[]){L=Xz(t,e,B);if(L instanceof M)return L;d.push(L)}t=[];for(const H of f.layoutExitUserInputSubmittedTriggers||[]){f=Xz(H,e,B);if(f instanceof M)return f;t.push(f)}return{layoutExitNormalTriggers:n,layoutExitSkipTriggers:r,layoutExitMuteTriggers:d,layoutExitUserInputSubmittedTriggers:t, layoutExitUserCancelledTriggers:[]}},U$=function(f){const e=g.u(f.renderingContent,BV); if(e?.pings)return A0(e.pings);f=g.u(f.renderingContent,S1);return f?.skipPings?new Map([["skip",f.skipPings]]):new Map}; var oB6=function(f,e,B,n,r){return M8[Z[2]](this,48,f,e,B,n,r)}; t4M=function(f,e,B,n,r,L){e=g.u(e.renderingContent,BV);if(!e)return new M("Invalid rendering content for DAI media layout");f=[new tZ(n),new Hf(B.QV.videoLengthSeconds),...(yf(L)?[new rY({impressionCommands:e.impressionCommands,abandonCommands:e.onAbandonCommands,completeCommands:e.completeCommands,progressCommands:e.adVideoProgressCommands})]:[]),new ku(B.QV.playerVars),new CL(B.TF),new wY(B.tf),new cf(B.MU),new PV(Fc(f)),new ZY(B.QV.adVideoId),new RZ(B.Yi),e.sodarExtensionData&&new q3(e.sodarExtensionData), new z5({current:null}),new aZ,new pL(Yk(e.pings))].filter(Xbm);r!==void 0&&f.push(new KL(r));return f}; dyH=function(f,e,B){f=f.map(H=>LL(g.u(H.renderingContent,BV))); const n=f.map(H=>H.videoLengthSeconds),r=n.map((H,k)=>new dY(k,n)); let L=e,d=B;const t=[];f.forEach((H,k)=>{d=Math.min(L+H.videoLengthSeconds*1E3,B);y5(H.playerVars,r[k]);t.push({QV:H,TF:L,tf:d,MU:k,Yi:r[k]});L=d}); return t}; Cz5=function(f,e,B){const n=[];for(var r of f){var L=g.u(r.renderingContent,BV);if(L){if(!ix(L))return new M("Invalid vod media renderer");n.push(V4H(L))}}r=n.map(t=>t.Xf); L=[];let d=0;for(let t=0;tB instanceof lX&&B?.triggeringLayoutId!==e)?.triggeringLayoutId}; F9C=function(f,e,B,n,r,L,d,t,H){const k=B.pings;return k?[lsw(f,L,t,r,C=>{var w=C.slotId;C=H(C);var v=B.adLayoutLoggingData,b=B.progressCommands;w=na(e.G.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",w);const K={layoutId:w,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",hL:"core"};return{layoutId:w,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",bC:A0(k),layoutExitNormalTriggers:[new jD(e.C,L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], hL:"core",clientMetadata:new Vl([new PV(n),new pL(Yk(k)),new ued(k?.activeViewTracking?.identifier),new Hf(d/1E3),new rY({progressCommands:b}),new nL(d/1E3)]),BL:C(K),adLayoutLoggingData:v}})]:new M("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:B})}; Nx0=function(f,e,B,n,r,L,d,t){f=myM(f,B,L,d,n,H=>{var k=H.slotId;H=t(H);k=na(e.G.get(),"LAYOUT_TYPE_FORECASTING",k);const C={layoutId:k,layoutType:"LAYOUT_TYPE_FORECASTING",hL:"core"},w=new Map,v=r.impressionUrls;v&&w.set("impression",v);return{layoutId:k,layoutType:"LAYOUT_TYPE_FORECASTING",bC:w,layoutExitNormalTriggers:[new Fz(e.C,k)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:"core",clientMetadata:new Vl([new UyO(r), new PV(B)]),BL:H(C)}}); return f instanceof M?f:[f]}; gB6=function(f,e,B,n,r,L,d){return[hbG(f,L,n,t=>{var H=t.slotId;t=d(t);H=na(e.G.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",H);const k={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",hL:"core"};return{layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",bC:new Map,layoutExitNormalTriggers:[new jD(e.C,L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:"core",clientMetadata:new Vl([new vf(r), new PV(B)]),BL:t(k),adLayoutLoggingData:r.adLayoutLoggingData}})]}; EBd=function(f,e,B,n,r,L,d,t){f=Sv5(f,B,L,d,n,(H,k)=>{var C=H.slotId;H=t(H);var w=r.contentSupportedRenderer;w?w.textOverlayAdContentRenderer?(w=na(e.G.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",C),k=Pf(e,w,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",r,B,H,IZ(e,k,C))):w.enhancedTextOverlayAdContentRenderer?(w=na(e.G.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",C),k=Pf(e,w,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",r,B,H,IZ(e,k,C))):w.imageOverlayAdContentRenderer?(w=na(e.G.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", C),k=IZ(e,k,C),k.push(new Q5(e.C,45E3,w)),k=Pf(e,w,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",r,B,H,k)):k=new WK("InvideoOverlayAdRenderer without appropriate sub renderer"):k=new WK("InvideoOverlayAdRenderer without contentSupportedRenderer");return k}); return f instanceof M?f:[f]}; DyY=function(f,e,B,n,r,L,d,t,H){const k=Number(n.durationMilliseconds);return isNaN(k)?new M("Expected valid duration for AdActionInterstitialRenderer."):C=>QB6(e,C.slotId,B,k,{impressionCommands:void 0,abandonCommands:n.abandonCommands?[{commandExecutorCommand:n.abandonCommands}]:void 0,completeCommands:n.completionCommands},n.skipPings?new Map([["skip",n.skipPings]]):new Map,d(C),w=>Txw(f,w,r,(v,b)=>{var K=v.slotId;v=d(v);K=na(e.G.get(),"LAYOUT_TYPE_ENDCAP",K);return Bf(e,K,b,B,v,"LAYOUT_TYPE_ENDCAP", [new OsY(n),t],n.adLayoutLoggingData)}),H,L-1,n.adLayoutLoggingData,L)}; Jld=function(f,e,B,n){if(!B.playerVars)return new M("No playerVars available in AdIntroRenderer.");const r=C$(B.playerVars);r.autoplay="1";return L=>{var d=L.slotId;L=n(L);d=na(f.G.get(),"LAYOUT_TYPE_MEDIA",d);const t={layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA",hL:"adapter"};return{Fq:{layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA",bC:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:"adapter", clientMetadata:new Vl([new bsw,new PV(e),new z5({current:null}),new ku(r)]),BL:L(t)},DF:[new uX(f.C,d,["error"])],qz:[],pC:[],LC:[]}}}; GwC=function(f,e,B,n,r,L,d,t,H,k=!1){const C=fL(r);if(!QS0(r,k))return new M("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:r});if(C<=0)return new M("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:r});const w=ZNC(f,e,r,L,B,n,d);return w instanceof M?w:v=>M45(e,v.slotId,B,C,et(r),d(v),w,t,H)}; W95=function(f,e,B,n,r,L,d,t){if(!(!isNaN(Number(r.timeoutSeconds))&&r.text&&r.ctaButton&&g.u(r.ctaButton,$u)&&r.brandImage&&r.backgroundImage&&g.u(r.backgroundImage,i4)&&g.u(r.backgroundImage,i4)?.landscape))return new M("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:r});const H=r.timeoutSeconds*1E3,k=(w,v)=>{var b=w.slotId;w=d(w);b=na(e.G.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",b);return Bf(e,b,v,B,w,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT", [new xyd(r),L],r.adLayoutLoggingData)},C=w=>Txw(f,w,n,k); return w=>{var v=w.slotId,b={impressionCommands:r.impressionCommands,completeCommands:r.timeoutCommands,skipCommands:r.dismissCommands};w=d(w);v=f6(e,v,B,H,b,new Map,w,C);b=new Qf(v.xG);w=new T5(t);return{Fq:{layoutId:v.layoutId,layoutType:v.layoutType,bC:v.bC,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:v.hL,clientMetadata:new Vl([...v.VJ,b,w]),BL:v.BL,adLayoutLoggingData:v.adLayoutLoggingData}, DF:[],qz:v.layoutExitMuteTriggers,pC:v.layoutExitUserInputSubmittedTriggers,LC:v.layoutExitUserCancelledTriggers,Xi:v.Xi}}}; X1H=function(f,e,B,n,r,L,d,t,H,k,C,w,v,b,K,Y){f=Zf(f,"SLOT_TYPE_PLAYER_BYTES");n=gD0(e,d,n,r,f,k,C);if(n instanceof M)return n;d=n.clientMetadata.RA("metadata_type_fulfilled_layout")?.layoutId;if(!d)return new M("Invalid adNotify layout");e=sB0(d,e,B,r,L,H,t,k,w,v,b,K,Y);return e instanceof M?e:[n,...e]}; sB0=function(f,e,B,n,r,L,d,t,H,k,C,w,v){B=ylY(e,B,n,L,d,t,H,k,C,w,v);Pz5(L)?(n=Is6(e,f),f=Zf(e.G.get(),"SLOT_TYPE_IN_PLAYER"),L=na(e.G.get(),"LAYOUT_TYPE_SURVEY",f),t=eE(e,n,t),e=[...t.slotExpirationTriggers,new hc(e.C,L)],f=B({slotId:t.slotId,slotType:t.slotType,slotPhysicalPosition:t.slotPhysicalPosition,slotEntryTrigger:t.slotEntryTrigger,slotFulfillmentTriggers:t.slotFulfillmentTriggers,slotExpirationTriggers:e,hL:t.hL},{slotId:f,layoutId:L}),r=f instanceof M?f:{gw:{...t,slotExpirationTriggers:e, clientMetadata:new Vl([new Xc(f.layout)]),adSlotLoggingData:r},Zr:f.Zr}):r=TZG(e,f,t,r,B);return r instanceof M?r:[...r.Zr,r.gw]}; is5=function(f,e,B,n,r,L,d,t,H,k,C,w,v,b){e=ylY(f,e,B,r,L,d,H,k,C,w,v,b);Pz5(r)?(d=$y5(f,B,d,t),d instanceof M?f=d:(t=Zf(f.G.get(),"SLOT_TYPE_IN_PLAYER"),H=na(f.G.get(),"LAYOUT_TYPE_SURVEY",t),r=[...d.slotExpirationTriggers,new hc(f.C,H)],t=e({slotId:d.slotId,slotType:d.slotType,slotPhysicalPosition:d.slotPhysicalPosition,hL:d.hL,slotEntryTrigger:d.slotEntryTrigger,slotFulfillmentTriggers:d.slotFulfillmentTriggers,slotExpirationTriggers:r},{slotId:t,layoutId:H}),f=t instanceof M?t:{gw:{slotId:d.slotId, slotType:d.slotType,slotPhysicalPosition:d.slotPhysicalPosition,slotEntryTrigger:d.slotEntryTrigger,slotFulfillmentTriggers:d.slotFulfillmentTriggers,slotExpirationTriggers:r,hL:d.hL,clientMetadata:new Vl([new Xc(t.layout),new l4({kD:f.kD(B)})]),adSlotLoggingData:n},Zr:t.Zr})):f=Dgd(f,B,d,t,n,H.sA,e);return f instanceof M?f:f.Zr.concat(f.gw)}; Pz5=function(f){for(const e of f)if(g.u(e,rk))return!0;return!1}; ylY=function(f,e,B,n,r,L,d,t,H,k,C,w){return(v,b)=>{if(St(C)&&E$(C))a:{var K=f4g(n);if(K instanceof M)b=K;else{var Y=0,l=[],m=[],F=[],N=[],E=[],Lw=[],d6=new B$,TO=new gY({current:null}),AY=!1,Dl=[],W5=0,lP=[];for(var JY=0;JY0?K:-1;continue}if(Y2=g.u(JY,S1)){JY=DyY(f,e,B,Y2,L,Y,t,TO,K);if(JY instanceof M){b= JY;break a}JY=JY(v);l.push(JY.Fq);m=[...JY.DF,...m];F=[...JY.qz,...F];JY.Xi&&(Dl=[JY.Xi,...Dl]);continue}if(Y2=g.u(JY,rk)){if(b===void 0){b=new M("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Y2});break a}JY=GwC(f,e,B,L,Y2,d6,t,b,Y,BP(C,"supports_multi_step_on_desktop"));if(JY instanceof M){b=JY;break a}JY=JY(v);l.push(JY.Fq);JY.Xi&&Dl.push(JY.Xi);m=[...JY.DF,...m];F=[...JY.qz,...F];N=[...JY.pC,...N];E=[...JY.LC,...E];Lw=[d6,...Lw];continue}if(JY= g.u(JY,Lj)){JY=W95(f,e,B,L,JY,d6,t,Y);if(JY instanceof M){b=JY;break a}JY=JY(v);l.push(JY.Fq);JY.Xi&&Dl.push(JY.Xi);F=[...JY.qz,...F]}else{b=new M("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}}b={LV:l,layoutExitSkipTriggers:m,layoutExitUserInputSubmittedTriggers:N,layoutExitUserCancelledTriggers:E,layoutExitMuteTriggers:F,VJ:Lw,Zr:Dl}}}else a:if(lP=f4g(n),lP instanceof M)b=lP;else{A5=0;l=[];m=[];F=[];N=[];E=[];Lw=[];d6=new B$;TO=new gY({current:null});AY=!1;Dl=[];W5=-1;for(Y of n)if(g.u(Y, nj)){K=Jld(e,B,g.u(Y,nj),t);if(K instanceof M){b=K;break a}K=K(v);l.push(K.Fq);m=[...K.DF,...m];F=[...K.qz,...F];K.Xi&&(Dl=[K.Xi,...Dl])}else if(g.u(Y,BV)){W5=Yu(g.u(Y,BV));if(W5 instanceof WK){b=new M(W5);break a}K=new dY(A5,lP);K=eLm(e,W5.layoutId,W5.dc,B,AZ(W5.playerVars,W5.IY,d,k,K),W5.Xf,L,K,t(v),TO,H.get(W5.dc.externalVideoId),void 0,w);A5++;l.push(K.Fq);m=[...K.DF,...m];F=[...K.qz,...F];AY||(Lw.push(TO),AY=!0);W5=(W5=W5.dc.adPodSkipTarget)&&W5>0?W5:-1}else if(g.u(Y,S1)){K=DyY(f,e,B,g.u(Y,S1), L,A5,t,TO,W5);if(K instanceof M){b=K;break a}K=K(v);l.push(K.Fq);m=[...K.DF,...m];F=[...K.qz,...F];K.Xi&&(Dl=[K.Xi,...Dl])}else if(g.u(Y,rk)){if(b===void 0){b=new M("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.u(Y,rk)});break a}K=GwC(f,e,B,L,g.u(Y,rk),d6,t,b,A5,BP(C,"supports_multi_step_on_desktop"));if(K instanceof M){b=K;break a}K=K(v);l.push(K.Fq);K.Xi&&Dl.push(K.Xi);m=[...K.DF,...m];F=[...K.qz,...F];N=[...K.pC,...N];E=[...K.LC,...E]; Lw=[d6,...Lw]}else if(g.u(Y,Lj)){K=W95(f,e,B,L,g.u(Y,Lj),d6,t,A5);if(K instanceof M){b=K;break a}K=K(v);l.push(K.Fq);K.Xi&&Dl.push(K.Xi);F=[...K.qz,...F]}else{b=new M("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}b={LV:l,layoutExitSkipTriggers:m,layoutExitUserInputSubmittedTriggers:N,layoutExitUserCancelledTriggers:E,layoutExitMuteTriggers:F,VJ:Lw,Zr:Dl}}b instanceof M?v=b:(E=v.slotId,A5=b.LV,Y=b.layoutExitSkipTriggers,l=b.layoutExitMuteTriggers,m=b.layoutExitUserInputSubmittedTriggers, F=b.VJ,v=t(v),N=r?r.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",E=r?r.layoutId:na(e.G.get(),N,E),Lw={layoutId:E,layoutType:N,hL:"core"},v={layout:{layoutId:E,layoutType:N,bC:new Map,layoutExitNormalTriggers:[new Fz(e.C,E)],layoutExitSkipTriggers:Y,layoutExitMuteTriggers:l,layoutExitUserInputSubmittedTriggers:m,layoutExitUserCancelledTriggers:[],hL:"core",clientMetadata:new Vl([new BSl(A5),...F]),BL:v(Lw)},Zr:b.Zr});return v}}; f4g=function(f){const e=[];for(const B of f){if(!g.u(B,BV))continue;f=Yu(g.u(B,BV));if(f instanceof WK)return new M(f);e.push(f.Xf)}return e}; rnk=function(f,e,B,n,r,L,d,t=!1){if(!QS0(B,t))return new M("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:B});const H=fL(B);if(H<=0)return new M("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:B});const k=new B$,C=ZNC(f,e,B,k,n,L,d);return nIC(f,n,L,H,r,(w,v)=>{var b=w.slotId,K=et(B);w=d(w);b=na(e.G.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);const Y={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",hL:"core"},l=C(b,v),m=l.clientMetadata.RA("metadata_type_fulfilled_layout"); m||NL("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");K=[new PV(n),new xu(H),new rY(K),k];m&&K.push(new Wf(m.layoutType));return{K4:{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",bC:new Map,layoutExitNormalTriggers:[new Fz(e.C,b)],layoutExitSkipTriggers:[new mw(e.C,v.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new Nz(e.C,v.layoutId)],layoutExitUserCancelledTriggers:[],hL:"core",clientMetadata:new Vl(K), BL:w(Y)},q3:l}})}; LCk=function(f){if(!JpC(f))return!1;const e=g.u(f.adVideoStart,n6);return e?g.u(f.linearAd,BV)&&Iw(e)?!0:(NL("Invalid Sandwich with notify"),!1):!1}; dMw=function(f){if(f.linearAds==null)return!1;f=g.u(f.adStart,n6);return f?Iw(f)?!0:(NL("Invalid LASR with notify"),!1):!1}; tYY=function(f){if(!DIl(f))return!1;f=g.u(f.adStart,n6);return f?Iw(f)?!0:(NL("Invalid LASR with notify"),!1):!1}; cV=function(f,e,B,n,r,L,d,t,H,k,C){const w=[];if(e.length===0&&n.length===0&&B.length===0)return w;e=e.filter($s);const v=B.filter(hcO),b=n.filter($s),K=new Map,Y=s6g(e),l=B.some(Lw=>Lw?.adSlotMetadata?.slotType==="SLOT_TYPE_PLAYER_BYTES"),m=B.some(Lw=>Lw?.adSlotMetadata?.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"),F=B.some(Lw=>Lw?.adSlotMetadata?.slotType==="SLOT_TYPE_IN_PLAYER"),N=B.some(Lw=>Lw?.adSlotMetadata?.slotType==="SLOT_TYPE_BELOW_PLAYER"||Lw?.adSlotMetadata?.slotType==="SLOT_TYPE_ABOVE_FEED"), E=B.some(Lw=>Lw?.adSlotMetadata?.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"); B=B.some(Lw=>Lw?.adSlotMetadata?.slotType==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"); if(l||m||F||N||E||B)k=nBd(v,e,t,r,Y,f.I6.get(),f.loadPolicy,K,f.iY.get(),f.V.get(),F,d,H,k,C),k instanceof M?NL(k,void 0,void 0,{contentCpn:r}):w.push(...k);for(const Lw of e)k=Hik(f,K,Lw,r,L,d,l,t,Y,H,v,f.iY.get().Z.S().experiments.SI("html5_enable_triggering_cuepoint_for_slot")?C:void 0),k instanceof M?NL(k,void 0,void 0,{renderer:Lw.renderer,config:Lw.config.adPlacementConfig,kind:Lw.config.adPlacementConfig.kind,contentCpn:r,daiEnabled:d}):w.push(...k);kqM(f.iY.get())||(L=CoY(f,b,r,t,Y,K),w.push(...L)); if(f.J===null||d&&!t.XT)return f=t.sA&&e.length===1&&e[0].config?.adPlacementConfig?.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&e[0].renderer?.adBreakServiceRenderer,w.length||f||NL("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":e.length,contentCpn:r,"first APR kind":e[0]?.config?.adPlacementConfig?.kind,renderer:e[0]?.renderer}),w;n=n.filter($s);w.push(...Csd(K,n,f.G.get(),f.J,r,l));w.length||NL("Expected slots parsed from AdPlacementRenderers", void 0,void 0,{"AdPlacementRenderer count":e.length,contentCpn:r,daiEnabled:d.toString(),"first APR kind":e[0]?.config?.adPlacementConfig?.kind,renderer:e[0]?.renderer});return w}; Hik=function(f,e,B,n,r,L,d,t,H,k,C,w){const v=B.renderer,b=B.config.adPlacementConfig,K=b.kind,Y=B.adSlotLoggingData,l=F=>oM(f.I6.get(),F); var m=t.XT&&K==="AD_PLACEMENT_KIND_START";m=L&&!m;if(v.adsEngagementPanelRenderer!=null)return iX(e,B.elementId,K,v.adsEngagementPanelRenderer.isContentVideoEngagementPanel,v.adsEngagementPanelRenderer.adVideoId,v.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,b,Y,(F,N,E,Lw)=>{var d6=f.C.get(),TO=F.slotId,AY=v.adsEngagementPanelRenderer;F=oM(f.I6.get(),F);return rd(d6,TO,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new wo6(AY),N,E,AY.impressionPings,F,v.adsEngagementPanelRenderer.adLayoutLoggingData, Lw)}),[]; if(v.adsEngagementPanelLayoutViewModel)return iX(e,B.elementId,K,v.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,v.adsEngagementPanelLayoutViewModel.adVideoId,v.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,b,Y,(F,N,E,Lw)=>{var d6=f.C.get(),TO=F.slotId,AY=v.adsEngagementPanelLayoutViewModel;F=oM(f.I6.get(),F);return L6(d6,TO,"LAYOUT_TYPE_PANEL",new vIO(AY),N,E,F,v.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,Lw)}),[]; if(v.actionCompanionAdRenderer!=null){if(v.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return r7m(f.G.get(),f.J,f.C.get(),v.actionCompanionAdRenderer,b,Y,n,l);iX(e,B.elementId,K,v.actionCompanionAdRenderer.isContentVideoCompanion,v.actionCompanionAdRenderer.adVideoId,v.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,b,Y,(F,N,E,Lw)=>{var d6=f.C.get(),TO=F.slotId,AY=v.actionCompanionAdRenderer;F=oM(f.I6.get(),F);return rd(d6,TO,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new nDG(AY),N,E,AY.impressionPings,F,v.actionCompanionAdRenderer.adLayoutLoggingData,Lw)})}else if(v.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(v.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return dgk(f.G.get(),f.J,f.C.get(),v.topBannerImageTextIconButtonedLayoutViewModel,b,Y,n,l); iX(e,B.elementId,K,v.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,v.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,v.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,b,Y,(F,N,E,Lw)=>{var d6=f.C.get(),TO=F.slotId,AY=v.topBannerImageTextIconButtonedLayoutViewModel;F=oM(f.I6.get(),F);return L6(d6,TO,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new L0Y(AY),N,E,F,v.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,Lw)})}else if(v.imageCompanionAdRenderer)iX(e, B.elementId,K,v.imageCompanionAdRenderer.isContentVideoCompanion,v.imageCompanionAdRenderer.adVideoId,v.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,b,Y,(F,N,E,Lw)=>{var d6=f.C.get(),TO=F.slotId,AY=v.imageCompanionAdRenderer; F=oM(f.I6.get(),F);return rd(d6,TO,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new biC(AY),N,E,AY.impressionPings,F,v.imageCompanionAdRenderer.adLayoutLoggingData,Lw)}); else if(v.bannerImageLayoutViewModel)iX(e,B.elementId,K,v.bannerImageLayoutViewModel.isContentVideoCompanion,v.bannerImageLayoutViewModel.adVideoId,v.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,b,Y,(F,N,E,Lw)=>{var d6=f.C.get(),TO=F.slotId,AY=v.bannerImageLayoutViewModel;F=oM(f.I6.get(),F);return L6(d6,TO,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Zi0(AY),N,E,F,v.bannerImageLayoutViewModel.adLayoutLoggingData,Lw)}); else if(v.shoppingCompanionCarouselRenderer)iX(e,B.elementId,K,v.shoppingCompanionCarouselRenderer.isContentVideoCompanion,v.shoppingCompanionCarouselRenderer.adVideoId,v.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,b,Y,(F,N,E,Lw)=>{var d6=f.C.get(),TO=F.slotId,AY=v.shoppingCompanionCarouselRenderer;F=oM(f.I6.get(),F);return rd(d6,TO,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new RLw(AY),N,E,AY.impressionPings,F,v.shoppingCompanionCarouselRenderer.adLayoutLoggingData,Lw)}); else if(v.adBreakServiceRenderer){if(B.renderer?.adBreakServiceRenderer?.getAdBreakUrl===void 0)return[];if(K==="AD_PLACEMENT_KIND_PAUSE")return fRg(f.G.get(),b,Y,B.renderer.adBreakServiceRenderer,n);if(K!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&K!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return P10(f.G.get(),b,Y,B.renderer.adBreakServiceRenderer,n,r,L);t.sA||NL("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:K,adPlacementConfig:b,daiEnabledForContentVideo:String(L), isServedFromLiveInfra:String(t.sA),clientPlaybackNonce:t.clientPlaybackNonce});if(K==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!f.Q9)return new M("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!f.Bs)return new M("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");f.Bs.eP({adPlacementRenderer:B,contentCpn:n,Wr:r});r=f.Q9.get().getCurrentTimeSec(1,!1);return KCl(f.G.get(),B.renderer.adBreakServiceRenderer, b,r,n,Y,L)}if(!f.pW)return new M("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");f.pW.eP({adPlacementRenderer:B,contentCpn:n,Wr:r})}else{if(v.clientForecastingAdRenderer)return Nx0(f.G.get(),f.C.get(),b,Y,v.clientForecastingAdRenderer,n,r,l);if(v.invideoOverlayAdRenderer)return EBd(f.G.get(),f.C.get(),b,Y,v.invideoOverlayAdRenderer,n,r,l);if(v.instreamAdPlayerOverlayRenderer)return gB6(f.G.get(),f.C.get(),b,Y,v.instreamAdPlayerOverlayRenderer, n,l);if((v.linearAdSequenceRenderer||v.instreamVideoAdRenderer)&&m)return F0M(f.G.get(),f.C.get(),B,n,l,k,w);if(v.linearAdSequenceRenderer&&!m){if(d)return[];I8(e,v,K);if(v.linearAdSequenceRenderer.adLayoutMetadata){if(!DIl(v.linearAdSequenceRenderer))return new M("Received invalid LinearAdSequenceRenderer.")}else if(v.linearAdSequenceRenderer.linearAds==null)return new M("Received invalid LinearAdSequenceRenderer.");if(g.u(v.linearAdSequenceRenderer.adStart,n6)){NL("Found AdNotify in LinearAdSequenceRenderer"); B=g.u(v.linearAdSequenceRenderer.adStart,n6);if(!(B?.durationMs!=null&&B?.durationMs>0))return new M("Invalid AdMessageRenderer.");L=v.linearAdSequenceRenderer.linearAds;return X1H(f.V.get(),f.G.get(),f.C.get(),f.I6.get(),b,Y,B,GS(v.linearAdSequenceRenderer.adLayoutMetadata)?v.linearAdSequenceRenderer.adLayoutMetadata:void 0,L,n,r,t,l,H,f.loadPolicy,f.iY.get())}return is5(f.G.get(),f.C.get(),b,Y,v.linearAdSequenceRenderer.linearAds,GS(v.linearAdSequenceRenderer.adLayoutMetadata)?v.linearAdSequenceRenderer.adLayoutMetadata: void 0,n,r,t,l,H,f.loadPolicy,f.iY.get(),C)}if(!v.remoteSlotsRenderer||L){if(v.instreamVideoAdRenderer&&!m){if(d)return[];I8(e,v,K);return J7H(f.G.get(),f.C.get(),b,Y,v.instreamVideoAdRenderer,n,r,t,l,H,f.loadPolicy,f.iY.get(),f.I6.get(),C)}if(v.instreamSurveyAdRenderer)return rnk(f.G.get(),f.C.get(),v.instreamSurveyAdRenderer,b,Y,n,l,BP(f.iY.get(),"supports_multi_step_on_desktop"));if(v.sandwichedLinearAdRenderer!=null)return JpC(v.sandwichedLinearAdRenderer)?g.u(v.sandwichedLinearAdRenderer.adVideoStart, n6)?(NL("Found AdNotify in SandwichedLinearAdRenderer"),B=g.u(v.sandwichedLinearAdRenderer.adVideoStart,n6),B?.durationMs!=null&&B?.durationMs>0?(L=g.u(v.sandwichedLinearAdRenderer.linearAd,BV))?EDG(B,L,b,f.V.get(),f.G.get(),f.C.get(),f.I6.get(),Y,n,r,t,l,H,f.loadPolicy,f.iY.get()):new M("Missing IVAR from Sandwich"):new M("Invalid AdMessageRenderer.")):is5(f.G.get(),f.C.get(),b,Y,[v.sandwichedLinearAdRenderer.adVideoStart,v.sandwichedLinearAdRenderer.linearAd],void 0,n,r,t,l,H,f.loadPolicy,f.iY.get()): new M("Received invalid SandwichedLinearAdRenderer.");if(v.videoAdTrackingRenderer!=null)return F9C(f.G.get(),f.C.get(),v.videoAdTrackingRenderer,b,Y,n,r,t.aR,l)}}return[]}; CoY=function(f,e,B,n,r,L){const d=C=>oM(f.I6.get(),C),t=[]; for(const C of e){e=C.renderer;var H=e.sandwichedLinearAdRenderer,k=e.linearAdSequenceRenderer;H&&LCk(H)?(NL("Found AdNotify with SandwichedLinearAdRenderer"),k=g.u(H.adVideoStart,n6),H=g.u(H.linearAd,BV),I8(L,e,C.config.adPlacementConfig.kind),e=SVl(k?.layout.layoutId,f.G.get(),f.C.get(),C.config.adPlacementConfig,C.adSlotLoggingData,H,B,n,d,r,f.loadPolicy,f.iY.get(),f.I6.get()),e instanceof M?NL(e):t.push(...e)):k&&(!k.adLayoutMetadata&&dMw(k)||k.adLayoutMetadata&&tYY(k))&&(NL("Found AdNotify with LinearAdSequenceRenderer"), I8(L,e,C.config.adPlacementConfig.kind),e=sB0(g.u(k.adStart,n6)?.layout.layoutId,f.G.get(),f.C.get(),C.config.adPlacementConfig,C.adSlotLoggingData,k.linearAds,GS(k.adLayoutMetadata)?k.adLayoutMetadata:void 0,B,n,d,r,f.loadPolicy,f.iY.get()),e instanceof M?NL(e):t.push(...e))}return t}; kt=function(f,e,B){const n=f.Q9.get().getCurrentTimeSec(1,!1);f.iY.get().Z.S().wA()&&UP(f.Ud.get(),"sdai",`onopp.1;evt.${B.event};start.${B.startSecs.toFixed(3)};d.${B.Kc.toFixed(3)}`);by(f.G.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",()=>{var r=f.J.get(),L=e.adPlacementRenderer.renderer.adBreakServiceRenderer,d=e.contentCpn,t=e.adPlacementRenderer.adSlotLoggingData;dd(f.iY.get());var H=f.Ud;var k=r.iY.get();k=g.tS(k.Z.S().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var C=r.iY.get();var w=g.tS(C.Z.S().experiments,"min_prefetch_offset_sec_for_livestream_optimization");{C=B.startSecs*1E3;C={GE:new zK(C,C+B.Kc*1E3),VA:!1,cueProcessedMs:n*1E3};const b=B.startSecs+B.Kc;if(n===0)C.qG=new zK(0,b*1E3);else{w=B.startSecs-w;var v=w-n;C.qG=v<=0?new zK(w*1E3,b*1E3):new zK(Math.floor(n+Math.random()*Math.min(v,k))*1E3,b*1E3)}k=C}L=Y9(r,L,d,k,t,[new qU0(B)]);H$(r.iY.get())&&UP(H.get(),"abrsm",`cpi.${B.identifier};cps.${B.startSecs};cpd.${B.Kc};cts.${n};rbf.${k.qG.start}`); H.get().Z.ip(B.startSecs-n,k.qG.start/1E3-n);return[L]})}; C6=function(f){const e=f.clientMetadata.RA("metadata_type_player_bytes_callback_ref")?.current;if(!e)return null;const B=f.clientMetadata.RA("metadata_type_ad_pod_skip_target_callback_ref");var n=f.layoutId,r=f.clientMetadata.RA("metadata_type_content_cpn"),L=f.clientMetadata.RA("metadata_type_instream_ad_player_overlay_renderer"),d=f.clientMetadata.RA("metadata_type_player_overlay_layout_renderer"),t=f.clientMetadata.RA("metadata_type_player_underlay_renderer"),H=f.clientMetadata.RA("metadata_type_ad_placement_config"), k=f.clientMetadata.RA("metadata_type_video_length_seconds");var C=aM(f.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?f.clientMetadata.RA("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):aM(f.clientMetadata,"metadata_type_layout_enter_ms")&&aM(f.clientMetadata,"metadata_type_layout_exit_ms")?(f.clientMetadata.RA("metadata_type_layout_exit_ms")-f.clientMetadata.RA("metadata_type_layout_enter_ms"))/1E3:void 0;return{ma:n,contentCpn:r,IK:e,Yn:B,instreamAdPlayerOverlayRenderer:L,playerOverlayLayoutRenderer:d, instreamAdPlayerUnderlayRenderer:t,adPlacementConfig:H,videoLengthSeconds:k,vR:C,inPlayerLayoutId:f.clientMetadata.RA("metadata_type_linked_in_player_layout_id"),inPlayerSlotId:f.clientMetadata.RA("metadata_type_linked_in_player_slot_id")}}; a4G=function(f,e){return zL5(f,e)}; poH=function(f,e){e=zL5(f,e);if(!e)return null;e.vR=f.clientMetadata.RA("metadata_type_ad_pod_info")?.adBreakRemainingLengthSeconds;return e}; zL5=function(f,e){const B=f.clientMetadata.RA("metadata_type_player_bytes_callback_ref")?.current;if(!B)return null;const n=hed(f,e);return{Ut:NFC(f,e),adPlacementConfig:f.clientMetadata.RA("metadata_type_ad_placement_config"),Bf:n,contentCpn:f.clientMetadata.RA("metadata_type_content_cpn"),inPlayerLayoutId:f.clientMetadata.RA("metadata_type_linked_in_player_layout_id"),inPlayerSlotId:f.clientMetadata.RA("metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:f.clientMetadata.RA("metadata_type_instream_ad_player_overlay_renderer"), playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,vR:void 0,IK:B,ma:f.layoutId,videoLengthSeconds:f.clientMetadata.RA("metadata_type_video_length_seconds")}}; cng=function(f,e,B){return xg5(f.C.get(),e.contentCpn,e.ma,n=>W0l(f.G.get(),n.slotId,B,e.adPlacementConfig,e.ma,oM(f.I6.get(),n)))}; by=function(f,e,B,n){f.C().wR(e,n);B=B();f=f.C();f.nh.C("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",e,n,B);for(const t of B)a:{e=f;N6(e.nh,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",t);N6(e.nh,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",t);try{var r=e.C;if(g.eU(t.slotId))throw new M("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(my(r,t))throw new M("Duplicate registration for slot.",{slotId:t.slotId,slotEntryTriggerType:t.slotEntryTrigger.triggerType},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT"); if(!r.vt.Wz.has(t.slotType))throw new M("No fulfillment adapter factory registered for slot of type: "+t.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!r.vt.B3.has(t.slotType))throw new M("No SlotAdapterFactory registered for slot of type: "+t.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");$3(r,"TRIGGER_CATEGORY_SLOT_ENTRY",t.slotEntryTrigger?[t.slotEntryTrigger]:[]);$3(r,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",t.slotFulfillmentTriggers);$3(r, "TRIGGER_CATEGORY_SLOT_EXPIRATION",t.slotExpirationTriggers);var L=e.C;const H=`${t.slotType}_${t.slotPhysicalPosition}`,k=SG(L,H);if(my(L,t))throw new M("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");k.set(t.slotId,new YUG(t));L.C.set(H,k)}catch(H){H instanceof M&&H.m_?(GU(e.nh,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",H.m_,t),NL(H,t,void 0,void 0,H.v$)):(GU(e.nh,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",t),NL(H, t));break a}my(e.C,t).U=!0;try{var d=e.C;const H=my(d,t),k=t.slotEntryTrigger,C=d.vt.LF.get(k.triggerType);C&&(C.PJ("TRIGGER_CATEGORY_SLOT_ENTRY",k,t,null),H.Cq.set(k.triggerId,C));for(const b of t.slotFulfillmentTriggers){const K=d.vt.LF.get(b.triggerType);K&&(K.PJ("TRIGGER_CATEGORY_SLOT_FULFILLMENT",b,t,null),H.Ed.set(b.triggerId,K))}for(const b of t.slotExpirationTriggers){const K=d.vt.LF.get(b.triggerType);K&&(K.PJ("TRIGGER_CATEGORY_SLOT_EXPIRATION",b,t,null),H.N.set(b.triggerId,K))}const w=d.vt.Wz.get(t.slotType).get().build(d.J, t);H.X=w;const v=d.vt.B3.get(t.slotType).get().build(d.W,t);v.init();H.G=v}catch(H){H instanceof M&&H.m_?(GU(e.nh,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",H.m_,t),NL(H,t,void 0,void 0,H.v$)):(GU(e.nh,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",t),NL(H,t));EF(e,t,!0);break a}N6(e.nh,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",t);e.C.MD(t);for(const H of e.G)H.MD(t);TU(e,t)}}; G2l=function(f,e){var B=0x8000000000000;let n=0,r=0x8000000000000;for(const H of e.slotFulfillmentTriggers){if(!(H instanceof gk)){NL("Found unexpected fulfillment trigger for throttled slot.",e,null,{fulfillmentTrigger:H});continue}const k=H.C.start;B=Math.min(B,k);n=Math.max(n,H.C.end);H.visible&&(r=Math.min(r,k))}const {startMs:L,endMs:d,S$:t}={startMs:B,endMs:n,S$:r<0x8000000000000&&B0&&Ql(f.U(),L)}; oI0=function(f,e){e=(e.Kc+1)*1E3;let B=void 0;for(const {trigger:n,slot:r}of f.RX.values())n instanceof Mz&&n.breakDurationMs<=e&&(!B||n.breakDurationMs>B.trigger.breakDurationMs)&&(B={slot:r,trigger:n});return B}; VY0=function(f){const e=[];for(const {trigger:B}of f.RX.values())B instanceof Mz&&e.push(B.breakDurationMs);return e}; qw=function(f){f.C=null;f.RX.clear();f.G&&f.G.stop();f.W&&f.W.stop();f.J?.stop();delete f.J}; uD0=function(f){UP(f.Ud.get(),"ads_ce",`bdc.${VY0(f).length};fi.${!!f.C};fet.${!!f.G}`);f.C&&(f.V=!0,f.G&&(f.G.stop(),f.G.start()),l4G(f,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; FCH=function(f){f=f.adPlacementRenderer.config.adPlacementConfig;if(f.prefetchModeConfig&&f.prefetchModeConfig.cacheFetchRefreshDurationMs&&(f=Number(f.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(f)||f<=0)))return f}; l4G=function(f,e){const B=[];for(const n of f.RX.values())n.trigger.triggerType===e&&B.push(n);B.length>0&&Ql(f.U(),B)}; mMY=function(f){f=f.adPlacementRenderer.config.adPlacementConfig;if(!f.prefetchModeConfig||!f.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;f=Number(f.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(f)||f<=0?0:Math.floor(Math.random()*f)}; UMk=function(f,e){const B=[];if(e=f.C.get(e.layoutId))for(const n of e)(e=f.G.get(n.triggerId))&&B.push(e);return B}; ph=function(f){switch(f){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; NSM=function(f){switch(f){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; hL5=function(f,e){const B={slotId:Zf(e,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],hL:"surface",clientMetadata:new Vl([])};e=na(e,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",B.slotId);e={layoutId:e,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",bC:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], hL:"surface",clientMetadata:new Vl([]),BL:oXm(!1,B.slotId,B.slotType,B.slotPhysicalPosition,B.hL,B.slotEntryTrigger,B.slotFulfillmentTriggers,B.slotExpirationTriggers,e,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return{...f,A8:!0,slot:B,layout:e}}; ypO=function(f,e,B,n){var r=f.kind;n=n?!1:!f.hideCueRangeMarker;switch(r){case "AD_PLACEMENT_KIND_START":return n={GE:new zK(-0x8000000000000,-0x8000000000000),VA:n},B!=null&&(n.qG=new zK(-0x8000000000000,-0x8000000000000)),n;case "AD_PLACEMENT_KIND_END":return n={GE:new zK(0x7ffffffffffff,0x8000000000000),VA:n},B!=null&&(n.qG=new zK(Math.max(0,e-B),0x8000000000000)),n;case "AD_PLACEMENT_KIND_MILLISECONDS":r=f.adTimeOffset;r.offsetStartMilliseconds||NL("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); r.offsetEndMilliseconds||NL("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");f=Number(r.offsetStartMilliseconds);r=Number(r.offsetEndMilliseconds);r===-1&&(r=e);if(Number.isNaN(f)||Number.isNaN(r)||f>r)return new M("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:f,offsetEndMs:r},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",r===e&&f-500<=r);n={GE:new zK(f,r),VA:n};if(B!=null){f=Math.max(0,f-B);if(f===r)return n;n.qG=new zK(f,r)}return n; default:return new M("AdPlacementKind not supported in convertToRange.",{kind:r,adPlacementConfig:f})}}; gIg=function(f){if(!f||!f.adPlacements&&!f.adSlots)return!1;for(const e of f.adPlacements||[]){if(!e)continue;const B=e.adPlacementRenderer;if(B!=null&&(B.config&&B.config.adPlacementConfig&&B.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0}for(const e of f.adSlots||[])if(g.u(e,R8)?.adSlotMetadata?.triggerEvent==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0;return!1}; Zf=function(f,e){if(z0(f.iY.get())){let B=f.G.get(e)||0;B++;f.G.set(e,B);return`${e}_${B}`}return g.HR(16)}; s$=function(f,e){if(z0(f.iY.get())){let B=f.J.get(e)||0;B++;f.J.set(e,B);return`${e}_${B}`}return g.HR(16)}; na=function(f,e,B){if(z0(f.iY.get())){let n=f.C.get(e)||0;n++;f.C.set(e,n);return`${B}_${e}_${n}`}return g.HR(16)}; EIk=function(f){const e=[new mK(f.ma),new SUd(f.IK),new PV(f.adPlacementConfig),new Hf(f.videoLengthSeconds),new nL(f.vR)];f.instreamAdPlayerOverlayRenderer&&e.push(new vf(f.instreamAdPlayerOverlayRenderer));f.playerOverlayLayoutRenderer&&e.push(new b4(f.playerOverlayLayoutRenderer));f.Yn&&e.push(new gY(f.Yn));return e}; QNd=function(f,e,B,n,r,L){f=B.inPlayerLayoutId?B.inPlayerLayoutId:na(L,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",f);const d=B.instreamAdPlayerOverlayRenderer?B.instreamAdPlayerOverlayRenderer?.adLayoutLoggingData:B.playerOverlayLayoutRenderer?.adLayoutLoggingData,t={layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",hL:e};return{layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",bC:new Map,layoutExitNormalTriggers:[new lX(H=>s$(L,H),B.ma)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:e,clientMetadata:n,BL:r(t),adLayoutLoggingData:d}}; Ugg=function(f,e,B,n,r,L,d,t,H){n.every(C=>pJ(C,[],["LAYOUT_TYPE_MEDIA"]))||NL("Unexpect subLayout type for DAI composite layout"); e=na(f.G.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",e);const k={layoutId:e,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",hL:"core"};return{layoutId:e,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",bC:new Map,layoutExitNormalTriggers:[new Jc(f.C)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:"core",clientMetadata:new Vl([new CL(B),new wY(t),new BSl(n),new PV(r),new KL(L),new aZ,new Hsm(H)]),BL:d(k)}}; MZl=function(f,e,B,n,r,L,d,t,H,k,C){f=TSk(f,e,"core",B,n,r,L,d,t,H,k,void 0,C);return{layoutId:f.layoutId,layoutType:f.layoutType,bC:f.bC,layoutExitNormalTriggers:f.layoutExitNormalTriggers,layoutExitSkipTriggers:f.layoutExitSkipTriggers,layoutExitMuteTriggers:f.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:f.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:f.layoutExitUserCancelledTriggers,hL:f.hL,clientMetadata:new Vl(f.vX),BL:f.BL,adLayoutLoggingData:f.adLayoutLoggingData}}; jt=function(f,e,B,n,r){const L=EIk(n);return QNd(e,B,n,new Vl(L),r,f.G.get())}; W0l=function(f,e,B,n,r,L){B=new Vl([new DM6(B),new PV(n)]);e=na(f.G.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",e);n={layoutId:e,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",hL:"core"};return{layoutId:e,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",bC:new Map,layoutExitNormalTriggers:[new lX(d=>s$(f.G.get(),d),r)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:"core",clientMetadata:B,BL:L(n),adLayoutLoggingData:void 0}}; QB6=function(f,e,B,n,r,L,d,t,H,k,C,w){f=f6(f,e,B,n,r,L,d,t,C,w);e=f.VJ;B=new Qf(f.xG);n=f.layoutExitSkipTriggers;H>0&&(e.push(B),e.push(new M3(H)),n=[]);e.push(new T5(k));return{Fq:{layoutId:f.layoutId,layoutType:f.layoutType,bC:f.bC,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:f.hL,clientMetadata:new Vl(e),BL:f.BL,adLayoutLoggingData:f.adLayoutLoggingData},DF:n,qz:f.layoutExitMuteTriggers, pC:f.layoutExitUserInputSubmittedTriggers,LC:f.layoutExitUserCancelledTriggers,Xi:f.Xi}}; M45=function(f,e,B,n,r,L,d,t,H){e=f6(f,e,B,n,r,new Map,L,k=>d(k,t)); f=new Nz(f.C,e.xG);B=new Qf(e.xG);H=new T5(H);return{Fq:{layoutId:e.layoutId,layoutType:e.layoutType,bC:e.bC,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:e.hL,clientMetadata:new Vl([...e.VJ,B,H]),BL:e.BL,adLayoutLoggingData:e.adLayoutLoggingData},DF:e.layoutExitSkipTriggers,qz:e.layoutExitMuteTriggers,pC:[...e.layoutExitUserInputSubmittedTriggers,f],LC:e.layoutExitUserCancelledTriggers, Xi:e.Xi}}; eLm=function(f,e,B,n,r,L,d,t,H,k,C,w,v){e=TSk(f,e,"adapter",B,n,r,L,d,t,H,C,w,v);n=e.layoutExitSkipTriggers;r=e.vX;B.adPodSkipTarget&&B.adPodSkipTarget>0&&(r.push(k),r.push(new M3(B.adPodSkipTarget)),n=[]);r.push(new T5(t.adPodIndex));B.isCritical&&(n=[new uX(f.C,e.layoutId,["error"]),...n]);return{Fq:{layoutId:e.layoutId,layoutType:e.layoutType,bC:e.bC,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], hL:e.hL,clientMetadata:new Vl(r),BL:e.BL,adLayoutLoggingData:e.adLayoutLoggingData},DF:n,qz:e.layoutExitMuteTriggers,pC:e.layoutExitUserInputSubmittedTriggers,LC:e.layoutExitUserCancelledTriggers}}; GqM=function(f,e,B,n,r){const L=EIk(n);L.push(new Jn5(n.Ut));L.push(new MYM(n.Bf));return QNd(e,B,n,new Vl(L),r,f.G.get())}; rd=function(f,e,B,n,r,L,d,t,H,k){e=na(f.G.get(),B,e);const C={layoutId:e,layoutType:B,hL:"core"},w=new Map;d&&w.set("impression",d);d=[new Tg(f.C,r,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];k&&d.push(new uX(f.C,k,["normal"]));return{layoutId:e,layoutType:B,bC:w,layoutExitNormalTriggers:d,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:"core",clientMetadata:new Vl([n,new PV(L),new mK(r)]),BL:t(C),adLayoutLoggingData:H}}; L6=function(f,e,B,n,r,L,d,t,H){e=na(f.G.get(),B,e);const k={layoutId:e,layoutType:B,hL:"core"},C=[new Tg(f.C,r,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];H&&C.push(new uX(f.C,H,["normal"]));return{layoutId:e,layoutType:B,bC:new Map,layoutExitNormalTriggers:C,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:"core",clientMetadata:new Vl([n,new PV(L),new mK(r)]),BL:d(k),adLayoutLoggingData:t}}; IZ=function(f,e,B){const n=[];n.push(new a4(f.C,B));e&&n.push(e);return n}; c$=function(f){const e={ns:f.Q3,el:f.eventLabel,cpn:f.clientPlaybackNonce,ver:2,cmt:f.G(f.C),fmt:f.Wd,fs:f.G6?"1":"0",rt:f.G(f.mS),adformat:f.adFormat,content_v:f.contentVideoId,euri:f.D2,lact:f.EE,live:f.zt,cl:(867351992).toString(),mos:f.P4,state:f.playerState,volume:f.y8};f.subscribed&&(e.subscribed="1");Object.assign(e,f.sE);f.K==="all"?Object.assign(e,f.IA):f.K==="once"&&f.J&&Object.assign(e,f.IA);f.autoplay&&(e.autoplay="1");f.Mk&&(e.sautoplay="1");f.xA&&(e.dni="1");!f.W&&f.Lq&&(e.epm=xMC[f.Lq]); f.isFinal&&(e["final"]="1");f.BS&&(e.splay="1");f.Dv&&(e.delay=f.Dv);f.Z9&&(e.hl=f.Z9);f.region&&(e.cr=f.region);f.userGenderAge&&(e.uga=f.userGenderAge);f.userAge!==void 0&&f.kA&&(e.uga=f.kA+f.userAge);f.PS!==void 0&&(e.len=f.G(f.PS));(!f.W||f.Ch)&&f.experimentIds.length>0&&(e.fexp=f.experimentIds.toString());f.X!==null&&(e.rtn=f.G(f.X));f.dI&&(e.feature=f.dI);f.Nn&&(e.ctrl=f.Nn);f.d8&&(e.ytr=f.d8);f.qC&&(e.afmt=f.qC);f.offlineDownloadUserChoice&&(e.ODUC=f.offlineDownloadUserChoice);f.Ed&&(e.lio= f.G(f.Ed));f.W?(e.idpj=f.hR,e.ldpj=f.UE,f.delayThresholdMet&&(e.dtm="1"),f.N!=null&&(e.rti=f.G(f.N)),f.Hw&&(e.ald=f.Hw),f.compositeLiveIngestionOffsetToken&&(e.clio=f.compositeLiveIngestionOffsetToken)):f.adType!==void 0&&(e.at=f.adType);f.uC&&(f.J||f.W)&&(e.size=f.uC);f.J&&f.U.length&&(e.pbstyle=f.U.join(","));f.hE!=null&&(f.J||f.W)&&(e.inview=f.G(f.hE));f.heartbeatLoggingToken&&(e.hb_data=f.heartbeatLoggingToken);f.W&&(e.volume=p6(f,g.xg(f.segments,B=>B.volume)),e.st=p6(f,g.xg(f.segments,B=>B.startTime)), e.et=p6(f,g.xg(f.segments,B=>B.endTime)),yG(f.segments,B=>B.playbackRate!==1)&&(e.rate=p6(f,g.xg(f.segments,B=>B.playbackRate))),yG(f.segments,B=>B.C!=="-")&&(e.als=g.xg(f.segments,B=>B.C).join(",")),yG(f.segments,B=>B.previouslyEnded)&&(e.pe=g.xg(f.segments,B=>`${+B.previouslyEnded}`).join(","))); e.muted=p6(f,g.xg(f.segments,B=>B.muted?1:0)); yG(f.segments,B=>B.visibilityState!==0)&&(e.vis=p6(f,g.xg(f.segments,B=>B.visibilityState))); yG(f.segments,B=>B.connectionType!==0)&&(e.conn=p6(f,g.xg(f.segments,B=>B.connectionType))); yG(f.segments,B=>B.G!==0)&&(e.blo=p6(f,g.xg(f.segments,B=>B.G))); yG(f.segments,B=>!!B.V)&&(e.blo=g.xg(f.segments,B=>B.V).join(",")); yG(f.segments,B=>!!B.compositeLiveStatusToken)&&(e.cbs=g.xg(f.segments,B=>B.compositeLiveStatusToken).join(",")); yG(f.segments,B=>B.J!=="-")&&(e.cc=g.xg(f.segments,B=>B.J).join(",")); yG(f.segments,B=>B.clipId!=="-")&&(e.clipid=g.xg(f.segments,B=>B.clipId).join(",")); if(yG(f.segments,B=>!!B.audioId)){let B="au"; f.J&&(B="au_d");e[B]=g.xg(f.segments,n=>n.audioId).join(",")}qg()&&f.A&&(e.ctt=f.A,e.cttype=f.tL,e.mdx_environment=f.mdxEnvironment); f.Cc&&(e.etype=f.Cq!==void 0?f.Cq:0);f.MC&&(e.uoo=f.MC);f.livingRoomAppMode&&f.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(e.clram=WCl[f.livingRoomAppMode]||f.livingRoomAppMode);f.V?sN5(f,e):(e.docid=f.videoId,e.referrer=f.referrer,e.ei=f.eventId,e.of=f.aK,e.osid=f.osid,e.vm=f.videoMetadata,f.adQueryId&&(e.aqi=f.adQueryId),f.autonav&&(e.autonav="1"),f.playlistId&&(e.list=f.playlistId),f.Oy&&(e.ssrt="1"),f.Xj&&(e.upt=f.Xj));f.J&&(f.embedsRct&&(e.rct=f.embedsRct),f.embedsRctn&&(e.rctn= f.embedsRctn),f.compositeLiveIngestionOffsetToken&&(e.clio=f.compositeLiveIngestionOffsetToken));f.uY&&(e.host_cpn=f.uY);return e}; Pf=function(f,e,B,n,r,L,d){const t={layoutId:e,layoutType:B,hL:"core"};return{layoutId:e,layoutType:B,bC:new Map,layoutExitNormalTriggers:d,layoutExitSkipTriggers:[new hc(f.C,e)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:"core",clientMetadata:new Vl([new XoO(n),new PV(r)]),BL:L(t),adLayoutLoggingData:n.adLayoutLoggingData}}; Bf=function(f,e,B,n,r,L,d,t){const H={layoutId:e,layoutType:L,hL:"core"};return{layoutId:e,layoutType:L,bC:new Map,layoutExitNormalTriggers:[new lX(f.C,B)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:"core",clientMetadata:new Vl([new PV(n),...d]),BL:r(H),adLayoutLoggingData:t}}; f6=function(f,e,B,n,r,L,d,t,H,k){e=na(f.G.get(),"LAYOUT_TYPE_MEDIA_BREAK",e);const C={layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",hL:"adapter"};t=t(e);const w=t.clientMetadata.RA("metadata_type_fulfilled_layout");w||NL("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");const v=w?w.layoutId:"";B=[new PV(B),new xu(n),new rY(r)];w&&B.push(new Wf(w.layoutType));k&&B.push(new cf(k));return{layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", bC:L,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new mw(f.C,v)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:"adapter",VJ:B,BL:d(C),adLayoutLoggingData:H,Xi:t,xG:v}}; TSk=function(f,e,B,n,r,L,d,t,H,k,C,w,v){const b={layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA",hL:B};r=[new PV(r),new RZ(H),new ZY(n.externalVideoId),new tZ(t),new rY({impressionCommands:n.impressionCommands,abandonCommands:n.onAbandonCommands,completeCommands:n.completeCommands,progressCommands:n.adVideoProgressCommands}),new ku(L),new z5({current:null}),new Hf(d)];(L=n.playerOverlay.instreamAdPlayerOverlayRenderer)&&r.push(new vf(L));(d=n.playerOverlay.playerOverlayLayoutRenderer)&&r.push(new b4(d)); w&&r.push(new as5(w));(w=n.playerUnderlay)&&r.push(new DM6(w));t=Zf(f.G.get(),"SLOT_TYPE_IN_PLAYER");w=(w=L?L.elementId:d?.layoutId)?w:na(f.G.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",t);r.push(new Qf(w));r.push(new K96(t));r.push(new cf(H.adPodIndex));n.adNextParams&&r.push(new DY(n.adNextParams));n.shrunkenPlayerBytesConfig&&r.push(new yn6(n.shrunkenPlayerBytesConfig));n.clickthroughEndpoint&&r.push(new JZ(n.clickthroughEndpoint));n.legacyInfoCardVastExtension&&r.push(new p1H(n.legacyInfoCardVastExtension)); n.sodarExtensionData&&r.push(new q3(n.sodarExtensionData));C&&r.push(new G5(C));r.push(new pL(Yk(n.pings)));H=A0(n.pings);if(v){a:{for(K of v)if(K.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){v=g.u(K.fulfillmentContent.fulfilledLayout,bX);if(!v)continue;if((v=g.u(v.renderingContent,wk))&&v.associatedPlayerBytesLayoutId===e)break a}var K=void 0}K&&r.push(new zb6(K))}return{layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA",bC:H,layoutExitNormalTriggers:[new Fz(f.C,e)],layoutExitSkipTriggers:n.skipOffsetMilliseconds? [new mw(f.C,w)]:[],layoutExitMuteTriggers:[new mw(f.C,w)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],hL:B,vX:r,BL:k(b),adLayoutLoggingData:n.adLayoutLoggingData}}; VZY=function(f){return f!=null}; BZm=function(f,e,B,n,r){const L=Zf(f.G.get(),e);return Yt(f,L,e,new o8(f.C,B),[new jD(f.C,B),new Ow(f.C,L)],n,r)}; HN5=function(f,e,B,n,r,L,d){const t=Zf(f.G.get(),e);return Yt(f,t,e,new uX(f.C,r,["normal"]),[new jD(f.C,B),new Ow(f.C,t),new uX(f.C,n,["error"])],L,d)}; kn6=function(f,e,B,n,r,L){const d=Zf(f.G.get(),e);return Yt(f,d,e,new Ew(f.C,n),[new jD(f.C,B),new Ow(f.C,d),new uX(f.C,n,["error"])],r,L)}; vDl=function(f,e,B,n,r){return Pom(f,e,B,n,r)}; K06=function(f,e,B,n,r){const L=Zf(f.G.get(),"SLOT_TYPE_IN_PLAYER");B=new AS(f.C,n,B);n=[new Uw(f.C,L)];f=[new jD(f.C,e)];return{slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:n,slotExpirationTriggers:f,hL:"core",clientMetadata:new Vl([new Xc(r({slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hL:"core",slotEntryTrigger:B,slotFulfillmentTriggers:n,slotExpirationTriggers:f}))])}}; pbM=function(f,e,B,n){const r=Zf(f.G.get(),"SLOT_TYPE_IN_PLAYER");B=new Ew(f.C,B);var L=[new Uw(f.C,r)];const d=[new Ow(f.C,r),new jD(f.C,e)];L={slotId:r,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hL:"core",slotEntryTrigger:B,slotFulfillmentTriggers:L,slotExpirationTriggers:d};return{slotId:r,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:[new Uw(f.C,r)],slotExpirationTriggers:[new jD(f.C,e),new Ow(f.C,r)],hL:"core",clientMetadata:new Vl([new Xc(n(L))])}}; lRd=function(f,e,B,n,r){const L=Zf(f.G.get(),"SLOT_TYPE_PLAYER_BYTES"),d=new DP(f.C),t=[new Ac(f.C,L)];f=[new jD(f.C,e)];e=[];e.push(new Xc(n({slotId:L,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,hL:"core",slotEntryTrigger:d,slotFulfillmentTriggers:t,slotExpirationTriggers:f})));e.push(new aZ);r&&e.push(new Vf({current:r}));return{slotId:L,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:t,slotExpirationTriggers:f,hL:"core",clientMetadata:new Vl(e), adSlotLoggingData:B}}; gD0=function(f,e,B,n,r,L,d){const t=Zf(f.G.get(),"SLOT_TYPE_IN_PLAYER"),H=na(f.G.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",t);n=I45(f,n,L,d,H);if(n instanceof M)return n;d=[new Uw(f.C,t)];r=[new jD(f.C,L),new Uw(f.C,r),new jE(f.C,r)];B=oM(B,{slotId:t,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hL:"core",slotEntryTrigger:n,slotFulfillmentTriggers:d,slotExpirationTriggers:r});f=f.J.get();L={layoutId:H,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",hL:"core"};e={layoutId:H,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", bC:new Map,layoutExitNormalTriggers:[new $MO(f.C,H,e.durationMs)],layoutExitSkipTriggers:[new ii0(f.C,H,e.durationMs)],layoutExitUserCancelledTriggers:[new fug(f.C,H)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hL:"core",clientMetadata:new Vl([new eFC(e)]),BL:B(L)};return{slotId:t,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hL:"core",slotEntryTrigger:n,slotFulfillmentTriggers:d,slotExpirationTriggers:r,clientMetadata:new Vl([new Xc(e)])}}; TZG=function(f,e,B,n,r){e=Is6(f,e);f=eE(f,e,B);r=r({slotId:f.slotId,slotType:f.slotType,slotPhysicalPosition:f.slotPhysicalPosition,slotEntryTrigger:f.slotEntryTrigger,slotFulfillmentTriggers:f.slotFulfillmentTriggers,slotExpirationTriggers:f.slotExpirationTriggers,hL:f.hL});return r instanceof M?r:{gw:{...f,clientMetadata:new Vl([new Xc(r.layout)]),adSlotLoggingData:n},Zr:r.Zr}}; Dgd=function(f,e,B,n,r,L,d){B=$y5(f,e,B,n);if(B instanceof M)return B;d=d({slotId:B.slotId,slotType:B.slotType,slotPhysicalPosition:B.slotPhysicalPosition,slotEntryTrigger:B.slotEntryTrigger,slotFulfillmentTriggers:B.slotFulfillmentTriggers,slotExpirationTriggers:B.slotExpirationTriggers,hL:B.hL});if(d instanceof M)return d;f=[new Xc(d.layout),new l4({kD:f.kD(e)})];L&&f.push(new $gd({}));return{gw:{slotId:B.slotId,slotType:B.slotType,slotPhysicalPosition:B.slotPhysicalPosition,slotEntryTrigger:B.slotEntryTrigger, slotFulfillmentTriggers:B.slotFulfillmentTriggers,slotExpirationTriggers:B.slotExpirationTriggers,hL:B.hL,clientMetadata:new Vl(f),adSlotLoggingData:r},Zr:d.Zr}}; Gnk=function(f,e,B,n,r){r=r?r:Zf(f.G.get(),"SLOT_TYPE_IN_PLAYER");B=new Ew(f.C,B);const L=[new Uw(f.C,r)];f=[new jD(f.C,e),new Ow(f.C,r)];return{slotId:r,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:L,slotExpirationTriggers:f,hL:"core",clientMetadata:new Vl([new Xc(n({slotId:r,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hL:"core",slotEntryTrigger:B,slotFulfillmentTriggers:L,slotExpirationTriggers:f}))])}}; xg5=function(f,e,B,n){const r=Zf(f.G.get(),"SLOT_TYPE_PLAYER_UNDERLAY");B=new Ew(f.C,B);const L=[new Uw(f.C,r)];f=[new jD(f.C,e),new Ow(f.C,r)];return{slotId:r,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:L,slotExpirationTriggers:f,hL:"core",clientMetadata:new Vl([new Xc(n({slotId:r,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,hL:"core",slotEntryTrigger:B,slotFulfillmentTriggers:L,slotExpirationTriggers:f}))])}}; lsw=function(f,e,B,n,r){B=B?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";const L=Zf(f.G.get(),B);e=new o8(f.C,e);const d=[new Uw(f.C,L)];f=[new Ow(f.C,L)];return{slotId:L,slotType:B,slotPhysicalPosition:1,slotEntryTrigger:e,slotFulfillmentTriggers:d,slotExpirationTriggers:f,hL:"core",clientMetadata:new Vl([new Xc(r({slotId:L,slotType:B,slotPhysicalPosition:1,hL:"core",slotEntryTrigger:e,slotFulfillmentTriggers:d,slotExpirationTriggers:f}))]),adSlotLoggingData:n}}; myM=function(f,e,B,n,r,L){const d=Zf(f.G.get(),"SLOT_TYPE_FORECASTING");e=Os(f,e,B,n);if(e instanceof M)return e;n=[new Uw(f.C,d)];f=[new Ow(f.C,d),new jD(f.C,B)];return{slotId:d,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:e,slotFulfillmentTriggers:n,slotExpirationTriggers:f,hL:"core",clientMetadata:new Vl([new Xc(L({slotId:d,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,hL:"core",slotEntryTrigger:e,slotFulfillmentTriggers:n,slotExpirationTriggers:f}))]),adSlotLoggingData:r}}; hbG=function(f,e,B,n){const r=Zf(f.G.get(),"SLOT_TYPE_IN_PLAYER"),L=new o8(f.C,e),d=[new Ac(f.C,r)];f=[new jD(f.C,e),new Ow(f.C,r)];return{slotId:r,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:d,slotExpirationTriggers:f,hL:"core",clientMetadata:new Vl([new Xc(n({slotId:r,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hL:"core",slotEntryTrigger:L,slotFulfillmentTriggers:d,slotExpirationTriggers:f}))]),adSlotLoggingData:B}}; Sv5=function(f,e,B,n,r,L){e=Os(f,e,B,n);if(e instanceof M)return e;const d=e instanceof gk?new Bq6(f.C,B,e.C):null;n=Zf(f.G.get(),"SLOT_TYPE_IN_PLAYER");const t=[new Uw(f.C,n)];f=[new jD(f.C,B),new Ow(f.C,n)];L=L({slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hL:"core",slotEntryTrigger:e,slotFulfillmentTriggers:t,slotExpirationTriggers:f},d);return L instanceof WK?new M(L):{slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:e,slotFulfillmentTriggers:t, slotExpirationTriggers:f,hL:"core",clientMetadata:new Vl([new Xc(L)]),adSlotLoggingData:r}}; Txw=function(f,e,B,n){const r=Zf(f.G.get(),"SLOT_TYPE_IN_PLAYER");return Pom(f,r,e,B,n)}; nIC=function(f,e,B,n,r,L){const d=Zf(f.G.get(),"SLOT_TYPE_PLAYER_BYTES"),t=Zf(f.G.get(),"SLOT_TYPE_IN_PLAYER"),H=na(f.G.get(),"LAYOUT_TYPE_SURVEY",t);n=Os(f,e,B,n);const k=[new Uw(f.C,d)];B=[new Ow(f.C,d),new jD(f.C,B),new hc(f.C,H)];if(n instanceof M)return n;const {K4:C,q3:w}=L({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,hL:"core",slotEntryTrigger:n,slotFulfillmentTriggers:k,slotExpirationTriggers:B},{slotId:t,layoutId:H});return[{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES", slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:k,slotExpirationTriggers:B,hL:"core",clientMetadata:new Vl([new Xc(C),new l4({kD:f.kD(e)})]),adSlotLoggingData:r},w]}; KCl=function(f,e,B,n,r,L,d){if(!B.prefetchModeConfig)return new M("AdPlacementConfig for Live Prefetch is missing prefetch_config");B=B.prefetchModeConfig;n*=1E3;const t=[];if(!B.breakLengthMs)return new M("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(const C of B.breakLengthMs)if(Number(C)>0){var H=n+Number(B.startTimeOffsetMs),k=H+Number(B.cacheFetchSmearingDurationMs);H={GE:new zK(k,k+Number(C)),VA:!1,qG:new zK(Math.floor(H+Math.random()*Number(B.cacheFetchSmearingDurationMs)), k),cueProcessedMs:n?n:H};k=[];k.push(new kwk);const w=[];w.push(new WV(f.C));w.push(new nnl(f.C));d&&k.push(new aZ);t.push(Y9(f,e,r,H,L,k,w))}return t}; Y9=function(f,e,B,n,r,L=[],d){const t=Zf(f.G.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d||(d=[],n.qG&&n.qG.start!==n.GE.start&&d.push(new gk(f.C,B,new zK(n.qG.start,n.GE.start),!1)),d.push(new gk(f.C,B,new zK(n.GE.start,n.GE.end),n.VA)));n={getAdBreakUrl:e.getAdBreakUrl,E$:n.GE.start,Cs:n.GE.end,cueProcessedMs:n.cueProcessedMs};e=new o4(f.C,t);L=[new IJC(n),...L];return{slotId:t,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:e,slotFulfillmentTriggers:d,slotExpirationTriggers:[new jD(f.C, B),new Ow(f.C,t),new Vx(f.C,t)],hL:"core",clientMetadata:new Vl(L),adSlotLoggingData:r}}; rTG=function(f,e,B){const n=[];for(const r of B)n.push(r.triggeringSlotId!=null&&r.triggeringSlotId===f?r.clone(e):r);return n}; Pom=function(f,e,B,n,r){const L=new Ew(f.C,B),d=[new Uw(f.C,e)];f=[new Ow(f.C,e),new jD(f.C,n)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:d,slotExpirationTriggers:f,hL:"core",clientMetadata:new Vl([new Xc(r({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hL:"core",slotEntryTrigger:L,slotFulfillmentTriggers:d,slotExpirationTriggers:f},B))]),adSlotLoggingData:void 0}}; Os=function(f,e,B,n){return LxH(f,e,B,n,(r,L)=>new gk(f.C,B,r,L))}; I45=function(f,e,B,n,r){return LxH(f,e,B,n,(L,d)=>new dBm(f.C,B,L,d,r))}; Yt=function(f,e,B,n,r,L,d){f=[new Ac(f.C,e)];return{slotId:e,slotType:B,slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:f,slotExpirationTriggers:r,hL:"core",clientMetadata:new Vl([new Xc(d({slotId:e,slotType:B,slotPhysicalPosition:1,hL:"core",slotEntryTrigger:n,slotFulfillmentTriggers:f,slotExpirationTriggers:r}))]),adSlotLoggingData:L}}; Is6=function(f,e){return kqM(f.iY.get())?new uX(f.C,e,["normal","error","skipped"]):new uX(f.C,e,["normal"])}; eE=function(f,e,B){const n=Zf(f.G.get(),"SLOT_TYPE_PLAYER_BYTES"),r=[new Uw(f.C,n)];f=[new Ow(f.C,n),new jD(f.C,B)];return{slotId:n,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:e,slotFulfillmentTriggers:r,slotExpirationTriggers:f,hL:"core"}}; $y5=function(f,e,B,n){e=Os(f,e,B,n);return e instanceof M?e:eE(f,e,B)}; LxH=function(f,e,B,n,r){const L=!e.hideCueRangeMarker;switch(e.kind){case "AD_PLACEMENT_KIND_START":return new o8(f.C,B);case "AD_PLACEMENT_KIND_MILLISECONDS":return f=ypO(e,n),f instanceof M?f:r(f.GE,L);case "AD_PLACEMENT_KIND_END":return new SD(f.C,B,L);default:return new M("Cannot construct entry trigger",{kind:e.kind})}}; N6=function(f,e,B){f.C(e,void 0,void 0,void 0,B,void 0,void 0,void 0,B.adSlotLoggingData)}; GU=function(f,e,B,n,r){f.C("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,n,r,void 0,void 0,n.adSlotLoggingData,r?r.adLayoutLoggingData:void 0,{errorType:e,errorMessage:B})}; JH=function(f,e,B,n){f.C(e,void 0,void 0,void 0,B,n?n:void 0,void 0,void 0,B.adSlotLoggingData,n?n.adLayoutLoggingData:void 0);e=aH().resolve(ZC(rq))?.sO();B=e?.adsHotConfig;e?.adsSeenHotConfig?.logOnAdsSeen&&B?.webEnablePremiumAdsSeenLogging&&tll(f,n?n:void 0)}; gXC=function(f,e,B,n){BP(f.iY.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED","trigger:",B,"slot:",e,"layout:",n);OF(f.G.get())&&f.C("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,e,n?n:void 0,void 0,B,e.adSlotLoggingData,n?n.adLayoutLoggingData:void 0)}; tll=function(f,e){if(e){var B=e.adLayoutLoggingData;g.wS(g.bo(),()=>{f.J?.C(B)},0)}}; lq=function(f,e){return f.C.get(e)||null}; H86=function(){let f,e;return{SY:new uq((B,n)=>{f=B;e=n}), resolve:f,reject:e}}; ma=function(f){return F0(f)?f:Oc(f)?new uq((e,B)=>{f.then(e,B)}):new uq(e=>{e(f)})}; Us=function(f){return new uq((e,B)=>{B(f)})}; Nw=function(f){try{return ma(f())}catch(e){return Us(e)}}; kYG=function(f){return new Promise((e,B)=>{hS(f,e,B)})}; COG=async function(f){return kYG(f)}; gd=function(f){if(f.C==="fulfilled"){var e=f.G;f.G=[];f.J=[];for(var B of e)B(f.result)}else if(f.C==="rejected"){B=f.J;f.G=[];f.J=[];for(e of B)e(f.error)}}; hS=function(f,e,B){const {SY:n,resolve:r,reject:L}=H86();f.G.push(d=>{if(e)try{const t=e(d);r(t)}catch(t){L(t)}else r(d)}); f.J.push(d=>{if(B)try{const t=B(d);r(t)}catch(t){L(t)}else L(d)}); gd(f);return n}; SE=function(f,e){return hS(f,void 0,e)}; wLC=function(f,e){hS(f,B=>hS(ma(e()),()=>B),B=>hS(ma(e()),()=>Us(B)))}; Es=function(f,e){return vnM(e.call(f))}; Qx=function(f){return function*(){return yield{SY:ma(f)}}()}; vnM=function(f){return Nw(()=>T0(f,f.next()))}; T0=function(f,e){return e.done?ma(e.value):SE(hS(e.value.SY,B=>T0(f,f.next(B))),B=>T0(f,f.throw(B)))}; RFM=function(f){const e=b8O(f);return hS(Z8l(e),()=>e.map(B=>B.state()))}; Z8l=function(f){if(f.length===0)return ma(NaN);const {SY:e,resolve:B}=H86();let n=f.length;for(const [r,L]of f.entries()){const d=r;wLC(L,()=>{e.C==="pending"&&(KxC(void 0)&&(void 0)(d)&&e.C==="pending"?B(d):(--n,n===0&&B(NaN)))})}return e}; b8O=function(f){return f.map(e=>ma(e))}; DK=function(f){return window.Int32Array?new Int32Array(f):Array(f)}; qq5=function(f){const e=f.key;let B=f.counter[0]^e[0],n=f.counter[1]^e[1],r=f.counter[2]^e[2],L=f.counter[3]^e[3];for(var d=3;d>=0&&!(f.counter[d]=-~f.counter[d]);d--);let t,H,k=4;for(;k<40;)d=JS[B>>>24]^Mw[n>>16&255]^G0[r>>8&255]^xt[L&255]^e[k++],t=JS[n>>>24]^Mw[r>>16&255]^G0[L>>8&255]^xt[B&255]^e[k++],H=JS[r>>>24]^Mw[L>>16&255]^G0[B>>8&255]^xt[n&255]^e[k++],L=JS[L>>>24]^Mw[B>>16&255]^G0[n>>8&255]^xt[r&255]^e[k++],B=d,n=t,r=H;f=f.G;d=e[40];f[0]=W$[B>>>24]^d>>>24;f[1]=W$[n>>16&255]^d>>16&255;f[2]= W$[r>>8&255]^d>>8&255;f[3]=W$[L&255]^d&255;d=e[41];f[4]=W$[n>>>24]^d>>>24;f[5]=W$[r>>16&255]^d>>16&255;f[6]=W$[L>>8&255]^d>>8&255;f[7]=W$[B&255]^d&255;d=e[42];f[8]=W$[r>>>24]^d>>>24;f[9]=W$[L>>16&255]^d>>16&255;f[10]=W$[B>>8&255]^d>>8&255;f[11]=W$[n&255]^d&255;d=e[43];f[12]=W$[L>>>24]^d>>>24;f[13]=W$[B>>16&255]^d>>16&255;f[14]=W$[n>>8&255]^d>>8&255;f[15]=W$[r&255]^d&255}; P$=function(){if(!X0&&!g.Po){if(yx)return yx;yx=window.crypto?.subtle;if(yx?.importKey&&yx?.sign&&yx?.encrypt)return yx;yx=void 0}}; zFY=async function(f,e,B){f.C||(f.C=await f.subtleCrypto.importKey("raw",f.G,{name:"AES-CTR"},!1,["encrypt"]));f=await f.subtleCrypto.encrypt({name:"AES-CTR",counter:B,length:128},f.C,e);return new Uint8Array(f)}; auC=function(f){f.C=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];f.X=[];f.X.length=64;f.V=0;f.G=0}; pLG=function(f,e,B){const n=f.X;let r=f.C[0],L=f.C[1],d=f.C[2],t=f.C[3],H=f.C[4],k=f.C[5],C=f.C[6],w=f.C[7],v,b,K;for(let Y=0;Y<64;)Y<16?(n[Y]=K=e[B]<<24|e[B+1]<<16|e[B+2]<<8|e[B+3],B+=4):(v=n[Y-2],b=n[Y-15],K=n[Y-7]+n[Y-16]+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+((b>>>7|b<<25)^(b>>>18|b<<14)^b>>>3),n[Y]=K),v=w+I4[Y]+K+((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&k^~H&C),b=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&L^r&d^L&d),w=v+b,t+=v,Y++,Y<16?(n[Y]=K=e[B]<<24|e[B+1]<<16|e[B+2]<<8|e[B+ 3],B+=4):(v=n[Y-2],b=n[Y-15],K=n[Y-7]+n[Y-16]+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+((b>>>7|b<<25)^(b>>>18|b<<14)^b>>>3),n[Y]=K),v=C+I4[Y]+K+((t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7))+(t&H^~t&k),b=((w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10))+(w&r^w&L^r&L),C=v+b,d+=v,Y++,Y<16?(n[Y]=K=e[B]<<24|e[B+1]<<16|e[B+2]<<8|e[B+3],B+=4):(v=n[Y-2],b=n[Y-15],K=n[Y-7]+n[Y-16]+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+((b>>>7|b<<25)^(b>>>18|b<<14)^b>>>3),n[Y]=K),v=k+I4[Y]+K+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25| d<<7))+(d&t^~d&H),b=((C>>>2|C<<30)^(C>>>13|C<<19)^(C>>>22|C<<10))+(C&w^C&r^w&r),k=v+b,L+=v,Y++,Y<16?(n[Y]=K=e[B]<<24|e[B+1]<<16|e[B+2]<<8|e[B+3],B+=4):(v=n[Y-2],b=n[Y-15],K=n[Y-7]+n[Y-16]+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+((b>>>7|b<<25)^(b>>>18|b<<14)^b>>>3),n[Y]=K),v=H+I4[Y]+K+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&d^~L&t),b=((k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10))+(k&C^k&w^C&w),K=w,w=t,t=K,K=C,C=d,d=K,K=k,k=L,L=K,H=r+v,r=v+b,Y++;f.C[0]=r+f.C[0]|0;f.C[1]=L+f.C[1]|0;f.C[2]=d+f.C[2]| 0;f.C[3]=t+f.C[3]|0;f.C[4]=H+f.C[4]|0;f.C[5]=k+f.C[5]|0;f.C[6]=C+f.C[6]|0;f.C[7]=w+f.C[7]|0}; cTg=function(f){const e=new Uint8Array(32);var B=64-f.G;f.G>55&&(B+=64);const n=new Uint8Array(B);n[0]=128;let r=f.V*8;for(let L=1;L<9;L++){const d=r%256;n[B-L]=d;r=(r-d)/256}f.update(n);for(B=0;B<8;B++)e[B*4]=f.C[B]>>>24,e[B*4+1]=f.C[B]>>>16&255,e[B*4+2]=f.C[B]>>>8&255,e[B*4+3]=f.C[B]&255;auC(f);return e}; AT5=function(f,e,B){f=new YqG(f.C);f.update(e);f.update(B);e=cTg(f);f.update(f.W);f.update(e);e=cTg(f);f.reset();return e}; jFM=async function(f,e,B){f.C||(f.C=await f.subtleCrypto.importKey("raw",f.G,{name:"HMAC",hash:"SHA-256"},!1,["sign"]));const n=new Uint8Array(e.length+B.length);n.set(e);n.set(B,e.length);f=await f.subtleCrypto.sign({name:"HMAC",hash:"SHA-256"},f.C,n);return new Uint8Array(f)}; on6=async function(f,e,B,n){f.G||(f.G=new O8M(f.C,n));return jFM(f.G,e,B)}; lul=function(f,e,B){f.J||(f.J=new VlC(f.C));return AT5(f.J,e,B)}; ubY=async function(f,e,B){const n=P$();if(n)try{return await on6(f,e,B,n)}catch(r){return g.Yv(r),X0=!0,lul(f,e,B)}else return lul(f,e,B)}; g.$t=function(f,e,B){const n={...f};for(const r of Object.keys(e)){const L=f[r],d=e[r];if(d===void 0)delete n[r];else if(L===void 0)n[r]=d;else if(Array.isArray(d)&&Array.isArray(L))n[r]=B?[...L,...d]:d;else if(!Array.isArray(d)&&g.jC(d)&&!Array.isArray(L)&&g.jC(L))n[r]=g.$t(L,d,B);else if(typeof d===typeof L)n[r]=d;else return e=new g.Dj("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:r,UDA:L,updateValue:d}),g.J(e),f}return n}; Fxl=function(f,e){return f.C.length===0?!1:(f=f.C[f.C.length-1])&&f.buffer===e.buffer&&f.byteOffset+f.length===e.byteOffset}; iq=function(f){f.V=void 0;f.G=0;f.J=0}; fe=function(f,e){for(const B of e.C)f.append(B)}; eo=function(f,e,B){let {OU:n,ZF:r}=f.split(e);({OU:n}=r.split(B));return n}; BA=function(f,e,B){f.isFocused(e);return e-f.J+B<=f.C[f.G].length}; mBO=function(f){if(!f.V){const e=f.C[f.G];f.V=new DataView(e.buffer,e.byteOffset,e.length)}return f.V}; UBO=function(f,e=0,B=-1){if(!f.totalLength||!B)return new DataView(new ArrayBuffer(0));B<0&&(B=f.totalLength-e);f.focus(e);if(!BA(f,e,B)){var n=f.G,r=f.J;f.focus(e+B-1);r=new Uint8Array(f.J+f.C[f.G].length-r);let L=0;for(let d=n;d<=f.G;d++)r.set(f.C[d],L),L+=f.C[d].length;f.C.splice(n,f.G-n+1,r);iq(f);f.focus(e)}n=f.C[f.G];return new DataView(n.buffer,n.byteOffset+e-f.J,B)}; ne=function(f,e=0,B=-1){f=UBO(f,e,B);return new Uint8Array(f.buffer,f.byteOffset,f.byteLength)}; rR=function(f,e=0,B=-1){f=ne(f,e,B);e=new Uint8Array(f.length);try{e.set(f)}catch(n){for(B=0;B>10;r=56320|r&1023}HA[L++]=r}r=String.fromCharCode.apply(String, HA);L<1024&&(r=r.substring(0,L));B.push(r)}return B.join("")}; wR=function(f,e){if(Ce?.encodeInto){const {read:n,written:r}=Ce.encodeInto(f,e);return n>6|192:((r&64512)===55296&&n+1>18|240,e[B++]=r>>12&63|128):e[B++]=r>>12|224,e[B++]=r>>6&63|128),e[B++]=r&63|128)}return B}; vA=function(f){if(Ce)return Ce.encode(f);let e=new Uint8Array(Math.ceil(f.length*1.2)),B=wR(f,e);e.lengthB&&(e=e.subarray(0,B));return e}; RJ=function(f,e){f=f instanceof Uint8Array?new bg([f]):f;return e(new Z2(f))}; Hy=function(f,e){if(Ke(f,e))return qm(f)}; k5=function(f,e){if(f=Kf(f,e))return g.kq(f)}; Kf=function(f,e){if(Ke(f,e)){e=qm(f);var B=ne(f.C,f.pos,e);f.pos+=e;return B}}; a7=function(f,e,B){if(f=Kf(f,e))return B(new Z2(new bg([f])))}; Ak=function(f,e){if(Ke(f,e))return!!qm(f)}; jb=function(f,e,B){const n=[];let r;for(;r=Kf(f,e);)n.push(B(new Z2(new bg([r]))));return n.length?n:void 0}; pf=function(f,e){if(Ke(f,e))return e=ne(f.C,f.pos,8),f.pos+=8,(new DataView(e.buffer,e.byteOffset,e.byteLength)).getFloat64(0,!0)}; cy=function(f,e){const B=[];for(;Ke(f,e);)B.push(qm(f));return B.length?B:void 0}; qm=function(f){let e=Le(f.C,f.pos);++f.pos;if(e<128)return e;let B=e&127,n=1;for(;e>=128;)e=Le(f.C,f.pos),++f.pos,n*=128,B+=(e&127)*n;return B}; Ke=function(f,e){let B=f.G;for(f.G=-1;f.pos+1<=f.C.totalLength;){B<0&&(B=qm(f));var n=B>>3;const r=B&7;if(n===e)return!0;if(n>e){f.G=B;break}B=-1;switch(r){case 0:qm(f);break;case 1:f.pos+=8;break;case 2:n=qm(f);f.pos+=n;break;case 5:f.pos+=4}}return!1}; gn5=function(f,e){f=new Uint8Array(f);e&&f.set(e);return f}; g.zy=function(f,e){const B=new SqM(4096);e(B,f);return new Uint8Array(B.C.buffer,B.C.byteOffset,B.pos)}; ff=function(f,e,B,n,r=3){B&&(Eng(f,e,r),n(f,B),QFk(f))}; By=function(f,e,B){B!==void 0&&(bG(f,e*8+2),e=B.length,bG(f,e),Z0(f,e),f.C.set(B,f.pos),f.pos+=e)}; r$=function(f,e,B){B!==void 0&&(Eng(f,e,Math.ceil(Math.log2(B.length*4+2)/7)),Z0(f,B.length*1.2),e=wR(B,f.C.subarray(f.pos)),f.pos+e>f.C.length&&(Z0(f,e),e=wR(B,f.C.subarray(f.pos))),f.pos+=e,QFk(f))}; d$=function(f,e,B){B!==void 0&&(bG(f,e*8),bG(f,B))}; vy=function(f,e,B){B!==void 0&&d$(f,e,B?1:0)}; Z0=function(f,e){e=f.pos+e;if(!(f.C.length>=e)){for(var B=f.C.length*2;B268435455){Z0(f,4);let B=e&1073741823;for(let n=0;n<4;n++)f.view.setUint8(f.pos,B&127|128),B>>=7,f.pos+=1;e=Math.floor(e/268435456)}for(Z0(f,4);e>127;)f.view.setUint8(f.pos,e&127|128),e>>=7,f.pos+=1;f.view.setUint8(f.pos,e);f.pos+=1}; Eng=function(f,e,B=2){bG(f,e*8+2);f.G.push(f.pos);f.G.push(B);f.pos+=B}; QFk=function(f){let e=f.G.pop(),B=f.G.pop(),n=f.pos-B-e;for(;e--;){const r=e?128:0;f.view.setUint8(B++,n&127|r);n>>=7}}; g.aJ=function(f){var e=new Z2(new bg([uW(decodeURIComponent(f))]));f=k5(e,2);e=Hy(e,4);const B=Tq5[e];if(typeof B==="undefined")throw f=new g.Dj("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:e}),g.J(f),f;return{gf:e,entityType:B,entityId:f}}; g.pe=function(f,e){const B=new SqM;By(B,2,vA(f));f=DBH[e];if(typeof f==="undefined")throw e=new g.Dj("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:e}),g.J(e),e;d$(B,4,f);d$(B,5,1);e=new Uint8Array(B.C.buffer,B.C.byteOffset,B.pos);return encodeURIComponent(g.ON(e,0))}; cA=function(f,e,B,n){if(n===void 0){const {[B]:r,...L}=f[e]||{};return{...f,[e]:L}}return{...f,[e]:{...f[e],[B]:n}}}; JT0=function(f,e,B,n,r){const L=f[e];if(!L?.[B])return f;n=g.$t(L[B],n,r==="REPEATED_FIELDS_MERGE_OPTION_APPEND");return{...f,[e]:{...f[e],[B]:n}}}; Mlm=function(f={},e){switch(e.type){case "ENTITY_LOADED":return e.payload.reduce((B,n)=>{const r=n.options?.persistenceOption;if(r&&r!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&r!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return B;if(!n.entityKey)return g.J(Error("Missing entity key")),B;if(n.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!n.payload)return n=new g.Dj("REPLACE entity mutation is missing a payload",{entityKey:n.entityKey}),g.J(n),B;var L=g.FG(n.payload);return cA(B,L,n.entityKey,n.payload[L])}if(n.type=== "ENTITY_MUTATION_TYPE_DELETE"){a:{n=n.entityKey;try{const d=g.aJ(n).entityType;L=cA(B,d,n);break a}catch(d){if(d instanceof Error){n=new g.Dj("Failed to deserialize entity key",{entityKey:n,originalMessage:d.message});g.J(n);L=B;break a}throw d;}L=void 0}return L}if(n.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!n.payload)return n=new g.Dj("UPDATE entity mutation is missing a payload",{entityKey:n.entityKey}),g.J(n),B;L=g.FG(n.payload);return JT0(B,L,n.entityKey,n.payload[L],n.fieldMask?.mergeOptions?.repeatedFieldsMergeOption)}return B}, f); case "REPLACE_ENTITY":return cA(f,e.payload.entityType,e.payload.key,e.payload.Dt);case "REPLACE_ENTITIES":return Object.keys(e.payload).reduce((B,n)=>{const r=e.payload[n];return Object.keys(r).reduce((L,d)=>cA(L,n,d,r[d]),B)},f); case "UPDATE_ENTITY":return JT0(f,e.payload.entityType,e.payload.key,e.payload.Dt,e.payload.Wxl);default:return f}}; Yq=function(f,e,B){return f[e]?f[e][B]||null:null}; jo=function(f){var e=f.hours||0;var B=f.minutes||0,n=f.seconds||0;e=n+B*60+e*3600+(f.days||0)*86400+(f.weeks||0)*604800+(f.months||0)*2629800+(f.years||0)*31557600;e<=0?e={hours:0,minutes:0,seconds:0}:(f=e,e=Math.floor(f/3600),f%=3600,B=Math.floor(f/60),n=Math.floor(f%60),e={hours:e,minutes:B,seconds:n});const {hours:r=0,minutes:L=0,seconds:d=0}=e;B=r>0;e=[];if(B){f=(new Intl.NumberFormat("en-u-nu-latn")).format(r);n=["fr"];const t="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(" "); f="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(Af)?f.replace(",","\u00a0"):n.includes(Af)?f.replace(",","\u202f"):t.includes(Af)?f.replace(",","."):f;e.push(f)}B=GYl(L,B);e.push(B);B=xBm().format(d);e.push(B);B=":";"da fi id si sr sr-Latn".split(" ").includes(Af)&&(B=".");return e.join(B)}; xBm=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; GYl=function(f,e=!1){return(["af","be","lt"].includes(Af)||e)&&f<10?xBm().format(f):(new Intl.NumberFormat("en-u-nu-latn")).format(f)}; Wxm=function(f,e){f=f.watchEndpointSupportedAuthorizationTokenConfig?.videoAuthorizationToken?.credentialTransferTokens||[];for(let B=0;B{sFM.includes(e)||(g.Yv(new g.Dj("createClientScreen() called with a non-page VE",e)),e=83769);n.isHistoryNavigation||f.C.push({rootVe:e,key:n.key||""});f.K=[];f.N=[];n.BX?XL5(f,e,B,n):yTg(f,e,B,n)})()}; XL5=function(f,e,B,n={}){f.G.add(n.layer||0);f.W=()=>{yTg(f,e,B,n);const r=g.v6(n.layer);if(r){for(const L of f.K)Uu(f,L[0],L[1]||r,n.layer);for(const L of f.N)POw(f,L[0],L[1])}}; B||g.be(n.layer)||f.W();if(n.BX)for(const r of n.BX)Iud(f,r,n.layer);else g.J(Error("Delayed screen needs a data promise."))}; yTg=function(f,e,B,n={}){var r=void 0;n.layer||(n.layer=0);r=n.parentLayer!==void 0?n.parentLayer:n.layer;const L=g.be(r);r=g.v6(r);const d=B||r;let t;d&&(n.parentCsn!==void 0?t={clientScreenNonce:n.parentCsn,visualElement:d}:L&&L!=="UNDEFINED_CSN"&&(t={clientScreenNonce:L,visualElement:d}));let H;const k=g.Q("EVENT_ID");L==="UNDEFINED_CSN"&&k&&(H={servletData:{serializedServletEventId:k}});g.UV("combine_ve_grafts")&&L&&Nm(f,L);g.UV("no_client_ve_attach_unless_shown")&&d&&L&&Tj(d,L);let C;try{C=YZl(f.client, e,t,n.uH,n.cttAuthInfo,H,n.implicitGestureType,n.loggingExpectations,n.automatedLogEventSource)}catch(v){VL(v,{Xy:e,rootVe:r,BRC:B,C6I:L,X0q:t,uH:n.uH});g.J(v);return}sIM(C,e,n.layer,n.cttAuthInfo);L&&L!=="UNDEFINED_CSN"&&r&&!GDO(L)&&jal(f.client,L,r,!0);f.C[f.C.length-1]&&!f.C[f.C.length-1].csn&&(f.C[f.C.length-1].csn=C||"");g.hQ({clientScreenNonce:C});hf.instance||(hf.instance=new hf);g.LN(lg().C).bind(lg())();const w=g.v6(n.layer);L&&L!=="UNDEFINED_CSN"&&w&&g.UV("music_web_mark_root_visible")&& g.W6(C,w);f.G.delete(n.layer||0);f.W=void 0;f.cS.get(n.layer)?.forEach((v,b)=>{v?Uu(f,b,v,n.layer):w&&Uu(f,b,w,n.layer)}); $BY(f)}; Iud=function(f,e,B=0){g.LN(()=>{e.then(n=>{f.G.has(B)&&f.W&&f.W();const r=g.be(B),L=g.v6(B);if(r&&L){var d={automatedLogEventSource:3};n?.response?.trackingParams&&g.ER(f.client,r,L,g.kv(n.response.trackingParams),!1,d);n?.playerResponse?.trackingParams&&g.ER(f.client,r,L,g.kv(n.playerResponse.trackingParams),!1,d)}})})()}; Uu=function(f,e,B,n=0){return g.LN(()=>{if(f.G.has(n))return f.K.push([e,B]),!0;const r=g.be(n),L=B||g.v6(n);if(r&&L){if(g.UV("combine_ve_grafts")){const d=f.V.get(L.toString());d?d.push(e):(f.X.set(L.toString(),L),f.V.set(L.toString(),[e]));f.A||(f.A=g.wS(0,()=>{Nm(f,r)},1200))}else g.ER(f.client,r,L,e); return!0}return!1})()}; gR=function(f){var e=FC();g.LN(()=>{const B=g.kv(f);Uu(e,B);return B})()}; i8C=function(f){var e={veType:253246};return g.LN(()=>{if(!e.veType)return c6(new g.Dj("Error: Trying to graft a client VE without a veType.")),null;if(e.visibilityTypes){var B=e.visibilityTypes.reduce((n,r)=>n|r); B={visibility:{types:String(B)}}}B=C0(e.veType,e.visualElement,e.elementIndex,e.clientYouTubeData,void 0,B);return Uu(f,B)?B:null})()}; Nm=function(f,e){if(e===void 0){const B=JDC();for(let n=0;n{(n=f.X.get(n))&&g.Sa(f.client,e,n,B)}),f.V.clear(),f.X.clear(),f.A=void 0}; fCk=function(f,e){const B=g.be(0);B&&MG(f.client,B,e,void 0)}; e4k=function(f,e,B,n=0){if(!e)return!1;n=g.be(n);if(!n)return!1;MG(f.client,n,g.kv(e),B);return!0}; POw=function(f,e,B,n=0){const r=g.be(n);e=e||g.v6(n);r&&e&&(f=f.client,n=UR({cttAuthInfo:ZE(r)||void 0},r),B={csn:r,ve:e.getAsJson(),clientData:B},r==="UNDEFINED_CSN"?DE("visualElementStateChanged",n,B):f?L0("visualElementStateChanged",B,f,n):g.t$("visualElementStateChanged",B,n))}; $BY=function(f){for(var e=0;e{B.F$(n,r)}); n.open(e.method??"GET",f,!0);n.responseType="text";n.withCredentials=!0;if(e.headers)for(const [r,L]of Object.entries(e.headers))n.setRequestHeader(r,L);return n}; r_G=function(){const f=navigator;return new Promise((e,B)=>{f.webkitTemporaryStorage?.queryUsageAndQuota?f.webkitTemporaryStorage.queryUsageAndQuota((n,r)=>{e({usage:n,quota:r})},n=>{B(n)}):B(Error("webkitTemporaryStorage is not supported."))})}; dCd=function(f,e){Eu.getInstance().estimate().then(B=>{f.C("idbQuotaExceeded",{...e,isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:LZO(B?.usage),deviceStorageQuotaMbytes:LZO(B?.quota)})})}; LZO=function(f){return typeof f==="undefined"?"-1":String(Math.ceil(f/1048576))}; HBk=function(){const f=g.ni();return f.jI(192)?f.jI(190):!(g.UV("web_watch_cinematics_disabled_by_default")||g.UV("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&t$O())}; CRY=function(f,e){klO(f.program,e.sH)&&(QF("bg_i",void 0,"player_att"),g.Q1.initialize(f,()=>{QF("bg_l",void 0,"player_att");Ty=(0,g.T)()},e.cspNonce,e.vE))}; wRM=function(f={}){return g.Q1.invoke(f)}; klO=function(f,e){if(f){var B;g.Q1.isLoading()?B=!1:B=!Ty||(0,g.T)()-Ty>e;f=B}else f=!1;return f}; vAG=function(f,e){if(e.partnerId===38&&f.playerStyle==="books")return f=e.videoId.indexOf(":"),g.vT(`//play.google.com/books/volumes/${e.videoId.slice(0,f)}/content/media`,{aid:e.videoId.slice(f+1),sig:e.IQ});if(e.partnerId===30&&f.playerStyle==="docs")return g.vT("https://docs.google.com/get_video_info",{docid:e.videoId,authuser:e.VQ,authkey:e.Nm,eurl:f.P4});if(e.partnerId===33&&f.playerStyle==="google-live")return g.vT("//google-liveplayer.appspot.com/get_video_info",{key:e.videoId});throw Error("getVideoInfoUrl for invalid namespace: "+ f.Ed);}; g.D2=function(f,e){return f.vE+"timedtext_video?ref=player&v="+e.videoId}; bB0=function(f){const e={};f.m1&&(e.ytrext=f.m1);return g.TL(e)?void 0:e}; g.Jf=function(f,e){CRY(f,{sH:g.tS(e.experiments,"bg_vm_reinit_threshold"),cspNonce:e.cspNonce,vE:e.vE||""})}; g.ZBG=function(f){if(f.videoData&&f.videoData.rS){const e=[f.videoData.rS];for(const B of Object.keys(f.C))if(f.y_[B]&&f.C[B]){const n=f.C[B](f.y_);n&&e.push(n)}return e.join("&")}return null}; R4H=function(){const f=XMLHttpRequest.prototype.fetch;return!!f&&f.length===3}; qcC=function(f){KZk=2592E3*(f||1)}; z4k=function(f){g.yT("yt-player-bandwidth",f,2592E3)}; Mm=function(f=KZk){if(f>0&&!(PEw()>(0,g.T)()-f*1E3))return 0;f=g.IB("yt-player-quality");if(typeof f==="string"){if(f=g.V7[f],f>0)return f}else if(f instanceof Object)return f.quality;return 0}; Gy=function(){const f=g.IB("yt-player-proxima-pref");return f==null?null:f}; aCG=function(){const f=g.IB("yt-player-quality");if(f instanceof Object&&f.quality&&f.previousQuality){if(f.quality>f.previousQuality)return 1;if(f.qualitye.startsWith("1")),g.yT("yt-player-performance-cap-active-set",f,2592E3)):g.yT("yt-player-performance-cap-active-set",[],2592E3)}; A_6=function(f){g.yT("yt-player-watch-later-pending",f)}; jHY=function(){return!!g.IB("yt-player-headers-readable")}; g.Pl=function(){const f=g.IB("yt-player-caption-language-preferences");return f?f:[]}; XC=function(){const f=g.IB("yt-player-user-settings"),e=new Map;if(f)for(const [B,n]of Object.entries(f))e.set(B,n);return e}; OBM=function(){return g.IB("yt-player-voice-boost")??void 0}; oAw=function(){return g.IB("yt-player-audio-quality-setting")??2}; PA=function(){try{const f=window.navigator;if(f.getAutoplayPolicy&&typeof f.getAutoplayPolicy==="function"){const e=document.getElementsByClassName(g.y1.fH);let B;B=e.length>0&&e[0]?f.getAutoplayPolicy(e[0]):f.getAutoplayPolicy("mediaelement");if(V$G[B])return V$G[B]}}catch(f){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; IJ=function(f){return f.mS||f.nz||f.mutedAutoplay}; lCC=function(f,e){return IJ(f)?e!==1&&e!==2&&e!==0?"AUTOPLAY_STATUS_UNAVAILABLE":f.uI?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; u$6=function(f,e,B){const n=e.S();f.thirdParty||(f.thirdParty={});f.thirdParty={...f.thirdParty,embedUrl:n.loaderUrl};n.ancestorOrigins&&(f.thirdParty.embeddedPlayerContext={...f.thirdParty.embeddedPlayerContext,ancestorOrigins:n.ancestorOrigins});n.HJ!=null&&(f.thirdParty.embeddedPlayerContext={...f.thirdParty.embeddedPlayerContext,visibilityFraction:Number(n.HJ)});n.Ui&&(f.thirdParty.embeddedPlayerContext={...f.thirdParty.embeddedPlayerContext,visibilityFractionSource:n.Ui});f.thirdParty.embeddedPlayerContext= {...f.thirdParty.embeddedPlayerContext,autoplayBrowserPolicy:PA(),autoplayIntended:IJ(e),autoplayStatus:lCC(e,B)}}; xxG=function(f){const e=[];for(let B of f.split(",")){if(!B)continue;(f=B.startsWith("!"))&&(B=B.substring(1));const n=B.split("-");n.length<3||e.push({KD:n[0],platform:n[1],deviceVersion:n[2],Np:f})}return e}; mCH=function(f){return xxG(f).map(({KD:e,deviceVersion:B,Np:n})=>({deviceInterface:FZl[snd[e]]||0,deviceVersion:B||"",isSleeping:n}))}; g.ig=function(f,e,B,n){return new $q(g.V7[f]||0,g.V7[e]||0,B,n)}; e3=function(f){if(fl&&f.EA)return!1;const e=g.V7.auto;return f.G===e&&f.C===e}; nl=function(f){return Bt[f.C||f.G]||"auto"}; UCw=function(f,e){e=g.V7[e];return f.G<=e&&(!f.C||f.C>=e)}; Scw=function(f,e,B,n,r,L,d){if(f.G)return f.G;const t={},H=new Set,k={};if(rJ(n)){for(var C in n.C){if(!n.C.hasOwnProperty(C))continue;f=n.C[C];k[f.info.NC]=[f.info]}return k}C=NQY(e,n,t);L&&r({aftsrt:Ll(C)});const w={};for(const v of Object.keys(C)){const b=v;for(const K of C[b]){const Y=K.itag,l=`${b}_${Number(K.video?.fps||0)}_${!!K.audio?.G}`;if(w.hasOwnProperty(l)){w[l]===!0?k[b].push(K):t[Y]=w[l];continue}const m=dJ(e,K,B,n.isLive,H);m!==!0?(d.add(b),t[Y]=m,m==="disablevp9hfr"&&(w[l]="disablevp9hfr")): (k[b]=k[b]||[],k[b].push(K),w[l]=!0)}}L&&r({bfflt:Ll(k)});for(const v in k){if(!k.hasOwnProperty(v))continue;n=v;k[n]&&k[n][0].zv()&&(k[n]=k[n],k[n]=h4G(e,k[n],t),k[n]=gAH(k[n],t))}L&&Object.keys(t).length>0&&r({rjr:Go(t)});for(const v of H.values())(e=B.J.get(v))&&--e.Jf;L&&r({aftflt:Ll(k)});f.G=g.ox(k,v=>!!v.length); return f.G}; y_6=function(f,e,B,n,r,L,d){var t=e.C||!!r;const H=t&&e.G6?L:void 0;var k=new Set;let C=Scw(f,e,B,n,L,t,k);n.V()&&(C=EAd(B,C,r,t,L,e),t&&L({enflt:Ll(C)}));e.kA=QHm(C,e);r=Lw=>!!C[Lw]; var w=TQM(e);B=[];for(var v of Object.values(C))v?.length&&v[0].G8()&&B.push(...v);if(rJ(n))return L=g.$g(Object.values(C),Lw=>!!Lw.length&&!!Lw[0].audio),t=g.$g(Object.values(C),Lw=>!!Lw.length&&!!Lw[0].video),L&&t||yY(),Pb(new tr(t,L,H,B)); v=C.a;var b=!1;e.i$&&w[0]!=="a"&&DCm(v)&&(w.unshift("a"),b=!0);t&&(L({audioPrefOrder:w.join("_")}),L({preferHighQualityAudio:e.i$}),L({forcedAacForHqa:b}));v=[];if(e.Q3){w=g.GO(w,r);b=new Set;for(var K of w){var Y=C[K];const Lw=new Set;for(var l of Y)if(Y=l.Z_?.id)b.has(Y)?Lw.has(Y)&&v.push(l):(Lw.add(Y),b.add(Y),v.push(l))}if(v.length===0){if(w.length===0)return t&&L({noaudio:1}),yY();v=C[w[0]]}}else{v=g.$g(w,r);if(!v)return t&&L({noaudio:1}),yY();v=C[v]}C["9"]&&C.h&&n.sA&&!e.uY&&(t&&L({dltvp9:1}), delete C["9"]);if(d){t&&L({bfsflt:Ll(C),bfsflta:Ht(f)});e.PS?f.C=J_g(k,f.C):f.C.clear();t&&L({bfsfltb:Ht(f)});for(var m in C){if(!C.hasOwnProperty(m))continue;d=m;if(!(d==="f"||e.yZ===0&&M$5.has(d)))for(var F of C[d])e.PS?Glw(d,F,f.C):xC0(f,d,F)}t&&L({aftsflt:Ht(f)})}m=C["1h"]?"1h":"1";f=C["9h"]?"9h":"9";d=C[m];k=C["2"];K=C[f];d&&d.length&&(e.G.highestAv1Resolution=d[d.length-1].video.qualityOrdinal);K&&K.length&&(e.G.highestVp9Resolution=K[K.length-1].video.qualityOrdinal);F=[];l=[];if(e.sE&&k)F= k,l=["2"];else if(e.Wd&&d)F=d,l=[m],L({forceAv1:m});else if(e.K&&!e.Eu){l=WZM(n)?C["1h"]||C["9h"]?["1h","9h"]:["9","h"]:["1","9","h"];t&&L({newhybpref:l.join(".")});for(var N of l)F=F.concat(C[N]).filter(Lw=>Lw)}else e.ej>0&&K&&d&&(l=[m, f],F=d.concat(K).filter(Lw=>Lw)); if(F.length&&!e.Eu){ky(F,l);if(t){t=[];for(var E of F)t.push(E.itag);L({hbdfmt:t.join(".")})}return Pb(new tr(F,v,H,B))}E=sHm(e);E=g.$g(E,r);if(!E){if(C[m])return L=C[m],ky(L),Pb(new tr(L,v,H,B));t&&L({novideo:1});return yY()}E!=="1"&&E!=="1h"||!C[f]||(N=Cl(C[E]),r=Cl(C[f]),r>N?E=f:r===N&&XR5(C[f])&&(E=f));E==="9"&&C.h&&Cl(C.h)>Cl(C["9"])&&(E="h");e.qC&&n.isLive&&E==="("&&C.H&&Cl(C["("])<1440&&(E="H");t&&L({vfmly:wJ(E)});e=C[E];if(!e.length)return t&&L({novfmly:wJ(E)}),yY();ky(e);return Pb(new tr(e, v,H,B))}; PRO=function(f,e,B,n,r,L,d,t=!1){if(e.Mk&&d&&d.length>1&&!(e.ej>0||e.K)){const w=e.C||!!r,v=w&&e.G6?L:void 0,b=NQY(e,n),K=[],Y=[],l={};for(let m=0;m=B.video?.height)||(t=B.itag,e=d?d:{itag:t,NC:e,G8:L},L?e.numChannels=B.audio.numChannels:(L=B.video,e.maxWidth=L?.width,e.maxHeight=L?.height,e.maxFramerate=n,e.maxBitrateBps=B.EA*8,e.z4=L?.isHdr()),f.C.set(r,e))}; QHm=function(f,e){const B=!(!f.m&&!f.M),n=!(!f.mac3&&!f.MAC3),r=!(!f.meac3&&!f.MEAC3);f=!(!f.i&&!f.I);e.mS=f;return B||n||r||f}; XR5=function(f){for(const e of f)if(e.itag&&ICm.has(e.itag))return!0;return!1}; DCm=function(f){for(const e of f)if(e.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; wJ=function(f){switch(f){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return f}}; Ll=function(f){const e=[];for(const B in f){if(!f.hasOwnProperty(B))continue;const n=B;e.push(wJ(n));for(const r of f[n])e.push(r.itag)}return e.join(".")}; EAd=function(f,e,B,n,r,L){const d={},t={};g.OM(e,(H,k)=>{H=H.filter(C=>{const w=C.itag;if(!C.contentProtection)return t[w]="noenc",!1;if(L.IA&&C.NC==="(h"&&L.Cq)return t[w]="lichdr",!1;if(!f.V&&C.NC==="1e")return t[w]="noav1enc",!1;if(C.NC==="("||C.NC==="(h"){if(f.G&&B&&B.flavor==="widevine"){var v=C.mimeType+"; experimental=allowed";(v=!!C.contentProtection[B.flavor]&&!!B.G[v])||(t[w]=C.contentProtection[B.flavor]?"unspt":"noflv");return v}if(!vt(f,D0.CRYPTOBLOCKFORMAT)&&!f.cS||f.A)return t[w]=f.A? "disvp":"vpsub",!1}return B&&C.contentProtection[B.flavor]&&B.G[C.mimeType]?!0:(t[w]=B?C.contentProtection[B.flavor]?"unspt":"noflv":"nosys",!1)}); H.length&&(d[k]=H)}); n&&Object.entries(t).length&&r({rjr:Go(t)});return d}; gAH=function(f,e){const B=sk(f,(n,r)=>r.video.G()?Math.min(n,r.video.width):n,Infinity); B{if(n.video.G()||n.video.width{if(n.itag!=="299")return!0;e[n.itag]="ps3hfr1080";return!1})); return f}; h4G=function(f,e,B){return e=e.filter(n=>{if(n.video.qualityOrdinal<=f.Yp)return!0;B[n.itag]="maxquality";return!1})}; NQY=function(f,e,B){const n={};for(const r in e.C){if(!e.C.hasOwnProperty(r))continue;const L=e.C[r].info;if(f.X&&L.video&&L.video.qualityOrdinalMath.max(e,B.video.qualityOrdinal),0)}; dJ=function(f,e,B,n=!1,r=new Set){if(e.NC==="")return"unkn";if((e.itag==="304"||e.itag==="266")&&f.A)return"blk2khfr";if(f.U&&e.video&&e.video.qualityOrdinal>f.U)return`max${f.U}`;if(f.MC&&e.NC==="h"&&e.video&&e.video.qualityOrdinal>1080)return"blkhigh264";if(e.NC==="(h"&&!B.U)return"enchdr";if(n&&d9w(e)&&!f.Lq)return"blk51live";if((e.NC==="MAC3"||e.NC==="mac3")&&!f.V)return"blkac3";if((e.NC==="MEAC3"||e.NC==="meac3")&&!f.W)return"blkeac3";if(e.NC==="M"||e.NC==="m")return"blkaac51";if((e.NC==="so"|| e.NC==="sa")&&!f.Ed)return"blkamb";if(!f.IA&&Lhw(e)&&(!B.V||e.NC!=="1e"))return"cbc";if(!B.V&&Lhw(e)&&e.NC==="1e")return"cbcav1";if((e.NC==="i"||e.NC==="I")&&!f.Ch)return"blkiamf";if(f.xA&&e.audio?.G===!0)return"blkvbcabr";if(f.BS&&(e.NC==="1"||e.NC==="1h"||B.V&&e.NC==="1e")&&e.video?.qualityOrdinal&&e.video?.qualityOrdinal>f.BS)return"av1cap";n=B.J.get(e.NC);if(!f.tL&&n&&n.Jf>0)return r.add(e.NC),"byerr";if(e.video?.G()){if(!B.Cq&&!vt(B,D0.FRAMERATE))return"capHfr";if(f.Fl&&e.video.qualityOrdinal>= 4320)return"blk8khfr";if(e.V()&&f.EE&&e.contentProtection&&e.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(f.EA&&e.EA>f.EA)return"ratecap";if(f.cS>0&&e.zv()&&e.video.height>f.cS)return"mvhcap";f=$CY(B,e);return f!==!0?f:!0}; ky=function(f,e=[]){g.cB(f,(B,n)=>{const r=n.EA-B.EA;if(!B.zv()||!n.zv())return r;let L=n.video.height*n.video.width-B.video.height*B.video.width;!L&&e&&e.length>0&&(B=e.indexOf(B.NC)+1,n=e.indexOf(n.NC)+1,L=B===0||n===0?n||-1:B-n);L||(L=r);return L})}; iB5=function(f,e){if(e>f.OE())f.segments=[];else{var B=Id(f.segments,n=>n.YA>=e,f); B>0&&f.segments.splice(0,B)}}; bn=function(f){const e=f.data.getUint8(f.offset+f.C);f.C+=1;return e}; ZB=function(f){const e=f.data.getUint16(f.offset+f.C);f.C+=2;return e}; Rm=function(f){const e=f.data.getInt32(f.offset+f.C);f.C+=4;return e}; Kl=function(f){const e=f.data.getUint32(f.offset+f.C);f.C+=4;return e}; qW=function(f){var e=f.data;var B=f.offset+f.C;e=e.getUint32(B)*4294967296+e.getUint32(B+4);f.C+=8;return e}; zN=function(f,e=NaN){let B;if(isNaN(e))B=f.size;else for(B=f.C;B1?Math.ceil(r*e):Math.floor(r*e))}f.skip(1);B=bn(f)<<16|ZB(f);if(B&256){n=B&1;r=B&4;var L=B&512,d=B&1024,t=B&2048;B=Kl(f);n&&f.skip(4);r&&f.skip(4);n=(L?4:0)+(d?4:0)+(t?4:0);for(r=0;r1?Math.ceil(d*e):Math.floor(d*e)),f.skip(n)}}}; Ar=function(f,e){if(f.byteLength-e<8)return!1;var B=f.getUint32(e);if(B<8||f.byteLength-e122)return!1}return!0}; j3=function(f,e){const B=f.getUint32(e),n=f.getUint32(e+4);return new tad(f,e,B,n)}; g.ln=function(f){const e=f.data.getUint8(f.dataOffset)?20:12;return f.data.getUint32(f.dataOffset+e)}; un=function(f){f=new DataView(f.buffer,f.byteOffset,f.byteLength);return(f=g.Vw(f,0,1836476516))?g.ln(f):NaN}; om=function(f){return f===1701082227||f===1836019558||f===1836019574||f===1835297121||f===1835626086||f===1937007212||f===1953653094||f===1953653099||f===1836475768}; kjM=function(f){var e=g.Vw(f,0,1937011556);if(!e)return null;e=Oo(f,e.dataOffset+8,1635148593)||Oo(f,e.dataOffset+8,1635135537);if(!e)return null;var B=Oo(f,e.dataOffset+78,1936995172),n=Oo(f,e.dataOffset+78,1937126244);if(!n)return null;e=null;if(B)switch(B.skip(4),bn(B)){default:e=0;break;case 1:e=2;break;case 2:e=1;break;case 3:e=255}let r=B=null,L=null;if(n=Oo(f,n.dataOffset,1886547818)){const d=Oo(f,n.dataOffset,1886546020);let t=Oo(f,n.dataOffset,2037673328);if(!t&&(t=Oo(f,n.dataOffset,1836279920), !t))return null;d&&(d.skip(4),B=Rm(d)/65536,L=Rm(d)/65536,r=Rm(d)/65536);f=fE5(t);f=new DataView(f.buffer,f.byteOffset+8,f.byteLength-8);return new H0Y(e,B,L,r,f)}return null}; g.FI=function(f){if(f.data.getUint8(f.dataOffset)){var e=f.data;f=f.dataOffset+4;e=e.getUint32(f)*4294967296+e.getUint32(f+4)}else e=f.data.getUint32(f.dataOffset+4);return e}; CeC=function(f){f=new tad(f.data,f.offset,f.size,f.type,f.G);var e=bn(f);f.skip(7);const B=Kl(f);let n;e===0?(e=Kl(f),n=Kl(f)):(e=qW(f),n=qW(f));f.skip(2);const r=ZB(f),L=[],d=[];for(let t=0;t=2)return null;const r=new DataView(e.buffer,e.byteOffset,e.length),L=g.Vw(r,0,1937011556);if(!L)return null;e=r.getUint32(L.dataOffset+8);n=r.getUint32(L.dataOffset+12);if(n!==1701733217&&n!==1701733238)return null;n=new Z0k(f.byteLength+e);am(n,f,0,B.offset+12);n.data.setInt32(n.offset,2);n.offset+=4;am(n,f,B.offset+16,B.size-16);am(n,r,r.byteOffset+L.dataOffset+8,e);am(n,f,B.offset+B.size,f.byteLength- (B.offset+B.size));B=[1836019574,1953653099,1835297121,1835626086,1937007212,1937011556];for(const d of B)B=g.Vw(f,0,d),n.data.setUint32(B.offset,B.size+e);f=g.Vw(n.data,0,1953654136);n.data.setUint32(f.offset+16,2);return n.data}; KjH=function(f){var e=g.Vw(f,0,1937011556);if(!e)return null;var B=f.getUint32(e.dataOffset+12);if(B!==1701733217&&B!==1701733238)return null;e=Oo(f,e.offset+24+(B===1701733217?28:78),1936289382);if(!e)return null;B=Oo(f,e.offset+8,1935894637);if(!B||f.getUint32(B.offset+12)!==1667392371)return null;e=Oo(f,e.offset+8,1935894633);if(!e)return null;e=Oo(f,e.offset+8,1952804451);if(!e)return null;B=new Uint8Array(16);for(let n=0;n<16;n++)B[n]=f.getInt8(e.offset+16+n);return B}; Qw=function(f,e,B){var n=new NW(B);if(!hr(n,f))return!1;n=gJ(n);if(!S3(n,e))return!1;for(f=0;e;)e>>>=8,f++;e=n.start+n.pos;const r=Eo(n,!0);n=f+(n.start+n.pos-e)+r;n=n>9?qR6(n-9,8):qR6(n-2,1);f=e-f;B.setUint8(f++,236);for(e=0;eB;r++)B=B*256+Wt(f),n*=128;return e?B-n:B}; TN=function(f){return f.pos>=f.C.byteLength}; DB=function(f){const e=Eo(f,!0);let B=Wt(f);for(let n=1;n0){const n=wP(2,e.substring(B+1));g.OM(n,function(r,L){this.set(L,r)},f); e=e.substring(0,B)}e=k_(15,e);g.OM(e,function(n,r){this.set(r,n)},f)}; joY=function(f){const e=f.wM.Dw(),B=[];g.OM(f.C,(r,L)=>{B.push(`${L}=${r}`)}); if(!B.length)return e;const n=B.join("&");f=wP(6,f.wM)?"&":"?";return e+f+n}; yw=function(f,e){f[e]||(f[e]=new O0Y);return f[e]}; Pt=function(f){f.W=(0,g.T)();f.started=0;f.timedOut=0;f.C=0}; Im=function(f,e){let B=f.started+f.C*4;e&&(B+=f.J);B=Math.max(0,B-3);return 1.6**B}; ovw=function(f,e,B){if(Ra(37,f.C))return!1;var n=yw(B,CR(44,f.C));if(n.timedOut<1&&n.C<1)return!1;n=n.timedOut+n.C;f=$y(f,e);B=yw(B,CR(28,f));return B.timedOut+B.C+0=2?d[1]:"";const t=lEO.test(e);var H=ud5.exec(e);H=H!=null&&H.length>=2?H[1]:"";var k=FjG.exec(e);k=k!=null&&k.length>=2&&!Number.isNaN(Number(k[1]))?Number(k[1]):1;var C=mG5.exec(e);C=C!=null&&C.length>=2?C[1]:"0";const w=fz(f.player.S().vE);var v=f.player.getVideoData({playerType:1});const b=g.rH(v.A,!0),K="BISCOTTI_ID"in B?B.BISCOTTI_ID: "";UGd(f,b,e,K.toString(),f.player.S(),v);v={splay:!1,lactMilliseconds:B.LACT.toString(),playerHeightPixels:Math.trunc(B.P_H),playerWidthPixels:Math.trunc(B.P_W),vis:Math.trunc(B.VIS),signatureTimestamp:20492,autonavState:NNk(f.player.S())};f.player.Y("embeds_enable_encrypted_host_flags_enforcement")&&(v.encryptedHostFlags=f.player.S().getWebPlayerContextConfig()?.encryptedHostFlags);n&&(n={},hK6(n,B.YT_REMOTE)&&(v.mdxContext=n));if(n=gvk.includes(w)?void 0:g.fs("PREF")){var Y=n.split(RegExp("[:&]")); for(let m=0,F=Y.length;m1&&l[1].toUpperCase()==="TRUE"){b.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in SRw){n=n.split(RegExp("[:&]"));l=SRw.FLAG_AUTO_CAPTIONS_DEFAULT_ON;Y="f"+(1+Math.floor(l/31)).toString();l=1<=2?e[1]:"")&&H&&(b.user.credentialTransferTokens=[{token:e,scope:"VIDEO"}]);e={contentPlaybackContext:v};d={adBlock:Math.trunc(B.AD_BLOCK),params:d,breakIndex:k,breakPositionMs:C,clientPlaybackNonce:B.CPN,topLevelDomain:w,isProxyAdTagRequest:t,context:b,adSignalsInfoString:CN(A7(K.toString())),overridePlaybackContext:e};r!==void 0&&(d.cueProcessedMs=Math.round(r).toString());H&&(d.videoId=H);B.LIVE_TARGETING_CONTEXT&&(d.liveTargetingParams=B.LIVE_TARGETING_CONTEXT); B.AD_BREAK_LENGTH&&(d.breakLengthMs=Math.trunc(B.AD_BREAK_LENGTH*1E3).toString());L&&(d.driftFromHeadMs=L.toString());d.currentMediaTimeMs=Math.round(f.player.getCurrentTime(1)*1E3);(f=f.player.getGetAdBreakContext())&&(d.getAdBreakContext=f);return d}; Bm=function(f,e,B){f=e?$y(f,B):f.C;return new ef(f)}; nz=function(f,e,B){return CR(28,e?$y(f,B):f.C)}; TNd=function(f,e,B,n,r){++f.J;e&&++f.W;CR(40,B.wM).startsWith("redirector.")&&(f.C=f.G.clone(),delete f.V,n.Lb&&delete r[CR(44,f.C)])}; rG=function(f){return f?`${f.itag||""};${f.lmt||0};${f.xtags||""}`:""}; Lz=function(f,e){return rG(g.Jk(f.info,e))}; ta=function(f){f=f.split("-");const e=Number(f[0]),B=Number(f[1]);if(!isNaN(e)&&!isNaN(B)&&f.length===2&&(f=new dG(e,B),!isNaN(f.start)&&!isNaN(f.end)&&!isNaN(f.length)&&f.length>0))return f}; Hm=function(f,e){return new dG(f,f+e-1)}; kG=function(f){if(!f)return new dG(0,0);var e=Number(f.start);f=Number(f.end);if(!isNaN(e)&&!isNaN(f)&&(e=new dG(e,f),e.length>0))return e}; DG5=function(f){f.length===1||g.P5(f,B=>!!B.range); for(var e=1;e=e.range.start+e.C&&f.range.start+f.C+f.G<=e.range.start+e.C+e.G:f.YA===e.YA&&f.C>=e.C&&(f.C+f.G<=e.C+e.G||e.J)}; $Gl=function(f,e){return f.vS!==e.vS?!1:f.N()&&e.type===3&&f.vS.C()?(f=f.vS.WS(f),yG(f,B=>$Gl(B,e))):f.YA===e.YA&&!!e.G&&e.C+e.G>f.C&&e.C+e.G<=f.C+f.G}; Kz=function(f,e){var B=e.YA;f.X="updateWithSegmentInfo";f.YA=B;if(f.startTime!==e.startTime||f.duration!==e.duration)f.startTime=e.startTime,f.duration=e.duration,Gjl(f)}; qQ=function(f){return!wG(f.T6[f.T6.length-1])}; za=function(f){return f.T6[f.T6.length-1].N()}; g.ar=function(f,e,B){let n;B=f.Mz===null?f.vL.Mz(e,B,f.T6[0].type):f.Mz;f.C?(e=B?J5(f.C,e.DO):f.C,n=new ef(e),n.get("alr")||n.set("alr","yes"),f.G&&A$H(n,f.G)):/http[s]?:\/\//.test(f.G)?n=new ef(new g.Qv(f.G)):(n=Bm(f.vL,B,e),f.G&&A$H(n,f.G));(e=f.range)?n.set("range",e.toString()):f.T6[0].vS.K()&&f.T6.length===1&&f.T6[0].C&&n.set("range",`${f.T6[0].C}-`);f.requestId&&n.set("req_id",f.requestId);isNaN(f.IM)||n.set("headm",f.IM.toString());isNaN(f.W)||n.set("mffa",`${f.W}ms`);f.urlParams&&g.OM(f.urlParams, (r,L)=>{n.set(L,r)}); return n}; i0O=function(f){if(f.range)return f.J;f=f.T6[0];return Math.round(f.K*f.vS.info.EA)}; fkk=function(f,e){return Math.max(0,f.T6[0].V-e)}; eR5=function(f,e){for(const B of f.T6)if(B.type===3&&e>=B.V&&e<=B.W)return!0;return!1}; pz=function(f,e,B){for(;f;f=f.parentNode){if(!f.attributes||B&&f.nodeName!==B)continue;const n=f.getAttribute(e);if(n)return n}return""}; cm=function(f,e){for(;f;f=f.parentNode){const B=f.getElementsByTagName(e);if(B.length>0)return B[0]}return null}; B_d=function(f){if(!f)return 0;const e=f.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return e?(Number(e[2])|0)*3600+(Number(e[4])|0)*60+(Number(e[6])|0):Number(f)|0}; nUk=function(f){return f.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?`${f}Z`:f}; rXd=function(f){const e=f.J;f.J=[];return e}; LA5=function(f){f.C||(f.C=new YG);return f.C}; dLY=function(f,e){f.G[e]||(f.G[e]=new YG);return f.G[e]}; tL0=function(f,e){f.J[e]||(f.J[e]=new YG);return f.J[e]}; HSd=function(f,e){const B=[];e=Array.from(e.getElementsByTagName("SegmentTimeline"));for(const n of e){e=n.parentNode.parentNode;let r=null;e.nodeName==="Period"?r=LA5(f):e.nodeName==="AdaptationSet"?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",r=dLY(f,e)):e.nodeName==="Representation"&&(e=e.getAttribute("id")||"",r=tL0(f,e));if(r==null)return;r.update(n);g.CF(B,rXd(r))}g.CF(f.V,B);C00(f.V,n=>n.startSecs*1E3+n.C)}; kTO=function(f){f.C&&(f.C.C=[]);g.OM(f.G,e=>{e.C=[]}); g.OM(f.J,e=>{e.C=[]})}; Aa=function(f,e){return pF(f.segments,B=>e-B.YA)}; CAO=function(f,e,B){const n=f.index.K(e),r=f.index.getStartTime(e);let L=f.index.getDuration(e);B?L=B=0:B=f.info.EA*L;return new jf([new Rr(3,f,void 0,"otfCreateRequestInfoForSegment",e,r,L,0,B)],n)}; wlM=function(f,e){if(!f.index.isLoaded()){var B=[],n=e.W;e=e.X.split(",").filter(k=>k.length>0); var r=0,L=0,d=0,t=/^(\d+)/,H=/r=(\d+)/;for(let k=0;k0&&(f.C=Math.min(f.C+B,10),f.G=r),f.C>0?(f.C--, f=!0):f=!1,f?(typeof n==="function"&&(n=n()),console.log(`${"plyr"}.${e}`,n)):(n=(KAH.get(e)??0)+1,KAH.set(e,n),n%100===1&&console.warn("plyr",`${"plyr"}.${e} is chatty, dropping logs.`)))}; uJ=function(f){if(!f.X){if(g.TF(f.info.vS.info)){var e=g.lJ(f);var B=Oo(e,0,1836019574);if(B){B=B.offset+B.size;var n=new Uint8Array(B);n.set(new Uint8Array(e.buffer,e.byteOffset,B));e=n}else e=null}else e=p6M(new NW(g.lJ(f)));e&&(f.info.vS.G=e,f.X=!0)}}; g.lJ=function(f){return UBO(f.G)}; qf5=function(f,e){e=Math.min(e,f.info.G);const {OU:B,ZF:n}=f.G.split(e),r=new Fn(new Rr(f.info.type,f.info.vS,f.info.range,f.info.X,f.info.YA,f.info.startTime,f.info.duration,f.info.C,e,!1,f.info.BE,f.info.clipId),B);r.V=f.V;r.J=f.J;e=new Fn(new Rr(f.info.type,f.info.vS,f.info.range,f.info.X,f.info.YA,f.info.startTime,f.info.duration,f.info.C+e,f.info.G-e,f.info.J,f.info.BE,f.info.clipId),n);e.V=f.V;e.J=f.J;return[r,e]}; g.m6=function(f){g.TF(f.info.vS.info)||f.info.vS.info.rj();if(f.J!==-1)return f.J;if(f.C&&nvg(f.C))return f.J=nvg(f.C),f.J;if(g.TF(f.info.vS.info)){var e=g.lJ(f);var B=f.info.vS.G,n=NaN;let r=NaN,L=0;for(;Ar(e,L);){const d=j3(e,L);d.type===1936286840?r=d.data.getUint32(d.dataOffset+8):d.type===1836476516?r=g.ln(d):d.type===1952867444&&isNaN(n)&&(n=g.FI(d));L=om(d.type)?L+8:L+d.size}!r&&B&&(r=un(B));e=n/r}else e=new NW(g.lJ(f)),B=f.W?e:new NW(new DataView(f.info.vS.G.buffer)),n=so(B),B=e.pos,e.pos= 0,XI(e)?S3(e,231)?(n=DB(e)*n/1E9,e.pos=B,e=n):(e.pos=B,e=NaN):(e.pos=B,e=NaN);f.J=e||f.info.V;return f.J}; zRg=function(f,e){g.TF(f.info.vS.info)||f.info.vS.info.rj();f.J=e;if(g.TF(f.info.vS.info)){var B=g.lJ(f);f=f.info.vS.G;var n=NaN,r=NaN;let H=0;for(;Ar(B,H);){const k=j3(B,H);isNaN(n)&&(k.type===1936286840?n=k.data.getUint32(k.dataOffset+8):k.type===1836476516&&(n=g.ln(k)));if(k.type===1952867444){!n&&f&&(n=un(f));var L=g.FI(k);isNaN(r)&&(r=Math.round(e*n)-L);var d=k;L+=r;if(d.data.getUint8(d.dataOffset)){var t=d.data;d=d.dataOffset+4;t.setUint32(d,Math.floor(L/4294967296));t.setUint32(d+4,L&4294967295)}else d.data.setUint32(d.dataOffset+ 4,L)}H=om(k.type)?H+8:H+k.size}return!0}B=new NW(g.lJ(f));f=f.W?B:new NW(new DataView(f.info.vS.G.buffer));n=so(f);f=B.pos;B.pos=0;if(XI(B)&&S3(B,231))if(r=Eo(B,!0),e=Math.floor(e*1E9/n),Math.ceil(Math.log(e)/Math.log(2)/8)>r)e=!1;else{for(n=r-1;n>=0;n--)B.C.setUint8(B.pos+n,e&255),e>>>=8;B.pos=f;e=!0}else e=!1;return e}; ak6=function(f,e){f.timestampOffset>0&&(e-=f.timestampOffset);var B=g.m6(f)+e;zRg(f,B);f.timestampOffset=e}; UQ=function(f){g.TF(f.info.vS.info)||f.info.vS.info.rj();if(f.C&&f.info.type===6)return f.C.ZP;if(g.TF(f.info.vS.info)){var e=g.lJ(f);var B=0;e=g.mF(e,1936286840);for(var n of e)e=CeC(n),B+=e.Qy[0]/e.timescale;B=B||NaN;if(!(B>=0))a:{B=g.lJ(f);n=f.info.vS.G;let w=e=0;for(var r=0;Ar(B,e);){const v=j3(B,e);if(v.type===1836476516)w=g.ln(v);else if(v.type===1836019558){!w&&n&&(w=un(n));if(!w){B=NaN;break a}var L=Oo(v.data,v.dataOffset,1953653094),d=L;L=w;var t=Oo(d.data,d.dataOffset,1952868452);d=Oo(d.data, d.dataOffset,1953658222);var H=Rm(t);Rm(t);H&2&&Rm(t);t=H&8?Rm(t):0;var k=Rm(d),C=k&1;H=k&4;const b=k&256,K=k&512,Y=k&1024;k&=2048;const l=Kl(d);C&&Rm(d);H&&Rm(d);C=0;for(let m=0;mg.sV(e,B,4,1E3),f,{format:"RAW", method:"GET",withCredentials:!0})}; g.lkg=function(f){let e;f.responseType&&f.responseType!=="text"?f.responseType==="arraybuffer"&&(e=tf(new Uint8Array(f.response))):e=f.responseText;return!e||e.length>2048?"":e.indexOf("https://")===0?e:""}; gG=function(f,e,B){e.match(uY0);return f(e,B).then(n=>{const r=g.lkg(n.xhr);return r?gG(f,r,B):n.xhr})}; FAk=function(f){return yG(f,e=>"FORMAT_STREAM_TYPE_OTF"===e.type)?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; ULg=function(f,e,B=0,n){n=new g.Sf("",n,!1);n.duration=B||0;for(const r of f){f=EQ(r,e,n.duration);const {BV:L,s:d,t9:t}=w5(3,r);(B=pP(L||r.url||"",t,d))&&(f.streamType==="FORMAT_STREAM_TYPE_OTF"?Qj(n,new mLg(B,f)):Qj(n,new Ta(B,f,kG(r.initRange),kG(r.indexRange))))}n.isOtf=!0;return n}; N_m=function(f,e,B=0,n){n=new g.Sf("",n.experiments,!1);n.duration=B||0;for(const r of f){f=EQ(r,e,n.duration);B=kG(r.initRange);const L=kG(r.indexRange),{BV:d,s:t,t9:H}=w5(1,r),k=pP(d||r.url||"",H,t);k&&Qj(n,new Ta(k,f,B,L))}return n}; EQ=function(f,e,B=0){let n=f.mimeType||"";var r=f.itag;var L=f.xtags;r=r?r.toString():"";L&&(r+=`;${L}`);L=r;if(U7(n)){var d=f.width||640;r=f.height||360;var t=f.fps,H=f.qualityLabel;const Y=f.qualityOrdinal,l=f.colorInfo,m=f.projectionType;var k;f.stereoLayout&&(k=hRG[f.stereoLayout]);const F=oUG(f)||void 0;var C;l?.primaries&&(C=gU6[l.primaries]||void 0);d=new hk(d,r,t,m,k,void 0,H,Y&&SfG[Y],F,C);n=DA(n,d,Ja[f.itag||""]);MQ&&(n+="; enableflushduringseek=true");Ga&&(n+="; enableresetaudiodecoder=true")}let w; if(m4(n)){var v=f.audioSampleRate;k=f.audioTrack;v=new N2(v?+v:void 0,f.audioChannels,f.spatialAudioType,f.isDrc,f.loudnessDb,f.trackAbsoluteLoudnessLkfs,f.audioQuality||"AUDIO_QUALITY_UNKNOWN",f.isVb);k&&(C=k.displayName,r=k.id,t=k.audioIsDefault,k=k.isAutoDubbed,C&&(w=new g.xG(C,r||"",!!t,!!k)))}let b;f.captionTrack&&(k=f.captionTrack.displayName,C=f.captionTrack.vssId,r=f.captionTrack.languageCode,t=f.captionTrack.kind,H=f.captionTrack.id,k&&C&&r&&(b=new EU5(k,C,r,t,f.xtags,H)));k=Number(f.bitrate)/ 8;C=Number(f.contentLength);r=Number(f.lastModified);H=f.drmFamilies;t=f.type;f=Number(f.approxDurationMs);let K;if(e&&H){K={};for(const Y of H)(H=Wm[Y])&&(K[H]=e[H])}return new g$(L,n,{audio:v,video:d,Z_:w,contentProtection:K,EA:k,rL:B&&C?C/B:0,contentLength:C,lastModified:r,captionTrack:b,streamType:t,approxDurationMs:f})}; Q56=function(f){return yG(f,e=>"FORMAT_STREAM_TYPE_OTF"===e.stream_type)?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; T_d=function(f,e,B=0,n){n=new g.Sf("",n,!1);n.duration=B||0;for(const r of f)if(f=sQ(r,e,n.duration),B=pP(r.url,r.sp,r.s))if(f.streamType==="FORMAT_STREAM_TYPE_OTF")Qj(n,new mLg(B,f));else{const L=ta(r.init),d=ta(r.index);Qj(n,new Ta(B,f,L,d))}n.isOtf=!0;return n}; DLO=function(f,e,B=0,n){n=new g.Sf("",n?.experiments,!1);n.duration=B||0;for(const r of f){f=sQ(r,e,n.duration);B=ta(r.init);const L=ta(r.index),d=pP(r.url,r.sp,r.s);d&&Qj(n,new Ta(d,f,B,L))}return n}; sQ=function(f,e,B=0){let n=f.type;var r=f.itag;var L=f.xtags;L&&(r=f.itag+";"+L);if(U7(n)){var d=(f.size||"640x360").split("x");d=new hk(+d[0],+d[1],+f.fps,f.projection_type,+f.stereo_layout,void 0,f.quality_label,+f.quality_ordinal,f.eotf,f.primaries);n=DA(n,d,Ja[f.itag]);MQ&&(n+="; enableflushduringseek=true");Ga&&(n+="; enableresetaudiodecoder=true")}let t,H;m4(n)&&(t=new N2(+f.audio_sample_rate||void 0,+f.audio_channels||0,f.spatial_audio_type,!!f.drc),f.name&&(H=new g.xG(f.name,f.audio_track_id, f.isDefault==="1",f.isAutoDubbed==="1")));let k;f.caption_display_name&&f.caption_vss_id&&f.caption_language_code&&(k=new EU5(f.caption_display_name,f.caption_vss_id,f.caption_language_code,f.caption_kind,f.xtags,f.caption_id));L=Number(f.bitrate)/8;const C=Number(f.clen),w=Number(f.lmt);B=B&&C?C/B:0;let v;if(e&&f.drm_families){v={};for(const b of f.drm_families.split(","))v[b]=e[b]}return new g$(r,n,{audio:t,video:d,Z_:H,contentProtection:v,EA:L,rL:B,contentLength:C,lastModified:w,captionTrack:k, streamType:f.stream_type,approxDurationMs:Number(f.approx_duration_ms)})}; JX5=function(f){switch(f){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; MLO=function(f){switch(f){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}}; xLw=function(f,e,B){return GT5(new g.Sf(f,e,B),f)}; rJ=function(f){return g.lH(f.C,e=>Ra(69,e.vL.C))}; WZM=function(f){return g.lH(f.C,e=>!!e.info.video&&e.info.video.isHdr())}; Qj=function(f,e){f.C[e.info.id]=e;f.J.set(Lz(e,f.sA),e)}; GT5=function(f,e=""){f.state=1;f.Lq=(0,g.T)();return VLM(e||f.sourceUrl).then(B=>{if(!f.HS()){f.QW=B.status;B=B.responseText;const r=new DOMParser;B=ey(r,Pe(B),"text/xml").getElementsByTagName("MPD")[0];f.Cq=B_d(pz(B,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(B.attributes)for(n of B.attributes)if(n.value==="http://youtube.com/yt/2012/10/10"){var n=n.name.split(":")[1];break b}n=""}f.U=n;f.isLive=f.Cq{let n; B instanceof xD&&(n=B.xhr,f.QW=n.status);f.state=3;f.publish("loaderror");return ho(n)})}; g.s5C=function(f){return g.lH(f.C,e=>FH(e.info.mimeType))}; Xlk=function(f){return g.lH(f.C,e=>e.info.video?e.info.video.projectionType==="EQUIRECTANGULAR":!1)}; yXM=function(f){return g.lH(f.C,e=>e.info.video?e.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1)}; PAM=function(f){return g.lH(f.C,e=>e.info.video?e.info.video.projectionType==="MESH":!1)}; Ikg=function(f){return g.lH(f.C,e=>e.info.video?e.info.video.stereoLayout===1:!1)}; $Ld=function(f){return uH(f.C,e=>e.info.video?e.Z9():!0)}; f70=function(f,e){let B=pz(e,"id");B=B.replace(":",";");let n=pz(e,"mimeType");var r=pz(e,"codecs");n=r?`${n}; codecs="${r}"`:n;r=Number(pz(e,"bandwidth"))/8;const L=Number(cm(e,"BaseURL").getAttribute(f.U+":contentLength")),d=f.duration&&L?L/f.duration:0;if(U7(n)){var t=Number(pz(e,"width")),H=Number(pz(e,"height")),k=Number(pz(e,"frameRate"));const K=JX5(pz(e,f.U+":projectionType"));a:switch(pz(e,f.U+":stereoLayout")){case "layout_left_right":var C=1;break a;case "layout_top_bottom":C=2;break a; default:C=0}C=new hk(t,H,k,K,C)}if(m4(n)){var w=Number(pz(e,"audioSamplingRate"));var v=Number(pz(e.getElementsByTagName("AudioChannelConfiguration")[0],"value"));t=MLO(pz(e,f.U+":spatialAudioType"));w=new N2(w,v,t);a:{H=pz(e,"lang")||"und";if(v=cm(e,"Role"))if(k=pz(v,"value")||"",g.hu(iSY,k)){v=`${H}.${iSY[k]}`;t=k==="main";f=pz(e,f.U+":langName")||`${H} - ${k}`;v=new g.xG(f,v,t);break a}v=void 0}}if(e=cm(e,"ContentProtection"))if(e.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var b= {};for(e=e.firstChild;e!=null;e=e.nextSibling){if(!(e instanceof Element))continue;if(!/SystemURL/.test(e.nodeName))continue;f=e.getAttribute("type");t=e.textContent;f&&t&&(b[f]=t.trim())}}else b=void 0;return new g$(B,n,{audio:w,video:C,Z_:v,contentProtection:b,EA:r,rL:d,contentLength:L})}; WAO=function(f){var e=f.Cq;isFinite(e)&&(Xn(f)?f.refresh():(e=Math.max(0,f.Lq+e-(0,g.T)()),f.W||(f.W=new g.T6(f.refresh,e,f),g.A(f,f.W)),f.W.start(e)))}; Xn=function(f){return f.isLive&&(0,g.T)()-f.Lq>=f.Cq}; eA5=function(f){f=f.C;for(const e in f){const B=f[e].index;if(B.isLoaded())return B.OE()+1}return 0}; yj=function(f){return f.GQ?f.GQ-(f.N||f.timestampOffset):0}; Pm=function(f){return f.Ei?f.Ei-(f.N||f.timestampOffset):0}; Ir=function(f){if(!isNaN(f.PS))return f.PS;var e=f.C;for(var B in e){var n=e[B].index;if(n.isLoaded()&&!FH(e[B].info.mimeType)){e=0;for(B=n.Ma();B<=n.OE();B++)e+=n.getDuration(B);e/=n.FK();e=Math.round(e/.5)*.5;n.FK()>10&&(f.PS=e);return e}if(f.isLive&&(n=e[B],n.ZP))return n.ZP}return NaN}; BHm=function(f,e){f=Qg(f.C,n=>n.index.isLoaded()); if(!f)return NaN;f=f.index;const B=f.hq(e);return f.getStartTime(B)===e?e:B49?"p60":e>32?"p48":""}`;e=xq()[f];if(e!=null&&e>0)return e;e=Hk.get(f);if(e!=null&&e>0)return e;B=B?.get(f);return B!=null&&B>0?B:8192}; wJ0=function(f,e=!1){c_5(e);Ycl(e);if(e){for(const B of Hk.keys())B.startsWith("1")||Hk.delete(B);for(const B of CT.values())B.startsWith("1")||CT.delete(B);for(const B of f.keys())B.startsWith("1")||f.delete(B)}else Hk.clear(),CT.clear(),f.clear()}; ZK5=function(f,{isOtf:e,Cl:B,GW:n,Tf:r,F_:L,i$:d,cD:t,oF:H,yZ:k,disableAv1:C,C4:w}){const v=new v$m(f);if(f.wA()||f.Y("html5_logging_format_selection"))v.C=!0;v.Z9=L;v.i$=d&&f.K;v.yZ=k;g.H1("windows nt 5.1")&&!g.wu&&(v.Eu=!0);if(L=B)L=g.vk(f)?bK5(f):!1;L&&(v.Ed=!0);t&&(v.Eu=!0,v.uC=!0);e&&!f.Y("html5_otf_prefer_vp9")&&(v.Eu=!0);f.playerStyle==="picasaweb"&&(e&&(v.Eu=!1),v.A=!1);r&&(v.Eu=!0);vt(f.W,D0.CHANNELS)&&(f.Y("html5_enable_ac3")&&(v.V=!0),f.Y("html5_enable_eac3")&&(v.W=!0),f.Y("html5_enable_ac3_gapless")&& (v.WS=!0));f.Y("html5_block_8k_hfr")&&(v.Fl=!0);v.U=g.tS(f.experiments,"html5_max_selectable_quality_ordinal");v.X=g.tS(f.experiments,"html5_min_selectable_quality_ordinal");bD&&(v.Yp=480);if(n||B)v.A=!1;v.MC=!1;v.disableAv1=C;e=ZH(f,v.G,void 0,v.disableAv1);e>0&&e<2160&&($5()||f.Y("html5_format_hybridization"))&&(v.G.supportsChangeType=+$5(),v.ej=e);e>=2160&&(v.eI=!0);v.oF=H;v.uY=g.Po||ps()&&!H?!1:!0;v.K=f.Y("html5_format_hybridization");v.qC=f.Y("html5_disable_encrypted_vp9_live_non_2k_4k");v.tL= w;return v}; ZH=function(f,e={},B,n=!1){if(n)return e.disabled=1,0;if(vt(f.W,D0.AV1_CODECS)&&vt(f.W,D0.HEIGHT)&&vt(f.W,D0.BITRATE))return e.isCapabilityUsable=1,8192;n=1080;var r=navigator.hardwareConcurrency;r<=2&&(n=480);e.coreCount=r;if(r=g.tS(f.experiments,"html5_default_av1_threshold"))n=e["default"]=r;if(f=f.W.Ed)e.mcap=f,n=Math.max(n,f);if(B){if(f=B.videoInfos.find(L=>L.C())?.W?.powerEfficient)n=8192,e.isEfficient=1; B=B.videoInfos[0].video;r=Math.min(kL("1",B.fps),kL("1",30));e.perfCap=r;n=Math.min(n,r);B.isHdr()&&!f&&(e.hdr=1,n*=.75)}else B=kL("1",30),e.perfCap30=B,n=Math.min(n,B),B=kL("1",60),e.perfCap60=B,n=Math.min(n,B);return e.av1Threshold=n}; TQM=function(f){let e=["o","a","A"];f.yZ===1&&(f.V&&(e=["mac3","MAC3"].concat(e)),f.W&&(e=["meac3","MEAC3"].concat(e)),f.Ch&&(e=["i","I"].concat(e)));f.Ed&&(e=["so","sa"].concat(e));!f.uC||f.WS||f.J||f.lC||e.unshift("a");f.J&&(e=(RA5[f.J]||[f.J]).concat(e));return e}; sHm=function(f){if(f.Z9)return["f"];if(g.H1("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");let e=["9h","9","h","8"];f.hE&&e.push("1e");e=e.concat(["(h","(","H","*"]);f.eI&&(e.unshift("1"),e.unshift("1h"));f.Eu&&e.unshift("h");f.N&&(e=(RA5[f.N]||[f.N]).concat(e));return e}; RP=function(){const f=window;let e=f.MSMediaKeys;bz()&&!e&&(e=f.WebKitMediaKeys);return e&&e.isTypeSupported?e:null}; KT=function(f){return navigator.requestMediaKeySystemAccess?g.PP&&!g.Cs()?cZ("45"):g.Po||g.db?f.SI("edge_nonprefixed_eme"):g.wu?cZ("47"):g.oN&&f.SI("html5_enable_safari_fairplay")?!1:!0:!1}; qs=function(f){return f.V?!1:!f.keySystemAccess&&!!RP()&&f.keySystem==="com.microsoft.playready"}; zf=function(f){return f.keySystem==="com.microsoft.playready"}; aP=function(f){return!f.keySystemAccess&&!!RP()&&f.keySystem==="com.apple.fps.1_0"}; pT=function(f){return f.keySystem==="com.youtube.fairplay"}; g.ck=function(f){return f.flavor==="fairplay"}; Kml=function(f,e,B,n){const r=wx(),L=(B=r||B&&bz())?["com.youtube.fairplay"]:["com.widevine.alpha"];e&&L.unshift("com.youtube.widevine.l3");r&&n&&L.unshift("com.youtube.fairplay.sbdl");return B?L:f?[...L,...VZ.playready]:[...VZ.playready,...L]}; uD=function(f){if(!f.HS())if(f.G.length===0)f.callback(f.V);else{var e=f.G[0],B=f.J[e],n=qX5(f,B);lD&&lD.keySystem===e&&lD.UH===JSON.stringify(n)?(f.ri("remksa",{re:!0}),zAg(f,B,lD.keySystemAccess)):(f.ri("remksa",{re:!1,ok:lD?.keySystem??""}),lD=void 0,navigator.requestMediaKeySystemAccess(e,n).then(oJ(r=>{zAg(f,B,r,n)}),oJ(()=>{f.W=!f.W&&f.J[f.G[0]].flavor==="widevine"; f.W||f.G.shift();uD(f)})))}}; pJO=function(f){if(RP()&&(g.oN||RB))f.V.push(new F5("fairplay","com.apple.fps.1_0","",f.V9.experiments));else{var e=a7w(),B=g.$g(f.G,n=>{const r=f.J[n];let L=!1,d=!1;for(const t in f.C[r.flavor])e(t,n)&&(r.G[t]=!0,L=L||t.indexOf("audio/")===0,d=d||t.indexOf("video/")===0);return L&&d}); B&&f.V.push(f.J[B]);f.G=[]}f.callback(f.V)}; cQm=function(f,e){f.callback=e;f.V=[];KT(f.V9.experiments)?uD(f):pJO(f)}; qX5=function(f,e){const B={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(f.Y("html5_enable_vp9_fairplay")&&pT(e))return B.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),B.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[B];zf(e)&&(B.initDataTypes=["keyids","cenc"]);for(const r of Object.keys(f.C[e.flavor])){var n=r.indexOf("audio/")===0;const L=n?B.audioCapabilities:B.videoCapabilities;e.flavor!=="widevine"||f.W?L.push({contentType:r}): n?L.push({contentType:r,robustness:"SW_SECURE_CRYPTO"}):(g.PP&&g.H1("windows nt")&&!f.Y("html5_drm_enable_moho")||L.push({contentType:r,robustness:"HW_SECURE_ALL"}),n=r,f.V9.W.G&&r.includes("vp09")&&(n=r+"; experimental=allowed"),L.push({contentType:n,robustness:"SW_SECURE_DECODE"}),mt(f.V9)==="MWEB"&&(aB()||kB())&&(f.ri("swcrypto",{}),L.push({contentType:r,robustness:"SW_SECURE_CRYPTO"})))}return[B]}; zAg=function(f,e,B,n){if(!f.HS()){n&&(lD={keySystem:e.keySystem,keySystemAccess:B,UH:JSON.stringify(n)});e.keySystemAccess=B;if(zf(e)){var r=XN();for(var L of Object.keys(f.C[e.flavor]))e.G[L]=!!r.canPlayType(L)}else{L=e.keySystemAccess.getConfiguration();if(L.audioCapabilities)for(r of L.audioCapabilities)e.G[r.contentType]=!0;if(L.videoCapabilities)for(const d of L.videoCapabilities)e.G[d.contentType]=!0}f.V.push(e);f.useCobaltWidevine||f.Y("html5_enable_vp9_fairplay")&&e.C()?(f.G.shift(),uD(f)): f.callback(f.V)}}; a7w=function(){const f=RP();if(f){const B=f.isTypeSupported;return(n,r)=>B(r,n)}const e=XN(); return e&&(e.addKey||e.webkitAddKey)?(B,n)=>!!e.canPlayType(B,n):()=>!1}; OKw=function(f,e){switch(e.Km){case "bool":return f.SI(e.Jj);case "int":return f=YXM(f,e.Jj),fu(f);case "double":return YXM(f,e.Jj);case "string":return AQY(f,e.Jj);case "int32_list":return jR5(f,e.Jj);case "int64_list":return jR5(f,e.Jj).map(B=>fu(B)); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; YXM=function(f,e){f=f.flags.get(`${e}`);return Number(f)||0}; AQY=function(f,e){return(f=f.flags.get(`${e}`))?f.toString():""}; jR5=function(f,e){if(f=f.flags.get(`${e}`))if(f=f.replace(/\[ *(.*?) *\]/,"$1"))return f.split(",").map(Number);return[]}; UC=function(f,e){return(f=f.jI(e))?f.toString():""}; g.tS=function(f,e,B=0){f=f.jI(e);JSON.stringify(f);return f===void 0?B:Number(f)}; o$C=function(f){if(f=f.jI("html5_web_po_experiment_ids"))if(f=f.replace(/\[ *(.*?) *\]/,"$1"))return f.split(",").map(Number);return[]}; VH0=function(f){if(f.C)return f.C;if(f.experimentIds.length<=1)return f.C=f.experimentIds,f.C;const e=[...f.experimentIds].map(B=>Number(B)); e.sort();for(let B=e.length-1;B>0;--B)e[B]-=e[B-1];f.C=e.map(B=>B.toString()); f.C.unshift("v1");return f.C}; J_g=function(f,e){const B=new Map;for(const n of e.keys()){const r=n.split("_")[0];f.has(r)||B.set(n,e.get(n))}return B}; Glw=function(f,e,B){const n=e.video?.fps||0,r=`${f}_${n}`,L=!!e.audio,d={itag:e.itag,NC:f,G8:L};if(L)d.numChannels=e.audio.numChannels;else{var t=e.video;d.maxWidth=t?.width;d.maxHeight=t?.height;d.maxFramerate=n;d.maxBitrateBps=e.EA*8;d.z4=t?.isHdr()}t=B.get(r);t?L||(e=Math.max(t.maxWidth||0,t.maxHeight||0)>Math.max(d.maxWidth||0,d.maxHeight||0)?t:d,f={itag:e.itag,NC:f,G8:L,maxWidth:Math.max(t.maxWidth||0,d.maxWidth||0),maxHeight:Math.max(t.maxHeight||0,d.maxHeight||0),maxFramerate:n,z4:e.z4},f.maxBitrateBps= e.maxBitrateBps,B.set(r,f)):B.set(r,d)}; $CY=function(f,e,B=1){const n=e.itag;if(n==="0")return!0;let r=e.mimeType;if(e.NC==="1e"&&!f.V)return"dav1enc";if(e.C()&&f.N)return"dav1";if(e.video&&(e.video.isHdr()||e.video.primaries==="bt2020")&&!(vt(f,D0.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(n==="338"&&!(g.PP?cZ(53):g.wu&&cZ(64)))return"dopus";B=HPO(e,B);f.G&&e.V()&&(B[D0.EXPERIMENTAL.name]= "allowed");for(const t of Object.keys(D0)){const H=D0[t];var L;if(L=B[H.name])if(L=!(H===D0.EOTF&&e.mimeType.indexOf("vp09.02")>0)){L=H;var d=e;L=!(f.experiments.SI("html5_ignore_h264_framerate_cap")&&L===D0.FRAMERATE&&rhM(d))}if(L)if(vt(f,H))if(f.W){if(f.W[H.name]1080&&e.contentProtection&&(r+="; hdcp=2.2");return n==="227"?"hqcenc":n!=="585"&&n!=="588"&&n!== "583"&&n!=="586"&&n!=="584"&&n!=="587"&&n!=="591"&&n!=="592"||f.experiments.SI("html5_enable_new_hvc_enc")?wx()&&tl()>=21&&g.H1("appletv5")&&(n==="410"||n==="845")?!0:f.isTypeSupported(r)?!0:"tpus":"newhvc"}; vt=function(f,e){e.name in f.X||(f.X[e.name]=l76(f,e));return f.X[e.name]}; uW6=function(f){navigator.mediaCapabilities?.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(e=>{e.smooth&&e.powerEfficient&&(f.Ed=2160)})}; Ns=function(){const f=kB()&&!cZ(29),e=g.H1("google tv")&&g.H1("chrome")&&!cZ(30);return f||e?!1:v40()}; Fm5=function(f,e,B){let n=480;for(const r of e)e=r.video.qualityOrdinal,e<=1080&&e>n&&$CY(f,r,B)===!0&&(n=e);return n}; g.hF=function(f,e=!1){return Ns()&&f.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!e&&f.canPlayType(XN(),"application/x-mpegURL")?!0:!1}; UJH=function(f){mJO(()=>{for(const e of Object.keys(D0))vt(f,D0[e])})}; l76=function(f,e){if(f.W)return!!f.W[e.name];if(e===D0.BITRATE&&f.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!f.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(e===D0.AV1_CODECS)return f.isTypeSupported(`video/mp4; codecs=${e.valid}`)&&!f.isTypeSupported(`video/mp4; codecs=${e.IJ}`);let B;e.video?(B='video/webm; codecs="vp9"',f.isTypeSupported(B)||(B='video/mp4; codecs="avc1.4d401e"')):(B='audio/webm; codecs="opus"', f.isTypeSupported(B)||(B='audio/mp4; codecs="mp4a.40.2"'));return f.isTypeSupported(`${B}; ${e.name}=${e.valid}`)&&!f.isTypeSupported(`${B}; ${e.name}=${e.IJ}`)}; NHd=function(f,e){let B=0;f.J.has(e)&&(B=f.J.get(e).TA);f.J.set(e,{TA:B+1,Jf:2**(B+1)});f.C=!0}; g$5=function(f,e,B,n,r){if(e&&typeof e==="object"){const L=d=>hAH(f,d,B,n,r); if(Oc(e))return e.then(L);if(F0(e))return hS(e,L)}return hAH(f,e,B,n,r)}; E$M=function(f,e,B,n=1){B>=0&&(e in f.C||(f.C[e]=new SXk),f.C[e].Lj(B,n))}; hAH=function(f,e,B,n,r){const L=(0,g.T)();r=r?r(e):void 0;const d=r?.Qt??1;d!==0&&E$M(f,r?.profile??B,L-n,d);return e}; QRM=function(f){const e=window;e.ywc||(e.ywc={});var B=e.ywc[f];if(B)return B;B={};return e.ywc[f]=B}; THl=function(f){const e=window;e.ywc&&delete e.ywc[f]}; DJk=function(f){const e=QRM(f);if(e.binP)return e.binP;e.binP=Promise.resolve().then(()=>fetch(f)).then(B=>{if(!B.ok)throw Error(`HTTP${B.statusText}`); return B.arrayBuffer()}); e.binP.then(B=>{e.bin=B},()=>{THl(f)}); return e.binP}; GRd=function(f,e,B){return Es(void 0,function(){return function*(){const n=gu.N2(),r=f&&SK;if(!r&&!e)return B?.("wasmns",{p:f?"1":"0",a:e?"1":"0",s:SK?"1":"0"}),Us(Error("wasm.wm.ns"));const L=new JQl;if(r)try{const d=yield*Qx(MH5(L,f)),t=new EC(d,L,!1,!0);gu.US("winit",n);B?.("wasmsw",{});return t}catch(d){if(B?.("wasmerrw",{e:`${d}`}),!e)throw Error(`wasm.wm.iw: ${d}`);}if(!e)throw Error("wasm.wm.xx");try{const d=yield*Qx(e(L)),t=new EC({exports:d},L,!0,!0);gu.US("winitjs",n);B?.("wasmsa",{});return t}catch(d){throw B?.("wasmerra", {e:`${d}`}),Error(`wasm.wm.ia: ${d}`);}}()})}; MH5=function(f,e){return Es(xJO,function(){const B=this;return function*(){if(!B.C)throw"wasm.ps.ns";const n=yield*Qx(Wm5(B,e));if(!n)throw"wasm.ps.um";return yield*Qx(WebAssembly.instantiate(n,f))}()})}; Wm5=function(f,e){return Es(f,function(){const B=this;return function*(){const n=[],r=()=>"wasm.ps.c: ["+n.map(t=>`"${t}"`).join(", ")+"]",L=QRM(e); if(L.mod)return L.mod;if(L.modP)try{return yield*Qx(L.modP)}catch(t){n.unshift("pcm")}let d=L.bin;if(!d&&L.binP)try{d=yield*Qx(L.binP)}catch(t){n.unshift("pfb")}if(!d)try{d=yield*Qx(DJk(e))}catch(t){throw B.C=!1,n.unshift(`fb: ${t}`),r();}try{return yield*Qx(WebAssembly.compile(d))}catch(t){THl(e),n.unshift(`ca: ${t}`)}throw r();}()})}; sRC=function(f,e,B,n){B=f.C.QJ(B);var r=f.G;r.C.exports.AES128CTRCipher_setCounter(r.cipher,B.byteOffset);e=f.C.QJ(e);f.G.encrypt(e);r=void 0;if(n){n=f.C;r=f.J;const L=new Uint8Array(n.exports.memory.buffer,n.malloc(32),32);n.exports.Sha256Hmac(r.byteOffset,r.byteLength,B.byteOffset,B.byteLength,e.byteOffset,e.byteLength,L.byteOffset);r=f.C.yB(L)}f.C.free(B.byteOffset);return{X9:f.C.yB(e),signature:r}}; XJY=function(f){f.V||(f.V=new g.QZ(f.G));return f.V}; Tf=function(f){try{return uW(f)}catch(e){return null}}; yQl=function(f){var e=pRw();if(e.values){e=e.values;const d={};for(var B of Object.keys(f.values)){e[B]&&f.G[B]&&(f.values[B]+=e[B]-f.G[B]);var n=f,r=n;if(!r.values[B]){var L=pRw();r.values=L.values||{};r.Kg=L.halfLives||{};r.G=L.values?Object.assign({},L.values):{}}d[B]=n.values[B]&&n.Kg[B]?n.values[B]/2**(n.C/n.Kg[B]):0}f.G=d}B=f.Kg;e={};e.values=f.G;e.halfLives=B;g.yT("yt-player-memory",e,2592E3)}; PK=function(f){return/web/i.test(mt(f))}; g.DH=function(f){return mt(f)==="WEB_UNPLUGGED"}; g.TT=function(f){return mt(f)==="WEB_REMIX"}; g.JF=function(f){return f.Y("html5_local_playsinline")?RB&&!g.pH(602)&&!("playsInline"in XN()):RB&&!f.g8||g.H1("nintendo wiiu")?!0:!1}; g.XY=function(f){return f.V&&g.Ms(f)&&!Gf(f)&&!f.U}; PB5=function(f){return mt(f)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; Gf=function(f){return f.Cq==="adunit"||f.playerStyle==="gvn"}; xL=function(f){return f.Cq==="detailpage"}; g.Ms=function(f){return f.Cq==="embedded"}; g.Wk=function(f){return f.Cq==="profilepage"}; g.sC=function(f){if(!f.webPlayerContextConfig?.embedsHostFlags?.enableLiteUx||f.Yp||f.U||f.J||f.eI==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";f=g.tS(f.experiments,"embeds_web_lite_mode");return f===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":f>=0&&f0&&f.L6&&(n.sort(),g.Yv(new g.Dj("Player client parameters changed after startup",n)));f.userAge=j4(f.userAge,e.user_age);f.pz=Ov(f.pz,e.user_display_email);f.userDisplayImage=Ov(f.userDisplayImage,e.user_display_image);g.dE(f.userDisplayImage)||(f.userDisplayImage="");f.userDisplayName=Ov(f.userDisplayName, e.user_display_name);f.s3=Ov(f.s3,e.user_gender);f.csiPageType=Ov(f.csiPageType,e.csi_page_type);f.csiServiceName=Ov(f.csiServiceName,e.csi_service_name);f.F6=YB(f.F6,e.enablecsi);f.pageId=Ov(f.pageId,e.pageid);if(B=e.enabled_engage_types)f.enabledEngageTypes=new Set(B.split(","));e.living_room_session_po_token&&(f.zt=e.living_room_session_po_token.toString())}; yZ=function(f){return mt(f)==="WEB_KIDS"}; mt=function(f){return f.C.c}; Pk=function(f,e){return!f.U&&kB()&&cZ(55)&&f.controlsType==="3"&&!e}; g.IP=function(f){f=fz(f.vE);return f==="www.youtube-nocookie.com"?"www.youtube.com":f}; $L=function(f,e,B){return f.protocol+"://i1.ytimg.com/vi/"+e+"/"+(B||"hqdefault.jpg")}; iD=function(f){return xL(f)&&!g.DH(f)}; f3=function(f){return f.Cq==="leanback"}; g.IM=function(f){return/^TVHTML5/.test(mt(f))}; ec=function(f){return mt(f)==="TVHTML5"}; iKC=function(f){return f.C.cmodel==="CHROMECAST ULTRA/STEAK"||f.C.cmodel==="CHROMECAST/STEAK"}; g.BS=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; g.yQ=function(f){return mt(f).toUpperCase()==="WEB"}; n3=function(f){return mt(f)==="TVHTML5_UNPLUGGED"}; g.yl=function(f){return g.DH(f)||mt(f)==="TV_UNPLUGGED_CAST"||n3(f)}; g.rC=function(f){return mt(f)==="WEB_MUSIC_INTEGRATIONS"}; g.L3=function(f){return mt(f)==="WEB_EMBEDDED_PLAYER"}; fi0=function(f,e=!1,B=!0){return!g.yQ(f)||!e||!B}; g.vk=function(f){return(f.deviceIsAudioOnly||!g.PP||ye||f.controlsType==="3"?!1:g.zw?f.V&&g.pH(51):!0)||(f.deviceIsAudioOnly||!g.wu||ye||f.controlsType==="3"?!1:g.zw?f.V&&g.pH(48):g.pH(38))||(f.deviceIsAudioOnly||!g.dC||ye||f.controlsType==="3"?!1:g.zw?f.V&&g.pH(37):g.pH(27))||!f.deviceIsAudioOnly&&g.tq&&!A50()&&g.pH(11)||!f.deviceIsAudioOnly&&g.oN&&g.pH("604.4")}; bK5=function(f){if(g.Ms(f)&&HS)return!1;if(g.wu){if(!g.pH(47)||!g.pH(52)&&g.pH(51))return!1}else if(g.oN)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; BTw=function(f,e){return f.enabledEngageTypes.has(e.toString())||e20.includes(e)}; kj=function(f){if(!f.userDisplayImage)return"";const e=f.userDisplayImage.split("/");if(e.length===5)return f=e[e.length-1].split("="),f[1]="s20-c",e[e.length-1]=f.join("="),e.join("/");if(e.length===8)return e.splice(7,0,"s20-c"),e.join("/");if(e.length===9)return e[7]+="-s20-c",e.join("/");g.Yv(new g.Dj("Profile image not a FIFE URL.",f.userDisplayImage));return f.userDisplayImage}; g.C3=function(f){let e=g.IP(f);n3g.includes(e)&&(e="www.youtube.com");return f.protocol+"://"+e}; g.vS=function(f,e=""){if(f.BJ){const B=new wC;let n;const r=f.BJ();r.signedOut?n="":r.token?n=r.token:r.pendingResult.then(L=>{r.signedOut?B.resolve(""):B.resolve(L.token)},L=>{g.Yv(new g.Dj("b189348328_oauth_callback_failed",{error:L})); B.resolve(e)}); return n!==void 0?Pb(n):new Xx(B)}return Pb(e)}; bK=function(f,e=""){return f.rT?ma(!0):SE(hS(ma(g.vS(f,e)),B=>ma(!!B)),()=>ma(!1))}; rHY=function(f,e){f.kA=e;f.Q3?.C?.U(e);e.C?f.TL.push("asmjs"):f.TL.push("wasm")}; fz=function(f){const e=g.BT(f);return(f=Number(g.fY(f)[4]||null)||null)?`${e}:${f}`:e}; Zo=function(f,e=!1){const B=Ja[f];let n=LyY[B];const r=d66[f];if(!r||!n)return null;e=new hk(e?r.height:r.width,e?r.width:r.height,r.fps);n=DA(n,e,B);return new g$(f,n,{video:e,EA:r.bitrate/8})}; HJ5=function(f){const e=LyY[Ja[f]],B=tGw[f];return B&&e?new g$(f,e,{audio:new N2(B.audioSampleRate,B.numChannels)}):null}; Rp=function(f,e,B,n){if(B)return yY();B={};const r=XN();for(const L of e)if(f.canPlayType(r,L.getInfo().mimeType)||n)if(e=L.C.video.quality,!B[e]||B[e].getInfo().rj())B[e]=L;f=[];B.auto&&f.push(B.auto);for(const L of o7)(n=B[L])&&f.push(n);return f.length?Pb(f):yY()}; CLH=function(f,e=!1,B=!0,n={}){const r={};for(const d of f){if(e&&MediaSource&&MediaSource.isTypeSupported&&(f=d.type,d.audio_channels&&(f=f+"; channels="+d.audio_channels),!MediaSource.isTypeSupported(f))){n[d.itag]="tpus";continue}if(!B&&d.drm_families&&(d.eotf==="smpte2084"||d.eotf==="arib-std-b67")){n[d.itag]="enchdr";continue}f=void 0;const t={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"};var L=d.type.match(/codecs="([^"]*)"/);L=L?L[1]:"";d.audio_track_id&&(f=new g.xG(d.name, d.audio_track_id,!!d.is_default));const H=d.eotf;f=new kUY({itag:d.itag,url:d.url,codecs:L,width:Number(d.width),height:Number(d.height),fps:Number(d.fps),bitrate:Number(d.bitrate),audioItag:d.audio_itag,m4:H?t[H]:void 0,contentProtection:d.drm_families,Z_:f,audioChannels:Number(d.audio_channels)});r[f.itag]=r[f.itag]||[];r[f.itag].push(f)}return r}; wKG=function(f,e){f.J.some(B=>B.Z_?.getId()===e); f.C=e}; v3Y=function(f){const e=[],B=[];for(const n of f.G)n.bitrate<=f.V?e.push(n):B.push(n);e.sort((n,r)=>r.bitrate-n.bitrate); B.sort((n,r)=>n.bitrate-r.bitrate); f.G=e.concat(B)}; K3=function(f,e,B){f.cpn&&(e=g.vT(e,{cpn:f.cpn}));B&&(e=g.vT(e,{paired:B}));return e}; bJG=function(f,e){f=f.itag.toString();e!==null&&(f+=e.itag.toString());return f}; ZJH=function(f,e){if(!(ye||bz()||wx()))return null;f=CLH(e,f.Y("html5_filter_fmp4_in_hls"));if(!f)return null;e=[];const B={};for(const n of Object.keys(f))for(const r of f[n])if(r.Z_){const L=r.Z_.getId();if(!B[L]){const d=new g.qi(L,r.Z_);B[L]=d;e.push(d)}}return e.length>0?e:null}; aiM=function(f,e,B,n,r,L,d){if(!(ye||bz()||wx()))return yY();const t={},H=R2k(B),k=CLH(B,f.Y("html5_filter_fmp4_in_hls"),f.W.U,t);if(!k)return d({noplst:1}),yY();Ky6(k);const C={fairplay:"https://youtube.com/api/drm/fps?ek=uninitialized"};let w;B=[];const v=[],b=[];var K=null;let Y="";n=n&&n.match(/hls_timedtext_playlist/)?new kUY({itag:"0",url:n,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Z_:new g.xG("English","en",!1)}):null;for(const N of Object.keys(k))if(!f.Y("html5_disable_drm_hfr_1080")|| N!=="383"&&N!=="373")for(const E of k[N])if(E.width){for(const TO of E.G)if(k[TO]){E.C=TO;break}E.C||(E.C=qFH(k,E));const Lw=k[E.C];if(!Lw)continue;B.push(E);E.contentProtection==="fairplay"&&(w=C);let d6="";E.m4==="PQ"?d6="smpte2084":E.m4==="HLG"&&(d6="arib-std-b67");d6&&(Y=d6);b.push(z2M(Lw,[E],n,L,E.itag,E.width,E.height,E.fps,H,void 0,void 0,w,d6));if(!K||E.width*E.height*E.fps>K.width*K.height*K.fps)K=E}else v.push(E);else t[N]="disdrmhfr";b.reduce((N,E)=>E.getInfo().isEncrypted()&&N,!0)&&(w= C); r=Math.max(r,0);const {fps:l=0,width:m=0,height:F=0}=K||{};K=f.Y("html5_native_audio_track_switching");b.push(z2M(v,B,n,L,"93",m,F,l,H,"auto",r,w,Y,K));Object.entries(t).length&&d(t);return Rp(f.W,b,Pk(f,e),!1)}; z2M=function(f,e,B,n,r,L,d,t,H,k,C,w,v,b){let K=0,Y="";for(const l of f)Y||(Y=l.itag),l.audioChannels&&l.audioChannels>K&&(K=l.audioChannels,Y=l.itag);r=new g$(r,"application/x-mpegURL",{audio:new N2(0,K),video:new hk(L,d,t,null,void 0,k,void 0,void 0,v),contentProtection:w,RI:Y});f=new pK6(f,e,B?[B]:[],n,!!b);f.V=C?C:1369843;return new cHG(r,f,H)}; R2k=function(f){for(const e of f)if(e.url&&(f=e.url.split("expire/"),!(f.length<=1)))return+f[1].split("/")[0];return NaN}; qFH=function(f,e){for(const B of Object.keys(f)){const n=f[B][0];if(!n.width&&n.contentProtection===e.contentProtection&&!n.audioChannels)return B}return""}; Ky6=function(f){const e=new Set;for(var B of Object.values(f))if(B.length){var n=B[0];n.height&&n.codecs.startsWith("vp09")&&e.add(n.height)}B=[];if(e.size)for(const r of Object.keys(f))f[r].length&&(n=f[r][0],n.height&&e.has(n.height)&&!n.codecs.startsWith("vp09")&&B.push(r));for(const r of B)delete f[r]}; var YFC=function(){return M8[Z[2]](this,4)}; jMm=function(f,e,B){const n=[];for(const r of B){if(!r||!r.url)continue;B=Sb(r.type,"medium","0");n.push(new AH5(B,r.url))}return Rp(f.W,n,Pk(f,e),!1)}; OJg=function(f,e){const B=[],n=Sb(e.type,"auto",e.itag);B.push(new AH5(n,e.url));return Rp(f.W,B,!1,!0)}; VGm=function(f){return f&&o3O[f]?o3O[f]:null}; li5=function(f){switch(f){case "multiview.ustreamer_disabled":case "sabr.invalid_input_stream":case "sabr.live_no_max_sq":case "sabr.live_unauthorized_request":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return f;default:return"sabr.config"}}; Fym=function(f,e){if(e=e?.watchEndpointSupportedOnesieConfig?.html5PlaybackOnesieConfig)f.tQ=new u4O(e)}; g.zH=function(f){const e=[];if(f.displayName)e.push(f.displayName);else{const B=f.languageName||"";e.push(B);f.kind==="asr"&&B.indexOf("(")===-1&&e.push(" (Legendas autom\u00e1ticas)");f.name&&e.push(` - ${f.name}`)}f.translationLanguage&&e.push(` >> ${f.translationLanguage.languageName}`);return e.join("")}; g.ap=function(f){const e={languageCode:f.languageCode,languageName:f.languageName,displayName:g.zH(f),kind:f.kind,name:f.name,id:f.id,is_servable:f.C,is_default:f.isDefault,is_translateable:f.isTranslateable,vss_id:f.vssId};f.xtags&&(e.xtags=f.xtags);f.captionId&&(e.captionId=f.captionId);f.translationLanguage&&(e.translationLanguage=f.translationLanguage);return e}; g.p3=function(f){return f.translationLanguage?f.translationLanguage.languageCode:f.languageCode}; g.m6k=function(f){let e=f.vssId;f.translationLanguage&&e&&(e=`t${e}.${g.p3(f)}`);return e}; g3C=function(f,e,B,n){f||(f=e&&U6d.hasOwnProperty(e)&&NTw.hasOwnProperty(e)?NTw[e]+"_"+U6d[e]:void 0);e=f;if(!e)return null;f=e.match(h25);if(!f||f.length!==5)return null;{const L=e.match(h25);if(L){f=Number(L[3]);var r=[7,8,10,5,6];f=!(Number(L[1])===1&&f===8)&&r.indexOf(f)>=0}else f=!1}return B||n||f?e:null}; var SFl=function(f){return cS[Z[2]](this,4,f)}; Yj=function(f,e){const B={};for(const r of Object.keys(E3w)){var n=e?e+r:r;n=f[n+"_webp"]||f[n];g.dE(n)&&(B[E3w[r]]=n)}return B}; Aq=function(f){const e={};if(!f||!f.thumbnails)return e;f=f.thumbnails.filter(r=>!!r.url); f.sort((r,L)=>r.width-L.width||r.height-L.height); for(var B of Object.keys(QMC)){var n=Number(B);const r=QMC[n];for(const L of f)if(L.width>=n){n=TT6(L.url);g.dE(n)&&(e[r]=n);break}}(B=f.pop())&&B.width>=1280&&(B=TT6(B.url),g.dE(B)&&(e["maxresdefault.jpg"]=B));return e}; TT6=function(f){return f.startsWith("//")?"https:"+f:f}; jc=function(f){return f&&f.baseUrl||""}; Oh=function(f){f=g.vb(f);for(const e of Object.keys(f)){const B=f[e];f[e]=Array.isArray(B)?B[0]:B}return f}; JH6=function(f,e){for(var B of e)if(e=B.playerAnnotationsUrlsRenderer){e.adsOnly&&(f.DI=!0);if(B=e.loadPolicy)f.annotationsLoadPolicy=D60[B];if(B=e.invideoUrl)f.j7=t0(B);f.QH=!0;break}}; MG5=function(f,e){f.botguardData=e.playerAttestationRenderer.botguardData;e=e.playerAttestationRenderer.challenge;e!=null&&(f.rS=e)}; x6k=function(f,e){f.captionTracks=[];if(e.captionTracks)for(var B of e.captionTracks){var n=GUl(B.baseUrl);if(!n)return;n={is_translateable:!!B.isTranslatable,languageCode:B.languageCode,languageName:B.name&&g.nS(B.name),url:n,vss_id:B.vssId,kind:B.kind};n.name=B.trackName;n.displayName=B.name&&g.nS(B.name);f.captionTracks.push(new g.op(n))}f.Se=e.audioTracks||[];f.rb=e.defaultAudioTrackIndex||0;f.A$=[];if(e.translationLanguages)for(const r of e.translationLanguages){B={};B.languageCode=r.languageCode; B.languageName=g.nS(r.languageName);if(r.translationSourceTrackIndices){B.translationSourceTrackIndices=[];for(const L of r.translationSourceTrackIndices)B.translationSourceTrackIndices.push(L)}if(r.excludeAudioTrackIndices){B.excludeAudioTrackIndices=[];for(const L of r.excludeAudioTrackIndices)B.excludeAudioTrackIndices.push(L)}f.A$.push(B)}f.je=[];if(e.defaultTranslationSourceTrackIndices)for(const r of e.defaultTranslationSourceTrackIndices)f.je.push(r);f.IL=!!e.contribute&&!!e.contribute.captionsMetadataRenderer}; WyG=function(f,e,B){var n=e.errorScreen;if(!(n&&(n.playerLegacyDesktopYpcOfferRenderer||n.playerLegacyDesktopYpcTrailerRenderer||n.ypcTrailerRenderer)||B&&B.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(e.status))){f.errorCode=VGm(e.errorCode)||"auth";if(B=n&&n.playerErrorMessageRenderer){f.playerErrorMessageRenderer=B;const r=B.reason;r&&(f.errorReason=g.nS(r));if(B=B.subreason)f.YZ=g.nS(B),f.ai=B}else f.errorReason=e.reason||null;B=e.status;B==="LOGIN_REQUIRED"?f.errorDetail= "1":B==="CONTENT_CHECK_REQUIRED"?f.errorDetail="2":B==="AGE_CHECK_REQUIRED"?(e=(e=e.errorScreen)&&e.playerKavRenderer,f.errorDetail=e&&e.kavUrl?"4":"3"):(n=n?.playerErrorMessageRenderer?.proceedButton?.buttonRenderer?.command,f.errorDetail=e.isBlockedInRestrictedMode?"5":g.u(n,g.Vm)?.signal==="RELOAD_PAGE"?"7":"0")}}; sMg=function(f,e){f.KJ=!0;const B=e.heartbeatToken;B&&(f.drmSessionId=e.drmSessionId||"",f.heartbeatToken=B,f.Z6=Number(e.intervalMilliseconds),f.lS=Number(e.maxRetries),f.qp=!!e.softFailOnError,f.oB=!!e.useInnertubeHeartbeatsForDrm);f.heartbeatServerData=e.heartbeatServerData;f.oU=!!e.heartbeatAttestationConfig?.requiresAttestation}; PL6=function(f,e){for(const B of e){e=B.interstitials.map(n=>{const r=g.u(n,XKg);if(r)return{is_yto_interstitial:!0,raw_player_response:r};if(n=g.u(n,yH6))return Object.assign({is_yto_interstitial:!0},C$(n))}); for(const n of e)switch(B.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":f.interstitials=f.interstitials.concat({time:0,playerVars:n,yP:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":f.interstitials=f.interstitials.concat({time:0x7ffffffffffff,playerVars:n,yP:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":e=Number(B.podConfig.timeToInsertAtMillis),f.interstitials=f.interstitials.concat({time:e,playerVars:n,yP:e===0?5:7})}}}; IiO=function(f,e){if(e=e.find(B=>!(!B||!B.tooltipRenderer)))f.tooltipRenderer=e.tooltipRenderer}; $6m=function(f,e){e.subscribeCommand&&(f.subscribeCommand=e.subscribeCommand);e.unsubscribeCommand&&(f.unsubscribeCommand=e.unsubscribeCommand);e.addToWatchLaterCommand&&(f.addToWatchLaterCommand=e.addToWatchLaterCommand);e.removeFromWatchLaterCommand&&(f.removeFromWatchLaterCommand=e.removeFromWatchLaterCommand);e.getSharePanelCommand&&(f.getSharePanelCommand=e.getSharePanelCommand)}; iJd=function(f,e){e!=null?(f.Ou=e,f.AF=!0):(f.Ou="",f.AF=!1)}; BEO=function(f,e){if(e=e.playerControlsOverlayRenderer)iJd(f,e.controlBgHtml),e.mutedAutoplay?(e=g.u(e.mutedAutoplay,ffC))&&e.endScreen&&(e=g.u(e.endScreen,e9w))&&e.text&&(f.TX=g.nS(e.text)):f.mutedAutoplay=!1}; nk6=function(f,e){var B=e.backgroundability;B&&B.backgroundabilityRenderer.backgroundable&&(f.backgroundable=!0);e.offlineability?.offlineabilityRenderer?.offlineable&&(f.offlineable=!0);if(B=e.contextParams)f.contextParams=B;(B=e.pictureInPicture)&&B.pictureInPictureRenderer.playableInPip&&(f.pipable=!0);e.playableInEmbed&&(f.allowEmbed=!0);if(B=e.ypcClickwrap)e=B.playerLegacyDesktopYpcClickwrapRenderer,B=B.ypcRentalActivationRenderer,e?(f.DZ=e.durationMessage||"",f.C1=!0):B&&(e=B.durationMessage, f.DZ=e?g.nS(e):"",f.C1=!0)}; LE6=function(f,e,B){var n=jc(e.googleRemarketingUrl);n&&(f.googleRemarketingUrl=n);if(n=jc(e.youtubeRemarketingUrl))f.youtubeRemarketingUrl=n;if(n=e.heartbeatLoggingToken)f.heartbeatLoggingToken=n;n={};var r=jc(e.ptrackingUrl);if(r){r=Oh(r);var L=r.oid;L&&(f.Xr=L);if(L=r.pltype)f.Bk=L;if(L=r.ptchn)f.YB=L;if(L=r.ptk)f.TR=encodeURIComponent(L);if(r=r.m)f.Xa=r}if(r=jc(e.qoeUrl)){r=g.vb(r);for(d of Object.keys(r))L=r[d],r[d]=Array.isArray(L)?L.join(","):L;var d=r;f.AD=d;if(r=d.cat)f.Y("html5_enable_qoe_cat_list")? f.J9=f.J9.concat(r.split(",")):f.TL=r;if(r=d.live)f.w4=r;if(d=d.drm_product)f.drmProduct=d}if(d=jc(e.videostatsPlaybackUrl)){d=Oh(d);if(r=d.adformat)if(B.adformat=r,L=f.S(),L=g3C(r,f.hY,L.V,L.K))f.adFormat=L;if(L=d.aqi)B.ad_query_id=L;if(B=d.autoplay)f.nz=B=="1",f.HF=B=="1";if(B=d.autonav)f.isAutonav=B=="1";if(B=d.delay)f.Dv=Hh(B);if(B=d.ei)f.eventId=B;if(B=Tf(d.adcontext))try{var t=r0g(B);t&&(f.nK=t)}catch(H){g.Yv(Error("Malformed adContext"))}if(B||r)f.nz=!0;if(t=d.feature)f.dI=t;if(t=d.list)f.playlistId= t;if(t=d.of)f.aK=t;if(t=d.osid)f.osid=t;if(t=d.referrer)f.referrer=t;if(t=d.sdetail)f.nI=t;if(t=d.sourceid)f.lci=t;if(t=d.ssrt)f.Oy=t=="1";if(t=d.subscribed)f.subscribed=t=="1";if(t=d.uga)f.userGenderAge=t;if(t=d.upt)f.Xj=t;if(t=d.vm)f.videoMetadata=t;n.playback=d}if(t=jc(e.videostatsWatchtimeUrl)){t=Oh(t);if(B=t.ald)f.Hw=B;n.watchtime=t}if(t=jc(e.atrUrl))t=Oh(t),n.atr=t;if(t=jc(e.engageUrl))t=Oh(t),n.engage=t;f.Ay=n;e.promotedPlaybackTracking&&(e=e.promotedPlaybackTracking,e.startUrls&&(f.Zp=e.startUrls), e.firstQuartileUrls&&(f.eL=e.firstQuartileUrls),e.secondQuartileUrls&&(f.J4=e.secondQuartileUrls),e.thirdQuartileUrls&&(f.vI=e.thirdQuartileUrls),e.completeUrls&&(f.bk=e.completeUrls),e.engagedViewUrls&&(e.engagedViewUrls.length>1&&g.Yv(new g.Dj("There are more than one engaged_view_urls.")),f.R0=e.engagedViewUrls[0]))}; drM=function(f,e,B){for(const n of e)if(n&&(e=n.playerLegacyDesktopWatchAdsRenderer)&&(e=e.playerAdParams)){e.autoplay=="1"&&(f.nz=!0,f.HF=!0);f.M_=e.encodedAdSafetyReason||null;e.showContentThumbnail!==void 0&&(f.sM=!!e.showContentThumbnail);B.enabled_engage_types=e.enabledEngageTypes;break}}; Ha0=function(f,e){var B=e.manifestlessWindowedLiveConfig;if(B){var n=Number(B.minDvrSequence),r=Number(B.maxDvrSequence),L=Number(B.minDvrMediaTimeMs),d=Number(B.maxDvrMediaTimeMs);B=Number(B.startWalltimeMs);n&&(f.Hs=n);L&&(f.Ei=L/1E3,f.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&lK(f)&&(f.By=L/1E3));r&&(f.sI=r);d&&(f.GQ=d/1E3,f.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&lK(f)&&(f.cP=d/1E3));B&&(f.fY=B/1E3);(n||L)&&(r||d)&&(f.gM=!0,f.isLivePlayback=!0,f.allowLiveDvr=!0, f.dC=!1)}if(n=e.daiConfig){if(n.enableDai){f.Nq=!0;if(r=n.enableServerStitchedDai)f.enableServerStitchedDai=r;if(r=n.enablePreroll)f.U8=r}if(n.daiType==="DAI_TYPE_SS_DISABLED"||n.debugInfo?.isDisabledUnpluggedChannel)f.Me=!0;n.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(f.Gh=!0);n.allowUstreamerRequestAdconfig&&(f.RU=!0);n.sendSsdaiMissingAdBreakReasons&&(f.Ix=!0)}if(n=e.audioConfig){r=n.loudnessDb;r!=null&&(f.Ni=r);r=n.trackAbsoluteLoudnessLkfs;r!=null&&(f.NR=r);r=n.loudnessTargetLkfs;r!=null&&(f.loudnessTargetLkfs= r);n.audioMuted&&(f.ES=!0);n.muteOnStart&&(f.a7=!0);if(r=n.loudnessNormalizationConfig)r.applyStatefulNormalization&&(f.applyStatefulNormalization=!0),r.preserveStatefulLoudnessTarget&&(f.preserveStatefulLoudnessTarget=!0),L=r.minimumLoudnessTargetLkfs,L!=null&&(f.minimumLoudnessTargetLkfs=L),r=r.maxStatefulTimeThresholdSec,r!=null&&(f.maxStatefulTimeThresholdSec=r);n.playAudioOnly&&(f.z_=!0)}if(r=e.playbackEndConfig)n=r.endSeconds,r=r.limitedPlaybackDurationInSeconds,f.mutedAutoplay&&(n&&(f.endSeconds= n),r&&(f.limitedPlaybackDurationInSeconds=r));if(n=e.fairPlayConfig){if(r=n.certificate)f.OL=Tf(r);r=Number(n.keyRotationPeriodMs);r>0&&(f.lz=r);n=Number(n.keyPrefetchMarginMs);n>0&&(f.O8=n)}if(n=e.playbackStartConfig){f.aY=Number(n.startSeconds);L=n.liveUtcStartSeconds;r=!!f.liveUtcStartSeconds&&f.liveUtcStartSeconds>0;L&&!r&&(f.liveUtcStartSeconds=Number(L));if(L=n.startPosition)if((d=L.utcTimeMillis)&&!r&&(f.liveUtcStartSeconds=Number(d)*.001),r=L.streamTimeMillis)f.s$=Number(r)*.001;f.progressBarStartPosition= n.progressBarStartPosition;f.progressBarEndPosition=n.progressBarEndPosition}else if(n=e.skippableSegmentsConfig){if(r=n.introSkipDurationMs)f.As=Number(r)/1E3;if(n=n.outroSkipDurationMs)f.hg=Number(n)/1E3}if(r=e.skippableIntroConfig)n=Number(r.startMs),r=Number(r.endMs),isNaN(n)||isNaN(r)||(f.zp=n,f.KL=r);if(n=e.streamSelectionConfig)f.Rd=Number(n.maxBitrate);if(n=e.vrConfig)f.r9=n.partialSpherical=="1";if(n=e.webDrmConfig){n.skipWidevine&&(f.XS=!0);if(r=n.widevineServiceCert)f.OM=Tf(r);n.useCobaltWidevine&& (f.useCobaltWidevine=!0);n.startWithNoQualityConstraint&&(f.Md=!0)}if(n=e.mediaCommonConfig){if(r=n.dynamicReadaheadConfig){f.maxReadAheadMediaTimeMs=r.maxReadAheadMediaTimeMs||NaN;f.minReadAheadMediaTimeMs=r.minReadAheadMediaTimeMs||NaN;f.readAheadGrowthRateMs=r.readAheadGrowthRateMs||NaN;if(r=n?.mediaUstreamerRequestConfig?.videoPlaybackUstreamerConfig)f.Re=Tf(r);if((r=n?.sabrContextUpdates)&&r.length>0)for(var t of r)t.type&&t.value&&(r={type:t.type,scope:t.scope,value:Tf(t.value)||void 0,sendByDefault:t.sendByDefault}, f.sabrContextUpdates.set(t.type,r))}if(t=n.serverPlaybackStartConfig)f.serverPlaybackStartConfig=t;n.useServerDrivenAbr&&(f.Rj=!0);if(t=n.requestPipeliningConfig)f.requestPipeliningConfig=t}if(t=e.inlinePlaybackConfig)f.mB=!!t.showAudioControls;if(t=e.embeddedPlayerConfig){f.embeddedPlayerConfig=t;if(r=t.embeddedPlayerMode)n=f.S(),n.eI=r,n.J=r==="EMBEDDED_PLAYER_MODE_PFL";if(t=t.permissions)f.allowImaMonetization=!!t.allowImaMonetization}if(t=e.webPlayerConfig)t.gatewayExperimentGroup&&(f.gatewayExperimentGroup= t.gatewayExperimentGroup),t.isProximaEligible&&(f.isProximaLatencyEligible=!0);e=e.playerControlsConfig;f.S().experiments.JE().C.jI(t1C)&&e?.isSeekable!==void 0&&(f.isSeekable=!!e.isSeekable)}; ko6=function(f,e,B){var n=e.formats;if(n){var r=[];for(var L of n)r.push(`${L.itag}/${L.width}x${L.height}`);f.F0=r.join(",");r=[];for(var d of n){n={itag:d.itag,type:d.mimeType,quality:d.quality};(L=d.url)&&(n.url=L);const {fJ:v,BV:b,t9:K,s:Y}=w5(2,d);v&&(n.url=b,n.sp=K,n.s=Y);r.push(g.we(n))}f.SJ=r.join(",")}if(d=e.hlsFormats){r={};if(B&&(B=B.audioPairingConfig)&&B.pairs)for(var t of B.pairs)B=t.videoItag,r[B]||(r[B]=[]),r[B].push(t.audioItag);t={};for(var H of d)t[H.itag]=H.bitrate;H=[];for(var k of d){B= {itag:k.itag,type:k.mimeType,url:k.url,bitrate:k.bitrate,width:k.width,height:k.height,fps:k.fps};if(d=k.audioTrack)if(n=d.displayName)B.name=n,B.audio_track_id=d.id,d.audioIsDefault&&(B.is_default="1");if(k.drmFamilies){d=[];for(var C of k.drmFamilies)d.push(Wm[C]);B.drm_families=d.join(",")}(d=r[k.itag])&&d.length&&(B.audio_itag=d.join(","),(d=t[d[0]])&&(B.bitrate+=d));(d=oUG(k))&&(B.eotf=d);k.audioChannels&&(B.audio_channels=k.audioChannels);H.push(g.we(B))}f.hlsFormats=H.join(",")}if((C=e.licenseInfos)&& C.length>0){k={};for(var w of C)C=w.drmFamily,r=w.url,C&&r&&(k[Wm[C]]=r);f.contentProtection=k}if(w=e.drmParams)f.drmParams=w;if(w=e.dashManifestUrl)f.JP=g.vT(w,{cpn:f.clientPlaybackNonce});if(w=e.hlsManifestUrl)f.hlsvp=w;if(w=e.probeUrl)f.probeUrl=t0(g.vT(w,{cpn:f.clientPlaybackNonce}));if(e=e.serverAbrStreamingUrl)f.eK=new g.Qv(e,!0)}; wPl=function(f,e,B){var n=e.videoId;n&&(f.videoId=n,B.video_id||(B.video_id=n));if(n=e.title)f.title=n,B.title||(B.title=n);if(n=e.lengthSeconds)f.lengthSeconds=Number(n),B.length_seconds||(B.length_seconds=n);if(n=e.keywords)f.keywords=Cy5(n);if(n=e.channelId)f.UL=n,B.ucid||(B.ucid=n);if(n=e.viewCount)f.rawViewCount=Number(n);if(n=e.author)f.author=n,B.author||(B.author=n);if(B=e.shortDescription)f.shortDescription=B;if(B=e.isCrawlable)f.isListed=B;if(B=e.musicVideoType)f.musicVideoType=B;B=e.isLive; B!=null&&(f.isLivePlayback=B);if(B||e.isUpcoming)f.isPremiere=!e.isLiveContent;if(B=e.thumbnail)f.wZ=Aq(B);if(B=e.isExternallyHostedPodcast)f.isExternallyHostedPodcast=B;(B=e.stationType)&&B!=="STATION_TYPE_UNKNOWN"&&(f.vv=!0);e=e.viewerLivestreamJoinPosition;e?.utcTimeMillis&&(f.Ow=Hh(e.utcTimeMillis))}; Za6=function(f,e){if(e.playerLegacyDesktopYpcTrailerRenderer){var B=e.playerLegacyDesktopYpcTrailerRenderer;f.lW=B.trailerVideoId||"";var n=(n=e.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer)&&n.ypcTrailerRenderer}else e.playerLegacyDesktopYpcOfferRenderer?B=e.playerLegacyDesktopYpcOfferRenderer:e.ypcTrailerRenderer&&(n=e.ypcTrailerRenderer,e=n.fullVideoMessage,f.gt=e?g.nS(e):"",f.lW=g.u(n,vkk)?.videoDetails?.videoId||"");B&&(f.mz=B.itemTitle||"",B.itemUrl&&(f.qW=B.itemUrl),B.itemBuyUrl&&(f.l1= B.itemBuyUrl),f.aQ=B.itemThumbnail||"",f.j0=B.offerHeadline||"",f.hZ=B.offerDescription||"",f.aU=B.offerId||"",f.S0=B.offerButtonText||"",f.x7=B.offerButtonFormattedText||null,f.Oq=B.overlayDurationMsec||NaN,f.gt=B.fullVideoMessage||"",f.Uj=!0);n&&((B=g.u(n,vkk))?f.qB={raw_player_response:B}:(B=g.u(n,ba5),f.qB=B?C$(B):null),f.Uj=!0)}; KEm=function(f,e,B,n){e.isLiveDefaultBroadcast&&(f.isLiveDefaultBroadcast=!0);e.isUpcoming&&(f.isUpcoming=!0);if(e.isPostLiveDvr){f.dC=!0;if(n=e.latencyClass)f.latencyClass=R9w[n]||"UNKNOWN";e.isLowLatencyLiveStream&&(f.isLowLatencyLiveStream=!0)}else{let r=!1;f.Tf?(f.allowLiveDvr=Ns()?!0:Ks&&uK<5?!1:!0,f.isLivePlayback=!0):e.isLive?(n.livestream="1",f.allowLiveDvr=e.isLiveDvrEnabled?Ns()?!0:Ks&&uK<5?!1:!0:!1,f.partnerId=27,r=!0):e.isUpcoming&&(r=!0);if(e.isLive||f.Tf){e.isLowLatencyLiveStream&&(f.isLowLatencyLiveStream= !0);const L=e.latencyClass;L&&(f.latencyClass=R9w[L]||"UNKNOWN");if(e=e.liveChunkReadahead)f.liveChunkReadahead=e;if(e=B&&B.livePlayerConfig){e.hasSubfragmentedFmp4&&(f.hasSubfragmentedFmp4=!0);e.hasSubfragmentedWebm&&(f.yR=!0);e.defraggedFromSubfragments&&(f.defraggedFromSubfragments=!0);if(B=e.liveExperimentalContentId)f.liveExperimentalContentId=Number(B);e=e.isLiveHeadPlayable;f.Y("html5_live_head_playable")&&e!=null&&(f.isLiveHeadPlayable=e)}}r&&(f.isLivePlayback=!0,n.adformat&&n.adformat.split("_")[1]!== "8"||f.HE.push("heartbeat"))}}; mL=function(f){return new Fh(f.substring(0,2),f.substring(2))}; Uh=function(f,e){return Yq(f,"macroMarkersListEntity",e)}; qIk=function(f){const e=f.getWatchNextResponse()?.contents?.twoColumnWatchNextResults;(f=f.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.endScreen?.watchNextEndScreenRenderer?.results)||(f=e?.endScreen?.endScreen?.results);return f}; g.hq=function(f){f=g.u(f.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.decoratedPlayerBarRenderer,Ni);return g.u(f?.playerBar,z9m)}; pPG=function(){if(gC===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(e){}a:{try{var f=!!self.localStorage}catch{f=!1}if(f&&(f=g.Sh(`${g.Ho()}::${"yt-player"}`))){gC=new afw(f);break a}gC=void 0}}return gC}; g.Sc=function(){const f=pPG();if(!f)return{};try{const e=f.get("yt-player-lv");return JSON.parse(e||"{}")}catch(e){return{}}}; g.c0O=function(f){const e=pPG();e&&(f=JSON.stringify(f),e.set("yt-player-lv",f))}; g.Eh=function(f){return g.Sc()[f]||0}; g.Qm=function(f,e){const B=g.Sc();e!==B[f]&&(e!==0?B[f]=e:delete B[f],g.c0O(B))}; g.TH=async function(f){return g.Wo(YIl(),f)}; Jq=async function(f,e,B,n,r,L,d,t){if(g.Eh(f)===4)return 4;const H=await g.f8();if(!H)throw g.uo("wiac");t&&d!==void 0&&(d=await A0G(t,d));const k=B.lastModified||"0";t=await g.TH(H);try{return Do++,await g.SY(t,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",XG:!0},C=>{if(L!==void 0&&d!==void 0){var w=`${f}${"|"}${e.id}${"|"}${k}${"|"}${String(L).padStart(10,"0")}`;w=C.objectStore("media").put(d,w)}else w=g.FD.resolve(void 0);var v=jT5(f,e.zv());const b=jT5(f,!e.zv());var K={fmts:CN({dlt:n.downloadedEndTime.toString(), mket:n.maxKnownEndTime.toString(),avbr:n.averageByteRate.toString()}),format:B||{}};v=C.objectStore("index").put(K,v);const Y=n.downloadedEndTime===-1;K=Y?C.objectStore("index").get(b):g.FD.resolve(void 0);const l={fmts:"music",format:{}};C=Y&&r&&!e.zv()?C.objectStore("index").put(l,b):g.FD.resolve(void 0);return g.FD.all([C,K,w,v]).then(([,m])=>{Do--;let F=g.Eh(f);if(F!==4&&Y&&r||m!==void 0&&g.Oaw(m.fmts))F=1,g.Qm(f,F);return F})})}catch(C){Do--; t=g.Eh(f);if(t===4)return t;g.Qm(f,4);throw C;}}; g.okg=async function(f){const e=await g.f8();if(!e)throw g.uo("ri");return g.SY(await g.TH(e),["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},B=>{const n=IDBKeyRange.bound(f+"|",f+"~");return B.objectStore("index").getAll(n).then(r=>r.map(L=>L?L.format:{}))})}; lfg=async function(f,e,B,n,r){var L=await g.f8();if(!L)throw g.uo("rc");L=g.SY(await g.TH(L),["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},d=>{const t=`${f}${"|"}${e}${"|"}${B}${"|"}${String(n).padStart(10,"0")}`;return d.objectStore("media").get(t)}); return r?L.then(d=>{if(d===void 0)throw Error("No data from indexDb");return V1C(r,d)}).catch(d=>{throw new g.Dj(`Error while reading chunk: ${d.name}, ${d.message}`); }):L}; g.Oaw=function(f){return f?f==="music"?!0:f.includes("dlt=-1")||!f.includes("dlt="):!1}; jT5=function(f,e){return`${f}${"|"}${e?"v":"a"}`}; FE5=function(f){const e={},B={};for(const L of f){var n=L.split("|");if(!L.match(g.uNO)){B[L]="?";continue}f=Number(n.pop());if(isNaN(f)){B[L]="?";continue}var r=n.join("|");(n=e[r])?(r=n[n.length-1],f===r.end+1?r.end=f:n.push({start:f,end:f})):e[r]=[{start:f,end:f}]}for(const L of Object.keys(e))B[L]=e[L].map(d=>`${d.start}-${d.end}`).join(","); return B}; mrG=function(f,e,B){for(B=Mi(f,B);B>=0;){var n=f.levels[B];if(n.isLoaded(GH(n,e))&&(n=g.xj(n,e)))return n;B--}return g.xj(f.levels[0],e)}; NE6=function(f){if(!f.C&&!f.J.isEmpty()){var e=f.J.remove();f.C=Urk(f,e)}}; h9g=function(f,e,B){B=Mi(f,B);for(let d,t;B>=0;B--)if(d=f.levels[B],t=GH(d,e),!d.isLoaded(t)){var n=f,r=B,L=t;const H=`${r}-${L}`;n.U.has(H)||(n.U.add(H),n.J.enqueue(r,{Hj:r,AJ:L}))}NE6(f)}; var gkM=function(f,e){return wj[Z[2]](this,32,f,e)}; Urk=function(f,e){const B=document.createElement("img");f.crossOrigin&&(B.crossOrigin=f.crossOrigin);B.src=f.levels[e.Hj].Dw(e.AJ);B.onload=()=>{var n=e.Hj,r=e.AJ;f.C!==null&&(f.C.onload=null,f.C=null);n=f.levels[n];n.loaded.add(r);NE6(f);const L=n.columns*n.rows;r*=L;n=Math.min(r+L-1,n.W()-1);r=[r,n];f.publish("l",r[0],r[1])}; return B}; g.xj=function(f,e){e>=f.U()&&f.G();const B=GH(f,e);var n=f.columns*f.rows,r=e%n;e=r%f.columns;r=Math.floor(r/f.columns);let L;const d=f.G()+1-n*B;d=e)return f.V.set(e,n),n;f.V.set(e,B-1);return B-1}; SI5=function(f,e,B){return(f=f.levels[e])?f.V(B):-1}; Ekw=function(f,e,B){e={cpn:e};f.indexOf("/ibw/")===-1&&(e.ibw=B?String(B):"1369843");return{url:g.vT(f,e),type:"application/x-mpegURL",quality:"auto",itag:"93"}}; QTm=function(f){try{const e=(new g.Qv(f,!0)).get("n");if(e){const B=f.match(/\/n\/([^/]+)/);if(B&&B[1]&&B[1]!==e)return f.replace(`/n/${B[1]}`,`/n/${e}`)}}catch(e){g.Yv(e)}return f}; WS=function(f){if(f.isAd()&&(f.MC?f.videoId!==f.V9.tL:f.videoId!=f.V9.tL))return f.V9.tL}; GUl=function(f){if(f){if(CmH(f))return f;f=Td(f);if(CmH(f,!0))return f}return""}; var TEg=function(f,e){return cS[Z[2]](this,16,f,e)}; lK=function(f){var e=f.Y("html5_enable_sabr_on_drive")&&f.V9.Ed==="gd";if(f.We)return f.Rj&&f.ri("fds",{fds:!0},!0),!1;if(f.V9.Ed!=="yt"&&!e)return f.Rj&&f.ri("dsvn",{ns:f.V9.Ed},!0),!1;if(f.cotn||!f.C||f.C.isOtf&&!f.Y("html5_enable_sabr_otf_in_client")||f.J&&!f.J.C()||f.Gh&&!f.Y("html5_enable_sabr_csdai"))return!1;if(f.Y("html5_use_sabr_requests_for_debugging"))return!0;f.Rj&&f.ri("esfw",{usbc:f.Rj,hsu:!!f.eK},!0);if(f.Rj&&f.eK)return!0;if(f.Y("html5_remove_client_sabr_determination"))return!1;var B= !f.C.sA&&!f.xK();e=B&&sh&&f.Y("html5_enable_sabr_vod_streaming_xhr");B=B&&!sh&&f.Y("html5_enable_sabr_vod_non_streaming_xhr");const n=Xh(f),r=f.Y("html5_enable_sabr_drm_vod_streaming_xhr")&&sh&&f.xK()&&!f.C.sA&&(f.drmProduct==="1"?!1:!0);(e=e||B||n||r)&&!f.eK&&f.ri("sabr",{loc:"m"},!0);return e&&!!f.eK}; Cy5=function(f){const e={};for(const B of f)f=B.split("="),f.length===2?e[f[0]]=f[1]:e[B]=!0;return e}; PS=function(f){if(f.Y("html5_onesie")&&f.errorCode)return!1;let e=g.eB(f.HE,"ypc");f.ypcPreview&&(e=!1);return f.H4()&&!f.loading&&(g.ym(f)||g.eB(f.HE,"heartbeat")||e)}; y0m=function(f,e){var B=e.raw_embedded_player_response;if(!B){var n=e.embedded_player_response;n&&(B=JSON.parse(n))}B&&(f.LB=B);if(f.LB){f.embeddedPlayerConfig=f.LB.embeddedPlayerConfig||null;if(B=f.LB.videoFlags)B.playableInEmbed&&(f.allowEmbed=!0),B.isPrivate&&(f.isPrivate=!0),B.userDisplayName&&(e.user_display_name=B.userDisplayName),B.userDisplayImage&&(e.user_display_image=B.userDisplayImage);if((B=f.LB.embedPreview)&&B.thumbnailPreviewRenderer){B=B.thumbnailPreviewRenderer;iJd(f,B.controlBgHtml); if(n=B.defaultThumbnail)f.wZ=Aq(n);f.Y("embeds_web_enable_search_button")&&B.searchButton&&(n=g.u(B.searchButton,$u))&&(f.EJ=g.u(n.navigationEndpoint,g.Ip));(n=g.u(B?.videoDetails,Dr5))&&J0d(f,e,n);n=g.u(B?.videoDetails,M1O);f.hE=!!B.addToWatchLaterButton;GoM(f,B.shareButton);n?.musicVideoType&&(f.musicVideoType=n.musicVideoType);if(n=g.u(f.getEmbeddedPlayerResponse()?.embedPreview?.thumbnailPreviewRenderer?.playButton?.buttonRenderer?.navigationEndpoint,g.iK))Fym(f,n),f.videoId=n.videoId||f.videoId; B.videoDurationSeconds&&(f.lengthSeconds=Hh(B.videoDurationSeconds));B.webPlayerActionsPorting&&$6m(f,B.webPlayerActionsPorting);if(B=g.u(B?.playlist,xrw)){f.S6=!0;n=[];var r=Number(B.currentIndex);if(B.contents)for(let L=0,d=B.contents.length;L=0?r.countDownSecsForFullscreen*1E3:-1);f.Y("web_autonav_color_transition")&&r.watchToWatchTransitionRenderer&&(f.watchToWatchTransitionRenderer=g.u(r.watchToWatchTransitionRenderer,f0M))}if(r=qIk(f))r=r?.[0]?.endScreenVideoRenderer?.navigationEndpoint?.clickTrackingParams,b=f.N(),r&&b&&(b.sessionData={itct:r});f.cS.currentVideoThumbnail&&(f.wZ=Aq(f.cS.currentVideoThumbnail)); (r=f.cS?.contents?.twoColumnWatchNextResults?.results?.results?.contents)&&r[0]&&(b=r[0].videoPrimaryInfoRenderer)&&b&&b.subtitle&&(f.Oj=g.nS(b.subtitle));r&&r[1]&&(r=r[1].videoSecondaryInfoRenderer?.owner?.videoOwnerRenderer?.thumbnail?.thumbnails)&&r.length&&(f.profilePicture=r[r.length-1].url);e=VT(e);if(r=f.getWatchNextResponse()?.onResponseReceivedEndpoints)for(var K of r)g.u(K,n2)&&(f.ql=g.u(K,n2)),r=g.u(K,ep5),r?.entityKeys&&(f.fA=r.entityKeys||[],r.visibleOnLoadKeys&&(f.visibleOnLoadKeys= r.visibleOnLoadKeys));f.Y("web_key_moments_markers")&&(K=g.r7.getState().entities,r=g.pe("visibility_override","markersVisibilityOverrideEntity"),K=Yq(K,"markersVisibilityOverrideEntity",r),f.PS=K?.videoId===(f.videoId||e)&&K?.visibilityOverrideMarkersKey?K.visibilityOverrideMarkersKey:f.visibleOnLoadKeys,f.visibleOnLoadKeys=[...f.PS])}}; B$0=function(f,e){if(e=e.raw_reel_item_watch_response)f.reelItemWatchResponse=e}; L45=function(f,e){f.fflags=Ov(f.fflags,e.fflags);var B=e.iv_invideo_url;B&&(f.j7=t0(B));f.DI=YB(f.DI,e.iv_ads_only);if(B=e.cta_conversion_urls)f.tM=B;f.isPharma=YB(f.isPharma,e.is_pharma);f.author=Ov(f.author,e.author);f.Yp=GUl(e.ttsurl)||f.Yp;f.pz=YB(f.pz,e.cc_asr);f.uY=Ov(f.uY,e.channel_path);if(B=e.profile_picture)f.profilePicture=Ov(f.profilePicture,B);f.videoCountText=Ov(f.videoCountText,e.video_count_text);f.autonavState=Al(f.autonavState,e.autonav_state,n5G);f.clientPlaybackNonce=Ov(f.clientPlaybackNonce, e.cpn);f.subscribed=YB(f.subscribed,e.subscribed);f.rawViewCount=j4(f.rawViewCount,e.view_count);f.shortViewCount=Ov(f.shortViewCount,e.short_view_count_text);f.publishedTimeText=Ov(f.publishedTimeText||"",e.publishedTimeText);f.lengthText=Ov(f.lengthText||"",e.lengthText);f.WY=Ov(f.WY||"",e.WY);f.tv=Ov(f.tv||"",e.tv);f.title=Ov(f.title,e.title);f.subtitle=Ov(f.subtitle,e.subtitle);f.expandedTitle=Ov(f.expandedTitle,e.expanded_title);f.expandedSubtitle=Ov(f.expandedSubtitle,e.expanded_subtitle);f.ypcPreview= Ov(f.ypcPreview,e.ypc_preview);f.Nt=Ov(f.Nt,e.ypc_origin);f.Cc=YB(f.Cc,e.ypc_is_premiere_trailer);f.DZ=Ov(f.DZ,e.ypc_clickwrap_message);f.paygated=YB(f.paygated,e.paygated);f.yx=YB(f.yx,e.requires_purchase);f.showShareButton=!YB(!f.showShareButton,e.ss);f.hE=YB(f.hE,e.showwatchlater);f.K5=YB(f.K5,e.shownotifybutton);f.cE=YB(f.cE,e.copy_share);if(B=e.el)f.eventLabel=B;if(B=e.keywords)f.keywords=Cy5(B.split(","));if(B=e.rvs)f.suggestions=wZ(B).map(n=>n.playlist||n.list||n.api?new BY(f.V9,n):new e_(f.V9, n)); f.contentCheckOk=YB(f.contentCheckOk,e.cco);f.racyCheckOk=YB(f.racyCheckOk,e.rco);f.isLivingRoomDeeplink=YB(f.isLivingRoomDeeplink,e.is_living_room_deeplink);f.oauthToken=Ov(f.oauthToken,e.oauth_token);f.qC=Ov(f.qC,e.kpt);f.visitorData=Ov(f.visitorData,e.visitor_data);if(B=e.session_data)f.sessionData=Hb(B,"&");f.Cv=Ov(f.Cv,e.endscreen_ad_tracking_data);f.qe=YB(f.qe,e.wait_for_vast_info_cards_xml);f.lw=YB(f.lw,e.suppress_creator_endscreen);f.j5=YB(f.j5,e.is_trueview_action);f.a9=Ov(f.a9,e.tracking_list); rkG(f,e)}; g.d7=function(f,e,B){e&&e.cpn&&g.Yv(new g.Dj("CPN provided in VideoData update",{dDa:e.cpn,qD:f.clientPlaybackNonce,lrA:B}));B?(VT(e),f.setData(e),PS(f)&&f.Kl()):(e=e||{},y0m(f,e),L2(f,e),B$0(f,e),L45(f,e),f.publish("dataupdated"))}; rkG=function(f,e){e.inlineMetricEnabled&&(f.inlineMetricEnabled=!0);e.playback_progress_0s_url&&(f.KA=new d2m(e));if(e=e.video_masthead_ad_quartile_urls)f.Mt=e.quartile_0_url,f.Gc=e.quartile_25_url,f.bL=e.quartile_50_url,f.eZ=e.quartile_75_url,f.cw=e.quartile_100_url,f.Zp=e.quartile_0_urls,f.eL=e.quartile_25_urls,f.J4=e.quartile_50_urls,f.vI=e.quartile_75_urls,f.bk=e.quartile_100_urls}; g.f2=function(f,e){for(const B of e)B.cueRangeSetIdentifier&&f.Fo.set(B.cueRangeSetIdentifier,B.playerCueRanges??[])}; tb5=function(f){if(!f)return null;for(const e of f)if(f=e.adPlacementRenderer?.renderer?.videoAdTrackingRenderer)return f;return null}; Hf0=function(f){const e=f.playerResponse?.playerConfig?.compositeVideoConfig?.sourceConfigs;f=f.playerResponse?.playerConfig?.compositeVideoConfig?.defaultActiveSourceVideoId;if(!e||!e.length)return"";f||(f=e[0].videoId||"");for(const B of e)if(B.videoId===f&&B.audioTracks)for(const n of B.audioTracks)if(n.isDefaultForSource)return n.id||"";return""}; kFk=function(f,e,B){switch(e){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":B>30?f.limitedPlaybackDurationInSeconds=30:B<30&&B>10&&(f.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":f.limitedPlaybackDurationInSeconds=B*.2}}; CGO=function(f,e){return e!=null?YB(f.X,e):f.X?f.X:f.V9.preferGapless&&f.V9.supportsGaplessShorts()}; wym=function(f){return!!f&&isFinite(f)&&f>1E9}; v5H=function(f){return wx()&&tA(f)?!1:HY(f)&&(g.yl(f.V9)?!f.isLivePlayback:f.hlsvp)||!Ns()||f.On?!0:!1}; bf0=function(f){f=g.vb(f);return Number(f.expire)||0}; k7=function(f){const e=f.S();return f.V9.Ed==="hm"||f.V9.Ed==="gd"||e.experiments.JE().C.jI(Zfk)&&f.V9.U?!0:!1}; GoM=function(f,e){f.showShareButton=!!e;if(e=g.u(e,$u)?.navigationEndpoint||g.u(e,$u)?.command)f.cE=!!g.u(e,RpC)}; J0d=function(f,e,B){var n=B.channelThumbnail;n&&(n=n.thumbnails)&&(n=n[0])&&(e.profile_picture=n.url);if(n=g.u(g.u(B?.channelThumbnailEndpoint,K4Y)?.urlEndpoint,g.jL))e.channel_path=n.url;if(n=B.collapsedRenderer)if(n=g.u(n,q7O)){const r=n.title;r&&(e.title=g.nS(r));if(n=n.subtitle)e.subtitle=g.nS(n)}if(B=B.expandedRenderer)if(B=g.u(B,zpY)){if(n=B.title)e.expanded_title=g.nS(n);if(n=B.subtitle)e.expanded_subtitle=g.nS(n);if(B=B.subscribeButton)f.subscribeButtonRenderer=g.u(B,g.C2),f.subscribeButtonRenderer&& (e.ucid=f.subscribeButtonRenderer.channelId,e.subscribed=f.subscribeButtonRenderer.subscribed,f.K5=!!f.subscribeButtonRenderer.notificationPreferenceToggleButton,f.subscribeButtonRenderer.notificationPreferenceToggleButton&&f.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(e=f.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,e.isToggled?(f.qt=e.toggledServiceEndpoint||null,f.aj=e.defaultServiceEndpoint||null):(f.qt=e.defaultServiceEndpoint|| null,f.aj=e.toggledServiceEndpoint||null)))}}; a0k=function(f){return!!f.R0||!!f.Mt||!!f.Zp||!!f.KA||f.Kv}; w7=function(f){return!!(f.J&&f.J.videoInfos&&f.J.videoInfos.length)}; vY=function(f){return f.aR()&&f.S().supportsGaplessShorts()}; bd=function(f){var e=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],B=mt(f.V9)==="TVHTML5_SIMPLY"&&f.V9.C.ctheme==="MUSIC";!f.z_&&(g.TT(f.V9)||g.rC(f.V9)||B)&&(e.includes(f.musicVideoType)||f.isExternallyHostedPodcast)&&(f.z_=!0);if(e=g.Cs())e=/Starboard\/([0-9]+)/.exec(g.d0()),e=(e?parseInt(e[1],10):NaN)<10;B=f.V9;B=(mt(B)==="TVHTML5_CAST"||mt(B)==="TVHTML5"&&(B.C.cver.startsWith("6.20130725")||B.C.cver.startsWith("6.20130726")))&&f.V9.C.ctheme==="MUSIC";var n;if(n=!f.z_)B||(B= f.V9,B=mt(B)==="TVHTML5"&&B.C.cver.startsWith("7")),n=B;n&&!e&&(e=f.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",B=(f.Y("cast_prefer_audio_only_for_atv_and_uploads")||f.Y("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&f.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",e||B||f.isExternallyHostedPodcast)&&(f.z_=!0);return f.V9.deviceIsAudioOnly||f.z_&&f.V9.K}; ZX=function(f){return f.V9.Y("html5_disable_av1")?!0:!1}; Rl=function(f){return f.playerResponse?.playerConfig?.compositeVideoConfig?.compositeBroadcastType==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.K2=function(f){var e=f.X;f.Y("html5_gapless_unlimit_format_selection")&&vY(f)&&(e=!1);const B=!!f.C&&f.C.sA;e=ZK5(f.V9,{Cl:f.Cl(),GW:B,F_:bd(f),i$:f.i$,cD:e,isOtf:f.isOtf(),oF:f.oF(),Tf:f.Tf,yZ:f.getUserAudio51Preference(),disableAv1:ZX(f),C4:Rl(f)});lK(f)&&(e.Q3=!0);wx()&&f.playerResponse&&f.playerResponse.playerConfig&&f.playerResponse.playerConfig.webPlayerConfig&&f.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(e.V=!0,e.W=!0);f.X&&f.isAd()&&(f.GJ&&(e.N=f.GJ),f.F6&& (e.J=f.F6));f.aR()&&(e.cS=g.tS(f.V9.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));e.Lq=f.isLivePlayback&&f.xK()&&f.V9.Y("html5_drm_live_audio_51");e.Cq=f.l_;f.Y("html5_disable_vp9_hdr_fairplay")&&wx()&&(e.Cq=!0);e.xA=!lK(f);return f.kA=e}; ckG=function(f){NJ("drm_pb_s",void 0,f.Ed);f.OL||f.C&&f.C.V();var e={};f.C&&(e=Scw(f.s3,g.K2(f),f.V9.W,f.C,B=>f.publish("ctmp","fmtflt",B),!0,new Set)); e=new pyw(e,f.V9,f.XS,f.useCobaltWidevine?wx()?tA(f):!1:!1,(B,n)=>{f.ri(B,n)}); g.A(f,e);f.Aq=!1;f.loading=!0;cQm(e,B=>{NJ("drm_pb_f",void 0,f.Ed);for(var n of B)switch(n.flavor){case "fairplay":n.OL=f.OL;n.lz=f.lz;n.O8=f.O8;break;case "widevine":n.OM=f.OM}f.AC=B;if(f.AC.length>0&&(f.W=f.AC[0],f.V9.wA())){B={};for(const [r,L]of Object.entries(f.W.G)){n=L;let d="unk";const t=r.match(/(.*)codecs="(.*)"/);t&&(d=t[2]);B[d]=n}f.ri("drmProbe",B)}f.Kl()})}; Y7H=function(f){var e;if(e=!!f.cotn)e=f.videoId,e=!!e&&g.Eh(e)===1;return e&&!f.Ui}; Ofw=function(f){var e=f.playerResponse?.streamingData?.adaptiveFormats||[],B=null;if(e.length>0)B=AkM(f,e);else if(!f.Y("html5_deprecate_adaptive_formats_string")){f.ri("pafmtstr",{s:f.adaptiveFormats.substring(0,50)});if((e=f.adaptiveFormats)&&!HY(f)){f.V9.W.G&&(tF=!0);e=qU(e);B=f.contentProtection;var n=f.lengthSeconds,r=f.isLivePlayback,L=f.dC,d=f.V9,t=Q56(e);if(r||L){n=d?.experiments;r=new g.Sf("",n,!0);r.sA=!0;r.isManifestless=!0;r.G=!L;r.isLive=!L;r.dC=L;for(k of e){d=sQ(k,B);t=pP(k.url,k.sp, k.s);var H=t.get("id");H&&H.includes("%7E")&&(r.A=!0);H=n?.SI("html5_max_known_end_time_rebase");const C=Number(k.target_duration_sec)||5,w=Number(k.max_dvr_duration_sec)||14400,v=Number(t.get("mindsq")||t.get("min_sq")||"0"),b=Number(t.get("maxdsq")||t.get("max_sq")||"0")||Infinity;r.Hs=r.Hs||v;r.sI=r.sI||b;const K=!FH(d.mimeType);t&&Qj(r,new j7G(t,d,{ZP:C,BB:K,GM:w,Hs:v,sI:b,PQ:300,dC:L,nR:H}))}var k=r}else k=t==="FORMAT_STREAM_TYPE_OTF"?T_d(e,B,n,d?.experiments):DLO(e,B,n,d);e.length>0&&(e=e[0], k7(f)&&e.url&&(f.hF=f.hF||bf0(e.url)));e=f.isLivePlayback&&!f.dC&&!f.gM&&!f.isPremiere;f.Y("html5_live_head_playable")&&(!zk(f)&&e&&f.ri("missingLiveHeadPlayable",{}),f.V9.Ed==="yt"&&(k.uY=!0));B=k}else B=null;f.ri("pafmts",{isManifestFilled:!!B})}if(!B)return!1;al(f,B);return!0}; p2=function(f){return!(!f.C||!f.C.isManifestless)}; zk=function(f){return f.Y("html5_live_head_playable")&&p2(f)&&f.V9.Ed==="yt"?f.isLiveHeadPlayable:f.isLivePlayback}; AkM=function(f,e){if(e.length===0||HY(f))return null;f.V9.W.G&&(tF=!0);var B=f.contentProtection;var n=f.lengthSeconds,r=f.isLivePlayback,L=f.dC,d=f.V9,t=FAk(e);if(r||L){n=d.experiments;r=new g.Sf("",n,!0);r.G=!L;r.sA=!0;r.isManifestless=!0;r.isLive=!L;r.dC=L;for(const k of e){d=EQ(k,B);const {BV:C,s:w,t9:v}=w5(11,k);t=pP(C||k.url||"",v,w);var H=t.get("id");H&&H.includes("%7E")&&(r.A=!0);H=n?.SI("html5_max_known_end_time_rebase");const b=Number(k.targetDurationSec||5),K=Number(k.maxDvrDurationSec|| 14400),Y=Number(t.get("mindsq")||t.get("min_sq")||"0"),l=Number(t.get("maxdsq")||t.get("max_sq")||"0")||Infinity;r.Hs=r.Hs||Y;r.sI=r.sI||l;const m=!FH(d.mimeType);t&&Qj(r,new j7G(t,d,{ZP:b,BB:m,GM:K,Hs:Y,sI:l,PQ:300,dC:L,nR:H}))}B=r}else B=t==="FORMAT_STREAM_TYPE_OTF"?ULg(e,B,n,d.experiments):N_m(e,B,n,d);e.length>0&&(e=e[0],k7(f)&&e.url&&(f.hF=f.hF||bf0(e.url)));e=f.isLivePlayback&&!f.dC&&!f.gM&&!f.isPremiere;f.Y("html5_live_head_playable")&&(!zk(f)&&e&&f.ri("missingLiveHeadPlayable",{}),f.V9.Ed=== "yt"&&(B.uY=!0));return B}; qU=function(f,e){f=wZ(f);const B={};if(e)for(var n of e.split(","))(e=n.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(B[e[1]]={width:e[2],height:e[3]});for(const r of f)if(n=B[r.itag])r.width=n.width,r.height=n.height;return f}; al=function(f,e,B=!1){f.HJ=void 0;f.C=e;g.A(f,e);e.Hs=f.Hs;e.sI=f.sI;e.Ei=f.Ei;e.GQ=f.GQ;e.fY=f.fY;f.eK&&(e.Ed=new o5k(f.eK));(f.Cl()||g.cY(f))&&f.HE.push("webgl");f.C.isLive||(f.isLivePlayback=!1);const n=e.sourceUrl.split("/");if(f.MC?n.indexOf("manifest_duration")!==-1:n.indexOf("manifest_duration")!=-1)f.Xo=Number(n[n.indexOf("manifest_duration")+1]);if(e.G||e.isManifestless)e.subscribe("clienttemp",f.ri,f),B?e.subscribe("refresh",f.tZ,f):e.subscribe("cuepointsadded",f.C_,f);e.V()?f.Aq=!0:lD= void 0;f.gM&&(e.K=f.gM,e.isLive=!0,f.isLivePlayback=!0);e.isPremiere=f.isPremiere;e.isLiveHeadPlayable=f.isLiveHeadPlayable}; tA=function(f){return f.Y("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; HY=function(f){return wx()?!tA(f):bz()?!(!f.OL||!f.Y("html5_enable_safari_fairplay")&&Ns()):!1}; Y7=function(f){return f.MC?f.isLowLatencyLiveStream&&f.C!=null&&Ir(f.C)>=5:f.isLowLatencyLiveStream&&f.C!=void 0&&Ir(f.C)>=5}; Vbm=function(f){f.loading=!0;f.EE=!1;if(Y7H(f))g.okg(f.videoId).then(n=>{if(f.playerResponse?.streamingData){var r=[];for(const L of n)n=Object.assign({},L),n.signatureCipher="",r.push(n);r.length<2&&f.ri("offmlf",{len:r.length});r=AkM(f,r);bd(f)&&n$M(r,!1);al(f,r);f.ri("dlr",{})}else f.ri("offsdm",{cotn:f.fQ?f.fQ.cotn:"0",cpn:f.clientPlaybackNonce})}).then(()=>{f.Kl()}); else{Dx(f.JP)||g.Yv(new g.Dj("DASH MPD Origin invalid: ",f.JP));var e=f.JP,B=g.tS(f.V9.experiments,"dash_manifest_version")||4;e=g.vT(e,{mpd_version:B});f.isLowLatencyLiveStream&&f.latencyClass!=="NORMAL"||(e=g.vT(e,{pacing:0}));xLw(e,f.V9.experiments,f.isLivePlayback).then(n=>{f.HS()||(al(f,n,!0),NJ("mrc",void 0,f.Ed),f.Kl())},n=>{f.HS()||(f.loading=!1,f.publish("dataloaderror",new g.WP("manifest.net.retryexhausted",{backend:"manifest", rc:n.status},1)))}); NJ("mrs",void 0,f.Ed)}}; AA=function(f){if(!f.isProximaLatencyEligible)return 0;const e=Gy();return f.V9.getWebPlayerContextConfig()?.enableProximaLowLatency?2:e===1?1:f.Y("html5_enable_proxima")?2:0}; j_=function(f,e){return f.Y(e)?!0:(f.fflags||"").includes(e+"=true")}; l0m=function(f,e){const B=e||v5H(f)||f.isExternallyHostedPodcast;if(!f.C||B)return f.ri("skipDash",{dm:!!f.C,air:e,dd:f.On,mss:Ns(),"3pp":f.isExternallyHostedPodcast}),yY();bd(f)&&n$M(f.C,f.isLivePlayback);return Pb().then(()=>PRO(f.s3,g.K2(f),f.V9.W,f.C,f.W,n=>f.publish("ctmp","fmtflt",n),f.wq,Ox(f)).then(n=>{f.CR(n); f.s3.G=null;/^av/.test(f.clientPlaybackNonce)&&f.kA&&f.ri("av1",f.kA.G)}))}; F4O=function(f,e){if(e&&f.hlsvp)return yY();if(f.hlsFormats){if(e=qU(f.hlsFormats)){const n=[];for(var B of e)B.url&&(B.url=QTm(B.url)),f.kA?.C&&n.push(B.itag);f.kA?.C&&n.length>0&&f.ri("hlsfmt",{itags:n.join(".")})}f.Wd=ZJH(f.V9,e);f.Wd&&uHM(f,f.Wd);B=f.clientPlaybackNonce;return aiM(f.V9,f.isAd(),e,f.playerResponse?.captions?.playerCaptionsRenderer?.baseUrl??null,f.Rd,B,n=>f.publish("ctmp","hlsflt",n)).then(n=>{let r=0; const L=[];for(const d of n)L.push(d.getInfo()?.itag),d.getInfo()?.K()?.numChannels>r&&(r=d.getInfo().audio.numChannels);r>2&&f.ri("hlschl",{mn:r});f.kA?.C&&f.ri("hlsfmtaf",{itags:L.join(".")});if(f.Y("html5_enable_vp9_fairplay")&&f.W?.C()){f.ri("drm",{sbdlfbk:1});for(const d of f.AC)if(pT(d)){f.W=d;break}}ol(f,n)})}return yY()}; m2H=function(f){if(f.isExternallyHostedPodcast&&f.SJ){const e=qU(f.SJ);if(!e[0])return yY();f.c7=e[0];return OJg(f.V9,e[0]).then(B=>{ol(f,B)})}return f.E2&&f.NB?jMm(f.V9,f.isAd(),f.E2).then(e=>{ol(f,e)}):yY()}; hp5=function(f){if(f.isExternallyHostedPodcast)return yY();const e=qU(f.SJ,f.F0);if(f.hlsvp){const B=Ekw(f.hlsvp,f.clientPlaybackNonce,f.Rd);e.push(B)}return U2H(f.V9,f.isAd(),e,N$k(f)).then(B=>{ol(f,B)})}; Ox=function(f){const e=f.Y("html5_enable_server_format_filter")&&!f.xK(),B=f.Y("html5_enable_server_format_filter_for_drm")&&f.xK();return lK(f)&&(e||B)}; uHM=function(f,e){e.sort((B,n)=>B.toString().localeCompare(n.toString(),f.V9.hostLanguage))}; ol=function(f,e){f.tL=e;f.CR(new tr(g.xg(f.tL,B=>B.getInfo())))}; N$k=function(f){const e={cpn:f.clientPlaybackNonce,c:f.V9.C.c,cver:f.V9.C.cver};f.TR&&(e.ptk=f.TR,e.oid=f.Xr,e.ptchn=f.YB,e.pltype=f.Bk,f.Xa&&(e.m=f.Xa));return e}; g.VW=function(f){return HY(f)&&f.OL?{fairplay:"https://youtube.com/api/drm/fps?ek=uninitialized"}:f.G&&f.G.contentProtection||null}; ld=function(f){return f.playerResponse&&f.playerResponse.paidContentOverlay&&f.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.u(f.cS?.playerOverlays?.playerOverlayRenderer?.playerDisclosure,g5m)||null}; S7G=function(f){const e=ld(f);return e&&e.text?g.nS(e.text):f.paidContentOverlayText}; E5C=function(f){const e=ld(f);return e&&e.durationMs?Hh(e.durationMs):f.paidContentOverlayDurationMs}; ud=function(f){let e="";if(f.w4)return f.w4;f.isLivePlayback&&(e=f.allowLiveDvr?"dvr":f.isPremiere?"lp":f.gM?"window":"live");f.dC&&(e="post");return e}; g.FQ=function(f,e){return typeof f.keywords[e]!=="string"?null:f.keywords[e]}; g.ym=function(f){return!!(f.JP||f.SJ||f.E2||f.hlsvp||f.qd())}; sTO=function(f){return(f=f.Z2)&&f.showError?f.showError:!1}; g.mi=function(f){return zk(f)&&!f.allowLiveDvr}; Ux=function(f){return zk(f)&&f.allowLiveDvr}; g.NU=function(f){return!!f.C&&Xlk(f.C)}; g.hA=function(f){return!!f.C&&yXM(f.C)}; g.cY=function(f){return!!f.C&&Ikg(f.C)}; g.g7=function(f){return!!f.C&&PAM(f.C)}; g.Q7g=function(f){if(f.lw)return null;let e=f.xF;e||(e=f.playerResponse&&f.playerResponse.endscreen&&f.playerResponse.endscreen.endscreenUrlRenderer&&f.playerResponse.endscreen.endscreenUrlRenderer.url);return e||null}; g.T$O=function(f){return f.lw?null:f.playerResponse&&f.playerResponse.endscreen&&f.playerResponse.endscreen.endscreenRenderer||null}; g.S_=function(f){if(!f.playerResponse||!f.playerResponse.annotations)return null;for(const e of f.playerResponse.annotations)if(e.playerAnnotationsExpandedRenderer&&e.playerAnnotationsExpandedRenderer.featuredChannel)return e.playerAnnotationsExpandedRenderer;return null}; Ex=function(f){return f.adFormat&&(f.MC?f.adFormat!=="1_5":f.adFormat!="1_5")?"adunit":f.eventLabel||f.V9.Cq}; QW=function(f,e){const B=new g.Qv(e);(e=B.get("req_id"))&&f.set("req_id",e);g.OM(f.C,(n,r)=>{B["set"](r,null)}); return B}; g.Tk=function(f){return Ex(f)==="shortspage"}; DX=function(f){return f.nz||Ex(f)==="detailpage"||Ex(f)==="shortspage"||f.mutedAutoplay}; JVk=function(f){const e=Ex(f)==="adunit"?f.HF:DX(f)?Ex(f)==="detailpage"||Ex(f)==="shortspage"?f.isAutonav||f.Fl>0:f.Mk?!1:f.V9.K5||f.V9.E2||!g.XY(f.V9)?!0:!1:(f.Mk?0:f.mS)&&g.XY(f.V9)?!0:!1;f.Y("html5_log_detailpage_autoplay")&&Ex(f)==="detailpage"&&f.ri("autoplay_info",{autoplay:f.nz,autonav:f.isAutonav,wasDompaused:f.Mk,result:e});return e}; D25=function(f){let e=1;var B=g.tS(f.V9.experiments,"html5_default_ad_gain");B&&f.isAd()&&(e=B);B=f.V?.audio.J!=null?f.V?.audio.J:f.Ni;isNaN(B)||(f.xI=4);return Math.min(1,10**(-B/20))||e}; Jkd=function(f){if(f.Y("html5_stateful_audio_normalization")){{let n=1;var e=g.tS(f.V9.experiments,"html5_default_ad_gain");e&&f.isAd()&&(n=e);const r=f.V?.audio.V??f.NR;if(r==null||isNaN(r))f=D25(f);else{e=(0,g.T)();f.xI=1;var B=e-f.V9.KG<=f.maxStatefulTimeThresholdSec*1E3;f.applyStatefulNormalization&&B?f.xI=2:B||(f.V9.cE=Infinity,f.V9.KG=NaN);B=(f.xI===2?g.ch(f.V9.cE,f.minimumLoudnessTargetLkfs,f.loudnessTargetLkfs):f.loudnessTargetLkfs)-r;f.xI!==2&&(B+=f.playerResponse?.playerConfig?.audioConfig?.loudnessNormalizationConfig?.statelessLoudnessAdjustmentGain|| 0);B=Math.min(B,0);f.preserveStatefulLoudnessTarget&&(f.V9.cE=r+B,f.V9.KG=e);f=Math.min(1,10**(B/20))||n}}}else f=D25(f);return f}; g.MbC=function(f){return f.sA()&&lK(f)}; JA=function(f){return!!f.playerResponse?.playerConfig?.mediaCommonConfig?.splitScreenEligible}; GFd=function(f){return isNaN(f)?0:Math.max((Date.now()-f)/1E3-30,0)}; MU=function(f){return!(!f.Ui||!f.V9.K)&&f.qd()}; Gk=function(f){return f.U8&&f.enableServerStitchedDai}; x2k=function(f){return f.Rj&&!f.eK}; Xh=function(f){var e;if(!(e=sh&&f.sA()&&f.xK()&&(f.drmProduct==="1"?!1:!0)&&f.Y("html5_sabr_live_drm_streaming_xhr"))){e=f.sA()&&!f.xK()&&sh;var B=f.sA()&&f.latencyClass!=="ULTRALOW"&&!f.isLowLatencyLiveStream&&f.Y("html5_sabr_live_normal_latency_streaming_xhr"),n=f.isLowLatencyLiveStream&&f.Y("html5_sabr_live_low_latency_streaming_xhr");const r=f.latencyClass==="ULTRALOW"&&f.Y("html5_sabr_live_ultra_low_latency_streaming_xhr");e=e&&(B||n||r)}B=e;e=f.enableServerStitchedDai&&B&&f.Y("html5_enable_sabr_ssdai_streaming_xhr"); B=!f.enableServerStitchedDai&&B;n=f.sA()&&!sh&&f.Y("html5_enable_sabr_live_non_streaming_xhr");f=sh&&(f.q0()||JA(f)&&f.Y("html5_enable_sabr_for_lifa_eligible_streams"));return e||B||n||f}; x7=function(f){return f.nA?["OK","LIVE_STREAM_OFFLINE"].includes(f.nA.status):!0}; g.W4C=function(f){return f.captionsLanguagePreference||f.V9.captionsLanguagePreference||g.FQ(f,"yt:cc_default_lang")||f.V9.lC}; g.WY=function(f){return!!f.embeddedPlayerConfig?.embeddedPlayerFlags?.enableMusicUx}; sx=function(f){return f.V9.V&&f.isPrivate}; s76=function(f){return f.playerResponse?.playerConfig?.daiConfig?f.Me?1:f.U$?2:0:3}; g.sf=function(f){var e=f.S();const B=g.XQ(e);var n=e.P4;g.Ms(e)&&(n&&(B.thirdParty={...B.thirdParty,embedUrl:n}),u$6(B,f));(n=f.A)?B.clickTracking={clickTrackingParams:n}:g.Ms(f.S())&&g.Q("EVENT_ID")?B.clickTracking={clickTrackingParams:g.Q("EVENT_ID")}:e.Y("html5_log_missing_itct")&&(n=new g.Dj("Missing ITCT in InnerTubeContext",{isAd:f.isAd(),ouA:e.getWebPlayerContextConfig()?.contextId}),g.J(n));n=B.client||{};var r="EMBED",L=Ex(f);L==="leanback"?r="WATCH":e.Y("gvi_channel_client_screen")&&L=== "profilepage"?r="CHANNEL":f.Tf?r="LIVE_MONITOR":L==="detailpage"?r="WATCH_FULL_SCREEN":L==="adunit"?r="ADUNIT":L==="sponsorshipsoffer"&&(r="UNKNOWN");n.clientScreen=r;if(r=f.kidsAppInfo)n.kidsAppInfo=JSON.parse(r);(L=f.Xd)&&!r&&(n.kidsAppInfo={contentSettings:{ageUpMode:XyC[L]}});if(r=f.jK)n.unpluggedAppInfo={enableFilterMode:!0};(L=f.unpluggedFilterModeType)&&!r&&(n.unpluggedAppInfo={filterModeType:yk6[L]});if(r=f.Ch)n.unpluggedLocationInfo=r;B.client=n;n=B.request||{};f.UE&&(n.isPrefetch=!0);if(r= f.mdxEnvironment)n.mdxEnvironment=r;if(r=f.mdxControlMode)n.mdxControlMode=PG0[r];B.request=n;n=B.user||{};if(r=f.Cq)n.credentialTransferTokens=[{token:r,scope:"VIDEO"}];if(r=f.qC)n.delegatePurchases={oauthToken:r},n.kidsParent={oauthToken:r};if(e=e.getWebPlayerContextConfig()?.userContentRating)n.serializedUserContentRating=e;B.user=n;if(e=f.contextParams)B.activePlayers=[{playerContextParams:e}];if(f=f.clientScreenNonce)B.clientScreenNonce=f;return B}; g.XQ=function(f){const e=g.rH(),B=e.client||{};if(f.forcedExperiments){var n=f.forcedExperiments.split(",");const r=[];for(const L of n)r.push(Number(L));B.experimentIds=r}if(n=f.homeGroupInfo)B.homeGroupInfo=JSON.parse(n);if(n=f.getPlayerType())B.playerType=n;if(n=f.C.ctheme)B.theme=n;if(n=f.livingRoomAppMode)B.tvAppInfo={...B.tvAppInfo,livingRoomAppMode:n};n=f.deviceYear;f.Y("html5_propagate_device_year")&&n&&(B.tvAppInfo={...B.tvAppInfo,deviceYear:n});if(n=f.livingRoomPoTokenId)B.tvAppInfo={...B.tvAppInfo, livingRoomPoTokenId:n};e.client=B;n=e.user||{};f.enableSafetyMode&&(n={...n,enableSafetyMode:!0});!B.tvAppInfo?.usePageidAsHeader&&f.pageId&&(n={...n,onBehalfOfUser:f.pageId});e.user=n;return e}; yVw=function(f){const e=!f?.oF()&&f?.sA()&&ps();return{supportsVp9Encoding:!(!f?.zw()||e),supportXhr:sh}}; $2Y=async function(f,e){f={context:g.XQ(f.S()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:f.videoId,cpn:f.clientPlaybackNonce}}]};const B=g.dH(I0C);return await g.JQ(e,f,B)}; ifd=function(f,e,B){const n=g.tS(e.experiments,"bg_vm_reinit_threshold");(!Ty||(0,g.T)()-Ty>n)&&$2Y(f,B).then(r=>{r&&(r=r.botguardData)&&g.Jf(r,e)},r=>{f.HS()||(r=sI(r),f.ri("attf",r.details))})}; cS=function(f,e,B){f<<1&15||(B=(B%e[Z[13]]+e[Z[13]])%e[Z[13]],e[Z[45]](B,1));if((f-6&15)<5&&f>>1>=-44&&B[Z[13]]!=0){var n=Jg(16,e,B);e=n[0]}if((f>>1&13)==1){try{(e[54]==9||((0,e[6])(e[82]),0))&&(0,e[77])(e[74],e[29]),(0,e[42])((0,e[91])(e[new Date(Z[21])/1E3]),e[57],e[41],(0,e[13])(),e[2])}catch(L){e[43]>-6&&(0,e[64])(e[6],(0,e[19])(),e[new Date(Z[66])/1E3]),e[0]<=-5&&(e[21]<=-2&&((0,e[4])((0,e[42])((0,e[42])((0,e[57])(e[6],(0,e[46])(),e[2]),e[35],e[41],e[47]),e[77],e[41],e[9]),(0,e[8])(e[26],e[62]), e[42],(0,e[35])(e[51],e[30]),e[57],e[51],(0,e[13])(),e[52]),1)||(((0,e[81])(e[26],e[53]),e[42])((0,e[42])((0,e[73])(e[63],e[11]),e[36],e[89],e[41]),e[77],e[6],e[44]),e[36])(e[39],e[6])|(0,e[36])(e[43],e[11]))}finally{(e[22]===7||((0,e[18])((((0,e[73])(e[20],e[74]),e[37])(e[51]),e[78])(e[74],e[40]),e[21],(0,e[74])(e[92],e[89])<=(0,e[16])(e[35],e[17]),e[44],e[27]),0))&&(((0,e[75])(e[64]),e[16])(e[1],e[64]),e[73])(e[49],e[86])===(((0,e[75])(e[44]),e[73])(e[17],e[10])&(0,e[7])(e[89],(0,e[11])(),e[40]))}try{n= wj(1,e,Date)}catch(L){(0,e[75])(e[53],e[3]),(0,e[41])((0,e[18])(e[32],(0,e[70])(),e[81]),e[5],e[32],e[78])}try{n=wj(80,e)}catch(L){e[93]>-6&&(((0,e[5])(e[57],e[84]),e[18])(e[32],(0,e[70])(),e[81]),Z[51])||(0,e[41])((0,e[4])(e[72],e[59]),e[84],e[12],e[56])}try{n=wP(88,e,Date)}catch(L){(0,e[57])(e[28],e[38]),(0,e[93])((0,e[2])(e[28]),e[29],e[84],(0,e[20])(),e[37])}finally{e[15]!==8&&(e[91]==9||((0,e[56])(e[94],e[65]),0))&&(0,e[57])(e[9],e[24])}var r=[]}if(((f|1)&15)>=4&&f+6>>5<1)for(n=e[Z[13]];n;)e[Z[3]](e[Z[45]](--n, 1)[0]);return r}; g.yW=function(f,e,...B){f.state.J.publish(e,...B);f.state.G.publish(e,...B)}; X=function(f,e,B){f.state.C[e]=(...n)=>B.apply(f,n)}; PY=function(f,e,B){f.state.C.hasOwnProperty(e)||X(f,e,B);f.state.W[e]=(...n)=>B.apply(f,n); f.state.X.add(e)}; Il=function(f,e,B){f.state.C.hasOwnProperty(e)||X(f,e,B);f.app.S().K&&(f.state.U[e]=(...n)=>B.apply(f,n),f.state.X.add(e))}; g.$7=function(f,e,B){return f.state.C[e](...B)}; g.id=function(f,e,...B){f.state.J.publish(e,...B);f.state.G.publish(e,...B);f.state.V.publish(e,...B)}; g.f_=function(f,e,...B){f.state.J.publish(e,...B);f.state.G.publish(e,...B);f.state.V.publish(e,...B);f.state.K.publish(e,...B)}; fcw=function(f,e,B){typeof f==="string"&&(f={mediaContentUrl:f,startSeconds:e,suggestedQuality:B});a:{if((e=f.mediaContentUrl)&&(e=/\/([ve]|embed)\/([^#?]+)/.exec(e))&&e[2]){e=e[2];break a}e=null}f.videoId=e;return e5(f)}; e5=function(f,e,B){if(typeof f==="string")return{videoId:f,startSeconds:e,suggestedQuality:B};e={};for(const n of eaC)f[n]&&(e[n]=f[n]);if(f=f.embedConfig||f.embed_config)if(typeof f==="string")e.embed_config=f;else if(g.jC(f))try{const n=JSON.stringify(f);e.embed_config=n}catch(n){console.error("Invalid embedConfig JSON",n)}return e}; Bsw=function(f,e,B,n){if(g.jC(f)&&!Array.isArray(f)){e="playlist list listType index startSeconds suggestedQuality".split(" ");B={};for(n=0;nf.getPlaybackQuality(1)); PY(f,"setPlaybackQuality",f.s3);PY(f,"getAvailableQualityLevels",f.PS);PY(f,"getCurrentTime",f.uY);PY(f,"getDuration",f.BS);PY(f,"addEventListener",f.Ed);PY(f,"removeEventListener",f.qj);PY(f,"getDebugText",f.Z9);PY(f,"getVideoData",()=>nsO(f)); PY(f,"addCueRange",f.K);PY(f,"removeCueRange",f.removeCueRange);PY(f,"setSize",f.setSize);PY(f,"getApiInterface",f.getApiInterface);PY(f,"destroy",f.destroy);PY(f,"mutedAutoplay",f.mutedAutoplay);const e=f.app.S();e.U||(PY(f,"getVideoEmbedCode",f.getVideoEmbedCode),PY(f,"getVideoUrl",f.uC));PY(f,"getMediaReferenceTime",f.MC);PY(f,"getSize",f.getSize);PY(f,"setFauxFullscreen",f.pz);e.Y("embeds_enable_move_set_center_crop_to_public")&&PY(f,"setCenterCrop",f.setCenterCrop);e.U||PY(f,"logImaAdEvent", f.logImaAdEvent);PY(f,"preloadVideoById",f.hF);PY(f,"wakeUpControls",f.wakeUpControls)}; g.n_=function(f){return(f=LId(f.app.iC()))?f.LG():null}; L_=function(f){const e=g.sC(f.app.S()),B=f.app.getVideoData()?.S6;f=rL(f.app);return g.uz(e)&&!B||f?!1:!0}; dj6=function(f){let e=f.raw_player_response;if(!e){var B=f.player_response;B&&(e=JSON.parse(B))}delete f.player_response;delete f.raw_player_response;e&&(f.raw_player_response={streamingData:e.streamingData,playerConfig:e.playerConfig},e.playbackTracking?.qoeUrl&&(f.raw_player_response={...f.raw_player_response,playbackTracking:{qoeUrl:e.playbackTracking.qoeUrl}}),e.videoDetails&&(e.videoDetails.videoId||e.videoDetails.lengthSeconds)&&(B={},e.videoDetails.videoId&&(B.videoId=e.videoDetails.videoId), e.videoDetails.lengthSeconds&&(B.lengthSeconds=e.videoDetails.lengthSeconds),f.raw_player_response={...f.raw_player_response,videoDetails:B}))}; dL=function(f,e){const B={};if(f.app.S().A){for(const n of tSg)e.hasOwnProperty(n)&&(B[n]=e[n]);if(f=B.qoe_cat)e="",typeof f==="string"&&f.length>0&&(e=f.split(",").filter(n=>Hhk.includes(n)).join(",")),B.qoe_cat=e; dj6(B)}else for(const n of kSG)e.hasOwnProperty(n)&&(B[n]=e[n]);return B}; wu0=function(f){return f?CxM[f]||5:5}; vsG=function(f){X(f,"getInternalApiInterface",f.getInternalApiInterface);X(f,"getTrustedApi",f.getTrustedApi);X(f,"addEventListener",f.N);X(f,"removeEventListener",f.Qr);X(f,"cueVideoByPlayerVars",f.Cq);X(f,"loadVideoByPlayerVars",f.lC);X(f,"preloadVideoByPlayerVars",f.Cc);X(f,"getAdState",f.getAdState);X(f,"sendAbandonmentPing",f.sendAbandonmentPing);X(f,"setLoopRange",f.setLoopRange);X(f,"getLoopRange",f.getLoopRange);X(f,"setAutonavState",f.setAutonavState);X(f,"seekTo",f.y8);X(f,"seekBy",f.zt); X(f,"seekToLiveHead",f.seekToLiveHead);X(f,"requestSeekToWallTimeSeconds",f.requestSeekToWallTimeSeconds);X(f,"seekToStreamTime",f.seekToStreamTime);X(f,"prefetchKeyPlay",f.prefetchKeyPlay);X(f,"startSeekCsiAction",f.startSeekCsiAction);X(f,"getStreamTimeOffset",f.getStreamTimeOffset);X(f,"isOrchestrationLeader",f.isOrchestrationLeader);X(f,"getVideoData",f.Yp);X(f,"setInlinePreview",f.setInlinePreview);X(f,"getAppState",f.getAppState);X(f,"updateLastActiveTime",f.updateLastActiveTime);X(f,"setBlackout", f.setBlackout);X(f,"setUserEngagement",f.setUserEngagement);X(f,"updateSubtitlesUserSettings",f.updateSubtitlesUserSettings);X(f,"getPresentingPlayerType",f.J);X(f,"canPlayType",f.canPlayType);X(f,"updatePlaylist",f.updatePlaylist);X(f,"updateVideoData",f.updateVideoData);X(f,"updateEnvironmentData",f.updateEnvironmentData);X(f,"sendVideoStatsEngageEvent",f.E2);X(f,"productsInVideoVisibilityUpdated",f.productsInVideoVisibilityUpdated);X(f,"setSafetyMode",f.setSafetyMode);X(f,"isAtLiveHead",e=>f.isAtLiveHead(void 0, e)); X(f,"getVideoAspectRatio",f.getVideoAspectRatio);X(f,"getPreferredQuality",f.getPreferredQuality);X(f,"getPlaybackQualityLabel",f.getPlaybackQualityLabel);X(f,"setPlaybackQualityRange",f.Z2);X(f,"onAdUxClicked",f.onAdUxClicked);X(f,"getFeedbackProductData",f.getFeedbackProductData);X(f,"getStoryboardFrame",f.getStoryboardFrame);X(f,"getStoryboardFrameIndex",f.getStoryboardFrameIndex);X(f,"getStoryboardLevel",f.getStoryboardLevel);X(f,"getNumberOfStoryboardLevels",f.getNumberOfStoryboardLevels);X(f, "getCaptionWindowContainerId",f.getCaptionWindowContainerId);X(f,"getAvailableQualityLabels",f.getAvailableQualityLabels);X(f,"addCueRange",f.addCueRange);X(f,"addUtcCueRange",f.addUtcCueRange);X(f,"showAirplayPicker",f.showAirplayPicker);X(f,"dispatchReduxAction",f.dispatchReduxAction);X(f,"getPlayerResponse",f.qC);X(f,"getWatchNextResponse",f.hE);X(f,"getHeartbeatResponse",f.Fl);X(f,"getCurrentTime",f.Lq);X(f,"getDuration",f.vK);X(f,"getPlayerState",f.getPlayerState);X(f,"getPlayerStateObject", f.tL);X(f,"getVideoLoadedFraction",f.getVideoLoadedFraction);X(f,"getProgressState",f.getProgressState);X(f,"getVolume",f.getVolume);X(f,"setVolume",f.cU);X(f,"isMuted",f.isMuted);X(f,"mute",f.ZR);X(f,"unMute",f.Yq);X(f,"loadModule",f.loadModule);X(f,"unloadModule",f.unloadModule);X(f,"getOption",f.Q6);X(f,"getOptions",f.getOptions);X(f,"setOption",f.setOption);X(f,"loadVideoById",f.Bj);X(f,"loadVideoByUrl",f.f7);X(f,"playVideo",f.xw);X(f,"loadPlaylist",f.loadPlaylist);X(f,"nextVideo",f.nextVideo); X(f,"previousVideo",f.previousVideo);X(f,"playVideoAt",f.playVideoAt);X(f,"getDebugText",f.getDebugText);X(f,"getWebPlayerContextConfig",f.getWebPlayerContextConfig);X(f,"notifyShortsAdSwipeEvent",f.notifyShortsAdSwipeEvent);X(f,"getVideoContentRect",f.getVideoContentRect);X(f,"setSqueezeback",f.setSqueezeback);X(f,"toggleSubtitlesOn",f.toggleSubtitlesOn);X(f,"isSubtitlesOn",f.isSubtitlesOn);X(f,"getAudioTrack",f.eI);X(f,"setAudioTrack",f.S6);X(f,"getAvailableAudioTracks",f.WS);X(f,"reportPlaybackIssue", f.reportPlaybackIssue);X(f,"setAutonav",f.setAutonav);X(f,"isNotServable",f.isNotServable);X(f,"channelSubscribed",f.channelSubscribed);X(f,"channelUnsubscribed",f.channelUnsubscribed);X(f,"togglePictureInPicture",f.togglePictureInPicture);X(f,"supportsGaplessAudio",f.supportsGaplessAudio);X(f,"supportsGaplessShorts",f.supportsGaplessShorts);X(f,"enqueueVideoByPlayerVars",e=>void f.enqueueVideoByPlayerVars(e)); X(f,"clearQueue",f.clearQueue);X(f,"getMaxPlaybackQuality",f.getMaxPlaybackQuality);X(f,"getUserPlaybackQualityPreference",f.getUserPlaybackQualityPreference);X(f,"getSubtitlesUserSettings",f.getSubtitlesUserSettings);X(f,"resetSubtitlesUserSettings",f.resetSubtitlesUserSettings);X(f,"setMinimized",f.setMinimized);X(f,"setOverlayVisibility",f.setOverlayVisibility);X(f,"confirmYpcRental",f.confirmYpcRental);X(f,"queueNextVideo",f.queueNextVideo);X(f,"handleExternalCall",f.handleExternalCall);X(f,"logApiCall", f.logApiCall);X(f,"isExternalMethodAvailable",f.isExternalMethodAvailable);X(f,"setScreenLayer",f.setScreenLayer);X(f,"getCurrentPlaylistSequence",f.getCurrentPlaylistSequence);X(f,"getPlaylistSequenceForTime",f.getPlaylistSequenceForTime);X(f,"shouldSendVisibilityState",f.shouldSendVisibilityState);X(f,"syncVolume",f.syncVolume);X(f,"highlightSettingsMenuItem",f.highlightSettingsMenuItem);X(f,"openSettingsMenuItem",f.openSettingsMenuItem);X(f,"getEmbeddedPlayerResponse",f.getEmbeddedPlayerResponse); X(f,"getVisibilityState",f.getVisibilityState);X(f,"isMutedByMutedAutoplay",f.isMutedByMutedAutoplay);X(f,"isMutedByEmbedsMutedAutoplay",f.isMutedByEmbedsMutedAutoplay);X(f,"setGlobalCrop",f.setGlobalCrop);X(f,"setInternalSize",f.setInternalSize);X(f,"setFauxFullscreen",f.setFauxFullscreen);X(f,"setAppFullscreen",f.setAppFullscreen)}; HF=function(f,e,B){f=g.tK(f.Fi(),e);return B?(B.addOnDisposeCallback(f),null):f}; g.kr=function(f,e,B){return f.app.S().UE?e:g.RT("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:e,SHORTCUT:B})}; bhl=function(f){f.Fi().element.setAttribute("aria-live","polite")}; g.C_=function(f,e){f.getPresentingPlayerType()===3?f.publish("mdxautoplaycancel"):g.yW(f,"onAutonavCancelled",e)}; g.wL=function(f){f=f.iC();const e=f.L5.get("endscreen");return e&&e.sL()?!0:f.h9()}; g.bS=function(f){const e=vF(f.iC());return f.app.WE&&!f.isFullscreen()||f.getPresentingPlayerType()===3&&e&&e.hasNext()&&e.hasPrevious()||!!f.getPlaylist()}; g.Z5=function(f,e){g.$7(f,"addEmbedsConversionTrackingParams",[e])}; g.K_=function(f){return(f=g.Ry(f.iC()))?f.eS():{}}; g.Zhw=function(f){f=(f=f.getVideoData())&&f.G;return!!f&&!(!f.audio||!f.video)&&f.mimeType!=="application/x-mpegURL"}; g.qX=function(f,e,B){f=f.AL().element;let n=pF(f.children,r=>{r=Number(r.getAttribute("data-layer"));return B-r||1}); n<0&&(n=-(n+1));dw(f,e,n);e.setAttribute("data-layer",String(B))}; g.zJ=function(f){const e=f.S();if(!e.EE)return!1;const B=f.getVideoData();if(!B||f.getPresentingPlayerType()===3)return!1;var n=(!B.isLiveDefaultBroadcast||e.Y("allow_poltergust_autoplay"))&&!B.eI();n=B.isLivePlayback&&(!e.Y("allow_live_autoplay")||!n);const r=B.isLivePlayback&&e.Y("allow_live_autoplay_on_mweb");f=f.getPlaylist();f=!!f&&f.hasNext();var L=B.cS&&B.cS.playerOverlays||null;L=!!(L&&L.playerOverlayRenderer&&L.playerOverlayRenderer.autoplay);L=B.AF&&L;return!B.ypcPreview&&(!n||r)&&!g.eB(B.HE, "ypc")&&!f&&(!g.XY(e)||L)}; KIl=function(f,e){f=Ra5(f.app.U2().W);for(const B of f){f=B.getAvailableAudioTracks();let n=null;for(const r of f)if(r.getLanguageInfo().getId()===e){n=r;break}n&&B.uw(n,!0)}}; p_=function(){ay||(ay=new qPH);return ay}; cF=function(f,e){e?f.requestHeaders.Authorization=`Bearer ${e}`:delete f.requestHeaders.Authorization}; Yr=function(f){const e=f.Z.getRootNode();return f.Z.Y("web_watch_pip")||f.Z.Y("web_shorts_pip")?Sy(e):document}; zaY=function(f){f.sourceElement&&(document.activeElement&&g.HN(f.element,document.activeElement)&&f.sourceElement.focus(),f.sourceElement.setAttribute("aria-expanded","false"),f.sourceElement=void 0);f.W.G();f.U=void 0}; AK=function(f,e,B){f.A3()?f.HL():f.Fx(e,B)}; g.j5=function(f={},e=[],B=!1,n=!1){e.push("ytp-menuitem");"role"in f||(f.role="menuitem");B||"tabindex"in f||(f.tabindex="0");f={L:B?"a":"div",y9:e,O:f,j:[{L:"div",B:"ytp-menuitem-icon",Ga:"{{icon}}"},{L:"div",B:"ytp-menuitem-label",Ga:"{{label}}"},{L:"div",B:"ytp-menuitem-content",Ga:"{{content}}"}]};n&&f.j.push({L:"div",B:"ytp-menuitem-secondary-icon",Ga:"{{secondaryIcon}}"});return f}; g.Or=function(f,e){f.updateValue("label",e)}; oy=function(f){return f?g.nS(f):""}; lS=function(f,e,B,n){e in f.C||(B=new g.VD(B,n,{id:e,priority:2,namespace:"appad"}),f.api.AI([B],1),f.C[e]=B)}; uS=function(f,e){acd(f,e).then(B=>{g.gq(e,void 0,void 0,B)})}; GR=function(f,e,B,n,r,L,d,t){var H;if((f-3^25)=f){var k=B[Z[13]];e[Z[40]](function(C,w,v){this[Z[3]](v[w]=B[(B[Z[4]](C)-B[Z[4]](this[w])+w+k--)%B[Z[13]]])},n[Z[36]](Z[12]))}((f^12)&3)==1&&e[Z[45]](e[Z[13]],0,B); (f-1^25)>=f&&f-8<<2{uS(f,B)})}; Ai6=function(f,e,B){if(!(B in e))return!1;e=e[B];Array.isArray(e)||(e=[e]);for(const n of e)e={CPN:f.api.getVideoData().clientPlaybackNonce},e=g.pX(n,e),g.gq(e,void 0,rE(La(e,puG),e,!1,"Active View 3rd Party Integration URL")||rE(La(e,ciC),e,!1,"Google/YouTube Brand Lift URL")||rE(La(e,YPM),e,!1,"Nielsen OCR URL"));return!0}; acd=function(f,e){return g.IM(f.api.S())&&a6(e)&&qg(e)?g.vS(f.api.S(),f.api.getVideoData().U()).then(B=>{let n;B&&(n={Authorization:`Bearer ${B}`});return n},void 0):Pb()}; jwG=function(f){const e=!f.S().xI&&f.getPresentingPlayerType()!==3;return f.isFullscreen()||e}; g.mv=function(f,e,B=!1,n){const r=f.currentTarget;if(!B&&g.Ef(f))return f.preventDefault(),!0;e.pauseVideo();f=r.getAttribute("href");g.Wl(f,n,!0);return!1}; g.Ur=function(f,e,B){if(iD(e.S())&&e.getPresentingPlayerType()!==2){if(g.Ef(B))return e.isFullscreen()&&!e.S().externalFullscreen&&e.toggleFullscreen(),B.preventDefault(),!0}else{const n=g.Ef(B);n&&e.pauseVideo();g.Wl(f,void 0,!0);n&&(g.I5(f),B.preventDefault())}return!1}; Oh6=function(f){f=NX.includes("pt-BR")?f.Y("delhi_modern_web_player_icons")?kU():{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",ev:!0,O:{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"}}]}:f.Y("delhi_modern_web_player_icons")?nxH():{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",ev:!0,O:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};f.B="ytp-subtitles-button-icon"; return f}; osY=function(f){return NX.includes("pt-BR")?f?kU():{L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:f?{L:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},j:[{L:"path",O:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; hK=function(){return{L:"div",B:"ytp-spinner-container",j:[{L:"div",B:"ytp-spinner-rotator",j:[{L:"div",B:"ytp-spinner-left",j:[{L:"div",B:"ytp-spinner-circle"}]},{L:"div",B:"ytp-spinner-right",j:[{L:"div",B:"ytp-spinner-circle"}]}]}]}}; gL=function(f){if(document.createRange){const e=document.createRange();e&&(e.selectNodeContents(f),f=window.getSelection())&&(f.removeAllRanges(),f.addRange(e))}}; VSm=function(f,e){const B=e.getAudioTrack();return B.id!=="und"?g.GO(f,n=>n.Z_?.name===B.getLanguageInfo().name):f}; lc6=function(f,e){return e.getUserAudio51Preference()?g.GO(f,S5):f}; uqw=function(f){return f.map(e=>new g$(e.id,"application/x-mpegURL",{Z_:e.Z_}))}; FIl=function(f){return g.IB("yt-player-drc-pref")?g.GO(f,Er):f}; mjw=function(f){return OBM()===2?g.GO(f,QD):f}; Ujk=function(f){return oAw()===1?g.GO(f,TJ):f}; TJ=function(f){return f.audio?.audioQuality==="AUDIO_QUALITY_HIGH"&&!S5(f)}; Er=function(f){return f.audio?.C===!0}; S5=function(f){return f.U()}; NsO=function(f){return f.Z_!==void 0}; QD=function(f){return f.audio?.G===!0}; D5=function(f,e){if(f.length<2)return!1;const B=e(f[0]);return f.some(n=>e(n)!==B)}; hak=function(f,e){f=new Set(f.map(e));f.delete(void 0);return f.size>=2}; gs5=function(f){return f.Z.S().Y("web_player_autonav_use_server_provided_state")&&f.EK().I5()}; SPM=function(f){f.isChecked=f.isChecked;f.JL("ytp-autonav-toggle-button").setAttribute("aria-checked",String(f.isChecked));const e=f.isChecked?"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 ativada":"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 desativada";f.Z.S().Y("player_tooltip_data_title_killswitch")?f.update({title:e,label:e}):f.update({"data-tooltip-title":e,label:e});f.Z.lR()}; QwH=function(f){f.menuItem||(f.menuItem=new Es5(f.api),g.A(f,f.menuItem),f.menuItem.gi(f.C))}; Tsw=function(f){var e=f.api.Y("delhi_modern_web_player_compact_controls"),B=g.tS(f.api.S().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),n=e||B>0&&f.api.getPlayerSize().width<=B;e=f.api.getRootNode();e.classList.toggle("ytp-delhi-modern-compact-controls",n);B=n?"40px":"48px";const r=n?"8px":"12px",L=n?"56px":"72px",d=n?"56px":"64px";let t=n?"48px":"56px",H=n?"12px":"20px";n=n?"72px":"96px";f.api.Y("delhi_modern_web_player_big_mode_consistent_pill_height")&&(t="56px", H="12px",n="80px");e.style.setProperty("--yt-delhi-pill-height",B);e.style.setProperty("--yt-delhi-pill-top-height",r);e.style.setProperty("--yt-delhi-bottom-controls-height",L);e.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",d);e.style.setProperty("--yt-delhi-big-mode-pill-height",t);e.style.setProperty("--yt-delhi-big-mode-pill-top-height",H);e.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",n)}; Djg=function(f,e){for(const B of e){e=Number(B.playbackPosition?.utcTimeMillis)/1E3;const n=`embargo_${e}`;f.api.addUtcCueRange(n,e,e+Number(B.duration?.seconds),"embargo",!1);B.onEnter&&(f.C[n]=B.onEnter.filter(f.G))}}; MSM=function(f){var e=f.api.getRootNode();e=f.api.getWebPlayerContextConfig().embedsEnableEmc3ds?e.parentElement?.parentElement||e:e;f.C=new Ji5(e,B=>{B!=null&&(f.api.S().HJ=B,f.api.S().Ui="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.A(f,f.C);f.events.D(f.api,"videoStatsPingCreated",B=>{var n=f.C;n=n.C==null?null:Math.round(n.C*100)/100;B.inview=n!=null?n:void 0;n=f.api.getPlayerSize();if(n.height>0&&n.width>0){n=[Math.round(n.width),Math.round(n.height)];const r=g.BS();r>1&&n.push(r);n=n.join(":")}else n=void 0;B.size=n})}; GSk=function(f){return(f?.messageRenderers||[]).find(e=>!!e.timeCounterRenderer)?.timeCounterRenderer||null}; xjG=function(f){var e=Math,B=e.round;const n=Math.min((0,g.T)()-f.J,f.G);e=B.call(e,(f.G-n)/1E3);f.updateValue("duration",jo({seconds:e}));e<=0&&f.C?f.stopTimer():f.C&&f.C.start()}; WIM=function(f,e){f.C||(f.G=e,f.J=(0,g.T)(),f.C=new g.SV(()=>{xjG(f)},null),xjG(f))}; XuG=function(f,e){let B=0;for(B=0;B{const d=g.u(L?.onTap,le);d&&g.yW(f.api,"innertubeCommand",d)}); f.C[B]=n}for(;B0&&r&&(B=Math.max(B,f.policy.rT));return IcY(f,B,e)}; sr=function(f){return GJ(f)/f.playbackRate}; Xw=function(f,e,B){const n=f.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],r=f.policy.playbackStartPolicy.startMinReadaheadPolicy||[];f=Infinity;e=e&&n.length>0?n:r;for(const L of e)e=L.minReadaheadMs||0,B<(L.minBandwidthBytesPerSec||0)||f>e&&(f=e);return f=0?e[r]:null;var C;if(C=B){C=n;var w=r,v=B.startTimeMs+B.durationMs,b=C.startTimeMs+C.durationMs;if(C.startTimeMs-v>f.G)C=!1;else if(ihd(f,B.formatId, C.formatId))B.durationMs=Math.max(v,b)-B.startTimeMs,B.qq=Math.max(B.qq,C.qq),C=!0;else if(Math.abs(B.startTimeMs-C.startTimeMs)<=f.G)if(B.durationMs>C.durationMs+f.G){w=B.formatId;var K=B.Ie,Y=B.qq;B.formatId=C.formatId;B.durationMs=C.durationMs;B.Ie=C.Ie;B.qq=C.qq;C.formatId=w;C.startTimeMs=b;C.durationMs=v-b;C.Ie=K;C.qq=Y;C=!1}else B.formatId=C.formatId,C=!0;else v>C.startTimeMs&&(v>b&&(e.splice(w+1,0,{formatId:B.formatId,startTimeMs:b,durationMs:v-b,Ie:C.qq+1,qq:B.qq}),f.logger&&f.logger({splitOldStart:B.startTimeMs?.toFixed(3), splitOldEnd:v?.toFixed(3),splitNewStart:C.startTimeMs?.toFixed(3),splitNewEnd:b?.toFixed(3)})),B.durationMs=C.startTimeMs-B.startTimeMs,B.qq=C.Ie-1),C=!1}C?n=B:(r+=1,e.splice(r,0,n));B=0;for(C=r+1;C=K+v.G?v=!0:Y+v.GB.startTimeMs-n.startTimeMs); return f>=0?f:-f-2}; enY=function(f,e,B){if(f.logger){var n=[];for(let r=0;r0&&(0,g.T)()-f.N<5E3&&(f.logger&&f.logger({dend:n.info.Pd()}),B=CpM(B,r,r+.01))}f.policy.KA&&f.logger&&f.logger({cbri:`${f.C}`});n=[];for(var L=r=0;r=d){const b={...f.GD[L]};var H=f.fq.J.get(rG(f.GD[L].formatId)),k=Math.max(t,d);d=H.index.hq(k+ f.G/1E3);t=H.index.getStartTime(d);var C=d+ +(Math.abs(t-k)>f.G/1E3);k=C+f.V;C=H.index.getStartTime(C)*1E3;L!==f.C||e?(b.Ie=k,b.startTimeMs=C):(f.logger&&f.logger({pEvict:"1",og:b.startTimeMs,adj:t*1E3}),b.Ie=d+f.V,b.startTimeMs=t*1E3);d=f.J?.info.duration||11;L===f.C&&wf.G/1E3);d=t+f.V;H=H.index.Cp(t)*1E3;b.qq=d;b.durationMs=H-b.startTimeMs;b.Ie<=b.qq&&n.push(b)}v{e.push({...L})}); const n=f.PS.dV();let r=f.C;for(const L of n)r=fPM(f,e,B,L,r);e.forEach(L=>{L.startTimeMs&&(L.startTimeMs+=f.timestampOffset*1E3)}); return{GD:e,rU:B}}; ihd=function(f,e,B){return e.itag!==B.itag||e.xtags!==B.xtags?!1:f.fq.sA||e.lmt===B.lmt}; dzY=function(f,e,B,n,r){if(!e.vS.C()){if(!(r=B===0||!!e.G.length&&e.G[0]instanceof yD))a:{if(e.G.length&&(r=e.G[0],r instanceof PF&&r.fW&&r.Re)){r=!0;break a}r=!1}r||f.policy.C||Iy(e);return B}const L=$r(e,B);if(!isNaN(L))return L;if(f.loader.bu(B*1E3))return B;r.JW?f.policy.JA&&(f=iS(f.loader,e),rcg(e.J,B+f,!0)):(e.nB(),f.loader.Ra(!1,`sta_${+e.vS.info.G8()}`));return n&&(f=s7(n.Ea(),B),!isNaN(f))?(f9(e,f+Lw5,r),B):f9(e,B,r)}; tDM=function(f,e,B){if(!f.policy.U){f=e.vS.index;var n=e.C.YA;f.kZ(n)||B&&B.YA===n?(e.V=!f.kZ(n),e.A=!f.kZ(n)):(e.V=!0,e.A=!0)}}; kgO=function(f){const e=Math.max(f.videoTrack.J.J||0,f.audioTrack.J.J||0);HjY(f.videoTrack);HjY(f.audioTrack);f.policy.U||tHm(f.fq);f.fq.isManifestless&&!f.policy.U&&(f.C=!0,f.G=0);var B=f.loader;if(!B.policy.Ed||B.policy.kA)B.currentTime=e;f.V=!0;f.J=new wC;return f.J}; n9=function(f){var e=f.videoTrack.W!==-1,B=f.audioTrack.W!==-1;if(!e||!B)if(e=!e&&eN(f.videoTrack),B=!B&&eN(f.audioTrack),e||B)if(B=e?f.videoTrack:f.audioTrack,e=e?f.audioTrack:f.videoTrack,B.W=eN(B).info.YA,f.policy.U&&(e.W=eN(e)?.info.Cq()||e.W),e.W!==-1){let n=Math.max(e.vS.index.getStartTime(e.W),B.vS.index.getStartTime(B.W));Pm(f.fq)&&Math.abs(n-Pm(f.fq))>432E3&&kR5(f.fq);f.G&&(n=f.G,f.G=0);g.Sk(()=>{f.policy.U||Bj(f,n,102)}); f.loader.ri("initManifestlessSync",{st:n,ost:n+f.loader.gA(),a:f.audioTrack.W,v:f.videoTrack.W});f.J&&(f.J.resolve(n+.1),f.J=null);f.policy.U&&Bj(f,n,102)}}; CXm=function(f,e,B){if(!f.isSeeking())return-1;B=(B?f.videoTrack:f.audioTrack).vS.index;const n=B.hq(f.targetTime);return(B.kZ(f.fq.Hs)||e.YA===f.fq.Hs)&&n{n9(f)}); else{if(f.isSeeking()&&f.targetTime){const L=CXm(f,e,B);if(L!==-1){f.videoTrack.V=!1;f.audioTrack.V=!1;f.C=!0;f.G=0;g.Sk(()=>{f.loader.ri("seekreason",{reason:"behindMinSq",tgt:L});Bj(f,L)}); return}}B?f.videoTrack.A=!1:f.audioTrack.A=!1;var r=!f.C;$r(f.videoTrack,f.targetTime)>=0&&$r(f.audioTrack,f.targetTime)>=0&&r?((f.videoTrack.V||f.audioTrack.V)&&f.loader.ri("iterativeSeeking",{status:"done",count:f.seekCount}),f.videoTrack.V=!1,f.audioTrack.V=!1):n&&g.Sk(()=>{if(f.C||!f.policy.tL)n9(f);else{var L=e.startTime,d=e.duration;if(!f.policy.U){var t=f.videoTrack.W!==-1&&f.audioTrack.W!==-1,H=!f.videoTrack.A&&!f.audioTrack.A;(B?f.videoTrack.V:f.audioTrack.V)&&t&&H&&(f.targetTime>=L&&f.targetTime< L+d+.1?((B?f.videoTrack:f.audioTrack).V=!1,f.videoTrack.V||f.audioTrack.V||(f.loader.ri("iterativeSeeking",{status:"done",target:L,originalTime:L+f.loader.gA(),count:f.seekCount}),f.seekCount=0)):f.seekCount<8?(f.seekCount++,f.loader.ri("iterativeSeeking",{status:"inprogress",count:f.seekCount,target:f.targetTime,actual:L,duration:d,isVideo:B}),f.seek(f.targetTime,{})):(f.loader.ri("iterativeSeeking",{status:"incomplete",count:f.seekCount,target:f.targetTime,actual:L}),f.seekCount=0,f.videoTrack.V= !1,f.audioTrack.V=!1,rz(f.loader,L+.1,{jN:!0,wX:"chunkSelectorSynchronizeMedia",E_:!0})))}}})}}; L9=function(f,e,B){v9g(f.Lh,e);f.Lq&&(f.Lq.add(Math.ceil(e)-Math.ceil(f.X)),f.Lq.add(Math.max(0,Math.ceil(B/1024)-Math.ceil(f.W/1024))));const n=e-f.X,r=B-f.W;f.UE=r;f.Ch=Math.max(f.Ch,r/(n+.01)*1E3);f.X=e;f.W=B;f.PS&&B>f.PS&&bj6(f)}; bj6=function(f){f.uY=Math.max(f.uY,f.W-f.D2);f.eI=Math.max(f.eI,f.X-f.Cc);f.PS=0}; Zjm=function(f,e){f.url=e;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=()=>{performance.clearResourceTimings()})}; RnY=function(f){f.BS=f.C+f.snapshot.delay*1E3;f.mS=!1}; tJ=function(f,e,B){if(!f.m5){e=Math.max(e,.01);var n=f.Gf?Math.max(e,B/f.Gf):e,r=f.Lh.G.J;r&&(n=e,f.Gf&&(n=Math.max(e,B/f.Gf*r)));dz(f.Lh,e,B,n)}}; Kwk=function(f){const e=f.Fl||f.MC;return e?f.snapshot.delay+Math.min(f.JR,(f.N-f.Ed)/1E3)+e:f.hR}; qww=function(f){return(f.U-f.C)/1E3}; Hj=function(f,e){if(f.r$&&f.YA!==void 0&&f.IM!==void 0){var B=Math,n=B.min,r=f.WS;var L=f.r$;var d=f.C;if(znw(L,f.YA))L=e;else{var t=0;L.nG&&(t=.2);L=d+(L.JR+t)*1E3}f.WS=n.call(B,r,L);B=Math;n=B.min;r=f.Z9;L=f.r$;d=f.C;t=aPY(L,f.YA,f.IM);t!==2&&(e=t?e:d+L.JR*1E3,L.nG&&(e+=L.JR*1E3));f.Z9=n.call(B,r,e);f.WS<=f.C?RnY(f):(f.BS=f.WS,f.mS=!0)}}; pVM=function(f,e){if(e+1<=f.totalLength){var B=Le(f,e);B=B<128?1:B<192?2:B<224?3:B<240?4:5}else B=0;if(B<1||!(e+B<=f.totalLength))return[-1,e];if(B===1)f=Le(f,e++);else if(B===2)B=Le(f,e++),f=Le(f,e++),f=(B&63)+64*f;else if(B===3){B=Le(f,e++);var n=Le(f,e++);f=Le(f,e++);f=(B&31)+32*(n+256*f)}else if(B===4){B=Le(f,e++);n=Le(f,e++);const r=Le(f,e++);f=Le(f,e++);f=(B&15)+16*(n+256*(r+256*f))}else B=e+1,f.focus(B),BA(f,B,4)?f=mBO(f).getUint32(B-f.J,!0):(n=Le(f,B+2)+256*Le(f,B+3),f=Le(f,B)+256*(Le(f,B+ 1)+256*n)),e+=5;return[f,e]}; cc5=function(f){return g.P5(f.info.T6,e=>e.type===3)}; A0G=async function(f,e){return e?(new g.QZ(f.G)).encrypt(e,f.C):e}; V1C=async function(f,e){return e?await (new g.QZ(f.G)).decrypt(e,f.C):e}; YwH=function(f){f.J.read().then(f.X,f.onError).then(void 0,c6)}; km=function(f,e,B,n,r){if(Ra(53,f.wM))return new Ac5(f,B);f=f.Dw();return n?R4H()?new j8g(f,e,B,r):new OjY(f,e,B,r):new o9G(f,B,r)}; C9=function(f,e,B){f.C&&(fe(f.C,e),e=f.C,f.C=null);let n=0,r=0;for(const H of f.T6){if(H.range&&n+H.G<=f.G){n+=H.G;continue}if(wG(H)&&!B&&f.G+e.totalLength-r=400?(f.lastError="net.badstatus",!0):r?(f.lastError="ump.spsrejectfailure",!0):B||n?!1:(f.lastError=e===204?"net.nocontent":"net.connect",!0)}; Zp=function(f,e){if(f.policy.eZ)return!1;const B=e.getResponseHeader("content-type"),n=e.VI();f=!n||n<=f.policy.Mt;return(!e.n6()||!B||B.indexOf("text/plain")!==-1)&&f}; uz0=function(f,e){let B="";e=e.EW();e.totalLength<=f.policy.Mt&&(f=ne(e),f=tf(f),B=Dx(f)?f:"");return B}; FwC=function(f){const e=f.timing.K();e.shost=CR(72,f.yr.wM);f.policy.P4&&f.policy.DP&&(e.csrc=1);return e}; mzO=function(f,e){return f?.maxWidth>e?.maxWidth||f?.maxHeight>e?.maxHeight}; Uz0=function(f,e){for(const B of e.keys()){const n=e.get(B);if(n.length===0)continue;g.cB(n,(d,t)=>t.maxFramerate-d.maxFramerate); const r=[n[0]];let L=0;for(let d=1;df.C||B.push(n);return B}; RV=function(f,e,B){let n=g9Y[f]||[];B.Y("html5_shorts_onesie_mismatched_fix")&&(n=Swm[f]||[]);e.push(...n);B.Y("html5_early_media_for_drm")&&e.push(...(E9O[f]||[]))}; GgM=function(f,e){const B=g.K2(f);var n=f.S();const r=n.W;n=n.Y("html5_shorts_onesie_mismatched_fix");const L=f.aR();if(n){if(!r.C){if(L&&K9)return K9;if(qO)return qO}}else if(qO&&!r.C)return qO;const d=[],t=[],H={};var k=zG.concat(Q80);n&&(k=zG.concat(Tkk));f.Y("html5_early_media_for_drm")&&(k=k.concat(Dzl),f.Y("allow_vp9_1080p_mq_enc")&&k.push(JcO));const C=[...MDG];f.Y("html5_iamf_audio_onesie_fmt")&&C.push(["773"]);for(var w of k){k=!1;for(const b of w){var v=Zo(b,L&&n);if(!v||!v.video)continue; if(v.C()&&!B.eI&&v.video.qualityOrdinal>B.ej)continue;const K=g.tS(f.S().experiments,"html5_drm_byterate_soft_cap");if(K>0&&thM(v)&&v.EA>K)continue;if(k){d.push(b);RV(b,d,f);continue}v=dJ(B,v,r);v===!0?(k=!0,d.push(b),RV(b,d,f)):H[b]=v}}for(const b of C)for(const K of b){w=HJ5(K);if(!w||!w.audio||!f.Y("html5_onesie_51_audio")&&w.U())continue;w=dJ(B,w,r);if(w===!0){t.push(K);RV(K,t,f);break}else H[K]=w}if(!f.Y("html5_enable_audio_quality_setting")){f=["141","774"];for(const b of f)t.includes(b)&&(g.d2(t, b),H[b]="blkhqa")}B.C&&e("orfmts",H);if(n)return r.C&&(r.C=!1,K9=qO=void 0),L?K9={video:d,audio:t}:qO={video:d,audio:t};qO={video:d,audio:t};r.C=!1;return qO}; g.s86=function(f,e,B){const n=B.W,r=[],L=[];var d=B.Y("html5_shorts_onesie_mismatched_fix");f=f.aR();var t=zG.concat(Q80);d&&(t=zG.concat(Tkk));B.Y("html5_early_media_for_drm")&&(t=t.concat(Dzl),B.Y("allow_vp9_1080p_mq_enc")&&t.push(JcO));const H=[...MDG];B.Y("html5_iamf_audio_onesie_fmt")&&H.push(["773"]);for(const k of t)for(const C of k){t=Zo(C,f&&d);if(!t||!t.video)continue;const w=g.tS(B.experiments,"html5_drm_byterate_soft_cap");if(!(w>0&&thM(t)&&t.EA>w)&&dJ(e,t,n)===!0){r.push({videoCodec:xz6[Ja[C]], maxWidth:t.video.width,maxHeight:t.video.height,maxFramerate:t.video.fps});break}}for(const k of H)for(const C of k)if((d=HJ5(C))&&d.audio&&(B.Y("html5_onesie_51_audio")||!d.U())&&dJ(e,d,n)===!0){L.push({audioCodec:Wwl[Ja[C]],numChannels:d.audio.numChannels});break}return{videoFormatCapabilities:r,audioFormatCapabilities:L}}; PXk=function(f){const e={};var B=f.oA;const n=f.V9,r=f.Lh,L=B.getVideoData();var d=Mm(0);var t=B.getVisibilityState();n.Y("html5_enable_audio_quality_setting")&&(e.Go=n.Go);d&&(e.Pv=d,e.lastManualDirection=aCG(),d=PEw()||0,d>0&&(d=(n.Y("html5_use_date_now_for_local_storage")?Date.now():(0,g.T)())-d,n.Y("html5_use_date_now_for_local_storage")?d>0&&(e.timeSinceLastManualFormatSelectionMs=d):e.timeSinceLastManualFormatSelectionMs=d));if(r.Ed||n.Y("html5_sabr_ugc_vod_web_embedded_client_default_bandwidth_on_iphone")&& RB)d=n.Y("html5_disable_bandwidth_cofactors_for_sabr_live")?!!f.UK?.cE:!1,e.m9=MX(r,!d);var H=g.V7.medium,k=Math.floor(H*16/9);(d=L.aR())||(L.C&&L.J&&L.J.videoInfos.length!==0?(d=L.J.videoInfos[0],d=!!d.video&&d.video.width0?{authorizedFormats:f.authorizedFormats}:{authorizedFormats:t};f.sabrLicenseConstraint&&(e.U6.sabrLicenseConstraint=f.sabrLicenseConstraint);if(n.Y("html5_onesie_media_capabilities")||Ox(L))e.ID=3;n.Y("html5_onesie_audio_only_playback")&&bd(L)&&(e.ID=1);f.UK?.EE&&f.ol&&(e.ID=e.ID===void 0?7:e.ID|4);t=L.kA?L.kA:g.K2(L);n.Y("html5_onesie_media_capabilities")&&(e.mediaCapabilities=g.s86(L,t,n));if(f.UK?.Z9()){k=f.PO;C=f.i4; var w=f.UK?.EA;d=[];H=[];const l=new Map;var v=L.s3.C;for(var b of v.values())if(b.G8)H.push({audioCodec:Wwl[b.NC],numChannels:b.numChannels,spatialCapabilityBitmask:XVl[b.NC]});else{v=xz6[b.NC];var K=b.maxBitrateBps||0,Y=w?w*8:0;K={videoCodec:v,maxWidth:C?854:b.maxWidth||0,maxHeight:C?480:b.maxHeight||0,maxFramerate:b.maxFramerate||0,is10BitSupported:b.z4||!1,maxBitrateBps:Y&&K?Math.min(Y,K):Y||K};if(b.NC==="1"||b.NC==="9")K.efficient=!0;v=`${v}_${b.z4}`;Y=l.get(v)||[];Y.push(K);l.set(v,Y)}d=Uz0(d, l);b=k?[...k]:[];L.Y("html5_ssff_denylist_opus_low")&&b.push(249,350);g.K2(L);e.mediaCapabilities={videoFormatCapabilities:d,audioFormatCapabilities:H,hdrModeBitmask:3,perPlaybackAttributes:b.length?{itagDenylist:b}:{}}}f.UK?.C&&(e.Eu=t.Eu,e.ej=f.UK?.ej);n.qj&&(e.Hg=n.qj);e.CZ=f.iz;e.iF=f.iF;e.Qw=f.Qw;e.e2=f.e2;f.x6&&(e.iP=(0,g.T)()-f.x6);f.pA&&(e.pA=f.pA);sh||(e.lN=!0);b=xr(r)*1E3;b>0&&(e.CT=b);f.UK?.uI&&f.yk&&f.yk0?B:r.interruptions[0]||0;f.UK?.Ch&&(e.dH=f.dH);n.Fl&&(e.audioTrackId=n.Fl);L.IR()&&!e.audioTrackId&&(n.Y("html5_fill_default_mosaic_audio_track_id")||(f=Hf0(L),e.audioTrackId=f),L?.ri("misstrkchg",{"default":e.audioTrackId}));if(f=navigator.connection?.type||"")e.detailedNetworkType=ycg[f]||ycg.other;!n.Y("html5_enable_voice_boost")|| L.aR()||L.isAd()||(e.j$=n.C$);return e}; var IPg=function(f,e){return w5[Z[2]](this,41,f,e)}; var aV=function(f,e,B,n,r,L,d){const t={};e&&(t.T1=e);if(!f)return t;t.playbackCookie=B?.playbackCookie;r&&(t.G1=r);t.Ky=[];t.Gm=[];if(d?.size)for(const H of d.values())t.Gm.push(H);if(f.sabrContextUpdates.size>0)for(const H of f.sabrContextUpdates.values())$zg(t,H,n);lK(f)&&L&&$zg(t,L,n);e=f.S().C;t.clientInfo={clientName:ijd[e.c.toUpperCase()]||0};e.cbrand&&(t.clientInfo.deviceMake=e.cbrand);e.cmodel&&(t.clientInfo.deviceModel=e.cmodel);e.cver&&(t.clientInfo.clientVersion=e.cver);e.cos&&(t.clientInfo.osName= e.cos);e.cosver&&(t.clientInfo.osVersion=e.cosver);e=f.S();e.Y("html5_sabr_enable_server_xtag_selection")&&e.lC&&(t.clientInfo.hl=e.lC);f.u8&&(t.u8=f.u8);return t},$zg=function(f,e,B){const n=e.type||0; B?.has(n)?f.Gm.push(e):f.Ky.push(n)},fYm=function(f){if(!(za(f.info)&&f.info.ut()&&f.policy.D2&&f.rp)||f.info.vL.J>=2||Mm()>0||!jHY())return!1; var e=f.yr.get("aitags");if(!e)return!1;e=rr(e).split(",");const B=[];for(const n of f.rp)g.eB(e,n)&&B.push(n);if(!B.length)return!1;f.yr.set("altitags",g.nH(B.join(",")));return!0},evw=function(f,e,B=!1){g.J(e); f.dX.lastError="player.exception";f.errorMessage=`${e.name}_${e.message}`;B?g.Sk(()=>{vj(f.dX)}):vj(f.dX)},BYH=function(f){f.b_&&(f.xhr.status=f.b_,f.QW=f.b_)},nul=function(f,e){f.timing.A=!0; f.xhr.n6()&&f.timing.Cq();f.policy.mS&&f.T_?.stop();C9(f.T8,e,!1)},rZm=function(f,e,B){let n=f.Gf?Math.max(e,B/f.Gf):e; const r=f.Lh.G.J;r&&(n=e,f.Gf&&(n=Math.max(e,B/f.Gf*r)));dz(f.Lh,e,B,n)},LKC=function(f,e,B){switch(e){case 35:f.WF(B); break;case 44:f.D1(B);break;case 43:f.Bc(B);break;case 53:f.Yw(B);break;case 56:f.K_();break;case 57:f.Mi(B);break;case 42:f.Vv(B);break;case 45:f.pY(B);break;case 59:f.Fv(B);break;case 51:f.OO(B);break;case 49:f.qP(B);break;case 50:f.MP(B);break;case 47:f.mp(B);break;case 58:f.JB(B);break;case 61:f.Kq.Tt.Ys((0,g.T)());break;case 66:f.tP(B);break;case 46:f.n_(B);break;case 67:f.onSnackbarMessage(B);break;case 71:e=RJ(B,PlO),f.Kq.nk(e)}}; var d3G=function(f,e){return w5[Z[2]](this,49,f,e)}; var ttk=function(f){p9=f},HLk=function(f,e,B){f.Sv.get(e).onProgress=B},cj=function(f,e){f.dE(e)&&(p9?f.Sv.get(e).dT.clear():f.Sv.get(e).f5=new bg,f.G(e),f.V=!0)},k55=function(f){for(const [e, B]of f.Sv){const n=e;B.U7||cj(f,n)}}; var eIw=function(f){return CR[Z[2]](this,6,f)}; C4k=function(f,e){f=f.Sv.get(e);if(!f)return 0;e=0;if(f.T6.length>0){for(const B of f.T6)e+=B.range?.length||0;return e}if(f.uF.length>0)for(const B of f.uF)e+=B.e7||0;return e+f.zz}; Ym=function(f,e){if(p9){let B=0;f=f.Sv.get(e);if(!f?.dT)return 0;for(const n of f.dT.values())B+=n.data.totalLength;return B}return f.Sv.get(e)?.f5.W()||0}; AJ=function(f,e){f=f.Sv.get(e);if(p9){if(!f?.U7)return!1;e=f.dT.size>0;return f.ZT.length>0||e}return!!f?.U7&&!!f?.f5.W()}; wfg=function(f,e){const B=f.Sv.get(e),n=C4k(f,e),r=!n&&!!B.bytesReceived;if(p9){if(f.fq?.sA){for(var L of B.dT.values())if(!L.Ck)return!1;return r}}else if(L=f.Io(e),r&&f.J&&L!==void 0)return L;return(r||B.bytesReceived===n)&&B.eN+Ym(f,e)===B.bytesReceived}; vuM=function(f,e,B){const n=f.fq?.J.get(e);if(!n)return[];if(B.j2)return n.X(0,B.clipId)?.T6||[];if(n.J()){var r=B.startMs,L=B.durationMs,d=1E3;f.UK?.C&&B.timeRange&&(r=B.timeRange.startTicks??-1,L=B.timeRange.cz??-1,d=B.timeRange.timescale??-1);if(B.GG<0||B.oe<0||L<0||r<0||B.e7<0||d<0)return cj(f,e),[];f=Hm(B.GG,B.e7);e=B.w3||0;return[new Rr(3,n,f,"makeSliceInfosMediaBytes",B.oe-1,r/d,L/d,e,f.length-e,void 0,B.BE,B.clipId)]}return B.oe<0?(cj(f,e),[]):f.fq?.sA?(L=n.ZP,d=L*n.info.EA,e=B.w3,f.UK?.C&& f.U.Vn()!=="ONESIE"&&B.timeRange&&!e&&(r=B.timeRange.startTicks/B.timeRange.timescale),[new Rr(3,n,void 0,"makeSliceInfosMediaBytes",B.oe,r,L,e,d,!0,B.BE,B.clipId)]):[]}; ZL6=function(f,e,B,n){B.T6.push(...n);if(p9)B.jO.has(e)||B.jO.set(e,[]),B.jO.get(e).push(...n);else if(B.T8)for(const r of n)B.T8.T6.push(r);else B.T8=new bL5(f.UK,[...B.T6]),f.UK?.YE&&g.A(f,B.T8)}; Rv5=function(f,e,B){f.fq=e;f.UK=B;for(const [n,r]of f.Sv){e=n;B=r;for(const L of B.k$){const d=vuM(f,e,L);ZL6(f,L.OT,B,d)}}}; KKw=function(f){return f.Gq()&&!f.r4}; q$g=function(f){f.policy.eO&&f.qY&&!f.O5?f.O5=!0:f.Tt.Cq()}; zvg=function(f,e){let B=-1,n=-1,r=-1;if(f.yQ?.items)for(const L of f.yQ.items)e=t,H=f.fq.isManifestless,d?(f.C?.b6.event==="predictStart"&&f.C.YAf.W&&(f.W=NaN,f.U=NaN);if(f.C&&f.C.YA===e){if(n=f.C,!f.policy.W||!f.policy.G)if(r&&n){var L=n.b6,d=r.rg(L);L.event==="predictStart"&&(f.A=e);f.ri("sdai",{onqevt:L.event,sq:e,mt:B,gab:d,cst:L.startSecs,cueid:f.policy.Gc&&(d||L.event==="start")?L.identifier:void 0},!0);d?L.event!=="predictStart"?(L.event==="start"&&f.A===e-1&&f.ri("sdai",{gabonstart:e}),n.Sr?oV(f, 4,"cue"):(f.W=e,f.U=B,f.ri("sdai",{joinad:f.G,sg:f.W,st:f.U.toFixed(3)}),f.K=Date.now(),oV(f,2,f.G===3?"staftpred":"join"),jZG(r,n.b6))):(d=OLw(f),e+=Math.max(Math.ceil(-L.C/d),1),L=Math.floor(B-L.C/1E3),f.policy.G?f.J=L:f.V=e,f.ri("sdai",{onpred:B,estsq:e,estmt:L.toFixed(3)}),lF(f.loader,L,L,e,d),f.K=Date.now(),oV(f,3,"predict"),jZG(r,n.b6)):f.G===1?f.fh?.R3(B)?(lF(f.loader,B,B,e),oV(f,4,"sk2head")):oV(f,5,"nogab"):L.event==="predictStart"&&(f.policy.G&&f.J>0?(B=Math.floor(B-L.C/1E3),f.J!==B&&f.ri("sdai", {updateSt:B,old:f.J}),f.J=B):f.V>0&&(B=e+Math.max(Math.ceil(-L.C/OLw(f)),1),f.V!==B&&(f.ri("sdai",{updateSt:B,old:f.V}),f.V=B)))}else f.ri("sdai",{nulldec:1,sq:e,mt:B.toFixed(3),evt:n?.b6?.event||"none"})}else f.G===1&&oV(f,5,"noad")}; uF=function(f,e,B){return(B<0||B===f.W)&&!isNaN(f.U)?f.U:e}; VV=function(f,e,B){e.startSecs+=isNaN(f.X)?0:f.X;HKY(f.fq,e,B)}; Y$d=function(f,e){if(f.C){var B=f.C.b6.Kc-(e.startTime+f.X-f.C.b6.startSecs);B<=0||(B=new ct(f.C.b6.startSecs-(isNaN(f.X)?0:f.X),B,f.C.b6.context,f.C.b6.identifier,"stop",f.C.b6.C+e.duration*1E3),f.ri("cuepointdiscontinuity",{segNum:e.YA}),VV(f,B,e.YA))}}; OLw=function(f){switch(f.policy.latencyClass){case "LOW":return 2E3;case "ULTRALOW":return 1E3;default:return 5E3}}; Fu=function(f,e,B,n=!1){n?oV(f,1,"seek"):e>0&&Math.abs(e-B)>=5&&f.G===4&&oV(f,5,"sk2t")}; VtH=function(f){if(!f)return"unknown";switch(f){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";case 6:return"prefetch";default:return"unknown"}}; mP=function(f,e){return e?f.policy.BJ&&e.tileContext?`${e.identifier};${e.tileContext}`:e.identifier:""}; S$m=function(f,e){if(f-9>>3==1){for(var B=64,n=[];++B-n[Z[13]]-32;)switch(B){case 58:B=96;continue;case 91:B=44;break;case 65:B=47;continue;case 46:B=153;case 123:B-=58;default:n[Z[3]](String[Z[19]](B))}var r=n}if((f|32)==f)a:{B=e[Z[36]](Z[12]);n=[1868448628,1480538378,OCM,1924839439,739664985,-194494687,SFl,-1178036301,-627770640,-1628396322,1542346728,-1417386547,IPg,224855474,-449993572,d3G,lYm,1911836618,-644517785,null,ucd,Z[47],-642762866,-551230131,1033900622,FKd,1556896299,1931750968,-313306312, m3k,510415397,635393378,tWk,-1847582012,2131527423,1762339161,U3w,-409578725,824410760,790035157,-1384603937,Z[7],B,Z[26],1543173991,442450775,-1979885856,YFC,1249474085,467547947,1280873319,oB6,B,92296908,878286466,-2132332763,Sgg,gkM,rGg,ZI5,NYg,319635433,ZFw,2131527423,-1894770646,117545040,-449993572,null,Z[75],-241317468,751603582,-753938918,1887397787,1752557369,rVk,lWw,784097325,gcw,-1045448394,224855474,hv6,-1558490066,null,319635433,-357052088,TEg,941850024,B,1366966312,kP6,146477416,Z[52], -949173074,-476918154];n[19]=n;n[67]=n;n[82]=n;if(typeof gud===Z[51]){r=e;break a}try{n=cS(2,n)}catch(L){r=Z[84]+e;break a}r=B[Z[54]](Z[12])}return r}; Euw=function(f,e){let B=-(e.b6?.m6||0);e.timeRange&&(B+=(e.timeRange.startTicks||0)/(e.timeRange.timescale||1));return new ct(B,e.b6?.yS||0,e.b6?.pT||"",e.b6?.identifier||"",VtH(e.b6?.event),(e.b6?.m6||0)*1E3,f.policy.BJ?e.tileContext:void 0)}; QZm=function(f){switch(f){case 1:return"timeout";case 2:return"ratecontrol";case 3:return"sverr";case 4:return"deleted";case 5:return"waiting";case 6:return"ready";case 7:return"ssdisabled";default:return"unknown"}}; TYY=function(f,e){let B="";const n=[];for(const [r,L]of f.C.entries()){const d=r,t=L;t?.startTimeSecs<=e&&e<=t?.startTimeSecs+t?.Kc&&n.push(d);B+=`${d}:${t?.startTimeSecs.toFixed(3)}:${t?.Kc.toFixed(3)};`}n.length===0&&f.ri("clsdai",{no_cid:1,mt:e.toFixed(3),adConfigMap:B.substring(0,1024)});return n}; D3l=function(f,e,B=!1){B&&(f.U=!0);++f.W;B=6E4*2**f.W;B=(0,g.T)()+B;f.J.set(e.info.id,B)}; U8=function(f){for(const [e,B]of f.J.entries()){const n=e;B<(0,g.T)()&&f.J.delete(n)}return f.J}; NO=function(f,e){f.C!==e&&(f.C=e,f.G=!0)}; JZ6=function(f,e){let B;e&&(B=g.$g(f.V.G,n=>n.id===e)); B||(B=g.$g(f.V.G,n=>!!n.Z_?.isDefault),e&&f.ri("iaf",{id:e, sid:B?.id}));return B}; hJ=function(f){if(!f.G||!f.policy.V&&!f.G.info.Z_){var e=f.U.G;f.G&&(e=e.filter(n=>n.audio.C===f.G.info.audio.C),e.length||(e=f.U.G)); f.G=f.fq.C[e[0].id];if(e.length>1&&!f.policy.i$){if(!f.policy.q$){var B=g.$g(e,n=>n.audio.audioQuality!=="AUDIO_QUALITY_HIGH"); B&&(f.G=f.fq.C[B.id])}B=!1;if(B=f.policy.lC?!0:f.C.isLocked()?f.C.C<240:Mtl(f,f.G))f.G=f.fq.C[g.QG(e).id]}}}; SN=function(f,e){f.C=e;var B=f.U.videoInfos;if(!f.C.isLocked()){const L=(0,g.T)();B=g.GO(B,function(d){if(d.EA>this.policy.EA)return!1;const t=this.fq.C[d.id];return U8(this.W).get(d.id)>L||t.vL.J>4||t.BS>4?!1:this.eI.has(+d.itag)?!1:!0},f); f.W.i4()&&(B=g.GO(B,d=>d.video.width<=854&&d.video.height<=480))}B.length||(B=f.U.videoInfos); let n=B;f.policy.U$&&(n=G5m(f,n,e));n=g.GO(n,e.V,e);if(f.C.isLocked()&&f.W.C){var r=g.$g(B,L=>L.id===f.W.C); r?n=[r]:NO(f.W,"")}f.policy.U$||(n=G5m(f,n,e));n.length||(n=[B[0]]);n.sort((L,d)=>gz(f,L)-gz(f,d)); for(e=1;er.video.width?(g.LF(n,e),e--):gz(f,B)*f.policy.K>gz(f,r)&&(g.LF(n,e-1),e--);e=n[n.length-1];f.Fl=!!f.J&&!!f.J.info&&f.J.info.NC!==e.NC;f.V=n;f.Z9.clear();B=!1;for(r=0;r=1080&&(B=!0);x3O(f.policy,e,f.fq.sA)}; WKk=function(f){var e=f.policy.A;const B=sr(f.Cq)/e-gz(f,f.G.info);e=g.i0(f.V,function(n){return gz(this,n)0&&!(gz(f,f.V[e])<=r);e--);for(B=B/f.policy.K-n;e=B);e++);f.nextVideo=f.fq.C[f.V[e].id];f.K=e}}; $30=function(f,e){if(IYY(f,e))return null;if(e.reason==="m"&&e.isLocked())return SN(f,e),f.K=f.V.length-1,hJ(f),QV(f),f.A=f.A||f.J!==f.nextVideo,f.J=f.nextVideo,new E8(f.G,f.J,e.reason);e.reason==="r"&&(f.N=-1);SN(f,e);QV(f);if(e.reason==="r"&&f.nextVideo===f.J)return new E8(f.G,f.nextVideo,e.reason);f.J&&f.nextVideo&&gz(f,f.J.info)1.5&&f.loader.ri("overshoot",{sq:e.YA,br:B,max:n}))}}; TG=function(f,e,B=!1){D3l(f.W,e,B);f.N=-1;SN(f,f.C)}; eUC=function(f,e){return new E8(f.X,f.J,e||f.C.reason)}; gz=function(f,e){if(!f.WS[e.id]){var B=f.fq.C[e.id].index.WK(f.cS,15);B=e.rL&&f.J&&f.J.index.isLoaded()?B||e.rL:B||e.EA;f.WS[e.id]=B}B=f.WS[e.id];f.Z9.has(e.itag)&&(B*=1.5);return B*=Math.max(1,f.MC.H0()||0)}; Bdw=function(f,e){const B={};for(const n of e){if(!n||!n.video)continue;e=n.video.qualityOrdinal;const r=B[e],L=r&&r.C()&&r.video.qualityOrdinal>f.policy.ej,d=e<=f.policy.ej?n.C():n.V();if(!r||L||d)B[e]=n}return B}; G5m=function(f,e,B){const n=B.reason==="m"||B.reason==="s";f.policy.s7&&Dp&&g.oN&&(!n||B.C<1080)&&(e=e.filter(r=>r.video&&(!r.W||r.W.powerEfficient))); if(e.length>0)if($5()){const r=Bdw(f,e);e=e.filter(L=>!!L&&!!L.video&&L.NC===r[L.video.qualityOrdinal].NC)}else{const r=e[0]?.video?.qualityOrdinal; if(r){B=e.filter(d=>!!d&&!!d.video&&d.video.qualityOrdinal===r); const L=Bdw(f,B)[r].NC;e=e.filter(d=>!!d&&!!d.video&&d.NC===L)}}return e}; Xf5=function(f){const e=g.$g(f.U.G,n=>n.audio.C),B=g.$g(f.U.G,n=>!n.audio.C); return e?f.policy.z0?e:B:null}; Mtl=function(f,e){let B=0;for(;B+1n}; yZm=function(f,e,B){if(e.info.NC==="f"||f.PS.includes(Lz(e,f.fq.sA)))return e;for(let n=0;nB.info.itag===e); if(!f)throw Error("Itag "+e+" from server not known.");return f}; rSm=function(f){const e=[];if(f.C.reason==="m"||f.C.reason==="s")return e;if($Ld(f.fq)){for(let B=Math.max(0,f.K-2);BL?r=0:n[d]>f.buffered[d]&&(d===L-1?r=2:d===L-2&&n[d+1]>f.buffered[d+1]&&(r=3))}f.C.add(e<<3|(B&&4)|r);e=Math.ceil(f.track.q9()*1E3);f.C.add(e-f.W);f.W=e;if(r===1)for(f.C.add(L),e=0,d=0;d= 2&&f.C.add(n[L-1]-f.buffered[L-1]);B&&f.C.add(B);f.buffered=n}; H6w=function(f){if(f.policy.zt&&f.policy.Lw)for(const e of f.policy.zt){const B=g.vb(e),n=+B.clen,r=+B.csz;if(n>0&&r>0&&f.policy.V===B.docid&&f.C.info.id===B.fmtid&&f.C.info.lastModified===+B.lmt)return{clen:n,csz:r,ck:B.ck,civ:B.civ}}}; GG=function(f){return{downloadedEndTime:Math.round(f.hG?f.hG.W:0),maxKnownEndTime:Math.round(f.C.index.Pp()),averageByteRate:Math.round(f.C.info.rL)}}; s8=function(f,e=!1){!e||f.indexRange&&f.initRange&&f.hG||xm(f,new Wj("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));e={lmt:f.C.info.lastModified,docid:f.policy.V,fmtid:f.C.info.id,type:f.C.info.mimeType.split(";")[0],csz:f.chunkSize,clen:f.V*f.chunkSize+f.G};f.crypto&&(e.ck=f.X,e.civ=f.U);e="local://localhost/videoplayback?"+CN(e);e={itag:+f.C.info.itag,mimeType:f.C.info.mimeType,bitrate:f.C.info.EA*8,lastModified:String(f.C.info.lastModified),initRange:f.initRange?.C(), indexRange:f.indexRange?.C(),url:e};var B=f.C.info.G;B&&(e.xtags=B);if(B=f.C.info.video)if(e.quality=B.quality,e.qualityLabel=B.qualityLabel,e.width=B.width,e.height=B.height,B=B.fps)e.fps=B;if(f=f.C.info.audio){if(B=f.sampleRate)e.audioSampleRate=String(B);if(f=f.numChannels)e.audioChannels=f}return e}; Xu=function(f,e,B=!1){e.then(n=>{f.Ed.delete(e);(B||n===4)&&f.K.resolve(n)},n=>{f.K.reject(n)})}; yV=function(f){return!!f.hG&&f.hG.U()}; xm=function(f,e){g.Eh(f.policy.V)!==4&&(g.Qm(f.policy.V,4),g.Yv(e),f.K.reject(new Wj(e.message)))}; k0G=function(f,e){let B=0;const n=ne(e.G);if(f.V=n.length)return;if(B<0)throw Error("Missing data");f.V=f.J;f.G=0}for(;B{const r=Jq(n,f.hG.vS.info,s8(f,!0),B,f.policy.MC,f.V,e,f.crypto);Xu(f,r,!0)})}else xm(f,new Wj("Woffle: Expect always re-mark currentChunkOffset at EOS")); else xm(f,new Wj("Woffle: Expect at EOS to always have lastSlice or indexRange"))}; vtd=function(f,e){if(!yV(f)&&!f.HS()){if(!(f.Cq||(f.Cq=!0,f.J>0))){var B=GG(f);B=Jq(f.policy.V,f.C.info,s8(f),B,f.policy.MC);Xu(f,B)}if(e.info.type===1){if(f.hG){xm(f,Error("Woffle: Expect INIT slices to always start us off"));return}f.initRange=Hm(0,e.G.totalLength)}else if(e.info.type===2)f.hG&&f.hG.type===1||xm(f,Error("Woffle: Index before init")),f.indexRange=Hm(f.initRange.end+1,e.G.totalLength);else if(e.info.type===3){if(!f.hG){xm(f,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(f.hG.type===3&&!Cz(f.hG,e.info)&&(f.N=[],e.info.YA!==bJ(f.hG)||e.info.C!==0))return;if(e.info.J){for(const n of f.N)k0G(f,n);f.N=[]}else{f.N.push(e);f.hG=e.info;return}}else{xm(f,Error("Woffle: Unexpected slice type"));return}f.hG=e.info;k0G(f,e);w$O(f)}}; Cqm=function(f){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(f.C.index.Pp()),averageByteRate:Math.round(f.C.info.rL)}}; b65=function(f){f=g.mF(f,1886614376);for(const e of f);return g.xg(f,e=>fE5(e))}; Z6G=function(f){var e=sk(f,(n,r)=>n+r.length,0); e=new Uint8Array(e);let B=0;for(const n of f)e.set(n,B),B+=n.length;return e}; Kag=function(f){a:{var e=f.initData;try{var B=0;const r=new DataView(e.buffer);for(;B0){const H=r.getUint32(B+28);d+=H*16+4}const t=r.getUint32(B+d-4);try{const H=RUY(e.subarray(B+d,B+d+t));if(H!==null){var n=H;break a}}catch(H){}B+=L}n=null;break a}catch(r){n=null;break a}n=void 0}if(n!=null){e=aW(pr(n,7,void 0,df));e==null||f.rj||(f.cryptoPeriodIndex=e);e=aW(pr(n,10, void 0,df));e!=null&&e>0&&!f.rj&&(f.C=e);for(const r of lw(n,2,Fy,void 0===yS?2:4))n=f.J,e=n.push,B=T$(r),B=g.ON(B,4),e.call(n,B)}}; qsC=function(f){return isNaN(f.cryptoPeriodIndex)?g.ON(f.initData):`${f.cryptoPeriodIndex}`}; Pj=function(f){if(f.offset>=f.G.totalLength)throw Error();return Le(f.G,f.offset++)}; zUm=function(f,e=!1){var B=Pj(f);if(B===1){e=-1;for(B=0;B<7;B++){var n=Pj(f);e===-1&&n!==255&&(e=0);e>-1&&(e=e*256+n)}return e}n=128;for(let r=0;r<6&&n>B;r++)B=B*256+Pj(f),n*=128;return e?B:B-n}; aKC=function(f){try{const e=zUm(f,!0),B=zUm(f,!1);return{id:e,size:B}}catch(e){return{id:-1,size:-1}}}; cSg=function(f){var e=new p$C(f),B=-1,n=0;let r=0;for(;!n||!r;){const {id:L,size:d}=aKC(e);if(L<0)return;if(L===176){if(d!==2)return;n=e.C()}else if(L===186){if(d!==2)return;r=e.C()}L===374648427?B=e.C()+d:L!==408125543&&L!==174&&L!==224&&e.skip(d)}e=rR(f,0,B);B=new DataView(e.buffer);B.setUint16(n,3840);B.setUint16(r,2160);n=new bg([e]);fe(n,f);return n}; IV=function(f){f.U?.dispose();f.U=null}; YsM=function(f){return f.G.length?f.G[0]:null}; AS0=function(f,e){return f.G.some(B=>B.info.YA===e)}; $m=function(f,e){e={rst4disc:e,cd:f.X.toFixed(3),sq:f.eI?f.eI.YA:-1};f.J=NaN;f.X=0;f.Z9=-1;f.eI=null;f.BS=NaN;f.uY=NaN;f.Lq=null;f.loader.ri("mdstm",e)}; iF=function(f){f.C=null;f.A=-1;f.K=0;f.W=null;f.cS=NaN;f.N=0;f.Ed=null}; fU=function(f,e){if(e.info.J){f.Fl=e.info;if(f.W){var B=f.W,n=j45(f,!1);B=O60(B);f.loader.hQ(f.vS,n,B);f.Ed||f.policy.qj||otw(f);f.Ed=null}iF(f)}f.U&&vtd(f.U,e);if(n=f.iM())if(n=n.U(e,f.policy.tZ,f.policy.hF)){f.G.pop();f.G.push(n);return}f.G.push(e)}; mw6=function(f,e,B,n=0){if(f.V){var r=f.V.C+f.V.G;if(B.info.C>0)if(B.info.YA===f.V.YA&&B.info.C=0&&f.V.YA>=0&&!Cz(f.V,B.info))throw new g.Dj("improper_continuation",f.V.Pd(),B.info.Pd());soO(f.V,B.info)||$m(f,"d")}else if(B.info.C>0)throw new g.Dj("continuation_of_null",B.info.Pd());f.V=B.info;f.vS=B.info.vS;if(B.info.C===0){if(f.C)if(!f.loader.isOffline()||f.policy.Dk)f.loader.ri("slice_not_fully_processed",{buffered:f.C.info.Pd(), push:B.info.Pd()});else throw new g.Dj("slice_not_fully_processed",f.C.info.Pd(),B.info.Pd());iF(f);f.WS=n}else{if(f.WS&&n&&f.WS!==n)throw f=new g.Dj("lmt_mismatch",B.info.YA,f.WS,n),f.level="WARNING",f;!B.info.vS.J()&&f.W&&(n=B.info,r=f.W.pj,n.X="updateWithEmsg",n.YA=r)}if(f.C){n=f.C.U(B);if(!n)throw new g.Dj("failed_to_merge",f.C.info.Pd(),B.info.Pd());f.C=n}else f.C=B;a:{B=g.TF(f.C.info.vS.info);if(f.C.info.type!==3){if(!f.C.info.J)break a;f.C.info.type===6?VEg(f,e,f.C):lK6(f,f.C);f.C=null}for(;f.C;){n= f.C.G.totalLength;if(f.A<=0&&f.K===0){var L=f.C.G;let k=r=-1;if(B){for(var d=0;d+80))break;if(v!==408125543)if(v===524531317)d=!0,b>=0&&(k=L.C()+b,t=!0);else{if(d&&(v===160||v===163)&&(r<0&&(r=H),t))break;v===163&&(r=Math.max(0,r),k=L.C()+b);if(v===160){r<0&&(k=r=L.C()+b);break}L.skip(b)}}r<0&&(k=-1)}const {mM:C, Q$:w}={mM:r,Q$:k};if(C<0)break;f.A=C;f.K=w-C}if(f.A>n)break;f.A?(n=u0w(f,f.A),n.W&&FaM(f,n),VEg(f,e,n),fU(f,n),f.A=0):f.K&&(n=u0w(f,f.K<0?Infinity:f.K),f.K-=n.G.totalLength,fU(f,n))}}f.C&&f.C.info.J&&(fU(f,f.C),f.C=null)}; FaM=function(f,e){var B=g.lJ(e);if(E7(e.info.vS.info)&&e.info.vS.info.video.primaries==="bt2020"){var n=new NW(B);hr(n,[408125543,374648427,174,224,21936,21937])&&(n=n.start+n.pos,B.getUint8(n)===129&&B.getUint8(n+1)===1&&B.setUint8(n+1,9))}n=e.info.vS.info;n.V()&&!E7(n)&&(n=g.lJ(e),(new NW(n)).j2(),Qw([408125543,374648427,174,224],21936,n));e.info.vS.info.zv()&&(n=e.info.vS,n.info&&n.info.video&&n.info.video.projectionType==="MESH"&&!n.N&&(g.TF(n.info)?n.N=kjM(B):n.info.rj()&&(n.N=zKO(B))));e.info.vS.info.rj()&& e.info.zv()&&(B=g.lJ(e),(new NW(B)).j2(),Qw([408125543,374648427,174,224],30320,B)&&Qw([408125543,374648427,174,224],21432,B));if(f.policy.Qs&&e.info.vS.info.rj()){n=g.lJ(e);var r=new NW(n);if(hr(r,[408125543,374648427,174,29637])){B=Eo(r,!0);r=r.start+r.pos;for(var L=0;Ln.info.VB+n.G.totalLength,0); f.C&&(e+=f.C.G.totalLength);return e}; u0w=function(f,e){var B=f.C;e=Math.min(e,B.G.totalLength);if(e===B.G.totalLength)return f.C=null,B;B=qf5(B,e);f.C=B[1];return B[0]}; VEg=function(f,e,B){if(B.info.vS.J()){if(f.MC&>G(B)){e=g.lJ(B);var n=g.Vw(e,0,1953658222);if(n){n.skip(1);var r=bn(n)<<16|ZB(n),L=r&1,d=r&4;if(r&256){e=r&512;var t=r&1024;r&=2048;var H=Kl(n);H<2||(L&&n.skip(4),d&&n.skip(4),L=Kl(n),n.skip((H-1)*(4+(e?4:0)+(t?4:0)+(r?4:0))-4),n.data.setUint32(n.offset+n.C,L))}}}if(e=f.Cq&&!!f.Cq.vS.Cq)if(e=B.info.zv())e=cXd(B),t=f.Cq,Bg?(n=1/e,e=nU(f,e)>=nU(t)+n):e=f.getDuration()>=t.getDuration(),e=!e;e&>G(B)&&(e=f.Cq,Bg?(n=cXd(B),t=1/n,n=nU(f,n),e=nU(e)+t-n): e=e.getDuration()-f.getDuration(),e=1+e/B.info.duration,dGw(g.lJ(B),e))}else{n=!1;f.W||(AX0(B),B.C&&(f.W=B.C,n=!0,L=B.info,d=B.C.pj,L.X="updateWithEmsg",L.YA=d,L=B.C,L.U&&(d=f.vS.index,d.W=!L.U,d.U="emsg"),L=B.info.vS.info,d=g.lJ(B),g.TF(L)?Uo(d,1701671783):L.rj()&&Qw([408125543],307544935,d)));a:if((L=NQ(B,f.policy.Yp))&&YfY(B))d=Ss5(f,B),f.X+=d,L-=d,f.N+=L,f.J=f.policy.Ui?f.J+L:NaN;else{if(f.policy.We){if(d=H=f.loader.E_(g.m6(B),1),f.J>=0&&B.info.type!==6){if(f.policy.Ui&&isNaN(f.uY)){g.Yv(new g.Dj("Missing duration while processing previous chunk", B.info.Pd()));f.loader.isOffline()&&!f.policy.Dk||EtG(f,B,d);$m(f,"m");break a}r=H-f.J;var k=r-f.X;const C=B.info.YA,w=f.eI?f.eI.YA:-1,v=f.BS,b=f.uY,K=f.policy.fQ&&r>f.policy.fQ,Y=Math.abs(k)>10,l=Math.abs(f.J-d)<1E-7;if(Math.abs(k)>1E-4){f.PS+=1;const m=f.W?.J();k={audio:`${+f.G8()}`,sq:C.toFixed(),sliceStart:H,lastSq:w.toFixed(),lastSliceStart:v,lastSliceDuration:b,totalDrift:(r*1E3).toFixed(),segDrift:(k*1E3).toFixed(),skipRewrite:`${+(K||Y)}`};m?.length&&(k.adCpn=m[0]);f.loader.handleError("qoe.avsync", k);f.Z9=C}K||Y||l||(d=f.J);H=Ss5(f,B,H);L-=H;f.X=r+H}}else d=isNaN(f.J)?B.info.startTime:f.J;EtG(f,B,d)&&(f.N+=L,f.J=d+L,f.policy.Bb&&f.PS>=f.policy.Bb&&(f.PS=0,f.loader.eC({resetForRewrites:"count"})))}f.eI=B.info;f.uY=UQ(B);B.J>=0&&(f.BS=B.J);if(n&&f.W){n=j45(f,!0);Kz(B.info,n);f.C&&Kz(f.C.info,n);for(t of e)f.policy.U&&t.YA!==f.W?.pj||Kz(t,n);(B.info.J||f.C&&f.C.info.J)&&B.info.type!==6||(f.Ed=n,f.policy.G?(e=O60(f.W),f.loader.hQ(f.vS,n,e)):(e=f.loader,e.fq.isManifestless&&Q46(e,n,null,!!f.vS.info.video)), f.policy.qj||otw(f))}}Nd5(f,B);f.timestampOffset&&ak6(B,f.timestampOffset)}; j45=function(f,e){let B;const n=f.W;if(B=BNO(n))B.startSecs+=f.cS;const r=f.cS;let L=0;f.vS instanceof $G&&(L=f.vS.ZP);return new OQ(n.pj,r,e?L:f.N,n.ingestionTime,`sq/${n.pj}`,void 0,void 0,e,B)}; O60=function(f){if(f.Sr()){var e=f.data["Stitched-Video-Id"]?f.data["Stitched-Video-Id"].split(",").slice(0,-1):[],B=f.J();var n=[];if(f.data["Stitched-Video-Duration-Us"])for(var r of f.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1))n.push((Number(r)||0)/1E6);r=[];if(f.data["Stitched-Video-Start-Frame-Index"])for(var L of f.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1))r.push(Number(L)||0);L=[];if(f.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(const d of f.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0, -1))L.push((Number(d)||0)/1E6);f=new TdG(e,B,n,L,g.r$0(f),g.LjC(f))}else f=null;return f}; otw=function(f){const e=f.W,B=BNO(e);B&&(B.startSecs+=f.cS,f.loader.dK(f.vS,B,e.pj,e.Sr()))}; Ss5=function(f,e,B){var n=0;if(e.info.vS.info.rj()&&!YfY(e))return 0;if(f.Cq&&!f.G8()){let k=0;B&&g.TF(e.info.vS.info)?k=B-f.J:e.info.vS.info.rj()&&(k=f.X);var r=e.info.YA;B=NQ(e,f.policy.Yp);var L=f.Cq;const {Qb:C,Uk:w}={Qb:L.Z9,Uk:L.X};L=Math.abs(w-k)>.02;if((r===C||r>C&&r>f.Z9)&&L){n=Math.max(.95,Math.min(1.05,(B-(w-k))/B));if(g.TF(e.info.vS.info))dGw(g.lJ(e),n);else if(e.info.vS.info.rj()&&(L=k-w,!g.TF(e.info.vS.info)&&(e.info.vS.info.rj(),n=new NW(g.lJ(e)),r=e.W?n:new NW(new DataView(e.info.vS.G.buffer)), NQ(e,!0)))){var d=L*1E3,t=so(r);r=n.pos;n.pos=0;if(n.C.getUint8(n.pos)===160||XI(n))if(S3(n,160))if(Eo(n,!0),S3(n,155)){L=n.pos;var H=Eo(n,!0);n.pos=L;d=d*1E9/t;t=DB(n);d=t+Math.max(-t*.7,Math.min(t,d));d=Math.sign(d)*Math.floor(Math.abs(d));if(!(Math.ceil(Math.log(d)/Math.log(2)/8)>H)){n.pos=L+1;for(L=H-1;L>=0;L--)n.C.setUint8(n.pos+L,d&255),d>>>=8;n.pos=r}}else n.pos=r;else n.pos=r;else n.pos=r}n=NQ(e,f.policy.Yp);n=B-n}n&&e.info.vS.info.rj()&&f.loader.ri("webmDurationAdjustment",{durationAdjustment:n, videoDrift:k+n,audioDrift:w})}return n}; EtG=function(f,e,B){if(!zRg(e,B))return e=ZA(e.info),e.smst="1",f.loader.handleError("fmt.unparseable",e||{},1),!1;isNaN(f.cS)&&(f.cS=B);return!0}; gtG=function(f){return f.info.vS.J()&&f.info.YA===f.info.vS.index.OE()}; nU=function(f,e=0){e=e?Math.round(f.timestampOffset*e)/e:f.timestampOffset;f.vS.Cq&&e&&(e+=f.vS.Cq.C);return e+f.getDuration()}; DwC=function(f,e){e<0||(f.G.forEach(B=>{ak6(B,e)}),f.timestampOffset=e)}; dM=function(f,e=!1){var B=f.loader.getCurrentTime(),n=f.J.iM();let r=n?.info.W||0;if(n?.info.vS.cS()&&!n.info.J)if(f.policy.KG)r=n.info.V;else if(f.policy.oo){var L=n.info;r=L.range?L.W:Math.min(L.startTime+Math.min(L.duration*L.C/L.vS.info.EA,L.duration)+(L.range?L.K:Math.min(L.duration,L.duration*L.G/L.vS.info.EA)),L.startTime+L.duration)}if(!f.D_){if((f.policy.C||f.policy.O1)&&e&&!isNaN(B)){if(n)return r-B;if(f.policy.O1&&f.vS.info.NC==="f")return Infinity}return 0}if((L=rM(f))&&LU(L))return L.W; var d=f.D_.Ea(!0);if(e&&n)return L=0,f.policy.C&&(L=Py(d,r+.02)),L+r-B;e=Py(d,B);f.policy.cw&&L&&(n=x5(d,B),d=x5(d,L.V-.02),n===d&&(B=L.W-B,f.policy.J&&B>e+.02&&f.ri("abh",{bh:e,bhtls:B}),e=Math.max(e,B)));return e}; HjY=function(f){f.U=!0;f.V=!0;f.W=-1;f9(f,Infinity)}; Iy=function(f){for(const e of f.G)tE(f,e);f.G=[];f.C=null}; $r=function(f,e,B=!1){if(f.D_){const n=f.D_.Ea(),r=s7(n,e);let L=NaN;const d=rM(f);d&&(L=s7(n,d.vS.index.getStartTime(d.YA)));if(r===L&&f.C&&f.C.G&&JS6(Hg(f),0))return e}f=kK(f,e,B);return f>=0?f:NaN}; f9=function(f,e,B){f.vS.C();var n=kK(f,e);if(n>=0)return n;f.X?.Cq(e,B);n=Math;var r=n.min,L=f.J;if(L.U)if(L=L.U,L.hG&&L.hG.type===3)L=L.hG.startTime;else if(L.J>0){var d=L.C.index;d=g.ax(d.offsets.subarray(0,d.count),L.J*L.chunkSize);L=L.C.index.getStartTime(d>=0?d:Math.max(0,-d-2))}else L=0;else L=Infinity;e=r.call(n,e,L);f.C=f.policy.Cq?null:f.vS.U(e).T6[0];CU(f)&&(f.policy.Ml&&B?.seekSource===60||f.D_&&f.D_.abort(),f.policy.EO&&f.X?.K());f.WS=0;return f.C?f.C.startTime:e}; eN=function(f){return YsM(f.J)}; MEk=function(f,e){return!!f.X?.A(e)||AS0(f.J,e)}; wM=function(f,e,B=!1){e&&Bg&&DwC(f.J,e.sN());B||f.X?.U();f.D_=e;f.X?.cS(f.D_)}; rM=function(f){return f.policy.Fo?f.X?.WS()||null:f.D_&&f.D_.Eg()}; G0G=function(f){const e={};for(let B=0;B4&&f.Cq.shift()}; xwg=function(f,e){if(e.GN()){const B=e.d$();for(const n of B)f.policy.J&&e instanceof yD&&f.ri("omblss",{s:n.info.Pd()}),bb(f,e.info.T6,n,e.P_())}}; bb=function(f,e,B,n=0){isNaN(f.Ed)||(f.ri("aswm",{sq:e[0].YA,id:e[0].vS.info.itag,xtag:e[0].vS.info.G,ep:Date.now()-f.Ed}),f.Ed=NaN);switch(B.info.type){case 1:case 2:Wak(f,B);break;case 4:var r=B.info.vS;const L=r.Fl(B);f.C?.N()&&IEM(B.info,f.C)&&(f.C=r.WS(f.C).pop());for(const d of L)bb(f,e,d,n);break;case 3:B.info.vS.info.video?(r=f.timing,r.eI||(r.eI=(0,g.T)(),g.cu("fvb_r",r.eI,r.C))):(r=f.timing,r.U||(r.U=(0,g.T)(),g.cu("fab_r",r.U,r.C)));mw6(f.J,e,B,n);f.policy.C&&s4w(f);break;case 6:mw6(f.J, e,B,n),f.C=B.info}}; Wak=function(f,e){if(e.info.type===1)if(e.info.vS.info.video){var B=f.timing;B.PS||(B.PS=(0,g.T)(),g.cu("vis_r",B.PS,B.C))}else B=f.timing,B.K||(B.K=(0,g.T)(),g.cu("ais_r",B.K,B.C));lK6(f.J,e);f=f.loader;f.videoTrack.vS.C()&&f.audioTrack.vS.C()&&f.policy.C&&!f.fq.sA&&(e=f.audioTrack.getDuration(),B=f.videoTrack.getDuration(),Math.abs(e-B)>1&&f.ri("trBug",{af:`${g.Jk(f.audioTrack.vS.info,!1)}`,vf:`${g.Jk(f.videoTrack.vS.info,!1)}`,a:`${e}`,v:`${B}`}))}; s4w=function(f){f.G.length?f.C=g.QG(g.QG(f.G).info.T6):f.J.G.length?f.C=f.J.iM().info:f.C=rM(f)}; Zh=function(f,e){const B={GD:[],v9:[]};return f.X?.Ed(e)??B}; kK=function(f,e,B=!1){if(!f.C||!f.C.G)return NaN;f=Hg(f);e=X$g(f,e+.02,B);return e<0?NaN:JS6(f,B?e:0)?f[e].startTime:NaN}; CU=function(f){var e;!(e=f.vS.info.NC==="f")&&(e=f.policy.V)&&(e=f.J,e=!!e.U&&yV(e.U));if(e)return!0;e=rM(f);if(!e)return!1;const B=LU(e)&&e.J;return f.isManifestless&&f.cS>0?B||e.YA>=f.cS:B}; RC=function(f){let e=0;for(const B of f.G)e+=i0O(B.info);return e+=hUH(f.J)}; LU=function(f){return f?f.U():!1}; ySm=function(f){const e=rM(f);return e?e.W-f.loader.getCurrentTime():0}; KU=function(f,e,B,n){if(!f.vS.index.kZ(e,!0))return!1;try{Iy(f);var r=f.J;let L=null;for(let d=r.G.length-1;d>=0;d--){const t=r.G[d];t.info.YA>=e&&(r.G.pop(),r.J-=NQ(t,r.policy.Yp),L=t.info)}L&&(r.V=r.G.length>0?r.G[r.G.length-1].info:r.Lq,r.G.length!==0||r.V||$m(r,"r"));r.loader.ri("mdstm",{rollbk:1,itag:L?L.vS.info.itag:"",popped:L?L.YA:-1,sq:e,lastslc:r.V?r.V.YA:-1,lastfraget:r.J.toFixed(3)});if(f.policy.C)return f.C=null,!0;n>B?f9(f,n):f.C=f.vS.W(e-1,!1).T6[0]}catch(L){return e=sI(L),e.details.reason= "rollbkerr",f.loader.handleError(e.errorCode,e.details,e.severity),!1}return!0}; tE=function(f,e,B=!1){Pqm(f,e,B);e.dispose()}; q1=function(f){const e=f.J.iM();return e?e.info:rM(f)}; z8=function(f,e){let B;for(B=0;B$Gl(r,n))?(f.C=n,f.policy.J&&f.ri("cer",{lsr:"lsp", lsp:n.Pd()})):(vm(e.info.T6[0])?(f.C=e.T8&&e.T8.J?y$G(e.T8.J):X6M(e.info.T6[0]),f.policy.J&&f.ri("cer",{lsr:f.C.Pd(),lsp:n?.Pd()})):(f.C=null,f.policy.J&&f.ri("cer",{lsr:"null",lsp:n?.Pd()})),f.loader.isOffline()&&!f.policy.Dk||tE(f,e,!0))}}; aC=function(f){return CU(f)||LU(f.J.iM()?.info)}; Hg=function(f){let e=[];const B=rM(f);B&&e.push(B);e=g.HB(e,f.J.Dn());for(const n of f.G)for(const r of n.info.T6)n.DU&&(e=g.GO(e,L=>!IEM(L,r))),(vm(r)||r.N())&&e.push(r); f.C&&!xGG(f.C,g.QG(e),f.C.vS.J())&&e.push(f.C);return e}; JS6=function(f,e){if(!f.length)return!1;for(e+=1;e=e)return r}return n}; pU=function(f){return!(!f.C||f.C.vS===f.vS)}; IKg=function(f,e,B){return f.policy.C?dM(f,!0)e&&f.We.k_)}; ezk=function(f,e){const B=eN(f);return B&&B.info.type!==6?!e.Ed(f,B.info.YA):!1}; BRH=function(f,e){for(const B of f.N)if(B.pj===e)return B.Tj?2:1;return 0}; rf0=function({hasSubfragmentedFmp4:f=!1,yR:e=!1}={}){const B=new nqM;B.nG=f||e;return B}; YK=function(f){return f.C&&f.IR&&f.playbackStartPolicy}; x3O=function(f,e,B=!1){e.video.qualityOrdinal>1080&&!f.qt&&(f.Lq=36700160,f.qC=5242880,f.uY=Math.max(4194304,f.uY),f.qt=!0);e.video.qualityOrdinal>2160&&!f.SK&&(f.Lq=104857600,f.EA=13107200,f.SK=!0);g.tS(f.V9.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?e.isEncrypted()&&g.Cs()&&g.H1("samsung")&&(g.H1("kant")||g.H1("muse"))&&(f.EA=g.tS(f.V9.experiments,"html5_samsung_kant_limit_max_bitrate")):e.isEncrypted()&&g.Cs()&&g.H1("kant")&&(f.EA=1310720);f.On!==0&&e.isEncrypted()&&(f.EA=f.On);f.l_!== 0&&e.isEncrypted()&&B&&(f.EA=f.l_);e.EA&&(f.T4=Math.max(f.HJ,Math.min(f.uY,5*e.EA)))}; AE=function(f,e,B=0){return g.tS(f.V9.experiments,e)||B}; jr=function(f,e,B,n){f.IR&&(f.playbackStartPolicy=e,f.Nx=B,f.t7=n)}; znw=function(f,e){if(e<0)return!0;const B=f.OE();return e0)return 2;if(e<0)return 1;B=f.OE();return e(0,g.T)()?0:1}; oC=function(f,e,B){if(f.policy.y8)return!1;var n=f.C;var r=e.C?.Cq()||-1;n.G===3&&r+1>=n.V?(n.ri("sdai",{haltrq:r+1,est:n.V}),n=!1):n=n.G!==2;if(!n||!(e.C?e.C.vS.vL:e.vS.vL).X(f.policy,f.J,f.loader.wg)||f.loader.isSuspended&&(!O3(f.schedule)||f.loader.s8))return!1;if(f.policy.V&&Do>=5)return f.loader.Qm.M0(),!1;if(f.fq.isManifestless){if(e.G.length>0&&e.C&&e.C.YA===-1||e.G.length>=f.policy.Xd||!f.policy.qx&&e.G.length>0&&!f.policy.X.nG)return!1;if(e.U)return!f.fq.isLive||!isNaN(f.IM)}if(f2G(e))return!1; if(!e.C){if(!e.vS.C())return!1;f9(e,f.loader.getCurrentTime())}if(eN(e)&&(e.iM()!==eN(e)||f.loader.isSuspended))return!1;r=(n=f.policy.Nl)&&!e.G.length&&dM(e,!0)=f.policy.wq)return!1;n=e.C;if(!n)return!0;n.N()&&n.vS.C()&&(e.C=g.QG(n.vS.WS(n)),n=e.C);if(!n.U()&&!n.vS.V(n))return!1;L=f.fq.dC||f.fq.K;if(f.fq.isManifestless&&L){L=e.vS.index.OE();var d=B.vS.index.OE(); L=Math.min(L,d);if(e.vS.index.pg()>0&&L>0&&n.YA>=L)return e.cS=L,B.cS=L,!1}if(n.vS.info.audio&&n.N()||n.U())return!1;L=!e.V&&!B.V;if(r=!r)r=n.W,r=!!(B.C&&!LU(B.C)&&B.C.Wto5(f,e)?(to5(f,e),!1):(f=e.D_)&&f.isLocked()?!1:!0}; hE=function(f,e){f.loader.HK(e);var B=i0O(e),n=f.loader.Gy();B={Lh:f.schedule,HH:B,Oh:Px5(f.V,B),ut:wG(e.T6[0]),m5:Ra(21,e.vL.C),Ho:f.policy.J,dg:(r,L)=>{f.loader.Py(r,L)}}; f.schedule.G.U&&(B.Gf=(f.videoTrack.vS?.info.EA||0)+(f.audioTrack.vS?.info.EA||0));f.r$&&(B.YA=e.T6[0].YA,B.IM=e.IM,B.r$=f.r$);n={G7:fkk(e,f.loader.getCurrentTime()),rp:f.policy.D2&&za(e)&&e.T6[0].vS.info.video?rSm(f.G):void 0,LR:f.policy.WS,poToken:f.loader.F3(),g9:f.loader.Df(),Y8:f.Y8,fW:isNaN(f.fW)?null:f.fW,Re:f.Re,uV:f.uV,hP:f.hP,T1:n};return new PF(f.policy,e,B,f.J,(r,L)=>{try{a:{const Lw=r.info.T6[0].vS,d6=Lw.info.video?f.videoTrack:f.audioTrack;if(!(r.state>=2)||r.isComplete()||r.Qc()||!(!f.loader.D9|| f.loader.isSuspended||dM(d6)>3)){const TO=LWg(r,f.policy,f.J);TO===1&&(f.A=!0);HeC(f,r,TO);if(r.isComplete()||r.HS()&&L<3){if(f.policy.J){const AY=r.timing.K();AY.rst=r.state;AY.strm=r.xhr.n6();AY.cncl=r.xhr&&r.dX.W?1:0;f.loader.ri("rqs",AY)}r.yh&&f.loader.ri("sbwe3",{},!0)}if(!f.HS()&&r.state>=2){cZ5(f.timing,r,Lw);var d=f.loader;f.fW&&r.t$&&d&&(f.fW=NaN,f.loader.x$(r.t$),f.loader.f0(),f.loader.ri("cabrUtcSeek",{mediaTimeSeconds:r.t$}));r.rk&&f.fW&&r.rk&&!r.rk.action&&(f.loader.N$(f.fW),f.fW=NaN, f.loader.ri("cabrUtcSeekFallback",{targetUtcTimeSeconds:f.fW}));r.wl&&f.loader.JB(r.wl);f.policy.mS&&(f.hP=r.hP);if(r.state===3){z8(d6,r);za(r.info)&&Vc(f,d6,Lw,!0);if(f.fh){const AY=r.info.zi();AY&&f.fh.xa(r.info.T6[0].YA,Lw.info.id,AY)}f.loader.CV()}else if(r.isComplete()&&r.info.T6[0].type===5){if(r.state!==4)r.Ik()&&f.loader.handleError(r.ND(),r.NG());else{var t=(r.info.T6[0].vS.info.video?f.videoTrack:f.audioTrack).G[0]||null;t&&t instanceof PF&&t.Qc()&&t.mf()}r.dispose()}else{if(!r.Ik()&&r.k_&& r.state>=2&&r.state!==3){var H=r.xhr.getResponseHeader("X-Response-Itag");if(H){var k=ntg(f.G,H),C=r.info.J;if(C){var w=C-k.Lq();k.Ed=!0;r.info.T6[0].vS.Ed=!1;var v=k.X(w);r.info=v;if(r.T8){var b=r.T8,K=v.T6;(K.length!==b.T6.length||K.length=f.policy.FR&&f.fh&&r.info.isDecorated()&&Dl==="net.badstatus"&&mk(f.fh,lP,W5))){var m=(AY.info.video&&AY.vL.J>1||r.QW===410||r.QW===500||r.QW===503)&&!(U8(f.G.W).size>0)&&!Ra(37,AY.vL.C),F=r.NG(),N=AY.info.video?f.videoTrack:f.audioTrack;m&&(F.stun="1");f.loader.handleError(Dl,F);f.HS()||(m&&TG(f.G,AY),z8(N,r),f.loader.CV())}}else k=1,f.fh&&r.info.isDecorated()&& Dl==="net.badstatus"&&mk(f.fh,lP,W5)&&(k=0),f.fq.isLive&&r.ND()==="net.badstatus"&&f.W<=f.policy.AC*2?(tHm(f.fq),f.fq.dC||f.fq.isPremiere?rz(f.loader,0,{wX:"badStatusWorkaround"}):f.fq.K?rz(f.loader,f.fq.Ei,{wX:"badStatusWorkaround",E_:!0}):U3(f.loader)):f.loader.handleError(Dl,r.NG(),k);isNaN(f.fW)||(f.loader.N$(f.fW),f.fW=NaN)}f.policy.Q3&&!r.isComplete()?N1(f.loader):f.loader.CV();var E=dmm(r,f.policy,f.J);HeC(f,r,E)}}}}}catch(Lw){E=f.Ed?1:0,f.Ed=!0,r=xk(E),E=sI(Lw,E),f.loader.handleError(E.errorCode, E.details,E.severity),r||f.loader.nB()}},n)}; Cgw=function(f,e,B){var n=e.C?e.C.vS.vL:e.vS.vL;var r=f.J,L;(L=!f.policy.Cb)||(L=CR(24,n.C)===CR(24,n.G));L?n=!1:(r=yw(r,CR(24,n.G)),L=6E4*r.V**1.6,(0,g.T)()0&&(B=((0,g.T)()-f.loader.YM)/1E3,e=Math.min(e,f.policy.IA+f.policy.Z2*B));e=f.loader.getCurrentTime()+e;return f.policy.jK&&(B=wAH(f.loader)+f.policy.jK,B=0||e.vL.cM("defrag")==="1"||e.vL.cM("otf")==="1"){e=null;break a}r=Hm(0,4096)}r=new jf([new Rr(5,n.vS,r,"createProbeRequestInfo"+n.X,n.YA)],e.G);r.Mz=B;r.C=e.C;e=r}e&&hE(f,e)}}; Vc=function(f,e,B,n){if(!(B.C()||B.eI()||B.Ed||!B.vL.X(f.policy,f.J,f.loader.wg)||B.info.NC==="f"||f.policy.C)){if(n){n=f.V;var r=B.info;n=IcY(n,r.video?n.policy.xF:n.policy.C$,r.EA)}else n=0;n=B.X(n);f=hE(f,n);qQ(n)&&vg(e,f);B.Ed=!0}}; ub=function(f,e){if(f.policy.useUmp&&e.HS())return!1;try{var B=e.info.T6[0].vS;const d=B.info.video?f.videoTrack:f.audioTrack;var n=d;if(f.fq.isManifestless&&n){f.W=0;n.U&&(e.HS(),e.isComplete()||e.GN(),n.U=!1);e.t6()&&f.loader.wG.fB(1,e.t6());var r=e.pg(),L=e.V6();ru(f.fq,r,L)}if(e.info.ut()&&!qQ(e.info))for(const H of e.d$())Wak(d,H);n=d;for(f.loader.getCurrentTime();n.G.length&&n.G[0].state===4;){const H=n.G.shift();xwg(n,H);n.PS=H.JK()}n.G.length&&xwg(n,n.G[0]);const t=!!eN(d);t&&e instanceof yD&&(B.info.G8()?pfd(f.timing):aY0(f.timing));return t}catch(d){e=e.NG();e.origin="hrhs";a:{f=f.loader;B=d;if(B instanceof Error){e.msg||(e.msg=`${B.message}`);e.name||(e.name=`${B.name}`);if(B instanceof g.Dj&&B.args)for(const [t,H]of Object.entries(B.args))e[`arg${t}`]=`${H}`;g.Yv(B);if(B.level==="WARNING"){f.oA.eC(e);break a}}f.handleError("fmt.unplayable",e,1)}return!1}}; be6=function(f){const e=f.videoTrack.vS.index;f.r$=new vqw({h1:f.policy.h1,nG:f.policy.X.nG,JR:e.BC(),OE:()=>e.OE(), gH:()=>e.gH()})}; Zek=function(f,e,B=0,n){e!==f.V&&(f.V&&(f.cS=!0),f.V=e,f.DR(e,f.videoTrack,B,n))}; Rzk=function(f){if(f.G?.isLocked())return f.videoInfos;const e=U8(f.C);let B=g.GO(f.videoInfos,n=>n.EA>f.UK.EA?!1:!e.has(n.id)); f.C.i4()&&(B=g.GO(B,n=>n.video.width<=854&&n.video.height<=480)); return B}; KWC=function(f,e){const B=[];for(const n of e)B.push(g.Jk(n,f.fq.sA));return B}; quG=function(f,e,B=0,n){if(f.X&&e!==f.W)return!0;f.X=!1;e!==f.W&&(f.W=e,f.DR(e,f.audioTrack,B,n));return!1}; zzY=function(f,e){return f.UK.jF&&e.reason==="l"||f.UK.bI?!1:f.UK.jR?!0:e.reason==="l"||e.reason==="b"||e.reason==="o"}; a2g=function(f,e){const B=f.C.C;if(B){f.videoInfos=f.U;var n=g.$g(f.videoInfos,r=>r.id===B); n&&n.video.qualityOrdinal===e?f.videoInfos=[n]:(n=f.videoInfos.map(r=>r.id),f.loader.ri("sabrpf",{pfid:`${B}`, vfids:`${n.join(".")}`}),Sr(f,e,e),NO(f.C,""))}else Sr(f,e,e)}; Sr=function(f,e,B){f.videoInfos=f.U;f.videoInfos=g.GO(f.videoInfos,n=>n.video.qualityOrdinal>=e&&n.video.qualityOrdinal<=B)}; pAw=function(f,e){f.UK.Z9()&&(f.Cq=e.reason==="m"||e.reason==="l"?!0:!1);e.reason==="m"?e.isLocked()&&a2g(f,e.C):zzY(f,e)?Sr(f,e.G,e.C):f.videoInfos=f.U;f.N=!0;f.G=e}; E3=function(f,e){return f.map(B=>rG(g.Jk(B,e)))}; cfd=function(f,e,B){if(f.K){var n=g.GO(f.J,r=>r.id===f.K); return E3(n,B).includes(e)}n=g.GO(f.J,r=>!!r.Z_?.isDefault); return n.length>0?E3(n,B).includes(e):E3(f.J,B).includes(e)}; Qc=function(f,e,B=!1){D3l(f.C,e,B)}; Af5=function(f,e,B,n){const r=f.fq;var L=f.oA.getVideoData(),d=f.M2;const t=PXk({Lh:f.Lh,V9:L.S(),oA:f.oA,iz:f.iz,UK:f.UK,x6:f.x6,yk:f.yk,L1:f.L1,QX:f.QX,uM:f.uM,pA:f.pA,V2:f.V2,sabrLicenseConstraint:L.sabrLicenseConstraint,e2:f.e2,dH:f.dH,iF:f.iF,Qw:f.Qw,ol:!!d,authorizedFormats:L.authorizedFormats,PO:f.PO,i4:f.i4}),H=aV(L,f.T1,f.nextRequestPolicy,f.jd,f.G1,f.Rf,f.Jh);B&&e&&(B=H.Gm?H.Gm.map(w=>w.type):[],e("sabr",{stmctxt:B.join("_"), unsntctxt:H.Ky?H.Ky.join("_"):""}));e=f.wI;B=f.nZ;B===void 0&&e===void 0&&(B=Yum(r.sA,f.lq?.video),e=Yum(r.sA,f.lq?.audio));let k;L.Re&&(k=L.Re);let C;(L=f.UK?.yw)&&L>0&&(f.FV||f.ZJ)&&(C=new Uint8Array(L));d={a8:t,v9:f.v9,wI:e,nZ:B,M2:d,videoPlaybackUstreamerConfig:k,A9:H,MV:C};n&&f.R5?f.R5.length>0&&(d.R5=f.R5):f.u$&&(d.u$=f.u$);f.UK?.Z9()&&!$5()&&(f.zy&&(d.zy=f.zy),f.tV&&(d.tV=f.tV));d.GD=f.GD;d.z7=r.kA;return d}; Yum=function(f,e){return e?[g.Jk(e.info,f)]:[]}; OeH=function(f,e,B){e=Bm(f.vL,jJ5(f,e,B),e);f.f$()&&e.set("probe","1");return e}; oql=function(f){const e={},B=[],n=[];if(!f.data)return e;for(var r=0;r{e=Number(B);return`${e===1?2:e-1}---`})}; Eqm=function(f,e=!1,B){var n=UC(f.Ta.experiments,"debug_bandaid_hostname");return n?(e=g.tS(f.Ta.experiments,"debug_bandaid_port"),n=e>0?`${n}:${e}`:n,e=f.Ta.experiments.SI("debug_bandaid_insecure_scheme"),M1(f,n,e)):e&&B?.url&&!f.G?(n=CR(76,new g.Qv(B.url)),M1(f,n)):f.C.get(0)?.location.clone()}; xK=async function(f,e){var B=M1(f,"redirector.googlevideo.com");B.set("alr","yes");B.set("id",`${Math.round(Math.random()*1E5)}`);if(e===1||e===2)B.set("cmo=sensitive_content","yes"),B.set("sc","yes");e===2&&B.set("cmo=td","c.youtube.com");var n=await Wb(B.Dw(),{format:"RAW",timeout:5E3});if(n.xhr.status!==200||!n.xhr.responseText)return Promise.reject(new g.Dj("b204258371_no_host",B.Dw(),n.xhr.status));var r=new g.Qv(n.xhr.responseText);B=CR(28,r);n=r.get("ms");f=M1(f,B);r=r.get("mm");f.set("ms", n);f.set("mm",r);return B&&QJk(B)?e!==2||G8(B)?f:Promise.reject(new g.Dj("b204258371_untrusted",B,n)):Promise.reject(new g.Dj("b204258371_invalid",B,n))}; TRw=function(f,e){f=`https://${e.C()}/initplayback?c=${mt(f.Ta)}`+"&owc=1";JK(f,"pw",B=>{B.ht=e.G})}; Wg=function(f,e,B,n){JK(`https://${e}${"/videoplayback?probe=1"}`,B,r=>{!n.Y("html5_onesie_host_racing")||n.videoData.isLivePlayback||n.Y("html5_onesie_probe_ec_hosts")||n.Kx||n.Kp();f.J.push(r)},r=>{f.J.push(r.details)})}; QJk=function(f){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(f)}; G8=function(f){const e=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(f)&&!e.test(f)}; s3=function(f){for(;f.C.length&&!f.C[0].isEncrypted;){const {videoId:B,OT:n,formatId:r,buffer:L,Va:d}=f.C.shift();if(L)f.ET.Kq.xu?.get(B)?.C(n,r,L);else if(d)f.ET.Kq.VE(B,n,r);else{var e=f.ET;e.C[r].wV=!0;e=e.Kq.xu?.get(B);e?.dE(r)&&e?.G(r)}}}; g.Gyw=function(f){for(;!f.V&&!f.error;){var e=f;e.V=!!XV(e,1);switch(XV(e,2)){case 2:var B=void 0,n=[],r=[];r.length=19;r.fill(0);var L=XV(e,5)+257;B=XV(e,5)+1;var d=XV(e,4)+4;for(var t=0;t0;H--)n.push(t)}n.length!==d?e.error=!0:(B=n.slice(-B),n.length=L,MoM(e,n,B));break;case 1:MoM(e,Pg,IC);break; case 0:$K(e,e.C&7);n=XV(e,16);L=XV(e,16);(n^L)!==65535&&(e.error=!0);e.output.set(e.data.subarray(e.G,e.G+n),e.J);e.G+=n;e.J+=n;break;default:e.error=!0}f.J>f.output.length&&(f.output=new Uint8Array(f.J*2),f.J=0,f.G=0,f.V=!1,f.C=0,f.register=0)}f.output.length!==f.J&&(f.output=f.output.subarray(0,f.J));return f.error?new Uint8Array(0):f.output}; XV=function(f,e){for(;f.C=f.data.length)return f.error=!0,0;f.register|=f.data[f.G++]<>=e;f.C-=e;return B}; MoM=function(f,e,B){e=yc(e);B=yc(B);const n=f.data,r=f.output;let L=f.J;for(var d=f.register,t=f.C,H=f.G;;){if(t<15){if(H>n.length){f.error=!0;break}d|=(n[H+1]<<8)+n[H]<>=7;k<0;)k=e[(d&1)-k],d>>=1;else d>>=k&15;t-=k&15;k>>=4;if(k<256)r[L++]=k;else if(f.register=d,f.C=t,f.G=H,k>256){d=ib[k];d+=XV(f,f7[k]);H=JfO(f,B);t=eO[H];t+=XV(f,BG[H]);if(xmg&&dB.length&&(f.error=!0);f.register|=(B[n+1]<<8)+B[n]<=0)return $K(f,B&15),B>>4;for($K(f,7);B<0;)B=e[XV(f,1)-B];return B>>4}; $K=function(f,e){f.C-=e;f.register>>=e}; yc=function(f){var e=[];for(var B of f)e[B]||(e[B]=0),e[B]++;var n=e[0]=0;B=[];var r=0,L=0;for(var d=1;d7&&(r+=e[d]);for(n=1;n>H&1;t=r<<4|d;if(d<=7)for(H=1<<7-d;H--;)L[H<>=7;d--;){L[H]||(L[H]=-e,e+=2);const k=n&1;n>>=1;H=k-L[H]}L[H]=t}}return L}; n7=function(f,e){f.G(`${"dcmprs"}_${f.context}_${f.C}_${"gz"}_${e}`)}; WW6=function(f,e){return Es(f,function(){const B=this;return function*(){let n;const r=Date.now();try{n7(B,"s");var L=yield*Qx(e());if(!L)throw Error("no result");n7(B,"e");return L}catch(d){throw n7(B,"f"),n=d,B.mj(n,"gz"),d;}finally{L=Date.now(),B.dA("gz",L-r,n)}}()})}; I25=function(f,e,B,n){return Es(void 0,function(){return function*(){const r=(L,d)=>WW6(new sJm(L,B,n),()=>ma(d(f))); if(rD)try{return yield*Qx(r("n",XAM))}catch(L){}if(e)try{return yield*Qx(r(e.C?"a":"w",L=>yfw(L,e)))}catch(L){}return yield*Qx(r("p",Pg0))}()})}; XAM=async function(f){if(!rD)throw Error("DecompressionStream is not supported");const e=gu.N2();var B=new DecompressionStream("gzip");const n=B.writable.getWriter();n.write(f);n.close();f=B.readable.getReader();for(B=new bg([]);;){const {value:r,done:L}=await f.read();if(L)break;B.append(r)}f=ne(B);gu.US("gznb",e,Math.ceil(f.byteLength/16));return f}; Pg0=function(f){const e=gu.N2();f=g.Gyw(new g.$ml(f));gu.US("gzjb",e,Math.ceil(f.byteLength/16));return f}; yfw=function(f,e){const B=gu.N2();f=e.QJ(f);let n;try{const r=f.byteOffset,L=f.byteLength,d=e.exports.getInflatedSize(r,L);if(d===0)throw Error("wasm_gz: bad input");const t=e.malloc(d),H=e.exports.inflateGzip(r,L,t);if(H)throw e.free(t),Error(`wasm_gz: fail${H}`);n=new Uint8Array(e.exports.memory.buffer,t,d)}finally{e.free(f.byteOffset)}e=e.yB(n);gu.US("gzwb",B,Math.ceil(e.byteLength/16));return e}; L7=function(f){var e=f.queue;e.C.length&&e.C[0].isEncrypted&&!e.G&&(e.C.length=0);for(const B of Object.keys(f.C)){const n=f.C[B];n.wV||(e=f.queue,e.C.push({videoId:n.videoId,formatId:B,isEncrypted:!1}),e.G||s3(e))}}; ieH=function(f,e){const B=e.totalLength;let n=!1;switch(f.J){case 0:f.Hc(e,f.V).then(r=>{var L=f.Kq;L.Ce("oprr");L.playerResponse=r;L.Ox||(L.Uy=!1);dD(L)},r=>{f.Kq.fail(r)}); break;case 2:f.Ce("ormk");e=ne(e);f.queue.decrypt(e);break;default:n=!0}f.Kq.xE&&f.Kq.ri("ombup",`id.${11};pt.${f.J};len.${B}${n?";ignored.1":""}`);f.J=null}; fBC=function(f,e){f.Kq.Ce("oprgz2_s");e=I25(e,f.Kq.S().kA,f.Kq.xE?f.Kq.ri.bind(f.Kq):()=>{},B=>{f.Kq.Ce(B)}); hS(e,()=>{f.Kq.Ce("oprgz2_e")},()=>{f.Kq.Ce("oprgz2_f")}); return e}; e8k=async function(f,e){f.Kq.Ce("oprgz_s");if(rD)try{var B=await XAM(e);f.Kq.Ce("oprgz_n");f.Kq.ri("oprsgz",{i:"n"});return B}catch(n){f.Kq.ri("gzerr",{impl:"native",err:`${n}`})}if(B=f.Kq.S().kA)try{const n=yfw(e,B);f.Kq.Ce("oprgz_w");f.Kq.ri("oprsgz",{i:"w"});return n}catch(n){f.Kq.ri("gzerr",{impl:"wasm",err:`${n}`})}e=Pg0(e);f.Kq.Ce("oprgz_p");f.Kq.ri("oprsgz",{i:"j"});return e}; BJw=function(f){return new Promise(e=>{setTimeout(e,f)})}; nyk=function(f,e){var B=f.S();B=f.UE&&B.Y("html5_onesie_preload_use_content_owner");if((e=Eqm(e,B,f.tQ))&&f.videoId){f=Tf(f.videoId);B=[];if(f)for(const n of f)B.push(n.toString(16).padStart(2,"0"));e.set("id",B.join(""));return e}}; rr5=async function(f,e,B=0){const n=[];n.push(e.load());B>0&&n.push(BJw(B));await Promise.race(n);return nyk(f,e)}; LFH=function(f,e,B,n=!1){f.set("cpn",e.clientPlaybackNonce);f.set("opr","1");const r=e.S();f.set("por","1");P$()||f.set("onem","1");e.startSeconds>0&&f.set("osts",`${e.startSeconds}`);n||(r.Y("html5_onesie_disable_partial_segments")&&f.set("oses","1"),e=r.Y("html5_gapless_onesie_no_media_bytes")&&vY(e)&&e.UE,B&&!e?(e=B.audio,f.set("pvi",B.video.join(",")),r.Y("html5_onesie_disable_audio_bytes")||f.set("pai",e.join(",")),sh||f.set("osh","1")):(f.set("oad","0"),f.set("ovd","0"),f.set("oaad","0"),f.set("oavd", "0")))}; dWM=function(f,e,B,n,r=!1){const L=`${"https://youtubei.googleapis.com/youtubei/"}${e.CG.innertubeApiVersion}/player`,d=[{name:"Content-Type",value:"application/json"}];n&&d.push({name:"Authorization",value:`Bearer ${n}`});d.push({name:"User-Agent",value:g.d0()});g.Q("EOM_VISITOR_DATA")?d.push({name:"X-Goog-EOM-Visitor-Id",value:g.Q("EOM_VISITOR_DATA")}):(B=B.visitorData||g.Q("VISITOR_DATA"))&&d.push({name:"X-Goog-Visitor-Id",value:B});(B=g.Q("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&d.push({name:"X-YouTube-Lava-Device-Context", value:B});(e=UC(e.experiments,"debug_sherlog_username"))&&d.push({name:"X-Youtube-Sherlog-Username",value:e});f=vA(JSON.stringify(f));return{url:L,ag:d,postBody:f,WD:r,LQ:r}}; tI=function(f,e,B,n,r,L,d,t,H){const k=f.X0,C=f.l0;f=f.fu;var w=k!==void 0&&C!==void 0;const v=n.getVideoData();var b=e.C.encryptedClientKey;e=w?e.iv:void 0;w=MX(L,!0);r=r||!!P$()&&w>1572864;return{innertubeRequest:{B1:f,KT:k,l0:C,encryptedClientKey:b,iv:e,Dq:!0,ML:!0,gb:"DecompressionStream"in window||!r,gm:B.experiments.SI("html5_use_jsonformatter_to_parse_player_response")},a8:PXk({Lh:L,V9:B,oA:n,iz:v.startSeconds*1E3,hV:!0}),onesieUstreamerConfig:d,u8:t,A9:aV(v),reloadPlaybackParams:v.CG?.reloadPlaybackParams, al:H}}; t3d=function(f,e,B,n,r,L,d,t){const H=g.zy(f,R7);let k;var C;f.LQ||((C=FW5(e,H))?(k=C.X9,C=C.signature):(C=k=e.encrypt(H),(0,g.T)(),C=AT5(new VlC(e.C.J),C,e.iv)));return tI(k&&C?{X0:k,l0:C}:{fu:H},e,B,n,!!f.LQ,r,L,d,t)}; Hld=async function(f,e,B,n,r,L,d,t){var H=g.zy(f,R7);H=await uC5(e,H);const k=await Um0(e,H);return tI({X0:H,l0:k},e,B,n,!!f.LQ,r,L,d,t)}; kNG=function(f,e,B,n,r,L,d,t){var H=g.zy(f,R7);if(H=FW5(e,H))return tI({X0:H.X9,l0:H.signature},e,B,n,!!f.LQ,r,L,d,t)}; wtO=async function(f,e,B){f.Ce("oprd_s");e=CnH(f)?await NRl(f.S9,e,B):f.S9.decrypt(e,B);f.Ce("oprd_c");return e}; HG=function(f){if(!f.Tt)return{};const e=f.Tt.K();e.d=f.Tt.Lq?.VD();e.shost=f.x8;e.ty="o";return e}; CnH=function(f,e){return f.Y("html5_onesie_sync_request_encryption")||e?.LQ?!1:!!P$()}; Jg=function(f,e,B){f+3>>3||(B=(B%e[Z[13]]+e[Z[13]])%e[Z[13]],e[Z[45]](B,1));if((f|24)==f){k_(60,e);var n=e[Z[6]]+(e[Z[6]]?Z[11]:Z[65])+e[Z[24]]+e[Z[20]];if(wP(5,e)){const L=[];g.OM(e[Z[1]],(d,t)=>{d!==null&&L[Z[3]](`${t}=${d}`)}); n+=`?${L[Z[54]](Z[37])}`}var r=n}if((f-9|71)=f){n=e[Z[4]](Z[60],12);const L=e[Z[4]](Z[60],n+1);n>0&&L>0?(B[Z[20]]=e[Z[34]](0,L),e=e[Z[34]](L+1)):(B[Z[20]]=e,e=Z[12]);r=[e]}(f|5)>>3==2&&(e=(e%B[Z[13]]+B[Z[13]])%B[Z[13]],n=B[0],B[0]=B[e],B[e]=n,r=[e]);return r}; vyM=function(f){return f.Y("html5_onesie_host_probing")||f.xE?sh:!1}; dD=function(f){if(!f.playerResponse)return!1;if(f.oY)return!0;var e=f.videoData.Y("html5_onesie_audio_only_playback")&&bd(f.videoData);if(f.xu&&f.Uy){if(!f.xu.has(f.W3))return!1;const n=f.xu.get(f.W3);var B;if(B=n){B=!1;for(const r of n.Sv.keys()){const L=n.Sv.get(r);if(L)for(const d of L.uF)d.e7>0&&(L.G8?B=!0:e=!0)}B=!(e&&B)}if(B)return!1}f.Ce("ofr");f.nY.resolve(f.playerResponse);f.QZ||(f.jl?.start(),f.j9.start());return f.oY=!0}; ZlY=function(f){if(f.xu&&!f.Y("html5_onesie_media_capabilities")){f.Ce("ogsf_s");var e=GgM(f.oA.getVideoData(),(n,r)=>{f.ri(n,r)}),B=bl5(f.oA); e.video=hnC(B,e.video);f.Ce("ogsf_c");if(e.video.length)return e;f.ri("ombspf",`l.${B.G};u.${B.C};o.${B.J};r.${B.reason}`)}}; vG=function(f,e){if(e.HS()||f.HS())f.policy.o_||(f.policy.U?kf(f.loader):f.loader.CV());else{if(f.policy.J&&e.isComplete()&&e instanceof O8){var B=f.loader,n=B.ri;var r=Object.assign(e.Tt.K(),{rst:e.state,strm:e.xhr.n6(),d:e.Tt.Lq?.VD(),cncl:e.xhr&&e.dX.W?1:0,rqb:e.Ad,cwt:e.dX.J,swt:e.qY?.Su});r=Object.assign(oql(e.info),r);n.call(B,"rqs",r)}if(e.isComplete()&&e.f$()&&e instanceof O8)f.policy.uC?e.JJ()?(e.dispose(),f.C.length===0?f.loader.CV():(f=f.C[0],f instanceof O8&&f.Qc()&&f.mf())):e.Ik()&&f.loader.handleError(e.ND(), e.NG()):(e.dispose(),f.loader.CV());else{if(e.vx())f.ZJ=!0,e instanceof O8&&cZ5(f.timing,e),R8d(f),C7(f);else if(e.Ik())B=f.oA.QL(),e instanceof O8&&e.info.C?.a8?.e2&&B&&f.loader.N$(B),e instanceof O8&&KKw(e)?f.loader.aP?.J():e instanceof wD?f.C.pop():(B=1,e.canRetry()&&FV(f.loader)&&(KF6(f,e),B=0),f.loader.handleError(e.ND(),e.NG(),B));else{if(f.loader.isSuspended&&!e.isComplete())return;C7(f)}e.HS()||e instanceof wD||(e.isComplete()?B=dmm(e,f.policy,f.V):(B=LWg(e,f.policy,f.V),B===1&&(f.qC=!0)), B!==0&&(n=new qog(1,e.info.vL),n.Mz=B===2,z8g(f,n)));e.isComplete()&&(f.FV=!1,e.vx()||(f.ZJ=!1));f.policy.Q3&&!e.isComplete()?N1(f.loader):f.loader.CV()}}}; aB5=function(f){f.policy.hE&&(f.Lq=void 0,f.uM=0)}; ArO=function(f){if(!ptg(f,f.A))return bY(f,"ratelimited"),!1;if(aC(f.audioTrack)&&aC(f.videoTrack))return bY(f,"endofstream"),!1;if(f.policy.G)if(f.policy.W){if(f.K?.A())return bY(f,"ssdaiblocked"),!1}else{var e=!1;if(f.Cq.G===2)e=!0;else if(f.Cq.G===3){Z9(f);f.loader.gA();var B=Zh(f.audioTrack,f.loader.isSeeking()).GD;var n=Zh(f.videoTrack,f.loader.isSeeking()).GD;var r=f.loader.getCurrentTime()||0;B=Rt(f,B,r);n=Rt(f,n,r);n=Math.min(B,n);r=f.Cq;n>=r.J?(r.ri("sdai",{haltrq:n,est:r.J}),n=!0):n=!1; n&&(e=!0)}if(e)return bY(f,"waitingforads"),!1}f.policy.Qr&&(f.eI=K7(f,f.audioTrack),f.WS=K7(f,f.videoTrack));if(!f.J)return qq(f,{nopolicy:1}),!0;if(f.oA.QL())return qq(f,{utc:1}),!0;if(f.G.X)return qq(f,{audio:1}),!0;if(f.policy.I5&&f.G.N)return qq(f,{constraint:1}),!0;if(!f.J.targetAudioReadaheadMs||!f.J.targetVideoReadaheadMs)return qq(f,{noreadahead:1}),!0;if(f.policy.U&&f.loader.Tg())return qq(f,{seekToHead:1}),!0;e=Math.min(iS(f.loader,f.audioTrack)*1E3,f.J.targetAudioReadaheadMs);n=Math.min(iS(f.loader, f.videoTrack)*1E3,f.J.targetVideoReadaheadMs);r=Math.min(e,n);var L=f.oA.getCurrentTime()*1E3;const {RH:d,Y4:t,lL:H,kq:k}=crm(f,L);let C;B=d0&&f.A.b8++)}; z8g=function(f,e,B){var n={Lh:f.Lh,dg:(L,d)=>{f.oA.Py(L,d)}, ut:f.policy.Bz,Ho:f.policy.J};f.Lh.G.U&&(n.Gf=(f.videoTrack.vS.info.EA||0)+(f.audioTrack.vS.info.EA||0));f.policy.Xo&&(n.JR=f.audioTrack.vS.index.BC(),n.ut=!1);var r=jJ5(e,f.policy,f.V)?2:1;r!==f.Ed&&(f.Ed=r,R8d(f));B=f.mR(B);if(f.policy.N&&f.policy.J&&B.jd){let L=r="";for(const d of B.jd)f.videoData.sabrContextUpdates.has(d)||f.policy.N&&B.Rf&&B.Rf.type===d?r+=`_${d}`:L+=`_${d}`;f.loader.ri("sabrbldrqs",{ctxts:r,misctxts:L})}!e.setData(B,f.policy,f.V)&&f.policy.N&&f.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);n=new O8(f.policy,e,f.fq,f.V,f,n,f.loader.Df());jN(f.timing);f.policy.UE&&f.loader.ri("sabrcrqinfo",{rn:n.PE(),probe:e.f$()});return n}; K7=function(f,e){Z9(f);f.loader.gA();return Zh(e,f.loader.isSeeking())}; zv=function(f){return f.policy.EE&&!!f.U}; Rt=function(f,e,B){f=f.loader.gA()||0;return at(e,(B+f)*1E3)/1E3+B}; Z9=function(f){const e=f.policy.U&&f.loader?.Tg();var B=f.loader.getCurrentTime()||0;B=oym(f,B);a:if(f.policy.B9&&f.loader.isSeeking()){var n=kK(f.videoTrack,B);f.loader.ri("asmtfnctv",{b:B,a:n});if(!isNaN(n)){B=n;break a}}n=f.loader.gA()||0;B+=n;n=Ux(f.videoData)||g.mi(f.videoData);let r=0;e?(n&&(r=Number.MAX_SAFE_INTEGER),f.videoData.gM&&(r=Math.ceil(f.videoData.Ei*1E3))):r=Math.ceil(B*1E3);return Math.min(Number.MAX_SAFE_INTEGER,r)}; oym=function(f,e){if(f.loader.isSeeking())return e;var B=f.oA.aC();if(!B)return e;B=B.tR();if(B.length===0||Wy(B,e))return e;if(!f.videoTrack.XM(e)&&!f.audioTrack.XM(e))return f.loader.ri("sundrn",{b:0,lt:e}),e;let n=e,r=Infinity;for(let L=0;Le)continue;const d=e-B.end(L);d=20)?(f.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),e):n}; at=function(f,e){let B=0,n=-1;for(const r of f)if(!(r.startTimeMs+r.durationMse||n>=0&&r.Ie>n+1)break;B=Math.max(B,r.startTimeMs+r.durationMs);n=Math.max(n,r.qq)}return Math.max(0,B-e)}; ptg=function(f,e){a:{if(f.N>0){var B=Math.floor((0,g.T)()/1E4);if(B===e.yj){if(e.b8>=f.N){e.b8===f.N&&(B={reason:"toomanyrequests"},B.limit=e.b8,f.loader.handleError("player.exception",B),e.b8+=1);e=!1;break a}}else e.yj=B,e.b8=0}e=!0}return!e||f.loader.isSuspended&&f.loader.s8?!1:f.X&&(0,g.T)()0&&(!f.policy.N||f.C.length!==1||!f.C[0].lD())||!f.fq.Ed?.X(f.policy,f.V,f.loader.wg)||f.BS?!1:!0}; bY=function(f,e){f.Fl=e;f.policy.UE&&f.loader.ri("sabrcrb",{reason:e})}; qq=function(f,e){f.Fl=void 0;f.IA=(0,g.T)();f.policy.UE&&f.loader.ri("sabrcrq",e)}; crm=function(f,e){const {lL:B,kq:n}=V3G(f);let r;f.policy.Qr?(r=at(f.eI.GD,e),f=at(f.WS.GD,e)):(r=B,f=n);return{RH:r,Y4:f,lL:B,kq:n}}; R8d=function(f){f.videoData.Lq.clear();if(f.videoData.sabrContextUpdates.size>0)for(var e of f.videoData.sabrContextUpdates.keys())f.videoData.sabrContextUpdates.get(e)?.sendByDefault&&f.videoData.Lq.add(e);if(f.policy.N&&f.C.length)for(const B of f.C)(e=B.Lp())&&e.type&&e.sendByDefault&&f.videoData.Lq.add(e.type)}; C7=function(f){for(;f.C.length&&f.C[0].m3(f.uj());){const e=f.C.shift();lB6(f,e)}f.C.length&&lB6(f,f.C[0])}; lB6=function(f,e){e instanceof O8&&(f.uY=e);var B=new Set(e.pL(f.uj()));for(const d of B){if(B=e instanceof wD){B=f.G;var n=B.fq.sA,r=E3(B.videoInfos,n);n=cfd(B,d,n);var L=r.includes(d);!B.UK.tM||n||L||B.loader.ri("sabrcpf",{fid:`${d}`,vfids:`${r.join(".")}`,said:B.K||""});B=!(n||r.includes(d))}if(B)continue;B=e.Dn(d,f.uj());r=f.policy.EE&&FH(B[0].vS.info.mimeType);if(!e.GN(d,f.uj()))continue;n=e.d$(d,f.uj());for(const t of n){f.policy.J&&e instanceof wD&&f.loader.ri("omblss",{s:t.info.Pd()});if(r){n= f.timing;n.Ed||(n.Ed=(0,g.T)(),g.cu("fcb_r",n.Ed,n.C));n=f;n.videoData.sA()&&n.U&&rG(n.U)===rG(g.Jk(t.info.vS.info,n.fq.sA))&&n.oA.publish("sabrCaptionsDataLoaded",t,n.qs.bind(n));continue}n=t.info.vS.info.G8();L=t.info.vS;const H=e instanceof wD?1:2;if(n){if(quG(f.G,L,H,e.v_(f.uj())?.token))continue}else Zek(f.G,L,H,e.v_(f.uj())?.token);L=n?f.audioTrack:f.videoTrack;e instanceof wD&&(L.U=!1,e instanceof wD&&(n?pfd(f.timing):aY0(f.timing)));try{bb(L,B,t)}catch(k){n=sI(k),f.loader.handleError(n.errorCode, n.details,n.severity),L.nB(),f.Ra(!1,"pushSlice"),kf(f.loader)}}}}; KF6=function(f,e){f.policy.N?f.C.splice(f.C.indexOf(e)).forEach(B=>{B.dispose()}):(f.C.pop(),e?.dispose())}; uIm=function(f,e,B){const n=[];for(let r=0;r=7E3&&r>=7E3}return e}; UWm=function(f,e){f.delay?.dispose();f.delay=null;const B=Array.from(f.C.values()).sort((n,r)=>n.mediaTime-r.mediaTime); B.length!==0&&(e=(B[0].mediaTime-e)*1E3/f.oA.getPlaybackRate(),f.delay=new g.T6(()=>{p7(f)},e>500?e-500:e),f.delay.start())}; p7=function(f,e){if(Hu(f.oA.getPlayerState())&&f.C.size!==0){e=e??Array.from(f.C.values()).sort((r,L)=>r.mediaTime-L.mediaTime); var B=f.getCurrentTime(),n=(e[0].mediaTime-B)*1E3/f.oA.getPlaybackRate();if(n<500){B=n>0?f.oA.aC()?.getCurrentTime()??f.oA.getCurrentTime():B;for(const r of e)if(B>=r.mediaTime)r.resolve([r.mediaTime,r.id]),f.C.delete(r.id);else break}UWm(f,B)}}; NJY=function(f,e,B){f.C.delete(B);return new Promise(n=>{f.C.set(B,{id:B,mediaTime:e,resolve:n});n=Array.from(f.C.values()).sort((r,L)=>r.mediaTime-L.mediaTime); B===n[0].id&&p7(f,n)})}; gyl=function(f){const e=f.oA.aC()?.getCurrentTime()??f.oA.getCurrentTime(),B=f.V.hq(e);h8M(f,B,e);f.isSeeking=!1;var n=Array.from(f.C.keys()).filter(r=>r>=B).sort((r,L)=>r-L); for(const r of n)n=r===B?e-f.V.getStartTime(B):0,f.X(r,f.C.get(r),n)}; So5=function(f,e,B,n=!1){e!==f.qD&&(f.qD=e,f.oA.publish("playbackstarted",e,B+f.oA.gA(),n))}; h8M=function(f,e,B){const n=f.C.get(e),r=f.V.getStartTime(e),L=f.V.getDuration(e);let d=r;(n?.C??[f.cpn]).forEach((t,H)=>{const k=n?.G[H]??L;B>=d&&B{f.W.C.delete(B)}); f.J.delete(e)}; QmM=function(f,e,B,n){f.G=B;B=`${e}.${B}`;f.J.has(e)?f.J.get(e).push(B):f.J.set(e,[B]);NJY(f.W,n,B).then(([r,L])=>{const [d,t]=L.split(".");[,L]=[Number(d),t];So5(f,L,r)})}; DWO=function(f,e,B,n,r,L){return e.Aq&&e.xA&&B===3?new TJO(f,e,n,r,L):null}; Jrk=function(f,e){if(f.policy.Vb){var B=e.info.EA,n=MX(f.schedule);e=e.index.BC();B=Math.max(1,n/B);f.K=Math.round(Math.max(((B-1)*e+f.policy.Mk)/B,e-f.policy.nA)*1E3)}}; xWH=function(f,e){var B=Date.now()/1E3,n=B-f.startTimeSecs;const r=B-f.U;var L=r>=f.policy.S5,d=!1;if(L){let t=0;!isNaN(e)&&e>f.W&&(t=e-f.W,f.W=e);t/r=f.policy.nA&&!f.J;if(!L&&!B&&M30(f,e))return NaN;B&&(f.J=!0);a:{n=d;B=(0,g.T)()/1E3-(f.WH.H0()||0)-f.X.C-f.policy.Mk;L=f.G.startTime;B=L+B;if(n){if(isNaN(e)){cG(f,NaN,"n",e);L=NaN;break a}n=e-f.policy.fA;n0&&(d.headers=t);L&&(d.onFinish=L);return Object.keys(d).length>1?d:null}; AI=function(f,e,B,n,r,L,d,t){qg()&&B.token&&(f=ZR(f,{ctt:B.token,cttype:B.Up,mdx_environment:B.mdxEnvironment}));n.Y("net_pings_low_priority")&&(e||(e={}),e.priority="low");L||t&&n.Y("nwl_skip_retry")?(e==null?e={}:Pnl(f,n.Y("html5_assert_cpn_with_regex")),d?MB().sendAndWrite(f,e):MB().sendThenWrite(f,e,t)):e?(Pnl(f,n.Y("html5_assert_cpn_with_regex")),CEM(f,e)):g.gq(f,r)}; IBH=function(f){const e=[];for(let B=0;B0&&B>0&&!f.G&&f.J<1E7)try{f.V=f.W({sampleInterval:e,maxBufferSize:B}),f.V?.addEventListener("samplebufferfull",async()=>{await f.stop();fAw(f)})}catch(n){f.G=ilY(n.message)}}; jO=function(f,e){f=window.h5vcc?.settings?.set(f,e);return Oc(f)?hS(ma(f),()=>!0,()=>!1):ma(!!f)}; e1d=function(f){return jO("MediaSource.EnableUsingMediaSourceBufferedRange",f?1:0)}; BGM=function(f){return jO("HTTP3",f?1:0)}; nG5=function(f){return jO("MediaSource.EnableUsingMediaSourceAttachmentMethods",f?1:0)}; raC=function(f){return jO("QUIC",f?1:0)}; L6M=function(f){return jO("Media.AudioWriteDurationLocal",f)}; dQ5=function(f){return jO("Media.PlayerConfiguration.DecodeToTexturePreferred",f?1:0)}; tfH=function(f){return jO("Media.VideoBufferSizeClampMb",f)}; HzY=function(f){return jO("Media.VideoDecoderPollIntervalMs",f)}; kaY=function(f){return jO("Media.VideoInitialMaxFramesInDecoder",f)}; CJY=function(f){return jO("Media.EnableAllocateOnDemand",f?1:0)}; wm6=function(f){return jO("Media.AppendFirstSegmentSynchronously",f?1:0)}; vGC=function(f){return jO("Media.EnableResetAudioDecoder",f?1:0)}; bzw=function(f){return jO("Media.EnableFlushDuringSeek",f?1:0)}; R15=function(){var f=window.h5vcc?.settings?.getPersistentSettingAsString?.("cpu_usage_tracker_intervals");if(f!=null){f=JSON.parse(f)??[];var e=f.filter(B=>B.type==="total").map(B=>B.seconds); for(const B of ZzH)e.indexOf(B)===-1&&f.push({type:"total",seconds:B});window.h5vcc?.settings?.set("cpu_usage_tracker_intervals_enabled",1);window.h5vcc?.settings?.set("cpu_usage_tracker_intervals",JSON.stringify(f))}}; K6m=function(){var f=window.H5vccPlatformService;let e="";if(f&&f.has("dev.cobalt.coat.clientloginfo")&&(f=f.open("dev.cobalt.coat.clientloginfo",()=>{}))){const B=f.send(new ArrayBuffer(0)); B&&(e=String.fromCharCode(...(new Uint8Array(B))));f.close()}return e}; qQG=function(f){var e=window.H5vccPlatformService;e?.has("com.google.android.youtube.tv.prodlogger")&&(e=e.open("com.google.android.youtube.tv.prodlogger",()=>{}))&&(e.send(vA(`cpn: ${f}`).buffer),e.close())}; g.ot=function(f,e,B,n){O_(f,B,`${e.toFixed(3)}:${n.join(":")}`)}; VE=function(f,e){var B=f.provider.getCurrentTime();g.ot(f,e,"cmt",[B.toFixed(3)]);var n=B=f.provider.SU();if((!f.G||f.provider.Ta.Y("html5_shorts_gapless_no_gllat")&&vY(f.provider.videoData)?0:n*1E3>f.G.GX+100)&&f.G){n=f.G.isAd;B=B*1E3-f.G.GX;f.vN=e*1E3-f.G.MO-B-f.G.Zq;var r=(0,g.T)()-B;e=f.vN;B=f.provider.videoData;var L=B.isAd();if(n||L){L=`${n?"ad":"video"}_to_${L?"ad":"video"}`;var d={};B.dj&&(d.cttAuthInfo={token:B.dj,videoId:B.videoId});d.startTime=r-e;gH(L,d);g.hQ({targetVideoId:B.videoId, targetCpn:B.clientPlaybackNonce},L);NJ("pbs",r,L)}else r=f.provider.oA.Pt(),r.U!==B.clientPlaybackNonce?(r.W=B.clientPlaybackNonce,r.G=e):B.aR()||g.Yv(new g.Dj("CSI timing logged before gllat",{cpn:B.clientPlaybackNonce}));f.ri("gllat",{l:f.vN.toFixed(),prev_ad:+n});delete f.G}}; O_=function(f,e,B){const n=f.C.get(e);n?n.push(B):f.C.set(e,[B])}; lY=function(f,e,B){if(!isNaN(B.G7)){let n=B.G7;B.G=0?e:g.uY(f.provider);const B=f.provider.oA.XC();var n=B.ZO-(f.Lq||0);n>0&&g.ot(f,e,"bwm",[n,(B.DJ-(f.Yp||0)).toFixed(3)]);isNaN(f.Lq)&&B.ZO&&f.isOffline&&f.pZ(!1);f.Lq=B.ZO;f.Yp=B.DJ;isNaN(B.bandwidthEstimate)||g.ot(f,e,"bwe",[B.bandwidthEstimate.toFixed(0)]);f.provider.Ta.wA()&&Object.keys(B.C).length!==0&&f.ri("bwinfo",B.C);if(f.provider.Ta.wA()||f.provider.Ta.Y("html5_log_meminfo"))n=WF5(),Object.values(n).some(r=>r!==void 0)&&f.ri("meminfo",n); f.provider.Ta.wA()&&(n=f.Fl?.V())&&Object.values(n).some(r=>r!=null)&&f.ri("cpuinfo",n); f.Z9&&f.ri("jsprof",f.Z9.flush());f.Ys&&f.ri("uma",f.Ys.flush());f.N&&g.ot(f,e,"bat",[f.N.level,f.N.charging?"1":"0"]);n=f.provider.oA.getVisibilityState();f.uC!==n&&(g.ot(f,e,"vis",[n]),f.uC=n);VE(f,e);(n=z1w(f.provider))&&n!==f.G6&&(g.ot(f,e,"conn",[n]),f.G6=n);lY(f,e,B)}; pmm=function(f,e,B){const n=g.uY(f.provider);aAk(f,n,e,0,B);FS(f,n);mT(f)}; U_=function(f,e){O_(f,"cat",e)}; caw=function(f){var e=f.provider.oA.XC();const B=g.uY(f.provider);lY(f,B,e);const n=e.J;e=e.V;isNaN(n)||(f.provider.Ta.Y("html5_unified_live_latency_reporting")&&!isNaN(e)&&e?g.ot(f,B,"e2el",[n.toFixed(3),e.toFixed(3)]):g.ot(f,B,"e2el",[n.toFixed(3)]))}; YQG=function(f,e){e={cpn:f.provider.videoData.clientPlaybackNonce,sequenceNumber:e,serializedWatchEndpointLoggingContext:f.provider.videoData.rN};f.serializedHouseBrandPlayerServiceLoggingContext&&(e.serializedHouseBrandPlayerServiceLoggingContext=uW(f.serializedHouseBrandPlayerServiceLoggingContext)||void 0);f.provider.videoData.playerResponseCpn&&(e.playerResponseCpn=f.provider.videoData.playerResponseCpn);Nq.length&&(e.decoderInfo=Nq);f.remoteControlMode&&(e.remoteControlMode=f.remoteControlMode); f.remoteConnectedDevices.length&&(e.remoteConnectedDevices=f.remoteConnectedDevices);f.vy?.length&&(e.serializedQoeContextData=f.vy.map(B=>vA(B))); return e}; Aag=function(f,e,B){g.vS(f.provider.Ta,f.provider.videoData.U()).then(n=>{var r=!1;e.includes("&dt=")||e.includes("&cotn=")?r=!0:f.provider.Ta.Y("qoe_with_networkless")&&(r=!0);const L=f.provider.Ta.Y("qoe_send_and_write");var d=f.provider.Ta;n=Yf(e,d,f.provider.Ta.pageId,f.provider.Ta.sendVisitorIdHeader?f.provider.videoData.visitorData:void 0,n);d.Y("html5_simplify_pings")&&(n=n||{});n?(n.method="POST",n.postBody=B,AI(e,n,{token:f.provider.videoData.dj,Up:f.provider.videoData.pF,mdxEnvironment:f.provider.videoData.mdxEnvironment}, d,void 0,r,L&&f.eI)):r?(r=f.provider.Ta.Y("networkless_ajax"),d={method:"POST",postBody:B},L&&f.eI?MB().sendAndWrite(e,d):r?g.QY(e,{method:"POST",postBody:B}):MB().sendThenWrite(e,d)):HO6(e,B)})}; mT=function(f){if(!f.provider.Ta.Y("html5_qoe_no_len_check")){var e=0;for(const [B,n]of f.C.entries())e+=B.length+Number(sk(n,(r,L)=>r+L.length,0)); e>96E3&&(new g.T6(f.reportStats,0,f)).start()}}; jrg=function(f){f.provider.videoData.UE&&U_(f,"prefetch");f.provider.videoData.Fl&&f.ri("reload",{r:f.provider.videoData.reloadReason,ct:f.provider.videoData.Fl});f.provider.videoData.Tf&&U_(f,"monitor");f.provider.videoData.isLivePlayback&&U_(f,"live");sh&&U_(f,"streaming");f.provider.videoData.Nn&&f.ri("ctrl",{mode:f.provider.videoData.Nn},!0);if(f.provider.videoData.d8){var e=f.provider.videoData.d8.replace(/,/g,"_");f.ri("ytp",{type:e},!0)}f.provider.videoData.Qx&&(e=f.provider.videoData.Qx.replace(/,/g, "."),f.ri("ytrexp",{ids:e},!0));f.provider.Ta.wA()&&f.ri("now",{wt:(0,g.T)()});e=f.provider.videoData;var B=f.provider.Ta.Y("enable_white_noise")||f.provider.Ta.Y("enable_webgl_noop");const n=g.cY(e)||g.NU(e)||g.hA(e)||g.g7(e);(B||n)&&(B=(0,g.hI)())&&f.C.set("gpu",[B]);MU(f.provider.videoData)&&g.ot(f,g.uY(f.provider),"dt",["1"]);e.cotn&&!MU(e)&&f.pZ(!0);f.provider.Ta.wA()&&(e=(0,g.T)()-f.provider.Ta.Qr,f.ri("playerage",{secs:(1.6**Math.round(Math.log(e/1E3)/Math.log(1.6))).toFixed()}));f.W=!0;f.A= g.ls(()=>{f.reportStats()},1E4)}; aAk=function(f,e,B,n,r){var L=f.provider.Ta.C.cbrver;f.provider.Ta.C.cbr==="Chrome"&&/^96[.]/.test(L)&&B==="net.badstatus"&&/rc\.500/.test(r)&&gD(f,3);f.provider.Ta.Y("html5_use_ump")&&/b248180278/.test(r)&&gD(f,4);L=f.provider.getCurrentTime();n=n===1?"fatal":"";B=[B,n,L.toFixed(3)];n&&(r+=`;a6s.${HK()}`);r&&B.push(OzY(r));g.ot(f,e,"error",B);f.W=!0}; gD=function(f,e){f.MC||(O_(f,"fcnz",`${e}`),f.MC=!0)}; oGk=function(f,e){const B=g.uY(f.provider);if(!f.provider.Ta.experiments.SI("html5_refactor_sabr_video_format_selection_logging")||e.C.id!==f.uY){var n=f.provider.Ta.JE().C.jI(SO);n&&!f.cS&&e.reason!=="m"&&(e.reason="i");var r=[e.C.id,e.G,f.uY,e.reason];n&&e.reason==="i"&&r.push(E_(f,e));e.token&&r.push(e.token);g.ot(f,B,"vfs",r);f.uY=e.C.id;n=f.provider.oA.getPlayerSize();n.width>0&&n.height>0&&(n=[Math.round(n.width),Math.round(n.height)],r=g.BS(),r>1&&n.push(r),g.ot(f,B,"view",n));f.cS||(f.provider.Ta.wA()&& U_(f,"rqs2"),f.provider.videoData.C&&rJ(f.provider.videoData.C)&&f.C.set("preload",["1"]));f.cS=!0;f.W=!0}e.reason==="m"&&++f.UE===100&&gD(f,2);g.ot(f,B,"vps",[f.mA]);f.Cq||f.reportStats(B)}; lAw=function(f,e,B){var n=f.provider.Ta;const r=n.JE(),L=[];n.experiments.SI("html5_refactor_sabr_audio_format_selection_logging")?(e=B.C,n=[e.audio&&e.video?e.RI?e.RI:"":e.id],e.Z_&&e.Z_.id&&n.push(e.Z_.id),n=n.join(";"),n!==f.U&&(e=[n,f.U,B.reason],L.push(...VfY(B)),r.C.jI(SO)&&B.reason==="i"&&L.push(E_(f,B)),L.length>0&&e.push(L.join(";")),B.token&&e.push(B.token),g.ot(f,g.uY(f.provider),"afs",e),f.U=n)):B.C.id!==f.U&&(n=[B.C.id,f.U,B.reason],L.push(...VfY(B)),r.C.jI(SO)&&B.reason==="i"&&L.push(E_(f, B)),L.length>0&&n.push(L.join(";")),B.token&&n.push(B.token),g.ot(f,e,"afs",n),f.U=B.C.id)}; unC=function(f){f.V>=0||(f.provider.Ta.hF||f.provider.oA.getVisibilityState()!==3?f.V=g.uY(f.provider):f.BS=!0)}; E_=function(f,e){let B;f.provider.videoData.Q3()?(f=4,B=1):f=e.source??0;f=`${"sms"}.${f}`;B!==void 0&&(f+=`_${B}`);return f}; VfY=function(f){const e=[];if(f=f.C.audio){const B=f?.V;B!==void 0&&e.push(`${"fl"}.${B}`);f=f?.J;f!==void 0&&(f=Math.min(-f,0),e.push(`${"vg"}.${f}`),e.push("nm.4"))}return e}; QE=function(f,e,B,n,r){const L=g.uY(f.provider);e!==1&&e!==3&&e!==5||g.ot(f,L,"vps",[f.mA]);O_(f,"xvt",`t.${L.toFixed(3)};m.${r.toFixed(3)};g.${2};tt.${e};np.${0};c.${B};d.${n}`)}; OzY=function(f){/[^a-zA-Z0-9;.!_-]/.test(f)&&(f=f.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return f}; iS=function(f,e){if(f.Z9&&!f.wS)return 3;if(f.isSuspended)return 1;if(f.D9?.WS())return 4;let B=(e.vS.info.audio?f.policy.qC:f.policy.Lq)/(e.EA*f.policy.M6);if(f.policy.kC>0&&f.D9&&fh(f.D9)&&(e=e.vS.info.video?f.D9.G:f.D9.C)&&!e.oJ()){e=e.Ea();const n=x5(e,f.getCurrentTime());n>=0&&(e=f.getCurrentTime()-e.start(n),B+=Math.max(0,Math.min(e-f.policy.kC,f.policy.CM)))}f.policy.eI>0&&(B=Math.min(B,f.policy.eI));return B}; rz=function(f,e,B){F6m(f,B.wX||"unknown");f.oA.seekTo(e,B)}; lF=function(f,e,B,n,r){f.oA.getVideoData().q0()?r&&f.G.PS+r/1E3>B&&(f.ri("sdai",{seg:n,rbt:B.toFixed(3),end:f.G.PS.toFixed(3),sd:r.toFixed(3)}),f.Ra(!1,"rollback")):f.policy.G&&f.Ra(!1,"rollback");if(f.fq.isManifestless){r=KU(f.audioTrack,n,B,e);var L=KU(f.videoTrack,n,B,e);f.policy.sE||(L&&fT(f.fq,n,!0),r&&fT(f.fq,n,!1));L&&(f.videoTrack.N=[]);r&&(f.audioTrack.N=[]);f.ri("sdai",{rollbk2_seg:n,rbt:B.toFixed(3),lt:e.toFixed(3),a:r,v:L});(r||L)&&f.policy.G&&kf(f)}}; wAH=function(f){const e=f.QD().filter(B=>B.namespace==="ad"); for(const B of e)if(B.start/1E3>f.getCurrentTime())return B.start/1E3;return Infinity}; gM=function(f){var e=(0,g.T)();f.YM=e}; N1=function(f){f.policy.Q3&&f.policy.qU&&Math.min(ySm(f.videoTrack),ySm(f.audioTrack))*1E3>f.policy.Mx?f.Yp.M0():f.XL()}; lb=function(f,e,B,n=!1){n&&!e.Lq&&($5()||(n=e.D_)&&!n.bX(B.info)&&f.oA.dZ(),e.Lq=!0);e.vS!==B&&(e.vS=B)}; FV=function(f){return f.wg=e-.01}else e=!1;return e}; kf=function(f){f.Q3.M0()}; Mq=function(f,e){e&&D9(f.oA,new JI(e.video,e.reason));f.C.BS&&(e=eUC(f.C,"a"),f.oA.fk(new JI(e.audio,e.reason)))}; Gv=function(f,e,B,n){const r=rM(e);!r||r.J||Cz(r,n)||(B.abort(),f.policy.Fo&&e.X?.K(),e.K?.X());if(!B.PC()||$5())try{f.policy.qT?B.Hy(n.vS.info.containerType,n.vS.info.NC)&&B.k7(n.vS.info.containerType,n.vS.info.NC,n.vS.info.mimeType):B.gr(n.vS.info.containerType,n.vS.info.mimeType)}catch(L){return g.Yv(L),f.ri("ctexp",{name:L.name,msg:L.message}),!1}else n.vS.info.containerType!==B.PC()&&f.ri("ctu",{ct:$5(),prev_c:B.PC(),curr_c:n.vS.info.containerType});n=n.vS.Cq;f.policy.L6&&n&&(e=0+n.duration, n=-n.C,0===B.b0()&&e===B.tX()||B.lk(0,e),n!==B.gA()&&(B.vB(n),Bg&&DwC(f.audioTrack.GO(),B.sN())));return!0}; UQH=function(f,e,B){if(!(f.videoTrack.vS.C()&&f.audioTrack.vS.C()&&f.D9&&f.D9.G&&f.D9.C))return!1;if(B&&f.fq.isManifestless&&(f.videoTrack.W===-1||f.audioTrack.W===-1))return!0;const n=$r(f.videoTrack,e,B);if(isNaN(n))return!1;f=$r(f.audioTrack,f.policy.xA?e:n,B);return isNaN(f)?!1:!0}; NGk=function(f){f.V?.WN?.itagDenylist&&f.g3(f.V?.WN.itagDenylist);f.V?.playbackStartPolicy&&jr(f.policy,f.V?.playbackStartPolicy,3,f.V?.PE());if(f.policy.O$){var e=f.uj();(e=e?f.V?.rh.get(e):void 0)&&f.G.WF(e,-1)}f.fq.A||(e=f.V?.XJ,e?.h5&&e?.l2&&f.fq.sA&&ru(f.fq,e.h5,e.l2));if(f.V?.g0){e=f.V.g0.get(f.uj()||"");if(!e)return;if(f.fq&&e.formatId){const B=f.fq.J.get(rG(e.formatId));B&&(B.info.debugInfo=e.debugInfo)}}f.policy.cS&&(f.V?.Qa().forEach(B=>{f.J0(B)}),f.V?.GH())}; h10=function(f){if(!f.fq.sA)return!0;const e=f.oA.getVideoData();if(f.oA.S2())return f.ri("ombpa",{}),!1;if(!!f.V?.XJ?.rW!==f.fq.dC)return f.ri("ombplmm",{}),!1;var B=e.BS||e.liveUtcStartSeconds||e.s$;if(f.fq.dC&&B)return f.ri("ombplst",{}),!1;if(f.fq.A)return f.ri("ombab",{}),!1;B=Date.now();return LT(f.fq)&&!isNaN(f.eI)&&B-f.eI>f.policy.H8*1E3?(f.ri("ombttl",{}),!1):AA(e)!==0&&!f.policy.C||e.Y("html5_disable_onesie_media_for_mosaic")&&e.IR()||e.Y("html5_disable_onesie_media_for_lifa_eligible")&& JA(e)?!1:!0}; xf=function(f,e){const B=Lz(e.vS,f.fq.sA);var n=f.Ed?.Dn(B)||[];if(n.length===0)return f.ri("ombmsi",{}),!1;n=new jf(n);if((!f.policy.Cq||isFinite(f.getCurrentTime())||f.oA.QL())&&!eR5(n,f.getCurrentTime()))return f.ri("ostmf",{ct:f.getCurrentTime(),a:e.vS.info.G8()}),!1;f.Ed?.w2(B);return!0}; gG6=function(f,e){const B=e.vS;var n=f.fq.sA;if(h10(f))if(f.Ed&&f.Ed.dE(Lz(B,n))){if(n=Lz(B,n),xf(f,e)){var r=new jf(f.Ed.Dn(n)),L=d=>{try{d.Ik()?(f.handleError(d.ND(),d.NG()),z8(e,d),za(d.info)&&Vc(f.U,e,B,!0),f.XL()):ub(f.U,d)&&(f.J?.WS(d.info,f.fh),f.XL())}catch(t){d=sI(t),f.handleError(d.errorCode,d.details,d.severity),f.nB()}}; B.Ed=!0;qQ(r)&&(vg(e,new yD(f.policy,n,r,f.Ed,L)),jN(f.timing))}}else f.ri("ombfmt",{})}; SQM=function(f){f.policy.W&&f.V&&(f.V.pU.forEach(e=>{f.qN(e,-1)}),f.V.pU=[])}; WG=function(f,e){e=e||f.videoTrack&&f.videoTrack.C&&f.videoTrack.C.startTime||f.getCurrentTime();var B=lb,n=f.videoTrack,r=f.C;e=r.nextVideo&&r.nextVideo.index.hq(e)||0;r.cS!==e&&(r.WS={},r.cS=e,SN(r,r.C));e=!r.C.isLocked()&&r.N>-1&&(0,g.T)()-r.N=e&&dM(B,!0)>=e}else B.G.length||n.G.length?(r=B.vS.info.EA+n.vS.info.EA,r=10*(1-sr(e)/r),e=Math.max(r,e.policy.GJ),B=dM(n,!0)>=e&&dM(B, !0)>=e):B=!0;if(!B)return"abr";B=f.videoTrack;if(B.G.length>0&&B.J.G.length===1&&YsM(B.J).info.K360);if(!f.wS||B)return"";B=f.policy.F6;YK(f.policy)&&(B=Xw(f.N,f.wS,sr(f.N)));B=IKg(f.videoTrack,f.getCurrentTime(),B)||IKg(f.audioTrack,f.getCurrentTime(),B);return YK(f.policy)?B?"mbnm":"":(f.videoTrack.G.length> 0||f.audioTrack.G.length>0||oC(f.U,f.videoTrack,f.audioTrack)||oC(f.U,f.audioTrack,f.videoTrack))&&B?"nord":""}; PG=function(f,e,B,n){n.info.vS.C();var r=n.info.vS.G;if(!r||!B.xm()||B.Ds()===r)return!1;let L=r;var d=B.o9();if(f.policy.C_&&d&&B.isView()&&g.TF(n.info.vS.info)){const H=new DataView(r.buffer,r.byteOffset,r.byteLength);(d=RKk(H,d))?L=new Uint8Array(d.buffer,d.byteOffset,d.byteLength):f.ri("fenc",{})}f.policy.Kv&&(d=srg(f,n,new bg([L])))&&(L=ne(d));let t;(d=n.info.vS.X(0,n.info.clipId))&&(t=d.T6[0]);if(n===f.uC){if(f.WS+=1,f.oA.getVideoData().Y("html5_shorts_gapless_restart_on_init_seg_retries")&& f.WS>5)return f.WS=0,f.oA.eC({initSegStuck:1,as:n.info.Pd()}),!0}else f.WS=0,f.uC=n;f.policy.SR&&(B.abort(),e.K?.X());r=Xmw(f,B,L,t,r);e.K?.N(r,t);if(r!==0)return f.policy.yx&&vY(f.oA.getVideoData())?(f.oA.ek()||yE(f,"sepInit",r,n.info),yaG(f.oA,"sie")):yE(f,"sepInit",r,n.info),!0;n.info.zv()?(e=f.timing,e.WS||(e.WS=(0,g.T)(),g.cu("vis_a",e.WS,e.C))):(e=f.timing,e.X||(e.X=(0,g.T)(),g.cu("ais_a",e.X,e.C)));(n=n.info.vS.tA)&&f.oA.G_(new er(n.key,n.type));return B.oJ()}; PJM=function(f,e,B){if(f.policy.BS&&eN(e)?.isLocked)return!1;if(B.Cd())return!0;if(!B.xm())return!1;const n=eN(e);if(!n||n.info.type===6)return!1;if(f.policy.e3||f.J?.Ed(e,n.info.YA))f.Lq=0;else return f.VW.isSeeking()&&kf(f),f.Lq=f.Lq||(0,g.T)(),!1;if(!Gv(f,e,B,n.info))return!1;if(f.fq.G&&n.info.C===0){var r;if(B.Ds()==null){var L=rM(e);if(!(r=!L||L.vS!==n.info.vS)){b:if(r=L.Ed,L=n.info.Ed,r.length!==L.length)r=!1;else{for(var d=0;dL)return f.policy.C&&(e===f.videoTrack?f.uY=f.uY||(0,g.T)():f.PS=f.PS||(0,g.T)()),f.policy.vV&&rcg(e.J,L,!1),!1;e===f.videoTrack?f.uY=0:f.PS=0;f.policy.hR&&B===f.D9?.C&&f.qC&&(B.Lx()===0?(f.qC=!1,f.policy.hR=!1):f.tL=B.Lx());a:{L=f.policy.G6?(0,g.T)():0;d=n.W&&n.info.vS.G||void 0;var t=n.G;n.W&&(t=srg(f,n,t)||t);const H=ne(t);t=f.policy.G6?(0,g.T)():0;B=Xmw(f,B,H,n.info,d);e.K?.K(n.info,B,t-L,(0,g.T)()-t);f.WS=0;if(B===0)f.Z9&&(f.Z9=!1,f.G6=!1),f.xA=0,B=!0;else{if(B=== 2||B===5)yE(f,"checked",B,n.info);else{if(B===1){if(!f.Z9){f.Z9=!0;B=!1;break a}if(!f.G6){f.G6=!0;f.oA.seekTo(f.getCurrentTime(),{wX:"quotaExceeded",E_:!0});B=!1;break a}n.info.zv()?(L=f.policy,L.Lq=Math.floor(L.Lq*.8),L.eI=Math.floor(L.eI*.8)):(L=f.policy,L.qC=Math.floor(L.qC*.8),L.eI=Math.floor(L.eI*.8));f.policy.C?Qc(f.W,n.info.vS):TG(f.C,n.info.vS)}f.oA.eC({reattachOnAppend:B})}B=!1}}if(!B)return!1;f.policy.BS&&n.info.U()?(f.oA.S().wA()&&f.ri("eosl",{ls:n.info.Pd()}),n.isLocked=!0):(e.Wl(n),fKH(f.C, n.info));r&&(e=n.info.vS.tA)&&f.oA.G_(new er(e.key,e.type));return!0}; srg=function(f,e,B){var n;if(n=f.policy.Kv&&f.D9&&!f.D9.A&&!f.oA.YJ())e=e.info.vS.info,n=e.rj()&&e.V()&&e.video&&e.video.width<3840&&e.video.width>e.video.height;if(n&&(f.D9.A=!0,IT('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return B=cSg(B),f.policy.J&&f.ri("sp4k",{s:!!B}),B}; Xmw=function(f,e,B,n,r){try{const L=e===f.D9?.C?f.audioTrack:f.videoTrack;if(f.policy.BS&&n?.U()){if(n?.A>1)return 6;L.eI=new g.T6(()=>{const d=eN(L);f.HS()||!d?.isLocked?f.oA.S().wA()&&f.ri("eosl",{delayA:d?.info.Pd()}):GaC(L)?(f.oA.S().wA()&&f.ri("eosl",{dunlock:d?.info.Pd()}),XS(f,L===f.audioTrack)):(f.ri("nue",{ls:d.info.Pd()}),d.info.A+=1,f.D9&&f.S_())},1E4,f); f.oA.S().wA()&&f.ri("eosl",{delayS:n.Pd()});L.eI.start()}f.policy.NB&&n?.vS instanceof $G&&n.U()&&f.ri("poseos",{itag:n.vS.info.itag,seg:n.YA,lseg:n.vS.index.OE(),es:n.vS.index.U});e.appendBuffer(B,n,r)}catch(L){if(L instanceof DOMException){if(L.code===11)return 2;if(L.code===12)return 5;if(L.code===22||L.message.indexOf("Not enough storage")===0)return e=Object.assign({name:"QuotaExceededError",buffered:GF(e.Ea()).replace(/,/g,"_"),vheap:RC(f.videoTrack),aheap:RC(f.audioTrack),message:g.oU(L.message, 3),track:f.D9?e===f.D9.G?"v":"a":"u"},WF5()),f.handleError("player.exception",e),1;g.J(L)}return 4}return f.D9.Y2()?3:0}; yE=function(f,e,B,n){let r="fmt.unplayable",L=1;B===5||B===3?(r="fmt.unparseable",f.policy.C?!n.vS.info.video||U8(f.W.C).size>0||Qc(f.W,n.vS):!n.vS.info.video||U8(f.C.W).size>0||TG(f.C,n.vS)):B===2&&(f.xA<15?(f.xA++,r="html5.invalidstate",L=0):r="fmt.unplayable");n=ZA(n);n.mrs=f.D9?.J();n.origin=e;n.reason=B;n.trg="appenderr";f.handleError(r,n,L)}; Q46=function(f,e,B,n,r){var L=f.fq;var d=f.policy.C,t=!1;let H=-1;for(const w in L.C){var k=FH(L.C[w].info.mimeType)||L.C[w].info.zv();if(n===k)if(k=L.C[w].index,k.kZ(e.YA)){{t=k;var C=e;const v=t.J(C.YA);v&&v.startTime!==C.startTime?(t.segments=[],t.X(C),t=!0):t=!1}t?H=e.YA:!e.pending&&d&&(C=k.getDuration(e.YA),C!==e.duration&&(L.publish("clienttemp","mfldurUpdate",{itag:L.C[w].info.itag,seg:e.YA,od:C,nd:e.duration},!1),k.X(e),t=!0))}else k.X(e),t=!0}H>=0&&L.publish("clienttemp","resetMflIndex", {[n?"v":"a"]:H},!1);L=t;wV5(f.VW,e,n,L);f.policy.cS||f.J.hQ(e,B,n,r);e.YA===f.fq.Hs&&L&&Pm(f.fq)&&e.startTime>Pm(f.fq)&&(f.fq.Ei=e.startTime+(isNaN(f.timestampOffset)?0:f.timestampOffset),f.VW.isSeeking()&&f.VW.targetTime{f.policy.J&&f.ri("pathprobe",B)},B=>{f.oA.handleError(B)})}; IAm=function(f,e){f.fh=e;f.J&&(f.J.fh=e);e=f.fh;var B=f.videoTrack.vS.info.rj();e.hE=B;e.dA({swebm:B});f.U.fh=f.fh;f.policy.G&&(f.G.fh=f.fh,SQM(f))}; $Q0=function(f,e){if(f.D9&&f.D9.G){if(f.policy.uL){var B=f.audioTrack.X?.X()||null;if(B&&B.G8()){var n=f.oA;if(n.h$&&(n.h$.C=B,B=n.Kh,B.qoe)){B=B.qoe;n=n.h$;const r=g.uY(B.provider);lAw(B,r,n)}}}f.policy.ZI&&(B=f.videoTrack.X?.X()||null)&&B.zv()&&(n=f.oA,n.g6&&(n.g6.C=B,B=n.Kh,B.qoe&&oGk(B.qoe,n.g6)));e-=isNaN(f.timestampOffset)?0:f.timestampOffset;f.getCurrentTime()!==e&&f.resume();f.VW.isSeeking()&&f.D9&&!f.D9.Y2()&&(n=f.getCurrentTime()<=e&&en.startTime>=e&&UQH(f,n.startTime,!1)); return B&&B.startTime0)B=!0;else{for(const n of f.J.values())if(n.cryptoPeriodIndex===B){B=!0;break a}B=!1}}f.publish("log_qoe",{wvagt:"reqnews",canskip:B});B||f.publish("rotated_need_key_info_ready",e)}; rFw=function(f){switch(f){case "DRM_TRACK_TYPE_AUDIO":return 1;case "DRM_TRACK_TYPE_SD":return 2;case "DRM_TRACK_TYPE_HD":return 3;case "DRM_TRACK_TYPE_UHD1":return 4;case "DRM_TRACK_TYPE_UHD2":return 5;default:return 0}}; tKM=function(f,e=!1){var B=f.status==="LICENSE_STATUS_OK"?0:9999,n=null;if(f.license)try{n=uW(f.license)}catch(r){g.J(r)}if(B===0&&!n)return null;n=new Ltk(B,n);B!==0&&f.reason&&(n.errorMessage=f.reason);if(f.authorizedFormats){B={};const r=[],L={};for(const d of f.authorizedFormats){if(!d.trackType||!d.keyId)continue;e&&n.G.push({trackType:rFw(d.trackType),isHdr:!!d.isHdr});let t=dsG[d.trackType];if(t){t==="HD"&&f.isHd720&&(t="HD720");d.isHdr&&(t+="HDR");B[t]||(r.push(t),B[t]=!0);let H=null;try{H= uW(d.keyId)}catch(k){g.J(k)}H&&(L[g.ON(H,4)]=t)}}n.J=r;n.C=L}f.nextFairplayKeyId&&(n.nextFairplayKeyId=f.nextFairplayKeyId);f.sabrLicenseConstraint&&(n.sabrLicenseConstraint=uW(f.sabrLicenseConstraint));return n}; HT5=function(f,e,B){f.onSuccess=e;f.onError=B}; kfk=function(f,e,B,n){const r={timeout:3E4,onSuccess:L=>{if(!f.HS())if(NJ("drm_net_r",void 0,f.timer),L=tKM(L,f.G))f.onSuccess(L,f.requestNumber);else f.onError(f,"drm.net","t.p;p.i")}, onError:L=>{if(!f.HS())if(L&&L.error)L=L.error,f.onError(f,"drm.net.badstatus",`t.r;p.i;c.${L.code};s.${L.status}`,L.code);else f.onError(f,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:()=>{f.onError(f,"drm.net",`${"rt"}.req.${f.requestNumber}`)}}; n&&(r.qE=`Bearer ${n}`);g.xn(B,"player/get_drm_license",e,r)}; fq=function(f,e,B=!1){Go(e);(B||f.Ta.wA())&&f.publish("ctmp","drmlog",e)}; CD6=function(f){let e=f.baseUrl;Hvl(e)||f.error("drm.net",2,"t.x");if(!KY(e,"fexp")){const B=["23898307","23914062","23916106","23883098"].filter(n=>f.Ta.experiments.experiments[n]); B.length>0&&(f.W.fexp=B.join())}for(const B of Object.keys(f.W))e=GLw(e,B,f.W[B]);return e}; bTk=function(f,e,B,n){wkw(e,(r,L)=>{if(f.Ta.JE().C.jI(vL5)&&f.G.flavor==="widevine")a:{let d=!1;try{d=RJ(r,cgm).type===4}catch(t){}if(d){if(fq(f,{cert_cache_hit:!!f.jy?.certificate},!0),n){e?.update(n);break a}}else if(B){B.C=e??null;B.licenseRequest=r;break a}eT(f,r,L,d)}else eT(f,r,L)},(r,L,d)=>{if(!f.HS()){L=void 0; var t=1;g.ck(f.G)&&g.DH(f.Ta)&&f.Ta.Y("html5_enable_safari_fairplay")&&d===1212433232&&(L="ERROR_HDCP",t=f.Ta.Y("html5_safari_fairplay_ignore_hdcp")?0:t);f.error("drm.keyerror",t,r,L)}},()=>{f.HS()||(fq(f,{onkyadd:1}),f.A||(f.publish("sessionready"),f.A=!0))},r=>{f.vF(r)})}; eT=function(f,e,B,n=!1){if(!f.HS())if(e){fq(f,{onkmtyp:B});f.status="km";switch(B){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":ZTC(f,e);return;default:f.publish("ctmp","message_type",{t:B,l:e.byteLength})}f.Cq||(NJ("drm_gk_f",void 0,f.videoData.Ed),f.Cq=!0,f.publish("newsession",f));if(zf(f.G)&&(e=RyY(e),!e))return;e=new Kt0(e,++f.requestNumber,f.videoData.Ed,f.Ta.Y("html5_enable_vp9_fairplay"));HT5(e,r=>{qC6(f,r,n)},(r,L,d)=>{if(!f.HS()){var t= 0; r.C.G>=3&&(t=1,L="drm.net.retryexhausted");fq(f,{onlcsrqerr:L,info:d});f.error(L,t,d);f.shouldRetry(xk(t),r)&&zyl(f,r)}}); g.A(f,e);aHC(f,e)}else f.error("drm.unavailable",1,"km.empty")}; pkm=function(f,e,B=null,n){let r=null;try{r=e.createSession(f.K,L=>{fq(f,{m:L})}),bTk(f,r,n,B)}catch(L){e="t.g",L instanceof DOMException&&(e+=`;c.${L.code}`),f.publish("licenseerror","drm.unavailable",1,e,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}return r}; ZTC=function(f,e){fq(f,{sdpvrq:1});f.U=Date.now();if(f.G.flavor!=="widevine")f.error("drm.provision",1,`e.flavor;f.${f.G.flavor};l.${e.byteLength}`);else{var B={cpn:f.videoData.clientPlaybackNonce};Object.assign(B,f.Ta.C);B=g.vT("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",B);e={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, e)}),responseType:"arraybuffer"};g.sV(B,e,3,500).then(oJ(n=>{n=n.xhr;if(!f.HS()){n=new Uint8Array(n.response);var r=String.fromCharCode.apply(null,n);try{var L=JSON.parse(r)}catch(d){}L&&L.signedResponse?(f.publish("ctmp","drminfo",{provisioning:1}),L=(Date.now()-f.U)/1E3,f.U=NaN,f.publish("ctmp","provs",{et:L.toFixed(3)}),f.J&&f.J.update(n)):(L=L&&L.error&&L.error.message,n="e.parse",L&&(n+=`;m.${L}`),f.error("drm.provision",1,n))}}),oJ(n=>{f.HS()||f.error("drm.provision",1,`e.${n.errorCode};c.${n.xhr&& n.xhr.status}`)}))}}; qC6=function(f,e,B){if(!f.HS())if(fq(f,{onlcsrsp:1}),f.status="rr",e.statusCode!==0)f.error("drm.auth",1,`t.f;c.${e.statusCode}`,e.errorMessage||void 0);else{NJ("drm_kr_s",void 0,f.videoData.Ed);if(e.heartbeatParams&&e.heartbeatParams.url&&f.videoData.Y("outertube_streaming_data_always_use_staging_license_service")){var n=f.G.J.match(/(.*)youtube.com/g);n&&(e.heartbeatParams.url=n[0]+e.heartbeatParams.url)}e.heartbeatParams&&f.publish("newlicense",e.heartbeatParams);e.J&&(f.V=e.J,f.videoData.jJ|| f.publish("newlicense",new cF5),f.videoData.jJ=!0,f.X=yG(f.V,r=>r.includes("HDR"))); e.G&&(f.N=e.G);e.C&&(f.Ta.Y("html5_enable_vp9_fairplay")&&f.G.C()?(n=g.ON(cD(f.fairplayKeyId),4),f.C[n]={type:e.C[n],status:"unknown"}):f.C=Vg(e.C,r=>({type:r,status:"unknown"}))); pT(f.G)&&(e.message=hFG(g.ON(e.message)));f.J&&(fq(f,{updtks:1}),f.status="ku",B&&f.jy&&f.Ta.JE().C.jI(vL5)&&(f.jy.certificate=e.message),f.J.update(e.message).then(()=>{NJ("drm_kr_f",void 0,f.videoData.Ed);Bw(f)||(fq(f,{ksApiUnsup:1}),f.publish("keystatuseschange",f));!B&&f.jy&&f.Ta.JE().C.jI(YCk)&&(f.jy.C=pkm(f,f.jy.mediaKeys,f.jy?.certificate,f.jy))},r=>{r=`msuf.req.${f.requestNumber};msg.${g.oU(r.message,3)}`; f.error("drm.keyerror",1,r)})); g.ck(f.G)&&f.publish("fairplay_next_need_key_info",f.baseUrl,e.nextFairplayKeyId);f.Ta.Y("html5_enable_vp9_fairplay")&&f.G.C()&&f.publish("qualitychange",AF5(f.V));e.sabrLicenseConstraint&&f.publish("sabrlicenseconstraint",e.sabrLicenseConstraint)}}; aHC=function(f,e){f.status="km";NJ("drm_net_s",void 0,f.videoData.Ed);const B=new g.dN(f.Ta.CG),n={context:g.wq(B.config_||g.C8())};n.drmSystem=jPd[f.G.flavor];n.videoId=f.videoData.videoId;n.cpn=f.videoData.clientPlaybackNonce;n.sessionId=f.sessionId;n.licenseRequest=g.ON(e.message);n.drmParams=f.videoData.drmParams;isNaN(f.cryptoPeriodIndex)||(n.isKeyRotated=!0,n.cryptoPeriodIndex=f.cryptoPeriodIndex);var r=!!f.videoData.G?.X()?.isHdr();n.drmVideoFeature=r?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR"; f.Ta.experiments.JE().C.jI(OTO)&&(n.context=g.sf(f.videoData));if(n.context&&n.context.client){if(r=f.Ta.C)n.context.client.deviceMake=r.cbrand,n.context.client.deviceModel=r.cmodel,n.context.client.browserName=r.cbr,n.context.client.browserVersion=r.cbrver,n.context.client.osName=r.cos,n.context.client.osVersion=r.cosver;f.Ta.experiments.JE().C.jI(OTO)||(n.context.user=n.context.user||{},f.videoData.Cq&&(n.context.user.credentialTransferTokens=[{token:f.videoData.Cq,scope:"VIDEO"}]),f.videoData.qC&& (n.context.user.kidsParent={oauthToken:f.videoData.qC}));n.context.request=n.context.request||{};n.context.request.mdxEnvironment=f.videoData.mdxEnvironment||n.context.request.mdxEnvironment;g.ck(f.G)&&(n.fairplayKeyId=g.ON(cD(f.fairplayKeyId)));g.vS(f.Ta,f.videoData.U()).then(L=>{kfk(e,n,B,L);f.status="rs"})}else f.error("drm.net",2,"t.r;ic.0")}; oLd=function(f,e,B){const n={};n.isHdr=e.includes("HDR");switch(e.replace("HDR","").replace("720","")){case "AUDIO":n.trackType=1;break;case "SD":n.trackType=2;break;case "HD":n.trackType=3;break;case "UHD1":n.trackType=4;break;case "UHD2":n.trackType=5;break;default:n.trackType=0}!n.trackType||B[e]||Bw(f)&&!nq(f,e)||(f.authorizedFormats.push(n),B[e]=!0)}; VK6=function(f,e){const B=[];for(const n of Object.keys(f.C))B.push(`${n}_${f.C[n].type}_${f.C[n].status}`);return B.join(e)}; Bw=function(f){var e;if(e=f.Ed&&f.J!=null)f=f.J,e=!(!f.C||!f.C.keyStatuses);return e}; zyl=function(f,e){var B=e.C.getValue();B=new g.T6(()=>{aHC(f,e)},B); g.A(f,B);B.start();g.y4(e.C);fq(f,{rtyrq:1})}; rl=function(f){const e={};e[f.status]=Bw(f)?VK6(f,"."):f.V.join(".");return e}; nq=function(f,e){for(const B in f.C)if(f.C[B].status==="usable"&&f.C[B].type===e)return!0;return!1}; lHm=function(f,e){for(const B in f.C)if(f.C[B].type===e)return f.C[B].status}; u5w=function(f){let e;e=f[0];f[0]=f[3];f[3]=e;e=f[1];f[1]=f[2];f[2]=e;e=f[4];f[4]=f[5];f[5]=e;e=f[6];f[6]=f[7];f[7]=e}; AF5=function(f){return g.eB(f,"UHD2")||g.eB(f,"UHD2HDR")?"highres":g.eB(f,"UHD1")||g.eB(f,"UHD1HDR")?"hd2160":g.eB(f,"HD")||g.eB(f,"HDHDR")?"hd1080":g.eB(f,"HD720")||g.eB(f,"HD720HDR")?"hd720":"large"}; RyY=function(f){var e="";for(let B=0;B{f.onClosed()}),null)):f.G&&(W1(f.V,f.G,["mskeymessage", "webkitkeymessage"],f.A),W1(f.V,f.G,["mskeyerror","webkitkeyerror"],f.Ed),W1(f.V,f.G,["mskeyadded","webkitkeyadded"],f.N))}; ms5=function(f,e,B){g.J(B);f.J&&(B instanceof DOMException&&(e+=`;n.${B.name};m.${B.message}`),f.J(e))}; Us5=function(f){W1(f.V,f.element,["keymessage","webkitkeymessage"],f.Ed);W1(f.V,f.element,["keyerror","webkitkeyerror"],f.N);W1(f.V,f.element,["keyadded","webkitkeyadded"],f.K)}; Nud=function(f,e=null){if(f.C.keySystemAccess)return f.X=f.X.then(()=>f.mediaKeys?Promise.resolve():e?.mediaKeys&&e.Kq?.Wt()?(f.mediaKeys=e?.mediaKeys,Promise.resolve()):f.C.keySystemAccess.createMediaKeys().then(B=>{f.HS()||(f.mediaKeys=B,e?.Kq?.Wt()&&(e.mediaKeys=B))})).then(()=>{const B=e?.V3(); return f.element&&f.element!==B&&f.element.mediaKeys?f.element.setMediaKeys(null):Promise.resolve()}).then(()=>{f.element=e?.V3(); return f.element&&f.element.mediaKeys!==f.mediaKeys?f.element.setMediaKeys(f.mediaKeys):Promise.resolve()}),f.X; qs(f.C)?f.G=new (RP())(f.C.keySystem):aP(f.C)?(f.G=new (RP())(f.C.keySystem),f.element?.webkitSetMediaKeys(f.G)):Us5(f);return null}; hyY=function(f,e){const B=new Uint8Array(270);for(let n=0;n<135;n++)B[n*2]=''.charCodeAt(n);f=f.G.createSession("video/mp4",e,B);return new Lq(null,null,null,null,f)}; SCC=function(f,e){e=gL5(e,f.C.OL);e=f.G.createSession("video/mp4",e);return new Lq(null,null,null,null,e,f.U)}; dl=function(f,e){let B=f.W[e.sessionId];!B&&f.J&&(B=f.J,f.J=null,B.sessionId=e.sessionId,f.W[e.sessionId]=B);return B}; gL5=function(f,e){var B=f.subarray(4);B=new Uint16Array(B.buffer,B.byteOffset,B.byteLength/2);B=String.fromCharCode.apply(null,B).match(/ek=([0-9a-f]+)/)[1];var n="";for(var r=0;r{ELm(f)}),oJ(B=>{if(!f.HS()){g.J(B); var n="t.a";B instanceof DOMException&&(n+=";n."+B.name+";m."+B.message);f.publish("licenseerror","drm.unavailable",1,n,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(f.G({mdkrdy:1}),f.Ed=!0); f.A&&(e=Nud(f.A,f.mediaElement))}; ELm=function(f){if(!f.HS())if(f.Ta.Y("html5_drm_set_server_cert")||f.C.C()){const e=f.mediaKeys.setServerCertificate();e?e.then(oJ(B=>{f.Ta.wA()&&f.publish("ctmp","ssc",{success:B})}),oJ(B=>{f.publish("ctmp","ssce",{n:B.name, m:B.message})})).then(oJ(()=>{tt(f)})):tt(f)}else tt(f)}; DsG=function(f,e,B){f.qC=!0;B=new er(e,B);f.Ta.Y("html5_eme_loader_sync")&&(f.U.get(e)||f.U.set(e,B));Tul(f,B)}; Tul=function(f,e){if(!f.HS()){f.G({onInitData:1});if(f.Ta.Y("html5_eme_loader_sync")&&f.videoData.J&&f.videoData.J.C()){var B=f.X.get(e.initData);e=f.U.get(e.initData);if(!B||!e)return;e=B;B=e.initData;f.U.remove(B);f.X.remove(B)}f.G({initd:e.initData.length,ct:e.contentType});if(f.C.flavor==="widevine")if(f.PS&&!f.videoData.isLivePlayback)Hw(f);else{if(!(f.Ta.Y("vp9_drm_live")&&f.videoData.isLivePlayback&&e.rj)){f.PS=!0;B=e.cryptoPeriodIndex;var n=e.C;Kag(e);e.rj||(n&&e.C!==n?f.publish("ctmp","cpsmm", {emsg:n,pssh:e.C}):B&&e.cryptoPeriodIndex!==B&&f.publish("ctmp","cpimm",{emsg:B,pssh:e.cryptoPeriodIndex}));f.publish("widevine_set_need_key_info",e)}}else f.WS(e)}}; Hw=function(f){if(f.qC&&f.Ed&&!f.cS){for(;f.V.length;){const e=f.V[0],B=JF5(f)?qsC(e):g.ON(e.initData);if(f.C.C()&&!e.G)f.V.shift();else{if(f.J.get(B))if(f.C.flavor!=="fairplay"||f.C.C()){f.V.shift();continue}else f.J.delete(B);Kag(e);break}}f.V.length&&f.createSession(f.V[0])}}; tt=function(f){f.HS()||(f.Ed=!0,f.G({onmdkrdy:1}),Hw(f))}; JF5=function(f){return f.C.flavor==="widevine"&&f.videoData.Y("html5_drm_cpi_license_key")}; MKG=async function(f){if(g.Cs()&&f.mediaKeys.mediaKeys?.getMetrics){var e=await f.mediaKeys.getMetrics();e&&(iW(e)||(e=g.kq(e)),/^[A-Za-z0-9_-]+={0,3}$/.test(e)||(e=g.oU(e,void 0,!0)),f.publish("ctmp","drm",{metrics:e}))}}; kQ=function(){const f=T8m();return!(!f||f==="visible")}; xsm=function(f){const e=GfC();e&&document.addEventListener(e,f,!1)}; Wt6=function(f){const e=GfC();e&&document.removeEventListener(e,f,!1)}; GfC=function(){let f;if(document.visibilityState)f="visibilitychange";else{if(!document[Ny+"VisibilityState"])return"";f=Ny+"visibilitychange"}return f}; XkO=function(f){sPg=f}; yF5=function(f){Cq=f}; PDH=function(f,e){if(f.videoData.K)return!1;f.V9.xA+=1;if(f.V9.xA<=10)return!1;e.exiled=`${f.V9.xA}`;f.rC("qoe.start15s",e);f.oA.publish("playbackstalledatstart");return!0}; IHY=function(f){return f.G?!0:f.V9.Ed==="yt"?lK(f.videoData)?f.oA.loader?.sE():f.videoData.K?f.videoData.Fl<25:!f.videoData.Fl:!1}; $sd=function(f){if(!f.G){f.G=!0;var e=f.oA.getPlayerState();e=e.isPaused()||e.isSuspended();f.oA.Q5();e&&!MU(f.videoData)||f.oA.publish("signatureexpired")}}; wl=function(f,e,B){const n=f.videoData.G;var r=f.videoData.V,L=f.V9.Y("html5_disable_codec_fallback_for_drm")&&f.videoData.xK();vY(f.oA.getVideoData())&&yaG(f.oA,"pe");if((e==="progressive.net.retryexhausted"||e==="fmt.unplayable"||e==="fmt.decode")&&!f.oA.qn.W&&n&&n.itag==="22")return f.oA.qn.W=!0,f.rC("qoe.restart",{reason:"fmt.unplayable.22"}),f.oA.QP(),!0;var d=!1;if(f.videoData.isExternallyHostedPodcast){if(d=f.videoData.c7)B.mimeType=d.type,f.ri("3pp",{url:d.url});B.ns="3pp";f.oA.a6(e,1,"VIDEO_UNAVAILABLE", Go((new g.WP(e,B,1)).details));return!0}var t=f.bF+3E4<(0,g.T)()||f.C.isActive();if(f.V9.Y("html5_empty_src")&&f.videoData.isAd()&&e==="fmt.unplayable"&&/Empty src/.test(`${B.msg}`))return B.origin="emptysrc",f.rC("auth",B),!0;t||iT0(f.oA.lE())||(B.nonfg="paused",t=!0,f.oA.pauseVideo());e!=="fmt.decode"&&e!=="fmt.unplayable"||!r?.U()||(NHd(f.V9.W,r.NC),B.acfallexp=r.NC,d=t=!0);!t&&f.J>0&&(f.C.start(),t=!0,B.delayed="1",--f.J);r=f.oA.loader;t||!n?.C()&&!n?.V()||L||(NHd(f.V9.W,n.NC),d=t=!0,B.cfallexp= n.NC);if(!t)return PDH(f,B);L=!1;f.W?f.bF=(0,g.T)():L=f.W=!0;t=f.videoData;if(t.WS){t=t.WS.W();var H=Date.now()/1E3+1800;t=t6048E5&&vw(f,"signature",!0);return!1}; rq5=function(f){if(f.videoData.errorDetail==="7"&&g.IM(f.V9)){const e=!f.videoData.isInlinePlaybackNoAd;e&&f.V9.IR++;vw(f,"innertube_player_reload_required",e&&f.V9.IR>1);return!0}return!1}; bu=function(f,e="fmt.noneavailable"){var B=f.V9.W;B.U=!1;B.C=!0;f.rC("qoe.restart",{e,detail:"hdr"});f.oA.dZ(!0)}; LLg=function(f){if(f.oA.lE().isInline())return Z_;f=Bt[Mm()];return g.ig("auto",f,!1,"s")}; diC=function(f,e){var B;a:if((B=e.C)&&B.videoInfos.length){for(var n of B.videoInfos)if(n.W?.smooth){B=n.video.qualityOrdinal;break a}B=B.videoInfos[0].video.qualityOrdinal}else B=0;(g.H1("armv7")||g.H1("aarch64")||g.H1("android"))&&!g.IM(f.Ta)&&e.C.videoInfos[0].V()&&(B=Math.min(B,g.V7.large));n=g.tS(f.Ta.experiments,"html5_chipset_soft_cap");n>0&&(B=Math.min(B,n));n=g.tS(f.Ta.experiments,"html5_sabr_non_streaming_xhr_soft_cap");!sh&&n>0&&(B=Math.min(B,n));if(n=g.tS(f.Ta.experiments,"html5_max_vertical_resolution")){let d= 4320;for(var r=0;rn&&(d=Math.min(d,L.video.qualityOrdinal))}if(d<4320){r=0;for(L=0;L60&&!g.IM(f.Ta)?new $q(0,360,!1,"v"):Z_}; Kq=function(f,e,B){if(f.Ta.experiments.SI("html5_disable_client_autonav_cap_for_onesie")&&e.hV()||g.IM(f.Ta)&&(Mm(-1)>=1080||e.osid))return Z_;let n=g.tS(f.Ta.experiments,"html5_autonav_quality_cap");const r=g.tS(f.Ta.experiments,"html5_autonav_cap_idle_secs");return n&&e.isAutonav&&vR()/1E3>r?(B&&(n=tcY(f,B,n)),new $q(0,n,!1,"e")):Z_}; qK=function(f,e){if(!e.C.C())return f.W?new $q(0,360,!1,"b"):Z_;var B=!1,n=!1;for(var r of e.C.videoInfos)r.C()?B=!0:n=!0;B=B&&n;n=0;r=g.tS(f.Ta.experiments,"html5_performance_cap_floor");r=f.Ta.G?240:r;for(const L of e.C.videoInfos){if(B&&L.C())continue;e=kL(L.NC,L.video.fps,f.J);const d=L.video.qualityOrdinal;if(Math.max(e,r)>=d){n=d;break}}return new $q(0,n,!1,"b")}; aG=function(f,e){const B=zu(f,e.C?.videoInfos),n=f.oA.getPlaybackRate();return n>1&&B?(f=Fm5(f.Ta.W,e.C.videoInfos,n),new $q(0,f,!0,"o")):new $q(0,0,!1,"o")}; kH6=function(f,e){if(f.Y("html5_disable_ustreamer_constraint_for_sabr")&&lK(e.videoData))return Z_;const B=f.oA.AX();f.Y("html5_use_video_quality_cap_for_ustreamer_constraint")&&B&&B.aE>0&&e3(e.videoData.HB)&&(f=B.aE,e.videoData.HB=new $q(0,f,!1,"u"));return e.videoData.HB}; pq=function(f,e,B){g.IM(f.Ta)&&(B=B.compose(f.MK(e)));return B}; zu=function(f,e){return e&&g.IM(f.Ta)?e.some(B=>B.video.G()):!1}; tcY=function(f,e,B){if(f.Y("html5_optimality_defaults_chooses_next_higher")&&B)for(f=e.C.videoInfos,e=1;e49?"p60":n>32?"p48":""}`;B=kL(B,n,L);r>0&&(B=Math.min(B,r));!CT.has(e)&&WA().includes(e)?(n=xq(),+n[e]>0&&(B=Math.min(+n[e],B)),n[e]!==B&&(n[e]=B,g.yT("yt-player-performance-cap",n,2592E3))):CT.has(e)||L==null?(n=WA().slice(),n.includes(e)||(n.push(e),g.yT("yt-player-performance-cap-active-set",n,2592E3)),Hk.set(e,B)):(CT.add(e),L?.set(e,B));f.oA.PB()}; vjk=function(){return Vg(xq(),f=>`${f}`)}; b3M=function(f,e,B,n){if(!e||!B||!e.videoData.G)return!1;const r=g.tS(f.Ta.experiments,"html5_df_downgrade_thresh"),L=f.Y("html5_log_media_perf_info");if(!((0,g.T)()-f.V<5E3?0:L||r>0))return!1;const d=((0,g.T)()-f.V)/1E3;f.V=(0,g.T)();B=B.getVideoPlaybackQuality();if(!B)return!1;const t=B.droppedVideoFrames-f.U,H=B.totalVideoFrames-f.K;f.U=B.droppedVideoFrames;f.K=B.totalVideoFrames;const k=B.displayCompositedVideoFrames===0?0:B.displayCompositedVideoFrames||-1;L&&f.Ta.wA()&&f.oA.ri("ddf",{dr:B.droppedVideoFrames, de:B.totalVideoFrames,comp:k});if(n)return f.C=0,!1;if((H-t)/d>f.N||!r||g.IM(f.Ta))return!1;f.C=(H>60?t/H:0)>r?f.C+1:0;if(f.C!==3)return!1;wSC(f,e.videoData.G);f.oA.ri("dfd",Object.assign({dr:B.droppedVideoFrames,de:B.totalVideoFrames},vjk()));return!0}; Z3Y=function(f,e){f.Y("html5_log_media_perf_info")&&(f.oA.ri("perfdb",vjk()),f.oA.ri("sessionperfdb",Object.fromEntries(Hk.entries())),f.oA.ri("playbackperfdb",Object.fromEntries(f.J.entries())),f.oA.ri("hwc",{nch:navigator.hardwareConcurrency},!0),e&&f.oA.ri("mcdb",{itags:e.C.videoInfos.filter(B=>B.W?.smooth===!1).map(B=>B.itag).join("-")}))}; RDG=function(f){switch(f.Ta.playerCanaryStage?.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";case "xlarge":return"HTML5_PLAYER_CANARY_STAGE_XLARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; KL5=function(f){f.C>=0||(f.provider.oA.getVisibilityState()===3?f.W=!0:(f.C=g.uY(f.provider),f.delay.start()))}; qh5=function(f){if(!(f.G<0)){var e=g.uY(f.provider),B=e-f.V;f.V=e;f.playerState.G()?f.playTimeSecs+=B:f.playerState.isBuffering()&&!f.playerState.C(16)&&(f.rebufferTimeSecs+=B)}}; YQ=function(f){f.C.startTime=f.J;f.C.endTime=f.G;f.serializedPlaybackPingContextLoggingData?.length&&(f.C.serializedPlaybackPingContextLoggingData=f.serializedPlaybackPingContextLoggingData);f.serializedStitchedClipLoggingMetadata?.length&&(f.C.serializedStitchedClipLoggingMetadata=f.serializedStitchedClipLoggingMetadata);let e=!1;f.segments.length&&g.QG(f.segments).isEmpty()?(f.segments[f.segments.length-1].previouslyEnded&&(f.C.previouslyEnded=!0),f.segments[f.segments.length-1]=f.C,e=!0):f.segments.length&& f.C.isEmpty()||(f.segments.push(f.C),e=!0);e?f.C.endTime===0&&(f.previouslyEnded=!1):f.C.previouslyEnded&&(f.previouslyEnded=!0);f.U+=f.G-f.J;f.C=cw(f.provider);f.C.previouslyEnded=f.previouslyEnded;f.provider.Ta.JE().C.jI(zD5)&&(f.W+=JSON.stringify(f.C).length);f.previouslyEnded=!1;f.J=f.G}; aoC=function(f){g.Fx(f.X);f.X=NaN}; pS5=function(f){aoC(f);f.X=g.ls(()=>{f.update()},100); f.rl=g.uY(f.provider);f.C=cw(f.provider)}; cq0=function(f,e,B){B-=f.rl;return e===f.G&&B>.5}; At=function(f,e){const B=f.sendVisitorIdHeader?f.visitorData:void 0;return g.vS(f.Ta,f.accessToken).then(n=>Yf(f.uri,f.Ta,f.pageId,B,n,e))}; YhH=function(f){f.indexOf("watchtime")!==-1&&g.t$("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:f}})}; Aql=function(f,e){f.attestationResponse&&At(f).then(B=>{B=B||{};B.method="POST";B.postParams={atr:f.attestationResponse};f.eI?f.WS?MB().sendAndWrite(e,B):MB().sendThenWrite(e,B):g.QY(e,B)})}; jpY=function(f){const e={vssSegmentMetadata:[]};if(yG(f.segments,B=>!!B.serializedPlaybackPingContextLoggingData||!!B.serializedStitchedClipLoggingMetadata)){for(const B of f.segments)e.vssSegmentMetadata.push({serializedPlaybackPingContextLoggingData:B.serializedPlaybackPingContextLoggingData||[], serializedStitchedClipLoggingMetadata:B.serializedStitchedClipLoggingMetadata||[]});return e}}; O3M=function(f,e){return()=>{f.Ta.Y("html5_simplify_pings")?(f.C=f.PS,f.mS=e(),f.EE=0,f.send()):At(f).then(B=>{var n=c$(f);n.cmt=n.len;n.lact="0";const r=e().toFixed(3);n.rt=Number(r).toString();n=g.vT(f.uri,n);f.Ta.Y("vss_through_gel_double")&&YhH(n);f.eI?(B==null&&(B={}),f.WS?MB().sendAndWrite(n,B):MB().sendThenWrite(n,B)):B?g.QY(n,B):g.gq(n)})}}; p6=function(f,e){return g.xg(e,f.G).join(",")}; sN5=function(f,e){if(e&&f.V){var B=new Set(["q","feature","mos"]),n=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),r=new Set(["aqi","autonav","list","ssrt","upt"]);f.V.ns==="3pp"&&(e.ns="3pp");for(const L of Object.keys(f.V))n.has(L)||B.has(L)||r.has(L)&&!f.V[L]||(e[L]=f.V[L])}}; jT=function(f,e){var B=ojk(f.provider);Object.assign(B,{state:f.N});e=new Vcl(f.provider.videoData,f.provider.Ta,e,B);e.C=f.provider.oA.SU();B=f.provider.videoData.clientPlaybackNonce;e.C=f.provider.oA.Ih(B);f.provider.videoData.isLivePlayback||(e.PS=f.provider.oA.getDuration(B));f.provider.videoData.C&&(B=f.provider.videoData.C.Lc(e.C))&&(e.Ed=B-e.C,Rl(f.provider.videoData)&&(e.C+=f.provider.oA.gA(),e.Ed-=f.provider.oA.gA()));e.mS=g.uY(f.provider);e.segments=[cw(f.provider)];return e}; loG=function(f){var e=f.provider.videoData.At;const B=f.provider.videoData.To,n=[10+e,10,10,40+B-e,40];var r=f.provider.videoData.getPlayerResponse()?.playbackTracking;const L=r?.videostatsScheduledFlushWalltimeSeconds;r=r?.videostatsDefaultFlushIntervalSeconds;if(!(L&&L.length>0&&r))return n;e=[L[0]+e,...L.slice(1).map((d,t)=>d-L[t]), r+B-e,r];return e.some(d=>d<0)?(g.Vj(f.logger,347111855,`Neg vss scheduled pings ${L} ${r}`),n):e}; Od=function(f,e=NaN){const B=g.uY(f.provider);e=isNaN(e)?B:e;e=Math.ceil(e);const n=f.cS[f.Ed];f.Ed+1{if(!f.HS()){f.W=NaN;var L=f.A(),d=uhm(f,L);d.N=r;var t=f.eI>1E3;!(L.length>1)&&L[0].isEmpty()||t||(d.X=Od(f,r));d.send();f.eI++}},(r-B)*1E3); return f.G=r}; oG=function(f,e){const B=f.provider.Ta;g.vS(f.provider.Ta,f.provider.videoData.U()).then(n=>{const r=f.provider.Ta.pageId,L=f.provider.Ta.sendVisitorIdHeader?f.provider.videoData.visitorData:void 0,d=f.provider.Ta.Y("vss_pings_using_networkless")||f.provider.Ta.Y("kevlar_woffle"),t=f.provider.Ta.Y("allow_skip_networkless");n=Yf(e,B,r,L,n);AI(e,n,{token:f.provider.videoData.dj,Up:f.provider.videoData.pF,mdxEnvironment:f.provider.videoData.mdxEnvironment},B,void 0,d&&!t,!1,!0)})}; uhm=function(f,e){const B=jT(f,"watchtime");FLC(f)&&(B.delayThresholdMet=!0,f.Lq=!0);if(f.J>0){for(const n of e)n.startTime-=f.J,n.endTime-=f.J;B.C-=f.J}else B.C=f.C.G;B.segments=e;return B}; FLC=function(f){var e;if(e=f.provider.videoData.isLoaded()&&f.provider.videoData.Dv&&f.V&&!f.Lq)e=f.C,e=e.U+e.SU()-e.J>=f.provider.videoData.Dv;return!!e}; V$=function(f,e){const B=f.K(!isNaN(f.G));e&&(f.G=NaN);return B}; mil=function(f){f.provider.videoData.youtubeRemarketingUrl&&!f.uY&&(oG(f,f.provider.videoData.youtubeRemarketingUrl),f.uY=!0)}; Uik=function(f){f.provider.videoData.googleRemarketingUrl&&!f.PS&&(oG(f,f.provider.videoData.googleRemarketingUrl),f.PS=!0)}; lu=function(f){if(!f.HS()&&f.V){f.N="paused";var e=V$(f);e.isFinal=!0;e.send();f.dispose()}}; NCw=function(f,e,B){if(!f.WS){B||(B=jT(f,"atr"));B.attestationResponse=e;try{B.send()}catch(n){if(n.message!=="Unknown Error")throw n;}f.WS=!0}}; g.uY=function(f){return hDl(f)()}; z1w=function(f){const e=navigator.connection?.type||"";if(e)return gjl[e]||gjl.other;if(g.IM(f.Ta)){f=navigator.userAgent;if(/[Ww]ireless[)]/.test(f))return 3;if(/[Ww]ired[)]/.test(f))return 30}return 0}; cw=function(f){const e=new ShC;e.J=ojk(f).cc?.toString()||"-";e.playbackRate=f.oA.getPlaybackRate();var B=f.oA.getVisibilityState();B!==0&&(e.visibilityState=B);f.Ta.MC&&(e.G=1);e.V=f.videoData.Ia;e.compositeLiveStatusToken=f.videoData.compositeLiveStatusToken;e.heartbeatLoggingToken=f.videoData.heartbeatLoggingToken;B=f.oA.getAudioTrack();B.Z_&&B.Z_.id&&B.Z_.id!=="und"&&(e.audioId=B.Z_.id);e.connectionType=z1w(f);e.volume=f.oA.getVolume();e.muted=f.oA.isMuted();e.clipId=f.oA.fC()||"-";e.C=f.videoData.GK|| "-";return e}; ojk=function(f){const e=f.oA.dS()||{};e.fs=f.oA.CY();e.volume=f.oA.getVolume();e.muted=f.oA.isMuted()?1:0;e.mos=e.muted;e.clipid=f.oA.fC();e.playerheight=f.oA.getPlayerSize()?.height||0;e.playerwidth=f.oA.getPlayerSize()?.width||0;f=f.videoData;const B={};f.G&&(B.fmt=f.G.itag,f.V&&(f.MC?f.V.itag!==f.G.itag:f.V.itag!=f.G.itag)&&(B.afmt=f.V.itag));B.ei=f.eventId;B.list=f.playlistId;B.cpn=f.clientPlaybackNonce;f.videoId&&(B.v=f.videoId);f.ES&&(B.infringe=1);(f.Mk?0:f.mS)&&(B.splay=1);const n=ud(f);n&& (B.live=n);f.HF&&(B.sautoplay=1);f.nz&&(B.autoplay=1);f.nI&&(B.sdetail=f.nI);f.partnerId&&(B.partnerid=f.partnerId);f.osid&&(B.osid=f.osid);f.o_&&(B.cc=g.m6k(f.o_));return Object.assign(e,B)}; hDl=function(f){if(!f.C){const e=g.l0(n=>{let r=(0,g.T)();n&&r<=631152E6&&(f.oA.ri("ytnerror",{issue:28799967,value:`${r}`}),r=(new Date).getTime()+2);return r},f.Ta.Y("html5_validate_yt_now")),B=e(); f.C=()=>Math.round(e()-B)/1E3; f.oA.X7()}return f.C}; uu=function(f){f.G&&KL5(f.G);f.qoe&&unC(f.qoe)}; TC6=function(f,e,B,n){B.adFormat=B.xA;const r=e.oA;e=new Ej5(new QpC(B,e.Ta,{getDuration:()=>B.lengthSeconds, getCurrentTime:()=>r.getCurrentTime(), SU:()=>r.SU(), Ih:()=>r.Ih(), XC:()=>r.XC(), getPlayerSize:()=>r.getPlayerSize(), getAudioTrack:()=>B.getAudioTrack(), getPlaybackRate:()=>r.getPlaybackRate(), wu:()=>r.wu(), getVisibilityState:()=>r.getVisibilityState(), Pt:()=>r.Pt(), dS:()=>r.dS(), getVolume:()=>r.getVolume(), isMuted:()=>r.isMuted(), CY:()=>r.CY(), fC:()=>r.fC(), getProximaLatencyPreference:()=>r.getProximaLatencyPreference(), X7(){r.X7()},ri(L,d){r.ri(L,d)},SV:()=>r.SV(), gA:()=>r.gA()})); e.J=n;g.A(f,e);return e}; Di0=function(f){f.G&&f.G.send();if(f.qoe){var e=f.qoe;if(e.W){e.mA==="PL"&&(e.mA="N");var B=g.uY(e.provider);g.ot(e,B,"vps",[e.mA]);e.X||(e.V>=0&&e.C.set("user_intent",[e.V.toString()]),e.X=!0);e.provider.Ta.wA()&&e.ri("finalized",{});e.eI=!0;e.reportStats(B)}}if(f.provider.videoData.enableServerStitchedDai)for(const n of f.J.values())lu(n);else f.C&&lu(f.C);f.dispose()}; Jq5=function(f,e){f.C&&NCw(f.C,e)}; Mcd=function(f){if(!f.C)return null;const e=jT(f.C,"atr");return B=>{f.C&&NCw(f.C,B,e)}}; GHw=function(f,e){f=pF(f.array,B=>e-B.start||1); return f<0?-(f+1):f}; xiM=function(f,e,B){const n=[];for(e=GHw(f,e);eB)break}return n}; FX=function(f,e){const B=[];for(const n of f.array)if(n.contains(e)&&B.push(n),n.start>e)break;return B}; var NYg=function(f,e,B,n,r,L,d,t){return k_[Z[2]](this,66,f,e,B,n,r,L,d,t)}; var U2H=function(f,e,B,n){const r=[];for(const t of B){if(!t.url)continue;B=new g.Qv(t.url,!0);if(t.s){var L=B,d=t.sp;const H=k_(24,decodeURIComponent(t.s));L[Z[23]](d,encodeURIComponent(H))}for(const H of Object.keys(n))B.set(H,n[H]);L=Sb(t.type,t.quality,t.itag,t.width,t.height);r.push(new WL6(L,B))}return Rp(f.W,r,Pk(f,e),!1)},spC=function(f){return f.array.slice(GHw(f,0x7ffffffffffff),f.array.length)},XSm=function(f,e){let B=NaN; for(const n of f.array)if(n.contains(e)&&(isNaN(B)||n.ende&&(isNaN(B)||n.start!e.has(B))},PKg=function(f){return f.oA.getPlayerState().C(2)?0x8000000000000:f.oA.getCurrentTime()*1E3},mu=function(f,e){const B=[]; if(!e.length)return B;for(let n=0;nt.end<0x8000000000000),d=spC(f.C)):e=f.J<=B&&Hu(e)?xiM(f.C,f.J,B):FX(f.C,B); r=r.concat(mu(f,e));L&&(r=r.concat(NK(f,L)));d&&(r=r.concat(mu(f,d)));f.J=B;Ud(f,r)}},ht=function(f,e){return e>f.mediaTime+f.W&&e1)f.V=!0; if(r||isNaN(f.G))f.G=e;if(f.C)e!==f.mediaTime&&(f.C=!1);else if(e>0&&f.mediaTime===e){r=1500;if(f.Ta.Y("html5_buffer_underrun_transition_fix")){r=g.tS(f.Ta.experiments,"html5_min_playback_advance_for_steady_state_secs");const L=g.tS(f.Ta.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");r=r>0&&L>0&&Math.abs(e-f.G)(n||!f.V?r:400)}f.mediaTime=e;f.J=B;return!1},i35=function(f,e,B){return e.q_(B).then(()=>Pb(new $i0(e,e.J)),n=>{n instanceof Error&&g.Yv(n); var r=y0('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),L=IT('audio/mp4; codecs="mp4a.40.2"'),d=r||L;const t=e.isLivePlayback&&!g.hF(f.W,!0);n="fmt.noneavailable";t?n="html5.unsupportedlive":d||(n="html5.missingapi");d=t||!d?2:1;r={buildRej:"1",a:e.qd(),d:!!e.JP,drm:e.xK(),f18:e.SJ.indexOf("itag=18")>=0,c18:r};e.C&&(e.xK()?(r.f142=!!e.C.C["142"],r.f149=!!e.C.C["149"],r.f279=!!e.C.C["279"]):(r.f133=!!e.C.C["133"],r.f140=!!e.C.C["140"],r.f242=!!e.C.C["242"]),r.cAAC=L,r.cAVC=IT('video/mp4; codecs="avc1.42001E"'), r.cVP9=IT('video/webm; codecs="vp9"'));e.W&&(r.drmsys=e.W.keySystem,L=0,e.W.G&&(L=Object.keys(e.W.G).length),r.drmst=L);return new g.WP(n,r,d)})},ST=function(f,e){e=Math.max(Math.max(1,Math.ceil(f.policy.V/gl(f))),e); return Math.min(Math.min(8,Math.floor(f.policy.N/gl(f))),e)}; var m3k=function(f,e,B){return GR[Z[2]](this,19,f,e,B)}; gl=function(f){return f.videoData.C?Ir(f.videoData.C)||5:5}; e5d=function(f,e){if(e)return e=f.videoData,e=fXg(f,isNaN(e.liveChunkReadahead)?3:e.liveChunkReadahead,e),ST(f,e);if(f.G.length){if(Math.min.apply(null,f.G)>1)return ST(f,f.C-1);if(f.policy.K)return ST(f,f.C+1)}return f.C}; B7O=function(f,e=!1){if(!f.G.length)return!1;const B=f.C;f.C=e5d(f,e);if(e=B!==f.C)f.G=[],f.b2=0;return e}; Ed=function(f){let e=f.policy.C;f.V||(e=Math.max(e-1,0));return e*gl(f)}; Q$=function(f,e){return e>=f.pG()-Ed(f)}; n75=function(f,e,B=!0){const n=Q$(f,e);B||n?n&&(f.J=!0):f.J=!1;f.X=f.policy.J===2||f.policy.J===3&&f.J;e=Q$(f,e);f.V!==e&&f.publish("livestatusshift",e);f.V=e}; fXg=function(f,e,B){B.Tf&&e--;Y7(B)&&(e=1);AA(B)!==0&&(f=g.tS(f.experiments,"html5_live_chunk_readahead_proxima_override"))&&(e=f,B.C?.Fl()&&e++);return e}; D_=function(f,e,B=null){return new Tu(g.tS(f.Ta.experiments,e)||0,B?f.Ta.Y(B):!1)}; rAO=function(f,e){f.C=e}; Jt=function(f,e,B,n,r,L,d,t){e?e.test(B)?(f.rC(r,e,d),e.U||L()):(!e.G||e.V?B=!1:(B=(0,g.T)(),n?e.C||(e.C=B):e.C=0,L=!n&&B-e.G>3E4,B=e.C&&B-e.C>1E3||L?e.V=!0:!1),B&&(t={...f.xp(e),...t},t.wn=d,t.we=r,t.wsuc=n,f.oA.ri("workaroundReport",t),n&&(e.reset(),f.J[r]=!1))):f.oA.a6("auth",2,"BROWSER_OR_EXTENSION_ERROR",Go({source:"watchdog",name:d}))}; LiC=function(f,e){if(f.C){var B=f.C;var n=f.getCurrentTime(),r=B.pG();var L=B.policy.G;B.V||(L=Math.max(L-1,0));L*=gl(B);n>=r-L||!B.Em()?B=n0&&rs(f.mediaElement)>0&&(f.G=MK(f,f.G,!1)),e=f.Y("html5_pseudogapless_shorts_seek_to_next_start")&&e?.seekSource===60,!f.mediaElement||!dU6(f,e))f.Ch.start(750);else if(!isNaN(f.G)&&isFinite(f.G)&&(e=f.uY-(f.G-f.timestampOffset),!(e===0||Math.abs(e)<.005)))if(e=f.mediaElement.getCurrentTime()-f.G,Math.abs(e)<=f.Z9||Math.abs(e)<.005)t_m(f);else{if(f.videoData.q$)f.videoData.q$= !1;else if(!zk(f.videoData)&&f.G>=f.zD()-.1){f.G=f.zD();f.V.resolve(f.zD());f.Ta.wA()&&f.oA.ri("setEndedInSeek",{tgt:`${f.G}`,maxst:`${f.zD()}`});f.oA.H3();return}try{const B=f.G-f.timestampOffset;f.mediaElement.seekTo(B);f.Ed.C=B;f.uY=B;f.J=f.G;f.A=!1}catch(B){}}}; kkk=function(f,e){f.eI=!0;f.Y("html5_use_centralized_player_time")&&(f.G=f.U,f.J=f.G,f.U=NaN);H26(f,e)}; CdG=function(f){let e=0,B=NaN,n="";if(!f.N)return{startSeconds:e,KR:B,source:n};f.videoData.gM?e=f.videoData.Ei:zk(f.videoData)&&(e=Infinity);if(g.mi(f.videoData))return{startSeconds:e,KR:B,source:n};f.videoData.startSeconds?(n="ss",e=f.videoData.startSeconds):f.videoData.s$&&(n="stss",e=f.videoData.s$);f.videoData.liveUtcStartSeconds&&(B=f.videoData.liveUtcStartSeconds);if(isFinite(e)&&(e>f.zD()||e1E9}; b2Y=function(f,e){f.playbackData=e;f.videoData.isLivePlayback&&(f.K=new wY5(()=>{a:{if(f.playbackData&&f.playbackData.C.C()){if(p2(f.videoData)&&f.loader){var B=f.loader.wG.H0()||0;break a}if(f.videoData.C){B=f.videoData.C.WS;break a}}B=0}return B}),f.C=new v7C(f.videoData,f.Ta.experiments,()=>f.zD(!0))); Ww(f.oA)?(f.videoData.CG?.BG||(e=CdG(f),e.KR?(lK(f.videoData)&&f.GL(e.KR,e.startSeconds),f.J=e.startSeconds):e.startSeconds>0&&f.seekTo(e.startSeconds,{wX:"seektimeline_startPlayback",seekSource:15})),f.N=!1):xQ(f)||(f.J=f.J||f.videoData.startSeconds||0,f.videoData.isLivePlayback||(e=f.oA.videoData.zD(),f.J>e&&(f.Y("html5_sabr_log_invalid_sabr_current_time")&&f.oA.ri("invalidSabrCmtStart",{rt:f.J,mst:e}),f.Y("html5_sabr_vod_invalid_start_time_fallback")&&(f.J=0))))}; sd=function(f,e){if(f.C&&f.loader){var B=!1;e?B=!0:f.videoData.isLowLatencyLiveStream||f.videoData.latencyClass==="LOW"||f.videoData.latencyClass==="ULTRALOW"?B=B7O(f.C):f.kA&&(f.kA=!1,B=B7O(f.C,!0));B&&(e=f.oA.Kh,B=f.C,B=gl(B)*B.C,e.qoe&&(e=e.qoe,g.ot(e,g.uY(e.provider),"lra",[B]),e.ri("live-readahead-seconds",{v:B})));e=f.loader;B=f.C.C;f=f.C;f=(f.C-1+f.policy.C)*gl(f);var n=NaN;var r=e.hE;r===2||r===-1?(r=B,Y7(e.oA.getVideoData())&&(n=e.policy.a9)):r=B-1;r=Math.max(r,0);B=e.U;B.IM=r;B.K=n;e.K&& (e.K.Ed=f)}}; y$=function(f,e){(f.loader=e)?sd(f,!0):XX(f)}; dU6=function(f,e=!1){if(!f.mediaElement||f.mediaElement.J()===0||f.mediaElement.hasError())return!1;const B=f.mediaElement.getCurrentTime()>0;return f.videoData.J&&f.videoData.J.C()||f.videoData.isLivePlayback||!f.videoData.xK()?f.G>=0&&!e&&(e=f.mediaElement.K(),e.length||!B)?Wy(e,f.G-f.timestampOffset):B:B}; Pw=function(f){return f.mediaElement?Lh(f.mediaElement):0}; Z2k=function(f,e){var B=f.getCurrentTime();const n=f.isAtLiveHead(B);if(f.K&&n){var r=f.K;if(r.C&&!(B>=r.G&&B50&&r.G.shift())),n75(f.C,B,e),e&&LiC(f,!0));n!==f.G6&&(e=f.getCurrentTime()-f.tL<=500,B=f.IA>=1E3,e||B||(e=f.oA.Kh,e.qoe&&(e=e.qoe,B=g.uY(e.provider),g.ot(e,B,"lh", [n?"1":"0"])),f.G6=n,f.IA++,f.tL=f.getCurrentTime()))}; IG=function(f,e){let B=f.V;B||(f.V=new wC,B=f.V,Gu(f,e));return B}; MK=function(f,e,B){if(isNaN(e))return NaN;const n=f.N0();B=f.zD(B);return f.Y("html5_clamp_invalid_seek_to_min_seekable_time")&&!f.videoData.isLivePlayback&&e>B+1&&e0)||f.mediaElement&&f.mediaElement.getCurrentTime()>0||(e={wX:"seektimeline_resumeTime",JW:e},f.videoData.K||(e.seekSource=15),f.seekTo(f.J,e))}; H26=function(f,e){qxm(f,e).then(void 0,()=>{XX(f)}); IG(f,e).then(B=>{$Q(f,B)},()=>{XX(f)}); f.oA.kH(e);if(f.Ta.wA()||z5g(f))e=f.xp(),e["native"]=`${+f.A}`,e.tgt=`${f.G}`,e.otgt=`${f.G+f.timestampOffset}`,e.maxst=`${f.zD()}`,f.C&&f.Y("html5_high_res_seek_logging")&&(e.tht=`${f.C.W()}`,e.ht=`${f.C.pG()}`,e.adft=`${Ed(f.C)}`),f.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&f.videoData.C&&lK(f.videoData)&&(e.minst=`${f.videoData.C.By}`,e.cminst=`${f.videoData.C.N0()+f.timestampOffset}`,e.maxst=`${f.videoData.C.cP}`,e.hts=`${f.videoData.C.cS}`,e.cmaxst=`${f.videoData.C.zD()+f.timestampOffset}`), f.oA.ri("startSeek",e)}; qxm=function(f,e){f.Cq||(f.loader?isFinite(f.G)?f.Cq=f.loader.seek(f.G-f.timestampOffset,e):(zk(f.videoData),f.Y("html5_unified_live_latency_reporting")&&(f.oA.Hx=0),f.Cq=U3(f.loader),Xh(f.videoData)||(f.G=f.loader.getCurrentTime()+f.timestampOffset)):f.Cq=g.Np(f.G-f.timestampOffset));return f.Cq}; $Q=function(f,e){f.W&&(f.W.resolve(e),f.oA.wK(),f.Ta.wA()||z5g(f))&&(e=f.xp(),e["native"]=`${+f.A}`,e.otgt=`${f.G+f.timestampOffset}`,f.oA.ri("seekEnd",e));XX(f)}; z5g=function(f){return f.videoData.aR()&&f.Y("html5_enable_shorts_seek_details_logging")}; t_m=function(f){f.V&&(f.V.resolve(f.mediaElement.getCurrentTime()),f.Ed.G=null)}; XX=function(f){f.G=NaN;f.U=NaN;f.uY=NaN;f.V=null;f.Cq=null;f.W=null;f.eI=!1;f.A=!1;f.Z9=0;f.WS.stop();f.BS.stop()}; pY5=function(f){if(f.N)if(f.videoData.CG?.BG)f.N=!1;else if(g.mi(f.videoData))f.N=!1;else{var e="ss",B=0;f.videoData.C?.isManifestless&&f.videoData.BS&&!xQ(f)&&(e="mss",B=f.videoData.BS);(f.videoData.gM?f.Y("html5_prioritize_windowed_st_start_seconds"):f.Y("html5_prioritize_st_start_seconds"))&&!B&&f.videoData.s$&&(e="stss",B=f.videoData.s$);!B&&aXd(f)&&(B=f.videoData.liveUtcStartSeconds||f.videoData.BS,e="utc",B=f.zD()-f.Lc(f.zD())+B);!B&&f.videoData.sA()&&f.videoData.s$&&(e="stss",B=f.videoData.s$); var n={};if(B){if(B>f.zD()||B{$Q(f,L)},()=>{XX(f)}),f.videoData.isAd()&&FXg({adCpn:f.videoData.clientPlaybackNonce, contentCpn:f.videoData.bI??""},e.C),f.uY=r,rAO(f.Ed,B.getCurrentTime()),f.seekTo(r,{seekSource:104,wX:"seektimeline_mediaElementEvent"}),f.A=!0;break;case "seeked":t_m(f);break;case "loadedmetadata":Ww(f.oA)||pY5(f);Gu(f);break;case "progress":Gu(f);break;case "pause":f.X=f.getCurrentTime()}f.X&&((n==="play"||n==="playing"||n==="timeupdate"||n==="progress")&&f.getCurrentTime()-f.X>10&&(f.Y("html5_sky_skip_pause_jump")?f.oA.ri("skipPauseJump",{evt:n,cmt:f.getCurrentTime(),lpt:f.X}):f.seekTo(f.X,{wX:"pauseJump"})), n!=="pause"&&n!=="play"&&n!=="playing"&&n!=="progress"&&(f.X=0))}; aXd=function(f){return(Ux(f.videoData)||!!f.videoData.liveUtcStartSeconds)&&(!!f.videoData.liveUtcStartSeconds||xQ(f))&&!!f.videoData.C}; Yx6=function(f,e){f.oA.ri("sdai",{adj4t:e.toFixed(3)});f.PS=e;e+=1;f.G=e;f.J=e;IG(f).then(B=>{$Q(f,B)},()=>{XX(f)})}; iu=function(f,e){return f.C.get(e)?.buffer.V()||[]}; fx=function(f,e){return f.C.get(e)?.buffer.J()||0}; uQm=function(f,e){function B(L){return n.Ed!=="yt"&&(r.partnerId===38&&n.playerStyle==="books"||r.partnerId===30&&n.playerStyle==="docs"||r.partnerId===33&&n.playerStyle==="google-live")?AA5(f,r,L):jlw(f,r).then(()=>{n.Y("embeds_enable_shorts")&&f.S().O$&&r.isEmbedsShortsMode(new g.uN(0,0),!!r.playlistId)?O2w(f,r):e7(f,r)},d=>{e7(f,r,!0); throw d;})} const n=f.S(),r=f.getVideoData();r.HS();r.loading=!0;return o7m(f)?V_g(f,r,e).then(()=>{e7(f,r)},L=>{L=sI(L); if(xk(L.severity))return e7(f,r,!0),Promise.reject(L);L.errorCode==="onesie.response.badproxystatus"&&`${L.details.st}`==="3"&&(lX6=!0);f.handleError(L);return B("onesie")}):B("gvi")}; o7m=function(f){var e=f.S();if(e.Y("html5_disable_onesie")||!e.Y("html5_onesie")||!e.Y("html5_onesie_inline")&&f.getVisibilityState()===5||e.Ed!=="yt")return!1;var B=e.Q3;if(!B||!B.C)return f.handleError(new g.WP("onesie.unavailable.hotconfig",{key:"0"})),!1;B.C.X<(0,g.T)()&&(f.ri("okexp","1"),(B=f.Df())&&e.Y("html5_prefer_trusted_host_on_key_expiration")&&(B.G=!0,(e=B.C.get(0)?.C())&&!G8(e)&&B.C.delete(0)));if(lX6)return f.ri("ost3","1"),!1;e={};return Object.keys(e).length>0?(e.onesie="0",f.handleError(new g.WP("html5.missingapi", e)),!1):!0}; Bx=function(f,e){const B=p_();cF(B,e);return g.nJ(B,BQk(),{l8:f.l8(),clientInterface:mt(f)})}; V_g=async function(f,e,B){e.fetchType="onesie";var n=PMG(e,f.getPlayerSize(),f.getVisibilityState());n=new wD(f,n,B);B=await n.fetch();var r={player_response:B};e.loading=!1;f=f.Xx.I_;if(n.xu){for(const [d,t]of n.xu.entries()){var L=d;const H=t;f.C.set(L,H,180);L===e.videoId&&(L=H.pL(),e.wq=L)}f.K1=n}for(const [d,t]of n.rV.entries())f.G.set(d,t,180);g.d7(e,r,!0);if(e.loading||PS(e))return Promise.resolve();f.C.removeAll();f.G.removeAll();e.wq=[];n={};r="onesie.response";f=0;e.errorCode?(r="auth", n.ec=e.errorCode,n.ed=e.errorDetail,n.es=e.YZ||"",f=2):(n.successButUnplayable="1",n.disposed=`${+e.HS()}`,n.afmts=`${+/adaptiveFormats/.test(B)}`,n.cpn=e.clientPlaybackNonce);return Promise.reject(new g.WP(r,n,f))}; jlw=async function(f,e){const B=e.isAd();let n=!B,r=B?1:3;for(let d=0;d0){await $c(5E3);var L=new g.Dj("Retrying OnePlatform request",{attempt:d});g.Yv(L)}try{await FiG(f,e);return}catch(t){const H=sI(t);L=H.errorCode;const k=f.S(),C=k.Y("html5_use_network_error_code_enums")?401:"401";n&&L==="manifest.net.badstatus"&&H.details.rc===C&&(n=!1,d===r-1&&(r+=1));if(d===r-1)return f=mUk(B,H.details),f.details.backend="op",f.details.originec=L,Promise.reject(f);if(L==="auth"||L==="manifest.net.retryexhausted"|| k.Y("embeds_enable_get_player_error_mapping")&&g.Ms(f.S()))return Promise.reject(H);f.handleError(H);if(xk(H.severity))break}}return Promise.reject(mUk(B,{backend:"op"}))}; FiG=async function(f,e){e.fetchType="gp";var B=f.S(),n=g.vS(B,e.U());n=n.C?await n.C:n.getValue();var r=Bx(B,n);const L=PMG(e,f.getPlayerSize(),f.getVisibilityState()),d=g.dH(UUO);var t=e.U(),H=(0,g.T)(),k=!1;let C="empty";n=0;f.Ce("psns");const w={F$:function(v){v.readyState===2&&f.Ce("ps_c")}}; B.l8()&&(w.z1={WU:Ls("player",{videoId:String(e.videoId)})});r=await g.JQ(r,L,d,void 0,w);f.Ce("psnr");if(!e.HS()){r?"error"in r&&r.error?(k=!0,C=`esf:${r.error.message}`,n=r.error.code):r.errorMetadata&&(k=!0,C="its",n=r.errorMetadata.status):k=!0;if(k)return k=0,r=((0,g.T)()-H).toFixed(),H={},H=B.Y("html5_use_network_error_code_enums")?{backend:"op",rc:n,rt:r,reason:C,has_kpt:e.qC?"1":"0",has_mdx_env:e.mdxEnvironment?"1":"0",has_omit_key_flag:g.Q("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")? "1":"0",has_page_id:B.pageId?"1":"0",has_token:t?"1":"0",has_vvt:e.Cq?"1":"0",is_mdx:e.isMdxPlayback?"1":"0",mdx_ctrl:e.Nn||"",token_eq:t===e.U()?"1":"0"}:{backend:"op",rc:`${n}`,rt:r,reason:C,has_kpt:e.qC?"1":"0",has_mdx_env:e.mdxEnvironment?"1":"0",has_omit_key_flag:g.Q("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:B.pageId?"1":"0",has_token:t?"1":"0",has_vvt:e.Cq?"1":"0",is_mdx:e.isMdxPlayback?"1":"0",mdx_ctrl:e.Nn||"",token_eq:t===e.U()?"1":"0"},e="manifest.net.connect", n===429?(e="auth",k=2):n>200&&(e="manifest.net.badstatus",n===400&&(k=2)),Promise.reject(new g.WP(e,H,k));e.loading=!1;g.d7(e,{raw_player_response:r},!0);g.Ms(e.S())&&r&&r.trackingParams&&gR(r.trackingParams);if(e.errorCode)return n={ec:e.errorCode,ed:e.errorDetail,es:e.YZ||""},t="auth",B.Y("embeds_enable_get_player_error_mapping")&&g.Ms(e.S())&&e.errorCode&&(t=e.errorCode),Promise.reject(new g.WP(t,n,2));if(!e.loading&&!PS(e))return B=e.isAd()?"auth":"manifest.net.retryexhausted",n=e.isAd()?2:1, Promise.reject(new g.WP(B,{successButUnplayable:"1",hasMedia:g.ym(e)?"1":"0"},n))}}; AA5=async function(f,e,B){function n(){return!0} function r(k){k=sI(k);if(xk(k.severity))return Promise.reject(k);f.handleError(k);return!1} const L=vAG(f.S(),e,f.getPlayerSize(),f.getVisibilityState(),f.isFullscreen()),d=e.isAd(),t=d?1:3;for(let k=0;k0&&(await $c(5E3),H={playerretry:k,playerretrysrc:B},d||(H.recover="embedded"),H=R6(L,H));if(await N75(e,H).then(n,r))return}e=d?"auth":"manifest.net.retryexhausted";B=d?2:1;if(!d&&Math.random()<1E-4)try{g.Yv(new g.Dj("b/152131571",btoa(L)))}catch{}return Promise.reject(new g.WP(e,{backend:"gvi"},B))}; N75=async function(f,e){function B(H){if(!f.HS()){H=H?H.status:-1;var k=0,C=((0,g.T)()-t).toFixed();C=n.Y("html5_use_network_error_code_enums")?{backend:"gvi",rc:H,rt:C}:{backend:"gvi",rc:`${H}`,rt:C};var w="manifest.net.connect";H===429?(w="auth",k=2):H>200&&(w="manifest.net.badstatus",H===400&&(k=2));return Promise.reject(new g.WP(w,C,k))}} f.fetchType="gvi";const n=f.S();var r;(r=bB0(f))?(r={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:r},e=R6(e,{action_display_post:1})):r={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4};const L={};n.sendVisitorIdHeader&&f.visitorData&&(L["X-Goog-Visitor-Id"]=f.visitorData);const d=UC(n.experiments,"debug_sherlog_username");d&&(L["X-Youtube-Sherlog-Username"]=d);Object.keys(L).length>0&&(r.headers=L);const t=(0,g.T)();r=await gG(Wb,e,r).then(void 0,function(H){return B(H.xhr)}); if(!r||!r.responseText)return B(r);f.loading=!1;r=C$(r.responseText);g.d7(f,r,!0);if(f.errorCode)return Promise.reject(new g.WP("auth",{ec:f.errorCode,ed:f.errorDetail,es:f.YZ||""},2));if(!f.loading&&!PS(f))return r=f.isAd()?"auth":"manifest.net.retryexhausted",e=f.isAd()?2:1,Promise.reject(new g.WP(r,{successButUnplayable:"1"},e))}; mUk=function(f,e){return new g.WP(f?"auth":"manifest.net.retryexhausted",e,f?2:1)}; e7=async function(f,e,B=!1){const n=f.S();B&&(!g.L3(n)||Ex(e)!=="embedded")||e.L6||Ex(e)!=="adunit"&&(g.IM(n)||yZ(n)||g.TT(n)||g.rC(n)||g.DH(n)||mt(n)==="WEB_CREATOR")||(B=g.vS(n,e.U()),B=B.C?await B.C:B.getValue(),h5G(f,e,B))}; h5G=async function(f,e,B){try{const L=f.S(),d=Bx(L,B);var n=e.S();const t=g.ni(),H={context:g.sf(e),videoId:e.videoId,racyCheckOk:e.racyCheckOk,contentCheckOk:e.contentCheckOk,autonavState:"STATE_NONE"};Ex(e)==="adunit"&&(H.isAdPlayback=!0);n.embedConfig&&(H.serializedThirdPartyEmbedConfig=n.embedConfig);n.U$&&(H.showContentOwnerOnly=!0);e.ZI&&(H.showShortsOnly=!0);t.jI(141)&&(H.autonavState=t.jI(140)?"STATE_OFF":"STATE_ON");if(g.yQ(n)){const v=t.jI(65);B=v!=null?!v:!1;const b=!!g.IB("yt-player-sticky-caption"); H.captionsRequested=B&&b}const k=n.getWebPlayerContextConfig()?.encryptedHostFlags;k&&(H.playbackContext={encryptedHostFlags:k});var r=H;const C=g.dH(g70);f.Ce("wn_s");n={};L.l8()&&(n.z1={WU:Ls("next",{videoId:String(e.videoId)})});const w=await g.JQ(d,r,C,void 0,n);f.Ce("wn_r");!w||"error"in w&&w.error||(g.Ms(e.S())&&w.trackingParams&&gR(w.trackingParams),g.d7(e,{raw_watch_next_response:w},!1))}catch(L){}}; O2w=async function(f,e){var B=g.vS(f.S(),e.U());B=B.C?await B.C:B.getValue();SxH(f,e,B)}; SxH=async function(f,e,B){f=f.S();try{const r=Bx(f,B);var n={context:g.sf(e),playerRequest:{videoId:e.videoId},disablePlayerResponse:!0};const L=g.dH(E7d);B={};f.l8()&&(B.z1={WU:Ls("reel_item_watch",{videoId:String(e.videoId)})});const d=await g.JQ(r,n,L,void 0,B);!d||"error"in d&&d.error||g.d7(e,{raw_reel_item_watch_response:d})}catch(r){}}; Qlk=function(f,e){f.Ce("vir");f.Ce("ps_s");QF("vir",void 0,"video_to_ad");e=uQm(f,e);e.then(function(){f.Ce("virc");QF("virc",void 0,"video_to_ad");f.Ce("ps_r");QF("ps_r",void 0,"video_to_ad")},function(){f.Ce("virc"); QF("virc",void 0,"video_to_ad")}); return e}; bl5=function(f){var e=f.qn;f=f.videoData;const B=RG(e,f);e.Y("html5_disable_client_autonav_cap_for_onesie")||B.compose(Kq(e,f));return B}; D9=function(f,e){nx(f,e.reason,e.C.info,e.source,e.token)}; yaG=function(f,e){f.Xx.uE()||(f.ri("sgap",{f:e}),f.Xx.clearQueue(!1,e==="pe"))}; DUY=function(f){f.mediaElement&&(f.D9?(rc(f),f.dl(),T7O(f,!1)):(f.videoData.WS&&f.videoData.WS.V(),f.mediaElement.stopVideo()),f.playVideo())}; Ww=function(f){return f.Y("html5_disable_video_player_initiated_seeks")&&lK(f.videoData)}; dc=function(f,e){f.vp&&Lx(f);f.vp=new g.VD(e*1E3,0x7ffffffffffff);f.vp.namespace="endcr";f.addCueRange(f.vp)}; Lx=function(f){f.removeCueRange(f.vp);f.vp=null}; Hx=function(f){if(f.videoData.J&&f.videoData.J.C()){var e=t2(f);if(f.loader&&(f=f.loader,!f.HS()))if(f.policy.C){var B=f.W;if(e.isLocked()&&B.C.G||B.G===void 0||!e.equals(B.G)){B=f.W.G;pAw(f.W,e);var n;if(n=e.isLocked()&&e.reason==="m"){n=f.W;var r=n.V?.info.X().qualityOrdinal;n=n.cS?!0:n.V?e.C!==r?!0:!n.C.G||n.UK.CG&&n.C.C===n.V.info.itag?!1:!0:!1}r=f.policy.E2&&e.reason==="l";B=B.C>e.C&&e.reason==="b";n||r||B?(f.oA.eC({reattachOnConstraint:n?"u":r?"drm":"perf",lo:e.G,up:e.C}),f.policy.CG||(f.W.C.G= !1)):(f.policy.CG&&(f.W.C.G=!1),kf(f))}}else!IYY(f.C,e)&&f.videoTrack&&(r=f.C.C,Mq(f,$30(f.C,e)),WG(f),B=e.isLocked()&&e.reason==="m"&&f.C.A,n=f.policy.E2&&e.reason==="l"&&pU(f.videoTrack),e=r.C>e.C&&e.reason==="b",r=f.C.Fl&&!$5(),B||n||e||r?f.oA.eC({reattachOnConstraint:B?"u":n?"drm":r?"codec":"perf"}):kf(f))}}; Cx=function(f,e=!0){f.Ta.On&&!f.videoData.backgroundable&&f.mediaElement&&!f.oR()&&(f.isBackground()&&f.mediaElement.PS()?(f.ri("bgmobile",{suspend:1}),f.Q5(!0,!0)):!f.isBackground()&&e&&kV(f)&&f.ri("bgmobile",{resume:1}))}; wc=function(f){if(!zk(f.videoData))return NaN;let e=0;f.loader&&f.videoData.C&&(e=p2(f.videoData)?f.loader.wG.H0()||0:f.videoData.C.WS);return(0,g.T)()/1E3-f.Lc()-e}; JAk=function(f,e){if(f.playerType===2||f.Ta.q$)e.NB=!0;var B=g3C(e.xA,e.hY,f.Ta.V,f.Ta.K);B&&(e.adFormat=B);f.playerType===2&&(e.nz=!0);if(f.isFullscreen()||f.Ta.V)B=g.IB("yt-player-autonavstate"),e.autonavState=B||(f.Ta.V?2:f.videoData.autonavState);e.endSeconds&&e.endSeconds>e.startSeconds&&dc(f,e.endSeconds)}; vx=function(f){f.loader&&(f.loader.dispose(),f.loader=null,y$(f.Qz,null));f.Wt()?M_k(f):f.dl()}; Wi5=function(f){if(!f.playerState.C(128))if(f.videoData.isLoaded(),f.zo=g.ke(f.videoData.HE),g.ym(f.videoData)){f.ph.tick("bpd_s");bj(f).then(()=>{f.ph.tick("bpd_c");if(!f.HS()){f.mP&&(f.oC(vu(vu(f.playerState,512),1)),kV(f));var B=f.videoData;B.endSeconds&&B.endSeconds>B.startSeconds&&dc(f,B.endSeconds);f.Id.finished=!0;ZZ(f,"dataloaded");f.AP.hj()&&Re(f);Z3Y(f.qn,f.bj)}}); f.Y("html5_log_media_perf_info")&&f.ri("loudness",{v:f.videoData.Ni.toFixed(3)},!0);var e=f.mediaElement?.V3();if(e&&"disablePictureInPicture"in e&&f.Ta.DP)try{e.disablePictureInPicture=f.Ta.sE&&!f.videoData.backgroundable}catch(B){g.Yv(B)}GkH(f);f.dG=new xUG(f.videoData)}else ZZ(f,"dataloaded")}; slg=function(f){const e=f.videoData;Qlk(f,f.Lh).then(void 0,B=>{f.videoData!==e||e.HS()||(B=sI(B),B.errorCode==="auth"&&f.videoData.errorDetail&&f.videoData.errorDetail!=="7"?f.a6(B.errorCode,2,unescape(f.videoData.errorReason),Go(B.details),f.videoData.errorDetail,f.videoData.YZ||void 0):f.handleError(B))})}; Kx=function(f){return g.IM(f.Ta)&&f.videoData.isLivePlayback&&(!f.Ta.Y("html5_allow_multiview_tile_preload")||!f.videoData.sE)}; bj=function(f){vx(f);f.bj=null;const e=i35(f.Ta,f.videoData,f.oR());f.xH=e;f.xH.then(B=>{XYm(f,B)},B=>{f.HS()||(B=sI(B),f.visibility.isBackground()?(qu(f,"vp_none_avail"),f.xH=null,f.Id.reset()):(f.Id.finished=!0,f.a6(B.errorCode,B.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Go(B.details))))}); return e}; GkH=function(f){j_(f.videoData,"html5_set_debugging_opt_in")&&(f=g.ni(),f.jI(183)||(Li(183,!0),f.save()))}; ZZ=function(f,e="dataupdated"){f.publish("internalvideodatachange",e,f.videoData)}; XYm=function(f,e){if(!f.HS()&&!e.videoData.HS()){f.bj=e;b2Y(f.Qz,f.bj);if(f.videoData.isLivePlayback){var B=yAl(f.Xx.I_,f.videoData.videoId)||f.loader&&!isNaN(f.loader.eI);B=f.Y("html5_onesie_live")&&B;Ww(f)||f.videoData.BS>0&&!p2(f.videoData)||B||f.seekTo(f.zD(),{wX:"videoplayer_playbackData",seekSource:18})}if(f.videoData.J.C()){if(x2k(f.videoData)){f.a6("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",Go({missabrurl:1}));return}f.loader?g.Yv(Error("Duplicated Loader")):(B=g.tS(f.Ta.experiments,"html5_onesie_defer_content_loader_ms"))&& f.S2()&&yAl(f.Xx.I_,f.videoData.Tu)?g.VY(()=>{f.HS()||f.loader||zh(f)},B):zh(f)}else!f.videoData.J.C()&&MU(f.videoData)&&f.ww(new ae(f.videoData.videoId||"",4)); f.k5();CKC(e).then(()=>{const n={};f.PB(n);f.Ta.wA()&&f.Y("html5_log_media_perf_info")&&f.ri("av1Info",n);Hx(f)})}}; kV=function(f,e=!1){if(!f.mediaElement||!f.videoData.J)return!1;var B=Pd5(f,e),n=f.mediaElement.PS();let r=!1;n&&n.equals(B)||(IXl(f,B),r=!0);f.playerState.C(2)||KiG(f.Qz,e);a:{e=r;if(lK(f.videoData)){if(!f.videoData.xK())break a}else if(!g.VW(f.videoData))break a;if(f.mediaElement)if((B=f.videoData.W)&&f.mediaElement.U()){n=f.mediaElement.V3();if(f.tI)if(n!==f.tI.element)rc(f);else if(e&&B.flavor==="fairplay"&&!wx())rc(f);else break a;if(f.Y("html5_report_error_for_unsupported_tvos_widevine")&&wx()&& B.flavor==="widevine")f.a6("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{f.tI=new $UM(n,f.videoData,f.Ta,f.mediaElement,f.jy);f.tI.subscribe("licenseerror",f.mI,f);f.tI.subscribe("qualitychange",f.Pu,f);f.tI.subscribe("heartbeatparams",f.Wc,f);f.tI.subscribe("keystatuseschange",f.vF,f);f.tI.subscribe("ctmp",f.ri,f);for(const L of f.OC.keys)e=f.OC.get(L),f.tI.G_(e);f.Y("html5_eme_loader_sync")||f.OC.removeAll()}}else f.a6("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK", "trg.updatedrm")}return r}; zh=function(f){var e=f.videoData.C,B={cpn:f.videoData.clientPlaybackNonce,c:f.Ta.C.c,cver:f.Ta.C.cver};for(const [t,H]of Object.entries(B)){B=t;var n=H;for(var r of Object.values(e.C))r.vL.A(B,n);e.Ed?.A(B,n)}r=f.Ta;B=f.videoData;n=f.Lh;e=new g.i2m(r);var L=rf0({hasSubfragmentedFmp4:B.hasSubfragmentedFmp4,yR:B.yR});e.X=L;e.eI=B.maxReadAheadMediaTimeMs/1E3||e.eI;n.V.H0()===n.policy.C?e.IA=10:e.IA=B.minReadAheadMediaTimeMs/1E3||e.IA;e.Z2=B.readAheadGrowthRateMs/1E3||e.Z2;B.RU&&(e.W=!0,e.g8=!0,r.experiments.JE().C.jI(f50)&& s76(B)===3&&(e.s3=!0));e.gz=!iG();g.IM(r)||!iG()?(e.Lq=8388608,e.qC=524288,e.C$=5,e.uY=1048576,e.kU=1.5,e.EA=4587520,v1()&&(e.EA=786432),e.K*=1.1,e.A*=1.1,e.K5=!0):r.G&&(e.K*=1.3,e.A*=1.3);g.PP&&g.H1("crkey")&&(L=r.C.cmodel==="CHROMECAST/ANCHOVY",e.Lq=20971520,e.qC=1572864,L&&(e.EA=812500,e.Cc=1E3,e.xF=5,e.uY=2097152));g.wu&&(e.K5=!0);r.supportsGaplessAudio()||(e.L6=!1);bD&&(e.lC=!0);e.D2=r.Y("html5_peak_shave");B.hV()&&r.Y("html5_disable_peak_shave_for_onesie")&&(e.D2=!1);L=B.C?.V();if(p2(B)){e.qj= !0;e.Xo||(e.cE=!0);e.Yp=!0;e.Ui=!0;e.We=!0;if(B.latencyClass==="ULTRALOW"||B.latencyClass==="LOW"&&!r.Y("html5_disable_low_pipeline"))e.Xd=2,e.wq=4;e.h1=B.defraggedFromSubfragments;g.mi(B)&&(e.tL=!1);e.Ks=g.yl(r)}B.isAd()&&(e.F6=0,e.rT=0);e.Aq=r.Y("html5_ultra_low_latency_subsegment_readahead")&&B.latencyClass==="ULTRALOW";e.J=r.wA();n.G.V=p2(B)?.5:0;B.isLivePlayback&&(e.GJ=g.tS(r.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,e.BS=!1);B.xK()&&(e.BS=!1);n=!r.Y("html5_sabr_keep_all_quality_constraints")&& !B.xK();const d=r.Y("html5_sabr_remove_all_quality_constraints_for_drm_traffic")&&B.xK();e.bI=n||d;e.jX=Ox(B);Y7(B)&&(e.Aq=!0,B.latencyClass==="LOW"?e.Mk=g.tS(r.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):B.latencyClass==="ULTRALOW"&&(e.Mk=g.tS(r.experiments,"html5_jumbo_ull_subsegment_readahead_target")),e.hU=!0);B.sA()&&(e.M6=1.3);e.lC=e.lC||B.C$;e.i$=(e.i$||B.i$)&&r.K;e.Wd=B.X;r.wA()&&(e.G6=!0);B.X&&!L&&(e.C_=!0);B.X&&B.isAd()&&(e.K*=1.6,e.A*=1.6);MU(B)&&(e.V=B.videoId,e.Ia=!0, e.j5=100,B.KG&&B.KG.length>0&&(e.zt=B.KG));e.E2=B.Md;e.ej=ZH(r,{},B.J||void 0,ZX(B));e.MC=bd(B)&&(g.TT(r)||g.rC(r));lK(B)&&(e.U=!0,e.oo=r.Y("html5_estimate_live_partial_slice_duration"),g.IM(r)&&!g.Cs()&&r.Y("html5_force_audio_to_cover_video_keyframe")?e.xA=!1:e.xA=!0,e.qU||B.isLivePlayback||!r.Y("html5_sabr_non_streaming_xhr_vod_client_request_cancellation")||(e.DP=!0,e.F1=g.tS(r.experiments,"html5_sabr_non_streaming_xhr_vod_request_cancellation_timeout_ms")),r.Y("html5_sabr_report_partial_segment_estimated_duration")&& (e.VN=!0),e.C=!0,e.a4=r.Y("html5_trigger_loader_when_idle_network"),e.aj=r.Y("html5_sabr_parse_live_metadata_playback_boundaries"),e.O$=r.Y("html5_consume_onesie_next_request_policy_for_sabr"),e.uI=r.Y("html5_sabr_report_next_ad_break_time"),e.X1=r.Y("html5_log_high_res_buffer_timeline")&&r.wA(),e.vV=r.Y("html5_remove_stuck_slices_beyond_max_buffer_limits"),e.Fo=r.Y("html5_gapless_sabr_btl_last_slice")&&vY(B),e.EO=r.Y("html5_reset_last_appended_slice_on_seek")&&vY(B),p2(B)?(e.JA=!0,e.Bz=r.Y("html5_disable_variability_tracker_for_live"), e.Fl=!0,r.Y("html5_simplified_backup_timeout_sabr_live")&&(e.P4=!0,e.Cc=e.Yr)):e.uC=r.Y("html5_probe_request_on_sabr_request_progress"),e.Nt=r.Y("html5_serve_start_seconds_seek_for_post_live_sabr"),e.sE=r.Y("html5_flush_index_on_updated_timestamp_offset"),e.N=lK(B),e.KG=r.Y("html5_ignore_partial_segment_from_live_readahead"),r.Y("html5_include_partial_segment_for_jumbo_ll")&&Y7(B)&&(e.KG=!1),e.NB=r.Y("html5_use_non_active_broadcast_for_post_live"),e.Ed=r.Y("html5_use_centralized_player_time"),e.kA= r.Y("html5_log_centralized_player_time"),e.S6=r.Y("html5_consume_onesie_sabr_seek"),e.Cq=r.Y("html5_enable_sabr_seek_loader_refactor"),B.enableServerStitchedDai&&(e.G=!0,e.Cv=r.Y("html5_reset_server_stitch_state_for_non_sabr_seek"),e.e3=r.Y("html5_remove_ssdai_append_pause")&&!B.q0(),e.Ys=r.Y("html5_ssdai_log_ssevt_in_loader_timers")),e.Tp=r.wA(),e.latencyClass=B.latencyClass,e.tU=!B.sA()&&r.Y("html5_prebuffer_instream_media_vod"));e.EE=g.MbC(B);vt(r.W,D0.BITRATE)&&(e.EA=NaN);if(n=g.tS(r.experiments, "html5_request_size_max_kb"))e.uY=n*1024;if(r.W.G)e.xI="; "+D0.EXPERIMENTAL.name+"=allowed";else if(r.Y("html5_enable_cobalt_tunnel_mode")&&g.Cs()){const {name:t,valid:H}=D0.TUNNELMODE;e.xI=`; ${t}=${H}`}r=B.serverPlaybackStartConfig;r?.enable&&r?.playbackStartPolicy&&(e.IR=!0,jr(e,r.playbackStartPolicy,2));r=eEH(f);f.OC.removeAll();a:{B=f.Xx.I_;if(n=f.videoData.videoId)if(L=B.C.get(n)){B.C.remove(n);B=L;break a}B=void 0}f.loader=new BL5(f,f.Lh,e,f.videoData.C,f.videoData.J,t2(f),r,f.videoData.enableServerStitchedDai, B,f.videoData.Ed);e=f.videoData.Y("html5_disable_preload_for_ssdai_with_preroll")&&f.videoData.isLivePlayback&&f.S2()?!0:f.mP&&Kx(f);f.loader.initialize(f.getCurrentTime(),t2(f),e);f.videoData.probeUrl&&(f.loader.MC=f.videoData.probeUrl);!f.zo.length&&!f.mP||f.videoData.cotn||f.loader?.cS(!1);y$(f.Qz,f.loader);f.fh&&(IAm(f.loader,f.fh),f.ri("sdai",{sdl:1}));f.videoData.Q3()&&(f=f.loader,f.policy.AC=f.policy.c7)}; Re=function(f){f.HS();if(!f.AP.finished&&f.Id.finished&&!f.playerState.C(128)&&!f.zo.length){if(!f.aM.started){var e=f.aM;e.started=!0;e.sync()}if(!f.zb()){f.loader&&(f.JE().C.jI(SO)?(e=f.loader,e=Math.min(dM(e.audioTrack,!0),dM(e.videoTrack,!0))>0):(e=f.loader.timing,e=!!e.G&&!!e.J),f.gV=e);f.AP.finished||(f.AP.finished=!0);e=f.Y("html5_onesie_live")&&f.loader&&!isNaN(f.loader.eI);!f.videoData.isLivePlayback||f.videoData.BS>0&&!p2(f.videoData)||e||Ww(f)||(f.seekTo(Infinity,{wX:"videoplayer_readying", seekSource:18}),f.isBackground()&&(f.mH=!0));e=f.Kh;if(e.qoe){e=e.qoe;const n=e.provider.videoData,r=e.provider.Ta;for(var B of r.TL)U_(e,B);if(e.provider.Y("html5_enable_qoe_cat_list"))for(const L of n.J9)U_(e,L);else n.TL&&U_(e,e.provider.videoData.TL);n.sA()&&(B=n.C,p2(n)&&U_(e,"manifestless"),B&&Ir(B)&&U_(e,`live-segment-${Ir(B).toFixed(1)}`));lK(n)?U_(e,"sabr"):e.jq(AA(n));if(JA(n)||n.q0())n.q0()&&U_(e,"ssa"),U_(e,"lifa");Rl(n)&&U_(e,"cdm");n.gatewayExperimentGroup&&(B=n.gatewayExperimentGroup, B==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?B="spkadtrt":B==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(B="spkadctrl"),U_(e,B));r.Ed!=="yt"&&e.C.set("len",[n.lengthSeconds.toFixed(2)]);n.cotn&&!MU(n)&&e.pZ(!0);r.wA()&&(B=K6m())&&e.ri("cblt",{m:B});r.Y("html5_log_screen_diagonal")&&e.ri("cbltdiag",{v:window.H5vccScreen?.GetDiagonal?window.H5vccScreen.GetDiagonal():0})}f.publish("playbackready");SH("pl_c",f.ph.timerName)||(f.ph.tick("pl_c"),QF("pl_c",void 0,"video_to_ad"));SH("pbr",f.ph.timerName)|| (f.ph.tick("pbr"),QF("pbr",void 0,"video_to_ad"))}}}; qu=function(f,e){f.playerState.C(128)||(f.oC(Zc(f.playerState,1028,9)),f.ri("dompaused",{r:e}),f.publish("onAutoplayBlocked"))}; g.px=function(f){const e=t2(f);return e3(e)||!f.bj?null:g.$g(f.bj.C.videoInfos,B=>e.V(B))}; nx=function(f,e,B,n,r){var L=f.Kh;const d=f.videoData;d.G=B;const t=g.px(f);B=new cx(B,e,t?t.itag:"",n,r);f.Ta.experiments.SI("html5_refactor_sabr_video_format_selection_logging")?f.g6=B:L.qoe&&oGk(L.qoe,B);L=f.qn;L.G=0;L.C=0;f.publish("internalvideoformatchange",d,e==="m")}; t2=function(f){if(f.bj){var e=f.qn;var B=f.bj;f=f.mT();let n=LLg(e);if(e3(n)){if(n=e.MK(B).compose(diC(e,B)).compose(H3d(e,B)).compose(RG(e,B.videoData)).compose(Kq(e,B.videoData,B)).compose(qK(e,B)).compose(aG(e,B)),e3(f)||e.Y("html5_apply_pbr_cap_for_drm"))n=n.compose(kH6(e,B))}else e.Y("html5_perf_cap_override_sticky")&&(n=n.compose(qK(e,B))),e.Y("html5_ustreamer_cap_override_sticky")&&(n=n.compose(kH6(e,B)));n=n.compose(aG(e,B));e=B.videoData.B9.compose(n).compose(B.videoData.kU).compose(f)}else e= Z_;return e}; nrd=function(f){const e="loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");for(const B of e)f.He.D(f.mediaElement,B,f.yM,f);f.Ta.B9&&f.mediaElement.U()&&(f.He.D(f.mediaElement,"webkitplaybacktargetavailabilitychanged",f.NT,f),f.He.D(f.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",f.xO,f))}; M_k=function(f){if(f.D9)if(f.yJ(),f.D9.X)try{f.Ta.wA()&&f.ri("rms",{l:"vprms",sr:f.Wt(),rs:f.D9.J()}),f.D9.clear(),f.mediaElement?.uC(f.D9),f.D9=null}catch(B){var e=new g.Dj(`Error while clearing Media Source in VideoPlayer: ${B.name}, ${B.message}`);e=sI(e);f.handleError(e);f.dl()}else f.dl()}; rc=function(f){f.tI&&(f.tI.dispose(),f.tI=null)}; rK6=function(f){f.mediaElement&&f.mediaElement.oR()&&(f.jS=(0,g.T)());f.Ta.EX?g.VY(()=>{YV(f)},0):YV(f)}; YV=function(f){if(!f.D9?.A0()){if(f.mediaElement)try{f.GR=f.mediaElement.playVideo()}catch(e){qu(f,`err.${e}`)}if(f.GR){const e=f.GR;e.then(void 0,B=>{if(!(f.playerState.C(4)||f.playerState.C(256)||f.GR!==e||B&&B.name==="AbortError"&&B.message&&B.message.includes("load"))){let n="promise";B&&B.name&&(n+=`;m.${B.name}`);qu(f,n);f.NE=!0;f.videoData.Mk=!0}})}}}; T7O=function(f,e=!1){if(f.D9)return f.D9.V;LvM(f,e);return f.Sw()?.eI()||null}; Pd5=function(f,e=!1){let B=null;f.videoData.J?.C()?(B=T7O(f,e),f.loader?.resume()):(vx(f),f.videoData.WS&&(B=f.videoData.WS.G()));return B}; dXM=function(f,e){if(e.C.video.quality==="auto"&&e.getInfo().J()&&f.videoData.tL)for(const B of f.videoData.tL)if(B.getHeight()===f.Z4&&B.C.video.quality!=="auto")return B.getInfo();return e.getInfo()}; t5H=function(f){return!!(f.Y("html5_native_audio_track_switching")&&g.oN&&f.videoData.G?.J())}; H_C=function(f){if(!t5H(f))return!1;f=f.mediaElement?.audioTracks();return!!(f&&f.length>1)}; CSG=function(f){const e=kJH(f);if(e){var B=A2[e]||e;return f.videoData.getAvailableAudioTracks().find(n=>n.Z_.getName()===B)}}; kJH=function(f){if(f=f.mediaElement?.audioTracks())for(let e=0;er.getLanguageInfo().id===n)); if(f.Ta.experiments.SI("enable_audio_description_setting")&&g.ni().jI(198))for(const r of B)if(r.W){e=r;break}f.JE().C.jI(vr5)&&f.videoData.cotn&&(e=B.find(r=>!!r.U)); e||(f=f.getAudioTrack(),e=f.Z_.isDefault?void 0:f);return e}; LvM=function(f,e=!1){let B;try{g.Cs()&&f.videoData.Cl()&&chY(f.mediaElement),B=f.mediaElement.Sw(f.jC(),f.zs())}catch(n){if(wl(f.Oi,"html5.missingapi",{updateMs:"1"}))return;console.error("window.URL object overwritten by external code",n);f.a6("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");return}f.vP(B,!1,!1,e)}; b_d=function(f,e=!1){if(f.loader){f.videoData.enableServerStitchedDai&&eyG(f.loader);const B=f.getCurrentTime()-f.gA();f.loader.seek(B,{JW:e}).wT(()=>{})}else zh(f)}; Z_d=function(f,e,B=!1,n=!1){!f.D9||e&&f.D9!==e||(e=f.getDuration(),!e&&p2(f.videoData)&&(e=25200,f.Y("html5_use_centralized_player_time")&&(e=46800)),f.D9.isView?e>f.D9.getDuration()&&f.D9&&(f.D9.P9(e),f.loader?.Mk(e)):f.D9&&(f.D9.P9(e),f.loader?.Mk(e)),DQM(f.loader,f.D9,B,n),f.publish("mediasourceattached"))}; REY=function(f,e){if(f.Ta.wA()&&f.mediaElement){const B=f.mediaElement.xp();B.omt=(f.mediaElement.getCurrentTime()+f.gA()).toFixed(3);B.ps=f.playerState.state.toString(16);B.rt=(g.uY(f.Kh.provider)*1E3).toFixed();B.e=e;f.J_[f.Fr++%5]=B}}; Kv0=function(f){if(g.H1("cobalt")&&g.H1("nintendo switch")){var e=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;f.ri("nxdock",{d:e})}}; qrk=function(f){g.Fx(f.ez);j7(f)||(f.ez=g.ls(()=>j7(f),100))}; j7=function(f){var e=f.mediaElement;e&&f.UF&&!f.videoData.K&&!SH("vfp",f.ph.timerName)&&e.J()>=2&&!e.isEnded()&&y7(e.tR())&&f.ph.tick("vfp");return(e=f.mediaElement)&&!f.videoData.K&&e.getDuration()>0&&(e.isPaused()&&e.J()>=2&&y7(e.tR())&&(SH("pbp",f.ph.timerName)||f.ph.tick("pbp"),!f.videoData.uC||f.Ki||e.isSeeking()||(f.Ki=!0,f.publish("onPlaybackPauseAtStart"))),e=e.getCurrentTime(),ht(f.RD,e))?(f.Xv(),!0):!1}; Ot=function(f,e){f.Ta.Y("html5_log_rebuffer_reason")&&(e={r:e,lact:vR()},f.mediaElement&&(e.bh=Lh(f.mediaElement)),f.ri("bufreason",e))}; zEO=function(f){f.Kh.onProgress();if(zk(f.videoData)&&Date.now()>f.Hx+6283){if(f.Y("html5_unified_live_latency_reporting")){var e=f.Kh;e.qoe&&caw(e.qoe)}else!f.isAtLiveHead()||f.videoData.C&&Xn(f.videoData.C)||(e=f.Kh,e.qoe&&caw(e.qoe));e=g.yl(f.Ta);const B=f.Y("html5_always_log_rawlat");(e||B)&&f.ri("rawlat",{l:fx(f.Vy,"rawlivelatency").toFixed(3)});f.Hx=Date.now()}f.videoData.G&&f.videoData.G.J()&&(e=f.Zj())&&e.videoHeight!==f.Z4&&(f.Z4=e.videoHeight,nx(f,"a",dXM(f,f.videoData.WS)))}; a56=function(f){if(f.Ta.wA()){f.J_.sort((e,B)=>+e.rt-+B.rt); for(const e of f.J_)f.ri("vpe",Object.assign({t:e.rt},e));f.J_=[];f.Fr=0}}; IXl=function(f,e){f.ph.tick("vta");QF("vta",void 0,"video_to_ad");f.getCurrentTime()>0&&R5G(f.Qz,f.getCurrentTime());f.mediaElement.activate(e);f.D9&&RN(4);!f.videoData.K&&f.playerState.isOrWillBePlaying()&&f.pk.start();t5H(f)&&(e=f.mediaElement?.audioTracks())&&(e.onaddtrack=()=>{wF5(f)},e.onremovetrack=()=>{wF5(f)},e.onchange=()=>{f.publish("internalaudioformatchange",f.videoData,!0)})}; pFY=function(f){return S$m[Z[2]](this,32,f)}; oe=function(f,e,B){const n=f.api.getCurrentTime()*1E3{f.api.playVideo();lj(f)}); VA("pause",()=>{f.api.pauseVideo();lj(f)}); VA("seekbackward",()=>{f.api.seekBy(-5*f.api.getPlaybackRate());lj(f)}); VA("seekforward",()=>{f.api.seekBy(5*f.api.getPlaybackRate());lj(f)}); VA("seekto",e=>{e=e.seekTime;e!=null&&f.api.seekTo(e);lj(f)})}; lj=function(f){f.api.Y("web_reset_lact_on_media_actions")&&f.api.updateLastActiveTime()}; or6=function(f,e){for(const B of e){e=Number(B.playbackRelativePosition?.utcTimeMs)/1E3;const n=e+Number(B.duration?.seconds),r=`composite_embargo_${e}`;if(B.onEnter){const L=B.onEnter.filter(f.V);L.length&&(f.G.set(r,L),f.api.addUtcCueRange(r,e,n,"compositeembargo",!1))}}}; V5m=function(f,e){f.C?.id!==e?.id&&(f.C&&(f.G.delete(f.C.id),f.api.X6([f.C],1)),f.C=e)}; l5C=function(f){f=f?.qualityDetails||[];return g.jC(f)&&!Array.isArray(f)?f:f.reduce((e,{key:B,value:n})=>{B&&n&&(e[B]=n);return e},{})}; uwM=function(f,e,B){const n=[],r=e?156595:151874;for(const d of f){var L=d.video;f={formatId:d.id,qualityLabel:L.qualityLabel,quality:L.quality,isPlayable:e};if(L=B[L.qualityLabel])f.paygatedQualityDetails={paygatedIndicatorText:L.paygatedIndicatorText,endpoint:L.endpoint,veType:r,trackingParams:L.trackingParams};n.push(f)}return n}; mXO=function(f){uj()&&(f.ph=f.api.Pt(),f.C=new wC,f.J=2,f.ph.Dc("pt_pish"),window.requestIdleCallback?window.requestIdleCallback(()=>{Fv0(f)}):Fv0(f))}; uj=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider}; Fv0=function(f){if(uj()){f.ph=f.api.Pt();f.ph.Dc("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:868618676952}).then(e=>{f.G=e;f.C?.resolve();f.ph.Dc("pt_pif")}).catch(e=>{Fi(e,"player_start"); f.ph.Dc("pt_pie");f.C?.reject(e)})}catch(e){Fi(e,"player_start_catch"),f.api.ri("pfes",{}),f.C?.reject(e)}}}; Fi=function(f,e){f.message&&g.Yv(Error(`${e}_${f.message}`))}; UX5=function(f,e){if(f.G){var B=e.videoId;f.J=3;f.ph.Dc("pt_ms");try{f.G.requestToken(B).then(n=>{f.ph.Dc("pt_mf");if(n=Tf(n))e.O$={zd:n}}).catch(n=>{f.ph.Dc("pt_me"); Fi(n,"player_generate");f.handleError(n,e)})}catch(n){Fi(n,"player_generate_catch"),f.handleError(n,e)}}}; NLw=function(f){const e=f.api.getVideoData();f.button.FG(e.jY)}; hE5=function(f,e){ec(f.api.S())&&(e?f.W.show():f.W.hide())}; Sr5=function(f){f.V0&&n>0&&(r.width+=n,g.uc(e.element,"width",`${r.width}px`)));f.size=r}}; JKG=function(f){f.J&&g.G6(f.J);f.V&&g.G6(f.V)}; Et=function(f,e,B,n){JKG(f);e&&(e.unsubscribe("size-change",f.FD,f),e.unsubscribe("back",f.Ss,f));B.subscribe("size-change",f.FD,f);B.subscribe("back",f.Ss,f);if(f.ef){g.PW(B.element,n?"ytp-panel-animate-back":"ytp-panel-animate-forward");B.di(f.content);B.focus();f.element.scrollLeft=0;f.element.scrollTop=0;var r=f.size;DXg(f);g.xC(f.element,r);f.J=new g.T6(()=>{M5H(f,e,B,n)},20,f); f.J.start()}else B.di(f.content),e&&e.detach()}; g.Th=function(f,e){const B=f.C[f.C.length-1];B!==e&&(f.C.push(e),Et(f,B,e))}; M5H=function(f,e,B,n){f.J.dispose();f.J=null;g.PW(f.element,"ytp-popup-animating");n?(g.PW(e.element,"ytp-panel-animate-forward"),g.$i(B.element,"ytp-panel-animate-back")):(g.PW(e.element,"ytp-panel-animate-back"),g.$i(B.element,"ytp-panel-animate-forward"));g.xC(f.element,f.size);f.V=new g.T6(()=>{g.$i(f.element,"ytp-popup-animating");e.detach();g.il(e.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);f.V.dispose();f.V=null},250,f); f.V.start()}; xXd=function(f,e,B){const n=e?.text?.simpleText;n&&(B=GJH(f,B,n,e?.icon,e?.secondaryIcon),e.navigationEndpoint&&B.listen("click",()=>{g.yW(f.Z,"innertubeCommand",e.navigationEndpoint);f.hide()},f))}; Wv6=function(f,e,B){const n=e?.text?.simpleText;n&&GJH(f,B,n,e?.icon).listen("click",()=>{e?.icon?.iconType==="HIDE"?f.Z.publish("featuredproductdismissed"):e.serviceEndpoint&&g.yW(f.Z,"innertubeCommand",e.serviceEndpoint);f.hide()},f)}; GJH=function(f,e,B,n,r){e=new g.DZ(g.j5({},[],!1,!!r),e,B);r&&e.updateValue("secondaryIcon",sy6(r));e.setIcon(sy6(n));g.A(f,e);f.Tv.jf(e,!0);return e}; sy6=function(f){if(!f)return null;switch(f.iconType){case "ACCOUNT_CIRCLE":return{L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{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{L:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{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 CS();case "HIDE":return{L:"svg",O:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"g",j:[{L:"path",O:{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 bA()}}; J2=function(f){f.isInitialized&&(f.enabled=f.isVisible,f.WS=f.isVisible,Ut(f),f.G(),f.thumbnailImage.FG(f.isVisible),f.shouldHideDismissButton||f.dismissButton.FG(f.isVisible),f.shouldShowOverflowButton&&f.overflowButton.FG(f.isVisible))}; $Xl=function(f,e,B){if(B){var n="";XFw(f,e)&&(n=e,f.api.S().Fl=e);n&&yKd(f,n)&&(KIl(f.api,n),hS(bK(f.api.S(),f.api.getVideoData()?.U()),r=>{var L=n;PSg(r)!==L&&I5g(f,Mu(r),{stringValue:L})}))}}; Gh=function(f){XC()?.size&&hS(bK(f.api.S(),f.api.getVideoData()?.U()),e=>{(e=PSg(e))&&yKd(f,e)&&(f.api.S().Fl=e)})}; fpY=function(f,e){SE(hS(hS(f.pB(),B=>rMl(B,[Mu(e)])),B=>{if(B)for(const {key:n, value:r}of B)n&&r&&(i_O([{settingItemId:n,settingOptionValue:r}]),Gh(f))}),()=>{f.C=!0})}; XFw=function(f,e){f=f.api.getAvailableAudioTracks();for(const B of f)if(B.getLanguageInfo().getId()===e)return B;return null}; yKd=function(f,e){return e.split(".")[0]!==""&&f.api.getVideoData()?.X1()&&!0}; PSg=function(f){{f=Mu(f);const e=XC();f=e?e.get(f):void 0}return f&&f.stringValue?f.stringValue:""}; I5g=function(f,e,B){i_O([{settingItemId:e,settingOptionValue:B}]);hS(f.pB(),n=>{dd5(n,e,B)})}; Mu=function(f){let e=(484).toString();f&&(e=(483).toString());return e}; i_O=function(f){let e=XC();e||(e=new Map);for(const B of f)e.set(B.settingItemId,B.settingOptionValue);f=JSON.stringify(Object.fromEntries(e));g.yT("yt-player-user-settings",f,2592E3)}; eWk=function(f){if(f.K){const e=f.options[f.K];e.element.getAttribute("aria-checked");e.element.setAttribute("aria-checked","false");f.K=null}}; nmm=function(f,e){g.S7(f.RC);const B={};let n=!1;for(let L=0;L1?2:1,f.J.height=f.heightPx* B,f.J.style.height=`${f.heightPx}px`,f.G.scale(1,B)));for(var r of e){e=f;var L=f.index;for(B=0;B+2{n.setAttribute("d",q8d(L,d,t))},200)}; pj5=function(f,e){return f.J===void 0?!1:e.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(e.seekLengthMilliseconds)===5E3?f.J===72:e.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(e.seekLengthMilliseconds)===1E4?f.J===74:e.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(e.seekLengthMilliseconds)===5E3?f.J===71:e.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(e.seekLengthMilliseconds)===1E4?f.J===73:!1}; cJ5=function(f){f.timelyActions&&(f.W=f.timelyActions.reduce((e,B)=>{if(B.cueRangeId===void 0)return e;e[B.cueRangeId]=0;return e},{}))}; fQ=function(f){f.Cq&&clearTimeout(f.Cq);f.Cq=void 0;f.Ed=!1}; e9=function(f,e){if(f.timelyActions)for(const B of f.timelyActions)if(B.cueRangeId===e)return B}; Y8g=function(f,e){if((f=e9(f,e))&&f.onCueRangeExit)return Fd(f.onCueRangeExit)}; AJY=function(f,e){const B=Number(e?.maxVisibleDurationMilliseconds);B&&(fQ(f),f.Cq=setTimeout(()=>{if(f.C!==void 0&&e?.cueRangeId===f.C){f.Ed=!1;var n=Y8g(f,f.C);n&&g.yW(f.api,"innertubeCommand",n)}},B))}; omM=function(f){if(f=f.getWatchNextResponse())if(f=g.u(f.playerOverlays?.playerOverlayRenderer?.timelyActionsOverlayViewModel,jVl),f?.timelyActions)return f?.timelyActions.map(e=>g.u(e,O9G)).filter(e=>!!e)}; lpg=function(f){f.menuItem||(f.menuItem=new VN5(f.api,e=>{f.setVoiceBoostUserPreference(e)},()=>f.getVoiceBoostUserPreference(),()=>f.getVoiceBoostState()),g.A(f,f.menuItem))}; uuO=function(f){f=f.Dw();if(!f)return!1;f=g.vb(f).exp||"";return f.includes("xpv")||f.includes("xpe")}; FP5=function(f){for(const e of g.BO(f,!0))if(uuO(e))return!0;return!1}; mOw=function(f,e){for(const n of g.BO(f,!0))if(uuO(n)){f=n;var B={potc:"1",pot:e};f.url&&(f.url=ZR(f.url,B))}}; UOY=async function(f){try{await f}catch(e){}}; Nz6=function(f){const e=new z6,B={["X-Goog-Api-Key"]:"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new $X(e,f,()=>B)}; hWO=function(f){return new Kv(f)}; gmg=function(f){f.G&&(f.V=new wC,f.W.promise.then(()=>{f.ph.Dc("pot_if");nQ(f)}))}; Em0=function(f){const e=(f.Y("html5_generate_session_po_token")||f.Y("html5_generate_content_po_token"))&&!f.useLivingRoomPoToken;try{if(f.Y("html5_use_shared_owl_instance"))S8H(f);else if(e){f.ph.Dc("pot_isc");const B=g.tS(f.api.S().experiments,"html5_webpo_kaios_defer_timeout_ms");B?(rU(f),g.VY(()=>{LQ(f)},B)):f.Y("html5_webpo_idle_priority_job")?(rU(f),g.wS(g.bo(),()=>{LQ(f)})):LQ(f)}}catch(B){B instanceof Error&&g.Yv(B)}}; S8H=async function(f){dU(f,"swpo_i");rU(f);nQ(f);var e=await bi(LJ());dU(f,"swpo_co");e=await am6(e);f.Y("html5_web_po_token_disable_caching")||e.W2(150);f.G=e;dU(f,"swpo_cc");UOY(e.nm()).then(()=>{f.C=!0;f.W.resolve();dU(f,"swpo_re")}); g.VY(()=>{LQ(f);dU(f,"swpo_si")},0)}; rU=function(f){f.J||(f.J=OA())}; LQ=function(f){var e=f.api.S();f.ph.Dc("pot_ist");f.G||QVm(f);f.Y("html5_bandaid_attach_content_po_token")||(f.Y("html5_generate_session_po_token")&&(nQ(f),gmg(f)),e=g.tS(e.experiments,"html5_session_po_token_interval_time_ms")||0,e>0&&(f.K=g.ls(()=>{nQ(f)},e)),f.X=!0)}; Tz6=function(f){const e=UC(f.experiments,"html5_web_po_request_key");return e?e:g.IM(f)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; dU=function(f,e){f.Y("html5_webpo_bge_ctmp")&&f.api.ri(e,{hwpo:!!f.G,hwpor:f.C})}; nQ=async function(f){if(f.Y("html5_generate_session_po_token")&&!f.useLivingRoomPoToken){var e=f.api.S(),B=g.Q("EOM_VISITOR_DATA")||g.Q("VISITOR_DATA");B=e.rT?e.datasyncId:B;B=UC(e.experiments,"html5_mock_content_binding_for_session_token")||e.livingRoomPoTokenId||B;e.zt=tW(f,B)}}; QVm=function(f){const e=f.api.S();var B=Tz6(e);B=Nz6(B);const n=B.M8.bind(B);B.M8=async L=>{L=await n(L);f.api.ri("itr",{});return L}; let r;try{r=hWO({K1:B,JZ:{maxAttempts:5},RY:{kI:"CLEn",disable:e.experiments.SI("html5_web_po_disable_remote_logging"),zI:o$C(e.experiments),XD:d=>{var t=DOH.get(d);t||(t=new JJl(d),t=new S8(t),DOH.set(d,t));return t}, Os:f.Y("wpo_dis_lfdms")?0:1E3},Jr:g.Yv});const L=new MNH({eU:r,K1:B,onError:g.Yv});UOY(L.nm()).then(()=>{f.C=!0;f.W.resolve()}); f.Y("html5_web_po_token_disable_caching")||L.W2(150);g.A(f,r);g.A(f,L);f.G=L}catch(L){g.Yv(L),r?.dispose()}}; tW=function(f,e){if(!f.G){if(f.J)try{return f.J(e)}catch(B){g.Yv(B)}return""}try{f.ph.Dc(f.C?"pot_cms":"pot_csms");const B={xS:!0,IB:!0,KV:e};f.Y("html5_web_po_token_disable_caching")||(B.xr={hw:e,Ob:!0,q4:!0});const n=f.G.Rn(B);f.ph.Dc(f.C?"pot_cmf":"pot_csmf");f.C&&(f.V?.resolve(),f.V=null,f.U&&(f.U=!1,f.api.app.Od().PY(!1)));return n}catch(B){return g.Yv(B),""}}; GG0=function(f,e){let B;switch(e){case 2:e="Ocultar v\u00eddeos";B="Hide recommendations grid";break;default:e="Mais v\u00eddeos",B="Show recommendations grid"}f.updateValue("title",e);f.element.ariaLabel=B;f.V.textContent=e}; g.HO=function(f,e,B){g.h(f.element,"ytp-suggestion-set",!!e.videoId);var n=e.playlistId;B=e.iR(B?B:"mqdefault.jpg");let r=null,L=null;e instanceof e_&&(e.lengthText?(r=e.lengthText||null,L=e.WY||null):e.lengthSeconds&&(r=g.SL(e.lengthSeconds),L=g.SL(e.lengthSeconds,!0)));const d=!!n;n=d&&mL(n).type==="RD";const t=e instanceof e_?e.isLivePlayback:null,H=e instanceof e_?e.isUpcoming:null,k=e.author,C=e.shortViewCount,w=e.publishedTimeText,v=[],b=[];k&&v.push(k);C&&(v.push(C),b.push(C));w&&b.push(w); B={title:e.title,author:k,author_and_views:v.join(" \u2022 "),aria_label:e.ariaLabel||g.RT("Assistir a $TITLE",{TITLE:e.title}),duration:r,timestamp:L,url:e.Q7(),is_live:t,is_upcoming:H,is_list:d,is_mix:n,background:B?`background-image: url(${B})`:"",views_and_publish_time:b.join(" \u2022 "),autoplayAlternativeHeader:e.tv};e instanceof BY&&(B.playlist_length=e.playlistLength);f.update(B)}; g.xOY=function(f,e){if(f.suggestion!==e){f.suggestion=e;var B=f.api.S(),n="hqdefault.jpg";e.iR("sddefault.jpg")&&(n="sddefault.jpg");g.HO(f,e,n);g.XY(B)&&!f.api.Y("web_player_log_click_before_generating_ve_conversion_params")&&(B=e.Q7(),n={},g.$7(f.api,"addEmbedsConversionTrackingParams",[n]),B=g.vT(B,n),f.updateValue("url",B));(e=(e=e.sessionData)&&e.itct)&&f.api.setTrackingParams(f.element,e)}}; WPd=function(f,e){let B="";const n=g.kr(f.player,"Mais v\u00eddeos","v");e===2?B="Ocultar v\u00eddeos":e===1&&(B="Mais v\u00eddeos");f.element.setAttribute("title",n);f.element.setAttribute("data-title-no-tooltip",B);f.element.setAttribute("aria-label",B);if(e=f.JL("ytp-fullscreen-grid-hover-overlay"))e.setAttribute("title",n),e.setAttribute("data-title-no-tooltip",B),e.setAttribute("aria-label",B);!f.U&&(e=f.JL("ytp-fullscreen-grid-expand-button"))&&(e.setAttribute("title",n),e.setAttribute("data-title-no-tooltip", B),e.setAttribute("aria-label",B));f.player.lR()}; wU=function(f){const e=kZ(f);g.h(f.api.getRootNode(),"ytp-full-bleed-player",e);f.Cq&&g.sm(f.Cq,e);f.playerOverlayVideoDetailsRenderer&&g.sm(f.playerOverlayVideoDetailsRenderer,e);f.V&&CQ(f)}; b_=function(f,e,B){f.J=e;f.G?.Hd(e,B);f.N?.Hd(e);f.C=0;vO(f);sV5(f,e)}; $O5=function(f,e,B){e.D(B,"keyboardserviceglobalkeydown",(n,r)=>{f.V&&n.keyCode===86&&!n.repeat&&f.J!==0&&(r&&(r.Y7=!0),f.A("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); e.D(f.api.getRootNode(),"wheel",n=>{if(!f.Ed&&f.V&&f.G?.element&&!f.api.getPlayerStateObject().C(2)&&f.J!==0&&kZ(f))if(g.PW(f.api.getRootNode(),"ytp-grid-scrolling"),f.W===0&&(f.W=window.innerHeight),f.J===1)f.W!==0&&(f.C+=n.deltaY/f.W,f.C=g.ch(f.C,0,.7),vO(f),Xj0(f,f.X/f.W+f.C>=.7,2));else if(f.J===2){const r=n.deltaY<0,L=f.G?.V?.scrollTop===0,d=f.C!==0;r&&L||d&&!r?f.W!==0&&(f.C=Math.max(0,f.C-n.deltaY/f.W),vO(f),Xj0(f,f.X/f.W+Math.abs(f.C)>=.7,1)):f.C!==0&&(f.C=0,vO(f))}},f,!0); e.D(B,"standardControlsInitialized",()=>{if(!f.G){f.G=new yJ5(f.api,f.uY.bind(f));f.WS&&(f.N=new PFm(f.api),g.A(f,f.N),f.N.element.setAttribute("data-overlay-order","12"),f.api.vr(f.N.element,4),f.N.listen("click",f.A,f));g.A(f,f.G);var n=f.api.getRootNode().querySelector(".ytp-chrome-bottom");n&&n.parentNode&&n.parentNode.insertBefore(f.G.element,n.nextSibling);Ipd(f)}}); e.D(B,"presentingplayerstatechange",()=>{CQ(f)}); e.D(B,"autonavvisibility",()=>{CQ(f)}); f.api.lE().subscribe("visibilitystatechange",()=>{CQ(f)}); sV5(f,f.J)}; CQ=function(f){if(f.V)if(g.$i(f.api.getRootNode(),"ytp-grid-scrolling"),f.api.getPresentingPlayerType()===2||f.api.Ws()||f.api.isMinimized())b_(f,0);else{var e=f.api.getPlayerStateObject().C(2);if(e)b_(f,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(f.isEnded&&!e){const B=kZ(f)?1:0;f.isEnded=e;b_(f,B)}else kZ(f)?f.J!==2&&b_(f,1):b_(f,0);f.isEnded=e}}; sV5=function(f,e){const B=f.api.getRootNode();g.h(B,"ytp-fullscreen-grid-peeking",e===1);g.h(B,"ytp-fullscreen-grid-active",e===2);e===1&&Ipd(f)}; fh5=function(f){const e=f.getVideoData();var B=f.aC(),n=B.V3(),r=f.S();const L=f.kx();var d=L.Qu*8/1024,t=L.Ze/1024,H=L.s6;const k=L.tA;var C=L.gh,w=B.getCurrentTime().toFixed(2),v=GF(B.tR(),",",3);var b="";if(e.isDaiEnabled()){e.enableServerStitchedDai&&(b+=e.Me?"DS":"SS");b=e.q0()?b+"LIFA, ":b+"DAI, ";var K=L.EG;K&&(b+=K)}JA(e)&&!e.q0()&&(b+="LIFAE, ");lK(e)&&(b+="SABR, ");if(e.fetchType){switch(e.fetchType){case "onesie":K="o";break;case "gp":K="gp";break;default:K="gvi"}b+=`vd:${K}, `}(K=r.kA)&& (b=K.C?b+"wa, ":b+"w, ");b+=`s:${C} t:${w} b:${v} `;B.isSeeking()&&(b+="S");B.isPaused()&&(b+="P");B.isEnded()&&(b+="E");f.isOrchestrationLeader()&&(b+=" L");(B=L.vN)&&(b+=` l:${B.toFixed()}`);B=L.currentTime;C=e.Ks;B&&B>C.start&&B>=5;l+=N}v=`${l.substr(0,4)} ${l.substr(4,4)} ${l.substr(8,4)} ${l.substr(12,4)} ${l.substr(16,4)}`}else v="";d={video_id_and_cpn:String(e.videoId)+" / "+v,codecs:"",dims_and_frames:"",bandwidth_kbps:`${d.toFixed(0)} Kbps`,buffer_health_seconds:`${H.toFixed(2)} s`, date:`${(new Date).toString()}`,drm_style:k?"":"display:none",drm:k,debug_info:b,extra_debug_info:"",bandwidth_style:w,network_activity_style:w,network_activity_bytes:`${t.toFixed(0)} KB`,shader_info:C,shader_info_style:C?"":"display:none",playback_categories:""};t=`${n.clientWidth}x${n.clientHeight}`+(B>1?`*${B.toFixed(2)}`:"");H="-";L.totalVideoFrames&&(H=`${L.droppedVideoFrames||0} dropped of ${L.totalVideoFrames}`);d.dims_and_frames=`${t} / ${H}`;f=f.getVolume();t=Jkd(e);f=`${Math.round(f)}% / ${e.V?.audio.G? "VB":e.V?.audio.C?"DRC":`${Math.round(f*t)}%`}`;t=e.Ni.toFixed(1);isFinite(Number(t))&&(f+=` (content loudness ${t}dB)`);d.volume=f;d.resolution=`${n.videoWidth}x${n.videoHeight}`;if(n=e.G){if(f=n.video)t=f.fps,t>1&&(d.resolution+=`@${t}`),(t=L.Hk)&&t.video&&(d.resolution+=` / ${t.video.width}x${t.video.height}`,t.video.fps>1&&(d.resolution+=`@${t.video.fps}`)),d.codecs=vmY(n),!e.V||n.audio&&n.video?n.RI&&(d.codecs+=` / ${n.RI}A`):d.codecs+=` / ${vmY(e.V)}`,f.C||f.primaries?(t=f.C||"unknown",t=== "smpte2084"?t=`${t} (PQ)`:t==="arib-std-b67"&&(t=`${t} (HLG)`),d.color=`${t} / ${f.primaries||"unknown"}`,d.color_style=""):d.color_style="display:none";if(n.debugInfo){d.fmt_debug_info="";for(var m of n.debugInfo)d.fmt_debug_info+=`${m.label}:${m.text} `}d.fmt_debug_info_style=d.fmt_debug_info&&d.fmt_debug_info.length>0?"":"display:none"}m=e.isLivePlayback;n=e.dC;d.live_mode_style=m||n?"":"display:none";d.live_latency_style=m?"":"display:none";if(n)d.live_mode="Post-Live"+(p2(e)?" Manifestless": "");else if(m){n=L.uG;d.live_latency_secs=`${n.toFixed(2)}s`;m=p2(e)?"Manifestless, ":"";e.gM&&(m+="Windowed, ");f="Uncertain";if(n>=0&&n<120)if(e.latencyClass&&e.latencyClass!=="UNKNOWN")switch(e.latencyClass){case "NORMAL":f="Optimized for Normal Latency";break;case "LOW":f="Optimized for Low Latency";break;case "ULTRALOW":f="Optimized for Ultra Low Latency";break;default:f="Unknown Latency Setting"}else f=e.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";m+= f;(n=L.kB)&&(m+=`, seq ${n.sequence}`);d.live_mode=m}r.experiments.JE().C.jI(i90)?L.isGapless&&!L.uE&&(d.playback_categories=L.A1?d.playback_categories+"Gapless ":d.playback_categories+"Queued "):!L.isGapless||vY(e)&&L.uE||(d.playback_categories+="Gapless ");d.playback_categories_style=d.playback_categories?"":"display:none";d.bandwidth_samples=L.I7;d.network_activity_samples=L.Ci;d.live_latency_samples=L.YS;d.buffer_health_samples=L.b2;r=e.Q3();if(e.cotn||r)d.cotn_and_local_media=`${e.cotn?e.cotn: "null"} / ${r}`;d.cotn_and_local_media_style=d.cotn_and_local_media?"":"display:none";j_(e,"web_player_release_debug")?(d.release_name=Z[28],d.release_style=""):d.release_style="display:none";d.debug_info&&Y.length>0&&d.debug_info.length+Y.length<=60?d.debug_info+=" "+Y:d.extra_debug_info=Y;d.extra_debug_info_style=d.extra_debug_info&&d.extra_debug_info.length>0?"":"display:none";return d}; Ipd=function(f){const e=f.api.getRootNode();var B=f.api.getPlayerStateObject().C(256)||f.api.getPlayerStateObject().C(32)||f.api.getPlayerStateObject().C(16)?f.X:f.PS&&f.api.getPlayerStateObject().isPaused()?(f.G?.element.clientWidth||0)*.5625/3*f.Lq||f.cS:f.cS;f.X=B;e.style.setProperty("--ytp-grid-peek-height",`${f.X}px`);g.h(e,"ytp-disable-bottom-gradient",f.X<=12&&f.U===0)}; kZ=function(f){return f.api.isFullscreen()||f.Z9&&f.api.dM()}; vO=function(f){f.C===0&&f.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(()=>{const e=f.C-f.U;let B=e;f.C!==0&&(B=g.ch(e,-.01,.01));f.U+=B;f.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",`${f.U.toString()}`);f.U!==f.C&&vO(f)})}; Xj0=function(f,e,B){f.K&&clearTimeout(f.K);f.C===0&&g.$i(f.api.getRootNode(),"ytp-grid-scrolling");e?eYH(f,B):f.C<.1&&(f.K=window.setTimeout(()=>{eYH(f)},1E3))}; eYH=function(f,e){f.K&&(clearTimeout(f.K),f.K=null);f.W=0;f.V&&f.J!==0&&(e?b_(f,e):Math.abs(f.C)>=.15&&f.A("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),f.C=0,vO(f),g.$i(f.api.getRootNode(),"ytp-grid-scrolling"))}; ZI=function(f,e,B){NJ("pbs",e??(0,g.T)(),B??f.timerName)}; BM5=function(f,e,B){var n=g.Ms(e.V9)&&!e.V9.U;if(e.V9.F6&&(xL(e.V9)||e.V9.Cq==="shortspage"||f3(e.V9)||n)&&!f.J){f.J=!0;f.U=e.clientPlaybackNonce;g.Q("TIMING_ACTION")||eZ("TIMING_ACTION",f.Ta.csiPageType);f.Ta.csiServiceName&&eZ("CSI_SERVICE_NAME",f.Ta.csiServiceName);if(f.C){n=f.C.Pt();for(var r of Object.keys(n))NJ(r,n[r],f.timerName);r=g.LN(UDg)(f.C.Wo);g.hQ(r,f.timerName);r=f.C;r.G={};r.Wo={}}g.hQ({playerInfo:{visibilityState:g.LN(mDm)()},playerType:"LATENCY_PLAYER_HTML5"},f.timerName);f.W!== e.clientPlaybackNonce||Number.isNaN(f.G)||(SH("_start",f.timerName)?B=g.LN(AQ)("_start",f.timerName)+f.G:g.Yv(new g.Dj("attempted to log gapless pbs before CSI timeline started",{cpn:e.clientPlaybackNonce})));!B||SH("pbs",f.timerName)||e.eO||ZI(f,B)}}; R_=function(f){GWO();Msd();f.timerName=""}; nKH=function(f){if(f.C){var e=f.C;e.G={};e.Wo={}}f.J=!1;f.W=void 0;f.G=NaN}; KQ=function(f){return!!(f.playlist||f.list||f.api)}; g.zi=function(f,e,B,n){e=e!==void 0?e:f.index;e=f.items&&e in f.items?f.items[f.order[e]]:null;let r=null;e&&(B&&(e.autoplay="1"),n&&(e.autonav="1"),r=new g.qk(f.V9,e),g.A(f,r),r.S6=!0,r.startSeconds=f.startSeconds||r.clipStart||0,f.listId&&(r.playlistId=f.listId.toString()));return r}; rE5=function(f,e){if(e.video&&e.video.length){f.title=e.title||"";f.description=e.description;f.views=e.views;f.likes=e.likes;f.dislikes=e.dislikes;f.author=e.author||"";var B=e.loop;B&&(f.loop=B);B=g.zi(f);f.items=[];for(const n of e.video)n&&(n.video_id=n.encrypted_id,f.items.push(n));f.length=f.items.length;(e=e.index)?f.index=e:f.findIndex(B);f.setShuffle(!1);f.loaded=!0;f.G++;f.C&&f.C()}}; Lkd=function(f){const e=f.index+1;return e>=f.length?0:e}; d1g=function(f){const e=f.index-1;return e<0?f.length-1:e}; a_=function(f,e){f.index=g.ch(e,0,f.length-1);f.startSeconds=0}; k8H=async function(f,e){const B=g.nJ();var n=f.S();const r={context:g.sf(f),playbackContext:{contentPlaybackContext:{ancestorOrigins:n.ancestorOrigins}}};var L=n.getWebPlayerContextConfig();L?.encryptedHostFlags&&(r.playbackContext.contentPlaybackContext.encryptedHostFlags=L.encryptedHostFlags);L?.hideInfo&&(r.playerParams={showinfo:!1});L=n.embedConfig;const d=f.YE;var t=e.docid||e.video_id||e.videoId||e.id;if(!t){t=e.raw_embedded_player_response;if(!t){var H=e.embedded_player_response;H&&(t=JSON.parse(H))}t= t?g.u(t?.embedPreview?.thumbnailPreviewRenderer?.playButton?.buttonRenderer?.navigationEndpoint,g.iK)?.videoId||null:null}t=t?t:void 0;H=f.playlistId?f.playlistId:e.list;const k=e.listType;if(H){var C;k==="user_uploads"?C={username:H}:C={playlistId:H};trd(L,d,t,e,C,n.experiments);r.playlistRequest=C}else e.playlist?(C={templistVideoIds:e.playlist.toString().split(",")},trd(L,d,t,e,C,n.experiments),r.playlistRequest=C):t&&(C={videoId:t},d&&n.Y("embeds_enable_per_video_embed_config")?C.serializedThirdPartyEmbedConfig= d:L&&(C.serializedThirdPartyEmbedConfig=L),r.singleVideoRequest=C);n=g.dH(HUY);try{const w=await g.JQ(B,r,n),v=f.S();e.raw_embedded_player_response=w;v.eI=lz(e,g.XY(v));v.J=v.eI==="EMBEDDED_PLAYER_MODE_PFL";w&&w.trackingParams&&gR(w.trackingParams);return new g.qk(v,e)}catch(w){return w instanceof Error||(w=Error("b259802748")),g.J(w),f}}; trd=function(f,e,B,n,r,L){n.index&&(r.playlistIndex=String(Number(n.index)+1));r.videoId=B?B:"";e&&L.SI("embeds_enable_per_video_embed_config")?r.serializedThirdPartyEmbedConfig=e:f&&(r.serializedThirdPartyEmbedConfig=f)}; g.cO=function(f,e){pQ.get(f);pQ.set(f,e)}; g.BO=function(f,e){return e?f.C.concat(f.G):f.C}; Cbw=function(f,e){g.$g(e,B=>f.equals(B))||e.push(f)}; g.YZ=function(f,e){switch(e.kind){case "asr":Cbw(e,f.G);break;default:Cbw(e,f.C)}}; g.wgM=function(f,e){return e.S().Y("html5_use_hls_native_captions")&&g.oN&&f.sA()&&!!f.G?.J()}; g.AW=function(f,e){return f.S().Y("safari_live_drm_captions_fix")&&f.getVideoData()?.xK()?!1:g.yl(f.S())&&!e.isManifestless}; g.j9=function(f,e){return FH(f.info.mimeType)?e?f.info.itag===e:!0:!1}; g.vKO=function(f,e){if(f.C!=null&&g.AW(e,f.C)&&f.C.C.rawcc!=null)return!0;if(!f.sA())return!1;e=!!f.C&&f.C.isManifestless&&Object.values(f.C.C).some(B=>g.j9(B,"386")); f=!!f.C&&!f.C.isManifestless&&g.s5C(f.C);return e||f}; LId=function(f){if(f.Z.S().BS)return f.L5.get("ux")}; O5=function(f){return f.L5.get("ad")}; g.o_=function(f){return f.L5.get("captions")}; g.V9=function(f){return f.L5.get("annotations_module")}; vF=function(f){if(f.Z.S().Aq)return f.L5.get("remote")}; l_=function(f){return f.L5.get("creatorendscreen")}; u_=function(f){if(yZ(f.Z.S()))return f.L5.get("kids")}; g.Ry=function(f){return f.L5.get("webgl")}; FU=function(f){if(f.Z.S().Z2)return f.L5.get("offline")}; bUC=function(f){if(f.Z.S().showMiniplayerUiWhenMinimized)return f.L5.get("miniplayer")}; ZU6=function(f,e){f.J=e}; RYk=function(f){const e=f.Z.getVideoData();return g.wgM(e,f.Z)||!!e.Yp||!!e.captionTracks.length||g.vKO(e,f.Z)}; m_=function(f,e,B=!1,n=!1,r){var L;let d=f.L5.get(e);if(!d||n)if(r||(r=()=>{m_(f,e,B,n)}),L||(L=()=>{U5(f,e)}),d=d||KkY(f,e,q35(f,e),r,L))f.L5.set(e,d),d.create(),f.Z.publish("modulecreated",e),B&&g.f_(f.Z,"onApiChange")}; Nk=function(f){if(f.Z.S().J)return!1;if(f=f.Z.getVideoData({playerType:1}).getPlayerResponse()){const e=f.adPlacements;if(e)for(let B=0;B{f.U.add(r);B.call(f)},n)}}; oKH=async function(f){var e=f.L5.get("asmjs");if(e)return e;e=pQ.get("asmjs")??await new Promise((B,n)=>{AEH(f,"asmjs",()=>{const r=pQ.get("asmjs");r?B(r):n("cannot load module asmjs")},n)}); if(!e)return Promise.reject("cannot load module asmjs");e=new e(f.Z);f.L5.set("asmjs",e);e.create();return e}; gU=function(f){var e=f.Z.getVideoData();if(f=e.Y("web_player_defer_ad")){if(g.eB(e.HE,"ad")||a0k(e)||e.enableServerStitchedDai)var B=!1;else{f=e.startSeconds;var n=e.playerResponse?.adPlacements;if(e=n){e=Number.MAX_VALUE;for(B of n)if(n=B.adPlacementRenderer){const r=n.config?.adPlacementConfig;r?.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&(n=(Number(r?.adTimeOffset?.offsetStartMilliseconds)||0)-Number(n.renderer?.adBreakServiceRenderer?.prefetchMilliseconds||0),nf.L5.get("asmjs")??Vr5(f))}; OUm=function(f,e,B,n){var r=g.Jj("SCRIPT");let L=!1,d;for(let b=0;b{f.HS()||B.call(f)},H=()=>{f.HS()||n.call(f)},k=d.onload; d.onload=b=>{jk(t);k&&k.apply(window,[b])}; const C=d.onerror;d.onerror=b=>{if(Math.random()<.01){const K=new g.Dj("Unable to load player module",e,document.location&&document.location.origin);g.J(K)}jk(H);C&&C(b)}; const w=d,v=w.onreadystatechange;w.onreadystatechange=b=>{switch(w.readyState){case "loaded":case "complete":jk(t)}v&&v(b)}; L&&((r=f.Z.S().cspNonce)&&d.setAttribute("nonce",r),g.y2(d,g.IS(e)),r=g.Jj("HEAD")[0]||document.body,r.insertBefore(d,r.firstChild),f.addOnDisposeCallback(()=>{d.parentNode&&d.parentNode.removeChild(d)}))}; Ti=function(f,e,B){f.HS();const n=Q9(f);B?(f.G|=e,e&1&&f.N.start(),e&2&&f.Ed.start(),e&2048&&f.A.start()):(f.G&=~e,e&1&&f.N.stop(),e&2&&f.Ed.stop(),e&2048&&f.A.stop(),e&512&&f.Cq.stop());f.G&512&&!(f.G&128)&&f.Cq.M0(f.PS);e=Q9(f);n!==e&&f.publish("autohideupdate",e)}; m1C=function(f){Ti(f,4,!1);f.X&&(f.C.uh(f.X),f.X=null,f.J=f.C.D(f.target,"mouseover",f.dw));f.J&&(f.C.uh(f.J),f.J=f.C.D(f.target,"mouseover",f.dw))}; Q9=function(f){return f.api.Y("allow_autohide_on_paused_videos")?!(f.G&-129):!f.G}; U1H=function(f,...e){var B=f.api.S();for(const L of e){if(!L||L instanceof g.qk&&!L.videoId)continue;var n=f.api.AL().getPlayerSize();var r=g.BS();e=n.width*r;r*=n.height;if(e>1280||r>720)if(n=L.iR("maxresdefault.jpg"))break;if(e>640||r>480)if(n=L.iR("maxresdefault.jpg"))break;if(e>320||r>180)if(n=L.iR("sddefault.jpg")||L.iR("hqdefault.jpg")||L.iR("mqdefault.jpg"))break;if(n=L.iR("default.jpg"))break}g.L3(B)&&(B=new Image,B.addEventListener("load",()=>{I1Y()}),B.src=n?n:"",f.api.Pt().tick("ftr")); f.W.style.backgroundImage=n?`url(${n})`:""}; NMC=function(f){for(let e=0;e=67&&!f.api.S().X;f=f.api.S().disableOrganicUi;return!g.H1("tizen")&&!bD&&!e&&!f}; JEO=function(f,e){if(!e)return!1;var B=f.api.aC();if(B.U()&&(B=B.V3())&&g.HN(B,e))return B.controls;for(B=0;B=11;f=f.api.S().X&&xZ;return!(!e&&!f)}; s5=function(f,e){f.n5.FO();if(f.RQ&&f.Vj)f.Vj=!1;else if(!f.api.S().Lq&&!f.Vc()){const B=f.api.getPlayerStateObject();B.C(2)&&g.wL(f.api)||f.l7(B);e&&WO(f,e)?G8m(f):!f.api.S().qC||B.isCued()||B.C(1024)?f.u4():f.y0.isActive()?(f.hc(),f.y0.stop()):f.y0.start()}}; XU=function(f,e){return!f.api.isInline()&&!JEO(f,Gw(e))&&g.Ef(e)}; y9=function(f,e){return f.api.getVideoData()?.mutedAutoplay&&e.target?.className?.includes("ytp-info-panel")?!1:g.Ef(e)&&f.api.isMutedByMutedAutoplay()?(f.api.unMute(),f.api.getPresentingPlayerType()===2&&f.api.playVideo(),e=f.api.getPlayerStateObject(),!e.C(4)||e.C(8)||e.C(2)||f.u4(),!0):!1}; WO=function(f,e){if(!f.api.S().Y("web_player_invisible_fullscreen_button"))return!1;var B=f.api.getRootNode().getBoundingClientRect();let n,r;e.targetTouches&&e.targetTouches.length?(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY):e.clientX!==void 0&&(n=e.clientX,r=e.clientY);return n!==void 0&&r!==void 0&&(e=n-B.left,B=r-B.top,f=f.api.getPlayerSize(),B>=f.height-40&&e>=f.width-40)?!0:!1}; G8m=function(f){if(f.api.S().qC&&f.api.getPresentingPlayerType()!==3)try{f.api.toggleFullscreen().catch(e=>{f.DN(e)}),f.api.Y("web_player_fullscreen_double_click_ve")&&f.api.logClick(f.api.AL().element)}catch(e){f.DN(e)}}; x1C=function(f,e,B){f.api.isFullscreen()?B<1-e&&f.api.toggleFullscreen():B>1+e&&f.api.toggleFullscreen()}; PO=function(f,e,B="",n=""){f.updateValue("label",B);f.updateValue("icon",e);f.C.M9();f.G.start();f.updateValue("title",n);g.h(f.element,"ytp-bezel-text-hide",!n)}; I_=function(f,e,B){let n;e<=0?(B=pS(),e="som desativado",n=0):(B=B?{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",ev:!0,O:{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"}}]}:{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",ev:!0,O:{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"}}]},n=Math.floor(e),e=n+"volume");PO(f,B,e,`${n}%`)}; Wkw=function(f,e){e=e?{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{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"}}]}:Qa0();const B=f.Z.getPlaybackRate(),n=g.RT("A velocidade do v\u00eddeo \u00e9 $RATE",{RATE:String(B)});PO(f,e,n,B+"x")}; sCm=function(f,e){e=e?"Legendas/legendas ocultas ativadas":"Legendas/legendas ocultas desativadas";PO(f,Oh6(f.Z),e)}; Xgm=function(f,e){f.C=e;f.element.classList.toggle($Z.NOTIFICATIONS_ENABLED,f.C);const B=f.api.getVideoData();B?(e=e?B.qt:B.aj)?(f=f.api.pB())?D7(f,e):g.J(Error("No innertube service available when updating notification preferences.")):g.J(Error("No update preferences command available.")):g.J(Error("No video data when updating notification preferences."))}; i_=function(f,e,B){const n=document.location.protocol;f=Ju0(`${n}//${f}/signin?context=popup`,"feature",e,"next",`${n}//${location.hostname}/post_login`);yEg(f,B)}; yEg=function(f,e){if(f=g.Mb(window,f,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))cRO(()=>{e()}),f.moveTo((screen.width-800)/2,(screen.height-600)/2)}; iUw=function(f){const e=f.api.S();PbC(f);f.updateValue("flyoutUnfocusable","true");f.updateValue("channelTitleFocusable","-1");f.updateValue("shouldHideExpandedTitleForA11y","true");f.updateValue("shouldHideExpandedSubtitleForA11y","true");e.G||e.uY||(f.D(f.channel,"mouseenter",f.U),f.D(f.channel,"mouseleave",f.W),f.D(f.channel,"focusin",f.U),f.D(f.channel,"focusout",B=>{f.channel.contains(B.relatedTarget)||f.W()})); f.J=new g.T6(()=>{f.isExpanded()&&(f.api.logVisibility(f.channelName,!1),f.subscribeButton&&(f.subscribeButton.hide(),f.api.logVisibility(f.subscribeButton.element,!1)),f.C&&(f.C.hide(),f.api.logVisibility(f.C.element,!1)),f.channel.classList.remove("ytp-title-expanded"),f.channel.classList.add("ytp-title-show-collapsed"))},500); g.A(f,f.J);f.D(f.channel,Ih5,()=>{$1d(f)}); f.D(f.api,"onHideControls",f.X);f.D(f.api,"appresize",f.X);f.D(f.api,"fullscreentoggled",f.X)}; fp=function(f){var e=f.api.S();const B=f.api.getVideoData();let n=g.C3(e)+B.uY;g.WY(B)&&(n="https://music.youtube.com"+B.uY);if(!g.XY(e))return n;e={};g.$7(f.api,"addEmbedsConversionTrackingParams",[e]);return g.vT(n,e)}; f9Y=function(f){const e=f.api.getPlayerSize();return g.XY(f.api.S())&&e.width>=524}; PbC=function(f){if(!f.api.S().Ch){var e=f.api.getVideoData(),B=new g.ez("Inscreva-se",null,"Inscrito",null,!0,!1,e.UL,e.subscribed,"channel_avatar",null,f.api,!0);f.api.createServerVe(B.element,f);f.api.setTrackingParams(B.element,e.subscribeButtonRenderer?.trackingParams||null);f.D(B.element,"click",()=>{f.api.logClick(B.element)}); f.subscribeButton=B;g.A(f,f.subscribeButton);f.subscribeButton.di(f.K);f.subscribeButton.hide();var n=new etg(f.api);f.C=n;g.A(f,n);n.di(f.K);n.hide();f.D(f.api,"SUBSCRIBE",()=>{e.K5&&(n.show(),f.api.logVisibility(n.element,!0))}); f.D(f.api,"UNSUBSCRIBE",()=>{e.K5&&(n.hide(),f.api.logVisibility(n.element,!1),Xgm(n,!1))})}}; $1d=function(f){f.channel.classList.remove("ytp-title-show-collapsed");f.channel.classList.remove("ytp-title-show-expanded")}; BDG=function(f,e="",B=""){f.V?(f.N!==e&&(f.G.style.backgroundImage=`url(${e})`,f.N=e),f.updateValue("channelLink",fp(f)),f.updateValue("channelLogoLabel",g.RT("Foto do canal $CHANNEL_NAME",{CHANNEL_NAME:B})),g.PW(f.api.getRootNode(),"ytp-title-enable-channel-logo")):g.$i(f.api.getRootNode(),"ytp-title-enable-channel-logo");f.api.logVisibility(f.G,f.V&&f.Ed)}; Bc=function(f,e){f.element.setAttribute("aria-haspopup",String(e))}; nf0=function(){let f=document.queryCommandSupported&&document.queryCommandSupported("copy");cE("Chromium")>=43&&(f=!0);cE("Firefox")<=40&&(f=!1);return f}; np=function(f){f.k0?.FG(!f.Z.isFullscreen()&&!f.Z.isMinimized()&&f.Z.getPresentingPlayerType()!==2&&f.Z.S().showMiniplayerButton)}; rIl=function(f){const e=!!f.M$;g.Or(f.xp,e?"Copiar informa\u00e7\u00f5es de depura\u00e7\u00e3o":"Ver informa\u00e7\u00f5es sobre depura\u00e7\u00e3o");Bc(f.xp,!e);g.Or(f.wU,e?"Copiar c\u00f3digo de incorpora\u00e7\u00e3o":"Ver c\u00f3digo de incorpora\u00e7\u00e3o");Bc(f.wU,!e);g.Or(f.getVideoUrl,e?"Copiar URL do v\u00eddeo":"Ver URL do v\u00eddeo");Bc(f.getVideoUrl,!e);g.Or(f.gU,e?"Copiar URL do v\u00eddeo no momento atual":"Ver URL do v\u00eddeo no tempo atual");Bc(f.gU,!e);f.wU.setIcon(e?SZk(): null);f.getVideoUrl.setIcon(e?w_():null);f.gU.setIcon(e?w_():null)}; LTO=function(f,e){var B=f.Z.S();const n=f.Z.getPresentingPlayerType()===2;var r=!n||e.isListed;r=!B.A&&!!e.videoId&&r;B.playerStyle!=="play"?B="https://support.google.com/youtube/?p=report_playback":(B={contact_type:"playbackissue",html5:1,ei:e.eventId,v:e.videoId,p:"movies_playback"},e.G&&(B.fmt=e.G.itag),e.clientPlaybackNonce&&(B.cpn=e.clientPlaybackNonce),e.partnerId&&(B.partnerid=e.partnerId),B=g.vT("//support.google.com/googleplay/",B));f.wU.FG(r&&e.allowEmbed);f.getVideoUrl.FG(r);f.gU.FG(r&& !e.isLivePlayback);f.ZB.setContent(B,"href");f.EL?.FG(!e.isLivePlayback&&!n);np(f);f.y4?.FG(!n)}; rW=function(f,e){let B=!1;if(f.M$){const n=f.M$.element;n.value=e;n.select();try{B=document.execCommand("copy")}catch(r){}}B?f.rA.HL():(f.dL.setContent(e,"text"),g.Th(f.rA,f.s5),gL(f.dL.element),f.M$&&(f.M$=null,rIl(f)));return B}; dqw=function(f){return g.XY(f.Z.S())?f.y4:f.EL}; tO5=function(f){f.G.G();var e=f.Z.S();e.playerStyle==="gvn"||e.G||e.uY||(e=f.Z.AL(),f.G.D(e,"contextmenu",f.PS),f.G.D(e,"touchstart",f.onTouchStart,null,!0),f.G.D(e,"touchmove",f.A,null,!0),f.G.D(e,"touchend",f.A,null,!0))}; H7G=function(f){f.Z.isFullscreen()?g.qX(f.Z,f.element,10):f.di(Yr(f).body)}; kvM=async function(f,e){try{return await navigator.clipboard.writeText(e),!0}catch{let B=!1;const n=g.BN("TEXTAREA");n.value=e;n.setAttribute("readonly","");f=f.api.getRootNode();f.appendChild(n);if(ye){const r=window.getSelection();r.removeAllRanges();const L=document.createRange();L.selectNodeContents(n);r.addRange(L);n.setSelectionRange(0,e.length)}else n.select();try{B=document.execCommand("copy")}catch(r){}f.removeChild(n);return B}}; CYY=function(f){f.updateValue("icon",LS());if(f.api.S().G)f.tooltip.q2(f.element,"Link copiado para a \u00e1rea de transfer\u00eancia");else{f.updateValue("title-attr","Link copiado para a \u00e1rea de transfer\u00eancia");f.updateValue("tooltip-title","Link copiado para a \u00e1rea de transfer\u00eancia");f.tooltip.lR();f.tooltip.q2(f.element);const e=f.listen("mouseleave",()=>{f.uh(e);f.gi();f.tooltip.Fg()})}}; wGl=function(f){var e=f.api.S();const B=f.api.getVideoData(),n=f.api.AL().getPlayerSize().width;e=e.J;return!!B.videoId&&n>=240&&B.cE&&!B.AF&&!f.api.isEmbedsShortsMode()&&!e}; vfw=function(f,e){e=g.RT("$TOTAL_SEEK_TIME segundos",{TOTAL_SEEK_TIME:e.toString()});f.updateValue("seekTime",e)}; b7H=function(f,e){!f.Z.Y("web_enable_shopping_timely_shelf_client")||f.Z.Y("web_force_featured_product_banner_with_timely_shelf")||!e||e.isLivePlayback||e.isPremiere||e.dC||e.isLiveHeadPlayable||e.gM||e.getPlayerResponse()?.videoDetails?.isLiveContent!==!1?f.badge.element.classList.remove("ytp-timely-shelf-present"):f.badge.element.classList.add("ytp-timely-shelf-present")}; Lp=function(f){f.Z9=[];f.uY();f.Z.sK("featured_product")}; tL=function(f){f.UE?.stop();f.A.hide();f.N.hide();dW(f)}; dW=function(f){if(f.trendingOfferEntityKey){var e=g.r7.getState().entities;(e=Yq(e,"trendingOfferEntity",f.trendingOfferEntityKey))?e.encodedSkuId!==f.C?.bannerData?.itemData?.encodedOfferSkuId?Hc(f):(f.V.update({trendingOffer:`${e.shortLabel} \u2022 ${e.countLabel}`}),f.V.show(),f.banner.update({vendor:kH(f)})):Hc(f)}else Hc(f)}; Z7C=function(f){const e=f.C?.bannerData?.itemData;return e?.priceReplacementText||f.Z.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")||!e?.dealsData?.sales?.originalPrice?null:e?.dealsData?.sales?.originalPrice}; Rtm=function(f){const e=f.C?.bannerData?.itemData;return e?.priceReplacementText||f.Z.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")||e?.dealsData?.sales?.originalPrice||!e?.dealsData?.priceDrop?.referencePrice?null:e?.dealsData?.priceDrop?.referencePrice}; KTH=function(f){const e=f.C?.bannerData?.itemData;return f.Z.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&!e?.priceReplacementText&&e?.promotionText?e?.promotionText.content:null}; q_g=function(f){const e=f.C?.bannerData?.itemData;return e?.priceReplacementText?e?.priceReplacementText:e?.promotionText&&f.Z.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")?`${e?.price} ${e?.promotionText?.content}`:e?.dealsData?.sales?.originalPrice?e?.dealsData?.sales?.salesPriceAccessibilityLabel:e?.dealsData?.priceDrop?.referencePrice?`${e?.price} ${e?.dealsData?.priceDrop?.referencePrice}`:e?.price}; kH=function(f){return f.Z.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")?f.V.ef?null:f.C?.bannerData?.itemData?.vendorName:f.V.ef||f.N.ef||f.C?.bannerData?.itemData?.affiliateDisclaimer?null:f.C?.bannerData?.itemData?.vendorName}; zt0=function(f){const e=(Number(f.C?.bannerData?.itemData?.hiddenProductOptions?.dropTimestampMs)-Date.now())/1E3;f.countdownTimer.setContent(jo({seconds:e}));e>0&&f.Ch?.start()}; a96=function(f){f=f.C?.bannerData?.itemData;return!f?.affiliateDisclaimer&&f?.exclusivesData?.exclusiveOfferLabelText&&f?.exclusivesData?.expirationTimestampMs&&f?.exclusivesData?.exclusiveOfferCountdownText?!0:!1}; pGl=function(f){var e=(Number(f.C?.bannerData?.itemData?.exclusivesData?.expirationTimestampMs)-Date.now())/1E3;if(e>0){if(e<604800){var B=f.C?.bannerData?.itemData?.exclusivesData?.exclusiveOfferCountdownText;if(B!==void 0){var n=Date.now();for(const r of B){if(r===void 0||r.text===void 0)continue;B=Number(r.textDisplayStartTimestampMs);if(!isNaN(B)&&n>=B){r.insertCountdown?(e=r.text.replace(/\$0/,String(jo({seconds:e}))),f.A.setContent(e)):f.A.setContent(r.text);f.A.show();break}}}}f.N.update({exclusive:f.C?.bannerData?.itemData?.exclusivesData?.exclusiveOfferLabelText}); f.N.show();Hc(f);f.UE?.start()}else tL(f)}; Hc=function(f){f.V.hide();f.banner.update({vendor:kH(f)})}; cIG=function(f){if(f!==void 0&&f.trim()!==""&&(f=Math.trunc(Number(f.trim())),!(isNaN(f)||f<0)))return f}; Y_6=function(f,e){Lp(f);if(e){var B=g.r7.getState().entities;B=Yq(B,"featuredProductsEntity",e);if(B?.productsData){e=[];for(const n of B.productsData)if(n?.identifier&&n.featuredSegments){f.Z9.push(n);for(const r of n?.featuredSegments){B=cIG(r.startTimeSec);if(B===void 0)continue;const L=cIG(r.endTimeSec);e.push(new g.VD(B*1E3,L===void 0?0x7ffffffffffff:L*1E3,{id:n.identifier,namespace:"featured_product"}))}}f.Z.AI(e)}}}; AIM=function(f){switch(f){case "OPEN_IN_NEW":return bA();case "NOT_INTERESTED":return{L:"svg",O:{fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M18.71,6C20.13,7.59,21,9.69,21,12c0,4.97-4.03,9-9,9c-2.31,0-4.41-0.87-6-2.29L18.71,6z M3,12 c0-4.97,4.03-9,9-9c2.31,0,4.41,.87,6,2.29L5.29,18C3.87,16.41,3,14.31,3,12z M12,2c5.52,0,10,4.48,10,10c0,5.52-4.48,10-10,10 C6.48,22,2,17.52,2,12C2,6.48,6.48,2,12,2z","fill-rule":"evenodd"}}]};case "HELP_OUTLINE":return CS();default:return bA()}}; Cp=function(f,e){if(!e.C1||!f.Z.zb()){var B=e.EX||1E4,n=!!e.Z9?.title?.content||!!e.Z9?.bodyText?.content;f.C?e.videoId&&e.videoId!==f.videoId&&(f.C.M9(),f.videoId=e.videoId,n?(jtH(f,B,e),f.Fx()):(f.HL(),f.C.dispose(),f.C=null)):n&&(e.videoId&&(f.videoId=e.videoId),jtH(f,B,e),f.Fx())}}; O7l=function(f,e){f.C&&(e.C(8)?(f.G=!0,f.Fx(),f.C.start()):(e.C(2)||e.C(64))&&f.videoId&&(f.videoId=null))}; jtH=function(f,e,B){f.C&&f.C.dispose();f.C=new g.T6(f.K,e,f);g.A(f,f.C);f.Z.setTrackingParams(f.element,B.Z9?.trackingParams||null);B?.Z9?.title?.content?(e=B.Z9?.title?.content,B.Z9?.bodyText?.content&&(e+=" \u2022 ")):e="";f.update({text:e+(B.Z9?.bodyText?.content||""),chevron:g.tX()})}; wW=function(f){let e=null;try{e=f.toLocaleString("pt-BR",{style:"percent"})}catch(B){e=f.toLocaleString(void 0,{style:"percent"})}return e}; vc=function(f,e){let B=0;for(const n of f){if(n.startTime>e)break;B++}return B===0?B:B-1}; of5=function(f,e){let B=0;for(const n of f){if(e=n.timeRangeStartMillis&&e2**31-1?"0":String(f)}; qv=function(f,e){f.actionButtons.includes(e)||(f.actionButtons.push(e),f.updateValue("buttons",f.actionButtons))}; ND5=function(f){var e=document.querySelectorAll(`[data-tooltip-target-id="${f.tooltipRenderer.targetId}"]`);e=e.length>0?e[0]:null;const B=g.x2("ytp-ad-module");f.J=!!g.x2("ytp-chrome-bottom")?.contains(e);f.X=!!B?.contains(e);f.K=!!e?.hasAttribute("data-tooltip-target-fixed");return e}; zE=function(f){var e;if(!(e=!f.C)){e=f.C;var B=window.getComputedStyle(e);e=B.display==="none"||B.visibility==="hidden"||e.getAttribute("aria-hidden")==="true"}if(e||f.Z.isMinimized())f.FG(!1);else if(e=g.WN(f.C),e.width&&e.height){f.Z.ke(f.element,f.C);var n=f.Z.AL().getPlayerSize().height;B=g.WN(f.JL("ytp-promotooltip-container")).height;f.J?f.element.style.top=`${n-B-e.height-12}px`:f.K||(n=f.Z.jh().height-B-e.height-12,f.element.style.top=`${n}px`);n=f.JL("ytp-promotooltip-pointer");const r=g.Gt(f.C, f.Z.getRootNode()),L=Number(f.element.style.left.replace(/[^\d\.]/g,""));f=f.Z.isFullscreen()?18:12;n.style.left=`${r.x-L+e.width/2-f}px`;n.style.top=`${B}px`}else f.FG(!1)}; as=function(f){f.FG(!1);f.G&&f.Z.logVisibility(f.element,f.ef)}; htY=function(f){const e=g.u(f.dismissButton,$u)?.text?.runs?.length&&!!g.u(f.dismissButton,$u).text.runs[0].text;return g.u(f.acceptButton,$u)?.text?.runs?.length&&!!g.u(f.acceptButton,$u).text.runs[0].text||e}; S_5=function(f,e=1,B=!0){f.J=f.V.animate([{offset:0,opacity:e},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});B&&(f.J.addEventListener("finish",()=>{f.J=void 0;gf5(f);f.hide()}),f.C="fading-out")}; Efk=function(f,e){f.J=f.V.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:e},{offset:1,opacity:1}],{duration:200,fill:"forwards"});f.J.addEventListener("finish",()=>{f.J=void 0;f.U.start();f.C="lingering"})}; QtO=function(f,e,B=!1,n=!1){var r=[];r.push({offset:0,transform:`translateX(${f.G===-1?20:-20}px)`,opacity:B?"0":"1"});B&&r.push({offset:.5,opacity:"1"});r.push({offset:1,transform:"translateX(0)",opacity:"1"});B=e.animate(r,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});e=e.querySelector("path");r=[];const L={offset:0,d:f.G===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};n&&(L.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");r.push(L);n&&r.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"}); f={offset:1,d:f.G===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};n&&(f.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");r.push(f);e.animate(r,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return B}; TDl=function(f){const e=f.V.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);e.classList.add("ytp-seek-overlay-arrow-additional");e.classList.remove("ytp-seek-overlay-arrow-persistent");f.V.appendChild(e);QtO(f,e,!0,!0).addEventListener("finish",()=>{e.remove()})}; gf5=function(f){f.W=0;f.C="hidden";f.G=void 0;f.V=void 0;f.U.stop();f.J=void 0}; Dqd=function(f){const e=Number(getComputedStyle(f.V).opacity);f.J?.cancel();f.J=void 0;return e}; JIO=function(f,e,B){f.updateValue("text",e);if(B){a:{switch(B){case "PREMIUM_STANDALONE":e=IrO();break a;case "PREMIUM_STANDALONE_CAIRO":e=$_M();break a}e=void 0}f.updateValue("icon",e)}for(const n of f.N.getAnimations())n.cancel();f.N.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",()=>{f.updateValue("text","");f.updateValue("icon","")})}; MOH=function(f,e){e.name!=="InvalidStateError"&&e.name!=="AbortError"&&(e.name==="NotAllowedError"?(f.C.Vc(),AK(f.G,f.element,!1)):g.J(e))}; pp=function(f){var e=f.api.S();const B=f.api.getVideoData(),n=g.XY(e)&&g.bS(f.api)&&f.api.getPlayerStateObject().C(128);e=e.J||e.disableSharing&&f.api.getPresentingPlayerType()!==2||!B.showShareButton||B.cE||n||B.AF||!1;f=f.api.AL().getPlayerSize().width;return!!B.videoId&&f>=240&&!e}; st0=function(f,e){GvC(f);const B=e.links||e.shareTargets;let n=0;for(let t=0;t{var v=H.url;if(g.Ef(w)){var b={};b.target=b.target||"YouTube";b.width=b.width||"600";b.height=b.height||"600";{var K=b;K||(K={});b=window;var Y=v instanceof uP?v:g.hs(typeof v.href!="undefined"?v.href:String(v));var l=self.crossOriginIsolated!==void 0,m="strict-origin-when-cross-origin"; window.Request&&(m=(new Request("/")).referrerPolicy);var F=K.noreferrer;if(l&&F&&m==="unsafe-url")throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");m=F&&!l;v=K.target||v.target;F=[];let E=[],Lw=!1;for(var N in K){const d6=K[N];switch(N){case "width":case "height":case "top":case "left":F.push(N+"="+d6);break;case "target":break;case "noopener":case "noreferrer":d6?E.push(N):(Lw=!0,E.push(N+"=false"));break;case "attributionsrc":F.push(N+ (d6?"="+d6:""));break;default:F.push(N+"="+(d6?1:0))}}N=v!==void 0&&!["_blank","_self","_top","_parent",""].includes(v);N=qb()&&N;xqY&&l&&F.length===0&&E.length>0&&!N&&!Lw?(E.length===2&&(E=["noreferrer"]),g.Mb(b,Y,v,E[0]),b=DL()):(l=F.join(","),Zm()&&b.navigator&&b.navigator.standalone&&v&&v!="_self"?(l=g.BN("A"),g.E0(l,Y),l.target=v,m&&(l.rel="noreferrer"),((K=K.attributionsrc)||K==="")&&l.setAttribute("attributionsrc",K),K=document.createEvent("MouseEvent"),K.initMouseEvent("click",!0,!0,b,1), l.dispatchEvent(K),b=DL()):m?(b=g.Mb(b,"",v,l),K=g.FL(Y),b&&(b.opener=null,K===""&&(K="javascript:''"),K='',K=Dw(K),(Y=b.document)&&Y.write&&(Y.write(Js(K)),Y.close()))):((b=g.Mb(b,Y,v,l))&&K.noopener&&(b.opener=null),b&&K.noreferrer&&(b.opener=null)))}b&&(b.opener||(b.opener=window),b.focus());w.preventDefault()}}); C.addOnDisposeCallback(g.tK(f.tooltip,C.element));k==="Facebook"?f.api.createClientVe(C.element,C,164504):k==="Twitter"&&f.api.createClientVe(C.element,C,164505);f.D(C.element,"click",()=>{f.api.logClick(C.element)}); f.api.logVisibility(C.element,!0);f.G.push(C);n++}const L=e.more||e.moreLink,d=new g.y({L:"a",y9:["ytp-share-panel-service-button","ytp-button"],j:[{L:"span",B:"ytp-share-panel-service-button-more",j:[{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},j:[{L:"rect",O:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{L:"path",O:{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"}}]}]}],O:{href:L,target:"_blank",title:"Mais"}});d.listen("click",t=>{var H=L;f.api.logClick(f.moreButton.element);H=WTm(f,H);g.Ur(H,f.api,t)&&g.yW(f.api,"SHARE_CLICKED")}); d.addOnDisposeCallback(g.tK(f.tooltip,d.element));f.api.createClientVe(d.element,d,164506);f.D(d.element,"click",()=>{f.api.logClick(d.element)}); f.api.logVisibility(d.element,!0);f.G.push(d);f.moreButton=d;f.updateValue("buttons",f.G)}; GvC=function(f){for(const e of f.G)e.detach(),g.PT(e);f.G=[]}; WTm=function(f,e){const B={};g.XY(f.api.S())&&(g.$7(f.api,"addEmbedsConversionTrackingParams",[B]),e=g.vT(e,B));return e}; cc=function(f){return f===void 0||f.startSec===void 0||f.endSec===void 0?!1:!0}; YH=function(f,e){f.startSec+=e;f.endSec+=e}; AL=function(f){f.Z.sK("shopping_overlay_visible");f.Z.sK("shopping_overlay_preview_collapsed");f.Z.sK("shopping_overlay_preview_expanded");f.Z.sK("shopping_overlay_expanded")}; XGC=function(f,e){f.isContentForward=e;g.h(f.badge.element,"ytp-suggested-action-badge-content-forward",e)}; jz=function(f){const e=f.isContentForward&&!f.qC();g.h(f.badge.element,"ytp-suggested-action-badge-preview-collapsed",e&&f.C);g.h(f.badge.element,"ytp-suggested-action-badge-preview-expanded",e&&f.V)}; yI6=function(f){f.N&&f.kA.element.removeChild(f.N.element);f.N=void 0}; I9g=function(f,e){return e.map(B=>{if((B=g.u(B,PYC)?.thumbnail?.thumbnails)&&B.length!==0)return B[0].url}).filter(B=>B!==void 0).map(B=>{B=new g.y({L:"img", B:"ytp-suggested-action-product-thumbnail",O:{alt:"",src:B}});g.A(f,B);return B})}; Op=function(f,e,B){return new g.VD(f*1E3,e*1E3,{priority:9,namespace:B})}; Ra=function(f,e,B,n){var r;(f>>1&7)==2&&(r=e[Z[0]]?e[Z[0]][Z[27]](Z[39]):e[Z[6]]===Z[39]);if((f&60)==f){var L=B[Z[13]];e[Z[40]](function(t,H,k){this[Z[3]](k[H]=B[(B[Z[4]](t)-B[Z[4]](this[H])+H+L--)%B[Z[13]]])},n[Z[36]](Z[12]))}if((f^21)>>3==2){var d; k_(62,e);if(d=e[Z[1]][Z[58]]||null)d=$qC[0](d),e[Z[23]](Z[58],d);r=[]}(f|56)==f&&(B===Z[88]&&((d=n[Z[4]](Z[55]))>=0?(B=`cmo=${n[Z[34]](0,d)}`,n=n[Z[34]](d+1)):(d=n[Z[4]](Z[68]))>=0&&(B=`cmo=${n[Z[34]](0,d)}`,n=n[Z[34]](d+3))),e[B]=n);return r}; i7d=function(f){f.D(f.Z,g.kk("shopping_overlay_visible"),()=>{f.p5(!0)}); f.D(f.Z,g.Ca("shopping_overlay_visible"),()=>{f.p5(!1)}); f.D(f.Z,g.kk("shopping_overlay_expanded"),()=>{f.WS=!0;Ut(f)}); f.D(f.Z,g.Ca("shopping_overlay_expanded"),()=>{f.WS=!1;Ut(f)}); f.D(f.Z,g.kk("shopping_overlay_preview_collapsed"),()=>{f.C=!0;jz(f)}); f.D(f.Z,g.Ca("shopping_overlay_preview_collapsed"),()=>{f.C=!1;jz(f)}); f.D(f.Z,g.kk("shopping_overlay_preview_expanded"),()=>{f.V=!0;jz(f)}); f.D(f.Z,g.Ca("shopping_overlay_preview_expanded"),()=>{f.V=!1;jz(f)})}; f_0=function(f){var e=f.api.S(),B=f.api.getVideoData();B=g.C3(e)+B.uY;if(!g.XY(e))return B;e={};g.$7(f.api,"addEmbedsConversionTrackingParams",[e]);return g.vT(B,e)}; eG0=function(f){if(!f.api.S().Ch){var e=f.api.getVideoData(),B=new g.ez("Inscreva-se",null,"Inscrito",null,!0,!1,e.UL,e.subscribed,"channel_avatar",null,f.api,!0);f.api.createServerVe(B.element,f);f.api.setTrackingParams(B.element,e.subscribeButtonRenderer?.trackingParams||null);f.D(B.element,"click",()=>{f.api.logClick(B.element)}); f.subscribeButton=B;g.A(f,f.subscribeButton);f.subscribeButton.di(f.element)}}; Bll=function(f,e,B="",n=""){e?(f.G!==B&&(f.C.style.backgroundImage=`url(${B})`,f.G=B),f.updateValue("channelLogoLabel",g.RT("Foto do canal $CHANNEL_NAME",{CHANNEL_NAME:n})),g.PW(f.api.getRootNode(),"ytp-title-enable-channel-logo")):g.$i(f.api.getRootNode(),"ytp-title-enable-channel-logo");f.api.logVisibility(f.C,e&&f.Ed);f.api.logVisibility(f.channelName,e&&f.Ed)}; nQk=function(f,e){if(f.C){e=Math.floor(e*.4);e=Math.max(e,47);var B=e+2;if(f.J!==B){f.J=B;f.G.height=B;f.C.clearRect(0,0,1,B);var n=f.C.createLinearGradient(0,2,0,2+e),r=e-42;n.addColorStop(0,"rgba(0, 0, 0, 0)");n.addColorStop(r/e,"rgba(0, 0, 0, 0.3)");n.addColorStop(1,"rgba(0, 0, 0, 0.68)");f.C.fillStyle=n;f.C.fillRect(0,2,1,e);f.element.style.height=`${B}px`;try{f.element.style.backgroundImage=`url(${f.G.toDataURL()})`}catch(L){}}}}; rtC=function(f,e){e!==f.U&&(f.update({chapterTitle:e,ariaLabel:e}),f.U=e);e?f.show():f.hide()}; Lul=function(f){f.C.disabled=f.G==null;g.h(f.C,"ytp-chapter-container-disabled",f.C.disabled);f.ZW()}; dKO=function(f,e,B,n,r){const L=e.Qk/e.rows;let d=Math.min(B/(e.HQ/e.columns),n/L),t=e.HQ*d,H=e.Qk*d;t=Math.floor(t/e.columns)*e.columns;H=Math.floor(H/e.rows)*e.rows;let k=t/e.columns,C=H/e.rows;const w=-e.column*k,v=-e.row*C;r&&L<=45&&(C-=1/d);k-=2/d;f=f.style;f.width=`${k}px`;f.height=`${C}px`;r||(n=(n-C)/2,B=(B-k)/2,f.marginTop=Math.floor(n)+"px",f.marginBottom=Math.ceil(n)+"px",f.marginLeft=Math.floor(B)+"px",f.marginRight=Math.ceil(B)+"px");f.background=`url(${e.url}) ${w}px ${v}px/${t}px ${H}px`}; os=function(f,e){const B=!!f.C;f.C=e;f.C?(B||(f.events.D(f.api,"videodatachange",()=>{os(f,f.api.Pr())}),f.events.D(f.api,"progresssync",f.onProgress),f.events.D(f.api,"appresize",f.V)),f.frameIndex=NaN,VI(f),f.fade.show(200)):(B&&f.events.G(),f.fade.hide(),f.fade.stop())}; VI=function(f){var e=f.C;const B=f.api.getCurrentTime(),n=f.api.AL().getPlayerSize();var r=Mi(e,n.width);r=SI5(e,r,B);f.update({timestamp:g.SL(B)});r!==f.frameIndex&&(f.frameIndex=r,h9g(e,r,n.width),e=mrG(e,r,n.width),dKO(f.G,e,n.width,n.height))}; tTk=function(f,e){return f.Z.Y("delhi_modern_web_player_icons")?e?{L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M3.29 3.29C3.11 3.46 3.01 3.70 3.00 3.94C2.98 4.19 3.06 4.43 3.22 4.63L3.29 4.70L7.58 8.99H5C4.73 8.99 4.48 9.10 4.29 9.29C4.10 9.47 4 9.73 4 9.99C4 10.26 4.10 10.51 4.29 10.70C4.48 10.89 4.73 10.99 5 10.99H11V4.99C11 4.73 10.89 4.47 10.70 4.29C10.51 4.10 10.26 3.99 10 3.99C9.73 3.99 9.48 4.10 9.29 4.29C9.10 4.47 9 4.73 9 4.99V7.58L4.70 3.29L4.63 3.22C4.43 3.06 4.19 2.98 3.94 3.00C3.70 3.01 3.46 3.11 3.29 3.29ZM19 13H13V19C13 19.26 13.10 19.51 13.29 19.70C13.48 19.89 13.73 20 14 20C14.26 20 14.51 19.89 14.70 19.70C14.89 19.51 15 19.26 15 19V16.41L19.29 20.70L19.36 20.77C19.56 20.92 19.80 21.00 20.04 20.99C20.29 20.98 20.52 20.87 20.70 20.70C20.87 20.52 20.98 20.29 20.99 20.04C21.00 19.80 20.92 19.56 20.77 19.36L20.70 19.29L16.41 15H19C19.26 15 19.51 14.89 19.70 14.70C19.89 14.51 20 14.26 20 14C20 13.73 19.89 13.48 19.70 13.29C19.51 13.10 19.26 13 19 13Z", fill:"white"}}]}:{L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M10 3H3V10C3 10.26 3.10 10.51 3.29 10.70C3.48 10.89 3.73 11 4 11C4.26 11 4.51 10.89 4.70 10.70C4.89 10.51 5 10.26 5 10V6.41L9.29 10.70L9.36 10.77C9.56 10.92 9.80 11.00 10.04 10.99C10.29 10.98 10.52 10.87 10.70 10.70C10.87 10.52 10.98 10.29 10.99 10.04C11.00 9.80 10.92 9.56 10.77 9.36L10.70 9.29L6.41 5H10C10.26 5 10.51 4.89 10.70 4.70C10.89 4.51 11 4.26 11 4C11 3.73 10.89 3.48 10.70 3.29C10.51 3.10 10.26 3 10 3ZM20 13C19.73 13 19.48 13.10 19.29 13.29C19.10 13.48 19 13.73 19 14V17.58L14.70 13.29L14.63 13.22C14.43 13.07 14.19 12.99 13.95 13.00C13.70 13.01 13.47 13.12 13.29 13.29C13.12 13.47 13.01 13.70 13.00 13.95C12.99 14.19 13.07 14.43 13.22 14.63L13.29 14.70L17.58 19H14C13.73 19 13.48 19.10 13.29 19.29C13.10 19.48 13 19.73 13 20C13 20.26 13.10 20.51 13.29 20.70C13.48 20.89 13.73 21 14 21H21V14C21 13.73 20.89 13.48 20.70 13.29C20.51 13.10 20.26 13 20 13Z", fill:"white"}}]}:e?{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"g",B:"ytp-fullscreen-button-corner-2",j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{L:"g",B:"ytp-fullscreen-button-corner-3",j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{L:"g",B:"ytp-fullscreen-button-corner-0",j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{L:"g",B:"ytp-fullscreen-button-corner-1", j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]}:{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"g",B:"ytp-fullscreen-button-corner-0",j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{L:"g",B:"ytp-fullscreen-button-corner-1",j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{L:"g",B:"ytp-fullscreen-button-corner-2",j:[{L:"path",ev:!0,B:"ytp-svg-fill", O:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{L:"g",B:"ytp-fullscreen-button-corner-3",j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]}}; Hqm=function(f,e){e?f.element.classList.add("ytp-jump-button-enabled"):f.element.classList.remove("ytp-jump-button-enabled");f.Z.logVisibility(f.element,e);f.Z.lR()}; ku0=function(f){var e=f.Z.getVideoData()?.PS;if(e){f=f.V.Fl;for(const B of e)if((e=f[B])&&e.onTap?.innertubeCommand?.changeEngagementPanelVisibilityAction?.targetId!=="engagement-panel-macro-markers-problem-walkthroughs")return e}}; Cuk=function(f){return f.Z.Y("delhi_modern_web_player_icons")?GmG():Zk()}; ww5=function(f,e){f.G.style.setProperty("--yt-slider-shape-gradient-percent",`${(e-f.J)/(f.U-f.J)*100}%`)}; lI=function(f,e,B=!1){f.V&&(cancelAnimationFrame(f.V),f.V=0);B?vQd(f,f.C,e):bqC(f,e)}; vQd=function(f,e,B){const n=performance.now(),r=B-e;if(r!==0){var L=d=>{d=(d-n)/400;d>1&&(d=1);bqC(f,e+r*KP(Zq5,q9(Zq5,d)));f.V=d<1?requestAnimationFrame(L):0}; f.V=requestAnimationFrame(L)}}; bqC=function(f,e){f.C=e;f.update({slidervalue:f.C,ariaValueNow:f.C,ariaValueText:`${f.C.toFixed(2)}`});f.G.valueAsNumber=f.C;ww5(f,e)}; RGC=function(f,e){f.element.classList.toggle("ytp-volume-popover-hovering",e);f.isVisible=e;(f=f.element.closest(".ytp-chrome-bottom"))&&f.classList.toggle("ytp-volume-popover-showing",e)}; KuG=function(f){var e=null;const B="Seu navegador n\u00e3o suporta a altera\u00e7\u00e3o de volume. $BEGIN_LINKSaiba mais$END_LINK".split(/\$(BEGIN|END)_LINK/);e=new uI(f.Z,{L:"span",y9:["ytp-popup","ytp-generic-popup"],O:{tabindex:"0"},j:[B[0],{L:"a",O:{href:"https://support.google.com/youtube/?p=noaudio",target:f.Z.S().N},Ga:B[2]},B[4]]},100,!0);g.A(f,e);e.hide();e.subscribe("show",n=>{f.Z.zK(e,n)}); g.qX(f.Z,e.element,4)}; a_G=function(f,e){f.K=e;let B=f.uY;f.Z.Y("delhi_modern_web_player_icons")?f.G.JL("ytp-svg-volume-animation-big-ripple").setAttribute("transform",`translate(${FZ}, ${mg}) scale(${e}) translate(-${FZ},-${mg})`):e&&(B+=q8d(qdd,zG5,e));f.A.setAttribute("d",B)}; Ydk=function(f,e){let B;e===1?B=f.Z.Y("delhi_modern_web_player_icons")?{L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:pS():B=f.G;f.PS=e;if(f.Z.Y("delhi_modern_web_player_icons"))f.G.JL("ytp-svg-volume-animation-small-ripple").setAttribute("transform",`translate(${pwd}, ${ct5}) scale(${1-e}) translate(-${pwd},-${ct5})`),f.G.JL("ytp-svg-volume-animation-big-ripple").setAttribute("transform",`translate(${FZ}, ${mg}) scale(${f.K-e}) translate(-${FZ}, -${mg})`);else{var n=20*e;for(var r=0;r=3&&f.Z.getPresentingPlayerType()!==2}; jG5=function(f){const e=vF(f.Z.iC());return e?f.C?e.hasNext():e.hasPrevious():!1}; VTd=function(f,e){return f?e?x_d():vl():e?{L:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:ink()}; hL=function(f,e){const B=g.SL(e),n=g.RT("Procurar $PROGRESS",{PROGRESS:g.SL(e,!0)});f.update({ariamin:0,ariamax:Math.floor(f.api.getDuration()),arianow:Math.floor(e),arianowtext:n,seekTime:B})}; gW=function(f){f.N=NaN;f.K=0;f.X=f.J}; Sz=function(f,e){f.A&&(f.A.SN=!0);f.update({seekTime:g.SL(e)});const B=f.U*f.scale;e=e-B?-e/B*f.interval*.5:-(e+B/2)/B*f.interval}; l_5=function(f){return-((f.W.offsetWidth||(f.frameCount-1)*f.U*f.scale)-f.C/2)}; UK0=function(f){var e=f.api.Pr();if(e){var B=90*f.scale,n=Mi(e,160*f.scale);if(e=e.levels[n]){f.U=e.width;if(!f.V.length){n=[];var r=GH(e,e.G()),L=e.columns*e.rows,d=e.frameCount;for(var t=0;t<=r;t++){var H=d f.V.length;)f.thumbnails.pop()?.dispose();for(;f.thumbnails.lengthB.length;)f.G.pop()?.dispose();for(;f.G.length0&&(f.G=e,f.X.style.height=`${f.G}px`)}; hGk=function(f,e,B,n,r=!1){Nlm(f,n);B=I65(e,B,f.G,n,r);e=e.length===0?"":yow(B);f.api.Y("delhi_modern_web_player")?f.J.setAttribute("d",e):f.W.setAttribute("d",e);f.H4=e!=="";g.h(f.api.getRootNode(),"ytp-heat-map",f.H4);g.h(f.api.getRootNode(),"ytp-heat-map-played_bar",f.api.Y("web_player_heat_map_played_bar")&&e!=="");f.api.Y("delhi_modern_web_player")?(f.V.style.display="none",f.C.style.display="none"):f.J.style.display="none"}; gQk=function(f,e,B,n,r=!1){Nlm(f,n);B=$p0(e,B,f.G,n,r);e=e.length===0?"":yow(B);f.api.Y("delhi_modern_web_player")?f.J.setAttribute("d",e):f.W.setAttribute("d",e);f.H4=e!=="";g.h(f.api.getRootNode(),"ytp-heat-map",f.H4);f.api.Y("delhi_modern_web_player")?(f.V.style.display="none",f.C.style.display="none"):f.J.style.display="none"}; Ep=function(f,e){g.uc(f.C,"width",e)}; QI=function(f,e){g.uc(f.C,"margin-right",`${e}px`)}; EQM=function(f){if(f.C.length===0){const e=new Sd6;f.C.push(e);g.A(f,e);e.di(f.kA,0)}for(;f.C.length>1;)f.C.pop().dispose();Ep(f.C[0],"100%");f.C[0].startTime=0;f.C[0].title=""}; TE=function(f){const e=g.yQ(f.api.S())&&(f.api.Y("web_shorts_pip")||f.api.Y("web_watch_pip"));return!f.api.getVideoData()?.isLivePlayback&&!f.api.isMinimized()&&!f.api.isInline()&&(!f.api.Qi()||!e)}; TlY=function(f){const e=new QG5(f.api);f.V.push(e);g.A(f,e);e.di(f.Cq)}; DG=function(f){for(;f.K.length;)f.K.pop().dispose()}; JtG=function(f){return g.u(g.u(f.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.decoratedPlayerBarRenderer,Ni)?.playerBar,DKG)?.chapters}; Gu5=function(f,e){let B=0,n=!1;for(const d of e){if(g.u(d,MT0)){e=g.u(d,MT0);var r={startTime:NaN,title:null,onActiveCommand:void 0},L=e.title;r.title=L?g.nS(L):"";L=e.timeRangeStartMillis;L!=null&&(r.startTime=L);r.onActiveCommand=e.onActiveCommand;e=r;B===0&&e.startTime!==0&&(f.C[B].startTime=0,f.C[B].title="",f.C[B].onActiveCommand=e.onActiveCommand,B++,n=!0);f.C.length<=B&&(r=new Sd6,f.C.push(r),g.A(f,r),r.di(f.kA,f.kA.children.length));f.C[B].startTime=e.startTime;f.C[B].title=e.title?e.title: "";f.C[B].onActiveCommand=e.onActiveCommand;f.C[B].index=n?B-1:B}B++}for(;B=k&&v<=C&&w.push(t)}r>0&&(f.Cq.style.height=`${r}px`);hGk(f.V[H],w,B,r,H===0);w.length>0&&(d=w[w.length-1])}g.JL(f); e=e.heatMarkersDecorations||[];t=[];for(const H of e)if(e=g.u(H,Pud))n=e.label,t.push({visibleTimeRangeStartMillis:e.visibleTimeRangeStartMillis??-1,visibleTimeRangeEndMillis:e.visibleTimeRangeEndMillis??-1,decorationTimeMillis:e.decorationTimeMillis??NaN,label:n?g.nS(n):""});f.heatMarkersDecorations=t}}; g.JL=function(f){f.Lq=f.C.length-1;f.IA=0;I_k(f,!0)&&I_k(f,!1);var e=0;for(var B=0;B=0;n--)if(f.C[n].width>0){QI(f.C[n],0);const r=Math.floor(f.C[n].width);f.C[n].width=r;Ep(f.C[n],`${r}px`);break}f.C[B].width=0;Ep(f.C[B],"0")}else B===f.C.length-1?(n=Math.floor(f.C[B].width+e),f.C[B].width=n,Ep(f.C[B],`${n}px`)):(e=f.C[B].width+e,n=Math.round(e),e-=n,f.C[B].width=n,Ep(f.C[B],`${n}px`));B=0;if(f.V.length===f.C.length)for(e= 0;e0&&f.api.getPlayerSize().width<=n;f.api.Y("delhi_modern_web_player")?e=f.api.getPlayerSize().width<=528?n?56:64:f.U?n?72:96:n?56:72:f.U?e=54:g.XY(B)&&!B.G&&(e=40);f.cS=e}}}; GE=function(f,e){for(const B of e){e=yI(f,B.timeRangeStartMillis/(f.J.C*1E3),Pc(f));const n=f.api.Y("delhi_modern_web_player")?.667:.6;g.uc(B.element,"transform",`translateX(${e}px) scaleX(${n})`)}}; e_k=function(f,e){e=g.u(e.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.decoratedPlayerBarRenderer,Ni);if(e?.progressColor)for(let B=0;Br.startTime&&r.width>0&&n++;n=n<0?0:n;r=B.C-Wc(f)*f.Lq;return e*r+Wc(f)*n+B.V}; Pc=function(f){let e=f.tL.x;e=g.ch(e,0,f.X);f.xI.update(e,f.X);return f.xI}; I_k=function(f,e){let B=0,n=!1;const r=f.C.length;let L=f.J.C*1E3;L===0&&(L=f.api.getProgressState().seekableEnd*1E3);if(L>0&&f.X>0){const H=f.X-Wc(f)*f.Lq,k=f.IA===0?3:H*f.IA;for(var d of f.C)d.width=0;for(;B1);const w=(L===0?0:C/L*H)+f.C[B].width;if(w>k)f.C[B].width=w;else{f.C[B].width=0;d=f;var t=B;const v=d.C[t-1];v!==void 0&&v.width>0?v.width+= w:tf.IA&&(f.IA=C/L),n=!0)}B++}}return n}; Wc=function(f){return f.api.Y("delhi_modern_web_player")?4:f.U?3:2}; sp=function(f,e,B){return Is(f)?new $H(Math.max(e,f.PL.startTimeMs/1E3),Math.min(B,f.PL.endTimeMs/1E3)):new $H(e,B)}; XZ=function(f,e,B){f.A=e;f.xA=B;const n=Pc(f);var r=f.J.C,L=gxw(f.J,f.A),d=g.RT("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.SL(L,!0),DURATION:g.SL(r,!0)}),t=vc(f.C,L*1E3);t=f.C[t].title;f.update({ariamin:Math.floor(f.J.G),ariamax:Math.floor(r),arianow:Math.floor(L),arianowtext:t?t+" "+d:d});r=f.clipStart;L=f.clipEnd;f.PL&&f.api.getPresentingPlayerType()!==2&&(r=f.PL.startTimeMs/1E3,L=f.PL.endTimeMs/1E3);r=QQ(f.J,r,0);t=QQ(f.J,L,1);d=f.api.getVideoData();L=g.ch(e,r,t);B=d?.Q3()?1:g.ch(B,r,t);e= yI(f,e,n);g.uc(f.Dk,"transform",`translateX(${e}px)`);f.api.Y("delhi_modern_web_player")&&f.api.Y("delhi_modern_web_player_cutout")&&iI(f,e);fA(f,n,r,L,"PLAY_PROGRESS");d?.eI()?(e=f.api.getProgressState().seekableEnd)&&fA(f,n,L,QQ(f.J,e),"LIVE_BUFFER"):fA(f,n,r,B,"LOAD_PROGRESS");f.api.Y("web_player_heat_map_played_bar")&&f.V[0]?.N(L)}; $Kg=function(f){f.E2.style.removeProperty("height");for(const e of Object.keys(f.BS))Bcl(f,e);ee(f);XZ(f,f.A,f.xA)}; iqw=function(f){if(!f.api.getVideoData()?.eI()){var e=Pc(f);fA(f,e,f.A,Math.max(e.G,f.A),"HOVER_PROGRESS");var B=B2(f,e.C*f.A,!0),n=B2(f,e.J,!0);for(let r=B;r<=n;r++)g.h(f.C[r].J,"ytp-hover-progress-light",e.G>f.A);g.h(f.E2,"ytp-scrubber-button-hover",B===n&&f.C.length>1);f.api.Y("web_player_heat_map_played_bar")&&f.V[0]?.K(e.G)}}; Is=function(f){return!!f.PL?.postId&&f.api.getPresentingPlayerType()!==2}; nA=function(f,e,B,n,r){e=nV6(f,e);B=nV6(f,B);f=f.progressBar.visualElement;n={seekData:{startMediaTimeMs:e,endMediaTimeMs:B,seekSource:n}};(e=g.be())&&P6(e,f,r,n)}; LA=function(f,e){e?f.N||(f.element.removeAttribute("aria-disabled"),f.N=new g.rI(f.progressBar,!0),f.api.Y("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&f.N.subscribe("hoverstart",f.YE,f),f.N.subscribe("hovermove",f.BJ,f),f.N.subscribe("hoverend",f.Xo,f),f.N.subscribe("dragstart",f.Ui,f),f.N.subscribe("dragmove",f.nA,f),f.N.subscribe("dragend",f.fA,f),f.api&&f.api.Y("delhi_modern_web_player")&&f.api.Y("delhi_modern_web_player_cutout")&&(f.Qr=new g.rI(f.progressBar, !0),f.Qr.subscribe("hoverstart",()=>{f.zt=!0;iI(f)},f),f.Qr.subscribe("hoverend",()=>{f.zt=!1; iI(f)},f)),f.CG=f.listen("keydown",f.uT)):f.N&&(f.element.setAttribute("aria-disabled","true"),f.uh(f.CG),f.N.cancel(),f.N.dispose(),f.N=null)}; dI=function(f){f.G&&(f.G.disable(),f.MC=0,f.Cq.style.removeProperty("transform"),f.progressBar.style.removeProperty("transform"),f.qC.style.removeProperty("height"),f.element.parentElement&&f.element.parentElement.style.removeProperty("height"))}; r20=function(f,e){if(f.PL?.type==="repeatChapter"||e?.type==="repeatChapter")e&&(e=f.C[vc(f.C,e.startTimeMs)],g.h(e.C,"ytp-repeating-chapter",!1)),f.PL&&(e=f.C[vc(f.C,f.PL.startTimeMs)],g.h(e.C,"ytp-repeating-chapter",!0)),f.C.forEach(B=>{g.h(B.C,"ytp-exp-chapter-hover-container",!f.PL)})}; ee=function(f){var e=!!f.PL&&f.api.getPresentingPlayerType()!==2;let B=f.clipStart;var n=f.clipEnd;let r=!0,L=!0;e&&f.PL?(B=f.PL.startTimeMs/1E3,n=f.PL.endTimeMs/1E3):(r=B>f.J.G,L=f.J.C>0&&n1){B=B2(f,e.J,!0);let n=0;for(let r=0;r0&&(n+=f.C[r].width,n+=Wc(f));B=(f.C[B].startTime+(e.J-n)/f.C[B].width*((B===f.C.length-1?f.J.C*1E3:f.C[B+1].startTime)-f.C[B].startTime))/1E3||0}return B}; B2=function(f,e,B=!1){let n=0;B&&(e-=LSl(f,e)*Wc(f));for(const r of f.C){if(e>r.width)e-=r.width;else break;n++}return n===f.C.length?n-1:n}; du0=function(f,e){const B=e/((f.U?135:90)-f.cS)*f.cS;g.uc(f.progressBar,"transform",`translateY(${-e}px)`);g.uc(f.Cq,"transform",`translateY(${-e}px)`);g.uc(f.qC,"transform",`translateY(${B}px)`);f.qC.style.height=`${e+B}px`;f.element.parentElement&&(f.element.parentElement.style.height=`${f.cS-B}px`)}; nV6=function(f,e){if(e<0)return"0";f=Math.floor(Math.min(e,f.api.getDuration())*1E3);return f>2**31-1?"0":String(f)}; t75=function(f,e,B){if(B>=f.C.length)return!1;const n=f.X-Wc(f)*f.Lq;return Math.abs(e-f.C[B].startTime/1E3)/f.J.C*n<4}; Bcl=function(f,e){var B=f.BS[e];e=f.hE[e];const n=Pc(f);let r=QQ(f.J,B.start/1E3,0),L;const d=vpG(B,f.U)/n.width;L=QQ(f.J,B.end/1E3,1);d!==Number.POSITIVE_INFINITY&&(r=g.ch(r,0,L-d));L=Math.min(L,r+d);B.color&&(e.style.background=B.color);B=r;e.style.left=`${Math.max(B*n.C+n.V,0)}px`;H2(f,e,g.ch((L-B)*n.C+n.V,0,n.width),n.width,!0)}; iI=function(f,e){f.api.getPresentingPlayerType()!==1?f.kA.style.removeProperty("clip-path"):(e||(e=yI(f,f.A,Pc(f))),f.kA.style.clipPath='path("'+(f.zt?Hx6(f,8,e,f.U?50:36,0,6):Hx6(f,4,e,f.U?34:24,2,3))+'")')}; fA=function(f,e,B,n,r){var L=f.C.length,d=e.C-f.Lq*Wc(f),t=B*d;B=B2(f,t);var H=n*d;d=B2(f,H);r==="HOVER_PROGRESS"&&(d=B2(f,e.C*n,!0),H=e.C*n-LSl(f,e.C*n)*Wc(f));n=Math.max(t-kh5(f,B),0);for(t=B;tr.width)e-=r.width,e-=Wc(f),n++;else break;return n===B?B-1:n}; kh5=function(f,e){if(e>=f.C.length)return f.X;let B=0,n=0;for(;n0||f.Wd.clientWidth>0?(L=e.clientWidth/B,f=-1*f.UE.clientWidth/B):(L/=B,f=-1*f.C[r].element.offsetLeft/B),g.uc(e,"background-size",`${L}px`),g.uc(e,"background-position-x",`${f}px`))}; wx5=function(f,e,B){B=f.C[e].V3(B);H2(f,B,0,f.C[e].width)}; g.vVg=function(f,e,B,n){const r=f.X!==B,L=f.U!==n;f.F6=e;f.X=B;f.U=n;TE(f)&&f.G?.qC(n);$Kg(f);f.C.length===1&&(f.C[0].width=B||0);r&&g.JL(f);f.G&&L&&TE(f)&&(f.G.isEnabled&&(e=f.U?135:90,B=e-f.cS,f.qC.style.height=`${e}px`,g.uc(f.Cq,"transform",`translateY(${-B}px)`),g.uc(f.progressBar,"transform",`translateY(${-B}px)`)),UK0(f.G))}; bx5=function(f,e){const B=e.getId();f.BS[B]===e&&(g.tb(f.hE[B]),delete f.BS[B],delete f.hE[B])}; kh=function(f,e){f.G=!!e;f.C(f.Z.AL().getPlayerSize())}; ZxG=function(f,e,B,n){e={L:"span",y9:n,j:[e]};let r;n="ytp-swatch-color";if(f.A||f.W)n="ytp-swatch-color-white";B==="highres"?r="8K":B==="hd2880"?r="5K":B==="hd2160"?r="4K":B.indexOf("hd")===0&&B!=="hd720"&&(r="HD");r&&(e.j.push(" "),e.j.push({L:"sup",B:n,Ga:r}));return e}; R_M=function(f,e,B){const n=f.Z9[e],r=g.V7[e];return ZxG(f,n?n.qualityLabel:r?`${r}p`:"Autom\u00e1tico",e,B)}; CA=function(f,e,B,n,r){const L=(e=f.W?f.U[e]:f.cS[e])&&e.quality;var d=e&&e.qualityLabel;d=d?d:"Autom\u00e1tico";n&&(d=`(${d}`);f=ZxG(f,d,L||"",r);n&&f.j.push(")");(n=(n=e&&e.paygatedQualityDetails)&&n.paygatedIndicatorText)&&B&&f.j.push({L:"div",B:"ytp-premium-label",Ga:n});return f}; wI=function(f,e){f=Number(g.ch(e,f.J,f.V).toFixed(2));e=Math.floor((f+.001)*100%5+2E-15);let B=f;e!==0&&(B=f-e*.01);return Number(B.toFixed(2))}; KSl=function(f,e){const B=v2(e);f.W&&(f.Cq||e===f.cS)?(f.G(f.W),f.setContent(e.toString())):f.G(B)}; z_w=function(f){var e=f.A.map(v2);f.U&&e.push(f.U);f.V(e);f.W=null;f.cS=null;e=f.Z.getPlaybackRate();b8(f.Z)&&qtO(f,e);!f.A.includes(e)||f.Cq?f.G(f.W):f.G(v2(e))}; var ucd=function(f,e){return cS[Z[2]](this,26,f,e)}; qtO=function(f,e){f.cS=e;f.W=g.RT("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:e.toString()});e=f.A.map(v2);e.unshift(f.W);f.U&&e.push(f.U);f.V(e)}; aZ0=function(f,e,B,n){B=new g.DZ({L:"div",y9:["ytp-menuitem"],O:{tabindex:"0",role:"menuitemradio","aria-checked":n?"true":"false"},j:[{L:"div",y9:["ytp-menuitem-label"],j:[{L:"div",y9:["ytp-menuitem-container-with-badge"],j:[{L:"div",Ga:"{{label}}"},f.eI]}]}]},B,f.J(e));B.listen("click",()=>{f.PS(e)}); return B}; v2=function(f){return f.toString()}; b8=function(f){return f.Y("web_settings_menu_surface_custom_playback")}; pxH=function(f,e){return!!e&&f.getAvailablePlaybackRates()[f.getAvailablePlaybackRates().length-1]<=2}; Zv=function(f){return f.Y("web_settings_menu_surface_custom_playback")&&f.Y("web_settings_use_input_slider")}; c2C=function(f,e){f.publish("settingChange",f.setting+"Override",!e);f.rA.Ss()}; Yt6=function(f,e){f.languages=g.jB(e,f.W,f);f.V(g.xg(e,f.W))}; A26=function(f,e){f.Z.setOption("captions","sampleSubtitles",e)}; Ru=function(f){return Object.values(f.tracks).find(e=>e.languageCode==="en"&&e.kind==="asr")}; KA=function(f,e){f.Z.setOption("captions","track",e)}; je0=function(f,e){f.settingsButton=e;f.element.id=e.element.getAttribute("aria-controls")}; OxO=function(f){if(f.Z.Y("delhi_modern_web_player_icons"))return f=NX.includes("pt-BR")?qc(f)&&f.isEnabled()?{L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM9.03 8.08L9.29 8.16C9.79 8.35 10.24 8.65 10.60 9.05L10.77 9.26L10.83 9.34C10.96 9.55 11.01 9.80 10.96 10.05C10.92 10.29 10.79 10.51 10.59 10.66C10.40 10.81 10.15 10.89 9.91 10.87C9.66 10.85 9.43 10.74 9.26 10.57L9.19 10.49L9.11 10.39C8.98 10.24 8.81 10.12 8.62 10.05L8.54 10.02C8.32 9.97 8.10 10.00 7.91 10.11C7.67 10.24 7.48 10.43 7.35 10.67L7.28 10.79C7.09 11.16 6.99 11.58 7 12L7.00 12.16C7.02 12.52 7.11 12.88 7.28 13.20L7.35 13.32C7.48 13.56 7.67 13.75 7.91 13.88L7.99 13.92C8.16 14.00 8.35 14.02 8.54 13.97L8.62 13.94C8.85 13.85 9.05 13.70 9.19 13.50L9.26 13.43C9.44 13.24 9.68 13.13 9.93 13.12C10.19 13.11 10.44 13.20 10.63 13.37C10.82 13.53 10.94 13.77 10.97 14.02C11.00 14.27 10.93 14.53 10.77 14.73C10.39 15.23 9.88 15.61 9.29 15.83L9.03 15.91C8.43 16.06 7.79 16.01 7.21 15.77L6.97 15.65C6.42 15.35 5.95 14.90 5.64 14.36L5.50 14.12C5.21 13.55 5.04 12.92 5.00 12.27L5 12C4.99 11.26 5.17 10.53 5.50 9.87L5.64 9.63C5.96 9.09 6.42 8.64 6.97 8.34C7.60 8.00 8.34 7.91 9.03 8.08ZM17.03 8.08L17.29 8.16C17.79 8.35 18.24 8.65 18.60 9.05L18.77 9.26L18.83 9.34C18.96 9.55 19.01 9.80 18.96 10.05C18.92 10.29 18.79 10.51 18.59 10.66C18.40 10.81 18.15 10.89 17.91 10.87C17.66 10.85 17.43 10.74 17.26 10.57L17.19 10.49L17.11 10.39C16.98 10.24 16.81 10.12 16.62 10.05L16.54 10.02C16.32 9.97 16.10 10.00 15.91 10.11C15.67 10.24 15.48 10.43 15.35 10.67L15.28 10.79C15.09 11.16 14.99 11.58 15 12L15.00 12.16C15.02 12.52 15.11 12.88 15.28 13.20L15.35 13.32C15.48 13.56 15.67 13.75 15.91 13.88L15.99 13.92C16.16 14.00 16.35 14.02 16.54 13.97L16.62 13.94C16.85 13.85 17.05 13.70 17.19 13.50L17.26 13.43C17.44 13.24 17.68 13.13 17.93 13.12C18.19 13.11 18.44 13.20 18.63 13.37C18.82 13.53 18.94 13.77 18.97 14.02C19.00 14.27 18.93 14.53 18.77 14.73C18.39 15.23 17.88 15.61 17.29 15.83L17.03 15.91C16.43 16.06 15.79 16.01 15.21 15.77L14.97 15.65C14.42 15.35 13.95 14.90 13.64 14.36L13.50 14.12C13.21 13.55 13.04 12.92 13.00 12.27L13 12C12.99 11.26 13.17 10.53 13.50 9.87L13.64 9.63C13.96 9.09 14.42 8.64 14.97 8.34C15.60 8.00 16.34 7.91 17.03 8.08Z", fill:"white"}}]}:kU():qc(f)&&f.isEnabled()?{L:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM6 11H8C8.26 11 8.51 11.10 8.70 11.29C8.89 11.48 9 11.73 9 12C9 12.26 8.89 12.51 8.70 12.70C8.51 12.89 8.26 13 8 13H6C5.73 13 5.48 12.89 5.29 12.70C5.10 12.51 5 12.26 5 12C5 11.73 5.10 11.48 5.29 11.29C5.48 11.10 5.73 11 6 11ZM12 11H18C18.26 11 18.51 11.10 18.70 11.29C18.89 11.48 19 11.73 19 12C19 12.26 18.89 12.51 18.70 12.70C18.51 12.89 18.26 13 18 13H12C11.73 13 11.48 12.89 11.29 12.70C11.10 12.51 11 12.26 11 12C11 11.73 11.10 11.48 11.29 11.29C11.48 11.10 11.73 11 12 11ZM16 15H18C18.26 15 18.51 15.10 18.70 15.29C18.89 15.48 19 15.73 19 16C19 16.26 18.89 16.51 18.70 16.70C18.51 16.89 18.26 17 18 17H16C15.73 17 15.48 16.89 15.29 16.70C15.10 16.51 15 16.26 15 16C15 15.73 15.10 15.48 15.29 15.29C15.48 15.10 15.73 15 16 15ZM6 15H12C12.26 15 12.51 15.10 12.70 15.29C12.89 15.48 13 15.73 13 16C13 16.26 12.89 16.51 12.70 16.70C12.51 16.89 12.26 17 12 17H6C5.73 17 5.48 16.89 5.29 16.70C5.10 16.51 5 16.26 5 16C5 15.73 5.10 15.48 5.29 15.29C5.48 15.10 5.73 15 6 15Z", fill:"white"}}]}:nxH()}; qc=function(f){return g.o_(f.Z.iC())!=null?g.o_(f.Z.iC()).Tw()?!!f.Z.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; oVg=function(f,e){const B=f.liveBadge.element,n=f.api.isLifaAdPlaying();B.disabled=n||e;!zz(f)||f.K===e&&f.X===f.liveIndicatorText&&f.U===f.isPremiere||(f.K=e,f.X=f.liveIndicatorText,f.U=f.isPremiere,f.ZW(),e?B.classList.add("ytp-live-badge-is-livehead"):B.classList.remove("ytp-live-badge-is-livehead"),f.liveIndicatorText?f.liveBadge.setContent(f.liveIndicatorText):f.liveBadge.setContent(f.isPremiere?"Estreia":"Ao vivo"),e?f.C&&(f.C(),f.C=null,B.removeAttribute("data-tooltip-title")):(B.setAttribute("data-tooltip-title", "Pular para transmiss\u00e3o ao vivo."),f.C=g.tK(f.tooltip,f.liveBadge.element)))}; V75=function(f,e){const B=f.PL!==e;f.PL=e;B&&au(f)}; pA=function(f){return!!f.PL&&!!f.PL.postId&&f.api.getPresentingPlayerType()!==2&&(!f.PL.type||f.PL.type==="clips")}; zz=function(f){const e=f.api.S().Y("enable_linear_program_progress"),B=f.api.getPresentingPlayerType()===2;return f.IG&&!pA(f)&&(!e||!f.G)&&!B}; au=function(f){f.updateValue("clipicon",{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",O:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]}); f.IG&&!f.G?f.updateValue("watchfullvideo","Assistir transmiss\u00e3o ao vivo"):f.updateValue("watchfullvideo","Assista o v\u00eddeo completo");g.h(f.element,"ytp-clip",pA(f));g.h(f.element,"ytp-live",zz(f))}; lZY=function(f,e){f.FG(e.width>=350)}; c2=function(f,e,B){var n=Math.floor(e),r=`${n}% ${"volume"}`+(B?" som desativado":"");B=B?0:e/100;f.updateValue("valuenow",n);f.updateValue("valuetext",r);n=f.J?78:52;r=!f.api.Y("delhi_modern_web_player")&&f.J?18:12;f.PS.style.left=`${(n-r)*B}px`;f.volume=e}; uiG=function(f){const e=f.api.E3();f.J!==e&&(f.J=e,c2(f,f.api.getVolume(),f.api.isMuted()))}; Yh=function(f,e,B,n,r){const L=f.C||f.isDragging||f.G||f.Tb;f.C=e;f.isDragging=B;f.G=n;f.Tb=r;e=f.C||f.isDragging||f.G||f.Tb;L!==e&&(e?f.W=f.D(f.element,"wheel",f.cS):(f.uh(f.W),f.W=null),g.h(f.U,"ytp-volume-slider-active",e))}; AB=function(f,e,B,n,r){e.di(B,r);f.Z.Y("frosted_glass_controls_opacity_animation")&&(f=e.element,n&&(f=e.JL(n)),f.classList.add("ytp-autohide-fade-transition"))}; OD=function(f,e,B){f.Z.Y("delhi_modern_web_player")?e.di(f.V.JL(je[B])):e.di(f.V.element)}; FSg=function(f){f.C.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",f.K.isExpanded())}; mud=function(f,e){f.Z.getPlayerStateObject().isCued()||e?e&&(f.eI.hide(),f.WS.hide(),f.muteButton&&f.muteButton.AE(!1),f.U&&f.U.AE(!1),f.W&&f.W.AE(!1),f.Z.Fg(f.V3())):e||(f.eI.show(),f.WS.show(),f.muteButton&&f.muteButton.AE(!0),f.U&&f.U.AE(!0),f.W&&f.W.AE(!0),f.w9())}; ou=function(f){if(f.Z.Y("web_player_rtr_ctrls")&&f.Z.AL().Ja)return 0;const e=f.Z.E3(),B=f.Z.getVideoData().AF;let n=0;f.Z.E3()&&f.Z.isEmbedsShortsMode()&&(n=(f.Z.AL().getPlayerSize().width-f.Z.getVideoContentRect().width)/2);return 12*(B?0:e?2:1)+n}; Uum=function(f){const e=f.Z.AL().getPlayerSize().width;return Math.max(e-ou(f)*2,100)}; VU=function(f){var e=f.Z.E3()?72:50;const B=f.Z.S();g.yQ(B)&&(B.Y("delhi_modern_web_player")?(e=g.tS(B.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),e=f.Z.Y("delhi_modern_web_player_compact_controls")||e>0&&f.Z.getPlayerSize().width<=e,e=f.Z.E3()?B.Y("delhi_modern_web_player_big_mode_consistent_pill_height")?100:112:e?70:78,f.Z.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(f=getComputedStyle(f.Z.getRootNode()).getPropertyValue("--ytp-grid-peek-height")|| "36px",e+=Number(f.replace("px","")))):e=62,g.Ms(B)&&(e=54));return e}; NcM=function(f){f.suggestedActions={};f.Z.sK("suggested_action_button_visible");f.C=null;f.Z.setTrackingParams(f.badge.element,null);f.J=!1;f.V=!1}; h_0=function(f){f.updateValue("channelLink","");f.updateValue("channelName","");g.Ms(f.api.S())||f.api.Y("enable_channel_title_always_focusable")?f.updateValue("channelTitleFocusable","0"):f.updateValue("channelTitleFocusable","-1")}; g.tK=function(f,e){if(f.eI)return()=>{}; e.addEventListener("mouseover",f.U);e.addEventListener("focus",f.U);const B=f.env.Y("player_tooltip_data_title_killswitch")?e.getAttribute("title"):e.getAttribute("data-tooltip-title");B&&!e.hasAttribute("aria-label")&&e.setAttribute("aria-label",B);return()=>{f.C===e&&f.W();e.removeEventListener("mouseover",f.U);e.removeEventListener("focus",f.U)}}; l8=function(f){let e;if(f.C){e=f.C.getAttribute("data-tooltip-text");if(f.J&&f.C.getAttribute("aria-label")!==f.J)var B=f.J;var n=f.C.getAttribute("aria-keyshortcuts"),r=f.C.getAttribute("data-title-no-tooltip");n&&r&&(B=g.RT("$BUTTON_TITLE atalho do teclado $SHORTCUT_KEY",{BUTTON_TITLE:r,SHORTCUT_KEY:n}));B&&f.C.setAttribute("aria-label",B);if(e&&!f.K){gVm(f,!0);var L=f.C;f.updateValue("text",e);B=L.getAttribute("data-duration");f.update({title:f.J,duration:B});L=L.getAttribute("data-preview");f.env.Y("delhi_modern_web_player")? (f.updateValue("title",r),f.updateValue("keyBoardShortcutTitle",n.toUpperCase())):gVm(f,!1);n=243*f.scale;r=141*f.scale;f.bg.style.width=`${n}px`;f.bg.style.height=`${r}px`;f.bg.style.backgroundImage=L?`url(${L})`:"";f.bg.style.backgroundSize=`${n}px ${r}px`;f.wrapper.style.width=`${n}px`;g.I0(f.element,["ytp-text-detail","ytp-preview"]);g.h(f.element,"ytp-has-duration",!!B)}else r&&n&&f.env.Y("delhi_modern_web_player")?(f.updateValue("text",r),f.updateValue("keyBoardShortcut",n.toUpperCase())):f.updateValue("text", f.J),g.il(f.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);B=f.C;B.hasAttribute("data-tooltip-offset-y")?(B=Number(B.getAttribute("data-tooltip-offset-y")),B=isNaN(B)?0:B):B=0;StM(f,!!e,void 0,B)}}; gVm=function(f,e){f.env.Y("delhi_modern_web_player")&&f.scale!==.6&&(f.scale=e?.8:1)}; EVO=function(f,e){g.h(f.element,"ytp-preview",e>=0);if(!(e<0||e===f.V)){f.V=e;e=243*f.scale;var B=141*f.scale,n=mrG(f.G,f.V,e);dKO(f.bg,n,e,B,!0);f.Cq.start()}}; StM=function(f,e,B,n){const r=Math.min(f.IE,300*f.scale);f.element.style.maxWidth=e?"":`${r}px`;f.uY.ke(f.element,f.C,B,f.type===1,n);f.element.style.top?g.PW(f.element,"ytp-bottom"):f.element.style.bottom&&g.PW(f.element,"ytp-top");f.type===3&&f.cS.start()}; QeH=function(f,e,B,n){if(e&&!e.hasAttribute)f=new g.Dj("showElementTooltip called with non-element.",e.toString()),g.J(f);else{isNaN(f.V)||(f.V=NaN,f.bg.style.background="");g.$i(f.element,"ytp-tooltip-progress-bar-style");f.C=e;f.K=!!n;n?f.J=n:(f.env.Y("player_tooltip_data_title_killswitch")?f.J=e.getAttribute("title"):f.J=e.getAttribute("data-tooltip-title"),f.env.Y("player_tooltip_data_title_killswitch")?e.removeAttribute("title"):e.removeAttribute("data-tooltip-title"));g.X3(f.element,"ytp-tooltip"); f.api.Y("frosted_glass_controls_opacity_animation")&&g.PW(f.element,"ytp-frosted-glass-fade-transition");var r=e.getAttribute("data-tooltip-image");r&&(f.image.style.backgroundImage=`url(${r})`);n?f.update({ariaHidden:"false"}):f.update({ariaHidden:"true"});g.h(f.element,"ytp-tooltip-image-enabled",!!r);e=e.getAttribute("data-tooltip-opaque");g.h(f.element,"ytp-tooltip-opaque",!!e);f.type=B;f.api.addEventListener("appresize",f.A);f.X&&(l8(f),f.fade.show(0))}}; TcY=function(f){const e=f.C;f.type===3&&f.cS.stop();f.api.removeEventListener("appresize",f.A);f.K||(f.env.Y("player_tooltip_data_title_killswitch")?e.setAttribute("title",f.J):e.setAttribute("data-tooltip-title",f.J));f.J="";f.C=null;f.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});f.wrapper.style.width=""}; Dum=function(f){if(!f.isRequestPending){f.isRequestPending=!0;f.gi(3);var e=f.Z.getVideoData();e=f.C?e.removeFromWatchLaterCommand:e.addToWatchLaterCommand;const B=f.Z.pB(),n=f.C?()=>{f.C=!1;f.isRequestPending=!1;f.gi(2);f.Z.S().K&&g.yW(f.Z,"WATCH_LATER_VIDEO_REMOVED")}:()=>{f.C=!0; f.isRequestPending=!1;f.gi(1);f.Z.S().G&&f.Z.q2(f.element);f.Z.S().K&&g.yW(f.Z,"WATCH_LATER_VIDEO_ADDED")}; D7(B,e).then(n,()=>{f.isRequestPending=!1;f.gi(4,"Ocorreu um erro. Tente novamente mais tarde.");f.Z.S().K&&g.yW(f.Z,"WATCH_LATER_ERROR","Ocorreu um erro. Tente novamente mais tarde.")})}}; J2k=function(f){const e=f.Z.getPlayerSize(),B=f.Z.S(),n=f.Z.getVideoData(),r=g.XY(B)&&g.bS(f.Z)&&f.Z.getPlayerStateObject().C(128),L=B.J;return B.hE&&e.width>=240&&!n.isAd()&&n.hE&&!r&&!n.AF&&!f.Z.isEmbedsShortsMode()&&!L}; M7w=function(f,e){if(e!==f.icon){let B;switch(e){case 3:B=hK();break;case 1:B=LS();break;case 2:B={L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:B={L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path", ev:!0,O:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}f.updateValue("icon",B);f.icon=e}}; GhH=function(f,e){i_(g.IP(f.Z.S()),"wl_button",()=>{A_6({videoId:e});window.location.reload()})}; xuH=function(f){const e=f.api.S(),B=f.api.getPlayerStateObject().C(128);return e.V&&B&&!f.api.isFullscreen()}; u8=function(f){if(f.B0()&&!f.api.isEmbedsShortsMode()&&f.zZ){var e=f.api.Y("web_player_hide_overflow_button_if_empty_menu");!f.Zv||e&&!J2k(f.Zv)||qv(f.zZ,f.Zv);!f.shareButton||e&&!pp(f.shareButton)||qv(f.zZ,f.shareButton);!f.copyLinkButton||e&&!wGl(f.copyLinkButton)||qv(f.zZ,f.copyLinkButton)}else{const B=f.api.S().getWebPlayerContextConfig();if(f.zZ){e=f.zZ;for(const n of e.actionButtons)n.detach();e.actionButtons=[]}f.searchButton&&!g.HN(f.v0.element,f.searchButton.element)&&f.searchButton.di(f.v0.element); !f.Zv||B?.hideTopWatchNextButton||g.HN(f.v0.element,f.Zv.element)||f.Zv.di(f.v0.element);!f.shareButton||B?.hideTopShareButton||g.HN(f.v0.element,f.shareButton.element)||f.shareButton.di(f.v0.element);f.copyLinkButton&&!g.HN(f.v0.element,f.copyLinkButton.element)&&f.copyLinkButton.di(f.v0.element)}}; FB=function(f,e,B){e=B?e.lastElementChild:e.firstElementChild;let n=null;for(;e;){if(NV(e,"display")!=="none"&&e.getAttribute("aria-hidden")!=="true"){let r;e.tabIndex>=0?r=e:r=FB(f,e,B);r&&(n?B?r.tabIndex>n.tabIndex&&(n=r):r.tabIndex{for(let f=UD.length;f<4;f++){const e=g.BN("VIDEO");e.load();UD.push(new g.Nc(e))}},{capture:!0, passive:!0}),Xxw=!0)}; hB=function(f,e,B,n){var r=B.getVideoData();const L=e.getVideoData();if(B.getPlayerState().isError())return{msg:"player-error"};var d=L.J;if(e.SU()>n/1E3+1)return{msg:"in-the-past"};if(L.isLivePlayback&&!isFinite(n))return{msg:"live-infinite"};n=e.aC();var t=null;n&&(t=n.isView()?n.mediaElement.W():n.W());if(t&&t.length>12&&g.VW(r))return{msg:"played-ranges"};if(!r.J)return null;if(!d)return{msg:"no-pvd-formats"};if(!r.J.C()||!d.C())return{msg:"non-dash"};n=d.videoInfos[0];t=r.J.videoInfos[0];f.Ed&& vY(L)&&(n=e.jC(),t=B.jC());if(!n||!t)return{msg:"no-video-info"};if(f.U&&(n.C()||t.C()))return{msg:"av1"};e=f.V&&L.aR()&&$5();if(t.containerType!==n.containerType)if(e)L.ri("sgap",{ierr:"container"});else return{msg:"container"};if(f.W&&!e&&(t.NC!==n.NC||t.NC===""||n.NC===""))return{msg:"codec"};if(f.X&&t.video&&n.video&&Math.abs(t.video.width/t.video.height-n.video.width/n.video.height)>.01)return{msg:"ratio"};if(g.VW(L)&&g.VW(r))return{msg:"content-protection"};d=d.G[0];r=r.J.G[0];B=d.audio;const H= r.audio;if(B.sampleRate!==H.sampleRate&&!g.PP)if(e)L.ri("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:d.itag,cr:B.sampleRate,ni:r.itag,nr:H.sampleRate};return(B.numChannels||2)!==(H.numChannels||2)?{msg:"channel-count"}:f.K&&L.aR()&&n.video.fps!==t.video.fps?{msg:"fps"}:null}; PjC=function(f,e,B){const n=f.getVideoData(),r=e.getVideoData();if(!n.S().supportsGaplessShorts())return{nq:"env"};if((!B.N||n.nz&&!n.isAd()||r.nz&&!r.isAd())&&(!B.G||n.nz&&!n.isAd()||r.nz)&&(!B.J||r.nz&&!r.isAd()||n.nz)&&(n.nz||r.nz))return{nq:"autoplay"};if(n.endSeconds>0)return{nq:"endcr"};if(!n.X)return{nq:"client"};if(!f.uE())return{nq:"no-empty"};f=hB(B,f,e,Infinity);return f!=null?{nq:f.msg}:null}; $um=function(f){const e=new IZO;e.V=f.Y("h5_gapless_support_types_diff");e.K=!1;e.Ed=f.Y("html5_gapless_use_format_info_fix");e.U=f.Y("html5_gapless_disable_on_av1")&&!f.Y("html5_gapless_enable_on_av1");e.W=f.Y("html5_gapless_check_codec_diff_strictly");e.N=f.Y("html5_gapless_on_ad_autoplay");e.X=f.Y("html5_gapless_disable_diff_aspect_radio");e.G=f.Y("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!f.Y("html5_disable_loop_range_for_shorts_ads");e.C=f.Y("html5_pseudogapless_shorts_seek_to_next_start"); e.J=f.Y("html5_gapless_ad_autoplay_on_video_to_ad_only");return e}; gI=function(f,e){e<=f.status.status||(f.status={status:e,error:null},e===5&&f.nY.resolve())}; ix6=function(f,e,B,n){f=f.isView()?f.mediaElement:f;return new g.Se(f,e,B,n)}; fIw=async function(f){if(f.HS())return Promise.reject(Error(f.status.error||"disposed"));f.timeout.start();await f.nY;var e=f.C.aC();if(e.isEnded())return f.Kz("ended_in_finishTransition"),Promise.reject(Error(f.status.error||""));if(!f.W||!fh(f.W))return f.Kz("next_mse_closed"),Promise.reject(Error(f.status.error||""));if(f.G.Sw()!==f.W)return f.Kz("next_mse_mismatch"),Promise.reject(Error(f.status.error||""));const {HR:B,HX:n,Ev:r}=f.K();f.C.TC(!1,!0);const L=ix6(e,B,r,!f.G.getVideoData().isAd()); f.G.setMediaElement(L);const d=f.C.yL();d&&f.G.Y1(d.Nv,d.x_);f.eI&&(f.policy.C||f.G.seekTo(f.G.getCurrentTime()+.001,{jN:!0,eH:3,wX:"gapless_pseudo"}),L.play());e=e.xp();e.cpn=f.C.getVideoData().clientPlaybackNonce;e.st=`${B}`;e.et=`${r}`;f.G.ri("gapless",e);f.C.ri("gaplessTo",{cpn:f.G.getVideoData().clientPlaybackNonce});e=f.C.getPlayerType()===f.G.getPlayerType();f.C.LZ(n,!0,!1,e,f.G.getVideoData().clientPlaybackNonce);f.G.LZ(f.G.getCurrentTime(),!0,!0,e,f.C.getVideoData().clientPlaybackNonce); f.G.q1();g.Sk(()=>{!f.G.getVideoData().K&&f.G.getPlayerState().isOrWillBePlaying()&&f.G.Xv()}); gI(f,6);f.dispose();return Promise.resolve()}; BU6=function(f){if(f.G.getVideoData().J){var e=f.Xx.S().Y("html5_gapless_suspend_next_loader")&&f.U===1;f.G.vP(f.W,e,f.U===1&&lK(f.C.getVideoData()));gI(f,3);eHm(f);var {zn:B,Hi:n}=ED(f);B.subscribe("updateend",f.X,f);n.subscribe("updateend",f.X,f);f.X(B);f.X(n)}}; eHm=function(f){f.C.unsubscribe("internalvideodatachange",f.J,f);f.G.unsubscribe("internalvideodatachange",f.J,f);f.Xx.S().Y("html5_gapless_use_format_info_fix")&&(f.C.unsubscribe("internalvideoformatchange",f.J,f),f.G.unsubscribe("internalvideoformatchange",f.J,f));f.C.unsubscribe("mediasourceattached",f.J,f);f.G.unsubscribe("statechange",f.A,f)}; ED=function(f){return{zn:f.V.C.o6,Hi:f.V.G.o6}}; rW5=async function(f){if(!f.HS()&&f.V&&f.C){f.Ed&&f.app.Od().H3(!0,!1);var e=null;if(f.J)try{await fIw(f.J)}catch(n){e=n}if(f.C&&(nZm.LP("vqsp",()=>{f.app.Vg(f.C)}),f.C)){var B=f.C.aC(); f.app.S().Y("html5_gapless_seek_on_negative_time")&&B&&B.getCurrentTime()<-.01&&f.C.seekTo(0);nZm.LP("vqpv",()=>{f.app.playVideo()}); e&&(f.C?(e=e?e.message:"forced",f.G?.ri("gapfulfbk",{r:e}),f.C.PM(e)):f.G?.ri("gapsp",{}));e=f.V;QU(f);e&&e.resolve();Promise.resolve()}}}; Tz=function(f){f.N&&f.U&&f.N.removeEventListener("timeupdate",f.U);f.U=null;f.N=null}; QU=function(f,e=!1){if(f.G){if(f.X){var B=f.G;f.app.wi.removeEventListener(g.kk("vqueued"),f.K);B.removeCueRange(f.X)}f.G=null;f.X=null}f.J&&(f.J.status.status!==6&&(B=f.J,B.status.status!==Infinity&&B.U!==1&&B.Kz("Canceled")),f.J=null);f.V=null;f.C&&!e&&f.C!==f.app.cL()&&f.C!==f.app.Od()&&f.C.dispose();f.C&&e&&f.C.dl();f.C=null;f.Ed=!1}; L_H=function(f,e,B=!0){const n=f.app.Od(),r=n.getVideoData().isLivePlayback?Infinity:n.zJ(!0)*1E3;e>r&&(e=r-200,f.Ed=!0);B&&n.getCurrentTime()>=e/1E3?f.K():(f.G=n,B&&(B=e,e=f.G,f.app.wi.addEventListener(g.kk("vqueued"),f.K),B=isFinite(B)||B/1E3>e.getDuration()?B:0x8000000000000,f.X=new g.VD(B,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(f.X)))}; t9m=function(f,e,B,n=0,r=0){f.uE()||(Tz(f),QU(f));f.V=new wC;f.C=e;L_H(f,B,r===0);var L=n/=1E3,d=e.getVideoData().C;if(n&&d&&f.G){let t=n,H=0;e.getVideoData().isLivePlayback&&(L=Math.min(B/1E3,f.G.zJ(!0)),H=Math.max(0,L-f.G.getCurrentTime()),t=Math.min(n,e.zJ()+H));L=BHm(d,t)||n;L!==n&&f.C.ri("qvaln",{st:n,at:L,rm:H,ct:t})}e=L;n=f.C;n.getVideoData().UE=!0;n.getVideoData().X=!0;n.Qg(!0);d={};f.G&&(d=f.G.q9(),L=f.G.getVideoData().clientPlaybackNonce,d={crt:(d*1E3).toFixed(),cpn:L});n.ri("queued",d); e!==0&&n.seekTo(e+.01,{jN:!0,eH:3,wX:"videoqueuer_queued"});f.J=new dkw(f.W,f.app.Od(),f.C,B,f.app,r);B=f.J;B.status.status!==Infinity&&(gI(B,1),B.C.subscribe("internalvideodatachange",B.J,B),B.G.subscribe("internalvideodatachange",B.J,B),B.Xx.S().Y("html5_gapless_use_format_info_fix")&&(B.C.subscribe("internalvideoformatchange",B.J,B),B.G.subscribe("internalvideoformatchange",B.J,B)),B.C.subscribe("mediasourceattached",B.J,B),B.G.subscribe("statechange",B.A,B),B.C.subscribe("newelementrequired", B.cS,B),B.J());return f.V}; C_l=function(f,e){if(f.app.S().JE().C.jI(HQk)){var B=f.app.S().JE().C.jI(kik);if(!(B<=0)){Tz(f);var n=f.app.Od()?.aC();n&&f.C&&(f.C.getVideoData().eO=!0,f.U=()=>{var r=n.getCurrentTime();r>=e+B/1E3&&(r=Date.now()-(r-e)*1E3,f.app.Pt().tick("pbs",r),Tz(f))},f.N=n,n.addEventListener("timeupdate",f.U))}}}; wO5=function(f,e,B){if(f.uE())return"qie";if(f.C==null||f.C.HS()||f.C.getVideoData()==null)return"qpd";if(e.videoId!==f.C.uj())return"vinm";if((f.J?.Ed()||-1)<=0)return"ivd";if(B!==1)return"upt";f=f.J?.WS();return f!=null?f:null}; iT0=function(f){return!(f.isMinimized()||f.isInline()||f.isBackground()||f.Qi()||f.EC()||f.Ji()||f.dM())}; JB=function(f){const e=(0,g.T)();f.data.forEach(B=>{B.expire!(B.expiree.value)}; Dv=function(f,e,B){B&&f.G&&f.G(e.value)}; vZM=function(f){const e=f.C?[f.C]:[];for(const B of Object.values(f.V))B.dispose();f.V={};f.C=null;f.X=null;f.K.clear();Gz(f,[],e)}; Gz=function(f,e,B){const n=[f.G];f.C&&n.push(f.C);f.api.publish("playbackChange",{active:n.filter(r=>r.getPlayerType()!==0).map(r=>({cpn:r.gj()})), started:e.filter(r=>r.getPlayerType()!==0).map(r=>({cpn:r.gj()})), ended:B.filter(r=>r.getPlayerType()!==0).map(r=>({cpn:r.gj()}))})}; xh=function(f,e,B){const n=[e],r=f.C?[f.C]:[];f.V[e.gj()]=e;f.C=e;B&&(f.X=e);f.K.set("",e);Gz(f,n,r)}; RHY=function(f){const e=f.experiments,B=e.SI.bind(e);W2=B("html5_use_async_stopVideo");bQH=B("html5_pause_for_async_stopVideo");sD=B("html5_not_reset_media_source")||B("html5_not_reset_media_source_non_drm_vod");B("html5_listen_for_audio_output_changed")&&(jOY=!0);eS=B("html5_not_reset_media_source")||B("html5_not_reset_media_source_non_drm_vod");ZQw=B("html5_not_reset_media_source")||B("html5_not_reset_media_source_non_drm_vod");XB=B("html5_retain_source_buffer_appends_for_debugging");H9d(B("web_watch_pip")|| B("web_shorts_pip"));XkO(B("log_foreground_not_focused_as_background"));yF5(B("web_player_pip_logging_fix"));B("html5_mediastream_applies_timestamp_offset")&&(Bg=!0);f.wA()&&R15();Error.stackTraceLimit=50;const n=g.tS(e,"html5_idle_rate_limit_ms");n&&Object.defineProperty(window,"requestIdleCallback",{value:r=>window.setTimeout(r,n)}); UJH(f.W);ttk(B("html5_use_ump_request_slicer"));B("html5_disable_streaming_xhr")&&(sh=!1);B("html5_byterate_constraints")&&(fl=!0);B("html5_use_non_active_broadcast_for_post_live")&&(yU=!0);B("html5_enable_encrypted_av1")&&(Q7=!0);qcC(g.tS(f.experiments,"html5_sticky_duration_mos"))}; uUH=function(f){const e={};var B=f.experiments.HC();const n=[];f=(L,d,t)=>{n.push(hS(d(t),H=>{e[L]=H}))}; var r=B.C.jI(K_g);r&&f("MediaSource.EnableUsingMediaSourceBufferedRange",e1d,r===1);(r=B.C.jI(q5l))&&f("HTTP3",BGM,r===1);(r=B.C.jI(zHY))&&f("MediaSource.EnableUsingMediaSourceAttachmentMethods",nG5,r===1);(r=B.C.jI(aI5))&&f("QUIC",raC,r===1);(r=B.C.jI(pOH))&&f("Media.PlayerConfiguration.DecodeToTexturePreferred",dQ5,r===1);(r=B.C.jI(cWG))&&f("Media.AudioWriteDurationLocal",L6M,Number(r));(r=B.C.jI(Y55))&&f("Media.VideoBufferSizeClampMb",tfH,r);(r=B.C.jI(AWm))&&f("Media.EnableAllocateOnDemand",CJY, Number(r)===1);(r=B.C.jI(j_C))&&f("Media.AppendFirstSegmentSynchronously",wm6,Number(r)===1);(r=B.C.jI(OQd))&&f("Media.EnableFlushDuringSeek",bzw,Number(r)===1);(r=B.C.jI(oZm))&&f("Media.EnableResetAudioDecoder",vGC,Number(r)===1);(r=B.C.jI(V9Y))&&f("Media.VideoDecoderPollIntervalMs",HzY,r);(B=B.C.jI(lIO))&&f("Media.VideoInitialMaxFramesInDecoder",kaY,B);return hS(RFM(n),()=>e)}; MX=function(f,e=!1,B=1048576){let n=P2(f);n=1/((f.X.H0()||0)*f.policy.N+1/n);let r=f.WS.H0();r=r>0?r:1;var L=Math.max(n,r);f.policy.V>0&&r1E3){const n=f.interruptions;n.push(Math.ceil(B));n.sort((r,L)=>L-r); n.length>16&&n.pop()}f.cS+=B}}f.W=e}; $h=function(f,e,B){isNaN(B)||(f.Cq+=B);isNaN(e)||(f.Z9+=e)}; dz=function(f,e,B,n=e){f.V.fB(n,B/e);f.U=(0,g.T)()}; i8=function(f,e,B){e=Math.max(e,f.G.C);f.X.fB(1,B/e)}; fM=function(f,e,B,n,r,L=!1){f.WS.fB(e,B/e);f.U=(0,g.T)();r||f.N.fB(1,e-n);L||(f.W=0);f.A>-1&&(0,g.T)()-f.A>3E4&&(z4k(Iu(f)),f.A=(0,g.T)(),f.Ed=!0)}; O3=function(f){return(0,g.T)()-f.U>=4E3}; P2=function(f){f=f.V.H0();return f>0?f:1}; mkm=function(f,e,B=!1){e.ZO=f.Cq;e.DJ=f.Z9;e.bandwidthEstimate=MX(f);if(B){B=(f.K.H0()*1E3).toFixed();var n=(f.eI.H0()*1E3).toFixed(),r=xr(f).toFixed(2),L=((f.X.H0()||0)*1E9).toFixed(2),d=f.V.H0().toFixed(0),t=f.WS.H0().toFixed(0),H=f.N.percentile(.5).toFixed(2),k=f.N.percentile(.92).toFixed(2),C=f.N.percentile(.96).toFixed(2),w=f.N.percentile(.98).toFixed(2);f.C?f.C.reset():f.C=new eQ;f.C.add(f.cS);f.C.add(f.interruptions.length);let K=0;for(var v=f.interruptions.length-1;v>=0;v--){var b=f.interruptions[v]; f.C.add(b-K);K=b}K=0;for(v=f.J.length-1;v>=0;v--){b=f.J[v];const Y=b.stamp/36E5;f.C.add(Y-K);K=Y;f.C.add(b.net/1E3);f.C.add(b.max)}f=f.C.VD();e.C={ttr:B,ttm:n,d:r,st:L,bw:d,abw:t,v50:H,v92:k,v96:C,v98:w,"int":f}}}; NUC=function(f,e,B){const n=new Uk6(B);f&&(n.J=!0,n.W=.1);B.SI("html5_media_time_weight")&&(n.J=!1);e&&(n.C=e/8);n.G=Mm()>=480;return n}; hH5=function(f,e,B=!0){f.C=0;f.startTimeSecs=e;f.J=B;f.G=!0}; gZ6=function(f,e,B){f=f.G;var n=g.ax(f,{Vz:e},(r,L)=>r.Vz-L.Vz); n=n<0?(n+2)*-1:n;if(n>=0)for(let r=n;r<=n+1&&r=L.Vz-B&&e<=L.i6+B)return L}}; S5g=function(f,e,B){const n=f.C.get(e);n?(n.push(B),g.cB(n,(r,L)=>r.Vz-L.Vz)):f.C.set(e,[B])}; EZG=function(f,e){g.Au(f.G,e,(B,n)=>B.Vz===n.Vz?B.durationMs-n.durationMs:B.Vz-n.Vz); f.J.set(e.cpn,e);e.mN&&S5g(f,e.mN,e)}; Q_l=function(f,e){const B=[];for(const n of f.G)e(n)||B.push(n);if(f.Ta.Y("html5_sstm_fixes"))for(const n of f.G)e(n)&&f.J.delete(n.cpn);f.G=B}; TUC=function(f,e){e=g.ax(f.G,{i6:e},(B,n)=>B.i6-n.i6); return e>=0?f.G[e]:null}; Dk5=function(f,e){const B=f.G.indexOf(e);B>=0&&f.G.splice(B,1);f.J.delete(e.cpn)}; jZG=function(f,e){if(f.H6||e.identifier&&f.UE.has(e.identifier))f.dA({startnoad:e.identifier}),BM(f);else if(yG(f.K,B=>B.identifier===e.identifier))f.dA({timedoutcp:1}),f.U.start(0); else if(yG(f.Lq,B=>B.identifier===e.identifier))f.dA({fetchedcp:1}),BM(f); else if(f.U.isActive())f.dA({racingcp:`${f.W?.identifier}_${e.identifier}`});else{f.Mk=(new Date).getTime()/1E3;f.dA({adf:1});let B=5E3;B&&e.event==="predictStart"&&(B-=e.C);f.MC=Math.max(B,15E3);f.X=!1;f.U.start(f.MC);f.W=e;f.Ed.clearAll();f.BS=[]}}; g.kyC=function(f,e,B,n,r,L,d){var t=r===3,H=JWH(f,e,B,r,n,d);if(!H)return nM(f,B,t),H=g.ri(f,B)?"undec":"ncp",f.dA({gvprp:H,mt:e,seg:B,tt:r,itag:n,ce:d}),null;t||f.RP.set(B,H);d=H.mN;r=f.mC(B-1,r,L)?.f1||"";r===""&&f.dA({eds:1});L=M9O(f,H.ssdaiAdsConfig);t=f.playback.getVideoData();t=t.gz[t.G?.containerType||0];H=H.WB&&B>=H.WB?H.WB:void 0;H={Uu:d?LM(f,d):[],adsConfig:L,f1:r,Za:H,MZ:Hh(t.split(";")[0]),nS:t.split(";")[1]||""};r={u$:H};f.Fl&&f.dA({gvprpro:"v",sq:B,mt:e.toFixed(3),itag:n,acpns:H.Uu?.join("_")|| "none",abid:d});return r}; mk=function(f,e,B,n,r){n=n||{reason:"disablessdai"};if(e&&B){if(!di(f,e,B))return!1;n.sq=B}if(f.H6)return!1;f.H6=!0;f.YL>0&&(f.YL=0,f.kf="",f.YD(f.playback.gj(),0),f.api.publish("serverstitchedvideochange"));f.playback.yV(n,r);return!0}; GiM=function(f,e,B){const n=f.tL||f.app.Od().getPlayerState();tN(f,!0);f.playback.seekTo(e,B);f=f.app.Od();e=f.getPlayerState();n.isOrWillBePlaying()&&!e.isOrWillBePlaying()?f.playVideo():n.isPaused()&&!e.isPaused()&&f.pauseVideo()}; HM=function(f){f.Fl&&f.dA({adf:`0_${(new Date).getTime()/1E3-f.Mk}_isTimeout_${f.X}`})}; xkw=function(f,e,B){if(f.K.length)for(const n of f.K){const r=n.startSecs*1E3,L=n.Kc*1E3+r;if(e>r&&er&&Bd.identifier===n.identifier)||(f.dA({adskip:e}),f.EE.push(n)),n}}; kz=function(f,e,B){f.playback.wp(e,B)}; BM=function(f){f.X=!1;f.U.isActive()&&HM(f);f.U.stop();f.R_(!1)}; s_g=function(f,e){return e?f.Ta.JE().C.jI(W_d)&&e?.tileContext?`${e?.g$};${e?.tileContext}`:e?.g$:""}; yWM=function(f,e,B){(f.app.U2().V[e.clientPlaybackNonce]||null)?.dispose();e=new XOO(e,f.playback,B/1E3);f.Cq.set(e.gj(),e);f.app.U2().V[e.gj()]=e}; CM=function(f,e,B){return{ssvc:e,cpn:B?.cpn||"",vid:B?.videoData.videoId||"",ct:(f.playback.getCurrentTime()||0).toFixed(3),cmt:(f.playback.SU()||0).toFixed(3)}}; P_Y=function(f,e,B){return new g.VD(f,e,{id:B,namespace:"serverstitchedcuerange",priority:9})}; wi=function(f,e,B,n){f.Ta.Y("html5_ssdai_log_ssevt_in_loader_timers")&&(n=f.N?0:Math.round((n-B)*1E3),f.playback.ri("ssevt",{tag:"sstme",ad:e!==f.playback.gj(),cpn:e,st:(B-f.playback.IV()).toFixed(3),late:n}))}; b2=function(f,e){f.J||f.N||vM(f,f.kf);const B=e.mq,n=e.nU;if(n.cpn===f.kf)f.dA({igtranssame:1,enter:n.cpn,exit:B.cpn});else{var r=f.N,L=!!f.J;f.J="";var d=e.KU,t=B.playerType===2?B.Vz/1E3+B.videoData.G6:f.fF().videoData.G6;f.api.Y("html5_ssdai_enable_media_end_cue_range")&&(L||r||B.playerType!==2?(r||L)&&f.dA({mecr:0,seek:r,skip:L}):f.api.gg(B.cpn));if(B.playerType===2&&n.playerType===2)L?f.dA({igtransskip:1,enter:n.cpn,exit:B.cpn,seek:r,skip:f.J}):IIO(f,B,n,t,d,r,L);else{f.kf=n.cpn;f.YD(n.cpn,n.startTimeSecs|| d);e=e.NO;if(B.playerType===1&&n.playerType===2){f.cS=0;$kO(f,n);var H=CM(f,"c2a",n);f.dA(H);f.YL++}else if(B.playerType===2&&n.playerType===1){f.api.publish("serverstitchedvideochange");H=CM(f,"a2c");f.dA(H);f.YL=0;f.cS=t;H=B.cpn;var k=f.cS;if(H!==f.playback.gj()){const C=f.Cq.get(H);C?C.C=k:f.dA({nop_e:H})}f.gy(B.mN)}H=iQg(f);f.playback.QA(B,n,t,d,r,L,e,H)}fG5(f)}}; $kO=function(f,e){var B=f.app;Gk(B.EK())&&B.Bd.J[2]&&g.Vj(f.logger,360717806,"SSTM lingering playback");f.api.CU();f.api.publish("serverstitchedvideochange",e.cpn,e.MA)}; ZM=function(f,e,B=0){return{MG:gZ6(f.C,e*1E3,B*1E3),fl:e}}; vM=function(f,e){var B=e||f.kf;const n=f.C.rR(B);n?(e=n.videoData,B=n.MA||(f.G.get(B)?.start??0)/1E3,f=f.playback.getCurrentTime()-B,e.G6=f>0?f:0):f.fF().videoData.G6=f.playback.getCurrentTime()}; eQG=function(f,e,B){f.playback.dZ();f.playback.seekTo(e,B);f.playback.playVideo()}; tN=function(f,e){f.G6=NaN;f.Ch=null;f.xA.stop();f.WS&&e&&f.WS.Yx();f.tL=null;f.WS=null}; Rb=function(f){BWG(f);for(var e of f.G.values())e.start>=-1&&e.end<=Infinity&&(f.playback.removeCueRange(e),f.G.delete(e.getId()),f.dA({rmAdCR:1}));const {MG:B,fl:n}=ZM(f,-.001);B&&(e=n*1E3-B.Vz,nH0(f,B,e,B.Vz+e),e=f.G.get(B.cpn))&&(e.start=B.Vz,e.end=B.Vz+B.durationMs);({MG:e}=ZM(f,Infinity));e&&f.mj(`Invalid_clearEndTimeMs_${Infinity}_that_falls_during_${`playback_cpn_${e.cpn}_video_id_${e.videoData?.videoId}_durationMs_${e.durationMs}_enterTimeMs_${e.Vz}_parentReturnTimeMs_${e.i6}`}._`+"Child_playbacks_can_only_have_duration_updated_not_their_start.")}; rLk=function(f){f.Ed.clearAll();f.G.clear();f.C.clear();f.RP.clear();f.BS=[];f.W=null;f.UE.clear();f.uY.clear();f.K=[];f.Lq=[];f.EE=[];f.mS=[];f.lC.clear();f.sE.clear();f.Wd.clear();f.qC.clear();f.X=!1;f.cS=0;f.N=!1;f.Z9=!1;f.YL=0;f.Mk=0;f.hE=!1;f.H6=!1;f.J="";vZM(f.app.U2());xh(f.app.U2(),f.playback,!1);f.Cq.clear();f.U.isActive()&&BM(f)}; BWG=function(f){Q_l(f.C,e=>e.Vz>=-1&&e.i6<=Infinity)}; nH0=function(f,e,B,n){e.durationMs=B;e.i6=n;(n=f.Cq.get(e.cpn))?n.P9(B/1E3):f.dA({nop_d:e.cpn})}; g.ri=function(f,e){for(const B of f.BS)if(e>=B.start&&e<=B.end)return!0;return!1}; di=function(f,e,B,n,r){let L=f.RP.get(B);if(!L){if(L=KM(f,e))return L;e=f.mC(B-1,n??2);if(r)return f.dA({misscue:r,sq:B,type:n,prevsstate:e?.L0,prevrecord:f.RP.has(B-1)}),f.RP.get(B-1);if(e?.L0===2)return f.dA({adnf:1,sq:B,type:n,prevrecord:f.RP.has(B-1)}),f.RP.get(B-1)}return L}; JWH=function(f,e,B,n,r,L){if(!f.H6)if(g.ri(f,B))f.dA({gdu:"undec",seg:B,itag:r});else if(e=di(f,e,B,n,L),!f.playback.getVideoData().q0()||!e?.eg)return e}; KM=function(f,e){e+=f.IV();if(f.playback.getVideoData().q0()){a:{var B=f.C;f=e*1E3;for(n of B.G)if(B=n.MA?n.MA*1E3:n.Vz,f>=n.Vz-1E3&&f<=B+n.durationMs+1E3)break a;var n=void 0}n={MG:n,fl:e}}else n=ZM(f,e),n?.MG||(n=ZM(f,e,1));return n?.MG}; nM=function(f,e,B=!1){if(!B){for(const n of f.BS){if(e>=n.start&&e<=n.end)return;if(e===n.end+1){n.end+=1;return}}f.BS.push(new Lgk(e))}}; M9O=function(f,e=""){const B=Tf(e)||void 0;e&&B||f.dA({adcfg:e?.length,dcfg:B?.length});return B}; LM=function(f,e){const B=[];f=f.C.C.get(e);if(!f)return[];for(const n of f)n.cpn&&B.push(n.cpn);return B}; dvH=function(f,e,B){let n=!1;if(B=f.C.C.get(B))for(const r of B)r.durationMs!==0&&r.i6!==r.Vz&&(B=r.cpn,e===B&&(n=!0),n&&!f.sE.has(B)&&(f.dA({decoratedAd:B}),f.sE.add(B)))}; tzw=function(f,e,B){let n=0;f=f.C.C.get(B);if(!f)return-1;for(const r of f){if(r.cpn===e)return n;n++}return-1}; HpY=function(f,e){let B=0;f=f.C.C.get(e);if(!f)return 0;for(const n of f)n.durationMs!==0&&n.i6!==n.Vz&&B++;return B}; kEY=function(f){for(const e of f.G.values())f.playback.removeCueRange(e);f.G.clear();f.Ed.clearAll()}; iQg=function(f){if(f.kA||f.uC){var e=Array.from(f.app.U2().K.values()),B=[],n=[],r=[],L=[],d=[],t=[];for(var H of e)if(e=f.C.rR(H.gj()))e.serializedPlaybackPingContextLoggingData&&B.push(e.serializedPlaybackPingContextLoggingData),e.sR&&n.push(e.sR),e.Qh&&n.push(e.Qh),L.push(e.cpn),d.push(e.videoData.videoId||""),t.push(e.videoData.adFormat||e.videoData.xA),e.serializedQoeContextData&&r.push(e.serializedQoeContextData);e=H=void 0;f.kA&&(e={serializedPlaybackPingContextLoggingData:B,serializedStitchedClipLoggingMetadata:n}); f.uC&&(H={Uu:L,KK:d,adFormats:t,serializedQoeContextData:r});return{Dy:e,jQ:H}}}; IIO=function(f,e,B,n,r,L,d){if(e&&B){f.kf=B.cpn;f.YD(B.cpn,B.startTimeSecs||r);$kO(f,B);var t=CM(f,"a2a",B);f.dA(t);f.YL++;t=iQg(f);f.playback.QA(e,B,n||0,r||0,!!L,!!d,void 0,t)}else f.dA({misspbkonadtrans:1,enter:B?.cpn||"",exit:e?.cpn||"",seek:L,skip:d})}; fG5=function(f){f.qC.add(f.J);f.J="";f.N=!1}; CI5=function(f,e,B){var n;if(n=f.playback.getVideoData().q0())n=(n=f.C.rR(e))&&n.mN?(f=f.C.C.get(n?.mN))&&f.slice(-1)[0].cpn===e:!1;return n&&B===2?1E3:0}; wcd=function(f,e,B,n){e={mq:e,nU:B,KU:f.playback.getCurrentTime(),NO:n};b2(f,e)}; bpM=function(f,e,B={}){const n=f.U||f.app.Od().getPlayerState();ql(f,!0);e=isFinite(e)?e:f.C.pG();const {MG:r,fl:L}=zr(f,e);e=r&&!ab(f,r)||!r&&f.C!==f.app.Od();var d=L*1E3;d=f.J&&f.J.start<=d&&d<=f.J.end;!e&&d||pM(f);r?vHO(f,r,L,B,n):cM(f,L,B,n,"_execute")}; Yz=function(f,e,B,n){f.C.ri("timelineerror",{e,cpn:B?B:void 0,videoId:n?n:void 0})}; AN=function(f,e){return new g.VD(Math.max(0,f-5E3),e?0x8000000000000:f-1,{namespace:"childplayback",priority:9})}; Zpw=function(f,e,B){const n=e.ea;e.ea=B;ab(f,e)&&(B=f.app.Od(),n.KB===f.J&&pM(f),B.removeCueRange(n.KB),B.addCueRange(e.ea.KB))}; vHO=function(f,e,B,n,r){const L=ab(f,e);if(!L){e.playerVars.prefer_gapless=!0;var d=new g.qk(f.Ta,e.playerVars);d.u6=e.u6;f.api.Sa(d,e.playerType)}d=f.app.Od();L||d.addCueRange(e.ea.KB);d.seekTo(B,{wX:"application_timelinemanager",...n});RQC(f,r)}; qpd=function(f,e,B,n,r,L){var d=e.cpn,t=e.docid||e.video_id||e.videoId||e.id,H=f.C;L=L===void 0?r+n:L;if(r>L)return Yz(f,`enterAfterReturn enterTimeMs=${r} is greater than parentReturnTimeMs=${L.toFixed(3)}`,d,t),"";var k=H.N0()*1E3;if(rk)return H=`returnAfterDuration parentReturnTimeMs=${L.toFixed(3)} is greater than parentDurationMs=${k}. And timestampOffset in seconds is ${H.gA()}`, Yz(f,H,d,t),"";k=null;for(const w of f.G){if(r>=w.Vz&&rw.Vz)return Yz(f,"overlappingReturn",d,t),"";if(L===w.Vz)return Yz(f,"outOfOrder",d,t),"";r===w.i6&&(k=w)}d=`cs_childplayback_${Kg0++}`;t={KB:AN(n,!0),W6:Infinity,target:null};const C={u6:d,playerVars:e,playerType:B,durationMs:n,Vz:r,i6:L,ea:t};f.G=f.G.concat(C).sort((w,v)=>w.Vz-v.Vz); k?Zpw(f,k,{KB:AN(k.durationMs,!0),W6:k.ea.W6,target:C}):(e={KB:AN(r,!1),W6:r,target:C},f.W.set(e.KB,e),H.addCueRange(e.KB));e=!0;if(f.C===f.app.Od()&&(H=H.getCurrentTime()*1E3,H>=C.Vz&&H{vHO(f,C,v/1E3,{},w)}); e=!1}e&&(f.A.unshift(C),f.Cq.M0(0));return d}; zQ5=function(f,e,B,n){f.J=n;n=e.u6;const r=e.playerVars,L=e.playerType;f.X=e;r&&f.api.enqueueVideoByPlayerVars(r,L,B,n)}; aGl=function(f,e,B,n){f.J=n;f.api.fU(f.C,B,e)}; pM=function(f){f.X=null;f.J=null;f.api.uE()||f.api.clearQueue()}; ab=function(f,e){f=f.app.Od();return!!f&&f.getVideoData().u6===e.u6}; pc6=function(f,e){ab(f,e)||Yz(f,"childPlaybackIsNotPresenting");return e.i6===e.Vz+e.durationMs?e.Vz+f.app.Od().getCurrentTime()*1E3:e.i6}; zr=function(f,e){let B=0;for(const n of f.G){f=n.Vz/1E3+B;const r=f+n.durationMs/1E3;if(f>e)break;if(r>e)return{MG:n,fl:e-f};B=r-n.i6/1E3}return{MG:null,fl:e-B}}; ql=function(f,e){f.Ed=NaN;f.N=null;f.K.stop();f.V&&e&&f.V.Yx();f.U=null;f.V=null}; cM=function(f,e,B,n,r){const L=f.C;L!==f.app.Od()&&f.app.zV();f.Ta.Y("html5_sabr_csdai_seek_log")||(r="");L.seekTo(e,{wX:"application_timelinemanager"+(r??""),...B});RQC(f,n)}; RQC=function(f,e){f=f.app.Od();const B=f.getPlayerState();e.isOrWillBePlaying()&&!B.isOrWillBePlaying()?f.playVideo():e.isPaused()&&!B.isPaused()&&f.pauseVideo()}; cLH=function(f){var e=f.G.find(B=>ab(f,B)); if(e){const B=f.app.Od();pM(f);const n=new g.ks(8);e=pc6(f,e)/1E3;cM(f,e,{},n,"_force");B.ri("forceParentTransition",{childPlayback:1});f.C.ri("forceParentTransition",{parentPlayback:1})}}; jQ=function(f,e=-1,B=Infinity){for(const [t,H]of f.W){var n=t,r=H;r.W6>=e&&r.target&&r.target.i6<=B&&(f.C.removeCueRange(n),f.W.delete(n))}n=[];for(const t of f.G)t.Vz>=e&&t.i6<=B?(r=f,r.X===t&&pM(r),ab(r,t)&&r.app.zV()):n.push(t);f.G=n;const {MG:L,fl:d}=zr(f,e/1E3);L&&(e=d*1E3,Ypk(f,L,e,L.i6===L.Vz+L.durationMs?L.Vz+e:L.i6));({MG:e}=zr(f,B/1E3));e&&Yz(f,`Invalid clearEndTimeMs=${B} that falls during ${`playback={timelinePlaybackId=${e.u6} video_id=${e.playerVars.video_id} durationMs=${e.durationMs} enterTimeMs=${e.Vz} parentReturnTimeMs=${e.i6}}`}.`+ "Child playbacks can only have duration updated not their start.")}; Ypk=function(f,e,B,n){e.durationMs=B;e.i6=n;n={KB:AN(B,!0),W6:B,target:null};Zpw(f,e,n);ab(f,e)&&f.app.Od().getCurrentTime()*1E3>B&&(e=pc6(f,e)/1E3,B=f.app.Od().getPlayerState(),cM(f,e,{},B,"_update"))}; js5=function(f){f&&f!=="web"&&ALd.includes(f)}; yAl=function(f,e){return e?!!f.C.get(e):!1}; OpH=function(f,e){f.dataset.version=e}; oH5=function(f){f.Ja=!f.Ja;f.XP=!0;f.element.classList.toggle("ytp-retro-player",f.Ja);f.resize();f.XP=!1;g.yW(f.app.wi,"onRetroModeChanged",f.Ja)}; Vz5=function(f){const e=f.app.wi,B=()=>{f.QC=new g.oY(0,0,0,0);f.j_=new g.oY(0,0,0,0)},n=d=>{d.getVideoData()&&f.updateVideoData(d.getVideoData())},r=(d,t)=>{f.N9(d,t)},L=d=>{f.z6&&OG(f); ob(f)!==f.Px&&f.resize();f.app.S().Y("web_enable_smart_zoom")&&f.d0&&(d.state.isPaused()?f.d0.pause():d.IC(8)&&f.d0.playState==="paused"&&f.d0.play())}; e.addEventListener("initializingmode",B);e.addEventListener("videoplayerreset",n);e.addEventListener("videodatachange",r);e.addEventListener("presentingplayerstatechange",L);f.addOnDisposeCallback(()=>{e.removeEventListener("initializingmode",B);e.removeEventListener("videoplayerreset",n);e.removeEventListener("videodatachange",r);e.removeEventListener("presentingplayerstatechange",L)})}; FgO=function(f){var e=f.I8();let B=1;var n=!1;const r=lGk(f,e,f.getVideoAspectRatio()),L=f.app.S(),d=L.Y("enable_desktop_player_underlay"),t=A50();var H=g.tS(L.experiments,"player_underlay_min_player_width");H=d&&f.Tn&&f.getPlayerSize().width>H;if(ob(f)){var k=uZO(f);var C=isNaN(k)||g.Po||Dp&&g.oN||H;ye&&!g.pH(601)?k=r.aspectRatio:C=C||L.controlsType==="3";C?H?(C=L.Y("place_shrunken_video_on_left_of_player")?16:f.getPlayerSize().width-e.width-16,k=Math.max((f.getPlayerSize().height-e.height)/2,0), C=new g.oY(C,k,e.width,e.height),f.z6.style.setProperty("border-radius","12px")):C=new g.oY(0,0,e.width,e.height):(B=r.aspectRatio/k,C=new g.oY((e.width-r.width/B)/2,(e.height-r.height)/2,r.width/B,r.height),B===1&&g.oN&&(k=C.width-e.height*k,k>0&&(C.width+=k,C.height+=k)));g.h(f.element,"ytp-fit-cover-video",Math.max(C.width-r.width,C.height-r.height)<1);if(t||f.UR)f.z6.style.display="";f.Px=!0}else{C=-e.height;ye?C*=window.devicePixelRatio:g.tq&&(C-=window.screen.height);C=new g.oY(0,C,e.width, e.height);if(t||f.UR)f.z6.style.display="none";f.Px=!1}V_(f.QC,C)||(f.QC=C,g.DH(L)?(f.z6.style.setProperty("width",C.width+"px","important"),f.z6.style.setProperty("height",C.height+"px","important")):g.xC(f.z6,C.getSize()),n=new g.OE(C.left,C.top),g.Em(f.z6,Math.round(n.x),Math.round(n.y)),n=!0);e=new g.oY((e.width-r.width)/2,(e.height-r.height)/2,r.width,r.height);V_(f.j_,e)||(f.j_=e,n=!0);g.uc(f.z6,"transform",B===1?"":`scaleX(${B})`);d&&H!==f.Wh&&(H&&(f.z6.addEventListener(VJ,f.Sl),f.z6.addEventListener("transitioncancel", f.Sl),f.z6.classList.add(g.y1.VIDEO_CONTAINER_TRANSITIONING)),f.Wh=H,f.app.wi.publish("playerUnderlayVisibilityChange",f.Wh?"transitioning":"hidden"));return n}; OG=function(f){var e=f.app.S().controlsType==="3"&&!f.R9&&ob(f)&&!f.app.Y_||!1;f.z6.controls=e;f.z6.tabIndex=e?0:-1;f.app.S().V&&(f.z6.ariaHidden="true");e?f.z6.removeEventListener("focus",f.vc):f.z6.addEventListener("focus",f.vc)}; uZO=function(f){var e=f.app.Od();if(e=e?e.getVideoData():null){if(g.NU(e)||g.hA(e)||g.g7(e))return 16/9;if(w7(e)&&e.J.C())return f=e.J.videoInfos[0].video,l2(f.width,f.height)}return(f=f.z6)?l2(f.videoWidth,f.videoHeight):16/9}; l2=function(f,e){return Math.abs(u2*e-f)<1||Math.abs(u2/f-e)<1?u2:f/e}; lGk=function(f,e,B,n){let r=B;const L=l2(e.width,e.height);f.JT?r=BL?{width:e.width,height:e.width/r,aspectRatio:r}:rr?f.width=f.height*B:B{B.reject("timeout")},1E4); f.gR.onerror=()=>{B.reject("error")}; f.gR.onmessage=()=>{B.resolve();clearTimeout(e)}; await B.promise;f.gR.onmessage=null;f.gR.onerror=null;f.gR.addEventListener("message",n=>void f.receive(n)); f.ri("workerCtor",{})}catch(B){clearTimeout(e),f.gR?.terminate(),f.gR.onmessage=null,f.gR.onerror=null,f.gR=void 0,f.ri("workerErr",{e:`${B}`})}}}; NWm=function(f,e){if(f.gR){if(f.C&&f.C.byteLength===e)var B=f.C;else{B=new Uint8Array(e);for(var n=0;e>0;){const r=new Uint8Array(Math.min(e,65536));crypto.getRandomValues(r);B.set(r,n);e-=r.length;n+=r.length}f.C=B}B.length>0&&B[0]++;B={[0]:0,[1]:performance.now(),[2]:B};f.request(B)}}; hQ0=function(f){if(f.gR){var e={[0]:1,[1]:performance.now()};f.request(e)}}; gHw=function(f,e){f.gR&&(e={[0]:2,[1]:performance.now(),[3]:e},f.request(e))}; SpG=function(f){if(f.gR){var e={[0]:3,[1]:performance.now()};f.request(e)}}; EHm=async function(f){f.G!==void 0||f.J||(f.J=!0,await Uvg(f),f.J=!1,f.gR&&(NWm(f,f.U),f.G=setInterval(()=>{f.sendRequest()},f.intervalMs)))}; Qs5=function(f,e){const B=f.Bd.SX;return B?Kh(B.getPlayerState()):f.getVideoData().enableServerStitchedDai&&e===2?(f.Ta.JE().C.jI(Fk)?f.Bd.C?.isAd()??!1:f.l6?.IA(f.getCurrentTime()))?f.hX:-1:e!==2||f.Nq()?f.hX:f.fm}; rL=function(f){return f.Y_&&f.getVideoData().mutedAutoplay}; var hv6=function(){return CTk[Z[2]](this,6)}; UG=function(f,e,B){e&&(e=g.mO(f,{playerType:B}),e===f.cL()&&(e.getVideoData().mS=!0))}; Nl=function(f,e,B=!0,n,r,L){const d=g.mO(f,{playerType:r});var t=d.getVideoData();d.getPlayerType()===2&&!f.Nq(d)&&!t.isSeekable||g.mi(t)||((t=f.Bd.SX)?t.seekTo(e,{Lv:!B,dQ:n,wX:"application",seekSource:L}):(d&&d===f.cL()&&f.PL&&!TWg(f,e)&&f.setLoopRange(null),f.seekTo(e,B,n,r,L,"_request")))}; SQ=function(f,e){e=g.mO(f,{playerType:e});e=hN(f,e);return gi(f,e.zJ(),e)}; Tr=function(f,e,B){f.Ta.WS&&(f.UI=e,e.muted||EG(f,!1),B&&f.Ta.storeUserVolume&&!f.Ta.uC&&(B={volume:Math.floor(e.volume),muted:e.muted},B.unstorable||(g.yT("yt-player-volume",B),g.yT("yt-player-volume",B,2592E3))),QJ(f),B=g.PP&&f.mediaElement&&!f.mediaElement.O3(),f.Ta.uC&&!B||g.f_(f.wi,"onVolumeChange",{muted:e.muted,volume:e.volume,unstorable:!f.Ta.storeUserVolume}))}; BF=function(f,e){return f.Y("web_player_misc_bugfix_b")?f.Bd.rR(e)||f.Bd.U:f.Bd.rR(e)}; DM=function(f,e,B,n,r,L,d){e={id:e,namespace:d??"appapi"};L==="chapter"?(e.style=wE.CHAPTER_MARKER,e.visible=!0):isNaN(r)||(L==="ad"?e.style=wE.AD_MARKER:(e.style=wE.TIME_MARKER,e.color=r),e.visible=!0);f.S7([new g.VD(B*1E3,n*1E3,e)],1);return!0}; DvY=function(f,e,B=!0,n,r){const L=g.mO(f,{playerType:1});let d=0;L.getStreamTimeOffset()&&!L.gA()&&(d=L.getStreamTimeOffset());Nl(f,e-d,B,n,1,r)}; JLk=function(f){if(f.Ta.storeUserVolume){f=g.IB("yt-player-volume")||{};const e=f.volume;f={volume:isNaN(e)?100:g.ch(Math.floor(e),0,100),muted:!!f.muted}}else f={volume:100,muted:f.Ta.mute};return f}; MzY=function(f,e,B,n,r,L=!0){const d=f.Lc();if(!d)return L&&f.getVideoData().isLivePlayback&&f.EM.push({id:e,Or:B,hS:n}),!1;L=d-f.getCurrentTime();return DM(f,e,B-L,n-L,void 0,void 0,r)}; GEg=function(f,e){f.EK().autonavState=e;g.yT("yt-player-autonavstate",e);f.wi.publish("autonavchange",e)}; JN=function(f,e){f.playlist&&(g.PT(f.playlist),f.playlist=null);e&&(f.WE&&(e.fetch=0),f.playlist=new xvC(f.Ta,e))}; Gr=function(f,e,B){e=g.mO(f,{playerType:B}).sK(e);B&&f.getPresentingPlayerType()!==B||Ml(f,"cuerangesremoved",e)}; sG=function(f,e,B,n=Infinity,r=0){var L=f.Od();B=B||L.getPlayerType();(L=xz(f,B,e,!0))||(L=WM(f,B,e,!0));e=f.cL();B===2&&e&&(B=L.getVideoData(),e.rz(B.clientPlaybackNonce,B.xA||"",B.breakType||0,B.Ni,B.videoId||""));f.fU(L,n,0,r)}; Wgg=function(f){const e=f.webPlayerContextConfig.trustedJsUrl;return e?Xt(e).toString():f.webPlayerContextConfig.jsUrl}; XcM=function(f){var e="";let B="";var n=Wgg(f),r=KY(n,"cb");r&&/^[\w-]+$/.test(r)&&(B=r);n.indexOf("//")===0&&(n=f.Ta.protocol+":"+n);r=n.lastIndexOf("/base.js");r!==-1&&(e=n.substring(0,r+1));if(n=Error().stack)if(n=n.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))n=n[1],n.includes(e)||g.Yv(Error("Player module URL mismatch: "+`${n} vs ${e}.`));e=new ssd(f.wi,e,B);ZU6(e,{destroyed:()=>{f.onApiChange()}}); return e}; yLl=function(f){Es(f,function(){const e=this;return function*(){e.ph.tick("wasm_s");const B=hW(e.hI)?n=>hS(FkG(e.hI),r=>r.t8(n)):void 0; try{const n=GRd(e.webPlayerContextConfig.wasmModuleUrl,B,e.QQ.bind(e)),r=yield*Qx(n);e.ph.tick(r.C?"wasm_fa":"wasm_fw");rHY(e.Ta,r)}catch(n){e.ph.tick("wasm_ferr")}}()})}; PId=function(f){const e=new g.qk(f.Ta,f.XV);f.wi.publish("initialvideodatacreated",e);return WM(f,1,e,!1)}; $vl=function(f){const e=f.cL();e.setPlaybackRate(f.Ta.V?1:IGk(f,Number(g.IB("yt-player-playback-rate"))||1));e.V_(f.wN,f);e.QY()}; fvY=function(f){f.Zl();var e=f.XV;Xk(f);f.events.D(window,"resize",f.ye);const B=f.EK();g.f_(f.wi,"onVolumeChange",f.UI);if(e&&KQ(e)){const n=iD(f.Ta);n&&!f.WE&&(e.fetch=0);const r=g.XY(f.Ta);r&&!f.WE&&(e.fetch=0);JN(f,e);g.XY(f.Ta)&&f.ph.tick("ep_pr_s");if(!n||f.WE)if(r&&!f.WE)yJ(f);else if(!B.H4())f.playlist.onReady(()=>{PM(f)})}f.Vg(f.cL(),!1,!0); f.cL().getPlayerState().C(128)||(e=scG(!f.Ta.deviceIsAudioOnly),e==="fmt.noneavailable"?f.Kz("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):e==="html5.missingapi"?f.Kz(e,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):B&&B.H4()&&Ib(f)&&(f.Ta.K5||f.Ta.E2)?$z(f):B.hU?f.wi.mutedAutoplay({durationMode:B.mutedAutoplayDurationMode}):g.IB("yt-player-playback-on-reload")?(g.t$("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!f.Ta.cS}),g.yT("yt-player-playback-on-reload",!1), $z(f)):f3(f.Ta)||ip6(f),g.yQ(f.Ta)||mt(f.Ta)==="MWEB"?(g.wS(g.bo(),()=>{i2(f)}),g.wS(g.bo(),()=>{NK0()})):(i2(f),NK0()))}; ePH=function(f){const e=B=>{B.stack&&B.stack.indexOf("player")!==-1&&f.Od().Kt(B)}; oo.subscribe("handleError",e);nN.push(e);return()=>{oo.unsubscribe("handleError",e);const B=nN.indexOf(e);B!==-1&&nN.splice(B,1)}}; WM=function(f,e,B,n,r){f=g.BIG(f,e,B,r);f=new g.fm(f);n&&f.QY();return f}; IGk=function(f,e){var B=f.wi.getAvailablePlaybackRates();e=Number(e.toFixed(2));f=B[0];B=B[B.length-1];e<=f?e=f:e>=B?e=B:(f=Math.floor(e*100+.001)%5,f!==0&&(e-=f*.01,e=Math.floor(e*100+.001)/100));return e}; Bd=function(f){eq(f);f.setLoopVideo(!1);f.setLoopRange(null);f.wi.publish("legacyadtrackingpingreset");f.yC={};f.EM=[];nKH(f.ph);if(f.l6){var e=f.l6,B=f.cL();B.getPlayerType();tN(e,!1);Rb(e);rLk(e);e.playback=B}e=f.fh;f=f.cL();f.getPlayerType()!==1&&Yz(e,"invalidParentVideoPlayerType");ql(e,!1);jQ(e);e.C=f}; nhC=function(f){const e=f.mediaElement;$k()?f.zM.D(e,"webkitpresentationmodechanged",f.nf):window.document.pictureInPictureEnabled&&(f.zM.D(e,"enterpictureinpicture",()=>{f.U1(!0)}),f.zM.D(e,"leavepictureinpicture",()=>{f.U1(!1)})); RB&&(f.zM.D(e,"webkitbeginfullscreen",()=>{f.Q4(3)}),f.zM.D(e,"webkitendfullscreen",()=>{f.Q4(0)}))}; Xk=function(f){f.mediaElement=f.Ta.deviceIsAudioOnly?new g.Nc(g.BN("AUDIO")):UD.pop()||new g.Nc(g.BN("VIDEO"));g.A(f,f.mediaElement);f.Od().setMediaElement(f.mediaElement);try{f.Ta.uC?(f.kF&&f.events.uh(f.kF),f.kF=f.events.D(f.mediaElement,"volumechange",f.u3)):(f.mediaElement.N(f.UI.muted),f.mediaElement.setVolume(f.UI.volume/100))}catch(r){f.Kz("html5.missingapi",2,"UNSUPPORTED_DEVICE",`setvolume.1;emsg.${r&&typeof r==="object"&&"message"in r&&typeof r.message==="string"&&r.message.replace(/[;:,]/g, "_")}`);return}f.zM.G();nhC(f);var e=f.template,B=f.mediaElement.V3();e.z6=B;e.R9=!1;e.z6.parentNode||dw(e.H$,e.z6,0);e.QC=new g.oY(0,0,0,0);FgO(e);OG(e);B=e.z6;g.PW(B,"video-stream");g.PW(B,g.y1.MAIN_VIDEO);const n=e.app.S();n.xI&&B.setAttribute("data-no-fullscreen","true");n.Y("html5_local_playsinline")?"playsInline"in XN()&&(B.playsInline=!0):n.g8&&(B.setAttribute("webkit-playsinline",""),B.setAttribute("playsinline",""));n.oo&&e.z6&&e.D(B,"click",B.play,B);try{f.mediaElement.activate()}catch(r){f.Kz("html5.missingapi", 2,"UNSUPPORTED_DEVICE",`activate.1;emsg.${r&&typeof r==="object"&&"message"in r&&typeof r.message==="string"&&r.message.replace(/[;:,]/g,"_")}`)}}; Ml=function(f,e,B){f.wi.publish(e,B);const n=g.IM(f.Ta)||g.DH(f.Ta)||g.TT(f.Ta);if(B&&n){let r;switch(e){case "cuerangemarkersupdated":r="onCueRangeMarkersUpdated";break;case "cuerangesadded":r="onCueRangesAdded";break;case "cuerangesremoved":r="onCueRangesRemoved"}r&&g.yW(f.wi,r,B.map(L=>({getId(){return this.id},end:L.end,id:L.getId(),namespace:L.namespace==="ad"?"ad":"",start:L.start,style:L.style,visible:L.visible,markerPositionMs:L.markerPositionMs})))}}; rB6=function(f,e=!0){var B;if(B=f.wC){B=f.wC;var n=f.mediaElement;B=!!n&&n===B.mediaElement}B&&(f.TC(),Xk(f));B=f.Od();B.TC(!e);B.a5(f.ac,f);B.getPlayerType()!==1&&B.dispose();f=f.Bd;e=[f.G];f.G=f.U;Gz(f,[],e)}; rX=function(f,e,B,n){B&&(f.TC(),Xk(f));B=f.Od();B.MY(e);const r=f.getVideoData(),L={};L.video_id=r.videoId;L.adformat=r.adFormat;r.isLivePlayback||(L.start=B.getCurrentTime(),L.resume="1");r.isLivePlayback&&p2(r)&&g.yl(f.Ta)&&(L.live_utc_start=B.Lc(),L.resume="1");r.Cq&&(L.vvt=r.Cq);r.dj&&(L.vss_credentials_token=r.dj,L.vss_credentials_token_type=r.pF);r.oauthToken&&(L.oauth_token=r.oauthToken);L.autoplay=1;L.reload_count=r.Fl+1;L.reload_reason=e;r.M6&&(L.unplugged_partner_opt_out=r.M6);r.Cc&&(L.ypc_is_premiere_trailer= r.Cc);r.playerParams&&(L.player_params=r.playerParams);r.A&&(L.itct=r.A);f.loadVideoByPlayerVars(L,void 0,!0,void 0,void 0,n);e==="signature"&&f.l6&&nm(f)}; dcw=function(f){if(!L1O(f)){var e=f.cL().aC();e&&(e=e.A(),e instanceof Promise&&e.catch(()=>{})); Lm(f,Kh(f.getPlayerStateObject()))}}; L1O=function(f){if(f.playlist&&(g.Ms(f.Ta)||f.Ta.Cq==="background_audio_playback")&&f.vC()){const e=f.Ta.Y("html5_player_autonav_logging");f.nextVideo(!1,e);return!0}return!1}; Lm=function(f,e){const B=f.Od(),n=B.getPlayerType();if(n!==2||f.Nq()){if(n===2&&f.Nq()||n===5||n===6||n===7)if(e===-1||e===0||e===5)return;if(e===0){if(f.PL)return;if(B.nF()&&g.IM(f.Ta)){f.playVideo();return}}f.hX!==e&&(f.hX=e,g.f_(f.wi,"onStateChange",e))}else f.fm!==e&&(f.fm=e,g.f_(f.wi,"onAdStateChange",e))}; g.mO=function(f,e){return f.Bd.rR(e)||f.Bd.U}; g.BIG=function(f,e,B,n){let r=f.ph;e===2&&(r=new te5(f.Ta));e=new g.dX(f.Ta,e,r,f.template,(L,d,t)=>{f.wi.publish(L,d,t)},()=>f.wi.getVisibilityState(),f.visibility,f,f.Lh,B,n,f.jy); f.Ta.JE().C.jI(HAw)&&f.FU(B.clientPlaybackNonce);return e}; hN=function(f,e){return f.Nq(e)?f.cL():e}; t3=function(f,e){const B=f.Od();return e===f.cL()&&f.Nq(e)&&f.Nq(B)?B:e}; Hd=function(f){f=vF(f.hI);return!!f&&f.loaded}; kzY=function(f){const e=f.getVideoData();var B=f.hI;gU(B)||B.W();!SK&&hW(B)&&Vr5(B);m_(B,"embed");m_(B,"kids");m_(B,"remote");m_(B,"miniplayer");m_(B,"offline");m_(B,"unplugged");m_(B,"ypc",!1,!0);m_(B,"webgl",!1,!0);lh6(B)||(m_(B,"captions",!0),m_(B,"endscreen"),B.C(),m_(B,"creatorendscreen",!0));B.N();B.Z.publish("modulesCreated");f.wi.publish("videoready",e)}; nm=function(f){if(!Hd(f)){const e=O5(f.hI);e&&!e.created&&Nk(f.hI)&&e.create()}}; QJ=function(f){var e=f.getVideoData();if(!e.ES){e=f.Ta.uC?1:Jkd(e);const B=f.mediaElement;B.N(f.UI.muted);try{B.setVolume(f.UI.volume*e/100)}catch{g.Yv(new g.Dj("b183742307",`multiplier: ${e}, volume: ${f.UI.volume}`))}}}; Ib=function(f){f=f.EK();f.H4();return DX(f)}; yJ=function(f,e){const B=(e?e:f.EK()).Wy;f.ph.tick("ep_pr_r");if(B!=null&&(rE5(f.playlist,B),f.A4))f.playlist.onReady(()=>{PM(f,e)})}; PM=function(f,e){const B=g.XY(f.Ta)&&!f.Ta.A;var n=B&&e?e:g.zi(f.playlist);e=B&&e?e:f.getVideoData();n&&(e.nz&&(f.Ta.K5||f.Ta.E2)||!f.cY?(e=e.mS,n=f.Sa(n,1),e&&UG(f,n)):kw(f,n,1));g.XY(f.Ta)&&f.ph.tick("ep_p_l");f.A4=!1;g.id(f.wi,"onPlaylistUpdate")}; $z=function(f){var e=f.cL();if(e.getPlayerState().C(128))return!1;e=e.getVideoData();Ib(f)&&f.Ta.E2&&(UD.length&&f.Y_?(Tr(f,{muted:!1,volume:f.UI.volume},!1),EG(f,!1)):UD.length||f.UI.muted||(Tr(f,{muted:!0,volume:f.UI.volume},!1),EG(f,!0)));Ib(f)&&g.XY(f.Ta)&&e.mutedAutoplay&&(Tr(f,{muted:!0,volume:f.UI.volume},!1),EG(f,!0));e.a7&&Tr(f,{muted:!0,volume:f.UI.volume},!1);xz(f,1,e,!1);const B=f.cL();f.wi.publish("initializingmode");f.Vg(B);f.Um(3);var n;if(!(n=!f.Ta.Ia)){if(n=f.wC){n=f.wC;var r=f.mediaElement; n=!!r&&r===n.mediaElement}n=n&&f.AK}n&&(f.TC(),Xk(f),B.setMediaElement(f.mediaElement));B.HP();if(B.getPlayerState().C(128))return!1;e.uC||Lm(f,3);return f.AK=!0}; ip6=function(f){f.wi.publish("initializingmode");f.Um(2);m_(f.hI,"remote");m_(f.hI,"miniplayer")}; i2=function(f){if(!f.Y("use_rta_for_player"))if(f.Y("fetch_att_independently"))f.ll.M0();else{var e=f.getVideoData().botguardData;e&&g.Jf(e,f.Ta,f.getVideoData().rS||"")}}; EG=function(f,e){e!==f.Y_&&(f.Y_=e,g.id(f.wi,"onMutedAutoplayChange",e))}; xz=function(f,e,B,n){const r=Cm(f,e,B),L=f.Bd.W.get(r)||null;if(!L)return null;f.Bd.W.remove(r);if(L.HS())return null;if(L.getPlayerState().C(128))return L.dispose(),null;if(L===f.rR({playerType:e}))return f.ph.infoGel({isCacheHit:!0}),L;if((L.getVideoData().oauthToken||B.oauthToken)&&L.getVideoData().oauthToken!==B.oauthToken)return null;e===1&&(e=f.Od().getVideoData(),vY(e)&&e.isAd()&&n||eq(f));n||f.Vg(L,!0);f.ph.infoGel({isCacheHit:!0});return L}; C8O=function(f){const e=(0,g.T)();var B=f.getCurrentTime();f=f.getVideoData();B=1E3*(B-f.startSeconds);f.isLivePlayback&&(B=0);return e-Math.max(B,0)}; TWg=function(f,e){if(!f.PL)return!1;const B=f.PL.startTimeMs*.001-1;let n=f.PL.endTimeMs*.001;f.PL.type==="repeatChapter"&&n--;return Math.abs(e-B)<=1E-6||Math.abs(e-n)<=1E-6||e>=B&&e<=n}; w2g=function(f){var e=f.Od();if(f.Y("html5_disable_loop_range_for_shorts_ads")&&e.getVideoData().isAd()?0:vY(e.getVideoData())&&!e.TV())e=SQ(f)*1E3-f.getVideoData().uL,f.Y("html5_gapless_new_slr")?(f=f.m2,Gr(f.app,"gaplessshortslooprange"),e=new g.VD(0,e,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(f=f.app.Od())&&f.addCueRange(e)):f.setLoopRange({startTimeMs:0,endTimeMs:e,type:"shortsLoop"})}; vhO=function(f){const e=f.cL();if(!(e.getPlayerState().C(64)&&f.EK().isLivePlayback&&f.PL.startTimeMs<5E3)){if(f.PL.type==="repeatChapter"){var B=LId(f.iC())?.LG(),n=f.getVideoData()?.lC;B instanceof g.wX&&n&&(n=n[vc(n,f.PL.startTimeMs)],B.renderChapterSeekingAnimation(0,n.title));isNaN(Number(f.PL.loopCount))?f.PL.loopCount=0:f.PL.loopCount++;f.PL.loopCount===1&&g.yW(f.wi,"innertubeCommand",f.getVideoData().CM)}B={wX:"application_loopRangeStart"};if(f.PL.type==="clips"||f.PL.type==="shortsLoop")B.seekSource= 58;e.seekTo(f.PL.startTimeMs*.001,B)}}; gi=function(f,e,B){if(f.Nq(B)&&(B=B.getVideoData(),!vd(f))){f=f.fh;for(var n of f.G)if(B.u6===n.u6){e+=n.Vz/1E3;break}n=e;for(const r of f.G){if(B.u6===r.u6)break;f=r.Vz/1E3;if(f{f.A4=!0;yJ(f,L)}); else f.playlist.onReady(()=>{PM(f)}); g.XY(f.Ta)&&f.ph.tick("ep_a_pr_r")}; bQ=function(f){const e=Ev(!0);return e&&(e===f.template.element||f.mediaElement&&e===f.mediaElement.V3())?e:null}; av5=function(f,e){var B=window.screen?.orientation;if(f.Ta.X&&B&&B.lock&&(!g.PP||!zPC))if(e){e=B.type.indexOf("portrait")===0;const n=f.template.getVideoAspectRatio();let r=e;n<1?r=!0:n>1&&(r=!1);f.NP&&r===e||(B=B.lock(r?"portrait":"landscape"),B!=null&&B.catch(()=>{}),f.NP=!0)}else f.NP&&(f.NP=!1,B.unlock())}; p2G=function(f,e){e.bounds=f.getBoundingClientRect();const B=["display","opacity","visibility","zIndex"];for(const n of B)e[n]=NV(f,n);e.hidden=!!f.hidden}; cBH=function(f,e){const B=f.rR({playerType:1});if(B){if(B.getVideoData().clientPlaybackNonce===e)return B;if((f=f.Hr.C)&&f.getVideoData().clientPlaybackNonce===e)return f}return null}; YD5=function(f){return f.name==="TypeError"&&f.stack.includes("/s/player/")&&dx()<=105}; ABO=function(f){return f.isTimeout?"NO_BID":"ERR_BID"}; ju5=function(){let f=null;hXk().then(e=>f=e,e=>f=ABO(e)); return f}; OAG=function(){const f=$c(1E3,"NO_BID");return g.D6(sAl([hXk(),f]).wT(ABO),()=>{f.cancel()})}; NNk=function(f){return f.EE?g.ni().jI(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; Zt=function(f,e,{P2:B,KB:n,cueProcessedMs:r}={},L=""){const d=f.player.getVideoData({playerType:1}),t=f.player.S().F1;var H=0;if(r&&n&&!B){const v=n.end-n.start;v>0&&(H=Math.floor(v/1E3))}H=B?B.Kc:H;const k={AD_BLOCK:f.C++,AD_BREAK_LENGTH:H,AUTONAV_STATE:NNk(f.player.S()),CA_TYPE:"image",CPN:d.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:f.player.xi()*1E3,LACT:vR(),LIVE_INDEX:B?f.G++:1,LIVE_TARGETING_CONTEXT:B&&B.context?B.context:"",MIDROLL_POS:n?Math.round(n.start/1E3):0,MIDROLL_POS_MS:n?Math.round(n.start): 0,VIS:f.player.getVisibilityState(),P_H:f.player.AL().I8().height,P_W:f.player.AL().I8().width,YT_REMOTE:t?t.join(","):""},C=cb(YD);Object.keys(C).forEach(v=>{C[v]!=null&&(k[v.toUpperCase()]=C[v].toString())}); L!==""&&(k.BISCOTTI_ID=L);B={};a6(e)&&(B.sts="20492",(n=f.player.S().forcedExperiments)&&(B.forced_experiments=n));const w=R6(g.pX(e,k),B);return w.split("?").length!==2?ho(Error("Invalid AdBreakInfo URL")):g.vS(f.player.S(),d?.oauthToken).then(v=>{if(v&&qg()){var b=p_();cF(b,v)}v=f.player.pB(b);b=QoM(f,w,k,d.isMdxPlayback,r);return g.JQ(v,b,"/youtubei/v1/player/ad_break").then(K=>K)})}; ohO=function(f,e){f=f.player.S();if(ec(f)||n3(f))f=g.Q("INNERTUBE_CONTEXT"),f?.adSignalsInfo?.advertisingId&&typeof f?.adSignalsInfo?.limitAdTracking!=="undefined"&&(e.advertisingId=f.adSignalsInfo.advertisingId,e.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",e.limitAdTracking=f.adSignalsInfo.limitAdTracking)}; UGd=function(f,e,B,n,r,L){e.client||(e.client={});f.player.S().Y("h5_remove_url_for_get_ad_break")||(e.client.originalUrl=B);const d=KN(B);let t=g.BT(B)?!1:!0;(d||t)&&typeof Intl!=="undefined"&&(e.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);t=g.BT(B)?!1:!0;if(d||t||n!==""){const H={};B=CN(A7(n)).split("&");const k=new Map;B.forEach(C=>{C=C.split("=");C.length>1&&k.set(C[0].toString(),decodeURIComponent(C[1].toString()))}); k.has("bid")&&(H.bid=k.get("bid"));H.params=[];Vek.forEach(C=>{k.has(C)&&(C={key:C,value:k.get(C)},H.params.push(C))}); ohO(f,H);e.adSignalsInfo=H}e.client.unpluggedAppInfo||(e.client.unpluggedAppInfo={});e.client.unpluggedAppInfo.enableFilterMode=!1;B=r.C.cosver;B!=null&&B!=="cosver"&&(e.client.osVersion=B);B=r.C.cplatform;B!=null&&B!=="cplatform"&&B!==""&&(e.client.platform=B);B=r.C.cmodel;B!=null&&B!=="cmodel"&&(e.client.deviceModel=B);B=r.C.cplayer;B!=null&&B!=="cplayer"&&(e.client.playerType=B);B=r.C.cbrand;B!=null&&B!=="cbrand"&&(e.client.deviceMake=B);e.user||(e.user={});e.user.lockedSafetyMode=!1;g.Ms(r)&& u$6(e,L,f.player.getPlayerState(1));if(f=r.livingRoomPoTokenId)e.client.tvAppInfo={...e.client.tvAppInfo,livingRoomPoTokenId:f}}; hK6=function(f,e){let B=!1;if(e==="")return B;e.split(",").forEach(n=>{const r={},L={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""};let d="ACTIVE";n[0]==="!"&&(n=n.substring(1),d="INACTIVE");n=n.split("-");n.length<3||(n[0]in lvk&&(L.clientName=lvk[n[0]]),n[1]in uBY&&(L.platform=uBY[n[1]]),L.applicationState=d,L.clientVersion=n.length>2?n[2]:"",r.remoteClient=L,f.remoteContexts?f.remoteContexts.push(r):f.remoteContexts=[r],B=!0)}); return B}; TIm=function(f){const e=new F1k(f.C.tF);g.A(f,e);f=[new mc6(f.C.Ud),new UcY(f.C.Z),new NIG(f.C.Ud),new hPG(f.C.Cj,f.C.Ab),new gh5,new SD5(f.C.V4,f.C.FX,f.C.Ud),new EhM,new QuG(f.C.FX)];for(const B of f)qaC(e,B);for(const B of["adInfoDialogEndpoint","adFeedbackEndpoint"])KJ(e,B,()=>{}); return e}; RE=function(f){const e=f.mY,B=f.iY;f=f.I6;const n={rI9:new Dcl(e.get(),B),iY:B};return{nh:new JBw(B,f,e),context:n}}; lx=function(f){f.G=!1;const e={};f.C&&f.videoId&&(e.cttAuthInfo={token:f.C,videoId:f.videoId});gH("ad_to_video",e);MeC(f)}; Gzm=function(f){if(f.Z.getVideoData({playerType:1})?.K){f.G=!1;var e={};f.C&&f.videoId&&(e.cttAuthInfo={token:f.C,videoId:f.videoId});gH("video_to_ad",e)}}; xcO=function(f,e){for(const B of e)if((f=B.renderer)&&(f.instreamVideoAdRenderer||f.linearAdSequenceRenderer||f.sandwichedLinearAdRenderer||f.instreamSurveyAdRenderer)){NJ("ad_i");g.hQ({isMonetized:!0});break}}; MeC=function(f){if(f.J)if(f.V==="AD_PLACEMENT_KIND_START"&&f.actionType==="video_to_ad")FW("video_to_ad");else{var e={adBreakType:ph(f.V),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:f.videoStreamType};f.actionType==="ad_to_video"?(f.contentCpn&&(e.targetCpn=f.contentCpn),f.videoId&&(e.targetVideoId=f.videoId)):(f.adCpn&&(e.targetCpn=f.adCpn),f.adVideoId&&(e.targetVideoId=f.adVideoId));f.adFormat&&(e.adType=f.adFormat);f.contentCpn&& (e.clientPlaybackNonce=f.contentCpn);f.videoId&&(e.videoId=f.videoId);f.adCpn&&(e.adClientPlaybackNonce=f.adCpn);f.adVideoId&&(e.adVideoId=f.adVideoId);g.hQ(e,f.actionType);f.Z.S().experiments.SI("html5_ads_csi_qoes")&&(e=f.Z.q9(f.actionType==="ad_to_video"?1:2),e=(0,g.T)()-1E3*e,EX("qoes",e,f.actionType))}}; W1Y=function(f){f.contentCpn=null;f.adCpn=null;f.videoId=null;f.adVideoId=null;f.adFormat=null;f.V="AD_PLACEMENT_KIND_UNKNOWN";f.actionType="unknown_type";f.J=!1;f.G=!1}; Km=function(f,e){f.Z.cueVideoByPlayerVars(e,2)}; zU=function(f,e,...B){e==="onAdStart"||e==="onAdEnd"?g.f_(f.Z,e,...B):g.yW(f.Z,e,...B)}; BP=function(f,e){return f.Z.S().Y(e)}; sud=function(f){return f.Z.S().experiments.SI("enable_desktop_discovery_video_abandon_pings")||ec(f.Z.S())}; X26=function(f){return f.Z.S().experiments.SI("enable_progres_commands_lr_feeds")}; yBG=function(f){return f.Z.S().experiments.SI("enable_progress_commands_lr_shorts")}; St=function(f,e){return f.Z.S().Y("html5_cue_video_for_preroll")&&e?.kind==="AD_PLACEMENT_KIND_START"?!1:f.Z.S().experiments.SI("html5_load_ads_instead_of_cue")}; E$=function(f){return f.Z.S().experiments.SI("html5_preload_ads")}; P8k=function(f){return f.Z.S().experiments.SI("html5_load_empty_player_in_media_break_sub_lra")}; q4=function(f){return f.Z.S().experiments.SI("html5_ssdai_enable_media_end_cue_range")}; zs=function(f){return f.Z.S().Y("substitute_ad_cpn_macro_in_ssdai")}; dd=function(f){return f.Z.getVideoData({playerType:1}).getPlayerResponse()?.playerConfig?.daiConfig?.enableServerStitchedDai||!1}; yf=function(f){return f.Z.S().experiments.SI("enable_progress_commands_el_dai")}; sSk=function(f){f=f.Z.getVideoData({playerType:1});return!!f&&f.Y("html5_preload_first_vod_video_ad")&&!f.isDaiEnabled()&&!f.isLivePlayback}; O$=function(f){return f.Z.S().experiments.SI("enable_desktop_player_underlay")}; kqM=function(f){return f.Z.S().Y("html5_enable_vod_slar_with_notify_pacf")}; z0=function(f){return f.Z.S().experiments.SI("enable_ads_control_flow_deterministic_id_generation")}; H$=function(f){return f.Z.S().experiments.SI("html5_cuepoint_identifier_logging")}; Ivm=function(f){return f.Z.S().Y("html5_recognize_predict_start_cue_point")}; $c0=function(f){return f.Z.S().experiments.SI("should_ignore_cuepoints_during_lifa_preroll")}; iAk=function(f){switch(f){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; pm=function(){if(aE===null){aE=new fMl;qa(Qy).G="b";var f=qa(Qy);let e=Fg(f)=="h"||Fg(f)=="b",B=!(xY(),!1);e&&B&&(f.PS=!0,f.uY=new eol)}return aE}; Bi6=function(f,e,B){f.C[e]=B}; nzO=function(f){switch(f){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; Yw=function(f,e,B){const n=B.l4,r=B.Uq,L=B.listener;B=B.ZL;if(f.C.has(e))NL("Unexpected registration of layout in LidarApi");else{if(B){if(f.G.has(B))return;f.G.add(B)}f.C.set(e,L);yg(xY().ih,"fmd",1);kP(qa(Qy),n);Bi6(pm(),e,{EN:()=>{if(!r)return{};const d=f.Z.getPresentingPlayerType(!0);return f.Z.getVideoData({playerType:d})?.isAd()?{currentTime:f.Q9.get().getCurrentTimeSec(d,!1,void 0),duration:r,isPlaying:cd(f.Q9.get(),d).isPlaying(),isVpaid:!1,isYouTube:!0,volume:f.Q9.get().isMuted()?0:f.Q9.get().getVolume()/ 100}:{}}})}}; A3=function(f,e){f.C.has(e)?(f.C.delete(e),delete pm().C[e]):NL("Unexpected unregistration of layout in LidarApi")}; rN0=function(f,e){if(f.Z.isLifaAdPlaying()){var B=f.Z.jh(!0,!0);f.X(e,B.width*.5*1.1,B.height*.25*1.1,B.width*.5*.9,B.height*.5*.9)}}; tQY=function(f,e){const B={};LOC(f,B,e);dl5(B);B.LACT=jq(()=>vR().toString()); B.VIS=jq(()=>f.getVisibilityState().toString()); B.SDKV="h.3.0";B.VOL=jq(()=>f.isMuted()?"0":Math.round(f.getVolume()).toString()); B.VED="";return B}; var FKd=function(){return S$m[Z[2]](this,17)}; var HMw=function(f,e){const B={};if(e||!f||!f.kind)return B;if(f.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||f.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!f.adTimeOffset||!f.adTimeOffset.offsetStartMilliseconds)return g.J(Error("malformed AdPlacementConfig")),B;B.MIDROLL_POS=jq(qV(Math.round(Hh(f.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else B.MIDROLL_POS=jq(qV("0"));return B},jq=function(f){return{toString(){return f()}}},kr5=function(f,e,B){if(!B||g.TL(B))return f; const n=Object.assign({},f),r=e?encodeURIComponent:L=>L; f=(L,d)=>{(d=B[d])&&(n[L]=r(d))}; f("DV_VIEWABILITY","doubleVerifyViewability");f("IAS_VIEWABILITY","integralAdsViewability");f("MOAT_INIT","moatInit");f("MOAT_VIEWABILITY","moatViewability");f=(L,d)=>{(d=B[d])&&(n[L]=d)}; f("GOOGLE_VIEWABILITY","googleViewability");f("VIEWABILITY","viewability");return n},LOC=function(f,e,B){e.CPN=jq(()=>{var n; (n=f.getVideoData({playerType:1}))?n=n.clientPlaybackNonce:(g.Yv(Error("Video data is null.")),n=null);return n}); e.AD_MT=jq(()=>{if(B!=null)var n=B;else f.S().Y("enable_h5_shorts_ad_fill_ad_mt_macro")||f.S().Y("enable_desktop_discovery_pings_ad_mt_macro")||ec(f.S())?(n=f.getPresentingPlayerType(!0),n=f.getVideoData({playerType:n})?.isAd()?f.getCurrentTime(n,!1):0):n=f.getCurrentTime(2,!1);return C2l(n)}); e.MT=jq(()=>C2l(f.getCurrentTime(1,!1))); e.P_H=jq(()=>f.AL().I8().height.toString()); e.P_W=jq(()=>f.AL().I8().width.toString()); e.PV_H=jq(()=>f.AL().getVideoContentRect().height.toString()); e.PV_W=jq(()=>f.AL().getVideoContentRect().width.toString())},C2l=function(f){return Math.round(Math.max(0,f*1E3)).toString()},dl5=function(f){f.CONN=jq(qV("0")); f.WT=jq(()=>Date.now().toString())},wM5=async function(f,e,B,n,r){const L=!!e.scrubReferrer; B=g.pX(e.baseUrl,kr5(B,L,n));n={};if(e.headers){var d=f.V();d=d.C?await d.C:d.getValue();for(const t of e.headers)switch(t.headerType){case "VISITOR_ID":g.Q("VISITOR_DATA")&&(n["X-Goog-Visitor-Id"]=g.Q("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Q("EOM_VISITOR_DATA")&&(n["X-Goog-EOM-Visitor-Id"]=g.Q("EOM_VISITOR_DATA"));break;case "USER_AUTH":d&&(n.Authorization=`Bearer ${d}`);break;case "PLUS_PAGE_ID":(e=f.W())&&(n["X-Goog-PageId"]=e);break;case "AUTH_USER":e=f.C();!d&&e&&(n["X-Goog-AuthUser"]= e);break;case "DATASYNC_ID":f.J()?.SI("enable_datasync_id_header_in_web_vss_pings")&&(e=f.G(),KN(B)&&g.Q("LOGGED_IN")&&e&&(n["X-YouTube-DataSync-Id"]=e))}"X-Goog-EOM-Visitor-Id"in n&&"X-Goog-Visitor-Id"in n&&delete n["X-Goog-Visitor-Id"]}g.gq(B,void 0,L,Object.keys(n).length!==0?n:void 0,"",!0,r)},UP=function(f,e,B){typeof B==="string"?f.Z.getVideoData({playerType:1}).pP(e,B):f.Z.getVideoData({playerType:1}).ri(e,B)},aT=function(f,e){f.Z.sendVideoStatsEngageEvent(e,void 0,2)},aW6=function(f,e,B,n= [],r,L){const d=v$(f.G.get(),e); if(d){var t=f.UA.get().MM(e,B),H=OI(f,OB(d),d,r,L);n.forEach((k,C)=>{k.baseUrl&&(f.J.send(k.baseUrl,H,t,k.attributionSrcMode),k.serializedAdPingMetadata&&f.nh.C("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,d,new vz0(k,C),void 0,void 0,d.adLayoutLoggingData))})}else NL("Trying to track from an unknown layout.",void 0,void 0,{layoutId:e, trackingType:B})},oE=function(f,e){f.C.has(e.du())?NL("Trying to register an existing AdErrorInfoSupplier."):f.C.set(e.du(),e)},VH=function(f,e){f.C.delete(e.du())||NL("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")},Fq=function(f,e){g.t$("adsClientStateChange",e)},bM6=function(f,e,B,n,r){const L=v$(f.G.get(),B); L?(B=OI(f,OB(L),L,void 0,void 0,n),e.hasOwnProperty("baseUrl")?f.V.send(e,B):f.J.send(e,B,{},r)):NL("Trying to ping from an unknown layout",void 0,void 0,{layoutId:B})},OI=function(f,e,B,n,r,L){const d=B?ZMG(f):{},t=B?Ro5(f,B.layoutId):{},H=KO5(f),k=r??J0(f.mY.get(),2)?.clientPlaybackNonce; f={...tQY(f.Z,n),...HMw(e.adPlacementConfig,B?.renderingContent!==void 0),...t,...d,...H,FINAL:jq(()=>"1"), AD_CPN:jq(()=>k||"")}; B?.renderingContent!==void 0||(f.SLOT_POS=jq(()=>(e.aB||0).toString())); B={};L=Object.assign({},f,L);for(const C of Object.values(qGC))f=L[C],f!=null&&f.toString()!=null&&(B[C]=f.toString());return B},OB=function(f){const e=f.clientMetadata.RA("metadata_type_ad_placement_config"); f=f.clientMetadata.RA("metadata_type_media_sub_layout_index");return{adPlacementConfig:e,aB:f}},ZMG=function(f){const e={},B=f.pR?.pN(); B!=null&&(e.SURVEY_ELAPSED_MS=jq(()=>Math.round(B*1E3).toString())); e.SURVEY_LOCAL_TIME_EPOCH_S=jq(()=>Math.round(Date.now()/1E3).toString()); return e},Ro5=function(f,e){f=f.C.get(e); return f?(f=f.OQ())?{YT_ERROR_CODE:f.tY.toString(),ERRORCODE:f.R4.toString(),ERROR_MSG:f.errorMessage}:{}:{}},KO5=function(f){const e={},B=f.Z.getVideoData({playerType:1}); e.ASR=jq(()=>B?.M_??null); e.EI=jq(()=>B?.eventId??null); return e},J0=function(f,e){const B=f.Z.getVideoData({playerType:e}); return B?f.q_(B,e||f.Z.getPresentingPlayerType(!0)):null},lQ=function(f,e,B){const n=f.q_(e,B); f.XY=n;f.listeners.forEach(r=>{r.Uh(n)})},zoC=function(f,e){f.F9=f.F9.filter(B=>B!==e)},uQ=function(f,e){g.PW(f.Z.getRootNode(),e)},FT=function(f,e){g.$i(f.Z.getRootNode(),e)},cd=function(f,e){return f.Z.getPlayerStateObject(e)},m8=function(f){f.Z.cueVideoByPlayerVars({videoId:"empty_video"},2)},aMC=function(f,e){const B=f.Z.S(); g.JF(B)||B.controlsType!=="3"||f.Z.AL().T2(e)},UB=function(f,e,B){return f.getCurrentTimeSec(e,B)},N4=function(f,e){e=f.mY.get().nw.get(e)??null; if(e===null)return NL("Expected ad video start time on playback timeline"),0;f=f.Z.getCurrentTime(2,!0);return fr.adPlacementRenderer).filter(r=>!(!r||!r.renderer)); if(!n.length&&!B.length)return{Jz:[],adSlots:B,BP:!1,ssdaiAdsConfig:void 0};if(e.end>0){const r=e.end.toString();n.forEach(L=>{(L=L.config&&L.config.adPlacementConfig)&&L.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&L.adTimeOffset&&L.adTimeOffset.offsetEndMilliseconds==="-1"&&L.adTimeOffset.offsetEndMilliseconds!==r&&(L.adTimeOffset.offsetEndMilliseconds=r)}); B.map(L=>g.u(L,R8)).forEach(L=>{(L=L?.slotEntryTrigger?.mediaTimeRangeTrigger)&&L.offsetEndMilliseconds==="-1"&&(L.offsetEndMilliseconds=r)})}return{Jz:n, adSlots:B,BP:!1,ssdaiAdsConfig:f.ssdaiAdsConfig}},ANd=function(f,e,B){e=g.xg(e,n=>new YGg(n,B,n.id)); g.yW(f.Z,"onAdUxUpdate",e)},h3=function(f,e){for(const B of f.listeners)e(B)},jbg=function(f,e){var B=f.startSecs+f.Kc; B=B<=0?null:B;if(B===null)return null;switch(f.event){case "start":case "continue":case "stop":break;case "predictStart":if(e)break;return null;default:return null}e=Math.max(f.startSecs,0);return{V$:new zK(e,B),zA:new ct(e,B-e,f.context,f.identifier,f.event,f.C)}},ILH=function(f,e,B){const n=g.ax(f.C,e); if(n>=0)return e;e=-n-1;return e>=f.C.length||f.C[e]>B?null:f.C[e]},OMG=function(f,e){f.MB.push(e); let B=!1;for(const n of f.listeners)B=n.RK(e)||B;f.V=B;H$(f.iY.get())&&UP(f.Ud.get(),"onci",`cpi.${e.identifier};cpe.${e.event};cps.${e.startSecs};cbi.${B}`)},VQ5=function(f,e){Fq(f.Ud.get(),{cuepointTrigger:{event:ozM(e.event), cuepointId:e.identifier,totalCueDurationMs:e.Kc*1E3,playheadTimeMs:e.C,cueStartTimeMs:e.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:f.Z.getVideoData({playerType:1}).clientPlaybackNonce}})},ozM=function(f){switch(f){case "unknown":return"CUEPOINT_EVENT_UNKNOWN"; case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";case "prefetch":return"CUEPOINT_EVENT_PREFETCH";default:return Q2(f,"Unexpected cuepoint event")}},lMC=function(f){switch(f){case 1:return 1; case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:Q2(f,"unknown transitionReason")}},gzM=function(f,e,B,n,r){try{{const d=e.S(); if(g.yQ(d))var L=new ukm(f,e,B,n,r);else if(g.L3(d))L=new FOw(f,e,B,n,r);else if(yZ(d))L=new mlH(f,e,B,n,r);else if(g.TT(d))L=new Uld(f,e,B,n,r);else if(g.DH(d))L=new Ni5(f,e,B,n,r);else throw new TypeError("Unknown web interface");}return L}catch{return n=e.S(),NL("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:n.C.cplatform,interface:n.C.c,Ira:n.C.cver,zVC:n.C.ctheme,xqL:n.C.cplayer,w0a:n.playerStyle}),new hoO(f,e,B,r)}},gX=function(f){return f.C.Ll},SGl=function(f){f= f.S(); return PK(f)&&!g.yl(f)&&f.playerStyle==="desktop-polymer"},EzY=function(f){const e=g.x2("html5-video-player"); e&&g.h(e,"ytp-ad-display-override",f)},Qbk=function(f){const e=new g.Sq({L:"div", B:"ytp-ad-text-overlay",j:[{L:"div",B:"ytp-ad-overlay-ad-info-button-container"},{L:"div",B:"ytp-ad-overlay-close-container",j:[{L:"button",B:"ytp-ad-overlay-close-button",j:[cl(EB)]}]},{L:"div",B:"ytp-ad-overlay-title",Ga:"{{title}}"},{L:"div",B:"ytp-ad-overlay-desc",Ga:"{{description}}"},{L:"div",y9:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Ga:"{{displayUrl}}"}]});f.D(e.JL("ytp-ad-overlay-title"),"click",B=>{QH(f,e.element,B)}); f.D(e.JL("ytp-ad-overlay-link"),"click",B=>{QH(f,e.element,B)}); f.D(e.JL("ytp-ad-overlay-close-container"),"click",f.Lq);e.hide();return e},Tig=function(f){const e=new g.Sq({L:"div", y9:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],j:[{L:"div",B:"ytp-ad-overlay-ad-info-button-container"},{L:"div",B:"ytp-ad-overlay-close-container",j:[{L:"button",B:"ytp-ad-overlay-close-button",j:[cl(EB)]}]},{L:"div",B:"ytp-ad-overlay-text-image",j:[{L:"img",O:{src:"{{imageUrl}}"}}]},{L:"div",B:"ytp-ad-overlay-title",Ga:"{{title}}"},{L:"div",B:"ytp-ad-overlay-desc",Ga:"{{description}}"},{L:"div",y9:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Ga:"{{displayUrl}}"}]});f.D(e.JL("ytp-ad-overlay-title"), "click",B=>{QH(f,e.element,B)}); f.D(e.JL("ytp-ad-overlay-link"),"click",B=>{QH(f,e.element,B)}); f.D(e.JL("ytp-ad-overlay-close-container"),"click",f.Lq);f.D(e.JL("ytp-ad-overlay-text-image"),"click",f.uC);e.hide();return e},DlC=function(f){const e=new g.Sq({L:"div", B:"ytp-ad-image-overlay",j:[{L:"div",B:"ytp-ad-overlay-ad-info-button-container"},{L:"div",B:"ytp-ad-overlay-close-container",j:[{L:"button",B:"ytp-ad-overlay-close-button",j:[cl(EB)]}]},{L:"div",B:"ytp-ad-overlay-image",j:[{L:"img",O:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});f.D(e.JL("ytp-ad-overlay-image"),"click",B=>{QH(f,e.element,B)}); f.D(e.JL("ytp-ad-overlay-close-container"),"click",f.Lq);e.hide();return e},QH=function(f,e,B){const n=g.GL(f.macros),r=g.WN(e); n.AW={toString:()=>r.width.toString()}; n.AH={toString:()=>r.height.toString()}; const L=g.Gt(B,e).floor();n.I_X={toString:()=>L.x.toString()}; n.NX={toString:()=>L.x.toString()}; n.I_Y={toString:()=>L.y.toString()}; n.NY={toString:()=>L.y.toString()}; n.NM={toString:()=>f.X.toString()}; for(const d of f.U)f.layoutId?e1(f.lY,d,f.layoutId,n):g.J(Error("Missing layoutId for invideo_overlay_ad."));f.api.pauseVideo()},JN0=function(f,e){f=f.api.getRootNode(); g.h(f,"ytp-ad-overlay-open",e);g.h(f,"ytp-ad-overlay-closed",!e)},Dt=function(f,e){if(e){var B=g.u(e,a8)||null; B==null?g.J(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(e=g.x2("video-ads ytp-ad-module")||null,e==null?g.J(Error("Could not locate the root ads container element to attach the ad info dialog.")):(f.A=new g.Sq({L:"div",B:"ytp-ad-overlay-ad-info-dialog-container"}),g.A(f,f.A),f.A.di(e),e=new Ts(f.api,f.layoutId,f.interactionLoggingClientData,f.lY,f.A.element,!1),g.A(f,e),e.init(Io("ad-info-hover-text-button"),B,f.macros),f.W?(e.di(f.W,0),e.subscribe("f",f.IA,f),e.subscribe("e", f.uc,f),f.D(f.W,"click",f.Q3),f.D(g.x2("ytp-ad-button",e.element),"click",()=>{if(g.u(g.u(B.button,$u)?.serviceEndpoint,Y1C))f.BS=f.api.getPlayerState(1)===2,f.api.pauseVideo();else f.api.onAdUxClicked("ad-info-hover-text-button",f.layoutId)}),f.kA=e):g.J(Error("Ad info button container within overlay ad was not present."))))}else g.Yv(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))},MQk=function(f,e){if(J3(f,M4)||f.api.isMinimized())return!1; const B=Bl(e.title),n=Bl(e.description);if(g.eU(B)||g.eU(n))return!1;f.createServerVe(f.J.element,e.trackingParams||null);f.J.updateValue("title",Bl(e.title));f.J.updateValue("description",Bl(e.description));f.J.updateValue("displayUrl",Bl(e.displayUrl));e.navigationEndpoint&&g.CF(f.U,e.navigationEndpoint);f.J.show();f.cS.start();f.logVisibility(f.J.element,!0);f.D(f.J.element,"mouseover",()=>{f.X++}); return!0},Grl=function(f,e){if(J3(f,M4)||f.api.isMinimized())return!1; const B=Bl(e.title),n=Bl(e.description);if(g.eU(B)||g.eU(n))return!1;f.createServerVe(f.G.element,e.trackingParams||null);f.G.updateValue("title",Bl(e.title));f.G.updateValue("description",Bl(e.description));f.G.updateValue("displayUrl",Bl(e.displayUrl));f.G.updateValue("imageUrl",ufM(e.image));e.navigationEndpoint&&g.CF(f.U,e.navigationEndpoint);f.MC=e.imageNavigationEndpoint||null;f.G.show();f.cS.start();f.logVisibility(f.G.element,!0);f.D(f.G.element,"mouseover",()=>{f.X++}); return!0},xlM=function(f,e){if(f.api.isMinimized())return!1; const B=FrM(e.image);let n=B;B.width{f.X++;f.api.Co("invideo-overlay",f.layoutId)}); f.D(f.C.element,"mouseout",()=>{f.api.oK("invideo-overlay",f.layoutId)}); return!0},WOM=function(f){return f.V&&f.V.closeButton&&f.V.closeButton.buttonRenderer&&(f=f.V.closeButton.buttonRenderer,f.serviceEndpoint)?[f.serviceEndpoint]:[]},J3=function(f,e){var B=f.api.AL().I8(); const n=f.api.jh(!0,!1);return(e=Dc(B,B.height-(n.height+n.top),e))?(f.Z9&&e&&(B=g.GL(f.macros),B.ERRORCODE=e.R4.toString(),B.ERROR_MSG=e.errorMessage,f.layoutId?e1(f.lY,f.Z9,f.layoutId,B):g.J(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1},sb6=function(f,e){f=f.api.getRootNode(); g.h(f,"ytp-ad-overlay-open",e);g.h(f,"ytp-ad-overlay-closed",!e)},XMY=function(f){const e=g.x2("html5-video-player"); e&&g.h(e,"ytp-ad-display-override",f)},xw=function(f,e,B=!1){f.C&&(e?f.C.hide():f.C.show(),B&&f.C instanceof Gs&&!f.C.U&&hi6(f.C,!1)); f.G&&(e?f.G.show():f.G.hide())},yNC=function(f){function e(B){return{toString:()=>B()}} f.macros.SURVEY_LOCAL_TIME_EPOCH_S=e(()=>{const B=new Date;return(Math.round(B.valueOf()/1E3)+-1*B.getTimezoneOffset()*60).toString()}); f.macros.SURVEY_ELAPSED_MS=e(()=>(Date.now()-f.V).toString())},P2w=function(f,e){e=g.nS(e); g.kC(f.questionText,e);f.U&&f.questionText.setAttribute("id",Io("survey-question-text"))},$lG=function(f,e,B,n){n=new IMg(f.api,f.layoutId,f.interactionLoggingClientData,f.lY,n,f.cS); n.di(f.answers);n.init(Io("survey-answer"),e,B);f.U&&(e=f.questionText.getAttribute("id"),e!=null&&(n.C!==null?n.C.G.setAttribute("aria-describedby",e):n.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",e)));f.G.push(n)},esG=function(f,e){if(e){var B=e.background; B&&g.u(B,iM0)&&(B=(B=g.u(B,iM0).image)&&Of(B)||"",g.eU(B)?g.Yv(Error("Found ThumbnailDetails without valid image URL")):g.uc(f.Z9,"backgroundImage",`url(${B})`));if(e.durationMilliseconds==null||e.durationMilliseconds===void 0||e.durationMilliseconds===0)f=Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+`${JSON.stringify(e)}`),g.J(f);else{f.V=g.u0();f.C=new Wd(f.api,e.durationMilliseconds);g.A(f,f.C);if(f.C&&e.instreamAdPlayerOverlay&&g.u(e.instreamAdPlayerOverlay,zg))try{var n= new ft5(f.api,f.layoutId,f.interactionLoggingClientData,f.lY,f.C);n.di(f.playerOverlay);n.init(Io("survey-player-overlay"),g.u(e.instreamAdPlayerOverlay,zg),f.macros);f.J=n;g.A(f,n);f.X()}catch(r){n=Error("ISAPOR had an error when initializing. Error: "+`${r} SurveyAdQuestionCommon: ${JSON.stringify(e)}`),g.J(n)}else n=Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+`${JSON.stringify(e)}`),g.J(n);f.C&&e.durationMilliseconds&&e.durationMilliseconds>0?(e=new sB(f.api,f.C),e.di(f.playerOverlay), g.A(f,e)):(f=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+`${JSON.stringify(e)}`),g.J(f))}}else g.J(Error("addCommonComponents() needs to be called before starting countdown."))},nw6=function(f,e,B){f.noneOfTheAbove=new BXw(f.api,f.layoutId,f.interactionLoggingClientData,f.lY); f.noneOfTheAbove.di(f.answers);f.noneOfTheAbove.init(Io("survey-none-of-the-above"),e,B)},r35=function(f){f.G.forEach(e=>{e.C.toggleButton(!1)}); xw(f.J,XT(f),!0)},XT=function(f){return f.G.some(e=>e.C.isToggled())||f.noneOfTheAbove.button.isToggled()},tqw=function(f,e){const B=f.G[e]; f.J?.dispose();g.u(B,qz)?L8g(f,g.u(B,qz),f.macros):g.u(B,Kj)&&d4m(f,g.u(B,Kj),f.macros);f.C=e},L8g=function(f,e,B){const n=new Hm5(f.api,f.layoutId,f.interactionLoggingClientData,f.lY,f.V.bind(f)); n.di(f.W);n.init(Io("survey-question-single-select"),e,B);f.api.S().Y("supports_multi_step_on_desktop")?f.J=n:f.questions.push(n);g.A(f,n)},d4m=function(f,e,B){const n=new ksH(f.api,f.layoutId,f.interactionLoggingClientData,f.lY,f.V.bind(f)); n.di(f.W);n.init(Io("survey-question-multi-select"),e,B);f.api.S().Y("supports_multi_step_on_desktop")?f.J=n:f.questions.push(n);g.A(f,n)},CQd=function(f,e){e=e&&Of(e)||""; if(g.eU(e))g.Yv(Error("Found ThumbnailDetails without valid image URL"));else{var B=f.style;f=f.style.cssText;const n=document.implementation.createHTMLDocument("").createElement("DIV");n.style.cssText=f;f=E_C(n.style);B.cssText=[f,`background-image:url("${e}");`].join("")}},wdl=function(f){const e=g.x2("html5-video-player"); e&&g.h(e,"ytp-ad-display-override",f)}; var U3w=function(f,e,B){return Ra[Z[2]](this,8,f,e,B)}; vwM=function(f){switch(f.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; bmm=function(f){const e=g.x2("html5-video-player");e&&g.h(e,"ytp-ad-display-override",f)}; Zmm=function(f){const e=g.x2("html5-video-player");e&&g.h(e,"ytp-ad-display-override",f)}; Rs0=function(f){if(!f.adAvatar||!g.u(f.adAvatar,yH))return g.J(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!f.headline)return g.J(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!f.adBadge||!g.u(f.adBadge,Pd))return g.J(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!f.adButton||!g.u(f.adButton,IE))return g.J(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!f.adInfoRenderer|| !g.u(f.adInfoRenderer,a8))return g.J(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;f=f.durationMilliseconds||0;return typeof f!=="number"||f<=0?(g.J(Error("durationMilliseconds was specified incorrectly in "+`VideoInterstitialButtonedCenteredLayoutRenderer with a value of: ${f}`)),!1):!0}; owG=function(f,e,B,n,r={},L=!1,d=!1){switch(f){case "invideo-overlay":f=new K8k(e,n,r,B);break;case "player-overlay":f=new qBY(e,n,r,B,new $w(e),d);break;case "player-overlay-layout":f=new zsl(e,n,r,B,new $w(e));break;case "survey":f=new atw(e,n,r,B);break;case "ad-action-interstitial":f=new pdk(e,n,r,B,L,d);break;case "video-interstitial-buttoned-centered":f=new c3m(e,n,r,B);break;case "survey-interstitial":f=new YBH(e,n,r,B);break;case "ad-message":f=new A3G(e,n,r,B,new $w(e,1));break;case "player-underlay":f= new jEw(e,n,r,B);break;case "display-underlay-text-grid-cards":f=new Omg(e,n,r,B,new $w(e));break;default:return null}return f}; VqM=function(f,e){f=g.Ju(f.components,e.id,null);f==null&&g.Yv(Error("Component not found for element id: "+e.id));return f||null}; iQ=function(f,e){e===f.hv&&(f.hv=void 0)}; MJH=function(f,e,B=[],n="",r="",L,d){const t=gX(f.C).FX,H=f.player.getVideoData({playerType:1});H&&H.getPlayerResponse();H&&H.sA();B=ltO(e,B,t,gX(f.C).jr);XeG(gX(f.C).Vr,n,B.AQ,B.g2,e,r,L,d)}; uTY=function(f){var e=gX(f.C).v4,B=e.V().iO("SLOT_TYPE_PLAYER_BYTES",1);e=J0(e.mY.get(),1).clientPlaybackNonce;let n=!1;for(const r of B)B=r.slotType==="SLOT_TYPE_PLAYER_BYTES"&&r.slotEntryTrigger instanceof o8?r.slotEntryTrigger.hB:void 0,B&&B===e&&(n&&NL("More than 1 preroll playerBytes slot detected",r),n=!0);n||gX(f.C).qv.S3()}; F8C=function(f){f=gX(f.C).Cj;let e="";for(const B of f.zC.keys()){if(B.slotType==="SLOT_TYPE_PLAYER_BYTES"&&B.hL==="core")return!0;e+=B.slotType+" "}Math.random()<.01&&NL("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:e});return!1}; fD=function(f){f=gX(f.C).Cj;for(const e of f.zC.values())if(e.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; m45=function(f){f.created!==f.loaded&&NL("Created and loaded are out of sync")}; ltO=function(f,e,B,n){e={AQ:[],g2:e};for(const L of f){if(!L)continue;if(L.renderer==null)continue;f=L.renderer;if(!B.Z.S().Y("html5_enable_vod_lasr_with_notify_pacf")){var r=n;g.u(f.sandwichedLinearAdRenderer?.adVideoStart,n6)?(r=hL5(g.u(f.sandwichedLinearAdRenderer?.adVideoStart,n6),r),g.mj(f.sandwichedLinearAdRenderer.adVideoStart,n6,r)):g.u(f.linearAdSequenceRenderer?.adStart,n6)&&(r=hL5(g.u(f.linearAdSequenceRenderer?.adStart,n6),r),g.mj(f.linearAdSequenceRenderer.adStart,n6,r))}e.AQ.push(L)}return e}; g.eF=function(f){if(typeof DOMParser!="undefined")return ey(new DOMParser,Pe(f),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.U40=function(f){const e=f.S();return e.Mk&&!e.J&&g.XY(e)?f.isEmbedsShortsMode()?(f=f.jh(),Math.min(f.width,f.height)>=315):!f.B0():!1}; NXm=function(f){for(let e=0;e<16;++e){const B=new g.y({L:"a",B:"ytp-suggestion-link",O:{href:"{{link}}",target:f.api.S().N,"aria-label":"{{aria_label}}"},j:[{L:"div",B:"ytp-suggestion-image"},{L:"div",B:"ytp-suggestion-overlay",O:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},j:[{L:"div",B:"ytp-suggestion-title",Ga:"{{title}}"},{L:"div",B:"ytp-suggestion-author",Ga:"{{author_and_views}}"},{L:"div",O:{"data-is-live":"{{is_live}}"},B:"ytp-suggestion-duration",Ga:"{{duration}}"}]}]}); g.A(f,B);const n=B.JL("ytp-suggestion-link");g.uc(n,"transitionDelay",`${e/20}s`);f.J.D(n,"click",r=>{var L=e;if(f.G){var d=f.suggestionData[L],t=d.sessionData;f.W&&f.api.Y("web_player_log_click_before_generating_ve_conversion_params")?(f.api.logClick(f.C[L].element),L=d.Q7(),d={},g.Z5(f.api,d),L=g.vT(L,d),g.Ur(L,f.api,r)):g.mv(r,f.api,f.W,t||void 0)&&f.api.P6(d.videoId,t,d.playlistId)}else r.preventDefault(),document.activeElement.blur()}); B.di(f.suggestions.element);f.C.push(B);f.api.createServerVe(B.element,B)}}; hsk=function(f){if(f.api.S().Y("web_player_log_click_before_generating_ve_conversion_params")){var e=Math.floor(-f.scrollPosition/(f.V+8));const B=Math.min(e+f.columns,f.suggestionData.length)-1;for(;e<=B;e++)f.api.logVisibility(f.C[e].element,!0)}}; g.B4=function(f){var e=f.api.E3()?32:16;e=f.X/2+e;f.next.element.style.bottom=`${e}px`;f.previous.element.style.bottom=`${e}px`;e=f.scrollPosition;const B=f.containerWidth-f.suggestionData.length*(f.V+8);g.h(f.element,"ytp-scroll-min",e>=0);g.h(f.element,"ytp-scroll-max",e<=B)}; SBg=function(f){var e=f.suggestionData.length;for(let L=0;L>>0);rY6=0;g.Uk(Ek,Error);Ek.prototype.name="CustomError";var EE;var EwO={NONE:0,Lr:1},QEk={e1:0,ZqY:1,ulA:2,RjI:3},nD={jH:"a",GP:"d",VIDEO:"v"};var TXM=class{constructor(){this.R6=0;this.C=!1;this.G=-1;this.ov=!1;this.y5=0}isVisible(){return this.ov?this.R6>=.3:this.R6>=.5}};var rn={aq:0,Dz:1},D4Y={NONE:0,MQ:1,qh:2};var WB="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var LD=class{constructor(){this.G=null;this.C=!1}getValue(){return this.G}},RMO=class extends LD{constructor(f){super();this.V=f}J(f){this.G===null&&g.g2(this.V,f)&&(this.G=f)}},J3Y=class extends LD{J(f){this.G===null&&typeof f==="number"&&(this.G=f)}},K5C=class extends LD{J(f){this.G===null&&typeof f==="string"&&(this.G=f)}};var MqM=class{constructor(){this.C={};this.G=!0;this.J={}}disable(){this.G=!1}enable(){this.G=!0}isEnabled(){return this.G}reset(){this.C={};this.G=!0;this.J={}}};var GsC=f=>{XG(f,"od",EwO);XG(f,"opac",rn).C=!0;XG(f,"sbeos",rn).C=!0;XG(f,"prf",rn).C=!0;XG(f,"mwt",rn).C=!0;XG(f,"iogeo",rn)};var QX=document,ZS=window;var x4G=pw(1,!0),ts=pw(610401301,!1);pw(899588437,!1);pw(772657768,!0);pw(513659523,!1);pw(568333945,!0);var xqY=pw(1331761403,!1);pw(651175828,!1);pw(722764542,!1);pw(748402145,!1);pw(748402146,!1);var Cr=pw(748402147,!0),dn=pw(824648567,!0),pu=pw(824656860,x4G);pw(333098724,!1);pw(861377723,!1);pw(861377724,!1);pw(2147483644,!1);pw(2147483645,!1);pw(2147483646,x4G);pw(2147483647,!0);var HE=!!g.zO("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var umw=/&/g,F5Y=//g,UHM=/"/g,N6k=/'/g,hMH=/\x00/g,ll6=/[\x00&<>"']/;var kW,W86=g.Kw.navigator;kW=W86?W86.userAgentData||null:null;var YW=globalThis.trustedTypes,As;var O0=class{constructor(f){this.C=f}toString(){return this.C+""}};var uP=class{constructor(f){this.C=f}toString(){return this.C}},AY0=new uP("about:invalid#zClosurez");var mB=class{constructor(f){this.H4=f}},sE5=U0("tel"),Xdg=U0("sms"),Nb=[U0("data"),U0("http"),U0("https"),U0("mailto"),U0("ftp"),new mB(f=>/^[^:]*([/?#]|$)/.test(f))],jd0=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Tc=class{constructor(f){this.C=f}toString(){return this.C+""}};var xW=class{constructor(f){this.C=f}toString(){return this.C+""}};var PE=class{constructor(f){this.C=f}toString(){return this.C}};var iP={};qo[" "]=function(){};var md,Dp,zPC,y36,PQ6,ItH,m1,bD,tU;g.dC=Zw();g.db=R2();g.Po=vE("Edge");g.tq=g.Po||g.db;md=vE("Gecko")&&!(nE(g.d0(),"WebKit")&&!vE("Edge"))&&!(vE("Trident")||vE("MSIE"))&&!vE("Edge");g.IA=nE(g.d0(),"WebKit")&&!vE("Edge");Dp=RA();zPC=KH();g.zw=vh();y36=bN();PQ6=vE("iPad");ItH=vE("iPod");m1=Zm();bD=nE(g.d0(),"KaiOS"); a:{let f="";const e=function(){const B=g.d0();if(md)return/rv:([^\);]+)(\)|;)/.exec(B);if(g.Po)return/Edge\/([\d\.]+)/.exec(B);if(g.db)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(B);if(g.IA)return/WebKit\/(\S+)/.exec(B);if(g.dC)return/(?:Version)[ \/]?(\S+)/.exec(B)}(); e&&(f=e?e[1]:"");if(g.db){var H4;const B=g.Kw.document;H4=B?B.documentMode:void 0;if(H4!=null&&H4>parseFloat(f)){tU=String(H4);break a}}tU=f}var aA=tU,EgO={};var RB,Ks;g.wu=qb();RB=bN()||vE("iPod");Ks=vE("iPad");g.kO=pE();g.PP=zc();g.oN=a2()&&!Zm();var tUm=!g.db&&!a2();g.c=g.OE.prototype;g.c.clone=function(){return new g.OE(this.x,this.y)}; g.c.equals=function(f){return f instanceof g.OE&&lN(this,f)}; g.c.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.c.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.c.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.c.scale=function(f,e){this.x*=f;this.y*=typeof e==="number"?e:f;return this};g.c=g.uN.prototype;g.c.clone=function(){return new g.uN(this.width,this.height)}; g.c.aspectRatio=function(){return this.width/this.height}; g.c.isEmpty=function(){return!m$(this)}; g.c.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.c.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.c.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.c.scale=function(f,e){this.width*=f;this.height*=typeof e==="number"?e:f;return this};var A$=class{constructor(f,e){this.C=f===OR&&e||""}toString(){return this.C}},OR={};new A$(OR,"");var No=/^[a-z][a-z\d-]*$/i,JYO="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),GOO="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),W5l=["action","formaction","href"];var Wh={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.c=gr.prototype;g.c.V3=function(f){return Te(this.C,f)}; g.c.getElementsByTagName=function(f,e){return(e||this.C).getElementsByTagName(String(f))}; g.c.JL=function(f){return g.x2(f,this.C)}; g.c.setProperties=sE;g.c.createElement=function(f){return iN(this.C,f)}; g.c.appendChild=g.rw;g.c.append=function(f,e){fC(Sy(f),f,arguments,1)}; g.c.canHaveChildren=function(f){if(f.nodeType!=1)return!1;switch(f.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.c.removeNode=g.tb;g.c.getChildren=function(f){return f.children}; g.c.contains=g.HN;g.c.isFocusable=ww;var $4H=class{constructor(){this.C=this.tj=null}};var im6=class{now(){return 0}G(){return 0}J(){return 0}C(){return 0}};var faY=class extends im6{constructor(){super();if(!RY())throw Error();}now(){return RY()&&ZS.performance.now?ZS.performance.now():super.now()}G(){return RY()&&ZS.performance.memory?ZS.performance.memory.totalJSHeapSize||0:super.G()}J(){return RY()&&ZS.performance.memory?ZS.performance.memory.usedJSHeapSize||0:super.J()}C(){return RY()&&ZS.performance.memory?ZS.performance.memory.jsHeapSizeLimit||0:super.C()}};var Ih5=KC("AnimationEnd"),VJ=KC("TransitionEnd");g.c=YC.prototype;g.c.getHeight=function(){return this.bottom-this.top}; g.c.clone=function(){return new YC(this.top,this.right,this.bottom,this.left)}; g.c.contains=function(f){return this&&f?f instanceof YC?f.left>=this.left&&f.right<=this.right&&f.top>=this.top&&f.bottom<=this.bottom:f.x>=this.left&&f.x<=this.right&&f.y>=this.top&&f.y<=this.bottom:!1}; g.c.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.c.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.c.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.c.scale=function(f,e){e=typeof e==="number"?e:f;this.left*=f;this.right*=f;this.top*=e;this.bottom*=e;return this};g.c=g.oY.prototype;g.c.clone=function(){return new g.oY(this.left,this.top,this.width,this.height)}; g.c.contains=function(f){return f instanceof g.OE?f.x>=this.left&&f.x<=this.left+this.width&&f.y>=this.top&&f.y<=this.top+this.height:this.left<=f.left&&this.left+this.width>=f.left+f.width&&this.top<=f.top&&this.top+this.height>=f.top+f.height}; g.c.getSize=function(){return new g.uN(this.width,this.height)}; g.c.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.c.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.c.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.c.scale=function(f,e){e=typeof e==="number"?e:f;this.left*=f;this.width*=f;this.top*=e;this.height*=e;return this};var FO={};var P0w=aY(()=>{let f=!1;try{const e=Object.defineProperty({},"passive",{get(){f=!0}});g.Kw.addEventListener("test",null,e)}catch(e){}return f});var ejk=class{isVisible(){return PN(QX)===1}};var IlG=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)"),$Hw=class{constructor(f,e,B){this.C=f;this.G=e;this.J=B}},eW=class{constructor(f,e){this.url=f;this.C=!!e;this.depth=null}};var WX=class{constructor(){this.J="&";this.G={};this.V=0;this.C=[]}Dw(f,e,B){f=f+"//"+e+B;var n=B2G(this)-B.length;if(n<0)return"";this.C.sort((r,L)=>r-L); B=null;e="";for(let r=0;r=H.length){n-=H.length;f+=H;e=this.J;break}B=B==null?L:B}}}n="";B!=null&&(n=`${e}${"trn"}=${B}`);return f+n}};var CD=class{constructor(f,e){this.C=f;this.depth=e}},ruH=()=>{var f=BD();const e=Math.max(f.length-1,0);var B=nR(f);f=B.C;var n=B.G;const r=B.J,L=[];B=(t,H)=>t==null?H:t; r&&L.push(new CD([r.url,r.C?2:0],B(r.depth,1)));n&&n!=r&&L.push(new CD([n.url,2],0));f.url&&f!=r&&L.push(new CD([f.url,0],B(f.depth,e)));const d=g.xg(L,(t,H)=>L.slice(0,L.length-H)); !f.url||(r||n)&&f!=r||(n=/https?:\/\/[^\/]+/.exec(f.url)?.[0]??"")&&d.push([new CD([n,1],B(f.depth,e))]);d.push([]);return g.xg(d,t=>ne5(e,t))};var RIM=vD(f=>typeof f==="number"),iW=vD(f=>typeof f==="string"),Oc=vD(f=>f!=null&&typeof f==="object"&&typeof f.then==="function"),KxC=vD(f=>typeof f==="function"),Bng=vD(f=>!!f&&(typeof f==="object"||typeof f==="function"));var iw5={ib:"allow-forms",Pn:"allow-modals",QG:"allow-orientation-lock",sP:"allow-pointer-lock",yG:"allow-popups",ub:"allow-popups-to-escape-sandbox",ZS:"allow-presentation",Rb:"allow-same-origin",Hn:"allow-scripts",UP:"allow-top-navigation",Yg:"allow-top-navigation-by-user-activation"},dT0=aY(()=>fVM());var qa=f=>{const e="AR";if(f.AR&&f.hasOwnProperty(e))return f.AR;const B=new f;f.AR=B;f.hasOwnProperty(e);return B};var CHm=class{constructor(){this.G=new ejk;this.C=RY()?new faY:new im6}setInterval(f,e){return ZS.setInterval(f,e)}clearInterval(f){ZS.clearInterval(f)}setTimeout(f,e){return ZS.setTimeout(f,e)}clearTimeout(f){ZS.clearTimeout(f)}};var kLd=class{};var gf=!0,h8,z$;var jW={},F_=null;var m3=/[-_.]/g,veH={"-":"+",_:"/",".":"="},gP={};var hG=class{isEmpty(){return this.C==null}sizeBytes(){const f=Qh(this);return f?f.length:0}constructor(f,e){EN(e);this.C=f;if(f!=null&&f.length===0)throw Error("ByteString should be constructed with non-empty values");}},Na;var JG=void 0;var WD=G$("jas",!0),Gp=G$(),IW=G$(),nOM=G$(),YM0=G$(),EeY=G$(),lVk=G$(),sj=G$("m_m",!0),jx5=G$(),rU0=G$();[...Object.values({CH:1,o2:2,T9:4,Vo:8,MfC:16,oy:32,hN:64,rB:128,Oc:256,Epj:512,aW:1024,c5:2048,C9:4096,G9:8192})];var jx,LMk=[];LMk[WD]=7;jx=Object.freeze(LMk);var Xp={},x_={},yS=Object.freeze({}),Yi={},IU={};var Uj=vD(f=>f>=dP0&&f<=tF0),dP0=BigInt(Number.MIN_SAFE_INTEGER),tF0=BigInt(Number.MAX_SAFE_INTEGER);var e2=0,Bn=0,Fa;var Y6=typeof BigInt==="function"?BigInt.asIntN:void 0,aVM=typeof BigInt==="function"?BigInt.asUintN:void 0,ml=Number.isSafeInteger,Zx=Number.isFinite,uE=Math.trunc,Ked=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var OFd={};var fr=class{},HDm={fO:!0};var ex;var dj,t6;var Fe0=fu(0),df={};var vU=class{constructor(f,e,B){this.buffer=f;if(B&&!e)throw Error();this.C=e}};var kZG=class{constructor(f,e,B,n){this.G=null;this.U=!1;this.W=null;this.C=this.J=this.V=0;this.init(f,e,B,n)}init(f,e,B,{fM:n=!1,nE:r=!1}={}){this.fM=n;this.nE=r;f&&(f=bh(f,this.nE),this.G=f.buffer,this.U=f.C,this.W=null,this.V=e||0,this.J=B!==void 0?this.V+B:this.G.length,this.C=this.V)}free(){this.clear();wn.length<100&&wn.push(this)}clear(){this.G=null;this.U=!1;this.W=null;this.C=this.J=this.V=0;this.fM=!1}reset(){this.C=this.V}},wn=[];var mTd=class{constructor(f,e,B,n){if(wn.length){const r=wn.pop();r.init(f,e,B,n);f=r}else f=new kZG(f,e,B,n);this.C=f;this.V=this.C.C;this.G=this.J=-1;uh(this,n)}free(){this.C.clear();this.G=this.J=-1;jm.length<100&&jm.push(this)}reset(){this.C.reset();this.V=this.C.C;this.G=this.J=-1}},jm=[];var CtG=class{constructor(){if(Yi!==Yi)throw Error();}};var Dg=class{constructor(f,e){this.G=f>>>0;this.C=e>>>0}},T7,G7=class{constructor(f,e){this.G=f>>>0;this.C=e>>>0}},MS;var w46=class{constructor(){this.C=[]}length(){return this.C.length}end(){const f=this.C;this.C=[];return f}};var QxM=class{constructor(){this.J=[];this.G=0;this.C=new w46}};var LO=BX(),vOg=BX(),v4=BX(),bt=BX(),bDd=BX(),ZDM=BX(),Za=BX(),RjC=BX(),R$=BX(),KMk=BX(),qKk=BX();var bT=class{constructor(f,e,B){this.JI=Hr(f,e,B,2048)}toJSON(){return Lr(this)}VD(f){return JSON.stringify(Lr(this,f))}clone(){const f=this.JI,e=f[WD]|0;return bw(this,f,e)?Z3(this,f,!0):new this.constructor(vr(f,e,!1))}};bT.prototype[sj]=Xp;bT.prototype.toString=function(){return this.JI.toString()};var rp=class{constructor(f,e,B){this.NW=f;this.xq=e;f=m5(LO);this.C=!!f&&B===f||!1}},UTk=dp(function(f,e,B,n,r){if(f.G!==2)return!1;NS(f,x1(e,n,B),r);return!0},HX),N25=dp(function(f,e,B,n,r){if(f.G!==2)return!1; NS(f,x1(e,n,B),r);return!0},HX),cX=Symbol(),R1=Symbol(),zP=Symbol(),jv=Symbol(),a1=Symbol(),kY,CO;var zjl=fu(0),aa0=VK(function(f,e,B){if(f.G!==1)return!1;uT(e,B,cU(f.C));return!0},mD,R$),p4Y=VK(function(f,e,B,n){if(f.G!==1)return!1; J6(e,B,n,cU(f.C));return!0},mD,R$),KD=VK(function(f,e,B){if(dn)return f.G!==0?f=!1:(uT(e,B,RD(f.C,Hn)),f=!0),f; if(f.G!==0)return!1;uT(e,B,RD(f.C,t5));return!0},UO,Za),cUO=VK(function(f,e,B,n){if(dn)return f.G!==0?f=!1:(J6(e,B,n,RD(f.C,Hn)),f=!0),f; if(f.G!==0)return!1;J6(e,B,n,RD(f.C,t5));return!0},UO,Za),qP=VK(function(f,e,B){if(f.G!==0)return!1; uT(e,B,qS(f.C));return!0},Sv,bt),YKG=VK(function(f,e,B,n){if(f.G!==0)return!1; J6(e,B,n,qS(f.C));return!0},Sv,bt),AUg=VK(function(f,e,B){if(dn)return f.G!==1?f=!1:(uT(e,B,pt(f.C)),f=!0),f; if(f.G!==1)return!1;uT(e,B,aD(f.C));return!0},function(f,e,B){fO(f,B,g8(e))},RjC),j$0=lT(function(f,e,B){if(dn)return f.G!==1&&f.G!==2?f=!1:(e=h6(e,e[WD]|0,B),f.G==2?QN(f,pt,e):e.push(pt(f.C)),f=!0),f; if(f.G!==1&&f.G!==2)return!1;e=h6(e,e[WD]|0,B);f.G==2?QN(f,aD,e):e.push(aD(f.C));return!0},function(f,e,B){e=o1(g8,e,!1); if(e!=null)for(let n=0;n>>0);return!0},function(f,e,B){e=aW(e); e!=null&&e!=null&&(ID(f,B,0),X8(f.C,e))},bDd),AU=VK(function(f,e,B){if(f.G!==0)return!1; uT(e,B,qS(f.C));return!0},function(f,e,B){e=zd(e); e!=null&&(e=parseInt(e,10),ID(f,B,0),yN(f.C,e))},qKk);var mPg=new Map,UP5=class extends CtG{constructor(f,e){super();this.typeName=f;this.C=e;if(Yi!==Yi)throw Error();mPg.set(f,this)}};var hjw=class{constructor(f){var e=NnY;this.C=f;this.isRepeated=0;this.G=sl;this.defaultValue=void 0;this.J=e.messageId!=null?IU:void 0}register(){qo(this)}};var Ld=class extends bT{constructor(f){super(f)}};Ld.prototype.G=JR([0,VK(function(f,e,B){if(f.G!==1)return!1;f=cU(f.C);uT(e,B,f===0?void 0:f);return!0},mD,R$), VK(function(f,e,B){if(dn)return f.G!==0?e=!1:(f=RD(f.C,Hn),uT(e,B,f===zjl?void 0:f),e=!0),e;if(f.G!==0)return!1;f=RD(f.C,t5);uT(e,B,f===0?void 0:f);return!0},UO,Za), -2,VK(function(f,e,B){if(f.G!==0)return!1;f=qS(f.C);uT(e,B,f===0?void 0:f);return!0},Sv,bt)]);var gOd=class{constructor(f){this.J=f;this.C=-1;this.G=this.V=0}};var SKd=class{constructor(f,e){this.G=f;this.J=e;this.C=new gOd(f)}};var EOm=class{constructor(){this.C={}}jI(f){const e=this.C[f.key];if(f.valueType==="proto"){try{const B=JSON.parse(e);if(Array.isArray(B))return B}catch(B){}return f.defaultValue}return typeof e===typeof f.defaultValue?e:f.defaultValue}};var Q$g={D7:1,Wf:2,jc:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};var T26=class{constructor(){this.J=void 0;this.G=this.U=0;this.W=-1;this.ih=new MqM;XG(this.ih,"mv",D4Y).C=!0;XG(this.ih,"omid",rn);XG(this.ih,"epoh",rn).C=!0;XG(this.ih,"epph",rn).C=!0;XG(this.ih,"umt",rn).C=!0;XG(this.ih,"phel",rn).C=!0;XG(this.ih,"phell",rn).C=!0;XG(this.ih,"oseid",Q$g).C=!0;var f=this.ih;f.C.sloi||(f.C.sloi=new J3Y);f.C.sloi.C=!0;XG(this.ih,"mm",nD);XG(this.ih,"ovms",QEk).C=!0;XG(this.ih,"xdi",rn).C=!0;XG(this.ih,"amp",rn).C=!0;XG(this.ih,"prf",rn).C=!0;XG(this.ih,"gtx",rn).C= !0;XG(this.ih,"mvp_lv",rn).C=!0;XG(this.ih,"ssmol",rn).C=!0;XG(this.ih,"fmd",rn).C=!0;XG(this.ih,"gen204simple",rn);this.C=new SKd(RU(),this.ih);this.V=!1;this.flags=new EOm}CP(f){if(typeof f==="string"&&f.length!=0){var e=this.ih;if(e.G){f=f.split("&");for(let r=f.length-1;r>=0;r--){var B=f[r].split("="),n=decodeURIComponent(B[0]);B.length>1?(B=decodeURIComponent(B[1]),B=/^[0-9]+$/g.exec(B)?parseInt(B,10):B):B=1;(n=e.C[n])&&n.J(B)}}}}};var TnH=class{constructor(){let f="https:";ZS&&ZS.location&&ZS.location.protocol==="http:"&&(f="http:");this.G=f;this.C=.01}};var DPl=class{constructor(f,e){this.error=f;this.meta={};this.context=e.context;this.msg=e.message||"";this.id=e.id||"jserror"}};var jF=null;var JUM=class{constructor(f,e,B){this.label=f;this.type=e;this.value=B;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}};var PX=g.Kw.performance,MF0=!!(PX&&PX.mark&&PX.measure&&PX.clearMarks),I1=aY(()=>{var f;if(f=MF0){var e;f=window;if(jF===null){jF="";try{let B="";try{B=f.top.location.hash}catch(n){B=f.location.hash}B&&(jF=(e=B.match(/\bdeid=([\d,]+)/))?e[1]:"")}catch(B){}}e=jF;f=!!e.indexOf&&e.indexOf("1337")>=0}return f});var DTg=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),RI=/#|$/,MBk=/[?&]($|#)/;var GZ0=class{constructor(f=null){this.C=rg;this.Sm="jserror";this.rr=!0;this.B7=null;this.G=this.FM;this.mu=f}FM(f,e,B,n,r){r=r||this.Sm;let L;try{const v=new WX;var d=v;d.C.push(1);d.G[1]=LR("context",f);e.error&&e.meta&&e.id||(e=new aI(zD(e)));d=e;if(d.msg){e=v;var t=d.msg.substring(0,512);e.C.push(2);e.G[2]=LR("msg",t)}var H=d.meta||{};t=H;if(this.B7)try{this.B7(t)}catch(b){}if(n)try{n(t)}catch(b){}n=v;H=[H];n.C.push(3);n.G[3]=H;L=nR();if(L.G){H=v;var k=L.G.url||"";H.C.push(4);H.G[4]=LR("top", k)}var C={url:L.C.url||""};if(L.C.url){const b=g.fY(L.C.url);var w=iT(b[1],null,b[3],b[4])}else w="";k=v;C=[C,{url:w}];k.C.push(5);k.G[5]=C;sO(this.C,r,v,B)}catch(v){try{sO(this.C,r,{context:"ecmserr",rctx:f,msg:zD(v),url:L&&L.C.url},B)}catch(b){}}return this.rr}},aI=class extends DPl{constructor(f){super(Error(f),{message:f})}};var rg,cT,OK=new class{constructor(f,e){this.events=[];this.G=e||g.Kw;let B=null;e&&(e.google_js_reporting_queue=e.google_js_reporting_queue||[],this.events=e.google_js_reporting_queue,B=e.google_measure_js_timing);this.C=I1()||(B!=null?B:Math.random()2048||this.events.push(f)}}}(1,window),xPg=()=>{ZS&&typeof ZS.google_measure_js_timing!="undefined"&&(ZS.google_measure_js_timing||OK.disable())}; rg=new TnH;cT=new GZ0(OK);ZS&&ZS.document&&(ZS.document.readyState=="complete"?xPg():OK.C&&y_(ZS,"load",()=>{xPg()})); var Q2Y=f=>{cT.B7=e=>{g.MH(f,B=>{B(e)})}},v9=(f,e)=>pY(cT,f,e),qx=(f,e)=>Y0(f,e),s2k=(f,e)=>{cT.FM(538,f,.01,e)};var jI=Date.now(),oI=-1,AD=-1,hd,VX=-1,Oz=!1;var bM=class{constructor(f,e,B){var n=new YC(0,0,0,0);this.time=f;this.volume=null;this.J=e;this.C=n;this.G=B}equals(f,e=!1){return!!f&&(!e||this.volume==f.volume)&&this.J==f.J&&jA(this.C,f.C)&&!0}};var WM5=class{constructor(f,e,B,n,r,L,d,t){this.V=f;this.X=e;this.J=B;this.U=n;this.C=r;this.W=L;this.G=d;this.K=t}V3(){return this.X}equals(f,e=!1){return this.V.equals(f.V,e)&&this.X==f.X&&jA(this.J,f.J)&&jA(this.U,f.U)&&this.C==f.C&&this.W==f.W&&this.G==f.G&&this.K==f.K}};var s$g={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Sj={oZ:"start",Vq:"firstquartile",k9:"midpoint",Et:"thirdquartile",COMPLETE:"complete",ERROR:"error",gP:"metric",PAUSE:"pause",Iz:"resume",T$:"skip",Vs:"viewable_impression",O9:"mute",bq:"unmute",WZ:"fullscreen",vZ:"exitfullscreen",E9:"bufferstart",Ca:"bufferfinish",La:"fully_viewable_audible_half_duration_impression",DM:"measurable_impression",qZ:"abandon",J7:"engagedview",iA:"impression",G0:"creativeview",LOADED:"loaded", hO:"progress",CLOSE:"close",gO:"collapse",un:"overlay_resize",Z7:"overlay_unmeasurable_impression",Ry:"overlay_unviewable_impression",UZ:"overlay_viewable_immediate_impression",HW:"overlay_viewable_end_of_session_impression",bA:"custom_metric_viewable",NZ:"audio_audible",zr:"audio_measurable",xl:"audio_impression"},ke0="start firstquartile midpoint thirdquartile resume loaded".split(" "),Hi=["start","firstquartile","midpoint","thirdquartile"],zu0=["abandon"],gg={UNKNOWN:-1,oZ:0,Vq:1,k9:2,Et:3,COMPLETE:4, gP:5,PAUSE:6,Iz:7,T$:8,Vs:9,O9:10,bq:11,WZ:12,vZ:13,La:14,DM:15,qZ:16,J7:17,iA:18,G0:19,LOADED:20,bA:21,E9:22,Ca:23,xl:27,zr:28,NZ:29};var Wel={cn:"addEventListener",jE:"getMaxSize",tp:"getScreenSize",Nh:"getState",zP:"getVersion",PYI:"removeEventListener",rJ:"isViewable"};var rsk=()=>{const f=window.document;return f&&typeof f.elementFromPoint==="function"};var jj=(f,e)=>{e=Math.pow(10,e);return Math.floor(f*e)/e};var yuY=class{constructor(){this.J=!IY(ZS.top);this.isMobileDevice=ic()||fR();const f=BD();this.domain=f.length>0&&f[f.length-1]!=null&&f[f.length-1].url!=null?g.BT(f[f.length-1].url)||"":"";this.C=new YC(0,0,0,0);this.V=new g.uN(0,0);this.W=new g.uN(0,0);this.X=new YC(0,0,0,0);this.frameOffset=new g.OE(0,0);this.U=0;this.K=!1;this.G=!(!ZS||!lU(ZS).IP);this.update(ZS)}update(f){f&&f.document&&(this.X=FP(!1,f,this.isMobileDevice),this.C=FP(!0,f,this.isMobileDevice),Ez(this,f),SI(this,f))}};var X45=class{constructor(f){this.J=f;this.G=0;this.C=null}cancel(){RU().clearTimeout(this.C);this.C=null}schedule(){const f=RU(),e=xY().C.C;this.C=f.setTimeout(GP(e,qx(143,()=>{this.G++;this.J.sample()})),xT6())}};var o$=class{constructor(f,e,B="na"){this.J=f;this.xA=B;this.W=[];this.isInitialized=!1;this.V=new bM(-1,!0,this);this.C=this;this.A=e;this.WS=this.Cq=!1;this.Fl="uk";this.uY=!1;this.X=!0}cS(){return!1}initialize(){return this.isInitialized=!0}N(){return this.C.Fl}eI(){return this.C.WS}fail(f,e=!1){if(!this.WS||e)this.WS=!0,this.Fl=f,this.A=0,this.C!=this||JD(this)}getName(){return this.C.xA}i_(){return this.C.MC()}MC(){return{}}s_(){return this.C.A}Z9(){var f=ge();f.C=FP(!0,this.J,f.isMobileDevice)}BS(){SI(ge(), this.J)}kA(){return this.V.C}sample(){}isActive(){return this.C.X}Ed(f){const e=this.C;this.C=f.s_()>=this.A?f:this;e!==this.C?(this.X=this.C.X,JD(this)):this.X!==this.C.X&&(this.X=this.C.X,JD(this))}U(f){if(f.G===this.C){const e=!this.V.equals(f,this.Cq);this.V=f;e&&De(this)}}ZC(){return this.Cq}dispose(){this.uY=!0}HS(){return this.uY}};var yUO=class{constructor(f,e,B,n){this.element=f;this.C=new YC(0,0,0,0);this.J=null;this.A=new YC(0,0,0,0);this.G=e;this.ih=B;this.kA=n;this.Z9=!1;this.timestamp=-1;this.PS=new WM5(e.V,this.element,this.C,new YC(0,0,0,0),0,0,Date.now()-jI,0);this.K=void 0}observe(){return!0}unobserve(){}X(f){this.K=f}dispose(){if(!this.HS()){var f=this.G;g.d2(f.W,this);f.Cq&&this.ZC()&&GD(f);this.unobserve();this.Z9=!0}}HS(){return this.Z9}i_(){return this.G.i_()}s_(){return this.G.s_()}N(){return this.G.N()}eI(){return this.G.eI()}Ed(){}U(){this.W()}ZC(){return this.kA}};var VO=class{constructor(f){this.K=!1;this.C=f;this.X=()=>{}}s_(){return this.C.s_()}N(){return this.C.N()}eI(){return this.C.eI()}create(f,e,B){let n=null; this.C&&(n=this.V(f,e,B),Mf(this.C,n));return n}A(){return this.J()}J(){return!1}init(f){return this.C.initialize()?(Mf(this.C,this),this.X=f,!0):!1}Ed(f){f.s_()==0&&this.X(f.N(),this)}U(){}ZC(){return!1}dispose(){this.K=!0}HS(){return this.K}i_(){return{}}};var Pt5=class{constructor(f,e,B=0){this.J=B;this.G=f;this.C=e==null?"":e}};var iU=class{constructor(){this.J=0;this.C=[];this.G=!1}add(f,e,B){++this.J;f=new Pt5(f,e,B);this.C.push(new Pt5(f.G,f.C,f.J+this.J/4096));this.G=!0;return this}};var $TO=f=>{const e=f.G;f=f.C;return f===""?e:typeof f==="boolean"?f?e:"":Array.isArray(f)?f.length===0?e:`${e}=${f.join()}`:`${e}=${g.eB(["mtos","tos","p"],e)?f:encodeURIComponent(f)}`};var fwG=class{constructor(f){this.C=new iU;f!==void 0&&IVk(this.C,f);this.C.add("v","unreleased",-16)}toString(){let f="//pagead2.googlesyndication.com//pagead/gen_204";const e=yX(this.C);e.length>0&&(f+="?"+e);return f}};var HHO=f=>{const e=[],B=[];g.OM(f,(n,r)=>{if(!(r in Object.prototype)&&typeof n!="undefined")switch(Array.isArray(n)&&(n=n.join(",")),n=[r,"=",n].join(""),r){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":e.unshift(n);break;case "req":case "url":case "referrer":case "iframe_loc":B.push(n);break;default:e.push(n)}}); return e.concat(B)},fn=f=>{f=f.toString(); RU();ZO(f)};var iFC=class{constructor(){this.C=0}};g.$0.prototype.D2=!1;g.$0.prototype.HS=function(){return this.D2}; g.$0.prototype.dispose=function(){this.D2||(this.D2=!0,this.bY())}; g.$0.prototype[Symbol.dispose]=function(){this.dispose()}; g.$0.prototype.addOnDisposeCallback=function(f,e){this.D2?e!==void 0?f.call(e):f():(this.hR||(this.hR=[]),e&&(f=f.bind(e)),this.hR.push(f))}; g.$0.prototype.bY=function(){if(this.hR)for(;this.hR.length;)this.hR.shift()()};var Iag=[0,KD,OD0,-1];var lt=class{constructor(){this.G=this.J=this.V=this.C=0}update(f,e,B=!f){f&&(this.C+=e,this.G+=e,this.V+=e,this.J=Math.max(this.J,this.V));B&&(this.V=0)}};var $P6=[1,.75,.5,.3,0],ut=class{constructor(f=$P6){this.G=f;this.C=g.xg(this.G,()=>new lt)}update(f,e,B,n,r,L=!0){e=r?Math.min(f,e):e; for(r=0;r0&&e>=d;d=!(f>0&&f>=d)||B;this.C[r].update(L&&t,n,!L||d)}}};var iD5=class{constructor(){this.G=new ut;this.Lq=this.PS=0;this.Z9=new lt;this.A=this.X=-1;this.MC=1E3;this.kA=new ut([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.eI=this.Cq=-1}update(f,e,B,n){this.X=this.X!=-1?Math.min(this.X,e.R6):e.R6;this.A=Math.max(this.A,e.R6);this.Cq=this.Cq!=-1?Math.min(this.Cq,e.y5):e.y5;this.eI=Math.max(this.eI,e.y5);this.kA.update(e.y5,B.y5,e.C,f,n);this.PS+=f;e.R6===0&&(this.Lq+=f);this.G.update(e.R6,B.R6,e.C,f,n);B=n||B.ov!=e.ov?B.isVisible()&&e.isVisible():B.isVisible(); e=!e.isVisible()||e.C;this.Z9.update(B,f,e)}K$(){return this.Z9.J>=this.MC}};if(QX&&QX.URL){var fTw=QX.URL,Fs;a:{if(fTw){var em5=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{const f=em5.exec(decodeURIComponent(fTw));if(f){Fs=f[1]&&f[1].length>1?f[1].substring(1):"true";break a}}catch{}}Fs=""}cT.rr=!(Fs.length>0)}var Q8=(f,e,B,n)=>{B=Y0(n,B);y_(f,e,B,{capture:!1})};var Bvw=new YC(0,0,0,0);var nRw=new YC(0,0,0,0),rOm=class extends g.$0{constructor(f,e){super();this.position=nRw.clone();this.JQ=this.rE();this.Mg=-2;this.timeCreated=Date.now();this.Gr=-1;this.rl=e;this.Ne=null;this.N7=!1;this.M1=null;this.opacity=-1;this.requestSource=7;this.uP=!1;this.kM=()=>{}; this.Rp=()=>{}; this.Sj=new $4H;this.Sj.tj=f;this.Sj.C=f;this.Fh=!1;this.UX={IT:null,zq:null};this.YV=!0;this.It=null;this.Nr=this.JH=!1;xY().U++;this.qM=this.bO();this.Af=-1;this.Yu=null;this.hasCompleted=this.r5=!1;this.ih=new MqM;GsC(this.ih);HEG(this);this.requestSource==1?yg(this.ih,"od",1):yg(this.ih,"od",0)}bY(){if(this.Sj.C){if(this.UX.IT){var f=this.Sj.C;typeof f.removeEventListener==="function"&&f.removeEventListener("mouseover",this.UX.IT,XO());this.UX.IT=null}this.UX.zq&&(f=this.Sj.C,typeof f.removeEventListener=== "function"&&f.removeEventListener("mouseout",this.UX.zq,XO()),this.UX.zq=null)}this.It&&this.It.dispose();this.Yu&&this.Yu.dispose();delete this.JQ;delete this.kM;delete this.Rp;delete this.Sj.tj;delete this.Sj.C;delete this.UX;delete this.It;delete this.Yu;delete this.ih;super.bY()}dn(){return this.Yu?this.Yu.C:this.position}CP(f){xY().CP(f)}ZC(){return!1}rE(){return new iD5}iK(){return this.JQ}pJ(f){return Kn(this,f,1E4)}gi(f,e,B,n,r,L,d){this.Fh||(this.N7&&(f=this.gN(f,B,r,d),n=n&&this.qM.R6>= (this.ov()?.3:.5),this.hM(L,f,n),this.rl=e,f.R6>0&&-1===this.Af&&(this.Af=e),this.Gr==-1&&this.K$()&&(this.Gr=e),this.Mg==-2&&(this.Mg=Cn(this.dn())?f.R6:-1),this.qM=f),this.kM(this))}hM(f,e,B){this.iK().update(f,e,this.qM,B)}bO(){return new TXM}gN(f,e,B,n){B=this.bO();B.C=e;e=RU().G;e=PN(QX)===0?-1:e.isVisible()?0:1;B.G=e;B.R6=this.Gs(f);B.ov=this.ov();B.y5=n;return B}Gs(f){return this.opacity===0&&PB(this.ih,"opac")===1?0:f}ov(){return!1}e0(){return this.r5||this.JH}dw(){Date.now()}UC(){Date.now()}Vn(){return this.requestSource}Aa(){return 0}K$(){return this.JQ.K$()}ZX(){var f= this.N7;f=(this.hasCompleted||this.HS())&&!f;const e=xY().G!==2||this.uP;return this.Fh||e&&f?2:this.K$()?4:3}NF(){return 0}};g.q_.prototype.next=function(){return g.mM}; g.mM={done:!0,value:void 0};g.q_.prototype.w$=function(){return this};var Lo5=class{constructor(){this.V=this.C=this.J=this.G=this.W=0}};var d5k=class extends TXM{constructor(){super();this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}};var UK=(f,e,B=!0,n=()=>!0)=>r=>{const L=r[f]; if(Array.isArray(L)&&n(r))return tXC(L,e,B)},NP=(f,e)=>B=>e(B)?B[f]:void 0,H1d=f=>e=>{for(let B=0;BB?g.GO(f,(n,r)=>g.eB(e,r)):g.xg(e,(n,r,L)=>f.slice(r>0?L[r-1]+1:0,n+1).reduce((d,t)=>d+t,0));var hU=H1d([void 0,1,2,3,4,8,16]),gn=H1d([void 0,4,8,16]),kX5={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:NP("p0",gn),p1:NP("p1",gn),p2:NP("p2",gn),p3:NP("p3",gn),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:UK("mtos1",[0,2,4],!1,gn),mtos2:UK("mtos2",[0,2,4],!1,gn),mtos3:UK("mtos3",[0,2,4],!1,gn),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:NP("a0",gn),a1:NP("a1",gn),a2:NP("a2",gn),a3:NP("a3",gn),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:NP("c0",gn),c1:NP("c1",gn),c2:NP("c2",gn),c3:NP("c3",gn),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:NP("qmtos",hU),qnc:NP("qnc",hU),qmv:NP("qmv",hU),qnv:NP("qnv",hU), 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:NP("ss0",gn),ss1:NP("ss1",gn),ss2:NP("ss2",gn),ss3:NP("ss3",gn),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"},C6C=Object.assign({},kX5,{avid:qV("audio"),avas:"avas",vs:"vs"}),w0O={atos:"atos",avt:UK("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:((f,e)=>B=>B[f]===void 0&&e!==void 0?e:B[f])("ss",0), t:"t"};var vRk=class{constructor(){this.G=this.C=""}};var b1O=class{};var Z1G=class{constructor(){this.G={vs:[1,0],vw:[0,1],am:[2,2],a:[4,4],f:[8,8],bm:[16,16],b:[32,32],avw:[0,64],avs:[64,0],pv:[256,256],gdr:[0,512],p:[0,1024],r:[0,2048],m:[0,4096],um:[0,8192],ef:[0,16384],s:[0,32768],pmx:[0,16777216],mut:[33554432,33554432],umutb:[67108864,67108864],tvoff:[134217728,134217728]};this.C={};for(const f in this.G)this.G[f][1]>0&&(this.C[f]=0);this.J=0}};var SF=class{constructor(){this.C=this.G=0}getValue(){return this.G}update(f,e){f>=32||(this.C&1<=.5;hD(e.volume)&&(this.V=this.V!=-1?Math.min(this.V,e.volume):e.volume,this.U=Math.max(this.U,e.volume));L&&(this.cS+=f,this.N+=r?f:0);this.C.update(e.R6,B.R6,e.C,f,n,r); this.J.update(!0,f);this.W.update(r,f);this.Ed.update(B.fullscreen,f);this.qC.update(r&&!L,f);f=Math.floor(e.mediaTime/1E3);this.WS.update(f,e.isVisible());this.Fl.update(f,e.R6>=1);this.BS.update(f,aa(e))}}};var KoC=class{constructor(){this.W=!1}G(f){this.W||(this.C(f)?(f=mX(this.N,this.J,f),this.V|=f,f=f==0):f=!1,this.W=f)}};var EK=class extends KoC{constructor(f,e){super();this.J=f;this.N=e;this.V=0}C(){return!0}U(){return!1}getId(){const f=SB(Sj,e=>e==this.J); return gg[f].toString()}toString(){let f="";this.U()&&(f+="c");this.W&&(f+="s");this.V>0&&(f+=`:${this.V}`);return this.getId()+f}};var qbd=class extends EK{constructor(f,e){super(f,e);this.X=[]}G(f,e=null){e!=null&&this.X.push(e);super.G(f)}};var zm6=class{};var QO=class extends zm6{G(){return null}J(){return[]}};var TZ=class extends yUO{WS(){if(this.element){var f=this.element,e=this.G.C.J;try{try{var B=Uz(f.getBoundingClientRect())}catch(k){B=new YC(0,0,0,0)}const r=B.right-B.left,L=B.bottom-B.top,d=Jb(f,e),t=d.x,H=d.y;var n=new YC(Math.round(H),Math.round(t+r),Math.round(H+L),Math.round(t))}catch(r){n=Bvw.clone()}this.J=n;this.C=WT(this,this.J)}}BS(){this.A=this.G.V.C}MC(f){const e=PB(this.ih,"od")==1;return db5(f,this.A,this.element,e)}Fl(){this.timestamp=Date.now()-jI}W(){this.Fl();this.WS();if(this.element&& typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var f=this.element;var e=new g.uN(f.videoWidth,f.videoHeight);f=this.C;var B=Ab(f),n=f.getHeight(),r=e.width;e=e.height;r<=0||e<=0||B<=0||n<=0||(r/=e,e=B/n,f=f.clone(),r>e?(B/=r,n=(n-B)/2,n>0&&(n=f.top+n,f.top=Math.round(n),f.bottom=Math.round(n+B))):(n*=r,B=Math.round((B-n)/2),B>0&&(B=f.left+B,f.left=Math.round(B),f.right=Math.round(B+n))));this.C=f}this.BS();f=this.C;B=this.A;f=f.left<=B.right&&B.left<=f.right&& f.top<=B.bottom&&B.top<=f.bottom?new YC(Math.max(f.top,B.top),Math.min(f.right,B.right),Math.min(f.bottom,B.bottom),Math.max(f.left,B.left)):new YC(0,0,0,0);B=f.top>=f.bottom||f.left>=f.right?new YC(0,0,0,0):f;f=this.G.V;e=r=n=0;(this.C.bottom-this.C.top)*(this.C.right-this.C.left)>0&&(this.MC(B)?B=new YC(0,0,0,0):(n=ge().V,e=new YC(0,n.height,n.width,0),n=wO(B,this.K??this.C),r=wO(B,ge().C),e=wO(B,e)));B=B.top>=B.bottom||B.left>=B.right?new YC(0,0,0,0):Om(B,-this.C.left,-this.C.top);TD()||(r=n=0); this.PS=new WM5(f,this.element,this.C,B,n,r,this.timestamp,e)}getName(){return this.G.getName()}};var aTg=new YC(0,0,0,0),p0O=class extends TZ{constructor(f,e,B){super(null,f,e,B);this.cS=f.isActive();this.Cq=0}observe(){this.V();return!0}U(){super.W()}Fl(){}WS(){}W(){this.V();super.W()}Ed(f){f=f.isActive();f!==this.cS&&(f?this.V():(ge().C=new YC(0,0,0,0),this.C=new YC(0,0,0,0),this.A=new YC(0,0,0,0),this.timestamp=-1));this.cS=f}};var cs6={firstquartile:0,midpoint:1,thirdquartile:2,complete:3},cOk=class extends rOm{constructor(f,e,B,n=new QO){super(f,e);this.No=B;this.Rh=0;this.CB={};this.Zc=new Z1G;this.KS={};this.tC="";this.Fl=null;this.IA=!1;this.C=[];this.Dx=n.G();this.U=n.J();this.V=null;this.J=-1;this.uY=this.Ed=void 0;this.Cq=this.A=0;this.WS=-1;this.kA=this.MC=!1;this.eI=this.N=this.G=this.gk=this.xA=0;new ut;this.PS=this.Z9=0;this.BS=-1;this.c9=0;this.K=g.zt;this.cS=[this.rE()];this.G6=2;this.Hb={};this.Hb.pause="p"; this.Hb.resume="r";this.Hb.skip="s";this.Hb.mute="m";this.Hb.unmute="um";this.Hb.exitfullscreen="ef";this.W=null;this.qC=this.tL=!1;this.Ch=Math.floor(Date.now()/1E3-1704067200);this.Lq=0}ZC(){return!0}tb(){return this.c9==2}pJ(f){return Kn(this,f,Math.max(1E4,this.J/3))}gi(f,e,B,n,r,L,d){const t=this.K(this)||{};g.sM(t,r);this.J=t.duration||this.J;this.Ed=t.isVpaid||this.Ed;this.uY=t.isYouTube||this.uY;RU();this.qC=!1;r=Ruw(this,e);uC(this)===1&&(L=r);super.gi(f,e,B,n,t,L,d);this.Dx&&this.Dx.W&& g.MH(this.U,H=>{H.G(this)})}hM(f,e,B){super.hM(f,e,B); Ff(this).update(f,e,this.qM,B);this.kA=aa(this.qM)&&aa(e);this.WS==-1&&this.MC&&(this.WS=this.iK().J.C);this.Zc.J=0;f=this.K$();e.isVisible()&&c9(this.Zc,"vs");f&&c9(this.Zc,"vw");hD(e.volume)&&c9(this.Zc,"am");aa(e)?c9(this.Zc,"a"):c9(this.Zc,"mut");this.Nr&&c9(this.Zc,"f");e.G!=-1&&(c9(this.Zc,"bm"),e.G==1&&(c9(this.Zc,"b"),aa(e)&&c9(this.Zc,"umutb")));aa(e)&&e.isVisible()&&c9(this.Zc,"avs");this.kA&&f&&c9(this.Zc,"avw");e.R6>0&&c9(this.Zc,"pv");mr(this,this.iK().J.C,!0)&&c9(this.Zc,"gdr");dO(this.iK().G, 1)>=2E3&&c9(this.Zc,"pmx");this.qC&&c9(this.Zc,"tvoff")}rE(){return new RmG}iK(){return this.JQ}bO(){return new d5k}gN(f,e,B,n=-1){f=super.gN(f,e,B,n);f.fullscreen=this.Nr;f.paused=this.tb();f.volume=B.volume;hD(f.volume)||(this.xA++,e=this.qM,hD(e.volume)&&(f.volume=e.volume));B=B.currentTime;f.mediaTime=B!==void 0&&B>=0?B:-1;return f}Gs(f){return ge(),this.Nr?1:super.Gs(f)}Aa(){return 1}getDuration(){return this.J}ZX(){return this.Fh?2:UZ(this)?5:this.K$()?4:3}NF(){return this.tL?this.iK().W.J>= 2E3?4:3:2}X(f){this.Yu&&this.Yu.X(f)}};var Ybg=g.u0(),eol=class{constructor(){this.C={};const f=$2();Tm(this,f,document);const e=VU5();try{if("1"==e){for(let B=f.parent;B!=f.top;B=B.parent)Tm(this,B,B.document);Tm(this,f.top,f.top.document)}}catch(B){}}};var AOM=class{constructor(){this.C=[];this.G=[]}reset(){this.C=[];this.G=[]}},M_=qa(AOM);var ew=class{constructor(){this.C=this.G=null}};var n2k=class extends VO{constructor(f){f=Ub5(f);super(f.length?f[f.length-1]:new o$(ZS,0));this.W=f;this.G=null}getName(){return(this.G?this.G:this.C).getName()}i_(){return(this.G?this.G:this.C).i_()}s_(){return(this.G?this.G:this.C).s_()}init(f){let e=!1;g.MH(this.W,B=>{B.initialize()&&(e=!0)}); e&&(this.X=f,Mf(this.C,this));return e}dispose(){g.MH(this.W,f=>{f.dispose()}); super.dispose()}A(){return yG(this.W,f=>f.cS())}J(){return yG(this.W,f=>f.cS())}V(f,e,B){return new TZ(f,this.C,e,B)}U(f){this.G=f.G}};var N05={threshold:[0,.3,.5,.75,1]},jfk=class extends TZ{constructor(f,e,B,n){super(f,e,B,n);this.uY=this.Lq=this.Cq=this.cS=this.V=null}observe(){this.uY||(this.uY=Date.now()-jI);if(v9(298,()=>huk(this)))return!0; this.G.fail("msf");return!1}unobserve(){if(this.V&&this.element)try{this.V.unobserve(this.element),this.cS?(this.cS.unobserve(this.element),this.cS=null):this.Cq&&(this.Cq.disconnect(),this.Cq=null)}catch(f){}}W(){const f=Xf(this);f.length>0&&sZ(this,f);super.W()}WS(){}MC(){return!1}BS(){}i_(){return Object.assign(this.G.i_(),{niot_obs:this.uY,niot_cbk:this.Lq})}getName(){return"nio"}};var O1=class extends VO{constructor(f=ZS){super(new o$(f,2))}getName(){return"nio"}J(){return!ge().G&&this.C.C.J.IntersectionObserver!=null}V(f,e,B){return new jfk(f,this.C,e,B)}};var fm0=class extends o${constructor(){const f=y8();super(ZS.top,f,"geo")}kA(){return ge().C}cS(){const f=y8();this.A!==f&&(this.C!=this&&f>this.C.A&&(this.C=this,JD(this)),this.A=f);return f==2}};var Bs=class{};var O1Y=class{constructor(){this.done=!1;this.C={Hf:0,ME:0,t6A:0,Kn:0,xb:-1,bJ:0,GI:0,eB:0,ou:0};this.V=null;this.W=!1;this.J=null;this.U=0;this.G=new X45(this)}sample(){Ia(this,Gm(),!1)}},iC=qa(O1Y);var dg=null,uM="",lM=!1;var oRw=()=>"av.default_js".includes("ima_html5_sdk")?{nV:"ima",Ff:null}:"av.default_js".includes("ima_native_sdk")?{nV:"nima",Ff:null}:"av.default_js".includes("admob-native-video-javascript")?{nV:"an",Ff:null}:"youtube.player.web_20260208_10_RC00".includes("cast_js_sdk")?{nV:"cast",Ff:tV()}:"youtube.player.web_20260208_10_RC00".includes("youtube.player.web")?{nV:"yw",Ff:tV()}:"youtube.player.web_20260208_10_RC00".includes("outstream_web_client")?{nV:"out",Ff:tV()}:"youtube.player.web_20260208_10_RC00".includes("drx_rewarded_web")? {nV:"r",Ff:tV()}:"youtube.player.web_20260208_10_RC00".includes("gam_native_web_video")?{nV:"n",Ff:tV()}:"youtube.player.web_20260208_10_RC00".includes("admob_interstitial_video")?{nV:"int",Ff:tV()}:{nV:"j",Ff:null},hV=oRw().nV,pd=oRw().Ff;var DD=(f,e)=>{const B={sv:"968"};pd!==null&&(B.v=pd);B.cb=hV;B.nas=M_.C.length;B.msg=f;e!==void 0&&(f=Mx(e))&&(B.e=gg[f]);return B},Mx=f=>{const e=$e(f,"custom_metric_viewable")?"custom_metric_viewable":f.toLowerCase(); return SB(Sj,B=>B==e)};var JsG={gD:"visible",CX:"audible",G6A:"time",bh9:"timetype"},Hs={visible:f=>/^(100|[0-9]{1,2})$/.test(f), audible:f=>f=="0"||f=="1", timetype:f=>f=="mtos"||f=="tos", time:f=>/^(100|[0-9]{1,2})%$/.test(f)||/^([0-9])+ms$/.test(f)},Iw0=class{constructor(){this.C=void 0; this.G=!1;this.J=0;this.V=-1;this.W="tos"}setTime(f,e,B="tos"){e=="ms"?(this.J=f,this.V=-1):(this.J=-1,this.V=f);this.W=B;return this}};var $b5=class extends EK{constructor(f,e,B,n){super(e,n);this.X=f;this.K=B}getId(){return this.X}U(){return!0}C(f){const e=f.iK(),B=f.getDuration();return yG(this.K,n=>{if(n.C!=void 0)var r=Gcd(n,e);else b:{switch(n.W){case "mtos":r=n.G?e.W.J:e.J.C;break b;case "tos":r=n.G?e.W.C:e.J.C;break b}r=0}r==0?n=!1:(n=n.J!=-1?n.J:B!==void 0&&B>0?n.V*B:-1,n=n!=-1&&r>=n);return n})}};var VXg=class extends b1O{C(f){const e=new vRk;e.C=pn(f,kX5);e.G=pn(f,w0O);return e}};var lTG=class extends EK{constructor(f){super("fully_viewable_audible_half_duration_impression",f)}C(f){return UZ(f)}};var uM5=class extends zm6{constructor(f){super();this.C=f}};var Fo0=class extends EK{constructor(f){super("viewable_impression",f)}C(f){return f.iK().K$()}};var m5G=class extends qbd{constructor(f){super("measurable_impression",f)}C(f){const e=g.eB(this.X,PB(xY().ih,"ovms"));return!f.Fh&&(f.c9!=0||e)}};var U55=class extends uM5{G(){return new m5G(this.C)}J(){return[new Fo0(this.C),new lTG(this.C)]}};var Nvl=class extends p0O{V(){const f=g.zO("ima.admob.getViewability"),e=PB(this.ih,"queryid");typeof f==="function"&&e&&f(e)}getName(){return"gsv"}};var erl=class extends VO{constructor(){super(new o$(ZS,2))}getName(){return"gsv"}J(){const f=ge();xY();return f.G&&!1}V(f,e,B){return new Nvl(this.C,e,B)}};var hm5=class extends p0O{V(){const f=g.zO("ima.bridge.getNativeViewability"),e=PB(this.ih,"queryid");typeof f==="function"&&e&&f(e,B=>{g.TL(B)&&this.Cq++;const n=B.opt_nativeViewVisibleBounds||{},r=B.opt_nativeViewHidden;this.C=Nf(B.opt_nativeViewBounds||{});const L=this.G.V;L.C=r?aTg.clone():Nf(n);this.timestamp=B.opt_nativeTime||-1;ge().C=L.C;B=B.opt_nativeVolume;B!==void 0&&(L.volume=B)})}getName(){return"nis"}};var Brm=class extends VO{constructor(){super(new o$(ZS,2))}getName(){return"nis"}J(){const f=ge();xY();return f.G&&!1}V(f,e,B){return new hm5(this.C,e,B)}};var kx=class extends o${constructor(){super(ZS,2,"mraid");this.qC=0;this.PS=this.Lq=!1;this.K=null;this.G=lU(this.J);this.V.C=new YC(0,0,0,0);this.tL=!1}cS(){return this.G.IP!=null}MC(){const f={};this.qC&&(f.mraid=this.qC);this.Lq&&(f.mlc=1);f.mtop=this.G.jW;this.K&&(f.mse=this.K);this.tL&&(f.msc=1);f.mcp=this.G.compatibility;return f}initialize(){if(this.isInitialized)return!this.eI();this.isInitialized=!0;if(this.G.compatibility===2)return this.K="ng",this.fail("w"),!1;if(this.G.compatibility=== 1)return this.K="mm",this.fail("w"),!1;ge().K=!0;this.J.document.readyState&&this.J.document.readyState=="complete"?Kd(this):Q8(this.J,"load",()=>{RU().setTimeout(qx(292,()=>Kd(this)),100)},292); return!0}Z9(){const f=ge(),e=an(this,"getMaxSize");f.C=new YC(0,e.width,e.height,0)}BS(){ge().V=an(this,"getScreenSize")}dispose(){zC(this);super.dispose()}};var gRO=new class{constructor(f,e=!1){this.key=f;this.defaultValue=e;this.valueType="boolean"}}("45378663");var Sbl=class{constructor(){this.isInitialized=!1;this.C=this.G=null;this.kA={start:this.Mk,firstquartile:this.G6,midpoint:this.Q3,thirdquartile:this.mS,complete:this.xA,error:this.IA,pause:this.Lq,resume:this.tL,skip:this.hE,viewable_impression:this.J,mute:this.V,unmute:this.V,fullscreen:this.Yp,exitfullscreen:this.Ch,fully_viewable_audible_half_duration_impression:this.J,measurable_impression:this.J,abandon:this.Lq,engagedview:this.J,impression:this.J,creativeview:this.J,progress:this.V,custom_metric_viewable:this.J, bufferstart:this.Lq,bufferfinish:this.tL,audio_measurable:this.J,audio_audible:this.J};this.lC={overlay_resize:this.uC,abandon:this.WS,close:this.WS,collapse:this.WS,overlay_unmeasurable_impression:f=>EZ(f,"overlay_unmeasurable_impression",TD()), overlay_viewable_immediate_impression:f=>EZ(f,"overlay_viewable_immediate_impression",TD()), overlay_unviewable_impression:f=>EZ(f,"overlay_unviewable_impression",TD()), overlay_viewable_end_of_session_impression:f=>EZ(f,"overlay_viewable_end_of_session_impression",TD())}; xY().G=3;ys0(this);this.W=null}K(f){bC(f,!1);uLg(f)}N(){}A(f,e,B,n){f=new cOk(f,B?e:-1,this.cS(),this.Fl());f.tC=n;qk6(f.ih);yg(f.ih,"queryid",f.tC);f.CP("");wEM(f,(...r)=>this.MC(...r),(...r)=>PPl(this,...r)); (n=qa(ew).C)&&Zr(f,n);this.W&&(f.X(this.W),this.W=null);f.Sj.tj&&qa(Bs);return f}Ed(f){switch(f.s_()){case 0:if(f=qa(ew).C)f=f.C,g.d2(f.W,this),f.Cq&&this.ZC()&&GD(f);Vy();break;case 2:fd()}}U(){}ZC(){return!1}Mk(f){var e=f.K(f);e&&(e=e.volume,f.tL=hD(e)&&e>0);N_(f,0);return EZ(f,"start",TD())}V(f,e,B){Ia(iC,[f],!TD());return this.J(f,e,B)}J(f,e,B){return EZ(f,B,TD())}G6(f){return Nx(f,"firstquartile",1)}Q3(f){f.MC=!0;return Nx(f,"midpoint",2)}mS(f){return Nx(f,"thirdquartile",3)}xA(f){const e=Nx(f, "complete",4);lC(f);return e}IA(f){f.c9=3;return EZ(f,"error",TD())}tL(f,e,B){e=TD();if(f.tb()&&!e){var n=f.iK(),r=Date.now()-jI;n.K=r}Ia(iC,[f],!e);f.tb()&&(f.c9=1);return EZ(f,B,e)}hE(f,e){e=this.V(f,e||{},"skip");lC(f);return e}Yp(f,e){bC(f,!0);return this.V(f,e||{},"fullscreen")}Ch(f,e){bC(f,!1);return this.V(f,e||{},"exitfullscreen")}Lq(f,e,B){e=f.iK();var n=Date.now()-jI;e.uY=Yb(e,n,f.c9!=1);Ia(iC,[f],!TD());f.c9==1&&(f.c9=2);return EZ(f,B,TD())}uC(f){Ia(iC,[f],!TD());return f.G()}WS(f){Ia(iC, [f],!TD());this.qC(f);lC(f);return f.G()}MC(){}Z9(){}qC(){}BS(){}eI(){}Fl(){this.C||(this.C=this.eI());return this.C==null?new QO:new U55(this.C)}cS(){return new VXg}};var ER5=class extends EK{constructor(f){super("audio_audible",f)}C(f){return f.NF()==4}};var Qfl=class extends qbd{constructor(f){super("audio_measurable",f)}C(f){f=f.NF();return f==3||f==4}};var Tv0=class extends uM5{G(){return new Qfl(this.C)}J(){return[new ER5(this.C)]}};var D5C=class extends b1O{C(f){f&&(f.e===28&&(f=Object.assign({},f,{avas:3})),f.vs===4||f.vs===5)&&(f=Object.assign({},f,{vs:3}));const e=new vRk;e.C=pn(f,C6C);e.G=pn(f,w0O);return e}};var JOk=class{constructor(f){this.C=f}G(){return g.zO(this.C)}};var Qy=class extends Sbl{constructor(){super();this.uY=null;this.PS=!1;this.Cq="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}N(f,e){let B;const n=qa(ew);if(n.C!=null)switch(n.C.getName()){case "nis":B=CN0(this,f,e);break;case "gsv":B=whC(this,f,e);break;case "exc":B=v2d(this,f)}B||(e.opt_overlayAdElement?B=void 0:e.opt_adElement&&(B=doO(this,f,e.opt_adElement,e.opt_osdId)));B&&B.Aa()==1&&(B.K==g.zt&&(B.K=r=>this.BS(r)),bHY(this,B,e)); return B}BS(f){f.G=0;f.eI=0;let e;if(f.V=="h"||f.V=="n"){xY();f.Fl&&(xY(),Fg(this)!="h"&&Fg(this));var B=g.zO("ima.common.getVideoMetadata");if(typeof B==="function")try{e=B(f.tC)}catch(n){f.G|=4}else f.G|=2}else if(f.V=="b")if(B=g.zO("ytads.bulleit.getVideoMetadata"),typeof B==="function")try{e=B(f.tC)}catch(n){f.G|=4}else f.G|=2;else if(f.V=="ml")if(B=g.zO("ima.common.getVideoMetadata"),typeof B==="function")try{e=B(f.tC)}catch(n){f.G|=4}else f.G|=2;else f.G|=1;f.G||(e===void 0?f.G|=8:e===null? f.G|=16:g.TL(e)?f.G|=32:e.errorCode!=null&&(f.eI=e.errorCode,f.G|=64));e==null&&(e={});B=e;f.N=0;for(const n in s$g)B[n]==null&&(f.N|=s$g[n]);Yx(B,"currentTime");Yx(B,"duration");hD(e.volume)&&hD()&&(e.volume*=NaN);return e}eI(){xY();Fg(this)!="h"&&Fg(this);const f=ZHO(this);return f!=null?new JOk(f):null}Z9(f){!f.C&&f.Fh&&U1(this,f,"overlay_unmeasurable_impression")&&(f.C=!0)}qC(f){f.YV&&(f.K$()?U1(this,f,"overlay_viewable_end_of_session_impression"):U1(this,f,"overlay_unviewable_impression"),f.YV= !1)}MC(){}A(f,e,B,n){if(xY().flags.jI(gRO)){var r=PB(xY().ih,"mm");(r={[nD.jH]:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",[nD.VIDEO]:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}[r])&&kP(this,r);this.Cq==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&cT.FM(1044,Error(),void 0,void 0)}f=super.A(f,e,B,n);this.PS&&(e=this.uY,f.W==null&&(f.W=new Lo5),e.C[f.tC]=f.W,f.W.W=Ybg);return f}K(f){f&&f.Aa()==1&&this.PS&&delete this.uY.C[f.tC];return super.K(f)}Fl(){this.C||(this.C=this.eI());return this.C==null?new QO:this.Cq==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"? new Tv0(this.C):new U55(this.C)}cS(){return this.Cq==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new D5C:new VXg}X(f,e,B,n,r){e=new YC(B,e+n,B+r,e);(f=Dr(M_,f))?f.X(e):this.W=e}},MX5=Y0(193,TC,void 0,cs);g.qH("Goog_AdSense_Lidar_sendVastEvent",MX5);var GXC;GXC=Y0(194,function(f,e={}){f=E1(qa(Qy),f,e);return Sw(f)}); g.qH("Goog_AdSense_Lidar_getViewability",GXC);var x56=Y0(195,function(){return KR()}); g.qH("Goog_AdSense_Lidar_getUrlSignalsArray",x56);var Wom;Wom=Y0(196,function(){return JSON.stringify(KR())}); g.qH("Goog_AdSense_Lidar_getUrlSignalsList",Wom);var dn5=class{constructor({url:f,Y3A:e}){this.G=f;this.V=e;this.J=(new Date).getTime()-17040672E5;this.C={};const B=/[?&]([^&=]+)=([^&]*)/g;for(;e=B.exec(f);)this.C[e[1]]=e[2]}};var RK=class extends Error{constructor(f,e,B=Error()){super();this.code=f;e+=":";B instanceof Error?(this.message=e+B.message,this.stack=B.stack||""):(this.message=e+String(B),this.stack="");Object.setPrototypeOf(this,new.target.prototype)}};var zrm=class extends g.$0{constructor(f){super();this.wpc=f}nm(){return this.wpc.f()}W2(f){this.wpc.c(f)}J(f){return this.wpc.m(Z1(f))}Rn(f){return this.wpc.mws(Z1(f))}},vi=class extends g.$0{constructor(f){super();this.eU=f;this.J="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.G=void 0;this.kW=this.eU.p;this.V=this.o0.bind(this);this.addOnDisposeCallback(()=>void qE0(this))}snapshot(f){return this.eU.s({...(f.KV&&{c:f.KV}), ...(f.Ep&&{s:f.Ep}),...(f.cO!==void 0&&{p:f.cO})})}o0(f){this.eU.e(f)}G2(){return this.eU.l()}};var sfg=class extends g.$0{constructor(){super(...arguments);this.Ed=1}share(){if(this.HS())throw Error("E:AD");this.Ed++;return this}dispose(){--this.Ed||super.dispose()}};var X0w=class{constructor(f){this.C=f;f$(f,"/client_streamz/bg/frs",g.pg("mk"))}Lj(f,e){this.C.Lj("/client_streamz/bg/frs",f,e)}},yO5=class{constructor(f){this.C=f;f$(f,"/client_streamz/bg/wrl",g.pg("mn"),aK("ac"),aK("sc"),g.pg("rk"),g.pg("mk"))}Lj(f,e,B,n,r,L){this.C.Lj("/client_streamz/bg/wrl",f,e,B,n,r,L)}},P65=class{constructor(f){this.G=f;g.Bp(f,"/client_streamz/bg/ec",g.pg("en"),g.pg("mk"))}C(f,e){g.r5(this.G,"/client_streamz/bg/ec",f,e)}},ITw=class{constructor(f){this.C=f;f$(f,"/client_streamz/bg/el", g.pg("en"),g.pg("mk"))}Lj(f,e,B){this.C.Lj("/client_streamz/bg/el",f,e,B)}},$56=class{constructor(f){this.G=f;g.Bp(f,"/client_streamz/bg/cec",aK("ec"),g.pg("mk"))}C(f,e){g.r5(this.G,"/client_streamz/bg/cec",f,e)}},i1Y=class{constructor(f){this.G=f;g.Bp(f,"/client_streamz/bg/po/csc",aK("cs"),g.pg("mk"))}C(f,e){g.r5(this.G,"/client_streamz/bg/po/csc",f,e)}},f$6=class{constructor(f){this.G=f;g.Bp(f,"/client_streamz/bg/po/ctav",g.pg("av"),g.pg("mk"))}C(f,e){g.r5(this.G,"/client_streamz/bg/po/ctav",f, e)}},e36=class{constructor(f){this.G=f;g.Bp(f,"/client_streamz/bg/po/cwsc",g.pg("su"),g.pg("mk"))}C(f,e){g.r5(this.G,"/client_streamz/bg/po/cwsc",f,e)}};var nCk=class extends bT{constructor(f){super(f)}};var oK=class extends bT{constructor(f){super(f)}},V4=[1,2,3];var A4=class extends bT{constructor(f){super(f)}},js=[1,2,3];var Oy=class extends bT{constructor(f){super(f)}};var BaH=class extends bT{constructor(f){super(f)}};var nEk=class extends bT{constructor(f){super(f)}},r95=[1,2,3];var ci=class extends bT{constructor(f){super(f)}p$(){var f=lw(this,3,x6,3,!0);yh(f);return f[void 0]}};ci.prototype.G=JR([0,zZ,[0,r95,pD,[0,zZ,-1,oO0],pD,[0,zZ,-1,qP,oO0],pD,[0,zZ]],la5,a$,[0,a$,[0,V4,us5,YKG,VF5],[0,js,cUO,p4Y,pD,[0,a$,[0,aa0,KD]]]],AUg,j$0]);var LNd=class extends bT{constructor(f){super(f)}};g.c=Uy.prototype;g.c.isEnabled=function(){if(!g.Kw.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{EF:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.c.set=function(f,e,B){let n;var r=!1;let L;if(typeof B==="object"){L=B.sameSite;r=B.secure||!1;n=B.domain||void 0;var d=B.path||void 0;var t=B.EF}if(/[;=\s]/.test(f))throw Error('Invalid cookie name "'+f+'"');if(/[;\r\n]/.test(e))throw Error('Invalid cookie value "'+e+'"');t===void 0&&(t=-1);B=n?";domain="+n:"";d=d?";path="+d:"";r=r?";secure":"";t=t<0?"":t==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+t*1E3)).toUTCString();this.C.cookie=f+"="+e+B+d+t+r+(L!=null? ";samesite="+L:"")}; g.c.get=function(f,e){const B=f+"=",n=(this.C.cookie||"").split(";");for(let r=0,L;r=0;e--)this.remove(f[e])}; var $D=new Uy(typeof document=="undefined"?null:document);var dh5=class{async compress(f){var e=new CompressionStream("gzip");const B=(new Response(e.readable)).arrayBuffer();e=e.writable.getWriter();await e.write((new TextEncoder).encode(f));await e.close();return new Uint8Array(await B)}isSupported(f){return f<1024?!1:typeof CompressionStream!=="undefined"}};var Da=class extends bT{constructor(f){super(f)}};var tpO=class{constructor(f,e){this.intervalMs=f;this.callback=e;this.enabled=!1;this.C=()=>g.u0(); this.G=this.C()}setInterval(f){this.intervalMs=f;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}start(){this.enabled=!0;this.timer||(this.timer=setTimeout(()=>{this.tick()},this.intervalMs),this.G=this.C())}stop(){this.enabled=!1; this.timer&&(clearTimeout(this.timer),this.timer=void 0)}tick(){if(this.enabled){const f=Math.max(this.C()-this.G,0);f{this.tick()},this.intervalMs-f):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0}};var HZm=class extends bT{constructor(f){super(f)}};var k36=class extends bT{constructor(f){super(f)}};g.JU=class extends bT{constructor(f){super(f)}VR(){return Lt(this,1)}};g.JU.prototype.gL=eC(1);var Q4=class extends bT{constructor(f){super(f)}};var xP=class extends bT{constructor(f){super(f)}},uld=Mn(xP);var sy=class extends bT{constructor(f){super(f)}};var TW=["platform","platformVersion","architecture","model","uaFullVersion"],Ey=new xP,D1=null;var MD=class extends bT{constructor(f){super(f)}};var C$k=class extends bT{constructor(f){super(f)}};var wq0=class extends bT{constructor(f){super(f,4)}};var MP=class extends bT{constructor(f){super(f,36)}Y(){const f=this.JI;return Wr(f,f[WD]|0,C$k,7)!==void 0}nC(){return sl(this,Da,16)}};var vEm=class extends bT{constructor(f){super(f,19)}Fy(f){return wf(this,2,f)}};var bZk=class{constructor(f,e=!1){this.MN=e;this.uach=this.locale=null;this.G=0;this.isFinal=!1;this.C=new vEm;Number.isInteger(f)&&this.C.Fy(f);e||(this.locale=document.documentElement.getAttribute("lang"));Wi(this,new MD)}Fy(f){this.C.Fy(f);return this}build(f,e=0,B=0,n=null,r=0,L=0){if(!this.MN){var d=GW(this);var t=new g.JU;t=wf(t,1,this.G);t=Y1(t,2,bE(this.isFinal));B=Y1(t,3,qZ(B>0?B:void 0));r=Y1(B,4,qZ(r>0?r:void 0));L=Y1(r,5,qZ(L>0?L:void 0));r=L.JI;B=r[WD]|0;L=sN(L,B)?L:bw(L,r,B)?Z3(L,r): new L.constructor(vr(r,B,!0));$1(d,g.JU,10,L)}d=this.C.clone();L=Date.now().toString();d=Y1(d,4,lE(L));f=ft(d,MP,3,f.slice());n&&(d=new HZm,n=Y1(d,13,qZ(n)),d=new k36,n=$1(d,HZm,2,n),d=new wq0,n=$1(d,k36,1,n),n=wf(n,2,9),$1(f,wq0,18,n));e&&HU(f,14,e);return f}};g.Xj.prototype.G=0;g.Xj.prototype.reset=function(){this.C=this.J=this.V;this.G=0}; g.Xj.prototype.getValue=function(){return this.J};var NnY=class extends bT{constructor(f){super(f,8)}},ZZ6=Mn(NnY);var GZ;GZ=new hjw(class extends bT{constructor(f){super(f)}});var R3O=class extends g.$0{constructor(f){super();this.componentId="";this.C=[];this.PS="";this.pageId=null;this.Lq=this.Cq=-1;this.X=this.experimentIds=null;this.Ed=this.A=this.U=this.V=0;this.uY=1;this.timeoutMillis=0;this.cS=!1;this.logSource=f.logSource;this.BH=f.BH||(()=>{}); this.J=new bZk(f.logSource,f.MN);this.network=f.network||null;this.hW=f.hW||null;this.K=f.nu||null;this.sessionIndex=f.sessionIndex||null;this.aD=f.aD||!1;this.logger=null;this.withCredentials=!f.UQ;this.MN=f.MN||!1;this.N=!this.MN&&!!$2()&&!!$2().navigator&&$2().navigator.sendBeacon!==void 0;this.WS=typeof URLSearchParams!=="undefined"&&!!(new URL(Pi())).searchParams&&!!(new URL(Pi())).searchParams.set;const e=J4(new MD);Wi(this.J,e);this.W=new g.Xj(1E4,3E5,.1);f=mod(this,f.zT);this.G=new tpO(this.W.getValue(), f);this.eI=new tpO(6E5,f);this.aD||this.eI.start();this.MN||(document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&IK(this)}),document.addEventListener("pagehide",()=>{IK(this)}))}bY(){IK(this); this.G.stop();this.eI.stop();super.bY()}dispatch(f){if(f instanceof MP)this.log(f);else try{var e=new MP,B=f.VD();var n=kl(e,8,B);this.log(n)}catch{}}log(f){if(this.WS){f=f.clone();var e=this.uY++;f=HU(f,21,e);this.componentId&&kl(f,26,this.componentId);e=f;{var B=pr(e,1);const n=typeof B;B=B==null?B:n==="bigint"?String(Y6(64,B)):RW(B)?n==="string"?cn(B):Vv(B):void 0}B==null&&(B=Date.now(),B=Number.isFinite(B)?B.toString():"0",Y1(e,1,lE(B)));(pu?NZ(pr(e,15,void 0,void 0,h5)):NZ(pr(e,15)))!=null|| HU(e,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(B=this.experimentIds.clone(),$1(e,Da,16,B));e=this.C.length-1E3+1;e>0&&(this.C.splice(0,e),this.V+=e);this.C.push(f);this.aD||this.G.enabled||this.G.start()}}flush(f,e){if(this.C.length===0)f&&f();else if(this.cS&&this.N)this.J.G=3,Nrm(this);else{var B=Date.now();if(this.Lq>B&&this.Cq{this.W.reset();this.G.setInterval(this.W.getValue());if(C){var w=null;try{var v=JSON.stringify(JSON.parse(C.replace(")]}'\n","")));w=ZZ6(v)}catch(b){}if(w){C=Number(nt(w,1,fu("-1")));C>0&&(this.Cq=Date.now(),this.Lq=this.Cq+C);(C=m5(IW))&&w.JI[C]?.[175237375]!= null&&Ma(nOM,3);if(m5(rU0)&&m5(IW)&&void 0===rU0&&(C=w.JI,v=C[IW])&&(v=v.Ms))try{v(C,175237375,HDm)}catch(b){pR(b)}w=GZ.C?GZ.G(w,GZ.C,175237375,GZ.J):GZ.G(w,175237375,null,GZ.J);if(w=w===null?void 0:w)w=g.BU(w,1,-1),w!==-1&&(this.W=new g.Xj(w<1?1:w,3E5,.1),this.G.setInterval(this.W.getValue()))}}f&&f();this.U=0},H=(C,w)=>{var v=Pr(n,MP,3); var b=Number(nt(n,14));g.y4(this.W);this.G.setInterval(this.W.getValue());C===401&&r&&(this.PS=r);b&&(this.V+=b);w===void 0&&(w=this.isRetryable(C));w&&(this.C=v.concat(this.C),this.aD||this.G.enabled||this.G.start());e&&e("net-send-failed",C);++this.U},k=()=>{this.network&&this.network.send(d,t,H)}; L?L.then(C=>{d.requestHeaders["Content-Encoding"]="gzip";d.requestHeaders["Content-Type"]="application/binary";d.body=C;d.Ot=2;k()},()=>{k()}):k()}}}}isRetryable(f){return 500<=f&&f<600||f===401||f===0}};var KNw=class{constructor(){this.ys=typeof AbortController!=="undefined"}async send(f,e,B){const n=this.ys?new AbortController:void 0,r=n?setTimeout(()=>{n.abort()},f.timeoutMillis):void 0; try{const L=await fetch(f.url,{method:f.requestType,headers:{...f.requestHeaders},...(f.body&&{body:f.body}),...(f.withCredentials&&{credentials:"include"}),signal:f.timeoutMillis&&n?n.signal:null});L.status===200?e?.(await L.text()):B?.(L.status)}catch(L){switch(L?.name){case "AbortError":B?.(408);break;default:B?.(400)}}finally{clearTimeout(r)}}VR(){return 4}};var g5=class extends g.$0{constructor(){super();this.logSource=1828;this.sessionIndex="0";this.wH="https://play.google.com/log?format=json&hasfast=true";this.network=this.buildLabel=null;this.componentId="";this.C=this.hW=null;this.G=!1;this.pageId=null}UQ(){this.J=!0;return this}build(){this.network||(this.network=new KNw);const f=new R3O({logSource:this.logSource,BH:this.BH?this.BH:Ss,sessionIndex:this.sessionIndex,nu:this.wH,MN:!1,aD:!1,UQ:this.J,zT:this.zT,network:this.network});g.A(this,f);if(this.buildLabel){var e= this.buildLabel,B=GW(f.J);kl(B,7,e)}f.X=new dh5;this.componentId&&(f.componentId=this.componentId);this.hW&&(f.hW=this.hW);this.pageId&&(f.pageId=this.pageId);this.C&&((B=this.C)?(f.experimentIds||(f.experimentIds=new Da),e=f.experimentIds,B=B.VD(),kl(e,4,B)):f.experimentIds&&Y1(f.experimentIds,4));this.G&&(f.cS=f.N);F$0(f.J);this.network.Fy&&this.network.Fy(this.logSource);this.network.mV&&this.network.mV(f);return f}};var rbH=class extends g.$0{constructor(f){super();this.logSource=1828;this.componentId="";f||(f=new g5,f.componentId="",g.A(this,f),f=f.build());this.C=f}flush(f){f=f||[];if(f.length){const e=new LNd,B=[];for(let n=0;n-1?(e=f[d],B||(e.N_=!1)):(e=new Jjg(e,this.src,L,!!n,r),e.N_=B,f.push(e));return e}; g.c.remove=function(f,e,B,n){f=f.toString();if(!(f in this.listeners))return!1;const r=this.listeners[f];e=to(r,e,B,n);return e>-1?(rK(r[e]),g.LF(r,e),r.length==0&&(delete this.listeners[f],this.C--),!0):!1}; g.c.removeAll=function(f){f=f&&f.toString();let e=0;for(const B in this.listeners)if(!f||B==f){const n=this.listeners[B];for(let r=0;r-1?f[r]:null}; g.c.hasListener=function(f,e){const B=f!==void 0,n=B?f.toString():"",r=e!==void 0;return g.lH(this.listeners,function(L){for(let d=0;d>>0);g.Uk(g.pI,g.$0);g.pI.prototype[B7]=!0;g.c=g.pI.prototype;g.c.addEventListener=function(f,e,B,n){g.kc(this,f,e,B,n)}; g.c.removeEventListener=function(f,e,B,n){KI(this,f,e,B,n)}; g.c.dispatchEvent=function(f){var e=this.qo;if(e){var B=[];for(var n=1;e;e=e.qo)B.push(e),++n}e=this.RZ;n=f.type||f;if(typeof f==="string")f=new g.fI(f,e);else if(f instanceof g.fI)f.target=f.target||e;else{var r=f;f=new g.fI(n,e);g.sM(f,r)}r=!0;let L,d;if(B)for(d=B.length-1;!f.G&&d>=0;d--)L=f.currentTarget=B[d],r=c7(L,n,!0,f)&&r;f.G||(L=f.currentTarget=e,r=c7(L,n,!0,f)&&r,f.G||(r=c7(L,n,!1,f)&&r));if(B)for(d=0;!f.G&&df&&AsyncContext.Snapshot.wrap(f):f=>f;var z3w=class{constructor(f,e){this.J=f;this.V=e;this.G=0;this.C=null}get(){let f;this.G>0?(this.G--,f=this.C,this.C=f.next,f.next=null):f=this.J();return f}put(f){this.V(f);this.G<100&&(this.G++,f.next=this.C,this.C=f)}};var Ao;var a$H=class{constructor(){this.G=this.C=null}add(f,e){const B=ov.get();B.set(f,e);this.G?this.G.next=B:this.C=B;this.G=B}remove(){let f=null;this.C&&(f=this.C,this.C=this.C.next,this.C||(this.G=null),f.next=null);return f}},ov=new z3w(()=>new pqw,f=>f.reset()),pqw=class{constructor(){this.next=this.scope=this.C=null}set(f,e){this.C=f; this.scope=e;this.next=null}reset(){this.next=this.scope=this.C=null}};var xO,VP,OY,c9M;VP=!1;OY=new a$H;g.Sk=(f,e)=>{xO||c9M();VP||(xO(),VP=!0);OY.add(f,e)}; c9M=()=>{const f=Promise.resolve(void 0);xO=()=>{f.then(W$G)}};FA.prototype.reset=function(){this.context=this.G=this.J=this.C=null;this.V=!1}; var mU=new z3w(function(){return new FA},function(f){f.reset()}); g.u5.prototype.then=function(f,e,B){return sY(this,Yc(typeof f==="function"?f:null),Yc(typeof e==="function"?e:null),B)}; g.u5.prototype.$goog_Thenable=!0;g.c=g.u5.prototype;g.c.finally=function(f){f=Yc(f);return new g.u5((e,B)=>{T_(this,n=>{f();e(n)},n=>{f(); B(n)})})}; g.c.wT=function(f,e){return sY(this,null,Yc(f),e)}; g.c.catch=g.u5.prototype.wT;g.c.cancel=function(f){if(this.C==0){const e=new W7(f);g.Sk(function(){Jo(this,e)},this)}}; g.c.Yv=function(f){this.C=0;l5(this,2,f)}; g.c.Xe=function(f){this.C=0;l5(this,3,f)}; g.c.xk=function(){let f;for(;f=Mp(this);)G_(this,f,this.C,this.X);this.U=!1}; var yP=pR;g.Uk(W7,Ek);W7.prototype.name="cancel";g.Uk(g.P7,g.pI);g.c=g.P7.prototype;g.c.enabled=!1;g.c.mu=null;g.c.setInterval=function(f){this.D0=f;this.mu&&this.enabled?(this.stop(),this.start()):this.mu&&this.stop()}; g.c.Lu=function(){if(this.enabled){const f=g.u0()-this.Pj;f>0&&fe.C.size); f.length&&this.K.flush(f,this.U);PNC(f);this.W=0;this.C.enabled&&this.C.stop()}Lj(f,e,...B){(f=Hp(this,f))&&f instanceof i5&&(f.Lj(e,B),L$(this))}};var zI=class extends Error{constructor(f,e,B={}){super(e);this.code=f;this.metadata=B;this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype)}toString(){let f=`RpcError(${$ow(this.code)||String(this.code)})`;this.message&&(f+=": "+this.message);return f}};br.prototype.VD=function(f){const e=[];Rq(this,f,e);return e.join("")}; var qd={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},iHY=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var YLG;g.Uk(aq,zB);aq.prototype.C=function(){return new XMLHttpRequest}; YLG=new aq;g.Uk(g.p$,g.pI);var Bwd=/^https?$/i,A95=["POST","PUT"],cp=[];g.c=g.p$.prototype;g.c.IZ=function(){this.dispose();g.d2(cp,this)}; g.c.send=function(f,e,B,n){if(this.C)throw Error("[goog.net.XhrIo] Object is active with another request="+this.K+"; newUri="+f);e=e?e.toUpperCase():"GET";this.K=f;this.V="";this.G=0;this.A=!1;this.J=!0;this.C=this.eI?this.eI.C():YLG.C();this.C.onreadystatechange=Yc((0,g.VG)(this.Pk,this));try{this.getStatus(),this.Cq=!0,this.C.open(e,String(f),!0),this.Cq=!1}catch(L){this.getStatus();j8(this,L);return}f=B||"";B=new Map(this.headers);if(n)if(Object.getPrototypeOf(n)===Object.prototype)for(var r in n)B.set(r, n[r]);else if(typeof n.keys==="function"&&typeof n.get==="function")for(const L of n.keys())B.set(L,n.get(L));else throw Error("Unknown input type for opt_headers: "+String(n));n=Array.from(B.keys()).find(L=>"content-type"==L.toLowerCase()); r=g.Kw.FormData&&f instanceof g.Kw.FormData;!g.eB(A95,e)||n||r||B.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const [L,d]of B)this.C.setRequestHeader(L,d);this.cS&&(this.C.responseType=this.cS);"withCredentials"in this.C&&this.C.withCredentials!==this.X&&(this.C.withCredentials=this.X);try{this.U&&(clearTimeout(this.U),this.U=null),this.Ed>0&&(this.getStatus(),this.U=setTimeout(this.BZ.bind(this),this.Ed)),this.getStatus(),this.N=!0,this.C.send(f),this.N=!1}catch(L){this.getStatus(), j8(this,L)}}; g.c.BZ=function(){typeof Oa!="undefined"&&this.C&&(this.V="Timed out after "+this.Ed+"ms, aborting",this.G=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.c.abort=function(f){this.C&&this.J&&(this.getStatus(),this.J=!1,this.W=!0,this.C.abort(),this.W=!1,this.G=f||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),AM(this))}; g.c.bY=function(){this.C&&(this.J&&(this.J=!1,this.W=!0,this.C.abort(),this.W=!1),AM(this,!0));g.p$.lj.bY.call(this)}; g.c.Pk=function(){this.HS()||(this.Cq||this.N||this.W?lr(this):this.Wq())}; g.c.Wq=function(){lr(this)}; g.c.isActive=function(){return!!this.C}; g.c.isComplete=function(){return g.oq(this)==4}; g.c.getStatus=function(){try{return g.oq(this)>2?this.C.status:-1}catch(f){return-1}}; g.c.getResponseHeader=function(f){if(this.C&&this.isComplete())return f=this.C.getResponseHeader(f),f===null?void 0:f}; g.c.getLastError=function(){return typeof this.V==="string"?this.V:String(this.V)};var SEk=class{send(f,e=()=>{},B=()=>{}){egl(f.url,n=>{n=n.target; Vp(n)?e(g.ur(n)):B(n.getStatus())},f.requestType,f.body,f.requestHeaders,f.timeoutMillis,f.withCredentials)}VR(){return 1}};var W4=class{constructor(f,e){this.logger=f;this.event=e;this.startTime=Nd()}done(){this.logger.J(this.event,Nd()-this.startTime)}},sK=class extends sfg{constructor(){super(...arguments);this.aX={nC:()=>[]}}},Ea=class extends sK{V(){}C(){}J(){}mj(){}G(){}W(f,e,B,n){return n}K(){}U(){}X(){}},jhM=class extends sK{constructor(f){super(); this.logger=f;this.aX={j6Y:()=>this.logger, nC:()=>this.logger.aX.nC()}; this.addOnDisposeCallback(()=>void this.logger.dispose())}update(f){this.logger.dispose(); this.logger=f}C(f){this.logger.C(f)}J(f,e){this.logger.J(f,e)}mj(f){this.logger.mj(f)}G(){this.logger.G()}W(f,e,B,n){return this.logger.W(f,e,B,n)}K(f){this.logger.K(f)}U(f){this.logger.U(f)}X(f){this.logger.X(f)}V(f){this.logger.V(f)}},OZG=class extends g.$0{constructor(f,e){super();this.callback=f;this.G=e;this.C=-e;this.addOnDisposeCallback(()=>void clearTimeout(this.timer))}},oEY=class extends sK{constructor(f,e){super(); this.metrics=f;this.kI=e}V(f){this.metrics.xP.Lj(f,this.kI)}C(f){this.metrics.eventCount.C(f,this.kI)}J(f,e){this.metrics.NL.Lj(e,f,this.kI)}mj(f){this.metrics.errorCount.C(f,this.kI)}W(f,e,B,n){const r=Nd(),L=d=>{if(!this.HS()){var t=Nd()-r;this.metrics.tS.Lj(t,f,B,d,e,this.kI)}}; n.then(()=>void L(0),d=>void L(d instanceof zI?d.code:-1)); return n}K(f){this.metrics.xv.C(f,this.kI)}U(f){this.metrics.aZ.C(f,this.kI)}X(f){this.metrics.NV.C(f,this.kI)}},tAd=class extends oEY{constructor(f,e=[]){const B={kI:f.kI||"_",kJ:f.kJ||[],Kd:f.Kd|0,wH:f.wH,FI:f.FI||(()=>{}), XD:f.XD||((r,L)=>Ld0(r,L,B.FI,B.wH))},n=B.XD("53",B.kJ.concat(e)); super({xP:new X0w(n),errorCount:new $56(n),eventCount:new P65(n),NL:new ITw(n),tS:new yO5(n),xv:new i1Y(n),aZ:new f$6(n),NV:new e36(n)},B.kI);this.aX={nC:()=>this.options.kJ.concat(this.Cq).sort((r,L)=>r-L)}; this.options=B;this.service=n;this.A=!f.XD;this.N=new OZG(()=>void this.service.V(),B.Kd); this.addOnDisposeCallback(()=>{this.N.dispose();this.A&&this.service.dispose()}); g.cB(this.Cq=e.slice())}G(){dV5(this.N)}};var Md=class extends bT{constructor(f){super(f)}};var GB=class extends bT{constructor(f){super(f)}};var sa=class extends bT{constructor(f){super(f,0,sa.messageId)}},Kdg=Mn(sa),Vpd=function(f){return vD(e=>e instanceof f&&!sN(e))}(sa); sa.messageId="bfkj";var Kg=class extends bT{constructor(f){super(f)}};var l$C=class extends bT{constructor(f){super(f)}},u7w=Mn(l$C);g.rF=class{constructor(){this.promise=new Promise((f,e)=>{this.resolve=f;this.reject=e})}};var BQ=class extends g.$0{constructor(f){super();this.G=Math.floor(Math.random()*200);this.C=new l$C;let e;if("challenge"in f&&Vpd(f.challenge)){e=rf(f.challenge,4,void 0,IU);var B=rf(f.challenge,5,void 0,IU);rf(f.challenge,7,void 0,IU)&&(this.C=u7w(rf(f.challenge,7,void 0,IU)))}else({program:e,globalName:B}=f);this.addOnDisposeCallback(async()=>{const {SW:k}=await this.J;k?.()}); this.logger=Qp(f.RY||{},this.C);g.A(this,this.logger);const n=new g.rF;this.J=n.promise;this.logger.C("t");const r=this.logger.share(),L=new W4(r,"t"),d=(k,C,w,v)=>{if(!this.logger.HS()){var b="k";C?b="h":w&&(b="u");b!=="k"?v!==0&&(this.logger.C(b),this.logger.J(b,k)):this.G<=0?(this.logger.C(b),this.logger.J(b,k),this.G=Math.floor(Math.random()*200)):this.G--}},t=(k,C,w,v)=>{Promise.resolve().then(()=>{L.done(); r.G();r.dispose();n.resolve({M5:k,SW:C,Nc:w,lWq:v})})}; if(!g.Kw[B])throw this.logger.mj(25),Error("EGOU");if(!g.Kw[B].a)throw this.logger.mj(26),Error("ELIU");try{const k=g.Kw[B].a;B=[];const C=[];var H=qD(this.C);for(let b=0;b{})}catch(k){throw this.logger.mj(28),k; }}snapshot(f){if(this.HS())throw Error("Already disposed");this.logger.C("n");const e=this.logger.share();return this.J.then(({M5:B})=>new Promise(n=>{const r=new W4(e,"n");B(L=>{r.done();e.V(L.length);e.G();e.dispose();n(L)},[f.KV, f.Ep,f.gQ,f.cO])}))}nD(f){if(this.HS())throw Error("Already disposed"); this.logger.C("n");const e=hM(this.logger,()=>this.V([f.KV,f.Ep,f.gQ,f.cO]),"n"); this.logger.V(e.length);this.logger.G();return e}o0(f){this.J.then(({Nc:e})=>{e?.(f)})}G2(){return this.logger.share()}};var TB=class{constructor(){this.G={};this.C=null}};var Wp=class extends bT{constructor(f){super(f)}};var yp=class extends bT{constructor(f){super(f)}};var $X=class{constructor(f,e,B){this.client=f;this.requestKey=e;this.C=B}M8(f){return Iq(this,f,new Ea,0)}};var Kv=class extends g.$0{constructor(f){super();this.options=f;this.U=new g.rF;this.kW=this.U.promise;this.W=new g.rF;this.K=1;this.G=new g.rF;this.V=[];this.isPaused=!1;this.le=f.le||(()=>{}); this.logger=new jhM(Qp(f.RY||{}));cb5(this,f.K1,f.tUl,f.jMl,f.vfq,{...FN0,...(f.JZ||{})});this.addOnDisposeCallback(()=>void Ymd(this))}async snapshot(f){if(this.HS())throw Error("Already disposed"); this.J||this.X||await this.W.promise;if(this.J)return await this.J.snapshot(f);throw this.X;}pause(){this.HS()||this.isPaused||(this.isPaused=!0,this.C&&this.C.pause())}resume(){!this.HS()&&this.isPaused&&(this.isPaused=!1,this.C&&this.C.resume())}async checkForRefresh(){if(this.HS())throw Error("Already disposed");if(this.C){var f=this.C;f.isExpired()?(Lv(f),f.Ej(0),f=!0):f=!1;f&&await this.G.promise}else await this.G.promise}o0(f){this.J?.o0?.(f)}handleError(f){this.HS()||(this.X=f,this.W.resolve(), this.options.Jr?.(f))}G2(){return this.logger.share()}},FN0={dW:432E5,d6:3E5,cG:10,cg:1E4,CN:3E4,ZD:3E4,hk:6E4,lJ:1E3,Ok:6E4,qL:6E5,SB:.25,hh:2,maxAttempts:10},eu=class{constructor(f,e,B){this.endTimeMs=0;this.C=null;this.isPaused=!1;this.tick=()=>{if(!this.isPaused){var n=this.endTimeMs-Date.now();n<=this.J?(this.C=null,this.Ej(0)):this.C=setTimeout(this.tick,Math.min(n,this.d6))}}; this.d6=e;this.J=B;this.promise=new Promise(n=>{this.Ej=n}); oCg(this,f)}pause(){this.isPaused||(this.isPaused=!0,Lv(this))}resume(){this.isPaused&&(this.isPaused=!1,this.tick())}G(){Lv(this);this.endTimeMs=0;this.isPaused=!1;this.Ej(1)}isExpired(){return Date.now()>this.endTimeMs}};var VA5=Math.imul??((f,e)=>f*e|0),HQ=[196, 200,224,18],wF=class{constructor(f,e=0,B=[]){this.maxItems=f;this.C=e;this.G=B}VD(){return String(this.C)+","+this.G.join()}yD(f,e){let B=void 0;if(this.G[this.C]!==f){const n=this.G.indexOf(f);n!==-1?(this.G.splice(n,1),nlSY(this.index,kp(f),e,B,n),"W"):"u"; this.logger.X(r)}G(f,e){const [B,n]=this.index?hM(this.logger,()=>uOg(kp(f),e),"R"):["u"]; this.logger.U(B);return n}};var UVd={toString:function(f){let e=[],B=0;f-=-2147483648;e[B++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(f%52);for(f=Math.floor(f/52);f>0;)e[B++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(f%62),f=Math.floor(f/62);return e.join("")}};var Xs=class extends g.$0{constructor(f){super();this.logger=f;this.V=new g.rF}Rn(f,e){const B=this.J(f);e?.(B);return hM(this.logger,()=>g.ON(B,2),this.G)}d3(f,e,B){return hM(this.logger,()=>e?this.Rn(f,B):this.J(f,B),this.C)}},pv=class extends Xs{constructor(f,e,B,n){super(f); this.W=e;this.X=B;this.C="m";this.G="x";this.U=0;bm(this,n)}J(f,e){this.logger.C(this.C);++this.U>=this.X&&this.V.resolve();const B=f();f=hM(this.logger,()=>this.W(B),"C"); if(f===void 0)throw new RK(17,"YNJ:Undefined");if(!(f instanceof Uint8Array))throw new RK(18,"ODM:Invalid");e?.(f);return f}},QYM=class extends Xs{constructor(f,e,B){super(f);this.W=e;this.C="f";this.G="z";bm(this,B)}J(){return this.W}},EC0=class extends Xs{constructor(f,e,B){super(f);this.W=e;this.C="w";this.G="z";bm(this,B)}J(){return hM(this.logger,()=>uW(this.W),"d")}Rn(){return this.W}},GtH=class extends Xs{constructor(f,e){super(f); this.error=e;this.C="e";this.G="y"}J(){if(this.W)return this.W;this.W=Rc(this,f=>"_"+NwG(f)); return Rc(this,f=>f)}},ju=class extends Xs{constructor(f,e,B){super(f); this.W=e;this.clientState=B;this.C="S";this.G="q"}J(){var f=Math.floor(Date.now()/1E3),e=[Math.random()*255,Math.random()*255],B=e.concat([this.W&255,this.clientState],[f>>24&255,f>>16&255,f>>8&255,f&255]);f=new Uint8Array(2+B.length);f[0]=34;f[1]=B.length;f.set(B,2);B=f.subarray(2);e=e.length;for(let n=e;n{}); this.l5=f.l5||!1;if(NaO(f)){const n=this.eU;this.U=()=>Ab5(n).catch(r=>{this.G=r=this.reportError(new RK(this.C?20:32,"TRG:Disposed",r));this.C?.dispose();this.C=void 0;this.V.reject(r)}); jYl(n,()=>void ac(this)); n.K===2&&ac(this)}else this.U=f.R_j,ac(this);const e=this.logger.share();e.C("o");const B=new W4(e,"o");this.V.promise.then(()=>{B.done();e.G();e.dispose()},()=>void e.dispose()); this.addOnDisposeCallback(()=>{this.C?(this.C.dispose(),this.C=void 0):this.G?this.logger.G():(this.G=this.reportError(new RK(32,"TNP:Disposed")),this.logger.G(),this.V.reject(this.G))}); g.A(this,this.logger)}nm(){return this.V.promise}J(f){return Yp(this,{...f},!1)}Rn(f){return Yp(this,{...f},!0)}W2(f){if(!(f>150))try{this.cache=new mhk(f,this.logger)}catch(e){this.reportError(new RK(22,"GBJ:init",e))}}reportError(f){this.logger.mj(f.code);this.onError(f);return f}},NaO=function(f){return vD(e=>{if(!Bng(e))return!1;for(const [B,n]of Object.entries(f)){const r=B,L=n;if(!(r in e)){if(L.o29===!0)continue;return!1}if(!L(e[r]))return!1}return!0})}({eU:function(f){return vD(e=>e instanceof f)}(Kv)},"");var h3G=class{constructor(){var f=g.ML();this.G=f;g.Bp(f,"/client_streamz/youtube/aba/gac",aK("type"),aK("sequence"))}C(f,e){g.r5(this.G,"/client_streamz/youtube/aba/gac",f,e)}};var Llg=(new Date).getTime();var gEk=class extends bT{constructor(f){super(f)}};var SLG=class{constructor(f,e,B){this.ow=f;this.jg=e;this.metadata=B}getMetadata(){return this.metadata}};var xVY=class{constructor(f,e={}){this.XH=f;this.metadata=e;this.status=null}getMetadata(){return this.metadata}getStatus(){return this.status}};var EE5=class{constructor(f,e,B,n,r){this.name=f;this.methodType="unary";this.requestType=e;this.responseType=B;this.C=n;this.G=r}U(f,e={}){return new SLG(f,this,e)}getName(){return this.name}};var Qhk=new EE5("/google.internal.waa.v1.Waa/Create",Wp,gEk,f=>f.VD(),Mn(gEk));var Ta0=class extends bT{constructor(f){super(f)}};var qmG=new EE5("/google.internal.waa.v1.Waa/GenerateIT",yp,Ta0,f=>f.VD(),Mn(Ta0));var v_l=new Set(["SAPISIDHASH","APISIDHASH"]);var ybk=class extends bT{constructor(f){super(f)}getValue(){const f=pr(this,2);if(Array.isArray(f)||f instanceof bT)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return m7(this,2)}};var XNY=Mn(class extends bT{constructor(f){super(f)}getMessage(){return rf(this,2)}});var RV5=class{constructor(f,e){this.G=[];this.V=[];this.W=[];this.J=[];this.C=[];this.U=f.jb;this.X=e;this.xhr=f.xhr;this.U&&sYC(this)}E1(f,e){f==="data"?this.G.push(e):f==="metadata"?this.V.push(e):f==="status"?this.W.push(e):f==="end"?this.J.push(e):f==="error"&&this.C.push(e)}removeListener(f,e){f==="data"?UA(this.G,e):f==="metadata"?UA(this.V,e):f==="status"?UA(this.W,e):f==="end"?UA(this.J,e):f==="error"&&UA(this.C,e);return this}cancel(){this.xhr.abort()}},Pc6=class extends Error{constructor(){super(); this.name="AsyncStack";Object.setPrototypeOf(this,new.target.prototype)}};g.Uk(g.NE,zB);g.NE.prototype.C=function(){const f=new hw(this.V,this.J);this.G&&f.setCredentialsMode(this.G);return f}; g.NE.prototype.setCredentialsMode=function(f){this.G=f}; g.Uk(hw,g.pI);g.c=hw.prototype;g.c.open=function(f,e){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.A=f;this.Ed=e;this.readyState=1;Su(this)}; g.c.send=function(f){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.K.signal.aborted)throw this.abort(),Error("Request was aborted.");this.C=!0;const e={headers:this.N,method:this.A,credentials:this.W,cache:void 0,signal:this.K.signal};f&&(e.body=f);(this.Cq||g.Kw).fetch(new Request(this.Ed,e)).then(this.DH.bind(this),this.QR.bind(this))}; g.c.abort=function(){this.response=this.responseText="";this.N=new Headers;this.status=0;this.K.abort("Request was aborted.");this.J&&this.J.cancel("Request was aborted.").catch(()=>{}); this.readyState>=1&&this.C&&this.readyState!=4&&(this.C=!1,EA(this));this.readyState=0}; g.c.DH=function(f){if(this.C&&(this.V=f,this.G||(this.status=this.V.status,this.statusText=this.V.statusText,this.G=f.headers,this.readyState=2,Su(this)),this.C&&(this.readyState=3,Su(this),this.C)))if(this.responseType==="arraybuffer")f.arrayBuffer().then(this.KN.bind(this),this.QR.bind(this));else if(typeof g.Kw.ReadableStream!=="undefined"&&"body"in f){this.J=f.body.getReader();if(this.U){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.X=new TextDecoder;gF(this)}else f.text().then(this.F8.bind(this),this.QR.bind(this))}; g.c.ws=function(f){if(this.C){if(this.U&&f.value)this.response.push(f.value);else if(!this.U){var e=f.value?f.value:new Uint8Array(0);if(e=this.X.decode(e,{stream:!f.done}))this.response=this.responseText+=e}f.done?EA(this):Su(this);this.readyState==3&&gF(this)}}; g.c.F8=function(f){this.C&&(this.response=this.responseText=f,EA(this))}; g.c.KN=function(f){this.C&&(this.response=f,EA(this))}; g.c.QR=function(){this.C&&EA(this)}; g.c.setRequestHeader=function(f,e){this.N.append(f,e)}; g.c.getResponseHeader=function(f){return this.G?this.G.get(f.toLowerCase())||"":""}; g.c.getAllResponseHeaders=function(){if(!this.G)return"";const f=[],e=this.G.entries();for(var B=e.next();!B.done;)B=B.value,f.push(B[0]+": "+B[1]),B=e.next();return f.join("\r\n")}; g.c.setCredentialsMode=function(f){this.W=f}; Object.defineProperty(hw.prototype,"withCredentials",{get:function(){return this.W==="include"}, set:function(f){this.setCredentialsMode(f?"include":"same-origin")}});g.S2.prototype.toString=function(){const f=[];var e=this.W;e&&f.push(xp(e,Dh0,!0),":");var B=this.C;if(B||e=="file")f.push("//"),(e=this.K)&&f.push(xp(e,Dh0,!0),"@"),f.push(g.nH(B).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),B=this.J,B!=null&&f.push(":",String(B));if(B=this.G)this.C&&B.charAt(0)!="/"&&f.push("/"),f.push(xp(B,B.charAt(0)=="/"?J9O:Mpd,!0));(B=this.V.toString())&&f.push("?",B);(B=this.U)&&f.push("#",xp(B,G3d));return f.join("")}; g.S2.prototype.resolve=function(f){const e=this.clone();let B=!!f.W;B?g.Qd(e,f.W):B=!!f.K;B?e.K=f.K:B=!!f.C;B?g.Ej(e,f.C):B=f.J!=null;var n=f.G;if(B)g.TI(e,f.J);else if(B=!!f.G){if(n.charAt(0)!="/")if(this.C&&!this.G)n="/"+n;else{var r=e.G.lastIndexOf("/");r!=-1&&(n=e.G.slice(0,r+1)+n)}r=n;if(r==".."||r==".")n="";else if(g.BE(r,"./")||g.BE(r,"/.")){n=$e(r,"/");r=r.split("/");const L=[];for(let d=0;d1||L.length==1&&L[0]!= "")&&L.pop(),n&&d==r.length&&L.push("")):(L.push(t),n=!0)}n=L.join("/")}else n=r}B?e.G=n:B=f.V.toString()!=="";B?DW(e,f.V.clone()):B=!!f.U;B&&(e.U=f.U);return e}; g.S2.prototype.clone=function(){return new g.S2(this)}; var Dh0=/[#\/\?@]/g,Mpd=/[#\?:]/g,J9O=/[#\?]/g,BP5=/[#\?@]/g,G3d=/#/g;g.c=GI.prototype;g.c.add=function(f,e){XF(this);this.J=null;f=yd(this,f);let B=this.C.get(f);B||this.C.set(f,B=[]);B.push(e);this.G=this.G+1;return this}; g.c.remove=function(f){XF(this);f=yd(this,f);return this.C.has(f)?(this.J=null,this.G=this.G-this.C.get(f).length,this.C.delete(f)):!1}; g.c.clear=function(){this.C=this.J=null;this.G=0}; g.c.isEmpty=function(){XF(this);return this.G==0}; g.c.forEach=function(f,e){XF(this);this.C.forEach(function(B,n){B.forEach(function(r){f.call(e,r,n,this)},this)},this)}; g.c.qA=function(){XF(this);const f=Array.from(this.C.values()),e=Array.from(this.C.keys()),B=[];for(let n=0;n0?String(f[0]):e}; g.c.toString=function(){if(this.J)return this.J;if(!this.C)return"";const f=[],e=Array.from(this.C.keys());for(let n=0;n>>3;L.J!=1&&L.J!=2&&L.J!=15&&rA(L,d,t,"unexpected tag");L.C=1;L.G=0;L.V=0} function B(H){L.V++;L.V==5&&H&240&&rA(L,d,t,"message length too long");L.G|=(H&127)<<(L.V-1)*7;H&128||(L.C=2,L.K=0,typeof Uint8Array!=="undefined"?L.W=new Uint8Array(L.G):L.W=Array(L.G),L.G==0&&r())} function n(H){L.W[L.K++]=H;L.K==L.G&&r()} function r(){if(L.J<15){const H={};H[L.J]=L.W;L.X.push(H)}L.C=0} const L=this,d=f instanceof Array?f:new Uint8Array(f);let t=0;for(;t0?f:null};LX.prototype.isInputValid=function(){return this.C===null}; LX.prototype.jU=function(){return this.C}; LX.prototype.RL=function(){return!1}; LX.prototype.parse=function(f){this.C!==null&&dA(this,f,"stream already broken");let e=null;try{{var B=this.J;B.J||BW(B,f,"stream already broken");B.C+=f;const L=Math.floor(B.C.length/4);if(L==0)var n=null;else{try{var r=lW(B.C.slice(0,L*4))}catch(d){BW(B,B.C,d.message)}B.G+=L*4;B.C=B.C.slice(L*4);n=r}}e=n===null?null:this.V.parse(n)}catch(L){dA(this,f,L.message)}this.G+=f.length;return e};g.c=HW.prototype;g.c.isInputValid=function(){return this.W!=3}; g.c.jU=function(){return this.N}; g.c.done=function(){return this.W===2}; g.c.RL=function(){return!1}; g.c.parse=function(f){function e(){for(;w0;)if(b=f[w++],L.K===4?L.K=0:L.K++,!b)break a;if(b==='"'&&!L.X){L.C=n();break}if(b==="\\"&&!L.X&&(L.X=!0,b=f[w++], !b))break;if(L.X)if(L.X=!1,b==="u"&&(L.K=1),b=f[w++])continue;else break;t.lastIndex=w;b=t.exec(f);if(!b){w=f.length+1;break}w=b.index+1;b=f[b.index];if(!b)break}L.J+=w-K;continue;case 9:if(!b)continue;b==="r"?L.C=10:ki(L,f,w);continue;case 10:if(!b)continue;b==="u"?L.C=11:ki(L,f,w);continue;case 11:if(!b)continue;b==="e"?L.C=n():ki(L,f,w);continue;case 12:if(!b)continue;b==="a"?L.C=13:ki(L,f,w);continue;case 13:if(!b)continue;b==="l"?L.C=14:ki(L,f,w);continue;case 14:if(!b)continue;b==="s"?L.C=15: ki(L,f,w);continue;case 15:if(!b)continue;b==="e"?L.C=n():ki(L,f,w);continue;case 16:if(!b)continue;b==="u"?L.C=17:ki(L,f,w);continue;case 17:if(!b)continue;b==="l"?L.C=18:ki(L,f,w);continue;case 18:if(!b)continue;b==="l"?L.C=n():ki(L,f,w);continue;case 19:b==="."?L.C=20:ki(L,f,w);continue;case 20:if("0123456789.eE+-".indexOf(b)!==-1)continue;else w--,L.J--,L.C=n();continue;default:ki(L,f,w)}}} function n(){const b=d.pop();return b!=null?b:1} function r(b){L.G>1||(b||(b=C===-1?L.V+f.substring(k,w):f.substring(C,w)),L.Ed?L.U.push(b):L.U.push(JSON.parse(b)),C=w)} const L=this,d=L.A,t=L.Cq,H=f.length;let k=0,C=-1,w=0;for(;w0?(v=L.U,L.U=[],v):null}return null};CX.prototype.isInputValid=function(){return this.W===null}; CX.prototype.jU=function(){return this.W}; CX.prototype.RL=function(){return!1}; CX.prototype.parse=function(f){function e(H){L.G=6;L.W="The stream is broken @"+L.C+"/"+d+". Error: "+H+". With input:\n";throw Error(L.W);} function B(){L.J=new HW({gsY:!0,df:!0})} function n(H){if(H)for(let k=0;k1)&&e("extra status: "+H);L.U=!0;const k={};k[2]=H[0];L.V.push(k)}} const L=this;let d=0;for(;d0?(f=L.V,L.V=[],f):null};var bRk=class{constructor(f){this.C=f;this.G=null;this.W=this.J=0;this.N=!1;this.V=this.X=this.U=null;this.K=new g.fX(this);this.K.listen(this.C,"readystatechange",this.Ed)}ZU(){return this.C}getStatus(){return this.W}Ed(f){f=f.target;try{if(f==this.C)a:{const L=g.oq(this.C);var e=this.C.G,B=this.C.getStatus();const d=g.ur(this.C);f=[];if(g.FK(this.C)instanceof Array){const t=g.FK(this.C);t.length>0&&t[0]instanceof Uint8Array&&(this.N=!0,f=t)}if(!(L<3||L==3&&!d&&f.length==0))if(B=B==200||B==206,L== 4&&(e==8?wA(this,7):e==7?wA(this,8):B||wA(this,3)),this.G||(this.G=daw(this.C),this.G==null&&wA(this,5)),this.W>2)vW(this);else{if(f.length>this.J){const t=f.length;e=[];try{if(this.G.RL())for(var n=0;nthis.J){n=d.slice(this.J);this.J=d.length;try{const t=this.G.parse(n);t!=null&&this.V&&this.V(t)}catch(t){wA(this,5);vW(this);break a}}L==4?(d.length!=0||this.N?wA(this,2):wA(this,4),vW(this)):wA(this,1)}}}catch(L){wA(this,6),vW(this)}}};var ZR0=class{constructor(f){f=this.J=f;var e=(0,g.VG)(this.V,this);f.V=e;f=this.J;e=(0,g.VG)(this.W,this);f.X=e;this.G={};this.C={}}E1(f,e){let B=this.G[f];B||(B=[],this.G[f]=B);B.push(e)}addListener(f,e){this.E1(f,e);return this}removeListener(f,e){const B=this.G[f];B&&g.d2(B,e);(f=this.C[f])&&g.d2(f,e);return this}once(f,e){let B=this.C[f];B||(B=[],this.C[f]=B);B.push(e);return this}V(f){var e=this.G.data;e&&bl(f,e);(e=this.C.data)&&bl(f,e);this.C.data=[]}W(){switch(this.J.getStatus()){case 1:Zj(this, "readable");break;case 5:case 6:case 4:case 7:case 3:Zj(this,"error");break;case 8:Zj(this,"close");break;case 2:Zj(this,"end")}}};var K3C=class{constructor(){var f={format:"jspb"};this.N4=f.N4||g.zO("suppressCorsPreflight",f)||!1;this.withCredentials=f.withCredentials||g.zO("withCredentials",f)||!1;this.jA=f.jA||[];this.yd=f.yd||[];this.ju=f.ju;this.C=f.XtI||!1}serverStreaming(f,e,B,n){const r=f.substring(0,f.length-n.name.length);return HR6(L=>{const d=L.jg;var t=L.getMetadata();const H=R0(this,!1);t=KX(this,t,H,r+d.getName());const k=q8(H,d.G,!0);L=d.C(L.ow);H.send(t,"POST",L);return k},this.jA).call(this,n.U(e,B))}};z6.prototype.create=function(f,e,B){return Pp(this.C,this.G+"/$rpc/google.internal.waa.v1.Waa/Create",f,e||{},Qhk,B)};var yO=class{constructor(f,e){this.bd=3;this.Jj=f;this.defaultValue=e;this.Km="bool"}},P4=class{constructor(f,e){this.bd=3;this.Jj=f;this.defaultValue=e;this.Km="double"}};var t1C,vL5,YCk,WNC,f50,sh5,zD5,Xqg,y9w,P$d,I$k,$hm,iZ0,eO6,B1g,nTk,r16,vr5,SO,HQk,kik,LVm,dYM,OTO,t6d,I$,H4w,HAw,kVm,Zfk,CaC,wHd,vT5,b4w,Z40,ROl,KVG,qnY,zOk,$O,RPY,Fk,W_d,i90,aqg,pH6,zYY,kGm;t1C=new yO(45756201,!1);vL5=new yO(45749396,!1);YCk=new yO(45751227,!1);WNC=new yO(45751228,!1);f50=new yO(45745123,!1);sh5=new yO(45742118,!1);zD5=new yO(45742119,!1);Xqg=new yO(45754339,!1);y9w=new yO(45757087,!1);P$d=new yO(45756446,!1);I$k=new yO(45739196,!1);$hm=new yO(45739198,!1);iZ0=new yO(45739197,!1); g.fqk=new class{constructor(f,e,B,n){this.bd=f;this.Jj=e;this.defaultValue=n;this.Km="int"}}(3,45750947,"drop_large_caption_max_bytes_per_second",fu("0"));eO6=new P4(45746966,0);B1g=new P4(45746967,0);nTk=new P4(45737488,0);r16=new P4(45737489,0);vr5=new yO(45732791,!0);SO=new yO(45728572,!1);HQk=new yO(45737482,!1);kik=new P4(45741773,0);LVm=new yO(45754595,!1);dYM=new yO(45731083,!1);OTO=new yO(45728553,!1);t6d=new yO(45734191,!1);I$=new yO(45745610,!1);H4w=new yO(45746773,!1); HAw=new yO(45756619,!1);kVm=new yO(45758290,!1);Zfk=new yO(45735523,!1);CaC=new P4(45735428,4E3);wHd=new yO(45748009,!1);vT5=new yO(45752604,!1);b4w=new yO(45755066,!1);Z40=new yO(45735462,!1);ROl=new yO(45751943,!1);KVG=new yO(45751944,!1);qnY=new yO(45751945,!1);zOk=new yO(45756939,!1);$O=new yO(45727949,!1);RPY=new yO(45752871,!1);Fk=new yO(45728181,!1);W_d=new yO(45746180,!1);i90=new yO(45756543,!1);aqg=new yO(45756620,!1);pH6=new yO(45740357,!1);zYY=new yO(45732775,!1); g.c1d=new yO(45734776,!1);kGm=new yO(45755924,!1);var j_C=new P4(45756872,0),cWG=new P4(45725542,0),AWm=new P4(45743228,0),pOH=new P4(45725543,0),OQd=new P4(45757426,0),q5l=new P4(45725539,0),aI5=new P4(45725541,0),oZm=new P4(45757427,0),zHY=new P4(45725540,0),K_g=new P4(45725538,0),Y55=new P4(45741339,0),V9Y=new P4(45757957,0),lIO=new P4(45758467,0);var YnM=class{constructor(f){this.C=f}};var A1l=class{constructor(f){this.C=f}};var a0="://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(" "),qN5=/\bocr\b/;var aOl=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var j36=class extends bT{constructor(f){super(f,500)}};var O4d=class extends bT{constructor(f){super(f,500)}};var pDG=class extends bT{constructor(f){super(f)}getName(){return rf(this,1)}getOptions(){return sl(this,O4d,3)}clearOptions(){return Y1(this,3)}};var YN5=function(f){return e=>{e=JSON.parse(e);if(!Array.isArray(e))throw Error("Expected jspb data to be an array, got "+c5(e)+": "+e);e[WD]|=34;return new f(e)}}(class extends bT{constructor(f){super(f)}getName(){return rf(this,1)}getOptions(){return sl(this,j36,3)}clearOptions(){return Y1(this,3)}lE(){return Lt(this,6)}FG(f){wf(this,6,f)}});var cW=Symbol();var Ag=Symbol();var jV=!1,VW0=1,o0=Symbol("SIGNAL");var ORC={version:0,rRL:0,u2:!1,producers:void 0,h_Y:void 0,PX:void 0,AFS:void 0,OzL:!1,x0A:!1,zPI:!1,kind:"unknown",mDl:()=>!1, k8C:()=>{}, Ek:()=>{}, IW9:()=>{}, qR:function(f,e){return Object.is(f,e)}, value:void 0,kind:"signal"};var F3=class extends g.pI{constructor(f){super();this.W=this.G=0;this.Na=f??{Br:(e,B)=>setTimeout(e,B), lK:e=>{clearTimeout(e)}}; this.C=window.navigator?.onLine??!0;this.J=async()=>{await mJ(this)}; window.addEventListener("offline",this.J);window.addEventListener("online",this.J);this.W||this.XL()}dispose(){window.removeEventListener("offline",this.J);window.removeEventListener("online",this.J);this.Na.lK(this.W);delete F3.instance}rZ(){return this.C}XL(){this.W=this.Na.Br(async()=>{this.C?window.navigator?.onLine||await mJ(this):await mJ(this);this.XL()},3E4)}};var r0g=Dd(class extends bT{constructor(f){super(f)}G(){return Lt(this,5)}},[0,AU,Iag,qP,AU,-2,qP,KD]);var dZl=class{constructor(){this.data=[];this.C=-1}set(f,e=!0){0<=f&&f<52&&Number.isInteger(f)&&this.data[f]!==e&&(this.data[f]=e,this.C=-1)}get(f){return!!this.data[f]}};var N8;g.Uk(g.SV,g.$0);g.c=g.SV.prototype;g.c.start=function(){this.stop();this.V=!1;const f=EW(this),e=QC(this);f&&!e&&this.G.mozRequestAnimationFrame?(this.C=g.kc(this.G,"MozBeforePaint",this.J),this.G.mozRequestAnimationFrame(null),this.V=!0):this.C=f&&e?f.call(this.G,this.J):this.G.setTimeout(sdY(this.J),20)}; g.c.stop=function(){if(this.isActive()){const f=EW(this),e=QC(this);f&&!e&&this.G.mozRequestAnimationFrame?qp(this.C):f&&e?e.call(this.G,this.C):this.G.clearTimeout(this.C)}this.C=null}; g.c.isActive=function(){return this.C!=null}; g.c.wP=function(){this.V&&this.C&&qp(this.C);this.C=null;this.U.call(this.W,g.u0())}; g.c.bY=function(){this.stop();g.SV.lj.bY.call(this)};g.Uk(g.T6,g.$0);g.c=g.T6.prototype;g.c.cV=0;g.c.bY=function(){g.T6.lj.bY.call(this);this.stop();delete this.C;delete this.G}; g.c.start=function(f){this.stop();this.cV=g.Iv(this.J,f!==void 0?f:this.D0)}; g.c.M0=function(f){this.isActive()||this.start(f)}; g.c.stop=function(){this.isActive()&&g.Kw.clearTimeout(this.cV);this.cV=0}; g.c.M9=function(){this.isActive()&&g.G6(this)}; g.c.isActive=function(){return this.cV!=0}; g.c.R7=function(){this.cV=0;this.C&&this.C.call(this.G)};g.f1=class extends g.$0{constructor(f,e,B){super();this.W=B!=null?f.bind(B):f;this.D0=e;this.J=null;this.C=!1;this.G=0;this.mu=null}V(f){this.J=arguments;this.mu||this.G?this.C=!0:xi(this)}stop(){this.mu&&(g.Kw.clearTimeout(this.mu),this.mu=null,this.C=!1,this.J=null)}pause(){this.G++}resume(){this.G--;this.G||!this.C||this.mu||(this.C=!1,xi(this))}bY(){super.bY();this.stop()}};g.oTG=class{constructor(f,e){this.C=f[g.Kw.Symbol.iterator]();this.G=e}[Symbol.iterator](){return this}next(){const f=this.C.next();return{value:f.done?void 0:this.G.call(void 0,f.value),done:f.done}}};g.Uk(g.eh,g.pI);g.c=g.eh.prototype;g.c.isPlaying=function(){return this.C==1}; g.c.isPaused=function(){return this.C==-1}; g.c.nt=function(){this.UT("begin")}; g.c.SG=function(){this.UT("end")}; g.c.onFinish=function(){this.UT("finish")}; g.c.onStop=function(){this.UT("stop")}; g.c.UT=function(f){this.dispatchEvent(f)};var V66=aY(function(){const f=g.BN("DIV");var e=g.IA?"-webkit":md?"-moz":null;let B="transition:opacity 1s linear;";e&&(B+=e+"-transition:opacity 1s linear;");e=xHM({style:B});if(f.nodeType===1&&/^(script|style)$/i.test(f.tagName))throw Error("");f.innerHTML=Js(e);return g.Um(f.firstChild,"transition")!=""});g.Uk(BZ,g.eh);g.c=BZ.prototype;g.c.play=function(){if(this.isPlaying())return!1;this.nt();this.UT("play");this.startTime=g.u0();this.C=1;if(V66())return g.uc(this.G,this.U),this.J=g.Iv(this.I$,void 0,this),!0;this.iV(!1);return!1}; g.c.I$=function(){g.WN(this.G);F3O(this.G,this.X);g.uc(this.G,this.V);this.J=g.Iv((0,g.VG)(this.iV,this,!1),this.W*1E3)}; g.c.stop=function(){this.isPlaying()&&this.iV(!0)}; g.c.iV=function(f){g.uc(this.G,"transition","");g.Kw.clearTimeout(this.J);g.uc(this.G,this.V);this.endTime=g.u0();this.C=0;if(f)this.onStop();else this.onFinish();this.SG()}; g.c.bY=function(){this.stop();BZ.lj.bY.call(this)}; g.c.pause=function(){};var maC={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0,"var":!0};rb("Element","attributes")||rb("Node","attributes");rb("Element","innerHTML")||rb("HTMLElement","innerHTML");rb("Node","nodeName");rb("Node","nodeType");rb("Node","parentNode");rb("Node","childNodes");rb("HTMLElement","style")||rb("Element","style");rb("HTMLStyleElement","sheet");var g_m=LP("getPropertyValue"),SN0=LP("setProperty");rb("Element","namespaceURI")||rb("Node","namespaceURI");var hVd={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var Da6,gwC,TPC,QU5,JG0;Da6=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]");gwC=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.lqw=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.HZ=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]");TPC=/^http:\/\/.*/;g.u65=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");QU5=/\s+/;JG0=/[\d\u06f0-\u06f9]/;Intl.NumberFormat.supportedLocalesOf(["pt-BR".replace("_","-")]);var CP=class{constructor(f){this.G=f}w$(){return new wb(this.G())}[Symbol.iterator](){return new vZ(this.G())}C(){return new vZ(this.G())}},wb=class extends g.q_{constructor(f){super();this.G=f}next(){return this.G.next()}[Symbol.iterator](){return new vZ(this.G)}C(){return new vZ(this.G)}},vZ=class extends CP{constructor(f){super(()=>f); this.J=f}next(){return this.J.next()}};ZL.prototype.clone=function(){return new ZL(this.C,this.X,this.J,this.W,this.V,this.U,this.G,this.K)}; ZL.prototype.equals=function(f){return this.C==f.C&&this.X==f.X&&this.J==f.J&&this.W==f.W&&this.V==f.V&&this.U==f.U&&this.G==f.G&&this.K==f.K};zK.prototype.clone=function(){return new zK(this.start,this.end)};(function(){if(zPC){var f=/Windows NT ([0-9.]+)/;return(f=f.exec(g.d0()))?f[1]:"0"}return Dp?(f=/1[0|1][_.][0-9_.]+/,(f=f.exec(g.d0()))?f[0].replace(/_/g,"."):"10"):g.zw?(f=/Android\s+([^\);]+)(\)|;)/,(f=f.exec(g.d0()))?f[1]:""):y36||PQ6||ItH?(f=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(f=f.exec(g.d0()))?f[1].replace(/_/g,"."):""):""})();var MWk=function(){if(g.wu)return aO(/Firefox\/([0-9.]+)/);if(g.db||g.Po||g.dC)return aA;if(g.PP){if(Zm()||RA()){var f=aO(/CriOS\/([0-9.]+)/);if(f)return f}return aO(/Chrome\/([0-9.]+)/)}if(g.oN&&!Zm())return aO(/Version\/([0-9.]+)/);if(RB||Ks){if(f=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.d0()))return f[1]+"."+f[2]}else if(g.kO)return(f=aO(/Android\s+([0-9.]+)/))?f:aO(/Version\/([0-9.]+)/);return""}();g.Uk(g.Y4,g.$0);g.c=g.Y4.prototype;g.c.subscribe=function(f,e,B){let n=this.G[f];n||(n=this.G[f]=[]);const r=this.U;this.C[r]=f;this.C[r+1]=e;this.C[r+2]=B;this.U=r+3;n.push(r);return r}; g.c.unsubscribe=function(f,e,B){if(f=this.G[f]){const n=this.C;if(f=f.find(function(r){return n[r+1]==e&&n[r+2]==B}))return this.nW(f)}return!1}; g.c.nW=function(f){const e=this.C[f];if(e){const B=this.G[e];this.V!=0?(this.J.push(f),this.C[f+1]=()=>{}):(B&&g.d2(B,f),delete this.C[f],delete this.C[f+1],delete this.C[f+2])}return!!e}; g.c.publish=function(f,e){var B=this.G[f];if(B){const r=Array(arguments.length-1);var n=arguments.length;let L;for(L=1;L0&&this.V==0)for(;B=this.J.pop();)this.nW(B)}}return L!=0}return!1}; g.c.clear=function(f){if(f){const e=this.G[f];e&&(e.forEach(this.nW,this),delete this.G[f])}else this.C.length=0,this.G={}}; g.c.bY=function(){g.Y4.lj.bY.call(this);this.clear();this.J.length=0};g.Ah.prototype.set=function(f,e){e===void 0?this.xD.remove(f):this.xD.set(f,g.Zy(e))}; g.Ah.prototype.get=function(f){let e;try{e=this.xD.get(f)}catch(B){return}if(e!==null)try{return JSON.parse(e)}catch(B){throw"Storage: Invalid value was encountered";}}; g.Ah.prototype.remove=function(f){this.xD.remove(f)};g.Uk(jh,g.Ah);jh.prototype.set=function(f,e){jh.lj.set.call(this,f,oO(e))}; jh.prototype.hs=function(f){f=jh.lj.get.call(this,f);if(f===void 0||f instanceof Object)return f;throw"Storage: Invalid value was encountered";}; jh.prototype.get=function(f){if(f=this.hs(f)){if(f=f.data,f===void 0)throw"Storage: Invalid value was encountered";}else f=void 0;return f};g.Uk(Vz,jh);Vz.prototype.set=function(f,e,B){if(e=oO(e)){if(B){if(B=B.length)return g.mM;var r=B.key(e++);if(f)return g.zm(r);r=B.getItem(r);if(typeof r!=="string")throw"Storage mechanism: Invalid value was encountered";return g.zm(r)}; return n}; g.c.clear=function(){Ue(this);this.C.clear()}; g.c.key=function(f){Ue(this);return this.C.key(f)};g.Uk(N9,mh);g.Uk(hh,mh);g.Uk(gb,Fo);gb.prototype.set=function(f,e){this.G.set(this.C+f,e)}; gb.prototype.get=function(f){return this.G.get(this.C+f)}; gb.prototype.remove=function(f){this.G.remove(this.C+f)}; gb.prototype.w$=function(f){const e=this.G[Symbol.iterator](),B=this,n=new g.q_;n.next=function(){var r=e.next();if(r.done)return r;for(r=r.value;r.slice(0,B.C.length)!=B.C;){r=e.next();if(r.done)return r;r=r.value}return g.zm(f?r.slice(B.C.length):B.G.get(r))}; return n};Ee.prototype.getValue=function(){return this.G}; Ee.prototype.clone=function(){return new Ee(this.C,this.G)};var eX=class{constructor(f){this.C=[];if(f)a:{let B;if(f instanceof eX){if(B=f.qA(),f=f.t0(),this.C.length<=0){var e=this.C;for(let n=0;n0;){const n=f-1>>1;if(e[n].C>B.C)e[f]=e[n],f=n;else break}e[f]=B}remove(){var f=this.C,e=f.length;const B=f[0];if(!(e<=0)){if(e==1)f.length=0;else{f[0]=f.pop();f=0;e=this.C; const r=e.length,L=e[f];for(;f>1;){var n=f*2+1;const d=f*2+2;n=dL.C)break;e[f]=e[n];f=n}e[f]=L}return B.getValue()}}t0(){const f=this.C,e=[],B=f.length;for(let n=0;n>>16&65535|0;for(var L;B!==0;){L=B>2E3?2E3:B;B-=L;do r=r+e[n++]|0,f=f+r|0;while(--L);r%=65521;f%=65521}return r|f<<16|0};for(var V3={},B0,gTd=[],n1=0;n1<256;n1++){B0=n1;for(var SnG=0;SnG<8;SnG++)B0=B0&1?3988292384^B0>>>1:B0>>>1;gTd[n1]=B0}V3=function(f,e,B,n){B=n+B;for(f^=-1;n>>8^gTd[(f^e[n])&255];return f^-1};var RS={};RS={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 ro=[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],He=[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],IOk=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],aS=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p5=Array(576);GK(p5);var ce=Array(60);GK(ce);var tp=Array(512);GK(tp);var n5=Array(256);GK(n5);var L5=Array(29);GK(L5);var kF=Array(30);GK(kF);var SJ,Eg,Q3,go=!1;var Ug;Ug=[new mq(0,0,0,0,function(f,e){var B=65535;for(B>f.c6-5&&(B=f.c6-5);;){if(f.qk<=1){l1(f);if(f.qk===0&&e===0)return 1;if(f.qk===0)break}f.WL+=f.qk;f.qk=0;var n=f.kE+B;if(f.WL===0||f.WL>=n)if(f.qk=f.WL-n,f.WL=n,YF(f,!1),f.B4.Sy===0)return 1;if(f.WL-f.kE>=f.E4-262&&(YF(f,!1),f.B4.Sy===0))return 1}f.yD=0;if(e===4)return YF(f,!0),f.B4.Sy===0?3:4;f.WL>f.kE&&YF(f,!1);return 1}), new mq(4,4,8,4,u1),new mq(4,5,16,8,u1),new mq(4,6,32,32,u1),new mq(4,4,16,16,Ft),new mq(8,16,32,32,Ft),new mq(8,16,128,128,Ft),new mq(8,32,128,256,Ft),new mq(32,128,258,1024,Ft),new mq(32,258,258,4096,Ft)];var hp={};hp=function(){this.input=null;this.yX=this.J3=this.uX=0;this.output=null;this.BO=this.Sy=this.X$=0;this.msg="";this.state=null;this.ud=2;this.W4=0};var T2=Object.prototype.toString; NI.prototype.push=function(f,e){var B=this.B4,n=this.options.chunkSize;if(this.ended)return!1;var r=e===~~e?e:e===!0?4:0;typeof f==="string"?B.input=M9(f):T2.call(f)==="[object ArrayBuffer]"?B.input=new Uint8Array(f):B.input=f;B.uX=0;B.J3=B.input.length;do{B.Sy===0&&(B.output=new Jh.YC(n),B.X$=0,B.Sy=n);f=PWl(B,r);if(f!==1&&f!==0)return this.SG(f),this.ended=!0,!1;if(B.Sy===0||B.J3===0&&(r===4||r===2))if(this.options.to==="string"){var L=Jh.CE(B.output,B.X$);e=L;L=L.length;if(L<65537&&(e.subarray&& hOw||!e.subarray))e=String.fromCharCode.apply(null,Jh.CE(e,L));else{for(var d="",t=0;t0||B.Sy===0)&&f!==1);if(r===4)return(B=this.B4)&&B.state?(n=B.state.status,n!==42&&n!==69&&n!==73&&n!==91&&n!==103&&n!==113&&n!==666?f=K5(B,-2):(B.state=null,f=n===113?K5(B,-3):0)):f=-2,this.SG(f),this.ended=!0,f===0;r===2&&(this.SG(0),B.Sy=0);return!0}; NI.prototype.SG=function(f){f===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Jh.IH(this.chunks));this.chunks=[];this.err=f;this.msg=this.B4.msg};var G2=()=>Math.random().toString(36).substring(7).split("").join("."),MI=`@@redux/INIT${G2()}`,fxm=`@@redux/REPLACE${G2()}`;var We=typeof Symbol==="function"&&Symbol.observable||"@@observable";var RUY=Dd(class extends bT{constructor(f){super(f)}},[0,AU,FMk,zZ,c4,zZ,-1,YO,c4,YO,-1,AU,YO,FMk,a$,[0,c4,-3,YO],zZ,-1,YO]);var gud=-1037962494;var ETG=function(f,e){return(()=>{const B=new UP5(f,e);return()=>B})()}("youtube.api.innertube.AttestationError",'[null,[["ATTESTATION_ERROR_UNKNOWN",0],["ATTESTATION_ERROR_VM_NOT_INITIALIZED",1],["ATTESTATION_ERROR_VM_NO_RESPONSE",2],["ATTESTATION_ERROR_VM_TIMEOUT",3],["ATTESTATION_ERROR_VM_INTERNAL_ERROR",4],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INVALID",5],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_NETWORK_ERROR",6],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_OFFLINE",7],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INTERNAL_ERROR",8],["ATTESTATION_ERROR_API_NOT_READY",9],["ATTESTATION_ERROR_DEVICE_OFFLINE",10],["ATTESTATION_ERROR_KEY_PAIR_INIT_FAILED",12],["ATTESTATION_ERROR_SIGNING_DATA_MISSING",13],["ATTESTATION_ERROR_SIGNING_FAILED",14],["ATTESTATION_ERROR_CERT_CHAIN_RETRIEVAL_FAILED",15]],null,[[11,11]]]');g.I=class{constructor(f){this.name=f}};var Y1C=new g.I("adInfoDialogEndpoint");var RlY=new g.I("adPingingEndpoint");var FhH=new g.I("crossDeviceProgressCommand");var xs=new g.I("actionCompanionAdRenderer");var S1=new g.I("adActionInterstitialRenderer");var Q3l=new g.I("adDurationRemainingRenderer");var a8=new g.I("adHoverTextButtonRenderer");var oxm=new g.I("adInfoDialogRenderer");var n6=new g.I("adMessageRenderer");var pj=new g.I("adPreviewRenderer");var sP=new g.I("adsEngagementPanelRenderer");var oF5=new g.I("dismissablePanelTextPortraitImageRenderer");var Cj=new g.I("adsEngagementPanelSectionListViewModel");var T15=new g.I("flyoutCtaRenderer");var Wu=new g.I("imageCompanionAdRenderer");var h0=new g.I("instreamAdPlayerOverlayRenderer");var iM0=new g.I("instreamSurveyAdBackgroundImageRenderer");var zg=new g.I("instreamSurveyAdPlayerOverlayRenderer");var rk=new g.I("instreamSurveyAdRenderer"),qz=new g.I("instreamSurveyAdSingleSelectQuestionRenderer"),Kj=new g.I("instreamSurveyAdMultiSelectQuestionRenderer"),rv=new g.I("instreamSurveyAdAnswerRenderer"),DY6=new g.I("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var BV=new g.I("instreamVideoAdRenderer");var J15=new g.I("textOverlayAdContentRenderer"),M6C=new g.I("enhancedTextOverlayAdContentRenderer"),GVH=new g.I("imageOverlayAdContentRenderer");var gE=new g.I("playerOverlayLayoutRenderer");var EI=new g.I("videoInterstitialButtonedCenteredLayoutRenderer");var mIO=new g.I("aboveFeedAdLayoutRenderer");var UI5=new g.I("belowPlayerAdLayoutRenderer");var FqM=new g.I("inPlayerAdLayoutRenderer");var Nod=new g.I("inPlayerOrganicOverlayAdLayoutRenderer");var tc=new g.I("playerBytesAdLayoutRenderer");var ZP=new g.I("playerBytesSequenceItemAdLayoutRenderer");var bX=new g.I("playerUnderlayAdLayoutRenderer");var nj=new g.I("adIntroRenderer");var fj=new g.I("playerBytesSequentialLayoutRenderer");var aR5=new g.I("slidingTextPlayerOverlayRenderer");var Lj=new g.I("surveyTextInterstitialRenderer");var HV=new g.I("videoAdTrackingRenderer");var YgG=new g.I("videoInterstitialCenteredLayoutViewModel");var xYO=new g.I("simpleAdBadgeRenderer");var SS=new g.I("skipAdRenderer"),WV6=new g.I("skipButtonRenderer");var R8=new g.I("adSlotRenderer");var wk=new g.I("squeezebackPlayerSidePanelRenderer");var s3w=new g.I("timedPieCountdownRenderer");var yH=new g.I("adAvatarViewModel");var Pd=new g.I("adBadgeViewModel");var IE=new g.I("adButtonViewModel");var XHk=new g.I("adDetailsLineViewModel");var y1m=new g.I("adDisclosureBannerViewModel");var Pa0=new g.I("adPodIndexViewModel");var IqG=new g.I("imageBackgroundViewModel");var $YG=new g.I("adGridCardCollectionViewModel");var i4C=new g.I("adGridCardTextViewModel");var fNg=new g.I("adPreviewViewModel");var eNw=new g.I("playerAdAvatarLockupCardButtonedViewModel");var B4C=new g.I("skipAdButtonViewModel");var ndM=new g.I("skipAdViewModel");var rC5=new g.I("timedPieCountdownViewModel");var LH6=new g.I("visitAdvertiserLinkViewModel");var Xq=new g.I("bannerImageLayoutViewModel");var yM=new g.I("topBannerImageTextIconButtonedLayoutViewModel");var Pu=new g.I("adsEngagementPanelLayoutViewModel");var vV=new g.I("displayUnderlayTextGridCardsLayoutViewModel");g.Ip=new g.I("browseEndpoint");var dNm=new g.I("confirmDialogEndpoint");var tRO=new g.I("commandContext");var uP6=new g.I("rawColdConfigGroup");var le5=new g.I("rawHotConfigGroup");g.g_=new g.I("commandExecutorCommand");var HGw=class extends bT{constructor(f){super(f)}};var k4g={npA:0,NAA:1,GDa:32,WuS:61,sCl:67,ieC:103,pdd:86,cFS:42,bei:60,ztY:62,Vvq:73,JFS:76,Ph9:88,QCC:90,yFS:99,EsS:98,d0a:100,vs9:102,uxA:41,Zed:69,RPL:70,HeI:71,lA:2,EZ:27,ANDROID:3,f8:54,wx:14,S4:91,MI:55,n8:24,K8:20,Fn:18,gx:21,mX:104,NI:30,Ib:29,Au:28,Ohi:101,Tx:34,j4:36,DS:38,IOS:5,K3:15,S8:92,Fs:40,gB:25,m$:17,kc:19,OD:64,lZ:66,aN:26,NQ:22,xc:33,zk:68,IN:35,qQ:53,j8:37,Dd:39,dkq:7,sXd:57,yEA:43,Zhq:59,uGa:93,z3:74,Rtl:75,Hhd:85,Uki:65,XLY:80,BAI:8,PCA:10,wLI:58,f_Y:63,YA9:72,xg:23,XdA:11, BXq:13,KX:12,QXY:16,rFq:56,Lu9:31,Al:77,IW:84,ePC:87,Tk:89,Ap:94,nH:95};var Zu=class extends bT{constructor(f){super(f)}Wm(){return rf(this,3)}Pm(){return rf(this,5)}Jv(f){return kl(this,5,f)}};var vL=class extends bT{constructor(f){super(f)}};var CV5=class extends bT{constructor(f){super(f)}};var cDk=class extends bT{constructor(f){super(f)}getDeviceId(){return rf(this,6)}nC(f){var e=lw(this,9,zd,3,!0);yh(e,f);return e[f]}getPlayerType(){return Lt(this,36)}setHomeGroupInfo(f){return $1(this,CV5,81,f)}clearLocationPlayabilityToken(){return Y1(this,89)}};var ADd=class extends bT{constructor(f){super(f)}getValue(){return rf(this,M7(this,jIG,2))}},jIG=[2,3,4,5,6];var wz6=class extends bT{constructor(f){super(f)}setTrackingParams(f){return Y1(this,1,X_(f,!1))}};var YzH=class extends bT{constructor(f){super(f)}};var bO=class extends bT{constructor(f){super(f)}nC(f){var e=lw(this,5,aW,3,!0);yh(e,f);return e[f]}};var OYG=class extends bT{constructor(f){super(f)}getToken(){return t8(this,2)}setToken(f){return kl(this,2,f)}};var iR=class extends bT{constructor(f){super(f)}setSafetyMode(f){return wf(this,5,f)}};var $A=class extends bT{constructor(f){super(f)}J(f){return $1(this,cDk,1,f)}};var i4=new g.I("thumbnailLandscapePortraitRenderer");g.vdO=new g.I("changeEngagementPanelVisibilityAction");var Hg5=new g.I("continuationCommand");var bGd=new g.I("openPopupAction");g.Vm=new g.I("signalAction");g.L1=new g.I("webCommandMetadata");var ia6=new g.I("metadataBadgeRenderer");var tsM=new g.I("signalServiceEndpoint");var le=new g.I("innertubeCommand");var ZG5=new g.I("loggingDirectives");var o6k={yU:"EMBEDDED_PLAYER_MODE_UNKNOWN",PA:"EMBEDDED_PLAYER_MODE_DEFAULT",dD:"EMBEDDED_PLAYER_MODE_PFP",QU:"EMBEDDED_PLAYER_MODE_PFL"};var K4Y=new g.I("channelThumbnailEndpoint");var XPY=new g.I("embeddedPlayerErrorMessageRenderer");var Dr5=new g.I("embeddedPlayerOverlayVideoDetailsRenderer"),q7O=new g.I("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),zpY=new g.I("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var WEH=new g.I("embedsInfoPanelRenderer");var dv=new g.I("feedbackEndpoint");var RNO=new g.I("youtubeIconSource");var KH5=new g.I("callToActionButtonViewModel");var q46=new g.I("interactionLoggingCommandMetadata");var agg={Ch9:"WEB_DISPLAY_MODE_UNKNOWN",I_d:"WEB_DISPLAY_MODE_BROWSER",TXj:"WEB_DISPLAY_MODE_MINIMAL_UI",osL:"WEB_DISPLAY_MODE_STANDALONE",AEC:"WEB_DISPLAY_MODE_FULLSCREEN"};var zNO=class extends bT{constructor(f){super(f)}getPlayerType(){return Lt(this,7)}uj(){return rf(this,19)}setVideoId(f){return kl(this,19,f)}};var c4C=class extends bT{constructor(f){super(f)}};var pi5=class extends bT{constructor(f){super(f)}};var B6=class extends bT{constructor(f){super(f,500)}},aN5=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330, 331,332,334,337,338,340,344,348,350,351,352,353,354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531,536,537,538,539,541];var pzm=new g.I("loggingContext");var VIG=class extends bT{constructor(f){super(f)}};var kDH=class extends bT{constructor(f){super(f)}uj(){return t8(this,M7(this,xA,1))}setVideoId(f){return D3(this,1,xA,Gd(f))}getPlaylistId(){return t8(this,M7(this,xA,2))}},xA=[1,2];g.IH=class extends bT{constructor(f){super(f)}};g.IH.prototype.gL=eC(0);var cC5=new g.I("dismissPlayerOverlayCommand");var n2=new g.I("changeKeyedMarkersVisibilityCommand");var Y4d=new g.I("changeMarkersVisibilityCommand");var ep5=new g.I("loadMarkersCommand");var ACC=new g.I("suggestedActionDataViewModel");var O9G=new g.I("timelyActionViewModel");var jVl=new g.I("timelyActionsOverlayViewModel");var PYC=new g.I("productListItemRenderer");var jkm=new g.I("shoppingOverlayRenderer");var M1O=new g.I("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var OG0=new g.I("adFeedbackEndpoint");var od5=new g.I("menuEndpoint");var VRG=new g.I("phoneDialerEndpoint");var lN0=new g.I("sendSmsEndpoint");var RpC=new g.I("copyTextEndpoint");var uJ6=new g.I("shareEndpoint"),FHk=new g.I("shareEntityEndpoint"),mN6=new g.I("shareEntityServiceEndpoint"),UNm=new g.I("webPlayerShareEntityServiceEndpoint");g.jL=new g.I("urlEndpoint");g.iK=new g.I("watchEndpoint");var N4m=new g.I("watchPlaylistEndpoint");var hNw=new g.I("compositeVideoOverlayRenderer");var gdw=new g.I("miniplayerRenderer");var g5m=new g.I("paidContentOverlayRenderer");var ffC=new g.I("playerMutedAutoplayOverlayRenderer"),e9w=new g.I("playerMutedAutoplayEndScreenRenderer");var XKg=new g.I("unserializedPlayerResponse"),vkk=new g.I("unserializedPlayerResponse");var S4d=new g.I("playlistEditEndpoint");var $u=new g.I("buttonRenderer"),tO=new g.I("toggleButtonRenderer");var jS5=new g.I("counterfactualRenderer");var EdY=new g.I("resolveUrlCommandMetadata");var QkO=new g.I("modifyChannelNotificationPreferenceEndpoint");var Z$Y=new g.I("pingingEndpoint");var T4g=new g.I("unsubscribeEndpoint");g.C2=new g.I("subscribeButtonRenderer");var DNl=new g.I("subscribeEndpoint");var swH=new g.I("buttonViewModel");var O5w=new g.I("qrCodeRenderer");var JCm={ZY:"LIVING_ROOM_APP_MODE_UNSPECIFIED",dJ:"LIVING_ROOM_APP_MODE_MAIN",QK:"LIVING_ROOM_APP_MODE_KIDS",yK:"LIVING_ROOM_APP_MODE_MUSIC",uQ:"LIVING_ROOM_APP_MODE_UNPLUGGED",PT:"LIVING_ROOM_APP_MODE_GAMING"};var Pyd=new g.I("autoplaySwitchButtonRenderer");var Ni,DKG,z9m,MT0;Ni=new g.I("decoratedPlayerBarRenderer");DKG=new g.I("chapteredPlayerBarRenderer");z9m=new g.I("multiMarkersPlayerBarRenderer");MT0=new g.I("chapterRenderer");g.sGY=new g.I("markerRenderer");var fZO=new g.I("decoratedPlayheadRenderer");var $rM=new g.I("desktopOverlayConfigRenderer");var VJH=new g.I("engagementPanelSectionListRenderer");var IfC=new g.I("gatedActionsOverlayViewModel");var P50=new g.I("heatMarkerRenderer");var ytm=new g.I("heatmapRenderer");var f0M=new g.I("watchToWatchTransitionRenderer");var xrw=new g.I("playlistPanelRenderer");var MRw=new g.I("productUpsellSuggestedActionViewModel");var H0=new g.I("suggestedActionTimeRangeTrigger"),G45=new g.I("suggestedActionsRenderer"),xNw=new g.I("suggestedActionRenderer");var Pud=new g.I("timedMarkerDecorationRenderer");var ImH=new g.I("cipher");var yH6=new g.I("playerVars");var ba5=new g.I("playerVars");var WH5=g.Kw.window,fN=WH5?.yt?.config_||WH5?.ytcfg?.data_||{};g.qH("yt.config_",fN);var nN=[];var r50=/^[\w.]*$/,n6m={q:!0,search_query:!0},B8H=String(Hb);var YD=new class{constructor(f,e){this.C=f;this.G=e}}(window,window.document);g.qH("yt.ads_.signals_.getAdSignalsString",function(f){return CN(A7(f))});g.u0();var jZ="XMLHttpRequest"in g.Kw?()=>new XMLHttpRequest:null;var skk="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods theme".split(" ");[...skk];var EV={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"},KlY=["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",...skk],Mg=!1,wng=SZ;var xD=class extends Ek{constructor(f,e,B){super(`${f}, errorCode=${e}`);this.errorCode=e;this.xhr=B;this.name="PromiseAjaxError"}},qjm=class{constructor(f){this.xhr=f}};var Xx=class{constructor(f=null){this.C=f;this.J=0;this.G=null}then(f,e,B){return this.C?this.C.then(f,e,B):this.J===1&&f?(f=f.call(B,this.G))&&typeof f.then==="function"?f:Pb(f):this.J===2&&e?(f=e.call(B,this.G))&&typeof f.then==="function"?f:yY(f):this}getValue(){return this.G}};Xx.prototype.$goog_Thenable=!0;var I6=!1;var ye=RB||Ks;var jW5=/^([0-9\.]+):([0-9\.]+)$/;var N85=class extends Ek{constructor(f){super(f.message||f.description||f.name);this.isMissing=f instanceof m9;this.isTimeout=f instanceof xD&&f.errorCode=="net.timeout";this.isCanceled=f instanceof W7}};N85.prototype.name="BiscottiError";var m9=class extends Ek{constructor(){super("Biscotti ID is missing from server")}};m9.prototype.name="BiscottiMissingError";var lxG={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Fe=null;var QWM={};var Xzm=0,Ny=g.IA?"webkit":md?"moz":g.db?"ms":g.dC?"o":"",yCm=g.zO("ytDomDomGetNextId")||(()=>++Xzm); g.qH("ytDomDomGetNextId",yCm);var PVk={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},Wlw=class{constructor(f){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches= null;try{if(f=f||window.event){this.event=f;for(let n in f)n in PVk||(this[n]=f[n]);this.scale=f.scale;this.rotation=f.rotation;var e=f.target||f.srcElement;e&&e.nodeType==3&&(e=e.parentNode);this.target=e;var B=f.relatedTarget;if(B)try{B=B.nodeName?B:null}catch(n){B=null}else this.type=="mouseover"?B=f.fromElement:this.type=="mouseout"&&(B=f.toElement);this.relatedTarget=B;this.clientX=f.clientX!=void 0?f.clientX:f.pageX;this.clientY=f.clientY!=void 0?f.clientY:f.pageY;this.keyCode=f.keyCode?f.keyCode: f.which;this.charCode=f.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=f.altKey;this.ctrlKey=f.ctrlKey;this.shiftKey=f.shiftKey;this.metaKey=f.metaKey;this.C=f.pageX;this.G=f.pageY}}catch(n){}}preventDefault(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}stopPropagation(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}stopImmediatePropagation(){this.event&&(this.event.cancelBubble=!0, this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())}};var Tw=g.Kw.ytEventsEventsListeners||{};g.qH("ytEventsEventsListeners",Tw);var xZG=g.Kw.ytEventsEventsCounter||{count:0};g.qH("ytEventsEventsCounter",xZG);var IN5=aY(function(){let f=!1;try{const e=Object.defineProperty({},"passive",{get:function(){f=!0}}); window.addEventListener("test",null,e)}catch(e){}return f}),sWO=aY(function(){let f=!1; try{const e=Object.defineProperty({},"capture",{get:function(){f=!0}}); window.addEventListener("test",null,e)}catch(e){}return f});var kR;kR=window;g.T=kR.ytcsi&&kR.ytcsi.now?kR.ytcsi.now:kR.performance&&kR.performance.timing&&kR.performance.now&&kR.performance.timing.navigationStart?()=>kR.performance.timing.navigationStart+kR.performance.now():()=>(new Date).getTime();g.Uk(xB,g.$0);xB.prototype.N=function(f){f.C===void 0&&M25(f);var e=f.C;f.G===void 0&&M25(f);this.C=new g.OE(e,f.G)}; xB.prototype.dn=function(){return this.C||new g.OE}; xB.prototype.Ed=function(){if(this.C){var f=(0,g.T)();if(this.V!=0){var e=this.U,B=this.C,n=e.x-B.x;e=e.y-B.y;n=Math.sqrt(n*n+e*e)/(f-this.V);this.G[this.J]=Math.abs((n-this.W)/this.W)>.5?1:0;e=0;for(B=0;B<4;B++)e+=this.G[B]||0;e>=3&&this.X();this.W=n}this.V=f;this.U=this.C;this.J=(this.J+1)%4}}; xB.prototype.bY=function(){g.Fx(this.K);g.Jl(this.A)};var C1=class extends g.$0{constructor(f){super();this.X=[];this.G6=f||this}D(f,e,B,n,r){B=g.LN((0,g.VG)(B,n||this.G6));B={target:f,name:e,callback:B};let L;r&&IN5()&&(L={passive:!0});f.addEventListener(e,B.callback,L);this.X.push(B);return B}uh(f){for(let e=0;e{e.preventDefault();this.G=e}); f.addEventListener("appinstalled",()=>{this.C=!0},{once:!0})}};var eY=class{constructor(){this.xV=!0}J5(f,e){f={};var B=[];"USER_SESSION_ID"in fN&&B.push({key:"u",value:g.Q("USER_SESSION_ID")});if(B=Ss(B))f.Authorization=B,B=e=e?.sessionIndex,B===void 0&&(B=Number(g.Q("SESSION_INDEX",0)),B=isNaN(B)?0:B),g.UV("voice_search_auth_header_removal")||(f["X-Goog-AuthUser"]=B.toString()),"INNERTUBE_HOST_OVERRIDE"in fN||(f["X-Origin"]=window.location.origin),e===void 0&&"DELEGATED_SESSION_ID"in fN&&(f["X-Goog-PageId"]=g.Q("DELEGATED_SESSION_ID"));return f}};var RF={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var rS=g.zO("ytglobal.prefsUserPrefsPrefs_")||{};g.qH("ytglobal.prefsUserPrefsPrefs_",rS); var iuO=class{constructor(){this.C=g.Q("ALT_PREF_COOKIE_NAME","PREF");this.G=g.Q("ALT_PREF_COOKIE_DOMAIN","youtube.com");const f=g.fs(this.C);f&&this.parse(f)}get(f,e){tn(f);dS(f);f=rS[f]!==void 0?rS[f].toString():null;return f!=null?f:e?e:""}set(f,e){tn(f);dS(f);if(e==null)throw Error("ExpectedNotNull");rS[f]=e.toString()}jI(f){return!!((f3k(`f${Math.floor(f/31)+1}`)||0)&1<{let f;return()=>{f||(f=new Qt("ytidb"));return f}})();var pi=[],aN,zq=!1;var dFG,ti5,HV0,k9Y,Ve,txG; dFG={AUTH_INVALID:"No user identifier specified.",EXPLICIT_ABORT:"Transaction was explicitly aborted.",IDB_NOT_SUPPORTED:"IndexedDB is not supported.",MISSING_INDEX:"Index not created.",MISSING_OBJECT_STORES:"Object stores not created.",DB_DELETED_BY_MISSING_OBJECT_STORES:"Database is deleted because expected object stores were not created.",DB_REOPENED_BY_MISSING_OBJECT_STORES:"Database is reopened because expected object stores were not created.",UNKNOWN_ABORT:"Transaction was aborted for unknown reasons.",QUOTA_EXCEEDED:"The current transaction exceeded its quota limitations.", QUOTA_MAYBE_EXCEEDED:"The current transaction may have failed because of exceeding quota limitations.",EXECUTE_TRANSACTION_ON_CLOSED_DB:"Can't start a transaction on a closed database",INCOMPATIBLE_DB_VERSION:"The binary is incompatible with the database version"}; ti5={AUTH_INVALID:"ERROR",EXECUTE_TRANSACTION_ON_CLOSED_DB:"WARNING",EXPLICIT_ABORT:"IGNORED",IDB_NOT_SUPPORTED:"ERROR",MISSING_INDEX:"WARNING",MISSING_OBJECT_STORES:"ERROR",DB_DELETED_BY_MISSING_OBJECT_STORES:"WARNING",DB_REOPENED_BY_MISSING_OBJECT_STORES:"WARNING",QUOTA_EXCEEDED:"WARNING",QUOTA_MAYBE_EXCEEDED:"WARNING",UNKNOWN_ABORT:"WARNING",INCOMPATIBLE_DB_VERSION:"WARNING"}; HV0={AUTH_INVALID:!1,EXECUTE_TRANSACTION_ON_CLOSED_DB:!1,EXPLICIT_ABORT:!1,IDB_NOT_SUPPORTED:!1,MISSING_INDEX:!1,MISSING_OBJECT_STORES:!1,DB_DELETED_BY_MISSING_OBJECT_STORES:!1,DB_REOPENED_BY_MISSING_OBJECT_STORES:!1,QUOTA_EXCEEDED:!1,QUOTA_MAYBE_EXCEEDED:!0,UNKNOWN_ABORT:!0,INCOMPATIBLE_DB_VERSION:!1}; g.OU=class extends g.Dj{constructor(f,e={},B=dFG[f],n=ti5[f],r=HV0[f]){super(B,{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:f,...e});this.type=f;this.message=B;this.level=n;this.C=r;Object.setPrototypeOf(this,g.OU.prototype)}};k9Y=class extends g.OU{constructor(f,e){super("MISSING_OBJECT_STORES",{expectedObjectStores:e,foundObjectStores:f},dFG.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,k9Y.prototype)}}; Ve=class extends Error{constructor(f,e){super();this.index=f;this.objectStore=e;Object.setPrototypeOf(this,Ve.prototype)}};txG=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];var UU;UU=class{constructor(f){this.C=f}};g.FD=class{constructor(f){this.state={status:"PENDING"};this.C=[];this.G=[];f=f.C;const e=n=>{if(this.state.status==="PENDING"){this.state={status:"FULFILLED",value:n};for(const r of this.C)r()}},B=n=>{if(this.state.status==="PENDING"){this.state={status:"REJECTED", reason:n};for(const r of this.G)r()}}; try{f(e,B)}catch(n){B(n)}}static all(f){return new g.FD(new UU((e,B)=>{const n=[];let r=f.length;r===0&&e(n);for(let L=0;L{n[L]=d;r--;r===0&&e(n)}).catch(d=>{B(d)})}))}static resolve(f){return new g.FD(new UU((e,B)=>{f instanceof g.FD?f.then(e,B):e(f)}))}static reject(f){return new g.FD(new UU((e,B)=>{B(f)}))}then(f,e){const B=f??kpH,n=e??HrG; return new g.FD(new UU((r,L)=>{this.state.status==="PENDING"?(this.C.push(()=>{CwC(this,this,B,r,L)}),this.G.push(()=>{wr5(this,this,n,r,L)})):this.state.status==="FULFILLED"?CwC(this,this,B,r,L):this.state.status==="REJECTED"&&wr5(this,this,n,r,L)}))}catch(f){return this.then(void 0,f)}};var Zr5=class{constructor(f,e){this.request=f;this.cursor=e}};var uyH=class{constructor(f,e){this.C=f;this.options=e;this.transactionCount=0;this.J=Math.round((0,g.T)());this.G=!1}add(f,e,B){return g.SY(this,[f],{mode:"readwrite",XG:!0,commit:gS()},n=>n.objectStore(f).add(e,B))}clear(f){return g.SY(this,[f],{mode:"readwrite", XG:!0},e=>e.objectStore(f).clear())}close(){this.C.close(); this.options?.closed&&this.options.closed()}count(f,e){return g.SY(this,[f],{mode:"readonly",XG:!0,commit:gS()},B=>B.objectStore(f).count(e))}delete(f,e){return g.SY(this,[f],{mode:"readwrite", XG:!0,commit:gS()&&!(e instanceof IDBKeyRange)},B=>B.objectStore(f).delete(e))}get(f,e){return g.SY(this,[f],{mode:"readonly", XG:!0,commit:gS()},B=>B.objectStore(f).get(e))}getAll(f,e,B){return g.SY(this,[f],{mode:"readonly", XG:!0},n=>n.objectStore(f).getAll(e,B))}put(f,e,B){return g.SY(this,[f],{mode:"readwrite", XG:!0,commit:gS()},n=>n.objectStore(f).put(e,B))}objectStoreNames(){return Array.from(this.C.objectStoreNames)}getName(){return this.C.name}},prC=class{constructor(f){this.C=f}add(f,e){return NM(this.C.add(f,e))}autoIncrement(){return this.C.autoIncrement}clear(){return NM(this.C.clear()).then(()=>{})}count(f){return NM(this.C.count(f))}delete(f){return f instanceof IDBKeyRange?Ylk(this,f):NM(this.C.delete(f))}get(f){return NM(this.C.get(f))}getAll(f,e){return"getAll"in IDBObjectStore.prototype?NM(this.C.getAll(f, e)):A6G(this,f,e)}index(f){try{return new Ck0(this.C.index(f))}catch(e){if(e instanceof Error&&e.name==="NotFoundError")throw new Ve(f,this.C.name); throw e;}}getName(){return this.C.name}keyPath(){return this.C.keyPath}put(f,e){return NM(this.C.put(f,e))}},qlm=class{constructor(f){this.C=f;this.G=new Map;this.aborted=!1;this.done=new Promise((e,B)=>{this.C.addEventListener("complete",()=>{e()}); this.C.addEventListener("error",n=>{n.currentTarget===n.target&&B(this.C.error)}); this.C.addEventListener("abort",()=>{var n=this.C.error;if(n)B(n);else if(!this.aborted){n=g.OU;var r=this.C.objectStoreNames;const L=[];for(let d=0;de.delete().then(()=>g.MM(e)))}get(f){return NM(this.C.get(f))}getAll(f,e){return"getAll"in IDBIndex.prototype?NM(this.C.getAll(f,e)):VxO(this,f,e)}keyPath(){return this.C.keyPath}unique(){return this.C.unique}}, l3g=class{constructor(f,e){this.request=f; this.cursor=e}delete(){return NM(this.cursor.delete()).then(()=>{})}getValue(){return this.cursor.value}update(f){return NM(this.cursor.update(f))}};var wa5=class{constructor(f,e){this.name=f;this.options=e;this.J=!0;this.W=this.V=0}G(f,e,B={}){return m7d(f,e,B)}delete(f={}){return xI(this.name,f)}open(){if(!this.J)throw U75(this);if(this.C)return this.C;let f;const e=()=>{this.C===f&&(this.C=void 0)},B={blocking:r=>{r.close()}, closed:e,v1:e,upgrade:this.options.upgrade},n=async()=>{var r=Error().stack??"";try{const t=await this.G(this.name,this.options.version,B);var L=t,d=this.options;const H=[];for(const k of Object.keys(d.lf)){const {sT:C,acA:w=Number.MAX_VALUE}=d.lf[k];!(L.C.version>=C)||L.C.version>=w||L.C.objectStoreNames.contains(k)||H.push(k)}if(H.length!==0){const k=Object.keys(this.options.lf),C=t.objectStoreNames();if(this.Wthis.options.version+1)throw r.close(),this.J=!1,U75(this,L);return r}e();t instanceof Error&&!g.UV("ytidb_async_stack_killswitch")&&(t.stack=`${t.stack}\n${r.substring(r.indexOf("\n")+1)}`);throw lo(t,this.name,"",this.options.version??-1);}}; return this.C=f=n()}};var sU=new wa5("YtIdbMeta",{lf:{databases:{sT:1}},upgrade(f,e){e(1)&&g.EU(f,"databases",{keyPath:"actualName"})}});var $I,IN=new class{constructor(){}}(new class{constructor(){}});new g.rF;var sQM=class extends wa5{constructor(f,e){super(f,e);this.options=e;An(f)}G(f,e,B={}){return(this.options.shared?J66:D7H)(f,e,{...B})}delete(f={}){return(this.options.shared?W7C:Mx5)(this.name,f)}};var y65=g.BL("ytGcfConfig",{lf:{coldConfigStore:{sT:1},hotConfigStore:{sT:1}},shared:!1,upgrade(f,e){e(1)&&(g.Tq(g.EU(f,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Tq(g.EU(f,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},version:1});var vNw=class extends g.$0{constructor(){super();this.G=[];this.C=[];const f=g.zO("yt.gcf.config.hotUpdateCallbacks");f?(this.G=[...f],this.C=f):(this.C=[],g.qH("yt.gcf.config.hotUpdateCallbacks",this.C))}bY(){for(const e of this.G){var f=this.C;const B=f.indexOf(e);B>=0&&f.splice(B,1)}this.G.length=0;super.bY()}};var rq=class{constructor(){this.W=!1;this.J=this.V=0;this.U=new vNw;this.aX={Njq:()=>{this.W=!0}, Oca:()=>this.C, cqY:f=>{L8(this,f)}, Jv:f=>{this.Jv(f)}, ARj:f=>{dq(this,f)}, Wm:()=>this.coldHashData, Pm:()=>this.hotHashData, GvI:()=>this.G, IwY:()=>tT(), TjA:()=>HL(), AIj:()=>g.zO("yt.gcf.config.coldHashData"), oKC:()=>g.zO("yt.gcf.config.hotHashData"), HWq:()=>{r8w(this)}, q2A:()=>{this.Jv(void 0);kn(this);delete rq.instance}, CEj:f=>{this.J=f}, NCq:()=>this.J}}sO(){return HL()??g.Q("RAW_HOT_CONFIG_GROUP")}Jv(f){this.hotHashData=f; g.qH("yt.gcf.config.hotHashData",this.hotHashData||null)}};var bVH=typeof TextEncoder!=="undefined"?new TextEncoder:null,Sim=bVH?f=>bVH.encode(f):f=>{f=g.Y_(f); const e=new Uint8Array(f.length);for(let B=0;B{}; this.OS=()=>{}; this.now=Date.now;this.q7=!1;this.aX={ofY:e=>{this.Dr=e}, UMd:()=>{this.J()}, SF:()=>{this.V()}, qK:async e=>{await this.qK(e)}, gp:(e,B)=>this.gp(e,B), OW:()=>{this.OW()}}; this.Iw=f.Iw??100;this.Wi=f.Wi??1;this.Ic=f.Ic??2592E6;this.NS=f.NS??12E4;this.Vh=f.Vh??5E3;this.Dr=f.Dr??void 0;this.Ri=!!f.Ri;this.oi=f.oi??.1;this.LI=f.LI??10;f.handleError&&(this.handleError=f.handleError);f.OS&&(this.OS=f.OS);f.q7&&(this.q7=f.q7);f.SZ&&(this.SZ=f.SZ);this.SI=f.SI;this.Na=f.Na;this.RR=f.RR;this.GZ=f.GZ;this.sendFn=f.sendFn;this.mK=f.mK;this.TY=f.TY;mx(this)&&(!this.SI||this.SI("networkless_logging"))&&J8G(this)}writeThenSend(f,e={}){if(mx(this)&&this.C){const B={url:f,options:e, timestamp:this.now(),status:"NEW",sendCount:0};this.RR.set(B,this.Dr).then(n=>{B.id=n;this.GZ.rZ()&&this.qK(B)}).catch(n=>{this.qK(B); Uq(this,n)})}else this.sendFn(f,e)}sendThenWrite(f,e={},B){if(mx(this)&&this.C){const n={url:f, options:e,timestamp:this.now(),status:"NEW",sendCount:0};this.SI&&this.SI("nwl_skip_retry")&&(n.skipRetry=B);if(this.GZ.rZ()||this.SI&&this.SI("nwl_aggressive_send_then_write")&&!n.skipRetry){if(!n.skipRetry){const r=e.onError?e.onError:()=>{}; e.onError=async(L,d)=>{await this.RR.set(n,this.Dr).catch(t=>{Uq(this,t)}); r(L,d)}}this.sendFn(f,e,n.skipRetry)}else this.RR.set(n,this.Dr).catch(r=>{this.sendFn(f,e,n.skipRetry); Uq(this,r)})}else B=this.SI&&this.SI("nwl_skip_retry")&&B,this.sendFn(f,e,B)}sendAndWrite(f,e={}){if(mx(this)&&this.C){const B={url:f, options:e,timestamp:this.now(),status:"NEW",sendCount:0};let n=!1;const r=e.onSuccess?e.onSuccess:()=>{}; B.options.onSuccess=(L,d)=>{B.id!==void 0?this.RR.sS(B.id,this.Dr):n=!0;this.GZ.sY&&this.SI&&this.SI("vss_network_hint")&&this.GZ.sY(!0);r(L,d)}; this.sendFn(B.url,B.options,void 0,!0);this.RR.set(B,this.Dr).then(L=>{B.id=L;n&&this.RR.sS(B.id,this.Dr)}).catch(L=>{Uq(this,L)})}else this.sendFn(f,e,void 0,!0)}J(){if(!mx(this))throw Error("IndexedDB is not supported: throttleSend"); this.G||(this.G=this.Na.Br(async()=>{const f=await this.RR.iS("NEW",this.Dr);f?(await this.qK(f),this.G&&(this.G=0,this.J())):this.V()},this.Iw))}V(){this.Na.lK(this.G); this.G=0}async qK(f){if(!mx(this))throw Error("IndexedDB is not supported: immediateSend");f.id!==void 0&&(await this.RR.Hv(f.id,this.Dr)||this.OS(Error("The request cannot be found in the database.")));this.gp(f,this.Ic)?(f.skipRetry||(f=xSC(this,f)),f&&(f.skipRetry&&f.id!==void 0&&await this.RR.sS(f.id,this.Dr),this.sendFn(f.url,f.options,!!f.skipRetry))):(this.OS(Error("Networkless Logging: Stored logs request expired age limit")),f.id!==void 0&&await this.RR.sS(f.id,this.Dr))}gp(f,e){f=f.timestamp; return this.now()-f>=e?!1:!0}OW(){if(!mx(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.RR.iS("QUEUED",this.Dr).then(f=>{f&&!this.gp(f,this.NS)?this.Na.Br(async()=>{f.id!==void 0&&await this.RR.UB(f.id,this.Dr);this.OW()}):this.GZ.rZ()&&this.J()})}};var NB;var Neg={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,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,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,tvhtml5DeviceStorageStats:535,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336, appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358, webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376, parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394, prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418, sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501, parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297, biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456, youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486, crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511, embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534, mdxLocalNetworkPermissionRequestEvent:536,mdxLocalNetworkPermissionResponseEvent:537,sessionReplayEvent:538,sessionReplayStatusEvent:539,loggingReliabilityProbe:540,keyValueStoreStatsEvent:541,deviceLocationPermissionEvent:542,remoteControlStarted:543,remoteControlCompleted:544};var e7O=g.BL("ServiceWorkerLogsDatabase",{lf:{SWHealthLog:{sT:1}},shared:!0,upgrade:(f,e)=>{e(1)&&g.Tq(g.EU(f,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var Sl={},wXM=0;var Eq;var Du=class{constructor(){this.C=new Map;this.G=!1}requestComplete(f,e){e&&(this.G=!0);f=this.removeParams(f);this.C.get(f)||this.C.set(f,e)}isEndpointCFR(f){f=this.removeParams(f);return(f=this.C.get(f))?!1:f===!1&&this.G?!0:null}removeParams(f){return f.split("?")[0]}};Du.prototype.removeParams=Du.prototype.removeParams;Du.prototype.isEndpointCFR=Du.prototype.isEndpointCFR;Du.prototype.requestComplete=Du.prototype.requestComplete;Du.getInstance=ZOl;var JT=class extends g.pI{constructor(){super();this.G=!1;this.C=lOM();this.C.listen("networkstatus-online",()=>{if(this.G&&g.UV("offline_error_handling")){var f=TY().get("errors",!0);if(f){for(const e in f)if(f[e]){const B=new g.Dj(e,"sent via offline_errors");B.name=f[e].name;B.stack=f[e].stack;B.level=f[e].level;g.rZ(B)}TY().set("errors",{},2592E3,!0)}}})}rZ(){return this.C.rZ()}sY(f){this.C.C=f}Uf(){const f=window.navigator.onLine; return f===void 0?!0:f}nT(){this.G=!0}listen(f,e){return this.C.listen(f,e)}I0(f){return mJ(this.C,f)}};JT.prototype.sendNetworkCheckRequest=JT.prototype.I0;JT.prototype.listen=JT.prototype.listen;JT.prototype.enableErrorFlushing=JT.prototype.nT;JT.prototype.getWindowStatus=JT.prototype.Uf;JT.prototype.networkStatusHint=JT.prototype.sY;JT.prototype.isNetworkAvailable=JT.prototype.rZ;JT.getInstance=R7C;g.v0=class extends g.pI{constructor(f={}){super();this.C=this.V=0;this.G=R7C();const e=g.zO("yt.networkStatusManager.instance.listen").bind(this.G);e&&(f.rateLimit?(this.rateLimit=f.rateLimit,e("networkstatus-online",()=>{KDl(this,"publicytnetworkstatus-online")}),e("networkstatus-offline",()=>{KDl(this,"publicytnetworkstatus-offline")})):(e("networkstatus-online",()=>{this.dispatchEvent("publicytnetworkstatus-online")}),e("networkstatus-offline",()=>{this.dispatchEvent("publicytnetworkstatus-offline")})))}rZ(){const f= g.zO("yt.networkStatusManager.instance.isNetworkAvailable"); return f?f.bind(this.G)():!0}sY(f){const e=g.zO("yt.networkStatusManager.instance.networkStatusHint").bind(this.G);e&&e(f)}async I0(f){const e=g.zO("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(this.G);return g.UV("skip_network_check_if_cfr")&&ZOl().isEndpointCFR("generate_204")?new Promise(B=>{this.sY(window.navigator?.onLine||!0);B(this.rZ())}):e?e(f):!0}};var b6,qOH=class extends RwH{constructor(){b6||(b6=new g.v0({G8l:!0,GtC:!0}));super({RR:{z$:it0,sS:$Sd,iS:y8k,Hv:PhG,UB:Igl,set:XU5},GZ:b6,handleError:(f,e,B)=>{const n=B?.error?.code;n===400||n===415?(f=new g.Dj(f.message,e,B?.error?.code),dZ(f,void 0,void 0,void 0,!0)):g.rZ(f)}, OS:dZ,sendFn:adl,now:g.T,OG:bOd,Na:g.bo(),mK:"publicytnetworkstatus-online",TY:"publicytnetworkstatus-offline",Ri:!0,oi:.1,LI:Ng("potential_esf_error_limit",10),SI:g.UV,q7:!(g.kI()&&g.BT(document.location.toString())!=="www.youtube-nocookie.com")});this.W=new g.rF;g.UV("networkless_immediately_drop_all_requests")&&fdO();W7C("LogsDatabaseV2")}writeThenSend(f,e){e||(e={});e=GY(f,e);g.kI()||(this.C=!1);super.writeThenSend(f,e)}sendThenWrite(f,e,B){e||(e={});e=GY(f,e);g.kI()||(this.C=!1);super.sendThenWrite(f, e,B)}sendAndWrite(f,e){e||(e={});e=GY(f,e);g.kI()||(this.C=!1);super.sendAndWrite(f,e)}awaitInitialization(){return this.W.promise}};var pX6=g.Kw.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.qH("ytNetworklessLoggingInitializationOptions",pX6);g.dN=class{constructor(f){this.config_=null;f?this.config_=f:vl6()&&(this.config_=g.C8())}isReady(){!this.config_&&vl6()&&(this.config_=g.C8());return!!this.config_}};var KGw,sq,PL;KGw=g.Kw.ytPubsubPubsubInstance||new g.Y4;sq=g.Kw.ytPubsubPubsubSubscribedKeys||{};PL=g.Kw.ytPubsubPubsubTopicToKeys||{};g.Xb=g.Kw.ytPubsubPubsubIsSynchronous||{};g.Y4.prototype.subscribe=g.Y4.prototype.subscribe;g.Y4.prototype.unsubscribeByKey=g.Y4.prototype.nW;g.Y4.prototype.publish=g.Y4.prototype.publish;g.Y4.prototype.clear=g.Y4.prototype.clear;g.qH("ytPubsubPubsubInstance",KGw);g.qH("ytPubsubPubsubTopicToKeys",PL);g.qH("ytPubsubPubsubIsSynchronous",g.Xb); g.qH("ytPubsubPubsubSubscribedKeys",sq);var oYM={};var q60=class extends g.$0{append(f){f=f.V3();this.V3().appendChild(f)}},ZT=class extends q60{constructor(f){super();this.C=f}V3(){return this.C}};var zwM=class extends g.$0{constructor(f,e){super();this.J=[];this.X=!1;this.G=0;this.W=this.U=this.V=!1;this.Ed=null;const B=(0,g.VG)(f,e);this.C=new g.T6(()=>B(this.Ed),300); g.A(this,this.C);this.N=this.K=Infinity}onTouchStart(f){this.X=!0;this.G=f.touches.length;this.C.isActive()&&(this.C.stop(),this.W=!0);f=f.touches;this.U=uaC(this,f)||f.length!=1;var e=f.item(0);this.U||!e?this.N=this.K=Infinity:(this.K=e.clientX,this.N=e.clientY);this.J.length=0;for(e=0;e=0)}if(e||f&&(f.clientX-this.K)**2+(f.clientY-this.N)**2>25)this.V=!0}onTouchEnd(f){var e= f.changedTouches;e&&this.X&&this.G==1&&!this.V&&!this.W&&!this.U&&uaC(this,e)&&(this.Ed=f,this.C.start());this.G=f.touches.length;this.G===0&&(this.V=this.X=!1,this.J.length=0);this.W=!1}};var dQ=Date.now().toString();var wQ={};var KB=Symbol("injectionDeps"),Rf=class{constructor(f){this.name=f}toString(){return`InjectionToken(${this.name})`}},bR=class{constructor(f){this.key=f}},h7g=class{constructor(){this.C=new Map;this.J=new Map;this.G=new Map;this.aX={eVI:()=>new Map(this.C)}}resolve(f){return f instanceof bR?qC(this,f.key,[],!0):qC(this,f,[])}};var zl;var pB=window;var Vb=g.UV("web_enable_lifecycle_monitoring")&&cR()!==0,TpO=g.UV("web_enable_lifecycle_monitoring");var WDd=class{constructor(f){this.scheduler=g.bo();this.G=new g.rF;this.C=f;for(let e=0;e{B.d4();this.C[e].sW=!0;this.C.every(r=>r.sW===!0)&&this.G.resolve()}; const n=Ci(f,B.priority??0);this.C[e]={...B,d4:f,jobId:n}}}cancel(){for(const f of this.C)f.jobId===void 0||f.sW||this.scheduler.lK(f.jobId),f.sW=!0;this.G.resolve()}};var azd=class{constructor(){this.state="none";this.plugins=[];this.G=void 0;this.V={};Vb&&YA(this.state)}get currentState(){return this.state}install(f){this.plugins.push(f);return this}uninstall(...f){f.forEach(e=>{e=this.plugins.indexOf(e);e>-1&&this.plugins.splice(e,1)})}transition(f,e){Vb&&EYl(this.state); var B=this.transitions.find(n=>Array.isArray(n.from)?n.from.find(r=>r===this.state&&n.to===f):n.from===this.state&&n.to===f); if(B){this.J&&(Q1k(this.J),this.J=void 0);DnM(this,f,e);this.state=f;Vb&&YA(this.state);B=B.action.bind(this);const n=this.plugins.filter(r=>r[f]).map(r=>r[f]); B(xnG(this,n),e)}else throw Error(`no transition specified from ${this.state} to ${f}`);}};var s16=class extends azd{constructor(){super();this.C=null;this.G=10;this.transitions=[{from:"none",to:"application_navigating",action:this.W},{from:"application_navigating",to:"none",action:this.U},{from:"application_navigating",to:"application_navigating",action:()=>{}}, {from:"none",to:"none",action:()=>{}}]}W(f,e){this.C=g.wS(0,()=>{this.currentState==="application_navigating"&&this.transition("none")},5E3); f(e?.event)}U(f,e){this.C&&(g.ul.lK(this.C),this.C=null);f(e?.event)}},lR;var n0=[];g.qH("yt.logging.transport.getScrapedGelPayloads",function(){return n0});var Uc=class{constructor(){this.store={};this.C=0;this.G={};this.aX={xj9:()=>this.C}}storePayload(f,e){f=uR(f); this.store[f]?this.store[f].push(e):(this.G={},this.store[f]=[e]);this.C++;g.UV("more_accurate_gel_parser")&&(e=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(e));return f}smartExtractMatchingEntries(f){if(!f.keys.length)return[];const e=mZ(this,f.keys.splice(0,1)[0]),B=[];for(let n=0;n`Cannot read property '${f.key}'`, CI:{Error:[{Yz:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Yz:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Yz:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Yz:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./, groups:["value","key"]},{Yz:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Yz:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Yz:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{qg:f=>`Cannot call '${f.key}'`, CI:{TypeError:[{Yz:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Yz:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Yz:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Yz:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Yz:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]}, {Yz:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{qg:f=>`${f.key} is not defined`, CI:{ReferenceError:[{Yz:/(.*) is not defined/,groups:["key"]},{Yz:/Can't find variable: (.*)/,groups:["key"]}]}}];var eSG={gS:[],eG:[{callback:Iek,weight:500},{callback:$fY,weight:500}]};var iY5=class{constructor(){this.eG=[];this.gS=[]}},K0;var oo=new g.Y4;var kmG=new Set,Lrl=0,vbY=0,w9G=0,tjC=[],d_M=[],bng=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var RSd=new g.I("parallelCommand");var zSg=new g.I("performOnceCommand");var qZw=new g.I("serialCommand");var ue=void 0;ll({},"sgPmTd");ll(null,"jypsq");ll(null,"mWiOof");Date.now();var cd0=class extends K8{constructor(f){super(arguments);this.csn=f}},A8C=new qB("screen-created",cd0),Gj=[],p90=ob0,xv=0,NG=new Map,h$=new Map,gN=new Map;var zX=class{constructor(f,e=null,B={},n,r,L){this.componentType=f;this.renderer=e;this.macros=B;this.layoutId=n;this.interactionLoggingClientData=r;this.C=L;this.id=Io(f)}};g.Uk(g.$v,g.$0);g.c=g.$v.prototype;g.c.subscribe=function(f,e,B){return this.HS()?0:this.Ys.subscribe(f,e,B)}; g.c.unsubscribe=function(f,e,B){return this.HS()?!1:this.Ys.unsubscribe(f,e,B)}; g.c.nW=function(f){return this.HS()?!1:this.Ys.nW(f)}; g.c.publish=function(f,e){return this.HS()?!1:this.Ys.publish.apply(this.Ys,arguments)}; g.c.V_=function(f,e){for(let B in f)this.subscribe(B,f[B],e)}; g.c.a5=function(f,e){for(let B in f)this.unsubscribe(B,f[B],e)};var u2=16/9,paM=[.25,.5,.75,1,1.25,1.5,1.75,2],cPO=paM.concat([3,4,5,6,7,8,9,10,15]),Y6g=paM.concat([2.5,3,3.5,4]);var Vjw=1;g.af=class extends g.$0{constructor(f){super();this.Yp={};this.S6={};this.element=this.createElement(f)}createElement(f,e){e=e||f.L==="svg";let B;var n=f.B,r=f.y9;e?(B=document.createElementNS("http://www.w3.org/2000/svg",f.L),g.tq&&(f.O||(f.O={}),f.O.focusable="false")):B=g.BN(f.L);if(n){if(n=fS(this,B,"class",n))eL(this,B,"class",n),this.Yp[n]=B}else if(r){for(var L of r)this.Yp[L]=B;eL(this,B,"class",r.join(" "))}n=f.Ga;r=f.j;if(n)e=fS(this,B,"child",n),e!==void 0&&B.appendChild(g.nC(e));else if(r){n= 0;for(var d of r)d&&(typeof d==="string"?(r=fS(this,B,"child",d),r!=null&&B.appendChild(g.nC(r))):d.element?B.appendChild(d.element):(L=d,r=this.createElement(L,e),B.appendChild(r),L.ev&&(L=ie(),r.id=L,r=document.createElementNS("http://www.w3.org/2000/svg","use"),r.setAttribute("class","ytp-svg-shadow"),r.setAttributeNS("http://www.w3.org/1999/xlink","href",`#${L}`),dw(B,r,n++))))}if(f=f.O){e=B;for(const t of Object.keys(f))d=f[t],eL(this,e,t,typeof d==="string"?fS(this,e,t,d):d)}return B}JL(f){return this.Yp[f]}di(f, e){typeof e==="number"?dw(f,this.element,e):f.appendChild(this.element)}detach(){g.tb(this.element)}update(f){for(const e of Object.keys(f))this.updateValue(e,f[e])}updateValue(f,e){(f=this.S6[`{{${f}}}`])&&eL(this,f[0],f[1],e)}bY(){this.Yp={};this.S6={};this.detach();super.bY()}};g.y=class extends g.af{constructor(f){super(f);this.ef=!0;this.Ed=!1;this.listeners=[]}setContent(f,e){this.updateValue(e||"content",f)}show(){this.ef||(g.uc(this.element,"display",""),this.ef=!0)}hide(){this.ef&&(g.uc(this.element,"display","none"),this.ef=!1)}FG(f){f?this.show():this.hide()}AE(f){this.Ed=f}AC(){return this.ef}listen(f,e,B){return this.D(this.element,f,e,B)}D(f,e,B,n){B=(0,g.VG)(B,n||this);n={target:f,type:e,listener:B};this.listeners.push(n);f.addEventListener(e,B);return n}uh(f){this.listeners.forEach((e, B)=>{e===f&&(e=this.listeners.splice(B,1)[0],e.target.removeEventListener(e.type,e.listener))})}focus(){this.element.focus()}bY(){for(;this.listeners.length;){const f=this.listeners.pop(); f&&f.target.removeEventListener(f.type,f.listener)}super.bY()}};g.Sq=class extends g.y{constructor(f){super(f);this.G6=new g.$v;g.A(this,this.G6)}subscribe(f,e,B){return this.G6.subscribe(f,e,B)}unsubscribe(f,e,B){return this.G6.unsubscribe(f,e,B)}nW(f){return this.G6.nW(f)}publish(f,...e){return this.G6.publish(f,...e)}};var APg=new WeakSet,p1=class extends g.Sq{constructor(f,e,B,n,r,L,d=null){super(e);this.api=f;this.macros={};this.componentType=B;this.K=this.N=null;this.tL=d;this.layoutId=n;this.interactionLoggingClientData=r;this.lY=L;this.Fl=null;this.nP=new ZT(this.element);g.A(this,this.nP);this.qC=this.D(this.element,"click",this.onClick);this.PS=[];this.WS=new zwM(this.onClick,this);g.A(this,this.WS);this.Ch=!1;this.uY=this.Cq=null}bind(f){this.Fl||f.renderer&&this.init(f.id,f.renderer,{},f);return Promise.resolve()}init(f, e,B){this.Fl=f;this.element.setAttribute("id",this.Fl);this.tL&&g.PW(this.element,this.tL);this.Cq=e&&e.adRendererCommands;this.uY=e.interaction;this.uY?.onTap&&g.PW(this.element,"ytp-ad-component--clickable");this.macros=B;this.N=e.trackingParams||null;this.K=g.u(e.rendererContext,pzm)?.loggingDirectives??e.loggingDirectives;this.N!=null?this.createServerVe(this.element,this.N):this.K&&(f=this.element,e=this.K,this.api.createServerVe(f,this,!0),this.api.setTrackingParams(f,e.trackingParams||null))}clear(){}hide(){super.hide(); (this.N!=null||this.K)&&this.logVisibility(this.element,!1)}show(){super.show();if(!this.Ch){this.Ch=!0;var f=this.Cq&&this.Cq.impressionCommand;const e=this.uY?.onFirstVisible;f?this.eI(f):e&&(f=Fd(e))&&this.eI(f)}(this.N!=null||this.K)&&this.logVisibility(this.element,!0)}onClick(f){if((this.N||this.K)&&!APg.has(f)){var e=this.element;this.api.hasVe(e)&&this.ef&&this.api.logClick(e,this.interactionLoggingClientData);APg.add(f)}var B=this.Cq&&this.Cq.clickCommand;e=this.uY?.onTap;if(B){var n=this.xA(B); this.eI(n)}else{if(B=e)a:{B=this.element;f=f.composedPath();for(n of f){if(n===B)break;if(n.className.indexOf("ytp-ad-component--clickable")>=0){B=!1;break a}}B=!0}B&&(n=Fd(e))&&this.eI(n)}}xA(f){return f}onTouchStart(f){this.WS.onTouchStart(f)}onTouchMove(f){this.WS.onTouchMove(f)}onTouchEnd(f){if(this.WS)this.WS.onTouchEnd(f)}eI(f){this.layoutId?this.lY.executeCommand(f,this.layoutId):(f=new g.Dj("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}), g.J(f))}createServerVe(f,e){this.api.createServerVe(f,this);this.api.setTrackingParams(f,e)}logVisibility(f,e){this.api.hasVe(f)&&this.api.logVisibility(f,e,this.interactionLoggingClientData)}bY(){this.clear(null);this.uh(this.qC);for(const f of this.PS)this.uh(f);super.bY()}};var VQ=class extends p1{constructor(f,e,B,n,r=[],L="button",d=!1,t,H=!1){r={L:"button",y9:["ytp-ad-button"].concat(r)};t!=null&&(r.O={tabindex:t});super(f,r,L,e,B,n);this.C=this.G=this.J=null;this.W=d;this.V=H;this.hide()}init(f,e,B){super.init(f,e,B);this.C=e;if(e.text==null&&e.icon==null)g.Yv(Error("ButtonRenderer did not have text or an icon set."));else{switch(e.style||null){case "STYLE_UNKNOWN":f="ytp-ad-button-link";break;default:f=null}f!=null&&g.PW(this.element,f);e.text!=null&&(f=g.nS(e.text), g.eU(f)||(this.element.setAttribute("aria-label",f),this.J=new g.Sq({L:"span",B:"ytp-ad-button-text",Ga:f}),g.A(this,this.J),this.J.di(this.element)));e.accessibilityData&&e.accessibilityData.accessibilityData&&e.accessibilityData.accessibilityData.label&&!g.eU(e.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",e.accessibilityData.accessibilityData.label);e.icon!=null&&(e=cl(e.icon,this.V),e!=null&&(this.G=new g.Sq({L:"span",B:"ytp-ad-button-icon",j:[e]}),g.A(this, this.G)),this.W?dw(this.element,this.G.element,0):this.G.di(this.element))}}clear(){this.hide()}onClick(f){super.onClick(f);for(const e of LX6(this))this.layoutId?this.lY.executeCommand(e,this.layoutId):g.J(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)}};var dxH=class extends g.$0{constructor(){super();this.C=new Map;this.G=y5w(f=>{if(f.target&&(f=this.C.get(f.target))&&f)for(let e=0;e0&&(this.toggleButton(!this.isToggled()),this.X());super.onClick(f)}X(){g.h(this.V,"ytp-ad-toggle-button-toggled",this.isToggled());for(const f of wsY(this,this.isToggled()))this.layoutId? this.lY.executeCommand(f,this.layoutId):g.J(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);o5(this)}clear(){this.hide()}toggleButton(f){g.h(this.V,"ytp-ad-toggle-button-toggled",f);this.C.checked=f;o5(this)}isToggled(){return this.C.checked}};var YGg=class{constructor(f,e,B){this.actionType=e;this.id=B;this.content=f}};var oNH=class extends C1{constructor(f){super();this.C=f;this.D(this.C,"onAdUxUpdate",this.U)}U(f){if(Array.isArray(f))for(const e of f)e instanceof YGg&&this.V(e)}};var zid=class extends p1{constructor(f,e,B,n){super(f,{L:"div",B:"ytp-ad-feedback-dialog-background",j:[{L:"div",B:"ytp-ad-feedback-dialog-container",j:[{L:"div",B:"ytp-ad-feedback-dialog-form",O:{role:"dialog",tabindex:"-1"},j:[{L:"div",B:"ytp-ad-feedback-dialog-title",j:[{L:"span",Ga:"{{title}}"}]},{L:"span",B:"ytp-ad-info-dialog-feedback-options-title",Ga:"{{reasonsTitle}}"},{L:"div",B:"ytp-ad-info-dialog-feedback-options"},{L:"div",B:"ytp-ad-feedback-dialog-confirm-container",j:[{L:"button",B:"ytp-ad-feedback-dialog-cancel-button", Ga:"{{cancelLabel}}"},{L:"button",B:"ytp-ad-feedback-dialog-confirm-button",Ga:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",e,B,n);this.V=[];this.C=null;this.W=this.JL("ytp-ad-feedback-dialog-cancel-button");this.U=this.JL("ytp-ad-feedback-dialog-confirm-button");this.A=this.JL("ytp-ad-info-dialog-feedback-options");this.cS=this.JL("ytp-ad-feedback-dialog-title");this.J=this.G=null;this.hide()}init(f,e,B){super.init(f,e,B);e.reasons?e.confirmLabel==null?g.J(Error("AdFeedbackRenderer.confirmLabel was not set.")): (e.cancelLabel==null&&g.Yv(Error("AdFeedbackRenderer.cancelLabel was not set.")),e.title==null&&g.Yv(Error("AdFeedbackRenderer.title was not set.")),RiC(this,e)):g.J(Error("AdFeedbackRenderer.reasons were not set."))}clear(){My(this.W);My(this.U);this.V.length=0;this.hide()}hide(){this.C&&this.C.hide();this.G&&this.G.hide();super.hide();this.J&&this.J.focus()}show(){this.C&&this.C.show();this.G&&this.G.show();this.J=document.activeElement;super.show();this.W.focus()}X(){this.api.onAdUxClicked("ad-feedback-dialog-close-button", this.layoutId);this.publish("a");this.hide()}Lq(){this.hide()}},KX5=class{constructor(f,e){this.G=e;this.C=new g.Sq({L:"label",B:"ytp-ad-feedback-dialog-reason-label",j:[{L:"input",B:"ytp-ad-feedback-dialog-reason-input",O:{type:"radio",name:"feedback-reason-group"}},{L:"span",B:"ytp-ad-feedback-dialog-reason-text",Ga:g.nS(f)}]});this.J=this.C.JL("ytp-ad-feedback-dialog-reason-input")}V3(){return this.C.element}getCommand(){return this.G}isChecked(){return this.J.checked}};var ps6=class extends OV0{W(f){super.W(f);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}V(f){super.V(f);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}U(f){super.U(f);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")}};var VwM=class extends p1{constructor(f,e,B,n,r){super(f,{L:"div",B:"ytp-ad-info-dialog-background",j:[{L:"div",B:"ytp-ad-info-dialog-container",j:[{L:"div",B:"ytp-ad-info-dialog-form",O:{role:"dialog",tabindex:"-1"},j:[{L:"div",B:"ytp-ad-info-dialog-title",Ga:"{{title}}"},{L:"ul",B:"ytp-ad-info-dialog-ad-reasons"},{L:"div",B:"ytp-ad-info-dialog-message"},{L:"div",B:"ytp-ad-info-dialog-mute-container"},{L:"div",B:"ytp-ad-info-dialog-confirm-container",j:[{L:"button",B:"ytp-ad-info-dialog-confirm-button", Ga:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",e,B,n);this.C=this.G=null;this.U=this.JL("ytp-ad-info-dialog-confirm-button");this.MC=this.JL("ytp-ad-info-dialog-mute-container");this.BS=this.JL("ytp-ad-info-dialog-message");this.Lq=this.JL("ytp-ad-info-dialog-ad-reasons");this.V=this.J=null;this.A=r;this.W=null;this.Z9=!1;this.X=null;this.hide()}init(f,e,B){super.init(f,e,B);this.W=e;if(e.dialogMessage==null&&e.title==null)g.J(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set.")); else{e.confirmLabel==null&&g.Yv(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(f=e.closeOverlayRenderer&&g.u(e.closeOverlayRenderer,$u)||null)this.C=new VQ(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.A(this,this.C),this.C.init(Io("button"),f,this.macros),this.C.di(this.element);e.title&&(f=g.nS(e.title),this.updateValue("title",f));if(e.adReasons)for(f=e.adReasons,B=0;Bthis.hide()); g.A(this,this.cS);this.Z9=0;this.MC=!1;this.IA=L;this.hide()}init(f,e,B){super.init(f,e,B);f=e.durationMilliseconds;typeof f==="number"&&f<0&&g.J(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+f));this.IA&&(this.U?g.PW(this.G.element,"modern-countdown-next-to-thumbnail"):g.PW(this.G.element,"countdown-next-to-thumbnail"));f=e.durationMilliseconds;this.Z9=f==null||f===0?this.C.Ii():f;if(e.templatedCountdown)var n=e.templatedCountdown.templatedAdText;else e.staticPreview&& (n=e.staticPreview);this.V.init(Io("ad-text"),n,B);(n=this.api.getVideoData({playerType:1}))&&n.sM&&e.thumbnail?this.X.init(Io("ad-image"),e.thumbnail,B):(this.Lq.hide(),this.U&&this.IA&&g.PW(this.V.element,"ytp-ad-preview-text-modern-postroll"))}clear(){this.hide()}hide(){this.G.hide();this.V.hide();this.X.hide();FY(this);super.hide()}show(){uA(this);this.G.show();this.V.show();this.X.show();super.show()}W(){this.hide()}J(){if(this.C!=null){var f=this.C.getProgressState();f!=null&&f.current!=null&& (f=1E3*f.current,!this.MC&&f>=this.Z9?(this.cS.hide(),this.MC=!0,this.publish("i")):this.V&&this.V.isTemplated()&&(f=Math.max(0,Math.ceil((this.Z9-f)/1E3)),f!=this.kA&&(lA(this.V,{TIME_REMAINING:String(f)}),this.kA=f)))}}};var lzO=class extends jX{constructor(f,e,B,n,r,L){super(f,{L:"div",y9:["ytp-flyout-cta","ytp-flyout-cta-inactive"],j:[{L:"div",B:"ytp-flyout-cta-icon-container"},{L:"div",B:"ytp-flyout-cta-body",j:[{L:"div",B:"ytp-flyout-cta-text-container",j:[{L:"div",B:"ytp-flyout-cta-headline-container"},{L:"div",B:"ytp-flyout-cta-description-container"}]},{L:"div",B:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",e,B,n,r);this.V=new c0(this.api,this.layoutId,this.interactionLoggingClientData,this.lY, "ytp-flyout-cta-icon");g.A(this,this.V);this.V.di(this.JL("ytp-flyout-cta-icon-container"));this.V.element.classList.add("ytp-flyout-cta-icon-rounded");this.X=new AO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,"ytp-flyout-cta-headline");g.A(this,this.X);this.X.di(this.JL("ytp-flyout-cta-headline-container"));this.U=new AO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,"ytp-flyout-cta-description");g.A(this,this.U);this.U.di(this.JL("ytp-flyout-cta-description-container")); this.G=new VQ(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,["ytp-flyout-cta-action-button","ytp-flyout-cta-action-button-rounded"]);g.A(this,this.G);this.G.di(this.JL("ytp-flyout-cta-action-button-container"));this.G.element.setAttribute("tabIndex","-1");UW(this.G.element);this.cS=null;this.Z9=0;this.MC=L;this.hide()}init(f,e,B){super.init(f,e,B);if(e.image&&e.image.thumbnail)if(e.headline)if(e.description)if((f=e.actionButton&&g.u(e.actionButton,$u))&&f.navigationEndpoint){const r= this.api.getVideoData({playerType:2});if(r!=null)if(e.image&&e.image.thumbnail){var n=e.image.thumbnail.thumbnails;n!=null&&n.length>0&&g.eU(g.dr(n[0].url))&&(n[0].url=r.profilePicture)}else g.Yv(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.V.init(Io("ad-image"),e.image,B);this.X.init(Io("ad-text"),e.headline,B);this.U.init(Io("ad-text"),e.description,B);this.G.init(Io("button"),f,B);B=gA(this.G.element);hg(this.G.element,B+" This link opens in new tab");this.cS=f.navigationEndpoint; this.api.bv()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.Lq.bind(this));this.Z9=e.startMs||0;uA(this)}else g.J(Error("FlyoutCtaRenderer has no valid action button."));else g.J(Error("FlyoutCtaRenderer has no description AdText."));else g.J(Error("FlyoutCtaRenderer has no headline AdText."));else g.Yv(Error("FlyoutCtaRenderer has no image."))}onClick(f){super.onClick(f);this.api.pauseVideo();!g.HN(this.G.element,f.target)&&this.cS&&(this.layoutId?this.lY.executeCommand(this.cS, this.layoutId):g.J(Error("Missing layoutId for flyout cta.")))}J(){if(this.C){var f=this.C.getProgressState();(f&&f.current||this.MC)&&1E3*f.current>=this.Z9&&(FY(this),g.$i(this.element,"ytp-flyout-cta-inactive"),this.G.element.removeAttribute("tabIndex"))}}W(){this.clear()}clear(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Lq.bind(this))}show(){this.G&&this.G.show();super.show()}hide(){this.G&&this.G.hide();super.hide()}Lq(f){f=="hidden"?this.show():this.hide()}};var u25=class extends p1{constructor(f,e,B,n){super(f,{L:"div",B:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",e,B,n,null);this.C=null;this.J=new YR(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,["ytp-ad-instream-user-sentiment-like-button"]);g.A(this,this.J);this.J.di(this.element);this.G=new YR(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,["ytp-ad-instream-user-sentiment-dislike-button"]);g.A(this,this.G);this.G.di(this.element);this.V= new g.Ob(this,400,!1,500,()=>this.hide()); g.A(this,this.V);this.hide()}init(f,e,B){super.init(f,e,B);this.C=e;if(this.C.rectangle){f=this.C.likeButton&&g.u(this.C.likeButton,tO);e=this.C.dislikeButton&&g.u(this.C.dislikeButton,tO);this.J.init(Io("toggle-button"),f,B);this.G.init(Io("toggle-button"),e,B);this.D(this.element,"change",this.W);this.V.show(100);this.show();for(const n of this.C&&this.C.impressionCommands||[])this.layoutId?this.lY.executeCommand(n,this.layoutId):g.J(Error("Missing layoutId for instream user sentiment."))}}clear(){this.hide()}hide(){this.J.hide(); this.G.hide();super.hide()}show(){this.J.show();this.G.show();super.show()}W(){fP(this.element,"ytp-ad-instream-user-sentiment-selected");this.C.postMessageAction&&g.yW(this.api,"onYtShowToast",this.C.postMessageAction);this.V.hide()}onClick(f){this.PS.length>0&&this.W();super.onClick(f)}};var Vo=class extends g.$0{constructor(f,e,B,n,r=0,L=!1){super();this.G=f;this.J=!1;this.Cq=n;this.cS=L;this.U=!1;this.C=null;e>0&&(this.C=new g.T6(this.Ed,e,this),g.A(this,this.C));this.W=new g.T6(this.Ed,B,this);g.A(this,this.W);this.A=nP(this.G,r,1,n);g.A(this,this.A);this.X=nP(this.G,0,n,1);g.A(this,this.X);this.V=new C1;g.A(this,this.V)}bY(){this.reset();super.bY()}reset(){this.V.G();this.U=!1;this.C&&this.C.stop();this.W.stop();this.J&&(this.J=!1,this.X.play())}start(){this.reset();this.V.D(this.G, "mouseover",this.N,this);this.V.D(this.G,"mouseout",this.K,this);this.cS&&(this.V.D(this.G,"focusin",this.N,this),this.V.D(this.G,"focusout",this.K,this));this.C?this.C.start():(this.U=this.J=!0,g.uc(this.G,{opacity:this.Cq}))}N(){this.J&&(this.J=!1,this.X.play());this.W.stop();this.C&&this.C.stop()}K(){this.U?this.W.start():this.C&&this.C.start()}Ed(){this.J||(this.J=!0,this.A.play(),this.U=!0)}};var l6=class{constructor(f,e){this.G=f;this.C=e}},mxG=[new l6("b.f_",0),new l6("j.s_",2),new l6("r.s_",4),new l6("e.h_",6),new l6("i.s_",8),new l6("s.t_",10),new l6("p.h_",12),new l6("s.i_",14),new l6("f.i_",16),new l6("a.b_",18),new l6("a.o_"),new l6("g.o_",22),new l6("p.i_",24),new l6("p.m_"),new l6("n.k_",20),new l6("i.f_"),new l6("a.s_"),new l6("m.c_"),new l6("n.h_",26),new l6("o.p_"),new l6("m.p_",28),new l6("o.a_"),new l6("d.p_"),new l6("e.i_")].reduce((f,e)=>{f[e.G]=e;return f},{});g.aw=class{constructor(f,e){this.state=f;this.oldState=e}IC(f){return hX(this,f)>0}};var FG0=class extends jX{constructor(f,e,B,n,r,L){super(f,{L:"div",B:"ytp-ad-skip-button-slot"},"skip-button",e,B,n,r);this.cS=null;this.Lq=!1;this.MC=L;this.X=this.api.S().experiments.SI("enable_modern_skip_button_on_web");this.kA=!1;this.U=new g.Sq({L:"span",y9:["ytp-ad-skip-button-container"]});this.X&&this.U.element.classList.add("ytp-ad-skip-button-container-detached");g.A(this,this.U);this.U.di(this.element);this.G=this.V=null;this.IA=new g.Ob(this.U,500,!1,100,()=>this.hide()); g.A(this,this.IA);this.Z9=new Vo(this.U.element,15E3,5E3,.5,.5,this.X);g.A(this,this.Z9);this.hide()}init(f,e,B){super.init(f,e,B);this.cS=e;(this.Lq=Ngk(this))&&g.Yv(Error("hasAdControlInClickCommands_ is true."));!e||g.TL(e)?g.J(Error("SkipButtonRenderer was not specified or empty.")):!e.message||g.TL(e.message)?g.J(Error("SkipButtonRenderer.message was not specified or empty.")):(f=this.X?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},e=this.api.S().Y("delhi_modern_web_player_icons"),e=cl(f, !1,!1,e),e==null?g.J(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+f.iconType+".")):(this.api.S().Y("disable_touch_events_on_skip_button")&&(e.O={...e.O,"aria-hidden":"true",focusable:"false"}),this.V=new g.Sq({L:"button",y9:[this.X?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],j:[{L:"span",B:this.X?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",j:[e]}]}),g.A(this,this.V),this.V.di(this.U.element),this.G=new AO(this.api,this.layoutId,this.interactionLoggingClientData, this.lY,"ytp-ad-skip-button-text"),this.X&&this.G.element.classList.add("ytp-ad-skip-button-text-centered"),this.G.init(Io("ad-text"),this.cS.message,B),g.A(this,this.G),dw(this.V.element,this.G.element,0)),this.api.S().Y("disable_touch_events_on_skip_button")||(B=this.api.S(),!(this.PS.length>0)&&B.G&&(bD?0:"ontouchstart"in document.documentElement&&(fR()||ic()))&&(this.uh(this.qC),this.PS=[this.D(this.element,"touchstart",this.onTouchStart,this),this.D(this.element,"touchmove",this.onTouchMove, this),this.D(this.element,"touchend",this.onTouchEnd,this)])))}clear(){this.Z9.reset();this.hide()}hide(){this.U.hide();this.G&&this.G.hide();FY(this);super.hide()}onClick(f){if(this.V!=null){if(f){var e=f||window.event;e.returnValue=!1;e.preventDefault&&e.preventDefault()}if(ugM(f,{contentCpn:this.api.getVideoData({playerType:1})?.clientPlaybackNonce||""})===0)g.yW(this.api,"onAbnormalityDetected");else if(super.onClick(f),this.publish("j"),g.yW(this.api,"onAdSkip"),this.MC||!this.Lq)this.api.onAdUxClicked(this.componentType, this.layoutId)}}xA(f){if(!this.MC)return this.Lq&&NL("SkipButton click commands not pruned while ALC exist"),f;const e=g.u(f,g.g_)?.commands;if(!e)return f;f=[];for(let B=0;B=this.X&&hi6(this,!0)}};var mF6=class extends VQ{constructor(f,e,B,n){super(f,e,B,n,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}init(f,e,B){super.init(f,e,B);f=!1;e.text!=null&&(f=g.nS(e.text),f=!g.eU(f));f?e.navigationEndpoint==null?g.Yv(Error("No visit advertiser clickthrough provided in renderer,")):e.style!=="STYLE_UNKNOWN"?g.Yv(Error("Button style was not a link-style type in renderer,")):this.show():g.Yv(Error("No visit advertiser text was present in the renderer."))}};var u6=class extends p1{constructor(f,e,B,n,r=!1,L=!1){super(f,{L:"span",B:"ytp-ad-simple-ad-badge"},"simple-ad-badge",e,B,n);this.C=this.JL("ytp-ad-simple-ad-badge");(this.G=r)&&this.C.classList.add("ytp-ad-simple-ad-badge--clean-player");L&&this.C.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}init(f,e,B){super.init(f,e,B);f=e.text;g.eU(Bl(f))?g.Yv(Error("SimpleAdBadgeRenderer has invalid or empty text")):(f&&f.text&&(e=f.text,this.G||(e=this.api.S(),e=f.text+" "+(e&&e.G?"\u2022":"\u00b7")), e={text:e,isTemplated:f.isTemplated},f.style&&(e.style=f.style),f.targetId&&(e.targetId=f.targetId),f=new AO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),f.init(Io("simple-ad-badge"),e,B),f.di(this.element),g.A(this,f)),this.show())}clear(){this.hide()}};var FM=class extends zX{constructor(f,e,B,n,r=!1){super("player-overlay",f,{},e,n);this.videoAdDurationSeconds=B;this.interactionLoggingClientData=n;this.b1=r}};var Wd=class extends g.$v{constructor(f,e){super();this.api=f;this.durationMs=e;this.C=null;this.handler=new C1(this);g.A(this,this.handler);this.G=ViO;this.handler.D(this.api,"presentingplayerstatechange",this.J);this.C=this.handler.D(this.api,"onAdPlaybackProgress",this.ZW)}Ii(){return this.durationMs}stop(){this.C&&this.handler.uh(this.C)}ZW(f){this.G={seekableStart:0,seekableEnd:this.durationMs/1E3,current:f.current};this.publish("h")}getProgressState(){return this.G}J(f){f.IC(2)&&this.publish("g")}};var mo=class extends g.$v{constructor(f){super();this.C=!1;this.TJ=0;this.handler=new C1(this);g.A(this,this.handler);this.durationMs=f;this.timer=new g.P7(100);g.A(this,this.timer);this.handler.D(this.timer,"tick",this.ZW);this.G={seekableStart:0,seekableEnd:f/1E3,current:0};this.start()}Ii(){return this.durationMs}start(){this.C||(this.C=!0,this.timer.start())}stop(){this.C&&(this.C=!1,this.timer.stop())}ZW(){this.TJ+=100;let f=!1;this.TJ>this.durationMs&&(this.TJ=this.durationMs,this.timer.stop(), f=!0);this.G={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.TJ/1E3};this.publish("h");f&&this.publish("g")}getProgressState(){return this.G}};var Ub=class extends jX{constructor(f,e,B,n,r,L,d){super(f,{L:"span",B:d?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",e,B,n,r);this.videoAdDurationSeconds=L;this.G=null;d&&this.api.S().G&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),ye&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}init(f,e,B){super.init(f,e,B);if(e?.templatedCountdown?.templatedAdText){f=e.templatedCountdown.templatedAdText;if(!f.isTemplated){g.Yv(Error("AdDurationRemainingRenderer has no templated ad text.")); return}this.G=new AO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY);this.G.init(Io("ad-text"),f,{});this.G.di(this.element);g.A(this,this.G)}this.show()}clear(){this.hide()}hide(){FY(this);super.hide()}W(){this.hide()}J(){if(this.C!=null){var f=this.C.getProgressState();if(f!=null&&f.current!=null&&this.G){var e=this.C instanceof Wd?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:f.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.C instanceof mo?f.seekableEnd:this.api.getDuration(2,!1);f=f.current;e=this.api.getVideoData()?.q0?.()?Math.max(e-f,0):e-f;lA(this.G,{FORMATTED_AD_DURATION_REMAINING:String(g.SL(e)),TIME_REMAINING:String(Math.ceil(e))})}}}show(){uA(this);super.show()}};var UFm=class extends AO{constructor(f,e,B,n){super(f,e,B,n,"ytp-video-ad-top-bar-title","ad-title")}onClick(f){super.onClick(f);this.api.onAdUxClicked(this.componentType)}};var N5=class{constructor(f){this.content=f.content;if(f.commandRuns)for(const e of f.commandRuns)this.loggingDirectives=g.u(e,ZG5),e.onTap&&(this.interaction={onTap:e.onTap})}},hO=class extends p1{constructor(f,e,B,n){super(f,{L:"div",B:"ad-simple-attributed-string"},"ad-simple-attributed-string",e,B,n);this.hide()}init(f,e){super.init(f,e,{});(f=e.content)?(g.kC(this.element,f),this.element.setAttribute("aria-label",e.interaction?.accessibility?.label||f)):g.J(Error("AdSimpleAttributedString does not have text content"))}clear(){this.hide()}onClick(f){super.onClick(f)}};var gv=class extends p1{constructor(f,e,B,n,r){super(f,{L:"span",B:r?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",e,B,n);this.G=r;this.adBadgeText=new hO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY);this.adBadgeText.di(this.element);g.A(this,this.adBadgeText);r?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),ye&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text"); this.hide()}init(f,e){super.init(f,e,{});(f=e.label)&&f.content&&!g.eU(f.content)?(this.adBadgeText.init(Io("ad-simple-attributed-string"),new N5(f)),(e=e.adPodIndex)&&e.content&&!g.eU(e.content)&&(this.C=new hO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),this.C.di(this.element),g.A(this,this.C),this.C.element.classList.add("ytp-ad-badge__pod-index"),this.C.init(Io("ad-simple-attributed-string"),new N5(e))),this.element.classList.add(this.G?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.J(Error("No label is returned in AdBadgeViewModel."))}show(){this.adBadgeText.show();this.C?.show();super.show()}hide(){this.adBadgeText.hide();this.C?.hide();super.hide()}};var N9d=class extends p1{constructor(f,e,B,n){super(f,{L:"span",B:"ytp-ad-pod-index"},"ad-pod-index",e,B,n);this.api.S().G&&(this.element.classList.add("ytp-ad-pod-index--mweb"),ye&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}init(f,e){super.init(f,e,{});(f=e.adPodIndex)&&f.content&&!g.eU(f.content)&&(this.C=new hO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),this.C.di(this.element),g.A(this,this.C),this.C.init(Io("ad-simple-attributed-string"),new N5(f)), e.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()}show(){this.C?.show();super.show()}hide(){this.C?.hide();super.hide()}};var hwk=class extends p1{constructor(f,e,B,n){super(f,{L:"div",B:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",e,B,n);this.hide()}init(f,e){super.init(f,e,{});e?.text?e.text?.content&&!g.eU(e.text.content)&&(this.C=new g.Sq({L:"div",B:"ytp-ad-disclosure-banner__text",Ga:e.text.content}),g.A(this,this.C),this.C.di(this.element),this.api.S().Y("enable_ad_disclosure_banner_a11y_fix")?((f=e.interaction?.accessibility?.label)||(f=`${e.text.content} ${"This link opens in new tab"}`),hg(this.element, f)):this.element.setAttribute("aria-label",e.interaction?.accessibility?.label||e.text.content),e.interaction?.onTap&&(this.api.S().Y("remove_chevron_from_ad_disclosure_banner_h5")||(this.G=new g.Sq({L:"div",B:"ytp-ad-disclosure-banner__chevron",j:[g.tX()]}),g.A(this,this.G),this.G.di(this.element)),this.api.S().Y("enable_ad_disclosure_banner_a11y_fix")&&(UW(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.uT))),this.show()):g.J(Error("No banner text found in AdDisclosureBanner."))}uT(f){if(f.key=== "Enter"||f.key===" ")f.preventDefault(),this.element.click()}clear(){this.hide()}};var $H=class{constructor(f,e){this.G=f;this.C=e}};var sB=class extends g.Sq{constructor(f,e,B,n=!1){super({L:"div",B:"ytp-ad-persistent-progress-bar-container",j:[{L:"div",B:"ytp-ad-persistent-progress-bar"}]});this.api=f;this.G=e;this.J=B;n&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.A(this,this.G);this.progressBar=this.JL("ytp-ad-persistent-progress-bar");this.C=-1;this.D(f,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}ZW(){const f=this.G.getProgressState();let e= f.seekableEnd;this.api.getPresentingPlayerType()===2&&(e=this.J?this.J/1E3:f.seekableEnd);this.progressBar.style.width=QQ(new $H(f.seekableStart,e),f.current,0)*100+"%"}onStateChange(){g.DH(this.api.S())||(this.api.getPresentingPlayerType()===2?this.C===-1&&(this.show(),this.C=this.G.subscribe("h",this.ZW,this),this.ZW()):this.C!==-1&&(this.hide(),this.G.nW(this.C),this.C=-1))}};var qBY=class extends p1{constructor(f,e,B,n,r,L){super(f,{L:"div",B:"ytp-ad-player-overlay",j:[{L:"div",B:"ytp-ad-player-overlay-flyout-cta"},{L:"div",B:"ytp-ad-player-overlay-instream-info"},{L:"div",B:"ytp-ad-player-overlay-skip-or-preview"},{L:"div",B:"ytp-ad-player-overlay-progress-bar"},{L:"div",B:"ytp-ad-player-overlay-instream-user-sentiment"},{L:"div",B:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",e,B,n);this.U=L;this.W=this.JL("ytp-ad-player-overlay-flyout-cta");this.W.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.C=this.JL("ytp-ad-player-overlay-instream-info");this.V=null;S1M(this)&&(f=eA("div"),g.PW(f,"ytp-ad-player-overlay-top-bar-gradients"),e=f,B=this.C,B.parentNode&&B.parentNode.insertBefore(e,B),(e=this.api.getVideoData({playerType:2}))&&e.isListed&&e.title&&(B=new UFm(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),B.di(f),B.init(Io("ad-title"),{text:e.title},this.macros),g.A(this,B)),this.V=f);this.J=null;this.Lq=this.JL("ytp-ad-player-overlay-skip-or-preview");this.cS=this.JL("ytp-ad-player-overlay-progress-bar"); this.A=this.JL("ytp-ad-player-overlay-instream-user-sentiment");this.X=this.JL("ytp-ad-player-overlay-ad-disclosure-banner");this.G=r;g.A(this,this.G);this.hide()}init(f,e,B,n){super.init(f,e,B);if(e.skipOrPreviewRenderer){if(f=g.u(e.skipOrPreviewRenderer,SS))B=new Gs(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,this.G,this.U),B.di(this.Lq),B.init(Io("skip-button"),f,this.macros),g.A(this,B);if(f=g.u(e.skipOrPreviewRenderer,SS))var r=f.skipOffsetMilliseconds}e.brandInteractionRenderer&& (f=e.brandInteractionRenderer.brandInteractionRenderer,B=new u25(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),B.di(this.A),B.init(Io("instream-user-sentiment"),f,this.macros),g.A(this,B));if(f=g.u(e,T15))if(B=g.u(f,T15))f=new lzO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,this.G,!!e.showWithoutLinkedMediaLayout),g.A(this,f),f.di(this.W),f.init(Io("flyout-cta"),B,this.macros);n=n&&n.videoAdDurationSeconds;e.adBadgeRenderer&&(B=e.adBadgeRenderer,f=g.u(B,Pd), f!=null?(B=new gv(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,!1),g.A(this,B),B.di(this.C),B.init(Io("ad-badge"),f,this.macros),this.J=B.element):(f=B.simpleAdBadgeRenderer,f==null&&(f={text:{text:"An\u00fancio",isTemplated:!1}}),B=new u6(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),g.A(this,B),B.di(this.C),B.init(Io("simple-ad-badge"),f,this.macros)));e.adPodIndex&&(f=g.u(e.adPodIndex,Pa0),f!=null&&(B=new N9d(this.api,this.layoutId,this.interactionLoggingClientData, this.lY),g.A(this,B),B.di(this.C),B.init(Io("ad-pod-index"),f)));e.adDurationRemaining&&!e.showWithoutLinkedMediaLayout&&(f=e.adDurationRemaining.adDurationRemainingRenderer,f==null&&(f={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),n=new Ub(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,this.G,n,!1),g.A(this,n),n.di(this.C),n.init(Io("ad-duration-remaining"),f,this.macros));e.adInfoRenderer&&(n=g.u(e.adInfoRenderer,a8))&&(f=new Ts(this.api, this.layoutId,this.interactionLoggingClientData,this.lY,this.element,void 0,!1),g.A(this,f),this.J!==null?this.C.insertBefore(f.element,this.J.nextSibling):f.di(this.C),f.init(Io("ad-info-hover-text-button"),n,this.macros));e.visitAdvertiserRenderer&&(f=g.u(e.visitAdvertiserRenderer,$u))&&(B=S1M(this)&&this.V?this.V:this.C)&&(n=new mF6(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),g.A(this,n),n.di(B),n.init(Io("visit-advertiser"),f,this.macros),UW(n.element),f=gA(n.element),hg(n.element, f+" This link opens in new tab"));!(n=this.api.S())||g.JF(n)||g.XY(n)||n.controlsType!="3"&&!n.disableOrganicUi||(r=new sB(this.api,this.G,r,!1),r.di(this.cS),g.A(this,r));e.adDisclosureBannerRenderer&&(r=g.u(e.adDisclosureBannerRenderer,y1m))&&(e=new hwk(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),e.di(this.X),e.init(Io("ad-disclosure-banner"),r),g.A(this,e));this.api.S().Y("enable_updated_html5_player_focus_style")&&g.PW(this.element,"ytp-ad-player-overlay-updated-focus-style"); this.show()}clear(){this.hide()}};var gN6=class{flush(f=[],e=!1){if(g.UV("enable_client_streamz_web"))for(const B of f)f=li(B),this.C&&$1(f,nEk,2,this.C),f={serializedIncrementBatch:g.ON(f.G())},g.t$("streamzIncremented",f,{sendIsolatedPayload:e})}},ExY=class extends gN6{constructor(){super()}},JJl=class extends gN6{constructor(f){super();var e=new nEk;var B=new BaH;B=kl(B,1,"botguard");f=kl(B,2,f);this.C=iw(e,BaH,1,r95,f)}};var JX,DOH=new Map;var afw=class{constructor(f){this.C=new Vz(f)}set(f,e,B){B=B!==void 0?Date.now()+B:void 0;this.C.set(f,e,B)}get(f){return this.C.get(f)}remove(f){this.C.remove(f)}};var TgY=null;var $U=null,iA=null,fK=null,f15=null;g.qH("yt.www.ads.eventcache.getLastCompanionData",function(){return $U}); g.qH("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.qH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return iA}); g.qH("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return fK}); g.qH("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return f15});var nPC=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var BJ=class{constructor(){this.C={};if(this.G=B1()){const f=g.fs("CONSISTENCY");f&&LRg(this,{encryptedTokenJarContents:f})}}handleResponse(f,e){if(!e)throw Error("request needs to be passed into ConsistencyService");e=e.IF.context?.request?.consistencyTokenJars||[];(f=f.responseContext?.consistencyTokenJar)&&this.replace(e,f)}replace(f,e){for(const B of f)delete this.C[B.encryptedTokenJarContents];LRg(this,e)}};var S6C=window.location.hostname.split(".").slice(-2).join("."),nK=class{constructor(){this.G=-1;let f=g.Q("LOCATION_PLAYABILITY_TOKEN");g.Q("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=eH(this))&&(f=this.localStorage.get("yt-location-playability-token"));f&&(this.locationPlayabilityToken=f,this.C=void 0)}static getInstance(){SX=g.zO("yt.clientLocationService.instance");SX||(SX=new nK,g.qH("yt.clientLocationService.instance",SX));return SX}setLocationOnInnerTubeContext(f){f.client||(f.client= {});if(this.C)f.client.locationInfo||(f.client.locationInfo={}),f.client.locationInfo.latitudeE7=Math.floor(this.C.coords.latitude*1E7),f.client.locationInfo.longitudeE7=Math.floor(this.C.coords.longitude*1E7),f.client.locationInfo.horizontalAccuracyMeters=Math.round(this.C.coords.accuracy),f.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.J||this.locationPlayabilityToken)f.client.locationPlayabilityToken=this.J||this.locationPlayabilityToken}handleResponse(f){f=f.responseContext?.locationPlayabilityToken; f!==void 0&&(this.locationPlayabilityToken=f,this.C=void 0,g.Q("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=eH(this))&&this.localStorage.set("yt-location-playability-token",f,15552E3):g.is("YT_CL",JSON.stringify({loctok:f}),15552E3,S6C,!0))}clearLocationPlayabilityToken(f){f==="TVHTML5"?(this.localStorage=eH(this))&&this.localStorage.remove("yt-location-playability-token"):g.e4("YT_CL");this.J=void 0;this.G!==-1&&(clearTimeout(this.G),this.G=-1)}getCurrentPositionFromGeolocation(){if(!(navigator&& navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));let f=!1,e=1E4;g.Q("INNERTUBE_CLIENT_NAME")==="MWEB"&&(f=!0,e=15E3);return new Promise((B,n)=>{navigator.geolocation.getCurrentPosition(r=>{this.C=r;B(r)},r=>{n(r)},{enableHighAccuracy:f, maximumAge:0,timeout:e})})}createUnpluggedLocationInfo(f){const e={}; f=f.coords;f?.latitude&&(e.latitudeE7=Math.floor(f.latitude*1E7));f?.longitude&&(e.longitudeE7=Math.floor(f.longitude*1E7));f?.accuracy&&(e.locationRadiusMeters=Math.round(f.accuracy));return e}createLocationInfo(f){const e={};f=f.coords;f?.latitude&&(e.latitudeE7=Math.floor(f.latitude*1E7));f?.longitude&&(e.longitudeE7=Math.floor(f.longitude*1E7));return e}},SX;var EN0=class{constructor(){this.C={}}contains(f){return Object.prototype.hasOwnProperty.call(this.C,f)}get(f){if(this.contains(f))return this.C[f]}set(f,e){this.C[f]=e}qA(){return Object.keys(this.C)}remove(f){delete this.C[f]}};new class{constructor(){this.mappings=new EN0}get(f){a:{var e=this.mappings.get(f.toString());switch(e.type){case "mapping":f=e.value;break a;case "factory":e=e.value();this.mappings.set(f.toString(),{type:"mapping",value:e});f=e;break a;default:f=Q2(e,void 0)}}return f}registerService(f,e){this.mappings.set(f.toString(),{type:"mapping",value:e});return f}};var wig={WEB_UNPLUGGED:"^unplugged/",WEB_UNPLUGGED_ONBOARDING:"^unplugged/",WEB_UNPLUGGED_OPS:"^unplugged/",WEB_UNPLUGGED_PUBLIC:"^unplugged/",WEB_CREATOR:"^creator/",WEB_KIDS:"^kids/",WEB_EXPERIMENTS:"^experiments/",WEB_MUSIC:"^music/",WEB_REMIX:"^music/",WEB_MUSIC_EMBEDDED_PLAYER:"^music/",WEB_MUSIC_EMBEDDED_PLAYER:"^main_app/|^sfv/"};var QX5=class{W(f,e={},B=RF){var n={context:g.rH(f.clickTrackingParams,!1,this.V)};var r=this.G(f);if(r)return this.C(n,r,e),e=g.dH(this.J()),(r=g.u(f.commandMetadata,g.L1)?.apiUrl)&&(e=r),e=pn0(ns(e)),f={command:f,...(void 0)},n={input:e,yl:rx(e),IF:n,config:f},n.config.Vt?n.config.Vt.identity=B:n.config.Vt={identity:B},n;B=new g.Dj("Error: Failed to create Request from Command.",f);g.J(B)}get V(){return!1}},Eb=class extends QX5{};var T9k={GET_DATASYNC_IDS:LK(class extends Eb{W(){return{input:"/getDatasyncIdsEndpoint",yl:rx("/getDatasyncIdsEndpoint","GET"),IF:{}}}J(){return[]}G(){}C(){}})};var a1C={auto_search:"LATENCY_ACTION_AUTO_SEARCH",ad_to_ad:"LATENCY_ACTION_AD_TO_AD",ad_to_video:"LATENCY_ACTION_AD_TO_VIDEO",app_startup:"LATENCY_ACTION_APP_STARTUP",browse:"LATENCY_ACTION_BROWSE",cast_splash:"LATENCY_ACTION_CAST_SPLASH",channel_activity:"LATENCY_ACTION_FAMILY_CENTER_CHANNEL_ACTIVITY",channels:"LATENCY_ACTION_CHANNELS",chips:"LATENCY_ACTION_CHIPS",commerce_transaction:"LATENCY_ACTION_COMMERCE_TRANSACTION",direct_playback:"LATENCY_ACTION_DIRECT_PLAYBACK",editor:"LATENCY_ACTION_EDITOR", embed:"LATENCY_ACTION_EMBED",embed_no_video:"LATENCY_ACTION_EMBED_NO_VIDEO",entity_key_serialization_perf:"LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",entity_key_deserialization_perf:"LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",explore:"LATENCY_ACTION_EXPLORE",favorites:"LATENCY_ACTION_FAVORITES",home:"LATENCY_ACTION_HOME",inboarding:"LATENCY_ACTION_INBOARDING",landing:"LATENCY_ACTION_LANDING",learning:"LATENCY_ACTION_LEARNING",learning_journey_browse:"LATENCY_ACTION_LEARNING_JOURNEY_BROWSE", learning_journey_watch:"LATENCY_ACTION_LEARNING_JOURNEY_WATCH",library:"LATENCY_ACTION_LIBRARY",live:"LATENCY_ACTION_LIVE",live_pagination:"LATENCY_ACTION_LIVE_PAGINATION",management:"LATENCY_ACTION_MANAGEMENT",mini_app:"LATENCY_ACTION_MINI_APP_PLAY",notification_settings:"LATENCY_ACTION_FAMILY_CENTER_NOTIFICATION_SETTINGS",onboarding:"LATENCY_ACTION_ONBOARDING",parent_profile_settings:"LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",parent_tools_collection:"LATENCY_ACTION_PARENT_TOOLS_COLLECTION",parent_tools_dashboard:"LATENCY_ACTION_PARENT_TOOLS_DASHBOARD", player_att:"LATENCY_ACTION_PLAYER_ATTESTATION",prebuffer:"LATENCY_ACTION_PREBUFFER",prefetch:"LATENCY_ACTION_PREFETCH",profile_settings:"LATENCY_ACTION_KIDS_PROFILE_SETTINGS",profile_switcher:"LATENCY_ACTION_LOGIN",projects:"LATENCY_ACTION_PROJECTS",reel_watch:"LATENCY_ACTION_REEL_WATCH",results:"LATENCY_ACTION_RESULTS",red:"LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",premium:"LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",privacy_policy:"LATENCY_ACTION_FAMILY_CENTER_PRIVACY_POLICY",review:"LATENCY_ACTION_REVIEW", search_overview_answer:"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",search_ui:"LATENCY_ACTION_SEARCH_UI",search_suggest:"LATENCY_ACTION_SUGGEST",search_zero_state:"LATENCY_ACTION_SEARCH_ZERO_STATE",secret_code:"LATENCY_ACTION_KIDS_SECRET_CODE",switchplan:"LATENCY_ACTION_UNPLUGGED_SWITCH_PLAN",seek:"LATENCY_ACTION_PLAYER_SEEK",settings:"LATENCY_ACTION_SETTINGS",store:"LATENCY_ACTION_STORE",supervision_dashboard:"LATENCY_ACTION_FAMILY_CENTER_SUPERVISION_DASHBOARD",bedtime_reminder_settings:"LATENCY_ACTION_FAMILY_CENTER_BEDTIME_REMINDER_SETTINGS", break_reminder_settings:"LATENCY_ACTION_FAMILY_CENTER_BREAK_REMINDER_SETTINGS",supervision_settings_dashboard:"LATENCY_ACTION_FAMILY_CENTER_SUPERVISION_SETTINGS_DASHBOARD",time_management:"LATENCY_ACTION_FAMILY_CENTER_TIME_MANAGEMENT",update_profile:"LATENCY_ACTION_FAMILY_CENTER_UPDATE_PROFILE",viewing_permissions:"LATENCY_ACTION_FAMILY_CENTER_VIEWING_PERMISSIONS",shorts_settings:"LATENCY_ACTION_FAMILY_CENTER_SHORTS_SETTINGS",privacy_settings:"LATENCY_ACTION_FAMILY_CENTER_PRIVACY_SETTINGS",tenx:"LATENCY_ACTION_TENX", video_preview:"LATENCY_ACTION_VIDEO_PREVIEW",video_to_ad:"LATENCY_ACTION_VIDEO_TO_AD",watch:"LATENCY_ACTION_WATCH",watch_it_again:"LATENCY_ACTION_KIDS_WATCH_IT_AGAIN","watch,watch7":"LATENCY_ACTION_WATCH","watch,watch7_html5":"LATENCY_ACTION_WATCH","watch,watch7ad":"LATENCY_ACTION_WATCH","watch,watch7ad_html5":"LATENCY_ACTION_WATCH",wn_comments:"LATENCY_ACTION_LOAD_COMMENTS",ww_rqs:"LATENCY_ACTION_WHO_IS_WATCHING",voice_assistant:"LATENCY_ACTION_VOICE_ASSISTANT",cast_load_by_entity_to_watch:"LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH", networkless_performance:"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",gel_compression:"LATENCY_ACTION_GEL_COMPRESSION",gel_jspb_serialize:"LATENCY_ACTION_GEL_JSPB_SERIALIZE",attestation_challenge_fetch:"LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH"}; Object.assign(a1C,{"analytics.explore":"LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE","artist.analytics":"LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS","artist.events":"LATENCY_ACTION_CREATOR_ARTIST_CONCERTS","artist.presskit":"LATENCY_ACTION_CREATOR_ARTIST_PROFILE","asset.claimed_videos":"LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS","asset.composition":"LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION","asset.composition_ownership":"LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP","asset.composition_policy":"LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY", "asset.embeds":"LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS","asset.history":"LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY","asset.issues":"LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES","asset.licenses":"LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES","asset.metadata":"LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA","asset.ownership":"LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP","asset.potential_embeds":"LATENCY_ACTION_CREATOR_CMS_ASSET_POTENTIAL_EMBEDS","asset.policy":"LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY","asset.references":"LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES", "asset.shares":"LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES","asset.sound_recordings":"LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS","asset_group.assets":"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS","asset_group.campaigns":"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS","asset_group.claimed_videos":"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS","asset_group.metadata":"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA","song.analytics":"LATENCY_ACTION_CREATOR_SONG_ANALYTICS",creator_channel_dashboard:"LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD", "channel.analytics":"LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS","channel.comments":"LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS","channel.content":"LATENCY_ACTION_CREATOR_POST_LIST","channel.content.promotions":"LATENCY_ACTION_CREATOR_PROMOTION_LIST","channel.copyright":"LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT","channel.editing":"LATENCY_ACTION_CREATOR_CHANNEL_EDITING","channel.monetization":"LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION","channel.music":"LATENCY_ACTION_CREATOR_CHANNEL_MUSIC","channel.music_storefront":"LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT", "channel.playlists":"LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS","channel.translations":"LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS","channel.videos":"LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS","channel.live_streaming":"LATENCY_ACTION_CREATOR_LIVE_STREAMING","dialog.copyright_strikes":"LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES","dialog.video_copyright":"LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT","dialog.uploads":"LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",owner:"LATENCY_ACTION_CREATOR_CMS_DASHBOARD", "owner.allowlist":"LATENCY_ACTION_CREATOR_CMS_ALLOWLIST","owner.analytics":"LATENCY_ACTION_CREATOR_CMS_ANALYTICS","owner.art_tracks":"LATENCY_ACTION_CREATOR_CMS_ART_TRACKS","owner.assets":"LATENCY_ACTION_CREATOR_CMS_ASSETS","owner.asset_groups":"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS","owner.bulk":"LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY","owner.campaigns":"LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS","owner.channel_invites":"LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES","owner.channels":"LATENCY_ACTION_CREATOR_CMS_CHANNELS", "owner.claimed_videos":"LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS","owner.claims":"LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING","owner.claims.manual":"LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING","owner.delivery":"LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY","owner.delivery_templates":"LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES","owner.issues":"LATENCY_ACTION_CREATOR_CMS_ISSUES","owner.licenses":"LATENCY_ACTION_CREATOR_CMS_LICENSES","owner.pitch_music":"LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC","owner.policies":"LATENCY_ACTION_CREATOR_CMS_POLICIES", "owner.releases":"LATENCY_ACTION_CREATOR_CMS_RELEASES","owner.reports":"LATENCY_ACTION_CREATOR_CMS_REPORTS","owner.videos":"LATENCY_ACTION_CREATOR_CMS_VIDEOS","playlist.videos":"LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST","post.comments":"LATENCY_ACTION_CREATOR_POST_COMMENTS","post.edit":"LATENCY_ACTION_CREATOR_POST_EDIT","promotion.edit":"LATENCY_ACTION_CREATOR_PROMOTION_EDIT","video.analytics":"LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS","video.claims":"LATENCY_ACTION_CREATOR_VIDEO_CLAIMS","video.comments":"LATENCY_ACTION_CREATOR_VIDEO_COMMENTS", "video.copyright":"LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT","video.edit":"LATENCY_ACTION_CREATOR_VIDEO_EDIT","video.editor":"LATENCY_ACTION_CREATOR_VIDEO_EDITOR","video.editor_async":"LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC","video.live_settings":"LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS","video.live_streaming":"LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING","video.monetization":"LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION","video.policy":"LATENCY_ACTION_CREATOR_VIDEO_POLICY","video.rights_management":"LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT", "video.translations":"LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS"});var TVm=class extends K8{constructor(f,e){super(arguments);this.timer=e}},QK0=new qB("aft-recorded",TVm);var YyH=g.Kw.ytLoggingGelSequenceIdObj_||{};g.qH("ytLoggingGelSequenceIdObj_",YyH);var qJ=g.Kw.ytLoggingLatencyUsageStats_||{};g.qH("ytLoggingLatencyUsageStats_",qJ); var RR=class{constructor(){this.C=0}tick(f,e,B,n){zR(this,`tick_${f}_${e}`)||g.t$("latencyActionTicked",{tickName:f,clientActionNonce:e},{timestamp:B,cttAuthInfo:n})}info(f,e,B){const n=Object.keys(f).join("");zR(this,`info_${n}_${e}`)||(f=Object.assign({},f),f.clientActionNonce=e,g.t$("latencyActionInfo",f,{cttAuthInfo:B}))}jspbInfo(f,e,B){let n="";for(let r=0;r{}; this.webkitClearResourceTimings=()=>{}; this.mozClearResourceTimings=()=>{}; this.msClearResourceTimings=()=>{}; this.oClearResourceTimings=()=>{}}},aR=Qo.performance||Qo.mozPerformance||Qo.msPerformance||Qo.webkitPerformance||new DF0;var EPd=!1,l1g=!1,mm={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj", 'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc", 'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"},J46=(0,g.VG)(aR.clearResourceTimings||aR.webkitClearResourceTimings||aR.mozClearResourceTimings||aR.msClearResourceTimings||aR.oClearResourceTimings||g.zt,aR);var TX=window;TX.ytcsi&&(TX.ytcsi.infoGel=g.hQ,TX.ytcsi.tick=NJ);var HI5="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store manifest player_preload shorts_prefetch".split(" "),dpG=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"],TR=class{constructor(f,e,B,n,r){this.V=f;this.GZ=e;this.C=B;this.W=n;this.J= r;this.G=new Map;f.Wb||(f.Wb={});f.Wb={...T9k,...f.Wb}}hK(f){return kWl(f,this.V)}};var Vkk=new Rf("INNERTUBE_TRANSPORT_TOKEN");var jvM=class extends Eb{J(){return nNg}get V(){return!0}G(f){return g.u(f,DNl)||void 0}C(f,e,B={}){e.channelIds&&(f.channelIds=e.channelIds);e.siloName&&(f.siloName=e.siloName);e.params&&(f.params=e.params);B.botguardResponse&&(f.botguardResponse=B.botguardResponse);B.feature&&(f.clientFeature=B.feature)}};var OIG=class extends Eb{J(){return rPm}get V(){return!0}G(f){return g.u(f,T4g)||void 0}C(f,e){e.channelIds&&(f.channelIds=e.channelIds);e.siloName&&(f.siloName=e.siloName);e.params&&(f.params=e.params)}};var Aow=class extends Eb{constructor(f){super();this.U=f}J(){return $NG}G(f){return g.u(f,FHk)||g.u(f,mN6)||g.u(f,uJ6)}C(f,e){e.serializedShareEntity&&(f.serializedSharedEntity=e.serializedShareEntity);e.clientParamIdentifier&&this.U?.C(e.clientParamIdentifier)&&(f.clientParams=this.U.G(e.clientParamIdentifier))}};Aow[KB]=[new Rf("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN")];var p7g=class extends Eb{J(){return fzd}get V(){return!0}G(f){return g.u(f,dv)||void 0}C(f,e,B){f.feedbackTokens=[];e.feedbackToken&&f.feedbackTokens.push(e.feedbackToken);if(e=e.cpn||B.cpn)f.feedbackContext={cpn:e};f.isFeedbackTokenUnencrypted=!!B.is_feedback_token_unencrypted;f.shouldMerge=!1;B.extra_feedback_tokens&&(f.shouldMerge=!0,f.feedbackTokens=f.feedbackTokens.concat(B.extra_feedback_tokens))}};var co5=class extends Eb{J(){return eww}G(f){return g.u(f,QkO)||void 0}C(f,e){e.params&&(f.params=e.params);e.secondaryParams&&(f.secondaryParams=e.secondaryParams)}};var YY6=class extends Eb{J(){return B9O}G(f){return g.u(f,S4d)||void 0}C(f,e){e.actions&&(f.actions=e.actions);e.params&&(f.params=e.params);e.playlistId&&(f.playlistId=e.playlistId)}};var ocC=class extends Eb{J(){return iGG}G(f){return g.u(f,UNm)}C(f,e,B={}){e.serializedShareEntity&&(f.serializedSharedEntity=e.serializedShareEntity);B.includeListId&&(f.includeListId=!0)}};var iB=new Rf("CLIENT_NAME_TOKEN");var fJ=new Rf("DEFAULT_STORE_EXPIRATION_TOKEN");var JPM=class{constructor(f,e){this.clientName=f;this.G=e}async put(f,e){e={...e.data};e.key=f;e.clientName=this.clientName;e.expireTimestampMs===void 0&&(e.expireTimestampMs=(Math.round((0,g.T)())+this.G).toString());return k_Y(this,f,e)}};JPM[KB]=[iB,fJ];var C56=class{constructor(f){this.data={...f};delete this.data.innertubeResponse?.frameworkUpdates}isExpired(){return Number(this.data.expireTimestampMs||0)<(0,g.T)()}isProcessed(){return!!this.data.isProcessed}};var z0H=class extends JPM{constructor(){super(...arguments);this.C=new Map}async get(f){return w76(this,f)}async remove(f){vc5(this,f)}async removeAll(){this.C.forEach(f=>{clearTimeout(f.timer)}); this.C.clear()}has(f){return!!this.C.get(f)}qA(){return this.C.keys()}};var eG=new Rf("EPHEMERAL_STORE_TOKEN");var bIC=class{constructor(f){this.C=f.responseContext?.stateTags}};var a6k=class{constructor(f){this.C=f}handleResponse(f,e){if(!e)throw Error("request needs to be passed into StoreResponseProcessorService");MJ(this,f,e.config?.z1?.WU)}};a6k[KB]=[eG];var BK=new Rf("STORE_RESPONSE_PROCESSOR_TOKEN");g.DT=class extends g.Dj{constructor(f){super(f,[]);this.errorType=1;Object.setPrototypeOf(this,new.target.prototype)}};var qY5=class{constructor(f){this.C=f}async fetch(f,e,B){f=R0H(this,f,e);return fetch(f).then(n=>this.handleResponse(n,B)).catch(n=>{g.Yv(n); if(B?.Wp&&n instanceof g.DT&&n.errorType===1)return Promise.reject(n)})}handleResponse(f,e){let B; B=f.text().then(n=>{if(e?.Wv&&f.ok)return nO(e.Wv,n);n=n.replace(")]}'","");let r;if(e?.Wp&&n)try{r=JSON.parse(n)}catch(L){throw new g.DT("JSON parsing failed after fetch");}return r??JSON.parse(n)}); f.redirected||f.ok?this.C&&this.C.success():(this.C&&this.C.s6A(),B=B.then(n=>{g.Yv(new g.Dj("Error: API fetch failed",f.status,f.url,n));return{...n,errorMetadata:{status:f.status}}})); return B}};qY5[KB]=[ZC(new Rf("NETWORK_SLI_TOKEN"))];var KUd=new Rf("NETWORK_MANAGER_TOKEN");var $$;var uAw=class{constructor(f){this.C=f}bindInnertubeChallengeFetcher(f){this.C.bicf(f)}registerChallengeFetchedCallback(f){this.C.bcr(f)}getLatestChallengeResponse(){return this.C.blc()}};var Up5=[],mpG=(0,g.hj)`https://static.doubleclick.net/instream/ad_status.js`,tH=!1;var bL=class{constructor(f,e,B){this.network=f;this.options=e;this.V=B;this.J=0;this.C=null;this.G=new h3G;e.Ku?k3(this,h05(this)):e.preload&&k3(this,new Promise(n=>{g.wS(0,()=>{n(vK(this))},0)}))}async U(){return!!await Promise.race([this.C, null])}async W(f,e,B){this.C===null&&k3(this,vK(this));let n=!1;const r={};return Promise.race([(async()=>{this.options.vuj&&this.options.Ku&&await (await l6d())?.checkForRefresh();var L=await this.C;r.challenge=L.challenge;if(L.eU){var d={c:L.challenge,e:f,...e};try{n=!0;let t;(t=await L.eU.snapshot({KV:d}))?r.webResponse=t:r.error="ATTESTATION_ERROR_VM_NO_RESPONSE"}catch{r.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR"}}else"c1a"in L.y_&&(r.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");f==="ENGAGEMENT_TYPE_PLAYBACK"&& (L=L.y_,d={},L.c6a&&(d.reportingStatus=String(Number(L.c)^HK())),L.c6b&&(d.broadSpectrumDetectionResult=String(Number(L.c)^Number(g.Q("CATSTAT",0)))),r.adblockReporting=d);return r})(), Jol(B,()=>{const L=Object.assign({},r);n&&(L.error="ATTESTATION_ERROR_VM_TIMEOUT");return L})])}};var WU5=["APP_STATE","PI"];var sFM=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,299903,299897,299904,299901,299899,299902,299900,299898,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651, 106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,300884,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933, 207944,206934,303123,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381, 84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142, 117432,173996,173995,174953,173994,173997,120080,117259,178546,297752,197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,282159,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,304776,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295, 210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,303882,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,293324,32633,74858,297045,275198,271884,222932,279119,271886, 213915,275199,225216,251244,258251,218674,251266,258250,251265,301662,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912, 89281,40963,43277,43442,91824,283898,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,302631,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426, 27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,298157,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,296933,195350,301607,195349,194771,293041,293042,293043,301116,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553, 192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,297672,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,278306,282472,277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,294119,257268,63349,281127,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986, 100828,129089,299541,21409,282218,299506,299540,299507,299509,299539,299508,299510,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,295069,246127,245256,244950,191925,167637,234545,197196,302735,214295, 110386,221054,273960,282111,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,294089,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,304169,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722, 121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,296316,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,282208,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,296813,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176, 176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,299247,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,301897,301900,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031, 234746,93044,93045,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var iIw=class{constructor(f,e){this.G=this.C=0;this.C=e.x-f.x;this.G=e.y-f.y}};var MiH=class{constructor(){this.C=new Map}};var H$m=new Rf("POSTMESSAGE_TUNNEL_TOKEN");var vXG=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"],G9k=class{constructor(){this.state=1;this.eU=null;this.vE=void 0}initialize(f,e,B,n){this.vE=n;if(f.program){var r;n=f.interpreterUrl??null;f.interpreterSafeScript?r=sg(f.interpreterSafeScript):r=f.interpreterScript??null;f.interpreterSafeUrl&&(n=Xt(f.interpreterSafeUrl).toString());wpl(this,r,n,f.program,e,B)}else g.Yv(Error("BL:CIP"))}isInitialized(){return this.G()}getState(){return this.state}isLoading(){return this.state=== 2}invoke(f={}){return this.G()?this.J({KV:f}):null}dispose(){this.C(null);this.Hd(8)}G(){return!!this.eU}J(f){return this.eU.nD(f)}C(f){g.PT(this.eU);this.eU=f}Hd(f){this.state=f}};var xF0=class extends G9k{C(f){RM()?.bgvma();if(f){const e={bgvma:f.dispose.bind(f),bgvmb:f.snapshot.bind(f),bgvmc:f.nD.bind(f)};g.qH("yt.abuse.playerAttLoader",e);Fm(B=>f.snapshot(B))}else g.qH("yt.abuse.playerAttLoader",null),g.qH("yt.abuse.playerAttLoaderRun",null)}G(){return!!RM()}J(f){return RM().bgvmc(f)}};var QuG=class{constructor(f){this.FX=f}p$(){return"crossDeviceProgressCommand"}Un(f){if(f.crossDevicePings){const e=[];for(const B of f.crossDevicePings)e.push({baseUrl:B.baseUrl});f={crossDevicePings:e};this.FX.Z.S().experiments.SI("enable_batched_cross_device_pings_in_gel_fanout")&&(f.enableBatchedCrossDevicePings=!0);this.FX.Z.S().experiments.SI("relax_bg_notification_throttling")&&(f.relaxBgNotificationThrottling=!0);this.FX.Z.S().experiments.SI("relax_bg_notification_throttling_counterfactual")&& (f.relaxBgNotificationThrottlingCounterfactual=!0);g.t$("crossDeviceNotificationTransfer",f)}}};var hPG=class{constructor(f,e){this.Cj=f;this.Ab=e}p$(){return"muteAdEndpoint"}Un(f,e){switch(f.type){case "SKIP":b$d(this.Cj,this.Ab,e)}}};var EhM=class{p$(){return"openPopupAction"}Un(){}};var gh5=class{p$(){return"pingingEndpoint"}Un(){}};var ay5={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0},F1k=class extends g.$0{constructor(f){super();this.tF=f;this.C=new Map;KJ(this,"commandExecutorCommand",(e,B,n)=>{Knw(this,e.commands,B,n)}); KJ(this,"clickTrackingParams",()=>{})}};var qGC={Iu:"FINAL",bb:"AD_BREAK_LENGTH",e4:"AD_CPN",Ju:"AH",vn:"AD_MT",Wn:"ASR",p8:"AW",wO:"NM",MJ:"NX",nX:"NY",mG:"CONN",ST:"CPN",vA:"DV_VIEWABILITY",HA:"ERRORCODE",wD:"ERROR_MSG",Kr:"EI",oN:"GOOGLE_VIEWABILITY",RN:"IAS_VIEWABILITY",Jl:"LACT",iQ:"LIVE_TARGETING_CONTEXT",X2:"I_X",BT:"I_Y",KH:"MT",gJ:"MIDROLL_POS",kY:"MIDROLL_POS_MS",Oo:"MOAT_INIT",lQ:"MOAT_VIEWABILITY",f9:"P_H",w_:"PV_H",MH:"PV_W",n9:"P_W",FW:"TRIGGER_TYPE",f9L:"SDKV",tIq:"SLOT_POS",cEi:"SURVEY_LOCAL_TIME_EPOCH_S",rEY:"SURVEY_ELAPSED_MS", Wf:"VIS",htL:"VIEWABILITY",l_S:"VED",a_9:"VOL",SA9:"WT",fWj:"YT_ERROR_CODE"};var SD5=class{constructor(f,e,B){this.V4=f;this.C=e;this.Ud=B;RH(aH(),{cB:H$m,Da:MiH})}p$(){return"urlEndpoint"}Un(f,e,B){{var n=this.Ud.get();const r=v$(n.G.get(),e);r?e=OI(n,OB(r),r,void 0,void 0,B):(NL("Trying to ping from an unknown layout",void 0,void 0,{layoutId:e}),e={})}e={...e};BP(this.C,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(B=J0(this.V4,2))&&(e.AD_CPN=B.clientPlaybackNonce);e=g.pX(f.url,e);f=g.I5(e,void 0,void 0,void 0,f.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"); kBm(f,e)}};var JO=class{constructor(f){this.value=f}get(){return this.value}},nDG=class extends JO{C(){return"metadata_type_action_companion_ad_renderer"}},L0Y=class extends JO{C(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"}},wo6=class extends JO{C(){return"metadata_type_ads_engagement_panel_renderer"}},vIO=class extends JO{C(){return"metadata_type_ads_engagement_panel_layout_view_model"}},DY=class extends JO{C(){return"metadata_type_ad_next_params"}},JZ=class extends JO{C(){return"metadata_type_ad_video_clickthrough_endpoint"}}, XoO=class extends JO{C(){return"metadata_type_invideo_overlay_ad_renderer"}},biC=class extends JO{C(){return"metadata_type_image_companion_ad_renderer"}},Zi0=class extends JO{C(){return"metadata_type_banner_image_layout_view_model"}},RLw=class extends JO{C(){return"metadata_type_shopping_companion_carousel_renderer"}},Jn5=class extends JO{C(){return"metadata_type_ad_info_ad_metadata"}},MYM=class extends JO{C(){return"metadata_ad_video_is_listed"}},PV=class extends JO{C(){return"metadata_type_ad_placement_config"}}, RZ=class extends JO{C(){return"metadata_type_ad_pod_info"}},T5=class extends JO{C(){return"metadata_type_ad_pod_skip_index"}},M3=class extends JO{C(){return"metadata_type_ad_pod_skip_target"}},gY=class extends JO{C(){return"metadata_type_ad_pod_skip_target_callback_ref"}},ZY=class extends JO{C(){return"metadata_type_ad_video_id"}},tZ=class extends JO{C(){return"metadata_type_content_cpn"}},vf=class extends JO{C(){return"metadata_type_instream_ad_player_overlay_renderer"}},b4=class extends JO{C(){return"metadata_type_player_overlay_layout_renderer"}}, DM6=class extends JO{C(){return"metadata_type_player_underlay_renderer"}},zb6=class extends JO{C(){return"metadata_type_player_underlay_ad_slot_renderer"}},clG=class extends JO{C(){return"metadata_type_media_associated_in_player_slot"}},yn6=class extends JO{C(){return"metadata_type_shrunken_player_bytes_config"}},OsY=class extends JO{C(){return"metadata_type_ad_action_interstitial_renderer"}},xyd=class extends JO{C(){return"metadata_type_valid_survey_text_interstitial_renderer"}},YV5=class extends JO{C(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"}}, bNC=class extends JO{C(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"}},qV5=class extends JO{C(){return"metadata_type_sliding_text_player_overlay_renderer"}},mK=class extends JO{C(){return"metadata_type_linked_player_bytes_layout_id"}},jBY=class extends JO{C(){return"metadata_type_linked_second_player_bytes_layout_id"}},Qf=class extends JO{C(){return"metadata_type_linked_in_player_layout_id"}},Wf=class extends JO{C(){return"metadata_type_linked_in_player_layout_type"}},K96=class extends JO{C(){return"metadata_type_linked_in_player_slot_id"}}, SUd=class extends JO{C(){return"metadata_type_player_bytes_callback"}},z5=class extends JO{C(){return"metadata_type_player_bytes_callback_ref"}},B$=class extends JO{constructor(){super({current:null})}C(){return"metadata_type_player_bytes_layout_controls_callback_ref"}},BSl=class extends JO{C(){return"metadata_type_sub_layouts"}},qU0=class extends JO{C(){return"metadata_type_cue_point"}},Vf=class extends JO{C(){return"metadata_type_triggering_cue_point"}},Hf=class extends JO{C(){return"metadata_type_video_length_seconds"}}, ku=class extends JO{C(){return"metadata_type_player_vars"}},as5=class extends JO{C(){return"metadata_type_preload_player_vars"}},q3=class extends JO{C(){return"metadata_type_sodar_extension_data"}},CL=class extends JO{C(){return"metadata_type_layout_enter_ms"}},wY=class extends JO{C(){return"metadata_type_layout_exit_ms"}},cf=class extends JO{C(){return"metadata_type_media_sub_layout_index"}},aZ=class extends JO{constructor(){super({})}C(){return"metadata_type_dai"}},bsw=class extends JO{constructor(){super({})}C(){return"metadata_type_ad_intro"}}, UyO=class extends JO{C(){return"metadata_type_client_forecasting_ad_renderer"}},KL=class extends JO{C(){return"metadata_type_drift_recovery_ms"}},Xc=class extends JO{C(){return"metadata_type_fulfilled_layout"}},IJC=class extends JO{C(){return"metadata_type_ad_break_request_data"}},$dg=class extends JO{C(){return"metadata_type_ad_break_response_data"}},G5=class extends JO{C(){return"metadata_type_remote_slots_data"}},nL=class extends JO{C(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"}},xu= class extends JO{C(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"}},p1H=class extends JO{C(){return"metadata_type_legacy_info_card_vast_extension"}},eFC=class extends JO{C(){return"metadata_type_valid_ad_message_renderer"}},rY=class extends JO{C(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"}},$gd=class extends JO{C(){return"metadata_type_served_from_live_infra"}},NZY=class extends JO{C(){return"metadata_type_survey_overlay"}},pL=class extends JO{C(){return"metadata_type_active_view_traffic_type"}}, ued=class extends JO{C(){return"metadata_type_active_view_identifier"}},Hsm=class extends JO{C(){return"metadata_type_ssdai_ads_config"}},$IM=class extends JO{constructor(){super(!0)}C(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"}},l4=class extends JO{C(){return"metadata_type_player_bytes_slot_metadata"}},kwk=class extends JO{constructor(){super({})}C(){return"metadata_type_prefetch_metadata"}};var SaM=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var V5=()=>"",M8k=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL", "trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","trigger_category_layout_exit_user_input_submitted"], ["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);var WK=class extends Ek{constructor(f,e,B,n=!1){super(f);this.m_=B;this.v$=n;this.args=[];e&&this.args.push(e)}};var M=class extends Ek{constructor(f,e,B,n=!1){super(f);this.m_=B;this.v$=n;this.args=[];e&&this.args.push(e)}};var Vl=class{constructor(f){const e=new Map;f.forEach(B=>{e.set(B.C(),B)}); this.C=e}RA(f){f=this.C.get(f);if(f!==void 0)return f.get()}};new Promise(()=>{});var AM0=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),cMl=new Map([["normal",{CQ:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Pb:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{CQ:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Pb:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}], ["muted",{CQ:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Pb:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{CQ:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Pb:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{CQ:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Pb:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{CQ:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Pb:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}], ["error",{CQ:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Pb:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]),M5=class{constructor(f){this.iY=f;f=Math.random();var e=this.iY.get();e=g.tS(e.Z.S().experiments,"html5_debug_data_log_probability");e=Number.isFinite(e)&&e>=0&&e<=1?e:0;this.C=f{g.PT(this.instance);this.instance=null})}get(){Math.random()<.001&&this.HS()&&NL("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance}); this.instance||(this.instance=this.C());return this.instance}};var WGY=class extends g.$0{constructor(f){super();this.C=f;this.G=yM5(this)}J(){return this.G}};var GX=class{constructor(f){this.C=f}executeCommand(f,e){q6(this.C(),f,e)}};var sXk=class{constructor(){this.listeners=new Set}addListener(f){this.listeners.add(f)}removeListener(f){this.listeners.delete(f)}};var xR=class{constructor(f){this.iY=f}};var Xa5=class{constructor(f,e,B,n,r){this.callback=f;this.slot=e;this.G=B;this.I6=n;this.iY=r;this.C=null}};var wE={AD_MARKER:"ytp-ad-progress",CHAPTER_MARKER:"ytp-chapter-marker",TIME_MARKER:"ytp-time-marker"};var puG=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),eed=RegExp("^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://(([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-green-qa\\.corp|tv-release-qa|tv-release-qa\\.corp|tv-integration-qa|tv-integration-qa\\.corp|yt-tv-autopush\\.corp|yt-tv-integration\\.corp|yt-tv-staging\\.corp)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/)"), ciC=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),kIw=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"), tul=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),rwd=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer))|(docs(\\-(dev|qa)\\.corp)?\\.google\\.com\\/(u\\/[0-9]+\\/)?(docs|sheets|slides|drawings|forms|videos)\\-images\\-(rt|qw))|(docs\\.sandbox\\.google\\.com\\/(u\\/[0-9]+\\/)?(docs|sheets|slides|drawings|forms|videos)\\-images))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"), YPM=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),Lcw=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),npg=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer))|(docs(\\-(dev|qa)\\.corp)?\\.google\\.com\\/(u\\/[0-9]+\\/)?(docs|sheets|slides|drawings|forms|videos)\\-images\\-(rt|qw))|(docs\\.sandbox\\.google\\.com\\/(u\\/[0-9]+\\/)?(docs|sheets|slides|drawings|forms|videos)\\-images))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gyz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"), yPG=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)"), Pkd=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com(/|$)|^https://ads-prod\\.qa\\.adz\\.google\\.com/aw/(assetgroup/(edit|new)|campaigns/(new/(performancemax|demandgen)|edit/demandgen))|^https://ads\\.google\\.com/aw/(assetgroup/(edit|new)|campaigns/(new/(performancemax|demandgen)|edit/demandgen))|^https://adwords\\.corp\\.google\\.com/aw/(assetgroup/(edit|new)|campaigns/(new/(performancemax|demandgen)|edit/demandgen))|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://localhost\\.googleusercontent\\.com(:\\d+)?(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.google\\.com/culturalinstitute/manage/.*$|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|artsandculture\\.google\\.com|ads\\-external\\-prod\\.qa\\.adz\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"), IzO=RegExp("^(https://play\\.google\\.com|https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com|https://adstransparency\\.google\\.com|https://ads\\.google\\.com|https://adwords\\.corp\\.google\\.com|https://ads\\-external\\-prod\\.qa\\.adz\\.google\\.com|https://ads\\-prod\\.qa\\.adz\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?staging\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https://localhost\\.googleusercontent\\.com(:\\d+)?$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");var $Fg;g.VD=class{constructor(f,e,B={}){this.start=f;this.end=e;this.active=!0;this.color="";this.G=$Fg++;this.id=B.id||"";this.priority=B.priority||9;this.visible=B.visible||!1;this.style=B.style||wE.AD_MARKER;this.namespace=B.namespace||"";if(f=B.color)f=f.toString(16),this.color=`#${Array(7-f.length).join("0")}${f}`;this.tooltip=B.tooltip;this.icons=B.icons?B.icons.filter(n=>g.P5(n.thumbnails,r=>g.dE(r.url))):null; this.associatedClipId=B.associatedClipId;this.markerPositionMs=B.markerPositionMs;this.visible=this.visible;this.style=this.style;this.start=this.start}getId(){return this.id}toString(){return"CueRange{"+this.namespace+":"+this.id+"}["+wQ6(this.start)+", "+wQ6(this.end)+"]"}contains(f,e){return f>=this.start&&(f{const e=this.slot.clientMetadata.RA("metadata_type_ad_break_request_data");f=Date.now();UP(this.Ud.get(),"abrs",`ct.${f};cmt.${this.Q9.get().getCurrentTimeSec(1,!1)};sid.${this.slot.slotId};`);return this.G.get().fetch({lV:e.getAdBreakUrl,Qj:new g.VD(e.E$,e.Cs),P2:this.slot.clientMetadata.RA("metadata_type_cue_point"),cueProcessedMs:e.cueProcessedMs})}, ()=>{bvG(this)},e=>{var B=Date.now()-f; UP(this.Ud.get(),"abrr",`ct.${(new Date).getTime()};cmt.${this.Q9.get().getCurrentTimeSec(1,!1)};l.${B.toString()};sid.${this.slot.slotId};`);B=e.Jz;B.length>=2&&e.ssdaiAdsConfig&&NL("Unexpected ad placement renderers length",this.slot,null,{length:B.length});e.adSlots?.some(n=>g.u(n,R8)?.adSlotMetadata?.slotType==="SLOT_TYPE_PLAYER_BYTES")||B.some(n=>!!n.renderer?.linearAdSequenceRenderer?.linearAds?.length||!!n.renderer?.instreamVideoAdRenderer)||bvG(this)})}qy(){fWM(this.C)}};var f8d=class{constructor(f,e,B,n,r,L){this.slot=e;this.C=B;this.G=new Xa5(f,e,n,r,L)}oG(){i$5(this.G,()=>{const f=this.slot.clientMetadata.RA("metadata_type_ad_break_request_data");return f.cueProcessedMs?this.C.get().fetch({lV:f.getAdBreakUrl,Qj:new g.VD(f.E$,f.Cs),cueProcessedMs:f.cueProcessedMs}):this.C.get().fetch({lV:f.getAdBreakUrl,Qj:new g.VD(f.E$,f.Cs)})})}qy(){fWM(this.G)}};var e6H=class{constructor(f,e){this.callback=f;this.slot=e}oG(){var f=this.slot.clientMetadata;f=this.slot.fulfilledLayout??f.RA("metadata_type_fulfilled_layout");uKY(this.callback,this.slot,f)}qy(){x3(this.callback,this.slot,new M(`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")}};var BmG=class{build(f,e){return e.fulfilledLayout||vP(e,{Gt:["metadata_type_fulfilled_layout"]})?new e6H(f,e):this.J(f,e)}};var W0=class extends BmG{constructor(f,e,B,n,r,L,d){super();this.C=f;this.G=e;this.I6=B;this.iY=n;this.Ud=r;this.Q9=L;this.gX=d}J(f,e){if(vP(e,{Gt:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new iVg(f,e,this.C,this.G,this.I6,this.iY,this.Ud,this.Q9,this.gX);if(vP(e,{Gt:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new f8d(f,e,this.C,this.G,this.I6,this.iY);throw new M(`Unsupported slot with type: ${e.slotType} and client metadata: ${cK(e.clientMetadata)} in `+ "AdBreakRequestSlotFulfillmentAdapterFactory.");}};var sb=class extends BmG{J(f,e){throw new M(`Unsupported slot with type: ${e.slotType} and client metadata: ${cK(e.clientMetadata)} in `+"DefaultFulfillmentAdapterFactory.");}};var no6=class{constructor(f,e,B,n,r,L){this.callback=f;this.slot=e;this.layout=B;this.J=n;this.C=r;this.G=L}tE(){return this.slot}oX(){return this.layout}init(){}release(){}startRendering(f){if(f.layoutId!==this.layout.layoutId)this.callback.fz(this.slot,f,new WK("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 e=f.clientMetadata.RA("metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.TD(this.slot,f),xI5(this.J,this.slot,e)):NL("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,f)}}Ps(f,e){f.layoutId!==this.layout.layoutId?this.callback.fz(this.slot,f,new WK("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.DW(this.slot,f,e),Rem(this),Kcm(this))}};var rxg=class{constructor(f,e,B){this.C=f;this.slot=e;this.layout=B}};var XM=class extends g.$v{constructor(f,e,B,n){super();this.callback=f;this.J=n;this.C=[];this.G=new rxg(f,e,B)}tE(){return this.G.slot}oX(){return this.G.layout}get slot(){return this.G.slot}get layout(){return this.G.layout}init(){this.J.get().addListener(this)}release(){this.J.get().removeListener(this);this.dispose()}B_(){}Yb(){}UN(){}ix(){}startRendering(f){Ka(this.G,f,()=>void this.JY())}JY(){this.J.get().JY(this.C)}Ps(f,e){Ka(this.G,f,()=>{var B=this.J.get(); ANd(B,this.C,3);this.C=[];this.callback.DW(this.slot,f,e)})}bY(){this.J.HS()||this.J.get().removeListener(this); super.bY()}};var Ji=class{constructor(f,e,B,n,r=null){this.J=f;this.Ud=e;this.layoutId=n;this.V=0;this.U=null;this.W=void 0;this.C=new Set;this.G=Array.from(this.J.get("progress")||[]);this.G.sort((L,d)=>(L.offsetMilliseconds||0)-(d.offsetMilliseconds||0)); this.X={adPlacementConfig:B,aB:r}}MM(f,e=!1){const B=(this.J.get(f)||[]).concat();if(e=e&&ze0(f)){const n=this.J.get(e);n&&B.push(...n)}oT(this,f,B);this.C.add(f);e&&this.C.add(e)}kp(f,e=!1){if(!this.C.has(f)){var B=e&&ze0(f);B&&(e=!this.C.has(B));this.MM(f,e)}}};var LpG=class extends zX{constructor(f,e,B,n,r){super("ads-engagement-panel-layout",f,e,B,n,r)}};var dtl=class extends XM{constructor(f,e,B,n,r,L,d){super(f,e,B,n);this.Ud=r;this.Le=L;this.U=d;this.TZ=!0;this.V=null;this.W=B.clientMetadata.RA("metadata_type_linked_player_bytes_layout_id");lL(this.Le(),this);f=B.clientMetadata.RA("metadata_type_ad_placement_config");this.aA=new Ji(B.bC,this.Ud,f,B.layoutId)}tG(f,e){pa("ads-engagement-panel-layout",f,this.U.get().zC,this.Ud.get(),this.V,this.W,this.tE(),this.oX(),e)}startRendering(f){zo(this.aA,this.tE(),this.oX(),g.u(this.oX().renderingContent, Pu),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",(e,B,n,r,L)=>new LpG(e,B,n,r,L),this.C); super.startRendering(f)}TD(f,e){this.W===e.layoutId&&(this.V===null?this.V=this.Ud.get().z8():NL("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}DW(){}MD(){}XB(){}Ht(){}Ua(){}YK(){}U3(){}Yf(){}bE(){}AG(){}wR(){}bY(){uL(this.Le(),this);super.bY()}};var tn6=class extends zX{constructor(f,e,B,n,r){super("banner-image",f,e,B,n,r)}};var Ho5=class extends XM{constructor(f,e,B,n,r,L,d){super(f,e,B,n);this.Ud=r;this.Le=L;this.U=d;this.TZ=!0;this.V=null;this.W=B.clientMetadata.RA("metadata_type_linked_player_bytes_layout_id");lL(this.Le(),this);this.adPlacementConfig=B.clientMetadata.RA("metadata_type_ad_placement_config");this.aA=new Ji(B.bC,this.Ud,this.adPlacementConfig,B.layoutId)}tG(f,e){pa("banner-image",f,this.U.get().zC,this.Ud.get(),this.V,this.W,this.tE(),this.oX(),e)}startRendering(f){zo(this.aA,this.tE(),this.oX(),g.u(this.oX().renderingContent, Xq),this.callback,"metadata_type_banner_image_layout_view_model",(e,B,n,r,L)=>new tn6(e,B,n,r,L),this.C); super.startRendering(f)}TD(f,e){this.W===e.layoutId&&(this.V===null?this.V=this.Ud.get().z8():NL("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}DW(){}MD(){}XB(){}Ht(){}Ua(){}YK(){}U3(){}Yf(){}bE(){}AG(){}wR(){}bY(){uL(this.Le(),this);super.bY()}};var kQk=class extends zX{constructor(f,e,B,n,r){super("action-companion",f,e,B,n,r)}};var C36=class extends XM{constructor(f,e,B,n,r,L,d){super(f,e,B,n);this.Ud=r;this.Le=L;this.U=d;this.TZ=!0;this.V=null;this.W=B.clientMetadata.RA("metadata_type_linked_player_bytes_layout_id");lL(this.Le(),this);f=B.clientMetadata.RA("metadata_type_ad_placement_config");this.aA=new Ji(B.bC,this.Ud,f,B.layoutId)}tG(f,e){pa("action-companion",f,this.U.get().zC,this.Ud.get(),this.V,this.W,this.tE(),this.oX(),e)}startRendering(f){zo(this.aA,this.tE(),this.oX(),g.u(this.oX().renderingContent,xs),this.callback, "metadata_type_action_companion_ad_renderer",(e,B,n,r,L)=>new kQk(e,B,n,r,L),this.C); super.startRendering(f)}TD(f,e){e.layoutId===this.layout.layoutId?this.aA.kp("impression"):this.W===e.layoutId&&(this.V===null?this.V=this.Ud.get().z8():NL("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}DW(){}MD(){}XB(){}Ht(){}Ua(){}YK(){}U3(){}Yf(){}bE(){}AG(){}wR(){}bY(){uL(this.Le(),this);super.bY()}};var w3H=class extends zX{constructor(f,e,B,n,r){super("image-companion",f,e,B,n,r)}};var voG=class extends XM{constructor(f,e,B,n,r,L,d){super(f,e,B,n);this.Ud=r;this.Le=L;this.U=d;this.TZ=!0;this.V=null;this.W=B.clientMetadata.RA("metadata_type_linked_player_bytes_layout_id");lL(this.Le(),this);f=B.clientMetadata.RA("metadata_type_ad_placement_config");this.aA=new Ji(B.bC,this.Ud,f,B.layoutId)}tG(f,e){pa("image-companion",f,this.U.get().zC,this.Ud.get(),this.V,this.W,this.tE(),this.oX(),e)}startRendering(f){zo(this.aA,this.tE(),this.oX(),g.u(this.oX().renderingContent,Wu),this.callback, "metadata_type_image_companion_ad_renderer",(e,B,n,r,L)=>new w3H(e,B,n,r,L),this.C); super.startRendering(f)}TD(f,e){e.layoutId===this.layout.layoutId?this.aA.kp("impression"):this.W===e.layoutId&&(this.V===null?this.V=this.Ud.get().z8():NL("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}DW(){}MD(){}XB(){}Ht(){}Ua(){}YK(){}U3(){}Yf(){}bE(){}AG(){}wR(){}bY(){uL(this.Le(),this);super.bY()}};var bom=class extends zX{constructor(f,e,B,n,r){super("shopping-companion",f,e,B,n,r)}};var Zom=class extends XM{constructor(f,e,B,n,r,L,d){super(f,e,B,n);this.Ud=r;this.Le=L;this.U=d;this.TZ=!0;this.V=null;this.W=B.clientMetadata.RA("metadata_type_linked_player_bytes_layout_id");lL(this.Le(),this);f=B.clientMetadata.RA("metadata_type_ad_placement_config");this.aA=new Ji(B.bC,this.Ud,f,B.layoutId)}tG(f,e){pa("shopping-companion",f,this.U.get().zC,this.Ud.get(),this.V,this.W,this.tE(),this.oX(),e)}startRendering(f){zo(this.aA,this.tE(),this.oX(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer", (e,B,n,r,L)=>new bom(e,B,n,r,L),this.C); super.startRendering(f)}TD(f,e){e.layoutId===this.layout.layoutId?this.aA.kp("impression"):this.W===e.layoutId&&(this.V===null?this.V=this.Ud.get().z8():NL("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}DW(){}MD(){}XB(){}Ht(){}Ua(){}YK(){}U3(){}Yf(){}bE(){}AG(){}wR(){}bY(){uL(this.Le(),this);super.bY()}};var yo=class{constructor(f,e,B,n){this.y3=f;this.layoutId=B;this.W=n;this.G=[];this.C=[];this.J=this.V=0;for(const r of e)switch(r.adVideoOffset?.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":(r.adVideoOffset?.kind!=="AD_VIDEO_PROGRESS_KIND_PERCENT"?0:r.adVideoOffset?.percent!=null)?this.G.push(r):NL("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":(r.adVideoOffset?.kind!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS"?0:r.adVideoOffset?.milliseconds!=null&&!isNaN(Number(r.adVideoOffset.milliseconds)))? this.C.push(r):NL("Invalid AdVideoProgressMillisecondsCommand");break;default:NL("Unknown or invalid AdVideoProgressOffSet kind")}this.G.sort((r,L)=>r.adVideoOffset.percent-L.adVideoOffset.percent); this.C.sort((r,L)=>Number(r.adVideoOffset.milliseconds)-Number(L.adVideoOffset.milliseconds))}};var R60=class extends XM{constructor(f,e,B,n,r,L){super(f,e,B,n);this.Ud=r;this.Le=L;this.TZ=!0;lL(this.Le(),this);f=B.clientMetadata.RA("metadata_type_ad_placement_config");this.aA=new Ji(B.bC,this.Ud,f,B.layoutId)}startRendering(f){zo(this.aA,this.tE(),this.oX(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",(e,B,n,r,L)=>new kQk(e,B,n,r,L),this.C); super.startRendering(f)}TD(){}DW(){}MD(){}XB(){}Ht(){}Ua(){}YK(){}U3(){}Yf(){}bE(){}AG(){}wR(){}bY(){uL(this.Le(),this);super.bY()}tG(){}};var KpY=class{constructor(f,e,B,n,r,L,d,t){this.callback=f;this.slot=e;this.layout=B;this.Q9=n;this.Ud=r;this.iY=d;this.UA=t;this.C=!1;f=B.clientMetadata.RA("metadata_type_ad_placement_config");this.aA=new Ji(B.bC,this.Ud,f,B.layoutId);f=this.layout.clientMetadata.RA("METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")?.progressCommands||[];const H=B.clientMetadata.RA("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.G=new yo(L,f,B.layoutId,()=>H*1E3)}tE(){return this.slot}oX(){return this.layout}init(){this.Q9.get().addListener(this); this.Q9.get().F9.push(this);const f=this.layout.clientMetadata.RA("metadata_type_video_length_seconds"),e=this.layout.clientMetadata.RA("metadata_type_active_view_traffic_type");cP(this.layout.bC)&&Yw(this.UA.get(),this.layout.layoutId,{l4:e,Uq:f,listener:this})}release(){this.Q9.get().removeListener(this);zoC(this.Q9.get(),this);cP(this.layout.bC)&&A3(this.UA.get(),this.layout.layoutId)}startRendering(f){this.callback.TD(this.slot,f)}Ps(f,e){sud(this.iY.get())&&!this.C&&(this.aA.kp("abandon"),this.C= !0);this.callback.DW(this.slot,f,e)}cJ(f){switch(f.id){case "part2viewed":this.aA.kp("start");this.aA.kp("impression");break;case "videoplaytime25":this.aA.kp("first_quartile");break;case "videoplaytime50":this.aA.kp("midpoint");break;case "videoplaytime75":this.aA.kp("third_quartile");break;case "videoplaytime100":sud(this.iY.get())?this.C||(this.aA.kp("complete"),this.C=!0):this.aA.kp("complete");FN(this.aA)&&ly(this.aA,Infinity,!0);X26(this.iY.get())&&mE(this.G,Infinity,!0);break;case "engagedview":FN(this.aA)|| this.aA.kp("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:NL("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}onVolumeChange(){}r8(){}tq(){}b$(){}onFullscreenToggled(){}OI(){}s4(){}GY(f){X26(this.iY.get())&&mE(this.G,f*1E3,!1);FN(this.aA)&&ly(this.aA,f*1E3,!1)}J1(){}UY(){this.aA.kp("active_view_measurable")}Ye(){this.aA.kp("active_view_viewable")}HY(){this.aA.kp("active_view_fully_viewable_audible_half_duration")}Rv(){this.aA.kp("audio_measurable")}ZE(){this.aA.kp("audio_audible")}};var Mud=class extends XM{constructor(f,e,B,n,r,L){super(f,e,B,n);this.Q9=r;this.W=L;this.V=!1}init(){super.init();const f=this.layout.clientMetadata.RA("metadata_type_instream_ad_player_overlay_renderer"),e={adsClientData:this.layout.BL};this.C.push(new FM(f,this.layout.layoutId,this.layout.clientMetadata.RA("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),e,!0))}Jt(){this.V||this.Q9.get().resumeVideo(1)}startRendering(f){super.startRendering(f);uQ(this.Q9.get(),"ad-showing");this.callback.TD(this.slot, f);this.W.hv=this}Ps(f,e){super.Ps(f,e);FT(this.Q9.get(),"ad-showing");iQ(this.W,this)}tG(f){switch(f){case "ad-info-icon-button":(this.V=this.Q9.get().tb(1))||this.Q9.get().pauseVideo();break;case "visit-advertiser":this.Q9.get().pauseVideo()}}bY(){super.bY()}};var qJg=class extends zX{constructor(f,e,B,n,r){super("top-banner-image-text-icon-buttoned",f,e,B,n,r)}};var z6k=class extends XM{constructor(f,e,B,n,r,L){super(f,e,B,n);this.Ud=r;this.Le=L;this.TZ=!0;lL(this.Le(),this);f=B.clientMetadata.RA("metadata_type_ad_placement_config");this.aA=new Ji(B.bC,this.Ud,f,B.layoutId)}startRendering(f){zo(this.aA,this.tE(),this.oX(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",(e,B,n,r,L)=>new qJg(e,B,n,r,L),this.C); super.startRendering(f)}TD(){}DW(){}MD(){}XB(){}Ht(){}Ua(){}YK(){}U3(){}Yf(){}bE(){}AG(){}wR(){}bY(){uL(this.Le(),this);super.bY()}tG(){}};var a8g=class extends zX{constructor(f,e,B){super("display-underlay-text-grid-cards",f,{},e,B);this.interactionLoggingClientData=B}};var p3M=class extends XM{constructor(f,e,B,n,r,L){super(f,e,B,n);this.Ud=r;this.V=L;this.W=this.layout.clientMetadata.RA("metadata_type_linked_player_bytes_layout_id")}init(){super.init();this.C.push(new a8g(g.u(this.layout.renderingContent,vV),this.layout.layoutId,{adsClientData:this.layout.BL}))}tG(){wd(this.V.get(),this.W)&&aT(this.Ud.get(),3)}startRendering(f){super.startRendering(f);this.callback.TD(this.slot,f)}bY(){super.bY()}};var P0=class extends zX{constructor(f,e,B,n){super("ad-action-interstitial",f,e,B,n);this.interactionLoggingClientData=n;this.b1=this.oE=!0}};var DE0=class extends XM{constructor(f,e,B,n,r){super(f,e,B,n);f=B.clientMetadata.RA("metadata_type_ad_placement_config");this.aA=new Ji(B.bC,r,f,B.layoutId)}init(){super.init();const f=g.u(this.layout.renderingContent,S1)||this.layout.clientMetadata.RA("metadata_type_ad_action_interstitial_renderer"),e=qr(this.aA);this.C.push(new P0(f,e,this.layout.layoutId,{adsClientData:this.layout.BL}))}startRendering(f){super.startRendering(f);this.callback.TD(this.slot,f)}tG(f,e){if(e===this.layout.layoutId)switch(f){case "skip-button":(f= this.layout.clientMetadata.RA("metadata_type_ad_pod_skip_target_callback_ref")?.current)&&OP(f,this.tE(),this.layout)}}bY(){super.bY()}};var If=class{constructor(f,e,B){this.G=f;this.J=e;this.C=B}build(f,e,B,n){if(UI(n,{Gt:["metadata_type_ad_break_response_data"],Nj:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new no6(f,B,n,this.G,this.J,this.C);throw new WK(`Unsupported layout with type: ${n.layoutType} and client metadata: ${cK(n.clientMetadata)} in `+"AdBreakRequestLayoutRenderingAdapterFactory.");}};var cxM=class extends zX{constructor(f,e,B,n,r){super("ads-engagement-panel",f,e,B,n,r)}};var YJO=class extends XM{constructor(f,e,B,n,r,L,d){super(f,e,B,n);this.Ud=r;this.Le=L;this.U=d;this.TZ=!0;this.V=null;this.W=B.clientMetadata.RA("metadata_type_linked_player_bytes_layout_id");lL(this.Le(),this);f=B.clientMetadata.RA("metadata_type_ad_placement_config");this.aA=new Ji(B.bC,this.Ud,f,B.layoutId)}tG(f,e){pa("ads-engagement-panel",f,this.U.get().zC,this.Ud.get(),this.V,this.W,this.tE(),this.oX(),e)}startRendering(f){zo(this.aA,this.tE(),this.oX(),g.u(this.oX().renderingContent,sP),this.callback, "metadata_type_ads_engagement_panel_renderer",(e,B,n,r,L)=>new cxM(e,B,n,r,L),this.C); super.startRendering(f)}TD(f,e){e.layoutId===this.layout.layoutId?this.aA.kp("impression"):this.W===e.layoutId&&(this.V===null?this.V=this.Ud.get().z8():NL("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}DW(){}MD(){}XB(){}Ht(){}Ua(){}YK(){}U3(){}Yf(){}bE(){}AG(){}wR(){}bY(){uL(this.Le(),this);super.bY()}};var AxC=class extends XM{constructor(f,e,B,n,r,L,d){super(f,e,B,n);this.Ud=r;this.Le=L;this.U=d;this.TZ=!0;this.V=null;this.W=B.clientMetadata.RA("metadata_type_linked_player_bytes_layout_id");lL(this.Le(),this);this.adPlacementConfig=B.clientMetadata.RA("metadata_type_ad_placement_config");this.aA=new Ji(B.bC,this.Ud,this.adPlacementConfig,B.layoutId)}tG(f,e){pa("top-banner-image-text-icon-buttoned",f,this.U.get().zC,this.Ud.get(),this.V,this.W,this.tE(),this.oX(),e)}startRendering(f){zo(this.aA, this.tE(),this.oX(),g.u(this.oX().renderingContent,yM),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",(e,B,n,r,L)=>new qJg(e,B,n,r,L),this.C); super.startRendering(f)}TD(f,e){this.W===e.layoutId&&(this.V===null?this.V=this.Ud.get().z8():NL("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}DW(){}MD(){}XB(){}Ht(){}Ua(){}YK(){}U3(){}Yf(){}bE(){}AG(){}wR(){}bY(){uL(this.Le(),this);super.bY()}};var j9d=class{constructor(f,e,B,n,r){this.rX=f;this.Ud=e;this.Le=B;this.C=n;this.UA=r}build(f,e,B,n){if(UI(n,FcO())||g.u(n.renderingContent,sP)!==void 0)return new YJO(f,B,n,this.rX,this.Ud,this.Le,this.C);if(UI(n,AwC())||g.u(n.renderingContent,xs)!==void 0)return new C36(f,B,n,this.rX,this.Ud,this.Le,this.C);if(UI(n,jcY())||g.u(n.renderingContent,Wu)!==void 0)return new voG(f,B,n,this.rX,this.Ud,this.Le,this.C);if(UI(n,OvG()))return new Zom(f,B,n,this.rX,this.Ud,this.Le,this.C);if(UI(n,opC()))return new R60(f, B,n,this.rX,this.Ud,this.Le);if(UI(n,YAl())||g.u(n.renderingContent,Xq)!==void 0)return new Ho5(f,B,n,this.rX,this.Ud,this.Le,this.C);if(UI(n,mEk())||g.u(n.renderingContent,yM)!==void 0)return new AxC(f,B,n,this.rX,this.Ud,this.Le,this.C);if(UI(n,VuO()))return new z6k(f,B,n,this.rX,this.Ud,this.Le);if(UI(n,cw5())||g.u(n.renderingContent,Pu)!==void 0)return new dtl(f,B,n,this.rX,this.Ud,this.Le,this.C);throw new WK(`Unsupported layout with type: ${n.layoutType} and client metadata: ${cK(n.clientMetadata)} in `+ "DesktopAboveFeedLayoutRenderingAdapterFactory.");}};var Ood=class{constructor(f,e,B){this.rX=f;this.Ud=e;this.C=B}build(f,e,B,n){if(UI(n,{Gt:["metadata_type_linked_player_bytes_layout_id"],Nj:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new p3M(f,B,n,this.rX,this.Ud,this.C);throw new WK(`Unsupported layout with type: ${n.layoutType} and client metadata: ${cK(n.clientMetadata)} in `+"DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");}};var oo0=class{constructor(f,e,B,n,r){this.callback=f;this.slot=e;this.layout=B;this.Ud=n;this.Gb=r;f=this.layout.clientMetadata.RA("metadata_type_ad_placement_config");this.aA=new Ji(B.bC,this.Ud,f,B.layoutId)}tE(){return this.slot}oX(){return this.layout}init(){}release(){}startRendering(f){f.layoutId!==this.layout.layoutId?this.callback.fz(this.slot,f,new WK("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.TD(this.slot,f),this.aA.kp("impression"),ux(this.Gb,f))}Ps(f,e){f.layoutId!==this.layout.layoutId?this.callback.fz(this.slot,f,new WK("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.DW(this.slot, f,e)}};var VnH=class{constructor(f,e,B,n,r){this.callback=f;this.slot=e;this.layout=B;this.Ud=n;this.Gb=r;f=this.layout.clientMetadata.RA("metadata_type_ad_placement_config");this.aA=new Ji(B.bC,this.Ud,f,B.layoutId)}tE(){return this.slot}oX(){return this.layout}init(){}release(){}startRendering(f){f.layoutId!==this.layout.layoutId?this.callback.fz(this.slot,f,new WK("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.TD(this.slot,f),this.aA.kp("impression"),ux(this.Gb,f))}Ps(f,e){f.layoutId!==this.layout.layoutId?this.callback.fz(this.slot,f,new WK("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.DW(this.slot, f,e)}};var $R=class{constructor(f,e,B,n){this.iY=f;this.Ud=e;this.Gb=B;this.UA=n}build(f,e,B,n){if(!this.iY.get().Z.S().Y("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(UI(n,UEk()))return new oo0(f,B,n,this.Ud,this.Gb)}else if(UI(n,{Gt:[],Nj:["LAYOUT_TYPE_FORECASTING"]}))return new VnH(f,B,n,this.Ud,this.Gb);throw new WK(`Unsupported layout with type: ${n.layoutType} and client metadata: ${cK(n.clientMetadata)} in `+"ForecastingLayoutRenderingAdapterFactory.");}};var l8w=class extends zX{constructor(f,e,B,n){super("player-overlay-layout",f,{},B,n);this.videoAdDurationSeconds=e;this.interactionLoggingClientData=n}};var TF6=class extends XM{constructor(f,e,B,n,r,L,d,t,H){super(f,e,B,n);this.Q9=r;this.Ud=L;this.U=d;this.W=t;this.iY=H;this.V=!1;this.X=this.layout.clientMetadata.RA("metadata_type_linked_player_bytes_layout_id")}init(){super.init();const f=g.u(this.layout.renderingContent,gE)||this.layout.clientMetadata.RA("metadata_type_player_overlay_layout_renderer"),e={adsClientData:this.layout.BL};this.C.push(new l8w(f,this.layout.clientMetadata.RA("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId, e))}Jt(){this.V||this.Q9.get().resumeVideo(2)}startRendering(f){super.startRendering(f);this.callback.TD(this.slot,f);this.W.hv=this}Ps(f,e){super.Ps(f,e);iQ(this.W,this)}tG(f,e){if(!BP(this.iY.get(),"stop_handling_click_for_non_rendering_overlay_layout")||e===this.layout.layoutId){if(wd(this.U.get(),this.X))switch(f){case "visit-advertiser-link":aT(this.Ud.get(),3)}switch(f){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.V|| this.Q9.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.V=this.Q9.get().tb(2))||this.Q9.get().pauseVideo();break;case "visit-advertiser-link":this.Q9.get().pauseVideo();gpk(this).FQ();break;case "skip-button":f=gpk(this),this.layout.renderingContent&&!aM(this.layout.clientMetadata,"metadata_type_dai")||!f||!f.gE?(f=this.layout.clientMetadata.RA("metadata_type_ad_pod_skip_target_callback_ref")?.current)&&OP(f,this.tE(),this.layout):(NL("Requesting to skip by LegacyPlayerBytes when components enabled"), f.lF(this.tE(),this.layout))}}}bY(){super.bY()}};var QcO=class extends XM{constructor(f,e,B,n,r,L,d,t,H){super(f,e,B,n);this.Q9=r;this.Ud=L;this.U=d;this.W=t;this.iY=H;this.V=!1;this.X=this.layout.clientMetadata.RA("metadata_type_linked_player_bytes_layout_id")}init(){super.init();const f=g.u(this.layout.renderingContent,h0)||this.layout.clientMetadata.RA("metadata_type_instream_ad_player_overlay_renderer"),e={adsClientData:this.layout.BL};var B;(B=!!this.layout.renderingContent)||(B=Nr(this),B=!(B&&B.gE));this.C.push(new FM(f,this.layout.layoutId, this.layout.clientMetadata.RA("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),e,B))}Jt(){this.V||this.Q9.get().resumeVideo(2)}startRendering(f){super.startRendering(f);this.callback.TD(this.slot,f);this.W.hv=this}Ps(f,e){super.Ps(f,e);iQ(this.W,this)}tG(f,e){if(!this.iY||!BP(this.iY.get(),"stop_handling_click_for_non_rendering_overlay_layout")||e===this.layout.layoutId){if(wd(this.U.get(),this.X))switch(f){case "visit-advertiser":aT(this.Ud.get(),3)}switch(f){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.V|| this.Q9.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.V=this.Q9.get().tb(2))||this.Q9.get().pauseVideo();break;case "visit-advertiser":this.Q9.get().pauseVideo();Nr(this).FQ();break;case "skip-button":f=Nr(this),this.layout.renderingContent&&!aM(this.layout.clientMetadata,"metadata_type_dai")||!f||!f.gE?(f=this.layout.clientMetadata.RA("metadata_type_ad_pod_skip_target_callback_ref")?.current)&&OP(f,this.tE(),this.layout):(NL("Requesting to skip by LegacyPlayerBytes"), f.lF(this.tE(),this.layout))}}}bY(){super.bY()}};var uEk=class extends zX{constructor(f,e,B){super("ad-message",f,void 0,e,B)}};var JwH=class extends XM{constructor(f,e,B,n,r,L){super(B,f,e,n);this.Q9=r;this.iY=L}startRendering(f){Ka(this.G,f,()=>{this.C.push(new uEk(this.layout.clientMetadata.RA("metadata_type_valid_ad_message_renderer"),f.layoutId,f.BL));this.JY();this.callback.TD(this.slot,f);cd(this.Q9.get(),1).C(512)&&this.callback.fz(this.tE(),this.oX(),new WK("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}s4(){}OI(f){f.state.isError()&& this.callback.fz(this.tE(),this.oX(),new WK("A player error happened during adNotify",{playerErrorCode:f.state.iE?.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}onFullscreenToggled(){}tq(){}b$(){}r8(){}onVolumeChange(){}cJ(){}J1(){}tG(){}};var Fpm=class extends zX{constructor(f,e,B,n){super("video-interstitial-buttoned-centered",f,e,B,n);this.interactionLoggingClientData=n}};var GId=class extends XM{constructor(f,e,B,n,r){super(f,e,B,n);f=B.clientMetadata.RA("metadata_type_ad_placement_config");this.aA=new Ji(B.bC,r,f,B.layoutId)}init(){super.init();const f=g.u(this.layout.renderingContent,EI),e=qr(this.aA);this.C.push(new Fpm(f,e,this.layout.layoutId,{adsClientData:this.layout.BL}))}startRendering(f){super.startRendering(f);this.callback.TD(this.slot,f)}tG(f,e){if(e===this.layout.layoutId)switch(f){case "skip-button":(f=this.layout.clientMetadata.RA("metadata_type_ad_pod_skip_target_callback_ref")?.current)&& OP(f,this.tE(),this.layout)}}bY(){super.bY()}};var mt0=class{constructor(f,e,B,n,r,L){this.rX=f;this.Q9=e;this.Ud=B;this.G=n;this.C=r;this.iY=L}build(f,e,B,n){if(f=Q0(f,B,n,this.rX,this.Q9,this.Ud,this.G,this.C,this.iY))return f;throw new WK(`Unsupported layout with type: ${n.layoutType} and client metadata: ${cK(n.clientMetadata)} in `+"OtherWebInPlayerLayoutRenderingAdapterFactory.");}};var UtM=class{constructor(f,e,B,n,r,L,d,t,H){this.callback=f;this.slot=e;this.layout=B;this.Q9=n;this.Ud=r;this.iY=d;this.UA=t;this.mY=H;this.C=!1;f=B.clientMetadata.RA("metadata_type_ad_placement_config");this.aA=new Ji(B.bC,this.Ud,f,B.layoutId);f=this.layout.clientMetadata.RA("METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")?.progressCommands||[];this.G=new yo(L,f,B.layoutId,()=>xEk(this)*1E3)}tE(){return this.slot}oX(){return this.layout}init(){this.Q9.get().addListener(this); this.Q9.get().F9.push(this);const f=xEk(this);var e=g.u(this.layout.renderingContent,HV);const B=e?Yk(e.pings):this.layout.clientMetadata.RA("metadata_type_active_view_traffic_type");e=e?e.pings?.activeViewTracking?.identifier:this.layout.clientMetadata.RA("metadata_type_active_view_identifier");cP(this.layout.bC)&&Yw(this.UA.get(),this.layout.layoutId,{l4:B,Uq:f,listener:this,ZL:e})}release(){this.Q9.get().removeListener(this);zoC(this.Q9.get(),this);cP(this.layout.bC)&&A3(this.UA.get(),this.layout.layoutId)}startRendering(f){this.callback.TD(this.slot, f)}Ps(f,e){Mr(this,"abandon");this.callback.DW(this.slot,f,e)}cJ(f){switch(f.id){case "part2viewed":this.aA.kp("start");this.aA.kp("impression");break;case "videoplaytime25":this.aA.kp("first_quartile");break;case "videoplaytime50":this.aA.kp("midpoint");break;case "videoplaytime75":this.aA.kp("third_quartile");break;case "videoplaytime100":Mr(this,"complete");FN(this.aA)&&ly(this.aA,Infinity,!0);yBG(this.iY.get())&&mE(this.G,Infinity,!0);break;case "engagedview":FN(this.aA)||this.aA.kp("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:NL("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}onVolumeChange(){}r8(){}tq(){}b$(){}onFullscreenToggled(){}OI(f){this.C||(f.IC(4)&&!f.IC(2)?V0(this.aA,"pause"):hX(f,4)<0&&!(hX(f,2)<0)&&V0(this.aA,"resume"))}s4(){}GY(f){yBG(this.iY.get())&&mE(this.G,f*1E3,!1);FN(this.aA)&&ly(this.aA,f*1E3,!1)}J1(){Mr(this,"swipe")}UY(){this.aA.kp("active_view_measurable")}Ye(){this.aA.kp("active_view_viewable")}HY(){this.aA.kp("active_view_fully_viewable_audible_half_duration")}Rv(){this.aA.kp("audio_measurable")}ZE(){this.aA.kp("audio_audible")}};var Nmw=class{constructor(f,e,B,n,r,L){this.Q9=f;this.Ud=e;this.y3=B;this.iY=n;this.UA=r;this.mY=L}build(f,e,B,n){if(B.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.u(n.renderingContent,HV)!==void 0)return new UtM(f,B,n,this.Q9,this.Ud,this.y3,this.iY,this.UA,this.mY);e=["metadata_type_ad_placement_config"];for(const r of j1())e.push(r);if(UI(n,{Gt:e,Nj:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return B.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new UtM(f,B,n,this.Q9,this.Ud,this.y3, this.iY,this.UA,this.mY):new KpY(f,B,n,this.Q9,this.Ud,this.y3,this.iY,this.UA);throw new WK(`Unsupported layout with type: ${n.layoutType} and client metadata: ${cK(n.clientMetadata)} in `+"PlaybackTrackingLayoutRenderingAdapterFactory.");}};g.WP=class{constructor(f,e={},B=0){this.errorCode=f;this.details=e;this.severity=B}};var h60; h60={Xn:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",rO:"AUTHENTICATION_MALFORMED",Gx:"AUTHENTICATION_MISSING",va:"BAD_REQUEST",sV:"CAST_SESSION_DEVICE_MISMATCHED",yf:"CAST_SESSION_VIDEO_MISMATCHED",uB:"CAST_TOKEN_EXPIRED",Z8:"CAST_TOKEN_FAILED",Rq:"CAST_TOKEN_MALFORMED",Ha:"CGI_PARAMS_MALFORMED",UV:"CGI_PARAMS_MISSING",AN:"DEVICE_FALLBACK",Uc:"GENERIC_WITH_LINK_AND_CPN",XN:"ERROR_HDCP",BA:"LICENSE",Mh:"VIDEO_UNAVAILABLE",hp:"FORMAT_UNAVAILABLE",SE:"GEO_FAILURE",Qp:"HTML5_AUDIO_RENDERER_ERROR", dB:"GENERIC_WITHOUT_LINK",sD:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",yp:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",uZ:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",Zd:"HTML5_SPS_UMP_STATUS_REJECTED",n3:"INVALID_DRM_MESSAGE",SM:"PURCHASE_NOT_FOUND",jM:"PURCHASE_REFUNDED",QAI:"RENTAL_EXPIRED",Hql:"RETRYABLE_ERROR",nAY:"SERVER_ERROR",a9i:"SIGNATURE_EXPIRED",I9A:"STOPPED_BY_ANOTHER_PLAYBACK",ALA:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",TA9:"STREAMING_NOT_ALLOWED",opI:"STREAM_LICENSE_NOT_FOUND", VfL:"TOO_MANY_REQUESTS",WSA:"TOO_MANY_REQUESTS_WITH_LINK",LS9:"TOO_MANY_STREAMS_PER_ENTITLEMENT",pL9:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",mkl:"VIDEO_FORBIDDEN",k6d:"VIDEO_NOT_FOUND",iB:"BROWSER_OR_EXTENSION_ERROR"}; g.DI={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.",DEVICE_FALLBACK:"Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel neste dispositivo.",GENERIC_WITH_LINK_AND_CPN:"Ocorreu um erro. Tente novamente mais tarde. (ID de reprodu\u00e7\u00e3o: $CPN) $BEGIN_LINKSaiba mais$END_LINK", LICENSE:"Ocorreu um erro ao licenciar este v\u00eddeo.",VIDEO_UNAVAILABLE:"V\u00eddeo indispon\u00edvel",FORMAT_UNAVAILABLE:"O v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel na qualidade selecionada. Tente novamente mais tarde.",GEO_FAILURE:"Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel em seu pa\u00eds.",HTML5_AUDIO_RENDERER_ERROR:"Erro ao renderizar \u00e1udio. Reinicie seu computador.",GENERIC_WITHOUT_LINK:"Ocorreu um erro. Tente novamente mais tarde.",HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"Este formato de v\u00eddeo n\u00e3o \u00e9 suportado.", 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",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",HTML5_SPS_UMP_STATUS_REJECTED:"Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK", INVALID_DRM_MESSAGE:"A mensagem espec\u00edfica do sistema de DRM (gest\u00e3o de direitos digitais) \u00e9 inv\u00e1lida.",PURCHASE_NOT_FOUND:"Este v\u00eddeo requer pagamento.",PURCHASE_REFUNDED:"A compra deste v\u00eddeo foi estornada.",RENTAL_EXPIRED:"O aluguel deste v\u00eddeo expirou.",CAST_SESSION_DEVICE_MISMATCHED:"O dispositivo na sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.",CAST_SESSION_VIDEO_MISMATCHED:"O v\u00eddeo da sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.", CAST_TOKEN_FAILED:"Sess\u00e3o de transmiss\u00e3o n\u00e3o dispon\u00edvel. Atualize ou tente novamente mais tarde.",CAST_TOKEN_EXPIRED:"A sess\u00e3o de transmiss\u00e3o expirou. Atualize.",CAST_TOKEN_MALFORMED:"Sess\u00e3o de transmiss\u00e3o inv\u00e1lida. Atualize ou tente novamente mais tarde.",SERVER_ERROR:"Ocorreu um erro interno do servidor. Tente novamente mais tarde.",STOPPED_BY_ANOTHER_PLAYBACK:"Sua conta est\u00e1 reproduzindo este v\u00eddeo em outro local. Recarregue esta p\u00e1gina para continuar assistindo.", STREAM_LICENSE_NOT_FOUND:"Reprodu\u00e7\u00e3o de v\u00eddeo interrompida. Tente novamente.",STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"Foram utilizados muitos dispositivos/endere\u00e7os IP no per\u00edodo de 24 horas.",STREAMING_NOT_ALLOWED:"Reprodu\u00e7\u00e3o n\u00e3o permitida porque este v\u00eddeo est\u00e1 fixado a outro dispositivo.",RETRYABLE_ERROR:"Ocorreu um erro tempor\u00e1rio no servidor. Tente novamente mais tarde.",TOO_MANY_REQUESTS:"Fa\u00e7a login para assistir este v\u00eddeo.", TOO_MANY_REQUESTS_WITH_LINK:"$BEGIN_LINKClique aqui$END_LINK para assistir este v\u00eddeo no YouTube.",TOO_MANY_STREAMS_PER_USER:"A reprodu\u00e7\u00e3o foi interrompida porque est\u00e3o sendo exibidos muitos v\u00eddeos da mesma conta.",TOO_MANY_STREAMS_PER_ENTITLEMENT:"A reprodu\u00e7\u00e3o foi interrompida porque este v\u00eddeo foi reproduzido em muitos dispositivos.",UNSUPPORTED_DEVICE:"A reprodu\u00e7\u00e3o n\u00e3o \u00e9 compat\u00edvel com este dispositivo.",VIDEO_FORBIDDEN:"O acesso a este v\u00eddeo \u00e9 proibido.", VIDEO_NOT_FOUND:"N\u00e3o foi poss\u00edvel localizar o v\u00eddeo.",BROWSER_OR_EXTENSION_ERROR:"Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK"};var i6;{var gom=g.d0();const f=gom.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!f||f.length<2)i6=void 0;else{var fZ=gom.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);i6=fZ&&fZ.length===6?Number(fZ[5].replace("_",".")):0}}var uK=i6,xZ=uK>=0;g.ep=class extends C1{D(f,e,B,n,r){return super.D(f,e,B,n,r)}};var Wm={FAIRPLAY:"fairplay",PLAYREADY:"playready",WIDEVINE:"widevine",CLEARKEY:null,FLASHACCESS:null,UNKNOWN:null,WIDEVINE_CLASSIC:null};var N2=class{constructor(f=0,e=0,B="SPATIAL_AUDIO_TYPE_NONE",n=!1,r,L,d="AUDIO_QUALITY_UNKNOWN",t=!1){this.sampleRate=f;this.numChannels=e;this.spatialAudioType=B;this.C=n;this.J=r;this.V=L;this.audioQuality=d;this.G=t}isMultiChannelAudio(){return this.numChannels>2}};var D0={WIDTH:{name:"width",video:!0,valid:640,IJ:99999},HEIGHT:{name:"height",video:!0,valid:360,IJ:99999},FRAMERATE:{name:"framerate",video:!0,valid:30,IJ:9999},BITRATE:{name:"bitrate",video:!0,valid:3E5,IJ:2E9},EOTF:{name:"eotf",video:!0,valid:"bt709",IJ:"catavision"},CHANNELS:{name:"channels",video:!1,valid:2,IJ:99},CRYPTOBLOCKFORMAT:{name:"cryptoblockformat",video:!0,valid:"subsample",IJ:"invalidformat"},DECODETOTEXTURE:{name:"decode-to-texture",video:!0,valid:"false",IJ:"nope"},AV1_CODECS:{name:"codecs", video:!0,valid:"av01.0.05M.08",IJ:"av99.0.05M.08"},EXPERIMENTAL:{name:"experimental",video:!0,valid:"allowed",IJ:"invalid"},TUNNELMODE:{name:"tunnelmode",video:!0,valid:"true",IJ:"false"}};var SJ5=["h","H"],EoH=["9","("],Q9O=["9h","(h"],Tm6=["8","*"],Dtd=["a","A"],JxO=["o","O"],Mnm=["m","M"],GQO=["mac3","MAC3"],xtM=["meac3","MEAC3"],RA5={h:SJ5,H:SJ5,["9"]:EoH,["("]:EoH,["9h"]:Q9O,["(h"]:Q9O,["8"]:Tm6,["*"]:Tm6,a:Dtd,A:Dtd,o:JxO,O:JxO,m:Mnm,M:Mnm,mac3:GQO,MAC3:GQO,meac3:xtM,MEAC3:xtM},Wp0=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),M$5=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var Ja={["0"]:"f",["160"]:"h",["133"]:"h",["134"]:"h",["135"]:"h",["136"]:"h",["137"]:"h",["264"]:"h",["266"]:"h",["138"]:"h",["298"]:"h",["299"]:"h",["304"]:"h",["305"]:"h",["214"]:"h",["216"]:"h",["374"]:"h",["375"]:"h",["140"]:"a",["141"]:"a",["327"]:"sa",["258"]:"m",["380"]:"mac3",["328"]:"meac3",["161"]:"H",["142"]:"H",["143"]:"H",["144"]:"H",["222"]:"H",["223"]:"H",["145"]:"H",["224"]:"H",["225"]:"H",["146"]:"H",["226"]:"H",["227"]:"H",["147"]:"H",["384"]:"H",["376"]:"H",["385"]:"H",["377"]:"H", ["149"]:"A",["261"]:"M",["381"]:"MAC3",["329"]:"MEAC3",["598"]:"9",["278"]:"9",["242"]:"9",["243"]:"9",["244"]:"9",["775"]:"9",["776"]:"9",["777"]:"9",["778"]:"9",["779"]:"9",["780"]:"9",["781"]:"9",["782"]:"9",["783"]:"9",["247"]:"9",["248"]:"9",["353"]:"9",["355"]:"9",["356"]:"9",["271"]:"9",["577"]:"9",["313"]:"9",["579"]:"9",["272"]:"9",["302"]:"9",["303"]:"9",["407"]:"9",["408"]:"9",["308"]:"9",["315"]:"9",["330"]:"9h",["331"]:"9h",["332"]:"9h",["333"]:"9h",["334"]:"9h",["335"]:"9h",["336"]:"9h", ["337"]:"9h",["338"]:"so",["600"]:"o",["250"]:"o",["251"]:"o",["774"]:"o",["194"]:"*",["195"]:"*",["220"]:"*",["221"]:"*",["196"]:"*",["197"]:"*",["279"]:"(",["280"]:"(",["317"]:"(",["318"]:"(",["273"]:"(",["274"]:"(",["357"]:"(",["358"]:"(",["275"]:"(",["359"]:"(",["360"]:"(",["276"]:"(",["583"]:"(",["584"]:"(",["314"]:"(",["585"]:"(",["561"]:"(",["277"]:"(",["361"]:"(h",["362"]:"(h",["363"]:"(h",["364"]:"(h",["365"]:"(h",["366"]:"(h",["591"]:"(h",["592"]:"(h",["367"]:"(h",["586"]:"(h",["587"]:"(h", ["368"]:"(h",["588"]:"(h",["562"]:"(h",["409"]:"(",["410"]:"(",["411"]:"(",["412"]:"(",["557"]:"(",["558"]:"(",["394"]:"1",["395"]:"1",["396"]:"1",["397"]:"1",["398"]:"1",["399"]:"1",["720"]:"1",["721"]:"1",["400"]:"1",["401"]:"1",["571"]:"1",["402"]:"1",["694"]:"1h",["695"]:"1h",["696"]:"1h",["697"]:"1h",["698"]:"1h",["699"]:"1h",["700"]:"1h",["701"]:"1h",["702"]:"1h",["703"]:"1h",["386"]:"3",["387"]:"w",["406"]:"6",["787"]:"1",["788"]:"1",["548"]:"1e",["549"]:"1e",["550"]:"1e",["551"]:"1e",["809"]:"1e", ["810"]:"1e",["552"]:"1e",["811"]:"1e",["812"]:"1e",["553"]:"1e",["813"]:"1e",["814"]:"1e",["554"]:"1e",["815"]:"1e",["816"]:"1e",["555"]:"1e",["817"]:"1e",["818"]:"1e",["572"]:"1e",["556"]:"1e",["645"]:"(",["646"]:"(",["647"]:"(",["648"]:"(",["649"]:"(",["650"]:"(",["651"]:"(",["652"]:"(",["653"]:"(",["654"]:"(",["655"]:"(",["656"]:"(",["657"]:"(",["658"]:"(",["659"]:"(",["660"]:"(",["661"]:"(",["662"]:"(",["663"]:"(",["664"]:"(",["665"]:"(",["666"]:"(",["667"]:"(",["668"]:"(",["669"]:"(",["670"]:"(", ["671"]:"(",["672"]:"(",["673"]:"(",["674"]:"(h",["675"]:"(h",["676"]:"(h",["677"]:"(h",["678"]:"(h",["679"]:"(h",["680"]:"(h",["681"]:"(h",["682"]:"(h",["683"]:"(h",["684"]:"(h",["685"]:"(h",["686"]:"(h",["687"]:"(h",["688"]:"A",["689"]:"A",["690"]:"A",["691"]:"MEAC3",["773"]:"i",["806"]:"I",["805"]:"I",["829"]:"9",["830"]:"9",["831"]:"9",["832"]:"9",["833"]:"9",["834"]:"9",["835"]:"9",["836"]:"9",["892"]:"9",["893"]:"9",["837"]:"9",["838"]:"9",["839"]:"9",["840"]:"9",["841"]:"(",["842"]:"(",["843"]:"(", ["844"]:"(",["845"]:"(",["846"]:"(",["847"]:"(",["848"]:"(",["894"]:"(",["895"]:"(",["849"]:"(",["850"]:"(",["851"]:"(",["852"]:"(",["865"]:"9",["866"]:"9",["867"]:"9",["868"]:"9",["869"]:"9",["870"]:"9",["871"]:"9",["872"]:"9",["896"]:"9",["897"]:"9",["873"]:"9",["874"]:"9",["875"]:"9",["876"]:"9",["877"]:"(",["878"]:"(",["879"]:"(",["880"]:"(",["881"]:"(",["882"]:"(",["883"]:"(",["884"]:"(",["898"]:"(",["899"]:"(",["885"]:"(",["886"]:"(",["887"]:"(",["888"]:"(",["900"]:"2",["901"]:"2",["902"]:"2", ["903"]:"2",["904"]:"2",["905"]:"2",["906"]:"2",["907"]:"2",["908"]:"2"};var hRG={STEREO_LAYOUT_UNKNOWN:0,STEREO_LAYOUT_LEFT_RIGHT:1,STEREO_LAYOUT_TOP_BOTTOM:2};var Bbm={VI9:0,AO:124,Iy:144,CYL:220,oAq:240,rLd:340,EAA:360,cLC:480,bqI:588,GaI:608,ejd:720,JLd:740,NH:1080,xX:1100,zl:1440,TiA:2160,vA9:9999,0:"QUALITY_ORDINAL_UNKNOWN",124:"QUALITY_ORDINAL_144P_SAVER",144:"QUALITY_ORDINAL_144P",220:"QUALITY_ORDINAL_240P_SAVER",240:"QUALITY_ORDINAL_240P",340:"QUALITY_ORDINAL_360P_SAVER",360:"QUALITY_ORDINAL_360P",480:"QUALITY_ORDINAL_480P",588:"QUALITY_ORDINAL_608P_SAVER",608:"QUALITY_ORDINAL_608P",720:"QUALITY_ORDINAL_720P",740:"QUALITY_ORDINAL_720P_ENHANCED", 1080:"QUALITY_ORDINAL_1080P",1100:"QUALITY_ORDINAL_1080P_ENHANCED",1440:"QUALITY_ORDINAL_1440P",2160:"QUALITY_ORDINAL_2160P",9999:"QUALITY_ORDINAL_HIGHRES"};g.s9d={An:"auto",etA:"tiny",LH:"light",NiY:"small",F2:"medium",vT:"large",v5:"hd720",Gk:"hd1080",bZ:"hd1440",e8:"hd2160",Jo:"hd2880",P5:"highres",UNKNOWN:"unknown"};var Bt,SfG;g.V7={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320};Bt={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"}; SfG={QUALITY_ORDINAL_UNKNOWN:0,QUALITY_ORDINAL_144P_SAVER:124,QUALITY_ORDINAL_144P:144,QUALITY_ORDINAL_240P_SAVER:220,QUALITY_ORDINAL_240P:240,QUALITY_ORDINAL_360P_SAVER:340,QUALITY_ORDINAL_360P:360,QUALITY_ORDINAL_480P:480,QUALITY_ORDINAL_608P_SAVER:588,QUALITY_ORDINAL_608P:608,QUALITY_ORDINAL_720P:720,QUALITY_ORDINAL_720P_ENHANCED:740,QUALITY_ORDINAL_1080P:1080,QUALITY_ORDINAL_1080P_ENHANCED:1100,QUALITY_ORDINAL_1440P:1440,QUALITY_ORDINAL_2160P:2160,QUALITY_ORDINAL_HIGHRES:9999};var o7="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");var hk=class{constructor(f,e,B,n,r,L,d,t,H,k){this.width=f;this.height=e;this.J=t;this.quality=L||lG(f,e);this.qualityOrdinal=g.V7[this.quality];this.fps=B||0;this.stereoLayout=!r||n!=null&&n!=="UNKNOWN"&&n!=="RECTANGULAR"?0:r;this.projectionType=n?n==="EQUIRECTANGULAR"&&r===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":n:"UNKNOWN";(f=d)||(B=g.V7[this.quality],B===0?f="Autom\u00e1tico":(f=this.projectionType,e=this.fps,f=B.toString()+(f==="EQUIRECTANGULAR"||f==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||f==="MESH"? "s":"p")+(e>55?"60":e>49?"50":e>39?"48":"")));this.qualityLabel=f;this.C=H||"";this.primaries=k||""}G(){return this.fps>32}isHdr(){return this.C==="smpte2084"||this.C==="arib-std-b67"}};var g$=class{constructor(f,e,B={}){this.id=f;this.mimeType=e;B.EA>0||(B.EA=16E3);Object.assign(this,B);[this.itag,this.G]=this.id.split(";");this.containerType=uG(e);this.NC=Ja[this.itag]||""}X(){return this.video}K(){return this.audio}rj(){return this.containerType===2}V(){return this.NC==="9"||this.NC==="("||this.NC==="9h"||this.NC==="(h"}C(){return this.NC==="1"||this.NC==="1h"||Q7&&this.NC==="1e"}U(){return this.NC==="mac3"||this.NC==="meac3"||this.NC==="m"||this.NC==="i"||d9w(this)}isEncrypted(){return!!this.contentProtection}G8(){return!!this.audio}zv(){return!!this.video}J(){return this.mimeType=== "application/x-mpegURL"}},Q7=!1;var qeH=class extends g.$v{constructor(f,e,B,n){super();this.o6=f;this.start=e;this.end=B;this.isActive=n;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.X4={error:()=>{!this.HS()&&this.isActive&&this.publish("error",this)}, updateend:()=>{!this.HS()&&this.isActive&&this.publish("updateend",this)}}; this.o6.V_(this.X4);this.fv=this.isActive}appendBuffer(f,e,B){if(this.o6.b0()!==this.appendWindowStart+this.start||this.o6.tX()!==this.appendWindowEnd+this.start||this.o6.gA()!==this.timestampOffset+this.start)this.o6.supports(1),this.o6.lk(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.o6.vB(this.timestampOffset+this.start);this.o6.appendBuffer(f,e,B)}abort(){this.o6.abort()}remove(f,e){this.o6.remove(f+this.start,e+this.start)}removeAll(){this.remove(this.appendWindowStart, this.appendWindowEnd)}clear(){this.o6.clear()}lk(f,e){this.appendWindowStart=f;this.appendWindowEnd=e}sN(){return this.timestampOffset+this.start}b0(){return this.appendWindowStart}tX(){return this.appendWindowEnd}vB(f){this.timestampOffset=f}gA(){return this.timestampOffset}Ea(f=!1){f=this.o6.Ea(f);return I7(f,this.start,this.end)}oJ(){return this.o6.oJ()}Lx(){return this.o6.Lx()}A0(){return this.o6.A0()}Cd(){return this.o6.Cd()}vH(){this.o6.vH()}bX(f){return this.o6.bX(f)}Ds(){return this.o6.Ds()}o9(){return this.o6.o9()}gr(f, e,B){this.o6.gr(f,e,B)}k7(f,e,B){this.o6.k7(f,e,B)}Hy(f,e){return this.o6.Hy(f,e)}supports(f){return this.o6.supports(f)}Eg(){return this.o6.Eg()}isView(){return!0}xm(){return this.o6.xm()?this.isActive:!1}isLocked(){return this.fv&&!this.isActive}xp(f){f=this.o6.xp(f);f.vw=`${this.start}-${this.end}`;return f}Cx(){return this.o6.Cx()}PC(){return this.o6.PC()}W_(){return this.o6.W_()}bY(){this.o6.a5(this.X4);super.bY()}};var Bg=!1;var R$d=class extends g.$v{constructor(f,e,B,n,r,L){super();this.D_=f;this.eX=e;this.id=B;this.containerType=n;this.NC=r;this.zv=L;this.RT=this.cQ=this.hG=null;this.E8=!1;this.appendWindowStart=this.timestampOffset=0;this.OJ=M2([],[]);this.Uz=!1;this.ra=[];this.Cy=XB?[]:void 0;this.handler=d=>this.publish(d.type,this); this.D_?.addEventListener&&(this.D_.addEventListener("updateend",this.handler),this.D_.addEventListener("error",this.handler))}appendBuffer(f,e,B){this.Uz=!1;B&&(this.cQ=B);f.length&&(this.D_?.appendBuffer?this.D_.appendBuffer(f):this.D_?this.D_.append(f):this.eX&&this.eX.webkitSourceAppend(this.id,f));e&&(e.isEncrypted()&&(this.RT=this.cQ),e.type===3&&(this.hG=e),this.ra.push(e.Pd()),this.ra.length>4&&this.ra.shift());this.Cy&&(this.Cy.length>=2||f.length>1048576?delete this.Cy:this.Cy.push(f))}abort(){try{this.D_? this.D_.abort():this.eX&&this.eX.webkitSourceAbort(this.id)}catch(f){ZQw&&g.Yv(new g.Dj(`Error while abort the source buffer: ${f.name}, ${f.message}`))}this.cQ=this.hG=null}remove(f,e,B){this.Uz=!1;this.D_?.remove&&(B&&B({b:GF(this.Ea()),s:f,e}),this.D_.remove(f,e))}removeAll(){this.remove(this.b0(),this.tX())}clear(){this.A0()||(this.abort(),this.removeAll(),this.RT=this.cQ=this.hG=null,this.appendWindowStart=this.timestampOffset=0,this.OJ=M2([],[]),this.Uz=!1,this.Cy=XB?[]:void 0,this.E8=!0)}b0(){return Bg&& this.zv?this.appendWindowStart:this.D_?.appendWindowStart||0}tX(){return this.D_?.appendWindowEnd||0}lk(f,e){this.D_&&(Bg&&this.zv?(this.appendWindowStart=f,this.D_.appendWindowEnd=e):f>this.b0()?(this.D_.appendWindowEnd=e,this.D_.appendWindowStart=f):(this.D_.appendWindowStart=f,this.D_.appendWindowEnd=e))}sN(){return this.timestampOffset}vB(f){Bg?this.timestampOffset=f:this.supports(1)&&(this.D_.timestampOffset=f)}gA(){return Bg?this.timestampOffset:this.supports(1)?this.D_.timestampOffset:0}Ea(f= !1){if(f)return this.Uz||this.oJ()||(this.OJ=this.Ea(!1),this.Uz=!0),this.OJ;try{return this.D_?this.D_.buffered:this.eX?this.eX.webkitSourceBuffered(this.id):M2([0],[Infinity])}catch(e){return M2([],[])}}oJ(){return this.D_?.updating||!1}A0(){return this.E8}Cd(){return!this.E8&&this.oJ()}vH(){this.E8=!1}bX(f){const e=f?.NC;f=f?.containerType;return!e&&!f||e===this.NC&&f===this.containerType}Ds(){return this.cQ}o9(){return this.RT}Hy(f,e){return this.containerType!==f||this.NC!==e}gr(f,e,B){if(this.containerType!== f||B&&this.Hy(f,B))this.supports(4),$5()&&this.D_.changeType(e),B&&(this.NC=B);this.containerType=f}k7(f,e,B){this.containerType&&this.Hy(f,e)&&$5()&&this.D_.changeType(B);this.containerType=f;this.NC=e}Eg(){return this.hG}isView(){return!1}supports(f){switch(f){case 1:return this.D_?.timestampOffset!==void 0;case 0:return!!this.D_?.appendBuffer;case 2:return!!this.D_?.remove;case 3:return!(!this.D_?.addEventListener||!this.D_?.removeEventListener);case 4:return!(!this.D_||!this.D_.changeType);default:return!1}}xm(){return!this.oJ()}isLocked(){return!1}xp(f){f.to= this.gA();f.up=this.oJ();f.aw=`${(this.D_?.appendWindowStart||0).toFixed(3)}-${(this.D_?.appendWindowEnd||Infinity).toFixed(3)}`;return f}Lx(){return this.D_?.writeHead||0}Cx(){const f={};for(let e=0;e{}); this.C?.clear();this.G?.clear()}Ed(){this.C?.vH();this.G?.vH();this.X=!1}A0(){return this.G?.A0()||this.C?.A0()}bX(f,e){return!!this.C&&!!this.G&&this.C.bX(e)&&this.G.bX(f)}WS(){return!!this.D9&&this.D9.streaming===!1}},eS=!1;var wC=class{constructor(){this.sB=this.Ej=dHG;this.promise=new g.u5((f,e)=>{this.Ej=f;this.sB=e})}then(f,e){return this.promise.then(f,e)}resolve(f){this.Ej(f)}reject(f){this.sB(f)}};var X35=class extends g.$0{constructor(){super();this.HM=!1;this.vL=null;this.Ch=this.kA=!1;this.WS=new g.pI;this.mediaKeys=this.Kq=null;g.A(this,this.WS)}PS(){return this.vL}activate(f){let e="";f&&(aL5(this,f),e=f.vL);if(!this.O3()||e)e&&this.O3()!==e&&(this.MC(e),delete this.G,this.V&&(this.V.reject(),delete this.V),!window.MediaSource&&window.ManagedMediaSource&&this.Yp(!!f?.J())),f&&f.C||this.load(),this.Ch||(this.addEventListener("volumechange",this.Q3),this.Ch=!0)}Sw(f,e){if(this.G)if(sD&& this.G.U()&&!this.G.bX(f,e))Bu(this,{l:"megms",sr:this.Kq?.Wt()}),chY(this),this.stopVideo();else return this.D9=this.G,this.G=void 0,this.D9;f=window.MediaSource?new nh(this,new window.MediaSource,!1):window.ManagedMediaSource?new nh(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new nh(this,new window.WebKitMediaSource,!1):new nh(this,void 0,!1);this.activate(f.V);this.D9=f;this.HM=!1;return f}uC(f){this.G=f}playVideo(){this.isEnded()&&this.seekTo(0);!this.O3()&&this.vL&&(g.J(Error("playVideo without src")), this.MC(this.vL.vL),this.vL.C||this.load());const f=this.play();this.Kq?.OH()||xZ&&(uK||0)>=7&&(!f||this.Kq?.Y("mweb_ios_allow_playback_workaround_when_ready"))&&Wc6(this,()=>{g.VY(()=>{YeY(this,this.getCurrentTime(),0)},500)}); return f}seekTo(f){this.J()>0&&(xZ&&uK<4&&(f=Math.max(.1,f)),this.setCurrentTime(f))}Q5(){if(!this.G&&this.D9)if(this.D9.X)try{Bu(this,{l:"mer",sr:this.Kq?.Wt(),rs:this.D9.J()}),this.D9.clear(),this.uC(this.D9),this.D9=void 0}catch(f){const e=new g.Dj(`Error while clearing Media Source in MediaElement: ${f.name}, ${f.message}`);g.J(e);this.stopVideo()}else this.stopVideo()}stopVideo(){if(!this.G)if(this.D9?.Ed(),W2){if(!this.V){var f=new wC;f.then(void 0,()=>{}); this.V=f;bQH&&this.pause();g.VY(()=>{this.V===f&&(ds(this),f.resolve())},200)}}else ds(this)}l$(){const f=this.tR(); return y7(f)&&this.getDuration()?s7(f,this.getCurrentTime()):0}kL(){const f=this.getDuration();return f===Infinity?1:f?this.l$()/f:0}xp(){try{const f=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:GF(this.W(),",",3),vbu:GF(this.tR()),vbs:GF(this.K()),vpa:`${+this.isPaused()}`,vsk:`${+this.isSeeking()}`,ven:`${+this.isEnded()}`,vpr:`${this.getPlaybackRate()}`,vrs:`${this.J()}`,vns:`${this.Z9()}`,vec:`${this.ND()}`,vemsg:this.jU(),vvol:`${this.getVolume()}`, vdom:`${+this.IA()}`,vsrc:`${+!!this.O3()}`,vw:`${f.width}`,vh:`${f.height}`}}catch{return{}}}hasError(){return this.ND()>0}addEventListener(f,e){this.WS.listen(f,e,!1,this);this.xA(f)}removeEventListener(f,e){this.WS.uh(f,e,!1,this)}dispatchEvent(f){if(this.V&&f.type==="pause")return!1;if(sD){var e=f.C?.timeStamp||Infinity;e=e>performance.now()?e-Date.now()+performance.now():e;const B=this.G||this.D9;if(B?.A0()||e<=(B?.K||0))return Bu(this,{l:"mede",sr:this.Kq?.Wt(),et:f.type}),!1;if(this.HM)return Bu(this, {l:"medes",et:f.type}),B&&f.type==="seeking"&&(B.K=performance.now(),this.HM=!1),!1}return this.WS.dispatchEvent(f)}tL(){this.kA=!1}qC(){this.kA=!0;this.N(!0)}Q3(){this.kA&&!this.uY()&&this.N(!0)}equals(f){return!!f&&f.V3()===this.V3()}bY(){this.Ch&&this.removeEventListener("volumechange",this.Q3);W2&&ds(this);super.bY()}},W2=!1,bQH=!1,sD=!1,jOY=!1;var nZ;g.ks=class{constructor(f,e=null,B=null){this.iE=e;this.seekSource=B;this.state=f||64}C(f){return!!(this.state&f)}isPaused(){return this.C(4)}isPlaying(){return this.C(8)&&!this.C(512)&&!this.C(64)&&!this.C(2)}isOrWillBePlaying(){return this.C(8)&&!this.C(2)&&!this.C(1024)}G(){return this.state===8}isCued(){return this.C(64)&&!this.C(8)&&!this.C(4)}isBuffering(){return this.C(1)&&!this.C(2)}isError(){return this.C(128)}isSuspended(){return this.C(512)}Dj(){return this.C(64)&&this.C(4)}toString(){return`PSt.${this.state.toString(16)}`}}; nZ={BUFFERING:"buffering-mode",CUED:"cued-mode",ENDED:"ended-mode",PAUSED:"paused-mode",PLAYING:"playing-mode",SEEKING:"seeking-mode",UNSTARTED:"unstarted-mode"};var yxm=class extends g.$0{constructor(f,e,B,n,r,L,d,t,H,k,C,w,v,b,K){super();this.KY=f;this.slot=e;this.layout=B;this.Ud=n;this.UA=r;this.mY=L;this.Q9=d;this.yz=t;this.y3=H;this.QE=k;this.position=C;this.V=w;this.iY=v;this.lx=b;this.context=K;this.TZ=!0;this.J=!1;this.IX="not_rendering";this.C=!1;f=this.layout.clientMetadata.RA("metadata_type_ad_placement_config");this.aA=new Ji(B.bC,this.Ud,f,B.layoutId);f=qj(this)?.progressCommands||[];this.G=new yo(H,f,B.layoutId,()=>this.KC())}tE(){return this.slot}oX(){return this.layout}init(){const f= this.layout.clientMetadata.RA("metadata_type_video_length_seconds"),e=this.layout.clientMetadata.RA("metadata_type_active_view_traffic_type"); cP(this.layout.bC)&&Yw(this.UA.get(),this.layout.layoutId,{l4:e,Uq:f,listener:this});oE(this.Ud.get(),this);this.Ug()}xx(){}release(){cP(this.layout.bC)&&A3(this.UA.get(),this.layout.layoutId);VH(this.Ud.get(),this);this.xe()}FZ(){}rq(){}startRendering(f){if(f.layoutId!==this.layout.layoutId){this.KY.fz(this.slot,f,new WK("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");var e=!1}else e=!0;e&&(this.IX="rendering_start_requested",this.QE(-1),this.xW(f),this.aL(!1))}TD(f,e){e.layoutId===this.layout.layoutId&&(this.IX="rendering",this.C=this.Q9.get().isMuted()||this.Q9.get().getVolume()===0,this.kp("impression"),this.kp("start"),this.Q9.get().isMuted()&&(zS(this,"mute"),f=qj(this)?.muteCommands||[],fa(this.y3.get(),f,this.layout.layoutId)),this.Q9.get().isFullscreen()&&(this.MM("fullscreen"),f=qj(this)?.fullscreenCommands|| [],fa(this.y3.get(),f,this.layout.layoutId)),f=this.yz.get(),f.J&&!f.G&&(f.W=!1,f.G=!0,f.actionType!=="ad_to_video"&&(QF("pbs",void 0,f.actionType),g.UV("finalize_all_timelines")&&xD5(f.actionType))),this.QE(1),this.VM(e),e=qj(this)?.impressionCommands||[],fa(this.y3.get(),e,this.layout.layoutId))}XI(f,e,B){this.W={tY:3,R4:f==="load_timeout"?402:400,errorMessage:e.message};this.kp("error");f=qj(this)?.errorCommands||[];fa(this.y3.get(),f,this.layout.layoutId);this.KY.fz(this.slot,this.layout,e,B)}DC(f, e=!1){if(this.IX==="rendering"){ly(this.aA,f*1E3,e);uo5(this,f*1E3,e);var B=this.KC();B&&(B/=1E3,(f>=B*.25||e)&&this.kp("first_quartile"),(f>=B*.5||e)&&this.kp("midpoint"),(f>=B*.75||e)&&this.kp("third_quartile"),this.iY.get().Z.S().experiments.SI("enable_progress_command_flush_on_kabuki")?mE(this.G,f*1E3,e):mE(this.G,f*1E3,m90(this)?e:!1))}}N8(){return J0(this.mY.get(),1)?.clientPlaybackNonce||""}Fj(f,e){f.layoutId!==this.layout.layoutId?this.KY.fz(this.slot,f,new WK("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"):e()}DW(f,e,B){if(e.layoutId===this.layout.layoutId)switch(this.IX="not_rendering",this.layoutExitReason=void 0,(f=B!=="normal"||this.position+1===this.V)&&this.aL(f),this.LS(B),this.QE(0),B){case "abandoned":uy(this.aA,"impression")&&(B=qj(this)?.abandonCommands||[],fa(this.y3.get(),B,this.layout.layoutId));break;case "normal":B= qj(this)?.completeCommands||[];fa(this.y3.get(),B,this.layout.layoutId);break;case "skipped":B=qj(this)?.skipCommands||[],fa(this.y3.get(),B,this.layout.layoutId)}}du(){return this.layout.layoutId}OQ(){return this.W}UY(){if(this.IX==="rendering"){this.aA.kp("active_view_measurable");var f=qj(this)?.activeViewMeasurableCommands||[];fa(this.y3.get(),f,this.layout.layoutId)}}HY(){if(this.IX==="rendering"){this.aA.kp("active_view_fully_viewable_audible_half_duration");var f=qj(this)?.activeViewFullyViewableAudibleHalfDurationCommands|| [];fa(this.y3.get(),f,this.layout.layoutId)}}Ye(){if(this.IX==="rendering"){this.aA.kp("active_view_viewable");var f=qj(this)?.activeViewViewableCommands||[];fa(this.y3.get(),f,this.layout.layoutId)}}ZE(){if(this.IX==="rendering"){this.aA.kp("audio_audible");var f=qj(this)?.activeViewAudioAudibleCommands||[];fa(this.y3.get(),f,this.layout.layoutId)}}Rv(){if(this.IX==="rendering"){this.aA.kp("audio_measurable");var f=qj(this)?.activeViewAudioMeasurableCommands||[];fa(this.y3.get(),f,this.layout.layoutId)}}aL(f){this.yz.get().aL(this.layout.clientMetadata.RA("metadata_type_ad_placement_config").kind, f,this.position,this.V,!1)}onFullscreenToggled(f){this.IX==="rendering"&&(f?(this.MM("fullscreen"),f=qj(this)?.fullscreenCommands||[],fa(this.y3.get(),f,this.layout.layoutId)):(this.MM("end_fullscreen"),f=qj(this)?.endFullscreenCommands||[],fa(this.y3.get(),f,this.layout.layoutId)))}onVolumeChange(){if(this.IX==="rendering")if(this.Q9.get().isMuted()){zS(this,"mute");var f=qj(this)?.muteCommands||[];fa(this.y3.get(),f,this.layout.layoutId)}else zS(this,"unmute"),f=qj(this)?.unmuteCommands||[],fa(this.y3.get(), f,this.layout.layoutId)}tq(){}b$(){}r8(){}cJ(){}J1(){}MM(f){this.aA.MM(f,!this.C)}kp(f){this.aA.kp(f,!this.C)}};var E4O=class extends yxm{constructor(f){super(f.KY,f.slot,f.Fq,f.Ud,f.UA,f.mY,f.Q9,f.yz,f.y3,f.QE,f.MU,f.Xw,f.iY,f.lx,f.context);this.gE=!0;this.Bx=this.TJ=0;this.JX=pC(()=>{this.KY.TD(this.slot,this.layout)}); this.tF=f.tF;this.xL=f.xL;this.n0=pC(()=>{this.IX!=="rendering_stop_requested"&&this.xL(this);this.eY()}); this.timer=new g.P7(200);this.timer.listen("tick",()=>{this.ZW()}); g.A(this,this.timer)}eY(){this.layoutExitReason?this.KY.DW(this.slot,this.layout,this.layoutExitReason):o45(this)}Ug(){}xe(){var f=this.Ud.get();f.pR===this&&(f.pR=null);this.timer.stop()}FZ(){this.timer.stop();VhC(this)}rq(){Sel(this);lLm(this)}KC(){return this.oX().clientMetadata.RA("METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}pN(){return this.TJ/1E3}Ps(f,e){this.Fj(f,()=>{this.IX!=="rendering_stop_requested"&&(this.IX="rendering_stop_requested",this.layoutExitReason=e,U95(this,e), this.timer.stop())})}ZW(){const f=Date.now(),e=f-this.Bx; this.Bx=f;this.TJ+=e;this.TJ>=this.KC()?(this.TJ=this.KC(),this.DC(this.TJ/1E3,!0),Ys(this,this.TJ),this.n0()):(this.DC(this.TJ/1E3),Ys(this,this.TJ))}OI(f){if(this.IX!=="not_rendering"){f=NbO(this,f);var e=this.Q9.get().getPresentingPlayerType()===2;this.IX==="rendering_start_requested"?e&&To(f)&&this.JX():e?f.IC(2)?NL("Receive player ended event during MediaBreak",this.tE(),this.oX()):h$5(this,f):this.FC()}}xW(){g4G(this);m8(this.Q9.get());this.Ud.get().pR=this;SH("pbp")||SH("pbs")||QF("pbp");SH("pbp", "watch")||SH("pbs","watch")||QF("pbp",void 0,"watch");this.JX()}VM(f){this.yz.get();var e=f.clientMetadata.RA("metadata_type_ad_placement_config").kind,B=this.position===0;f=f.clientMetadata.RA("metadata_type_linked_in_player_layout_type");f={adBreakType:ph(e),adType:NSM(f)};let n=void 0;B?e!=="AD_PLACEMENT_KIND_START"&&(n="video_to_ad"):n="ad_to_ad";NJ("ad_mbs",void 0,n);g.hQ(f,n);Sel(this)}FC(){this.n0()}LS(){}s4(){}};var TbH=class extends yxm{eY(){this.IX!=="rendering_stop_requested"&&this.xL(this);this.layoutExitReason?this.KY.DW(this.slot,this.layout,this.layoutExitReason):o45(this)}constructor(f){super(f.callback,f.slot,f.Fq,f.Ud,f.UA,f.mY,f.Q9,f.yz,f.y3,f.QE,f.MU,f.Xw,f.iY,f.lx,f.context);this.adCpn="";this.Wj=this.DA=0;this.JX=pC(()=>{this.KY.TD(this.slot,this.layout)}); this.n0=pC(()=>{this.eY()}); this.wj=f.wj;this.Ke=f.Ke;this.JF=f.JF;this.tF=f.tF;this.dR=f.dR;this.xL=f.xL;BP(this.iY.get(),"html5_disable_media_load_timeout")||(this.VB=new g.T6(()=>{this.XI("load_timeout",new WK("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); f=St(this.iY.get());const e=E$(this.iY.get());f&&e&&(this.uv=new g.T6(()=>{const B=this.layout.clientMetadata.RA("metadata_type_preload_player_vars");B&&this.Ke.get().Z.preloadVideoByPlayerVars(B,2,300)}))}FC(){this.n0()}OI(f){this.fp(f)}Ug(){this.oX().clientMetadata.RA("metadata_type_player_bytes_callback_ref").current=this; this.shrunkenPlayerBytesConfig=this.oX().clientMetadata.RA("metadata_type_shrunken_player_bytes_config")}xe(){this.oX().clientMetadata.RA("metadata_type_player_bytes_callback_ref").current=null;this.md&&this.JF.get().removeCueRange(this.md);this.md=void 0;this.VB?.dispose();this.uv&&this.uv.dispose()}xW(f){var e=f.clientMetadata.RA("metadata_type_ad_placement_config");e=St(this.iY.get(),e);var B=E$(this.iY.get());if(e&&B){B=f.clientMetadata.RA("metadata_type_preload_player_vars");var n=this.iY.get(); n=g.tS(n.Z.S().experiments,"html5_preload_wait_time_secs");B&&this.uv&&this.uv.start(n*1E3)}B=f.clientMetadata.RA("metadata_type_ad_video_id");n=f.clientMetadata.RA("metadata_type_legacy_info_card_vast_extension");B&&n&&this.dR.get().Z.S().PS.add(B,{Ti:n});(B=f.clientMetadata.RA("metadata_type_sodar_extension_data"))&&PrY(this.wj.get(),B);aMC(this.Q9.get(),!1);g4G(this);e?(B=this.Ke.get(),f=f.clientMetadata.RA("metadata_type_player_vars"),B.Z.loadVideoByPlayerVars(f,!1,2)):Km(this.Ke.get(),f.clientMetadata.RA("metadata_type_player_vars")); this.VB?.start();e||this.Ke.get().Z.playVideo(2)}VM(){this.VB?.stop();this.fd();(this.adCpn=J0(this.mY.get(),2)?.clientPlaybackNonce||"")||NL("Media layout confirmed started, but ad CPN not set.");zU(this.tF.get(),"onAdStart",this.adCpn);this.DA=Date.now()}KC(){return J0(this.mY.get(),2)?.MS}FQ(){this.aA.MM("clickthrough")}Ps(f,e){this.Fj(f,()=>{this.IX!=="rendering_stop_requested"&&(this.IX="rendering_stop_requested",this.layoutExitReason=e,U95(this,e),this.VB?.stop(),this.uv&&this.uv.stop(),aMC(this.Q9.get(), !0),this.shrunkenPlayerBytesConfig?.shouldRequestShrunkenPlayerBytes&&this.Q9.get().Y5(!1))})}onCueRangeEnter(f){f!==this.md?NL("Received CueRangeEnter signal for unknown layout.",this.tE(),this.oX(),{cueRangeId:f}):(this.JF.get().removeCueRange(this.md),this.md=void 0,f=this.oX().clientMetadata.RA("metadata_type_video_length_seconds"),this.DC(f,!0),this.kp("complete"))}LS(f){f!=="abandoned"&&zU(this.tF.get(),"onAdComplete"); zU(this.tF.get(),"onAdEnd",this.adCpn)}fd(){this.md=`${"adcompletioncuerange"}:${this.oX().layoutId}`;this.JF.get().addCueRange(this.md,0x7ffffffffffff,0x8000000000000,!1,this,2,2)}onCueRangeExit(){}s4(f){this.IX==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&f>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Q9.get().Y5(!0),this.DC(f))}DC(f,e=!1){super.DC(f,e);e=Date.now()-this.DA;const B=f*1E3,n={contentCpn:this.N8(), adCpn:J0(this.mY.get(),2)?.clientPlaybackNonce||""};if(f-this.Wj>=5){const r=e{this.callback.DW(this.slot,this.layout,e)}); this.Q9.get().Z.zV();Km(this.Ke.get(),{});f=cd(this.Q9.get(),1);f.isPaused()&&!f.C(2)&&this.Q9.get().playVideo();this.Q9.get().removeListener(this);this.Nd&&Wh5(this)}OI(f){if(f.state.isError())this.Xp(f.state.iE?.errorCode,new WK("There was a player error during this media layout.",{playerErrorCode:f.state.iE?.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var e=Ai(this);e&&e.OI(f)}}b$(){}MD(){}XB(){}Ht(){}Ua(){}YK(){}U3(){}Yf(){}bE(){}AG(){}wR(){}cJ(){}J1(){}kN(f, e,B){VM(this,f,e,B)}mU(f,e){VM(this,f,e,"error")}};var yhY=class extends g.$0{constructor(f,e,B,n,r,L,d){super();this.callback=f;this.Ke=e;this.Q9=B;this.yz=n;this.bT=r;this.Le=L;this.iY=d;this.TZ=!0;this.Nd=!1}tE(){return this.bT.tE()}oX(){return this.bT.oX()}init(){const f=this.oX().clientMetadata.RA("metadata_type_player_bytes_layout_controls_callback_ref");f&&(f.current=this);this.Ug()}Ug(){this.bT.init()}release(){const f=this.oX().clientMetadata.RA("metadata_type_player_bytes_layout_controls_callback_ref");f&&(f.current=null);this.xe()}xe(){this.bT.release()}FZ(){this.bT.FZ()}rq(){this.bT.rq()}lF(f, e){NL("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.tE(),this.oX(),{requestingSlot:f,requestingLayout:e})}startRendering(f){f.layoutId!==this.oX().layoutId?this.callback.fz(this.tE(),f,new WK("Tried to start rendering an unknown layout, this adapter "+`requires LayoutId: ${this.oX().layoutId}`+`and LayoutType: ${this.oX().layoutType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"): (this.Q9.get().addListener(this),lL(this.Le(),this),Gzm(this.yz.get()),P8k(this.iY.get())||m8(this.Q9.get()),this.bT.startRendering(f))}Ps(f,e){this.Nd=!0;this.bT.Ps(f,e);this.Q9.get().Z.zV();Km(this.Ke.get(),{});f=cd(this.Q9.get(),1);f.isPaused()&&!f.C(2)&&this.Q9.get().playVideo();this.Q9.get().removeListener(this);this.Nd&&this.bT.FC()}TD(f,e){this.bT.TD(f,e)}DW(f,e,B){e.layoutId===this.oX().layoutId&&(this.Nd=!1,uL(this.Le(),this));this.bT.DW(f,e,B);e.layoutId===this.oX().layoutId&&lx(this.yz.get())}s4(f){this.bT.s4(f)}OI(f){f.state.isError()? this.Xp(f.state.iE?.errorCode,new WK("There was a player error during this media layout.",{playerErrorCode:f.state.iE?.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):this.bT.OI(f)}Xp(f,e,B){this.bT.XI(f,e,B)}onFullscreenToggled(f){this.bT.onFullscreenToggled(f)}tq(f){this.bT.tq(f)}r8(f){this.bT.r8(f)}onVolumeChange(){this.bT.onVolumeChange()}b$(){}MD(){}XB(){}Ht(){}Ua(){}YK(){}U3(){}Yf(){}bE(){}AG(){}wR(){}cJ(){}J1(){}};var P3l=class{constructor(f,e,B,n,r,L,d,t,H,k){this.callback=f;this.slot=e;this.layout=B;this.mY=n;this.gX=r;this.Mj=L;this.Q9=d;this.aA=t;this.Ud=H;this.X=k;this.driftRecoveryMs=this.layout.clientMetadata.RA("metadata_type_drift_recovery_ms")||null;this.V=this.layout.clientMetadata.RA("metadata_type_prefetch_metadata")!==void 0}tE(){return this.slot}oX(){return this.layout}init(){this.Mj.get().addListener(this);this.Q9.get().addListener(this);var f=this.layout.clientMetadata.RA("metadata_type_layout_enter_ms"); var e=this.layout.clientMetadata.RA("metadata_type_layout_exit_ms");if(this.V){var B=this.Mj.get().MB.slice(-1)[0];B!==void 0&&(f=B.startSecs*1E3,e=(B.startSecs+B.Kc)*1E3)}this.xx(f,e);B=this.mY.get().XY?.clientPlaybackNonce;const n=this.layout.BL.adClientDataEntry;Fq(this.Ud.get(),{daiStateTrigger:{filledAdsDurationMs:e-f,contentCpn:B,adClientData:n}});var r=this.Mj.get();r=ILH(r.J,f,e);r!==null&&(Fq(this.Ud.get(),{daiStateTrigger:{filledAdsDurationMs:r-f,contentCpn:B,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER", adClientData:n}}),this.gX.get().Js(r,e))}release(){this.xe();this.Mj.get().removeListener(this);this.Q9.get().removeListener(this)}startRendering(){this.xW();this.callback.TD(this.slot,this.layout)}Ps(f,e){this.U(e);this.driftRecoveryMs!==null&&(mI(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round($9G(this)-this.layout.clientMetadata.RA("metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Q9.get().Z.xi()*1E3).toString()}),this.driftRecoveryMs= null);this.callback.DW(this.slot,this.layout,e)}RK(){return!1}bc(f){const e=this.layout.clientMetadata.RA("metadata_type_layout_enter_ms"),B=this.layout.clientMetadata.RA("metadata_type_layout_exit_ms");f*=1E3;e<=f&&fL.oX().clientMetadata.RA("metadata_type_media_sub_layout_index")-d.oX().clientMetadata.RA("metadata_type_media_sub_layout_index")); f.forEach(L=>{const d=B,t=L.oX().clientMetadata.RA("metadata_type_video_length_seconds"),H=Math.min(d+t*1E3,e);B=H;n++;r.push(t);L.xx(d,H)})}else this.J.forEach(L=>{L.init()}); this.G!=null&&UP(this.Ud.get(),"ads_ssmplra_init",`lid.${this.layout.layoutId};smlid.${this.G}`)}xe(){this.mY.get().removeListener(this);this.C=null;this.J.forEach(f=>{f.release()})}xW(){if(this.C)NL("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.G)}); else{var f=this.mY.get().XY?.layoutId;fJC(this,f)}}U(f){this.C?.dU?.Ps(this.C?.dU?.oX(),f);this.C=null}Uh({videoId:f,layoutId:e}){f==="nPpU29QrbiU"&&UP(this.Ud.get(),"ads_ssmplra_opdcs",`vid.${f};lid.${this.layout.layoutId};smlid.${this.G};slrs.${!!this.C};slrslid.${this.C?.dU?.oX().layoutId}`);this.C&&(this.C.dU?.oX().layoutId===e?NL("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:e}):(this.C.dU?.Ps(this.C.dU?.oX(),"normal"),fJC(this,e)))}W(){}OI(){}onFullscreenToggled(){}};var $tM=class{constructor(f,e,B,n,r,L,d,t,H,k,C,w,v,b){this.callback=f;this.slot=e;this.layout=B;this.gX=n;this.aA=r;this.Q9=L;this.pV=d;this.UA=t;this.wj=H;this.iY=k;this.Ud=C;this.mY=w;this.JF=v;this.y3=b;this.gE=!0;this.u6=this.IX=null;this.adCpn=void 0;this.C=!1;f=this.layout.clientMetadata.RA("METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")?.progressCommands||[];this.G=new yo(b,f,B.layoutId,()=>this.layout.clientMetadata.RA("metadata_type_video_length_seconds")*1E3)}tE(){return this.slot}oX(){return this.layout}xx(f, e){this.layout.clientMetadata.RA("metadata_type_player_bytes_callback_ref").current=this; this.u6=ecG(this.slot,this.layout,this.layout.clientMetadata.RA("metadata_type_player_vars"),f,e,this.layout.clientMetadata.RA("metadata_type_video_length_seconds")*1E3,this.gX.get(),this.pV.get(),()=>{var B={...EP(this.layout)};var n=this.slot.clientMetadata.RA("metadata_type_fulfilled_layout")||this.slot.fulfilledLayout;const r=n.clientMetadata.RA("metadata_type_sub_layouts")||n.LV;n={...EP(n),adPlacementConfig:n.clientMetadata.RA("metadata_type_ad_placement_config"),subLayouts:(r||[]).map(EP)}; return{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",...B,compositeLayout:n,hasSurveyOverlay:aM(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:this.layout.clientMetadata.RA("metadata_type_survey_overlay")}},this.Ud.get()); this.Q9.get().addListener(this);f=this.layout.clientMetadata.RA("metadata_type_video_length_seconds");e=this.layout.clientMetadata.RA("metadata_type_active_view_traffic_type");cP(this.layout.bC)&&Yw(this.UA.get(),this.layout.layoutId,{l4:e,Uq:f,listener:this});Fn5(this.callback,this.slot,this.layout);mdk(this.callback,this.slot,this.layout)}init(){const f=this.layout.clientMetadata.RA("metadata_type_layout_enter_ms"),e=this.layout.clientMetadata.RA("metadata_type_layout_exit_ms");this.xx(f,e)}release(){this.Q9.get().removeListener(this); cP(this.layout.bC)&&A3(this.UA.get(),this.layout.layoutId);this.iY.get();var f=this.callback,e=this.slot,B=this.layout;for(const n of f.G)n.AG(e,B);q4(this.iY.get())&&(this.md&&(UP(this.Ud.get(),"ads_ccru",`acpn.${J0(this.mY.get(),2)?.clientPlaybackNonce};cr.${this.md}`),this.JF.get().removeCueRange(this.md)),this.md=void 0)}startRendering(){aM(this.layout.clientMetadata,"metadata_type_survey_overlay")&&UP(this.Ud.get(),"ads_ssmlra_srs",`lid.${this.layout.layoutId}`);if(this.IX)NL("Expected the layout not to be entered before start rendering", this.slot,this.layout,{hasSurveyOverlay:aM(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:this.layout.clientMetadata.RA("metadata_type_survey_overlay")});else{this.IX={xZ:null,fZ:!1};this.C=!1;zs(this.iY.get())&&(this.adCpn=J0(this.mY.get(),2)?.clientPlaybackNonce);this.iY.get().Z.S().experiments.SI("html5_disable_sodar_for_tvhtml5")||Bow(this.slot,this.layout,this.wj.get());cP(this.layout.bC)&&rN0(this.UA.get(),this.layout.layoutId);this.aA.kp("start");if(dd(this.iY.get())){const f= cd(this.Q9.get()),e=this.layout.clientMetadata.RA("metadata_type_video_length_seconds"),B=UB(this.Q9.get(),2,!1);nF5(this.aA,this.IX.xZ,f,e,B,()=>void weC(this,"teois"),J0(this.mY.get(),1).q0)}Udd(this.callback,this.slot,this.layout); q4(this.iY.get())&&(this.adCpn||NL("Media layout confirmed started, but ad CPN not set."),this.fd());aM(this.layout.clientMetadata,"metadata_type_survey_overlay")&&UP(this.Ud.get(),"ads_ssmlra_sre",`lid.${this.layout.layoutId}`)}}Ps(f,e){if(this.IX){if(dd(this.iY.get()))if(this.u6===null)NL("Unexpected media sub layout exited without a timeline playback ID");else{f=this.layout.clientMetadata.RA("metadata_type_video_length_seconds");const B=N4(this.Q9.get(),this.u6);zs(this.iY.get())&&this.adCpn=== void 0&&NL("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:this.layout.clientMetadata.RA("metadata_type_content_cpn")});pQG(this.aA,B,this.adCpn);hi(this.aA,null,this.IX.xZ,f,B,J0(this.mY.get(),1).q0,n=>void vFM(this,n,"fue"),zs(this.iY.get()),q4(this.iY.get())); yf(this.iY.get())&&this.DC(B,!0)}this.IX=null;hlY(this.callback,this.slot,this.layout,this.C&&this.iY.get().Z.S().Y("dai_layout_log_skip_exit_reason")?"skipped":e)}else NL("Expected the layout to be entered before stop rendering",this.slot,this.layout)}onCueRangeEnter(f){if(f!==this.md)NL("Received CueRangeEnter signal for unknown layout.",this.tE(),this.oX(),{cueRangeId:f});else if(this.adCpn===void 0&&NL("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:this.layout.clientMetadata.RA("metadata_type_content_cpn")}), uy(this.aA,"impression")&&dd(this.iY.get()))if(this.u6===null)NL("Unexpected cue range enter without a timeline playback ID");else{const e=N4(this.Q9.get(),this.u6);UP(this.Ud.get(),"ads_ccre",`cpn.${this.layout.clientMetadata.RA("metadata_type_content_cpn")};acpn.${J0(this.mY.get(),2)?.clientPlaybackNonce};cr.${f};cts.${e}`);this.JF.get().removeCueRange(this.md);this.md=void 0;yf(this.iY.get())&&this.DC(e,!0);this.aA.kp("complete")}}onCueRangeExit(){}XI(){}FC(){}s4(f){if(this.IX){if(uy(this.aA,"impression")){const e= cd(this.Q9.get()),B=this.layout.clientMetadata.RA("metadata_type_video_length_seconds");gs(this.aA,e,f,this.IX.xZ,B,n=>void vFM(this,n,"tpaqe")); yf(this.iY.get())&&this.DC(f)}this.IX.xZ=f}}DC(f,e=!1){this.IX&&mE(this.G,f*1E3,e)}OI(f){if(this.IX){dd(this.iY.get())||this.IX.fZ||(this.IX.fZ=!0,f=new g.aw(f.state,new g.ks));var e=this.layout.clientMetadata.RA("metadata_type_video_length_seconds"),B=UB(this.Q9.get(),2,!1);Nj(this.aA,this.IX.xZ,f,e,B,J0(this.mY.get(),1).q0,!dd(this.iY.get()),()=>void weC(this,"teosc"))}}onFullscreenToggled(f){rpw(this.aA,f)}tq(){}b$(){}r8(){}lF(f,e){f=this.Ud.get(); var B=uy(this.aA,"impression"),n=uy(this.aA,"skip");var r=!!this.aA.J.get("skip")?.length;UP(f,"ads_dsr",`ti.${B};ts.${n};hp.${r};cpn.${this.layout.clientMetadata.RA("metadata_type_content_cpn")};acpn.${J0(this.mY.get(),2)?.clientPlaybackNonce};sl.${e.clientMetadata.RA("metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId}`);uy(this.aA,"impression")&&this.aA.kp("skip");e=J0(this.mY.get(),1).q0;this.C=!0;this.gX.get().Jb(e)||(this.C=!1,NL("Unexpected failure to skip a server stitched ad", this.slot,this.layout))}onVolumeChange(){}TD(){}DW(){}FZ(){}rq(){}FQ(){Lqd(this.aA)}UY(){dI0(this.aA)}HY(){tJ5(this.aA)}Ye(){H50(this.aA)}ZE(){k2k(this.aA)}Rv(){C15(this.aA)}cJ(){}J1(){}fd(){this.md||(this.md=`${"adcompletioncuerange"}:${this.oX().layoutId}`,this.JF.get().addCueRange(this.md,0x7ffffffffffff,0x8000000000000,!1,this,2,2,this.adCpn),UP(this.Ud.get(),"ads_ccr",`acpn.${J0(this.mY.get(),2)?.clientPlaybackNonce};cr.${this.md}`))}};var ioM=class extends P3l{constructor(f,e,B,n,r,L,d,t,H,k,C,w,v,b){super(f,e,B,n,r,d,t,H,k,w);this.pV=L;this.wj=C;this.UA=v;this.iY=b;this.u6=this.IX=null}xx(){this.layout.clientMetadata.RA("metadata_type_player_bytes_callback_ref").current=this;const f=this.layout.clientMetadata.RA("metadata_type_layout_enter_ms"),e=this.layout.clientMetadata.RA("metadata_type_layout_exit_ms");this.u6=ecG(this.slot,this.layout,this.layout.clientMetadata.RA("metadata_type_player_vars"),f,e,this.layout.clientMetadata.RA("metadata_type_video_length_seconds")* 1E3,this.gX.get(),this.pV.get(),()=>({layoutType:"LAYOUT_TYPE_MEDIA",enterMs:f,exitMs:e,adPlacementConfig:this.layout.clientMetadata.RA("metadata_type_ad_placement_config")}),this.Ud.get()); const B=this.layout.clientMetadata.RA("metadata_type_video_length_seconds"),n=this.layout.clientMetadata.RA("metadata_type_active_view_traffic_type");cP(this.layout.bC)&&Yw(this.UA.get(),this.layout.layoutId,{l4:n,Uq:B,listener:this})}xe(){cP(this.layout.bC)&&A3(this.UA.get(),this.layout.layoutId)}xW(){if(this.IX)NL("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.IX={xZ:null,fZ:!1},Bow(this.slot,this.layout,this.wj.get()),this.aA.kp("start"),dd(this.iY.get())){const f= cd(this.Q9.get()),e=this.layout.clientMetadata.RA("metadata_type_video_length_seconds"),B=UB(this.Q9.get(),2,!1);nF5(this.aA,this.IX.xZ,f,e,B,()=>void b5w(this,"teois"),!1)}}U(){if(this.IX){if(dd(this.iY.get()))if(this.u6===null)NL("Unexpected single media layout exited without a timeline playback ID"); else{const f=this.layout.clientMetadata.RA("metadata_type_video_length_seconds"),e=N4(this.Q9.get(),this.u6);pQG(this.aA,e);hi(this.aA,null,this.IX.xZ,f,e,!1,B=>void Z5d(this,B,"fue"))}this.IX=null}else NL("Expected the layout to be entered before stop rendering",this.slot,this.layout)}W(f){if(this.IX){if(uy(this.aA,"impression")){const e=cd(this.Q9.get()),B=this.layout.clientMetadata.RA("metadata_type_video_length_seconds"); gs(this.aA,e,f,this.IX.xZ,B,n=>void Z5d(this,n,"tpaqe"))}this.IX.xZ=f}}OI(f){if(this.IX){dd(this.iY.get())||this.IX.fZ||(this.IX.fZ=!0,f=new g.aw(f.state,new g.ks)); var e=this.layout.clientMetadata.RA("metadata_type_video_length_seconds"),B=UB(this.Q9.get(),2,!1);Nj(this.aA,this.IX.xZ,f,e,B,!1,!dd(this.iY.get()),()=>void b5w(this,"teosc"))}}onFullscreenToggled(f){rpw(this.aA,f)}FQ(){Lqd(this.aA)}UY(){dI0(this.aA)}HY(){tJ5(this.aA)}Ye(){H50(this.aA)}ZE(){k2k(this.aA)}Rv(){C15(this.aA)}};var fnG=class{constructor(f,e,B,n,r,L,d,t,H,k,C,w,v,b,K,Y,l,m,F,N,E){this.Le=f;this.Q8=e;this.Gb=B;this.mY=n;this.gX=r;this.Q9=L;this.e6=d;this.Ud=t;this.pV=H;this.Mj=k;this.UA=C;this.wj=w;this.Ke=v;this.JF=b;this.yz=K;this.tF=Y;this.y3=l;this.dR=m;this.iY=F;this.C=N;this.context=E}build(f,e,B,n){if(aM(B.clientMetadata,"metadata_type_dai")){var r=n.clientMetadata.RA("metadata_type_ad_placement_config");UI(n,{Gt:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "), Nj:["LAYOUT_TYPE_MEDIA"]})&&r!==void 0?(r=new Ji(n.bC,this.Ud,r,n.layoutId,null),r=new ioM(f,B,n,this.mY,this.gX,this.pV,this.Mj,this.Q9,r,this.Ud,this.wj,this.C,this.UA,this.iY)):r=null;if(r)return r;a:{var L=n.LV??n.clientMetadata.RA("metadata_type_sub_layouts");const d=n.clientMetadata.RA("metadata_type_ad_placement_config");if(UI(n,{Gt:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Nj:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&L!==void 0&&d!== void 0){r=[];for(const t of L){L=t.clientMetadata.RA("metadata_type_media_sub_layout_index");if(!UI(t,{Gt:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),Nj:["LAYOUT_TYPE_MEDIA"]})||L===void 0){f=null;break a}L=new Ji(t.bC,this.Ud,d,t.layoutId,L);r.push(new $tM(e,B,t,this.gX,L,this.Q9,this.pV,this.UA,this.wj,this.iY,this.Ud,this.mY,this.JF,this.y3))}e= new Ji(n.bC,this.Ud,d,n.layoutId);f=new I8G(f,B,n,this.mY,this.gX,this.Mj,this.Q9,e,this.Ud,this.C,r)}else f=null}if(f)return f}else if(f=Ppl(f,e,B,n,this.Le,this.Q8,this.Gb,this.Ud,this.UA,this.wj,this.Ke,this.mY,this.Q9,this.e6,this.JF,this.yz,this.tF,this.y3,this.dR,this.iY,this.gX,this.context))return f;throw new WK(`Unsupported layout with type: ${n.layoutType} and client metadata: ${cK(n.clientMetadata)} in `+"PlayerBytesLayoutRenderingAdapterFactory.");}};var ra=class{constructor(f,e,B,n,r,L,d,t,H,k,C,w,v,b,K,Y,l,m){this.Le=f;this.Q8=e;this.Gb=B;this.Ud=n;this.UA=r;this.wj=L;this.Ke=d;this.mY=t;this.Q9=H;this.e6=k;this.JF=C;this.yz=w;this.tF=v;this.y3=b;this.dR=K;this.iY=Y;this.gX=l;this.context=m}build(f,e,B,n){if(f=Ppl(f,e,B,n,this.Le,this.Q8,this.Gb,this.Ud,this.UA,this.wj,this.Ke,this.mY,this.Q9,this.e6,this.JF,this.yz,this.tF,this.y3,this.dR,this.iY,this.gX,this.context))return f;throw new WK(`Unsupported layout with type: ${n.layoutType} and client metadata: ${cK(n.clientMetadata)} in `+ "PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");}};var eJm=class extends zX{constructor(f,e,B,n){super("survey-interstitial",f,e,B,n)}};var B30=class extends XM{constructor(f,e,B,n,r){super(B,f,e,n);this.Ud=r;f=e.clientMetadata.RA("metadata_type_ad_placement_config");this.aA=new Ji(e.bC,r,f,e.layoutId)}startRendering(f){const e=qr(this.aA),B={adsClientData:this.layout.BL};this.C.push(new eJm(this.layout.clientMetadata.RA("metadata_type_valid_survey_text_interstitial_renderer"),e,this.oX().layoutId,B));super.startRendering(f);this.callback.TD(this.slot,f)}tG(f,e){e!==this.layout.layoutId||f!=="survey-interstitial"&&f!=="button"||((f= this.layout.clientMetadata.RA("metadata_type_player_bytes_layout_controls_callback_ref").current)?f.lF(this.slot,this.layout):NL("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))}bY(){super.bY()}};var TS=new g.uN(320,63);var nS6=class extends zX{constructor(f,e,B,n){super("invideo-overlay",f,e,B,n);this.interactionLoggingClientData=n}};var ryd=class extends XM{constructor(f,e,B,n,r,L,d,t,H,k,C){super(r,f,e,n);this.Ud=B;this.V=L;this.Q9=d;this.y3=t;this.iY=H;this.U=k;this.W=C;this.aA=RcY(e,B)}s4(){}OI(){}onFullscreenToggled(){}tq(f){f&&ZK(this.V,this.layout)}b$(){}r8(f){const e=Mj(this.layout);if(this.X=Dc(f,pM0(this.Q9.get())))e.onErrorCommand&&this.y3.get().executeCommand(e.onErrorCommand,this.layout.layoutId),ZK(this.V,this.layout)}onVolumeChange(){}du(){return this.oX().layoutId}OQ(){return this.X}tG(f){this.W.tG(f);f==="in_video_overlay_close_button"&& ZK(this.V,this.layout)}ix(f){f==="invideo-overlay"&&ZK(this.V,this.layout)}Jt(){this.W.Jt()}startRendering(f){super.startRendering(f);this.callback.TD(this.slot,f);this.U.hv=this}Ps(f,e){super.Ps(f,e);iQ(this.U,this)}init(){super.init();oE(this.Ud.get(),this);this.Q9.get().addListener(this);this.C.push(new nS6(Mj(this.layout),qr(this.aA),this.layout.layoutId,{adsClientData:this.layout.BL}))}release(){super.release();this.Q9.get().removeListener(this);VH(this.Ud.get(),this)}cJ(){}J1(){}};var Lf0=class extends XM{constructor(f,e,B,n,r,L,d,t,H,k,C,w){super(r,f,e,n);this.Ud=B;this.V=L;this.K=d;this.Q9=t;this.y3=H;this.iY=k;this.U=C;this.W=w;this.aA=RcY(e,B)}init(){super.init();oE(this.Ud.get(),this);this.Q9.get().addListener(this);this.C.push(new nS6(Mj(this.layout),qr(this.aA),this.layout.layoutId,{adsClientData:this.layout.BL}))}Jt(){this.W.Jt()}startRendering(f){super.startRendering(f);this.callback.TD(this.slot,f);this.U.hv=this}Ps(f,e){super.Ps(f,e);iQ(this.U,this)}tG(f){this.W.tG(f); f==="in_video_overlay_close_button"&&ZK(this.V,this.layout)}Yb(f){if(f==="invideo-overlay"){f=UMk(this.K,this.layout);for(const e of f)e.stop()}}ix(f){f==="invideo-overlay"&&ZK(this.V,this.layout)}UN(f){if(f==="invideo-overlay"){f=UMk(this.K,this.layout);for(const e of f)e.start()}}s4(){}OI(){}onFullscreenToggled(){}tq(f){f&&ZK(this.V,this.layout)}b$(){}r8(f){const e=Mj(this.layout),B=e.contentSupportedRenderer.imageOverlayAdContentRenderer;if(this.X=Dc(f,pM0(this.Q9.get()),zcM(B.image)))e.onErrorCommand&& this.y3.get().executeCommand(e.onErrorCommand,this.layout.layoutId),ZK(this.V,this.layout)}onVolumeChange(){}du(){return this.oX().layoutId}OQ(){return this.X}release(){super.release();this.Q9.get().removeListener(this);VH(this.Ud.get(),this)}cJ(){}J1(){}};var LZ=class{constructor(f){this.Q9=f;this.C=!1}tG(f){f==="ad-info-hover-text-button"&&((this.C=this.Q9.get().tb(1))||this.Q9.get().pauseVideo())}Jt(){this.C||this.Q9.get().resumeVideo(1)}};var d0O=class extends zX{constructor(f,e,B){super("survey",f,{},e,B)}};var t05=class extends XM{constructor(f,e,B,n,r,L,d){super(B,f,e,n);this.V=r;this.Q9=L;this.iY=d}init(){super.init();this.Q9.get().addListener(this)}startRendering(f){const e=this.layout.clientMetadata.RA("METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.C.push(new d0O(e,this.layout.layoutId,{adsClientData:this.layout.BL}));super.startRendering(f);this.callback.TD(this.slot,f)}TD(){}tG(f,e){e!==this.layout.layoutId||f!=="ad-info-icon-button"&&f!=="ad-info-dialog-close-button"||((e=this.layout.clientMetadata.RA("metadata_type_player_bytes_layout_controls_callback_ref").current)? f==="ad-info-icon-button"?e.FZ(this.slot,this.layout):f==="ad-info-dialog-close-button"&&e.rq(this.slot,this.layout):NL("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:f}))}r8(f){f.width<450&&ZK(this.V,this.layout)}onVolumeChange(){}s4(){}onFullscreenToggled(){}tq(){}b$(){}OI(){}cJ(){}J1(){}bY(){super.bY()}release(){super.release();this.Q9.get().removeListener(this)}};var Hcw=class{constructor(f,e,B,n,r,L,d,t,H,k){this.rX=f;this.Q9=e;this.Ud=B;this.V=n;this.UA=r;this.G=L;this.J=d;this.y3=t;this.iY=H;this.C=k}build(f,e,B,n){if(e=Q0(f,B,n,this.rX,this.Q9,this.Ud,this.V,this.C,this.iY))return e;if(UI(n,qgk()))return new Lf0(B,n,this.Ud,this.rX,f,this.G,this.J,this.Q9,this.y3,this.iY,this.C,new LZ(this.Q9));if(UI(n,Kq6()))return new ryd(B,n,this.Ud,this.rX,f,this.G,this.Q9,this.y3,this.iY,this.C,new LZ(this.Q9));if(UI(n,{Gt:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"], Nj:["LAYOUT_TYPE_SURVEY"]}))return new t05(B,n,f,this.rX,this.G,this.Q9,this.iY);if(UI(n,{Gt:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Nj:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new B30(B,n,f,this.rX,this.Ud);if(UI(n,EpM()))return new JwH(B,n,f,this.rX,this.Q9,this.iY);throw new WK(`Unsupported layout with type: ${n.layoutType} and client metadata: ${cK(n.clientMetadata)} in `+ "WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");}};var kA6=class{constructor(f,e,B,n,r,L,d,t,H,k){this.rX=f;this.Q9=e;this.Ud=B;this.V=n;this.UA=r;this.G=L;this.J=d;this.y3=t;this.iY=H;this.C=k}build(f,e,B,n){if(e=Q0(f,B,n,this.rX,this.Q9,this.Ud,this.V,this.C,this.iY))return e;if(UI(n,qgk()))return new Lf0(B,n,this.Ud,this.rX,f,this.G,this.J,this.Q9,this.y3,this.iY,this.C,new LZ(this.Q9));if(UI(n,Kq6()))return new ryd(B,n,this.Ud,this.rX,f,this.G,this.Q9,this.y3,this.iY,this.C,new LZ(this.Q9));throw new WK(`Unsupported layout with type: ${n.layoutType} and client metadata: ${cK(n.clientMetadata)} in `+ "WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");}};var C90=class extends QcO{constructor(f,e,B,n,r,L,d,t,H,k){super(f,e,B,n,r,L,d,H);this.Q_=t;this.mY=k}startRendering(f){super.startRendering(f);if(f.renderingContent?hed(f,J0(this.mY.get(),2)||void 0):this.layout.clientMetadata.RA("metadata_ad_video_is_listed")){const e=f.renderingContent?NFC(f,J0(this.mY.get(),2)||void 0):this.layout.clientMetadata.RA("metadata_type_ad_info_ad_metadata");f=this.Q_.get();g.yW(f.Z,"onAdMetadataAvailable",e)}}};var wCY=class{constructor(f,e,B,n,r,L,d){this.rX=f;this.Q9=e;this.Ud=B;this.G=n;this.Q_=r;this.C=L;this.mY=d}build(f,e,B,n){if(UI(n,aJk())||n.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.u(n.renderingContent,h0)!==void 0)return new C90(f,B,n,this.rX,this.Q9,this.Ud,this.G,this.Q_,this.C,this.mY);throw new WK(`Unsupported layout with type: ${n.layoutType} and client metadata: ${cK(n.clientMetadata)} in `+"WebRemixInPlayerLayoutRenderingAdapterFactory.");}};var vSw=class{constructor(f,e,B,n,r,L,d,t){this.rX=f;this.Q9=e;this.Ud=B;this.G=n;this.Q_=r;this.C=L;this.iY=d;this.mY=t}build(f,e,B,n){if(UI(n,aJk()))return new C90(f,B,n,this.rX,this.Q9,this.Ud,this.G,this.Q_,this.C,this.mY);if(f=Q0(f,B,n,this.rX,this.Q9,this.Ud,this.G,this.C,this.iY))return f;throw new WK(`Unsupported layout with type: ${n.layoutType} and client metadata: ${cK(n.clientMetadata)} in `+"WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");}};var dY=class{constructor(f,e){this.adPodIndex=f;this.C=e.length;this.adBreakLengthSeconds=e.reduce((n,r)=>n+r,0); let B=0;for(f+=1;fthis.triggerId,f)}};var Ow=class{constructor(f,e,B){this.triggeringSlotId=e;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=B||f(this.triggerType)}clone(f){return new Ow(()=>this.triggerId,f)}};var Vx=class{constructor(f,e){this.triggeringSlotId=e;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=f(this.triggerType)}clone(f){return new Vx(()=>this.triggerId,f)}};var o4=class{constructor(f,e){this.triggeringSlotId=e;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=f(this.triggerType)}clone(f){return new o4(()=>this.triggerId,f)}};var Ac=class{constructor(f,e,B){this.triggeringSlotId=e;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=B||f(this.triggerType)}clone(f){return new Ac(()=>this.triggerId,f)}};var jE=class{constructor(f,e){this.triggeringSlotId=e;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=f(this.triggerType)}clone(f){return new jE(()=>this.triggerId,f)}};var Nz=class{constructor(f,e,B){this.triggeringLayoutId=e;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=B||f(this.triggerType)}};var Q5=class{constructor(f,e,B,n){this.durationMs=e;this.triggeringLayoutId=B;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=n||f(this.triggerType)}};var R4=class{constructor(f,e,B,n){this.category=f;this.trigger=e;this.slot=B;this.layout=n}};var da=class extends g.$0{constructor(f,e,B,n,r,L,d){super();this.iY=f;this.C=e;this.G=B;this.mY=n;this.V=r;this.J=L;this.Ke=d}};var N3={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};var t9={R2:1,HT:2,Uo:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var Hq=class{constructor(f,e,B,n,r,L,d,t,H,k=1){this.V=f;this.G=e;this.C=B;this.iY=n;this.I6=r;this.J=L;this.Q9=d;this.pW=t;this.Bs=H;this.loadPolicy=k}};var kE=class extends g.$0{constructor(f,e,B,n,r,L,d,t){super();this.G=f;this.J=e;this.Mj=n;this.Q9=r;this.iY=L;this.Ud=d;this.gX=t;this.C=null;B.get().addListener(this);this.addOnDisposeCallback(()=>{B.HS()||B.get().removeListener(this)}); n.get().addListener(this);this.addOnDisposeCallback(()=>{n.HS()||n.get().removeListener(this)})}eP(f){if(this.C)NL("Unexpected multiple fetch instructions for the current content"); else{this.C=f;for(const e of this.Mj.get().MB)kt(this,this.C,e)}}RK(f){if(!this.C)return this.iY.get().Z.S().Y("high_ccv_client_side_caching_h5")||this.gX?.get().eJ(f.identifier),UP(this.Ud.get(),"ads_nfi",`a.cpoa;cid.${f.identifier}`),!1;kt(this,this.C,f);return!0}bc(){}y7(f){this.C&&this.C.contentCpn!==f&&(NL("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:f,fetchInstructionsCpn:this.C.contentCpn}),this.C=null)}CF(f){this.C&&this.C.contentCpn!==f&&NL("Expected content video of the current fetch instructions to end", void 0,void 0,{contentCpn:f,fetchInstructionsCpn:this.C.contentCpn},!0);this.C=null}bY(){super.bY();this.C=null}};var bc5=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],Zc6=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];var CZ=class extends g.$0{constructor(f,e,B,n,r,L,d,t){super();this.V=f;this.U=bc5;this.W=e;this.J=B;this.C=n;this.G=r;this.I6=L;this.iY=d;this.mY=t;this.TZ=!0}TD(f,e){if(e.layoutType==="LAYOUT_TYPE_MEDIA"&&(pJ(e,this.U)||pJ(e,Zc6))){var B=J0(this.mY.get(),2),n=this.V(e,B||void 0);n?by(this.J.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",()=>{const r=[Gnk(this.C.get(),n.contentCpn,n.ma,L=>this.W(L.slotId,"core",n,oM(this.I6.get(),L)),n.inPlayerSlotId)]; n.instreamAdPlayerUnderlayRenderer&&O$(this.iY.get())&&r.push(cng(this,n,n.instreamAdPlayerUnderlayRenderer));return r}):NL("Expected MediaLayout to carry valid opportunity on entered",f,e)}}MD(){}XB(){}Ua(){}Ht(){}YK(){}U3(){}Yf(){}bE(){}AG(){}wR(){}DW(){}};var wa=class extends g.$0{constructor(f,e,B,n,r,L,d){super();this.G=f;this.C=e;this.J=B;this.V=n;this.mY=r;this.Q9=L;this.yz=d}y7(f,e,B,n,r,L,d){const t=J0(this.mY.get(),1);t.P$?this.Q9.get().S3():(xcO(this.yz.get(),n),by(this.G.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",()=>cV(this.C.get(),n,r,L,f,e,d,t,"")),uTY(this.J))}CF(){}};var vq=class extends g.$0{constructor(f){super();this.C=f}};var b$=class extends g.$0{constructor(f,e,B,n,r){super();this.G=f;this.J=e;this.JF=B;this.context=r;this.C=new Map;n.get().addListener(this);this.addOnDisposeCallback(()=>{n.HS()||n.get().removeListener(this)})}onCueRangeEnter(){}onCueRangeExit(f){const e=this.C.get(f); e&&(this.C.delete(f),this.JF.get().removeCueRange(f),by(this.G.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",()=>{var B=this.J.get();B=Zf(B.G.get(),"SLOT_TYPE_AD_BREAK_REQUEST");if(e.slotEntryTrigger){var n=e.slotId;var r=e.slotEntryTrigger;n=r.triggeringSlotId!=null&&r.triggeringSlotId===n?r.clone(B):r}else n=void 0;return[{...e,slotId:B,slotEntryTrigger:n,slotFulfillmentTriggers:rTG(e.slotId,B,e.slotFulfillmentTriggers),slotExpirationTriggers:rTG(e.slotId,B,e.slotExpirationTriggers)}]}, e.slotId))}y7(){for(const f of this.C.keys())this.JF.get().removeCueRange(f); this.C.clear()}CF(){}};var Z$=class extends g.$0{constructor(){super(...arguments);this.TZ=!0;this.zC=new Map;this.C=new Map}MD(){}XB(f){g.wS(g.bo(),()=>{const e=this.C.get(f);e&&NL("Expected layouts to be properly unscheduled",f,void 0,{slotType:f.slotType,layoutTypes:[...e].map(B=>B.layoutType)})},0)}Ua(){}Ht(){}YK(){}U3(){}Yf(){}bE(f,e){this.C.has(f)||this.C.set(f,new Set); this.C.get(f).add(e)}AG(f,e){this.zC.has(f)&&this.zC.get(f)===e&&NL("Unscheduled a Layout that is currently entered.",f,e);if(this.C.has(f)){var B=this.C.get(f);B.has(e)?(B.delete(e),B.size===0&&this.C.delete(f)):NL("Trying to unscheduled a Layout that was not scheduled.",f,e)}else NL("Trying to unscheduled a Layout that was not scheduled.",f,e)}TD(f,e){this.zC.set(f,e)}DW(f){this.zC.delete(f)}wR(){}};var RJd=class{constructor(f,e){this.callback=f;this.slot=e}init(){}tE(){return this.slot}MF(){this.callback.Ua(this.slot)}Dh(){this.callback.YK(this.slot)}release(){}};var Rh=class{build(f,e){return new RJd(f,e)}};var KfM=class{constructor(f,e,B){this.callback=f;this.slot=e;this.Q9=B}init(){}tE(){return this.slot}MF(){uQ(this.Q9.get(),"ad-showing");this.callback.Ua(this.slot)}Dh(){this.callback.YK(this.slot);FT(this.Q9.get(),"ad-showing")}release(){}};var q9l=class{constructor(f,e,B){this.callback=f;this.slot=e;this.Q9=B;this.G=!1;this.C=0}init(){}tE(){return this.slot}MF(){uQ(this.Q9.get(),"ad-showing");uQ(this.Q9.get(),"ad-interrupting");this.G=this.Q9.get().isAtLiveHead();this.C=Math.ceil(Date.now()/1E3);this.callback.Ua(this.slot)}Dh(){FT(this.Q9.get(),"ad-showing");FT(this.Q9.get(),"ad-interrupting");const f=this.G?Infinity:UB(this.Q9.get(),1,!0)+Math.floor(Date.now()/1E3)-this.C;this.Q9.get().Z.seekTo(f,void 0,void 0,1);this.callback.YK(this.slot)}release(){}};var zJO=class{constructor(f,e,B){this.callback=f;this.slot=e;this.Q9=B}init(){}tE(){return this.slot}MF(){uQ(this.Q9.get(),"ad-showing");uQ(this.Q9.get(),"ad-interrupting");this.callback.Ua(this.slot)}Dh(){this.Q9.get().S3();FT(this.Q9.get(),"ad-showing");FT(this.Q9.get(),"ad-interrupting");this.callback.YK(this.slot)}release(){this.Q9.get().S3()}};var KZ=class{constructor(f){this.Q9=f}build(f,e){if(Y3(e,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new KfM(f,e,this.Q9);if(e.slotEntryTrigger instanceof gk&&Y3(e,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new q9l(f,e,this.Q9);if(Y3(e,[],"SLOT_TYPE_PLAYER_BYTES"))return new zJO(f,e,this.Q9);throw new M(`Unsupported slot with type ${e.slotType} and client metadata: ${cK(e.clientMetadata)} in ${"PlayerBytesSlotAdapterFactory"}.`);}};var anH=class extends g.$0{constructor(f){super();this.dN=f;this.RX=new Map}};var qh=class extends anH{constructor(f,e,B){super(f);this.iY=B;e.get().addListener(this);this.addOnDisposeCallback(()=>{e.HS()||e.get().removeListener(this)})}tG(f,e){if(e)if(f==="skip-button"){f=[]; for(const B of this.RX.values()){const n=B.trigger;n instanceof mw&&B.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&n.triggeringLayoutId===e&&f.push(B)}f.length&&Ql(this.dN(),f)}else BP(this.iY.get(),"supports_multi_step_on_desktop")?f==="ad-action-submit-survey"&&bq(this,e):f==="survey-submit"?bq(this,e):f==="survey-single-select-answer-button"&&bq(this,e)}B_(f){const e=[];for(const B of this.RX.values()){const n=B.trigger;n instanceof mw&&B.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&& n.triggeringLayoutId===f&&e.push(B)}e.length?Ql(this.dN(),e):NL("Mute requested but no registered triggers can be activated.")}PJ(f,e,B,n){if(this.RX.has(e.triggerId))throw new M("Tried to register duplicate trigger for slot.");if(!(e instanceof Nz||e instanceof mw))throw new M("Incorrect TriggerType: Tried to register trigger of type "+e.triggerType+" in AdUxUpdateTriggerAdapter.");this.RX.set(e.triggerId,new R4(f,e,B,n))}Rk(f){this.RX.delete(f.triggerId)}Yb(){}UN(){}ix(){}};var z3=class extends g.$0{constructor(f){super();this.C=f;this.TZ=!0;this.RX=new Map;this.W=new Set;this.J=new Set;this.V=new Set;this.U=new Set;this.G=new Set}PJ(f,e,B,n){if(this.RX.has(e.triggerId))throw new M("Tried to register duplicate trigger for slot.");if(!(e instanceof Uw||e instanceof Ow||e instanceof Vx||e instanceof o4||e instanceof Ac||e instanceof jE||e instanceof a4||e instanceof Ew||e instanceof lX||e instanceof uX||e instanceof Tg||e instanceof AS))throw new M("Incorrect TriggerType: Tried to register trigger of type "+ e.triggerType+" in AdsControlFlowEventTriggerAdapter");f=new R4(f,e,B,n);this.RX.set(e.triggerId,f);e instanceof Ac&&this.W.has(e.triggeringSlotId)&&Ql(this.C(),[f]);e instanceof Uw&&this.J.has(e.triggeringSlotId)&&Ql(this.C(),[f]);e instanceof Ew&&this.G.has(e.triggeringLayoutId)&&Ql(this.C(),[f])}Rk(f){this.RX.delete(f.triggerId)}MD(f){this.W.add(f.slotId);const e=[];for(const B of this.RX.values())B.trigger instanceof Ac&&f.slotId===B.trigger.triggeringSlotId&&e.push(B);e.length>0&&Ql(this.C(), e)}XB(f){this.W.delete(f.slotId);const e=[];for(const B of this.RX.values()){const n=B.trigger;n instanceof jE&&n.triggeringSlotId===f.slotId&&e.push(B)}e.length>0&&Ql(this.C(),e)}Ht(f){const e=[];for(const B of this.RX.values()){const n=B.trigger;n instanceof a4&&n.slotType===f.slotType&&n.C!==f.slotId&&e.push(B)}e.length>0&&Ql(this.C(),e)}Ua(f){this.J.add(f.slotId);const e=[];for(const B of this.RX.values())B.trigger instanceof Uw&&f.slotId===B.trigger.triggeringSlotId&&e.push(B);e.length>0&&Ql(this.C(), e)}YK(f){this.J.delete(f.slotId);this.V.add(f.slotId);const e=[];for(const B of this.RX.values())if(B.trigger instanceof Ow)f.slotId===B.trigger.triggeringSlotId&&e.push(B);else if(B.trigger instanceof AS){const n=B.trigger;f.slotId===n.slotId&&this.G.has(n.triggeringLayoutId)&&e.push(B)}e.length>0&&Ql(this.C(),e)}U3(f){const e=[];for(const B of this.RX.values())B.trigger instanceof Vx&&f.slotId===B.trigger.triggeringSlotId&&e.push(B);e.length>0&&Ql(this.C(),e)}Yf(f){const e=[];for(const B of this.RX.values())B.trigger instanceof o4&&f.slotId===B.trigger.triggeringSlotId&&e.push(B);e.length>0&&Ql(this.C(),e)}bE(f,e){this.U.add(e.layoutId)}AG(f,e){this.U.delete(e.layoutId)}TD(f,e){this.G.add(e.layoutId);const B=[];for(const r of this.RX.values())if(r.trigger instanceof Ew)e.layoutId===r.trigger.triggeringLayoutId&&B.push(r);else if(r.trigger instanceof Tg){var n=r.trigger;f.slotType===n.slotType&&e.layoutType===n.layoutType&&e.layoutId!==n.C&&B.push(r)}else r.trigger instanceof AS&&(n=r.trigger,e.layoutId===n.triggeringLayoutId&& this.V.has(n.slotId)&&B.push(r));B.length>0&&Ql(this.C(),B)}DW(f,e,B){this.G.delete(e.layoutId);f=[];for(const n of this.RX.values())if(n.trigger instanceof lX&&e.layoutId===n.trigger.triggeringLayoutId&&f.push(n),n.trigger instanceof uX){const r=n.trigger;e.layoutId===r.triggeringLayoutId&&r.C.includes(B)&&f.push(n)}f.length>0&&Ql(this.C(),f)}wR(){}y7(){this.V.clear()}CF(){}};var pCO=class extends g.$0{constructor(f){super();this.C=f;this.RX=new Map}PJ(f,e,B,n){if(this.RX.has(e.triggerId))throw new M("Tried to register duplicate trigger for slot.");if(!(e instanceof hc))throw new M("Incorrect TriggerType: Tried to register trigger of type "+e.triggerType+" in CloseRequestedTriggerAdapter");this.RX.set(e.triggerId,new R4(f,e,B,n))}Rk(f){this.RX.delete(f.triggerId)}};var ah=class extends g.$0{constructor(f,e,B){super();this.C=f;this.context=B;this.RX=new Map;e.get().addListener(this);this.addOnDisposeCallback(()=>{e.HS()||e.get().removeListener(this)})}PJ(f,e,B,n){if(this.RX.has(e.triggerId))throw new M("Tried to register duplicate trigger for slot."); if(!(e instanceof o8||e instanceof jD))throw new M("Incorrect TriggerType: Tried to register trigger of type "+e.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.RX.set(e.triggerId,new R4(f,e,B,n))}Rk(f){this.RX.delete(f.triggerId)}y7(f){const e=[];var B=e.push,n=this.RX,r=[];for(const L of n.values())L.trigger instanceof o8&&L.trigger.hB===f&&r.push(L);B.call(e,...r);B=e.push;n=this.RX;r=[];for(const L of n.values())L.trigger instanceof jD&&L.trigger.C!==f&&r.push(L);B.call(e,...r); e.length&&Ql(this.C(),e)}CF(f){const e=[];var B=e.push,n=this.RX;const r=[];for(const L of n.values())n=L.trigger,n instanceof jD&&n.C===f&&r.push(L);B.call(e,...r);e.length&&Ql(this.C(),e)}};var pZ=class extends g.$0{constructor(f,e,B,n){super();this.G=f;this.JF=e;this.Q9=B;this.mY=n;this.TZ=!0;this.RX=new Map;this.C=new Set;B.get().addListener(this);this.addOnDisposeCallback(()=>{B.HS()||B.get().removeListener(this)})}PJ(f,e,B,n){if(this.RX.has(e.triggerId))throw new M("Tried to register duplicate trigger for slot."); const r=`${"adtriggercuerange"}:${e.triggerId}`;if(e instanceof gk)AnG(this,f,e,B,n,r,e.C.start,e.C.end,e.hB,e.visible);else if(e instanceof SD)AnG(this,f,e,B,n,r,0x7ffffffffffff,0x8000000000000,e.hB,e.visible);else throw new M("Incorrect TriggerType: Tried to register trigger of type "+e.triggerType+" in CueRangeTriggerAdapter");}Rk(f){const e=this.RX.get(f.triggerId);e&&this.JF.get().removeCueRange(e.cueRangeId);this.RX.delete(f.triggerId)}onCueRangeEnter(f){if(f=jNG(this,f))if(f=this.RX.get(f))if(cd(this.Q9.get()).C(32))this.C.add(f.cueRangeId); else{var e=f?.Cn.trigger;(e instanceof gk||e instanceof SD)&&Ql(this.G(),[f.Cn])}}onCueRangeExit(f){(f=jNG(this,f))&&(f=this.RX.get(f))&&this.C.delete(f.cueRangeId)}OI(f){if(hX(f,16)<0){for(const e of this.C)this.onCueRangeEnter(e,!0);this.C.clear()}}MD(){}XB(){}Ht(){}Ua(){}YK(){}U3(){}Yf(){}bE(){}AG(){}TD(){}DW(){}wR(){}s4(){}onFullscreenToggled(){}tq(){}b$(){}r8(){}onVolumeChange(){}cJ(){}J1(){}};var cy5=class extends g.$0{constructor(f,e){super();this.V=f;this.G=new Map;this.J=new Map;this.C=null;e.get().addListener(this);this.addOnDisposeCallback(()=>{e.HS()||e.get().removeListener(this)}); this.C=e.get().XY?.slotId||null}PJ(f,e,B,n){if(this.G.has(e.triggerId)||this.J.has(e.triggerId))throw new M("Tried to re-register the trigger.");f=new R4(f,e,B,n);if(f.trigger instanceof DP)this.G.set(f.trigger.triggerId,f);else if(f.trigger instanceof Jc)this.J.set(f.trigger.triggerId,f);else throw new M("Incorrect TriggerType: Tried to register trigger of type "+f.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.G.has(f.trigger.triggerId)&&f.slot.slotId===this.C&&Ql(this.V(), [f])}Rk(f){this.G.delete(f.triggerId);this.J.delete(f.triggerId)}Uh({slotId:f}){if(this.C!==f){var e=[];this.C!=null&&e.push(...Oi0(this.J,this.C));f!=null&&e.push(...Oi0(this.G,f));this.C=f;e.length&&Ql(this.V(),e)}}};var cq=class extends g.$0{constructor(f){super();this.C=f;this.TZ=!0;this.RX=new Map}PJ(f,e,B,n){if(this.RX.has(e.triggerId))throw new M("Tried to register duplicate trigger for slot.");if(!(e instanceof Fz))throw new M("Incorrect TriggerType: Tried to register trigger of type "+e.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.RX.set(e.triggerId,new R4(f,e,B,n))}Rk(f){this.RX.delete(f.triggerId)}TD(){}DW(){}MD(){}XB(){}Ht(){}Ua(){}YK(){}U3(){}Yf(){}bE(){}AG(){}wR(){}};var YE=class extends g.$0{constructor(f){super();this.C=f;this.TZ=!0;this.RX=new Map}wR(f,e){const B=[];for(const n of this.RX.values()){const r=n.trigger;r.opportunityType===f&&(r.associatedSlotId&&r.associatedSlotId!==e||B.push(n))}B.length&&Ql(this.C(),B)}PJ(f,e,B,n){if(this.RX.has(e.triggerId))throw new M("Tried to register duplicate trigger for slot.");if(!(e instanceof Iyk))throw new M("Incorrect TriggerType: Tried to register trigger of type "+e.triggerType+" in OpportunityEventTriggerAdapter"); this.RX.set(e.triggerId,new R4(f,e,B,n))}Rk(f){this.RX.delete(f.triggerId)}MD(){}XB(){}Ht(){}Ua(){}YK(){}U3(){}Yf(){}bE(){}AG(){}TD(){}DW(){}};var A9=class extends g.$0{constructor(f,e,B,n,r,L){super();this.U=f;this.Mj=e;this.Q9=B;this.Ud=n;this.pW=L;this.C=null;this.V=!1;this.TZ=!0;this.RX=new Map;e.get().addListener(this);this.addOnDisposeCallback(()=>{e.HS()||e.get().removeListener(this)}); r.get().addListener(this);this.addOnDisposeCallback(()=>{r.HS()||r.get().removeListener(this)})}PJ(f,e,B,n){f=new R4(f,e,B,n); if(e instanceof Mz||e instanceof x9||e instanceof Gg||e instanceof WV||e instanceof nnl){if(this.RX.has(e.triggerId))throw new M("Tried to register duplicate trigger for slot.");this.RX.set(e.triggerId,f)}else throw new M("Incorrect TriggerType: Tried to register trigger of type "+e.triggerType+" in PrefetchTriggerAdapter");}Rk(f){this.RX.delete(f.triggerId)}MD(f){const e=f.slotFulfillmentTriggers.find(B=>B instanceof Mz); e&&(K6(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",e.breakDurationMs,new Set([f.slotId]),!0),UP(this.Ud.get(),"ads_css",`sid.${f.slotId};bd.${e.breakDurationMs}`))}XB(){}Ht(){}Ua(){}YK(){}U3(){}Yf(){}bE(){}AG(){}TD(){}DW(){}wR(){}RK(f){if(!this.C)return UP(this.Ud.get(),"ads_nfi",`a.pta;cid.${f.identifier}`),!1;this.G&&this.G.stop();this.W&&this.W.M0();const e=oI0(this,f);if(!e){var B=VY0(this);const n=this.X!==void 0&&Date.now()<=this.X+1E4;UP(this.Ud.get(),"ads_ncfs",`cid.${f.identifier};cd.${f.Kc.toFixed(3)};ccs.${n};cfa.${this.V};bdc.${B.length};${B.slice(0, 6).map(r=>`;bd.${r}`).join("")}`); return n?(kt(this.pW,this.C,f),!0):!1}(B=e.slot.clientMetadata.RA("metadata_type_triggering_cue_point"))?B.current=f:NL("Expected triggering cue point ref to be available",e.slot);(new g.T6(()=>{const n=e.trigger,r=e.slot;K6(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",n.breakDurationMs,new Set,!0);K6(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",n.breakDurationMs,new Set,!1);let L=0;for(const d of this.RX.values()){const t=d.trigger;d.slot.slotId===r.slotId&& (this.RX.delete(t.triggerId),L++)}UP(this.Ud.get(),"ads_csf",`sid.${r.slotId};bd.${n.breakDurationMs};dt.${L}`)},10)).start(); return!0}bc(){}y7(f){this.V=!1;this.X=Date.now();this.C&&this.C.contentCpn!==f?(NL("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:f,fetchInstructionsCpn:this.C.contentCpn}),qw(this)):(this.J=new g.T6(()=>{if(this.V)delete this.J;else{var e=this.Q9.get().getGetAdBreakContext();Number(e?.livePlaybackPosition?.utcTimeMillis)>0?(delete this.J,uD0(this)):this.J?.start()}},200),this.J?.start())}CF(f){this.C&&this.C.contentCpn!==f&&NL("Expected content video of the current fetch instructions to end", void 0,void 0,{contentCpn:f, fetchInstructionsCpn:this.C.contentCpn},!0);qw(this)}eP(f){if(this.C)NL("Unexpected multiple fetch instructions for the current content");else{this.C=f;f=FCH(f);this.G=new g.T6(()=>{uD0(this)},f?f:6E5); this.G.start();this.W=new g.T6(()=>{this.C&&(this.G&&(this.G.stop(),this.G.start()),l4G(this,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},mMY(this.C)); f=this.Q9.get().getCurrentTimeSec(1,!1);for(const e of this.Mj.get().MB)UP(this.Ud.get(),"nocache",`ct.${Date.now()};cmt.${f};d.${e.Kc.toFixed(3)};tw.${e.startSecs-f};cid.${e.identifier};`)}}bY(){super.bY();qw(this)}};var Y95=class extends g.$0{constructor(f){super();this.J=f;this.TZ=!0;this.RX=new Map;this.C=new Map;this.G=new Map}PJ(f,e,B,n){if(this.RX.has(e.triggerId))throw new M("Tried to register duplicate trigger for slot.");if(!(e instanceof Q5))throw new M("Incorrect TriggerType: Tried to register trigger "+`of type ${e.triggerType}`+" in TimeRelativeToLayoutEnterTriggerAdapter");this.RX.set(e.triggerId,new R4(f,e,B,n));f=this.C.has(e.triggeringLayoutId)?this.C.get(e.triggeringLayoutId):new Set;f.add(e); this.C.set(e.triggeringLayoutId,f)}Rk(f){this.RX.delete(f.triggerId);if(!(f instanceof Q5))throw new M("Incorrect TriggerType: Tried to unregister trigger "+`of type ${f.triggerType}`+" in TimeRelativeToLayoutEnterTriggerAdapter");var e=this.G.get(f.triggerId);e&&(e.dispose(),this.G.delete(f.triggerId));if(e=this.C.get(f.triggeringLayoutId))e.delete(f),e.size===0&&this.C.delete(f.triggeringLayoutId)}MD(){}XB(){}Ht(){}Ua(){}YK(){}U3(){}Yf(){}bE(){}AG(){}wR(){}TD(f,e){if(this.C.has(e.layoutId)){f=this.C.get(e.layoutId); for(const B of f)f=new g.T6(()=>{const n=this.RX.get(B.triggerId);Ql(this.J(),[n])},B.durationMs),f.start(),this.G.set(B.triggerId,f)}}DW(){}};var jp=class extends g.$0{constructor(){super();this.RX=new Map}PJ(f,e){if(this.RX.has(e.triggerId))throw new M("Tried to register duplicate trigger for slot.");throw new M("Incorrect TriggerType: Tried to register trigger of type "+e.triggerType+" in VideoTransitionTriggerAdapter.");}Rk(f){this.RX.delete(f.triggerId)}};var OL=class{constructor(f){this.iY=f;this.G=new Map;this.C=new Map;this.J=new Map}};var oh=class{constructor(f){this.G=f;this.C=e=>s$(this.G.get(),e)}};var l$=class{constructor(f,e,B){this.G=f;this.J=e;this.iY=B;this.C=n=>s$(this.G.get(),n)}kD(f){return f.kind==="AD_PLACEMENT_KIND_START"}};var gY5=class{C(f){f&&g.t$("adsSeenClientLogging",{serializedAdServingDataEntry:f.serializedAdServingDataEntry})}};var Ay5=class extends g.$0{constructor(f,e){super();this.iY=f;this.G=e;this.eventCount=0;this.J=SOg()()}logEvent(f){this.C(f)}C(f,e,B,n,r,L,d,t,H,k,C,w=0){BP(this.iY.get(),"h5_enable_pacf_debug_logs")&&console.log(`[PACF]: ${f}`,"slot:",r,"layout:",L,"ping:",d,"Opportunity:",{opportunityType:e,associatedSlotId:B,QRj:n,RqA:t,adSlotLoggingData:H,adLayoutLoggingData:k});try{const v=()=>{if(!this.iY.get().Z.S().Y("html5_disable_client_tmp_logs")&&f!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){f||NL("Empty PACF event type", r,L);var b=OF(this.G.get());const K={eventType:f,eventOrder:++this.eventCount},Y={};r&&(Y.slotData=jG(b,r));L&&(Y.layoutData=jq5(b,L));d&&(Y.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:d.C.serializedAdPingMetadata,pingIndex:d.index});t&&(Y.triggerData=AH(t.trigger,t.category));e&&(Y.opportunityData=O$H(b,e,B,n));b={organicPlaybackContext:{contentCpn:J0(this.mY.get(),1).clientPlaybackNonce}};b.organicPlaybackContext.isLivePlayback=J0(this.mY.get(), 1).sA;b.organicPlaybackContext.isMdxPlayback=J0(this.mY.get(),1)?.isMdxPlayback;J0(this.mY.get(),1)?.daiEnabled&&(b.organicPlaybackContext.isDaiContent=!0);const l=J0(this.mY.get(),2)?.clientPlaybackNonce;l&&(b.adVideoPlaybackContext={adVideoCpn:l});b&&(Y.externalContext=b);K.adClientData=Y;H&&(K.serializedSlotAdServingData=H.serializedSlotAdServingDataEntry);k&&(K.serializedAdServingData=k.serializedAdServingDataEntry);C&&(K.errorInfo=C);g.t$("adsClientStateChange",{adsClientEvent:K})}}; w&&w>0?g.wS(g.bo(),()=>v(),w):v()}catch(v){BP(this.iY.get(),"html5_log_pacf_logging_errors")&&g.wS(g.bo(),()=>{NL(v instanceof Error?v:String(v),r,L,{pacf_message:"exception during pacf logging"})})}}};var JBw=class extends Ay5{constructor(f,e,B){super(f,e);this.iY=f;this.mY=B}C(f,e,B,n,r,L,d,t,H,k,C){var w=this.iY.get();g.IM(w.Z.S())?(w=this.iY.get(),w=g.tS(w.Z.S().experiments,"H5_async_logging_delay_ms")):w=void 0;super.C(f,e,B,n,r,L,d,t,H,k,C,w)}};var u$=class{constructor(){this.C=new Map}clear(){this.C.clear()}};var uq=class{constructor(f){this.C="pending";this.G=[];this.J=[];try{f(this.V.bind(this),this.reject.bind(this))}catch(e){this.reject(e)}}state(){return this.C==="fulfilled"?{state:"fulfilled",value:this.result}:this.C==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}V(f){Oc(f)||F0(f)?hS(ma(f),this.V.bind(this),this.reject.bind(this)):(this.C="fulfilled",this.result=f,gd(this))}reject(f){this.C="rejected";this.error=f;gd(this)}},F0=vD(f=>Bng(f)?f instanceof uq:!1);var jiC=!1,W$,JS,Mw,G0,xt,OcO=class extends g.$0{constructor(f){super();this.counter=[0,0,0,0];this.G=new Uint8Array(16);this.C=16;if(!jiC){var e,B=new Uint8Array(256),n=new Uint8Array(256);var r=1;for(e=0;e<256;e++)B[r]=e,n[e]=r,r^=r<<1^(r>>7&&283);W$=new Uint8Array(256);JS=DK(256);Mw=DK(256);G0=DK(256);xt=DK(256);for(let d=0;d<256;d++){r=d?n[255^B[d]]:0;r^=r<<1^r<<2^r<<3^r<<4;r=r&255^r>>>8^99;W$[d]=r;e=r<<1^(r>>7&&283);var L=e^r;JS[d]=e<<24|r<<16|r<<8|L;Mw[d]=L<<24|JS[d]>>>8;G0[d]=r<<24|Mw[d]>>> 8;xt[d]=r<<24|G0[d]>>>8}jiC=!0}r=DK(44);for(B=0;B<4;B++)r[B]=f[4*B]<<24|f[4*B+1]<<16|f[4*B+2]<<8|f[4*B+3];for(n=1;B<44;B++)f=r[B-1],B%4||(f=(W$[f>>16&255]^n)<<24|W$[f>>8&255]<<16|W$[f&255]<<8|W$[f>>>24],n=n<<1^(n>>7&&283)),r[B]=r[B-4]^f;this.key=r}encrypt(f){const e=f.length;f=new Uint8Array(f.buffer.slice(f.byteOffset,f.byteOffset+e));const B=this.G;let n=0;for(;n{const f=n=>new Uint8Array(n),e=n=>{const r=new Uint8Array(n.length); for(let L=0;L=64&&(this.U.set(f.subarray(0,64-this.G),this.G),e=64-this.G,this.G=0,pLG(this,this.U,0));for(;e+64<=B;e+=64)pLG(this,f,e);e{this.append(e)})}W(){return this.totalLength}append(f){if(Fxl(this,f)){const e=this.C[this.C.length-1]; this.C[this.C.length-1]=new Uint8Array(e.buffer,e.byteOffset,e.length+f.length);iq(this)}else this.C.push(f);this.totalLength+=f.length}split(f){const e=new bg,B=new bg;for(const n of this.C)f>=n.length?(e.append(n),f-=n.length):f?(e.append(new Uint8Array(n.buffer,n.byteOffset,f)),B.append(new Uint8Array(n.buffer,n.byteOffset+f,n.length-f)),f=0):B.append(n);return{OU:e,ZF:B}}isFocused(f){return f>=this.J&&f{const f=n=>new Uint8Array(n),e=n=>{const r=new Uint8Array(n.length); for(let L=0;L{const B=g.u(f?.commandMetadata,g.L1)?.rootVe||g.u(f?.commandMetadata,q46)?.screenVisualElement?.uiType;if(B){var n=g.u(f?.commandMetadata,EdY);if(n?.parentTrackingParams){var r=g.kv(n.parentTrackingParams);if(n.parentCsn)var L=n.parentCsn}else e.clickedVisualElement?r=e.clickedVisualElement:f.clickTrackingParams&&(r=g.kv(f.clickTrackingParams)); a:{n=g.u(f,g.iK);var d=g.u(f,N4m);if(n){if(d=Wxm(n,"VIDEO")){n={token:d,videoId:n.videoId};break a}}else if(d&&(n=Wxm(d,"PLAYLIST"))){n={token:n,playlistId:d.playlistId};break a}n=void 0}e={cttAuthInfo:n,parentCsn:L,...e};g.UV("expectation_logging")&&(e.loggingExpectations=g.u(f?.commandMetadata,q46)?.loggingExpectations||void 0);mW(this,B,r,e)}else g.Yv(new g.Dj("Error: Trying to create a new screen without a rootVeType",f))})()}clickCommand(f,e,B=0){return e4k(this,f.clickTrackingParams,e,B)}stateChanged(f, e,B=0){this.visualElementStateChanged(g.kv(f),e,B)}visualElementStateChanged(f,e,B=0){B===0&&this.G.has(B)?this.N.push([f, e]):POw(this,f,e,B)}FU(f){const e=f.cpn;if(this.C.length&&this.C[this.C.length-2]?.cpn!==e){var B=g.be();if(e&&B&&B!=="UNDEFINED_CSN"){let n;f.itct&&(n=g.kv(f.itct||""));const r={};g.UV("web_playback_associated_log_ctt")&&f.dj&&(r.cttAuthInfo={token:f.dj,videoId:f.videoId});f={cpn:e,csn:B};g.UV("web_playback_associated_ve")&&n&&(g.W6(B,n),f.playbackVe=n.getAsJson());g.t$("playbackAssociated",f,r);this.C[this.C.length-1].cpn=e}}}};var So=class{fetch(f,e,B){const n=nA0(f,e,B);return new Promise((r,L)=>{const d=()=>{if(B?.Wp)try{const t=this.handleResponse(f,n.status,n.response,B);r(t)}catch(t){L(t)}else r(this.handleResponse(f,n.status,n.response,B))}; n.onerror=d;n.onload=d;n.send(e.body??null)})}handleResponse(f,e,B,n){B=B.replace(")]}'",""); let r;try{r=JSON.parse(B)}catch(L){g.Yv(new g.Dj("JSON parsing failed after XHR fetch",f,e,B));if(n?.Wp&&B)throw new g.DT("JSON parsing failed after XHR fetch");r={}}e!==200&&(g.Yv(new g.Dj("XHR API fetch failed",f,e,B)),r={...r,errorMetadata:{status:e}});return r}};var Eu=class{static getInstance(){let f=g.zO("ytglobal.storage_");f||(f=new Eu,g.qH("ytglobal.storage_",f));return f}async estimate(){const f=navigator;if(f.storage?.estimate)return f.storage.estimate();if(f.webkitTemporaryStorage?.queryUsageAndQuota)return r_G()}};g.qH("ytglobal.storageClass_",Eu);var urG=class{constructor(f,e){this.handleError=f;this.C=e;this.G=!1;self.document===void 0||self.addEventListener("beforeunload",()=>{this.G=!0}); this.J=Math.random()<=.2}mj(f){this.handleError(f)}logEvent(f,e){switch(f){case "IDB_DATA_CORRUPTED":g.UV("idb_data_corrupted_killswitch")||this.C("idbDataCorrupted",e);break;case "IDB_UNEXPECTEDLY_CLOSED":this.C("idbUnexpectedlyClosed",e);break;case "IS_SUPPORTED_COMPLETED":g.UV("idb_is_supported_completed_killswitch")||this.C("idbIsSupportedCompleted",e);break;case "QUOTA_EXCEEDED":dCd(this,e);break;case "TRANSACTION_ENDED":this.J&&Math.random()<=.1&&this.C("idbTransactionEnded",e);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":this.C("idbTransactionAborted", {...e,hasWindowUnloaded:this.G})}}};var YIl=g.BL("yt-player-local-media",{lf:{index:{sT:2},media:{sT:2},captions:{sT:5}},shared:!1,upgrade(f,e){e(2)&&(g.EU(f,"index"),g.EU(f,"media"));e(5)&&g.EU(f,"captions");e(6)&&(Qe(f,"metadata"),Qe(f,"playerdata"))},version:5});var Ffd={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},F7;a:{var mN=g.d0();mN=mN.toLowerCase();if(g.BE(mN,"android")){var m0M=mN.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(m0M){const f=parseFloat(m0M[1]);if(f<100){F7=f;break a}}var U05=mN.match("("+Object.keys(Ffd).join("|")+")");F7=U05?Ffd[U05[0]]:0}else F7=void 0}var UL=F7,HS=UL>=0;var t$O=aY(()=>window.matchMedia?.("(prefers-reduced-motion: reduce)").matches);var Ty;g.Q1=new xF0;Ty=0;g.N3d=class{constructor(f){this.videoData=f;this.C={c1a:()=>{const e=[];if(g.Q1.isInitialized()){var B="";this.videoData&&this.videoData.rS&&(B=this.videoData.rS+`&${"r1b"}=${this.videoData.clientPlaybackNonce}`);B={atr_challenge:B};QF("bg_v",void 0,"player_att");(B=wRM(B))?(QF("bg_s",void 0,"player_att"),e.push(`${"r1a"}=${B}`)):(QF("bg_e",void 0,"player_att"),e.push("r1c=2"))}else QF("bg_e",void 0,"player_att"),window.trayride||window.botguard?e.push("r1c=1"):e.push("r1c=4");e.push(`${"r1d"}=${g.Q1.getState()}`); return e.join("&")}, c6a:e=>"r6a="+(Number(e.c)^HK()), c6b:e=>`${"r6b"}=${Number(e.c)^Number(g.Q("CATSTAT",0))}`}; this.videoData&&this.videoData.rS?this.y_=C$(this.videoData.rS):this.y_={}}};var sh=R4H()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Po?!0:!1;var el={XR:function(f,e){f[Z[45]](0,e)}, Xl:function(f){f[Z[74]]()}, f6:function(f,e){var B=f[0];f[0]=f[e%f[Z[13]]];f[e%f[Z[13]]]=B}};var hJw={L8:"adunit",Iq:"detailpage",WA:"editpage",iy:"embedded",VK:"leanback",g_:"previewpage",kX:"profilepage",eF:"unplugged",K9:"playlistoverview",zj9:"sponsorshipsoffer",kaL:"shortspage",C3:"handlesclaiming",H5:"immersivelivepage",tN:"creatormusic",UD:"immersivelivepreviewpage",G3:"admintoolyurt",mCC:"shortsaudiopivot",OV:"consumption",eT:"background_audio_playback"};var KZk=2592E3;var je;g.y1={STOP_EVENT_PROPAGATION:"html5-stop-propagation",IV_DRAWER_ENABLED:"ytp-iv-drawer-enabled",IV_DRAWER_OPEN:"ytp-iv-drawer-open",MAIN_VIDEO:"html5-main-video",VIDEO_CONTAINER:"html5-video-container",VIDEO_CONTAINER_TRANSITIONING:"html5-video-container-transitioning",HOUSE_BRAND:"house-brand"};je={RIGHT_CONTROLS_LEFT:"ytp-right-controls-left",RIGHT_CONTROLS_RIGHT:"ytp-right-controls-right"};var V$G={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var FZl={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},snd={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"},gSk={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var n5G={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var $qC;g.Qv=class{constructor(f,e=!1){this[Z[0]]=f;this[Z[14]]=e;this[Z[24]]=this[Z[20]]=this[Z[6]]=Z[12];this[Z[1]]={};this[Z[32]]=Z[12]}set(f,e){this[Z[1]][f]!==e&&(this[Z[1]][f]=e,this[Z[32]]=Z[12])}get(f){k_(63,this);return this[Z[1]][f]||null}Dw(){this[Z[32]]||(this[Z[32]]=Jg(24,this));return this[Z[32]]}clone(){const f=new g.Qv(this[Z[0]],this[Z[14]]);f[Z[6]]=this[Z[6]];f[Z[20]]=this[Z[20]];f[Z[24]]=this[Z[24]];f[Z[1]]=g.GL(this[Z[1]]);f[Z[32]]=this[Z[32]];return f}};$qC=[pFY];g.qi=class{constructor(f,e){this.id=f;this.Z_=e;this.captionTracks=[];this.J=this.V=null;this.xtags="";this.U=this.W=!1;this.C=null;this.G="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";f=this.Z_.id.split(".");f.length>1&&(this.W=f[1]==="2",this.U=f[1]==="4")}getLanguageInfo(){return this.Z_}getXtags(){if(!this.xtags){const f=this.id.split(";");f.length>1&&(this.xtags=f[1])}return this.xtags}toString(){return this.Z_.name}isAutoDubbed(){return this.Z_.getIsAutoDubbed()}}; g.qi.prototype.getLanguageInfo=g.qi.prototype.getLanguageInfo;g.qi.prototype.isAutoDubbed=g.qi.prototype.isAutoDubbed;var $q=class{constructor(f,e,B,n,r=0){this.G=f;this.C=e;this.J=B;this.reason=n;this.EA=r}equals(f){return this.G===f.G&&this.C===f.C&&this.J===f.J&&this.reason===f.reason&&(!fl||this.EA===f.EA)}isLocked(){return this.J&&!!this.G&&this.G===this.C}compose(f){if(f.J&&e3(f))return Z_;if(f.J||e3(this))return f;if(this.J||e3(f))return this;let e=this.G&&f.G?Math.max(this.G,f.G):this.G||f.G;const B=this.C&&f.C?Math.min(this.C,f.C):this.C||f.C;e=Math.min(e,B);let n=0;fl&&(n=this.EA!==0&&f.EA!==0?Math.min(this.EA, f.EA):this.EA===0?f.EA:this.EA);return fl&&e===this.G&&B===this.C&&n===this.EA||!fl&&e===this.G&&B===this.C?this:fl?new $q(e,B,!1,B===this.C&&n===this.EA?this.reason:f.reason,n):new $q(e,B,!1,B===this.C?this.reason:f.reason)}V(f){return!f.video||fl&&this.EA!==0&&this.EAf.V(r)),B=[],n={}; for(let r=0;rf.V(e))}getAvailableAudioTracks(){return this.audioTracks}C(){return!!this.G}};var ICm=new Set(["356"]),ESG=class extends g.$0{constructor(){super(...arguments);this.G=null;this.C=new Map}bY(){super.bY()}};var OQ=class{constructor(f,e,B,n,r,L,d,t,H){this.YA=f;this.startTime=e;this.duration=B;this.ingestionTime=n;this.sourceURL=r;this.b6=H;this.endTime=e+B;this.C=d||0;this.range=L||null;this.pending=t||!1;this.b6=H||null}};g.h9=class{constructor(){this.segments=[];this.G=null;this.W=!0;this.U=""}X(f){this.segments.push(f)}kZ(f){return!!this.J(f)}getDuration(f){return(f=this.J(f))?f.duration:0}N(f){return this.getDuration(f)}BC(){return 0}Ma(){return this.segments.length?this.segments[0].YA:-1}Lc(f){return(f=this.J(f))?f.ingestionTime:NaN}OE(){return this.segments.length?this.segments[this.segments.length-1].YA:-1}on(f){return this.OE()===f&&!this.W&&f>=0}Pp(){const f=this.segments[this.segments.length-1];return f?f.endTime: NaN}N0(){return this.segments[0].startTime}FK(){return this.segments.length}C(){return 0}hq(f){return(f=this.V(f))?f.YA:-1}K(f){return(f=this.J(f))?f.sourceURL:""}getStartTime(f){return(f=this.J(f))?f.startTime:0}Cp(f){return this.getStartTime(f)+this.getDuration(f)}isLoaded(){return this.segments.length>0}J(f){if(this.G&&this.G.YA===f)return this.G;f=g.ax(this.segments,new OQ(f,0,0,0,""),(e,B)=>e.YA-B.YA); return this.G=f>=0?this.segments[f]:null}V(f){if(this.G&&this.G.startTime<=f&&fe.startTime-B.startTime); return this.G=f>=0?this.segments[f]:this.segments[Math.max(0,-f-2)]}append(f){if(f.length)if(f=g.ke(f),this.segments.length){var e=this.segments.length?g.QG(this.segments).endTime:0,B=f[0].YA-this.OE();B>1&&r2(this.segments);B=B>0?0:-B+1;for(let n=B;n1?f=f.y$:(e=yw(e,nz(this,this.Mz(f,e),f)),f=Math.max(this.W,e.timedOut)+f.iq*(this.J-this.W)+.25*this.K,f=f>3?1E3*1.6**(f-3):0);return f===0?!0:this.Ed+f<(0,g.T)()}A(f,e){this.C.set(f,e);this.G.set(f,e);this.V&&this.V.set(f,e)}cM(f){return this.G.get(f)}gj(){return this.G.get("cpn")||""}xa(f,e){f.wM===this.C&&(this.C= QW(f,e));f.wM===this.V&&(this.V=QW(f,e))}Cq(){this.N=!0}dH(){return this.C!==this.V&&!this.U}};var Sp=class{constructor(f,e,B,n){this.initRange=B;this.indexRange=n;this.G=null;this.Ed=!1;this.BS=0;this.Cq=this.tA=this.N=null;this.info=e;this.vL=new o5k(f)}C(){return!!this.G&&this.index.isLoaded()}eI(){return!1}Fl(f){return[f]}WS(f){return[f]}};var dG=class{constructor(f,e){this.start=f;this.end=e;this.length=e-f+1}toString(){return this.start+"-"+(this.end==null?"":this.end)}C(){return this.end==null?{start:String(this.start)}:{start:String(this.start),end:String(this.end)}}};var Rr=class{constructor(f,e,B,n="",r,L,d,t,H,k,C,w=""){this.type=f;this.vS=e;this.range=B;this.source=n;this.BE=C;this.clipId=w;this.Ed=[];this.X="";this.YA=-1;this.A=0;this.X=n;this.YA=r>=0?r:-1;this.startTime=L||0;this.duration=d||0;this.C=t||0;this.G=H>=0?H:this.range?this.range.length:NaN;this.J=this.range?this.C+this.G===this.range.length:k===void 0?!!this.G:k;this.range?(this.V=this.startTime+this.duration*this.C/this.range.length,this.K=this.duration*this.G/this.range.length,this.W=this.V+ this.K):Gjl(this)}U(){return this.J&&this.vS.index.on(this.YA)}isEncrypted(){return this.vS.info.isEncrypted()}equals(f){return!(!f||f.vS!==this.vS||f.type!==this.type||(this.range&&f.range?f.range.start!==this.range.start||f.range.end!==this.range.end:f.range!==this.range)||f.YA!==this.YA||f.C!==this.C||f.G!==this.G)}N(){return this.type===4}zv(){return!!this.vS.info.video}Cq(){return this.YA}Pd(){const f=ZA(this);let e="";g.OM(f,(B,n)=>{e+=`${n}_${B}_`}); return e.slice(0,-1)}};var jf=class{constructor(f,e){this.T6=f;this.V=this.C=null;this.W=this.IM=NaN;this.Mz=this.requestId=null;this.aX={RVY:()=>this.range}; this.vL=f[0].vS.vL;this.G=e||"";this.T6[0].range&&this.T6[0].G>0&&(J$C(f)?(this.range=DG5(f),this.J=this.range.length):(this.range=this.T6[this.T6.length-1].range,this.J=Mak(f)))}zi(){return this.C?this.C.Dw():""}isDecorated(){return!!(this.C||this.V&&this.V.u$)}ut(){return wG(this.T6[0])}xa(f,e){this.vL.xa(f,e);if(this.C){this.C=QW(f,e);for(const B of["acpns","cpn","daistate","skipsq"])this.C["set"](B,null)}this.requestId=f.get("req_id")}};var $G=class extends Sp{constructor(f,e,B,n,r,L=0){super(f,e,n);this.MC=B;this.ZP=L;this.index=r||new g.h9}J(){return!1}K(){return!0}cS(){return!1}eI(){return!this.MC}X(){return new jf([new Rr(1,this,this.initRange,"getMetadataRequestInfo")],this.MC)}A(){return null}PS(f){this.V(f);return this.K()&&f.G&&!f.J?new jf([new Rr(f.type,f.vS,f.range,"liveGetNextRequestInfoBySegment",f.YA,f.startTime,f.duration,f.C+f.G,NaN,!0)],this.index.K(f.YA)):this.W(bJ(f),!1)}U(f,e=!1){f=this.index.hq(f);e&&(f=Math.min(this.index.OE(), f+1));return this.W(f,!0)}uY(f){uJ(f)}V(f){return f.G===0?!0:this.index.OE()>f.YA&&this.index.Ma()<=f.YA+1}update(f,e,B){this.index.append(f);iB5(this.index,B);f=this.index;f.W=e;f.U="update"}C(){return this.eI()?!0:super.C()}W(f,e){const B=this.index.K(f),n=this.index.getStartTime(f);let r=this.index.getDuration(f),L;e?r=L=0:L=this.info.EA>0?this.info.EA*r:1E3;return new jf([new Rr(3,this,void 0,"liveCreateRequestInfoForSegment",f,n,r,0,L,!e)],B)}Lq(){return this.eI()?0:this.initRange.length}Z9(){return!1}};var T3m=class{constructor(f,e,B,n,r){this.YA=f;this.startSecs=e;this.Kc=B;this.C=n||NaN;this.G=r||NaN}};var YG=class{constructor(){this.C=[];this.G=null;this.U=0;this.J=[];this.W=!1;this.X="";this.V=-1}update(f){var e=void 0;this.G&&(e=this.G);{const K=new YG;var B=Array.from(f.getElementsByTagName("S"));if(B.length){var n=+pz(f,"timescale")||1,r=(+B[0].getAttribute("t")||0)/n,L=+pz(f,"startNumber")||0;K.V=r;var d=e?e.startSecs+e.Kc:0,t=Date.parse(nUk(pz(f,"yt:segmentIngestTime")))/1E3;K.W=f.parentElement.tagName==="SegmentTemplate";K.W&&(K.X=pz(f,"media"));f=e?L-e.YA:1;K.U=f>0?0:-f+1;for(b of B){f= +b.getAttribute("d")/n;B=(+b.getAttribute("yt:sid")||0)/n;const Y=+b.getAttribute("r")||0;for(let l=0;l<=Y;l++){if(e&&L<=e.YA){L++;continue}var H=new T3m(L,d,f,t+B,r);K.C.push(H);b:{var k=b;var C=n,w=H.startSecs;H=k.getAttribute("yt:cuepointTimeOffset");var v=k.getAttribute("yt:cuepointDuration");if(!H||!v){k=null;break b}H=Number(H);w=-H/C+w;C=Number(v)/C;v=k.getAttribute("yt:cuepointContext")||null;const m=k.getAttribute("yt:cuepointIdentifier")||"";k=k.getAttribute("yt:cuepointEvent")||"";k=new ct(w, C,v,m,Qig[k]||"unknown",H)}k&&K.J.push(k);L++;d+=f;r+=f;t+=f+B}}K.C.length&&(K.G=g.QG(K.C))}var b=K}this.U=b.U;this.G=b.G||this.G;g.CF(this.C,b.C);g.CF(this.J,b.J);this.W=b.W;this.X=b.X;this.V===-1&&(this.V=b.getStreamTimeOffset())}getStreamTimeOffset(){return this.V===-1?0:this.V}};var D06=class{constructor(){this.V=[];this.C=null;this.G={};this.J={}}};var JyH=class extends g.h9{constructor({ZP:f=0,BB:e=!1,GM:B=0,Hs:n=0,sI:r=Infinity,PQ:L=0,dC:d=!1,nR:t=!1}={}){super();this.zf=this.oa=-1;this.JR=f;this.GM=B;this.BB=e;this.Hs=n;this.sI=r;this.PQ=L;((this.dC=d)||isFinite(r)&&this.sI>0)&&e&&yU&&(this.W=!1,this.U="postLive");this.nR=t}BC(){return this.JR}kZ(f,e){f=Aa(this,f);return f>=0&&(e||!this.segments[f].pending)}Ma(){return this.BB?this.segments.length?this.V(this.N0()).YA:-1:super.Ma()}N0(){if(this.dC)return 0;if(!this.BB)return super.N0();if(!this.segments.length)return 0; const f=Math.max(g.QG(this.segments).endTime-this.GM,0);return this.Hs>0&&this.V(f).YA0)return this.zf/1E3;if(!this.segments.length)return super.Pp();var f=this.OE();if(!this.BB||f<=this.segments[this.segments.length-1].YA)f=this.segments[this.segments.length-1];else{var e=this.segments[this.segments.length-1];f=new OQ(f,Math.max(0,e.startTime-(e.YA-f)*this.JR),this.JR,0,`sq/${f}`,void 0,void 0,!0)}return this.dC?Math.min(this.GM, f.endTime):f.endTime}FK(){return this.BB?this.segments.length?this.OE()-this.Ma()+1:0:super.FK()}OE(){let f=Math.min(this.sI,Math.max(super.OE(),this.oa));var e=this.GM*1E3;e=this.zf>0&&this.zf0&&this.oa>0&&!e&&(e=this.V(this.GM))&&(f=Math.min(e.YA-1,f));return f}gH(){return this.segments.length?this.segments[this.segments.length-1]:null}X(f){var e=Aa(this,f.YA);if(e>=0)this.segments[e]=f;else if(this.segments.splice(-(e+1),0,f),this.PQ&&f.YA%(300/this.JR)===0){var B=this.segments[0].YA, n=Math.floor(this.PQ/this.JR);f=f.YA-n;e=-(e+1)-n;e>0&&f>B&&(this.segments=this.segments.slice(e))}}Ed(f){f=Aa(this,f);f>=0&&this.segments.splice(f,1)}pg(){return this.oa}on(f){return yU?!this.W&&f>=0&&this.OE()<=f:super.on(f)}V(f){if(!this.BB)return super.V(f);if(!this.segments.length)return null;var e=this.segments[this.segments.length-1];if(f=e.endTime)e=e.YA+Math.floor((f- e.endTime)/this.JR+1);else{e=pF(this.segments,n=>f=n.endTime?1:0); if(e>=0)return this.segments[e];var B=-(e+1);e=this.segments[B-1];B=this.segments[B];e=Math.floor((f-e.endTime)/((B.startTime-e.endTime)/(B.YA-e.YA-1))+1)+e.YA}return this.J(e)}J(f){if(!this.BB)return super.J(f);if(!this.segments.length)return null;var e=Aa(this,f);if(e>=0)return this.segments[e];const B=-(e+1);e=this.JR;if(B===0)var n=Math.max(0,this.segments[0].startTime-(this.segments[0].YA-f)*e);else B===this.segments.length?(n=this.segments[this.segments.length-1],n=n.endTime+(f-n.YA-1)*e):(n= this.segments[B-1],e=this.segments[B],e=(e.startTime-n.endTime)/(e.YA-n.YA-1),n=n.endTime+(f-n.YA-1)*e);return new OQ(f,n,e,0,`sq/${f}`,void 0,void 0,!0)}},yU=!1;var j7G=class extends $G{constructor(f,e,B={}){super(f,e,"",void 0,void 0,B.ZP||0);this.index=new JyH(B)}cS(){return!0}C(){return!0}V(f){return this.K()&&f.G&&!f.J||!f.vS.index.on(f.YA)}X(){}U(f,e=!1){return typeof f!=="number"||isFinite(f)?super.U(f,e):new jf([new Rr(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.ZP,void 0,this.ZP*this.info.EA)],"")}W(f,e){if(this.index.kZ(f))return super.W(f,e);const B=this.index.getStartTime(f);let n=Math.round(this.ZP*this.info.EA),r=this.ZP;e&&(r= n=0);return new jf([new Rr(3,this,void 0,"mlLiveCreateReqInfoForSeg",f,B,r,void 0,n,!e)],f>=0?`sq/${f}`:"")}};var mLg=class extends Sp{constructor(f,e){super(f,e);f=this.index=new g.h9;f.W=!1;f.U="d"}J(){return!1}K(){return!1}cS(){return!1}X(){return new jf([new Rr(1,this,void 0,"otfInit")],"sq/0")}A(){return null}PS(f){this.V(f);return CAO(this,bJ(f),!1)}U(f,e=!1){f=this.index.hq(f);e&&(f=Math.min(this.index.OE(),f+1));return CAO(this,f,!0)}uY(f){f.info.type===1&&(this.G||(this.G=rR(f.G)),f.C&&f.C.uri==="http://youtube.com/streaming/otf/durations/112015"&&wlM(this,f.C))}V(f){return f.G===0?!0:this.index.OE()> f.YA&&this.index.Ma()<=f.YA+1}Lq(){return 0}Z9(){return!1}};var bS5,M0l,RR6,KAH,ZSO;g.or=class{constructor(f){this.tag=f}};bS5=new Map;M0l=class{constructor(){this.C=new Map;this.aX={KAC:()=>this.C}}}; RR6=class{constructor(){this.C=10;this.G=Date.now()}};KAH=new Map;ZSO=new M0l;var Fn=class{constructor(f,e){this.info=f;this.G=e;this.C=null;this.V=this.J=-1;this.timestampOffset=0;this.isLocked=this.X=!1;this.W=this.info.vS.eI()&&!this.info.C}U(f,e=!1,B=0){if(this.isLocked||f.isLocked||!Cz(this.info,f.info)||this.info.J)return null;if(B){if(this.G.totalLength+f.G.totalLength>B)return null}else if(e&&(e=this.G,B=f.G,e=!(B.C.length?Fxl(e,B.C[0]):1)),e)return null;e=new Rr(this.info.type,this.info.vS,this.info.range,this.info.X,this.info.YA,this.info.startTime,this.info.duration, this.info.C,this.info.G,this.info.J,this.info.BE,this.info.clipId);B=f.info;e.G+=B.G;e.range&&(e.K+=B.K);e.W=B.W;e.J=B.J;B=new bg;fe(B,this.G);fe(B,f.G);e=new Fn(e,B);e.C!=null&&f.C!=null&&g.Vj("dash",414627957,`merged slice emsg overridden; prev: ${e.C.Sr()} next: ${f.C.Sr()}`);e.C=f.C||this.C;e.J=this.J!==-1?this.J:f.J;e.V=this.V!==-1?this.V:f.V;return e}};g.EL=class{constructor(){this.count=0;this.G=1;this.J=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)}kZ(f){return f<=this.OE()}C(f){return this.offsets[f]}getStartTime(f){return this.startTicks[f]/this.G}Cp(f){return this.getStartTime(f)+this.getDuration(f)}Lc(){return NaN}getDuration(f){f=this.N(f);return f>=0?f/this.G:-1}N(f){return f+1=0}Pp(){return this.J?this.startTicks[this.count]/this.G:NaN}N0(){return 0}FK(){return this.count}K(){return""}hq(f){f=g.ax(this.startTicks.subarray(0,this.count),f*this.G);return f>=0?f:Math.max(0,-f-2)}isLoaded(){return this.OE()>=0}WK(f,e){if(f>=this.OE())return 0;let B=0;for(e=this.getStartTime(f)+e;fthis.getStartTime(f);f++)B=Math.max(B,j5H(this,f)/this.getDuration(f));return B}resize(f){f+=2;const e=this.offsets;this.offsets=new Float64Array(f+1);const B=this.startTicks;this.startTicks= new Float64Array(f+1);for(f=0;fthis.YU(r,L,d)}; this.index=new g.EL}X(f,e){var B=new Rr(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,e);const n=[new Rr(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,e),B];this.info.contentLength>0&&f&&(B=B.range.end+1,f=Math.min(f,this.info.contentLength-B),f>0&&n.push(new Rr(4,this,Hm(B,f),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)));return new jf(n)}uY(f){if(f.info.type===1){if(this.G)return;this.G=rR(f.G)}else if(f.info.type=== 2){if(this.W||this.index.OE()>=0)return;if(g.TF(this.info)){var e=this.index,B=g.lJ(f);f=f.info.range.start;var n=g.Vw(B,0,1936286840);B=CeC(n);e.G=B.timescale;var r=B.Xb;e.offsets[0]=B.bU+f+n.size;e.startTicks[0]=r;e.J=!0;var L=B.Qy.length;for(var d=0;d0&&B===L[0].Gi)for(B=0;B=e+B)break}n.length||(f=new g.Dj("b189619593",`${f}`,`${e}`,`${B}`),g.J(f));return new jf(n)}Fl(f){const e=this.WS(f.info),B=f.info.range.start+f.info.C,n=[];for(let r=0;r=this.index.C(B+1);)B++;return this.YU(B,e,f.G).T6}V(f){f.U();return this.C()?!0:f.range.end+1this.info.contentLength&&(e=new dG(e.start,this.info.contentLength-1)),new jf([new Rr(4,f.vS,e,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,f.clipId)]);f.type===4&&(f=this.WS(f),f=f[f.length-1]);let B=0;const n=f.range.start+f.C+f.G;f.type===3&&(f.U(),B=f.YA,n===f.range.end+1&&(B+=1));return this.YU(B,n,e)}PS(){return null}U(f,e=!1){f=this.index.hq(f);e&&(f=Math.min(this.index.OE(),f+1));return this.YU(f, this.index.C(f),0)}J(){return!0}K(){return!0}cS(){return!1}Lq(){return this.indexRange.length+this.initRange.length}Z9(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1}};var EU5=class{constructor(f,e,B,n="",r="",L=""){this.displayName=f;this.vssId=e;this.languageCode=B;this.kind=n;this.xtags=r;this.id=L}};var gU6={COLOR_PRIMARIES_BT709:"bt709",COLOR_PRIMARIES_BT2020:"bt2020",COLOR_PRIMARIES_UNKNOWN:null,COLOR_PRIMARIES_UNSPECIFIED:null},OSk={COLOR_TRANSFER_CHARACTERISTICS_BT709:"bt709",COLOR_TRANSFER_CHARACTERISTICS_BT2020_10:"bt2020",COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084:"smpte2084",COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67:"arib-std-b67",COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN:null,COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED:null};g.xG=class{constructor(f,e,B,n=!1){this.name=f;this.id=e;this.isDefault=B;this.isAutoDubbed=n}getName(){return this.name}getId(){return this.id}getIsDefault(){return this.isDefault}getIsAutoDubbed(){return this.isAutoDubbed}toString(){return this.name}};g.xG.prototype.getName=g.xG.prototype.getName;g.xG.prototype.getId=g.xG.prototype.getId;g.xG.prototype.getIsDefault=g.xG.prototype.getIsDefault;g.xG.prototype.getIsAutoDubbed=g.xG.prototype.getIsAutoDubbed;var uY0=/action_display_post/;g.Sf=class extends g.$v{constructor(f="",e=null,B=!1){super();this.sourceUrl=f;this.isLivePlayback=B;this.Z9=this.duration=0;this.isPremiere=this.dC=this.K=this.isLiveHeadPlayable=this.isLive=this.G=!1;this.sI=this.Hs=0;this.isOtf=this.sA=!1;this.Lq=(0,g.T)();this.Cq=Infinity;this.C={};this.J=new Map;this.state=this.QW=0;this.X=null;this.isManifestless=!1;this.eI=[];this.W=null;this.WS=0;this.U="";this.PS=NaN;this.Ei=this.GQ=this.timestampOffset=this.N=0;this.cP=this.By=NaN;this.fY=0;this.uY=this.A= !1;this.kA=[];this.qC={};this.tL=this.cS=NaN;this.aX={Ku9:n=>{Qj(this,n)}}; this.xA=e?.SI("html5_use_network_error_code_enums");CB5=!!e&&e.SI("html5_modern_vp9_mime_type");MQ=!!e?.SI("html5_enable_flush_during_seek")&&g.Cs();Ga=!!e?.SI("html5_enable_reset_audio_decoder")&&g.Cs()}isLoading(){return this.state===1}Ik(){return this.state===3}Fl(){return g.lH(this.C,f=>!!f.info.video&&f.info.video.qualityOrdinal>=2160)}V(){return g.lH(this.C,f=>!!f.info.contentProtection)}IA(f){var e=f.getElementsByTagName("Representation"); if(f.getElementsByTagName("SegmentList").length>0||f.getElementsByTagName("SegmentTemplate").length>0){this.sA=this.G=!0;this.X||(this.X=new D06);HSd(this.X,f);this.publish("refresh");for(f=0;f=0?w=ta(v):b=`${b}?range=${v}`}t.call(r,new OQ(H.YA,H.startSecs,H.Kc,H.C,b,w,H.G))}n=k}B.update(n,this.isLive,this.Z9)}kTO(this.X);return!0}this.duration=B_d(pz(f,"mediaPresentationDuration"));a:{for(d=0;d{})}}resume(){WAO(this)}zD(){if(this.isManifestless&&this.K&&yj(this))return yj(this); const f=this.C;let e=!1,B=NaN,n=NaN;for(const L in f){const d=f[L];var r=d.index;if(!r.isLoaded()||FH(d.info.mimeType))continue;d.Cq&&(e=!0);r=r.Pp();d.info.G8()&&(isNaN(B)||r0))return this.zD()-f}}f=this.C;for(const e in f){const B=f[e].index;if(B.isLoaded()&&!FH(f[e].info.mimeType))return B.N0()}return 0}getStreamTimeOffset(){return this.N}Lc(f){for(const e in this.C){const B= this.C[e].index;if(B.isLoaded()){const n=B.hq(f),r=B.Lc(n);if(r)return r+f-B.getStartTime(n)}}return NaN}Ch(){for(const f in this.C)this.C.hasOwnProperty(f)&&(this.C[f].G=null,this.C[f].Ed=!1)}};g.Sf.prototype.MC=eC(4);var CB5,MQ,Ga,du=null,tF=!!navigator.mediaCapabilities?.decodingInfo,iSY={commentary:1,alternate:2,dub:3,main:4};var CT=new Set,Hk=new Map;var v$m=class{constructor(f){this.V9=f;this.uC=this.Eu=this.WS=this.W=this.V=this.i$=this.Z9=this.Ed=!1;this.X=this.U=0;this.MC=!1;this.A=!0;this.Fl=!1;this.ej=0;this.uY=this.Lq=this.oF=this.eI=!1;this.G={};this.tL=this.xA=this.Q3=this.disableAv1=this.Cq=this.mS=this.kA=this.qC=this.C=this.K=!1;this.cS=0;this.lC=this.V9.Y("html5_disable_aac_preference");this.Yp=Infinity;this.yZ=0;this.G6=this.V9.wA();this.IA=this.V9.experiments.SI("html5_enable_vp9_fairplay");this.Wd=this.V9.Y("html5_force_av1_for_testing"); this.sE=this.V9.JE().C.jI(dYM);this.BS=g.tS(this.V9.experiments,"html5_av1_ordinal_cap");this.EE=this.V9.Y("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Mk=this.V9.Y("html5_account_onesie_format_selection_during_format_filter");this.EA=g.tS(this.V9.experiments,"html5_max_byterate");this.Ch=this.V9.Y("html5_enable_iamf_audio");this.PS=this.V9.experiments.SI("html5_allow_capability_merge");this.hE=this.V9.Y("html5_enable_encrypted_av1")}};var F5=class{constructor(f,e,B,n){this.flavor=f;this.keySystem=e;this.J=B;this.experiments=n;this.G={};this.OL=this.keySystemAccess=null;this.O8=this.lz=-1;this.OM=null;this.V=!!n&&n.SI("edge_nonprefixed_eme");n&&n.SI("html5_enable_vp9_fairplay")}clone(f){return new F5(this.flavor,f,this.J,this.experiments)}C(){return this.keySystem==="com.youtube.fairplay.sbdl"}xp(){return{flavor:this.flavor,keySystem:this.keySystem}}getInfo(){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}}},VZ={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.youtube.widevine.l3","com.widevine.alpha"]},jPd={widevine:"DRM_SYSTEM_WIDEVINE",fairplay:"DRM_SYSTEM_FAIRPLAY",playready:"DRM_SYSTEM_PLAYREADY"},GA5={widevine:1,fairplay:2,playready:3};var pyw=class extends g.$0{constructor(f,e,B,n=!1,r){super();this.V9=e;this.useCobaltWidevine=n;this.ri=r;this.G=[];this.J={};this.C={};this.callback=null;this.W=!1;this.V=[];this.initialize(f,!B)}initialize(f,e){for(const n of Object.keys(f)){var B=n;for(const r of f[B])if(r.contentProtection)for(const L of Object.keys(r.contentProtection)){B=L;let d=VZ[L];!d&&this.Y("html5_enable_vp9_fairplay")&&B==="fairplay"&&(d=["com.youtube.fairplay.sbdl"]);if(d)for(const t of d)this.J[t]=this.J[t]||new F5(B, t,r.contentProtection[B],this.V9.experiments),this.C[B]=this.C[B]||{},this.C[B][r.mimeType]=!0}}wx()&&(this.J["com.youtube.fairplay"]=new F5("fairplay","com.youtube.fairplay","",this.V9.experiments),this.Y("html5_enable_vp9_fairplay")||(this.C.fairplay=this.C.fairplay||{},this.C.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.C.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.G=Kml(e,this.useCobaltWidevine,this.Y("html5_enable_safari_fairplay")&&!0,this.Y("html5_enable_vp9_fairplay")).filter(n=> !!this.J[n])}Y(f){return this.V9.experiments.SI(f)}},lD;var x0d={"":"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"};var Wf5={OFF:"0",ON:"1",An:"2",lA:"3"};var si6={RED:"red",U0S:"white"};var XC5=class{constructor(f){f=Hb(f.serializedClientExperimentFlags??"","&");this.flags=new Map(Object.entries(f).map(([e,B])=>typeof B==="string"?[e,B]:[e,B[0]]))}jI(f){if(f.bd!==3)throw Error("WpccFlagRetriever only supports WPCC flags"); return OKw(this,f)}SI(f){return this.flags.get(`${f}`)==="true"}};var yy0=class{constructor(f,e,B){this.C=void 0;this.experimentIds=f?f.split(","):[];this.flags=Hb(e||"","&");f={};for(const n of this.experimentIds)f[n]=!0;this.experiments=f;B=new XC5(B);this.J=new A1l(B);this.G=new YnM(B)}JE(){return this.J}HC(){return this.G}SI(f){f=this.jI(f);JSON.stringify(f);return f==="true"}jI(f){return this.flags[f]}};var P9C=Promise.resolve(),Ind=f=>P9C.then(f),mJO=window.queueMicrotask?window.queueMicrotask.bind(window):Ind;var ehH=class{constructor(f,e,B=!1){this.experiments=f;this.Cq=e;this.cS=B;this.K=!!g.zO("cast.receiver.platform.canDisplayType");this.X={};this.N=!1;this.J=new Map;this.U=!0;this.C=this.G=!1;this.Ed=0;this.A=this.experiments.SI("html5_disable_vp9_encrypted");this.V=this.experiments.SI("html5_enable_encrypted_av1");f=g.zO("cast.receiver.platform.getValue");this.W=!this.K&&f&&f("max-video-resolution-vpx")||null;uW6(this);this.G=!!(wx()&&tl()>=21)}canPlayType(f,e){f=f.canPlayType?f.canPlayType(e):!1; ye?f=f||$0O[e]:UL===2.2?f=f||ic6[e]:kB()&&(f=f||fUO[e]);return!!f}isTypeSupported(f){return this.K?window.cast.receiver.platform.canDisplayType(f):IT(f)}},ic6={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},fUO={"application/x-mpegURL":"maybe"},$0O={"application/x-mpegURL":"maybe"};var ByY=class extends g.$v{constructor(){super();this.items={}}add(f,e){if(!this.items[f]&&(e.Ti||e.OeC||e.Vd)){var B=this.items;let n=e;Object.isFrozen&&!Object.isFrozen(e)&&(n=Object.create(e),Object.freeze(n));B[f]=n;this.publish("vast_info_card_add",f)}}remove(f){const e=this.get(f);delete this.items[f];return e}get(f){return this.items[f]||null}isEmpty(){return g.TL(this.items)}};var nMk=class{constructor(f,e){this.C=f;this.cipher=this.C.exports.AES128CTRCipher_create(e.byteOffset)}encrypt(f){this.C.exports.AES128CTRCipher_encrypt(this.cipher,f.byteOffset,f.byteLength);return f}HS(){return this.cipher===0}dispose(){this.C.exports.AES128CTRCipher_release(this.cipher);this.cipher=0}};var SXk=class{constructor(){this.G=this.Qt=0;this.C=Array.from({length:Qq.length}).fill(0)}Lj(f,e=1){this.Qt+=e;this.G+=f;f/=e;for(let B=0;BL.apply(t,[C].concat(d)))}}}}N2(){return new LYg}US(f,e,B=1){e instanceof LYg&&(E$M(this,f,(0,g.T)()-e.startTimeMs,B),e.C=!0)}LP(f,e){const B=(0,g.T)(); e=e();g$5(this,e,f,B)}AT(){const f={};for(const B in this.C){if(!this.C.hasOwnProperty(B))continue;a:{var e=this.C[B];if(e.Qt===0){e=null;break a}let n=Math.ceil(e.Qt).toFixed(0)+"."+e.G.toFixed(0);for(let r=0;r0)n+="."+Qq[r].toFixed(0)+"_"+e.C[r].toFixed(0);else break;e=n}e&&(f[B]=e)}this.C=new rmM;return f}toString(){return""}};var T3=new class{isActive(){return!1}rd(){}N2(){}US(){}LP(f,e){e()}AT(){return{}}toString(){return""}},tPC=!!+Bb("html5_enable_profiler"),HWw=!!+Bb("html5_onesie_enable_profiler"),D$=tPC||HWw?new d$5:T3,nZm=tPC?D$:T3,gu=HWw?D$:T3;var kMM=class{emscripten_notify_memory_growth(){}},Cfl=class{constructor(){this.proc_exit=()=>{}; this.fd_write=(f,e,B)=>{if(!this.exports)return 1;f=new Uint32Array(this.exports.memory.buffer,e,B*2);e=[];for(let r=0;rr+L.length,0)}}},JQl=class{constructor(){this.env=new kMM; this.wasi_snapshot_preview1=new Cfl}};var EC=class{constructor(f,e,B){this.instance=f;this.C=B;this.exports=this.instance.exports;e.wasi_snapshot_preview1.exports=this.exports;f=Math.floor(Math.random()*256);e=Math.floor(Math.random()*256);B=0;try{B=this.exports.malloc(16);(new Uint8Array(this.exports.memory.buffer,B,16)).fill(f);if(this.exports.sentinel(B,16,e)!==e*16%256)throw"wasm.wm.vi";const n=new Uint8Array(this.exports.memory.buffer,B,16);for(let r=0;r<16;r++)if(n[r]!==(f+e)%256)throw`wasm.wm.vi${r}`;}finally{B!==0&&this.exports.free(B)}}malloc(f){return this.exports.malloc(f)}free(f){this.exports.free(f)}realloc(f, e){return this.exports.realloc(f,e)}QJ(f){var e=this.malloc(f.byteLength);e=new Uint8Array(this.exports.memory.buffer,e,f.byteLength);e.set(f);return e}yB(f){const e=f.slice();f.buffer===this.exports.memory.buffer&&this.free(f.byteOffset);return e}},xJO=new class{constructor(){this.C="WebAssembly"in window}},SK="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);gu.rd(EC,{QJ:f=>({profile:"copyj2w",Qt:f===void 0?0:Math.ceil(f.byteLength/16)}), yB:f=>({profile:"copyw2j",Qt:f===void 0?0:Math.ceil(f.byteLength/16)})});var wvm=class{constructor(f,e,B){this.C=f;this.V=!1;e=this.C.QJ(e);this.G=new nMk(f,e);this.C.free(e.byteOffset);B&&(this.J=this.C.QJ(B))}encrypt(f,e){return sRC(this,f,e,!1).X9}HS(){return this.V}dispose(){this.HS()||(g.PT(this.G),this.J&&this.C.free(this.J.byteOffset),this.V=!0)}};var vM5=class{constructor(f,e,B){this.C=new wvm(f,e,B)}encrypt(f,e){try{return this.C.encrypt(f,e)}catch(B){VL(B,"wasm ocwce"),g.Yv(B)}}G(f,e){try{const B=sRC(this.C,f,e,!0);return{X9:B.X9,signature:B.signature}}catch(B){VL(B,"wasm ocwceas"),g.Yv(B)}}HS(){return this.C.HS()}dispose(){this.C.dispose()}};var bW5=class extends g.$0{constructor(f,e,B){super();this.encryptedClientKey=e;this.X=B;this.G=new Uint8Array(f.buffer,0,16);this.J=new Uint8Array(f.buffer,16)}U(f){this.C=new vM5(f,this.G,this.J);g.A(this,this.C)}};var ZW5=class extends g.$0{constructor(f,e){super();if(!e&&f)try{e=JSON.parse(f)}catch{}if(e){f=e.clientKey?Tf(e.clientKey):null;var B=e.encryptedClientKey?Tf(e.encryptedClientKey):null,n=e.keyExpiresInSeconds?Number(e.keyExpiresInSeconds)*1E3+(0,g.T)():null;f&&B&&n&&(this.C=new bW5(f,B,n),g.A(this,this.C));e.onesieUstreamerConfig&&(this.onesieUstreamerConfig=Tf(e.onesieUstreamerConfig)||void 0);this.baseUrl=e.baseUrl}}};var RhM=class extends g.$0{constructor(){super();this.values={};this.Kg={};this.G={};this.J=this.C=0;this.V=new g.T6(()=>{yQl(this)},1E4); g.A(this,this.V)}};var KY0="blogger discover-ads ads-preview ads-fe gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),$JY={OP:"caoe",qI:"capsv",LX:"cbrand",pX:"cbr",Pa:"cbrver",Xk:"cchip",Fk:"ccappver",D8:"ccrv",kT:"cfrmver",Xs:"c",wB:"cver",f3:"ctheme",B5:"cplayer",Sc:"cmodel",S1:"cnetwork",sZ:"cos",OS_VERSION:"cosver",BW:"cplatform",yL9:"crqyear"},q2d=class extends g.$0{constructor(f,e,B,n){super();this.webPlayerContextConfig=e; this.BJ=n;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.jX=this.tL=this.Wd=this.s3=this.userDisplayName=this.userDisplayImage=this.pz="";this.C={};this.IA={};this.controlsType="0";this.Rd=NaN;this.MC=!1;this.Qr=(0,g.T)();this.IR=this.xA=0;this.fA=this.M6=!1;this.GJ=!0;this.preferGapless=this.YE=this.Cc=this.J=this.hF=!1;this.TL=[];this.qj=!1;this.C$=0;f=f?g.GL(f):{};e&&e.csiPageType&&(this.csiPageType=e.csiPageType);e&&e.csiServiceName&&(this.csiServiceName=e.csiServiceName);e&&e.preferGapless&& (this.preferGapless=e.preferGapless);this.experiments=new yy0(e?e.serializedExperimentIds:f.fexp,e?e.serializedExperimentFlags:f.fflags,e??{});this.forcedExperiments=e?e.serializedForcedExperimentIds:Ov("",f.forced_experiments)||void 0;this.cspNonce=e?.cspNonce?e.cspNonce:Ov("",f.csp_nonce);this.Y("web_player_deprecated_uvr_killswitch");try{var r=document.location.toString()}catch(v){r=""}this.Ys=r;this.ancestorOrigins=(n=window.location.ancestorOrigins)?Array.from(n):[];this.V=YB(!1,e?e.isEmbed: f.is_embed);if(e&&e.device){if(n=e.device,n.androidOsExperience&&(this.C.caoe=`${n.androidOsExperience}`),n.androidPlayServicesVersion&&(this.C.capsv=`${n.androidPlayServicesVersion}`),n.brand&&(this.C.cbrand=n.brand),n.browser&&(this.C.cbr=n.browser),n.browserVersion&&(this.C.cbrver=n.browserVersion),n.cobaltReleaseVehicle&&(this.C.ccrv=`${n.cobaltReleaseVehicle}`),this.C.c=n.interfaceName||"WEB",this.C.cver=n.interfaceVersion||"html5",n.interfaceTheme&&(this.C.ctheme=n.interfaceTheme),this.C.cplayer= n.interfacePlayerType||"UNIPLAYER",n.model&&(this.C.cmodel=n.model),n.network&&(this.C.cnetwork=n.network),n.os&&(this.C.cos=n.os),n.osVersion&&(this.C.cosver=n.osVersion),n.platform&&(this.C.cplatform=n.platform),r=UC(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),r==="all"||r==="once")n.chipset&&(this.IA.cchip=n.chipset),n.cobaltAppVersion&&(this.IA.ccappver=n.cobaltAppVersion),n.firmwareVersion&&(this.IA.cfrmver=n.firmwareVersion),n.deviceYear&&(this.IA.crqyear=n.deviceYear)}else this.C.c= f.c||"web",this.C.cver=f.cver||"html5",this.C.cplayer="UNIPLAYER";this.loaderUrl=e?this.V||PB5(this)&&e.loaderUrl?e.loaderUrl||"":this.Ys:this.V||PB5(this)&&f.loaderUrl?Ov("",f.loaderUrl):this.Ys;this.V&&g.qH("yt.embedded_player.embed_url",this.loaderUrl);this.uY=qy()||aB();this.K=La(this.loaderUrl,Pkd)||!1;n=this.loaderUrl;this.q$=rE(La(n,yPG),n,!1,"Trusted Ad Domain URL");this.Yp=YB(!1,f.privembed);this.protocol=this.Ys.indexOf("http:")===0?"http":"https";this.vE=BFw((e?e.customBaseYoutubeUrl:f.BASE_YT_URL)|| "")||BFw(this.Ys)||`${this.protocol}://www.youtube.com/`;n=e?e.eventLabel:f.el;r="detailpage";n==="adunit"?r=this.V?"embedded":"detailpage":n==="embedded"||this.K?r=Al(r,n,hJw):n&&(r="embedded");this.Cq=r;Unm();n=null;r=e?e.playerStyle:f.ps;const L=g.eB(KY0,r);!r||L&&!this.K||(n=r);this.playerStyle=n;this.U=g.eB(KY0,this.playerStyle);this.houseBrandUserStatus=e?.houseBrandUserStatus;this.A=this.U&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";this.l_=!this.A;this.Lq=YB(!1,f.disableplaybackui); this.disablePaidContentOverlay=YB(!1,e?.disablePaidContentOverlay);this.disableSeek=YB(!1,e?.disableSeek);this.enableSpeedOptions=e?.enableSpeedOptions||(XN().defaultPlaybackRate?m1||g.zw||bD?g.wu&&cZ("20")||g.PP&&cZ("4")||g.dC&&cZ("11")||Zs():!(g.dC&&!g.H1("chrome")||m1||g.H1("android")||g.H1("silk")):!1);this.DO=YB(!1,f.enable_faster_speeds);this.supportsVarispeedExtendedFeatures=e?.supportsVarispeedExtendedFeatures??!1;this.G=YB(this.playerStyle==="blazer",f.is_html5_mobile_device||e&&e.isMobileDevice); this.On=this.Y("mweb_allow_background_playback")?!1:this.G&&!this.U;this.WS=iy();this.EX=g.kO;this.nA=!!e?.embedsHostFlags?.optOutApiDeprecation;var d;e?e.hideInfo!==void 0&&(d=!e.hideInfo):d=f.showinfo;this.HB=g.XY(this)&&!this.nA||YB(!Gf(this)&&!xL(this)&&!this.U,d);this.g8=e?!!e.mobileIphoneSupportsInlinePlayback:YB(!1,f.playsinline);d=this.G&&HS&&UL!=null&&UL>0&&UL<=2.3;n=e?e.useNativeControls:f.use_native_controls;this.X=g.XY(this)&&this.G;r=this.G&&!this.X;n=g.JF(this)||!d&&YB(r,n)?"3":"1"; this.disableOrganicUi=!!e?.disableOrganicUi;r=e?e.controlsType:f.controls;this.controlsType=this.disableOrganicUi||r==="0"||r===0?"0":n;this.S6=this.G;this.controlsType==="1"&&(this.S6||Al("2",e?e.autohide:f.autohide,Wf5));this.color=Al("red",e?e.progressBarColor:f.color,si6);this.O1=this.controlsType==="3";this.G6=!this.V;this.zQ=(n=!this.G6&&!xL(this)&&!this.A&&!this.U&&!Gf(this))&&!this.O1&&this.controlsType==="1";this.mS=g.Ms(this)&&n&&this.controlsType==="0"&&!this.zQ&&!e?.embedsEnableEmc3ds; this.X1=this.oo=d;this.uC=(this.controlsType==="3"||this.G||YB(!1,f.use_media_volume))&&!this.X;this.Ia=RB&&!g.pH(601)?!1:!0;this.Bz=this.V||!1;this.P4=xL(this)?"":(this.loaderUrl||f.post_message_origin||"").substring(0,128);this.widgetReferrer=Ov("",e?e.widgetReferrer:f.widget_referrer);var t;e?e.disableCastApi&&(t=!1):t=f.enablecastapi;t=!this.K||YB(!0,t);d=!0;e&&e.disableMdxCast&&(d=!1);this.Aq=this.Y("enable_cast_for_web_unplugged")&&g.DH(this)&&d||g.TT(this)&&d||t&&d&&this.controlsType==="1"&& !this.G&&(xL(this)||g.Ms(this)||g.Wk(this));this.Yr=!!window.document.pictureInPictureEnabled||$k();t=e?!!e.supportsAutoplayOverride:YB(!1,f.autoplayoverride);this.K5=!(this.G&&!g.XY(this))&&!g.H1("nintendo wiiu")||t;this.E2=(e?!!e.enableMutedAutoplay:YB(!1,f.mutedautoplay))&&!1;t=(xL(this)||Gf(this))&&this.playerStyle==="blazer";this.xI=e?!!e.disableFullscreen:!YB(!0,f.fs);d=g.uz(g.sC(this))&&g.XY(this);this.qC=!this.xI&&(t||g.S4())&&!d;this.I5=this.Y("html5_picture_in_picture_logging_onresize"); this.Tp=g.tS(this.experiments,"html5_picture_in_picture_logging_onresize_ratio")??.33;this.KA=this.Y("html5_picture_in_picture_blocking_onresize");this.Fo=this.Y("html5_picture_in_picture_blocking_ontimeupdate");this.jJ=this.Y("html5_picture_in_picture_blocking_document_fullscreen");this.DP=this.Y("html5_picture_in_picture_blocking_standard_api");t=kB()&&cZ(58)&&!aB();d=ye||typeof MediaSource==="undefined";this.sE=this.Y("uniplayer_block_pip")&&(t||d)||this.KA||this.Fo||this.DP;t=g.XY(this)&&!this.nA; var H;e?e.disableRelatedVideos!==void 0&&(H=!e.disableRelatedVideos):H=f.rel;this.Mk=t||YB(!this.U,H);this.U$=YB(!1,e?e.enableContentOwnerRelatedVideos:f.co_rel);this.N=aB()&&UL>0&&UL<=4.4?"_top":"_blank";this.y8=g.Wk(this);this.F6=YB(this.playerStyle==="blazer",e?e.enableCsiLogging:f.enablecsi);switch(this.playerStyle){case "blogger":H="bl";break;case "discover-ads":H="dd";break;case "gmail":H="gm";break;case "gac":H="ga";break;case "ads-preview":H="ap";break;case "ads-fe":H="adfe";break;case "books":H= "gb";break;case "docs":case "flix":H="gd";break;case "duo":H="gu";break;case "google-live":H="gl";break;case "google-one":H="go";break;case "play":case "play-ads":H="gp";break;case "chat":H="hc";break;case "hangouts-meet":H="hm";break;case "photos-edu":case "picasaweb":H="pw";break;default:H="yt"}this.Ed=H;this.cS=Ov("",e?e.authorizedUserIndex:f.authuser);this.Ch=g.XY(this)&&(this.Yp||!B1()||this.uY);var k;e?e.disableWatchLater!==void 0&&(k=!e.disableWatchLater):k=f.showwatchlater;this.hE=((H=!this.Ch)|| !!this.cS&&H)&&YB(!this.A,this.K?k:void 0);this.UE=e?e.isMobileDevice||!!e.disableKeyboardControls:YB(!1,f.disablekb);this.loop=YB(!1,f.loop);this.pageId=Ov("",e?e.initialDelegatedSessionId:f.pageid);this.Hl=YB(!0,f.canplaylive);this.Go=this.experiments.SI("html5_lr_overwrite_default_audio_quality_setting")?1:2;this.Tf=YB(!1,f.livemonitor);this.disableSharing=YB(this.U,e?e.disableSharing:f.ss);(k=e&&this.Y("fill_video_container_size_override_from_wpcc")?e.videoContainerOverride:f.video_container_override)? (H=k.split("x"),H.length!==2?k=null:(k=Number(H[0]),H=Number(H[1]),k=isNaN(k)||isNaN(H)||k*H<=0?null:new g.uN(k,H))):k=null;this.At=k;this.mute=e?!!e.startMuted:YB(!1,f.mute);this.storeUserVolume=!this.mute&&YB(this.controlsType!=="0",e?e.storeUserVolume:f.store_user_volume);k=e?e.annotationsLoadPolicy:f.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:Al(void 0,k,t9);this.captionsLanguagePreference=e?e.captionsLanguagePreference||"":Ov("",f.cc_lang_pref);k=Al(2,e?e.captionsLanguageLoadPolicy: f.cc_load_policy,t9);this.controlsType==="3"&&k===2&&(k=3);this.Dk=k;this.lC=e?e.hl||"en_US":Ov("en_US",f.hl);this.region=e?e.contentRegion||"US":Ov("US",f.cr);this.hostLanguage=e?e.hostLanguage||"en":Ov("en",f.host_language);this.Ks=!this.Yp&&Math.random()'}supportsGaplessAudio(){return g.PP&& !ye&&dx()>=74||g.wu&&g.pH(68)?!0:!1}supportsGaplessShorts(){return!this.Y("html5_enable_short_gapless")||this.uY||g.oN?!1:!0}getPlayerType(){return this.C.cplayer}wA(){return this.Cc}l8(){return this.V&&this.Y("embeds_enable_innertube_store")}},n3g=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],I7g=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"], e20=[19];var tGw={["140"]:{numChannels:2},["141"]:{numChannels:2},["251"]:{audioSampleRate:48E3,numChannels:2},["774"]:{audioSampleRate:48E3,numChannels:2},["380"]:{numChannels:6},["328"]:{numChannels:6},["773"]:{}},LyY={["1"]:'video/mp4; codecs="av01.0.08M.08"',["1h"]:'video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',["1e"]:'video/mp4; codecs="av01.0.08M.08"',["9"]:'video/webm; codecs="vp9"',["("]:'video/webm; codecs="vp9"',["9h"]:'video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',h:'video/mp4; codecs="avc1.64001e"', H:'video/mp4; codecs="avc1.64001e"',o:'audio/webm; codecs="opus"',a:'audio/mp4; codecs="mp4a.40.2"',ah:'audio/mp4; codecs="mp4a.40.2"',mac3:'audio/mp4; codecs="ac-3"; channels=6',meac3:'audio/mp4; codecs="ec-3"; channels=6',i:'audio/mp4; codecs="iamf.001.001.Opus"'},d66={["337"]:{width:3840,height:2160,bitrate:3E7,fps:30},["336"]:{width:2560,height:1440,bitrate:15E6,fps:30},["335"]:{width:1920,height:1080,bitrate:75E5,fps:30},["702"]:{width:7680,height:4320,bitrate:4E7,fps:60},["701"]:{width:3840, height:2160,bitrate:2E7,fps:60},["700"]:{width:2560,height:1440,bitrate:1E7,fps:60},["412"]:{width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},["359"]:{width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},["411"]:{width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},["410"]:{width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},["409"]:{width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"}, ["360"]:{width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},["358"]:{width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},["357"]:{width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},["274"]:{width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},["315"]:{width:3840,height:2160,bitrate:2E7,fps:60},["308"]:{width:2560,height:1440,bitrate:1E7,fps:60},["303"]:{width:1920,height:1080,bitrate:5E6,fps:60},["302"]:{width:1280, height:720,bitrate:25E5,fps:60},["299"]:{width:1920,height:1080,bitrate:75E5,fps:60},["298"]:{width:1280,height:720,bitrate:35E5,fps:60},["571"]:{width:7680,height:4320,bitrate:3E7,fps:60},["401"]:{width:3840,height:2160,bitrate:15E6,fps:60},["400"]:{width:2560,height:1440,bitrate:75E5,fps:60},["399"]:{width:1920,height:1080,bitrate:2E6,fps:60},["398"]:{width:1280,height:720,bitrate:1E6,fps:60},["397"]:{width:854,height:480,bitrate:4E5,fps:30},["396"]:{width:640,height:360,bitrate:25E4,fps:30},["787"]:{width:1080, height:608,bitrate:2E5,fps:30},["788"]:{width:1080,height:608,bitrate:4E5,fps:30},["572"]:{width:7680,height:4320,bitrate:3E7,fps:60},["555"]:{width:3840,height:2160,bitrate:15E6,fps:60},["554"]:{width:2560,height:1440,bitrate:75E5,fps:60},["553"]:{width:1920,height:1080,bitrate:2E6,fps:60},["552"]:{width:1280,height:720,bitrate:1E6,fps:60},["551"]:{width:854,height:480,bitrate:4E5,fps:30},["550"]:{width:640,height:360,bitrate:25E4,fps:30},["313"]:{width:3840,height:2160,bitrate:8E6,fps:30},["271"]:{width:2560, height:1440,bitrate:4E6,fps:30},["248"]:{width:1920,height:1080,bitrate:2E6,fps:30},["247"]:{width:1280,height:720,bitrate:15E5,fps:30},["244"]:{width:854,height:480,bitrate:52E4,fps:30},["243"]:{width:640,height:360,bitrate:28E4,fps:30},["137"]:{width:1920,height:1080,bitrate:4E6,fps:30},["136"]:{width:1280,height:720,bitrate:3E6,fps:30},["135"]:{width:854,height:480,bitrate:1E6,fps:30},["385"]:{width:1920,height:1080,bitrate:6503313,fps:60},["376"]:{width:1280,height:720,bitrate:5706960,fps:60}, ["384"]:{width:1280,height:720,bitrate:3660979,fps:60},["225"]:{width:1280,height:720,bitrate:5805E3,fps:30},["224"]:{width:1280,height:720,bitrate:453E4,fps:30},["145"]:{width:1280,height:720,bitrate:2682052,fps:30}};var J9=class{constructor(f){this.C=f}getInfo(){return this.C}G(){return null}W(){var f=this.G();return f?(f=g.vb(f.vL),Number(f.expire)):NaN}V(){}getHeight(){return this.C.video.height}};var kUY=class{constructor(f){this.itag=f.itag;this.url=f.url;this.codecs=f.codecs;this.width=f.width;this.height=f.height;this.fps=f.fps;this.bitrate=f.bitrate;this.G=f.audioItag?.split(",")||[];this.m4=f.m4;this.contentProtection=f.contentProtection||"";this.Z_=f.Z_;this.audioChannels=f.audioChannels;this.C=""}};var pK6=class{constructor(f,e,B,n,r){this.J=f;this.G=e;this.W=B;this.cpn=n;this.U=r;this.V=0;this.C=""}build(){v3Y(this);const f=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],e={};a:if(this.C)var B=this.C;else{B="";for(var n of this.J)if(n.Z_){if(n.Z_.getIsDefault()){B=n.Z_.getId();break a}B||(B=n.Z_.getId())}}for(var r of this.J)if(this.U||!r.Z_||r.Z_.getId()===B)e[r.itag]||(e[r.itag]=[]),e[r.itag].push(r);for(var L of this.G)if(r=e[L.C])for(var d of r){r=f;B=r.push;n="#EXT-X-MEDIA:TYPE=AUDIO,";let C= "YES";var t="audio";if(d.Z_){t=d.Z_;var H=t.getId().split(".")[0];H&&(n+=`LANGUAGE="${H}",`);(this.C?this.C===t.getId():t.getIsDefault())||(C="NO");t=t.getName()}H="";L!==null&&(H=L.itag.toString());H=K3(this,d.url,H);n=n+`NAME="${t}",DEFAULT=${C},AUTOSELECT=YES,`+`GROUP-ID="${bJG(d,L)}",URI="${H}"`;B.call(r,n)}for(var k of this.W)L=zhY,L=(d=k.Z_)?'#EXT-X-MEDIA:URI="'+K3(this,k.url)+'",TYPE=SUBTITLES,GROUP-ID="'+L+'",LANGUAGE="'+d.getId()+'",NAME="'+d.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0, L&&f.push(L);k=this.W.length>0?zhY:void 0;for(const C of this.G)d=e[C.C],d?.length>0&&(L=C,d=d[0],d=`#EXT-X-STREAM-INF:BANDWIDTH=${L.bitrate+d.bitrate},CODECS="${L.codecs},${d.codecs}",RESOLUTION=${L.width}x${L.height},AUDIO="${bJG(d,L)}",`+(k?'SUBTITLES="'+k+'",':"")+"CLOSED-CAPTIONS=NONE",L.fps>1&&(d+=`,FRAME-RATE=${L.fps}`),L.m4&&(d+=`,VIDEO-RANGE=${L.m4}`),f.push(d),f.push(K3(this,C.url,"")));return f.join("\n")}},zhY="text";var cHG=class extends J9{constructor(f,e,B){super(f);this.J=e;this.expiration=B;this.vL=null}W(){return this.expiration}G(){if(!this.vL||this.vL.HS()){var f=this.J.build();f="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(f);this.vL=new Bq(f)}return this.vL}};var WL6=class extends J9{constructor(f,e){super(f);this.J=e}G(){return new Bq(this.J.Dw())}V(){this.J=J5(this.J)}};var AH5=class extends J9{constructor(f,e){super(f);this.J=e}G(){return new Bq(this.J)}};var o3O={PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM:"mrm.blocked",PLAYABILITY_ERROR_CODE_PERMISSION_DENIED:"auth",PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED:"embedder.identity.denied",PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER:"embedder.identity.missing.referrer"};var u4O=class{constructor(f){if(f=f.commonConfig)this.url=f.url,this.urlQueryOverride=f.urlQueryOverride,f.ustreamerConfig&&(this.u8=Tf(f.ustreamerConfig)||void 0)}};g.op=class{constructor(f={}){this.languageCode=f.languageCode||"";this.languageName=f.languageName||null;this.kind=f.kind||"";this.name=f.name===void 0?null:f.name;this.displayName=f.displayName||null;this.id=f.id||null;this.C=f.is_servable||!1;this.isTranslateable=f.is_translateable||!1;this.url=f.url||null;this.vssId=f.vss_id||"";this.isDefault=f.is_default||!1;this.translationLanguage=f.translationLanguage||null;this.xtags=f.xtags||"";this.captionId=f.captionId||""}getId(){return this.id}getName(){return this.name}isServable(){return this.C}Dw(){return this.url}getXtags(){return this.xtags}toString(){return this.languageCode+ ": "+g.zH(this)+" - "+this.vssId+" - "+(this.captionId||"")}equals(f){return f?this.toString()===f.toString():!1}H4(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)}};var U6d={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},NTw={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},h25=/^(\d*)_((\d*)_?(\d*))$/;var E3w={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},QMC={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var D60={ALWAYS:1,BY_REQUEST:3,UNKNOWN:void 0},R9w={MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN:"UNKNOWN",MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL:"NORMAL",MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW:"LOW",MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW:"ULTRALOW"};var V0C; V0C=function(f){const e=Object.keys(f),B={};for(let L=0;L{const B={};e=[g.Jn(e.objectStore("index"),{},n=>{B[n.cursor.key]=n.getValue();return g.MM(n)}), o1G(e.objectStore("media")),o1G(e.objectStore("captions"))];return g.FD.all(e).then(([,n,r])=>({index:B,media:FE5(n||[]),captions:r}))})});var aUM=class extends g.$v{constructor(){super();this.C=null;this.J=new FVC;this.C=null;this.U=new Set;this.crossOrigin=""}bY(){this.C&&(this.C=this.C.onload=null);super.bY()}};g.Mh=class{constructor(f,e,B,n){this.level=f;this.Ed=e;this.loaded=new Set;this.level=f;this.Ed=e;f=B.split("#");this.width=Math.floor(Number(f[0]));this.height=Math.floor(Number(f[1]));this.frameCount=Math.floor(Number(f[2]));this.columns=Math.floor(Number(f[3]));this.rows=Math.floor(Number(f[4]));this.C=Math.floor(Number(f[5]));this.K=f[6];this.signature=f[7];this.videoLength=n}getHeight(){return this.height}W(){return this.frameCount}isDefault(){return this.K.indexOf("default")!==-1}isLoaded(f){return this.loaded.has(f)}Dw(f){let e= this.Ed;e=e.replace("$N",this.K);e=e.replace("$L",this.level.toString());e=e.replace("$M",f.toString());this.signature&&(e=g.vT(e,{sigh:this.signature}));return t0(e)}V(f){const e=this.W()-1;return g.ch(this.C===0?Math.round(f*this.frameCount/this.videoLength):Math.round(f*1E3/this.C),0,e)}G(){return this.frameCount-1}U(){return this.frameCount?0:-1}X(){}};g.Mh.prototype.N=eC(5);var G3=class extends aUM{constructor(f,e,B=!1,n=!1){super();this.isLive=B;this.X=!!n;this.levels=this.G(f,e);this.V=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}G(f,e){const B=[];f=f.split("|");const n=f[0];for(let r=1;rn-e?-1:f}G(){return this.J.OE()}U(){return this.J.Ma()}X(f){this.J=f}};var cmO=class extends G3{constructor(f,e,B,n=!1){super(f,0,e,!!n);for(f=0;f{this.setData(B)}, Kl:()=>{this.Kl()}, CR:B=>{this.CR(B)}}; this.IA=this.Y("web_new_autonav_countdown");this.zt=this.Y("web_new_big_thumbnail_endscreen");this.V9.gT&&(this.A=this.V9.gT);this.setData(e);this.s3=new ESG;g.A(this,this.s3)}setData(f){f=f||{};var e=f.errordetail;e!=null&&(this.errorDetail=e);e=f.errorcode;e!=null?this.errorCode=e:f.status==="fail"&&(this.errorCode="auth");e=f.reason;e!=null&&(this.errorReason=e);e=f.subreason;e!=null&&(this.YZ=e);this.clientPlaybackNonce||(this.clientPlaybackNonce=f.cpn??(this.V9.wA()?"r"+g.HR(15):g.HR(16)),this.DP?.clear()); this.Tf=YB(this.V9.Tf,f.livemonitor);y0m(this,f);if(e=f.raw_player_response)this.fQ=e;else{var B=f.player_response;B&&(e=JSON.parse(B))}e&&(this.playerResponse=e);if(this.playerResponse){(e=this.playerResponse.annotations)&&JH6(this,e);(e=this.playerResponse.attestation)&&MG5(this,e);if(e=this.playerResponse.cotn)this.cotn=e;(e=this.playerResponse.heartbeatParams)&&sMg(this,e);(e=this.playerResponse.messages)&&IiO(this,e);(e=this.playerResponse.overlay)&&BEO(this,e);if(e=this.playerResponse.playabilityStatus)nk6(this, e),(B=e.errorScreen)&&Za6(this,B);(B=this.playerResponse.playbackTracking)&&LE6(this,B,f);var n=this.playerResponse.playerCueRanges;n&&n.length>0&&(this.cueRanges=n);(n=this.playerResponse.playerCueRangeSet)&&g.f2(this,n);n=tb5(this.playerResponse.adPlacements);B&&B.promotedPlaybackTracking&&n&&g.Yv(new g.Dj("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));if(n||gFl(this.playerResponse.adSlots))this.Kv=!0;(B=this.playerResponse.playerAds)&&drM(this,B,f);(B=this.playerResponse.playerConfig)&& Ha0(this,B);(n=this.playerResponse.streamingData)&&ko6(this,n,B||null);if(n=this.playerResponse.trackingParams)this.A=n;if(n=this.playerResponse.videoDetails)wPl(this,n,f),KEm(this,n,B||null,f),B=n.isPrivate,B!==void 0&&(this.isPrivate=YB(this.isPrivate,B));e&&WyG(this,e,n||null);(e=this.playerResponse.interstitialPods)&&PL6(this,e);this.j7&&this.eventId&&(this.j7=R6(this.j7,{ei:this.eventId}));(e=this.playerResponse.captions)&&e.playerCaptionsTracklistRenderer&&x6k(this,e.playerCaptionsTracklistRenderer); (this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.aY=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&$6m(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);this.compositeLiveIngestionOffsetToken=this.playerResponse.playbackTracking?.compositeLiveIngestionOffsetToken; this.compositeLiveStatusToken=this.playerResponse.playbackTracking?.compositeLiveStatusToken;this.Y("html5_fill_default_mosaic_audio_track_id")&&this.IR()&&(this.V9.Fl=Hf0(this));e=this.playerResponse.playerConfig?.granularVariableSpeedConfig?.minimumPlaybackRate;B=this.playerResponse.playerConfig?.granularVariableSpeedConfig?.maximumPlaybackRate;e&&B&&(this.jR=e/100,this.SR=B/100);this.Y("html5_web_po_on_demand_init")&&this.playerResponse.onResponseReceivedActions&&this.playerResponse.onResponseReceivedActions.forEach(r=> {g.u(r,g.Vm)?.signal==="INIT_ATT_SERVICE"&&(this.AV=!0)})}L2(this,f); B$0(this,f);f.queue_info&&(this.queueInfo=f.queue_info);e=f.hlsdvr;e!=null&&(this.allowLiveDvr=Number(e)===1?Ns()?!0:Ks&&uK<5?!1:!0:!1);this.adQueryId=f.ad_query_id||null;this.M_||(this.M_=f.encoded_ad_safety_reason||null);this.ES=YB(this.ES,f.infringe||f.muted);this.Nm=f.authkey;this.VQ=f.authuser;this.mutedAutoplay=YB(this.mutedAutoplay,f&&f.playmuted);this.mutedAutoplayDurationMode=j4(this.mutedAutoplayDurationMode,f&&f.muted_autoplay_duration_mode);this.hU=YB(this.hU,f&&f.mutedautoplay);if(e= f.length_seconds)this.lengthSeconds=typeof e==="string"?Hh(e):e;this.isAd()||this.S6||!g.uz(g.sC(this.V9))?this.endSeconds=j4(this.endSeconds,this.hg||f.end||f.endSeconds):kFk(this,g.sC(this.V9),this.lengthSeconds);this.A=Ov(this.A,f.itct);this.Yr=YB(this.Yr,f.is_live_destination);this.isLivePlayback=YB(this.isLivePlayback,f.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.sA();f.isUpcoming&&(this.isUpcoming=YB(this.isUpcoming,f.isUpcoming));this.dC=YB(this.dC,f.post_live_playback); this.gM&&(this.dC=!1);this.isMdxPlayback=YB(this.isMdxPlayback,f.mdx);if(e=f.mdx_control_mode)this.mdxControlMode=typeof e==="number"?e:Hh(e);this.isInlinePlaybackNoAd=YB(this.isInlinePlaybackNoAd,f.is_inline_playback_no_ad);this.Fl=j4(this.Fl,f.reload_count);this.reloadReason=Ov(this.reloadReason,f.reload_reason);this.sM=YB(this.sM,f.show_content_thumbnail);this.cycToken=f.cyc||null;e=Yj(f);Object.keys(e).length>0&&(this.wZ=e);this.Cq=Ov(this.Cq,f.vvt);this.mdxEnvironment=Ov(this.mdxEnvironment, f.mdx_environment);f.source_container_playlist_id&&(this.sourceContainerPlaylistId=f.source_container_playlist_id);f.serialized_mdx_metadata&&(this.serializedMdxMetadata=f.serialized_mdx_metadata);this.IQ=f.osig;this.eventId||(this.eventId=f.eventid);this.osid||(this.osid=f.osid);this.playlistId=Ov(this.playlistId,f.list);f.index&&(this.playlistIndex=this.playlistIndex===void 0?j4(0,f.index):j4(this.playlistIndex,f.index));this.J$=f.pyv_view_beacon_url;this.Lw=f.pyv_quartile25_beacon_url;this.pw= f.pyv_quartile50_beacon_url;this.iL=f.pyv_quartile75_beacon_url;this.Ww=f.pyv_quartile100_beacon_url;e=f.session_data;!this.Pw&&e&&(this.Pw=Hb(e,"&").feature);this.isFling=j4(this.isFling?1:0,f.is_fling)===1;this.vnd=j4(this.vnd,f.vnd);this.forceAdsUrl=Ov(this.forceAdsUrl,f.force_ads_url);this.Nn=Ov(this.Nn,f.ctrl);this.d8=Ov(this.d8,f.ytr);this.M7=f.ytrcc;this.Qx=f.ytrexp;this.m1=f.ytrext;this.xA=Ov(this.xA,f.adformat);this.hY=Ov(this.hY,f.attrib);this.slotPosition=j4(this.slotPosition,f.slot_pos); this.breakType=f.break_type;this.Oy=YB(this.Oy,f.ssrt);this.videoId=VT(f)||this.videoId;this.dj=Ov(this.dj,f.vss_credentials_token);this.pF=Ov(this.pF,f.vss_credentials_token_type);this.z_=YB(this.z_,f.audio_only);this.i$=YB(this.i$,f.aac_high);this.C$=YB(this.C$,f.prefer_low_quality_audio);this.SK=YB(this.SK,f.uncap_inline_quality);this.Y("html5_enable_qoe_cat_list")?f.qoe_cat&&(this.J9=this.J9.concat(f.qoe_cat.split(","))):this.TL=Ov(this.TL,f.qoe_cat);this.Ui=YB(this.Ui,f.download_media);this.X= CGO(this,f.prefer_gapless);gIg(this.playerResponse)&&this.HE.push("ad");if(e=f.adaptive_fmts)this.adaptiveFormats=e,this.ri("adpfmts",{},!0);if(e=f.allow_embed)this.allowEmbed=Number(e)===1;if(e=f.backgroundable)this.backgroundable=Number(e)===1;if(e=f.autonav)this.isAutonav=Number(e)===1;if(e=f.autoplay)this.nz=this.HF=Number(e)===1;if(e=f.iv_load_policy)this.annotationsLoadPolicy=Al(this.annotationsLoadPolicy,e,t9);if(e=f.cc_lang_pref)this.captionsLanguagePreference=Ov(e,this.captionsLanguagePreference); if(e=f.cc_load_policy)this.zQ=Al(this.zQ,e,t9);this.deviceCaptionsOn=f.device_captions_on??void 0;this.yw=f.device_captions_lang_pref??"";this.tU=f.viewer_selected_caption_langs??[];if(e=f.cached_load)this.P$=YB(this.P$,e);if(f.dash==="0"||f.dash===0||f.dash===!1)this.On=!0;if(e=f.dashmpd)this.JP=g.vT(e,{cpn:this.clientPlaybackNonce});if(e=f.delay)this.Dv=Hh(e);e=this.hg||f.end;if(this.MC?e!=null:e!=void 0)this.clipEnd=j4(this.clipEnd,e);if(e=f.fmt_list)this.F0=e;f.heartbeat_preroll&&this.HE.push("heartbeat"); Y25&&(this.At=-Math.floor(Math.random()*10),this.To=-Math.floor(Math.random()*40));if(e=f.is_listed)this.isListed=YB(this.isListed,e);if(e=f.is_private)this.isPrivate=YB(this.isPrivate,e);if(e=f.is_dni)this.AF=YB(this.AF,e);if(e=f.dni_color)this.Ou=Ov(this.Ou,e);if(e=f.pipable)this.pipable=YB(this.pipable,e);this.jY=(this.vV=this.pipable&&this.V9.Yr)&&!this.V9.showMiniplayerButton;if(e=f.paid_content_overlay_duration_ms)this.paidContentOverlayDurationMs=Hh(e);if(e=f.paid_content_overlay_text)this.paidContentOverlayText= e;if(e=f.url_encoded_fmt_stream_map)this.SJ=e;if(e=f.hls_formats)this.hlsFormats=e;if(e=f.hlsvp)this.hlsvp=e;if(e=f.live_start_walltime)this.z2=typeof e==="number"?e:Hh(e);if(e=f.live_manifest_duration)this.Xo=typeof e==="number"?e:Hh(e);if(e=f.player_params)this.playerParams=e;if(e=f.partnerid)this.partnerId=j4(this.partnerId,e);if(e=f.probe_url)this.probeUrl=t0(g.vT(e,{cpn:this.clientPlaybackNonce}));(e=f.pyv_billable_url)&&dEg(e)&&(this.R0=e);(e=f.pyv_conv_url)&&dEg(e)&&(this.Vx=e);rkG(this,f); this.startSeconds>0?this.Y("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.aY||this.As||f.start||f.startSeconds)&&this.ri("lss",{css:this.startSeconds,pcss:this.aY,iss:this.As,ps:f.start||void 0,pss:f.startSeconds||void 0}):(this.startSeconds=j4(this.startSeconds,this.aY||this.As||f.start||f.startSeconds),this.Y("html5_log_start_seconds_inconsistency")&&this.startSeconds>0&&this.ri("lsss",{css:this.startSeconds,pcss:this.aY,iss:this.As,ps:f.start||void 0,pss:f.startSeconds||void 0}), this.BS=this.startSeconds);this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0||(e=f.live_utc_start,e!=null?this.liveUtcStartSeconds=Number(e):wym(this.startSeconds)&&(this.liveUtcStartSeconds=this.startSeconds));this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0||!(e=f.utc_start_millis)||(this.liveUtcStartSeconds=Number(e)*.001);if(e=f.stream_time_start_millis)this.s$=Number(e)*.001;e=this.As||f.start;(this.MC?e==null||Number(f.resume)===1:e==void 0||f.resume=="1")||this.isLivePlayback||(this.clipStart= j4(this.clipStart,e));if(e=f.url_encoded_third_party_media)this.E2=wZ(e);if(e=f.ypc_offer_button_formatted_text)B=JSON.parse(e),this.x7=B!=null?B:null,this.BR=e;if(e=f.ypc_offer_button_text)this.S0=e;if(e=f.ypc_offer_description)this.hZ=e;if(e=f.ypc_offer_headline)this.j0=e;if(e=f.ypc_full_video_message)this.gt=e;if(e=f.ypc_offer_id)this.aU=e;if(e=f.ypc_buy_url)this.l1=e;if(e=f.ypc_item_thumbnail)this.aQ=e;if(e=f.ypc_item_title)this.mz=e;if(e=f.ypc_item_url)this.qW=e;if(e=f.ypc_vid)this.lW=e;f.ypc_overlay_timeout&& (this.Oq=Number(f.ypc_overlay_timeout));if(e=f.ypc_trailer_player_vars)this.qB=C$(e);if(e=f.ypc_original_itct)this.Gu=e;this.UL=Ov(this.UL,f.ucid);this.g8=f.storyboard_spec||null;this.BJ=f.live_storyboard_spec||null;this.xF=f.iv_endscreen_url||null;this.QH=YB(this.QH,f.iv3_module);this.Uj=YB(this.Uj,f.ypc_module);this.C1=YB(this.C1,f.ypc_clickwrap_module);this.Uj&&this.HE.push("ypc");this.C1&&this.HE.push("ypcRentalActivation");this.Nl={video_id:f.video_id,eventid:f.eventid,cbrand:f.cbrand,cbr:f.cbr, cbrver:f.cbrver,c:f.c,cver:f.cver,ctheme:f.ctheme,cplayer:f.cplayer,cmodel:f.cmodel,cnetwork:f.cnetwork,cos:f.cos,cosver:f.cosver,cplatform:f.cplatform,user_age:f.user_age,user_display_image:f.user_display_image,user_display_name:f.user_display_name,user_gender:f.user_gender,csi_page_type:f.csi_page_type,csi_service_name:f.csi_service_name,enablecsi:f.enablecsi,enabled_engage_types:f.enabled_engage_types};L45(this,f);if(e=f.cotn)this.cotn=e;v5H(this)?HY(this)&&(this.isLivePlayback&&this.JP&&(this.EE= !0),this.OL&&(this.Aq=!0)):Y7H(this)?this.EE=!0:Ofw(this)?this.enableServerStitchedDai=this.enableServerStitchedDai&&p2(this):this.JP&&(this.V9.Ed==="yt"&&this.sA()&&this.Y("drm_manifestless_unplugged")&&this.Y("html5_deprecate_manifestful_fallback")?this.ri("deprecateMflFallback",{}):this.EE=!0);if(e=f.adpings)this.Dk=e?C$(e):null;if(e=f.feature)this.dI=e;if(e=f.referrer)this.referrer=e;this.clientScreenNonce=Ov(this.clientScreenNonce,f.csn);this.Xy=j4(this.Xy,f.root_ve_type);this.Xd=j4(this.Xd, f.kids_age_up_mode);this.MC||f.kids_app_info==void 0||(this.kidsAppInfo=f.kids_app_info);this.MC&&f.kids_app_info!=null&&(this.kidsAppInfo=f.kids_app_info);this.jK=YB(this.jK,f.upg_content_filter_mode);this.unpluggedFilterModeType=j4(this.unpluggedFilterModeType,f.unplugged_filter_mode_type);if(e=f.unplugged_location_info)this.Ch=e;if(e=f.unplugged_partner_opt_out)this.M6=Ov("",e);this.L6=YB(this.L6,f.disable_watch_next);this.Hl=Ov(this.Hl,f.internal_ip_override);this.a4=!!f.is_yto_interstitial;this.interstitials.length&& this.HE.push("playableSequences");if(e=f.oP)this.oP=e;this.Ed=Ov(this.Ed,f.csi_timer);f.watchUrl&&(this.watchUrl=f.watchUrl);e=f.watch_endpoint;this.Y("html5_attach_watch_endpoint_ustreamer_config")&&e&&Fym(this,e);e?.ustreamerConfig&&(this.u8=Tf(e.ustreamerConfig));if(e=e?.loggingContext?.qoeLoggingContext?.serializedContextData)this.rN=e;g.XY(this.V9)&&this.V9.YE&&(this.embedsRct=Ov(this.embedsRct,f.rct),this.embedsRctn=Ov(this.embedsRctn,f.rctn));f.embed_config&&(this.YE=f.embed_config);this.uC= this.uC||!!f.pause_at_start;f.default_active_source_video_id&&(this.defaultActiveSourceVideoId=f.default_active_source_video_id);this.sE=this.sE||!!f.live_preload}I5(){return this.autoplaySwitchButtonRenderer?.enabled!==void 0}S(){return this.V9}Y(f){return this.V9.Y(f)}Xq(){return!this.isLivePlayback||this.allowLiveDvr}hasSupportedAudio51Tracks(){return!!this.kA?.kA}getUserAudio51Preference(){let f=1;n3(this.V9)&&this.Y("html5_ytv_surround_toggle_default_off")?f=0:ec(this.V9)&&this.isLivePlayback&& this.xK()&&(f=0);return g.IB("yt-player-audio51")??f}Ml(){return this.playerResponse?.playerConfig?.compositeVideoConfig?.sourceConfigs??[]}tZ(){this.HS()||(this.C.G||this.C.unsubscribe("refresh",this.tZ,this),this.C_(-1))}C_(f){if(!this.isLivePlayback||!this.W||this.W.flavor!=="fairplay"){var e=this.C.BS(this.Bb);if(e.length>0){for(const B of e)B.startSecs=Math.max(B.startSecs,this.N0()),this.Y("html5_cuepoint_identifier_logging")&&B.event==="start"&&this.ri("cuepoint",{pubCue:B.identifier,segNum:f}); this.publish("cuepointupdated",e,f);this.Bb+=e.length;if(p2(this)&&this.V9.wA())for(const B of e)this.ri("cuepoint",{segNum:f,event:B.event,startSecs:B.startSecs,id:B.identifier.slice(-16)}),B.event==="start"&&(e=B.startSecs,this.Ks.start=this.G6,this.Ks.end=e+3)}}}Kl(){this.HS()||(this.loading=!1,this.publish("dataloaded"))}xK(){return this.HJ!==void 0?this.HJ:this.HJ=!!this.contentProtection||!!this.C&&this.C.V()}q_(f){if(this.HS())return yY();this.tL=this.WS=this.J=null;j_(this,"html5_high_res_logging_always")&& (this.V9.Cc=!0);return l0m(this,f).then(void 0,()=>F4O(this,f)).then(void 0,()=>m2H(this)).then(void 0,()=>hp5(this))}CR(f){this.J=f; uHM(this,this.J.getAvailableAudioTracks());if(this.J)for(var e of this.J.videoInfos)f=e.containerType,f!==0&&(this.gz[f]=e.id);e=this.getAvailableAudioTracks();e=e.concat(this.Qr);for(f=0;f0)return this.J.getAvailableAudioTracks();if(this.Wd)return this.Wd;if(this.oo)return this.oo}return[]}getAudioTrack(){if(this.V&&!this.V.J()){var f=g.$g(this.getAvailableAudioTracks(),e=>e.id===this.V.id); if(!f&&this.V.Z_?.id){const e=this.V.Z_.id;f=g.$g(this.getAvailableAudioTracks(),B=>B.Z_.id===e)}return f||this.Qr}if(this.Wd){if(!this.rT)for(f of this.Wd)if(f.Z_.getIsDefault()){this.rT=f; break}return this.rT||this.Qr}return this.Qr}getPlayerResponse(){return this.playerResponse}getWatchNextResponse(){return this.cS}getReelItemWatchResponse(){return this.reelItemWatchResponse}getHeartbeatResponse(){return this.Tp}Q7(){return this.watchUrl?this.watchUrl:this.V9.getVideoUrl(this.videoId)}Cl(){return!!this.C&&(Xlk(this.C)||yXM(this.C)||PAM(this.C))}zw(){const f=g.K2(this),e=this.S().W,B=Zo("243");return B?dJ(f,B,e,!0)===!0:!1}y8(){return this.Y("enable_wn_infocards")}jX(){return(this.y8()? this.cS?.cards?.cardCollectionRenderer:this.playerResponse?.cards?.cardCollectionRenderer)||null}getEmbeddedPlayerResponse(){return this.LB}aR(){return(this.eventLabel||this.V9.Cq)==="shortspage"}isAd(){return this.S5||!!this.adFormat}U(){return this.oauthToken||this.V9.jX}isDaiEnabled(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}q0(){return this.isDaiEnabled()&&this.enableServerStitchedDai&& !!this.playerResponse?.playerConfig?.daiConfig?.ssaEnabledPlayback}IR(){return!!this.playerResponse?.compositePlayabilityStatus}X1(){return!this.IR()}kC(){return this.KJ}h9(){return this.Uj||this.Cc}Q3(){if(!this.C||!this.G||!this.V)return!1;var f=this.C.C;const e=!!f[this.G.id]&&Ra(53,f[this.G.id].vL.C);f=!!f[this.V.id]&&Ra(68,f[this.V.id].vL.C);return(this.G.itag==="0"||e)&&f}hV(){return this.fetchType==="onesie"}oF(){return j_(this,"html5_samsung_vp9_live")}ri(f,e,B){this.publish("ctmp",f,e,B)}pP(f, e,B){this.publish("ctmpstr",f,e,B)}hasProgressBarBoundaries(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}eI(){return!(!this.isLivePlayback||!this.hasProgressBarBoundaries())}N(){return this.gT||this.suggestions?.[0]||null}getGetAdBreakContext(f=NaN,e=NaN){const B={isSabr:lK(this)};var n=this.getHeartbeatResponse()?.adBreakHeartbeatParams;n&&(B.adBreakHeartbeatParams=n);if(this.Y("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.C&&!isNaN(f)&&!isNaN(e)){e= f-e;for(var r in this.C.C){n=this.C.C[r];if(!n.info.zv()&&!n.info.G8())continue;n=n.index;if(!n.isLoaded())continue;r=n.hq(e);n=n.Lc(r)+e-n.getStartTime(r);this.ri("gabc",{t:f.toFixed(3),mt:e.toFixed(3),sg:r,igt:n.toFixed(3)});B.livePlaybackPosition={utcTimeMillis:""+(n*1E3).toFixed(0)};break}}return B}isEmbedsShortsMode(f,e){return!g.XY(this.V9)||(this.V9.eI||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||e?!1:this.Y("embeds_enable_shorts")?!!this.embeddedPlayerConfig?.embeddedPlayerFlags?.isShortsExperienceEligible: !!(this.embeddedPlayerConfig?.embeddedPlayerFlags?.isShortsExperienceEligible&&f.width<=f.height)}s7(){return this.X||this.Y("web_player_media_session_infinity")&&this.isLivePlayback}bY(){super.bY();this.Dk=null;delete this.tM;delete this.accountLinkingConfig;delete this.C;this.J=this.Tp=this.playerResponse=this.cS=null;this.SJ=this.adaptiveFormats="";delete this.botguardData;this.PS=this.suggestions=this.gT=null;this.sabrContextUpdates.clear()}};Y25=!0;var WXm={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},XsH={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Mwm={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},XyC={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"},PG0={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},yk6={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"},GCg={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};var Amw=class extends g.$0{constructor(f,e){super();this.app=f;this.state=e}handleExternalCall(f,e,B){const n=this.state.W[f],r=this.state.U[f];let L=n;if(r)if(B&&La(B,IzO))L=r;else if(!n)throw Error(`API call from an untrusted origin: "${B}"`);this.logApiCall(f,B);if(L){a:{for(const d of e)if(String(d).includes("javascript:")){B=!0;break a}B=!1}B&&g.Yv(Error(`Dangerous call to "${f}" with [${e}].`));return L.apply(this,e)}throw Error(`Unknown API method: "${f}".`);}logApiCall(f,e,B){const n=this.app.S(); n.Ks&&!this.state.N.has(f)&&(this.state.N.add(f),g.t$("webPlayerApiCalled",{callerUrl:n.loaderUrl,methodName:f,origin:e||void 0,playerStyle:n.playerStyle||void 0,embeddedPlayerMode:n.eI,errorCode:B}))}publish(f,...e){this.state.J.publish(f,...e);if(f==="videodatachange"||f==="resize"||f==="cardstatechange")this.state.G.publish(f,...e),this.state.V.publish(f,...e)}Y(f){return this.app.S().Y(f)}bY(){if(this.state.element){var f=this.state.element,e;for(e in this.state.C)this.state.C.hasOwnProperty(e)&& (f[e]=null);this.state.element=null}super.bY()}};var xE=class extends g.Y4{constructor(){super();this.W=new Map}publish(f,...e){if(this.W.has(f))return this.W.get(f).push(e),!0;let B=!1;try{for(e=[e],this.W.set(f,e);e.length;)B=super.publish(f,...e.shift())}finally{this.W.delete(f)}return B}};var jj0=class extends g.$0{constructor(){super(...arguments);this.element=null;this.X=new Set;this.W={};this.U={};this.C={};this.N=new Set;this.J=new xE;this.G=new xE;this.V=new xE;this.K=new xE}bY(){this.K.dispose();this.V.dispose();this.G.dispose();this.J.dispose();this.N=this.C=this.U=this.W=this.X=void 0}};var eaC=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));var OWw=class extends Amw{getApiInterface(){return Array.from(this.state.X)}Ed(f,e){this.state.K.subscribe(f,e)}qj(f,e){this.state.K.unsubscribe(f,e)}getPlayerState(f){return Qs5(this.app,f)}xA(){return Qs5(this.app)}K5(f,e,B){L_(this)&&(UG(this.app,!0,1),Nl(this.app,f,e,B,1))}getCurrentTime(f,e,B){f=typeof f==="number"?{playerType:f,VV:e,cpn:B}:f||{};e=f.playerType;B=this.getPlayerState(e);return this.app.getAppState()===2&&B===5?this.app.getVideoData()?.startSeconds||0:this.Y("web_player_max_seekable_on_ended")&& B===0?SQ(this.app,e):this.app.getCurrentTime(f)}uY(){return this.app.getCurrentTime({playerType:1})}MC(){const f=this.app.Lc(1);return isNaN(f)?this.getCurrentTime(1):f}BS(){return this.app.getDuration(1)}cU(f,e){f=g.ch(Math.floor(f),0,100);isFinite(f)&&Tr(this.app,{volume:f,muted:this.isMuted()},e)}jX(f){this.cU(f,!1)}ZR(f){Tr(this.app,{muted:!0,volume:this.getVolume()},f)}Wd(){this.ZR(!1)}Yq(f){Tr(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},f)}Aq(){rL(this.app)||this.Yq(!1)}getPlayerMode(){const f= {};this.app.getVideoData().AF&&(f.pfp={enableIma:this.app.EK().allowImaMonetization,autoplay:DX(this.app.EK()),mutedAutoplay:this.app.EK().mutedAutoplay});return f}xw(){const f=this.app.getPresentingPlayerType();if(f===2&&!this.app.Nq()){var e=O5(this.app.iC());if(!(F8C(e)||g.XY(this.app.S())&&this.app.Od().getPlayerState().C(1024))||fD(e))return}(e=this.app.U2().SX)?e.playVideo():this.app.playVideo(f)}Ys(){UG(this.app,!0,1);this.xw()}pauseVideo(f){const e=this.app.getPresentingPlayerType();if(e!== 2||this.app.Nq()||F8C(O5(this.app.iC()))){var B=this.app.U2().SX;B?B.pauseVideo():this.app.pauseVideo(e,f)}}IR(){var f=this.app;let e=!1;f.Ta.G6&&(f.wi.publish("pageTransition"),e=!0);f.stopVideo(e)}clearVideo(){}getAvailablePlaybackRates(){var f=this.app.S();if(f.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(f.V?f.ancestorOrigins[0]:window.location.origin)||f.DO)return cPO;f=this.app.getVideoData();const e=f.jR,B=f.SR; return Y6g.filter(n=>n>=e&&n<=B)}return[1]}getPlaybackQuality(f){return(f=BF(this.app,{playerType:f}))?f.getPlaybackQuality():"unknown"}s3(){}getAvailableQualityLevels(f){return(f=BF(this.app,{playerType:f}))?(f=g.xg(f.B6(),e=>e.quality),f.length&&(f[0]==="auto"&&f.shift(),f=f.concat(["auto"])),f):[]}PS(){return this.getAvailableQualityLevels(1)}Ch(){return this.V()}G6(){return 1}getVideoLoadedFraction(f){return this.app.getVideoLoadedFraction(f)}V(){return this.getVideoLoadedFraction()}Q3(){return 0}getSize(){const f= this.app.AL().getPlayerSize(); return{width:f.width,height:f.height}}setSize(){this.app.AL().resize()}loadVideoById(f,e,B,n){if(!f)return!1;f=e5(f,e,B);return this.app.loadVideoByPlayerVars(f,n)}mS(f,e,B){f=this.loadVideoById(f,e,B,1);UG(this.app,f,1)}cueVideoById(f,e,B,n){f=e5(f,e,B);this.app.cueVideoByPlayerVars(f,n)}A(f,e,B){this.cueVideoById(f,e,B,1)}loadVideoByUrl(f,e,B,n){f=fcw(f,e,B);return this.app.loadVideoByPlayerVars(f,n)}EE(f,e,B){f=this.loadVideoByUrl(f,e,B,1);UG(this.app,f,1)}cueVideoByUrl(f,e,B,n){f=fcw(f,e,B);this.app.cueVideoByPlayerVars(f, n)}cS(f,e,B){this.cueVideoByUrl(f,e,B,1)}uC(){const f=this.app.S();if(f.A)return"";const e=this.app.EK();let B=void 0;e.isLivePlayback||(B=Math.floor(this.app.getCurrentTime({playerType:1})));return f.getVideoUrl(e.videoId,this.getPlaylistId()||void 0,B)}Z9(){return this.app.getDebugText()}getVideoEmbedCode(){const f=this.app.S();if(f.A)return"";const e=this.app.EK();return f.getVideoEmbedCode(e.isPrivate?"":e.title,this.app.EK().videoId,this.app.AL().getPlayerSize(),this.getPlaylistId()||void 0)}K(f, e,B){return DM(this.app,f,e,B)}removeCueRange(f){return this.app.zX(f)}loadPlaylist(f,e,B,n){this.app.loadPlaylist(f,e,B,n)}Mk(f,e,B,n){this.loadPlaylist(f,e,B,n);UG(this.app,!0,1)}cuePlaylist(f,e,B,n){this.app.cuePlaylist(f,e,B,n)}nextVideo(f,e){this.app.nextVideo(f,e)}sE(){this.nextVideo();UG(this.app,!0,1)}previousVideo(f){this.app.previousVideo(f)}P4(){this.previousVideo();UG(this.app,!0,1)}playVideoAt(f){this.app.playVideoAt(f)}UE(f){this.playVideoAt(f);UG(this.app,!0,1)}setShuffle(f){const e= this.app.getPlaylist();e&&e.setShuffle(f)}setLoop(f){const e=this.app.getPlaylist();e&&(e.loop=f)}IA(){const f=this.app.getPlaylist();if(!f)return null;const e=[];for(let B=0;B{g.Yv(B)}; var e=this.app.S();if(e.externalFullscreen){if(!g.L3(e))return this.isFullscreen()?QT(window.document.documentElement):gx(window.document.documentElement).catch(f)}else if(g.S4()||e.X)return this.isFullscreen()?QT(Ev()):e.controlsType!=="3"&&g.S4()?gx(this.app.AL().element).catch(f):(e=this.app.aC().V3())?gx(e).catch(f):Promise.reject(Error("Media element missing"));g.f_(this,"onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)}isFullscreen(){return this.app.isFullscreen()}CY(){return this.app.CY()}cancelPlayback(){var f= O5(this.app.iC());f&&f.created&&f.destroy();this.app.Od().stopVideo();(f=this.app.iC().L5.get("endscreen"))&&f.TW()&&g.C_(this.app.wi,!0)}getProgressState(f){if(this.J()===3)return vF(this.app.iC()).getProgressState();const e=this.app.getVideoData();var B=BF(this.app,{playerType:f})||this.app.Od(),n=B.getPlayerType();a:{var r=this.app.getVideoData();if(r.progressBarStartPosition?.utcTimeMillis&&(r=Number(r.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(r))){r=this.KF(r,f);break a}r=0}a:{var L= this.app.getVideoData();if(L.progressBarEndPosition?.utcTimeMillis&&(L=Number(L.progressBarEndPosition.utcTimeMillis)/1E3,!isNaN(L))){L=this.KF(L,f);break a}L=0}const d=this.getCurrentTime(f);f=this.getDuration(f);const t=this.app.Lc(n),H=this.app.isAtLiveHead(n),k=this.app.l$();var C=this.app;var w=g.mO(C,{playerType:n});w=hN(C,w);C=gi(C,w.Pz(),w);w=SQ(this.app,n);B=B.gA();const v=this.app.getVideoData().Ow;n=!v||isNaN(v)?0:this.KF(v,n);return{airingStart:r,airingEnd:L,allowSeeking:this.app.Xq(), clipEnd:e.clipEnd,clipStart:e.clipStart,current:d,displayedStart:-1,duration:f,ingestionTime:t,isAtLiveHead:H,loaded:k,seekableStart:C,seekableEnd:w,offset:B,viewerLivestreamJoinMediaTime:n}}KF(f,e){const B=this.app.Lc(e);if(!B)return 0;e=B-this.app.getCurrentTime({playerType:e});return f-e}isInline(){return this.app.isInline()}setInline(f){this.app.setInline(f)}Hm(){return this.app.cL().xp(!0)}toggleSubtitles(){const f=g.o_(this.app.iC());f&&f.QS()}getPlayerSize(){const f=this.app.AL().getPlayerSize(); return{width:f.width,height:f.height}}setCenterCrop(f){this.app.AL().setCenterCrop(f)}getLoopVideo(){return this.app.getLoopVideo()}setLoopVideo(f){this.app.setLoopVideo(f)}},tSg="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(" "), kSG="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 CxM={["api.invalidparam"]:2,auth:150,["drm.auth"]:150,["heartbeat.net"]:150,["heartbeat.servererror"]:150,["heartbeat.stop"]:150,["html5.unsupportedads"]:5,["fmt.noneavailable"]:5,["fmt.decode"]:5,["fmt.unplayable"]:5,["html5.missingapi"]:5,["html5.unsupportedlive"]:5,["drm.unavailable"]:5,["mrm.blocked"]:151,["embedder.identity.denied"]:152,["embedder.identity.missing.referrer"]:153};g.Wq=class extends oMm{isExternalMethodAvailable(f,e){return this.state.W[f]?!0:!!(this.state.U[f]&&e&&La(e,IzO))}getBandwidthEstimate(){return MX(this.app.Lh)}reportPlaybackIssue(f=""){const e=this.app.Od();f={gpu:(0,g.hI)(),d:f};e.handleError(new g.WP("feedback",f))}getInternalApi(){return{...this.state.C}}getTrustedApi(){return{...this.state.W,...this.state.U}}getInternalApiInterface(){return g.NT(this.state.C)}queueNextVideo(f,e,B=NaN,n="",r=""){this.app.queueNextVideo(f,e,B,n,r)}tL(f){f=this.app.getPlayerStateObject(f); return{isBuffering:f.C(1),isCued:f.isCued(),isDomPaused:f.C(1024),isEnded:f.C(2),isError:f.C(128),isOrWillBePlaying:f.isOrWillBePlaying(),isPaused:f.isPaused(),isPlaying:f.isPlaying(),isSeeking:f.C(16),isUiSeeking:f.C(32),isUnstarted:f.C(64)}}createSubtitlesModuleIfNeeded(){return this.app.createSubtitlesModuleIfNeeded()}startSeekCsiAction(){this.app.Pt().V.C=(0,g.T)()}Lq(f=1,e,B){return this.getCurrentTime(f,e,B)}seekToStreamTime(f,e,B,n){DvY(this.app,f,e,B,n)}getStreamTimeOffset(){return this.app.cL().getStreamTimeOffset()}seekToLiveHead(f, e){const B=this.app.cL().getVideoData();B&&B.isLivePlayback&&Nl(this.app,Infinity,f,e,1)}requestSeekToWallTimeSeconds(f,e,B){this.app.cL().GL(f,e,B)}y8(f,e,B,n=1,r){this.seekTo(f,e,B,n,r)}zt(f,e,B,n){this.seekBy(f,e,B,n,1)}prefetchKeyPlay(f,e){this.app.cL().prefetchKeyPlay(f,e)}setVolume(f,e=!0){this.cU(f,e)}mute(f=!0){this.ZR(f)}unMute(f=!0){this.Yq(f)}syncVolume(){const f=JLk(this.app);Tr(this.app,{volume:f.volume,muted:f.muted},!1)}getAvailableQualityLabels(){return g.xg(this.app.cL().B6(),f=> f.qualityLabel)}channelSubscribed(){g.yW(this,"SUBSCRIBE",this.app.EK().UL)}channelUnsubscribed(){g.yW(this,"UNSUBSCRIBE",this.app.EK().UL)}setScreenLayer(f){this.app.setScreenLayer(f)}getCurrentPlaylistSequence(){return this.app.Od().getPlaylistSequenceForTime(this.app.getCurrentTime())}getPlaylistSequenceForTime(f){return this.app.Od().getPlaylistSequenceForTime(f)}shouldSendVisibilityState(){return!0}confirmYpcRental(){this.app.cL().rM("ypcRentalActivation")}setHomeGroupInfo(f){this.app.S().homeGroupInfo= f}setConnectedRemoteApps(f){this.app.S().F1=f}setLivingRoomAppMode(f){this.app.S().livingRoomAppMode=Al("LIVING_ROOM_APP_MODE_UNSPECIFIED",f,JCm)}setEnablePrivacyFilter(f=!1){this.app.S().enablePrivacyFilter=f}togglePictureInPicture(){this.app.togglePictureInPicture()}addUtcCueRange(f,e,B,n,r){return MzY(this.app,f,e,B,n,r)}Yp(f=1){const e=this.uS(f); if(f=BF(this.app,{playerType:f}))f=f.getVideoData(),e.hasProgressBarBoundaries=f.hasProgressBarBoundaries(),e.isPremiere=f.isPremiere,e.itct=f.A,e.playerResponseCpn=f.playerResponseCpn,e.progressBarStartPositionUtcTimeMillis=f.hasProgressBarBoundaries()&&f.progressBarStartPosition?.utcTimeMillis?Hh(f.progressBarStartPosition.utcTimeMillis):null,e.progressBarEndPositionUtcTimeMillis=f.hasProgressBarBoundaries()&&f.progressBarEndPosition?.utcTimeMillis?Hh(f.progressBarEndPosition.utcTimeMillis):null, e.ypcOriginalItct=f.Gu,e.ypcPreview=f.ypcPreview,e.paidContentOverlayText=S7G(f),e.paidContentOverlayDurationMs=E5C(f),f.C&&rJ(f.C)&&(e.usingLocalMedia="true"),e.transitionEndpointAtEndOfStream=f.transitionEndpointAtEndOfStream;return e}getAdState(){return this.app.getAdState()}isNotServable(f){if(f!==this.app.XV.video_id)return!1;const e=(f=this.app.cL().getPlayerState())?f.iE:null;return!!(f&&e&&f.C(128)&&wu0(e.errorCode)===5)}supportsGaplessAudio(){return this.app.S().supportsGaplessAudio()}supportsGaplessShorts(){return this.app.S().supportsGaplessShorts()}enqueueVideoByPlayerVars(f, e,B=Infinity,n=""){this.app.enqueueVideoByPlayerVars(f,e,B,n)}clearQueue(){this.app.clearQueue()}LG(){return g.n_(this)}sendAbandonmentPing(){this.app.Od().sendAbandonmentPing()}setAutonavState(f,e=!1){if(this.Y("web_player_autonav_use_server_provided_state")&&!e&&(e=this.app.EK(),e?.I5()))if(f===3)e.autonavState!==3&&(e.F1=e.autonavState);else if(e.F1!==void 0)f=e.F1,e.F1=void 0;else return;GEg(this.app,f)}setAutonav(f,e=!1){this.setAutonavState(f?2:1,e)}setLoopRange(f){this.app.setLoopRange(f)}getLoopRange(){return this.app.getLoopRange()}hasSupportedAudio51Tracks(){return this.app.cL().hasSupportedAudio51Tracks()}setUserAudio51Preference(f, e=!1){this.app.cL().setUserAudio51Preference(f,e)}getUserAudio51Preference(){return this.app.cL().getUserAudio51Preference()}setProximaLatencyPreference(f){this.app.cL().setProximaLatencyPreference(f)}getProximaLatencyPreference(){return this.app.cL().getProximaLatencyPreference()}isProximaLatencyEligible(){return this.app.cL().isProximaLatencyEligible()}getAppState(){return this.app.getAppState()}updateLastActiveTime(){kA()}setBlackout(f){this.app.setBlackout(f)}setUserEngagement(f){this.app.S().fA!== f&&(this.app.S().fA=f,this.app.cL().k5())}updateSubtitlesUserSettings(f,e=!0){g.o_(this.app.iC()).Yl(f,e)}getCaptionWindowContainerId(){const f=g.o_(this.app.iC());return f?f.getCaptionWindowContainerId():""}toggleSubtitlesOn(){const f=g.o_(this.app.iC());f&&f.b5()}isSubtitlesOn(){const f=g.o_(this.app.iC());return f?f.isSubtitlesOn():!1}getPlayerResponse(f){return(f=BF(this.app,{playerType:f}))?f.getVideoData().getPlayerResponse():null}qC(){return this.getPlayerResponse(1)}getEmbeddedPlayerResponse(){return this.app.cL().getVideoData().getEmbeddedPlayerResponse()}getWatchNextResponse(f){return(f= BF(this.app,{playerType:f}))?f.getVideoData().getWatchNextResponse():null}hE(){return this.getWatchNextResponse(1)}getHeartbeatResponse(f){return(f=BF(this.app,{playerType:f}))?f.getVideoData().getHeartbeatResponse():null}Fl(){return this.getHeartbeatResponse(1)}getStoryboardFrame(f,e){const B=this.app.Pr();if(!B)return null;e=B.levels[e];return e?(f=g.xj(e,f))?{column:f.column,columns:f.columns,height:f.Qk,row:f.row,rows:f.rows,url:f.url,width:f.HQ}:null:null}getStoryboardFrameIndex(f,e){const B= this.app.Pr();if(!B)return-1;e=B.levels[e];if(!e)return-1;f-=this.gA();return e.V(f)}getStoryboardLevel(f){var e=this.app.Pr();return e?(e=e.levels[f])?{index:f,intervalMs:e.C,maxFrameIndex:e.G(),minFrameIndex:e.U()}:null:null}getNumberOfStoryboardLevels(){const f=this.app.Pr();return f?f.levels.length:0}X3(f){return this.app.Od().X3(f)}j6(){this.app.Od().j6();this.publish("onFilterAudioFeatures")}eI(){return this.getAudioTrack(1)}getAudioTrack(f){return(f=BF(this.app,{playerType:f}))?f.getAudioTrack(): this.app.getVideoData().Qr}XK(){const f=BF(this.app,{playerType:void 0});return f?f.XK():null}setAudioTrack(f,e,B){const n=this.app.U2().SX;n&&n.uw(f);B=BF(this.app,{playerType:B});if(!B)return!1;(f=B.uw(f,e))&&this.j6();return f}S6(f,e){return this.setAudioTrack(f,e,1)}WS(){return this.getAvailableAudioTracks(1)}getAvailableAudioTracks(f){return BF(this.app,{playerType:f}).getAvailableAudioTracks()}getMaxPlaybackQuality(){const f=this.app.cL();return f.getVideoData().G?nl(f.JV()):"unknown"}getUserPlaybackQualityPreference(){return this.app.cL().getUserPlaybackQualityPreference()}getSubtitlesUserSettings(){const f= g.o_(this.app.iC());return f?f.ZH():null}resetSubtitlesUserSettings(){g.o_(this.app.iC()).YP()}setMinimized(f){this.app.setMinimized(f)}setOverlayVisibility(f){this.publish("overlayvisibilitychange",f)}setInlinePreview(f){this.app.setInlinePreview(f)}setSqueezeback(f){this.app.setSqueezeback(f)}setGlobalCrop(f){this.app.AL().setGlobalCrop(f)}setAppFullscreen(f){this.app.Q4(f?4:0)}lE(){return this.app.lE()}getVisibilityState(){return this.lE().getVisibilityState(this.oR(),this.CY()||g.JF(this.app.S()), this.isMinimized(),this.isInline(),this.app.Qi(),this.app.EC(),this.app.Ji(),this.app.dM())}isMutedByMutedAutoplay(){return this.app.Y_}isMutedByEmbedsMutedAutoplay(){return rL(this.app)}setInternalSize(f,e){this.app.AL().setInternalSize(new g.uN(f,e))}gA(f){return(f=BF(this.app,{playerType:f}))?f.gA():0}isMinimized(){return this.app.isMinimized()}Qi(){return this.app.Qi()}oR(){return this.app.Od().oR()}isOrchestrationLeader(){return this.app.isOrchestrationLeader()}setSafetyMode(f){this.app.S().enableSafetyMode= f}canPlayType(f){return this.app.canPlayType(f)}updatePlaylist(f){if(f){var e=this.getPlaylistId(),B=!1;e&&e!==f.list&&(B=!0);f.external_list!==void 0&&(this.app.WE=YB(!1,f.external_list));const n=f.video;(e=this.app.getPlaylist())&&!B?this.isFullscreen()&&((B=n[e.index])&&B.encrypted_id!==g.zi(e).videoId||(f.index=e.index)):JN(this.app,{list:f.list,index:f.index,playlist_length:n.length});rE5(this.app.getPlaylist(),f);g.id(this,"onPlaylistUpdate")}else this.app.updatePlaylist()}updateVideoData(f, e){g.d7(this.app.cL().getVideoData(),f,e)}updateEnvironmentData(f){X5(this.app.S(),f,!1)}E2(f){this.app.sendVideoStatsEngageEvent(f,1)}productsInVideoVisibilityUpdated(f){this.publish("changeProductsInVideoVisibility",f)}isAtLiveHead(f,e=!0){return this.app.isAtLiveHead(f,e)}getVideoAspectRatio(){return this.app.AL().getVideoAspectRatio()}getPreferredQuality(){return this.app.Od().getPreferredQuality()}getPlaybackQualityLabel(f){return(f=BF(this.app,{playerType:f}))?f.getVideoData().G?.X()?.qualityLabel|| "":""}setPlaybackQualityRange(f,e,B,n){(n=BF(this.app,{playerType:n}))&&n.mJ(g.ig(f,e||f,!0,"m"),!0,B)}Z2(f,e,B){this.setPlaybackQualityRange(f,e,B,1)}onAdUxClicked(f,e){this.publish("aduxclicked",f,e)}showAirplayPicker(){this.app.showAirplayPicker()}dispatchReduxAction(f){g.r7.dispatch(f)}highlightSettingsMenuItem(f){this.publish("highlightSettingsMenu",f)}openSettingsMenuItem(f){this.publish("openSettingsMenuItem",f)}N(f,e){this.state.G.subscribe(f,e)}Qr(f,e){this.state.G.unsubscribe(f,e)}Cq(f, e=1){this.cueVideoByPlayerVars(f,e)}lC(f,e,B=1,n){this.loadVideoByPlayerVars(f,e,B,n)}Cc(f,e=1,B,n){this.preloadVideoByPlayerVars(f,e,B,n)}getFeedbackProductData(){return this.app.getFeedbackProductData()}E3(){return g.n_(this).E3()}B0(){return g.n_(this).B0()}Tb(){return g.n_(this).Tb()}Fi(){return this.LG().Fi()}Fg(...f){this.Fi().Fg(...f)}lR(){this.Fi().lR()}lO(){this.Fi().lO()}W(){this.Fi().hide()}vU(f,e,B,n,r,L,d,t){this.Fi().vU(f,e,B,n,r,L,d,t)}q2(f,e){this.Fi().q2(f,e)}ke(f,e,B,n,r){this.LG().ke(f, e,B,n,r)}gI(f){this.Fi().setEnabled(f)}T7(f,e){this.LG().T7(f,e)}zK(f,e){this.LG().zK(f,e)}Zf(f,e){this.LG().Zf(f,e)}Vc(){this.LG().Vc()}jL(f,e){this.LG().jL(f,e)}renderChapterSeekingAnimation(f,e,B){this.LG().renderChapterSeekingAnimation(f,e,B)}FY(){this.LG().FY()}getWebPlayerContextConfig(){return this.app.S().getWebPlayerContextConfig()}notifyShortsAdSwipeEvent(){this.publish("shortsadswipe")}F3(){return this.app.Od().F3()}vr(f,e,B=!1){this.LG()?.vr(f,e,B)}};g.Wq.prototype.VY=eC(7);g.sL=class extends g.Wq{constructor(f,e){super(f,e);vsG(this);Il(this,"addEventListener",this.fb);Il(this,"removeEventListener",this.Rx);Il(this,"cueVideoByPlayerVars",this.LT);Il(this,"loadVideoByPlayerVars",this.Rl);Il(this,"preloadVideoByPlayerVars",this.Ge);Il(this,"loadVideoById",this.Bj);Il(this,"loadVideoByUrl",this.f7);Il(this,"playVideo",this.xw);Il(this,"loadPlaylist",this.loadPlaylist);Il(this,"nextVideo",this.nextVideo);Il(this,"previousVideo",this.previousVideo);Il(this,"playVideoAt", this.playVideoAt);Il(this,"getVideoData",this.uS);Il(this,"seekBy",this.KO);Il(this,"seekTo",this.FH);Il(this,"showControls",this.showControls);Il(this,"hideControls",this.hideControls);Il(this,"cancelPlayback",this.cancelPlayback);Il(this,"getProgressState",this.getProgressState);Il(this,"isInline",this.isInline);Il(this,"setInline",this.setInline);Il(this,"setLoopVideo",this.setLoopVideo);Il(this,"getLoopVideo",this.getLoopVideo);Il(this,"getVideoContentRect",this.getVideoContentRect);Il(this,"getVideoStats", this.Hm);Il(this,"getCurrentTime",this.LN);Il(this,"getDuration",this.vK);Il(this,"getPlayerState",this.sf);Il(this,"getVideoLoadedFraction",this.RO);Il(this,"mute",this.ZR);Il(this,"unMute",this.Yq);Il(this,"setVolume",this.cU);Il(this,"loadModule",this.loadModule);Il(this,"unloadModule",this.unloadModule);Il(this,"getOption",this.Q6);Il(this,"getOptions",this.getOptions);Il(this,"setOption",this.setOption);Il(this,"addCueRange",this.addCueRange);Il(this,"getDebugText",this.getDebugText);Il(this, "getStoryboardFormat",this.getStoryboardFormat);Il(this,"toggleFullscreen",this.toggleFullscreen);Il(this,"isFullscreen",this.isFullscreen);Il(this,"getPlayerSize",this.getPlayerSize);Il(this,"toggleSubtitles",this.toggleSubtitles);Il(this,"setCenterCrop",this.setCenterCrop);Il(this,"setFauxFullscreen",this.setFauxFullscreen);Il(this,"setSizeStyle",this.setSizeStyle);Il(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);Il(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);riO(this)}P6(f,e,B,n,r, L,d){return this.app.P6(f,e,B,n,r,L,d)}vC(){return this.app.vC()}iC(){return this.app.iC()}Ws(){const f=this.iC().L5.get("endscreen");return!!f&&f.Ws()}getRootNode(){return this.AL().element}S(){return this.app.S()}OX(){return this.app.bx()}pB(f){return this.app.pB(f)}iT(){return g.n_(this)?.iT()||null}getSourceConfigForActiveAudioTrack(){const f=this.getVideoData()?.Ml();if(f){const e=this.getAudioTrack().getLanguageInfo().getId();for(const B of f)for(const n of B.audioTracks??[])if(n.id===e)return B}}kx(){return this.app.Od().kx()}getStartTime(f){return BF(this.app, f)?.getStartTime()}getPlayerStateObject(f){return this.app.getPlayerStateObject(f)}AL(){return this.app.AL()}getPlaylist(){return this.app.getPlaylist()}getVideoData(f={}){var e=BF(this.app,f);if(!e)return null;e=e.getVideoData();f.VV===!1?f=e:e.enableServerStitchedDai&&f.playerType===2?(f=this.app,f=f.l6?f.Bd.C?.getVideoData()||f.getVideoData():f.getVideoData()):f=e;return f}Zj(){return this.app.Od().Zj()}Pr(f){return this.app.Pr(f)}dM(){return this.app.dM()}isHdr(){return this.app.Od().isHdr()}VH(){return this.app.VH()}isEmbedsShortsMode(){var f= g.n_(this);const e=this.getVideoData();f=f?f.Y6:this.getPlayerSize();const B=!!this.getPlaylist();return!(!e||!e.isEmbedsShortsMode(new g.uN(f.width,f.height),B))}WP(f,e){this.app.WP(f,1,e)}a6(f,e,B,n,r){this.app.Kz(f,e,B,n,r)}playVideo(f,e){try{const B=this.app.U2().SX;if(B){B.playVideo();return}if(!f&&this.getPresentingPlayerType()===2){const n=O5(this.app.iC());if(n&&fD(n))return}}catch(B){g.J(B)}this.app.playVideo(f,e)}stopVideo(f){BF(this.app,{playerType:f}).stopVideo()}Q5(f){BF(this.app,{playerType:f}).Q5()}addEventListener(f, e){this.state.J.subscribe(f,e)}removeEventListener(f,e){this.state.J.unsubscribe(f,e)}b7(f){this.app.b7(f)}setPlaybackQuality(f,e){this.setPlaybackQualityRange(f,f,e)}B6(){const f={},e=this.app.Od().B6();for(const B of e)f[B.quality]=B;return f}L$(){return this.app.Od().L$()}Dp(f){this.app.Dp(f);f&&GEg(this.app,f)}getVideoUrl(f,e,B,n){let r=this.getPresentingPlayerType(),L=r===2;if(n&&L||r===3)L=!1,r=1;n=this.getVideoData({playerType:r});if(!n)return"";let d;f||n.isLivePlayback||(d=Math.floor(this.getCurrentTime({playerType:r}))); f=L?void 0:this.getPlaylistId()||void 0;e&&f==="WL"&&(f=void 0);return this.app.getVideoUrl(n.videoId,f,d,e,B)}U4(f){this.app.Od().U4(f)}PN(f,e){this.iC().PN(f,e)}O4(){const f=g.V9(this.iC());return!!f&&f.O4()}fV(){const f=g.V9(this.iC());return!!f&&f.fV()}Je(f,e,B){const n=g.V9(this.iC());n&&n.Je(f,e,B)}Rm(){this.app.Od().B$()}T2(f){g.id(this,"onVideoAreaChange");g.id(this,f?"onShowControls":"onHideControls")}jh(f,e){const B=g.n_(this);if(B)return B.jh(f,e);f=this.app.AL().I8();return new g.oY(0, 0,f.width,f.height)}A5(){const f=this.iC().L5.get("heartbeat");return!!f&&f.A5()}Xq(){var f=this.S();if(f.Lq||f.disableSeek)return!1;const e=this.app.Od(),B=e.getVideoData();if(!B.H4()||g.mi(B)||this.getPresentingPlayerType()===2&&!this.app.Nq()&&!B.isSeekable||B.q0()&&this.getPresentingPlayerType(!0)===2||e.zb()&&this.getPresentingPlayerType()!==3)return!1;f=g.sC(f);return g.uz(f)&&!B.S6||rL(this.app)?!1:!0}wE(){return this.app.Od().Ty()}isLifaAdPlaying(){const f=this.getVideoData()?.q0();return f? this.getPresentingPlayerType(f)===2:!1}VP(){this.app.Od().VP()}sendVideoStatsEngageEvent(f,e,B){this.app.sendVideoStatsEngageEvent(f,B,e)}AI(f,e,B){this.app.S7(f,e,B)}X6(f,e){this.app.Iv(f,e)}sK(f,e){Gr(this.app,f,e)}gg(f){return this.app.gg(f)}rM(f,e){BF(this.app,{playerType:e})?.rM(f)}zb(){const f=BF(this.app,{playerType:void 0});return f?f.zb():!0}qd(){const f=this.getVideoData();return!!f&&(f.qd()||!!f.hlsFormats||!!f.JP)}getPlaybackRate(){return this.app.cL().getPlaybackRate()}setPlaybackRate(f, e){this.app.setPlaybackRate(f,e)}aC(){return this.app.aC()}Pt(){return this.app.Pt()}z8(f){return this.app.z8(f)}createClientVe(f,e,B,n=!1){this.S().Z9&&this.app.Hp.createClientVe(f,e,B,n)}createServerVe(f,e,B=!1){this.S().Z9&&this.app.Hp.createServerVe(f,e,B)}setTrackingParams(f,e){this.S().Z9&&this.app.Hp.setTrackingParams(f,e)}logClick(f,e){this.S().Z9&&(this.app.Hp.click(f,e),this.publish("veClickLogged",f))}logVisibility(f,e,B){this.S().Z9&&this.app.Hp.FG(f,e,B)}hasVe(f){return this.S().Z9?this.app.Hp.hasVe(f): !1}destroyVe(f){this.S().Z9&&this.app.Hp.destroyVe(f)}getPresentingPlayerType(f){return this.app.getPresentingPlayerType(f)}getPlayerType(f){return BF(this.app,{cpn:f})?.getPlayerType()}zV(){this.app.zV()}Um(f){this.app.Um(f)}d9(){this.app.d9()}addPlayerResponseForAssociation(){}finishSegmentByCpn(f,e,B){return this.app.finishSegmentByCpn(f,e,B)}PV(f,e,B,n,r,L,d,t){return this.app.PV(f,e,B,n,r,L,d,t)}jn(f,e,B,n,r,L,d,t){this.app.jn(f,e,B,n,r,L,d,t)}k6(){return this.app.k6()}eJ(f){this.app.eJ(f)}Js(f= -1,e=Infinity){this.app.Js(f,e)}BU(f){g.o_(this.iC())?.BU(f)}Pe(f,e,B){this.app.Pe(f,e,B)}xi(){return this.app.xi()}fU(f,e,B=0){this.app.fU(f,e,B)}uE(){return this.app.uE()}Nq(){return this.app.Nq()}Sa(f,e,B){return this.app.Sa(f,e,B)}ri(f,e,B=!1,n){BF(this.app,{playerType:n})?.ri(f,e,B)}Co(f,e){this.publish("aduxmouseover",f,e)}oK(f,e){this.publish("aduxmouseout",f,e)}uc(f,e){this.publish("muteadaccepted",f,e)}bv(){return this.app.AL().bv()}Y5(f){this.app.AL().Y5(f)}Jb(f){return f?this.app.Gw(): this.app.Od().Jb()}Ns(f){this.app.Ns(f)}QP(){this.app.Od().QP()}CU(){this.app.CU()}getGetAdBreakContext(){const f=this.app.cL();return f.getVideoData().getGetAdBreakContext(f.getCurrentTime(),f.gA())}ip(f,e){this.app.Od().ip(f,e)}GS(){return this.app.Od().GS()}q9(f){return BF(this.app,{playerType:f})?.q9()||0}};g.c=g.sL.prototype;g.c.sy=eC(46);g.c.DB=eC(44);g.c.DK=eC(42);g.c.TQ=eC(40);g.c.e5=eC(36);g.c.Bt=eC(35);g.c.Jq=eC(29);g.c.hC=eC(23);g.c.ZN=eC(17);g.c.zE=eC(15);g.c.XO=eC(11);g.c.LL=eC(9);var qPH=class extends eY{constructor(){super(...arguments);this.requestHeaders={}}J5(f,e){return{...super.J5(f,e),...this.requestHeaders}}},ay;var VPC=class{constructor(f){this.experiments=f;this.C=2048;this.V=0;this.Ed=(this.X=this.Y("html5_streaming_resilience"))?.5:.25;this.J=g.tS(this.experiments,"html5_media_time_weight_prop")||0;this.N=(this.W=this.experiments.SI("html5_consider_end_stall"))&&sh;this.G=this.experiments.SI("html5_measure_max_progress_handling");this.K=this.Y("html5_treat_requests_pre_elbow_as_metadata");this.U=this.Y("html5_media_time_weight")||!!this.J;this.Y("html5_sabr_live_audio_early_return_fix")&&sh&&(this.C= 65536)}Y(f){return this.experiments.SI(f)}};g.fm=class extends g.$0{constructor(f){super();this.oA=f;this.aX={uO:()=>this.oA}}bY(){this.V(); super.bY()}V(){this.oA.dispose()}addCueRange(f){this.oA.addCueRange(f)}S7(f,e){this.oA.S7(f,e)}Yj(){this.oA.Yj()}Zs(){return this.oA.Zs()}Q2(f){return this.oA===f}B$(){this.oA.Rm()}yV(f,e){this.oA.yV(f,e)}aV(f,e){return this.oA.aV(f,e)}Yx(f){this.oA.Yx(f)}j6(){this.oA.j6()}X3(f){return this.oA.X3(f)}getAudioTrack(){return this.oA.getAudioTrack()}XK(){return this.oA.XK()}getAvailableAudioTracks(){return this.oA.getAvailableAudioTracks()}B6(){return this.oA.B6()}L$(){return this.oA.L$()}gj(){return this.getVideoData().clientPlaybackNonce}QD(){return this.oA.QD()}wL(){return this.oA.wL()}SU(){return this.oA.SU()}getCurrentTime(){return this.oA.getCurrentTime()}Mr(){return this.oA.Mr()}jC(){return this.oA.jC()}xp(f){return this.oA.xp(f)}getDuration(f){return this.oA.getDuration(f)}pG(){return this.oA.pG()}Lc(){return this.oA.Lc()}Ty(){return this.oA.Ty()}xi(){return this.oA.xi()}l$(){return this.oA.l$()}OX(){return this.oA.OX()}q9(){return this.oA.q9()}nF(){return this.oA.nF()}zJ(f){return this.oA.zJ(f)}aC(){return this.oA.aC()}Sw(){return this.oA.Sw()}N0(){return this.oA.N0()}Pz(){return this.oA.Pz()}dZ(f, e,B){return this.oA.dZ(f,e,B)}getPlaybackQuality(){return this.oA.getPlaybackQuality()}getPlaybackRate(){return this.oA.getPlaybackRate()}getPlayerState(){return this.oA.getPlayerState()}getPlayerType(){return this.oA.getPlayerType()}getPlaylistSequenceForTime(f){return this.oA.getPlaylistSequenceForTime(f)}z8(f){return this.oA.z8(f)}F3(){return this.oA.F3()}getPreferredQuality(){return this.oA.getPreferredQuality()}yL(){return this.oA.yL()}getProximaLatencyPreference(){return this.oA.getProximaLatencyPreference()}JV(){return this.oA.JV()}getStartTime(){return 0}Pr(){return this.getVideoData().Pr()}getStoryboardFormat(){return this.getVideoData().getStoryboardFormat()}getStreamTimeOffset(){return this.oA.getStreamTimeOffset()}IV(){return this.oA.IV()}gA(){return this.oA.gA()}kx(){return this.oA.kx()}getUserAudio51Preference(){return this.oA.getUserAudio51Preference()}getUserPlaybackQualityPreference(){return this.oA.getUserPlaybackQualityPreference()}getVideoData(){return this.oA.getVideoData()}Zj(){return this.oA.Zj()}uj(){return this.oA.uj()}getVideoLoadedFraction(){if(this.getVideoData().Q3())return 1; const f=this.oA.aC();return f?f.kL():0}uO(){return this.oA}R_(f){this.oA.R_(f)}handleError(f){this.oA.handleError(f)}ao(f){this.oA.ao(f)}PM(f){this.oA.PM(f)}zb(){return this.oA.zb()}hasSupportedAudio51Tracks(){return this.oA.hasSupportedAudio51Tracks()}isAd(){return this.getVideoData().isAd()}S2(){return this.oA.S2()}oR(){return this.oA.oR()}isAtLiveHead(f,e){return this.oA.isAtLiveHead(f,e)}TV(){return this.oA.TV()}isGapless(){return this.oA.isGapless()}A1(){return this.oA.A1()}isHdr(){return this.oA.isHdr()}Dj(){return this.oA.Dj()}cN(){return this.oA.cN()}GS(){return this.oA.GS()}isProximaLatencyEligible(){return this.oA.isProximaLatencyEligible()}uE(){return this.oA.uE()}e_(f){return!!this.oA.loader?.e_(f)}eq(){return this.oA.eq()}Ct(){this.oA.Ct()}PY(f){this.oA.PY(f)}YG(){this.oA.YG()}C6(){this.oA.C6()}Xv(){this.oA.Xv()}f_(){this.oA.f_()}Kt(f){this.oA.Kt(f)}q1(){this.oA.q1()}pauseVideo(f){this.oA.pauseVideo(f)}prefetchKeyPlay(f, e){this.oA.prefetchKeyPlay(f,e)}py(f){this.oA.py(f)}Ly(f){this.oA.Ly(f)}playVideo(f,e){return this.oA.playVideo(f,e)}rz(f,e,B,n,r){this.oA.rz(f,e,B,n,r)}LZ(f,e,B,n,r){this.oA.LZ(f,e,B,n,r)}ri(f,e,B){this.oA.ri(f,e,B)}U4(f){this.oA.U4(f)}ip(f,e){this.oA.Kh.ip(f,e)}P3(f,e,B){this.oA.P3(f,e,B)}rC(f){this.oA.rC(f)}fI(f){this.oA.fI(f)}wp(f,e){this.oA.wp(f,e)}QA(f,e,B,n,r,L,d,t){this.oA.QA(f,e,B,n,r,L,d,t)}xB(){uu(this.oA.Kh)}MY(f){this.oA.MY(f)}Q5(f,e){this.oA.Q5(f,e)}removeCueRange(f){this.oA.removeCueRange(f)}Iv(f){this.oA.Iv(f)}sK(f){return this.oA.aM.sK(f)}dl(f){this.oA.dl(f)}TC(f, e,B){this.oA.TC(f,e,B)}Ai(){this.oA.Ai()}ER(){this.oA.aM.reset()}h_(){this.oA.h_()}GL(f,e,B){this.oA.GL(f,e,B)}seekTo(f,e){this.oA.seekTo(f,e)}sendAbandonmentPing(){this.oA.sendAbandonmentPing()}sendVideoStatsEngageEvent(f,e){this.oA.sendVideoStatsEngageEvent(f,e)}H3(f,e,B){this.oA.H3(f,e,B)}setLoop(f){this.oA.setLoop(f)}oQ(){this.oA.oQ()}setMediaElement(f){this.oA.setMediaElement(f)}vP(f,e,B,n){this.oA.vP(f,e,B,n)}setPlaybackRate(f){this.oA.setPlaybackRate(f)}a6(f,e,B,n,r,L){this.oA.a6(f,e,B,n,r, L)}Y1(f,e){this.oA.Y1(f,e)}rM(f){this.oA.rM(f)}setProximaLatencyPreference(f){this.oA.setProximaLatencyPreference(f)}BF(f,e,B){this.oA.BF(f,e,B)}s1(f){this.oA.s1(f)}QY(){this.oA.QY()}r6(f){this.oA.r6(f)}setUserAudio51Preference(f,e){this.oA.setUserAudio51Preference(f,e)}mJ(f,e,B){this.oA.mJ(f,e,B)}Wt(){return this.oA.Wt()}VP(){this.oA.VP()}Jb(){return this.oA.Jb()}Qg(f){this.oA.Qg(f)}HP(){this.oA.HP()}UM(f){this.oA.UM(f)}stopVideo(){this.oA.stopVideo()}subscribe(f,e,B){return this.oA.subscribe(f, e,B)}V_(f,e){this.oA.V_(f,e)}togglePictureInPicture(){this.oA.togglePictureInPicture()}gg(f){return this.oA.aM.gg(f)}yA(f){this.oA.aM.yA(f)}unsubscribe(f,e,B){return this.oA.unsubscribe(f,e,B)}a5(f,e){this.oA.a5(f,e)}uw(f,e){return this.oA.uw(f,e)}k5(){this.oA.k5()}w6(f){this.oA.w6(f)}QP(){this.oA.QP()}};g.c=g.fm.prototype;g.c.ew=eC(51);g.c.TQ=eC(39);g.c.Bt=eC(34);g.c.Jq=eC(28);g.c.hC=eC(22);g.c.zE=eC(14);var lU6=class{constructor(){this.licenseRequest=this.mediaKeys=this.C=this.certificate=null;this.G=!1}dispose(){this.certificate=null;this.C?.dispose();this.licenseRequest=this.C=null;this.mediaKeys?.dispose();this.mediaKeys=null;this.G=!0}HS(){return this.G}};var uI=class extends g.Sq{constructor(f,e,B,n=!1){super(e);this.Z=f;this.WS=n;this.W=new g.ep(this);this.fade=new g.Ob(this,B,!0,void 0,void 0,()=>{this.N()}); g.A(this,this.W);g.A(this,this.fade)}show(){const f=this.A3();super.show();this.WS&&(this.W.D(window,"blur",this.HL),this.W.D(Yr(this),"click",this.eI));f||this.publish("show",!0)}hide(){const f=this.A3();super.hide();zaY(this);f&&this.publish("show",!1)}Fx(f,e){this.sourceElement=f;this.fade.show();e?(this.U||(this.U=this.W.D(this.Z,"appresize",this.K)),this.K()):this.U&&(this.W.uh(this.U),this.U=void 0)}N(){this.sourceElement&&this.element&&(this.sourceElement.getAttribute("aria-haspopup"),this.sourceElement.setAttribute("aria-expanded", "true"),this.focus())}K(){const f=g.n_(this.Z);this.sourceElement&&f.ke(this.element,this.sourceElement)}HL(){const f=this.A3();zaY(this);this.fade.hide();f&&this.publish("show",!1)}eI(f){const e=Gw(f);e&&(g.HN(this.element,e)||this.sourceElement&&g.HN(this.sourceElement,e)||!g.Ef(f))||this.HL()}A3(){return this.ef&&this.fade.state!==4}};var uR6=class extends uI{constructor(f,e,B,n){n=new g.y({L:"div",y9:["ytp-linked-account-popup-button"],Ga:n,O:{role:"button",tabindex:"0"}});e=new g.y({L:"div",B:"ytp-linked-account-popup",O:{role:"dialog","aria-modal":"true",tabindex:"-1"},j:[{L:"div",B:"ytp-linked-account-popup-title",Ga:e},{L:"div",B:"ytp-linked-account-popup-description",Ga:B},{L:"div",B:"ytp-linked-account-popup-buttons",j:[n]}]});super(f,{L:"div",B:"ytp-linked-account-popup-container",j:[e]},100);this.dialog=e;g.A(this,this.dialog); n.listen("click",()=>{this.HL()}); g.A(this,n);g.qX(this.Z,this.element,4);this.hide()}Fx(){super.Fx();this.dialog.focus()}};g.DZ=class extends g.Sq{constructor(f,e,B,n){super(f);this.priority=e;B&&g.Or(this,B);n&&this.setContent(n)}setIcon(f){this.updateValue("icon",f)}updateValue(f,e){super.updateValue(f,e);this.publish("size-change")}};g.X7={Ka:18,sJ:17,Yh:16,iqq:15,Sdi:14,h7:13,cf:12,T0:11,cZ:10,SH:9,AUDIO:8,SUBTITLES:7,SLEEP_TIMER:6,Ub:5,Ip:4,x9:3,pH:2,REMOTE:1,lB:0,18:"LOOP",17:"STABLE_VOLUME",16:"VOICE_BOOST",15:"REMOTE_SELECT",14:"SIZE",13:"MINIPLAYER",12:"THREED",11:"AUTONAV",10:"CINEMATIC",9:"ANNOTATIONS",8:"AUDIO",7:"SUBTITLES",6:"SLEEP_TIMER",5:"SPEED",4:"AUDIO_SETTINGS",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};var FYd=class extends g.DZ{constructor(f){super(g.j5({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);this.Z=f;this.G=this.C=!1;this.rA=f.iT();f.createServerVe(this.element,this,!0);this.D(this.Z,"settingsMenuVisibilityChanged",e=>{this.AE(e)}); this.D(this.Z,"videodatachange",this.V);this.listen("click",this.onClick);this.V()}AE(f){this.G&&this.Z.logVisibility(this.element,this.C&&f)}V(){var f=this.Z.getVideoData()?.accountLinkingConfig?.linked;f&&!this.C?(f=this.Z.getVideoData()?.accountLinkingConfig,this.setIcon(w_()),g.Or(this,oy(f?.menuData?.connectedMenuLabel)),this.J=new uR6(this.Z,oy(f?.menuData?.connectedDialogTitle),oy(f?.menuData?.connectedDialogMessage),oy(f?.menuData?.confirmButtonText)),g.A(this,this.J),f=f?.menuData?.trackingParams|| null,(this.G=!!f)&&this.Z.setTrackingParams(this.element,f),this.rA.jf(this),this.C=!0):!f&&this.C&&(this.rA.ij(this),this.C=!1)}onClick(){this.G&&this.Z.logClick(this.element);this.rA.HL();this.J&&this.J.Fx()}};var Pq=class extends g.$0{constructor(f){super();this.api=f}Y(f){return this.api.Y(f)}};var m$5=class extends Pq{constructor(f){super(f);X(f,"setAccountLinkState",e=>{this.setAccountLinkState(e)}); X(f,"updateAccountLinkingConfig",e=>{this.updateAccountLinkingConfig(e)}); f.addEventListener("videodatachange",(e,B)=>{this.onVideoDataChange(B)}); f.addEventListener("settingsMenuInitialized",()=>{this.menuItem=new FYd(this.api);g.A(this,this.menuItem)})}onVideoDataChange(f){if(!f.accountLinkingConfig){var e=f.getPlayerResponse()?.accountLinkingConfig; f.accountLinkingConfig=e}if(e=f.accountLinkingConfig?.alsParam)f.GK=e}setAccountLinkState(f){this.api.getVideoData().GK=f;this.api.Rm()}updateAccountLinkingConfig(f){const e=this.api.getVideoData(),B=e.accountLinkingConfig;B&&(B.linked=f);this.api.publish("videodatachange","dataupdated",e,this.api.getPresentingPlayerType())}};var U$C=class extends Pq{constructor(f){super(f);this.C=null;this.events=new g.ep(f);g.A(this,this.events);this.events.D(f,"applicationvideodatachange",()=>{this.Eh()})}Eh(){const f=this.api.getPlaybackRate(); var e=this.api.getVideoData();if(e){var B=e.adFormat==="17_8";var n=e.nK?.G()===8;B=e.isAd()&&(B||n)}else B=!1;B||((e=this.api.getVideoData())?(B=e.adFormat==="15_6",n=e.nK?.G()===7,B=e.isAd()&&(B||n)):B=!1);B?(f!==1&&(this.C=f),this.api.setPlaybackRate(1)):this.C!==null&&(this.api.setPlaybackRate(this.C),this.C=null)}};var Nyl=class{constructor(f){this.api=f;this.C={}}};var hhO=class extends Pq{constructor(f){super(f);this.events=new g.ep(this);g.A(this,this.events);this.C=new Nyl(this.api);this.events.D(this.api,"legacyadtrackingpingreset",()=>{this.C.C={}}); this.events.D(this.api,"legacyadtrackingpingchange",e=>{var B=this.C;lS(B,"part2viewed",1,0x8000000000000);lS(B,"engagedview",Math.max(1,e.Dv*1E3),0x8000000000000);if(!e.isLivePlayback){var n=e.lengthSeconds*1E3;vY(e)&&B.api.Y("html5_shorts_gapless_ads_duration_fix")&&(n=B.api.getProgressState().seekableEnd*1E3-e.uL);lS(B,"videoplaytime25",n*.25,n);lS(B,"videoplaytime50",n*.5,n);lS(B,"videoplaytime75",n*.75,n);lS(B,"videoplaytime100",n,0x8000000000000);lS(B,"conversionview",n,0x8000000000000);lS(B, "videoplaybackstart",1,n);lS(B,"videoplayback2s",2E3,n);lS(B,"videoplayback10s",1E4,n)}}); this.events.D(this.api,g.kk("appad"),this.G);this.events.D(this.api,g.Ca("appad"),this.G)}G(f){var e=f.getId();const B=this.api.getVideoData({playerType:1}),n=!this.api.isInline();if(!B.inlineMetricEnabled||n){if(e==="part2viewed"){if(B.J$&&g.gq(B.J$),B.Mt&&uS(this,B.Mt),B.Zp){var r={CPN:this.api.getVideoData().clientPlaybackNonce};for(var L of B.Zp)uS(this,g.pX(L,r))}}else e==="engagedview"&&B.R0&&(r={CPN:this.api.getVideoData().clientPlaybackNonce},g.gq(g.pX(B.R0,r)));B.Vx&&(r=B.Vx,L=f.getId(), r=ZR(r,{label:L}),g.gq(r));switch(e){case "videoplaytime25":B.Gc&&uS(this,B.Gc);B.eL&&Fw(this,B.eL);B.Lw&&g.gq(B.Lw);break;case "videoplaytime50":B.bL&&uS(this,B.bL);B.J4&&Fw(this,B.J4);B.pw&&g.gq(B.pw);break;case "videoplaytime75":B.eZ&&uS(this,B.eZ);B.vI&&Fw(this,B.vI);B.iL&&g.gq(B.iL);break;case "videoplaytime100":B.cw&&uS(this,B.cw),B.bk&&Fw(this,B.bk),B.Ww&&g.gq(B.Ww)}(r=this.api.getVideoData().Dk)&&Ai6(this,r,f.getId())&&Ai6(this,r,`${f.getId()}gaia`)}if(B.inlineMetricEnabled&&!n)switch(e){case "videoplaybackstart":(e= B.KA?.C)&&uS(this,e);break;case "videoplayback2s":(e=B.KA?.J)&&uS(this,e);break;case "videoplayback10s":(e=B.KA?.G)&&uS(this,e)}this.api.X6([f],1)}};var gM0=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);this.events.D(f,"videoready",e=>{f.getPresentingPlayerType()===1&&(e={playerDebugData:{pmlSignal:!!e.getPlayerResponse()?.adPlacements?.some(B=>B?.adPlacementRenderer?.renderer), contentCpn:e.clientPlaybackNonce}},g.t$("adsClientStateChange",e))})}};var Ih=class extends g.DZ{constructor(f,e){super(g.j5({role:"menuitemcheckbox","aria-checked":"false"}),e,f,{L:"div",B:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}onClick(){this.enabled&&(this.C(!this.checked),this.publish("select",this.checked))}getValue(){return this.checked}C(f){this.checked=f;this.element.setAttribute("aria-checked",String(this.checked))}setEnabled(f){(this.enabled=f)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled", "true")}};var S2O={EV:2,Yh:1,sJ:0,2:"AUDIO_TRACK",1:"VOICE_BOOST",0:"STABLE_VOLUME"};var NX=["en-CA","en","es-MX","fr-CA"];var EMM=class extends Ih{constructor(f,e){super(f.Y("web_fix_annotations")?"Sobreposi\u00e7\u00f5es com anota\u00e7\u00f5es":"Anota\u00e7\u00f5es",g.X7.SH);this.Z=f;this.rA=e;this.G=!1;f.Y("web_settings_menu_icons")&&(e=f.Y("delhi_modern_web_player_icons")?{L:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]},this.setIcon(e));this.D(f,"videodatachange",this.gi);this.D(f,"onApiChange",this.gi);this.subscribe("select",this.onSelect,this);this.gi()}isLoaded(){const f=g.V9(this.Z.iC());return f!==void 0&&f.loaded}gi(){!this.Z.Y("web_fix_annotations")&&g.V9(this.Z.iC())===void 0||this.Z.getPresentingPlayerType()===3?this.G&&(this.rA.ij(this),this.G=!1):this.G||(this.rA.jf(this),this.G=!0);this.Z.Y("web_fix_annotations")?this.C(this.Z.Y("web_fix_annotations")&&!!this.Z.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.isAnnotationsEnabled): this.C(this.isLoaded())}onSelect(f){this.Z.Y("web_fix_annotations")||this.isLoaded();f?this.Z.loadModule("annotations_module"):this.Z.unloadModule("annotations_module");this.Z.publish("annotationvisibility",f)}bY(){this.G&&this.rA.ij(this);super.bY()}};var Qj5=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);f.addEventListener("settingsMenuInitialized",()=>{const e=new EMM(this.api,this.api.iT());g.A(this,e)})}};var Tyk={[0]:f=>hak(f,e=>e.Z_?.id), [2]:f=>D5(f,S5), [3]:f=>D5(f,Er), [4]:f=>D5(f,TJ), [1]:f=>D5(f,QD)},xUG=class{constructor(f){this.C={}; this.J={};this.aX={nu9:()=>this.C}; this.videoData=f;const e=f.J?.J;e&&e.length>0?this.G=e:(f=f.getAvailableAudioTracks(),this.G=f.length>0?uqw(f):[]);for(const B of $E)this.C[B]=Tyk[B](this.G);this.j6()}X3(f){return this.J[f]}j6(){let f=this.G;const e={};for(const B of $E)if(this.C[B]){f=i$[B].Cg(f,this.videoData);for(const n of $E)e[n]!==void 0||yG(f,i$[n].ZZ)||(e[n]=i$[B].Sn);e[B]===void 0&&(e[B]=0)}else e[B]=1;this.J=e}},$E=[0,1,2,3,4],i$={[0]:{Sn:2,ZZ:NsO,Cg:VSm},[2]:{Sn:4,ZZ:S5,Cg:lc6},[3]:{Sn:5,ZZ:Er,Cg:FIl},[1]:{Sn:3,ZZ:QD, Cg:mjw},[4]:{Sn:6,ZZ:TJ,Cg:Ujk}};var D$6=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);const e=this.api.Y("html5_enable_audio_quality_setting_feature");X(this.api,"getUserAudioQualitySetting",()=>e?this.getUserAudioQualitySetting():2); X(this.api,"setUserAudioQualitySetting",B=>{e&&this.setUserAudioQualitySetting(B)}); X(this.api,"hasHqaAudioTrack",()=>e?this.hasHqaAudioTrack():!1); X(this.api,"getAudioQualitySettingState",()=>e?this.api.X3(4):1); this.Go=oAw();this.updateEnvironmentData()}getUserAudioQualitySetting(){return this.Go}setUserAudioQualitySetting(f){this.api.ri("aqs_set",{setting:f});g.yT("yt-player-audio-quality-setting",f,3122064E3);f!==this.Go&&(this.Go=f,this.updateEnvironmentData(),this.hasHqaAudioTrack()&&this.api.QP(),this.api.j6())}hasHqaAudioTrack(){const f=this.api.getVideoData()?.J?.G;return f?yG(f,e=>TJ(e)):!1}updateEnvironmentData(){this.api.S().Go=this.Go}};var Jm0=class extends Pq{constructor(f){super(f);X(this.api,"getAudioTrackState",()=>this.api.X3(0))}};var MPk=class extends g.y{constructor(f){super({L:"button",y9:["ytp-button","ytp-autonav-toggle"],O:{title:f.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},j:[{L:"div",B:"ytp-autonav-toggle-button-container",j:[{L:"div",B:"ytp-autonav-toggle-button",O:{"aria-checked":"true"}}]}]});this.Z=f;this.J=[];this.C=!1;this.isChecked=!0;f.createClientVe(this.element, this,113681);this.D(f,"presentingplayerstatechange",this.G);this.listen("click",this.onClick);this.J.push(this.D(this.Z,"videodatachange",this.G));this.J.push(this.D(this.Z,"videoplayerreset",this.G));this.J.push(this.D(this.Z,"onPlaylistUpdate",this.G));this.J.push(this.D(this.Z,"autonavchange",this.V));f.Y("delhi_fast_follow_autonav_toggle")&&this.element.classList.add("delhi-fast-follow-autonav-toggle");HF(f,this.element,this);this.G()}G(){var f;if(f=this.Z.getPresentingPlayerType()!==3&&g.zJ(this.Z)&& this.Z.AL().getPlayerSize().width>=400)f=this.EK(),f=this.Z.S().Y("client_respect_autoplay_switch_button_renderer")?!!f.autoplaySwitchButtonRenderer:!!f.getWatchNextResponse()?.contents?.twoColumnWatchNextResults?.autoplay?.autoplay!==!1;f?this.C||(this.C=!0,this.FG(this.C),f=this.EK(),this.V(f.autonavState),this.Z.logVisibility(this.element,this.C)):(this.C=!1,this.FG(this.C))}V(f){gs5(this)?this.isChecked=f!==1:((f=f!==1)||(f=g.ni(),f=g.UV("web_autonav_allow_off_by_default")&&!f.jI(141)&&g.Q("AUTONAV_OFF_BY_DEFAULT")? !1:!f.jI(140)),this.isChecked=f);SPM(this)}onClick(){this.isChecked=!this.isChecked;this.Z.Dp(this.isChecked?2:1);SPM(this);if(gs5(this)){const f=this.EK().autoplaySwitchButtonRenderer;this.isChecked&&f?.onEnabledCommand?g.yW(this.Z,"innertubeCommand",f.onEnabledCommand):!this.isChecked&&f?.onDisabledCommand&&g.yW(this.Z,"innertubeCommand",f.onDisabledCommand)}this.Z.logClick(this.element)}getValue(){return this.isChecked}EK(){return this.Z.getVideoData({playerType:1})}};var GMw=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);this.events.D(f,"standardControlsInitialized",()=>{const e=new MPk(f);g.A(this,e);f.T7(e,"RIGHT_CONTROLS_LEFT")})}};var Es5=class extends Ih{constructor(f){super(f.Y("web_player_use_cinematic_label_2")?"Ambiente integrado":"Ilumina\u00e7\u00e3o cinematogr\u00e1fica",g.X7.cZ);this.Z=f;this.G=!1;this.J=new g.T6(()=>{g.$i(this.element,"ytp-menuitem-highlighted")},0); this.rA=f.iT();f=f.Y("delhi_modern_web_player_icons")?{L:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(f);this.subscribe("select",this.V,this);this.listen(VJ,this.W);g.A(this,this.J)}gi(f){f?this.G||(this.rA.jf(this),this.G=!0):this.G&&(this.rA.ij(this), this.G=!1);this.G&&this.C(HBk())}W(){g.$i(this.element,"ytp-menuitem-highlight-transition-enabled")}V(f){var e=HBk();f!==e&&(e=g.ni(),Li(190,f),Li(192,!0),e.save(),g.yW(this.Z,"cinematicSettingsToggleChange",f))}bY(){this.G&&this.rA.ij(this);super.bY()}};var x$5=class extends Pq{constructor(f){super(f);this.C=!1;f.addEventListener("settingsMenuInitialized",()=>{QwH(this)}); f.addEventListener("highlightSettingsMenu",e=>{QwH(this);var B=this.menuItem;e==="menu_item_cinematic_lighting"&&(g.PW(B.element,"ytp-menuitem-highlighted"),g.PW(B.element,"ytp-menuitem-highlight-transition-enabled"),B.J.start())}); X(f,"updateCinematicSettings",e=>{this.updateCinematicSettings(e)})}updateCinematicSettings(f){this.C=f; this.menuItem?.gi(f);this.api.publish("onCinematicSettingsVisibilityChange",f)}};var WYm=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);this.events.D(f,"applicationvideodatachange",(e,B)=>{B=B.clipConfig;e==="dataloaded"&&B&&B.startTimeMs!=null&&B.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(B.startTimeMs)),endTimeMs:Math.floor(Number(B.endTimeMs)),postId:B.postId,type:"clips"})})}};var sj5=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);X(f,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));X(f,"setCreatorEndscreenHideButton",this.C.bind(this));this.Y("web_fix_annotations")&&this.events.D(f,"annotationvisibility",e=>{this.setCreatorEndscreenVisibility(!e);this.hideButton&&g.sm(this.hideButton,e)})}setCreatorEndscreenVisibility(f){l_(this.api.iC())?.FG(f)}C(f){this.hideButton=f; f=e=>{e==="creatorendscreen"&&(e=l_(this.api.iC()))&&e.gW(this.hideButton)}; this.events.D(this.api,"modulecreated",f);f("creatorendscreen")}};var XvM=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);this.events.D(f,"videodatachange",()=>{var e=this.api.getRootNode();const B=this.api.S();g.PW(e,"ytp-delhi-modern");B.Y("delhi_modern_web_player_icons")&&g.PW(e,"ytp-delhi-modern-icons");B.Y("delhi_modern_web_player_horizontal_volume_controls")&&g.PW(e,"ytp-delhi-horizontal-volume-controls");B.Y("delhi_modern_web_player_compact_controls")&&g.PW(e,"ytp-delhi-modern-compact-controls");B.Y("delhi_modern_web_player_big_mode_consistent_pill_height")&& g.PW(e,"ytp-big-mode-consistent-pill-height");switch(UC(B.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.PW(e,"ytp-delhi-modern-with-luminosity");break;case "difference":g.PW(e,"ytp-delhi-modern-with-difference");break;case "exclusion":g.PW(e,"ytp-delhi-modern-with-exclusion")}e=this.api.isHdr()||this.api.Y("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";this.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",e);Tsw(this)}); this.events.D(f,"resize",()=>{Tsw(this)})}};var ymH=class extends Ih{constructor(f,e,B,n,r){const L=f.Y("html5_enable_new_audio_settings_menu");super("Volume est\u00e1vel",L?S2O.sJ:g.X7.sJ);this.Z=f;this.W=e;this.J=B;this.hasDrcAudioTrack=n;this.getDrcState=r;this.V=this.enableNewAudioSettingsMenu=this.G=!1;g.PW(this.element,"ytp-drc-menu-item");this.rA=(this.enableNewAudioSettingsMenu=L)?f.iT().O7:f.iT();f.Y("html5_enable_voice_boost")?(this.V=!0,this.D(f,"onFilterAudioFeatures",this.Mq)):f.addEventListener("videodatachange",this.Mq.bind(this)); f.Y("mta_drc_mutual_exclusion_removal")&&this.D(f,"onPlaybackAudioChange",this.Mq);f.createClientVe(this.element,this,273317);this.listen("click",this.X);e=this.J()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(f=f.Y("delhi_modern_web_player_icons")?{L:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]},this.setIcon(f));this.subscribe("select",this.U,this);this.enableNewAudioSettingsMenu||this.V?this.Mq():(this.setEnabled(this.hasDrcAudioTrack()),this.C(e),this.rA.jf(this))}U(f){this.W(f?1:0)}Mq(){if(this.enableNewAudioSettingsMenu|| this.V){var f=this.Z.getPresentingPlayerType();f===2||f===3?this.G&&(this.G=!1,this.rA.ij(this)):(f=this.getDrcState(),f!==1?(f===0?(this.C(this.J()===1),this.setEnabled(!0)):(this.C(!1),this.setEnabled(!1)),this.G||(this.rA.jf(this),this.G=!0)):this.G&&(this.rA.ij(this),this.G=!1))}else{f=this.hasDrcAudioTrack();const e=this.J()===1&&f;this.C(e);this.setEnabled(f)}}bY(){this.rA.ij(this);super.bY()}X(){this.Z.logClick(this.element)}};var Pfg=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);f.Y("html5_show_drc_toggle")&&f.addEventListener("settingsMenuInitialized",()=>{this.menuItem||(this.menuItem=new ymH(this.api,this.setDrcUserPreference.bind(this),this.getDrcUserPreference.bind(this),this.G.bind(this),this.getDrcState.bind(this)),g.A(this,this.menuItem))}); X(this.api,"setDrcUserPreference",e=>{this.setDrcUserPreference(e)}); X(this.api,"getDrcUserPreference",()=>this.getDrcUserPreference()); X(this.api,"hasDrcAudioTrack",()=>this.G()); X(this.api,"getDrcState",()=>this.getDrcState()); this.C=g.IB("yt-player-drc-pref")??1;this.updateEnvironmentData()}getDrcUserPreference(){return this.C}setDrcUserPreference(f){this.api.ri("drc_set",{pref:f});g.yT("yt-player-drc-pref",f,31536E3);f!==this.C&&(this.C=f,this.updateEnvironmentData(),this.G()&&this.api.QP(),this.api.j6())}updateEnvironmentData(){this.api.S().qj=this.C===1}G(){const f=this.api.getVideoData()?.J?.G;if(!f)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.Y("mta_drc_mutual_exclusion_removal")){const e=this.api.XK()?.Z_?.id; return yG(f,B=>B.audio.C&&B.Z_?.id===e)}return yG(f,e=>e.audio?.C===!0)}getDrcState(){return this.api.X3(3)}};var IUk=class extends Pq{constructor(f){super(f);this.C={};this.events=new g.ep(f);g.A(this,this.events);this.events.D(f,"videodatachange",()=>{this.onVideoDataChange()}); this.events.D(f,g.kk("embargo"),e=>{this.api.U4(!0);var B=this.C[e.id]??[];for(const n of B)this.api.hideControls(),this.api.a6("auth",2,"This video isn't available in your current playback area",Go({embargoed:1,id:e.id,idx:e.G,start:e.start})),(B=n.embargo?.onTrigger)&&g.yW(this.api,"innertubeCommand",B)})}onVideoDataChange(){const f=this.api.getVideoData(); this.api.sK("embargo",1);const e=f?.Fo.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");e?.length?Djg(this,e.filter(B=>B.onEnter?.some(this.G))):f?.cueRanges&&Djg(this,f.cueRanges.filter(B=>B.onEnter?.some(this.G)))}G(f){return f.embargo!==void 0}bY(){super.bY(); this.C={}}};var $$g=class extends Pq{constructor(f){super(f);this.C=[];this.events=new g.ep(f);g.A(this,this.events);X(f,"addEmbedsConversionTrackingParams",e=>{this.addEmbedsConversionTrackingParams(e)}); this.events.D(f,"veClickLogged",e=>{this.api.hasVe(e)&&(e=e.visualElement.getAsJspb(),e=g.BU(e,2),this.C.push(e))})}addEmbedsConversionTrackingParams(f){var e=this.api.S(); const B=e.widgetReferrer,n=e.P4,r=this.C;let L="";const d=e.getWebPlayerContextConfig();d&&(L=d.embedsIframeOriginParam||"");B.length>0&&(f.embeds_widget_referrer=B);n.length>0&&(f.embeds_referring_euri=n);e.V&&L.length>0&&(f.embeds_referring_origin=L);d&&d.embedsFeature&&(f.feature=d.embedsFeature);r.length>0&&(e.Y("embeds_web_enable_lite_experiment_control_arm_logging")?r.unshift(28572):g.uz(g.sC(e))&&r.unshift(159628),e=r.join(","),e=g.Cs()?e:g.oU(e,4),f.source_ve_path=e);this.C.length=0}};var iW5=class extends Pq{constructor(f){super(f);X(f,"isEmbedsShortsMode",()=>f.isEmbedsShortsMode()); X(f,"getReelItemWatchResponse",()=>f.getVideoData({playerType:1})?.getReelItemWatchResponse()??null)}};var fQm=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);this.events.D(f,"initialvideodatacreated",e=>{mW(FC(),16623);this.C=g.be();var B=f.S().K5&&!e.Mk;DX(e)&&B?(mW(FC(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),e.getWatchNextResponse()&&(B=e.getWatchNextResponse()?.trackingParams)&&gR(B),e.getPlayerResponse()&&(e=e.getPlayerResponse()?.trackingParams)&&gR(e)):(mW(FC(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}), e.getEmbeddedPlayerResponse()&&(e=e.getEmbeddedPlayerResponse()?.trackingParams)&&gR(e))}); this.events.D(f,"loadvideo",()=>{mW(FC(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:this.C})}); this.events.D(f,"cuevideo",e=>{e===1&&mW(FC(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:this.C})}); this.events.D(f,"largeplaybuttonclicked",e=>{mW(FC(),27240,e.visualElement)}); this.events.D(f,"playlistnextbuttonclicked",e=>{mW(FC(),27240,e.visualElement)}); this.events.D(f,"playlistprevbuttonclicked",e=>{mW(FC(),27240,e.visualElement)}); this.events.D(f,"playlistautonextvideo",()=>{mW(FC(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}};var Ji5=class extends g.$0{constructor(f,e){super();this.C=null;this.J=e;e=[];for(let B=0;B<=100;B++)e.push(B/100);e={threshold:e,trackVisibility:!0,delay:1E3};(this.G=window.IntersectionObserver?new IntersectionObserver(B=>{B=B[B.length-1];let n=null;typeof B.isVisible==="undefined"?document.visibilityState==="visible"&&B.isIntersecting&&B.intersectionRatio>0?n=B.intersectionRatio:document.visibilityState==="hidden"?n=0:n=null:n=B.isVisible?B.intersectionRatio:0;n!=null&&(n=Math.max(n,0),n=Math.min(n, 1));this.C=n;typeof this.J==="function"&&this.J(this.C)},e):null)&&this.G.observe(f)}bY(){super.bY(); this.C=null;this.G&&this.G.disconnect()}};var efY=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);this.events.D(f,"applicationInitialized",()=>{MSM(this)})}};var Bhm=class extends Pq{constructor(f){super(f);X(this.api,"dismissFeaturedProductOverlay",()=>{this.dismissFeaturedProductOverlay()})}dismissFeaturedProductOverlay(){this.api.publish("featuredproductdismissed")}};var nJY=class extends g.y{constructor(f){super({L:"div",y9:["ytp-player-content","ytp-iv-player-content"],j:[{L:"div",B:"ytp-free-preview-countdown-timer",j:[{L:"span",Ga:"{{label}}"},{L:"span",B:"ytp-free-preview-countdown-timer-separator",Ga:"\u2022"},{L:"span",Ga:"{{duration}}"}]}]});this.api=f;this.C=null;this.J=this.G=0;this.D(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}show(){super.show();this.api.logVisibility(this.element,!0)}stopTimer(){this.C&& (this.C.dispose(),this.C=null)}onVideoDataChange(f){var e=this.api.getVideoData()?.getPlayerResponse()?.playabilityStatus;e&&(e=GSk(e),this.api.getPlayerStateObject().C(128)||f==="dataloaderror"||!e?(this.G=0,this.stopTimer(),this.hide()):(f=(e.remainingTimeSecs||0)*1E3,f>0&&(this.show(),this.updateValue("label",Ou(e.label)),WIM(this,f))))}bY(){this.stopTimer();super.bY()}};var rvm=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);this.events.D(f,"basechromeinitialized",()=>{this.C=new nJY(f);g.A(this,this.C);g.qX(f,this.C.element,4);this.C.hide()})}};var Lsm=class extends g.y{constructor(f){super({L:"button",y9:["ytp-fullerscreen-edu-button","ytp-button"],j:[{L:"div",y9:["ytp-fullerscreen-edu-text"],Ga:"Role para ver detalhes"},{L:"div",y9:["ytp-fullerscreen-edu-chevron"],j:[U_0()]}],O:{"data-priority":"2"}});this.wi=f;this.fade=new g.Ob(this,250,void 0,100);this.G=this.C=!1;f.createClientVe(this.element,this,61214);g.A(this,this.fade);this.D(f,"fullscreentoggled",this.gi);this.D(f,"presentingplayerstatechange",this.gi);this.listen("click",this.onClick); this.gi()}V(f){g.h(this.element,"ytp-fullerscreen-edu-button-subtle",f);f&&!this.G&&(this.wi.Y("player_tooltip_data_title_killswitch")?this.element.setAttribute("title","Role para ver detalhes"):this.element.setAttribute("data-tooltip-title","Role para ver detalhes"),HF(this.wi,this.element,this),this.G=!0)}onClick(){this.wi.logClick(this.element);g.yW(this.wi,"onFullerscreenEduClicked")}J(f){this.C=f;this.gi()}gi(){this.wi.isFullscreen()?this.C?this.fade.hide():this.fade.show():this.hide();this.wi.logVisibility(this.element, this.wi.isFullscreen()&&!this.C)}};var dAm=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);X(this.api,"updateFullerscreenEduButtonSubtleModeState",B=>{this.updateFullerscreenEduButtonSubtleModeState(B)}); X(this.api,"updateFullerscreenEduButtonVisibility",B=>{this.updateFullerscreenEduButtonVisibility(B)}); const e=f.S();f.Y("external_fullscreen_with_edu")&&e.externalFullscreen&&iD(e)&&e.controlsType==="1"&&this.events.D(f,"standardControlsInitialized",()=>{this.C=new Lsm(f);g.A(this,this.C);f.T7(this.C)})}updateFullerscreenEduButtonSubtleModeState(f){this.C?.V(f)}updateFullerscreenEduButtonVisibility(f){this.C?.J(f)}};var tdG=class extends g.y{constructor(f){super({L:"div",B:"ytp-gated-actions-overlay",j:[{L:"div",B:"ytp-gated-actions-overlay-background",j:[{L:"div",B:"ytp-gated-actions-overlay-background-overlay"}]},{L:"button",y9:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],O:{"aria-label":"Fechar"},j:[g.Hl()]},{L:"div",B:"ytp-gated-actions-overlay-bar",j:[{L:"div",B:"ytp-gated-actions-overlay-text-container",j:[{L:"div",B:"ytp-gated-actions-overlay-title",Ga:"{{title}}"},{L:"div",B:"ytp-gated-actions-overlay-subtitle", Ga:"{{subtitle}}"}]},{L:"div",B:"ytp-gated-actions-overlay-button-container"}]}]});this.api=f;this.background=this.JL("ytp-gated-actions-overlay-background");this.G=this.JL("ytp-gated-actions-overlay-button-container");this.C=[];this.D(this.JL("ytp-gated-actions-overlay-miniplayer-close-button"),"click",()=>{g.yW(this.api,"onCloseMiniplayer")}); this.hide()}};var HyC=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);this.C=new tdG(this.api);g.A(this,this.C);this.events.D(f,"videodatachange",()=>{const e=this.api.getVideoData()?.Fw;var B=this.C;if(e){B.update({title:e.title?.content||"",subtitle:e.subtitle?.content||""});var n=e.thumbnail;let r="none";if(n?.sources){let L=0;for(const d of n.sources)d.width&&d.url&&d.width>L&&(L=d.width,r=`url(${d.url})`)}B.background.style.backgroundImage=r;XuG(B,e.actionButtons||[]); B.show()}else B.hide()}); g.qX(this.api,this.C.element,4)}};var k1Y=class extends Pq{constructor(f){super(f);Il(this.api,"getSphericalProperties",()=>this.getSphericalProperties()); Il(this.api,"setSphericalProperties",(...e)=>{this.setSphericalProperties(...e)}); PY(this.api,"getSphericalProperties",()=>this.api.getPresentingPlayerType()===2?{}:this.getSphericalProperties()); PY(this.api,"setSphericalProperties",(...e)=>{this.api.getPresentingPlayerType()!==2&&this.setSphericalProperties(...e)})}getSphericalProperties(){const f=g.Ry(this.api.iC()); return f?f.getSphericalProperties():{}}setSphericalProperties(f){if(f){var e=g.Ry(this.api.iC());e&&e.setSphericalProperties(f,!0)}}};var CZm=class extends Pq{constructor(f){super(f);X(f,"createClientVe",this.createClientVe.bind(this));X(f,"createServerVe",this.createServerVe.bind(this));X(f,"destroyVe",this.destroyVe.bind(this));X(f,"hasVe",this.hasVe.bind(this));X(f,"logClick",this.logClick.bind(this));X(f,"logVisibility",this.logVisibility.bind(this));X(f,"setTrackingParams",this.setTrackingParams.bind(this))}createClientVe(f,e,B,n=!1){this.api.createClientVe(f,e,B,n)}createServerVe(f,e,B=!1){this.api.createServerVe(f,e,B)}setTrackingParams(f, e){this.api.setTrackingParams(f,e)}logClick(f,e){this.api.logClick(f,e)}logVisibility(f,e,B){this.api.logVisibility(f,e,B)}hasVe(f){return this.api.hasVe(f)}destroyVe(f){this.api.destroyVe(f)}};var w_M=class{constructor(f,e){this.Lh=f;this.policy=e;this.playbackRate=1}setPlaybackRate(f){this.playbackRate=Math.max(1,f)}getPlaybackRate(){return this.playbackRate}};var vJd=class{constructor(f,e,B,n){this.PS=f;this.fq=e;this.policy=B;this.logger=n;this.rU=[];this.GD=[];this.C=-1;this.D_=null;this.N=this.timestampOffset=0;this.G=10;this.W=new Set;this.aX={u0:r=>this.u0(r)}; this.V=e.sA?0:1;B.lw>0&&(this.G=B.lw)}eI(f){this.W.add(f.info.YA);this.C=fPM(this,this.GD,this.rU,f,this.C);this.J=f;this.N=(0,g.T)()}X(){if(this.GD.length===0||this.policy.KA&&this.C<0)return null;var f=this.GD[this.C]?this.GD[this.C].formatId:null;return f?(f=this.fq.J.get(rG(f)))?f.info:null:null}Ed(f){enY(this,this.GD,"og");Bkk(this,f);enY(this,this.GD,"trim");const {GD:e,rU:B}=n9k(this);f=[];for(let n=0;n0){const k=x5(t,L);k>=0&&(H=(t.end(k)-L+.1)*1E3)}f.push({formatId:g.Jk(r.info.vS.info,this.fq.sA),BE:r.info.BE,sequenceNumber:r.info.YA+this.V,qF:d,RB:r.info.G,jm:H})}return{GD:e,v9:f}}Cq(f,e){e?.JW||(this.rU=[]);this.policy.KA?(f=g.ax(this.GD,{startTimeMs:f*1E3},(B,n)=>B.startTimeMs-n.startTimeMs),this.C!==f&&(this.C=-1,this.J=void 0)):(Bkk(this,!0), this.C=$j5(this.GD,f*1E3))}cS(f){this.D_=f}WS(){return this.J?.info}u0(f){const e=g.Jk(f.info.vS.info,this.fq.sA),B=f.info.YA+this.V; var n=f.info.startTime*1E3;if(this.policy.Fl)try{n=this.policy.Fl?g.m6(f)*1E3:f.info.startTime*1E3}catch(d){Math.random()>.99&&this.logger&&(n=rR(f.G).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:f.info.Pd(),encodedDataView:g.ON(n,4)})),n=f.info.startTime*1E3}const r=f.info.clipId;let L=this.policy.Fl?g.plH(f)*1E3:f.info.duration*1E3;this.policy.Fl&&(n<0||L<0)&&(this.logger&&(this.logger({missingSegInfo:f.info.Pd(),startTimeMs:n,durationMs:L}),this.policy.At||(n<0&&(n=f.info.startTime* 1E3),L<0&&(L=f.info.duration*1E3))),this.policy.At&&(n<0&&(n=f.info.startTime*1E3),L<0&&(L=f.info.duration*1E3)));return{formatId:e,YA:B,startTimeMs:n,clipId:r,Yk:L}}U(){this.GD=[];this.rU=[];this.W.clear();this.C=-1;this.J=void 0}K(){this.J=void 0}vB(f){this.timestampOffset=f}A(f){return this.W.has(f)}};var by5=class{constructor(f,e,B,n,r){this.loader=f;this.fq=e;this.videoTrack=B;this.audioTrack=n;this.policy=r;this.seekCount=this.targetTime=0;this.V=!1;this.J=null;this.G=0;this.C=this.fq.isManifestless&&!this.fq.dC}seek(f,e){f!==this.targetTime&&(this.seekCount=0);this.targetTime=f;const B=this.videoTrack.C,n=this.audioTrack.C,r=this.audioTrack.D_,L=dzY(this,this.videoTrack,f,this.videoTrack.D_,e);e=dzY(this,this.audioTrack,this.policy.xA?f:L,r,e);f=Math.max(f,L,e);this.V=!0;this.fq.isManifestless&& (tDM(this,this.videoTrack,B),tDM(this,this.audioTrack,n));return f}isSeeking(){return this.V}x$(f){this.G=f}},Lw5=2/24;var Zy5=0;var f4,eQ=class{constructor(){this.data=new Uint8Array(2048);this.pos=0;f4||(f4=vA("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}add(f){if(this.pos+20>this.data.length){const e=new Uint8Array(this.data.length*2);e.set(this.data);this.data=e}for(;f>31;)this.data[this.pos++]=f4[(f&31)+32],f>>=5;this.data[this.pos++]=f4[f|0]}VD(){return g.kq(this.data.subarray(0,this.pos))}reset(){this.pos=0}};var Rfd=class{constructor(f,e){this.Kq=f;this.requestNumber=++Zy5;this.C=this.now();this.N=this.Ed=NaN;this.X=this.C;this.J=this.UE=this.W=0;this.U=this.C;this.Ch=this.eI=this.uY=this.Cc=this.D2=this.PS=this.G=this.V=0;this.A=this.isActive=!1;this.lC=this.Q3=0;this.aX={CRL:()=>this.ut}; this.Lh=e.Lh;this.snapshot=Iu(this.Lh);this.policy=this.Lh.G;this.m5=!!e.m5;this.dg=e.dg;this.Gf=e.Gf||0;this.JR=e.JR||0;e.Ho&&(this.Lq=new eQ);this.ut=e.ut??!1;this.m5||F_C(this.Lh)}Vl(){this.Ed=this.now();v9g(this.Lh,this.Ed);this.Kq.Vl()}NN(f,e){const B=this.policy.G?(0,g.T)():0;L9(this,f,e);f-this.U<10&&this.G>0||this.cS(f,e);this.Kq.NN(f,e);this.policy.G&&(f=(0,g.T)()-B,this.lC+=f,this.Q3=Math.max(f,this.Q3))}cS(f,e){const B=(f-this.U)/1E3,n=e-this.J;this.m5||($h(this.Lh,B,n),this.dg(B,n));this.U= f;this.J=e}oV(){this.PS&&bj6(this);this.Kq.oV()}jG(f){this.PS||(this.PS=this.W-this.UE+f,this.D2=this.W,this.Cc=this.X)}Cq(f=this.X,e=this.W){this.G>0||(this.N=f,this.G=e,this.A=this.isActive=!0)}tL(){return this.JR||2}Ys(){}K(){const f={rn:this.requestNumber,rt:(this.X-this.C).toFixed(),lb:this.W,stall:(1E3*this.V).toFixed(),ht:(this.Ed-this.C).toFixed(),elt:(this.N-this.C).toFixed(),elb:this.G,d:this.Lq?.VD()};this.url&&yiw(f,this.url);this.policy.G&&(f.mph=this.Q3.toFixed(),f.tph=this.lC.toFixed()); f.ulb=this.uY;f.ult=this.eI;return f}now(){return(0,g.T)()}deactivate(){this.isActive&&(this.isActive=!1)}};var e6=class extends Rfd{constructor(f,e){super(f,e);this.hE=this.EE=!1;this.Z9=this.WS=Infinity;this.BS=NaN;this.mS=!1;this.IA=NaN;this.hF=this.Fl=this.MC=0;this.HH=e.HH||1;this.Oh=e.Oh||this.HH;this.r$=e.r$;this.YA=e.YA;this.IM=e.IM;RnY(this);this.Mk(this.C);this.hR=(this.IA-this.C)/1E3}K(){const f=super.K();f.pb=this.HH;f.pt=(1E3*this.hR).toFixed();f.se=this.hF;return f}SC(){const f=this.Kq;this.kA||(this.kA=f.SC?f.SC():1);return this.kA}Wx(){return this.r$?this.SC()!==1:!1}uC(f,e,B){if(!this.EE){this.EE= !0;if(!this.m5){L9(this,f,e);this.cS(f,e);var n=this.SC();this.hF=B;if(!this.m5)if(n===2){n=f-this.N0)||tJ(this,n,e),this.G>0&&i8(this.Lh,e,this.V));f=(f-this.C)/1E3||.01;this.policy.K&&!(this.G>0)||fM(this.Lh, f,this.J,Kwk(this),this.ut)}this.deactivate()}}J0(f,e,B){B&&(this.kA=2);f<0&&this.JR&&(f=this.JR);e?this.MC+=f:this.Fl+=f}tL(){return this.Fl||this.MC||super.tL()}cS(f,e){const B=(f-this.U)/1E3,n=e-this.J,r=this.SC();this.isActive?r===1&&((n>0||this.policy.W)&&(B>.2||n<1024)?(this.V+=B,n>0&&B>.2&&tJ(this,this.Gf?B:.05,n),this.hE=!0):n>0&&(tJ(this,B,n),this.hE=!0)):e&&e>=this.policy.C&&this.Cq(f,e);super.cS(f,e)}xA(f){if(!this.m5){L9(this,f,this.W);var e=(f-this.C)/1E3;this.SC()!==2&&this.G>0&&(this.V+= (f-this.U)/1E3,i8(this.Lh,this.J,this.V));fM(this.Lh,e,this.J,Kwk(this),this.ut,!0);f=(f-this.U)/1E3;$h(this.Lh,f,0);this.dg(f,0)}}Cq(f=this.X,e=this.W){if(!(this.G>0)&&(super.Cq(f,e),this.SC()===1)){e=(this.Ed-this.C)/1E3;var B=(f-this.Ed)/1E3;this.r$&&Hj(this,this.now());this.mS||this.m5||(this.JR&&(B=Math.max(0,B-this.JR)),f=this.Lh,f.K.fB(1,e),f.eI.fB(1,B))}}Wd(){this.r$&&Hj(this,this.now());return this.BS}EY(){var f;if(f=this.J>this.Oh)f=(f=this.J)?f>=this.policy.C:!1;return f}G6(){return this.IA}Mk(f= this.now()){let e;if(this.r$){Hj(this,f);if(this.kA?this.Wx():this.WS!==this.Z9){if(e=this.Z9,f0?B+f:B+Math.max(f,e)}qC(){return this.now()-this.N}Yp(){return(this.J-this.G)*1E3/this.qC()||0}sE(){return this.N}};var BH=class{constructor(f){this.Kq=f;this.C=new bg}feed(f){fe(this.C,f);this.XL()}XL(){if(this.V){if(!this.C.totalLength)return;const {OU:e,ZF:B}=this.C.split(this.J-this.G);if(!this.Kq.jG(this.V,e,this.G,this.J))return;this.G+=e.totalLength;this.C=B;this.G===this.J&&(this.V=this.J=this.G=void 0)}for(;;){var f=0;let e,B;[e,f]=pVM(this.C,f);[B,f]=pVM(this.C,f);if(e<0||B<0)break;if(!(f+B<=this.C.totalLength)){if(!(this.Kq.jG&&f+1<=this.C.totalLength))break;({ZF:f}=this.C.split(f));this.Kq.jG(e,f,0, B)&&(this.V=e,this.G=f.totalLength,this.J=B,this.C=new bg([]));break}const {OU:n,ZF:r}=this.C.split(f).ZF.split(B);this.Kq.DT(e,n);this.C=r}}dispose(){this.C=new bg}};var KsO=class{constructor(f,e){this.info=f;this.callback=e;this.state=1;this.k_=this.DU=!1;this.T8=null}t6(){return 0}pg(){return null}V6(){return null}hj(){return this.state>=1}isComplete(){return this.state>=3}Ik(){return this.state===5}onStateChange(){}Hd(f){const e=this.state;this.state=f;this.onStateChange(e);this.callback&&this.callback(this,e)}BN(f){f&&this.state{f+= `${e.Pd()}.`}); return f.slice(0,-1)}dispose(){this.HS()||(this.info.T6[0].vS.Ed=!1,this.Hd(-1))}P_(){return 0}};var j8g=class{constructor(f,e,B,n={}){this.policy=e;this.Kq=B;this.status=0;this.C=new bg;this.G=0;this.HS=this.V=this.J=!1;this.xhr=new XMLHttpRequest;this.xhr.open(n.method||"GET",f);if(n.headers){f=n.headers;for(const r of Object.keys(f))this.xhr.setRequestHeader(r,f[r])}this.xhr.withCredentials=!0;this.xhr.onreadystatechange=()=>this.F$(); this.xhr.onload=()=>this.onDone(); this.xhr.onerror=()=>this.onError(); this.xhr.fetch(r=>{this.C.append(r);this.G+=r.length;r=(0,g.T)();this.Kq.NN(r,this.G)},()=>{},n.body||null)}F$(){this.xhr.status&&(this.status=this.xhr.status); this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.Kq.Vl()}onError(){this.J=!0;this.onDone()}onDone(){this.HS||(this.V=!0,this.Kq.oV())}Xh(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED}getResponseHeader(f){try{return this.xhr.getResponseHeader(f)}catch{return""}}VI(){return+this.getResponseHeader("content-length")}jw(){return this.G}lX(){return this.status>=200&&this.status<300&&!!this.G}U_(){return this.C.totalLength>0}VX(){const f=this.C;this.C=new bg;return f}EW(){return this.C}abort(){this.HS= !0;this.xhr.abort()}n6(){return!0}XQ(){return this.J}jU(){return""}};var qSk=class{constructor(f,e){this.G=(new TextEncoder).encode(f);this.C=(new TextEncoder).encode(e)}};var Ac5=class{constructor(f,e){this.C=f;this.Kq=e;this.loaded=this.status=0;this.error="";f=ta(this.C.get("range")||"");if(!f)throw Error("bad range");this.range=f;this.G=new bg;this.run().then(()=>{this.Kq.oV()},B=>{this.error=`${B}`||"unknown_err"; this.Kq.oV()})}async run(){this.status=200; const f=this.C.get("docid"),e=rr(this.C.get("fmtid")||""),B=this.C.get("lmt")||"0",n=+(this.C.get("csz")||0);if(!f||!e||!n)throw Error("Invalid local URL");let r;this.C.get("ck")&&this.C.get("civ")&&(r=new qSk(this.C.get("ck"),this.C.get("civ")));const L=this.range;var d=Math.floor(L.start/n);const t=Math.floor(L.end/n);for(;d<=t;d++){var H=await lfg(f,e,B,d,r);if(H===void 0)throw Error("invariant: data is undefined");var k=d*n;const C=Math.max(0,L.start-k);k=Math.min(L.end+1,(d+1)*n)-(C+k);H=new Uint8Array(H.buffer, C,k);this.G.append(H);this.loaded+=k;this.loaded{if(r)if(this.status=r.status,r.ok&&r.body&&this.status!==204)this.status=this.status||242,this.J=r.body.getReader(),this.HS()?this.J.cancel().catch(()=>{}):(this.responseHeaders=r.headers,this.Kq.Vl(),YwH(this)); else this.onDone();else this.onError(Error("null_response"))}; this.X=r=>{const L=(0,g.T)();this.HS()||(r.done?(this.J=void 0,this.onDone()):(r=r.value,this.G+=r.length,this.C.append(r),YwH(this),this.Kq.NN(L,this.G)))}; this.onError=r=>{this.errorMessage=String(r);this.W=!0;this.onDone()}; this.C=new bg;this.V=window.AbortController?new AbortController:void 0;this.start(f)}start(f){const e={credentials:"include",cache:"no-store"};Object.assign(e,this.U);this.V&&(e.signal=this.V.signal);f=new Request(f,e);fetch(f).then(this.K,this.onError).then(void 0,c6)}onDone(){this.HS()||this.Kq.oV()}getResponseHeader(f){return this.responseHeaders?this.responseHeaders.get(f):null}Xh(){return!!this.responseHeaders}jw(){return this.G}VI(){return+this.getResponseHeader("content-length")}lX(){return this.status>= 200&&this.status<300&&!!this.G}U_(){return!!this.C.totalLength}VX(){const f=this.C;this.C=new bg;return f}EW(){return this.C}HS(){return this.aborted}abort(){this.J&&this.J.cancel().catch(()=>{}); this.V&&this.V.abort();this.aborted=!0}n6(){return!0}XQ(){return this.W}jU(){return this.errorMessage}};var o9G=class{constructor(f,e,B={}){this.Kq=e;this.G=this.status=0;this.HS=this.C=!1;this.xhr=new XMLHttpRequest;this.xhr.open(B.method||"GET",f);if(B.headers){f=B.headers;for(var n of Object.keys(f))this.xhr.setRequestHeader(n,f[n])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=r=>{this.F$(r)}; n=oJ(r=>{this.onDone(r)}); this.xhr.addEventListener("load",n,!1);this.xhr.addEventListener("error",n,!1);B.body?this.xhr.send(B.body):this.xhr.send();this.xhr.addEventListener("progress",oJ(r=>{this.onProgress(r)}),!1)}onDone(){if(!this.HS){this.status=this.xhr.status; try{this.response=this.xhr.response,this.G=this.response.byteLength}catch{}this.C=!0;this.Kq.oV()}}F$(){this.xhr.readyState===2&&this.Kq.Vl()}onProgress(f){this.HS||(this.status=this.xhr.status,this.C||(this.G=f.loaded),this.Kq.NN((0,g.T)(),f.loaded))}Xh(){return this.xhr.readyState>=2}getResponseHeader(f){try{return this.xhr.getResponseHeader(f)}catch{return g.Yv(Error(`Could not read XHR header ${f}`)),""}}VI(){return+this.getResponseHeader("content-length")}jw(){return this.G}lX(){return this.status>= 200&&this.status<300&&this.C&&!!this.G}U_(){return this.C&&!!this.response&&!!this.response.byteLength}VX(){const f=this.response;this.response=void 0;return new bg([new Uint8Array(f)])}EW(){return new bg([new Uint8Array(this.response)])}abort(){this.HS=!0;this.xhr.abort()}n6(){return!1}XQ(){return!1}jU(){return""}};var bL5=class extends g.$0{constructor(f,e){super();this.policy=f;this.T6=e;this.G=0;this.C=null;this.f5=[];this.J=null;this.aX={Dn:()=>this.T6}; this.T6.length===1||g.P5(this.T6,B=>!!B.range)}d$(){if(!this.f5.length)return[]; const f=this.f5;this.f5=[];this.J=g.QG(f).info;return f}zg(){return this.f5}bY(){super.bY();this.C=null;this.f5.length=0;this.T6.length=0;this.J=null}};var zfY=class extends g.$0{constructor(f,e,B,n,r,L,d,t,H=!1){super();this.Kq=f;this.policy=e;this.yr=B;this.vL=n;this.timing=r;this.logger=L;this.V=d;this.g9=t;this.U=H;this.lastError=null;this.C=0;this.W=!1;this.J=0;this.G=new g.T6(this.X,this.policy.Cc,this)}X(){if(!this.HS()){var f=(0,g.T)(),e=!1;if(this.policy.P4){var B=this.timing.G>0?this.timing.N:this.timing.C;this.policy.VQ&&this.J&&(B=this.J);f=f-B-(this.policy.DP?this.policy.F1:this.timing.tL()*1E3);B=Im(wz(this),!1);f>=2E3*B?e=!0:f>=this.policy.Yr* B&&(this.C=this.policy.gT)}else if(this.timing.G>0){if(this.U){this.policy.uC&&(this.C=0);return}f=this.timing.G6();this.timing.Mk();this.timing.G6()-f>=this.policy.Cc*.8?(this.C++,e=this.C>=5):this.C=0}else e=f-this.timing.Wd(),this.policy.gT&&e>0&&(this.C+=1),f=Im(wz(this),!1)*this.policy.z2,e=e>f*1E3;this.C>0&&this.Kq.w7();e?this.mf():this.G.start()}}mf(){this.W=!0;this.Kq.xC();this.lastError="net.timeout";vj(this)}canRetry(f){const e=wz(this);f=f?this.policy.FR:this.policy.AC;return e.timedOut< this.policy.j5&&e.C{this.Hd(l)}, YaI:()=>this.T8, eq9:l=>{this.T8=l}, bWS:l=>{this.QW=l}, GZY:l=>{this.dX.lastError=l}, ZU:()=>this.xhr}; this.timing=new e6(this,B);this.LR=d;this.fW=w;this.Re=v;this.yr=g.ar(this.info,this.policy,n);this.yr.set("rn",this.PE().toString());this.yr.set("rbuf",(t*1E3).toFixed().toString());this.LR&&this.yr.set("smb","1");this.policy.To&&H&&this.yr.set("pot",H);C&&this.yr.set("bbs",C);this.policy.useUmp&&!Ra(21,this.yr.wM)&&(this.H9=new BH(this),this.yr.set("ump","1"),this.yr.set("srfvp","1"));if(f=this.policy.qU?this.policy.Pf&&!isNaN(this.info.IM)&&this.info.IM>this.policy.IQ?!1:!0:!1)e=null,this.policy.AV&& this.policy.h1?e=[1]:b&&(e=[]),e!=null&&(this.policy.G$&&e.push(2),this.yr.set("defsel",e.join(",")));this.dX=new zfY(this,this.policy,this.yr,this.info.vL,this.timing,this.logger,n,k);this.rp=L||null;this.k_=fYm(this);VDM(this.dX);n=void 0;if(this.policy.LO||this.H9||this.policy.PS)n={method:"POST"},L=(0,g.iY)([120,0]),k={},Y&&(Y=aV(void 0,Y),k.A9=Y),this.policy.Wy&&this.Re&&(k.videoPlaybackUstreamerConfig=this.Re),this.policy.PS&&(Y=this.info.V)&&Object.assign(k,Y),Object.keys(k).length>0?n.body= g.zy(k,g.zF):n.body=L;this.fW&&this.Re&&(this.yr.set("iwts","1"),n={method:"POST"},Y=g.zy({a8:{e2:this.fW*1E3},u$:this.info.V?.u$||void 0,videoPlaybackUstreamerConfig:this.Re},g.zF),n.body=Y);try{this.xhr=km(this.yr,this.policy.X,this.timing,f,n),this.dX.G.start(),K&&(this.T_=new g.T6(this.lG,K,this),this.T_.start(K+(this.timing.Lh.K.H0()||0)*1E3)),g.Sk(()=>{})}catch(l){evw(this,l,!0)}}PE(){return this.timing.requestNumber}Dw(){return this.yr.Dw()}NG(){const f=FwC(this.dX); if(this.H9){var e=this.H9,B=e.C.totalLength;f.ulen=B;B>0&&(e=Le(e.C,0),f.ubyte=e,B===1&&e===0&&(f.b248180278=!0))}this.QW&&(f.rc=this.policy.HB?this.QW:this.QW.toString());this.policy.mS&&this.rQ&&(f.tr=this.rQ);f.itag=this.info.T6[0].vS.info.itag;f.ml=`${+this.info.T6[0].vS.C()}`;f.sq=`${this.info.T6[0].YA}`;this.yr&&(f.ifi=`${+w5(6,this.info.vL.G)}`);this.QW!==410&&this.QW!==500&&this.QW!==503||(f.fmt_unav="true");(B=this.errorMessage||this.xhr?.jU())&&(f.msg=B);this.LR&&(f.smb="1");this.info.isDecorated()&& (f.sdai="1");return f}JK(){return qww(this.timing)}jU(){return this.xhr.jU()||""}EY(){return this.isComplete()||this.timing.EY()}NN(){!this.HS()&&this.xhr&&(this.QW=this.xhr.status,this.policy.m1&&this.T8&&this.NA(!1),this.GN()?this.BN(2):!this.DX&&this.EY()&&(this.BN(),this.DX=!0))}Vl(){if(!this.HS()&&this.xhr){if(!this.WH&&this.xhr.Xh()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var f=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.WH=((0,g.T)()-f)/1E3}this.xhr.Xh()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&& this.policy.h8&&!jHY()&&g.yT("yt-player-headers-readable",!0,2592E3);f=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var e=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.T_?.stop();this.oa=f||this.oa;this.zf=e||this.zf}}oV(){var f=this.xhr;!this.HS()&&f&&(this.QW=f.status,f=this.Fp(f),this.policy.mS&&this.T_?.stop(),f===5?vj(this.dX):this.Hd(f),this.dX.G.stop())}Fp(f){BYH(this);if(bF(this.dX,this.xhr.status,this.b_?this.timing.A||this.Uw:this.xhr.lX(),!1,this.GV))return 5;var e= "";Zp(this.dX,this.xhr)&&(e=uz0(this.dX,this.xhr));if(e)return Pt(wz(this.dX)),this.info.xa(this.yr,e),3;e=f.jw();if(this.H9){this.NA(!0);BYH(this);if(bF(this.dX,this.xhr.status,this.timing.A||this.Uw,!1,this.GV))return 5;if(!this.sG){if(this.Uw)return Pt(wz(this.dX)),3;this.dX.lastError="net.closed";return 5}}else{if(bF(this.dX,this.xhr.status,this.xhr.lX(),!1,this.GV))return 5;var B=this.info.J;if(B&&B!==e||f.XQ())return this.dX.lastError="net.closed",5;this.NA(!0)}B=cc5(this)?f.getResponseHeader("X-Bandwidth-Est"): 0;if(f=cc5(this)?f.getResponseHeader("X-Bandwidth-Est3"):0)this.yh=!0,this.policy.A7&&(B=f);lPd(this.dX,e,B?Number(B):0,this.info.T6[0].type===5);return 4}canRetry(){this.HS();const f=this.info.isDecorated();return this.dX.canRetry(f)}onStateChange(){this.isComplete()&&(this.policy.EX?this.xC():this.timing.deactivate())}mf(){this.dX.mf()}w7(){this.callback&&this.callback(this,this.state)}Qc(){return this.dX.Qc()}dispose(){super.dispose();this.dX.dispose();this.T_?.dispose();this.policy.EX||this.xC()}xC(){this.xhr&& this.xhr.abort();this.timing.deactivate()}d$(){if(!this.zg().length)return[];this.DU=!0;return this.T8.d$()}GN(){return this.state<1?!1:this.T8&&this.T8.f5.length||this.xhr?.U_()?!0:!1}zg(){this.NA(!1);return this.T8?this.T8.zg():[]}NA(f){try{if(f||this.xhr.Xh()&&this.xhr.U_()&&!Zp(this.dX,this.xhr)&&!this.k_)this.T8||(this.T8=new bL5(this.policy,this.info.T6)),this.xhr.U_()&&(this.H9?this.H9.feed(this.xhr.VX()):C9(this.T8,this.xhr.VX(),f&&!this.xhr.U_()))}catch(e){this.H9?evw(this,e):g.Yv(e)}}DT(f, e){switch(f){case 21:({ZF:f}=e.split(1));nul(this,f);break;case 22:this.sG=!0;C9(this.T8,new bg([]),!0);break;case 43:({redirectUrl:f}={redirectUrl:k5(new Z2(e),1)});f&&(this.info.xa(this.yr,f),this.Uw=!0);break;case 45:const {jz:B,ge:n}=O7(new Z2(e));B&&n&&(this.t$=B/n);break;case 44:this.rk=s06(new Z2(e));!this.timing.A&&this.rk?.action===4&&this.rk?.LD?.b_&&(this.b_=this.rk.LD.b_);break;case 53:this.policy.mS&&({hP:f}=G6g(new Z2(e)),f&&(this.T_||(this.hP=f,this.T_=new g.T6(this.lG,f,this)),this.T_.start())); break;case 60:this.WN=Y5(new Z2(e));break;case 58:if(f=qWC(new Z2(e)))this.wl=f,f.wl===3&&(this.GV=!0)}}jG(f,e,B,n){B||this.timing.jG(n);if(f!==21)return!1;if(f=this.policy.m1)if(f*=this.info.T6[0].vS.info.EA,e.totalLength+B!==n&&e.totalLength0)return!1;if(!this.xhr.Xh())return!0; if(this.H9)var f=!this.info.J;else this.xhr.VI()?f=!1:(f=this.xhr.getResponseHeader("content-type"),f=f==="audio/mp4"||f==="video/mp4"||f==="video/webm");if(!f)return!1;if(isNaN(this.info.IM)){f=this.xhr.getResponseHeader("x-head-seqnum");const e=this.timing.policy.X?1:0;if(f&&Number(f)>this.info.T6[0].YA+e)return!1}return!0}P_(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}pg(){this.xhr&&(this.oa=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.oa}V6(){this.xhr&&(this.zf= Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.zf}ND(){return this.dX.ND()}lG(){if(!this.HS()&&this.xhr){this.rQ="heartbeat";var f=this.dX;f.C+=2;this.w7()}}};var n4=class extends Rfd{constructor(f,e){super(f,e);this.Z9=!0;this.WS=!1;this.Fl=this.BS=0;this.MC=NaN}cS(f,e){const B=(f-this.U)/1E3,n=e-this.J;this.G>0?n>0&&(this.WS&&(B>.2||n<1024?(this.V+=B,B>.2&&rZm(this,.05,n)):rZm(this,B,n)),this.Z9&&(this.BS+=n,this.Fl+=B)):e>this.policy.C&&this.Cq(f,e);super.cS(f,e)}uC(f,e){L9(this,f,e);this.cS(f,e);this.WS&&(e=this.J*this.snapshot.stall+this.J/this.snapshot.byterate,this.G>0&&i8(this.Lh,this.BS,this.V),f=(f-this.C)/1E3||.01,this.policy.K&&!(this.G>0)|| fM(this.Lh,f,this.J,e,!1))}xA(f){L9(this,f,this.W);var e=(f-this.U)/1E3;$h(this.Lh,e,0);this.dg(e,0);!this.WS&&this.G>0||(e=this.J*this.snapshot.stall+this.J/this.snapshot.byterate,this.G>0&&(this.V+=(f-this.U)/1E3,i8(this.Lh,this.BS,this.V)),fM(this.Lh,(f-this.C)/1E3||.01,this.J,e,!1,!0))}qP(f){f=f.Du||2147483647;(f&2)!==2&&(this.Z9=!1);(f&1)===1&&(this.WS=!0)}MP(f){f=f.Du||2147483647;(f&2)===2&&(this.Z9=!1);(f&1)===1&&(this.WS=!1)}sE(){return this.N}qC(){const f=this.Z9?this.now()-this.U:0;return Math.max(this.Fl* 1E3+f,1)}Yp(){return this.BS*1E3/this.qC()}Cq(f=this.X,e=this.W){this.G>0||(super.Cq(f,e),e=this.Lh,f=(f-this.Ed)/1E3,e.K.fB(1,(this.Ed-this.C)/1E3),e.eI.fB(1,f))}Ys(f){this.MC=f}K(){const f=super.K();f.rbw=this.Yp();f.rbe=+this.Z9;f.gbe=+this.WS;f.ackt=(this.MC-this.C).toFixed();return f}Mk(){}G6(){return NaN}Wd(){return this.C+this.snapshot.delay*1E3}};var aQ5=class{constructor(f,e){this.Kq=e;this.G={};this.logger=new g.or(f)}DT(f,e){switch(f){case 20:f=new Z2(e);f={OT:Hy(f,1),videoId:k5(f,2),itag:Hy(f,3),lmt:Hy(f,4),xtags:k5(f,5),GG:Hy(f,6),j2:Ak(f,8),oe:Hy(f,9),Euq:Hy(f,10),startMs:Hy(f,11),durationMs:Hy(f,12),e7:Hy(f,14),timeRange:a7(f,15,w$),BE:Hy(f,16),w3:Hy(f,17),Bg:Hy(f,20),L_:a7(f,21,FJk),clipId:k5(f,1E3)};this.X(f);break;case 21:this.U(e,!1);break;case 22:this.VE(e);break;case 31:f=RJ(e,giw);this.Kq.kG(f);break;case 52:f=RJ(e,x8G);this.Kq.dh(f); break;case 69:f={gG:jb(new Z2(e),1,VVm)};this.Kq.qN(f);break;case 65:f=RJ(e,KJ0);this.Kq.OF(f);break;default:this.W(f,e)}}X(){}W(){}};var p_6=new Set([53,49,50]),cvm=class extends aQ5{constructor(f){super("sabr",f);this.Kq=f;this.C=[]}W(f,e){KKw(this.Kq)&&!p_6.has(f)?this.C.push({id:f,data:e}):LKC(this,f,e)}OO(f){f=new Z2(f);f={xDS:jb(f,1,Cf),NR9:jb(f,2,Cf)};this.Kq.OO(f)}Fv(f){var e=new Z2(f);f=cy(e,1);var B=cy(e,2);e=cy(e,3);this.Kq.Fv(f,B,e)}pY(f){f=O7(new Z2(f));this.Kq.pY(f)}mp(f){f=RJ(f,Q05);this.Kq.mp(f)}Vv(f){f=new Z2(f);f={videoId:k5(f,1),formatId:a7(f,2,Cf),endTimeMs:Hy(f,3),JIa:Hy(f,4),mimeType:k5(f,5),Ir:a7(f,6,ljm), indexRange:a7(f,7,ljm),kt:a7(f,8,u30)};this.Kq.Vv(f)}Mi(f){f=new Z2(f);f={type:Hy(f,1),scope:Hy(f,2),value:Kf(f,3),sendByDefault:Ak(f,4),writePolicy:Hy(f,5)};this.Kq.Mi(f)}K_(){this.Kq.K_()}WF(f){f=SWm(new Z2(f));this.Kq.WF(f)}Yw(f){f=G6g(new Z2(f));this.Kq.Yw(f)}D1(f){f=s06(new Z2(f));this.Kq.D1(f)}Bc(f){f={redirectUrl:k5(new Z2(f),1)};this.Kq.Bc(f)}U(f){const e=Le(f,0);if(f.totalLength!==1){({ZF:f}=f.split(1));var B=this.G[e]||null;B&&this.Kq.Oa.C(e,B,f)}}VE(f){f=Le(f,0);const e=this.G[f]||null; e&&this.Kq.VE(f,e)}X(f){const e=f.OT,B=f.j2,n=f.GG,r=f.w3,L=f.BE,d=f.oe,t=f.startMs,H=f.durationMs,k=f.timeRange,C=f.e7,w=f.Bg,v=f.clipId,b=f.L_,K=rG(f);f=Wp0.has(Ja[`${f.itag}`]);this.G[e]=K;let Y=-1;t&&w&&k?.timescale&&(Y=t/1E3+w/k.timescale);this.Kq.J0(K,f,Y,{OT:e,j2:!!B,GG:n??-1,oe:d??-1,startMs:t??-1,durationMs:H??-1,e7:C,w3:r,BE:L,clipId:v,timeRange:k,L_:b})}qP(f){f={Du:Hy(new Z2(f),1)};this.Kq.qP(f)}MP(f){f={Du:Hy(new Z2(f),1)};this.Kq.MP(f)}JB(f){f=qWC(new Z2(f));this.Kq.JB(f)}tP(f){f={xU:a7(new Z2(f), 1,Jgk)};this.Kq.tP(f)}onSnackbarMessage(f){f=Hy(new Z2(f),1);this.Kq.onSnackbarMessage(f)}n_(f){f=new Z2(f);f={reloadPlaybackParams:a7(f,1,RTm),BG:Ak(f,2)};this.Kq.n_(f)}EB(){for(const {id:f,data:e}of this.C)LKC(this,f,e);this.C=[]}};var YSO=class extends g.$0{constructor(f){super();this.U=f;this.logger=new g.or("onesie");this.Sv=new Map;this.V=this.J=!1;this.UK=this.fq=null;this.W=!1}pL(){return Array.from(this.Sv.keys())}dE(f){return this.Sv.has(f)}w2(f){this.Sv.get(f).U7=!0}K(){let f=0;const e=this.pL();for(let B=0;B0||!B[0].range&&C.Ck)r=void 0,B=B[0],L=C.jZ,n=C.data,B.range||(r=C.Ck),r=new Fn(PeM(B,B.C+L,n.totalLength,r),n),C.jZ+=r.info.G,e.ZT.push(r);e.dT.get(k).data=new bg;C.Ck&&e.dT.delete(k)}f=this.Sv.get(f);if(!f)return[];e=f.ZT;f.ZT=[];for(var d of e)f.eN+=d.info.G;return e||[]}d=this.Sv.get(f)?.T8;if(!d)return[];this.NA(f,d);return d.d$()}GN(f){return p9?AJ(this,f):!!this.Sv.get(f)?.T8?.zg()?.length||AJ(this,f)}NA(f,e){for(;AJ(this,f);){var B=this.Wl(f); var n=f;n=this.Sv.get(n).Y2&&!Ym(this,n);C9(e,B,n&&wfg(this,f))}}X(){return this.W?!1:this.W=!0}N(){this.J=!0}bY(){super.bY();for(const f of this.Sv.keys())this.G(f);if(this.UK?.YE)for(const f of this.Sv.values())f.dT.clear(),f.jO.clear(),f.ZT.length=0,f.T6.length=0,f.k$.length=0,f.uF.length=0;this.Sv.clear()}},p9=!1;var AvG=new Set([2]),O8=class extends g.$0{constructor(f,e,B,n,r,L,d){super();this.policy=f;this.info=e;this.fq=B;this.Kq=r;this.logger=new g.or("sabr");this.H9=new BH(this);this.D3=new cvm(this);this.Oa=new YSO(this);this.state=1;this.ZJ=!1;this.Z3=0;this.clipId="";this.pj=-1;this.Ad=0;this.sQ=-1;this.r4=this.O5=this.GV=this.kh=!1;this.policy.iL?this.Tt=new n4(this,L):this.Tt=new e6(this,L);this.yr=this.policy.Ch?e.x8:OeH(e,this.policy,n);this.yr.set("rn",`${this.PE()}`);this.yr.set("alr","yes"); Rv5(this.Oa,B,f);this.dX=new zfY(this,this.policy,this.yr,e.vL,this.Tt,this.logger,n,d,this.policy.enableServerDrivenRequestCancellation);VDM(this.dX);this.policy?.YE&&(g.A(this,this.Oa),g.A(this,this.dX));f=e.G;e={method:"POST",body:f};f&&(this.Ad=f.length);try{this.xhr=km(this.yr,this.policy.X,this.Tt,sh,e),this.dX.G.start()}catch(t){g.Yv(t)}}NN(){!this.HS()&&this.xhr&&(this.NA(!1),vG(this.Kq,this))}Vl(){}oV(){if(!this.HS()&&this.xhr){var f=this.Fp();f===5?(this.ND()==="net.badstatus"&&this.Kq.Zi(), vj(this.dX)):(this.Kq.HI(),this.Hd(f));this.dX.G.stop();this.Rt?.stop()}}Fp(){let f="";Zp(this.dX,this.xhr)&&(f=uz0(this.dX,this.xhr));if(f)return this.info.vL.xa(this.yr,f),3;this.NA(!0);if(bF(this.dX,this.xhr.status,this.xhr.lX(),this.info.f$(),this.GV))return 5;if(this.ZJ)return 3;lPd(this.dX,this.xhr.jw(),0,this.f$());this.policy.hE&&aB5(this.Kq);return 4}NA(f){const e=this.xhr;!f&&Zp(this.dX,this.xhr)||!e.U_()||(f=e.VX(),this.H9.feed(f))}DT(f,e){this.xhr.n6()&&f===21&&q$g(this);this.D3.DT(f, e)}jG(f,e,B,n){B||(this.Tt.jG(n),this.policy.eO&&f===21&&q$g(this));if(f!==21)return!1;this.Tt.A=!0;f=e.totalLength;B||(this.sQ=Le(e,0),e=e.split(1).ZF);var r=this.policy.Tu;const L=this.D3.G[this.sQ],d=this.fq.J.get(L);if(r&&d&&(r*=d.info.EA,f+B!==n&&f0)){this.policy.P4&&this.dX.G.stop();var f=this.Tt.qC(),e=this.Tt.Yp(),B=zvg(this,f);e>B.PR||B.xM>0&&this.info.A6()>B.xM||(this.Z3=(0,g.T)(),this.Rt?.stop(),this.policy.hE&&(B=this.Kq,f={L1:Math.round(e*f/1E3),QX:f},B.policy.hE&&(B.Lq=f,B.uM++)),this.mf())}}mf(){this.dX.mf()}D1(f){this.Kq.D1(f,this.PE())}Bc(f){this.ZJ=!0;this.info.vL.xa(this.yr,f.redirectUrl)}qP(f){this.Tt instanceof n4&&this.Tt.qP(f)}MP(f){this.Tt instanceof n4&&this.Tt.MP(f)}Vv(f){var e=f.formatId;const B=new dG(f.Ir?.first|| 0,f.Ir?.vj||0),n=new dG(f.indexRange?.first||0,f.indexRange?.vj||0);if(!this.fq.J.get(rG({itag:e.itag,lmt:e.lmt,xtags:e.xtags}))){var r=f.kt||{};r.mimeType=f.mimeType;r.itag=e.itag;r.lastModified=`${e.lmt||0}`;r.xtags=e.xtags;f=this.fq;e=pP("");r=EQ(r,null);Qj(f,new Ta(e,r,B,n))}}pY(f){this.Kq.pY(f,this.PE())}onSnackbarMessage(f){if(this.policy.Pw)this.Kq.onSnackbarMessage(f)}qN(f){this.policy.W&&this.Kq.qN(f,this.PE())}kG(f){this.qY=f;this.dX.J=(0,g.T)();this.Kq.kG(f)}nk(f){this.Kq.nk(f)}Fv(f,e, B){this.Kq.Fv(f,e,B)}Mi(f){f.scope===2&&(this.FP=f);this.Kq.Mi(f)}K_(){this.kh=!0;this.Kq.K_()}OO(f){this.policy.jX&&this.Kq.OO(f)}mp(f){this.Kq.mp(f,this.PE())}JB(f){f.wl===3&&(this.GV=!0);this.Kq.JB(f)}tP(f){this.Kq.tP(f)}n_(f){this.Kq.n_(f)}OF(f){this.Kq.OF(f)}canRetry(){this.HS();return this.dX.canRetry(!1)}dispose(){this.HS()||(super.dispose(),this.dX.dispose(),this.Rt?.dispose(),this.Hd(-1),this.xC())}Hd(f){this.state=f;vG(this.Kq,this)}f$(){return this.info.f$()}lD(){return this.kh}Lp(){return this.FP}J0(f, e,B,n){B>=0&&this.Kq.QN(B);n.clipId&&(this.clipId=n.clipId);this.policy.G&&!e&&(this.pj=n.oe);this.info.isDecorated()&&(B=this.info,B=B.data?.u$?.Za?B.data.u$.Za:-1,B>=0&&B>n.oe&&this.Kq.loader.ri("sdai",{skpsqmismatch:"1",stsq:B,rcvsq:n.oe,a:e}));this.Oa.J0(f,e,n);this.policy.Xo&&this.qY&&this.Tt instanceof e6&&(B=this.qY.h5,this.Tt.J0(n.durationMs/1E3,e,B>0&&n.oe+1>=B));this.Oa.w2(f);this.Kq.J0(n)}VE(f,e){this.Oa.VE(f,e)}dh(f){this.requestIdentifier=f}d$(f){return this.Oa.d$(f)}Dn(f){return this.Oa.Dn(f)}GN(f){return this.Oa.GN(f)}pL(){return this.Oa.pL()}SC(){return 1}PE(){return this.Tt.requestNumber}v_(){return this.requestIdentifier}Dw(){return this.yr.Dw()}eQ(){this.xC()}xC(){this.Tt.deactivate(); this.xhr?.abort()}isComplete(){return this.state>=3}vx(){return this.state===3}Ik(){return this.state===5}JJ(){return this.state===4}m3(){return this.isComplete()}hj(){return this.state>=1}Qc(){return this.policy.uC?this.dX.Qc():0}w7(){this.policy.uC&&vG(this.Kq,this)}y6(){return this.info.C?.a8?.CZ||0}EB(){this.Gq()&&!this.r4&&(this.r4=!0,this.D3.EB())}Gq(){const f=this.info.C?.a8?.pA;return!!f&&AvG.has(f)}Vn(){return"SABR"}ND(){return this.dX.ND()}NG(){const f=FwC(this.dX);Object.assign(f,oql(this.info)); f.req="sabr";f.rn=this.PE();this.xhr?.status&&(f.rc=this.policy.HB?this.xhr.status:this.xhr.status.toString());var e=this.xhr?.jU();e&&(f.msg=e);this.Z3&&(e=zvg(this,this.Z3-this.Tt.sE()),f.letm=e.iN,f.mrbps=e.PR,f.mram=e.xM);return f}};var jgm=class{constructor(f){this.C=f;this.N=this.Lq=this.X=this.WS=this.V=this.W=this.Ed=this.U=this.eI=this.K=this.PS=this.Cq=this.cS=this.A=0;this.ticks={}}tick(f,e){this.ticks[f]=e?window.performance.timing.navigationStart+e:(0,g.T)()}};var Oy5=class extends g.$v{constructor(f,e,B,n,r,L){super();this.loader=f;this.fq=e;this.policy=B;this.videoTrack=n;this.audioTrack=r;this.N=this.C=null;this.W=this.U=NaN;this.X=0;this.K=NaN;this.fh=null;this.cS=this.Cq=NaN;this.eI=new Map;this.A=this.J=this.V=NaN;this.aX={nKC:()=>this.G}; this.G=L?1:0}hQ(f,e,B,n){var r=!1;this.policy.G&&(r=B?this.cS===f.YA:this.Cq===f.YA);if(this.fh&&n&&!r){n=[];r=[];let L=[],d=void 0,t=0;e&&(n=e.C,r=e.G,L=e.V,d=e.J,t=e.L0,this.ri("sdai",{sq:f.YA,ssvicpns:n.join("."),ssvid:r.join(".")}));this.policy.G&&(B?this.cS=f.YA:this.Cq=f.YA);this.fh.Mo(f.YA,f.startTime,n,r,L,B,t,d)}this.policy.G?B&&(this.G===1&&oV(this,5,"noad"),f.YA!==this.C?.YA&&(AZ5(this,f,e,B),isNaN(f.startTime)||oug(this,f.YA,uF(this,f.startTime,f.YA),!!e,this.fh))):B&&AZ5(this,f,e)}dK(f, e,B){const n=this.videoTrack.vS.index.OE()<=e;this.C={b6:f,YA:e,Sr:B};n&&VV(this,f,e)}m7(){this.fh&&this.fh.m7()}WS(f,e){if(this.G!==0&&e&&f.T6[0].zv()){var B=f.T6[0].YA,n=f.T6[0].V;f=f.isDecorated();oug(this,B,n,f,e)}}Ed(f,e){if(this.policy.cS?0:this.G===1||this.G===2)return!1;if(this.G!==0&&f===this.audioTrack){if(this.policy.G)return MEk(this.videoTrack,e)||MEk(this.videoTrack,e+1);f=q1(this.videoTrack);if(e>(f?f.YA:-1))return!1}return!0}ri(f,e,B=!1){(f!=="sdai"||this.policy.Tp||B)&&this.loader.ri(f, e)}Jb(f,e){const B=this.videoTrack.vS.index.hq(f);if(B>=0){var n=e.mC(B,2)?.f1||"";if(this.policy.G||n)return e.XF(f,B),lF(this.loader,f,f,B),this.ri("sdai",{cmskpad:1,t:f.toFixed(3),sq:B}),!0}this.ri("sdai",{cmskpad:0,t:f.toFixed(3),sq:B});return!1}};var oJC=class{constructor(f,e,B,n){this.policy=f;this.ri=e;this.X=B;this.C=n;this.V=void 0;this.G=new Set;this.U=-1;this.J=0;this.W=!1;this.aX={qKd:()=>this.G}}BF(f,e,B){let n=this.policy.BJ&&f.tileContext?`${f.g$};${f.tileContext}`:f.g$; n||(n=mP(this,this.V));this.ri("clsdai",{setadcfg:f.g$||"misscid",cid:n,acpn:B,acfglen:e?.length||0});this.C.has(n)||(this.ri("clsdai",{setadcfg:"noentry",cid:n}),this.C.set(n,{event:"unknown",startTimeSecs:0,Kc:0,Kw:[],bz:Date.now(),Jy:-1,XX:6,Zo:f}));(f=this.C.get(n))?e?(f.XX=6,f.Kw.push(B),f.Bw=e):f.XX=2:this.ri("clsdai",{setadcfg:"notfound",cid:n})}s1(f){const e=f||mP(this,this.V);this.ri("clsdai",{rmvadcfg:f||"misscid",lastcid:mP(this,this.V)});(f=this.C.get(e))?(f.Bw="",f.XX=4):this.ri("clsdai", {rmadcfg:"notfound",cid:e})}qN(f,e,B,n,r){this.U=e;if(!((f.gG?.length||0)<=0))if(n){if(this.J=n,this.ri("clsdai",{oncldisabled:n,rn:e}),this.J===3&&r)for(var L of f.gG)L.b6&&L.trackType===2&&HKY(r,Euw(this,L),L.oe||0,!0)}else for(const d of f.gG){if(f=d.b6)a:{let t;f=Euw(this,d);n=e;r=d.oe||0;L=B;if(!this.policy.bL&&f.event==="prefetch"){f=!1;break a}const H=mP(this,f);this.C.has(H)?(t=this.C.get(H),r>t.Jy&&(t.startTimeSecs=f.startSecs,t.Kc=f.Kc,t.event==="predictStart"&&t.XX===5&&f.event!=="predictStart"&& (t.bz=Date.now()),t.event=f.event)):(t={event:f.event,startTimeSecs:f.startSecs,Kc:f.Kc,Kw:[],Jy:r,XX:0,Zo:{g$:f.identifier,tileContext:f.tileContext}},this.C.set(H,t),this.policy.W&&this.ri("clsdai",{newcid:1,cid:f.identifier,tc:f.tileContext,evt:f.event,sn:r,rn:n,st:QZm(t.XX)}));let k=!1;t.XX===0&&(L?.rg(f)?t.XX=5:(t.XX=L?11:3,t.Bw="",k=!0),t.bz=Date.now(),t.Jy=r,this.policy.W&&this.ri("clsdai",{onqpnt:1,cid:f.identifier,tc:f.tileContext,evt:f.event,sn:r,rn:n,st:QZm(t.XX)}));r>t.Jy&&(L?.rg(f),t.Jy= r);this.V=f;this.policy.W&&this.G.add(H);f=k}f&&(this.W=!0)}}Ed(){this.G.clear();this.J=0;this.W=!1}K(){return this.W}N(f,e){if(this.J!==0){this.ri("clsdai",{gssinfodisabled:this.J});e=7;switch(this.J){case 1:e=7;break;case 2:e=9;break;case 3:e=10;break;default:this.ri("clsdai",{unknowndisr:this.J})}return[{XX:e}]}const B=[];if(!isNaN(f)){var n=TYY(this,f),r=this.U+1;if(n.length>0){this.ri("clsdai",{updcids:1,mt:f.toFixed(3),cid:n.join(","),rn:r});this.G.clear();for(const L of n)this.G.add(L)}else this.X&& (this.ri("clsdai",{updcids:0,mt:f.toFixed(3),rn:r}),this.G.clear())}for(const L of this.G)r=L,f=e,r?(n=this.C.get(r),r={cuepointId:n?.Zo?.g$||r.split(";")[0]},n?.Bw&&(r.adsConfig=Tf(n.Bw)||void 0),n?.Kw&&(r.Uu=n.Kw),n?.SO&&(r.Za=n.SO),f&&(r.MZ=Hh(f.split(";")[0]),r.nS=f.split(";")[1]||""),r.XX=n?.XX||0,f=r):f=void 0,f&&B.push(f);return B}XF(f,e,B){var n=f;this.policy.W&&(n+=B);let r,L="";n=TYY(this,n);n.length>0&&(L=n[0])&&(r=this.C.get(L));if(!r||r.SO)return this.ri("clsdai",{skipadfail:1,cid:L, sn:e,mt:f.toFixed(3),of:B.toFixed(3),skipsq:r?.SO||-1}),!1;this.ri("clsdai",{skipadsuc:1,cid:L,sn:e,mt:f.toFixed(3),of:B.toFixed(3)});r.SO=e;this.G.clear();this.G.add(L);return!0}Y$(){this.ri("clsdai",{rstskipad:1});for(const f of this.C.values())f.SO=NaN}A(){let f=!1;for(const [,e]of this.C.entries()){const B=e;B.event!=="predictStart"&&B.event!=="prefetch"&&B.XX===5&&(B?.bz&&Date.now()-B?.bz>1E4?B.XX=1:f=!0)}return f}};var E8=class{constructor(f,e,B){this.audio=f;this.video=e;this.reason=B}},JI=class{constructor(f,e,B,n){this.C=f;this.reason=e;this.source=B;this.token=n}};var Vdw=class extends g.$0{constructor(f,e,B){super();this.policy=f;this.V=e;this.ri=B;this.J=new Map;this.W=0;this.U=!1;this.C="";this.G=!1}i4(){return this.U&&U8(this).size>0}PB(f,e=!1,B={}){this.policy.ej=ZH(f,B,this.V,e)}};var r1=class{constructor(f){this.C=this.G=0;this.alpha=Math.exp(Math.log(.5)/f)}fB(f,e){const B=this.alpha**f;this.C=e*(1-B)+B*this.C;this.G+=f}H0(){return this.C/(1-this.alpha**this.G)}};var lQm=class{constructor(f,e,B,n,r,L=[]){this.loader=f;this.Cq=e;this.policy=B;this.fq=n;this.U=r;this.PS=L;this.logger=new g.or("dash/abr");this.C=Z_;this.J=this.X=null;this.N=-1;this.Lq=!1;this.nextVideo=this.G=null;this.V=[];this.Z9=new Set;this.WS={};this.MC=new r1(1);this.K=0;this.BS=this.A=this.Ed=!1;this.cS=0;this.Fl=!1;this.eI=new Set;this.uY=!1;this.aX={im:()=>{hJ(this)}}; this.W=new Vdw(this.policy,r,(d,t)=>{this.loader.ri(d,t)})}g3(f){if(this.policy.pw){var e=new Set(f); e.size===this.eI.size&&[...e].every(B=>this.eI.has(B))||(this.loader.ri("lwnmow",{itagDenylist:[...f].join()}),this.loader.Tm(!!e.size),this.N=-1,this.eI=e,SN(this,this.C),this.uY=!0)}}PB(f,e=!1,B={}){const n=this.policy.ej; this.W.PB(f,e,B);n!==this.policy.ej&&(SN(this,this.C),QV(this),n>this.policy.ej&&this.J?.info.C()&&!this.nextVideo?.info.C()&&(this.Ed=!0))}};var L4={wk:-1,D6:!1,pA:0},u16=class extends g.$0{constructor(f){super();this.Ce=f;this.C=null;this.G=L4;this.Ce("ismp_i")}J(f=!0){f&&dww(this);this.C=null}bY(){this.G=L4;this.J();super.bY()}};var Fsm=class{constructor(f){this.track=f;this.buffered=[];this.J=this.V=0;this.U={};this.W=0;this.C=new eQ}vB(f){this.timestampOffset=f;this.flush()}N(f,e){this.flush();this.G=e;MO(this,3,f)}K(f,e,B,n){!this.G||soO(this.G,f)&&this.G.YA===f.YA||this.flush();this.V+=B;this.J+=n;B=1;!this.G&&f.C&&(B=2);MO(this,B,e);e=Math.ceil(f.C/1024);B===2&&this.C.add(e);this.C.add(Math.ceil((f.C+f.G)/1024)-e);this.G=f}Ed(){MO(this,0)}X(){MO(this,4);this.flush()}flush(){if(this.C.pos>0){var f={a:this.track.G8(), u:this.C.VD(),pd:Math.round(this.V),ad:Math.round(this.J)},e=this.G;if(e){const B=e.vS.info;f.itag=B.itag;B.G&&(f.xtags=B.G);f.sq=e.YA;f.st=e.startTime;f.sd=e.duration;this.track.policy.Nm&&(f.si=e.Pd());e.J&&(f.esl=e.C+e.G);e.U()&&(f.eos=1)}isNaN(this.timestampOffset)||(f.to=this.timestampOffset);if(e=this.track.D_?.xp({})){for(const B in e)this.U[B]!==e[B]&&(f["sb_"+B]=e[B]);this.U=e}this.track.ri("sbu",f);this.C.reset();this.buffered=[];this.W=this.J=this.V=0;this.timestampOffset=this.G=void 0}}};var mA5=class{constructor(f,e,B){this.policy=f;this.C=e;this.cS=B;this.V=this.G=0;this.hG=null;this.Ed=new Set;this.N=[];this.indexRange=this.initRange=null;this.K=new wC;this.A=this.Cq=!1;this.aX={yGA:()=>this.J, hxd:()=>this.chunkSize, fw9:()=>this.X, BC9:()=>this.U}; (e=H6w(this))?(this.chunkSize=e.csz,this.J=Math.floor(e.clen/e.csz),this.X=e.ck,this.U=e.civ):(this.chunkSize=f.Ww,this.J=0,this.X=g.HR(16),this.U=g.HR(16));this.W=new Uint8Array(this.chunkSize);this.X&&this.U&&(this.crypto=new qSk(this.X,this.U))}dispose(){this.A=!0}HS(){return this.A}},Wj=class extends Error{constructor(f){super(f)}};var TdG=class{constructor(f,e,B,n,r,L){this.ids=f;this.C=e;this.G=B;this.V=n;this.J=r;this.L0=L}};var er=class{constructor(f,e,B){this.initData=f;this.contentType=e;this.isPrefetch=B;this.C=this.cryptoPeriodIndex=NaN;this.J=[];this.rj=!1;this.G=null;if(e?.toLowerCase()==="webm"||f.length===16)this.rj=!0}};var ae=class{constructor(f,e,{Te:B=!1,videoDuration:n=0,us:r,Sd:L=!1}={}){this.videoId=f;this.status=e;this.Te=B;this.videoDuration=n;this.us=r;this.Sd=L}},UAm=class{constructor(f,e,B,n,r){this.videoId=f;this.kt=e;this.G=B;this.bytesDownloaded=n;this.C=r}};var p$C=class{constructor(f){this.G=f;this.offset=0}skip(f){this.offset+=f}C(){return this.offset}};var Nhl=class{constructor(f,e,B){this.loader=f;this.policy=e;this.vS=B;this.logger=new g.or("dash");this.G=[];this.C=null;this.A=-1;this.K=0;this.cS=NaN;this.N=0;this.J=NaN;this.X=this.WS=0;this.Z9=-1;this.eI=this.V=this.W=this.Cq=null;this.BS=this.uY=NaN;this.U=this.Ed=this.Lq=this.Fl=null;this.MC=!1;this.PS=this.timestampOffset=0;this.aX={dV:()=>this.G}; if(this.policy.V){const n=this.vS,r=this.policy.V;this.policy.MC&&f.ri("atv",{ap:this.policy.MC});this.U=new mA5(this.policy,n,(L,d,t)=>{f.oA.ww(new ae(this.policy.V,2,{us:new UAm(r,L,n.info,d,t)}))}); this.U.K.promise.then(L=>{this.U=null;L===1?f.oA.ww(new ae(this.policy.V,L)):this.loader.ri("offlineerr",{status:L.toString()})},L=>{const d=(L.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); L instanceof Wj?(this.loader.ri("offlinenwerr",{em:d}),IV(this),f.oA.ww(new ae(this.policy.V,4))):(this.loader.ri("dldbwerr",{em:d}),IV(this),f.oA.ww(new ae(this.policy.V,4,{Sd:!0})))})}}dV(){return this.G}iM(){return this.G.length?this.G[this.G.length-1]:null}nB(){this.G=[]; iF(this);IV(this)}Wl(f){this.Lq=this.G.shift().info;f.info.equals(this.Lq)}Dn(){return g.xg(this.G,f=>f.info)}G8(){return!!this.vS.info.audio}isDrm(){return!!this.vS.info.contentProtection}getDuration(){return this.vS.index.Pp()}};var yD=class extends KsO{constructor(f,e,B,n,r){super(B,r);this.policy=f;this.formatId=e;this.Oa=n;this.lastError=null;this.onProgress=()=>{this.HS()||(this.Oa.dE(this.formatId)?(this.isComplete()||this.C.start(),AJ(this.Oa,this.formatId)&&this.BN(2),this.Oa.Y2(this.formatId)&&(wfg(this.Oa,this.formatId)?this.Hd(4):(this.lastError="net.closed",this.Hd(5)))):(this.lastError="player.exception",this.Hd(5)))}; this.C=new g.T6(()=>{this.isComplete()||(this.lastError="net.timeout",this.Hd(5))},1E3); this.C.start();HLk(this.Oa,this.formatId,this.onProgress);g.Sk(this.onProgress)}onStateChange(){this.HS()&&(cj(this.Oa,this.formatId),this.C.dispose())}NG(){return{expected:C4k(this.Oa,this.formatId),received:this.Oa.Sv.get(this.formatId)?.bytesReceived||0,bytesShifted:this.Oa.Sv.get(this.formatId)?.eN||0,sliceLength:Ym(this.Oa,this.formatId),isAnyMediaEndReceived:this.Oa.Io(this.formatId)}}JK(){return 0}EY(){return!0}d$(){return this.Oa.d$(this.formatId)}zg(){return[]}GN(){return this.Oa.GN(this.formatId)}ND(){return this.lastError}Qc(){return 0}};var hfd=class extends g.$0{constructor(f,e,B,n){super();this.loader=f;this.policy=e;this.vS=B;this.timing=n;this.logger=new g.or("dash");this.G=[];this.Cq=[];this.C=this.D_=null;this.Lq=!1;this.WS=this.PS=0;this.W=-1;this.A=!1;this.cS=-1;this.eI=null;this.Ed=NaN;this.N=[];this.aX={GO:()=>this.J, Q1d:()=>this.G, FAd:()=>this.X}; this.J=new Nhl(f,e,B);this.policy.C&&(this.X=new vJd(this.J,this.loader.getManifest(),this.policy,r=>{this.policy.X1&&this.ri("buftl",r)})); this.policy.G6&&(this.K=new Fsm(this));this.EA=B.info.EA;this.U=this.policy.Cq?!1:B.cS();this.isManifestless=B.cS();this.V=this.U;g.A(this,this.eI)}G8(){return!!this.vS.info.audio}iM(){return this.J.iM()}Wl(f){this.J.Wl(f);this.X?.eI(f);this.EA=Math.max(this.EA,f.info.vS.info.EA||0)}getDuration(){return this.vS.index.Pp()}nB(){Iy(this);this.J.nB()}GO(){return this.J}XM(f){return this.D_?Wy(this.D_.Ea(),f):!0}isRequestPending(f){return this.G.length?f===this.G[this.G.length-1].info.T6[0].YA:!1}vB(f){this.X?.vB(f); this.K?.vB(f)}ri(f,e){this.loader.ri(f,e)}q9(){return this.loader.q9()}dispose(){this.K?.flush();super.dispose()}};var nqM=class{constructor(){this.nG=!1}};g.i2m=class{constructor(f){this.V9=f;this.X=new nqM;this.SK=this.qt=!1;this.wq=2;this.Lq=20971520;this.qC=8388608;this.eI=120;this.kU=this.C$=this.xF=2;this.P4=this.gz=!1;this.Yr=1E3;this.IA=15;this.Z2=1;this.K=1.15;this.A=1.05;this.M6=1;this.cE=this.K5=!1;this.F6=6;this.J=!1;this.j5=100;this.AC=10;this.c7=6;this.Aq=!1;this.Xd=1;this.h1=this.D2=!1;this.gT=2;this.B9=this.We=this.E2=!1;this.tL=!0;this.Wd=this.q$=this.i$=this.lC=!1;this.L6=!0;this.C_=!1;this.V="";this.zt=[];this.Ks=this.G6=!1;this.ej= 0;this.xI="";this.O$=this.a4=this.X1=this.uI=this.y8=this.jX=this.U=this.bI=this.IR=this.C=this.MC=this.WS=this.EO=this.Fo=this.N=this.qj=this.Ml=!1;this.hR=!0;this.Nt=this.oo=this.KG=this.Bz=this.aj=this.G=this.Fl=!1;this.BS=!0;this.DP=this.JA=this.sE=this.uC=this.e3=this.VN=this.I5=this.NB=this.EE=this.Cv=this.Cq=this.S6=this.kA=this.Ed=!1;this.F1=0;this.s3=this.W=this.jJ=this.Ys=this.Tp=this.vV=!1;this.latencyClass="UNKNOWN";this.tU=!1;this.yw=0;this.kC=g.tS(this.V9.experiments,"html5_min_readbehind_secs"); this.CM=g.tS(this.V9.experiments,"html5_min_readbehind_cap_secs");this.Dk=this.V9.Y("html5_offline_reset_media_stream_on_unresumable_slices");this.EA=NaN;this.HJ=AE(this,"html5_request_size_min_kb",64)*1024;this.uY=2097152;this.Nl=AE(this,"html5_bypass_contention_secs");this.T4=1048576;this.Cc=AE(this,"html5_repredict_interval_ms",1800);this.z2=AE(this,"html5_head_miss_secs",5);this.rN=AE(this,"html5_min_upgrade_health_secs",10);this.EJ=AE(this,"html5_min_seconds_between_format_selections",8);this.zw= AE(this,"html5_max_buffer_health_for_downgrade_secs",15);this.qU=sh;this.GJ=g.tS(this.V9.experiments,"html5_min_startup_buffered_media_duration_secs");this.jK=g.tS(this.V9.experiments,"html5_post_interrupt_readahead");this.eZ=this.V9.Y("html5_disable_classic_alr");this.GK=g.tS(this.V9.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.FR=AE(this,"html5_ssdai_failure_retry_limit",3);this.DO=this.V9.experiments.SI("html5_clone_original_for_fallback_location");this.Mk=g.tS(this.V9.experiments, "html5_subsegment_readahead_target_buffer_health_secs");this.nA=g.tS(this.V9.experiments,"html5_subsegment_readahead_timeout_secs");this.L4=g.tS(this.V9.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.fA=g.tS(this.V9.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.d5=g.tS(this.V9.experiments,"html5_subsegment_readahead_min_load_speed");this.S5=g.tS(this.V9.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.bL=this.V9.JE().C.jI(y9w); this.hH=g.tS(this.V9.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.rT=AE(this,"html5_hopeless_secs",15);this.Pf=this.V9.Y("html5_restrict_streaming_xhr_on_sqless_requests");this.IQ=g.tS(this.V9.experiments,"html5_max_headm_for_streaming_xhr");this.qx=this.V9.Y("html5_pipeline_manifestless_allow_nonstreaming");this.A7=this.V9.Y("html5_prefer_server_bwe3");this.qe=this.V9.Y("html5_last_slice_transition");this.h8=this.V9.Y("html5_store_xhr_headers_readable");this.fQ=g.tS(this.V9.experiments, "html5_max_drift_per_track_secs");this.hU=this.V9.Y("html5_no_placeholder_rollbacks");this.Vb=this.V9.Y("html5_subsegment_readahead_enable_mffa");this.xA=this.V9.Y("html5_allow_video_keyframe_without_audio");this.B9=g.IM(this.V9)&&!g.Cs()&&this.V9.Y("html5_adjust_media_time_for_non_cobalt_tv");this.FE=this.V9.Y("html5_enable_vp9_fairplay");this.Ww=1048576;this.Lw=this.V9.Y("html5_woffle_resume");this.Ia=this.V9.Y("html5_abs_buffer_health");this.jY=this.V9.Y("html5_interruption_resets_seeked_time"); this.AY=g.tS(this.V9.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Fw=this.V9.Y("html5_report_captions_ctmp_qoe");this.EX=this.V9.Y("html5_explicitly_dispose_xhr");this.tZ=!this.V9.Y("html5_encourage_array_coalescing");this.V9.Y("html5_limit_media_merge_size")?sh?tl()<21?this.hF=786432:this.hF=8388608:this.hF=262144:this.hF=0;this.s7=this.V9.Y("html5_filter_non_efficient_formats_for_safari");this.V9.Y("html5_format_hybridization");this.SR=this.V9.Y("html5_abort_before_separate_init"); this.Qs=Zs();this.d1=this.V9.Y("html5_serialize_server_stitched_ad_request");this.To=this.V9.Y("html5_attach_po_token_to_bandaid");this.Mt=g.tS(this.V9.experiments,"html5_max_redirect_response_length")||8192;this.Ui=this.V9.Y("html5_rewrite_timestamps_for_webm");this.Yp=this.V9.Y("html5_only_media_duration_for_discontinuities");this.iq=g.tS(this.V9.experiments,"html5_resource_bad_status_delay_scaling")||1;this.V9.Y("html5_onesie_live");this.H8=g.tS(this.V9.experiments,"html5_onesie_live_ttl_secs")|| 8;this.Oj=g.tS(this.V9.experiments,"html5_attach_num_random_bytes_to_bandaid");this.qT=this.V9.Y("html5_update_container_type_on_codec_family_change");this.Ch=this.V9.Y("html5_enable_sabr_host_fallback");this.yx=this.V9.supportsGaplessShorts();this.kd=this.V9.Y("html5_shorts_stop_request_when_buffer_to_end");this.wW=this.V9.Y("html5_vod_stop_request_when_buffer_to_end");this.PS=this.V9.Y("html5_ssdai_use_post_for_media")&&this.V9.Y("gab_return_sabr_ssdai_config");this.LO=this.V9.Y("html5_use_post_for_media"); this.mS=this.V9.Y("html5_use_live_ump_heartbeat");this.useUmp=this.V9.Y("html5_use_ump");this.z0=this.V9.qj;this.Lb=this.V9.Y("html5_reset_primary_stats_on_redirector_failure");this.Cb=this.V9.Y("html5_remap_to_original_host_when_redirected");this.HB=this.V9.Y("html5_use_network_error_code_enums");this.enableServerDrivenRequestCancellation=this.V9.Y("html5_enable_server_driven_request_cancellation");this.iL=this.V9.Y("html5_enable_sabr_request_timing");this.pw=this.V9.Y("html5_enable_lawnmower"); this.pz=this.V9.wA()?g.tS(this.V9.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.a9=g.tS(this.V9.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.BR=this.V9.Y("html5_live_defrag_only_h264_playbacks");this.AV=this.V9.Y("html5_live_defrag_only_h264_formats");this.On=g.tS(this.V9.experiments,"html5_drm_byterate_soft_cap");this.l_=g.tS(this.V9.experiments,"html5_drm_live_byterate_soft_cap");this.UE=this.V9.Y("html5_sabr_log_request_creation");this.Qr=this.V9.Y("html5_use_buffer_timeline_for_sabr_request_creation"); this.hE=this.V9.Y("html5_sabr_report_request_cancellation_info");this.Kv=this.V9.Y("html5_spoof_4k");this.m1=AE(this,"html5_min_media_duration_for_cabr_slice");this.Tu=AE(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||.01;this.G$=this.V9.Y("html5_remove_defrag_without_frame_level_streaming");this.E7=this.V9.Y("html5_consume_all_buffered_bytes_one_poll");this.Vx=this.V9.Y("html5_disable_urgent_adaptation");this.jR=this.V9.Y("html5_apply_constraints_in_client_for_sabr");this.Wy=this.V9.Y("html5_send_video_playback_ustreamer_config"); this.Bb=AE(this,"html5_max_discontinuity_rewrite_count");this.Hl=AE(this,"html5_fixed_media_duration_for_request");this.At=this.V9.Y("html5_apply_fix_for_missing_seg_info_without_logger");this.q$=this.V9.Y("html5_enable_audio_quality_setting");this.V9.Y("html5_enable_audio_quality_setting_feature");this.zQ=AE(this,"html5_sabr_request_limit_per_period");this.YE=this.V9.Y("html5_sabr_dispose_media_objects");this.CG=this.V9.Y("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.V9.Y("html5_high_res_seek_logging"); this.o_=this.V9.Y("html5_disable_chunk_synchronization_sabr_seek");this.lw=g.tS(this.V9.experiments,"html5_override_micro_discontinuities_threshold_ms");this.U$=this.V9.Y("html5_byterate_constraints");this.uL=this.V9.Y("html5_refactor_sabr_audio_format_selection_logging");this.Pw=this.V9.Y("enable_sabr_snackbar_message");this.V9.Y("html5_reinit_source_buffer_by_new_element");this.ZI=this.V9.Y("html5_refactor_sabr_video_format_selection_logging");this.Nm=this.V9.Y("html5_log_slice_info_in_sbu");this.Q3= AE(this,"html5_paced_poll_ms");this.Mx=AE(this,"html5_paced_poll_min_health_ms");this.J$=this.V9.Y("html5_disable_sabr_fallback");this.KA=this.V9.Y("html5_track_current_buffered_range_at_sync");this.y$=g.IM(this.V9)?500:2E3;this.Xo=this.V9.Y("html5_sabr_live_timing");this.cw=this.V9.Y("html5_count_updating_slice_for_buffer_health");this.Jm=this.V9.Y("html5_report_max_buffer_bytes_limit_to_sabr");this.eO=this.V9.Y("html5_sabr_live_audio_early_return_fix");this.j1=g.tS(this.V9.experiments,"html5_platform_max_buffer_health_oversend_duration_secs"); this.Gc=this.V9.Y("html5_cuepoint_identifier_logging");this.tM=this.V9.Y("html5_sabr_log_server_xtag_selection_onesie_mismatch");this.jF=this.V9.Y("html5_skip_client_drm_license_constraint");this.Ml=this.V9.Y("html5_pseudogapless_shorts_skip_abort_on_transition");this.I5=this.V9.Y("html5_sabr_request_on_constraint");this.VQ=this.V9.Y("html5_live_metadata_resets_timeout");this.jJ=this.V9.Y("html5_sabr_log_invalid_sabr_current_time");this.g8=this.V9.Y("html5_ssdai_new_decoration_logic");this.Qx=this.V9.Y("html5_enable_smooth_audio_offset"); this.ql=this.V9.Y("html5_cuepoint_list_clear_on_seek");this.O1=this.V9.JE().C.jI(SO);this.cS=this.V9.JE().C.jI(pH6);this.Yy=this.V9.Y("html5_ssdai_clear_backoff_on_cuepoint_list_resolved");this.BJ=this.V9.JE().C.jI(W_d);this.yw=g.tS(this.V9.experiments,"html5_sabr_unused_bloat_size_bytes");this.Gu=this.V9.JE().C.jI(vT5)}Z9(){return this.C&&this.jX}};var vqw=class{constructor({h1:f,nG:e,JR:B,OE:n,gH:r}={}){this.h1=f;this.nG=e;this.JR=B;this.OE=n;this.gH=r}};var SSm=class extends g.$0{constructor(f,e,B){super();this.loader=f;this.policy=e;this.Lh=B;this.J=0;this.G=!1;this.delay=new g.T6(this.V,this.policy.pz,this);g.A(this,this.delay)}C(f){Ra(69,f.C)||(this.vL=f,this.J=0,this.delay.M0())}V(){this.J++>15||(this.G=!this.G,new gJl(this.loader,this.policy,this.Lh,this.vL,this.G),this.delay.start())}},gJl=class{constructor(f,e,B,n,r){this.loader=f;this.policy=e;this.Lh=B;this.vL=n;this.Mz=r;this.done=!1;this.onTimeout=()=>{this.done||(this.done=!0,this.onError("net.timeout"))}; this.size=Math.ceil(Math.min(1E5,.1*MX(this.Lh)));this.timing=new e6(this,{Lh:this.Lh,HH:this.size,m5:!0,dg:()=>{}, Ho:this.policy.J});f=Bm(this.vL,this.Mz,this.policy).wM.clone();k_(56,f);f["path"]!=="/videogoodput"&&(f["path"]="/videogoodput",f["url"]="");this.location=new ef(f);this.location.set("rn",`${this.timing.requestNumber}`);this.location.set("range",`0-${this.size-1}`);this.xhr=km(this.location,this.policy.X,this.timing,this.policy.qU,{});setTimeout(this.onTimeout,1E4)}Vl(){}NN(){}oV(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.jw()===this.size)this.loader.ri("rqs",this.getInfo()); else{var f="net.connect";this.xhr.status>200?f="net.badstatus":this.xhr.Xh()&&(f="net.closed");this.onError(f)}}onError(f){this.loader.handleError(f,this.getInfo());JK(`https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn=${this.timing.requestNumber}`,"gp",e=>{this.loader.ri("pathprobe",e)},e=>{this.loader.handleError(e.errorCode,e.details)})}getInfo(){const f=this.timing.K(); f.shost=CR(44,this.location.wM);f.pb=this.size;return f}};var EJM=class extends g.$0{constructor(f,e,B,n,r,L,d,t,H,k,C,w,v,b=null){super();this.loader=f;this.policy=e;this.videoTrack=B;this.audioTrack=n;this.J=r;this.C=L;this.timing=d;this.V=t;this.schedule=H;this.fq=k;this.G=C;this.N=w;this.uV=v;this.Re=b;this.Ed=!1;this.Y8="";this.r$=null;this.IM=NaN;this.A=!1;this.fh=null;this.fW=this.K=NaN;this.hP=this.W=0;this.logger=new g.or("dash");this.aX={Jx:(K,Y)=>this.Jx(K,Y)}; this.policy.Oj>0&&(this.Y8=g.HR(this.policy.Oj));this.policy.pz&&(this.X=new SSm(this.loader,this.policy,this.schedule),g.A(this,this.X))}U(f,e){if(f.U){this.fq.isLive?(f=this.fq.Hs&&this.fq.K?f.vS.W(this.fq.Hs,!1):f.vS.U(Infinity),f.IM=this.IM):f=f.vS.W(0,!1);if(this.N){var B=this.N;f.IM===0&&(f.W=B.K)}else f.W=this.K;return f}var n=f.C;if(!n.vS.C())return n.vS.J()?(B=WF(this.V,f.vS.info.EA,e.vS.info.EA,0),B=n.vS.A(n,B)):B=n.vS.PS(n),B;var r=n.W-this.loader.getCurrentTime(),L=!n.range||n.G===0&& n.C===0?0:n.range.length-(n.C+n.G),d=n.vS;this.Jx(f,r)&&L===0&&(this.fq.isManifestless?d=f.vS:(d=n.startTime+It,n.G&&(d+=n.duration),f9(f,d),n=f.C,d=n.vS));d.J()?(L=this.G,e=WF(this.V,d.info.EA,e.vS.info.EA,r,L.V.length>0&&L.K===0&&this.loader.wS),r=pU(f),f=n.vS.A(n,e),(e=f.J)&&f.T6.length>1&&(r||f.vL.J||f.T6[0].vS!==n.vS?f=n.vS.A(n,f.T6[0].G):(r=f.T6[f.T6.length-1],d=r.G/e,!r.J&&d<.4&&(f=n.vS.A(n,e-r.G))))):(n.YA<0&&(e=ZA(n),e.pr=`${f.G.length}`,this.loader.isSeeking()&&(e.sk="1"),e.snss=n.X,this.loader.ri("nosq", e)),f=d.PS(n));if(this.policy.WS)for(B of f.T6)B.type=6;return f}Jx(f,e){if(!pU(f)||!f.vS.C())return!1;var B;(B=this.G.uY)||(B=pU(f)&&f.vS.C()&&f.C.vS.info.EA{this.loader.ri(H,k)}); this.isAudioOnly&&Zek(this,this.fq.C["0"])}DR(f,e,B,n){this.loader.DR(new JI(f,this.G?.reason==="m"?"m":this.G?.reason==="s"?"s":this.G&&zzY(this,this.G)?this.G.reason:"a",B,n));lb(this.loader,e,f,!0)}im(f,e){for(const B of this.eI)if(B.id===f)return this.W=this.fq.C[f],this.UK.Z9()&&(this.A=!0),f=new JI(this.W,e?"t":"m"),e&&(this.X=!0),f;this.J=[];return null}PB(f,e=!1,B={}){this.C.PB(f,e,B)}i4(){return this.C.i4()}};var qog=class{constructor(f,e,B){this.requestType=f;this.vL=e;this.Kq=B;this.G=null;this.aX={pA:()=>this.data?.pA, G1:()=>this.data?.G1, e2:()=>this.data?.e2}}setData(f,e,B={}){e?.Ch&&(this.x8=OeH(this,e,B),f.dH=this.vL.dH()); if(this.f$())return!0;this.data=f;this.C=Af5(f,(n,r)=>{this.Kq?.dA(n,r)},e?.J,e?.W); if(!this.C)return!1;this.G=g.zy(this.C,pWM);return!0}f$(){return this.requestType===1}A6(){return this.Kq?.A6()||0}isDecorated(){return!(!this.data?.u$&&!this.data?.R5?.length)}};var ThY=class{constructor(f){this.C=f;this.iv=(0,g.iY)(t_(16))}encrypt(f){(0,g.T)();return this.C.C?Dh(this,f,this.iv):(new g.T8(this.C.G)).encrypt(f,this.iv)}decrypt(f,e){(0,g.T)();return this.C.C?Dh(this,f,e):(new g.T8(this.C.G)).decrypt(f,e)}};var Jv5=class extends g.$0{constructor(f){super();this.Ta=f;this.C=new Map;this.J=[];this.G=!P$();this.N=g.tS(this.Ta.experiments,"html5_onesie_prewarm_interval_ms");this.K=new g.T6(this.X,this.N,this);this.U=-1;this.aX={rGA:()=>this.C, vKa:()=>this.W, cGj:()=>DAl}; g.A(this,this.K);gq5(this,g.IB("yt-player-bandaid-host"));this.W=this.load();this.N&&this.W.then(()=>{this.X()})}Ed(f){if(!((0,g.T)()=f||(f=this.C.get(0))&&TRw(this,f)}V(){const f=this.J;this.J=[];return f}},DAl={mW:0,wSI:1,LYA:2,MIY:3,zx:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"},Su0=class{constructor(f,e){this.location=f;this.G=e}C(){return CR(72,this.location)}};var MdG=class{constructor(f){this.ET=f;this.G=!1;this.C=[]}async decrypt(f){if(!this.C.length||this.C[0].isEncrypted){this.G=!0;this.ET.Ce("omd_s");var e=new Uint8Array(16),B,n;for(P$()?B=new g.QZ(f):n=new g.T8(f);this.C.length&&this.C[0].isEncrypted;){var r=this.C.shift(),L=B?await B.decrypt(ne(r.buffer),e):n.decrypt(ne(r.buffer),e);for(f=0;f{if(!this.isComplete()){const n=HG(this);this.fail(new g.WP("net.timeout",n))}},1E3); this.u9=new g.T6(this.w5,2E3,this);this.qr=this.oA.Df();this.Uy=this.Y("html5_onesie_wait_for_media_availability");g.A(this.videoData,this);g.A(this,this.Is);g.A(this,this.j9);g.A(this,this.u9);f=Ns();sh&&f&&(this.xu=new Map);this.rV=new Map;this.rh=new Map;this.TH=new Map;this.g0=new Map}pL(f){return this.xu?.get(f)?.pL()||[]}GN(f,e){return!!this.xu?.get(e)?.GN(f)}d$(f,e){return this.xu?.get(e)?.d$(f)||[]}Dn(f,e){return this.xu?.get(e)?.Dn(f)||[]}Hd(f){this.state=f;this.notifySubscribers()}f$(){return!1}lD(){return!1}Lp(){}Ce(f){this.oA.Ce(f)}Dc(f){return this.oA.Dc(f)}jG(f, e,B,n){B||this.Tt.jG(n);return!1}DT(f,e){this.ET.DT(f,e)}Jg(){this.Ce("orfb");this.Kx=!0;if(vyM(this)&&this.xhr){var f={rc:this.xhr.status,lb:this.xhr.jw(),rt:(1E3*qww(this.Tt)).toFixed(),shost:g.BT(this.gK),trigger:"o1"};this.ri("pathprobe",Go(f))}}Hc(){this.Ce("opr_r");this.F4=!0}J0(f,e,B,n){this.hx.push(n);if(this.xu){if(!this.xu.has(f)){const r=new YSO(this);this.xu.set(f,r);g.A(this,r)}this.xu.get(f)?.J0(e,B,n);dD(this);B||(this.pj=n.oe)}else dD(this)}Qa(){return this.hx}GH(){this.hx=[]}kG(f){this.XJ= f;f.TU!=null&&this.oA.jq(f.TU)}po(f){this.WN=f}WF(f){f.videoId&&this.rh.set(f.videoId,f)}OF(f){if(f.url)for(const e of f.url)JK(e,"ump_prewarm")}Qv(){if(this.xu)for(const f of this.xu.keys())this.xu.get(f)?.BN()}pY(f){this.Rc=f}tP(f){if(f?.xU&&(f=f.xU.El))for(const e of f)e.videoId&&this.g0.set(e.videoId,e)}qN(f){this.pU.push(f)}ri(f,e,B=!1){this.oA.ri(f,e,B)}VE(f,e,B){this.xu?.get(f)?.VE(e,B)}dh(f){this.TH.set(f.videoId,f)}async fetch(){this.QZ?this.Is.start():this.j9.start();this.Ce("or_i");const f= this.Ta.experiments.SI("html5_onesie_verbose_timing")||this.Ta.JE().C.jI(Z40)?this.Ce.bind(this):()=>{}; f("oloc_ss");var e=nyk(this.videoData,this.qr);e||(f("oloc_sa"),e=g.tS(this.Ta.experiments,"html5_onesie_redirector_timeout_ms"),e=await rr5(this.videoData,this.qr,e));if(!e)return this.fail(new g.WP("onesie.unavailable.hotconfig",{url:"0"})),this.nY;this.x8=CR(40,e);f("oloc_e");var B=g.vS(this.Ta,this.videoData.U()),n=!!B.C;B=n?await B.C:B.getValue();this.Y("html5_log_onesie_empty_oauth")&&!B&&this.ri("no_token",{async:n});n=dWM(this.playerRequest,this.Ta,this.videoData,B,G8(this.x8));var r;try{if(!this.Ta.kA|| this.Ta.kA?.C||n?.LQ||(f("orqb_w"),(r=kNG(n,this.S9,this.Ta,this.oA,this.Lh,this.LU.onesieUstreamerConfig,this.videoData.tQ?.u8,this.Y("onesie_cdm_mosaic_send_audio_tracks_from_client")?this.playerRequest.playbackContext?.contentPlaybackContext?.compositeVideoContext?.defaultActiveSourceVideoId:void 0))&&this.ri("orpqenc",{i:"w"})),!r){var L=CnH(this,n),d=this.Ta.JE().C.jI(b4w);if(L){f("orqb_a");let t=Hld(n,this.S9,this.Ta,this.oA,this.Lh,this.LU.onesieUstreamerConfig,this.videoData.tQ?.u8,this.Y("onesie_cdm_mosaic_send_audio_tracks_from_client")? this.playerRequest.playbackContext?.contentPlaybackContext?.compositeVideoContext?.defaultActiveSourceVideoId:void 0);if(d){const H=new Promise((k,C)=>{setTimeout(()=>void C("timeout 10s"),1E4)}); t=Promise.race([t,H]).catch(k=>{this.ri("orpqenc",{i:"a",e:`${k}`});f("orqb_f")})}r=await t; !r&&d||this.ri("orpqenc",{i:"a"})}if(!L||d&&!r)f("orqb_s"),r=t3d(n,this.S9,this.Ta,this.oA,this.Lh,this.LU.onesieUstreamerConfig,this.videoData.tQ?.u8,this.Y("onesie_cdm_mosaic_send_audio_tracks_from_client")?this.playerRequest.playbackContext?.contentPlaybackContext?.compositeVideoContext?.defaultActiveSourceVideoId:void 0),this.ri("orpqenc",{i:"j"})}}catch(t){return this.fail(t),this.nY}f("orqb_e");this.enableCompression=r.innertubeRequest.gb;this.CD=r?.a8?.CZ||0;this.Ce("osor");L=rf0();r={method:"POST", body:g.zy(r,PmC),headers:{"Content-Type":"text/plain",Referer:location.origin}};d=this.Y("html5_onesie_media_capabilities");LFH(e,this.videoData,ZlY(this),d);this.xE&&this.ri("ombrs","1");this.Tt=new e6(this,{Lh:this.Lh,Ho:this.xE,dg:(t,H)=>{this.oA.Py(t,H)}, ut:!0});e.set("rn",`${this.Tt.requestNumber}`);this.gK=e.Dw();Zjm(this.Tt,this.gK);this.Ce("or_p");this.xhr=km(new ef(e),L,this.Tt,sh,r);this.u9.start();this.oA.onPlayerRequestSent(this.videoData.videoId);return this.nY}SC(){return 2}Vl(){this.Ce("orh_r")}NN(){!this.Kx&&this.xhr.jw()&&this.Jg();this.oY&&!this.QZ&&this.jl?.start();this.NA()}oV(f=!1){this.NA();if(!(this.HS()||this.state>=4)){var e=HG(this),B=this.xhr;e.rc=B.status;f&&(e.ab=!0);if(B.jU()){var n="onesie.net";e.msg=B.jU()}else B.status>= 400?n="onesie.net.badstatus":B.lX()?this.F4||(n="onesie.response.noplayerresponse"):n=B.status===204?"onesie.net.nocontent":"onesie.net.connect";n?this.fail(new g.WP(n,e)):(this.Ce("or_fs"),this.Tt.uC((0,g.T)(),B.jw(),0),this.Hd(4),this.xE&&this.ri("rqs",e));this.xE&&this.ri("ombre",`ok.${+!n}`);this.Uy=!1;dD(this);L7(this.ET);this.QZ||(this.j9.stop(),this.jl?.stop());if(f=this.qr?.V())for(n=0;n1E3){this.Tt?.xA((0,g.T)());const e=HG(this);if(this.Ta.wA()&& this.xhr instanceof j8g){var f=this.xhr;e.xrs=f.xhr.readyState;e.xpb=f.C.totalLength;e.xdc=f.V}this.fail(new g.WP("net.timeout",e))}}else(this.Tt||!this.Ta.JE().C.jI(b4w))&&(0,g.T)()-this.Tt.C>1E4&&(this.Tt?.xA((0,g.T)()),this.Kp());this.isComplete()||this.Is.start()}}Kp(){this.Uy=!1;if(!dD(this)){var f=HG(this);f.timeout="1";this.fail(new g.WP("onesie.request",f))}}fail(f){f=sI(f);this.oY?this.oA.rC(f):(this.nY.reject(f),this.oY=!0);L7(this.ET);this.QZ||this.j9.stop();this.Ce("or_fe");this.qr?.V()?.forEach(e=> {this.ri("pathprobe",e)}); this.Hd(5);this.dispose()}isComplete(){return this.state>=3}JJ(){return this.state===4}m3(f){return this.isComplete()||!!this.xu?.get(f)?.J}vx(){return!1}Ik(){return this.state===5}notifySubscribers(f){for(let e=0;e102400&&!this.cj&&(this.Ce("or100k"), this.cj=!0);if(f.U_()){const e=f.VX(),B=e.totalLength;this.xE&&this.ri("ombrss",`len.${B}`);this.H9.feed(e)}if(this.xu)for(const e of this.xu.keys())this.xu.get(e)?.BN(),this.notifySubscribers(e)}catch(f){this.fail(f)}}uq(f){return!!this.xu?.get(f)?.X()}PE(){return this.Tt.requestNumber}v_(f){return this.TH.get(f)}Gq(){return!1}Vn(){return"ONESIE"}};var xAY=class extends g.$0{constructor(f,e,B,n,r,L,d,t,H,k,C,w){super();this.oA=f;this.loader=e;this.policy=B;this.audioTrack=n;this.videoTrack=r;this.fq=L;this.Lh=d;this.tL=t;this.G=H;this.timing=k;this.Cq=C;this.K=w;this.C=[];this.V={};this.Z9=this.qC=!1;this.MC=this.uM=0;this.FV=!0;this.ZJ=!1;this.Ed=0;this.A={yj:0,b8:0};this.kA={yj:0,b8:0};this.fh=null;this.eI={GD:[],v9:[]};this.WS={GD:[],v9:[]};this.U=null;this.W=[];this.PS=0;this.BS=!1;this.aX={UqL:()=>this.C, SKA:()=>this.V, aWi:()=>{this.C.length=0}, b5q:()=>this.videoData.Lq, EKA:()=>this.Ed, rqS:v=>{this.Ed=v}, JqS:v=>{this.A.b8=v}, um:v=>{this.U=v}, qs:v=>{this.W=v}, mR:()=>this.mR()}; this.videoData=this.oA.getVideoData();this.N=this.videoData.latencyClass==="LOW"?50:this.videoData.latencyClass==="ULTRALOW"?100:this.policy.zQ;this.policy.pz&&(this.cS=new SSm(this.loader,this.policy,this.Lh),g.A(this,this.cS))}mR(f){var e=Tv(this.loader)&&f&&f.wk!==void 0&&!f.D6?f.wk*1E3+(this.loader.gA()||0):Z9(this);if(this.policy.Qr){var B=this.eI;var n=this.WS}else B=K7(this,this.audioTrack),n=K7(this,this.videoTrack);var r=[...B.GD,...n.GD];zv(this)&&r.push(...this.W);var L=[...B.v9,...n.v9]; const d=this.loader.Gy();if(this.policy.jJ&&!this.videoData.isLivePlayback){var t=this.videoData.lengthSeconds*1E3;e>=t&&this.loader.ri("invalidSabrCmt",{cmt:e,vd:t})}t=this.Lh;var H=this.oA,k=this.fq,C=this.J,w=this.videoData.Lq,v=this.policy,b=this.loader.YM,K=wAH(this.loader)*1E3,Y=this.Lq?.L1,l=this.Lq?.QX,m=this.uM,F=Number(this.G.V?.info.itag)||0,N=Number(this.G.W?.info.itag)||0,E=this.oA.xt();var Lw=f?.pA?f.pA:this.loader.isSuspended?4:void 0;e={Lh:t,oA:H,fq:k,GD:r,v9:L,iz:e,nextRequestPolicy:C, jd:w,UK:v,x6:b,yk:K,L1:Y,QX:l,uM:m,zy:F,tV:N,T1:d,Jh:E,pA:Lw,FV:this.FV,ZJ:this.ZJ};r=this.loader.F3();L=Tf(r);r&&(e.G1=L);if(f=Tv(this.loader)&&f?.D6?f.wk:this.oA.QL())e.e2=f*1E3;f=this.G;r=f.A;if(f.UK?.Z9()&&!r)for(d6 of f.J)if(d6.Z_){r=!0;break}var d6=f.UK.Z9()&&!r?[]:KWC(f,f.J);e.wI=d6;d6=this.G;d6.UK.Z9()&&!d6.Cq?d6=[]:(f=Rzk(d6),f.length===0&&(f=d6.U),d6=KWC(d6,f));e.nZ=d6;e.M2=zv(this)?[this.U]:void 0;e.PO=Array.from(U8(this.G.C).keys(),Number);e.i4=this.G.i4();this.policy.Jm&&(e.iF=mQ5(this.loader, this.audioTrack),e.Qw=mQ5(this.loader,this.videoTrack));d6=this.loader.getCurrentTime();B=Rt(this,B.GD,d6);n=Rt(this,n.GD,d6);this.PS=n=Math.min(B,n);this.policy.G&&(zv(this)&&(B=Rt(this,this.W,d6),this.oA.wA()&&B0&&this.C[0].lD()&&(e.Rf=this.C[0].Lp());return e}Ra(f,e){this.X=void 0;aB5(this);uIm(this,f,e)}bu(f){if(this.C.length===0)return!1;const e=this.C[0];return e instanceof wD?f===this.loader.getCurrentTime()*1E3:!(e instanceof O8&&e.info.C?.a8?.e2)&&Math.abs(e.y6()-f)<50}WF(f,e){this.J=f;this.policy.G&&!f.playbackCookie&&this.loader.ri("sbrnocookie",{rn:e??-1});this.policy.Yy&&this.K?.K()?this.loader.ri("clsdai",{ignbckoff:e??-1,backoff:f.backoffTimeMs??-1}):this.X=(0,g.T)()+ (f.backoffTimeMs||0)}D1(f,e){if(f.action===void 0)f=this.oA.QL(),f!==void 0&&this.loader.N$(f);else if(f.action!==0||!this.Z9)if(f.action===0&&this.policy.J$&&(f.action=2),f.Hh==="sabr.malformed_config"&&this.MC++<3)this.loader.handleError("sabr.malformed_config",{action:f.action,rn:e,retry:this.MC},0);else{var B={};B.reason=f.Hh;B.action=f.action;B.rn=e;switch(f.action){case 1:this.policy.G&&this.fh&&mk(this.fh,void 0,void 0,B);break;case 0:this.Z9=!0;this.videoData.q0()&&this.policy.G&&this.fh&& mk(this.fh,void 0,void 0,B,!1);this.loader.H2(B);break;case 2:li5(f.Hh)!=="sabr.config"&&delete B.reason;this.loader.handleError(li5(f.Hh),B,1);break;case 3:this.policy.Ch&&(this.fq.Ed?.Cq(),this.loader.handleError("sabr.hostfallback",B))}}}OF(f){if(f.url)for(const e of f.url)JK(e,"ump_prewarm")}Mi(f){f&&(this.loader.ri("sabrctxt",{onsbrctxt:f.type,scp:f.scope,dflt:f.sendByDefault}),f.type&&f.sendByDefault&&this.videoData.Lq.add(f.type),f.scope!==2&&(f.type&&this.videoData.sabrContextUpdates.set(f.type, f),this.oA.Mi(f)))}K_(){}pY(f,e){if(this.loader.n$)this.loader.ri("sdai",{ignSabrSeek:1,smt:f?.jz,rn:e});else if(f.jz!==void 0&&f.ge){const B=f.jz/f.ge;this.audioTrack.U=!1;this.videoTrack.U=!1;if(this.policy.Cq||this.policy.S6||this.policy.o_)this.loader.VW.C=!1;this.oA.getCurrentTime()!==B&&(e={wX:"sabr_seek",JW:!0,fD:!0},f.seekSource&&(e.seekSource=f.seekSource),rz(this.loader,B+.1,e))}}onSnackbarMessage(f){this.oA.publish("onSnackbarMessage",f)}qN(f,e){this.policy.W&&this.loader.qN(f,e)}kG(f){f.h5&& f.l2&&ru(this.fq,f.h5,f.l2);this.policy.aj&&(f.tJ&&f.Nb&&(this.fq.By=f.tJ/f.Nb),f.De&&f.kS&&(this.fq.cP=f.De/f.kS));Ux(this.videoData)&&!this.videoData.gM&&f.l2&&this.loader.E_(f.l2,1E3);f.TU!=null&&this.oA.jq(f.TU);f.Su&&(f=((0,g.T)()-f.Su)/1E3,this.loader.wG.fB(1,f))}nk(f){this.loader.nk(f)}J0(f){this.loader.J0(f)}JB(f){this.loader.JB(f)}e_(f){return this.videoData.Lq.has(f)}Fv(f,e,B){this.policy.J&&this.loader.ri("sabrctxtplc",{start:f?f.join("_"):"",stop:e?e.join("_"):"",discard:B?B.join("_"): ""});if(f)for(const n of f)this.videoData.Lq.add(n);if(e)for(const n of e)this.videoData.Lq.has(n)&&this.videoData.Lq.delete(n);if(B)for(const n of B)if(this.videoData.sabrContextUpdates.has(n)&&this.videoData.sabrContextUpdates.delete(n),this.policy.N&&this.C.length)for(const r of this.C)r instanceof wD||r.FP?.type!==n||(r.FP=void 0)}OO(){}um(f){this.U=f}qs(f){this.W=f}mp(f,e){jr(this.policy,f,4,e)}tP(f){if(f?.xU&&(f=f.xU.El))for(const e of f)e.formatId&&(f=this.fq.J.get(rG(e.formatId)))&&f.info&& (f.info.debugInfo=e.debugInfo)}n_(f){this.BS=!0;this.oA.publish("reloadplayer",f)}uj(){return this.oA.uj()||""}A6(){const {lL:f,kq:e}=V3G(this);return Math.min(f,e)}dA(f,e){this.loader.ri(f,e)}HK(f){Mq(this.loader,iL0(this.tL,f))}xA(){return{requestNumber:this.uY?.PE()||-1,isDecorated:this.uY?.info.isDecorated()}}QN(f){this.oA.QN(f)}HI(){this.loader.HI()}Zi(){this.loader.Zi()}bY(){super.bY();this.J=void 0;uIm(this,!0,"i");this.C=[]}};var Ws5=class{constructor(f){this.oA=f;this.C=new Map;this.delay=null}getCurrentTime(){return this.oA.getCurrentTime()-this.oA.gA()}},sgk=class{constructor(f,e,B){this.V=f;this.cpn=e;this.oA=B;this.C=new Map;this.J=new Map;this.U=NaN;this.G=this.qD="";this.isSeeking=!1;this.W=new Ws5(B);this.aM=B.aM;this.oA.subscribe("statechange",this.K,this);this.oA.subscribe("SEEK_TO",()=>{this.kH()}); this.oA.subscribe("SEEK_COMPLETE",()=>{gyl(this)}); this.qD=this.G=this.cpn}K(f){Hu(f.state)&&p7(this.W)}clear(){var f=this.W;f.delay?.dispose();f.C.clear();this.J.clear();this.C.clear();this.U=NaN}X(f,e,B=0){if(f!==this.U||this.C.get(f)?.J!==e?.J)if(e?this.C.set(f,e):this.C.delete(f),!this.isSeeking){var n=this.V.getStartTime(f);this.U=f;Eyg(this,f);if(e){let r=n;e.C.forEach((L,d)=>{r=2&&!f.Ik()&&f.info.IM===0&&(this.V=f,this.X=B,this.G=e.info,this.U=this.startTimeSecs=Date.now()/1E3,this.W=this.G.startTime)}return NaN}clear(){this.G=this.X=this.V=null;this.C=this.W=this.U= this.startTimeSecs=NaN;this.J=!1}};var X_5=class extends g.$0{constructor(){super();try{this.J=sm0(f=>{this.G=f.at(-1)}),this.W=this.J?.observe("cpu",{sampleInterval:2E3}).catch(f=>{f instanceof DOMException&&(this.C=f)})}catch(f){f instanceof DOMException&&(this.C=f)}}V(){const f={},e=window.h5vcc; f.hwConcurrency=navigator.hardwareConcurrency;this.C&&(f.cpe=this.C.message);this.G&&(f.cpt=this.G.time,f.cps=this.G.state);e?.cVal&&(f.cb2s=e.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),f.cb5s=e.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),f.cb30s=e.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30"));return f}bY(){XtC(this);super.bY()}};var yrm=/[?&]cpn=/;var yv5=class extends g.$0{constructor(){super();this.maxBufferSize=this.sampleInterval=100;this.W=$Wl;this.C=[];this.J=0;fAw(this)}flush(){const f={};this.G&&(f.pe=this.G);this.C.length>0&&(f.pt=this.C.join("."));this.C=[];return f}async stop(){try{const f=await this.V?.stop();f&&this.logTrace(f)}catch(f){this.G=ilY(f.message)}}logTrace(f){const e=[],B=[],n=[],r=[];let L=0;for(const d of f.resources)e.push({id:L,url:d}),L++;L=0;for(const {name:d,resourceId:t,line:H,column:k}of f.frames)B.push({id:L, name:d,resourceId:t,line:H,column:k}),L++;L=0;for(const {frameId:d,parentId:t}of f.stacks)r.push({id:L,frameId:d,parentId:t}),L++;L=0;for(const {timestamp:d,stackId:t}of f.samples)n.push({id:L,timestampMs:d,stackId:t}),L++;f=g.ON(g.zy({resources:e,frames:B,samples:n,stacks:r},e$0),4);this.J+=f.length;this.J<1E7&&this.C.push(f)}bY(){this.stop();super.bY()}};(0,g.iY)([112,12,216,9,235,17,82,221]);var ZzH=[2,5,30];g.hI=aY(()=>{let f="";try{const e=g.BN("CANVAS").getContext("webgl");e&&(e.getExtension("WEBGL_debug_renderer_info"),f=e.getParameter(37446),f=f.replace(/[ :]/g,"_"))}catch(e){}return f});g.d1=class extends g.$0{constructor(f){super();this.provider=f;this.logger=new g.or("qoe");this.C=new Map;this.sequenceNumber=1;this.A=NaN;this.mA="N";this.K=this.x_=this.Nv=this.Ed=this.J=0;this.Ch=this.PS=this.U=this.uY="";this.Yp=this.Lq=NaN;this.G6=0;this.uC=-1;this.Q3=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.kA=this.isEmbargoed=this.eI=this.isOffline=this.isBuffering=!1;this.Mk=[];this.N=null;this.MC=this.W=this.cS=this.X=!1;this.V=-1;this.BS=!1;this.hE=new g.T6(this.Wd,750,this);this.Ij= this.adCpn="";this.vy=this.iI=this.AU=this.zm=this.adFormat=void 0;this.UE=0;this.EE=new Set("cl fexp drm drm_system drm_product ns adformat live cat shbpslc".split(" "));this.sE=new Set(["gd","pw","gp","gm","dd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.qC=!1;this.IA=NaN;this.WS=0;this.tL=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.xA=!1;this.mS=new Set;this.aX={pZ:B=>{this.pZ(B)}, JGY:()=>this.G, reportStats:()=>{this.reportStats()}, guA:()=>this.C.get("cat")||[], cM:B=>this.C.get(B)||[], gKq:()=>this.C, Ujd:()=>({adCpn:this.adCpn,Ij:this.Ij,adFormat:this.adFormat}), Hcq:()=>({zm:this.zm,AU:this.AU,iI:this.iI,vy:this.vy})}; this.Cq=this.provider.Ta.Y("html5_qoe_relaxed_reporting");var e=g.tS(this.provider.Ta.experiments,"html5_qoe_proto_mock_length");e&&!Nq.length&&(Nq=IBH(e));g.A(this,this.hE);try{navigator.getBattery?.().then(B=>{this.N=B})}catch{}g.ot(this,0,"vps",["N"]); f.Ta.wA()&&(this.WS=(0,g.T)(),this.IA=g.ls(()=>{const B=(0,g.T)(),n=B-this.WS;n>500&&this.ri("vmlock",{diff:n.toFixed()});this.WS=B},250)); this.provider.videoData.Nn&&(this.remoteControlMode=gSk[this.provider.videoData.Nn]||0);this.provider.videoData.d8&&(e=mCH(this.provider.videoData.d8),e?.length&&(this.remoteConnectedDevices=e));f.Ta.wA()&&(this.Fl=new X_5,g.A(this,this.Fl));f.Ta.webPlayerContextConfig?.enableSelfProfilingLogging&&(this.Z9=new yv5,g.A(this,this.Z9))}Wd(){const f=g.uY(this.provider);VE(this,f)}QI(){return this.vN}yL(){return{Nv:this.Nv,x_:this.x_}}Y1(f,e){this.Nv=f;this.x_=e}jq(f){if(!this.xA){this.xA=!0;var e=""; switch(f){case 1:e="proximaui";break;case 2:e=this.provider.videoData.V9.getWebPlayerContextConfig()?.enableProximaLowLatency?"proximawpcc":this.provider.videoData.Y("html5_enable_proxima")||this.provider.videoData.Y("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:e="proximaauto"}e!==""&&U_(this,e)}}Ql(f,e,B,n){if(!this.mS.has(f)){this.mS.add(f);var r=g.uY(this.provider);g.ot(this,r,"lse",[f,e,B,n.toFixed(3)])}}i7(f){O_(this,"lwc",[f.Hs?f.Hs.toFixed():"",f.sI?f.sI.toFixed(): "",f.Ei?(f.Ei*1E3).toFixed():"",f.GQ?(f.GQ*1E3).toFixed():"",f.fY?(f.fY*1E3).toFixed():""].join(":"))}reportStats(f=NaN){if(!this.HS()&&(f=f>=0?f:g.uY(this.provider),this.Cq?PZm.has(this.mA)&&(this.C.size||(this.mA==="PL"?f>=this.J+30:f<=this.Ed+30||f>=this.J+1200&&f<=this.Ed+86400))&&(g.ot(this,f,"vps",[this.mA]),this.J=f):["PL","B","S"].indexOf(this.mA)>-1&&(this.C.size||f>=this.J+30)&&(g.ot(this,f,"vps",[this.mA]),this.J=f),this.C.size)){this.sequenceNumber===7E3&&g.Yv(Error("Sent over 7000 pings")); if(!(this.sequenceNumber>=7E3)){FS(this,f);var e=this.provider.oA.SV();for(const {key:H,value:k}of e)this.ri(H,k);e=f;var B=this.provider.oA.wu(),n=B.droppedVideoFrames||0;const L=B.totalVideoFrames||0,d=n-this.Nv,t=L&&!this.x_;n>B.totalVideoFrames||d>5E3?pmm(this,"html5.badframedropcount",`df.${n};tf.${B.totalVideoFrames}`):(d>0||t)&&g.ot(this,e,"df",[d]);this.Nv=n;this.x_=L;this.K>0&&(g.ot(this,f,"glf",[this.K]),this.K=0);D$.isActive()&&(f=D$.AT(),Object.keys(f).length>0&&this.ri("profile",f)); this.tL&&U_(this,"lwnmow");f={};this.provider.videoData.G&&(f.fmt=this.provider.videoData.G.itag,(e=this.provider.videoData.V)&&e.itag!==f.fmt&&(f.afmt=e.itag));f.cpn=this.provider.videoData.clientPlaybackNonce;this.zm?.length?f.adcpn=this.zm.join(","):this.adCpn&&(f.adcpn=this.adCpn);this.AU?.length?f.addocid=this.AU.join(","):this.Ij.length&&(f.addocid=this.Ij);B=this.provider.videoData;e=B.q0();B=B.latencyClass;(this.provider.Ta.JE().C.jI(iZ0)&&e&&B==="NORMAL"||this.provider.Ta.JE().C.jI($hm)&& e&&B==="LOW"||this.provider.Ta.JE().C.jI(I$k)&&this.provider.videoData.isDaiEnabled()&&Rl(this.provider.videoData))&&(f.adc=1);this.provider.videoData.cotn&&(f.cotn=this.provider.videoData.cotn);f.el=Ex(this.provider.videoData);f.content_v=WS(this.provider.videoData);f.ns=this.provider.Ta.Ed;f.fexp=VH0(this.provider.Ta.experiments).toString();f.cl=(867351992).toString();e=this.provider.videoData.adFormat||this.adFormat;this.iI?.length?f.adformat=this.iI.join(","):e&&(f.adformat=e);(e=ud(this.provider.videoData))&& (f.live=e);this.provider.videoData.xK()&&(f.drm=1,this.provider.videoData.W&&(f.drm_system=GA5[this.provider.videoData.W.flavor]||0),this.provider.videoData.drmProduct&&(f.drm_product=this.provider.videoData.drmProduct));qg()&&this.provider.videoData.dj&&(f.ctt=this.provider.videoData.dj,f.cttype=this.provider.videoData.pF,this.provider.videoData.mdxEnvironment&&(f.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(f.dai=this.provider.videoData.enableServerStitchedDai? "ss":"cs",this.provider.videoData.U$&&(f.dai_fallback="1"),Rl(this.provider.videoData)&&(f.dai="mv")):this.provider.videoData.u6?f.dai="cs":this.provider.videoData.Me&&(f.dai="disabled");f.seq=this.sequenceNumber++;if(this.provider.videoData.AD){if(e=this.provider.videoData.AD,f&&e){e.ns==="3pp"&&(f.ns="3pp");this.sE.has(e.ns)&&U_(this,"hbps");e.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=e.shbpslc);for(var r of Object.keys(e))this.EE.has(r)||(f[r]=e[r])}}else f.event="streamingstats", f.docid=this.provider.videoData.videoId,f.ei=this.provider.videoData.eventId;this.isEmbargoed&&(f.embargoed="1");Object.assign(f,this.provider.Ta.C);(r=f.seq)&&!this.provider.Ta.experiments.JE().C.jI(t6d)&&(e=YQG(this,+r),e=g.zy(e,OXg),e=g.ON(e,4),this.C.set("qclc",[e]));f=g.vT("//"+this.provider.Ta.To+"/api/stats/qoe",f);B=e="";for(const [H,k]of this.C.entries()){n=k;if(!n?.join)continue;n=`&${H}=${n.join(",")}`;n.length>100?B+=n:e+=n}this.provider.Ta.experiments.JE().C.jI(t6d)&&(r=YQG(this,+(r|| 0)),r.qoePingUrl=f+e+B,g.t$("qoeClientLoggingContext",r),e+="&dl=1");Aag(this,f+e,B.replace(/ /g,"%20"))}this.C.clear()}}Tm(f){this.tL=f}lC(){if(this.provider.videoData.W){var f=this.provider.videoData.W;U_(this,`eme-${f.keySystemAccess?"final":qs(f)?"ms":pT(f)?"ytfp":aP(f)?"safarifp":"nonfinal"}`)}}U4(f){this.isEmbargoed=f}onPlaybackRateChange(f){const e=g.uY(this.provider);f&&f!==this.Q3&&(g.ot(this,e,"rate",[f]),this.Q3=f);this.Cq||this.reportStats(e)}getPlayerState(f){if(f.C(128))return"ER";if(f.C(2048))return"B"; if(f.C(512))return"SU";if(f.C(16)||f.C(32))return"S";if(f.isOrWillBePlaying()&&f.C(64))return"B";let e=IQl[Kh(f)];g.IM(this.provider.Ta)&&e==="B"&&this.provider.oA.getVisibilityState()===3&&(e="SU");e==="B"&&f.C(4)&&(e="PB");return e}tW(f,e){const B=g.uY(this.provider);g.ot(this,B,"vfi",[f==="A"?"":`${e??0}`,f])}bY(){super.bY();g.Fx(this.A);g.Fx(this.IA)}pZ(f){this.isOffline=f;g.ot(this,g.uY(this.provider),"is_offline",[this.isOffline?"1":"0"])}ri(f,e,B){const n=this.Mk.indexOf(f)!==-1;n||this.Mk.push(f); if(!B||!n){e=typeof e!=="string"?Go(e):e;e=OzY(e);if(!B&&!/^t[.]/.test(e)){var r=g.uY(this.provider)*1E3;e=`t.${r.toFixed()};${e}`}O_(this,"ctmp",`${f}:${e}`);mT(this);return r}}P3(f,e,B){this.G={MO:Number(this.ri("glrem",{nst:f.toFixed(),rem:e.toFixed(),ca:+B})),GX:f,Zq:e,isAd:B}}rz(f,e,B){g.ot(this,g.uY(this.provider),"ad_playback",[f,e,B])}ip(f,e){const B=g.uY(this.provider)*1E3;O_(this,"daism",`t.${B.toFixed(0)};smw.${(f*1E3).toFixed(0)};smo.${(e*1E3).toFixed(0)}`)}resume(){isNaN(this.A)?jrg(this): this.A=g.ls(()=>{this.reportStats()},1E4)}}; g.d1.prototype.ew=eC(50);g.d1.prototype.Bt=eC(33);g.d1.prototype.Jq=eC(27);g.d1.prototype.hC=eC(21);var IQl={[5]:"N",[-1]:"N",[3]:"B",[0]:"EN",[2]:"PA",[1]:"PL",[-1E3]:"ER",[1E3]:"N"},PZm=new Set(["PL","B","S"]),Nq=[];var BL5=class extends g.$0{constructor(f,e,B,n,r,L,d,t=!1,H,k){super();this.oA=f;this.schedule=e;this.policy=B;this.fq=n;this.Ed=H;this.UE=k;this.aP=this.D9=null;this.Lq=this.uY=this.PS=this.A=0;this.wS=this.s8=this.isSuspended=!1;this.MC="";this.hF={};this.IA=NaN;this.xA=this.Ch=this.wg=0;this.fh=null;this.G6=this.Z9=!1;this.YM=0;this.qC=!1;this.WS=this.tL=0;this.uC=null;this.n$=!1;this.q9=()=>this.oA.q9(); this.timing=new jgm(this.UE);this.N=new w_M(this.schedule,this.policy);this.Q3=new g.T6(this.XL,0,this);this.Yp=new g.T6(this.XL,this.policy.Q3,this);this.Qm=new g.T6(this.XL,1E3,this);this.EE=new g.T6(this.XL,void 0,this);this.Fl=new g.T6(()=>{this.isSuspended||this.XL()},1E4,this); this.mS=new g.T6(this.qj,250,this);this.X=this.currentTime=NaN;this.wG=new r1(5);this.eI=this.timestampOffset=NaN;this.logger=new g.or("dash");this.lC=Infinity;this.aX={ktI:()=>this.VW, awY:()=>this.J, getAudioTrack:()=>this.audioTrack, hVA:()=>this.videoTrack, tyA:()=>this.Cq, getManifest:()=>this.fq, frA:()=>this.G, XL:()=>{this.XL()}, S_:()=>{this.A=0;this.S_()}, KxI:C=>Gv(this,this.videoTrack,this.D9.G,C)}; f=H&&H.pL();H&&(Rv5(H,this.fq,this.policy),this.eI=Date.now());this.C=new lQm(this,this.N,B,this.fq,r,f);B=P4M(this.C,L,d&&d.id);this.audioTrack=new hfd(this,this.policy,B.audio,this.timing);this.videoTrack=new hfd(this,this.policy,B.video,this.timing);this.videoTrack.J.Cq=this.audioTrack.GO();this.BS={updateend:this.Cc,error:this.P4};g.A(this,this.Q3);g.A(this,this.Yp);g.A(this,this.Qm);g.A(this,this.EE);g.A(this,this.Fl);B=this.policy.BR&&this.policy.h1?!rhM(this.videoTrack.vS.info):!1;this.hE= tE0({nG:this.policy.X.nG||B,h1:this.policy.h1&&!B,qU:this.policy.qU});this.K=DWO(this,this.policy,this.hE,this.schedule,this.wG,(C,w)=>UQH(this,C,w)); this.J=new Oy5(this,this.fq,this.policy,this.videoTrack,this.audioTrack,t);this.policy.W&&(t=this.oA.getVideoData(),this.ri("clsdai",{initld:1,admapsz:t.DP?.size}),t.DP||(t.DP=new Map),this.Cq=new oJC(this.policy,(C,w)=>{this.ri(C,w)},this.policy.ql,t.DP)); this.VW=new by5(this,this.fq,this.videoTrack,this.audioTrack,this.policy);t=this.policy.Wy?this.oA.getVideoData().Re:null;this.U=new EJM(this,this.policy,this.videoTrack,this.audioTrack,this.hF,this.J,this.timing,this.N,this.schedule,this.fq,this.C,this.K,B,t);g.A(this,this.U);this.W=new QgH(this,this.policy,this.videoTrack,this.audioTrack,this.fq,r,bd(this.oA.getVideoData()),d?.id);g.A(this,this.W);pAw(this.W,L);this.G=new xAY(this.oA,this,this.policy,this.audioTrack,this.videoTrack,this.fq,this.schedule, this.C,this.W,this.timing,this.J,this.Cq);g.A(this,this.G);this.V=this.oA.Xx.I_.K1;this.policy.U||NGk(this);this.policy.Ys&&(this.Wd=new sgk(this.videoTrack.vS.index,this.oA.getVideoData().clientPlaybackNonce??"",this.oA))}initialize(f,e,B){f=f||0;this.policy.C||(e=eUC(this.C),D9(this.oA,new JI(e.video,e.reason)),this.oA.fk(new JI(e.audio,e.reason)));this.policy.C&&gM(this);this.fq.isManifestless&&be6(this.U);this.K&&Jrk(this.K,this.videoTrack.vS);e=isNaN(this.getCurrentTime())?0:this.getCurrentTime(); let n=!this.fq.isManifestless;this.policy.Nt&&(n=n||this.fq.dC);if(!this.policy.Ed||this.policy.kA)this.currentTime=n?f:e;this.policy.Cq&&this.seek(this.getCurrentTime(),{}).wT(()=>{}); this.policy.C?this.V?.uq(this.uj()||"")&&h10(this)&&xf(this,this.videoTrack)&&xf(this,this.audioTrack)&&(FFH(this.G,this.V),this.policy.U&&NGk(this)):this.Ed&&(gG6(this,this.videoTrack),gG6(this,this.audioTrack),k55(this.Ed),delete this.Ed);B?(this.cS(!1),this.Qm.M0()):(f=this.getCurrentTime()===0,Vc(this.U,this.videoTrack,this.videoTrack.vS,f),Vc(this.U,this.audioTrack,this.audioTrack.vS,f),this.policy.C&&OlM(this.G,{pA:1}),this.policy.Cq||this.seek(this.getCurrentTime(),{}).wT(()=>{}),this.timing.tick("gv")); (this.fq.Hs||this.fq.sI||this.fq.Ei||this.fq.GQ||this.fq.fY)&&this.oA.i7(this.fq)}cS(f){this.s8=f||this.oA.S().Y("html5_allow_multiview_tile_preload")&&this.oA.getVideoData().sE;this.policy.WS||(this.isSuspended=!0,this.policy.a4&&(this.Qm.stop(),this.Yp.stop(),this.Q3.stop()),this.Fl.stop())}resume(){if(this.isSuspended||this.wS){this.s8=this.wS=this.isSuspended=!1;try{this.XL()}catch(f){g.J(f)}}}TV(){return!this.policy.Wd}yJ(f=!1,e=!1){Qrm(this);this.oA.Wt()&&(this.X=NaN);f?(this.policy.PS&&this.ri("loader", {setsmb:1}),this.policy.WS=!0,this.nB()):(this.cS(!1),e||this.nB())}setAudioTrack(f,e,B=!1){if(!this.HS()){var n=!isNaN(e);B&&n&&(this.audioTrack.Ed=Date.now(),this.policy.hR&&(this.qC=!0));B=this.oA.Wt()&&!this.oA.getVideoData().K;if(this.policy.C){var r=this.W.im(f.id,n);this.oA.fk(r)}else r=this.C,r.G=r.fq.C[f.id],r.X=r.G,r=new E8(r.X,r.J,n?"t":"m"),this.oA.fk(new JI(r.audio,r.reason));n?(this.IA=Date.now(),n=this.audioTrack.vS.index.hq(e),this.ri("setAudio",{id:f.id,cmt:e,sq:n}),n>=0&&(f=this.policy.Qx? n+1:n,this.policy.C&&this.Ra(!0,"mosaic"),KU(this.audioTrack,f,NaN,NaN),!this.policy.sE&&this.fq.isLive&&fT(this.fq,f,!1))):B||this.oA.eC()}}setPlaybackRate(f){f!==this.N.getPlaybackRate()&&this.N.setPlaybackRate(f)}py(f){const e=this.G.U;this.G.um(f);this.ri("scfidc",{curr:rG(e),"new":rG(f)});f&&rG(f)!==rG(e)&&(this.Ra(!0,"caption change"),this.CV())}Ly(f){this.G.qs(f)}DR(f){f.C.info.G8()?this.oA.fk(f):D9(this.oA,f)}HK(f){vm(f.T6[f.T6.length-1])&&Mq(this,iL0(this.C,f.T6[0].vS))}F3(){return this.oA.F3()}Gy(){return this.oA.Gy()}JB(f){this.oA.S().wA()&& this.ri("sps",{status:f.wl||""});if(f.wl===1)this.wg=0;else if(f.wl===2||f.wl===3){let e=!1;f.wl===3&&(this.lC=f.yO??Infinity,this.wg+=1,(e=FV(this))&&this.PY(!0));this.oA.Ko(!0,e)}}Df(){return this.oA.Df()}QD(){return this.oA.QD()}Di(f){this.oA.Di(f)}CV(){this.XL()}qj(){const f=this.oA.aC()?.getCurrentTime();f?this.oA.ri("rms",{cta:f}):this.mS.M0()}XL(){s_(this);if(this.D9&&fh(this.D9)&&!this.D9.oJ()&&(!this.policy.Ed||isFinite(this.getCurrentTime()))){var f=rM(this.videoTrack);f=this.policy.qe&& f&&f.U();this.fq.isManifestless&&this.fq.K&&yj(this.fq)?(this.X=yj(this.fq),this.D9.P9(this.X)):LT(this.fq)&&!f?(f=this.getCurrentTime(),this.policy.Ed&&this.policy.kA&&this.ri("ssrDuration",{ld:this.kA(),lct:this.currentTime,vpd:this.getCurrentTime()},!0),isNaN(this.X)?(this.X=f+3600,this.D9.P9(this.X)):this.X<=f+1800&&(this.X=Math.max(this.X+1800,f+3600),this.D9.P9(this.X))):this.D9.isView||(f=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),(!isFinite(this.X)||this.X!==f)&& f>0&&(this.D9.P9(f),this.X=f))}if(!this.HS())if(Xn(this.fq)&&this.fq.Ik()){var e=this.fq;this.handleError("manifest.net.retryexhausted",e.xA?{rc:e.QW}:{rc:e.QW.toString()},1)}else if(this.policy.C)a:{try{if(Tv(this)&&this.aP){e=this.G;var B=this.aP;const K=B.C;if(K){var n=e.oA.QL(),r=!0;n||(n=e.loader.getCurrentTime(),r=!1);{var L=K,d=n;const Y=r?e.oA.KF(d):d;if(e.loader.XM(Y))var t=!1;else{var H={t:d.toFixed(3),isUtc:r};c:{const l=e.oA.uj();if(l){for(const m of[e.audioTrack,e.videoTrack]){const F= Lz(m.vS,e.fq.sA);n=L?.Dn(F,l)||[];if(n.length===0||!eR5(new jf(n),Y)){var k=!1;break c}}k=!0}else k=!1}k?(e.loader.ri("prebuffer",Object.assign(H,{inrange:1})),t=!0):(L.info.C?.a8?.e2?r&&(L.info.C?.a8?.e2||0)===d*1E3:!r&&(L.info.C?.a8?.CZ||0)===d*1E3)?(e.loader.ri("prebuffer",Object.assign(H,{match:1})),t=!0):t=!1}}t&&(e.oA.Ce("ismp_c"),e.C.push(K),e.cS?.C(K.info.vL),K.EB(),B.J(!1))}}C7(this.G);this.fq.isManifestless&&this.policy.U&&n9(this.VW);this.D9?.U()&&this.S_();OlM(this.G);if(Tv(this)&&this.aP){var C= this.G,w=this.aP;const K=w.G.wk;if(K!==void 0&&K>=0){C.oA.Ce("ismp_a");var v=w.G;if(mWG(C,v)){var b=jmm(C,v);C.policy.zQ>0&&C.kA.b8++;b&&(w.C!==b&&(dww(w),w.C=b,w.G=L4),C.oA.Ce("ismp_rc"))}}}}catch(K){g.Yv(K);if(K.message.includes("changeType")){this.ri("ctype",{exp:K.name,msg:K.message,s:K.stack});break a}this.handleError("fmt.unplayable",{exp:K.name,msg:K.message,s:K.stack,trg:"sabrslicerqt"},1)}MfH(this);this.Fl.M0()}else if(!this.fq.G||!$wG(this.videoTrack)&&!$wG(this.audioTrack)||(this.videoTrack.V|| this.audioTrack.V)&&this.policy.tL?e=!1:(this.nB(),this.oA.seekTo(Infinity,{wX:"checkLoaderTracksSync",E_:!0}),e=!0),!e){s_(this);this.fq.isManifestless&&(i6m(this.videoTrack),i6m(this.audioTrack),n9(this.VW),(e=eN(this.videoTrack))&&e.C&&(e=e.C.V&&!this.policy.h1,this.ri(e===this.policy.X.nG?"strm":"strmbug",{strm:e,sfmp4:this.policy.X.nG,dfs:this.policy.h1},!0)));if(this.D9)this.S_();else if(this.policy.V){e=!1;if(this.policy.E7)for(r of[this.videoTrack,this.audioTrack]){for(B=eN(r);B&&r.iM()!== rM(r);B=eN(r))r.Wl(B);e=e||!!B}else(L=eN(this.videoTrack))&&this.videoTrack.Wl(L),(d=eN(this.audioTrack))&&this.audioTrack.Wl(d);CU(this.videoTrack)&&CU(this.audioTrack)||(L||d||e)&&kf(this)}WG(this);Vc(this.U,this.videoTrack,this.videoTrack.vS,!1);Vc(this.U,this.audioTrack,this.audioTrack.vS,!1);if(!this.policy.Vx&&(e=this.videoTrack,H=this.audioTrack,(!this.D9||fh(this.D9)&&!this.policy.gz)&&!this.VW.isSeeking()&&(this.policy.C||pU(e)&&e.vS.C()&&this.C.Ed)))a:{if(B=this.getCurrentTime(),t=this.N, k=WF(t,e.vS.info.EA,H.vS.info.EA,0),H=xr(t.Lh)+k/MX(t.Lh),B+=Math.max(H,H+t.policy.rN-k/e.vS.info.EA),e.G.length){if(e.G[0].info.T6[0].startTime<=B)break a;Iy(e)}t=e.J;for(H=t.G.length-1;H>=0;H--)t.G[H].info.startTime>B&&t.G.pop();s4w(e);e.C&&B5&&f.N.shift(),e=e.YA,this.oA.getVideoData()?.enableServerStitchedDai&&(B=BRH(this.audioTrack,e),f=BRH(this.videoTrack,e),B!== 0&&f!==0&&B!==f&&this.handleError("ssdai.avsync",{sq:e,a:B,v:f},0)))}}dK(f,e,B,n){f.info.video&&this.J.dK(e,B,n)}g3(f){this.C.g3(f)}bx(){return this.fh}Tg(){return this.videoTrack.U||this.audioTrack.U}seek(f,e){if(this.HS())return ho();if(this.Tg())return ho("seeking to head");if(this.policy.Cq&&!isFinite(f))return kgO(this.VW),g.Np(Infinity);s_(this);iz5(this,f,!1,e.seekSource);gM(this);this.policy.C||WG(this,f);this.D9&&this.D9.C&&this.D9.G&&!this.oA.getVideoData().VN&&(this.D9.C.isLocked()||this.D9.G.isLocked())&& this.oA.eC({reattachOnLockedBuffer:1,vsb:`${this.D9.G.isLocked()}`,asb:`${this.D9.C.isLocked()}`});const B=this.getCurrentTime(),n=this.VW.seek(f,e);if(!this.policy.Ed||this.policy.kA)this.currentTime=n;Fu(this.J,f,B,this.policy.Cv&&!e.JW);kf(this);return g.Np(n)}bu(f){return this.policy.C&&this.G.bu(f)}e_(f){return this.G.e_(f)}Ra(f,e){this.G.Ra(f,e)}getCurrentTime(){if(this.policy.Ed){const f=this.gA()||0;return this.oA.getCurrentTime(!0)-f}return this.currentTime}kA(){return this.currentTime+this.timestampOffset}zs(){return this.audioTrack.vS.info}jC(){return this.videoTrack.vS.info}wL(){return this.audioTrack.vS.info.NC}Mr(){return this.videoTrack.vS.info.NC}bY(){try{this.yJ(), Iy(this.audioTrack),Iy(this.videoTrack),cg(this.audioTrack),cg(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),super.bY()}catch(f){g.J(f)}}handleError(f,e,B=0){const n=xk(B);f==="fmt.unplayable"&&this.fq.isLive&&(this.policy.qU=!1,iJ(this.fq));e=new g.WP(f,e,B);g.od(this);Go(e.details);this.oA.handleError(e);f!=="html5.invalidstate"&&e.errorCode!=="fmt.unplayable"&&f!=="fmt.unparseable"&&n&&this.dispose()}xp(){var f=rM(this.audioTrack),e=rM(this.videoTrack);f={lct:this.getCurrentTime().toFixed(3), lsk:this.VW.isSeeking(),lmf:this.C.C.isLocked(),lbw:P2(this.schedule).toFixed(3),lhd:xr(this.schedule).toFixed(3),lst:((this.schedule.X.H0()||0)*1E9).toFixed(3),laa:f?f.Pd():"",lva:e?e.Pd():"",lar:this.audioTrack.C?this.audioTrack.C.Pd():"",lvr:this.videoTrack.C?this.videoTrack.C.Pd():"",laq:`${RC(this.audioTrack)}`,lvq:`${RC(this.videoTrack)}`};this.D9&&!this.D9.Y2()&&this.D9.C&&this.D9.G&&(f.lab=GF(this.D9.C.Ea()),f.lvb=GF(this.D9.G.Ea()));this.A&&(f.lapt=((0,g.T)()-this.A).toFixed(0),f.lapr=W6w(this)); this.PS&&(f.lapmabht=((0,g.T)()-this.PS).toFixed(0),f.lapmabh=iS(this,this.audioTrack).toFixed(0));(e=this.G.Fl)&&(f.reqBlocked=e);(e=this.G.IA)&&(f.lsrt=((0,g.T)()-e).toFixed(0));this.uY&&(f.lapmvbht=((0,g.T)()-this.uY).toFixed(0),f.lapmvbh=iS(this,this.videoTrack).toFixed(0));this.Lq&&(f.lapsdai=((0,g.T)()-this.Lq).toFixed(0));return f}Ys(){return this.C.C}nB(){try{this.policy.C&&this.G.Ra(!1,"pending"),this.audioTrack.nB(),this.videoTrack.nB()}catch(f){g.J(f)}this.policy.V=""}XM(f){return this.videoTrack&& this.audioTrack?this.videoTrack.XM(f)&&this.audioTrack.XM(f):!0}jV(){return GJ(this.N)}ri(f,e,B=!1){this.oA.ri(f,e,B)}uj(){return this.oA.uj()}E_(f,e){f/=e;isNaN(this.timestampOffset)&&$f(this,f-Math.min(f,this.policy.AY));return(f-this.timestampOffset)*e}gA(){return this.timestampOffset}isSeeking(){return this.VW.isSeeking()}m7(){this.J.m7()}PB(f,e=!1,B={}){this.policy.C?this.W.PB(f,e,B):this.C.PB(f,e,B)}Qr(){this.policy.G&&this.n$&&(this.ri("sdai",{skipAdSked:"1"}),this.n$=!1)}Jb(f,e){if(this.policy.G&& (this.n$||this.isSeeking()))return this.ri("sdai",{ignoreSkip:"1",isSkip:this.n$,isSeek:this.isSeeking(),t:f.toFixed(3)}),!1;const B=this.policy.G&&(this.policy.W||this.policy.g8),n=this.videoTrack.vS.index.hq(f);let r=!1;if(B){if(r=!!this.Cq?.XF(f,n,this.timestampOffset))lF(this,f,f,n),this.fh&&this.fh?.XF(f,n)}else this.fh&&(r=!!this.J.Jb(f,this.fh));if(!r)return this.handleError("ad.skipfailed",{dec:!!this.fh,t:f.toFixed(3),sq:n}),!1;this.policy.G&&(this.ri("sdai",{skipAdStd:"1"}),this.n$=!0); this.policy.Ys&&this.Wd?.clear();$f(this,this.timestampOffset-e);kf(this);this.policy.G&&(iJ(this.fq),cg(this.audioTrack),cg(this.videoTrack),this.nB());return!0}K5(){$f(this,this.timestampOffset-1E3);var f=this.fq;const e=new Set;for(const n in f.C){const r=f.C[n].index;var B=r.gH();B&&!e.has(B)&&(B.startTime+=1E3,B.endTime=B.startTime+B.duration,e.add(B));r.segments.length&&(B=r.segments[r.segments.length-1],r.segments=[],r.segments.push(B))}this.fh&&this.fh.Y$();this.policy.g8&&this.policy.G&& this.Cq?.Y$();Fu(this.J,0,0,!0);this.n$=!1}getManifest(){return this.fq}isOffline(){return!!this.oA.getVideoData().cotn}Py(f,e){this.oA.Py(f,e)}GL(f,e){if(this.policy.C)iz5(this,f,!0,e),this.G.Ra(!0,"utc"),this.CV();else if(e=this.oA.getVideoData().Re){var B=this.U;B.fW=f;B.Re=e;U3(this)}}N$(f){this.videoTrack.U=!1;this.audioTrack.U=!1;this.VW.C=!1;this.oA.N$(f)}x$(f){this.VW.x$(f-this.gA())}f0(){this.oA.f0()}PY(f){f!==this.policy.y8&&((this.policy.y8=f)||this.XL())}eC(f){this.oA.eC(f)}Tm(f){this.oA.Tm(f)}BF(f, e,B){this.Cq?.BF(f,e,B);this.policy.W&&(this.G.X=void 0,this.XL())}s1(f){this.Cq?.s1(f)}J0(f){this.policy.cS&&this.oA.getVideoData().sA()&&!f.L_&&(this.ri("liveUmpMissing",{segmentNum:f.oe,headerId:f.OT,startMs:f.startMs,durationMs:f.durationMs}),this.policy.cS=!1)}qN(f,e){if(this.policy.W){const B=f.gG?.[0],n=s76(this.oA.getVideoData());this.Cq?.qN(f,e,this.fh||void 0,n,this.policy.s3?this.fq:void 0);this.ri("clidai",{onqlst:1,len:f.gG?.length||0,rn:e,evt:VtH(B?.b6?.event),cid:B?.b6?.identifier|| "null",sq:B?.oe||-1,trk:B?.trackType||"null",disr:n})}}nk(f){this.policy.cS&&this.fh?.nk(f)}prefetchKeyPlay(f,e){Tv(this)&&(this.aP||(this.aP=new u16(B=>{this.oA.Ce(B)}),g.A(this,this.aP)),La0(this.aP,{wk:f, D6:e,pA:2}),this.XL())}Zi(){this.Ch++}HI(){this.Ch=0}sE(){return this.oA.getVideoData().K?(0,g.T)()-this.schedule.Lq>3E5&&this.Ch>=3:!this.schedule.Lq}y8(){this.G.A.b8=0}zt(){this.G.X=void 0}};var $Aw=class extends g.$v{};var iyH=class extends $Aw{constructor(f,e,B,n){super();this.J=-1;this.C={};this.V=new g.T6(this.W,0,this);g.A(this,this.V);this.G=new g.T6(()=>{this.HS()||(this.V.start(Math.random()*B),this.G.start(e))},f,this); g.A(this,this.G);n.subscribe("fairplay_next_need_key_info",this.U,this)}U(f,e){if(f&&e){var B=Number(KY(f,"cpi"))*1+1;isNaN(B)||B<=0||Bthis.J&&(this.J=B,g.TL(this.C)||(this.C={},this.V.stop(),this.G.stop())),this.C[e]=f,this.G.M0())}}W(){for(const r of Object.keys(this.C)){var f=this.publish,e=this.J,B=g.fY(this.C[r]),n=B[6];const L=[];for(const d of n.split("&"))d.indexOf("cpi=")===0?L.push("cpi="+e.toString()):d.indexOf("ek=")===0?L.push("ek="+ g.nH(r)):L.push(d);B[6]="?"+L.join("&");e="skd://"+B.slice(2).join("");n=e.length*2;B=new Uint8Array(n+4);B[0]=n%256;B[1]=(n-B[0])/256;for(n=0;n{this.publish("log_qoe",{wvagt:"timer",reqlen:this.C?this.C.length:-1});if(this.C){if(this.C.length>0){var B=this.C.shift();nLY(this,B.info)}this.C.length>0&&(B=this.C[0].time-(0,g.T)(),this.G.start(Math.max(0,B)))}},0); g.A(this,this.G);e.subscribe("widevine_set_need_key_info",this.V,this)}V(f){var e;a:{if((e=f.cryptoPeriodIndex)&&this.C.length>0)for(var B of this.C)if(e===B.info.cryptoPeriodIndex){e=!0;break a}e=!1}if(!e){e=(0,g.T)();a:{B=f.cryptoPeriodIndex;if(!isNaN(B))for(n of this.J.values())if(Math.abs(n.cryptoPeriodIndex-B)<=1){var n=!0;break a}n=!1}n?(n=f.C,n=Math.max(0,Math.random()*((isNaN(n)?120:n)-30))*1E3):n=0;this.publish("log_qoe",{wvagt:`delay.${n}`,cpi:f.cryptoPeriodIndex,reqlen:this.C.length}); n<=0?nLY(this,f):(this.C.push({time:e+n,info:f}),this.G.M0(n))}}bY(){this.C=[];super.bY()}};var cF5=class{constructor(){({url:B,interval:e,retries:f}={});var f,e,B;this.url=B;this.interval=e;this.retries=f}};var Ltk=class{constructor(f,e){this.statusCode=f;this.message=e;this.J=this.heartbeatParams=this.errorMessage=null;this.G=[];this.C={};this.nextFairplayKeyId=null}},dsG={DRM_TRACK_TYPE_AUDIO:"AUDIO",DRM_TRACK_TYPE_SD:"SD",DRM_TRACK_TYPE_HD:"HD",DRM_TRACK_TYPE_UHD1:"UHD1"};var Kt0=class extends g.$0{constructor(f,e,B="",n=!1){super();this.message=f;this.requestNumber=e;this.timer=B;this.G=n;this.onError=this.onSuccess=null;this.C=new g.Xj(5E3,2E4,.2)}};var eql=class extends g.$v{constructor(f,e,B,n,r){super();this.videoData=f;this.Ta=e;this.K=B;this.sessionId=n;this.jy=r;this.W={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.A=this.Cq=!1;this.J=null;this.cS=[];this.V=[];this.authorizedFormats=[];this.N=[];this.X=!1;this.C={};this.status="";this.U=NaN;this.G=f.W;this.cryptoPeriodIndex=B.cryptoPeriodIndex;f={};Object.assign(f,this.Ta.C);f.cpn=this.videoData.clientPlaybackNonce;this.videoData.Cq&&(f.vvt=this.videoData.Cq,this.videoData.mdxEnvironment&& (f.mdx_environment=this.videoData.mdxEnvironment));this.Ta.cS&&(f.authuser=this.Ta.cS);this.Ta.pageId&&(f.pageid=this.Ta.pageId);isNaN(this.cryptoPeriodIndex)||(f.cpi=this.cryptoPeriodIndex.toString());r=(r=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.d0()))?r[1]:"";r==="ATV"&&(f.cdt=r);this.W=f;this.W.session_id=n;this.Ed=!0;this.G.flavor==="widevine"&&(this.W.hdr="1");this.G.flavor==="playready"&&(e=Number(UC(e.experiments,"playready_first_play_expiration")),!isNaN(e)&&e>=0&&(this.W.mfpe=`${e}`),this.Ed= !1);e="";g.ck(this.G)?this.G.C()?(n=B.G)&&(e="https://www.youtube.com/api/drm/fps?ek="+wB0(n)):(e=B.initData.subarray(4),e=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),e=String.fromCharCode.apply(null,e).replace("skd://","https://")):e=this.G.J;this.baseUrl=e;this.fairplayKeyId=KY(this.baseUrl,"ek")||"";if(e=KY(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(e);this.cS=B.rj?[g.ON(B.initData,4)]:B.J;fq(this,{sessioninit:B.cryptoPeriodIndex});this.status="in"}vF(f){if(!(this.HS()||f.size<= 0)){var e={};f.forEach((B,n)=>{const r=zf(this.G)?n:B;n=new Uint8Array(zf(this.G)?B:n);zf(this.G)&&u5w(n);B=g.ON(n,4);u5w(n);n=g.ON(n,4);this.C[B]?this.C[B].status=r:this.C[n]?this.C[n].status=r:this.C[B]={type:"",status:r};oLd(this,this.C[B].type,e)}); VK6(this,",");fq(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}error(f,e,B,n){this.HS()||(this.publish("licenseerror",f,e,B,n),f==="drm.provision"&&(f=(Date.now()-this.U)/1E3,this.U=NaN,this.publish("ctmp","provf",{et:f.toFixed(3)})));xk(e)&&this.dispose();this.jy&&(this.jy.dispose(),this.jy=void 0)}shouldRetry(f,e){return!f&&this.requestNumber===e.requestNumber}bY(){this.C={};super.bY()}xp(){const f={ctype:this.K.contentType||"",length:this.K.initData.length, requestedKeyIds:this.cS,cryptoPeriodIndex:this.cryptoPeriodIndex};this.J&&(f.keyStatuses=this.C);return f}getInfo(){let f=this.V.join();if(Bw(this)){const e=new Set;for(const B in this.C)this.C[B].status!=="usable"&&e.add(this.C[B].type);f+=`/UKS.${Array.from(e)}`}return f+=`/${this.cryptoPeriodIndex}`}Dw(){return this.url}};var Lq=class extends g.$0{constructor(f,e,B,n,r,L=!1){super();this.element=f;this.K=e;this.initData=B;this.C=n;this.G=r;this.Cq=L;this.sessionId="";this.X=this.U=this.J=this.W=null;this.V=new g.ep(this);g.A(this,this.V);Ftm(this)}cS(f){if(this.W){var e=f.messageType||"license-request";this.W(new Uint8Array(f.message),e)}}vF(){this.X&&this.X(this.C.keyStatuses)}onClosed(){this.HS()||g.H1("xboxone")&&this.J&&this.J("closedShouldNotRetry")}A(f){this.W&&this.W(f.message,"license-request")}Ed(f){if(this.J){if(this.G){var e= this.G.error.code;f=this.G.error.systemCode}else e=f.errorCode,f=f.systemCode;this.J(`t.prefixedKeyError;c.${e};sc.${f}`,e,f)}}N(){this.U&&this.U()}update(f){if(this.C)return this.C.update(f).then(null,oJ(e=>{ms5(this,"t.update",e)})); this.G?this.G.update(f):this.element.addKey?this.element.addKey(this.K.keySystem,f,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.K.keySystem,f,this.initData,this.sessionId);return Pb()}bY(){this.C&&(this.Cq?this.C.close().catch(g.Yv):this.C.close());this.element=null;super.bY()}};var t1=class extends g.$0{constructor(f,e,B=!1){super();this.element=f;this.C=e;this.U=B;this.W={};this.J=null;this.V=new g.ep(this);this.G=this.mediaKeys=null;this.X=Promise.resolve();g.A(this,this.V)}setServerCertificate(){return this.mediaKeys.setServerCertificate?this.C.flavor==="widevine"&&this.C.OM?this.mediaKeys.setServerCertificate(this.C.OM):this.C.C()&&this.C.OL?this.mediaKeys.setServerCertificate(this.C.OL):null:null}createSession(f,e){let B=f.initData;if(this.C.keySystemAccess){e&&e("createsession"); const n=this.mediaKeys.createSession();pT(this.C)?B=gL5(B,this.C.OL):this.C.C()&&(B=BuG(B)||new Uint8Array(0));e&&e("genreq");f=n.generateRequest(f.contentType,B);const r=new Lq(null,null,null,n,null,this.U);f.then(()=>{e&&e("genreqsuccess")},oJ(L=>{ms5(r,"t.generateRequest",L)})); return r}if(qs(this.C))return hyY(this,B);if(aP(this.C))return SCC(this,B);this.element?.generateKeyRequest?this.element.generateKeyRequest(this.C.keySystem,B):this.element?.webkitGenerateKeyRequest(this.C.keySystem,B);return this.J=new Lq(this.element,this.C,B,null,null,this.U)}Ed(f){const e=dl(this,f);e&&e.A(f)}N(f){const e=dl(this,f);e&&e.Ed(f)}K(f){const e=dl(this,f);e&&e.N(f)}getMetrics(){let f=null;if(this.mediaKeys&&this.mediaKeys.getMetrics)try{f=this.mediaKeys.getMetrics()}catch{}return f}bY(){this.G= this.mediaKeys=null;this.J?.dispose();for(const f of Object.values(this.W))f.dispose();this.W={};super.bY();delete this.element}};var HH=class{constructor(){this.keys=[];this.values=[]}get(f){f=this.findIndex(f);return f!==-1?this.values[f]:null}remove(f){f=this.findIndex(f);f!==-1&&(this.keys.splice(f,1),this.values.splice(f,1))}removeAll(){this.keys=[];this.values=[]}set(f,e){const B=this.findIndex(f);B!==-1?this.values[B]=e:(this.keys.push(f),this.values.push(e))}findIndex(f){return g.i0(this.keys,e=>g.Ye(f,e))}};var $UM=class extends g.$v{constructor(f,e,B,n=null,r){super();this.element=f;this.videoData=e;this.Ta=B;this.mediaElement=n;this.jy=r;this.V=[];this.uY=2;this.qC=this.PS=!1;this.heartbeatParams=null;this.cS=this.Ed=!1;this.W=null;this.Lq=!1;this.C=this.videoData.W;this.drmSessionId=this.videoData.drmSessionId||g.FDO();this.J=new Map;this.U=new HH;this.X=new HH;this.Cq=new g.ep(this);this.K=this.Ta.Y("html5_eme_ignore_teardown_errors");(f=this.element)&&(f.addKey||f.webkitAddKey)||RP()||KT(B.experiments); this.Ta.Y("html5_enable_vp9_fairplay")&&this.C.C()?B=Nh:(B=this.videoData.Md,B=this.C.flavor==="fairplay"||B?Z_:Nh);this.N=B;this.Ta.JE().C.jI(WNC)&&this.jy?(this.jy.mediaKeys||(this.jy.mediaKeys=new t1(this.element,this.C,this.K)),this.mediaKeys=this.jy.mediaKeys):(this.mediaKeys=new t1(this.element,this.C,this.K),g.A(this,this.mediaKeys));qs(this.C)&&(this.A=new t1(this.element,this.C,this.K),g.A(this,this.A));g.A(this,this.Cq);B=this.element;this.C.keySystemAccess?this.Cq.D(B,"encrypted",this.xA): W1(this.Cq,B,qs(this.C)?["msneedkey"]:["needkey","webkitneedkey"],this.IA);QP5(this);a:switch(f=this.C,B=this.J,f.flavor){case "fairplay":tl()>19.2999?(B=f.lz,f=f.O8,f>=B&&(f=B*.75),e=(B-f)*.5,B=new iyH(e,B,B-e-f,this)):B=null;break a;case "widevine":B=new fbk(B,this);break a;default:B=null}if(this.W=B)g.A(this,this.W),this.W.subscribe("rotated_need_key_info_ready",this.WS,this),this.W.subscribe("log_qoe",this.G,this);KT(this.Ta.experiments);this.G({cks:this.C.getInfo()})}xA(f){this.G({onecpt:1}); f.initData&&DsG(this,new Uint8Array(f.initData),f.initDataType)}IA(f){this.G({onndky:1});DsG(this,f.initData,f.contentType)}G_(f){this.G({onneedkeyinfo:1});this.Ta.Y("html5_eme_loader_sync")&&(this.X.get(f.initData)||this.X.set(f.initData,f));Tul(this,f)}WS(f){this.V.push(f);Hw(this)}createSession(f){var e=JF5(this)?qsC(f):g.ON(f.initData);this.J.get(e);this.cS=!0;f=new eql(this.videoData,this.Ta,f,this.drmSessionId,this.jy);this.J.set(e,f);f.subscribe("ctmp",this.Z9,this);f.subscribe("keystatuseschange", this.vF,this);f.subscribe("licenseerror",this.mI,this);f.subscribe("newlicense",this.Fl,this);f.subscribe("newsession",this.MC,this);f.subscribe("sessionready",this.kA,this);f.subscribe("fairplay_next_need_key_info",this.BS,this);this.Ta.Y("html5_enable_vp9_fairplay")&&f.subscribe("qualitychange",this.eI,this);f.subscribe("sabrlicenseconstraint",this.Ch,this);e=this.mediaKeys;fq(f,{createkeysession:1});f.status="gr";NJ("drm_gk_s",void 0,f.videoData.Ed);f.url=CD6(f);f.Ta.JE().C.jI(YCk)&&f.jy?.C&&f.jy?.licenseRequest? (f.J=f.jy.C,bTk(f,f.jy.C,f.jy,f.jy.certificate),eT(f,f.jy.licenseRequest,"license-request")):(f.J=pkm(f,e,f.jy?.certificate),g.A(f,f.J))}Fl(f){this.HS()||(this.G({onnelcswhb:1}),f&&!this.heartbeatParams&&(this.heartbeatParams=f,this.publish("heartbeatparams",f)))}MC(){this.HS()||(this.G({newlcssn:1}),this.V.shift(),this.cS=!1,Hw(this))}kA(){if(qs(this.C)&&(this.G({onsnrdy:1}),this.uY--,this.uY===0)){var f=this.A;f.element?.msSetMediaKeys?.(f.G)}}vF(f){if(!this.HS()){this.Lq||(this.Lq=!0,this.Ta.wA()&& MKG(this));this.G({onksch:1});var e=this.eI;if(!Bw(f)&&g.Po&&f.G.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var B="large";else{B=[];var n=!0;if(Bw(f))for(const L of Object.keys(f.C))f.C[L].status==="usable"&&B.push(f.C[L].type),f.C[L].status!=="unknown"&&(n=!1);if(!Bw(f)||n)B=f.V;B=AF5(B)}e.call(this,B);if(f.Ta.Y("html5_enable_vp9_fairplay")&&f.G.C())var r=f.N;else{if(!Bw(f)){e={};for(r of f.V)oLd(f,r,e)}r=f.authorizedFormats}this.videoData.authorizedFormats=r;this.publish("keystatuseschange", f)}}Z9(f,e){this.HS()||this.publish("ctmp",f,e)}BS(f,e){this.HS()||this.publish("fairplay_next_need_key_info",f,e)}mI(f,e,B,n){this.HS()||(this.videoData.Y("html5_log_drm_metrics_on_error")&&MKG(this),this.publish("licenseerror",f,e,B,n))}mT(){return this.N}eI(f){const e=g.ig("auto",f,!1,"l");if(this.videoData.Md){if(this.N.equals(e))return}else if(UCw(this.N,f))return;this.N=e;this.publish("qualitychange");this.G({updtlq:f})}Ch(f){this.videoData.sabrLicenseConstraint=f}bY(){this.C.keySystemAccess&& this.element&&!this.mediaElement?.Kq?.Wt()&&(this.K?this.element.setMediaKeys(null).catch(g.Yv):this.element.setMediaKeys(null));this.element=null;this.V=[];for(const f of this.J.values())f.unsubscribe("ctmp",this.Z9,this),f.unsubscribe("keystatuseschange",this.vF,this),f.unsubscribe("licenseerror",this.mI,this),f.unsubscribe("newlicense",this.Fl,this),f.unsubscribe("newsession",this.MC,this),f.unsubscribe("sessionready",this.kA,this),f.unsubscribe("fairplay_next_need_key_info",this.BS,this),this.Ta.Y("html5_enable_vp9_fairplay")&& f.unsubscribe("qualitychange",this.eI,this),f.dispose();this.J.clear();this.U.removeAll();this.X.removeAll();this.heartbeatParams=null;super.bY()}xp(){const f={systemInfo:this.C.xp(),sessions:[]};for(const e of this.J.values())f.sessions.push(e.xp());return f}getInfo(){return this.J.size<=0?"no session":`${this.J.values().next().value.getInfo()}${this.W?"/KR":""}`}G(f,e=!1){this.HS()||(Go(f),(this.Ta.wA()||e)&&this.publish("ctmp","drmlog",f))}tL(){let f=void 0,e=void 0;for(const B of this.J.values())f|| (f=lHm(B,"SD")),e||(e=lHm(B,"AUDIO"));this.G({sd:f,audio:e});return f==="output-restricted"||e==="output-restricted"}};var sPg=!1,Cq=!1;var BtH=class extends g.$0{constructor(f){super();this.oA=f;this.bF=0;this.G=this.W=!1;this.V=0;this.V9=this.oA.S();this.videoData=this.oA.getVideoData();this.J=g.tS(this.V9.experiments,"html5_delayed_retry_count");this.C=new g.T6(()=>{this.oA.dZ()},g.tS(this.V9.experiments,"html5_delayed_retry_delay_ms")); g.A(this,this.C)}YJ(){return!!this.bF}eq(){return this.G}handleError(f){foY(this,f);if((f.errorCode!=="html5.invalidstate"&&f.errorCode!=="fmt.unplayable"&&f.errorCode!=="fmt.unparseable"||!wl(this,f.errorCode,f.details))&&!njl(this,f)&&!rq5(this)){if(this.V9.Ed!=="yt"&&BCl(this,f)&&this.videoData.hF&&(0,g.T)()/1E3>this.videoData.hF&&k7(this.videoData)){var e=Object.assign({e:f.errorCode},f.details);e.stalesigexp="1";e.expire=Math.round(this.videoData.hF*1E3);e.init=Math.round(this.videoData.AY); e.now=Math.round((0,g.T)());f=new g.WP(f.errorCode,e,2);this.oA.a6(f.errorCode,2,"SIGNATURE_EXPIRED",Go(f.details))}if(xk(f.severity)){e=this.oA.loader?.Ys();let n;if(this.V9.Y("html5_use_network_error_code_enums"))if(eDO(f)&&e&&e.isLocked())var B="FORMAT_UNAVAILABLE";else this.V9.U||f.errorCode!=="auth"||f.details.rc!==429?f.errorCode==="ump.spsrejectfailure"&&(B="HTML5_SPS_UMP_STATUS_REJECTED"):(B="TOO_MANY_REQUESTS",n="6");else eDO(f)&&e&&e.isLocked()?B="FORMAT_UNAVAILABLE":this.V9.U||f.errorCode!== "auth"||f.details.rc!=="429"?f.errorCode==="ump.spsrejectfailure"&&(B="HTML5_SPS_UMP_STATUS_REJECTED"):(B="TOO_MANY_REQUESTS",n="6");this.oA.a6(f.errorCode,f.severity,B,Go(f.details),n)}else this.oA.publish("nonfatalerror",f),B=/^pp/.test(this.videoData.clientPlaybackNonce),this.rC(f.errorCode,f.details),B&&f.errorCode==="manifest.net.connect"&&(f=`https://www.youtube.com/generate_204?cpn=${this.videoData.clientPlaybackNonce}&t=${(0,g.T)()}`,JK(f,"manifest",n=>{this.ri("pathprobe",n)},n=>{this.rC(n.errorCode, n.details)}))}}ri(f,e){this.oA.Kh.ri(f,e)}rC(f,e){e=Go(e); this.oA.Kh.rC(f,e)}};var cx=class{constructor(f,e,B,n,r){this.C=f;this.reason=e;this.G=B;this.source=n;this.token=r}};var n8g=class{constructor(f,e,B,n){this.Ta=f;this.yY=e;this.oA=B;this.Lh=n;this.K=this.U=this.C=this.V=this.X=this.G=0;this.W=!1;this.N=g.tS(this.Ta.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.J=new Map}q8(f){const e=LLg(this);if(!f)return{wh:Z_,fn:Z_,M4:Z_,Fc:Z_,lH:Z_,FS:Z_,lm:e};let B=Z_;if(e3(e)||this.Y("html5_perf_cap_override_sticky"))B=qK(this,f);return{wh:B,fn:H3d(this,f),M4:diC(this,f),Fc:RG(this,f.videoData),lH:Kq(this,f.videoData,f),FS:aG(this,f),lm:e}}MK(f){if(g.IM(this.Ta)&& vt(this.Ta.W,D0.HEIGHT))var e=f.C.videoInfos[0].video.qualityOrdinal;else{var B=this.xJ(f.C.C());bd(f.videoData)||MU(f.videoData);f=f.C.videoInfos;if(f.length){var n=.85,r=f[0].video;r.projectionType!=="MESH"&&r.projectionType!=="EQUIRECTANGULAR"&&r.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||HS||(n=.45);r=g.tS(this.Ta.experiments,"html5_viewport_undersend_maximum");for(let L=0;L{this.Mv()}}; this.Mv=()=>{this.jsErrorCount++}; g.A(this,this.delay);window.addEventListener("error",this.Mv);window.addEventListener("unhandledrejection",this.Mv)}LY(){const f=g.uY(this.provider);this.C<0&&(this.C=f,this.delay.start());this.V=this.G=f}onError(f){if(f!=="player.fatalexception"||this.provider.Y("html5_exception_to_health"))f==="sabr.fallback"&&(this.encounteredSabrFallback=!0),f.match(rzk)?this.networkErrorCount++:this.nonNetworkErrorCount++}send(){if(!(this.J||this.C<0)){qh5(this);var f=g.uY(this.provider)-this.C,e="PLAYER_PLAYBACK_STATE_UNKNOWN", B=this.playerState.iE;this.playerState.isError()?e=B&&B.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":this.playerState.C(2)?e="PLAYER_PLAYBACK_STATE_ENDED":this.playerState.C(64)?e="PLAYER_PLAYBACK_STATE_UNSTARTED":this.playerState.C(16)||this.playerState.C(32)?e="PLAYER_PLAYBACK_STATE_SEEKING":this.playerState.C(1)&&this.playerState.C(4)?e="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":this.playerState.C(1)?e="PLAYER_PLAYBACK_STATE_BUFFERING":this.playerState.C(4)?e= "PLAYER_PLAYBACK_STATE_PAUSED":this.playerState.C(8)&&(e="PLAYER_PLAYBACK_STATE_PLAYING");B=x0d[ud(this.provider.videoData)];a:switch(this.provider.Ta.playerCanaryState){case "canary":var n="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":n="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:n="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var r=RDG(this.provider),L=this.G<0?f:this.G-this.C;f=this.provider.Ta.Qr+36E5<(0,g.T)();e={started:this.G>=0,stateAtSend:e,joinLatencySecs:L,jsErrorCount:this.jsErrorCount, playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:n,playerCanaryStage:r,isAd:this.provider.videoData.isAd(),liveMode:B,hasDrm:!!g.VW(this.provider.videoData),isGapless:this.provider.videoData.X,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,encounteredSabrFallback:this.encounteredSabrFallback,isSabr:lK(this.provider.videoData)}; f||g.t$("html5PlayerHealthEvent",e);this.J=!0;this.dispose()}}bY(){this.J||this.send();window.removeEventListener("error",this.Mv);window.removeEventListener("unhandledrejection",this.Mv);super.bY()}},rzk=/\bnet\b/;var dRG=class{constructor(f){this.provider=f;this.K=!1;this.G=0;this.V=-1;this.rl=NaN;this.J=0;this.segments=[];this.X=this.U=0;this.previouslyEnded=!1;this.W=0;this.serializedStitchedClipLoggingMetadata=this.serializedPlaybackPingContextLoggingData=void 0;this.aX={wsL:()=>this.serializedPlaybackPingContextLoggingData, MUC:()=>this.serializedStitchedClipLoggingMetadata}; this.Ed=this.provider.oA.getVolume();this.N=this.provider.oA.isMuted()?1:0;this.C=cw(this.provider)}update(){if(this.K){var f=this.SU()||0,e=g.uY(this.provider);f>=this.provider.oA.getDuration()-.1&&(this.previouslyEnded=!0);if(f!==this.G||cq0(this,f,e)){var B;if(!(B=fe-this.rl+2||cq0(this,f,e))){{B=this.provider.oA.getVolume();const n=B!==this.Ed,r=this.provider.oA.isMuted()?1:0;r!==this.N?(this.N=r,B=!0):(!n||this.V>=0||(this.Ed=B,this.V=e),B=e-this.V,this.V>=0&&B>2?(this.V=-1, B=!0):B=!1)}}B&&(YQ(this),this.J=f);this.rl=e;this.G=f}}}SU(){const f=this.provider.oA.SU();return Rl(this.provider.videoData)?f+this.provider.oA.gA():f}};var Vcl=class{constructor(f,e,B,n){this.Ta=e;this.Yp=B;this.segments=[];this.experimentIds=[];this.BS=this.G6=this.isFinal=this.delayThresholdMet=this.xA=this.Mk=this.autoplay=this.autonav=!1;this.Q3="yt";this.U=[];this.X=this.N=null;this.Ch=this.sendVisitorIdHeader=this.Fl=!1;this.K=this.pageId="";this.lC=!1;this.W=B==="watchtime";this.J=B==="playback";this.cS=B==="atr";this.Cc=B==="engage";this.sendVisitorIdHeader=!1;this.uri=this.cS?`/api/stats/${B}`:"//"+e.To+"/api/stats/"+B;n&&(this.G6=n.fs, n.rtn&&(this.X=n.rtn),this.W?(this.playerState=n.state,n.rti>0&&(this.N=n.rti)):(this.P4=n.mos,this.y8=n.volume,n.at&&(this.adType=n.at)),n.autonav&&(this.autonav=n.autonav),n.inview!=null&&(this.hE=n.inview),n.size&&(this.uC=n.size),n.playerwidth&&(this.hF=n.playerwidth),n.playerheight&&(this.Ys=n.playerheight));this.sE=g.GL(e.C);this.K=UC(e.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.K==="all"||this.K==="once")this.IA=g.GL(e.IA);this.D2=e.P4;this.experimentIds=VH0(e.experiments); this.Z9=e.lC;this.Q3=e.Ed;this.region=e.region;this.userAge=e.userAge;this.kA=e.s3;this.EE=vR();this.sendVisitorIdHeader=e.sendVisitorIdHeader;this.eI=e.Y("vss_pings_using_networkless")||e.Y("kevlar_woffle");this.Qr=e.Y("vss_final_ping_send_and_write");this.WS=e.Y("vss_use_send_and_write");this.pageId=e.pageId;this.qj=e.Y("vss_playback_use_send_and_write");e.livingRoomAppMode&&(this.livingRoomAppMode=e.livingRoomAppMode);g.XY(e)&&(this.Lq=e.eI);g.uz(g.sC(e))&&this.U.push(1);this.accessToken=f.U(); f.Ay[this.Yp]?this.V=f.Ay[this.Yp]:f.Ay.playback&&(this.V=f.Ay.playback);this.adFormat=f.adFormat;this.adQueryId=f.adQueryId;this.autoplay=JVk(f);this.J&&(this.Mk=f.HF&&Ex(f)==="adunit"?!0:!1);this.autonav=f.isAutonav||this.autonav;this.contentVideoId=WS(f);this.clientPlaybackNonce=f.clientPlaybackNonce;this.xA=f.AF;f.dj&&(this.A=f.dj,this.tL=f.pF);f.mdxEnvironment&&(this.mdxEnvironment=f.mdxEnvironment);this.C=f.G6;this.Dv=f.Dv;f.G&&(this.Wd=f.G.itag,f.V&&f.V.itag!==this.Wd&&(this.qC=f.V.itag)); f.C&&rJ(f.C)&&(this.offlineDownloadUserChoice="1");this.eventLabel=Ex(f);this.BS=f.Mk?!1:f.mS;this.hR=f.At;if(e=ud(f))this.zt=e;this.UE=f.To;this.partnerId=f.partnerId;this.eventId=f.eventId;this.playlistId=f.a9||f.playlistId;this.nI=f.nI;this.Nn=f.Nn;this.d8=f.d8;this.Oy=f.Oy;this.subscribed=f.subscribed;this.videoId=f.videoId;this.videoMetadata=f.videoMetadata;this.visitorData=f.visitorData;this.osid=f.osid;this.aK=f.aK;this.referrer=f.referrer;this.dI=f.Pw||f.dI;this.MC=f.M6;this.Xj=f.Xj;this.userGenderAge= f.userGenderAge;this.Hw=f.Hw;this.embedsRct=f.embedsRct;this.embedsRctn=f.embedsRctn;g.XY(this.Ta)&&f.mutedAutoplay&&(f.mutedAutoplayDurationMode===2&&f.limitedPlaybackDurationInSeconds===0&&f.endSeconds===0?this.U.push(7):this.U.push(2));f.isEmbedsShortsMode(new g.uN(this.hF,this.Ys),!!this.playlistId)&&this.U.push(3);g.WY(f)&&this.U.push(4);this.uY=f.bI;f.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=f.compositeLiveIngestionOffsetToken);this.heartbeatLoggingToken=f.heartbeatLoggingToken; f=f.getPlayerResponse();this.lC=this.Ta.Y("html5_switch_vss_to_post")||!!f?.playerConfig?.vssClientConfig?.vssUsePostRequest}send(f){if(!this.Fl){var e=c$(this),B=g.vT(this.uri,e);this.Ta.Y("vss_through_gel_double")&&YhH(B);this.cS&&!this.Ta.Y("html5_simplify_pings")?Aql(this,B):At(this,f).then(n=>{if(this.lC){n=n||{};n.method="POST";const r=jpY(this);r&&(n.postBody=r)}this.cS&&(n=n||{},n.method="POST",n.postParams={atr:this.attestationResponse});AI(B,n,{token:this.A,Up:this.tL,mdxEnvironment:this.mdxEnvironment}, this.Ta,f,this.eI,this.isFinal&&this.Qr||this.WS||this.J&&this.qj)}); this.Fl=!0}}G(f){f===void 0&&(f=NaN);return Number(f.toFixed(3)).toString()}},WCl={LIVING_ROOM_APP_MODE_UNSPECIFIED:0,LIVING_ROOM_APP_MODE_MAIN:1,LIVING_ROOM_APP_MODE_KIDS:2,LIVING_ROOM_APP_MODE_MUSIC:3,LIVING_ROOM_APP_MODE_UNPLUGGED:4,LIVING_ROOM_APP_MODE_GAMING:5},xMC={EMBEDDED_PLAYER_MODE_UNKNOWN:0,EMBEDDED_PLAYER_MODE_DEFAULT:1,EMBEDDED_PLAYER_MODE_PFP:2,EMBEDDED_PLAYER_MODE_PFL:3};var Ej5=class extends g.$0{constructor(f){super();this.provider=f;this.N="paused";this.W=NaN;this.cS=[10,10,10,40];this.eI=this.Ed=0;this.PS=this.uY=this.Lq=this.WS=this.V=!1;this.J=this.G=NaN;this.logger=new g.or("vss");this.aX={s1i:()=>this.C}; this.C=new dRG(f)}LY(){if(!this.V){this.provider.videoData.Xy===16623&&g.Yv(Error("Playback for EmbedPage"));var f=jT(this,"playback");this.cS=loG(this);pS5(this.C);f.X=Od(this);this.J>0&&(f.C-=this.J);f.send();if(this.provider.videoData.TR){f=this.provider.Ta;var e=this.provider.videoData;const B={html5:"1",video_id:e.videoId,cpn:e.clientPlaybackNonce,ei:e.eventId,ptk:e.TR,oid:e.Xr,ptchn:e.YB,pltype:e.Bk,content_v:WS(e)};e.Xa&&Object.assign(B,{m:e.Xa});f=g.vT(f.vE+"ptracking",B);oG(this,f)}this.provider.videoData.Dv|| (mil(this),Uik(this));this.V=!0;f=this.C;f.G=f.SU();f.rl=g.uY(f.provider);!(f.J===0&&f.G<5)&&f.G-f.J>2&&(f.J=f.G);f.K=!0}}U(){g.us(this.W);this.W=NaN}X(){YQ(this.C)}A(){this.C.update();var f=this.C;f.segments.length&&f.G===f.J||YQ(f);const e=f.segments;f.segments=[];f.W=0;return e}Fl(f){var e=this.C,B=f.serializedStitchedClipLoggingMetadata;e.serializedPlaybackPingContextLoggingData=f.serializedPlaybackPingContextLoggingData;e.serializedStitchedClipLoggingMetadata=B}K(f,e=!1){const B=uhm(this,this.A()); !isNaN(this.G)&&f&&(B.N=this.G);e&&(B.Ch=!0);return B}onProgress(){this.C.update();FLC(this)&&(mil(this),Uik(this))}Cq(f){if(!this.HS())if(f.state.C(2)||f.state.C(512)){if(this.N="paused",f.IC(2)||f.IC(512))f.IC(2)&&(this.C.previouslyEnded=!0),this.V&&(this.U(),V$(this).send(),this.G=NaN)}else if(f.state.C(8)){this.N="playing";const e=this.V&&isNaN(this.W)?Od(this):NaN;if(!isNaN(e)&&(hX(f,64)<0||hX(f,512)<0)){const B=this.K(!1);B.X=e;B.send()}f.IC(16)&&f.state.seekSource===58&&(this.C.previouslyEnded= !0)}else this.N="paused"}bY(){super.bY();this.U();aoC(this.C)}xp(){return c$(jT(this,"playback"))}z8(f){const e=jT(this,"engage");e.Cq=f;return O3M(e,hDl(this.provider))}Z9(){const f=this.C.W,e=this.provider.Ta.JE().C.jI(CaC)||4E3;f>e&&this.K(!isNaN(this.G)).send()}BS(){this.Ed=0}};var ShC=class{constructor(){this.endTime=this.startTime=-1;this.J="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.G=0;this.muted=!1;this.C=this.clipId="-";this.previouslyEnded=!1}isEmpty(){return this.endTime===this.startTime}};var QpC=class{constructor(f,e,B){this.videoData=f;this.Ta=e;this.oA=B;this.C=void 0}Y(f){return this.Ta.Y(f)}getCurrentTime(){return this.oA.getCurrentTime()}SU(){return this.oA.SU()}},gjl={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.kT=class extends g.$0{constructor(f){super();this.provider=f;this.J=new Map;this.mA=new g.ks;this.aX={uLA:()=>this.qoe, O5q:()=>this.C, CjA:()=>this.G}; this.provider.videoData.H4()&&!this.provider.videoData.E2&&(this.C=new Ej5(this.provider),this.C.J=0,g.A(this,this.C),this.qoe=new g.d1(this.provider),g.A(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.qD=this.provider.videoData.clientPlaybackNonce)&&this.J.set(this.qD,this.C));if(f.Ta.playerCanaryState==="canary"||f.Ta.playerCanaryState==="holdback")this.G=new LQg(this.provider),g.A(this,this.G)}LY(){this.C&&this.C.LY();this.G&&this.G.LY()}onProgress(){if(this.provider.videoData.enableServerStitchedDai&& this.qD)this.J.get(this.qD)?.onProgress();else if(this.C)this.C.onProgress()}U4(f){this.qoe&&this.qoe.U4(f)}ip(f,e){this.qoe&&this.qoe.ip(f,e)}B$(){this.provider.videoData.enableServerStitchedDai&&this.qD?this.J.get(this.qD)?.X():this.C&&this.C.X()}rC(f,e){this.qoe&&pmm(this.qoe,f,e);if(this.G)this.G.onError(f)}tW(f,e){switch(f){case "M":this.qoe?.tW(f,e);break;case "A":this.qoe?.tW(f)}}onPlaybackRateChange(f){if(this.qoe)this.qoe.onPlaybackRateChange(f);this.C&&this.C.X()}ri(f,e,B){this.qoe&&this.qoe.ri(f, e,B)}P3(f,e,B){this.qoe&&this.qoe.P3(f,e,B)}jq(f){this.qoe?.jq(f)}i7(f){this.qoe?.i7(f)}Ql(f,e,B,n){this.qoe?.Ql(f,e,B,n)}Tm(f){this.qoe&&this.qoe.Tm(f)}rz(f,e,B){this.qoe&&this.qoe.rz(f,e,B)}QI(){if(this.qoe)return this.qoe.QI()}xp(){return this.provider.videoData.enableServerStitchedDai&&this.qD?this.J.get(this.qD)?.xp()??{}:this.C?this.C.xp():{}}yL(){return this.qoe?.yL()}Y1(f,e){this.qoe?.Y1(f,e)}z8(f){return this.C?this.C.z8(f):()=>{}}getVideoData(){return this.provider.videoData}resume(){this.qoe&& this.qoe.resume()}}; g.kT.prototype.ew=eC(49);g.kT.prototype.Bt=eC(32);g.kT.prototype.Jq=eC(26);g.kT.prototype.hC=eC(20);var tMm=class{constructor(){this.G7=0;this.V=this.J=this.DJ=this.ZO=this.G=NaN;this.C={};this.bandwidthEstimate=NaN}};var Hb5=class{constructor(){this.C=g.HP;this.array=[]}};g.C4=class extends g.$0{constructor(f,e){super();this.oA=f;this.X=e;this.J=NaN;this.W=this.U=this.started=!1;this.G=[];this.K=new g.T6(this.sync,250,this);g.A(this,this.K);this.V=new g.T6(this.sync,0,this);g.A(this,this.V);this.C=new Hb5}AI(f,e){this.sync();e&&this.C.array.length>=2E3&&this.aV("captions",1E4);e=this.C;if(f.length>1&&f.length>e.array.length)e.array=e.array.concat(f),e.array.sort(e.C);else for(const B of f)!e.array.length||e.C(B,e.array[e.array.length-1])>0?e.array.push(B):g.Au(e.array, B,e.C);this.J=NaN;this.sync()}X6(f){f.length>1E4&&g.Yv(new g.Dj("Over 10k cueRanges removal occurs with a sample: ",f[0]));if(!this.HS()){var e=new Set(f);this.G=this.G.filter(B=>!e.has(B)); yql(this.C,e);this.sync()}}zX(f){if(!this.HS()){var e=this.QD().find(B=>B.id===void 0&&B.namespace===f); e&&this.X6([e])}}aV(f,e){const B=(isNaN(this.J)?PKg(this):this.J)-e;e=this.QD().filter(n=>n.namespace===f&&n.endB.namespace===f); this.X6(e);return e}gg(f){let e=[];var B=FX(this.C,0x7ffffffffffff);const n=[];for(const r of B)r.active&&f===r.associatedClipId&&n.push(r);e=e.concat(mu(this,n));Ud(this,e);e=[];B=[];for(const r of this.G)r.active&&r.associatedClipId===f&&r.start===0x7ffffffffffff&&B.push(r);e=e.concat(NK(this,B));Ud(this,e);return n.length}yA(f){const e=FX(this.C,0x7ffffffffffff),B=[];for(const n of e)n.active&&f===n.associatedClipId&&B.push(n);this.X6(B)}sync(){this.W=!0;if(!this.U){for(var f=3;this.W&&f;)this.W= !1,this.U=!0,IoO(this),this.U=!1,f--;this.oA.getPlayerState().isPlaying()&&(f=XSm(this.C,this.J),!isNaN(f)&&f<0x7ffffffffffff&&(f=(f-this.J)/this.oA.getPlaybackRate(),this.V.start(f)))}}isEnded(f,e){e=this.oA.zJ()*1E3-e;e=this.oA.Bp()&&f.C(1)&&e<500;return f.C(2)||this.oA.S().Y("html5_pseudogapless_shorts")&&e}bY(){this.G=[];this.C.array=[];super.bY()}};g.C4.prototype.TQ=eC(38);var kxm=class{constructor(f){this.Ta=f;this.J=this.G=this.mediaTime=NaN;this.V=this.C=!1;this.W=.001;g.IM(f)&&(this.W=.01)}};var $i0=class{constructor(f,e){this.videoData=f;this.C=e}};var Cv0=class{constructor(f){this.data=window.Float32Array?new Float32Array(f):Array(f);this.G=this.C=f-1}add(f){this.C=(this.C+1)%this.data.length;this.data[this.C]=f}J(){return this.data[this.C]||0}forEach(f){for(var e=this.C+1;ethis.C,r=e.C(8)&&e.C(16),L=this.oA.lE().isBackground()||e.isSuspended();Jt(this,this.BS,r&&!L,n,"qoe.slowseek",()=>{},"timeout"); var d=isFinite(this.C);d=r&&d&&AhG(f,this.C);var t=!B||Math.abs(B-this.C)>10,H=this.Ta.Y("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),k=B===0&&this.G&&[11,10].includes(this.G);Jt(this,this.Fl,d&&t&&!L&&(!H||!k),n,"qoe.slowseek",()=>{f.seekTo(this.C)},"set_cmt"); t=d&&Wy(f.tR(),this.C);var C=this.oA.loader;d=!C||C.TV();var w=()=>{f.seekTo(this.C+.001)}; Jt(this,this.WS,t&&d&&!L,n,"qoe.slowseek",w,"jiggle_cmt");d=()=>this.oA.dZ(); Jt(this,this.Lq,t&&!L,n,"qoe.slowseek",d,"new_elem");var v=Hu(e);k=e.isBuffering();var b=f.tR(),K=x5(b,B),Y=K>=0&&b.end(K)>B+5;t=v&&k&&Y;H=this.oA.getVideoData();Jt(this,this.PS,B<.002&&this.C<.002&&r&&g.IM(this.Ta)&&g.Tk(H)&&!L,n,"qoe.slowseek",d,"slow_seek_shorts");Jt(this,this.N,H.aR()&&r&&!L&&!H.K,n,"qoe.slowseek",d,"slow_seek_gapless_shorts");Jt(this,this.Ed,t&&!L,v&&!k,"qoe.longrebuffer",w,"jiggle_cmt");Jt(this,this.A,t&&!L,v&&!k,"qoe.longrebuffer",d,"new_elem_nnr");if(C){const F=C.getCurrentTime(); r=f.W();r=wZd(r,F);r=!C.isSeeking()&&B===r;Jt(this,this.IA,v&&k&&r&&!L,v&&!k&&!r,"qoe.longrebuffer",()=>{f.seekTo(F)},"seek_to_loader")}r={}; w=x5(b,Math.max(B-3.5,0));var l=w>=0&&B>b.end(w)-1.1,m=w>=0&&w+1=0&&l&&m<11;r.close2edge=l;r.gapsize=m;r.buflen=b.length;this.G&&(r.seekSour=this.G);Jt(this,this.Cq,v&&k&&!L,v&&!k,"qoe.longrebuffer",()=>{},"timeout",r); r=e.isSuspended();r=this.oA.S2()&&!r;Jt(this,this.X,r,!r,"qoe.start15s",()=>{this.oA.rM("ad")},"ads_preroll_timeout"); r=this.Ta.experiments.SI("html5_use_playback_rate_in_skip_slow_ad")?this.oA.getPlaybackRate()*1E3:1E3;K=B-this.V{var F=this.oA;const N=F.Xx.getVideoData();(!N||!F.videoData.isAd()||N.u6!==F.getVideoData().u6)&&F.videoData.Nq||F.a6("ad.rebuftimeout",2,"RETRYABLE_ERROR",`skipslad.vid.${F.videoData.videoId}`)}; Jt(this,this.qC,l,!l,"ad.rebuftimeout",r,"skip_slow_ad");K=w&&k&&Wy(f.tR(),B+5)&&K;Jt(this,this.tL,K&&!L,!K,"ad.rebuftimeout",r,"skip_slow_ad_buf");r=e.isOrWillBePlaying()&&e.C(64)&&!L;Jt(this,this.xA,r,n,"qoe.start15s",()=>{},"timeout"); C=!!C&&!C.D9&&e.isOrWillBePlaying();Jt(this,this.cS,C,n,"qoe.start15s",d,"newElemMse");C=Py(b,0);b=e.C(16)||e.C(32);C=!L&&e.isOrWillBePlaying()&&k&&!b&&(e.C(64)||B===0)&&C>5;Jt(this,this.Z9,C,v&&!k,"qoe.longrebuffer",()=>{this.oA.eC()},"reset_media_source"); Jt(this,this.uY,C,v&&!k,"qoe.longrebuffer",d,"reset_media_element");this.V===0&&(this.U=B);C=k&&this.C===0&&B>1&&B===this.U;Jt(this,this.eI,g.Tk(H)&&C,v&&!k,"qoe.slowseek",()=>{f.seekTo(0)},"reseek_after_time_jump"); L=e.isOrWillBePlaying()&&!L;Y=this.oA.zJ()-B<6&&!Y&&this.oA.Bp();Jt(this,this.K,H.aR()&&L&&k&&Y,v&&!k,"qoe.longrebuffer",()=>{this.oA.dZ(!1,!0)},"handoff_end_long_buffer_reload"); L=this.G===104||this.oA.hf;e=vY(H)&&H.isAd()&&!H.K&&L&&(k||e.C(8)&&e.C(16));Jt(this,this.MC,e,n,"qoe.start15s",d,"gapless_ad_slow_start");e=vY(H)&&!H.K&&L&&t;Jt(this,this.kA,e,n,"qoe.longrebuffer",d,"gapless_slow_start");this.V=B;this.W.start()}}rC(f,e,B){e=this.xp(e);e.wn=B;e.wdup=this.J[f]?"1":"0";this.oA.rC(new g.WP(f,e));this.J[f]=!0}xp(f){f=Object.assign(this.oA.xp(!0),f.xp());this.C&&(f.stt=this.C.toFixed(3));this.oA.getVideoData().isLivePlayback&&(f.ct=this.oA.getCurrentTime().toFixed(3),f.to= this.oA.gA().toFixed(3));delete f.uga;delete f.euri;delete f.referrer;delete f.fexp;delete f.vm;return f}},Tu=class{constructor(f,e=!1){this.U=e;this.C=this.G=this.J=this.startTimestamp=0;this.V=!1;this.W=Math.ceil(f/1E3)}reset(){this.C=this.G=this.J=this.startTimestamp=0;this.V=!1}test(f){if(!this.W||this.G)return!1;if(!f)return this.reset(),!1;f=(0,g.T)();if(!this.startTimestamp)this.startTimestamp=f,this.J=0;else if(this.J>=this.W)return this.G=f,!0;this.J+=1;return!1}xp(){const f={},e=(0,g.T)(); this.startTimestamp&&(f.wsd=(e-this.startTimestamp).toFixed());this.G&&(f.wtd=(e-this.G).toFixed());this.C&&(f.wssd=(e-this.C).toFixed());return f}};var Zbm=class extends g.$0{constructor(f){super();this.oA=f;this.K=this.C=this.loader=this.mediaElement=this.playbackData=null;this.J=0;this.W=this.Cq=this.V=null;this.eI=!1;this.IA=0;this.A=!1;this.timestampOffset=0;this.N=!0;this.Z9=0;this.Fl=this.G6=!1;this.X=0;this.kA=!1;this.Lq=this.cS=0;this.Ta=this.oA.S();this.videoData=this.oA.getVideoData();this.policy=new bb5;this.Ed=new v85(this.oA);this.tL=this.uY=this.PS=this.U=this.G=NaN;this.WS=new g.T6(()=>{LiC(this,!1)},2E3); this.Ch=new g.T6(()=>{Gu(this)}); this.BS=new g.T6(()=>{kkk(this,{})}); this.xA=NaN;this.qC=new g.T6(()=>{var e=this.Ta.Xo;e.C+=1E4/36E5;e.C-e.J>1/6&&(yQl(e),e.J=e.C);this.qC.start()},1E4); g.A(this,this.Ed);g.A(this,this.WS);g.A(this,this.BS);g.A(this,this.Ch);g.A(this,this.qC)}setMediaElement(f){(this.mediaElement=f)?(this.mediaElement&&(this.W||this.J||!this.mediaElement.G6()||this.seekTo(.01,{wX:"seektimeline_setupMediaElement"})),Gu(this)):XX(this)}getCurrentTime(f=!1){if(Ww(this.oA)){if(this.Y("html5_use_centralized_player_time")&&!f&&!isNaN(this.U))return this.U;if(!isNaN(this.G))return this.G}else{if(this.Y("html5_use_centralized_player_time")&&!f&&!isNaN(this.U)&&isFinite(this.U))return this.U; if(!isNaN(this.G)&&isFinite(this.G))return this.G}f=this.Y("html5_use_centralized_player_time")&&this.Y("html5_seek_refactor_finite_cmt");return this.mediaElement&&dU6(this)?f&&!isFinite(this.mediaElement.getCurrentTime())?this.timestampOffset:this.mediaElement.getCurrentTime()+this.timestampOffset:f&&!isFinite(this.J)?0:this.J||0}QL(){return this.MC}SU(){return this.getCurrentTime()-this.gA()}pG(){return this.C?this.C.pG():Infinity}isAtLiveHead(f){if(!this.C)return!1;f===void 0&&(f=this.getCurrentTime()); return Q$(this.C,f)}Em(){return!!this.C&&this.C.Em()}seekTo(f,{Lv:e=!1,dQ:B=0,jN:n=!1,eH:r=0,wX:L="",seekSource:d,E_:t=!1,JW:H=!1,fD:k=!1}={}){t&&(f+=this.gA());lK(this.videoData)&&d===29&&(this.MC=void 0);t=f=this.zD())||!g.mi(this.videoData),w||(C={st:C,mst:this.zD()},this.C&&this.Y("html5_high_res_seek_logging")&&(C.ht=this.C.pG(),C.adft=Ed(this.C)),this.oA.ri("seeknotallowed",C)),C=w)}}if(!C)return this.V&&(this.V=null,IG(this)),g.Np(this.getCurrentTime());C=.005;H&&this.Y("html5_sabr_seek_no_shift_tolerance")&&(C=0);if(Math.abs(f-this.G)<=C&&this.eI)return this.W;this.Y("html5_reset_rate_limiter_on_user_seek")&& this.loader?.y8();this.Y("html5_reset_backoff_on_user_seek")&&this.loader?.zt();L&&(C=f,this.Ta.wA()&&(L={reason:L,tgt:C},this.Y("html5_sabr_csdai_seek_log")&&(L.source=d),this.oA.ri("seekreason",L)));d&&(this.Ed.G=d);this.eI&&XX(this);this.W||(this.W=new wC);f&&!isFinite(f)&&sd(this,!1);(k=k||t)||(k=f,k=!(this.videoData.isLivePlayback&&this.videoData.J&&!this.videoData.J.C()&&!(this.mediaElement&&this.mediaElement.J()>0&&rs(this.mediaElement)>0)||p2(this.videoData)&&this.N0()===this.zD(!1)?0:isFinite(k)|| !p2(this.videoData)));k||(f=MK(this,f,n));f&&!isFinite(f)&&sd(this,!1);this.Y("html5_use_centralized_player_time")?this.U=f:this.G=this.J=f;this.Z9=r;this.X=0;this.C&&n75(this.C,f,!1);n=this.oA;r=f;k={Lv:e,seekSource:d};n.Qz.J=r;L=n.RD;L.mediaTime=r;L.C=!0;k.Lv&&n.UM(k);k=r>n.videoData.endSeconds&&r>n.videoData.limitedPlaybackDurationInSeconds;n.vp&&k&&isFinite(r)&&Lx(n);r0&&fe.start&&Lx(this.oA);return this.W}zD(f){return this.videoData.isLivePlayback?this.videoData.eI()&&this.mediaElement?.isPaused()&&this.videoData.C?(f=this.getCurrentTime(),GFd(this.Lc(f)*1E3)+f):this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&lK(this.videoData)&&this.videoData.C?f?this.videoData.C.cS||0:this.videoData.C.cP||0:p2(this.videoData)&&this.videoData.gM&&this.videoData.C?this.videoData.C.zD()+this.timestampOffset: this.videoData.J&&this.videoData.J.C()?!f&&this.C?this.C.pG():this.oA.videoData.zD()+this.timestampOffset:this.mediaElement?wx()?GFd(this.mediaElement.Lq().getTime()):rs(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset:this.oA.videoData.zD()}N0(){if(this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&lK(this.videoData))return this.videoData.C?.By||0;const f=this.videoData?this.videoData.N0()+this.timestampOffset:this.timestampOffset;if(this.videoData.eI()&& this.videoData.C){var e=Number(this.videoData.progressBarStartPosition?.utcTimeMillis)/1E3;if(!isNaN(e)&&(e=this.KF(e),!isNaN(e)))return Math.max(f,e)}return f}Dl(){this.W||this.seekTo(this.J,{wX:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}Tg(){return this.eI&&!isFinite(this.G)}bY(){y$(this,null);this.Ed.dispose();super.bY()}xp(){const f={};this.loader&&Object.assign(f,this.loader.xp());this.mediaElement&&Object.assign(f,this.mediaElement.xp());return f}F7(f){this.timestampOffset= f}getStreamTimeOffset(){return p2(this.videoData)?0:this.videoData.C?this.videoData.C.getStreamTimeOffset():0}gA(){return this.timestampOffset}Lc(f){return this.videoData&&this.videoData.C?this.videoData.C.Lc(f-this.timestampOffset):NaN}kL(){if(!this.mediaElement)return 0;if(Ux(this.videoData)){var f=this.mediaElement,e=f.tR();f=(y7(e)&&f.getDuration()?e.end(e.length-1):0)+this.timestampOffset-this.N0();e=this.zD()-this.N0();return Math.max(0,Math.min(1,f/e))}return this.mediaElement.kL()}fk(f){this.K&& (this.K.C=f)}GL(f,e,B){this.oA.ri("requestUtcSeek",{time:f});lK(this.videoData)&&(this.MC=f);this.loader?.GL(f,B);e&&(this.cS=e)}N$(f){lK(this.videoData)&&(this.MC=void 0);this.cS?(this.oA.ri("utcSeekingFallback",{source:"streamTime",timeSeconds:this.cS}),this.oA.seekTo(this.cS,{wX:"utcSeekingFallback_streamTime"}),this.cS=0):(f=this.KF(f),isNaN(f)||(this.oA.ri("utcSeekingFallback",{source:"estimate",timeSeconds:f}),this.oA.seekTo(f,{wX:"utcSeekingFallback_estimate"})))}f0(){this.cS=0}QN(f){this.Lq= f}KF(f){const e=this.getCurrentTime();if(isNaN(e))return NaN;const B=this.Lc(e);return isNaN(B)?NaN:f-(B-e)}Y(f){return this.Ta&&this.Ta.Y(f)}},bb5=class{};var qT5=class extends g.$0{constructor(f){super();this.J=f;this.C=new Map;this.G=new g.T6(this.sample,250,this);g.A(this,this.G);this.start()}start(){this.G.start()}stop(){this.G.stop()}clear(){for(const f of this.C.values())f.clear()}sample(){for(const [f,e]of this.J){const B=f,n=e;this.C.has(B)||this.C.set(B,new Rqg(KQg.has(B)));this.C.get(B).update(n())}this.G.start()}},KQg=new Set(["networkactivity"]),Rqg=class{constructor(f){this.G=f;this.C=NaN;this.buffer=new Cv0(100)}update(f){this.G?(this.buffer.add(f- this.C||0),this.C=f):this.buffer.add(f)}clear(){this.buffer.clear();this.C=0}};var zqk=class{constructor(){this.finished=this.started=!1}hj(){return this.started}start(){this.started=!0}reset(){this.finished=this.started=!1}};var lX6=!1;g.dX=class extends g.$v{constructor(f,e,B,n,r,L,d,t,H,k=new g.qk(f),C=!0,w){super();this.Ta=f;this.playerType=e;this.ph=B;this.yY=n;this.getVisibilityState=L;this.visibility=d;this.Xx=t;this.Lh=H;this.videoData=k;this.q5=C;this.jy=w;this.logger=new g.or("VideoPlayer");this.tI=null;this.OC=new HH;this.vp=null;this.BK=!0;this.D9=this.loader=null;this.zo=[];this.Id=new zqk;this.bj=this.xH=null;this.AP=new zqk;this.GR=null;this.gV=this.mP=!1;this.ez=NaN;this.Ki=!1;this.playerState=new g.ks;this.VC=[]; this.He=new g.ep;this.mediaElement=null;this.mH=this.UF=!1;this.OY=NaN;this.m8=!1;this.My=0;this.wE=!1;this.jS=NaN;this.bF=0;this.loop=!1;this.playbackRate=1;this.Hx=0;this.NE=!1;this.J_=[];this.Z4=this.Fr=0;this.fP=this.HG=!1;this.DJ=this.ZO=0;this.hf=!1;this.dG=this.g6=this.h$=this.fh=null;this.p5=()=>{var v=this.Kh;v.provider.Ta.hF||v.provider.oA.getVisibilityState()===3||(v.provider.Ta.hF=!0);v.B$();if(v.G){var b=v.G;b.W&&b.C<0&&b.provider.oA.getVisibilityState()!==3&&KL5(b)}v.qoe&&(v=v.qoe,v.BS&& v.V<0&&v.provider.Ta.hF&&unC(v),v.W&&FS(v));this.loader&&Hx(this);Cx(this)}; this.aX={vF:v=>{this.vF(v)}, Efd:v=>{this.tI=v}, VUY:()=>this.Kh, Sw:()=>this.D9, w4i:()=>this.nM, MyY:()=>this.KM, uqq:()=>{}, S:()=>this.Ta, aC:()=>this.mediaElement, ZzC:v=>{this.yM(v)}, KkL:()=>this.yY}; this.Oi=new BtH(this);this.pk=new g.T6(this.Q1,15E3,this);this.Vy=new qT5(new Map([["bufferhealth",()=>Pw(this.Qz)], ["bandwidth",()=>this.jV()], ["networkactivity",()=>this.Lh.Cq], ["livelatency",()=>this.isAtLiveHead()&&this.isPlaying()?wc(this):NaN], ["rawlivelatency",()=>wc(this)]])); this.Qz=new Zbm(this);this.Zu=new g.T6(this.fN,0,this);this.tH=[this.He,this.Zu,this.pk,this.Vy];this.RD=new kxm(this.Ta);this.qn=new n8g(this.Ta,this.yY,this,this.Lh);this.aM=new g.C4(this,(v,b)=>{v!==g.kk("endcr")||this.playerState.C(32)||this.H3();r(v,b,this.playerType)}); g.A(this,this.aM);g.A(this,this.Qz);JAk(this,k);this.videoData.subscribe("dataupdated",this.lr,this);this.videoData.subscribe("dataloaded",this.Aw,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.ri,this);this.videoData.subscribe("ctmpstr",this.pP,this);!this.Kh||this.Kh.HS();this.Kh=new g.kT(new QpC(this.videoData,this.Ta,this));xsm(this.p5);this.visibility.subscribe("visibilitystatechange",this.p5);this.nM=new g.T6(this.zR,g.tS(this.Ta.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.KM=new g.T6(this.zR,g.tS(this.Ta.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.i9=new g.f1(this.Ve,350,this);g.A(this,this.i9)}bY(){g.Fx(this.ez);Wt6(this.p5);this.visibility.unsubscribe("visibilitystatechange",this.p5);Di0(this.Kh);g.PT(this.Kh);vx(this);g.ul.lK(this.OY);this.TC();this.bj=null;g.PT(this.videoData);g.PT(this.Oi);g.PT(this.nM);g.PT(this.KM);g.II(this.tH);this.vp=null;super.bY()}rz(f,e,B,n,r){if(this.Ta.Y("html5_log_ad_playback_docid")){var L= this.Kh;if(L.qoe){L=L.qoe;var d=this.Ta.Ed||"yt";g.ot(L,g.uY(L.provider),"ad_playback",[f,e,B,r,d])}}else this.Kh.rz(f,e,B);this.Y("html5_log_media_perf_info")&&this.ri("adloudness",{ld:n.toFixed(3),cpn:f})}wL(){return this.loader?.wL()}Mr(){return this.loader?.Mr()}jC(){return this.loader?.jC()}zs(){return this.loader?.zs()}xK(){return this.videoData.xK()}Wt(){return this.Y("html5_not_reset_media_source")&&this.videoData.isLivePlayback||this.Y("html5_not_reset_media_source_non_drm_vod")&&!this.videoData.isLivePlayback&& !this.videoData.xK()&&!this.videoData.aR()}QY(){this.videoData.X&&(this.videoData.F6=this.videoData.F6||this.Xx.Od().wL(),this.videoData.GJ=this.videoData.GJ||this.Xx.Od().Mr());if(sTO(this.videoData)||!x7(this.videoData)){const f=this.videoData.errorDetail;this.a6(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),f,f,this.videoData.YZ||void 0)}this.Y("html5_generate_content_po_token")&&this.Zm();this.iW()}getVideoData(){return this.videoData}S(){return this.Ta}q8(){return this.qn.q8(this.bj)}lE(){return this.visibility}Zj(){return this.mediaElement&& this.mediaElement.U()?this.mediaElement.V3():null}aC(){return this.mediaElement}Zs(){if(this.videoData.errorCode)return!1;this.S().U&&this.S().houseBrandUserStatus&&this.ri("hbut",{status:this.S().houseBrandUserStatus},!0);if(this.videoData.H4())return!0;this.a6("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}Qg(f=!1){f||uu(this.Kh);this.mP=f;!this.Zs()||this.Id.hj()?Kx(this)&&this.Id.hj()&&!this.Id.finished&&!this.mP&&this.Aw():(this.Id.start(),f=this.Kh,g.uY(f.provider),f.qoe&&jrg(f.qoe), f.provider.Ta.JE().C.jI(kVm)&&g.H1("cobalt")&&g.H1("android")&&(f=f.provider.videoData.clientPlaybackNonce)&&qQG(f),this.Aw())}Aw(){if(this.videoData.isLoaded()){var f=this.Oi;g.tS(f.V9.experiments,"html5_player_min_build_cl")>0&&g.tS(f.V9.experiments,"html5_player_min_build_cl")>867351992&&vw(f,"oldplayer",!0);Wi5(this)}else this.videoData.EE||this.videoData.Aq?this.mP&&Kx(this)||(this.videoData.EE?Vbm(this.videoData):(f=this.Kh,f.qoe&&(f=f.qoe,U_(f,"protected"),f.provider.videoData.W?f.lC():f.provider.videoData.subscribe("dataloaded", f.lC,f)),ckG(this.videoData))):!this.videoData.loading&&this.q5&&slg(this)}r6(f){this.fh=f;this.loader&&(IAm(this.loader,f),this.ri("sdai",{sdsstm:1}))}BF(f,e,B){this.loader?.BF(f,e,B)}s1(f){this.loader?.s1(f)}OX(){return this.loader?.bx()||null}isFullscreen(){return this.visibility.isFullscreen()}isBackground(){return this.visibility.isBackground()}QP(){bj(this).then(()=>kV(this)); this.playerState.isOrWillBePlaying()&&this.playVideo()}HP(){this.mediaElement&&this.mediaElement.activate();this.Qg();this.Zs()&&!this.playerState.C(128)&&(this.AP.hj()||(this.AP.start(),this.videoData.uC?this.oC(vu(this.playerState,4)):this.oC(vu(vu(this.playerState,8),1))),Re(this))}cN(){return this.Id.finished}sendAbandonmentPing(){this.getPlayerState().C(128)||(this.publish("internalAbandon"),this.zR(!0),Di0(this.Kh),g.PT(this.Kh),g.ul.lK(this.OY))}H3(f=!0,e=!0,B){e&&this.mediaElement&&this.mediaElement.pause(); f&&B&&this.loader&&p2(this.videoData)&&this.loader.Ql(B);this.oC(f?new g.ks(14):new g.ks)}Rm(){this.Kh.B$()}a6(f,e,B,n,r,L){let d,t;g.g2(h60,B)?d=B:B?t=B:d="GENERIC_WITHOUT_LINK";n=(n||"")+`;a6s.${HK()}`;if(f==="auth"||f==="drm.auth"||f==="heartbeat.stop")B&&(n+=`;r.${B.replaceAll(" ","_")}`),L&&(n+=`sr.${L.replaceAll(" ","_")}`);e={errorCode:f,errorDetail:r,errorMessage:t||g.DI[d]||"",B2:d,YZ:L||"",UW:n,Fa:e,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=f;ZZ(this,"dataloaderror"); this.oC(Ch(this.playerState,128,e));g.ul.lK(this.OY);vx(this);this.Q5()}rM(f){this.zo=this.zo.filter(e=>f!==e); this.AP.hj()&&Re(this)}zb(){var f;(f=!!this.zo.length)||(f=this.aM.C.array[0],f=!!f&&f.start<=-0x8000000000000);return f}Em(){return this.Qz.Em()}isPlaying(){return this.playerState.isPlaying()}Dj(){return this.playerState.Dj()&&this.videoData.uC}getPlayerState(){return this.playerState}py(f){this.loader?.py(f)}Ly(f){this.loader?.Ly(f)}getPlayerType(){return this.playerType}getPreferredQuality(){if(this.bj){var f=this.bj;f=f.videoData.B9.compose(f.videoData.kU);f=nl(f)}else f="auto";return f}isGapless(){return!!this.mediaElement&& this.mediaElement.isView()}A1(){return this.Xx.A1()}setMediaElement(f){if(this.mediaElement&&f.V3()===this.mediaElement.V3()&&(f.isView()||this.mediaElement.isView())){if(f.isView()||!this.mediaElement.isView())this.Ai(),this.mediaElement=f,this.mediaElement.Kq=this,nrd(this),this.Qz.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.TC();if(!this.playerState.isError()){let e=bx(this.playerState,512);e.C(8)&&!e.C(2)&&(e=vu(e,1));f.isView()&&(e=bx(e,64));this.oC(e)}this.mediaElement=f; this.mediaElement.Kq=this;!g.IM(this.Ta)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);nrd(this);this.Qz.setMediaElement(this.mediaElement);this.Y("html5_prewarm_media_source")&&!this.Oi.YJ()&&pZk(this.mediaElement)}}TC(f=!1,e=!1,B=!1){if(this.mediaElement){var n=this.getCurrentTime();n>0&&(this.Qz.J=n);this.Qz.setMediaElement(null);!f&&this.Wt()?M_k(this):this.dl(B);this.loader&&(kf(this.loader),this.loader?.cS(e));this.pk.stop();if(this.mediaElement&& (!this.AP.hj()&&!this.S2()||this.playerState.isError()||this.playerState.C(2)||this.oC(vu(this.playerState,512)),this.mediaElement)){this.Ai();if(f||!this.mediaElement.isView())this.ph.FF("mesv_s"),this.mediaElement.stopVideo(),rc(this);this.mediaElement=this.mediaElement.Kq=null}}}async playVideo(f=!1,e=!1){var B=window.google_image_requests;B&&B.length>10&&(window.google_image_requests=B.slice(-10));if(!this.playerState.C(128))if(this.Oi.eq())this.publish("signatureexpired");else if(this.mediaElement&& uu(this.Kh),this.HP(),(this.playerState.C(64)||f)&&this.oC(vu(this.playerState,8)),this.AP.finished&&this.mediaElement){if(!this.bj&&this.xH&&(await this.xH,this.playerState.C(128)))return;if(this.videoData.J){if(this.oR()&&this.videoData.J.C())return bj(this);if(Ww(this))f=this.Qz,zk(f.videoData)&&!f.isAtLiveHead(f.getCurrentTime())&&f.Em()&&f.oA.seekTo(Infinity,{wX:"seektimeline_peggedToLive",seekSource:34});else if(zk(this.videoData)){f=this.getCurrentTime()B.video)?.sort((B,n)=>(n.J??0)-(B.J??0)); this.Kh.tW("M",e?.[0]?.J??(n4w(f.C)?f.C:0))}}mJ(f,e,B){this.tW(f);this.videoData.B9=f;if(this.bj&&e){e=this.qn;var n=this.bj;if(n.C.C()){var r=g.tS(e.Ta.experiments,"html5_max_quality_sel_upgrade"),L=r?f.C:g.V7[nl(f)],d=n.C.videoInfos[0].video.qualityOrdinal,t=d!==0&&f.C===d;d=Mm()>d;t&&d||(r&&t&&(L=Math.max(L,r)),r=zu(e,n.C?.videoInfos),t=e.oA.getPlaybackRate(),t>1&&r&&(r=Fm5(e.Ta.W,n.C.videoInfos,t),f.C!==0&&r=480,e.Y("html5_perf_cap_override_sticky")&&wJ0(e.J,e.Y("html5_perserve_av1_perf_cap")))}}this.loader&&(f=this.loader,B=B||"",f.policy.C?NO(f.W.C,B):NO(f.C.W,B));this.k5()}getUserPlaybackQualityPreference(){return this.videoData.J&&!this.videoData.J.C()?nl(this.videoData.B9):Bt[Mm()]}hasSupportedAudio51Tracks(){return this.videoData.hasSupportedAudio51Tracks()}setUserAudio51Preference(f,e){this.getUserAudio51Preference()!==f&&(this.ri("toggle51",{pref:f}),g.yT("yt-player-audio51", f,e?31536E3:2592E3),this.QP())}getUserAudio51Preference(){return this.videoData.getUserAudio51Preference()}setProximaLatencyPreference(f){const e=this.getProximaLatencyPreference();this.ri("proxima",{pref:f});g.yT("yt-player-proxima-pref",f,31536E3);e!==f&&(f=this.Qz,f.kA=!0,f.oA.seekTo(Infinity,{wX:"seektimeline_proximaSeekToHead",seekSource:34}))}getProximaLatencyPreference(){return Gy()??0}isProximaLatencyEligible(){return this.videoData.isProximaLatencyEligible}Zm(){this.videoData.videoId?this.Xx.Zm(this.videoData): this.ri("povid",{})}iW(){this.videoData.videoId?this.Xx.iW(this.videoData):this.ri("piavid",{})}k5(){if(!this.HS()&&!this.playerState.C(128)&&this.videoData.J){if(this.videoData.J.C())Hx(this);else{const n=t2(this);var f=this.videoData;a:{var e=n;var B=this.videoData.tL;if(e.C){for(const r of B){const L=r.getInfo(),d=g.V7[L.video.quality];if((!e.J||L.video.quality!=="auto")&&d<=e.C){e=r;break a}}e=B[B.length-1]}else e=B[0]}f.WS=e;nx(this,n.reason,dXM(this,this.videoData.WS))}if(this.Y("html5_check_unstarted")? this.playerState.isOrWillBePlaying():this.isPlaying())this.Qz.N=!1,this.playVideo()}}uw(f,e){if(this.HS()||this.playerState.C(128))return!1;var B=!!this.videoData.J?.C(),n=B&&e?this.getCurrentTime()-this.gA():NaN;if(f.Z_&&f.Z_.id){var r=this.Kh;if(r.qoe){r=r.qoe;const d=[f.Z_.id,isNaN(n)?"m":"t"];g.ot(r,g.uY(r.provider),"afi",d)}}if(B){if(e){var L=Pw(this.Qz);this.ri("aswh",{id:f.id,xtags:f.xtags,bh:L.toFixed(3)})}this.loader.setAudioTrack(f,n,e);return!0}if(H_C(this)){a:{L=this.mediaElement.audioTracks(); e=!1;for(n=0;n{try{Z_d(this,r,e,B)}catch(L){g.Yv(L),this.handleError(new g.WP("fmt.unplayable",{msi:"1",ename:L&&typeof L==="object"&&"name"in L?String(L.name):void 0,trg:"setmediasrc"},1))}}; this.Wt()&&this.D9.J()==="open"?f(this.D9):bP5(this.D9,f)}G_(f){this.OC.set(f.initData,f);this.tI&&(this.tI.G_(f),this.Y("html5_eme_loader_sync")||this.OC.remove(f.initData))}Di(f){this.videoData.HB=g.ig("auto",f,!1,"u");Hx(this)}fk(f){var e=f.reason,B=f.C.info,n=f.source,r=f.token,L=this.Kh;const d=this.videoData;if(B!==d.V){var t=!d.V;d.V=B;var H=e==="m"||e==="t";H||(e=t?"i":"a");this.Ta.experiments.SI("html5_refactor_sabr_audio_format_selection_logging")?this.h$=new cx(B,e,"",n,r):(e=new cx(B, e,"",n,r),L.qoe&&(L=L.qoe,B=g.uY(L.provider),lAw(L,B,e)));this.publish("internalaudioformatchange",d,!t&&H)}this.j6();this.Qz.fk(f.C.index)}ww(f){this.publish("localmediachange",f)}PB(f={}){this.loader?.PB(this.Ta,ZX(this.videoData),f)}eq(){return this.Oi.eq()}MY(f){this.rC(new g.WP("staleconfig",{reason:f}))}handleError(f){this.Oi.handleError(f)}YJ(){return this.Oi.YJ()}N$(f){this.Qz.N$(f)}async dZ(f=!1,e=!1){this.loader&&this.loader.m7();this.loader&&this.loader.HS()&&vx(this);this.Y("html5_enable_vp9_fairplay")&& this.xK()&&this.videoData.C?.Ch();this.oC(vu(this.playerState,2048));this.publish("newelementrequired");f&&await bj(this);this.videoData.sA()&&this.loader?.eI&&!Ww(this)&&(this.isAtLiveHead()&&zk(this.videoData)?this.seekTo(Infinity,{wX:"videoPlayer_getNewElement"}):this.videoData.dC&&this.loader&&(f=this.loader,f.fq.sA&&(f.fq.dC||f.fq.K||f.fq.isPremiere?(f.seek(0,{wX:"loader_resetSqless"}),f.videoTrack.U=!0,f.audioTrack.U=!0,f.videoTrack.V=!0,f.audioTrack.V=!0):LT(f.fq)&&U3(f))));e&&this.seekTo(0, {seekSource:105});this.playerState.C(8)&&this.playVideo()}ao(f){this.ri("hgte",{ne:+f});this.videoData.X=!1;f&&this.dZ();this.loader&&EGd(this.loader)}PM(f){this.ri("newelem",{r:f});this.dZ()}pauseVideo(f=!1){if((this.playerState.C(64)||this.playerState.C(2))&&!f)if(this.playerState.C(8))this.oC(Zc(this.playerState,4,8));else if(this.Dj())kV(this);else return;this.playerState.C(128)||(f?this.oC(vu(this.playerState,256)):this.oC(Zc(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause(); g.mi(this.videoData)&&this.loader&&this.loader?.cS(!1)}stopVideo(){this.pauseVideo();this.loader&&(this.loader?.cS(!1),this.loader.nB())}Q5(f=!1,e=!1){this.Wt()&&e?this.mediaElement?.Q5():this.mediaElement?.stopVideo();rc(this);vx(this);this.playerState.C(128)||(f?this.oC(bx(bx(vu(this.playerState,4),8),16)):this.oC(Ch(this.playerState)));this.videoData.videoId&&this.Ta.PS.remove(this.videoData.videoId)}seekTo(f,e={}){this.playerState.C(2)&&kV(this);e.v2A&&this.oC(vu(this.playerState,2048));if((e.seekSource=== 58||e.seekSource===60)&&this.Y("html5_update_vss_during_gapless_seeking")){var B=this.Kh;B.C&&(B=B.C,e.seekSource===58?B.C.update():B.V&&(B.U(),V$(B).send(),B.G=NaN))}this.Qz.seekTo(f,e);this.aM.sync()}UM(f){this.ph.V.G=(0,g.T)();this.playerState.C(32)||(this.oC(vu(this.playerState,32,f?.seekSource)),this.playerState.C(8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.ZW()}Yx(f){f=f?.seekSource;this.playerState.C(32)?(this.oC(Zc(this.playerState,16,32,f)),this.publish("endseeking")):this.playerState.C(2)|| this.oC(vu(this.playerState,16,f));f=this.ph.V;var e=this.videoData,B=this.playerState.isPaused();if(e.clientPlaybackNonce&&!isNaN(f.C)){if(Math.random()<.01){B=B?"pbp":"pbs";const n={startTime:f.C};e.dj&&(n.cttAuthInfo={token:e.dj,videoId:e.videoId});gH("seek",n);g.hQ({clientPlaybackNonce:e.clientPlaybackNonce},"seek");isNaN(f.G)||NJ("pl_ss",f.G,"seek");NJ(B,(0,g.T)(),"seek")}f.reset()}}kH(f){this.Yx(f)}wK(){this.publish("SEEK_COMPLETE")}Mi(f){var e=this.Xx,B=this.videoData.clientPlaybackNonce,n= this.playerType;if(f.scope===4){var r=f.type;if(r){var L=e.cL(),d=L.getVideoData().clientPlaybackNonce;n===1&&(d=B);if(n=cBH(e,d)){if(B=n.getVideoData())f.writePolicy===2&&B.sabrContextUpdates.has(r)||(f.sendByDefault&&B.Lq.add(r),B.sabrContextUpdates.set(r,f)),e.Y("html5_enable_t1_enf_on_sabr")&&(f=r===5,r=gIg(B.playerResponse),f?(f=r?1:0,Uf(f,"m.p_",{}),eZ("MBSTAT",f)):f=1,f===0&&g.yW(e.wi,"onAbnormalityDetected"))}else L.ri("scuset",{ncpf:"1",ccpn:d,crcpn:B})}else g.Yv(Error("b/380308491: contextUpdateType is undefined"))}}xt(){if(this.playerType=== 2)return this.Xx.xt("")}getCurrentTime(f=!1){return this.Qz.getCurrentTime(f)}QL(){return this.Qz.QL()}SU(){return this.Qz.SU()}Ih(){return this.SU()}pG(){return this.Qz.pG()}getPlaylistSequenceForTime(f){return this.videoData.getPlaylistSequenceForTime(f-this.gA())}l$(){let f=NaN;this.mediaElement&&(f=this.mediaElement.l$());return f>=0?f:this.getCurrentTime()}Lc(){if(this.videoData.C?.Lc)return this.videoData.C.Lc(this.getCurrentTime()-this.gA());if(this.mediaElement){var f=this.mediaElement.Lq(); if(f&&(f=f.getTime(),!isNaN(f)))return f/1E3+this.getCurrentTime()}return NaN}getDuration(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.gA():this.zD()?this.zD():0}XC(){const f=new tMm;if(this.loader){mkm(this.Lh,f,this.Ta.wA());var e=this.loader;if(e.D9&&e.D9.W&&!e.D9.Y2()&&(f.G7=dM(e.videoTrack),f.G=dM(e.audioTrack),e.policy.J)){const B=RC(e.videoTrack),n=RC(e.audioTrack),r=GF(e.D9.G.Ea(),"_",5),L=GF(e.D9.C.Ea(),"_",5);Object.assign(f.C,{lvq:B,laq:n,lvb:r,lab:L})}f.bandwidthEstimate= GJ(e.N);e.audioTrack.K?.flush();e.videoTrack.K?.flush()}else this.mediaElement&&(f.G7=Lh(this.mediaElement));f.ZO=this.ZO;f.DJ=this.DJ;f.J=this.isAtLiveHead()&&this.isPlaying()?wc(this):NaN;e=this.Qz;e=e.C?Ed(e.C):0;f.V=e;return f}Py(f,e){this.DJ+=f;this.ZO+=e}kL(){return this.mediaElement?g.mi(this.videoData)?1:Ux(this.videoData)?this.isAtLiveHead()||this.Em()?1:this.Qz.kL():this.mediaElement.kL():0}kx(){var f=this.Vy;const e=fx(f,"bandwidth"),B=fx(f,"bufferhealth"),n=fx(f,"livelatency"),r=fx(f, "networkactivity"),L=iu(f,"bandwidth"),d=iu(f,"bufferhealth"),t=iu(f,"livelatency");f=iu(f,"networkactivity");var H=this.wu();const k=H.droppedVideoFrames;H=H.totalVideoFrames;var C=this.getCurrentTime();if(this.tI){var w="IT/"+(this.tI.C.getInfo()+"/"+nl(this.mT()));w+="/"+this.tI.getInfo()}else w="";var v=this.isGapless(),b=this.A1(),K=this.uE(),Y=this.QI(),l=g.px(this),m=this.getPlayerState().state.toString(16),F=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var N=0;var E="";if(this.fh){if(this.fh.H6){E= "D,";break a}N=this.fh.YL;E=this.fh.kf.substring(0,4)}N>0?(N=`AD${N}, `,E&&(N+=`${E}, `),E=N):E=""}return{I7:L,b2:d,currentTime:C,tA:w,droppedVideoFrames:k,isGapless:v,A1:b,uE:K,vN:Y,Qu:e,s6:B,uG:n,Ze:r,YS:t,Ci:f,Hk:l,gh:m,kB:F,EG:E,totalVideoFrames:H}}xp(f=!1){const e={};if(f){Object.assign(e,this.Kh.xp());this.mediaElement&&(Object.assign(e,this.mediaElement.xp()),f=this.wu(),e.dvf=f.droppedVideoFrames,e.tvf=f.totalVideoFrames);this.loader&&Object.assign(e,this.loader.xp());this.tI&&(e.drm=JSON.stringify(this.tI.xp())); e.state=this.playerState.state.toString(16);this.playerState.C(128)&&(e.debug_error=JSON.stringify(this.playerState.iE));this.zb()&&(e.prerolls=this.zo.join(","));this.videoData.Rd&&(e.ismb=this.videoData.Rd);this.videoData.latencyClass!=="UNKNOWN"&&(e.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(e.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)e.is_mosaic= 1;this.videoData.cotn&&(e.is_offline=1,e.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(e.playerResponseCpn=this.videoData.playerResponseCpn);this.Xx.isOrchestrationLeader()&&(e.leader=1);this.videoData.isLivePlayback&&(this.videoData.C&&Ir(this.videoData.C)&&(e.segduration=Ir(this.videoData.C)),f=this.Qz,e.lat=f.K?f.K.V.J():0,e.liveutcstart=this.videoData.liveUtcStartSeconds);e.relative_loudness=this.videoData.Ni.toFixed(3);if(f=g.px(this))e.optimal_format=f.video.qualityLabel;e.user_qual= Mm();e.release_version="youtube.player.web_20260208_10_RC00"}e.debug_videoId=this.videoData.videoId;return e}addCueRange(f){this.S7([f])}removeCueRange(f){this.aM.X6([f])}f_(){var f=this.aM;if(f.oA.S().Y("html5_sort_cueranges_on_update")&&!(f.QD().length<=0||f.HS())){var e=f.C;e.array.sort(e.C)}f.sync()}aV(f,e){return this.aM.aV(f,e)}S7(f,e){this.aM.AI(f,e)}Iv(f){this.aM.X6(f)}QD(){return this.aM.QD()||[]}Ty(){return this.wE}oR(){return this.visibility.oR()}VP(){this.mediaElement&&this.mediaElement.VP()}lr(){ZZ(this)}togglePictureInPicture(){this.mediaElement&& this.mediaElement.togglePictureInPicture()}Ai(){this.He.G()}Ve(){this.ZW();this.publish("onLoadProgress",this.kL())}yM(f){var e=f.target.O3();if(this.mediaElement&&this.mediaElement.O3()&&this.mediaElement.O3()===e){REY(this,f.type);switch(f.type){case "error":var B=ti(this.mediaElement)||"",n=this.mediaElement.jU();if(B==="capability.changed"){this.Y("html5_restart_on_capability_change")?(this.ri("capchg",{msg:n}),this.dZ(!0)):bj(this);return}if(this.mediaElement.hasError()&&wl(this.Oi,B,{msg:n, trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.ND()===4){this.Q5();qu(this,"unplayable");return}break;case "durationchange":B=this.mediaElement.getDuration();isFinite(B)&&(!this.D9||B>0)&&B!==1&&this.P9(B);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());B=this.aM;B.started=!0;B.sync();this.Kh.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":(this.JE().C.jI($O)||this.Y("html5_prevent_mobile_background_play_on_event_shared"))&& Cx(this,!1);Kv0(this);this.publish("onLoadedMetadata");qrk(this);B=this.Lc();this.videoData.Ow&&(this.videoData.Ow=B);break;case "loadstart":qrk(this);break;case "progress":case "suspend":this.i9.V();break;case "seeked":this.loader?.Qr();break;case "playing":(this.JE().C.jI($O)||this.Y("html5_prevent_mobile_background_play_on_event_shared"))&&Cx(this,!1);this.ph.FF("plev");this.mH&&!Ww(this)&&(this.mH=!1,this.isAtLiveHead()||this.seekTo(Infinity,{wX:"videoplayer_onPlaying"}));break;case "timeupdate":(this.JE().C.jI($O)|| this.Y("html5_prevent_mobile_background_play_on_event_shared"))&&Cx(this,!1);B=this.mediaElement&&!this.mediaElement.getCurrentTime();n=this.mediaElement&&this.mediaElement.J()===0;if(B&&(!this.UF||n))return;this.UF=this.UF||!!this.mediaElement.getCurrentTime();j7(this);this.ZW();if(!this.mediaElement||this.mediaElement.O3()!==e)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.W().length>0&&this.mediaElement.tR().length===0&&this.mediaElement.getCurrentTime()> 0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;break;case "resize":Kv0(this);this.videoData.G&&this.videoData.G.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.NE&&this.playerState.C(8)&&!this.playerState.C(1024)&&this.getCurrentTime()===0&&g.oN){qu(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.O3()===e){cAC(this.Qz,f);this.publish("videoelementevent",f);e=this.playerState;n=this.RD;var r= this.mediaElement;B=this.videoData.clientPlaybackNonce;if(!e.C(128)){var L=e.state;r=r?r:f.target;var d=r.getCurrentTime();if(!e.C(64)||f.type!=="ended"&&f.type!=="pause"){var t=r.getDuration();t=r.isEnded()||d>1&&Math.abs(d-t)<1.1;var H=f.type==="pause"&&r.isEnded();d=f.type==="ended"||f.type==="waiting"||f.type==="timeupdate"&&!e.C(4)&&!ht(n,d);if(H||t&&d)r.Z9()>0&&r.O3()&&(L=14);else switch(f.type){case "error":ti(r)&&(L|=128);break;case "pause":e.C(256)?(L^=256)||(L=64):e.C(32)||e.C(2)||e.C(4)|| (L=4,e.C(1)&&e.C(8)&&(L|=1));break;case "playing":t=L;L=(L|8)&-1093;t&4?(L|=1,ws(n,r,!0)):ht(n,r.getCurrentTime())&&(L&=-2);e.C(1)&&ws(n,r)&&(L|=1);break;case "seeking":L|=16;e.C(8)&&(L|=1);L&=-3;break;case "seeked":L&=-17;ws(n,r,!0);break;case "waiting":e.C(2)||(L|=1);ws(n,r);break;case "timeupdate":t=e.C(16),H=e.C(4),(e.C(8)||t)&&!H&&ht(n,r.getCurrentTime())&&(L=8),ws(n,r)&&(L|=1)}}n=L;L=null;n&128&&(L=f.target,H=ti(L),d=1,H?(H==="capability.changed"&&(d=2),r="GENERIC_WITHOUT_LINK",t=L.xp(),t.mediaElem= "1",t.trg="melem",/AUDIO_RENDERER/.test(L.jU())&&(r="HTML5_AUDIO_RENDERER_ERROR"),L={errorCode:H,errorMessage:g.DI[r]||"",B2:r,UW:Go(t),Fa:d,cpn:e.iE?e.iE.cpn:""}):L=null,L&&(L.cpn=B));e=Ch(e,n,L)}!this.playerState.C(1)&&e.C(1)&&Ot(this,"evt"+f.type);this.oC(e)}}}NT(f){f=f.C.availability==="available";f!==this.wE&&(this.wE=f,this.publish("airplayavailabilitychange"))}xO(){var f=(0,g.T)();const e=this.mediaElement.oR();this.ri("airplay",{ia:e});!e&&!isNaN(this.jS)&&f-this.jS<2E3||(this.jS=f,e!==this.oR()&& (f=this.visibility,f.C!==e&&(f.C=e,f.p5()),this.ri("airplay",{rbld:e}),this.QP()),this.publish("airplayactivechange"))}R_(f){if(this.loader){var e=this.loader,B=e.J,n=e.getCurrentTime();const r=Date.now()-B.K;B.K=NaN;B.ri("sdai",{adfetchdone:f,d:r});f&&!isNaN(B.U)&&B.G!==3&&lF(B.loader,n,B.U,B.W);B.policy.G?B.J=NaN:B.V=NaN;oV(B,4,B.G===3?"adfps":"adf");kf(e)}}Xv(){g.Fx(this.ez);this.pk.stop();this.videoData.K=!0;this.Ta.M6=!0;this.Ta.xA=0;var f=this.Oi;if(f.videoData.G){var e=f.V9.W,B=f.videoData.G.NC; e.J.has(B)&&(e.J.delete(B),e.C=!0)}f.C.stop();f.V9.IR=0;this.Yj();this.playerState.C(8)&&this.oC(bx(this.playerState,65));this.mP=!1;this.Kh.LY();this.nM.M0();this.publish("playbackstarted");(f=g.zO("yt.scheduler.instance.clearPriorityThreshold"))?f():RN(0)}Yj(){var f=this.Xx.EK(),e={};const B={};!SH("pbs",this.ph.timerName)&&aR.measure&&aR.getEntriesByName&&(aR.getEntriesByName("mark_nr")[0]?WR0("mark_nr"):WR0());f.videoId&&(e.videoId=f.videoId);f.clientPlaybackNonce&&!this.Y("web_player_early_cpn")&& (e.clientPlaybackNonce=f.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(B.isPausedOnLoad=!0);B.itag=f.G?Number(f.G.itag):-1;f.UE&&(B.preloadType=String(this.gV?2:1));e.liveStreamMode=x0d[ud(f)];e.playerInfo=B;this.ph.infoGel(e);if(this.loader){f=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(f.J&&(e=window.performance.getEntriesByName(f.J),e.length&&(e=e[0],f.tick("vri",e.fetchStart),f.tick("vdns",e.domainLookupEnd),f.tick("vreq",e.requestStart), f.tick("vrc",e.responseEnd))),f.G&&(e=window.performance.getEntriesByName(f.G),e.length&&(e=e[0],f.tick("ari",e.fetchStart),f.tick("adns",e.domainLookupEnd),f.tick("areq",e.requestStart),f.tick("arc",e.responseEnd))));f=f.ticks;for(const n in f)f.hasOwnProperty(n)&&this.ph.tick(n,f[n])}}ZW(f=!1){if(this.mediaElement&&this.videoData){Z2k(this.Qz,this.isPlaying());var e=this.getCurrentTime();this.loader&&(this.playerState.C(4)&&g.mi(this.videoData)||this.playerState.C(32)&&lK(this.videoData)||$Q0(this.loader, e),this.Y("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.kA())>10&&this.ri("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:this.loader?.kA()},!0));e>5&&(this.Qz.J=e);var B=g.Z4();B?g.ul.lK(this.OY):g.us(this.OY);var n=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!n||this.videoData.eI())&&!this.playerState.C(128)){const r=()=>{if(this.mediaElement&&!this.playerState.C(128)){this.Ta.wA()&&REY(this,"pfx");var L=this.getCurrentTime();this.Y("html5_buffer_underrun_transition_fix")&& (L-=this.gA());var d=Lh(this.mediaElement),t=this.playerState.C(8),H=ht(this.RD,L),k=OPg(this.RD,L,(0,g.T)(),d);t&&H?this.oC(bx(this.playerState,1)):t&&k?(t=this.getDuration(),H=zk(this.videoData),t&&Math.abs(t-L)<1.1?(this.ri("setended",{ct:L,bh:d,dur:t,live:H}),this.mediaElement.nF()?this.seekTo(0,{wX:"videoplayer_loop",seekSource:37}):this.H3()):(this.playerState.isBuffering()||Ot(this,"progress_fix"),this.oC(vu(this.playerState,1)))):(t&&!H&&!k&&L>0&&(t=(Date.now()-this.bF)/1E3,H=this.getDuration(), L>H-1&&this.ri("misspg",{t:L.toFixed(2),d:H.toFixed(2),r:t.toFixed(2),bh:d.toFixed(2)})),this.playerState.isPaused()&&this.playerState.isBuffering()&&Lh(this.mediaElement)>5&&this.oC(bx(this.playerState,1)));this.ZW()}}; this.mediaElement.W().length===0?this.OY=B?g.ul.Br(r,100):g.VY(r,100):this.OY=B?g.ul.Br(r,500):g.VY(r,500)}this.videoData.G6=e;!f&&this.isPlaying()&&zEO(this);b3M(this.qn,this.bj,this.aC(),this.isBackground())&&Hx(this);this.publish("progresssync",f);n&&this.videoData.eI()&&this.publish("onVideoProgress",this.getCurrentTime())}}fN(){this.a6("ad.rebuftimeout",2,"RETRYABLE_ERROR",`vps.${this.playerState.state.toString(16)}`)}QI(){return this.Kh.QI()}jV(){return this.loader?this.loader.jV():MX(this.Lh, !0)}oC(f){if(!g.Rw(this.playerState,f)){var e=new g.aw(f,this.playerState);this.playerState=f;a56(this);var B=!this.VC.length;this.VC.push(e);var n=this.mediaElement&&this.mediaElement.isSeeking();e.IC(1)&&this.loader&&F6m(this.loader);n=e.oldState.G()&&!n;if(e.IC(1)&&n&&this.playerState.C(8)&&!this.playerState.C(64)&&this.loader&&(n=this.loader,n.wS=!0,n.policy.G6&&n.D9&&n.ri("lr_rb",{c:n.getCurrentTime(),s:n.isSeeking(),ab:GF(n.D9.C.Ea()),ala:rM(n.audioTrack)?.Pd(),alr:n.audioTrack.C?.Pd(),vb:GF(n.D9.G.Ea()), vla:rM(n.videoTrack)?.Pd(),vlr:n.videoTrack.C?.Pd()}),n.wg!==0&&n.ri("sps_rebuffer",{c:n.getCurrentTime()}),this.mediaElement&&Lh(this.mediaElement)>=5)){n=this.qn;var r=this.bj;!r.videoData.G||n.Y("html5_disable_performance_downgrade")?n=!1:(Date.now()-n.X>6E4&&(n.G=0),n.G++,n.X=Date.now(),n.G!==4?n=!1:(wSC(n,r.videoData.G),n=!0));n&&Hx(this)}(n=g.tS(this.Ta.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&f.C(1)&&(f.C(8)||f.C(16))?this.Zu.start(n):this.Zu.stop();(hX(e,8)<0||e.IC(1024))&& this.pk.stop();!e.IC(8)||this.videoData.K||e.state.C(1024)||this.pk.start();e.state.C(8)&&hX(e,16)<0&&!e.state.C(32)&&!e.state.C(2)&&this.playVideo();e.state.C(2)&&Ux(this.videoData)&&(this.P9(this.getCurrentTime()),this.ZW(!0));e.IC(2)&&(this.zR(!0),this.Ta.wA()&&this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&lK(this.videoData)&&this.videoData.C&&(f={minst:`${this.videoData.C.By}`,cminst:`${this.videoData.C.N0()+this.gA()}`,maxst:`${this.videoData.C.cP}`,hts:`${this.videoData.C.cS}`, cmaxst:`${this.videoData.C.zD()+this.gA()}`},this.ri("sabrSeekableBoundaries",f)));e.IC(128)&&this.Q5();this.videoData.C&&this.videoData.isLivePlayback&&!this.HG&&(hX(e,8)<0?(f=this.videoData.C,f.W&&f.W.stop()):e.IC(8)&&this.videoData.C.resume());f=this.Qz;f.Ed.W.M0();if(f.mediaElement)if(e.oldState.G()&&Hu(e.state)&&e.state.isBuffering()){n=f.mediaElement.getCurrentTime();r=f.mediaElement.tR();var L=f.Y("manifestless_post_live_ufph")||f.Y("manifestless_post_live")?x5(r,Math.max(n-3.5,0)):x5(r,n- 3.5);L>=0&&n>r.end(L)-1.1&&L+10?(dc(f.oA,f.getCurrentTime()+f.videoData.limitedPlaybackDurationInSeconds),f.Fl=!0):f.videoData.isLivePlayback&&f.videoData.endSeconds>0&&(dc(f.oA,f.getCurrentTime()+f.videoData.endSeconds),f.Fl=!0));f=this.Kh;if(e.IC(1024)|| e.IC(512)||e.IC(4))f.G&&(n=f.G,n.G>=0||(n.C=-1,n.delay.stop())),f.qoe&&(n=f.qoe,n.X||(n.V=-1));f.provider.videoData.enableServerStitchedDai&&f.qD?f.J.get(f.qD)?.Cq(e):f.C&&f.C.Cq(e);if(f.qoe){n=f.qoe;r=e.state;L=g.uY(n.provider);var d=n.getPlayerState(r),t=L,H=r.seekSource||void 0;if(d!==n.mA){n.Cq||t=10&&n.playTimeSecs<=180&&(n.C.set("qoealert",["1"]),n.kA=!0)), d!=="B"||n.mA!=="PL"&&n.mA!=="PB"||(n.isBuffering=!0),n.J=t);n.mA==="PL"&&(d==="B"||d==="S")||n.provider.Ta.wA()?FS(n,t):(n.qC||d!=="PL"||(n.qC=!0,lY(n,t,n.provider.oA.XC())),VE(n,t));d==="PL"&&n.hE.M0();var k=[d];d==="S"&&H&&k.push(`${"ss"}.${H}`);g.ot(n,t,"vps",k);n.mA=d;n.Ed=t;n.J=t;n.W=!0}t=r.iE;r.C(128)&&t&&(t.UW=t.UW||"",aAk(n,L,t.errorCode,t.Fa,t.UW));(r.C(2)||r.C(128))&&n.reportStats(L);r.isPlaying()&&!n.X&&(n.V>=0&&n.C.set("user_intent",[n.V.toString()]),n.X=!0);mT(n)}f.G&&(f=f.G,qh5(f), f.playerState=e.state,f.G>=0&&e.IC(16)&&f.seekCount++,e.state.isError()&&f.send());if(B&&!this.HS())try{for(const w of this.VC){var C=this.aM;if(C.started&&(C.sync(),w.oldState.C(16))){e=C;const v=XSm(e.C,Math.max(e.J-2E3,0));!isNaN(v)&&v<0x7ffffffffffff&&e.V.start()}this.publish("statechange",w)}}finally{this.VC.length=0}}}X7(){this.ph.tick("qoes")}Dl(){this.Qz.Dl()}mI(f,e,B,n="LICENSE"){a:{var r=this.Oi;B=B.substring(0,256);let L=xk(e);f==="drm.keyerror"&&this.tI&&this.tI.J.keys.length>1&&r.V<96&& (f="drm.sessionlimitexhausted",L=!1);const d=r.V9.experiments.SI("html5_retry_on_drm_unavailable"),t=r.V9.experiments.SI("html5_retry_on_drm_key_error"),H=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(d&&f==="drm.unavailable"||t&&f==="drm.keyerror"&&!B.match(H))r.rC("qoe.restart",{retryOnDrmError:1,e:f,detail:B}),r.oA.dZ(!0);else{if(L)if(r.videoData.G&&r.videoData.G.video.isHdr())bu(r,f);else{if(r.oA.a6(f,e,n,B),PDH(r,{detail:B}))break a}else r.rC(f,{detail:B});f==="drm.sessionlimitexhausted"&& (r.ri("retrydrm",{sessionLimitExhausted:1}),r.V++,DUY(r.oA))}}}Pu(){var f=g.tS(this.Ta.experiments,"html5_license_constraint_delay");const e=ps();f&&e?(f=new g.T6(()=>{this.k5();ZZ(this)},f),g.A(this,f),f.start()):(this.k5(),ZZ(this))}Wc(f){this.publish("heartbeatparams",f)}vF(f){this.ri("keystatuses",rl(f)); var e="auto",B=!1;this.videoData.G&&(e=this.videoData.G.video.quality,B=this.videoData.G.video.isHdr());a:{switch(e){case "highres":case "hd2880":e="UHD2";break;case "hd2160":case "hd1440":e="UHD1";break;case "hd1080":case "hd720":e="HD";break;case "large":case "medium":case "small":case "light":case "tiny":e="SD";break;default:e="";break a}B&&(e+="HDR")}e=Bw(f)?nq(f,e):f.V.includes(e);if(this.Y("html5_enable_vp9_fairplay")){if(B){if(!f.X){this.videoData.l_||(this.videoData.l_=!0,this.ri("drm",{dphdr:1}), this.dZ(!0));return}if(this.tI?.C.C()?this.tI?.tL():!e){this.ri("drm",{dshdr:1});bu(this.Oi);return}}if(this.tI?.C.C())return}else{const n=f.X&&e;if(B&&!n){bu(this.Oi);return}}if(B=!e)B=!(nq(f,"AUDIO")&&nq(f,"SD"));B&&(f=rl(f),this.fP?(this.publish("drmoutputrestricted"),this.Y("html5_report_fatal_drm_restricted_error_killswitch")||this.a6("drm.keyerror",2,void 0,`info.${f}`)):(this.fP=!0,this.rC(new g.WP("qoe.restart",{retrydrm:1,...f})),Hx(this),DUY(this)))}Q1(){if(!this.videoData.K&&this.mediaElement&& !this.isBackground()){var f="0";this.mediaElement.J()>0&&Lh(this.mediaElement)>=5&&this.videoData.J&&this.videoData.J.C()&&(this.oC(vu(this.playerState,1)),Ot(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),f="1");a56(this);var e=this.videoData.J;f={restartmsg:f,mfmt:!w7(this.videoData),mdrm:!(!(e&&e.videoInfos&&e.videoInfos.length&&e.videoInfos[0].contentProtection)||this.tI),mfmtinfo:!this.videoData.G,prerolls:this.zb()?this.zo.join(","):"0"};if(this.tI){e=this.tI;if(e.J.size<= 0){let B="ns;";e.Ed||(B+="nr;");e=B+=`ql.${e.V.length}`}else e=rl(e.J.values().next().value),e=Go(e);f.drmp=e}Object.assign(f,this.loader?.xp()||{});Object.assign(f,this.mediaElement?.xp()||{});this.Kh.rC("qoe.start15s",Go(f));this.publish("loadsofttimeout")}}P9(f){this.videoData.lengthSeconds!==f&&(this.videoData.lengthSeconds=f,ZZ(this))}zR(f=!1,e){if(!this.m8)if(SH("att_s","player_att")||QF("att_s",void 0,"player_att"),this.Y("use_rta_for_player"))(async()=>{if(!f||await g.xpk())try{const n=Mcd(this.Kh); if(!n)throw Error();const r=await g.G_6({cpn:this.videoData.clientPlaybackNonce,encryptedVideoId:this.videoData.videoId||""},g.tS(this.Ta.experiments,"html5_att_playback_timeout_ms")||3E4);if(this.m8)throw Error();if(!r.challenge)throw g.Yv(Error(`Not sending atr ping; missing challenge string${r.error?`; error: ${r.error}`:""}`)),Error();this.m8=!0;const L=[r.challenge];if(r.error){const d=ETG(),t=jUC(d).get(r.error)||0;L.push(`${"r1c"}=${t}`)}else r.webResponse&&L.push(`${"r1a"}=${r.webResponse}`); r.adblockReporting?.reportingStatus!==void 0&&L.push(`${"r6a"}=${r.adblockReporting.reportingStatus}`);r.adblockReporting?.broadSpectrumDetectionResult!==void 0&&L.push(`${"r6b"}=${r.adblockReporting.broadSpectrumDetectionResult}`);n(L.join("&"));QF("att_f",void 0,"player_att")}catch(n){QF("att_e",void 0,"player_att")}})().then(()=>{e?.()}); else{var B=new g.N3d(this.videoData);if("c1a"in B.y_&&!g.Q1.isInitialized()){QF("att_wb",void 0,"player_att");this.My===2&&Math.random()<.01&&g.Yv(Error("Botguard not available after 2 attempts"));if(f)return;if(this.My<5){this.KM.M0();this.My++;return}}(B=g.ZBG(B))?(QF("att_f",void 0,"player_att"),Jq5(this.Kh,B),this.m8=!0):QF("att_e",void 0,"player_att")}}zJ(f=!1){return zk(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Em()||g.mi(this.videoData))?this.getCurrentTime(): this.zD(f)}Pz(){return this.N0()}zD(f=!1){return this.Qz.zD(f)}N0(){return this.Qz.N0()}gA(){return this.Qz?this.Qz.gA():0}getStreamTimeOffset(){return this.Qz?this.Qz.getStreamTimeOffset():0}IV(){return this.getStreamTimeOffset()===0?this.gA():this.getStreamTimeOffset()}setPlaybackRate(f){this.playbackRate!==f&&zu(this.qn,this.videoData.J?.videoInfos)&&(this.playbackRate=f,Hx(this));this.playbackRate=f;this.mediaElement&&this.mediaElement.setPlaybackRate(f)}getPlaybackRate(){return this.playbackRate}getPlaybackQuality(){let f= "unknown";if(this.videoData.G&&(f=this.videoData.G.video.quality,f==="auto"&&this.mediaElement)){const e=this.Zj();e&&e.videoHeight>0&&(f=lG(e.videoWidth,e.videoHeight))}return f}isHdr(){return!!(this.videoData.G&&this.videoData.G.video&&this.videoData.G.video.isHdr())}sendVideoStatsEngageEvent(f,e){var B=this.Kh;B.C?(B=jT(B.C,"engage"),B.Cq=f,B.send(e)):e&&e()}z8(f){return this.Kh.z8(f)}isAtLiveHead(f,e=!1){return zk(this.videoData)&&(this.BK||e)?this.Qz.isAtLiveHead(f):!1}xi(){const f=this.zD(), e=this.getCurrentTime();var B;(B=!zk(this.videoData))||(B=this.Qz,B=!(B.C&&B.C.J));return B||this.Em()||isNaN(f)||isNaN(e)?0:Math.max(0,f-e)}w6(f){(this.BK=f)||this.pk.stop();if(this.videoData.C)if(f)this.videoData.C.resume();else{var e=this.videoData.C;e.W&&e.W.stop()}this.loader&&(e=this.videoData.Y("html5_disable_preload_for_ssdai_with_preroll")&&this.S2()&&this.videoData.isLivePlayback,f&&!e?this.loader.resume():this.loader?.cS(!0));this.playerState.C(2)||f?this.playerState.C(512)&&f&&this.oC(bx(this.playerState, 512)):this.oC(vu(this.playerState,512));e=this.Kh;e.qoe&&(e=e.qoe,g.ot(e,g.uY(e.provider),"stream",[f?"A":"I"]))}Kt(f){this.Kh.rC("player.exception",Go({n:f.name,m:f.message}))}U4(f){this.Kh.U4(f)}jq(f){this.Kh.jq(f)}Tm(f){this.Kh.Tm(f)}i7(f){this.Kh.i7(f)}Ql(f,e,B,n){this.Kh.Ql(f,e,B,n)}Ct(){this.ri("hidden",{},!0)}wu(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}TV(){return this.loader?this.loader.TV():!0}setLoop(f){this.loop=f;this.mediaElement&&!g.IM(this.Ta)&&this.mediaElement.setLoop(f)}nF(){return this.mediaElement&& !g.IM(this.Ta)?this.mediaElement.nF():this.loop}F7(f){this.ri("timestamp",{o:f.toString()});this.Qz.F7(f)}Ce(f){this.ph.tick(f)}Dc(f){return this.ph.Dc(f)}FF(f){this.ph.FF(f)}ri(f,e,B=!1){this.Kh.ri(f,e,B)}pP(f,e,B=!1){this.Kh.ri(f,e,B)}rC(f){this.Kh.rC(f.errorCode,Go(f.details));f=f.errorCode;if(this.videoData.isLivePlayback&&(f==="qoe.longrebuffer"||f==="qoe.slowseek")||f==="qoe.restart")f=this.loader?G0G(this.loader.videoTrack):{},this.ri("lasoe",Object.assign(this.loader?G0G(this.loader.audioTrack): {},this.D9?.C?.Cx())),this.ri("lvsoe",Object.assign(f,this.D9?.G?.Cx()));this.Y("html5_log_centralized_player_time")&&this.ri("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:this.loader?.kA()})}P3(f,e,B){this.Kh.P3(f,e,B)}QA(f,e,B,n,r,L,d,t){if(this.videoData.C?.isLive){var H=e.playerType===2?e:f,k=f.videoData.videoId,C=e.videoData.videoId;if(k&&C){var w=this.Kh;if(t?.jQ){if(w.qoe){k=w.qoe;C=t.jQ;k.reportStats();var v=k.provider.videoData.clientPlaybackNonce,b=k.provider.videoData.videoId|| "",K=k.zm?.join(".")||v,Y=k.AU?.join(".")||b;QE(k,L?4:r?2:0,C.Uu.join(".")||v,C.KK.join(".")||b,n);k.reportStats();k.zm=C.Uu;k.AU=C.KK;k.iI=C.adFormats;k.vy=C.serializedQoeContextData;QE(k,L?5:r?3:1,K,Y,B);k.reportStats()}}else if(w.qoe){v=w.qoe;b=f.cpn;K=e.cpn;Y=H.videoData.xA;var l=v.provider.videoData.clientPlaybackNonce;const m=v.provider.videoData.videoId,F=K!==l&&C!==m;l=b!==l&&k!==m;v.reportStats();v.adCpn&&v.adCpn!==b||(v.adCpn=l?b:"",v.Ij=l?k:"",v.adFormat=l?Y:void 0,QE(v,L?4:r?2:0,K,C,n), v.reportStats(),v.adCpn=F?K:"",v.Ij=F?C:"",v.adFormat=F?Y:void 0,QE(v,L?5:r?3:1,b,k,B),v.reportStats())}t?.Dy?(w.C?.Z9(),w.C?.X(),w.C?.Fl(t.Dy),w.C?.X(),w.C?.K(!0,!0).send(),w.C?.BS()):(B=w,r=f.cpn,B.J.has(r)?(L=B.J.get(r),V$(L,!0).send(),L.U(),r!==B.provider.videoData.clientPlaybackNonce&&(lu(L),B.C?.A(),B.J.delete(r))):(B.qD=B.provider.videoData.clientPlaybackNonce,B.qD&&B.C&&(B.J.set(B.qD,B.C),V$(B.C).send(),B.C.U())),B=e.cpn,H=H.videoData,n-=this.IV(),w.J.has(B)?(H=w.J.get(B),n=H.V&&isNaN(H.W)? Od(H):NaN,H=H.K(!1),isNaN(n)||(H.X=n),H.send()):(n=TC6(w,w.provider,H,n),w.J.set(B,n),n.Cq(new g.aw(vu(new g.ks,8),new g.ks)),n.LY(),w.C?.U()),w.qD=B);this.Y("html5_unify_csi_server_stitched_transition_logging")?(n=this.ph,w=f.cpn,f=e.cpn,B=this.videoData.clientPlaybackNonce,H=e.videoData,e=(0,g.T)(),B=`${w===B?"video":"ad"}_to_${f===B?"video":"ad"}`,B!=="video_to_ad"&&(r=B==="ad_to_video"?void 0:H,w=r?.H8,L={},H?.dj&&(L.cttAuthInfo={token:H.dj,videoId:H.videoId}),d&&(L.startTime=d),gH(B,L),d={targetVideoId:H?.videoId?? "empty_video",targetCpn:f,adVideoId:r?.videoId??"empty_video",adClientPlaybackNonce:w?.cpn??r?.clientPlaybackNonce},w&&(d.adBreakType=w.adBreakType,d.adType=w.adType),g.hQ(d,B),ZI(n,e,B))):(n=this.ph,B=this.videoData.clientPlaybackNonce,H=(0,g.T)(),w=e.videoData,f=`${f.cpn===B?"video":"ad"}_to_${e.cpn===B?"video":"ad"}`,B={},w.dj&&(B.cttAuthInfo={token:w.dj,videoId:w.videoId}),d&&(B.startTime=d),gH(f,B),g.hQ({targetVideoId:w.videoId,targetCpn:e.cpn,isSsdai:!0},f),d||ZI(n,H,f))}}else g.Vj(this.logger, 360717806,"SSTEvent for nonSS")}SV(){var f=this.Xx;const e=f.OB;f.OB=[];return e}H2(f){this.videoData.We=!0;this.rC(new g.WP("sabr.fallback",f));this.dZ(!0)}yV(f,e=!0){this.videoData.U$=!0;e&&(this.rC(new g.WP("qoe.restart",f)),this.dZ(!0))}fI(f){this.ri("sdai",{aftimeout:f});this.rC(new g.WP("ad.fetchtimeout",{timeout:f}))}wp(f,e){this.ri("timelineerror",f);f=new g.WP("dai.timelineerror",f);e?this.a6("dai.timelineerror",1,"RETRYABLE_ERROR",Go(f.details)):this.rC(f)}q9(){return g.uY(this.Kh.provider)}getPlayerSize(){return this.yY.getPlayerSize()}I8(){return this.yY.I8()}Pt(){return this.ph}dS(){return this.Xx.dS()}getVolume(){return this.Xx.getVolume()}CY(){return this.Xx.CY()}isMuted(){return this.Xx.isMuted()}fC(){return this.Xx.fC()}oQ(){this.HG= !0}Y(f){return this.Ta.Y(f)}JE(){return this.Ta.JE()}LZ(f,e,B,n,r){this.ri("xvt",{m:f,g:e?1:0,tt:B?1:0,np:n?1:0,c:r})}h_(){this.loader?.resume()}S2(){return g.eB(this.zo,"ad")}Jb(){const f=this.getCurrentTime(),e=f-this.gA();var B=this.mediaElement?XH(this.mediaElement.tR()):0;B=Math.floor(Math.max(B-e,0))+100;return this.loader?.Jb(e,B)?(this.ri("sdai",{skipad:1,ct:e.toFixed(3),adj:B.toFixed(3)}),lK(this.videoData)&&this.loader.seek(e+B,{seekSource:89,wX:"videoplayer_skipServerStitchedAd"}),Yx6(this.Qz, f),!0):!1}wA(){return this.Ta.wA()}F3(){if(this.Y("html5_generate_content_po_token"))return this.videoData.EO||"";this.Xx.Op();return this.Ta.zt||""}Gy(){if(this.videoData.videoId)return this.videoData.O$}uj(){return this.videoData.videoId}Df(){return this.Xx.g9}GS(){return this.mP}Bp(){return this.Xx.Bp()}GL(f,e,B){this.oC(vu(this.playerState,16,B));this.Qz.GL(f,e,B)}prefetchKeyPlay(f,e){this.loader?.prefetchKeyPlay(f,e)}KF(f){return this.Qz.KF(f)}f0(){this.Qz.f0()}Ko(f,e){const B=this.Y("html5_generate_content_po_token")? this.videoData:void 0;this.Xx.Ko(f,e,B)}OH(){return this.Y("html5_remove_ios_7_hack_force_play")}Y1(f,e){this.Kh.Y1(f,e)}yL(){return this.Kh.yL()}uE(){return this.Xx.uE()}ek(){return this.Xx.ek(this)}q1(){this.hf=!0}PY(f){this.loader?.PY(f)}QN(f){this.Qz.QN(f)}};g.c=g.dX.prototype;g.c.ew=eC(48);g.c.Bt=eC(31);g.c.Jq=eC(25);g.c.hC=eC(19);g.c.zE=eC(13);var A2={primary:"Primary",secondary:"Secondary"};var ab5=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);X(this.api,"isLifaAdPlaying",()=>this.api.isLifaAdPlaying()); this.events.D(f,f.S().JE().C.jI(I$)?"playbackChange":"serverstitchedvideochange",()=>{this.api.getVideoData()?.q0()&&(this.api.isLifaAdPlaying()?(this.playbackRate=this.api.getPlaybackRate(),this.api.setPlaybackRate(1)):this.api.setPlaybackRate(this.playbackRate))}); this.playbackRate=1}};var p8k=class extends Ih{constructor(f){super("Loop",g.X7.Ka);this.Z=f;const e=f.Y("delhi_modern_web_player_icons")?{L:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:fDk();this.setIcon(e);this.subscribe("select",this.J,this);f.createClientVe(this.element,this,28661);this.D(f,"settingsMenuVisibilityChanged",this.G);this.listen("click",this.logClick);this.D(f,"onLoopChange",this.onLoopChange);this.C(f.getLoopVideo());f.iT().jf(this)}G(f){f&&this.C(this.Z.getLoopVideo());this.Z.logVisibility(this.element,f)}logClick(){this.Z.logClick(this.element)}onLoopChange(f){this.C(f)}J(f){this.Z.setLoopVideo(f)}};var cz0=class extends Pq{constructor(f){super(f);f.addEventListener("settingsMenuInitialized",()=>{this.menuItem||(this.menuItem=new p8k(this.api),g.A(this,this.menuItem))}); f.addEventListener("videodatachange",(e,B)=>{e=this.api.getPresentingPlayerType()===2;this.menuItem?.FG(!B.isLivePlayback&&!e)})}};var YTC=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);X(this.api,"seekToChapterWithAnimation",e=>{this.seekToChapterWithAnimation(e)}); X(this.api,"seekToTimeWithAnimation",(e,B)=>{this.seekToTimeWithAnimation(e,B)}); X(this.api,"renderChapterSeekingAnimation",(e,B,n)=>{this.api.renderChapterSeekingAnimation(e,B,n)}); X(this.api,"setMacroMarkers",e=>{this.setMacroMarkers(f,e)}); X(this.api,"changeMarkerVisibility",(e,B,n)=>{this.changeMarkerVisibility(e,B,n)}); X(this.api,"isSameMarkerTypeVisible",e=>this.isSameMarkerTypeVisible(e))}seekToChapterWithAnimation(f){if(g.n_(this.api)&&!(f<0)){var e=this.api.getVideoData(),B=e.lC; if(B&&f{r===f&&oe(this,n.timeRangeStartMillis,n.title)})}}seekToTimeWithAnimation(f,e){g.n_(this.api)&&oe(this,f,e)}setMacroMarkers(f,e){e={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:e}}}}}}; f=f.getVideoData();f.getWatchNextResponse();f&&f.getWatchNextResponse()==null&&(L2(f,{raw_watch_next_response:e}),f.publish("dataupdated"))}changeMarkerVisibility(f,e,B){const n=this.api.getVideoData();if(n){var r=!1;if(f)for(const L of e){if((f=n.PS)&&!f.includes(L))switch(B){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":cKM(L,n)||(r=!0,n.PS?.push(L));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":f.length===0&&(r=!0,n.PS?.push(L));break; default:r=!0,n.PS?.push(L)}}else for(const L of e)n.visibleOnLoadKeys.includes(L)||g.d2(n.PS,L)&&(r=!0);r&&this.api.publish("updatemarkervisibility")}}isSameMarkerTypeVisible(f){const e=this.api.getVideoData();return e?cKM(f,e):!1}};var Az5=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);this.events.D(f,"videodatachange",()=>{this.updateMetadata()}); this.events.D(f,"presentingplayerstatechange",()=>{Yr6(this)}); this.events.D(f,"SEEK_COMPLETE",()=>{AK6(this)})}updateMetadata(){var f=this.api.getVideoData(); if(f?.H4()){var e=this.api.S(),B=[],n="";if(!e.A){const r=this.api.getVideoData().getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.browserMediaSession?.browserMediaSessionRenderer;g.TT(e)&&r?(B=jyO(r.thumbnailDetails),r.album&&(n=Ou(r.album))):B=[{src:f.iR("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}this.api.getVideoData()?.s7()&&AK6(this);Yr6(this);O_6(this);navigator.mediaSession.metadata=new MediaMetadata({title:f.title,artist:f.author,artwork:B,album:n});e=f=null;g.bS(this.api)&& (f=()=>{this.api.nextVideo()},e=()=>{this.api.previousVideo()}); VA("nexttrack",f);VA("previoustrack",e)}}bY(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;const f="nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ");for(const e of f)VA(e,null);this.api.getVideoData()?.s7()&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});super.bY()}};var jLG=class extends Pq{constructor(f){super(f);this.G=new Map;this.W=this.C=void 0;this.compositeVideoState=null;this.J=void 0;this.events=new g.ep(f);g.A(this,this.events);this.events.D(f,"modulecreated",e=>{a:{var B=this.api.getVideoData()?.getPlayerResponse()?.overlay?.playerControlsOverlayRenderer;if(B&&(B=g.u(B.compositeVideoOverlay,hNw),B?.sources?.length))for(n of B?.sources)if(n.isActive)break a;var n=void 0}e==="captions"&&n?.topLeftCornerX!==void 0&&n?.topLeftCornerY!==void 0&&n?.width!== void 0&&n?.height!==void 0&&this.api.BU({top:n.topLeftCornerY,right:1-n.topLeftCornerX-n.width,bottom:1-n.topLeftCornerY-n.height,left:n.topLeftCornerX})}); this.events.D(f,"videodatachange",e=>{const B=this.api.getVideoData();this.C=void 0;this.G.clear();this.api.sK("compositeembargo",1);const n=B?.Fo.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");n?.length?or6(this,n.filter(r=>r.onEnter?.some(this.V))):B?.cueRanges&&or6(this,B.cueRanges.filter(r=>r.onEnter?.some(this.V))); e==="dataupdated"&&B?.compositeLiveStatusToken!==this.W&&(this.W=B?.compositeLiveStatusToken,this.api.Rm())}); this.events.D(f,g.kk("compositeembargo"),e=>{if(this.C?.id!==e.id&&(this.api.U4(!0),this.G.has(e.id))){var B=this.G.get(e.id),n=this.api.getVideoData();for(const r of B)B=r.compositeEmbargo?.embargoStatusToken,n.Ia!==B&&(n.Ia=B,this.api.Rm()),V5m(this,e)}}); this.events.D(f,g.Ca("compositeembargo"),e=>{if(this.C?.id===e.id&&(this.api.U4(!1),this.G.has(e.id))){if(e=this.api.getVideoData())e.Ia=void 0;this.api.Rm();V5m(this)}}); this.events.D(f,"heartbeatRequest",e=>{this.compositeVideoState!==null&&(e.playbackState||(e.playbackState={}),e.playbackState.compositeVideoState=this.compositeVideoState)}); this.events.D(f,"internalaudioformatchange",(e,B)=>{const n=this.api.getVideoData({VV:!1});n?.ri("atrkchg",{id:e,m:B});if(n&&!n.X1()){B=this.api.getAvailableAudioTracks();for(const r of B)if(r.getLanguageInfo().getId()===e){this.api.S().Fl=e;break}}}); this.events.D(f,"onPlaybackAudioChange",()=>{this.api.Rm();if(f.getVideoData()?.S().Y("html5_preload_on_mosaic_audio_track_change")){const e=this.api.getSourceConfigForActiveAudioTrack();e&&f.preloadVideoByPlayerVars({videoId:e.videoId,live_preload:!0},1)}}); X(f,"setCompositeParam",e=>{this.compositeVideoState=e}); this.api.Y("web_watch_enable_multiview_manager")&&X(f,"setCompositeVideoOverlayRendererComponent",e=>{this.setCompositeVideoOverlayRendererComponent(e)})}setCompositeVideoOverlayRendererComponent(f){this.J&&(this.J.remove(),g.$i(this.J,"ytp-composite-video-overlay-renderer"),this.J=void 0); f&&(g.PW(f,"ytp-composite-video-overlay-renderer"),g.qX(this.api,f,4),this.J=f)}V(f){return f.compositeEmbargo!==void 0}bY(){super.bY();this.G.clear()}};var Obl=class extends Pq{constructor(f){super(f);this.events=new g.ep;g.A(this,this.events);this.events.D(f,"applicationInitialized",()=>{({handleError:e=c6,logEvent:B=g.t$}={});var e;for(aN=new urG(e,B);pi.length>0;){var B=pi.shift();switch(B.type){case "ERROR":aN.mj(B.payload);break;case "EVENT":aN.logEvent(B.eventType,B.payload)}}}); X(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));X(this.api,"updateDownloadState",this.updateDownloadState.bind(this));X(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));X(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));X(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));X(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));X(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))}async queueOfflineAction(f, e,B,n){const r=FU(this.api.iC());return r&&(f=await r.td([f],e,B,n),f.length)?f[0]:Promise.reject()}updateDownloadState(f,e){const B=FU(this.api.iC());return B?B.updateDownloadState(f,e):Promise.reject()}pauseVideoDownload(f){const e=FU(this.api.iC());e&&e.jP(f)}async resumeVideoDownload(f){const e=FU(this.api.iC());return e?e.YW(f):Promise.reject()}isOrchestrationLeader(){return this.api.isOrchestrationLeader()}refreshAllStaleEntities(f){f===void 0&&(f=14400);const e=FU(this.api.iC());return e?e.refreshAllStaleEntities(f): Promise.reject()}setUpPositionSyncInterval(f){const e=FU(this.api.iC());e&&e.setUpPositionSyncInterval(f)}};var o80=class extends Pq{constructor(f){super(f);this.loaded=!1;this.overlay=null;this.events=new g.ep(f);g.A(this,this.events);this.C=new g.ep(f);g.A(this,this.C);this.events.D(f,"modulesCreated",()=>{this.sL()&&this.load()}); this.events.D(f,"modulesDestroyed",e=>{let B=!0;switch(e){case 2:case 3:B=!1;break;case 4:B=this.api.getPresentingPlayerType()===1}B&&this.unload()})}sL(){var f=this.api.getVideoData(); return f.C1&&!f.a4}load(){this.loaded||g.DH(this.api.S())||(this.overlay=new g.y({L:"div",y9:["ytp-ypc-clickwrap-overlay","ytp-player-content"],j:[{L:"h2",B:"ytp-ypc-clickwrap-header",Ga:"Iniciar o aluguel?"},{L:"div",B:"ytp-ypc-clickwrap-description",Ga:this.api.getVideoData().DZ},{L:"button",y9:["ytp-ypc-clickwrap-confirm","ytp-button"],Ga:"Iniciar per\u00edodo de aluguel"}]}),g.A(this,this.overlay),g.qX(this.api,this.overlay.element,4),this.overlay.D(this.overlay.JL("ytp-ypc-clickwrap-confirm"), "click",()=>{this.onConfirm()}),this.loaded=!0)}onConfirm(){this.overlay&&this.overlay.hide(); this.C.D(this.api,"videodatachange",()=>{this.api.rM("ypcRentalActivation")}); this.api.rM("ypcRentalActivation")}unload(){this.loaded&&(this.overlay&&(this.overlay.dispose(),this.overlay=null),this.C.G(),this.loaded=!1)}bY(){this.unload();super.bY()}};var VM0=class extends Pq{constructor(f){super(f);X(f,"getAvailableQualityData",()=>this.getAvailableQualityData()); X(f,"getAvailableQualityDataAndMessaging",()=>this.getAvailableQualityDataAndMessaging()); X(f,"getPaygatedAudioQualityData",()=>this.getPaygatedAudioQualityData())}getAvailableQualityDataAndMessaging(){return{qualityData:this.getAvailableQualityData(), qualityMessagingFormattedString:void 0}}getAvailableQualityData(){var f=this.api.getVideoData();if(!f)return[];var e=[],B=f.getPlayerResponse()?.playabilityStatus?.paygatedQualitiesMetadata,n=l5C(B),r=B?.restrictedAdaptiveFormats;if(r){B=[];for(var L of r){if(L.mimeType?.includes("audio")&&this.api.Y("enable_lr_upsell_for_premium_high_quality_audio"))continue;r=Sb(L.mimeType,L.quality,L.itag.toString(),L.width.toString(),L.height.toString(),L.qualityLabel,L.qualityOrdinal&&SfG[L.qualityOrdinal]); B.push(r)}f=g.K2(f);ky(B);L=[];for(var d of B)dJ(f,d,this.api.S().W)===!0&&L.push(d);e=e.concat(uwM(L,!1,n))}d=this.api.L$();e=e.concat(uwM(d,!0,n));n=[];if(this.api.Y("web_player_enable_premium_hbr_in_h5_api")){d=e;e=new Set;n=new Map;var t={};for(var H of d)d=H.quality,B=H.isPlayable,(f=H.qualityLabel)&&d&&(B&&n.has(d)&&n.get(d)!==f?e.add(d):B&&n.set(d,f),t[f]||(t[f]=H));H=[];for(var k of Object.values(t))t=k.quality,n=k,t&&!e.has(t)&&(n.formatId=void 0),H.push(n);k=e=H;H=0;for(t=0;tthis.J}; this.events=new g.ep(f);g.A(this,this.events);this.events.D(f,"d6de4videobindingchange",e=>{this.iW(e)}); this.events.D(f,"csiinitialized",()=>{mXO(this)})}iW(f){if(uj())if(!this.G&&this.C){f.O$={coldStartInfo:{clientState:this.J}}; try{this.C.then(()=>{UX5(this,f)},e=>{Fi(e,"player_update"); this.handleError(e,f)})}catch(e){Fi(e,"player_update_catch"),this.handleError(e,f)}}else this.G?UX5(this,f):this.api.ri("pf",{m:this.G?1:0, p:this.C?1:0})}handleError(f,e){g.Yv(f);let B=0;f.mediaIntegrityErrorName?B||(B=lb5[f.mediaIntegrityErrorName]):f.code&&(B=f.code());e.O$={xN:{code:B}}}};var FQO=class extends g.y{constructor(f){super({L:"button",y9:["ytp-pip-button","ytp-button"],O:{title:f.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},j:[Zk()]});this.api=f;this.listen("click",this.onClick);const e=this.api.lE(),B=e.subscribe("visibilitystatechange",()=>{this.gi(e.Qi())}); this.addOnDisposeCallback(()=>{e.nW(B)}); HF(f,this.element,this);this.gi(e.Qi())}gi(f){f=f?"Sair do modo picture-in-picture":"Picture-in-picture";this.api.S().Y("player_tooltip_data_title_killswitch")?this.update({title:f,"data-title-no-tooltip":f}):this.update({"data-tooltip-title":f,"data-title-no-tooltip":f});this.api.lR()}onClick(){this.api.togglePictureInPicture()}};var mR6=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);this.events.D(f,"standardControlsInitialized",()=>{this.createButton()}); g.yQ(this.api.S())&&(this.Y("web_watch_pip")||this.Y("web_shorts_pip"))&&X(this.api,"setDocumentPictureInPicture",e=>{this.setDocumentPictureInPicture(e)})}createButton(){this.button=new FQO(this.api); g.A(this,this.button);this.api.T7(this.button);this.events.D(this.api,"videodatachange",()=>{NLw(this)}); NLw(this)}setDocumentPictureInPicture(f){this.api.lE().U1(f);f=this.api.Qi();const e=bUC(this.api.iC());e&&(f?e.load():e.unload());this.api.publish("documentpictureinpicturechange")}};var UR5=class extends Pq{constructor(f){super(f);this.loaded=!1;this.K=0;this.C=!1;this.X={};this.J=[];this.V=0;this.U=!1;this.events=new g.ep(f);g.A(this,this.events);this.G=new g.ep(f);g.A(this,this.G);this.events.D(f,"modulesCreated",()=>{this.sL()&&this.load()}); this.events.D(f,"modulesDestroyed",e=>{const B=this.api.getPresentingPlayerType();switch(e){case 2:case 3:e=B!==1&&!(B===5||B===6||B===7);break;case 4:e=!this.C;break;default:e=!0}e&&this.unload()})}sL(){return this.api.getVideoData().HE.includes("playableSequences")}load(){if(!this.loaded){this.W||(this.W=new g.y({L:"div", y9:["ytp-player-content","ytp-yto-overlay"],j:[{L:"div",y9:["ytp-yto-preroll-message"],Ga:"O v\u00eddeo come\u00e7ar\u00e1 em breve"}]}),g.A(this,this.W),hE5(this,!1),g.qX(this.api,this.W.element,4));var f=this.api.getPresentingPlayerType();this.G.D(this.api,"playbackChange",()=>{var e=this.api.getPresentingPlayerType()===5;g.h(this.api.getRootNode(),"ytp-yto-preroll",e);hE5(this,e)}); this.G.D(this.api,"presentingplayerstatechange",e=>{this.onStateChange(e)}); this.G.D(this.api,g.kk("yto"),(e,B)=>{this.onCueRangeEnter(e,B)}); this.G.D(this.api,"ytoprerollinternstitialnext",()=>{Sr5(this)}); ErY(this);this.loaded=!0;this.api.rM("playableSequences",f)}}onCueRangeEnter(f){f=f.getId();if(!this.C){if(this.api.getPlayerStateObject(1).C(2)){if(this.U)return}else this.U=!1;this.J.includes(f)||this.J.push(f);this.api.getPresentingPlayerType()===1&&grd(this)}}onStateChange(f){var e=this.api.getPresentingPlayerType();f=f.state;this.C||e!==5&&e!==6&&e!==7||f.C(1)||f.C(16)||f.C(32)||(e=f.C(128),(f.C(2)||e)&&Sr5(this))}unload(){this.loaded&&(this.K=0,this.U=this.C=!1,this.X={},this.V=0,this.J.length= 0,this.G.G(),this.loaded=!1)}bY(){this.unload();super.bY()}};var NtM=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);X(this.api,"musicDisableUi",()=>{g.PW(this.api.getRootNode(),"ytp-player-in-bar-disable-ui")}); X(this.api,"musicEnableUi",()=>{g.$i(this.api.getRootNode(),"ytp-player-in-bar-disable-ui")})}};var w1=class extends g.y{constructor(f,e=!0,B=!1){super({L:"div",B:"ytp-suggested-action"});this.Z=f;this.sE=this.WS=this.PS=this.eI=this.J=this.Cq=this.expanded=this.enabled=this.Q3=!1;this.mS=new g.T6(()=>{this.badge.element.style.width=""},200,this); this.xA=new g.T6(()=>{mS(this);Ut(this)},200,this); this.IA=this.Z.Y("delhi_modern_web_player")?40:34;this.dismissButton=new g.y({L:"button",y9:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.A(this,this.dismissButton);this.W=new g.y({L:"div",B:"ytp-suggested-action-badge-expanded-content-container",j:[{L:"label",B:"ytp-suggested-action-badge-title",Ga:"{{badgeLabel}}"},this.dismissButton]});g.A(this,this.W);this.kA=new g.y({L:"div",B:"ytp-suggested-action-badge-icon-container",j:[e?{L:"div",B:"ytp-suggested-action-badge-icon"}: ""]});g.A(this,this.kA);this.badge=new g.y({L:B?"div":"button",y9:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],j:[this.kA,this.W]});g.A(this,this.badge);this.badge.di(this.element);this.cS=new g.Ob(this.badge,250,!1,100,()=>{this.Z.Y("web_player_overlay_positioned_layout")&&this.hide()}); g.A(this,this.cS);f.Y("web_player_overlay_positioned_layout")&&this.hide();this.Mk=new g.Ob(this.W,250,!1,100);g.A(this,this.Mk);this.lC=new g.SV(this.y8,null,this);g.A(this,this.lC);this.hE=new g.SV(this.P4,null,this);g.A(this,this.hE);g.A(this,this.mS);g.A(this,this.xA);this.Z.createServerVe(this.badge.element,this.badge,!0);this.Z.createServerVe(this.dismissButton.element,this.dismissButton,!0);this.D(this.Z,"onHideControls",()=>{this.Fl(!1)}); this.D(this.Z,"onShowControls",()=>{this.Fl(!0)}); this.D(this.badge.element,"click",this.Lq);this.D(this.dismissButton.element,"click",this.X);this.D(this.Z,"pageTransition",this.Wd);this.D(this.Z,"appresize",this.G);this.D(this.Z,"fullscreentoggled",this.qj);this.D(this.Z,"cardstatechange",this.Qr);this.D(this.Z,"annotationvisibility",this.E2,this);this.D(this.Z,"offlineslatestatechange",this.pz,this)}Lq(){}X(){}K(){return!0}y8(){let f;this.expanded?(this.Mk.show(),f=this.W.element.scrollWidth):(f=this.W.element.scrollWidth,this.Mk.hide());this.Ys= this.IA+f;g.h(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=`${this.expanded?this.IA:this.Ys}px`;this.hE.start()}P4(){this.badge.element.style.width=`${this.expanded?this.Ys:this.IA}px`;this.mS.start()}BS(){this.J&&this.Z.logVisibility(this.badge.element,this.K());this.eI&&this.Z.logVisibility(this.dismissButton.element,this.K()&&this.qC())}Fl(f){this.PS=f;Ut(this);mS(this);this.G()}pz(){g.h(this.badge.element,"ytp-suggested-action-badge-with-offline-slate", !0)}qC(){return this.WS||this.PS||!this.Cq}G(){this.K()?(this.show(),this.cS.show()):this.cS.hide();this.BS()}Wd(){this.enabled=!1;this.G()}U(f){f?this.eI&&this.Z.logClick(this.dismissButton.element):this.J&&this.Z.logClick(this.badge.element)}E2(){this.G()}Qr(f){this.sE=f===1;this.G();g.h(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}qj(){g.h(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.Z.isFullscreen());this.G()}};var vH=class extends g.Sq{constructor(f,e,B,n,r,L){const d={L:"div",B:"ytp-panel"};let t,H,k;if(B){t="ytp-panel-back-button";H="ytp-panel-title";const C={L:"div",B:"ytp-panel-header",j:[{L:"div",y9:["ytp-panel-back-button-container"],j:[{O:{"aria-label":"Voltar ao menu anterior"},L:"button",y9:["ytp-button",t]}]},{L:"span",y9:[H],O:{role:"heading","aria-level":"2"},j:[B]}]};r&&(k="ytp-panel-options",C.j.push({L:"button",y9:["ytp-button",k],j:[n]}));d.j=[C]}n=!1;L&&(L={L:"div",B:"ytp-panel-footer", j:[L]},n=!0,d.j?d.j.push(L):d.j=[L]);super(d);this.content=e;n&&d.j?e.di(this.element,d.j.length-1):e.di(this.element);this.nJ=!1;this.Mp=n;B&&(this.backButton=this.JL(t),B=this.JL(H),this.D(this.backButton,"click",this.Jd),this.D(B,"click",this.Jd),this.nJ=!0,r&&this.D(this.JL(k),"click",r));e.subscribe("size-change",this.vk,this);this.D(f,"fullscreentoggled",this.vk);this.Z=f}vk(){this.publish("size-change")}Tz(){return h2(this)}CJ(){return h2(this)}focus(){this.content.focus()}Jd(){this.publish("back")}};g.ba=class extends vH{constructor(f,e=null,B,n,r,L){const d={role:"menu"};e&&(d.id=e);e=new g.Sq({L:"div",B:"ytp-panel-menu",O:d});super(f,e,B,n,r,L);this.menuItems=e;this.items=[];g.A(this,this.menuItems)}jf(f,e=!1){if(e)this.items.push(f),this.menuItems.element.appendChild(f.element);else{e=g.ax(this.items,f,TLk);if(e>=0)return;e=~e;g.Rx(this.items,e,0,f);dw(this.menuItems.element,f.element,e)}f.subscribe("size-change",this.yv,this);this.menuItems.publish("size-change")}Tz(){h2(this)||this.items[0].focus(); return!0}CJ(){this.items[this.items.length-1].focus();return!0}ij(f){f.unsubscribe("size-change",this.yv,this);this.HS()||(g.d2(this.items,f),this.menuItems.element.removeChild(f.element),this.menuItems.publish("size-change"))}yv(){this.menuItems.publish("size-change")}focus(){let f=0;for(let e=0;e1&&g.QA(this)}FD(){JKG(this);this.ef&&(DXg(this),g.xC(this.element,this.size))}Ss(){const f=this.C.pop();Et(this,f,this.C[this.C.length-1],!0)}uT(f){if(!f.defaultPrevented)switch(f.keyCode){case 27:this.HL();f.preventDefault();break;case 37:this.C.length>1&&this.Ss();f.preventDefault();break;case 39:f.preventDefault()}}focus(){this.C.length&&this.C[this.C.length- 1].focus()}bY(){super.bY();this.J&&this.J.dispose();this.V&&this.V.dispose()}};var hqm=class extends g.Zq{constructor(f){super(f,"ytp-shopping-product-menu");this.Tv=new g.ba(this.Z);g.A(this,this.Tv);this.hide();g.Th(this,this.Tv);g.qX(this.Z,this.element,4)}open(f,e){this.initialize(f.items)&&this.Fx(e,!!e)}initialize(f){g.S7(this.Tv);if(f===void 0||f.length===0)return!1;let e=f.length;for(const B of f)this.jf(B,e--);return!0}jf(f,e){f.menuNavigationItemRenderer?xXd(this,f.menuNavigationItemRenderer,e):f.menuServiceItemRenderer&&Wv6(this,f.menuServiceItemRenderer,e)}};var g8C=class extends w1{constructor(f){super(f,!1,!0);this.isCounterfactual=this.V=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Cq=!0;this.overflowButton=new g.y({L:"button",y9:["ytp-featured-product-overflow-icon","ytp-button"],O:{"aria-haspopup":"true"}});this.overflowButton.hide();g.A(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.y({L:"img",B:"ytp-suggested-action-badge-img", O:{src:"{{url}}"}});this.thumbnailImage.hide();g.A(this,this.thumbnailImage);this.thumbnailIcon=new g.y({L:"div",B:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.A(this,this.thumbnailIcon);this.banner=new g.y({L:"a",B:"ytp-suggested-action-container",j:[this.thumbnailImage,this.thumbnailIcon,{L:"div",B:"ytp-suggested-action-details",j:[{L:"text",B:"ytp-suggested-action-title",Ga:"{{title}}"},{L:"text",B:"ytp-suggested-action-subtitle",Ga:"{{subtitle}}"},{L:"text",B:"ytp-suggested-action-metadata-text", Ga:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.A(this,this.banner);this.banner.di(this.W.element);this.D(this.Z,"videodatachange",this.onVideoDataChange);this.D(this.Z,g.kk("suggested_action_view_model"),this.tL);this.D(this.Z,g.Ca("suggested_action_view_model"),this.Ch);this.D(this.overflowButton.element,"click",this.MC);this.D(f,"featuredproductdismissed",this.X);this.Z.createServerVe(this.banner.element,this.banner,!0)}Lq(f){f.target!==this.dismissButton.element&&f.target!==this.overflowButton.element&& (this.U(),this.onClickCommand&&g.yW(this.Z,"innertubeCommand",this.onClickCommand))}X(){this.enabled=!1;this.cS.hide()}K(){return!!this.C&&this.enabled}onVideoDataChange(f,e){this.uY(e);if(this.C){this.Z9();a:if(!this.isCounterfactual){this.banner.update({title:this.C?.title,subtitle:this.C?.subtitle,metadata:this.C?.metadataText});this.onClickCommand=g.u(this.C?.onTap,le);if(f=g.u(this.C?.onOverflow,le))this.A=g.u(f,od5);if(this.C?.thumbnailImage){f=this.C?.thumbnailImage?.sources||[];if(f.length=== 0)break a;this.thumbnailImage.update({url:f[0].url})}else this.C?.thumbnailIconName&&this.thumbnailIcon.update({icon:this.C?.thumbnailIconName});this.shouldShowOverflowButton=!!this.C?.shouldShowOverflowButton;this.shouldHideDismissButton=!!this.C?.shouldHideDismissButton}this.banner.element.setAttribute("aria-label",this.C?.a11yLabel||"");this.G6=this.C?.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;J2(this)}}tL(){this.isVisible=!0;J2(this)}Ch(){this.isVisible= !1;J2(this)}BS(){super.BS();this.V&&this.Z.logVisibility(this.banner.element,this.isVisible)}U(){super.U(!1);this.V&&this.Z.logClick(this.banner.element)}MC(f){this.N||(this.N=new hqm(this.Z),g.A(this,this.N));this.A?.menu?.menuRenderer&&(this.N.open(this.A.menu.menuRenderer,f.target),f.preventDefault())}uY(){}Z9(){}bY(){this.Z.sK("suggested_action_view_model");super.bY()}};var ST6=class extends g8C{uY(f){this.productUpsellSuggestedActionViewModel=g.u(f.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.suggestedActionViewModel,MRw);this.productUpsellSuggestedActionViewModel?.content&&(this.C=g.u(this.productUpsellSuggestedActionViewModel?.content,ACC));(this.V=!!this.productUpsellSuggestedActionViewModel?.loggingDirectives?.trackingParams)&&this.Z.setTrackingParams(this.banner.element,this.productUpsellSuggestedActionViewModel?.loggingDirectives?.trackingParams|| null);this.isCounterfactual=!!this.productUpsellSuggestedActionViewModel?.isCounterfactualServing}Z9(){const f=[];for(const e of this.productUpsellSuggestedActionViewModel?.ranges||[]){if(!e)continue;const B=Number(e.startTimeMilliseconds),n=Number(e.endTimeMilliseconds);isNaN(B)||isNaN(n)||f.push(new g.VD(B,n,{id:"product_upsell",namespace:"suggested_action_view_model"}))}this.Z.AI(f)}};var E8O=class extends Pq{constructor(f){super(f);this.C=new ST6(this.api);g.A(this,this.C);g.qX(this.api,this.C.element,4)}};var QLY=class extends Pq{constructor(f){super(f);this.C=!0;const e=new g.ep(f);g.A(this,e);e.D(f,"internalaudioformatchange",(B,n)=>{$Xl(this,B,n)}); e.D(f,"annotationvisibility",B=>{this.api.Y("web_fix_annotations")&&I5g(this,(294).toString(),{boolValue:B})}); e.D(f,"videoplayerreset",()=>{Gh(this)}); e.D(f,"videodatachange",(B,n)=>{this.onVideoDataChange(B,n)})}onVideoDataChange(f,e){e.X1()&&(f==="newdata"&&Gh(this),this.C&&f==="dataloaded"&&(this.C=!1,SE(hS(bK(this.api.S(),this.api.getVideoData()?.U()),B=>{fpY(this,B)}),()=>{this.C=!0})))}pB(){if(g.IM(this.api.S())){const f=g.vS(this.api.S(),this.api.getVideoData()?.U()); return hS(ma(f),e=>{const B=p_();cF(B,e);return this.api.pB(B)})}return ma(this.api.pB())}};var BzY=class{constructor(){this.label="Dublagem autom\u00e1tica"}};g.R3=class extends g.DZ{constructor(f,e,B,n,r,L,d){super(g.j5({"aria-haspopup":"true"}),e,f);this.rA=n;this.WS=!1;this.K=null;this.options={};this.RC=new g.ba(B,void 0,f,r,L,d);g.A(this,this.RC);this.listen("keydown",this.uT);this.listen("click",this.open)}open(){g.Th(this.rA,this.RC)}G(f){eWk(this);const e=this.options[f];e&&(e.element.setAttribute("aria-checked","true"),this.setContent(this.J(f)),this.K=f)}V(f){g.S7(this.RC);const e={};let B=!1;for(let n=0;n{this.PS(f)}); return e}enable(f){this.WS?f||(this.WS=!1,this.X(!1)):f&&(this.WS=!0,this.X(!0))}X(f){f?this.rA.jf(this):this.rA.ij(this)}C(f){this.publish("select",f)}PS(f){this.C(f)}J(f){return f.toString()}uT(f){f.defaultPrevented||f.keyCode!==39||(this.open(),f.preventDefault())}bY(){this.WS&&this.rA.ij(this);super.bY();for(const f of Object.keys(this.options))this.options[f].dispose()}};var TtY=class extends g.R3{constructor(f,e){super("Timer de suspens\u00e3o",g.X7.SLEEP_TIMER,f,e);this.Z=f;this.Lq={};this.Cq=this.W("Off");this.cS=this.U="";f.Y("web_settings_menu_icons")&&(e=f.Y("delhi_modern_web_player_icons")?{L:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(e)); this.A=new g.y({L:"div",y9:["ytp-menuitem-label-wrapper"],j:[{L:"div",Ga:"Fim do v\u00eddeo"},{L:"div",y9:["ytp-menuitem-sublabel"],Ga:"{{content}}"}]});g.A(this,this.A);this.listen("click",this.onClick);this.D(f,"videodatachange",this.onVideoDataChange);this.D(f,"presentingplayerstatechange",this.gi);this.D(f,"settingsMenuVisibilityChanged",this.uY);f.createClientVe(this.element,this,218889);this.gi();g.yW(this.Z,"onSleepTimerFeatureAvailable")}gi(){const f=this.W("Off");this.Z.getPresentingPlayerType()!== 2?(LP5(this),this.G(this.Cq),this.U&&(this.Cq===f?this.U="":this.setSleepTimerTimeLeft(this.U)),this.cS&&this.setVideoTimeLeft(this.cS),this.enable(!0)):(this.V([]),this.enable(!1))}C(f){this.eI(f);this.rA.Ss()}W(f){switch(f){case "Off":return"Desat";case "End of video":return"Fim do v\u00eddeo";case "End of playlist":return"Fim da playlist";default:return`${f.toString()} ${"Minutos"}`.toLowerCase()}}eI(f){const e=this.Lq[f],B=e==="End of video"||e==="End of playlist";e==="Off"&&(this.U="");this.Z.getPlayerState()!== 0&&this.Z.getPlayerState()!==5||!B?(this.Cq=f,super.C(f),this.G(f),g.yW(this.Z,"onSleepTimerSettingsChanged",e)):g.yW(this.Z,"innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"O v\u00eddeo j\u00e1 terminou"}}}}})}onVideoDataChange(f){f==="dataloaded"&&LP5(this)}uY(f){this.Z.logVisibility(this.element,f)}onClick(){this.Z.logClick(this.element)}resetSleepTimerMenuSettings(){this.eI(this.W("Off"))}setSleepTimerTimeLeft(f){this.U=f;this.setContent(f)}setVideoTimeLeft(f){this.cS= f;this.A.setContent(f)}};var DR5=class extends Pq{constructor(f){super(f);f.addEventListener("settingsMenuInitialized",()=>{this.menuItem||(this.menuItem=new TtY(this.api,this.api.iT()),g.A(this,this.menuItem))}); f.addEventListener("openSettingsMenuItem",e=>{e==="menu_item_sleep_timer"&&(this.menuItem||this.api.iT()?.Fx(),this.menuItem.open())}); X(f,"resetSleepTimerMenuSettings",()=>{this.resetSleepTimerMenuSettings()}); X(f,"setSleepTimerTimeLeft",e=>{this.setSleepTimerTimeLeft(e)}); X(f,"setVideoTimeLeft",e=>{this.setVideoTimeLeft(e)})}resetSleepTimerMenuSettings(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()}setSleepTimerTimeLeft(f){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(f)}setVideoTimeLeft(f){this.menuItem&&this.menuItem.setVideoTimeLeft(f)}};var Jzd=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);this.events.D(f,"onSnackbarMessage",e=>{switch(e){case 1:this.api.getPlayerStateObject().isBuffering()&&g.yW(this.api,"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"}})}})}};var dOG; g.rI=class extends g.$v{constructor(f,e=!1,B,n=!1,r=!1){super();this.eI=r;this.A=!1;this.V=new C1(this);this.W=this.X=null;this.J=this.G=!1;g.A(this,this.V);this.target=f;this.C=e;this.Cq=B||f;this.A=n;e&&(g.IA&&this.target.setAttribute("draggable","true"),r||(this.target.style.touchAction="none"));Wx(this)}D(f,e){this.V.D(this.Cq,f,e,void 0,!this.C)}cancel(){this.J&&(this.J=!1,this.publish("dragend",0,0,null));this.G&&(this.G=!1,this.publish("hoverend",0,0,null),Xi(this),Wx(this))}dw(f){Xi(this);this.D(xV("move"), this.N);this.D(xV("out"),this.UC);this.D("touchstart",this.K);this.C&&this.D(xV("down"),this.U);const e=f.target;f=new g.OE(f.pageX,f.pageY);this.G=!0;this.publish("hoverstart",f.x,f.y,e);this.publish("hovermove",f.x,f.y,e)}N(f){const e=f.target;f=new g.OE(f.pageX,f.pageY);if(this.W){const B=this.W;this.W=null;if(B.relatedTarget===e&&lN(new g.OE(B.pageX,B.pageY),f))return}this.publish("hovermove",f.x,f.y,e)}UC(f){const e=new g.OE(f.pageX,f.pageY),B=f.relatedTarget;try{if(B&&g.HN(this.target,B)){this.W= f;this.publish("hovermove",e.x,e.y,B);return}}catch(n){}Xi(this);Wx(this);this.G=!1;this.publish("hoverend",e.x,e.y,B)}Lq(f){this.dw(f);this.U(f)}U(f){if(typeof f.button!=="number"||f.button===0){Xi(this);this.V.D(yA(f.target),xV("move"),this.PS);this.V.D(yA(f.target),xV("up"),this.cS);var e=f.target;if(g.IA)this.D("dragstart",this.WS);else if(f.preventDefault(),(g.tq||md)&&e)a:{let B=e;for(;B;){if(ww(B)||B.getAttribute("tabindex")==="-1"){B.focus();break a}B=B.parentElement}yA(e).activeElement.blur()}this.J= !0;f=new g.OE(f.pageX,f.pageY);this.publish("dragstart",f.x,f.y,e);this.publish("dragmove",f.x,f.y,e)}}WS(f){f.preventDefault()}PS(f){let e=f.target;e===yA(f.target)&&(e=null);f=new g.OE(f.pageX,f.pageY);this.publish("hovermove",f.x,f.y,e);this.publish("dragmove",f.x,f.y,e)}cS(f){Xi(this);this.J=!1;const e=Gw(f),B=f.target;f=new g.OE(f.pageX,f.pageY);e&&g.HN(this.target,e)?(this.D(xV("move"),this.N),this.D(xV("out"),this.UC),this.D(xV("down"),this.U),this.D("touchstart",this.K),this.publish("dragend", f.x,f.y,B)):(Wx(this),this.G=!1,this.publish("dragend",f.x,f.y,B),this.publish("hoverend",f.x,f.y,B))}K(f){const e=f.changedTouches[0];e&&(Xi(this),this.eI||(this.D("touchmove",this.uY),this.D("touchend",this.Ed),this.D("touchcancel",this.Ed),this.X=e.identifier,f=f.target,this.G||(this.G=!0,this.publish("hoverstart",e.pageX,e.pageY,f)),this.publish("hovermove",e.pageX,e.pageY,f),this.C&&(this.J=!0,this.publish("dragstart",e.pageX,e.pageY,f),this.publish("dragmove",e.pageX,e.pageY,f))))}uY(f){const e= tNG(this,f);e&&(this.C&&f.preventDefault(),f=f.target,this.publish("hovermove",e.pageX,e.pageY,f),this.C&&this.publish("dragmove",e.pageX,e.pageY,f))}Ed(f){const e=tNG(this,f);if(e){Xi(this);Wx(this);this.G=!1;const B=f.target;this.C&&(this.A||f.preventDefault(),this.J=!1,this.publish("dragend",e.pageX,e.pageY,B));this.publish("hoverend",e.pageX,e.pageY,B)}}bY(){this.C&&(g.IA&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");Xi(this);super.bY()}};dOG=!1;var MM6=class extends g.y{constructor(f,e){super({L:"div",y9:["ytp-overlay","ytp-speedmaster-overlay"],j:[{L:"div",B:"ytp-speedmaster-user-edu",j:[{L:"div",B:"ytp-speedmaster-label",Ga:e},{L:"div",B:"ytp-speedmaster-icon",Ga:"{{icon}}"}]}]});this.Z=f;this.C=this.JL("ytp-speedmaster-user-edu");this.updateValue("icon",Qa0());g.PW(this.C,"ytp-speedmaster-has-icon");this.Z.createClientVe(this.C,this,173040,!0);this.W()}W(){g.uc(this.element,"display","none");this.Z.logVisibility(this.C,!1)}};var Gxw=class extends Pq{constructor(f){super(f);this.V=this.J=!1;this.G=new g.ep(f);g.A(this,this.G);this.N="2x";this.speedmasterUserEdu=new MM6(f,this.N);g.A(this,this.speedmasterUserEdu);g.qX(this.api,this.speedmasterUserEdu.element,4);this.C=new g.rI(this.api.AL().H$,!0,null,!1,!0);g.A(this,this.C);this.delay=new g.T6(this.cS,500,this);g.A(this,this.delay);this.G.D(f,"videodatachange",()=>{Ie(this)},this); this.G.D(f,"presentingplayerstatechange",()=>{Ie(this)},this); this.G.D(f,"autonavvisibility",()=>{Ie(this)},this); this.api.lE().subscribe("visibilitystatechange",()=>{Ie(this)}); this.G.D(f,"rootnodemousedown",e=>{this.X=e}); this.Y("web_speedmaster_spacebar_control")&&(this.G.D(f,"keyboardserviceglobalkeydown",(e,B)=>{this.Ed=B;CF5(this,e,B.sx,!0)},this),this.G.D(f,"keyboardserviceglobalkeyup",e=>{CF5(this,e,!1,!1)},this))}A(f,e){this.HS()||(this.K=[f, e],this.C.subscribe("dragmove",this.U,this),this.C.subscribe("dragend",this.W,this),this.J||this.delay.M0())}cS(){if(this.V){this.J=!0;this.Cq=this.api.getPlaybackRate();this.eI=this.api.getPlayerStateObject().isPaused();var f=this.speedmasterUserEdu;g.uc(f.element,"display","");f.Z.logVisibility(f.C,!0);this.api.setPlaybackRate(2);this.api.hideControls();this.api.playVideo();this.X&&(this.X.SN=!0);this.Ed&&(this.Ed.aG=!0);this.Y("enable_smart_skip_speedmaster_on_web")&&this.api.publish("speedmasterchanged", !0)}}U(f,e){if(!this.J){f=[f,e];var B=this.K;B&&f&&B.length===2&&f.length===2?(e=Math.abs(B[0]-f[0]),B=Math.abs(B[1]-f[1]),e=Math.sqrt(e*e+B*B)):e=-1;e<10?this.K=f:Px(this)}}W(){Px(this)}};var xR5=class extends Pq{constructor(f){super(f);this.G=new Set;this.C={};this.events=new g.ep(f);g.A(this,this.events);this.events.D(f,"videodatachange",e=>{e==="newdata"&&(this.api.sK("stationsEmbargo"),this.api.sK("stationsMetadataUpdate"),this.C={},this.G.clear());e=this.api.getVideoData().Fo;const B=e.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_AIRING_EMBARGO");B&&wjM(this,B,"stationsEmbargo");(e=e.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_METADATA_UPDATE"))&&wjM(this,e,"stationsMetadataUpdate")}); this.events.D(f,g.kk("stationsEmbargo"),e=>{this.api.U4(!0);var B=this.C[e.id]??[];for(const n of B){B=n.embargo;if(!B)continue;this.api.hideControls();this.api.a6("auth",2,Ou(B.errorRenderer.reason),Go({embargoed:1,id:e.id,idx:e.G,start:e.start}));(B=B.onTrigger)&&g.yW(this.api,"innertubeCommand",B)}}); this.events.D(f,g.kk("stationsMetadataUpdate"),e=>{e=this.C[e.id]??[];for(const B of e)(e=B.command)&&g.yW(this.api,"innertubeCommand",e)})}};var WQl=class extends g.fI{constructor(f,e,B){super(e,f);this.C=B}preventDefault(){super.preventDefault();this.C&&this.C.preventDefault()}stopPropagation(){super.stopPropagation();this.C&&this.C.stopPropagation()}};g.Nc=class extends X35{constructor(f){super();this.C=f;this.BS={};this.listener=e=>{this.dispatchEvent(new WQl(this,e.type,e))}}U(){return!0}isView(){return!1}G6(){return!1}V3(){return this.C}O3(){return this.C.src}MC(f){const e=this.getPlaybackRate(); this.C.src=f;this.setPlaybackRate(e)}Fl(){this.C.removeAttribute("src")}getPlaybackRate(){try{return this.C.playbackRate>=0?this.C.playbackRate:1}catch{return 1}}setPlaybackRate(f){this.getPlaybackRate()!==f&&(this.C.playbackRate=f);return f}nF(){return this.C.loop}setLoop(f){this.C.loop=f}canPlayType(f,e){return this.C.canPlayType(f,e)}isPaused(){return this.C.paused}isSeeking(){return this.C.seeking}isEnded(){return this.C.ended}uY(){return this.C.muted}N(f){iy();this.C.muted=f}W(){return this.C.played|| M2([],[])}tR(){let f;try{f=this.C.buffered}catch{}return f||M2([],[])}K(){return this.C.seekable||M2([],[])}Lq(){const f=this.C;return f.getStartDate?f.getStartDate():null}getCurrentTime(){return this.C.currentTime}setCurrentTime(f){this.C.currentTime=f}getDuration(){return this.C.duration}load(){const f=this.C.playbackRate;try{this.C.load()}catch{}this.C.playbackRate=f}pause(){this.C.pause()}play(){const f=this.C.play();if(!f||!f.then)return null;f.then(void 0,()=>{}); return f}J(){return this.C.readyState}Z9(){return this.C.networkState}ND(){return this.C.error?this.C.error.code:null}jU(){return this.C.error?this.C.error.message:""}getVideoPlaybackQuality(){if(window.HTMLVideoElement&&this.C instanceof window.HTMLVideoElement&&this.C.getVideoPlaybackQuality)return this.C.getVideoPlaybackQuality();if(this.C){var f=this.C;const e=f.webkitDroppedFrameCount;if(f=f.webkitDecodedFrameCount)return{droppedVideoFrames:e||0,totalVideoFrames:f}}return{}}oR(){return!!this.C.webkitCurrentPlaybackTargetIsWireless}VP(){return!!this.C.webkitShowPlaybackTargetPicker()}togglePictureInPicture(){const f= this.C,e=window.document;window.document.pictureInPictureEnabled?this.C!==e.pictureInPictureElement?f.requestPictureInPicture():e.exitPictureInPicture():$k()&&f.webkitSetPresentationMode(f.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}dn(){var f=this.C;return new g.OE(f.offsetLeft,f.offsetTop)}getSize(){return g.WN(this.C)}setSize(f){g.xC(this.C,f)}getVolume(){return this.C.volume}setVolume(f){iy();this.C.volume=f}xA(f){this.BS[f]||(this.C.addEventListener(f,this.listener), this.BS[f]=this.listener)}setAttribute(f,e){this.C.setAttribute(f,e)}removeAttribute(f){this.C.removeAttribute(f)}hasAttribute(f){return this.C.hasAttribute(f)}A(){return QT(this.C)}q6(f){g.PW(this.C,f)}Cq(f){return g.Um(this.C,f)}IA(){return g.HN(document.body,this.C)}audioTracks(){const f=this.C;if("audioTracks"in f)return f.audioTracks}bY(){for(const f of Object.keys(this.BS))this.C.removeEventListener(f,this.BS[f]);super.bY()}Yp(f){this.C.disableRemotePlayback=f}};g.Nc.prototype.X=eC(59); g.Nc.prototype.eI=eC(57);g.Nc.prototype.cS=eC(55);g.Nc.prototype.Ed=eC(53);var K4=class extends g.y{constructor(f,e){super({L:"div",B:"ytp-horizonchart"});this.sampleCount=150;this.V=f;this.W=e;this.index=0;this.heightPx=-1;this.J=this.G=null;this.C=2;this.element.style.width=`${this.C*this.sampleCount}px`;this.element.style.height="1em"}};var b9g=class extends g.y{constructor(f){var e=null;e={L:"button",y9:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],O:{title:"close"},Ga:"[X]"};super({L:"div",y9:["html5-video-info-panel","ytp-sfn"],j:[e,{L:"div",y9:["html5-video-info-panel-content","ytp-sfn-content"],j:[{L:"div",j:[{L:"div",Ga:"Video ID / sCPN"},{L:"span",Ga:"{{video_id_and_cpn}}",B:"ytp-sfn-cpn"}]},{L:"div",j:[{L:"div",Ga:"Viewport / Frames"},{L:"span",Ga:"{{dims_and_frames}}"}]},{L:"div",j:[{L:"div",Ga:"Current / Optimal Res"}, {L:"span",Ga:"{{resolution}}"}]},{L:"div",j:[{L:"div",Ga:"Volume / Normalized"},{L:"span",Ga:"{{volume}}"}]},{L:"div",j:[{L:"div",Ga:"Codecs"},{L:"span",Ga:"{{codecs}}"}]},{L:"div",O:{style:"{{shader_info_style}}"},j:[{L:"div",Ga:"Shader Info"},{L:"span",Ga:"{{shader_info}}"}]},{L:"div",O:{style:"{{color_style}}"},j:[{L:"div",Ga:"Color"},{L:"span",Ga:"{{color}}"}]},{L:"div",O:{style:"{{drm_style}}"},j:[{L:"div",Ga:"Protected"},{L:"span",Ga:"{{drm}}"}]},{L:"div",O:{style:"{{bandwidth_style}}"},j:[{L:"div", Ga:"Connection Speed"},{L:"span",j:[{L:"span",Ga:"{{bandwidth_chart}}"},{L:"span",Ga:"{{bandwidth_kbps}}"}]}]},{L:"div",O:{style:"{{network_activity_style}}"},j:[{L:"div",Ga:"Network Activity"},{L:"span",j:[{L:"span",Ga:"{{network_activity_chart}}"},{L:"span",Ga:"{{network_activity_bytes}}"}]}]},{L:"div",j:[{L:"div",Ga:"Buffer Health"},{L:"span",j:[{L:"span",Ga:"{{buffer_health_chart}}"},{L:"span",Ga:"{{buffer_health_seconds}}"}]}]},{L:"div",O:{style:"{{live_latency_style}}"},j:[{L:"div",Ga:"Live Latency"}, {L:"span",j:[{L:"span",Ga:"{{live_latency_chart}}"},{L:"span",Ga:"{{live_latency_secs}}"}]}]},{L:"div",O:{style:"{{live_mode_style}}"},j:[{L:"div",Ga:"Live Mode"},{L:"span",Ga:"{{live_mode}}"}]},{L:"div",O:{style:"{{playback_categories_style}}"},j:[{L:"div",Ga:"Playback Categories"},{L:"span",Ga:"{{playback_categories}}"}]},{L:"div",O:{style:"{{fmt_debug_info_style}}"},j:[{L:"div",Ga:"Format Debug Info"},{L:"span",Ga:"{{fmt_debug_info}}"}]},{L:"div",j:[{L:"div",Ga:"Mystery Text"},{L:"span",Ga:"{{debug_info}}"}]}, {L:"div",O:{style:"{{extra_debug_info_style}}"},j:[{L:"div",Ga:""},{L:"span",j:[{L:"span",Ga:"{{extra_debug_info}}"}]}]},{L:"div",j:[{L:"div",Ga:"Date"},{L:"span",Ga:"{{date}}"}]},{L:"div",O:{style:"{{cotn_and_local_media_style}}"},j:[{L:"div",Ga:"COTN / Local Media"},{L:"span",Ga:"{{cotn_and_local_media}}"}]},{L:"div",O:{style:"{{release_style}}"},j:[{L:"div",Ga:"Player Release"},{L:"span",Ga:"{{release_name}}"}]}]}]});this.wi=f;this.position=0;this.W=!0;e?this.D(this.JL("ytp-sfn-close"),"click", this.hide):this.D(this.element,"click",this.hide);f=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];e="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");const B=f.map(n=>n/4); this.X={};this.C=new K4(f,e);g.A(this,this.C);this.updateValue("bandwidth_chart",this.C);this.J=new K4([0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.A(this,this.J);this.updateValue("live_latency_chart",this.J);this.G=new K4([0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.A(this,this.G);this.updateValue("buffer_health_chart",this.G);this.U=new K4(B,e);g.A(this,this.U);this.updateValue("network_activity_chart",this.U);this.delay= new g.T6(this.gi,500,this);g.A(this,this.delay);this.V=new g.T6(this.K,2E4,this);g.A(this,this.V)}show(){super.show();this.gi()}hide(){super.hide();this.delay.stop();this.V.stop()}gi(){var f=(0,g.T)(),e=fh5(this.wi);$V(this.C,e.bandwidth_samples);$V(this.U,e.network_activity_samples);$V(this.J,e.live_latency_samples);$V(this.G,e.buffer_health_samples);const B={};for(const [n,r]of Object.entries(e)){e=n;const L=r;this.X[e]!==L&&(B[e]=" "+String(L));this.X[e]=L}this.update(B);f=(0,g.T)()-f>25?5E3:500; this.delay.start(f)}K(){this.W?(this.position+=1,this.position>15&&(this.W=!1)):(--this.position,this.position<=0&&(this.W=!0));this.element.style.left=`${this.position}%`;this.element.style.top=`${this.position}%`;this.V.start(2E4)}};var sLO=class extends Pq{constructor(f){super(f);X(f,"getStatsForNerds",()=>fh5(this.api)); PY(f,"showVideoInfo",()=>{Z95(this,!0)}); PY(f,"hideVideoInfo",()=>{Z95(this,!1)}); PY(f,"isVideoInfoVisible",()=>!!this.RC?.AC())}};var qY=class extends g.$0{constructor(){super();this.G=null;this.startTime=this.duration=0;this.delay=new g.SV(this.C,null,this);g.A(this,this.delay)}C(){var f=(0,g.T)()-this.startTime;f=f{this.button=new yzO(f);g.A(this,this.button);f.T7(this.button,"RIGHT_CONTROLS_RIGHT")})}};var Ibw=class extends Pq{constructor(f){super(f);this.eI={TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED:()=>!1, TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK:e=>pj5(this,e), TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK:e=>pj5(this,e), TIMELY_ACTION_TRIGGER_TYPE_PLAYER_CONTROLS_SHOWN:()=>this.api.S().experiments.SI("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")?this.U&&this.N:this.U&&this.K, TIMELY_ACTION_TRIGGER_TYPE_SPEEDMASTER:()=>this.cS}; this.cS=this.N=this.K=this.U=!1;this.W={};this.events=new g.ep(f);g.A(this,this.events);this.X=new g.rI(this.api.AL().H$);g.A(this,this.X);if(this.api.Y("enable_smart_skip_web_player_bar_hover_length_threshold")&&g.tS(this.api.S().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds")){const e=g.tS(this.api.S().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds");this.A=new g.T6(this.V,e,this);g.A(this,this.A)}this.events.D(f,"videodatachange",(e,B)=>{if(e!=="dataupdated"|| B.videoId!==this.videoId||!e$(this.timelyActions,omM(B)))this.onVideoDataChange(B)}); this.events.D(f,"presentingplayerstatechange",e=>{this.lT(e)}); f.Y("enable_smart_skip_player_controls_shown_on_web")&&(this.events.D(f,"onShowControls",()=>{this.U=!0;this.V()}),this.events.D(f,"onHideControls",()=>{this.U=!1}),this.X.subscribe("hoverstart",()=>{this.K=!0; this.V()},this),this.X.subscribe("hoverend",()=>{this.K=!1},this),f.Y("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&(this.events.D(f,"progressBarHoverStart",()=>{this.N=!0; this.api.Y("enable_smart_skip_web_player_bar_hover_length_threshold")?this.A?.M0():this.V()}),this.events.D(f,"progressBarHoverEnd",()=>{this.N=!1; this.api.Y("enable_smart_skip_web_player_bar_hover_length_threshold")&&this.A?.stop()}))); f.Y("enable_smart_skip_speedmaster_on_web")&&this.events.D(f,"speedmasterchanged",e=>{(this.cS=e)&&this.V()}); this.events.D(f,g.kk("timelyAction"),e=>{this.onCueRangeEnter(e.getId())}); this.events.D(f,g.Ca("timelyAction"),e=>{this.onCueRangeExit(e.getId())}); f.Y("web_enable_keyboard_shortcut_for_timely_actions")&&this.events.D(f,"keyboardserviceglobalkeydown",(e,B)=>{(Dp?e.altKey:e.ctrlKey)&&e.keyCode===39&&this.Ed&&this.C&&(e=g.u(e9(this,this.C)?.rendererContext,tRO),e=Fd(e?.onTap))&&(g.yW(this.api,"innertubeCommand",e),B&&(B.aG=!0),B=FC(),(e=i8C(B))&&fCk(B,e))},this); this.G=new g.y({L:"div",y9:["ytp-player-content","ytp-timely-actions-content"]});this.G.hide();X(f,"insertTimelyActionUi",e=>{this.G.element.children.length>0&&g.LC(this.G.element);e.classList.add("ytp-timely-actions-overlay");this.G.element.appendChild(e)}); g.A(this,this.G);this.Y("web_player_overlay_positioned_layout")?this.events.D(f,"basechromeinitialized",()=>{this.api.vr(this.G.element,4,!0);this.G.element.setAttribute("data-overlay-order","10")}):g.qX(this.api,this.G.element,4)}onVideoDataChange(f){this.X6(); this.videoId=f.videoId;this.J=this.C=void 0;this.timelyActions=omM(f);cJ5(this);fQ(this);this.AI()}lT(f){const e=f.oldState,B=f.state,n=B.seekSource;!e.C(16)&&B.C(16)?this.kH(n??void 0):e.C(16)&&!B.C(16)&&this.wK();f=f.state;f=!f.isCued()&&!f.C(1024);this.G.FG(f)}AI(){const f=this.QD();f&&this.api.AI(f)}X6(){this.api.sK("timelyAction",1);if(this.C!==void 0)this.onCueRangeExit(this.C)}QD(){if(this.timelyActions){var f=[];for(const B of this.timelyActions){var e=B.startTimeMilliseconds!=null&&B.endTimeMilliseconds!= null&&B.cueRangeId!=null?new g.VD(Number(B.startTimeMilliseconds),Number(B.endTimeMilliseconds),{id:B.cueRangeId,namespace:"timelyAction"}):void 0;e&&f.push(e)}return f}}onCueRangeEnter(f){const e=e9(this,f);e&&this.W[f]!==void 0&&(e.maxShowCount===void 0||e?.maxShowCount>this.W[f])&&(this.C=f,this.V())}onCueRangeExit(f){const e=Y8g(this,f);e&&this.C===f&&g.yW(this.api,"innertubeCommand",e);fQ(this);this.C=void 0}kH(f){this.J=f}wK(){this.V();this.J=void 0}V(){if(this.C!==void 0){var f=(f=e9(this, this.C))&&f.onCueRangeEnter?Fd(f.onCueRangeEnter):void 0;var e=e9(this,this.C);a:if(e&&e.additionalTrigger){for(B of e.additionalTrigger)if(B.type&&(0,this.eI[B.type])?.(B.args??{})){var B=!0;break a}B=!1}else B=!0;f&&B&&(g.yW(this.api,"innertubeCommand",f),AJY(this,e),this.W[this.C]!==void 0&&this.W[this.C]++,this.Ed=!0)}}bY(){this.timelyActions=this.J=this.C=this.videoId=void 0;this.W={};this.X6();fQ(this);super.bY()}};var $RY=class extends Pq{constructor(f){super(f);f=window;var e=this.api.S().JE();e.C.jI(qnY)?(e=[],f.ytPlayerArraySizeExperimentLength=e.length,f.ytPlayerArraySizeExperimentValue=e[0]):e.C.jI(KVG)?(e="6LPTkck/iK3Q7HMwz7Zyg71LBC0 buD oK+f O5w1 a ns4dbB O sCTaU5B4GI / ebOXx/5DGOwDMt1CEaJxccW+OaQtE zYkklE D4Kspm WDky G s0Vj4uvrd eLSfss l B1D/tiB9kUaZ+S SUWnD oGfGji rRpkB Jg O1 czi9 R Wl4 D94+hDF KOX stfyToM l8v9IJ KZi G A/2wZ 0Qfq 3kv3QDUZOWRK erN3h3b i j tdYdy kl u FBFdIp72yKKL/T rO ym cJYXYi8 yz+ ycc6jftJvwlWp ac s7m+LzqFtVOrgm7z0Z5Q/8Npyo19C B MFZkvXTvZR59/ IKgbLr56eq4Gs JiTE6RRv2HmCWEy Jb+OG u7Ui9+Uy 2FhggtkS7H+rbrOWFb565UNsslsXF i 1CLXS6 bW 6wRdeNJzE gvPRbDS3yqGyk+DHWJU+8pCy8FiGbRXFr2m 3 5GOYU7DuLxi5tbaWKEUSnPYd0ZdsaJY 5 wy9W8enoXtF70HcJfDja0FFaVcIlv Krj7JRMtiVWxQiqDYJqQf8d+Yhvqo WX eAqMs9UttnWTxsaY gcOb/6JXqGHdb5A7TVlpS9kTPq prg 3nD M7c rxwkg2JVkNqS4PtC2P+YzOfoYOdLc i gHNfRWcg3TaR CEKsZBM VfI V1VupF9DkyxK/ k7iWF+tWtW+RaVdPk6H3X 0GcnAiuJXyd7nC/ORmzb/HGrnvBms 6k NmQ2 aGB3blYR9pxhHrY Sk0Y/7tBGJ9EaTbTwoJGWt6 ijhACaixJX vh kwC00l 5QSqhiYiieEvBUYd7S SSRtsEjUFle/8v os".split(" "), f.ytPlayerArraySizeExperimentLength=e.length,f.ytPlayerArraySizeExperimentValue=e[Math.floor(Math.random()*e.length)]):e.C.jI(ROl)&&(e="a Y1bKqzJ s0Vj4uvrd x+ G stfyToM 7W xsHJ KZi 5 H2+ buD / 3 15 76VyLn4q6B SUWnD XF Ml D9/q oK+f K+ eLSfss B rlJLVN wy9W8enoXtF70HcJfDja0FFaVcIlv yLwl WDky asfV3x j KOX /I M FL czi9 b qfSz0ipS DQ m68 u7Ui9+Uy 61 K5xdXVLZb 1e sm BzwWNM gjQS0e hJ l3 zUJAT rRpkB I0j5 DPZ/ gcOb/6JXqGHdb5A7TVlpS9kTPq Hn 7m WwesQPUzST n51 B1D/tiB9kUaZ+S TKXw0mTsQ imMcmOcJbtBm2iiT gvPRbDS3yqGyk+DHWJU+8pCy8FiGbRXFr2m V2 ac s7 D4Kspm j 7I Z4U+fzdVIKP99m 8l 72 Nh5 ab XgH8Lzvf/8e92nICvOm8 gZ O OVRfzTvv99f6a Ng G oGfGji Xr O0 +y uM a6 mb ImnAv LKuVPy OlPbi N483sfs uP A7 71DqBndyU3GS6bIzA zS fts2 ky A/2wZ 0Qfq Zfvd5Pn4776zeP5oPc aI vTeKTkO bhbbE sd os zYkklE CEKsZBM V1VupF9DkyxK/ ebOXx/5DGOwDMt1CEaJxccW+OaQtE tdYdy rO iy34HMOZpoG 2P Jb+OG 7V6 U6 D94+hDF RN RjTb6s9dI1z3sbX2Z n5Jc3 u8 sCTaU5B4GI kEvjgcbIMe a be5m6OlQPwiJOhQ t5 SKU/ XKCZgrGIc3wy+ RX JgMLCGK hTtIGwjH1fcQWLu 30 Pt Mk8cYLj6WiDpDJN zO0ox JD ygD8z hp TtR HX+B89Khozs4 G MxY0 CdMDbBR bQ47h 7N i B90/Ls3uwfIR+zJE pM iAtM6ngY20Xjova0ANGS+MWXtw WF JMLr8w 8W 07 Lq9jaVTdvqKUcBE+lcgF7T3+rj8eLe/W9Gx6pMjv+q Av l lEIzH+OY FqDusHkb z7 pr8bo8c/VS pMPt A6 rxwkg2JVkNqS4PtC2P+YzOfoYOdLc Ca cX Iw2D fp5 erN3h3b FOM 6k 6W/+L21S0BgHkyXSeXgiZEFNnD bW UNvcj1zvh8 I3TZF5 Jg xw vG Ia9v 5QSqhiYiieEvBUYd7S tA nY LJ ym Krj7JRMtiVWxQiqDYJqQf8d+Yhvqo LQhs6cZhK2 0wDpZFkrDy K9nzX D99+akDyTHqVZ5oc vh o+H0k SG s7m+LzqFtVOrgm7z0Z5Q/8Npyo19C XT Ba R Q4 X k7iWF+tWtW+RaVdPk6H3X kwC00l R+km6jn4lEte 6c O/E2WbIgQZp1fX6M15U6V4Cn2VEhA/o1gqaZrT W35r8t FM Sk0Y/7tBGJ9EaTbTwoJGWt6 59N5n p2 dc/6x6Ue8NTkG8Eq 3kv3QDUZOWRK bEp8Cdrszr5 7/ YF 0EGSTB RQ MFZkvXTvZR59/ sU aQ ++ kl u FM8tJsLmwDZGwNxLT3UB8U+Oqq M7c cJYXYi8 Joavny ul O1 Yo PzjTAnVHpDMOOfHYH7PRH5cM ns4dbB jz 0MqMKs EC 5i /PSB9 FSr5qF2R kXioSwTShtq5feiVSbNLRWdm8JtU ses mL J84d RA eAqMs9UttnWTxsaY YqL+09b l8v9IJ VfI Un5oe aghMX806dvo tfkKluaA tWZ0RiNdY ha /++SfI 78y wMv/BMy w4igDN5fJhU/ ijhACaixJX 9s+4w/ i f7 g33AqPrwozIBbUR 2W I5xT3pY5tk3rrjxU4XaqE3JsSS1Y+LA0zCg IKgbLr56eq4Gs WX 2U 3EX5fOxmA pD V8eT3N6k ShiYcW72d5b NmQ2 Mx yz+ ycc6jftJvwlWp aGB3blYR9pxhHrY bWti1J FBFdIp72yKKL/T 2FhggtkS7H+rbrOWFb565UNsslsXF ePmsAY5V ca rZ prg 5 5GOYU7DuLxi5tbaWKEUSnPYd0ZdsaJY ec8TP 6wRdeNJzE BV NrX25+/J8LYtUk O5w1 0GcnAiuJXyd7nC/ORmzb/HGrnvBms hGs6kinOmHXn QoQ Wl4 +S1B mv Jo 671 QGZ 5ru JiTE6RRv2HmCWEy v5vpHQ5jXX5RZgSVfA7P9Keq/9 ngi k3cqFr12egl66d89FwnoKFk dF+d5SEX0slenHxkb+cmSyeQohfO i R gHNfRWcg3TaR EwPA 5banN SSRtsEjUFle/8v szO04kG7irS7lBIpOjUf 51 8Vh6p 3nD ii6 QDM3wl8PVhEf5fF".split(" "), f.ytPlayerArraySizeExperimentLength=e.length,f.ytPlayerArraySizeExperimentValue=e[Math.floor(Math.random()*e.length)])}};var ibC=class extends Pq{constructor(f){super(f);PY(this.api,"getPlaybackRate",()=>this.api.getPlaybackRate()); PY(this.api,"setPlaybackRate",e=>{typeof e==="number"&&this.api.setPlaybackRate(e)})}};var VN5=class extends Ih{constructor(f,e,B,n){super("Intensificador de vozes",g.X7.Yh);this.Z=f;this.V=e;this.J=B;this.getVoiceBoostState=n;this.G=!1;this.rA=this.Z.Y("html5_enable_new_audio_settings_menu")?f.iT().O7:f.iT();this.D(f,"onFilterAudioFeatures",this.Mq);this.setIcon({L:"svg",O:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M11.48 2.14 3.91 6.68A6 6 0 0 0 1 11.83v.33a6 6 0 0 0 2.91 5.14l7.57 4.54A1 1 0 0 0 13 21V3a1.00 1.00 0 0 0-1.51-.85Zm6.88 2.07a1 1 0 0 0-.00 1.41 9 9 0 0 1 0 12.72 1 1 0 0 0 1.41 1.41 11 11 0 0 0 0-15.55 1 1 0 0 0-1.41 0ZM4.94 8.40l.00-.00L11 4.76v14.46l-6.05-3.63A4 4 0 0 1 3 12.16v-.33a4 4 0 0 1 1.94-3.42ZM15.53 7.05a1 1 0 0 0 0 1.41 5 5 0 0 1 0 7.07 1 1 0 0 0 1.41 1.41 6.99 6.99 0 0 0 0-9.9 1 1 0 0 0-1.41 0Z"}}]}); this.subscribe("select",this.W,this);this.Mq()}W(f){this.V(f?2:1)}Mq(){var f=this.Z.getPresentingPlayerType();f===2||f===3?this.G&&(this.G=!1,this.rA.ij(this)):(f=this.getVoiceBoostState(),f!==1?(f===0?(this.C(this.J()===2),this.setEnabled(!0)):(this.C(!1),this.setEnabled(!1)),this.G||(this.rA.jf(this),this.G=!0)):this.G&&(this.rA.ij(this),this.G=!1))}bY(){this.rA.ij(this);super.bY()}};var fFH=class extends Pq{constructor(f){super(f);this.events=new g.ep(f);g.A(this,this.events);const e=this.api.Y("html5_enable_voice_boost");e&&this.events.D(f,"settingsMenuInitialized",()=>{lpg(this)}); X(this.api,"getVoiceBoostUserPreference",()=>e?this.getVoiceBoostUserPreference():0); X(this.api,"setVoiceBoostUserPreference",B=>{e&&this.setVoiceBoostUserPreference(B)}); X(this.api,"getVoiceBoostState",()=>e?this.getVoiceBoostState():1); this.C=OBM()??0;this.updateEnvironmentData()}getVoiceBoostUserPreference(){return this.C}setVoiceBoostUserPreference(f){this.api.ri("vb_set",{pref:f});g.yT("yt-player-voice-boost",f,31536E4);f!==this.C&&(this.C=f,this.updateEnvironmentData(),this.getVoiceBoostState()!==1&&this.api.QP(),this.api.j6())}getVoiceBoostState(){return this.api.X3(1)}updateEnvironmentData(){this.api.S().C$=this.C}};var ex0=class extends Pq{constructor(f){super(f);this.useLivingRoomPoToken=!1;this.W=new g.rF;this.C=!1;this.ph=null;this.X=!1;this.V=null;this.U=!1;const e=f.S().getWebPlayerContextConfig();this.events=new g.ep(f);g.A(this,this.events);this.events.D(f,"spsumpreject",(B,n,r)=>{this.U=n;B&&this.X&&!this.V&&(this.Y("html5_generate_content_po_token")&&r?this.Zm(r):this.Y("html5_generate_session_po_token")&&gmg(this));this.V||this.api.ri("stp",{s:+this.X,b:+this.U})}); this.events.D(f,"poTokenVideoBindingChange",B=>{this.Zm(B)}); if(this.Y("html5_web_po_on_demand_init")){const B=this.events.D(f,"videodatachange",(n,r)=>{r.AV&&!this.X&&(Em0(this),this.events.uh(B))}) }this.useLivingRoomPoToken=!!e?.useLivingRoomPoToken;f.addEventListener("csiinitialized",()=>{this.ph=f.Pt();this.Y("html5_web_po_on_demand_init")?this.J=OA():Em0(this)}); f.addEventListener("trackListLoaded",this.xf.bind(this));f.Ns(this)}bY(){this.K&&(g.Fx(this.K),this.K=void 0);super.bY()}Op(){(this.G?!this.C:this.J)&&nQ(this)}xf(f,e,B){if(FP5(f)){var n=B||"";if(this.C)e=tW(this,n),mOw(f,e);else{var r=new g.rF;e.push(r.promise);this.W.promise.then(()=>{const L=tW(this,n);mOw(f,L);r.resolve()})}}}Zm(f){if(this.G||this.J)f.EO=tW(this,f.videoId),this.C||(this.V=new wC,this.W.promise.then(()=>{this.ph.Dc("pot_if"); f.EO=tW(this,f.videoId)}))}};var PFm=class extends g.y{constructor(f){super({L:"div",y9:["ytp-more-videos-button","ytp-button"],O:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},j:[{L:"div",B:"ytp-more-videos-button-thumbnail"},{L:"span",B:"ytp-more-videos-button-title",Ga:"{{title}}"}]});this.Z=f;this.J=this.JL("ytp-more-videos-button-thumbnail");this.V=this.JL("ytp-more-videos-button-title");this.G=new g.ep(this);g.A(this,this.G);this.G.D(this.Z,"videodatachange",this.C);this.C();this.listen("click",this.onClick); GG0(this,0);this.hide()}C(){var f=this.Z.getVideoData({playerType:1});f=(f?.suggestions?.length?f.suggestions:f?.N()?[f.N()]:[])[0]?.iR("mqdefault.jpg");this.J&&f&&g.uc(this.J,"background-image",f?`url("${f}")`:"")}onClick(){this.Z.logClick(this.element)}Hd(f){this.FG([1,2].includes(f));GG0(this,f)}FG(f){super.FG(f);this.element.setAttribute("aria-hidden",String(!f));f&&this.C()}bY(){super.bY()}};g.BBw=class extends g.y{constructor(f){const e=f.S(),B=g.PP||g.dC?{style:"will-change: opacity"}:void 0,n=e.V,r=["ytp-modern-videowall-still"];e.G&&r.push("ytp-videowall-show-text");super({L:"a",y9:r,O:{href:"{{url}}",target:n?e.N:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},j:[{L:"div",B:"ytp-modern-videowall-still-image",O:{style:"{{background}}"},j:[{L:"span",B:"ytp-modern-videowall-still-info-duration",Ga:"{{duration}}"}]}, {L:"span",B:"ytp-modern-videowall-still-info",O:{"aria-hidden":"true"},j:[{L:"span",B:"ytp-modern-videowall-still-info-bg",j:[{L:"span",B:"ytp-modern-videowall-still-info-content",O:B,j:[{L:"span",B:"ytp-modern-videowall-still-info-title",Ga:"{{title}}"},{L:"span",B:"ytp-modern-videowall-still-info-author",Ga:"{{author}}"},{L:"span",B:"ytp-modern-videowall-still-view-count-and-date-info",Ga:"{{views_and_publish_time}}"},{L:"span",B:"ytp-modern-videowall-still-info-live",Ga:"Ao vivo"}]}]}]},{L:"span", y9:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],O:{"aria-hidden":"true"},j:[{L:"span",B:"ytp-modern-videowall-still-listlabel-icon"},"Playlist",{L:"span",B:"ytp-modern-videowall-still-listlabel-length",j:[" (",{L:"span",Ga:"{{playlist_length}}"},")"]}]},{L:"span",y9:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],O:{"aria-hidden":"true"},j:[{L:"span",B:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{L:"span",B:"ytp-modern-videowall-still-listlabel-length", Ga:" (50+)"}]}]});this.suggestion=null;this.G=n;this.api=f;this.C=new g.ep(this);g.A(this,this.C);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.C.D(f,"videodatachange",this.onVideoDataChange);f.createServerVe(this.element,this);this.onVideoDataChange()}select(){this.api.P6(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.RF||void 0)&&this.api.logClick(this.element)}onClick(f){if(g.XY(this.api.S())&&this.api.Y("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element); let e=this.suggestion.Q7();const B={};g.Z5(this.api,B);e=g.vT(e,B);g.Ur(e,this.api,f)}else g.mv(f,this.api,this.G,this.suggestion.sessionData||void 0)&&this.select()}onKeyPress(f){switch(f.keyCode){case 13:case 32:f.defaultPrevented||(this.select(),f.preventDefault())}}onVideoDataChange(){const f=this.api.getVideoData(),e=this.api.S();this.G=f.AF?!1:e.V}};var yJ5=class extends g.y{constructor(f,e){const B=f.Y("web_player_use_more_videos_button");super({L:"div",y9:["ytp-fullscreen-grid"],j:[{L:"div",B:"ytp-fullscreen-grid-hover-overlay",O:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-70"}},{L:"div",B:"ytp-fullscreen-grid-buttons-container",j:B?[]:[{L:"button",y9:["ytp-fullscreen-grid-expand-button","ytp-button"],O:{"aria-keyshortcuts":"v", "data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-10"},j:["{{icon}}"]}]},{L:"div",B:"ytp-fullscreen-grid-main-content",j:[{L:"div",B:"ytp-fullscreen-grid-stills-container"}]}]});this.player=f;this.stills=[];this.videoData=null;this.currentState=0;this.U=B;this.Cq=this.player.Y("web_player_use_external_grid_component");(this.eI=this.player.Y("web_player_enable_horizontal_endscreen_shelf"))&&g.PW(this.player.getRootNode(), "ytp-enable-horizontal-endscreen-shelf");this.V=this.JL("ytp-fullscreen-grid-main-content");this.A=this.JL("ytp-fullscreen-grid-stills-container");this.K=this.JL("ytp-fullscreen-grid-buttons-container");this.U&&(this.W=new PFm(this.player),this.K.appendChild(this.W.element),g.A(this,this.W),this.D(this.W.element,"click",this.N));this.Cq&&(this.A.style.display="none");this.X=new g.ep(this);g.A(this,this.X);this.cS=e;if(this.V&&this.A){if(f=this.JL("ytp-fullscreen-grid-hover-overlay"))this.D(f,"click", this.N),HF(this.player,f,this);!this.U&&(f=this.JL("ytp-fullscreen-grid-expand-button"))&&(this.D(f,"click",this.N),HF(this.player,f,this));if(f=this.player.getVideoData({playerType:1}))this.videoData=f;this.player.createClientVe(this.V,this,223051);this.X.D(this.player,"videodatachange",this.onVideoDataChange)}}bY(){this.hide();this.X.G();g.II(this.stills);this.stills.length=0;this.J&&(this.J.remove(),this.J=void 0);this.C&&(this.C.remove(),this.C=void 0);this.G&&(this.G.remove(),this.G=void 0); super.bY()}setCommentsButton(f){f!==this.C&&(this.C&&this.C.remove(),this.C=f)&&(g.PW(this.C,"ytp-fullscreen-grid-action-button"),this.K.appendChild(this.C))}setDescriptionButton(f){f!==this.G&&(this.G&&this.G.remove(),this.G=f)&&(g.PW(this.G,"ytp-fullscreen-grid-action-button"),dw(this.K,this.G,0))}N(f){this.cS&&this.cS(f)}onVideoDataChange(){if(!this.Cq){this.videoData=this.player.getVideoData({playerType:1});var f=(this.videoData?.suggestions?.length?this.videoData?.suggestions:this.videoData?.N()? [this.videoData?.N()]:[]).slice(0,18),e=this.A;if(e&&this.V)if(g.LC(e),f.length){this.stills.length>f.length&&g.II(this.stills.splice(f.length));this.stills.length=f.length;for(let B=0;B{wU(this)}); e.D(f,"videodatachange",()=>{if(this.V){var B=this.api.getVideoData({playerType:1});this.videoData!==B&&this.J===2&&(g.$i(this.api.getRootNode(),"ytp-grid-scrolling"),b_(this,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));this.videoData=B}},this); e.D(f,"sizestylechange",()=>{this.V&&wU(this)}); X(this.api,"setFullscreenQuickActions",B=>{this.setFullscreenQuickActions(B)}); X(this.api,"setPlayerOverlayVideoDetailsRenderer",B=>{this.setPlayerOverlayVideoDetailsRenderer(B)}); this.eI&&X(this.api,"setFullscreenGrid",B=>{this.setFullscreenGrid(B)}); X(this.api,"setCommentsButton",B=>{this.setCommentsButton(B)}); X(this.api,"setDescriptionButton",B=>{this.setDescriptionButton(B)}); this.V&&$O5(this,e,f)}uY(){this.V&&this.J!==0&&this.A("INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}A(f){this.V&&(f==="INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"&&(this.Ed&&clearTimeout(this.Ed),this.Ed=window.setTimeout(()=>{this.Ed=null},1E3)),this.J===1?b_(this,2,f):b_(this,1,f))}setFullscreenGrid(f){if(this.eI&&this.G){var e=this.G; e.Cq&&f!==e.J&&(e.J&&e.J.remove(),e.J=f,e.J&&e.V.appendChild(e.J))}}setCommentsButton(f){this.G&&this.G.setCommentsButton(f)}setDescriptionButton(f){this.G&&this.G.setDescriptionButton(f)}setFullscreenQuickActions(f){this.Cq&&this.Cq.remove();f?(g.PW(f,"ytp-fullscreen-quick-actions"),this.Y("web_player_overlay_positioned_layout")?(f.setAttribute("data-overlay-order","13"),this.api.vr(f,4)):(g.PW(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.qX(this.api,f,4))):g.$i(this.api.getRootNode(), "ytp-has-fullscreen-quick-actions");this.Cq=f;wU(this)}setPlayerOverlayVideoDetailsRenderer(f){this.playerOverlayVideoDetailsRenderer&&this.playerOverlayVideoDetailsRenderer.remove();if(f){g.PW(f,"ytp-fullscreen-metadata");g.PW(this.api.getRootNode(),"ytp-hide-fullscreen-title");f.setAttribute("data-overlay-order","1");var e=this.api.Y("delhi_modern_web_player_fullscreen_metadata_bottom");const B=e?3:1;e=e?"ytp-fullscreen-metadata-bottom":"ytp-fullscreen-metadata-top";g.PW(this.api.getRootNode(), e);this.Y("web_player_overlay_positioned_layout")?this.api.vr(f,B):g.qX(this.api,f,4)}else g.$i(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.$i(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"),g.$i(this.api.getRootNode(),"ytp-fullscreen-metadata-top");this.playerOverlayVideoDetailsRenderer=f;wU(this)}};var re5=class extends Pq{constructor(f){super(f);this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.ep(f);g.A(this,this.events);this.events.D(f,"heartbeatRequest",e=>{if(this.freePreviewUsageDetails.length||this.freePreviewWatchedDuration!==null)e.heartbeatRequestParams||(e.heartbeatRequestParams={}),e.heartbeatRequestParams.unpluggedParams||(e.heartbeatRequestParams.unpluggedParams={}),this.freePreviewUsageDetails.length>0?e.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= this.freePreviewUsageDetails:e.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:`${this.freePreviewWatchedDuration}`}}); X(f,"setFreePreviewWatchedDuration",e=>{this.freePreviewWatchedDuration=e}); X(f,"setFreePreviewUsageDetails",e=>{this.freePreviewUsageDetails=e})}};var LzH=class extends g.$0{constructor(f){super();this.features=[];var e=new CZm(f),B=new m$5(f),n=new VM0(f),r=new ex0(f);var L=g.yl(f.S())?void 0:new IUk(f);var d=new jLG(f),t=new sLO(f),H=new ibC(f),k=new k1Y(f);var C=g.yl(f.S())?new re5(f):void 0;var w=f.S().getWebPlayerContextConfig()?.cinematicSettingsAvailable?new x$5(f):void 0;var v=new dAm(f);var b=f.Y("enable_courses_player_overlay_purchase")?new HyC(f):void 0;var K=g.yQ(f.S())?new rvm(f):void 0;var Y=new $$g(f);var l=f.S().V?new fQm(f): void 0;var m=g.XY(f.S())?new iW5(f):void 0;var F=f.Y("web_player_move_autonav_toggle")&&f.S().EE?new GMw(f):void 0;var N=g.yQ(f.S())?new YTC(f):void 0;var E=f.Y("web_enable_speedmaster")&&g.yQ(f.S())?new Gxw(f):void 0;var Lw=f.S().AC?void 0:new PvM(f);var d6=f.Y("report_pml_debug_signal")?new gM0(f):void 0;var TO=new Obl(f),AY=new mR6(f);var Dl=g.TT(f.S())?new NtM(f):void 0;var W5=navigator.mediaSession&&window.MediaMetadata&&f.S().gz?new Az5(f):void 0;var lP=f.Y("html5_enable_drc")&&!f.S().U?new Pfg(f): void 0;var JY=new hhO(f);var Y2=g.yQ(f.S())?new E8O(f):void 0;var Dm=new u9C(f);var A5=g.yQ(f.S())&&f.Y("web_sleep_timer")?new DR5(f):void 0;var Jw=g.XY(f.S())?new efY(f):void 0;f.Y("mweb_debug_sticky_settings");var kD=new QLY(f);var eK=new WYm(f),Bk=new ab5(f);var nT=f.Y("enable_sabr_snackbar_message")?new Jzd(f):void 0;var p=f.Y("web_enable_timely_actions")?new Ibw(f):void 0;var vB=new sj5(f);var oR=f.S()?.getWebPlayerContextConfig()?.enableFullscreenComponentsFeature?new naG(f):void 0;var Oi=new fFH(f); var P=f.Y("web_player_loop_settings_menu")&&f.S().GJ?new cz0(f):void 0;var JV=g.yl(f.S())?void 0:new U$C(f);var q=new UR5(f),D=new D$6(f),VF=new o80(f),lB=new Jm0(f);var Vq=g.yQ(f.S())&&f.S().Y("delhi_modern_web_player")?new XvM(f):void 0;var QS=f.S().J?void 0:new Qj5(f);var iH=new xR5(f),Uv=new Bhm(f);{const oD=f.S().JE();f=oD.C.jI(qnY)||oD.C.jI(KVG)||oD.C.jI(ROl)?new $RY(f):void 0}e=[e,B,n,r,L,d,t,H,k,C,w,v,b,K,Y,l,m,F,N,E,Lw,d6,TO,AY,Dl,void 0,W5,lP,JY,void 0,Y2,Dm,A5,Jw,void 0,kD,eK,Bk,void 0, nT,p,vB,oR,Oi,void 0,P,void 0,JV,q,D,VF,lB,Vq,QS,iH,Uv,f,void 0];for(const oD of e)oD&&this.features.push(oD)}bY(){for(let f=this.features.length-1;f>=0;f--)this.features[f].dispose();this.features.length=0;super.bY()}};var de0=class{constructor(){this.G=this.C=NaN}reset(){this.C=this.G=NaN}};var te5=class{constructor(f,e){this.Ta=f;this.timerName="";this.J=!1;this.G=NaN;this.V=new de0;this.C=e||null;this.J=!1}reset(){FW(this.timerName)}tick(f,e){NJ(f,e,this.timerName)}Dc(f){return EX(f,void 0,this.timerName)}FF(f){g.cu(f,void 0,this.timerName)}infoGel(f){g.hQ(f,this.timerName)}};var xvC=class extends g.$v{constructor(f,e){super();this.V9=f;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.C=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.wZ={};this.G=0;if(f=e.session_data)this.sessionData=Hb(f,"&");this.index=Math.max(0,Number(e.index)||0);this.loop=!!e.loop;this.startSeconds=Number(e.startSeconds)||0;this.title=e.playlist_title||"";this.description=e.playlist_description|| "";this.author=e.author||e.playlist_author||"";e.video_id&&(this.items[this.index]=e);if(f=e.api)typeof f==="string"&&f.length===16?e.list="PL"+f:e.playlist=f;if(f=e.list)switch(e.listType){case "user_uploads":this.listId=new Fh("UU",`PLAYER_${f}`);break;default:var B=e.playlist_length;B&&(this.length=Number(B)||0);this.listId=mL(f);if(B=e.video)this.items=B.slice(0),this.loaded=!0}else if(e.playlist){f=e.playlist.toString().split(",");this.index>0&&(this.items=[]);for(B of f)B&&this.items.push({video_id:B}); this.length=this.items.length;if(B=e.video)this.items=B.slice(0),this.loaded=!0}this.setShuffle(!!e.shuffle);if(B=e.suggestedQuality)this.quality=B;this.wZ=Yj(e,"playlist_");this.J=(e=e.thumbnail_ids)?e.split(","):[]}hasNext(f){return this.loop||!!f||this.index+1=0}setShuffle(f){this.shuffle=f;f=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var e=0;e{}),this.X=e,Promise.all(B).then(e.resolve,e.reject).finally(()=>{this.X=null})):f.xf()}else f.xf()}bY(){this.X&&(this.X.reject(),this.X=null); this.J();super.bY()}};g.a3.prototype.A=eC(63);g.a3.prototype.V=eC(62);g.p4=class extends g.a3{constructor(f,e,B){super(f);this.videoData=e;this.audioTrack=B;this.G=null;this.K=!1;this.N=e.A$;this.cS=e.je;this.K=g.Tk(e)}W(f){if(this.audioTrack)for(const e of this.audioTrack.captionTracks)g.YZ(this.C,e);this.xf(f,this.videoData.videoId)}U(f,e){const B=f.Dw(),n={fmt:e};if(e==="srv3"||e==="3"||e==="json3")g.Cs()?Object.assign(n,{xorb:2,xobt:1,xovt:1}):Object.assign(n,{xorb:2,xobt:3,xovt:3});f.translationLanguage&&(n.tlang=g.p3(f));this.K&&(n.xosf="1");Object.assign(n,this.wi.S().C); return ZR(B,n)}J(){this.G&&this.G.abort()}};g.p4.prototype.V=eC(61);g.Hkd=new Map;g.cH=class extends g.a3{constructor(f,e,B,n,r,L){super(f);this.videoId=B;this.x3=r;this.eventId=L;this.Ed={};this.G=null;f=n||g.vb(e).hl||"";f=f.split("_").join("-");this.K=ZR(e,{hl:f})}W(f){let e=this.K;const B={type:"list",tlangs:1,v:this.videoId,vssids:1};this.x3&&(B.asrs=1);e=ZR(e,B);this.J();this.G=g.QY(e,{format:"RAW",onSuccess:n=>{this.G=null;if((n=n.responseXML)&&n.firstChild){var r=n.getElementsByTagName("track");for(var L=0;Lthis.X, DjA:()=>this.V}; this.Ed=this.Z.Y("web_player_defer_modules");this.L5=new Map;g.A(this,this.K);this.K.D(f,"videodatachange",this.onVideoDataChange)}createSubtitlesModuleIfNeeded(){RYk(this)&&m_(this,"captions");return!!g.o_(this)}h9(){return this.Z.getVideoData().h9()}kC(){return this.Z.getVideoData().kC()}N(){const f=this.L5.get("heartbeat");m_(this,"heartbeat",!1,!0,this.N);!f&&this.L5.has("heartbeat")&&this.Z.publish("offlineslatestatechange")}C(){m_(this,"annotations_module",!0,void 0,this.C);const f=this.L5.get("annotations_module"); if(f)for(const e in this.J){if(!this.J.hasOwnProperty(e))continue;const B=e;f.subscribe(B,this.J[B])}}W(){if(!this.L5.get("ad"))try{Nk(this)?m_(this,"ad",!1,!0,this.W):U5(this,"ad")}catch(f){U5(this,"ad"),g.J(f)}}Pt(){return this.G}dS(){const f={},e=g.o_(this);e&&Object.assign(f,e.dS());return f}PN(f,e){Object.assign(this.G,f||null);Object.assign(this.Wo,e||null)}WM(){if(g.DH(this.Z.S()))return this.L5.get("unplugged")}onVideoDataChange(){const f=this.Z.getVideoData();this.Z.Y("enable_wn_infocards")&& f.jX()&&!g.V9(this)&&this.C()}bY(){super.bY();E5(this,1,!0);for(const [f,e]of Object.entries(jCm)){const B=f;this.U.has(e)&&pQ.delete(B)}this.U.clear()}},jCm={ad:"ad.js",annotations_module:"annotations_module.js",asmjs:"asmjs.js",creatorendscreen:"annotations_module.js",embed:"embed.js",endscreen:"endscreen.js",heartbeat:"heartbeat.js",kids:"kids.js",remote:"remote.js",miniplayer:"miniplayer.js",offline:"offline.js",captions:"captions.js",unplugged:"unplugged.js",ux:"ux.js",webgl:"webgl.js",ypc:"ypc.js"}, Y3d={ad:["ad"],annotations_module:[],asmjs:[],creatorendscreen:[],embed:[],endscreen:[],heartbeat:["heartbeat"],kids:[],remote:["mdx"],miniplayer:[],offline:[],captions:[],unplugged:[],ux:[],webgl:["webgl"],ypc:[]},uV6="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat kids remote miniplayer offline captions webgl ypc unplugged ux".split(" ");var kbw=class extends g.$v{constructor(f,e,B,n){super();this.target=f;this.api=e;this.zc=B;this.G=0;this.U=!1;this.V=new g.OE(NaN,NaN);this.C=new g.ep(this);this.eI=this.J=this.X=null;g.A(this,this.C);e=n?g.tS(this.api.S().experiments,"web_player_touch_idle_wait_time_ms",4E3):g.tS(this.api.S().experiments,"web_player_mouse_idle_wait_time_ms",3E3);this.N=new g.T6(()=>{Ti(this,1,!1)},e,this); g.A(this,this.N);this.Ed=new g.T6(()=>{Ti(this,2,!1)},e,this); g.A(this,this.Ed);this.A=new g.T6(()=>{Ti(this,2048,!1)},e,this); g.A(this,this.A);this.Cq=new g.T6(()=>{Ti(this,512,!1)},e,this); g.A(this,this.Cq);this.PS=3E3;n||(this.J=this.C.D(f,"mouseover",this.dw),this.C.D(f,"mousemove",this.Lq),this.C.D(f,"mouseleave",this.MC));this.api.Y("web_player_enable_fullscreen_grid_components")&&this.C.D(f,"wheel",this.kA,this,!0);md?this.C.D(f,"keypress",this.Fl):this.C.D(f,"focusin",this.BS);this.W=this.C.D(f,"mousedown",this.cS);this.K=this.C.D(f,"touchstart",this.WS,void 0,!0);Ti(this,640,!0)}Lq(f){f=new g.OE(f.pageX,f.pageY);if(!lN(f,this.V)){let e=2;this.U&&(e|=8);this.V=f;Ti(this,e,!0)}}kA(){Ti(this, 2048,!0)}MC(f){this.U&&Ti(this,8,!0);if(this.api.Y("allow_autohide_on_paused_videos")){f=f.relatedTarget;var e=this.target instanceof HTMLElement?this.target:this.target.element;if(f instanceof Element&&(e=e.getBoundingClientRect(),f=f.getBoundingClientRect(),f.top>=e.top&&f.right<=e.right&&f.bottom<=e.bottom&&f.left>=e.left))return}Ti(this,2,!1)}dw(f){const e=new g.OE(f.pageX,f.pageY);lN(e,this.V)||(this.V=e,(f=f.target)&&this.zc(f)&&(Ti(this,4,!0),this.C.uh(this.J),this.J=this.C.D(this.target,"mouseover", this.UC),this.X=this.C.D(this.target,"mouseout",this.UC)))}UC(f){f=f.relatedTarget;f&&this.zc(f)||(this.V=new g.OE(NaN,NaN),m1C(this))}Fl(){Ti(this,1,!0)}BS(f){f=f.target;f instanceof Element&&!(f.tabIndex>0)||Ti(this,1,!0)}cS(){this.U=!0;this.C.uh(this.W);this.W=this.C.D(document,"mouseup",this.uY)}uY(){this.U=!1;Ti(this,8,!1);this.C.uh(this.W);this.W=this.C.D(this.target,"mousedown",this.cS)}WS(f){if(f=(f=f.changedTouches)&&f[0])this.eI=f.identifier,this.C.uh(this.K),this.K=this.C.D(this.target, "touchend",this.Z9,void 0,!0),Ti(this,1024,!0)}Z9(f){let e;if(f=f.changedTouches)for(let B=0;B{this.C.M0()}),this.G.D(this.api,"videoplayerreset",()=>{this.C.M0()})); super.show()}hide(){this.G&&this.G.G();super.hide()}Sf(){this.C.M0()}onStateChange(){this.C.M0()}V(){this.C.M0()}onReset(){this.fade.stop();this.hide();this.C.M0()}gi(){const f=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(f.isPlaying()||f.isPaused()))var e=!0;else(e=this.api.iC().L5.get("ypc"))&&e.zU?e=!0:(e=this.api.S(),e=f.C(2)&&g.wL(this.api)&&e.y8?!0:!1);e?(e=!0,this.J.hide()):(this.J.show(),e=f.isCued()&&this.api.getPresentingPlayerType()!==2||f.C(2)&&!g.wL(this.api)&& !this.api.vC()||f.C(1024)?!0:!1);const B=this.api.getVideoData();e&&!B.e3?(this.fade.show(),U1H(this,this.api.getPlaylist(),B)):(this.fade.hide(),f.C(1)||this.fade.stop())}};var hY5; g.vag=class extends g.y{constructor(f){super({L:"div",y9:["ytp-error"],O:{role:"alert"},j:[{L:"div",B:"ytp-error-content",j:[{L:"div",B:"ytp-error-icon-container",j:[{L:"svg",O:{fill:"#fff",viewBox:"0 0 48 48"},j:[{L:"path",O:{d:"M0 0h48v48H0V0z",fill:"none"}},{L:"path",O:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{L:"div",B:"ytp-error-content-wrap",j:[{L:"div", B:"ytp-error-content-wrap-reason",Ga:"{{content}}"},{L:"div",B:"ytp-error-content-wrap-subreason",Ga:"{{subreason}}"}]}]}]});this.api=f;this.keys=[];this.J=!1;f.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.ef)}resize(){}G(f){this.J=!1;NMC(this);var e=f.B2,B=this.api.S();e!=="GENERIC_WITHOUT_LINK"||B.U?e==="TOO_MANY_REQUESTS"?(B=this.api.getVideoData(),this.setContent(JW(this,"TOO_MANY_REQUESTS_WITH_LINK",B.Q7(),void 0,void 0,void 0,!1))):e!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"|| B.U?this.api.S().Y("html5_enable_bandaid_error_screen")&&e==="HTML5_SPS_UMP_STATUS_REJECTED"&&!B.U?(B=B.hostLanguage,f="//support.google.com/youtube?p=videoError",B&&(f=g.vT(f,{hl:B})),this.setContent(JW(this,"HTML5_SPS_UMP_STATUS_REJECTED",f))):this.api.S().Y("enable_adb_handling_in_sabr")&&e==="BROWSER_OR_EXTENSION_ERROR"&&!B.U?(B=B.hostLanguage,f="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",B&&(f=g.vT(f,{hl:B})),this.setContent(JW(this,"BROWSER_OR_EXTENSION_ERROR", f))):this.setContent(g.Mk(f.errorMessage)):this.setContent(JW(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(f=B.hostLanguage,e="//support.google.com/youtube/?p=player_error1",f&&(e=g.vT(e,{hl:f})),this.setContent(JW(this,"GENERIC_WITH_LINK_AND_CPN",e,!0)),B.G6&&!B.V&&gKw(this,n=>{if(g.mv(n,this.api,!iD(this.api.S()))){const r={as3:!1,html5:!0,player:!0,cpn:this.api.getVideoData().clientPlaybackNonce};n=this.api;g.id(n,"onFeedbackArticleRequest", {articleId:3037019,helpContext:"player_error",productData:r});n.isFullscreen()&&n.toggleFullscreen()}})); if(this.J){const n=this.JL("ytp-error-link");n&&(this.api.createClientVe(n,this,216104),this.api.logVisibility(n,!0),gKw(this,()=>{this.api.logClick(n)}))}}}; hY5=/([^<>]+)<\/a>/;var bkY=class extends g.y{constructor(f){super({L:"div",y9:["ytp-overlays-container"],j:[{L:"div",B:"ytp-overlay-top-left"},{L:"div",B:"ytp-overlay-top-right"},{L:"div",B:"ytp-overlay-bottom-left"},{L:"div",B:"ytp-overlay-bottom-right"}]});this.J=this.JL("ytp-overlay-top-left");this.V=this.JL("ytp-overlay-top-right");this.C=this.JL("ytp-overlay-bottom-left");this.G=this.JL("ytp-overlay-bottom-right");g.qX(f,this.element,4)}vr(f,e,B=!1){switch(e){case 1:Gi(this,f,this.J,B);break;case 2:Gi(this,f,this.V, B);break;case 3:Gi(this,f,this.C,B);break;case 4:Gi(this,f,this.G,B)}}};var ZkO=class extends g.y{constructor(f){super({L:"div",B:"ytp-paid-content-overlay",O:{"aria-live":"assertive","aria-atomic":"true",["data-overlay-order"]:"5"}});this.Z=f;this.videoId=null;this.V=!1;this.innertubeCommand=this.mA=this.C=null;const e=f.S();e.experiments.JE().C.jI(P$d)?(this.G=new g.T6(()=>{this.Fx()},5E3,this),g.A(this,this.G)):this.G=null; f.Y("enable_new_paid_product_placement")&&!g.L3(e)?(this.J=new g.y({L:"a",B:"ytp-paid-content-overlay-link",O:{href:"{{href}}",target:"_blank"},j:[{L:"div",B:"ytp-paid-content-overlay-indicator"},{L:"div",B:"ytp-paid-content-overlay-icon",Ga:"{{icon}}"},{L:"div",B:"ytp-paid-content-overlay-text",Ga:"{{text}}"},{L:"div",B:"ytp-paid-content-overlay-chevron",Ga:"{{chevron}}"}]}),this.D(this.J.element,"click",this.onClick)):this.J=new g.y({L:"div",y9:["ytp-button","ytp-paid-content-overlay-text"],Ga:"{{text}}"}); this.fade=new g.Ob(this.J,250,!1,100);g.A(this,this.J);this.J.di(this.element);g.A(this,this.fade);this.Z.createServerVe(this.element,this);this.D(f,"videodatachange",this.onVideoDataChange);this.D(f,"presentingplayerstatechange",this.W)}onClick(f){this.innertubeCommand?(g.yW(this.Z,"innertubeCommand",this.innertubeCommand),f.preventDefault()):g.mv(f,this.Z,!0);this.Z.logClick(this.element)}onVideoDataChange(f,e){this.G&&this.G.stop();EKd(this,e);this.mA&&QCH(this,this.mA)}W(f){const e=this.Z.getVideoData(); this.videoId!==e.videoId&&EKd(this,e);this.C&&QCH(this,f.state);this.mA=f.state}Fx(){this.fade.show();this.C?.start();this.Z.publish("paidcontentoverlayvisibilitychange",!0);this.Z.logVisibility(this.element,!0)}HL(){this.fade.hide();this.Z.publish("paidcontentoverlayvisibilitychange",!1);this.Z.logVisibility(this.element,!1)}};var RxG=class extends g.y{constructor(f){super({L:"div",B:"ytp-spinner",j:[hK(),{L:"div",B:"ytp-spinner-message",Ga:"Se a reprodu\u00e7\u00e3o n\u00e3o come\u00e7ar em instantes, reinicie seu dispositivo."}]});this.api=f;this.message=this.JL("ytp-spinner-message");this.C=new g.T6(this.show,500,this);g.A(this,this.C);this.D(f,"presentingplayerstatechange",this.onStateChange);this.D(f,"playbackstalledatstart",this.G);this.Hd(f.getPlayerStateObject())}hide(){this.C.stop();this.message.style.display= "none";super.hide()}onStateChange(f){this.Hd(f.state)}Hd(f){(f.C(128)||this.api.GS()||this.api.Y("web_watch_enable_multiview_manager")&&this.api.getVideoData()?.IR()?0:f.C(16)||f.C(1))?this.C.start():this.hide()}G(){this.message.style.display="block"}};var Kzd=class extends uI{constructor(f){const e=[{L:"div",y9:["ytp-unmute-icon"],j:[f.S().experiments.SI("delhi_modern_web_player_icons")?{L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",B:"ytp-svg-fill",O:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z"}}]}: {L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]}, {L:"div",y9:["ytp-unmute-text"],Ga:"Toque para ativar som"}];e.push({L:"div",y9:["ytp-unmute-box"],j:[]});super(f,{L:"button",y9:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],j:[{L:"div",B:"ytp-unmute-inner",j:e}]},100);this.C=this.clicked=!1;this.api=f;this.api.createClientVe(this.element,this,51663);this.D(f,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.D(f,"presentingplayerstatechange",this.lT);this.listen("click",this.onClick,this);f=f.isMutedByMutedAutoplay()&& !g.XY(this.api.S());this.FG(f);f&&TMd(this);this.G=f}onMutedAutoplayChange(f){this.G&&(f?(TMd(this),this.Fx()):(this.C&&this.logClick(),this.HL()))}lT(f){this.api.isMutedByMutedAutoplay()&&f.IC(2)&&this.HL()}onClick(){this.api.unMute();this.logClick()}logClick(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))}};g.wX=class extends g.ep{constructor(f){super();this.api=f;this.aT=!1;this.qa=null;this.v2=!1;this.Lz=null;this.Vj=this.RQ=!1;this.wr=this.Mm=null;this.p7=NaN;this.fE=this.j3=!1;this.BQ=0;this.uD=[];this.lc=!1;this.Y6={height:0,width:0};this.wv=480;this.zj=["ytp-player-content","html5-endscreen","ytp-overlay"];this.sF={SN:!1};this.Zk=null;const e=f.S(),B=f.AL();this.Y6=f.getPlayerSize();this.jt=new g.T6(this.rK,0,this);g.A(this,this.jt);e.disableOrganicUi||(this.Zn=new g.wIl(f),g.A(this,this.Zn),g.qX(f, this.Zn.element,4));this.api.Y("web_player_overlay_positioned_layout")&&(this.Zk=new bkY(this.api),g.A(this,this.Zk));if(D1w(this)){var n=new RxG(f);g.A(this,n);n=n.element;g.qX(f,n,4)}var r=f.getVideoData();this.n5=new kbw(B,f,L=>this.zc(L),e.S6); g.A(this,this.n5);this.n5.subscribe("autohideupdate",this.w9,this);Q9(this.n5);if(!e.disablePaidContentOverlay){const L=new ZkO(f);g.A(this,L);this.Zk?this.Zk.vr(L.element,g.L3(e)?3:1):g.qX(f,L.element,4)}this.DQ=new Kzd(f);g.A(this,this.DQ);g.qX(this.api,this.DQ.element,2);this.mQ=this.api.isMutedByMutedAutoplay();this.D(f,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.y0=new g.T6(this.u4,200,this);g.A(this,this.y0);this.Gg=r.videoId;this.eA=new g.T6(()=>{this.BQ=0},350); g.A(this,this.eA);this.Zh=new g.T6(()=>{this.fE||s5(this)},350,this); g.A(this,this.Zh);r=f.getRootNode();r.setAttribute("aria-label","Player de v\u00eddeo do YouTube");switch(e.color){case "white":g.PW(r,"ytp-color-white")}this.D(f,"appresize",this.Sf);this.D(f,"presentingplayerstatechange",this.lT);this.D(f,"videodatachange",this.onVideoDataChange);this.D(f,"videoplayerreset",this.YR);this.D(f,"autonavvisibility",()=>{this.Om()}); this.D(f,"sizestylechange",()=>{this.Om()}); this.D(B,"click",this.Z$,this);this.D(B,"dblclick",this.R$,this);this.D(B,"mousedown",this.YN,this);e.qC&&(this.D(B,"gesturechange",this.Hq,this),this.D(B,"gestureend",this.Ue,this));this.YH=[B.H$];this.Zn&&this.YH.push(this.Zn.element);n&&this.YH.push(n);this.api.Y("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(B.element,this,247482),this.api.logVisibility(B.element,!0))}init(){const f=this.api,e=f.getPlayerStateObject();this.Y6=f.getPlayerSize();this.oC(e);this.Om();this.Sf(); this.api.publish("basechromeinitialized",this);this.d7()&&this.api.publish("standardControlsInitialized")}onVideoDataChange(f,e){var B=this.Gg!==e.videoId;if(B||f==="newdata")f=this.api,f.isFullscreen()||(this.Y6=f.getPlayerSize());B&&(this.Gg=e.videoId,B=this.n5,B.PS=3E3,Ti(B,512,!0),this.Om());this.api.Y("web_render_jump_buttons")&&e.showSeekingControls&&(this.wv=572)}YR(){this.onVideoDataChange("newdata",this.api.getVideoData())}dk(){const f=this.api.O4()&&this.api.fV(),e=this.api.k6();return this.v2|| f||this.mQ||e}qw(){const f=!this.dk();g.h(this.api.getRootNode(),"ytp-menu-shown",!f)}zc(f){try{if(!g.HN(this.api.getRootNode(),f))return!1}catch(e){return!1}for(;f&&!ww(f);)f=f===this.api.getRootNode()?null:f.parentElement||null;return!!f}w9(f){const e=this.api.getRootNode();g.h(e,"ytp-autohide",f);g.h(e,"ytp-autohide-active",!0);this.jt.start(f?250:100);f&&(this.RQ=!1,g.$i(e,"ytp-touch-mode"));this.Vj=!f;this.api.T2(!f);this.api.Y("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate", f)}rK(){const f=this.api.getRootNode();g.h(f,"ytp-autohide-active",!1)}Bq(){this.fE=!0}Xz(f){if(this.api.S().Y("player_doubletap_to_seek")||this.api.S().X)this.fE=!1,this.wr&&this.uh(this.wr),this.BQ===0&&XU(this,f)?(this.hc(),this.Zh.start(),this.wr=this.D(this.api.AL(),"touchmove",this.Bq,void 0,!0)):this.Zh.stop();MrH(this)&&XU(this,f)&&!this.api.S().X&&s5(this,f);var e=this.DQ.A3();if(!g.XY(this.api.S())&&m1&&y9(this,f))e&&f.preventDefault();else if(this.RQ=!0,g.PW(this.api.getRootNode(),"ytp-touch-mode"), this.n5.FO(),this.api.S().Y("player_doubletap_to_seek")||this.api.S().X)if(e=this.api.getPlayerStateObject(),!(!this.api.Xq()||e.C(2)&&g.wL(this.api)||e.C(64))){e=Date.now()-this.p7;this.BQ+=1;if(e<=350){if(WO(this,f))return;this.j3=!0;e=this.api.getPlayerSize().width/3;var B=this.api.getRootNode().getBoundingClientRect();const n=f.targetTouches[0].clientX-B.left;B=f.targetTouches[0].clientY-B.top;const r=(this.BQ-1)*10;n>0&&ne*2&&n=650,n=f.width<528;this.n5.resize();if(this.api.Y("web_player_use_screen_width_for_big_mode")){const r=f.width>=(g.tS(this.api.S().experiments,"web_player_big_mode_screen_width_cutoff")??2E3);g.h(e,"ytp-big-mode",r)}g.h(e,"ytp-fullscreen",this.api.isFullscreen());g.h(e,"ytp-large-width-mode",B);this.api.Y("delhi_modern_web_player")?g.h(e, "ytp-xsmall-width-mode",n):g.h(e,"ytp-small-mode",this.B0());g.h(e,"ytp-tiny-mode",this.Og());g.h(e,"ytp-big-mode",this.E3());this.Lz&&this.Lz.resize(f)}lT(f){this.oC(f.state);this.Om()}c_(){var f=!!this.Gg&&!this.api.Ws()&&!this.lc,e=this.api.getPresentingPlayerType()===2,B=this.api.S();if(e)return B=O5(this.api.iC()),f&&(B&&B.player?f=(f=B.player.getVideoData({playerType:2}))?f.isListed&&!g.yl(B.player.S()):!1:(NL("showInfoBarDuringAd: this is null"),f=!1)),f;e=B.Y("web_player_imax_theater_mode")&& this.api.dM()&&!this.api.isInline();return f&&(B.HB||e||this.api.isFullscreen()||B.AC)}Om(){const f=this.c_();this.qa!==f&&(this.qa=f,g.h(this.api.getRootNode(),"ytp-hide-info-bar",!f))}oC(f){const e=f.isCued()||this.api.zb()&&this.api.getPresentingPlayerType()!==3;e!==this.isCued&&(this.isCued=e,this.Mm&&this.uh(this.Mm),this.Mm=this.D(this.api.AL(),"touchstart",this.Xz,void 0,e));var B=this.n5,n=f.isPlaying()&&!f.C(32)||this.api.A5();Ti(B,128,!n);B=this.n5;n=this.api.getPresentingPlayerType()=== 3;Ti(B,256,n);B=this.api.getRootNode();f.C(2)?n=[nZ.ENDED]:(n=[],f.C(8)?n.push(nZ.PLAYING):f.C(4)&&n.push(nZ.PAUSED),f.C(1)&&!f.C(32)&&n.push(nZ.BUFFERING),f.C(32)&&n.push(nZ.SEEKING),f.C(64)&&n.push(nZ.UNSTARTED));g.Ye(this.uD,n)||(g.il(B,this.uD),this.uD=n,g.I0(B,n));n=this.api.S();const r=f.C(2);a:{var L=this.api.S();const d=L.controlsType;switch(d){case "2":case "0":L=!1;break a}L=d==="3"&&!f.C(2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:fD(O5(this.api.iC())))||this.api.k6()||g.XY(L)&& this.api.getPresentingPlayerType()===2?!1:!0}g.h(B,"ytp-hide-controls",!L);g.h(B,"ytp-native-controls",n.controlsType==="3"&&!e&&!r&&!this.mQ);f.C(128)&&!g.XY(n)?(this.Lz||(this.Lz=new g.vag(this.api),g.A(this,this.Lz),g.qX(this.api,this.Lz.element,4)),this.Lz.G(f.iE),this.Lz.show()):this.Lz&&(this.Lz.dispose(),this.Lz=null)}Vc(){return this.api.O4()&&this.api.fV()?(this.api.Je(!1,!1),!0):this.api.Ws()?(g.C_(this.api,!0),!0):!1}onMutedAutoplayChange(f){this.mQ=f;this.qw()}E3(){return!1}B0(){return!this.E3()&& (this.api.getPlayerSize().width{this.element.style.margin="0"},250); this.onClickCommand=this.G=null;g.A(this,this.fade);g.A(this,this.X);g.A(this,this.U);g.A(this,this.Cq);f.S().Y("player_new_info_card_format")?(g.PW(f.getRootNode(),"ytp-cards-teaser-dismissible"),this.D(this.JL("ytp-cards-teaser-close-button"),"click",this.eI),this.D(this.JL("ytp-cards-teaser-info-icon"),"click",this.K),this.D(this.JL("ytp-cards-teaser-label"),"click",this.K)):this.listen("click",this.K);this.D(e.element,"mouseover",this.A);this.D(e.element,"mouseout",this.N);this.D(f,"cardsteasershow", this.Z9);this.D(f,"cardsteaserhide",this.HL);this.D(f,"cardstatechange",this.cS);this.D(f,"presentingplayerstatechange",this.cS);this.D(f,"appresize",this.W);this.D(f,"onShowControls",this.W);this.D(f,"onHideControls",this.PS);this.listen("mouseenter",this.WS)}cS(){this.Z.O4()&&this.Z.fV()&&this.A3()&&this.HL()}K(){this.HL();!this.Z.O4()&&this.Z.S().Y("enable_error_corrections_infocards_icon_web")&&this.RM.HL();g.iO("iv-teaser-clicked",this.C!=null);this.onClickCommand?g.yW(this.Z,"innertubeCommand", this.onClickCommand):this.Z.getVideoData()?.y8()||this.Z.Je(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}WS(){g.iO("iv-teaser-mouseover");this.C&&this.C.stop()}Z9(f){this.Z.S().Y("player_new_info_card_format")&&!g.XY(this.Z.S())?this.RM.HL():this.Z.S().Y("enable_error_corrections_infocards_icon_web")&&this.RM.Fx();this.C||!f||this.Z.fV()||this.J&&this.J.isActive()||(this.Fx(f),g.iO("iv-teaser-shown"))}Fx(f){this.onClickCommand=f.onClickCommand;this.updateValue("text",f.teaserText);this.element.setAttribute("dir", g.k4(f.teaserText));this.fade.show();if(this.Z.S().Y("player_new_info_card_format")){const e=this.JL("ytp-cards-teaser-info-icon"),B=this.JL("ytp-cards-teaser-channel-avatar");B&&f.Eq&&g.dE(f.Eq)&&(B.src=f.Eq,B.style.display="block",e.style.display="none")}this.J=new g.T6(function(){g.PW(this.Z.getRootNode(),"ytp-cards-teaser-shown");this.Z.Y("player_new_info_card_format")&&!g.XY(this.Z.S())&&this.RM.HL();this.W()},0,this); this.J.start();this.RM.gI(!1);this.C=new g.T6(this.HL,580+f.durationMs,this);this.C.start();this.V.push(this.listen("mouseover",this.A,this));this.V.push(this.listen("mouseout",this.N,this))}W(){if(!this.Z.S().Y("player_new_info_card_format")&&g.XY(this.Z.S())&&this.ef){const f=this.RM.element.offsetLeft,e=g.x2("ytp-cards-button-icon"),B=this.Z.isFullscreen()?54:36;if(e){const n=f+e.offsetLeft;this.element.style.marginRight=this.RM.element.offsetParent.offsetWidth-f-e.offsetLeft-B+"px";this.element.style.marginLeft= n+"px"}}}PS(){g.XY(this.Z.S())&&this.Z.B0()&&this.ef&&this.Cq.start()}A(){this.U.stop();this.C&&this.C.isActive()&&this.X.start()}N(){this.X.stop();this.C&&!this.C.isActive()&&this.U.start()}uY(){this.C&&this.C.stop()}Lq(){this.HL()}eI(){this.HL()}HL(){!this.C||this.G&&this.G.isActive()||(g.iO("iv-teaser-hidden"),this.fade.hide(),g.$i(this.Z.getRootNode(),"ytp-cards-teaser-shown"),this.G=new g.T6(function(){for(const f of this.V)this.uh(f);this.V=[];this.C&&(this.C.dispose(),this.C=null);this.RM.gI(!0); !this.Z.O4()&&this.Z.S().Y("enable_error_corrections_infocards_icon_web")&&this.RM.HL()},330,this),this.G.start())}A3(){return this.ef&&this.fade.state!==4}bY(){const f=this.Z.getRootNode(); f&&g.$i(f,"ytp-cards-teaser-shown");g.II(this.J,this.G,this.C);super.bY()}};var $Z={BUTTON:"ytp-button",TITLE_NOTIFICATIONS:"ytp-title-notifications",TITLE_NOTIFICATIONS_ON:"ytp-title-notifications-on",TITLE_NOTIFICATIONS_OFF:"ytp-title-notifications-off",NOTIFICATIONS_ENABLED:"ytp-notifications-enabled"},etg=class extends g.y{constructor(f){super({L:"button",y9:[$Z.BUTTON,$Z.TITLE_NOTIFICATIONS],O:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},j:[{L:"div",B:$Z.TITLE_NOTIFICATIONS_ON,O:{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.Wrm()]},{L:"div",B:$Z.TITLE_NOTIFICATIONS_OFF,O:{title:"Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"},j:[{L:"svg",O:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},j:[{L:"path",O:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]}); this.api=f;this.C=!1;f.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos")}onClick(){this.api.logClick(this.element);const f=!this.C;this.updateValue("label",f?"Deixar de receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos":"Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos");this.updateValue("pressed",f);Xgm(this,f)}};g.qH("yt.pubsub.publish",g.iO);g.ez=class extends g.y{constructor(f,e,B,n,r,L,d,t,H,k,C,w){f=f.charAt(0)+f.substring(1).toLowerCase();B=B.charAt(0)+B.substring(1).toLowerCase();if(e==="0"||e==="-1")e=null;if(n==="0"||n==="-1")n=null;const v=C.S(),b=v.userDisplayName&&g.Ms(v);super({L:"div",y9:["ytp-button","ytp-sb"],j:[{L:"div",B:"ytp-sb-subscribe",O:b?{title:C.S().Y("player_tooltip_data_title_killswitch")?g.RT("Inscrever-se como $USER_NAME",{USER_NAME:v.userDisplayName}):"","data-tooltip-title":g.RT("Inscrever-se como $USER_NAME", {USER_NAME:v.userDisplayName}),"aria-label":"Inscrever-se no canal","data-tooltip-image":kj(v),"data-tooltip-opaque":String(g.XY(v)),tabindex:"0",role:"button"}:{"aria-label":"Inscrever-se no canal"},j:[{L:"div",B:"ytp-sb-text",j:[{L:"div",B:"ytp-sb-icon"},f]},e?{L:"div",B:"ytp-sb-count",Ga:e}:""]},{L:"div",B:"ytp-sb-unsubscribe",O:b?{title:C.Y("player_tooltip_data_title_killswitch")?g.RT("Inscrito como $USER_NAME",{USER_NAME:v.userDisplayName}):"","data-tooltip-title":g.RT("Inscrito como $USER_NAME", {USER_NAME:v.userDisplayName}),"aria-label":"Cancelar inscri\u00e7\u00e3o no canal","data-tooltip-image":kj(v),"data-tooltip-opaque":String(g.XY(v)),tabindex:"0",role:"button"}:{"aria-label":"Cancelar inscri\u00e7\u00e3o no canal"},j:[{L:"div",B:"ytp-sb-text",j:[{L:"div",B:"ytp-sb-icon"},B]},n?{L:"div",B:"ytp-sb-count",Ga:n}:""]}],O:{"aria-live":"polite"}});this.channelId=d;this.Z=C;this.J=w;const K=this.JL("ytp-sb-subscribe"),Y=this.JL("ytp-sb-unsubscribe");L&&g.PW(this.element,"ytp-sb-classic"); if(r){t?this.C():this.G();var l=()=>{if(v.cS){var F=this.channelId;if(H||k){var N={c:F};var E;g.Q1.isInitialized()&&(E=wRM(N));N=E||"";if(E=C.getVideoData())if(E=E.subscribeCommand){var Lw=C.pB();Lw?(D7(Lw,E,{botguardResponse:N,feature:H}),g.yW(C,"SUBSCRIBE",F)):g.J(Error("No innertube service available when updating subscriptions."))}else g.J(Error("No subscribe command in videoData."));else g.J(Error("No video data available when updating subscription."))}Y.focus();Y.removeAttribute("aria-hidden"); K.setAttribute("aria-hidden","true")}else i_(g.IP(this.Z.S()),"sb_button",this.V)},m=()=>{var F=this.channelId; if(H||k){var N=C.getVideoData();D7(C.pB(),N.unsubscribeCommand,{feature:H});g.yW(C,"UNSUBSCRIBE",F)}K.focus();K.removeAttribute("aria-hidden");Y.setAttribute("aria-hidden","true")}; this.D(K,"click",l);this.D(Y,"click",m);this.D(K,"keypress",F=>{F.keyCode===13&&l(F)}); this.D(Y,"keypress",F=>{F.keyCode===13&&m(F)}); this.D(C,"SUBSCRIBE",this.C);this.D(C,"UNSUBSCRIBE",this.G);this.J&&b&&(bhl(C),HF(C,K,this),HF(C,Y,this))}else g.PW(K,"ytp-sb-disabled"),g.PW(Y,"ytp-sb-disabled")}V(){window.location.reload()}C(){g.PW(this.element,"ytp-sb-subscribed")}G(){g.$i(this.element,"ytp-sb-subscribed")}};var pIg=class extends g.y{constructor(f){super({L:"div",B:"ytp-title-channel",j:[{L:"div",B:"ytp-title-beacon"},{L:"a",B:"ytp-title-channel-logo",O:{href:"{{channelLink}}",target:f.S().N,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{L:"div",B:"ytp-title-expanded-overlay",O:{"aria-hidden":"{{flyoutUnfocusable}}"},j:[{L:"div",B:"ytp-title-expanded-heading",j:[{L:"div",B:"ytp-title-expanded-title",j:[{L:"a",Ga:"{{expandedTitle}}",O:{href:"{{channelTitleLink}}",target:f.S().N,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{L:"div",B:"ytp-title-expanded-subtitle",Ga:"{{expandedSubtitle}}",O:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});this.api=f;this.channel=this.JL("ytp-title-channel");this.G=this.JL("ytp-title-channel-logo");this.channelName=this.JL("ytp-title-expanded-title");this.K=this.JL("ytp-title-expanded-overlay");this.J=this.C=this.subscribeButton=null;this.V=!1;f.createClientVe(this.G,this,36925);f.createClientVe(this.channelName,this,37220);g.XY(this.api.S())&& iUw(this);this.D(f,"videodatachange",this.gi);this.D(f,"videoplayerreset",this.gi);this.D(this.channelName,"click",e=>{this.api.logClick(this.channelName);g.Mb(window,fp(this));e.preventDefault()}); this.D(this.G,"click",this.A);this.gi()}A(f){this.api.logClick(this.G);const e=this.api.S();e.G||e.uY?f9Y(this)&&(this.isExpanded()?this.W():this.U()):g.Mb(window,fp(this));f.preventDefault()}X(){$1d(this);this.channel.classList.remove("ytp-title-expanded")}isExpanded(){return this.channel.classList.contains("ytp-title-expanded")}U(){if(f9Y(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y", "false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.J&&this.J.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));const f=this.api.getVideoData();this.C&&f.K5&&f.subscribed&&(this.C.show(),this.api.logVisibility(this.C.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}W(){this.updateValue("flyoutUnfocusable", "true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.J&&this.J.start()}gi(){const f=this.api.S();this.FG(!this.api.isEmbedsShortsMode());const e=this.api.getVideoData(),B=this.api.S(),n=this.api.getVideoData();this.V=!1;const r=!!n.videoId&&!!n.uY&&!!n.profilePicture;this.api.getPresentingPlayerType()===2?this.V=r&&!!n.isListed&&!!n.author:g.XY(B)&&(this.V=r&&!n.AF&&!B.J&& !(B.X&&this.api.getPlayerSize().width<200));BDG(this,e.profilePicture,g.XY(f)?e.expandedTitle:e.author);this.subscribeButton&&(this.subscribeButton.channelId=e.UL);this.updateValue("expandedTitle",e.expandedTitle);this.updateValue("expandedSubtitle",e.expandedSubtitle)}AE(f){super.AE(f);this.api.logVisibility(this.G,this.V&&f)}};var A1=class extends g.DZ{constructor(f){super(g.j5({"aria-haspopup":"true"}),f);this.listen("keydown",this.uT)}uT(f){f.defaultPrevented||f.keyCode!==39||(this.element.click(),f.preventDefault())}};var ceO=class extends g.y{show(){super.show();this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")}hide(){super.hide();this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")}constructor(f,e){super({L:"div",B:"ytp-user-info-panel",O:{"aria-label":"Informa\u00e7\u00f5es do usu\u00e1rio"},j:f.S().cS?[{L:"div",B:"ytp-user-info-panel-icon",Ga:"{{icon}}"},{L:"div",B:"ytp-user-info-panel-content", j:[{L:"div",B:"ytp-user-info-panel-info",O:{tabIndex:"{{userInfoFocusable}}",role:"text"},Ga:"{{watchingAsUsername}}"},{L:"div",B:"ytp-user-info-panel-info",O:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Ga:"{{watchingAsEmail}}"}]}]:[{L:"div",B:"ytp-user-info-panel-icon",Ga:"{{icon}}"},{L:"div",B:"ytp-user-info-panel-content",j:[{L:"div",j:[{L:"text",O:{tabIndex:"{{userInfoFocusable}}"},Ga:"Conta desconectada"}]},{L:"div",B:"ytp-user-info-panel-login",j:[{L:"a",O:{tabIndex:"{{userInfoFocusable2}}", role:"button"},Ga:f.S().Ch?"":"Fazer login no YouTube"}]}]}]});this.wi=f;this.sourceElement=e;f.S().cS||f.S().Ch||this.D(this.JL("ytp-user-info-panel-login"),"click",this.G);this.closeButton=new g.y({L:"button",y9:["ytp-collapse","ytp-button"],O:{title:"Fechar"},j:[g.a5()]});this.closeButton.di(this.element);g.A(this,this.closeButton);this.D(window,"blur",this.hide);this.D(document,"click",this.C);this.gi()}C(f){const e=Gw(f),B=g.HN(this.closeButton.element,e),n=g.HN(this.element,e);f=this.sourceElement&& g.HN(this.sourceElement,e)&&g.Ef(f);e&&(n||f)&&!B||this.hide()}G(){i_(g.IP(this.wi.S()),"user_info_panel",()=>{window.location.reload()})}gi(){const f=this.wi.S(),e={USER_NAME:f.userDisplayName, USER_EMAIL:f.pz};this.updateValue("icon",PCg());this.updateValue("watchingAsUsername",g.RT("Assistindo como $USER_NAME",e));f.pz?this.updateValue("watchingAsEmail",g.RT("($USER_EMAIL)",e)):this.updateValue("watchingAsEmail","")}};var YHH=class extends g.ba{constructor(f,e,B){super(f);this.rA=e;this.Zw=B;this.getVideoUrl=new A1(6);this.gU=new A1(5);this.wU=new A1(4);this.xp=new A1(3);this.ZB=new g.DZ(g.j5({href:"{{href}}",target:this.Z.S().N},void 0,!0),2,"Resolver problemas de reprodu\u00e7\u00e3o");this.showVideoInfo=new g.DZ(g.j5(),1,"Estat\u00edsticas para nerds");this.dL=new g.Sq({L:"div",y9:["ytp-copytext","ytp-no-contextmenu"],O:{draggable:"false",tabindex:"1"},Ga:"{{text}}"});this.s5=new vH(this.Z,this.dL);this.uW= this.M$=null;g.XY(this.Z.S())&&(this.closeButton=new g.y({L:"button",y9:["ytp-collapse","ytp-button"],O:{title:"Fechar"},j:[g.a5()]}),g.A(this,this.closeButton),this.closeButton.di(this.element),this.closeButton.listen("click",this.TI,this));g.XY(this.Z.S())&&(this.y4=new g.DZ(g.j5(),10,"Conta"),g.A(this,this.y4),this.jf(this.y4,!0),this.y4.listen("click",this.Fz,this),f.createClientVe(this.y4.element,this.y4,137682));this.Z.S().GJ&&(this.EL=new Ih("Loop",9),g.A(this,this.EL),this.jf(this.EL,!0), this.EL.listen("click",this.dF,this),f.createClientVe(this.EL.element,this.EL,28661));this.Z.Y("web_player_miniplayer_in_context_menu")&&(this.k0=new g.DZ(g.j5(),8,"Miniplayer"),g.A(this,this.k0),this.jf(this.k0,!0),this.k0.listen("click",this.ZG,this),f.createClientVe(this.k0.element,this.k0,62946));this.Z.Y("web_watch_pip_context_menu_button")&&this.Z.S().showMiniplayerButton&&(this.DE=new g.DZ(g.j5(),7,"Picture-in-picture"),g.A(this,this.DE),this.jf(this.DE,!0),this.DE.listen("click",this.Hu,this), f.createClientVe(this.DE.element,this.DE,194442));g.A(this,this.getVideoUrl);this.jf(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Wu,this);f.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.A(this,this.gU);this.jf(this.gU,!0);this.gU.listen("click",this.L2,this);f.createClientVe(this.gU.element,this.gU,28660);g.A(this,this.wU);this.jf(this.wU,!0);this.wU.listen("click",this.V1,this);f.createClientVe(this.wU.element,this.wU,28658);g.A(this,this.xp);this.jf(this.xp,!0); this.xp.listen("click",this.vu,this);g.A(this,this.ZB);this.jf(this.ZB,!0);this.ZB.listen("click",this.Qe,this);g.A(this,this.showVideoInfo);this.jf(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.D$,this);g.A(this,this.dL);this.dL.listen("click",this.b3,this);g.A(this,this.s5);nf0()&&(this.M$=new g.y({L:"textarea",B:"ytp-html5-clipboard",O:{readonly:"",tabindex:"-1"}}),g.A(this,this.M$),this.M$.di(this.element));this.y4?.setIcon(PCg());this.EL?.setIcon(fDk());this.k0?.setIcon(this.Z.Y("delhi_modern_web_player_icons")? GmG():Zk());this.DE?.setIcon(Zk());this.xp.setIcon({L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{"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.ZB.setIcon(CS());this.showVideoInfo.setIcon(TOk());this.D(f,"onLoopChange",this.onLoopChange);this.D(f,"videodatachange",this.onVideoDataChange);this.D(f,"fullscreentoggled",()=>{np(this)}); this.D(f,"minimized",()=>{np(this);this.DE?.FG(!this.Z.isMinimized()&&this.Z.S().showMiniplayerButton)}); rIl(this);LTO(this,this.Z.getVideoData())}TI(){this.rA.HL()}b3(){gL(this.dL.element)}vu(){rW(this,this.Z.getDebugText(!0))&&PO(this.Zw,LS())}V1(){rW(this,this.Z.getVideoEmbedCode())&&PO(this.Zw,SZk());this.Z.logClick(this.wU.element)}Wu(){rW(this,this.Z.getVideoUrl(!0,!0))&&PO(this.Zw,w_());this.Z.logClick(this.getVideoUrl.element)}L2(){rW(this,this.Z.getVideoUrl(!1,!0))&&PO(this.Zw,w_());this.Z.logClick(this.gU.element)}onLoopChange(f){this.EL?.C(f)}dF(){this.Z.setLoopVideo(this.EL.getValue());this.rA.HL(); this.Z.logClick(this.EL.element)}ZG(){g.yW(this.Z,"onCollapseMiniplayer");this.rA.HL()}Hu(){g.yW(this.Z,"onCollapseMiniplayer",!0);this.rA.HL()}Qe(f){this.Z.reportPlaybackIssue();if(g.mv(f,this.Z,!iD(this.Z.S()))){f=this.Z;const e=f.app.getFeedbackProductData();g.id(f,"onFeedbackStartRequest",e);f.isFullscreen()&&f.toggleFullscreen()}this.rA.HL()}D$(){g.$7(this.Z,"isVideoInfoVisible",[])?g.$7(this.Z,"hideVideoInfo",[]):g.$7(this.Z,"showVideoInfo",[]);this.rA.HL()}Fz(){this.y4&&(this.uW||(this.uW= new ceO(this.Z,this.y4.element),g.A(this,this.uW),g.qX(this.Z,this.uW.element,4)),this.uW.show(),this.rA.HL(),this.Z.logClick(this.y4.element))}onVideoDataChange(f,e){LTO(this,e)}AE(f){super.AE(f);this.Z.logVisibility(this.wU.element,f);this.Z.logVisibility(this.getVideoUrl.element,f);this.Z.logVisibility(this.gU.element,f);this.EL&&this.Z.logVisibility(this.EL.element,f);this.y4&&this.Z.logVisibility(this.y4.element,f);this.k0&&this.Z.logVisibility(this.k0.element,f)}};var Aew=class extends g.Zq{constructor(f,e){super(f);this.Zw=e;this.G=new g.ep(this);this.X=new g.T6(this.BS,1E3,this);this.Cq=this.RC=null;g.A(this,this.G);g.A(this,this.X);e=this.Z.S();f.createClientVe(this.element,this,28656);g.PW(this.element,"ytp-contextmenu");this.Z.S().experiments.SI("delhi_modern_web_player")&&g.yQ(e)&&g.PW(this.element,"ytp-delhi-modern-contextmenu");tO5(this);this.hide()}onTouchStart(f){const e=Gw(f);e&&(bc(e,"a")||bc(e,null,"ytp-no-contextmenu"))||this.ef||(this.Cq=(f= f.touches?.item(0))?new g.OE(f.clientX,f.clientY):new g.OE(0,0),this.X.start())}A(){this.X.stop()}BS(){this.open(this.Cq)}N(){if(this.RC&&dqw(this.RC)){const f=dqw(this.RC).element;f.tabIndex=-1;f.focus()}else this.element.tabIndex=-1,this.element.focus()}show(){this.RC||(this.RC=new YHH(this.Z,this,this.Zw),g.A(this,this.RC),g.Th(this,this.RC));this.RC.onLoopChange(this.Z.getLoopVideo());super.show();this.Z.logVisibility(this.element,!0);this.RC.AE(!0)}hide(){tO5(this);super.hide();this.Z.logVisibility(this.element, !1);this.RC&&this.RC.AE(!1)}PS(f){const e=Gw(f);this.ef||e&&(bc(e,"a")||bc(e,null,"ytp-no-contextmenu"))||(f.preventDefault(),this.open(new g.OE(f.pageX,f.pageY)))}Fx(f){if(f){const e=f.getBoundingClientRect();this.open(new g.OE(e.x,e.y))}super.Fx(f)}open(f){H7G(this);var e=this.Z.getVideoData();g.h(this.element,"ytp-dni",e.AF);this.element.style.left="";this.element.style.top="";f.x++;f.y++;super.Fx();var B=Yr(this).body;e=new YC(0,Infinity,Infinity,0);var n=Qa(B);for(var r=n.C.body,L=n.C.documentElement, d=ya(n.C);B=X5m(B);)if((!g.IA||B.clientHeight!=0||B!=r)&&B!=r&&B!=L&&gw(B,"overflow")!="visible"){const t=g.Tt(B),H=new g.OE(B.clientLeft,B.clientTop);t.x+=H.x;t.y+=H.y;e.top=Math.max(e.top,t.y);e.right=Math.min(e.right,t.x+B.clientWidth);e.bottom=Math.min(e.bottom,t.y+B.clientHeight);e.left=Math.max(e.left,t.x)}r=d.scrollLeft;d=d.scrollTop;e.left=Math.max(e.left,r);e.top=Math.max(e.top,d);n=Xl(n.C.defaultView||window);e.right=Math.min(e.right,r+n.width);e.bottom=Math.min(e.bottom,d+n.height);n=e.top>= 0&&e.left>=0&&e.bottom>e.top&&e.right>e.left?e:null;e=this.size;f=f.clone();e=e.clone();n&&(d=e,r=5,(r&65)==65&&(f.x=n.right)&&(r&=-2),(r&132)==132&&(f.y=n.bottom)&&(r&=-5),f.xn.right&&(d.width=Math.min(n.right-f.x,L+d.width-n.left),d.width=Math.max(d.width,0))),f.x+d.width>n.right&&r&1&&(f.x=Math.max(n.right-d.width,n.left)),f.y n.bottom&&(d.height=Math.min(n.bottom-f.y,L+d.height-n.top),d.height=Math.max(d.height,0))),f.y+d.height>n.bottom&&r&4&&(f.y=Math.max(n.bottom-d.height,n.top)));n=new g.oY(0,0,0,0);n.left=f.x;n.top=f.y;n.width=e.width;n.height=e.height;g.Em(this.element,new g.OE(n.left,n.top));this.G.G();this.G.D(Yr(this),"contextmenu",this.Lq);this.G.D(this.Z,"fullscreentoggled",this.onFullscreenToggled);this.G.D(this.Z,"pageTransition",this.cS)}Lq(f){if(!f.defaultPrevented){const e=Gw(f);g.HN(this.element,e)||this.HL(); this.Z.S().disableNativeContextMenu&&f.preventDefault()}}onFullscreenToggled(){this.HL();H7G(this)}cS(){this.HL()}};var jz5=class extends g.y{constructor(f,e){super({L:"button",y9:["ytp-button","ytp-copylink-button"],O:{title:f.Y("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.XY(f.S()))},j:[{L:"div",B:"ytp-copylink-icon",Ga:"{{icon}}"},{L:"div",B:"ytp-copylink-title",Ga:"Copiar link",O:{"aria-hidden":"true"}}]});this.api=f;this.C=e;this.visible=!1;this.tooltip=this.C.Fi();e=f.S();this.tooltip.element.setAttribute("aria-live","polite"); g.h(this.element,"ytp-show-copylink-title",g.XY(e));f.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.D(f,"videodatachange",this.gi);this.D(f,"videoplayerreset",this.gi);this.D(f,"appresize",this.gi);this.gi();this.addOnDisposeCallback(g.tK(this.tooltip,this.element))}async onClick(){var f=this.api.S();const e=this.api.getVideoData(),B=this.api.getPlaylistId();f=f.getVideoUrl(e.videoId,B,void 0,!0);await kvM(this,f)&&CYY(this);this.api.logClick(this.element)}gi(){this.updateValue("icon", {L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{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.updateValue("tooltip-title","Copiar link");this.visible=wGl(this);g.h(this.element,"ytp-copylink-button-visible",this.visible); this.FG(this.visible);this.tooltip.lR();this.api.logVisibility(this.element,this.visible&&this.Ed)}AE(f){super.AE(f);this.api.logVisibility(this.element,this.visible&&f)}bY(){super.bY();g.$i(this.element,"ytp-copylink-button-visible")}};var OkC=class extends g.y{constructor(f){super({L:"div",B:"ytp-doubletap-ui-legacy",j:[{L:"div",B:"ytp-doubletap-fast-forward-ve"},{L:"div",B:"ytp-doubletap-rewind-ve"},{L:"div",B:"ytp-doubletap-static-circle",j:[{L:"div",B:"ytp-doubletap-ripple"}]},{L:"div",B:"ytp-doubletap-overlay-a11y"},{L:"div",B:"ytp-doubletap-seek-info-container",j:[{L:"div",B:"ytp-doubletap-arrows-container",j:[{L:"span",B:"ytp-doubletap-base-arrow"},{L:"span",B:"ytp-doubletap-base-arrow"},{L:"span",B:"ytp-doubletap-base-arrow"}]}, {L:"div",B:"ytp-doubletap-tooltip",j:[{L:"div",B:"ytp-seek-icon-text-container",j:[{L:"div",B:"ytp-seek-icon",Ga:"{{seekIcon}}"},{L:"div",B:"ytp-chapter-seek-text-legacy",Ga:"{{seekText}}"}]},{L:"div",B:"ytp-doubletap-tooltip-label",Ga:"{{seekTime}}"}]}]}]});this.Z=f;this.V=new g.T6(this.show,10,this);this.G=new g.T6(this.hide,700,this);this.U=this.J=0;this.N=this.W=!1;this.C=this.JL("ytp-doubletap-static-circle");g.A(this,this.V);g.A(this,this.G);this.hide();this.X=this.JL("ytp-doubletap-fast-forward-ve"); this.K=this.JL("ytp-doubletap-rewind-ve");this.Z.createClientVe(this.X,this,28240);this.Z.createClientVe(this.K,this,28239);this.Z.logVisibility(this.X,!0);this.Z.logVisibility(this.K,!0);this.W=f.Y("web_show_cumulative_seek_time");this.N=f.Y("web_center_static_circles")}show(){super.show();this.G.M0()}hide(){this.V.stop();this.J=0;this.JL("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.$i(this.element,"ytp-chapter-seek");g.$i(this.element,"ytp-time-seeking");super.hide()}TG(f, e,B,n){this.J=f===this.U?this.J+n:n;this.U=f;var r=f===-1?this.K:this.X;r&&this.Z.logClick(r);this.W?this.G.stop():this.G.M9();this.V.start();this.element.setAttribute("data-side",f===-1?"back":"forward");var L=3*this.Z.AL().getPlayerSize().height;r=this.Z.AL().getPlayerSize();r=r.width/3-3*r.height;this.C.style.width=`${L}px`;this.C.style.height=`${L}px`;f===1?(this.C.style.left="",this.C.style.right=`${r}px`):f===-1&&(this.C.style.right="",this.C.style.left=`${r}px`);const d=L*2.5;L=d/2;const t= this.JL("ytp-doubletap-ripple");t.style.width=`${d}px`;t.style.height=`${d}px`;f===1?(f=this.Z.AL().getPlayerSize().width-e+Math.abs(r),t.style.left="",t.style.right=`${f-L}px`):f===-1&&(f=Math.abs(r)+e,t.style.right="",t.style.left=`${f-L}px`);t.style.top=`calc((33% + ${Math.round(B)}px) - ${L}px)`;if(B=this.JL("ytp-doubletap-ripple"))B.classList.remove("ytp-doubletap-ripple"),B.classList.add("ytp-doubletap-ripple");vfw(this,this.W?this.J:n)}yE(f,e,B=null){if(B){var n=f===-1?this.K.visualElement: this.X.visualElement;B={seekData:B};const r=g.be();r&&P6(r,n,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",B)}this.J=f===this.U?this.J+e:e;this.U=f;n=this.Z.AL().getPlayerSize();this.W?this.G.stop():this.G.M9();this.V.start();this.element.setAttribute("data-side",f===-1?"back":"forward");g.PW(this.element,"ytp-time-seeking");this.C.style.width="110px";this.C.style.height="110px";B=n.width*.1-15;f===1?this.N?(this.C.style.right=`${B}px`,this.C.style.left=""):(this.C.style.right="",this.C.style.left= `${n.width*.8-30}px`):f===-1&&(this.N?(this.C.style.right="",this.C.style.left=`${B}px`):(this.C.style.right="",this.C.style.left=`${n.width*.1-15}px`));this.C.style.top=`${n.height*.5+15}px`;vfw(this,this.W?this.J:e)}u7(f,e,B=null){this.G.M9();this.V.start();switch(f){case -1:f="back";break;case 1:f="forward";break;default:f=""}this.element.setAttribute("data-side",f);this.C.style.width="0";this.C.style.height="0";g.PW(this.element,"ytp-chapter-seek");this.updateValue("seekText",e);this.updateValue("seekTime", "");e=this.JL("ytp-seek-icon");if(B){a:if(B){switch(B){case "PREMIUM_STANDALONE":B=IrO();break a;case "PREMIUM_STANDALONE_CAIRO":B=$_M();break a}B=void 0}else B=null;this.updateValue("seekIcon",B);e.style.display="inline-block"}else e.style.display="none"}};var oaw=class extends w1{constructor(f){super(f,!1,!0);this.Z9=[];this.uC=[];this.element.setAttribute("data-overlay-order","9");b7H(this,this.Z.getVideoData());this.Cq=!0;this.badge.element.classList.add("ytp-featured-product");this.MC=new g.y({L:"div",B:"ytp-featured-product-open-in-new"});g.A(this,this.MC);this.countdownTimer=new g.y({L:"text",B:"ytp-featured-product-countdown",Ga:"{{content}}"});this.countdownTimer.hide();g.A(this,this.countdownTimer);this.V=new g.y({L:"div",B:"ytp-featured-product-trending", j:[{L:"div",B:"ytp-featured-product-trending-icon"},{L:"text",B:"ytp-featured-product-trending-text",Ga:"{{trendingOffer}}"}]});this.V.hide();g.A(this,this.V);this.overflowButton=new g.y({L:"button",y9:["ytp-featured-product-overflow-icon","ytp-button"],O:{"aria-haspopup":"true"}});this.overflowButton.hide();g.A(this,this.overflowButton);this.A=new g.y({L:"text",B:"ytp-featured-product-exclusive-countdown",Ga:"{{content}}",O:{id:"exclusiveCountdown","aria-hidden":"true"}});this.A.hide();g.A(this, this.A);this.N=new g.y({L:"div",B:"ytp-featured-product-exclusive-container",O:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},j:[{L:"div",B:"ytp-featured-product-exclusive-badge-container",j:[{L:"div",B:"ytp-featured-product-exclusive-badge",j:[{L:"text",B:"ytp-featured-product-exclusive-badge-text",Ga:"{{exclusive}}",O:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.A]});this.N.hide();g.A(this,this.N);this.banner=new g.y({L:"a",B:"ytp-featured-product-container",j:[{L:"div",B:"ytp-featured-product-thumbnail", j:[{L:"img",O:{src:"{{thumbnail}}"}},this.MC]},{L:"div",B:"ytp-featured-product-details",j:[{L:"text",B:"ytp-featured-product-title",Ga:"{{title}}"},this.Z.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{L:"div",B:"ytp-featured-product-price-container",O:{"aria-label":"{{priceA11yText}}"},j:[{L:"text",B:"ytp-featured-product-price-when-promotion-text-enabled",Ga:"{{price}}",O:{"aria-hidden":"true"}},{L:"text",B:"ytp-featured-product-promotion-text",Ga:"{{promotionText}}", O:{"aria-hidden":"true"}}]}:{L:"div",O:{"aria-label":"{{priceA11yText}}"},j:[{L:"text",B:"ytp-featured-product-price",Ga:"{{price}}",O:{"aria-hidden":"true"}},{L:"text",B:"ytp-featured-product-sales-original-price",Ga:"{{salesOriginalPrice}}",O:{"aria-hidden":"true"}},{L:"text",B:"ytp-featured-product-price-drop-reference-price",Ga:"{{priceDropReferencePrice}}",O:{"aria-hidden":"true"}}]},this.Z.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{L:"div",B:"ytp-featured-product-when-promotion-text-enabled", j:[{L:"text",B:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",Ga:"{{affiliateDisclaimer}}"},this.V,{L:"text",B:"ytp-featured-product-vendor-when-promotion-text-enabled",Ga:"{{vendor}}"}]}:{L:"div",j:[{L:"text",B:"ytp-featured-product-affiliate-disclaimer",Ga:"{{affiliateDisclaimer}}"},this.Z.Y("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.N:null,this.V,{L:"text",B:"ytp-featured-product-vendor",Ga:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]}); g.A(this,this.banner);this.banner.di(this.W.element);this.D(this.Z,g.kk("featured_product"),this.zt);this.D(this.Z,g.Ca("featured_product"),this.uY);this.D(this.Z,"videodatachange",this.onVideoDataChange);this.D(this.overflowButton.element,"click",this.Cc);this.D(f,"featuredproductdismissed",this.X)}Cc(f){this.tL||(this.tL=new hqm(this.Z),g.A(this,this.tL));this.EE?.menu?.menuRenderer&&(this.tL.open(this.EE.menu.menuRenderer,f.target),f.preventDefault())}K(){return!!this.C}qC(){return!!this.C}Lq(f){f.target=== this.overflowButton.element?f.preventDefault():(this.hF&&g.yW(this.Z,"innertubeCommand",this.hF),this.U(!1))}X(){this.U(!0);if(this.C?.bannerData?.dismissedStatusKey){if(this.uC.includes(this.C.bannerData.dismissedStatusKey))return;this.uC.push(this.C.bannerData.dismissedStatusKey)}this.uY();if(this.Z.Y("web_enable_shopping_timely_shelf_client")){const f={};g.mj(f,cC5,{overlayId:"player_overlay_timely_shelf"});g.yW(this.Z,"innertubeCommand",f)}}Wd(){this.uY();Lp(this)}zt(f){if(f.id!==this.C?.identifier){this.uY(); for(const e of this.Z9){const B=e?.bannerData?.itemData;if(!B||e.identifier!==f.id)continue;if(this.uC.includes(e?.bannerData?.dismissedStatusKey||""))return;this.C=e;this.banner.element.setAttribute("aria-label",B.accessibilityLabel||"");B.trackingParams&&(this.J=!0,this.Z.setTrackingParams(this.badge.element,B.trackingParams));this.show();this.cS.show();Ut(this);this.MC.FG(!B.stayInApp);this.Ch?.stop();this.countdownTimer.hide();tL(this);dW(this);this.hF=g.u(B.onTapCommand,le);const n=g.u(B.menuOnTap, le);n&&(this.EE=g.u(n,od5));this.banner.update({thumbnail:(B.thumbnailSources||[])[0]?.url,title:B.productTitle,price:B.priceReplacementText?B.priceReplacementText:B.price,salesOriginalPrice:Z7C(this),priceDropReferencePrice:Rtm(this),promotionText:KTH(this),priceA11yText:q_g(this),affiliateDisclaimer:B.affiliateDisclaimer,vendor:kH(this)});B?.hiddenProductOptions?.showDropCountdown&&B?.hiddenProductOptions?.dropTimestampMs&&(this.Ch=new g.T6(()=>{zt0(this)},1E3),this.MC.hide(),this.countdownTimer.show(), zt0(this)); this.Z.Y("web_player_enable_featured_product_banner_exclusives_on_desktop")&&a96(this)&&(this.UE=new g.T6(()=>{pGl(this)},1E3),pGl(this))}this.Z.getRootNode()&&g.PW(this.Z.getRootNode(),"ytp-featured-product-shown")}}uY(){this.C&&(this.C=void 0,this.G(),this.Z.getRootNode()&&g.$i(this.Z.getRootNode(),"ytp-featured-product-shown"))}onVideoDataChange(f,e){b7H(this,e); f==="dataloaded"&&Lp(this);f=g.u(e.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.productsInVideoOverlayRenderer,jkm);this.overflowButton.show();this.dismissButton.hide();const B=f?.featuredProductsEntityKey;this.trendingOfferEntityKey=f?.trendingOfferEntityKey;this.Z9.length||(Y_6(this,B),dW(this));this.K5?.();this.K5=g.r7.subscribe(()=>{Y_6(this,B);dW(this)})}bY(){Lp(this); this.Ch?.stop();this.countdownTimer.hide();tL(this);super.bY()}};var VgH=class extends g.y{constructor(f,e,B){super({L:"div",y9:["ytp-info-panel-action-item"],j:[{L:"div",B:"ytp-info-panel-action-item-disclaimer",Ga:"{{disclaimer}}"},{L:"a",y9:["ytp-info-panel-action-item-button","ytp-button"],O:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},j:[{L:"div",B:"ytp-info-panel-action-item-icon",Ga:"{{icon}}"},{L:"div",B:"ytp-info-panel-action-item-label",Ga:"{{label}}"}]}]});this.Z=f;this.G=B;this.disclaimer=this.JL("ytp-info-panel-action-item-disclaimer"); this.button=this.JL("ytp-info-panel-action-item-button");this.H4=!1;this.Z.createServerVe(this.element,this,!0);this.listen("click",this.onClick);f="";var n=g.u(e?.onTap,le);B=g.u(n,g.jL);this.H4=!1;B?(f=B.url||"",f.startsWith("//")&&(f="https:"+f),this.H4=!0,g.E0(this.button,g.hs(f))):(B=g.u(n,lN0))&&!this.G?((f=B.phoneNumbers)&&f.length>0?(f="sms:"+f[0],B.messageText&&(f+="?&body="+encodeURI(B.messageText))):f="",this.H4=!0,g.E0(this.button,g.hs(f,[Xdg]))):(B=g.u(n,VRG))&&!this.G&&(f=B.phoneNumber? "tel:"+B.phoneNumber:"",this.H4=!0,g.E0(this.button,g.hs(f,[sE5])));!f&&(B=g.u(e?.onTap,le),n=g.u(B,dv))&&(this.H4=!0,this.C=B,this.feedbackToken=n.feedbackToken);(B=e.disclaimerText?.content)?(this.button.style.borderBottom="1px solid white",this.button.style.paddingBottom="16px",this.update({label:e.bodyText?.content,icon:AIM(e.icon?.iconType),disclaimer:B})):(this.disclaimer.style.display="none",this.update({label:e.bodyText?.content,icon:AIM(e.icon?.iconType)}));this.Z.setTrackingParams(this.element, e.trackingParams||null);this.H4&&(this.J={externalLinkData:{url:f}})}onClick(){this.Z.logClick(this.element,this.J);if(this.C&&this.feedbackToken){const f=this.Z.pB();f?.hK(this.C)&&(D7(f,this.C,{feedbackTokens:[this.feedbackToken]}),this.Z.publish("infopaneldetaildismissed"))}}};var lFG=class extends uI{constructor(f,e){const B=ie();super(f,{L:"div",B:"ytp-info-panel-detail-skrim",j:[{L:"div",B:"ytp-info-panel-detail",O:{role:"dialog",id:B},j:[{L:"div",B:"ytp-info-panel-detail-header",j:[{L:"div",B:"ytp-info-panel-detail-title",Ga:"{{title}}"},{L:"button",y9:["ytp-info-panel-detail-close","ytp-button"],O:{"aria-label":"Fechar"},j:[g.Hl()]}]},{L:"div",B:"ytp-info-panel-detail-body",Ga:"{{body}}"},{L:"div",B:"ytp-info-panel-detail-items"}]}]},250);this.C=e;this.items=this.JL("ytp-info-panel-detail-items"); this.G=new g.ep(this);this.itemData=[];this.J=B;this.D(this.JL("ytp-info-panel-detail-close"),"click",this.HL);this.D(this.JL("ytp-info-panel-detail-skrim"),"click",this.HL);this.D(this.JL("ytp-info-panel-detail"),"click",n=>{n.stopPropagation()}); this.D(this.Z,"infopaneldetaildismissed",()=>{this.HL()}); g.A(this,this.G);this.Z.createServerVe(this.element,this,!0);this.D(f,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",f.getVideoData());this.hide()}show(){super.show();this.Z.publish("infopaneldetailvisibilitychange",!0);this.Z.logVisibility(this.element,!0);for(const f of this.itemData)f.Z.logVisibility(f.element,!0)}hide(){super.hide();this.Z.publish("infopaneldetailvisibilitychange",!1);this.Z.logVisibility(this.element,!1);for(const f of this.itemData)f.Z.logVisibility(f.element, !1)}getId(){return this.J}aJ(){return this.itemData.length}onVideoDataChange(f,e){if(e){this.update({title:e.qj?.title?.content||"",body:e.qj?.bodyText?.content||""});this.Z.setTrackingParams(this.element,e.qj?.trackingParams||null);for(const B of this.itemData)B.dispose();this.itemData=[];if(e.qj?.ctaButtons)for(const B of e.qj.ctaButtons)if(f=g.u(B,KH5))f=new VgH(this.Z,f,this.C),f.H4&&(this.itemData.push(f),f.di(this.items))}}bY(){this.hide();super.bY()}};var uvM=class extends g.y{constructor(f,e){super({L:"button",B:"ytp-info-panel-preview",O:{"aria-live":"assertive","aria-atomic":"true","aria-owns":e.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.XY(f.S()))},j:[{L:"div",B:"ytp-info-panel-preview-text",Ga:"{{text}}"},{L:"div",B:"ytp-info-panel-preview-chevron",Ga:"{{chevron}}"}]});this.Z=f;this.mA=this.C=this.videoId=null;this.isDismissed=this.J=this.showControls=this.G=!1;this.D(this.element,"click",()=>{f.logClick(this.element);f.Vc(); AK(e)}); this.fade=new g.Ob(this,250,!1,100);g.A(this,this.fade);this.Z.createServerVe(this.element,this,!0);this.D(f,"videodatachange",this.onVideoDataChange);this.D(f,"presentingplayerstatechange",this.X);this.D(this.Z,"paidcontentoverlayvisibilitychange",this.V);this.D(this.Z,"infopaneldetailvisibilitychange",this.V);const B=f.getVideoData()||{};(B.Z9?.title?.content||B.Z9?.bodyText?.content)&&Cp(this,B);this.D(f,"onShowControls",this.U);this.D(f,"onHideControls",this.W);this.D(this.Z,"infopaneldetaildismissed", ()=>{this.isDismissed=!0;this.hide()})}onVideoDataChange(f,e){Cp(this,e); this.mA&&O7l(this,this.mA)}X(f){const e=this.Z.getVideoData();this.videoId!==e.videoId&&Cp(this,e);O7l(this,f.state);this.mA=f.state}V(f){(this.J=f)?this.hide():this.C&&!this.isDismissed&&this.show()}U(){this.G||this.Fx();this.showControls=!0}W(){this.G||this.HL();this.showControls=!1}Fx(){if(!this.isDismissed){var f=this.Z?.getPlayerSize(),e=f.width<380;f=f.height<(this.Z?.isEmbedsShortsMode()?400:280);(this.Z?.getPlayerStateObject().isCued()||this.Z?.getPlayerStateObject().C(1024))&&e&&f||!this.C|| this.J||(this.fade.show(),this.Z.publish("infopanelpreviewvisibilitychange",!0),this.Z.logVisibility(this.element,!0))}}HL(){this.C&&!this.J&&(this.fade.hide(),this.Z.publish("infopanelpreviewvisibilitychange",!1),this.Z.logVisibility(this.element,!1))}K(){this.G=!1;this.showControls||this.HL()}};var Fz6={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(Fz6).reduce((f,e)=>{f[Fz6[e]]=e;return f},{}); var meC={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(meC).reduce((f,e)=>{f[meC[e]]=e;return f},{}); var UeG={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(UeG).reduce((f,e)=>{f[UeG[e]]=e;return f},{});var j6,NBm;j6=[{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"}];NBm=[{option:0,text:wW(0)},{option:.25,text:wW(.25)},{option:.5,text:wW(.5)},{option:.75,text:wW(.75)},{option:1,text:wW(1)}]; g.Rs=[{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:j6},{option:"fontSizeIncrement",text:"Tamanho da fonte",options:[{option:-2,text:wW(.5)},{option:-1,text:wW(.75)},{option:0,text:wW(1)},{option:1, text:wW(1.5)},{option:2,text:wW(2)},{option:3,text:wW(3)},{option:4,text:wW(4)}]},{option:"background",text:"Cor de fundo",options:j6},{option:"backgroundOpacity",text:"Opacidade de fundo",options:NBm},{option:"windowColor",text:"Cor da janela",options:j6},{option:"windowOpacity",text:"Opacidade da janela",options:NBm},{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:wW(.25)},{option:.5,text:wW(.5)},{option:.75,text:wW(.75)},{option:1,text:wW(1)}]}];var hxk=[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],gag=class extends g.ep{constructor(f,e,B,n,r,L,d,t){super();this.api=f;this.N=e;this.contextMenu=B;this.n5=n;this.Zw=r;this.C=L;this.Ed=d;this.progressBar=t;this.W=new g.T6(()=>{FTw(this,!1)},1E3); this.J="";this.V={aG:!1,sx:!1,Y7:!1};g.A(this,this.W);this.D(e,"mousedown",()=>{bI(this,!1)}); this.D(B.element,"mousedown",()=>{bI(this,!1)}); this.D(e,"keydown",this.U);this.D(B.element,"keydown",this.U);this.D(e,"keyup",this.K);this.D(B.element,"keyup",this.K)}U(f){f.repeat||(this.V.aG=!1);let e=!1;const B=f.keyCode;var n=Gw(f);let r=!f.altKey&&!f.ctrlKey&&!f.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||hxk.includes(B));var L=!1;let d=!1;const t=this.api.S();f.defaultPrevented?(r=!1,d=!0):t.UE&&!this.api.isMutedByEmbedsMutedAutoplay()&&(r=!1);if(B===9)e=!0;else{if(n)switch(B){case 32:case 13:if(n.tagName==="BUTTON"||n.tagName=== "A"||n.tagName==="INPUT")e=!0,r=!1;else if(r){var H=n.getAttribute("role");!H||H!=="option"&&H!=="button"&&H.indexOf("menuitem")!==0||(e=!0,n.click(),L=!0)}break;case 37:case 39:case 36:case 35:e=n.getAttribute("role")==="slider";break;case 38:case 40:H=n.getAttribute("role"),n=B===38?n.previousSibling:n.nextSibling,H==="slider"?e=!0:r&&(H==="option"?(n&&n.getAttribute("role")==="option"&&n.focus(),L=e=!0):H&&H.indexOf("menuitem")===0&&(n&&n.hasAttribute("role")&&n.getAttribute("role").indexOf("menuitem")=== 0&&n.focus(),L=e=!0))}if(r&&!L)switch(B){case 38:L=Math.min(this.api.getVolume()+5,100);I_(this.Zw,L,!1);this.api.setVolume(L);d=L=!0;break;case 40:L=Math.max(this.api.getVolume()-5,0);I_(this.Zw,L,!0);this.api.setVolume(L);d=L=!0;break;case 36:this.api.Xq()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),d=L=!0);break;case 35:this.api.Xq()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),d=L=!0)}}e&&bI(this,!0);(e||d)&&this.n5.FO();(L|| r&&this.handleGlobalKeyDown(B,f.shiftKey,f.ctrlKey,f.altKey,f.metaKey,f.key,f.code,f.repeat))&&f.preventDefault();t.K&&(f={keyCode:f.keyCode,altKey:f.altKey,ctrlKey:f.ctrlKey,metaKey:f.metaKey,shiftKey:f.shiftKey,handled:f.defaultPrevented,fullscreen:this.api.isFullscreen()},g.f_(this.api,"onKeyPress",f))}K(f){const e=f.keyCode;!this.V.sx&&this.handleGlobalKeyUp(e,f.shiftKey,f.ctrlKey,f.altKey,f.metaKey,f.key,f.code)&&f.preventDefault()}handleGlobalKeyUp(f,e,B,n,r,L,d){this.api.publish("keyboardserviceglobalkeyup", {keyCode:f,shiftKey:e,ctrlKey:B,altKey:n,metaKey:r,key:L,code:d});e=!1;if(this.V.aG)return e;(L=g.Ry(this.api.iC()))&&(L=L.Pl)&&L.ef&&(L.Y3(f),e=!0);switch(f){case 9:bI(this,!0);e=!0;break;case 32:this.api.Y("web_speedmaster_spacebar_control")&&(this.api.S().UE||(e=this.u4(this.progressBar?.Aq()?.isEnabled)));break;case 39:(this.api.Y("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(r||B&&n))&&(Dp?n:B)&&this.api.Xq()&&this.api.Y("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(), f=(f=this.api.getVideoData())?f.lC:[],B=VO6(f,this.api.getCurrentTime()*1E3),B!==-1&&this.C!=null&&(this.C.u7(1,f[B].title),this.api.seekTo(f[B].startTime/1E3,void 0,void 0,void 0,52),e=!0))}return e}handleGlobalKeyDown(f,e,B,n,r,L,d,t){t||(this.V.aG=!1);var H=!1,k=this.api.S();if(k.UE&&!this.api.isMutedByEmbedsMutedAutoplay())return H;var C=g.Ry(this.api.iC());if(C&&(C=C.Pl)&&C.ef)switch(f){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:H=C.Ul(f)}k.U||H||(H=L||String.fromCharCode(f).toLowerCase(), this.J+=H,"awesome".indexOf(this.J)===0||this.api.Y("web_player_rtr_ctrls")&&"bday".indexOf(this.J)===0?(H=!0,4===this.J.length&&this.J==="bday"&&this.api.Y("web_player_rtr_ctrls")&&(oH5(this.N),this.n5.FO()),7===this.J.length&&this.J==="awesome"&&fP(this.api.getRootNode(),"ytp-color-party")):(this.J=H,H="awesome".indexOf(this.J)===0||"bday".indexOf(this.J)===0));if(!H&&(!this.api.isMutedByEmbedsMutedAutoplay()||hxk.includes(f))){C=this.api.getVideoData();var w=this.progressBar?.Aq()?.isEnabled;C= C?C.lC:[];const v=Dp?n:B;switch(f){case 80:e&&!k.Lq&&(PO(this.Zw,ink(),"Anterior"),this.api.previousVideo(),H=!0);break;case 78:e&&!k.Lq&&(PO(this.Zw,vl(),"Pr\u00f3ximo"),this.api.nextVideo(),H=!0);break;case 74:this.api.Xq()&&(this.api.startSeekCsiAction(),this.C?this.api.Y("enable_key_press_seek_logging")?(H=ZG(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.C.yE(-1,10,H)):this.C.yE(-1,10):PO(this.Zw,{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"}, j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{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),H=!0);break;case 76:this.api.Xq()&&(this.api.startSeekCsiAction(),this.C?this.api.Y("enable_key_press_seek_logging")?(H=ZG(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.C.yE(1,10,H)):this.C.yE(1,10):PO(this.Zw,{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{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),H=!0);break;case 37:if(this.api.Xq())if(this.api.startSeekCsiAction(),v){if(this.api.Y("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(r||B&&n))w=l9H(C,this.api.getCurrentTime()*1E3),w!==-1&&this.C!=null&&(this.C.u7(-1,C[w].title),this.api.seekTo(C[w].startTime/1E3,void 0,void 0,void 0,53),H=!0)}else this.C?this.api.Y("enable_key_press_seek_logging")?(H=ZG(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.C.yE(-1,5,H)):this.C.yE(-1,5):PO(this.Zw,{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{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),H=!0;break;case 39:this.api.Xq()&&(this.api.startSeekCsiAction(),v?this.api.Y("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.Y("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(r||B&&n)||(w=VO6(C,this.api.getCurrentTime()*1E3),w!==-1&&this.C!=null&&(this.C.u7(1,C[w].title),this.api.seekTo(C[w].startTime/1E3,void 0,void 0,void 0,52),H=!0)):(this.C!=null?this.api.Y("enable_key_press_seek_logging")?(H=ZG(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.C.yE(1,5,H)):this.C.yE(1,5):PO(this.Zw,{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{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),H=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),I_(this.Zw,this.api.getVolume(),!1)):(this.api.mute(),I_(this.Zw,0,!0));H=!0;break;case 32:H=this.api.Y("web_speedmaster_spacebar_control")?!this.api.S().Lq:this.u4(w);break;case 75:H=this.u4(w);break;case 190:e?k.enableSpeedOptions&&UqY(this)&&(H=this.api.getPlaybackRate(),this.api.setPlaybackRate(H+.25,!0),Wkw(this.Zw,!1),H=!0):this.api.Xq()&&(this.step(1),H=!0);break;case 188:e? k.enableSpeedOptions&&UqY(this)&&(H=this.api.getPlaybackRate(),this.api.setPlaybackRate(H-.25,!0),Wkw(this.Zw,!0),H=!0):this.api.Xq()&&(this.step(-1),H=!0);break;case 70:jwG(this.api)&&(this.api.toggleFullscreen().catch(()=>{}),H=!0); break;case 27:w?(this.progressBar.FY(),H=!0):this.Ed()&&(H=!0)}if(k.controlsType!=="3")switch(f){case 67:g.o_(this.api.iC())&&(k=this.api.getOption("captions","track"),this.api.toggleSubtitles(),sCm(this.Zw,!k||k&&!k.displayName),H=!0);break;case 79:Kp(this,"textOpacity");break;case 87:Kp(this,"windowOpacity");break;case 187:case 61:Kp(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:Kp(this,"fontSizeIncrement",!0,!0)}let b;e||B||n||(f>=48&&f<=57?b=f-48:f>=96&&f<=105&&(b=f-96));b!=null&&this.api.Xq()&& !this.api.Y("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),k=this.api.getProgressState(),this.api.seekTo(b/10*(k.seekableEnd-k.seekableStart)+k.seekableStart,void 0,void 0,void 0,81),H=!0);H&&this.n5.FO()}this.V.Y7=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:f,shiftKey:e,ctrlKey:B,altKey:n,metaKey:r,key:L,code:d,repeat:t},this.V);this.V.Y7&&(H=!0,this.n5.FO());return H}step(f){this.api.Xq();if(this.api.getPlayerStateObject().isPaused()){var e=this.api.getVideoData().G; e&&(e=e.video)&&this.api.seekBy(f/(e.fps||30),void 0,void 0,f>0?77:78)}}u4(f){if(!this.api.S().Lq){const e=this.api.getVideoData()?.getPlayerResponse()?.playabilityStatus;e&&g.u(e.miniplayer,gdw)?.playbackMode==="PLAYBACK_MODE_PAUSED_ONLY"&&g.yW(this.api,"onExpandMiniplayer");f?this.progressBar.Cc():(f=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.Zw.l7(f),f?this.api.playVideo():this.api.pauseVideo());return!0}return!1}bY(){this.W.M9();super.bY()}};var SHH=class extends g.y{constructor(f,e){super({L:"button",y9:["ytp-button","ytp-overflow-button"],O:{title:f.Y("player_tooltip_data_title_killswitch")?"Mais":"","data-tooltip-title":"Mais","aria-haspopup":"true","aria-owns":e.element.id},j:[{L:"div",B:"ytp-overflow-icon",j:[{L:"svg",O:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},j:[{L:"path",O:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z", fill:"#fff"}}]}]}]});this.Z=f;this.zZ=e;this.visible=!1;f.createClientVe(this.element,this,16499);this.D(f,"videoplayerreset",this.gi);this.D(f,"appresize",this.gi);this.D(f,"fullscreentoggled",this.gi);this.D(f,"presentingplayerstatechange",this.gi);this.gi();HF(f,this.element,this);this.listen("click",()=>{f.logClick(this.element);AK(e,this.element,!1)}); this.D(e.closeButton,"click",()=>{this.focus()})}gi(){var f=this.Z.S(); const e=f.J||this.Z.Y("web_player_hide_overflow_button_if_empty_menu")&&this.zZ.isEmpty();f=g.XY(f)&&g.bS(this.Z)&&this.Z.getPlayerStateObject().C(128);const B=this.Z.getPlayerSize();this.visible=this.Z.B0()&&!f&&B.width>=240&&!this.Z.getVideoData().AF&&!e&&!this.Z.isEmbedsShortsMode();g.h(this.element,"ytp-overflow-button-visible",this.visible);this.FG(this.visible);this.visible&&this.Z.lR();this.Z.logVisibility(this.element,this.visible&&this.Ed)}AE(f){super.AE(f);this.Z.logVisibility(this.element, this.visible&&f)}bY(){super.bY();g.$i(this.element,"ytp-overflow-button-visible")}};var Eaw=class extends uI{constructor(f){super(f,{L:"div",B:"ytp-overflow-panel",O:{id:ie(),role:"dialog"},j:[{L:"div",B:"ytp-overflow-panel-content",j:[{L:"div",B:"ytp-overflow-panel-action-buttons",Ga:"{{buttons}}"}]},{L:"button",y9:["ytp-overflow-panel-close","ytp-button"],O:{"data-tooltip-title":"Fechar",title:f.S().Y("player_tooltip_data_title_killswitch")?"Fechar":""},j:[g.Hl()]}]},250);this.actionButtons=[];this.C=this.JL("ytp-overflow-panel-content");this.closeButton=this.JL("ytp-overflow-panel-close"); this.D(this.closeButton,"click",this.HL);HF(f,this.closeButton,this);this.listen("click",this.G);this.D(f,"videoplayerreset",this.hide);this.D(f,"fullscreentoggled",this.onFullscreenToggled);this.hide()}G(f){f=Gw(f);g.HN(this.element,f)&&(g.HN(this.C,f)||g.HN(this.closeButton,f)||AK(this))}HL(){super.HL();this.Z.Fg(this.element)}show(){this.ef&&this.Z.publish("OVERFLOW_PANEL_OPENED");super.show();this.element.setAttribute("aria-modal","true");for(const f of this.actionButtons)f.AE(!0)}hide(){super.hide(); this.element.removeAttribute("aria-modal");for(const f of this.actionButtons)f.AE(!1)}onFullscreenToggled(f){!f&&this.A3()&&AK(this)}isEmpty(){return this.actionButtons.length===0}focus(){for(const f of this.actionButtons)if(f.ef){f.focus();break}}};var Qzl=class extends g.y{constructor(f,e,B){const n=g.zi(e,B),r=n.iR("default.jpg");super({L:"a",y9:["ytp-video-menu-item","ytp-button"],O:{role:"menuitemradio","aria-label":n.title,href:f.S().getVideoUrl(n.videoId,e.listId?e.listId.toString():null)},j:[{L:"div",B:"ytp-video-menu-item-index",Ga:String(B+1)},{L:"div",B:"ytp-video-menu-item-now-playing",Ga:"\u25b6"},{L:"div",B:"ytp-video-menu-item-thumbnail",O:{style:r?`background-image: url(${r});`:void 0}},{L:"div",B:"ytp-video-menu-item-title", Ga:n.title},{L:"div",B:"ytp-video-menu-item-author",Ga:n.author}]});this.api=f;this.index=B;this.listen("click",this.onClick)}onClick(f){g.mv(f,this.api)&&this.api.playVideoAt(this.index)}};var TB0=class extends uI{constructor(f){super(f,{L:"div",B:"ytp-playlist-menu",O:{role:"dialog",id:ie()},j:[{L:"div",B:"ytp-playlist-menu-header",j:[{L:"div",B:"ytp-playlist-menu-title",j:[f.S().J?{L:"span",B:"ytp-playlist-menu-title-name",Ga:"{{title}}"}:{L:"a",B:"ytp-playlist-menu-title-name",O:{href:"{{playlisturl}}"},Ga:"{{title}}"},{L:"button",y9:["ytp-playlist-menu-close","ytp-button"],O:{"aria-label":"Fechar"},j:[g.Hl()]}]},{L:"div",B:"ytp-playlist-menu-subtitle",Ga:"{{subtitle}}"}]},{L:"div", B:"ytp-playlist-menu-items",O:{role:"menu"}}]},250);this.api=f;this.J=this.selected=this.X=this.playlist=null;this.items=this.JL("ytp-playlist-menu-items");this.C=new g.ep(this);this.playlistData=[];this.D(this.JL("ytp-playlist-menu-close"),"click",this.HL);const e=this.JL("ytp-playlist-menu-title-name");f.S().J||(this.J=this.D(e,"click",this.A));g.A(this,this.C);this.hide()}show(){super.show();this.C.D(this.api,"videodatachange",this.V);this.C.D(this.api,"onPlaylistUpdate",this.V);this.V()}hide(){super.hide(); this.C.G();this.updatePlaylist(null)}V(){this.updatePlaylist(this.api.getPlaylist());this.api.S().J&&(this.JL("ytp-playlist-menu-title-name").removeAttribute("href"),this.J&&(this.uh(this.J),this.J=null))}G(){const f=this.playlist;var e=f.author,B=e?"por $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",n={CURRENT_POSITION:String(f.index+1),PLAYLIST_LENGTH:String(f.length)};e&&(n.AUTHOR=e);this.update({title:f.title,subtitle:g.RT(B,n),playlisturl:this.api.getVideoUrl(!0)}); e=f.G;if(e===this.X)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[f.index];else{for(var r of this.playlistData)r.dispose();r=f.length;this.playlistData=[];for(B=0;B{f.logClick(this.element); f.Y("delhi_web_player_use_external_playlist_panel")?g.yW(f,"onToggleExternalPlaylistPanel"):AK(e,this.element,!1)})}hide(){super.hide(); this.AE(!1);this.api.lR()}gi(){const f=g.XY(this.api.S());g.h(this.element,"ytp-playlist-menu-button-tiny",this.api.AL().getPlayerSize().width<400&&!f);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.RT("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.RT("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title}),"tooltip-title":g.RT("Playlist: $PLAYLIST_NAME", {PLAYLIST_NAME:this.playlist.title})}),this.api.Y("delhi_modern_web_player")&&this.update({playlistTitle:g.RT("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.ef||(this.show(),this.api.lR()),this.visible=!0,this.AE(!0)):this.ef&&this.hide()}AE(f){super.AE(f);this.api.logVisibility(this.element,this.visible&&f)}C(){this.playlist&&this.playlist.unsubscribe("shuffle",this.gi,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.gi,this);this.gi()}};var WSd=class extends g.y{constructor(f,e){super({L:"div",B:"ytp-promotooltip-wrapper",j:[{L:"div",B:"ytp-promotooltip-container",j:[{L:"div",B:"ytp-promotooltip-content",j:[{L:"div",B:"ytp-promotooltip-title",Ga:"{{title}}"},{L:"div",B:"ytp-promotooltip-details",Ga:"{{details}}"}]},{L:"div",B:"ytp-promotooltip-buttons",j:[{L:"div",B:"ytp-promotooltip-dismiss-button",Ga:"{{dismissButtonText}}",O:{tabindex:"0"}},{L:"div",B:"ytp-promotooltip-accept-button",Ga:"{{acceptButtonText}}",O:{tabindex:"0", "aria-haspopup":"true"}}]}]},{L:"div",B:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=f;this.Z=e;this.C=this.sourceElement=null;this.title=this.JL("ytp-promotooltip-title");this.details=this.JL("ytp-promotooltip-details");this.acceptButton=this.JL("ytp-promotooltip-accept-button");this.dismissButton=this.JL("ytp-promotooltip-dismiss-button");this.G=this.V=!1;this.J=!0;this.N=this.U=this.K=this.X=!1;this.aX={KZ:B=>{this.KZ(B)}}; this.FG(!1);f=this.tooltipRenderer.trackingParams||null;if(this.G=!!f)this.Z.createServerVe(this.element,this,!0),this.Z.setTrackingParams(this.element,f);this.D(e,"onShowControls",this.Cq);this.D(e,"onHideControls",this.A);this.D(e,"resize",this.Sf);this.D(this.acceptButton,"click",this.eI);this.D(this.dismissButton,"click",this.WS);this.D(document,"click",this.cS)}W(f,e){if(!this.V){if(f){this.tooltipRenderer=f;f=this.tooltipRenderer.text;var B=!1;f?.runs?.length&&f.runs[0].text&&(this.update({title:f.runs[0].text.toString()}), B=!0);g.sm(this.title,B);B=this.tooltipRenderer.detailsText;f=!1;if(B?.runs?.length&&B.runs[0].text){{var n=B.runs[0].text.toString();const H=n.indexOf("$TARGET_ICON");if(H>-1)if(this.tooltipRenderer.targetId){B=[];n=n.split("$TARGET_ICON");var r=new g.af({L:"span",B:"ytp-promotooltip-details-icon",j:[Jel[this.tooltipRenderer.targetId]]});g.A(this,r);var L=[];for(d of n){const k=new g.af({L:"span",B:"ytp-promotooltip-details-component",Ga:d});g.A(this,k);L.push(k)}n.length===2?(B.push(L[0].element), B.push(r.element),B.push(L[1].element)):n.length===1&&(H===0?(B.push(r.element),B.push(L[0].element)):(B.push(L[0].element),B.push(r.element)));var d=B.length?B:null}else d=null;else d=n}if(d){if(typeof d!=="string"){g.LC(this.details);for(var t of d)this.details.appendChild(t)}else this.update({details:d});f=!0}}g.sm(this.details,f);t=this.tooltipRenderer.acceptButton;d=!1;g.u(t,$u)?.text?.runs?.length&&g.u(t,$u).text.runs[0].text&&(this.update({acceptButtonText:g.u(t,$u).text.runs[0].text.toString()}), d=!0);g.sm(this.acceptButton,d);t=this.tooltipRenderer.dismissButton;d=!1;g.u(t,$u)?.text?.runs?.length&&g.u(t,$u).text.runs[0].text&&(this.update({dismissButtonText:g.u(t,$u).text.runs[0].text.toString()}),d=!0);g.sm(this.dismissButton,d)}e&&(this.sourceElement=e);this.C=ND5(this);this.U=!1;this.Z.S().Y("web_player_hide_nitrate_promo_tooltip")||this.FG(!0);zE(this);this.ef&&!this.N&&(this.N=!0,this.aX.KZ(0));this.G&&this.Z.logVisibility(this.element,this.ef)}}Cq(){this.J?this.W():zE(this)}A(){this.J? (as(this),this.U=!0):zE(this)}eI(){this.V=!0;this.KZ(1);this.Z.publish("promotooltipacceptbuttonclicked",this.acceptButton);as(this);this.G&&this.Z.logClick(this.acceptButton)}WS(){this.V=!0;this.KZ(2);as(this);this.G&&this.Z.logClick(this.dismissButton)}cS(f){if(this.Z.getPresentingPlayerType()===1||this.Z.getPresentingPlayerType()===2&&this.X){var e=!0,B=g.x2("ytp-ad-overlay-ad-info-dialog-container"),n=g.x2("ytp-ad-player-overlay-layout"),r=Gw(f);if(this.sourceElement&&r&&g.HN(this.sourceElement, r))this.sourceElement=null;else{this.Z.getPresentingPlayerType()===1&&r&&Array.from(r.classList).forEach(d=>{if(d.startsWith("ytp-ad")||d.startsWith("ytp-skip-ad"))e=!1}); var L=htY(this.tooltipRenderer);this.tooltipRenderer.dismissStrategy?.type==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"?L&&(e=e&&!g.HN(this.element,r)):this.tooltipRenderer.dismissStrategy?.type==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(e=L?!1:e&&g.HN(this.element,r));this.C&&this.ef&&!B&&!n&&(!r||e&&g.Ef(f))&&(this.V=!0,as(this))}}}KZ(f){var e=this.tooltipRenderer.promoConfig;if(e){let B;switch(f){case 0:e.impressionEndpoints?.length&&(B=e.impressionEndpoints[0]);break;case 1:B=e.acceptCommand;break;case 2:B= e.dismissCommand}f=g.u(B,dv)?.feedbackToken;B&&f&&(f={feedbackTokens:[f]},e=this.Z.pB(),e?.hK(B)&&D7(e,B,f))}}Sf(){this.U||(this.C||(this.C=ND5(this)),this.W())}},Jel={"ytp-settings-button":g.zT()};var MgM=class extends g.y{constructor(f){super({L:"button",y9:["ytp-replay-button","ytp-button"],O:{title:f.Y("player_tooltip_data_title_killswitch")?"Reiniciar":"","data-tooltip-title":"Reiniciar"},j:[g.qL()]});this.Z=f;this.D(f,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Hd(f.getPlayerStateObject());HF(this.Z,this.element,this)}onStateChange(f){this.Hd(f.state)}Hd(f){this.FG(f.C(2))}onClick(){this.Z.getPlayerStateObject().isOrWillBePlaying();this.Z.playVideo()}};var GbY=class extends g.y{constructor(f){super({L:"button",y9:["ytp-button","ytp-search-button"],O:{title:f.Y("player_tooltip_data_title_killswitch")?"Pesquisar":"","data-tooltip-title":"Pesquisar","data-tooltip-opaque":String(g.XY(f.S()))},j:[{L:"div",B:"ytp-search-icon",Ga:"{{icon}}"},{L:"div",B:"ytp-search-title",Ga:"Pesquisar"}]});this.api=f;this.visible=!1;this.updateValue("icon",{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",B:"ytp-svg-fill",O:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); f.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.C();this.D(f,"appresize",this.C);this.D(f,"videodatachange",this.C);HF(f,this.element,this)}onClick(f){this.api.logClick(this.element);var e=g.vT(this.api.S().vE,{focusSearch:"true"}),B={};g.$7(this.api,"addEmbedsConversionTrackingParams",[B]);e=g.vT(e,B);(B=this.api.getVideoData().EJ?.params)&&(e=g.vT(e,{bp:B}));g.Mb(window,e);f.preventDefault()}C(){if(this.api.Y("embeds_web_enable_search_button")){var f=this.api.S(); var e=this.api.getVideoData(),B=this.api.AL().getPlayerSize().width;f=g.XY(f)&&B>=240&&!f.J&&!e.isAd()&&!this.api.isEmbedsShortsMode()}else f=!1;this.visible=f;this.FG(this.visible);g.h(this.element,"ytp-search-button-visible",this.visible);g.h(this.element,"ytp-show-search-title",!this.api.B0());this.api.logVisibility(this.element,this.visible&&this.Ed)}AE(f){super.AE(f);this.api.logVisibility(this.element,this.visible&&f)}};var xe6=class extends g.y{constructor(f){super({L:"div",B:"ytp-seek-overlay",j:[{L:"div",y9:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],j:[{L:"div",y9:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],j:[{L:"svg",O:{viewBox:"0 0 22 32",width:"22",height:"24"},j:[{L:"path",O:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{L:"div",B:"ytp-seek-overlay-duration",Ga:"{{durationBack}}"}]},{L:"div",y9:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],j:[{L:"div",B:"ytp-seek-overlay-duration",Ga:"{{durationForward}}"},{L:"div",y9:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],j:[{L:"svg",O:{viewBox:"0 0 22 32",width:"22",height:"24"},j:[{L:"path",O:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{L:"div",B:"ytp-seek-overlay-message",j:[{L:"div",B:"ytp-seek-overlay-message-icon",Ga:"{{icon}}"},{L:"div",B:"ytp-seek-overlay-message-text", Ga:"{{text}}"}]}]});this.Z=f;this.W=0;this.C="hidden";this.X=this.JL("ytp-seek-overlay-animation-back");this.K=this.JL("ytp-seek-overlay-animation-forward");this.N=this.JL("ytp-seek-overlay-message");this.U=new g.T6(()=>{S_5(this)},g.tS(this.Z.S().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.A(this,this.U);this.Z.createClientVe(this.K,this,28240);this.Z.createClientVe(this.X,this,28239);this.Z.logVisibility(this.K,!0);this.Z.logVisibility(this.X,!0);this.hide()}trigger(f,e,B,n){this.show();if(this.G&&f!==this.G){let r=1;this.J&&(r=Dqd(this));S_5(this,r,!1);gf5(this)}this.G=f;this.V=this.G===-1?this.X:this.K;f="";e?(this.G===-1&&this.Z.getCurrentTime()<=e?this.W=e:this.W+=e,f=`${this.G===-1?"\u2212":"+"} ${this.W}`):this.W=0;this.updateValue(this.G===-1?"durationBack":"durationForward", f);if(this.C==="hidden"||this.C==="fading-out")e=0,this.C==="fading-out"&&(e=Dqd(this),TDl(this)),Efk(this,e),this.C!=="fading-out"&&QtO(this,this.V.querySelector(".ytp-seek-overlay-arrow-persistent")),this.C="fading-in";else if(this.C==="fading-in"||this.C==="lingering")e=this.V.querySelector(".ytp-seek-overlay-duration"),f=g.tS(this.Z.S().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,e.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64, easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:`scale(${f})`},{offset:1,transform:"scale(1)"}],{duration:184}),TDl(this),this.C==="lingering"&&(this.U.stop(),this.U.start());B&&JIO(this,B,n)}TG(f,e,B,n){this.trigger(f,n)}yE(f,e,B){this.trigger(f,e);B&&(f=f===-1?this.K.visualElement:this.X.visualElement,B={seekData:B},(e=g.be())&&P6(e,f,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",B))}u7(f,e,B){this.trigger(f,void 0,e,B)}};var WzO=class extends g.y{constructor(f,e,B){super({L:"button",y9:["ytp-button","ytp-share-button"],O:{title:f.Y("player_tooltip_data_title_killswitch")?"Compartilhar":"","data-tooltip-title":"Compartilhar","aria-haspopup":"true","aria-owns":B.element.id,"data-tooltip-opaque":String(g.XY(f.S()))},j:[{L:"div",B:"ytp-share-icon",Ga:"{{icon}}"},{L:"div",B:"ytp-share-title",Ga:"Compartilhar"}]});this.api=f;this.C=e;this.G=B;this.visible=!1;this.tooltip=this.C.Fi();f.createClientVe(this.element,this,28664); this.listen("click",this.onClick);this.D(f,"videodatachange",this.gi);this.D(f,"videoplayerreset",this.gi);this.D(f,"appresize",this.gi);this.D(f,"presentingplayerstatechange",this.gi);this.gi();this.addOnDisposeCallback(g.tK(this.tooltip,this.element))}onClick(){var f=this.api.S();const e=this.api.getVideoData({playerType:this.api.getPresentingPlayerType()}),B=this.api.getPlaylistId();f=this.api.Y("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):f.getVideoUrl(e.videoId,B,void 0,!0); if(navigator.share)try{const n=navigator.share({title:e.title,url:f});n instanceof Promise&&n.catch(r=>{MOH(this,r)})}catch(n){n instanceof Error&&MOH(this,n)}else this.C.Vc(),AK(this.G,this.element,!1); this.api.logClick(this.element)}gi(){var f=this.api.S();const e=this.api.isEmbedsShortsMode();g.h(this.element,"ytp-show-share-title",g.XY(f)&&!e);this.C.E3()&&e?(f=(this.api.AL().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.uc(this.element,"right",`${f}px`)):e&&g.uc(this.element,"right","0px");this.updateValue("icon",{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{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=pp(this);g.h(this.element,"ytp-share-button-visible",this.visible);this.FG(this.visible);this.tooltip.lR();this.api.logVisibility(this.element,pp(this)&&this.Ed)}AE(f){super.AE(f);this.api.logVisibility(this.element,this.visible&&f)}bY(){super.bY();g.$i(this.element,"ytp-share-button-visible")}};var sz5=class extends uI{constructor(f,e){var B=ie();const n=f.S();B={L:"div",B:"ytp-share-panel",O:{id:ie(),role:"dialog","aria-labelledby":B},j:[{L:"div",B:"ytp-share-panel-inner-content",j:[{L:"div",B:"ytp-share-panel-title",O:{id:B},Ga:"Compartilhar"},{L:"a",y9:["ytp-share-panel-link","ytp-no-contextmenu"],O:{href:"{{link}}",target:n.N,title:"Compartilhar link","aria-label":"{{shareLinkWithUrl}}"},Ga:"{{linkText}}"},{L:"label",B:"ytp-share-panel-include-playlist",j:[{L:"input",B:"ytp-share-panel-include-playlist-checkbox", O:{type:"checkbox",checked:"true"}},"Incluir lista de reprodu\u00e7\u00e3o"]},{L:"div",B:"ytp-share-panel-loading-spinner",j:[hK()]},{L:"div",B:"ytp-share-panel-service-buttons",Ga:"{{buttons}}"},{L:"div",B:"ytp-share-panel-error",Ga:"Ocorreu um erro ao recuperar informa\u00e7\u00f5es de compartilhamento. Tente novamente mais tarde."}]},{L:"button",y9:["ytp-share-panel-close","ytp-button"],O:{title:"Fechar"},j:[g.Hl()]}]};super(f,B,250);this.moreButton=null;this.api=f;this.tooltip=e.Fi();this.G=[]; this.V=this.JL("ytp-share-panel-inner-content");this.closeButton=this.JL("ytp-share-panel-close");this.D(this.closeButton,"click",this.HL);this.addOnDisposeCallback(g.tK(this.tooltip,this.closeButton));this.J=this.JL("ytp-share-panel-include-playlist-checkbox");this.D(this.J,"click",this.gi);this.C=this.JL("ytp-share-panel-link");this.addOnDisposeCallback(g.tK(this.tooltip,this.C));this.api.createClientVe(this.C,this,164503);this.D(this.C,"click",r=>{r.preventDefault();this.api.logClick(this.C);var L= this.api.getVideoUrl(!0,!0,!1,!1);L=WTm(this,L);g.Ur(L,this.api,r)&&g.yW(this.api,"SHARE_CLICKED")}); this.listen("click",this.X);this.D(f,"videoplayerreset",this.hide);this.D(f,"fullscreentoggled",this.onFullscreenToggled);this.D(f,"onLoopRangeChange",this.A);this.hide()}X(f){f=Gw(f);g.HN(this.V,f)||g.HN(this.closeButton,f)||AK(this)}HL(){super.HL();this.tooltip.Fg(this.element);this.api.logVisibility(this.C,!1);for(const f of this.G)this.api.hasVe(f.element)&&this.api.logVisibility(f.element,!1)}show(){const f=this.ef;super.show();this.gi();f||g.yW(this.api,"onSharePanelOpened")}A(){this.ef&&this.gi()}gi(){g.PW(this.element, "ytp-share-panel-loading");g.$i(this.element,"ytp-share-panel-fail");var f=this.api.getVideoData();const e=this.api.getPlaylistId()&&this.J.checked;f.getSharePanelCommand&&D7(this.api.pB(),f.getSharePanelCommand,{includeListId:e}).then(B=>{this.HS()||(g.$i(this.element,"ytp-share-panel-loading"),st0(this,B))}); f=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",f);this.updateValue("linkText",f);this.updateValue("shareLinkWithUrl",g.RT("Compartilhar o link $URL",{URL:f}));gL(this.C);this.api.logVisibility(this.C,!0)}onFullscreenToggled(f){!f&&this.A3()&&AK(this)}focus(){this.C.focus()}bY(){super.bY();GvC(this)}};var XI5=class extends w1{constructor(f){super(f);this.V=this.C=this.isContentForward=this.A=!1;this.element.setAttribute("data-overlay-order","8");i7d(this);this.D(this.Z,"changeProductsInVideoVisibility",this.uY);this.D(this.Z,"videodatachange",this.onVideoDataChange)}bY(){AL(this);super.bY()}Lq(f){f.target!==this.dismissButton.element&&(this.U(!1),g.yW(this.Z,"innertubeCommand",this.onClickCommand))}X(){this.Q3=!0;this.U(!0);this.G()}uY(f){this.A=f;this.G()}onVideoDataChange(f,e){if(f=!!e.videoId&& this.videoId!==e.videoId)this.videoId=e.videoId,this.Q3=!1,this.PS=!0,this.Cq=this.WS=!1,AL(this),XGC(this,!1),this.V=this.C=!1,jz(this),yI6(this);if(f||!e.videoId)this.eI=this.J=!1;if(e?.getPlayerResponse()?.videoDetails?.isLiveContent)this.p5(!1);else{e=g.u(e.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.productsInVideoOverlayRenderer,jkm);this.A=this.enabled=!1;if(e){if(f=e?.featuredProductsEntityKey){var B=g.r7.getState().entities;if(Yq(B,"featuredProductsEntity",f)?.productsData){this.p5(!1); return}}if(!e.text||!e.onClickCommand||!e.timing){this.p5(!1);return}this.enabled=!0;this.J||(f=e.badgeInteractionLogging?.trackingParams,(this.J=!!f)&&this.Z.setTrackingParams(this.badge.element,f||null));this.eI||(this.eI=!!e.dismissButton?.trackingParams)&&this.Z.setTrackingParams(this.dismissButton.element,e.dismissButton?.trackingParams||null);if(e.isContentForward){f=e.productsData;XGC(this,!0);yI6(this);f=I9g(this,f);B=[];f.length>0&&B.push(f[0]);if(f.length>1){const n=new g.y({L:"div",B:"ytp-suggested-action-more-products-icon"}); g.A(this,n);B.push(n);B.push(...f.slice(1))}this.N=new g.y({L:"div",j:B,B:"ytp-suggested-action-content-forward-container"});g.A(this,this.N);this.kA.element.append(this.N.element)}this.text=g.nS(e.text);if(f=e.dismissButton?.a11yLabel)this.G6=g.nS(f);this.onClickCommand=e.onClickCommand;this.timing=e.timing;this.AI()}Nu(this);Ut(this);this.G()}}K(){return!this.A&&this.enabled&&!this.Q3&&!this.Z.B0()&&!this.sE&&(this.Cq||this.PS)}Fl(f){super.Fl(f);if(this.C||this.V)this.timing&&cc(this.timing.preview)&& (this.C=!1,jz(this),this.V=!1,jz(this),this.Z.sK("shopping_overlay_preview_collapsed"),this.Z.sK("shopping_overlay_preview_expanded"),f=Op(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),cc(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.Z.sK("shopping_overlay_expanded"),f.end=this.timing.expanded.endSec*1E3),this.Z.AI([f])),this.WS=!0,Ut(this);jz(this)}p5(f){(this.Cq=f)?(mS(this),Ut(this,!1)):(AL(this),this.xA.start()); this.G()}AI(f=0){var e=this.timing;f+=this.Z.getCurrentTime();const B=[];var n=e.visible;const r=e.preview;e=e.expanded;cc(n)&&(YH(n,f),B.push(Op(n.startSec,n.endSec,"shopping_overlay_visible")));cc(r)&&(YH(r,f),n=r.startSec+1,B.push(Op(r.startSec,n,"shopping_overlay_preview_collapsed")),B.push(Op(n,r.endSec,"shopping_overlay_preview_expanded")));cc(e)&&(YH(e,f),B.push(Op(e.startSec,e.endSec,"shopping_overlay_expanded")));this.Z.AI(B)}G(){super.G();this.Z.getRootNode()&&g.h(this.Z.getRootNode(),"ytp-shopping-pill-shown", this.K())}};var yeY=class extends g.y{constructor(f){super({L:"div",B:"ytp-shorts-title-channel",j:[{L:"a",B:"ytp-shorts-title-channel-logo",O:{href:"{{channelLink}}",target:f.S().N,"aria-label":"{{channelLogoLabel}}"}},{L:"div",B:"ytp-shorts-title-expanded-heading",j:[{L:"div",B:"ytp-shorts-title-expanded-title",j:[{L:"a",Ga:"{{expandedTitle}}",O:{href:"{{channelTitleLink}}",target:f.S().N,tabIndex:"0"}}]}]}]});this.api=f;this.C=this.JL("ytp-shorts-title-channel-logo");this.channelName=this.JL("ytp-shorts-title-expanded-title"); this.subscribeButton=null;f.createClientVe(this.C,this,36925);this.D(this.C,"click",e=>{this.api.logClick(this.C);g.Mb(window,f_0(this));e.preventDefault()}); f.createClientVe(this.channelName,this,37220);this.D(this.channelName,"click",e=>{this.api.logClick(this.channelName);g.Mb(window,f_0(this));e.preventDefault()}); eG0(this);this.D(f,"videodatachange",this.gi);this.D(f,"videoplayerreset",this.gi);this.gi()}gi(){const f=this.api.S();this.FG(g.XY(f)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.ef);const e=this.api.getVideoData();let B=!1;this.api.getPresentingPlayerType()===2?B=!!e.videoId&&!!e.isListed&&!!e.author&&!!e.uY&&!!e.profilePicture:g.XY(f)&&(B=!!e.videoId&&!!e.uY&&!!e.profilePicture&&!e.AF&&!f.J&&!(f.X&&this.api.getPlayerSize().width< 200));Bll(this,B,e.profilePicture,g.XY(f)?e.expandedTitle:e.author);this.subscribeButton&&(this.subscribeButton.channelId=e.UL);this.updateValue("expandedTitle",e.expandedTitle)}};var P7k=class extends uI{constructor(f){super(f,{L:"button",y9:["ytp-skip-intro-button","ytp-popup","ytp-button"],j:[{L:"div",B:"ytp-skip-intro-button-text",Ga:"Pular introdu\u00e7\u00e3o"}]},100);this.G=!1;this.C=new g.T6(()=>{this.hide()},5E3); this.KL=this.zp=NaN;g.A(this,this.C);this.X=()=>{this.show()}; this.V=()=>{this.hide()}; this.J=()=>{const e=this.Z.getCurrentTime();e>this.zp/1E3&&e{this.N9(e,B)}); this.D(this.element,"click",()=>{this.Z.seekTo(this.KL/1E3)}); this.hide()}show(){super.show();this.C.start()}hide(){super.hide();this.C.stop()}N9(f,e){f==="dataloaded"&&((this.zp=e.zp,this.KL=e.KL,isNaN(this.zp)||isNaN(this.KL))?this.G&&(this.Z.sK("intro"),this.Z.removeEventListener(g.kk("intro"),this.X),this.Z.removeEventListener(g.Ca("intro"),this.V),this.Z.removeEventListener("onShowControls",this.J),this.hide(),this.G=!1):(this.Z.addEventListener(g.kk("intro"),this.X),this.Z.addEventListener(g.Ca("intro"),this.V),this.Z.addEventListener("onShowControls", this.J),f=new g.VD(this.zp,this.KL,{priority:9,namespace:"intro"}),this.Z.AI([f]),this.G=!0))}};var IFk=class extends g.y{constructor(f){super({L:"button",y9:["ytp-airplay-button","ytp-button"],O:{title:f.Y("player_tooltip_data_title_killswitch")?"AirPlay":"","data-tooltip-title":"AirPlay","data-priority":"11"},Ga:"{{icon}}"});this.Z=f;this.listen("click",this.onClick);this.D(f,"airplayactivechange",this.gi);this.D(f,"airplayavailabilitychange",this.gi);this.gi();HF(f,this.element,this)}onClick(){this.Z.VP()}gi(){var f=!0;g.XY(this.Z.S())&&(f=f&&this.Z.AL().getPlayerSize().width>=480);this.FG(f); f=this.updateValue;var e=this.Z.Y("delhi_modern_web_player_icons");const B=e?{L:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",ev:!0,O:{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"}}]};e=e?{L:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{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"}}]};f.call(this,"icon",this.Z.oR()?B:e)}};var $eC=class extends g.y{constructor(f){super({L:"div",B:"ytp-gradient-bottom"});this.G=g.BN("CANVAS");this.C=this.G.getContext("2d",{willReadFrequently:!0});this.J=NaN;this.G.width=1;nQk(this,f.AL().getPlayerSize().height)}bY(){this.C=null;super.bY()}};var ik5=class extends g.y{constructor(f,e,B,n){super({L:"div",B:"ytp-chapter-container",j:[{L:"button",y9:["ytp-chapter-title","ytp-button"],j:[{L:"span",O:{"aria-hidden":"true"},B:"ytp-chapter-title-prefix",Ga:"\u2022"},{L:"div",B:"ytp-chapter-title-content",Ga:"{{chapterTitle}}",O:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:f.Y("player_tooltip_data_title_killswitch")?n:"","data-tooltip-title":n}},{L:"div",B:"ytp-chapter-title-chevron",j:[{L:"svg",O:{height:"100%",viewBox:"0 0 24 24", width:"100%"},j:[{L:"path",O:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});this.Z=f;this.V=e;this.U="";this.currentIndex=0;this.G=void 0;this.J=!0;this.N=this.JL("ytp-chapter-container");this.C=this.JL("ytp-chapter-title");this.W=this.JL("ytp-chapter-title-content");this.K();this.updateVideoData("newdata",this.Z.getVideoData());this.D(f,"videodatachange",this.updateVideoData);this.D(f,"resize",this.K);this.D(this.N,"click",this.onClick);this.D(f,g.kk(B), this.ZW);this.D(f,"onLoopRangeChange",this.ZW);this.D(f,"innertubeCommand",this.onClickCommand);(f=g.Wk(this.Z.S()))&&g.h(this.C,"ytp-profile-page",!0);g.XY(this.Z.S())||f||HF(this.Z,this.W,this)}onClick(){g.yW(this.Z,"innertubeCommand",this.G)}K(){if(this.Z.Y("delhi_modern_web_player")){var f=this.Z.getPlayerSize();f.width&&(this.element.style.maxWidth=`${f.width*.25}px`)}}};var flg=class extends ik5{constructor(f,e){super(f,e,"chapterCueRange","Ver cap\u00edtulo");this.X=""}onClickCommand(f){g.u(f,n2)&&this.ZW()}updateVideoData(f,e){f=g.u(e.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.decoratedPlayerBarRenderer,Ni);f=g.u(f?.playerBarActionButton,$u);this.Z.Y("web_player_updated_entrypoint")&&(this.X=Ou(f?.text),this.W.setAttribute("title",f?.tooltip??"Ver cap\u00edtulo"));this.G=f?.command;Lul(this)}ZW(){var f=this.X;const e=this.V.C;var B=this.Z.getLoopRange()?.type=== "clips";if(e.length>1&&!B){f=this.Z.getProgressState().current*1E3;B=vc(e,f);f=e[B].title||"Cap\u00edtulos";if(B!==this.currentIndex||this.J)g.yW(this.Z,"innertubeCommand",e[B].onActiveCommand),this.currentIndex=B;this.J=!1}else this.J=!0;rtC(this,f)}};var eM2=class extends g.Sq{constructor(f){super({L:"button",y9:["ytp-expand-right-bottom-section-button","ytp-button"],O:{title:"{{title}}","aria-pressed":"{{pressed}}","data-priority":"1","data-title-no-tooltip":"{{data-title-no-tooltip}}"},j:[g.tX()]});this.C=!1;this.listen("click",this.G);f.createClientVe(this.element,this,276954)}G(){this.element.parentElement?.classList.contains("ytp-right-controls-left");(this.C=!this.C)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}isExpanded(){return this.C}};var B6G=class extends g.y{constructor(f,e){super({L:"div",B:"ytp-storyboard-framepreview",j:[{L:"div",B:"ytp-storyboard-framepreview-timestamp",Ga:"{{timestamp}}"},{L:"div",B:"ytp-storyboard-framepreview-img"}]});this.api=f;this.G=this.JL("ytp-storyboard-framepreview-img");this.C=null;this.frameIndex=NaN;this.events=new g.ep(this);this.fade=new g.Ob(this,100);g.A(this,this.events);g.A(this,this.fade);this.D(this.api,"presentingplayerstatechange",this.J);e&&this.D(this.element,"click",()=>{e.FY()})}J(f){f.state.C(32)? os(this,this.api.Pr()):this.ef&&(f.state.C(16)||f.state.C(1))||this.fade.hide()}onProgress(){const f=this.api.getPlayerStateObject(); (f.C(32)||f.C(16))&&VI(this)}V(){this.frameIndex=NaN;VI(this)}hide(){this.C&&os(this,null);super.hide()}};var ngG=class extends g.y{constructor(f,e){super({L:"button",y9:["ytp-fullscreen-button","ytp-button"],O:{title:f.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-label":"{{aria-label}}","aria-keyshortcuts":"f","data-priority":"12","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Ga:"{{icon}}"});this.Z=f;this.G=e;this.message=null;this.C=g.tK(this.G.Fi(),this.element);this.J=new g.T6(this.W,2E3,this);g.A(this,this.J);this.D(f,"fullscreentoggled", this.Q4);this.D(f,"presentingplayerstatechange",this.gi);this.D(f,"resize",this.gi);this.listen("click",this.onClick);g.S4()&&(e=this.Z.AL(),this.D(e,J5O(),this.V),this.D(e,DZd(document),this.BY));f.S().qC||f.S().X||this.disable();f.createClientVe(this.element,this,139117);this.gi();this.Q4(f.isFullscreen())}onClick(){if(this.Z.S().qC||this.Z.S().X){this.Z.logClick(this.element);try{this.Z.toggleFullscreen().catch(f=>{this.DN(f)})}catch(f){this.DN(f)}}else AK(this.message,this.element,!0)}DN(f){String(f).includes("fullscreen error")? g.Yv(f):g.J(f); this.V()}V(){this.disable();this.message.Fx(this.element,!0)}BY(){Ev()===this.Z.getRootNode()?this.J.start():(this.J.stop(),this.message&&this.message.hide())}W(){if(window.screen&&window.outerWidth&&window.outerHeight){const f=window.screen.width*.9,e=window.screen.height*.9;let B=Math.max(window.outerWidth,window.innerWidth),n=Math.max(window.outerHeight,window.innerHeight);if(B>n!==f>e){const r=B;B=n;n=r}f>B&&e>n&&this.V()}}disable(){if(!this.message){var f=(hl(["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 uI(this.Z,{L:"div",y9:["ytp-popup","ytp-generic-popup"],O:{role:"alert",tabindex:"0"},j:[f[0],{L:"a",O:{href:"https://support.google.com/youtube/answer/6276924",target:this.Z.S().N},Ga:f[2]},f[4]]},100,!0);this.message.hide();g.A(this,this.message); this.message.subscribe("show",e=>{this.G.zK(this.message,e)}); g.qX(this.Z,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.C)();this.C=null}}gi(){const f=jwG(this.Z),e=this.Z.S().X&&this.Z.getPlayerSize().width<250;this.FG(f&&!e);this.Z.logVisibility(this.element,this.ef)}Q4(f){let e;f?(e=g.kr(this.Z,"Sair da tela inteira","f"),this.update({"data-title-no-tooltip":"Sair da tela inteira"}),document.activeElement===this.element&&this.Z.getRootNode().focus(),document.pictureInPictureElement&& document.exitPictureInPicture().catch(B=>{g.Yv(B)})):(e=g.kr(this.Z,"Tela inteira","f"),this.update({"data-title-no-tooltip":"Tela inteira"})); f=tTk(this,f);e=this.message?null:e;this.Z.S().Y("player_tooltip_data_title_killswitch")?this.update({title:e,icon:f}):this.update({"tooltip-title":e,"aria-label":e,icon:f});this.G.Fi().lR()}bY(){this.message||((0,this.C)(),this.C=null);super.bY()}AE(f){super.AE(f)}};var rY2=class extends g.y{constructor(f,e){super({L:"button",y9:["ytp-button","ytp-jump-button"],O:{title:f.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},j:[e>0?{L:"svg",O:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",y9:["ytp-circle-arrow","ytp-svg-fill"],O:{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"}}, {L:"text",y9:["ytp-jump-button-text","ytp-svg-fill"],O:{x:"7.05",y:"15.05"}}]}:{L:"svg",O:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",y9:["ytp-circle-arrow","ytp-svg-fill"],O:{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"}}, {L:"text",y9:["ytp-jump-button-text","ytp-svg-fill"],O:{x:"6.5",y:"15"}}]}]});this.Z=f;this.C=e;this.G=new g.T6(()=>{this.J?(this.J=!1,this.G.start()):this.element.classList.remove("ytp-jump-spin","backwards")},250); this.J=!1;(e=e>0)?this.Z.createClientVe(this.element,this,36843):this.Z.createClientVe(this.element,this,36844);const B=g.RT(e?"Avance $SECONDS segundos. (\u2192)":"Volte $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.C).toString()});this.Z.Y("player_tooltip_data_title_killswitch")?this.update({title:B,"data-title-no-tooltip":B,"aria-keyshortcuts":e?"\u2192":"\u2190"}):this.update({"tooltip-title":B,"data-title-no-tooltip":B,"aria-keyshortcuts":e?"\u2192":"\u2190"});this.V=this.element.querySelector(".ytp-jump-button-text"); this.V.textContent=Math.abs(this.C).toString();this.listen("click",this.onClick,this);HF(f,this.element,this)}onClick(){this.Z.logClick(this.element);this.Z.seekBy(this.C,!0);var f=this.C>0?1:-1,e=Math.abs(this.C);const B=this.Z.LG().CL;B&&B.yE(f,e);this.G.isActive()?this.J=!0:(f=["ytp-jump-spin"],this.C<0&&f.push("backwards"),this.element.classList.add(...f),this.G.M0())}};var L5e=class extends ik5{constructor(f,e){super(f,e,"timedMarkerCueRange","Momentos importantes da visualiza\u00e7\u00e3o");this.D(f,g.Ca("timedMarkerCueRange"),this.ZW);this.D(f,"updatemarkervisibility",this.updateVideoData)}onClickCommand(f){g.u(f,Y4d)&&this.ZW()}updateVideoData(){this.G=ku0(this)?.onTap?.innertubeCommand;Lul(this)}ZW(){var f="";const e=this.V.K;var B=ku0(this)?.headerTitle;B=B?g.nS(B):"";var n=this.Z.getLoopRange()?.type==="clips";e.length>1&&!n&&(f=this.Z.getProgressState().current* 1E3,n=of5(e,f),f=n!=null?e[n].title:B,n!=null&&n!==this.currentIndex&&(g.yW(this.Z,"innertubeCommand",e[n].onActiveCommand),this.currentIndex=n));rtC(this,f)}};var dHg=class extends g.y{constructor(f){super({L:"button",y9:["ytp-miniplayer-button","ytp-button"],O:{title:f.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},j:["{{icon}}"]});this.Z=f;this.visible=!1;this.listen("click",this.onClick);this.D(f,"fullscreentoggled",this.gi);this.Z.Y("player_tooltip_data_title_killswitch")? this.update({title:g.kr(f,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:Cuk(this)}):this.update({"tooltip-title":g.kr(f,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:Cuk(this)});HF(f,this.element,this);f.createClientVe(this.element,this,62946);this.gi()}onClick(){g.yW(this.Z,"onCollapseMiniplayer");this.Z.logClick(this.element)}gi(){this.visible=!this.Z.isFullscreen();this.FG(this.visible);this.Z.logVisibility(this.element,this.visible&&this.Ed)}AE(f){super.AE(f);this.Z.logVisibility(this.element, this.visible&&f)}};var Zq5=new ZL(0,0,.05,0,0,1,1,1),tCG=class extends g.y{constructor(f,e,B,n,r,L=!1){const d={L:"div",y9:["ytp-input-slider-section"],j:[{L:"input",B:"ytp-input-slider",O:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}","aria-valuemin":"{{ariaMinValue}}","aria-valuemax":"{{ariaMaxValue}}","aria-valuenow":"{{ariaValueNow}}","aria-valuetext":"{{ariaValueText}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};r&&d.j.unshift(r);L&&d.y9.push("ytp-vertical-slider");super(d); this.J=f;this.U=e;this.K=B;this.initialValue=n;this.header=r;this.V=0;this.G=this.JL("ytp-input-slider");this.C=n?n:f;this.init();this.D(this.G,"input",this.W);this.D(this.G,"keydown",this.X)}init(){this.update({minvalue:this.J,maxvalue:this.U,stepvalue:this.K,slidervalue:this.C,ariaValueNow:this.C,ariaMinValue:this.J,ariaMaxValue:this.U,ariaValueText:`${this.C.toFixed(2)}`});ww5(this,this.C)}W(){lI(this,Number(this.G.value));this.G.focus()}X(f){if(!f.defaultPrevented){switch(f.code){case "ArrowDown":f= -this.K;break;case "ArrowUp":f=this.K;break;default:return}lI(this,Math.min(this.U,Math.max(Number((this.C+f).toFixed(2)),this.J)))}}};var HwL=class extends tCG{constructor(f){super(0,100,1,f.isMuted()?0:f.getVolume(),void 0,!0);this.Z=f;this.A=cN(this.cS,10,this);this.N=!1;this.D(f,"onVolumeChange",this.onVolumeChange);this.D(this.element,"wheel",this.Cq)}onVolumeChange(f){if(this.N)this.N=!1;else{var e=f.volume;e===0||f.muted?lI(this,0):lI(this,e)}}W(){super.W();this.A(this.C)}Cq(f){var e=-f.deltaY;e=f.deltaMode===WheelEvent.DOM_DELTA_LINE||f.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.ch(this.C+e,0,100):g.ch(this.C+g.ch(e/10,-10, 10),0,100);e===0?lI(this,0):lI(this,e);this.A(e);f.preventDefault();f.stopPropagation()}cS(f,e){this.N=!0;f===0||e?this.Z.mute():(this.Z.isMuted()&&this.Z.unMute(),this.Z.setVolume(f))}};var kOT=class extends g.y{constructor(f,e){super({L:"div",O:{tabindex:"0",title:f.Y("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume","data-tooltip-offset-y":"-120"},y9:["ytp-volume-popover"]});this.isVisible=!1;this.tooltip=e.Fi();this.V=new HwL(f);g.A(this,this.V);this.V.di(this.element);this.C=new g.T6(()=>{RGC(this,!1)},300); this.listen("mouseenter",()=>{this.C.stop()}); this.listen("mouseleave",()=>{this.J()}); this.listen("focus",()=>{this.C.stop()}); this.D(this.V.G,"focus",()=>{this.C.stop()}); this.listen("focusout",()=>{this.J();this.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.tK(e.Fi(),this.element));g.A(this,this.C)}G(){RGC(this,!0)}J(){this.C.start()}U(){this.C.stop()}W(){return this.isVisible}};var On=class extends g.y{constructor(f,e){var B=f.S().WS?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:f.Y("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};super(f.Y("delhi_modern_web_player")?{L:"div",B:"ytp-mute-button",j:[{L:"button",O:B,y9:["ytp-volume-icon", "ytp-button"],Ga:"{{icon}}"}]}:{L:"button",y9:["ytp-mute-button","ytp-button"],O:B,j:[{L:"div",B:"ytp-volume-icon",Ga:"{{icon}}"}]});this.Z=f;this.G=null;this.U=this.PS=this.N=this.K=NaN;this.uY=this.A=null;this.W=[];this.V=[];this.visible=!1;this.J=this.C=this.Cq=null;f.Y("delhi_modern_web_player")&&this.update({"data-priority":4});B=this.Z.S();this.updateValue("icon",pS());this.tooltip=e.Fi();this.updateValue("dataTooltipOffsetY",0);this.J=g.x2("ytp-volume-icon",this.element);const n=this.Z.Y("delhi_modern_web_player_icons")? {L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",y9:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],O:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{L:"path",B:"ytp-svg-volume-animation-small-ripple",O:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{L:"path",B:"ytp-svg-volume-animation-big-ripple",O:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"defs",j:[{L:"clipPath",O:{id:"ytp-svg-volume-animation-mask"},j:[{L:"path",O:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{L:"path",O:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{L:"path",B:"ytp-svg-volume-animation-mover",O:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{L:"clipPath",O:{id:"ytp-svg-volume-animation-slash-mask"},j:[{L:"path",B:"ytp-svg-volume-animation-mover", O:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{L:"path",ev:!0,y9:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],O:{"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"}},{L:"path",ev:!0,y9:["ytp-svg-fill","ytp-svg-volume-animation-hider"],O:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.G=new g.af(n);g.A(this,this.G);this.A=this.G.JL("ytp-svg-volume-animation-speaker");this.uY=this.A.getAttribute("d");this.W=g.Mo("ytp-svg-volume-animation-mover",this.G.element);this.Z.Y("delhi_modern_web_player_icons");this.V=g.Mo("ytp-svg-volume-animation-hider",this.G.element);this.Z.Y("delhi_modern_web_player_icons");this.Z9=new qY;g.A(this,this.Z9);this.Lq=new qY;g.A(this,this.Lq);this.D(f,"appresize",this.eI);this.D(f,"onVolumeChange",this.onVolumeChange);f.Y("delhi_modern_web_player")? this.listen("click",this.BS):this.listen("click",this.X);B.WS?(f.Y("delhi_modern_web_player")&&!f.Y("delhi_modern_web_player_horizontal_volume_controls")&&(this.C=new kOT(f,e),this.C.di(this.element),g.A(this,this.C),this.D(this.J,"mouseover",this.cS),this.D(this.J,"focus",this.cS),this.D(this.J,"mouseout",this.WS),this.D(this.J,"blur",this.WS)),B=f.Y("delhi_modern_web_player")?this.J:this.element,this.addOnDisposeCallback(g.tK(e.Fi(),B))):KuG(this);this.message=null;f.createClientVe(this.element, this,28662);this.eI(f.AL().getPlayerSize());this.setVolume(f.getVolume(),f.isMuted())}cS(){this.Z.Tb()||(this.updateValue("dataTooltipOffsetY",-120),this.C?.G(),this.C?.U())}WS(){this.C?.J()}eI(f){this.visible=f.width>=300||!1;this.FG(this.visible);this.Z.logVisibility(this.element,this.visible&&this.Ed)}X(){this.Z.S().WS?this.Z.isMuted()?this.Z.unMute():this.Z.mute():AK(this.message,this.element,!0);this.Z.logClick(this.element)}BS(f){this.Z.S().WS&&this.C?f.target===this.J?this.Z.Tb()&&!this.C?.W()? this.C?.G():this.X():this.C?.G():this.X()}onVolumeChange(f){this.setVolume(f.volume,f.muted)}setVolume(f,e){var B=e?0:f/100;f=B===0?1:f>50?1:0;if(this.N!==f){const n=this.K;isNaN(n)?a_G(this,f):ij(this.Z9,r=>{a_G(this,n+(this.N-n)*r)},250); this.N=f}B=B===0?1:0;if(this.U!==B){const n=this.PS;isNaN(n)?Ydk(this,B):ij(this.Lq,r=>{Ydk(this,n+(this.U-n)*r)},250); this.U=B}AtM(this,e)}AE(f){super.AE(f);this.Z.logVisibility(this.element,this.visible&&f)}},qdd=["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"],zG5=["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"],pwd=18,ct5=12,FZ=22,mg=12;g.C0H=class extends g.y{constructor(f,e){super({L:"button",y9:["ytp-play-button","ytp-button"],O:{title:f.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Ga:"{{icon}}"});this.Z=f;this.C=null;this.transition=new qY;this.tooltip=e.Fi();g.A(this,this.transition);f.createClientVe(this.element,this,36842);f.logVisibility(this.element,!0);this.D(f,"fullscreentoggled",this.onVideoDataChange); this.D(f,"presentingplayerstatechange",this.onStateChange);this.D(f,"videodatachange",this.onVideoDataChange);this.Hd(f.getPlayerStateObject());this.listen("click",this.u4,this);this.addOnDisposeCallback(g.tK(e.Fi(),this.element))}onStateChange(f){this.Hd(f.state)}Hd(f){var e=g.mi(this.Z.getVideoData());let B=!1;f.isOrWillBePlaying()?f=e?4:2:f.C(2)?(f=3,B=e):f=1;this.element.disabled=B;if(this.C!==f){e=null;switch(f){case 2:e=g.kr(this.Z,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"}); break;case 3:e="Reiniciar";this.update({"data-title-no-tooltip":"Reiniciar"});break;case 1:e=g.kr(this.Z,"Reproduzir","k");this.update({"data-title-no-tooltip":"Reproduzir"});break;case 4:e="Parar reprodu\u00e7\u00e3o",this.update({"data-title-no-tooltip":"Parar reprodu\u00e7\u00e3o"})}f===3?this.Z.S().Y("player_tooltip_data_title_killswitch")?this.update({title:e,icon:Up(this,f)}):this.update({"tooltip-title":e,icon:Up(this,f)}):(this.Z.Y("player_tooltip_data_title_killswitch")?this.update({title:e}): this.update({"tooltip-title":e}),(e=Up(this,f))&&this.C&&this.C!==3?ap0(this.transition,this.element,e):this.updateValue("icon",e));this.tooltip.lR();this.C=f}}onVideoDataChange(){g.h(this.element,"ytp-play-button-playlist",g.bS(this.Z))}u4(f){this.Z.logClick(this.element);if(this.Z.getPlayerStateObject().isOrWillBePlaying())this.Z.pauseVideo();else{if(this.Z.isMinimized()&&this.Z.getPlayerStateObject().isCued()){const e={};this.Z.getVideoData()?.dj&&(e.cttAuthInfo={token:this.Z.getVideoData().dj, videoId:this.Z.getVideoData().videoId});gH("direct_playback",e);this.Z.Pt().timerName="direct_playback"}this.Z.playVideo()}this.Z.isMinimized()&&f?.type==="click"&&this.element.blur()}AE(f){super.AE(f)}};g.o3=class extends g.y{constructor(f,e,B){super({L:"a",y9:[B?"ytp-next-button":"ytp-prev-button","ytp-button"],O:{role:"button",title:"{{title}}","data-tooltip-title":"{{tooltip-title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}",tabindex:"0"},j:[VTd(B,f.Y("delhi_modern_web_player_icons"))]}); this.Z=f;this.C=B;this.playlist=this.videoData=null;this.X=!1;this.V=this.W=this.G=null;this.J=!1;this.tooltip=e.Fi();B?f.createClientVe(this.element,this,6193):f.createClientVe(this.element,this,6194);this.D(f,"fullscreentoggled",this.onVideoDataChange);this.D(f,"videodatachange",this.onVideoDataChange);this.D(f,"onPlaylistUpdate",this.onVideoDataChange);this.D(f,"onLoopRangeChange",this.onVideoDataChange);this.C||this.D(f,"appresize",this.U);this.D(f,"mdxpreviousnextchange",()=>{Nv(this);this.U()}); this.onVideoDataChange()}onVideoDataChange(){Oq0(this);this.V&&(this.uh(this.V),this.V=null);this.videoData=this.Z.getVideoData({playerType:1});if(this.playlist=this.Z.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.V=this.D(this.Z,"progresssync",this.K);this.J=oQg(this);Nv(this);this.U(this.Z.AL().getPlayerSize())}U(f=this.Z.AL().getPlayerSize()){var e=this.Z.getLoopRange()?.type==="clips";const B=g.bS(this.Z)||this.C&&g.zJ(this.Z)&&!this.Z.Y("web_hide_next_button")|| jG5(this),n=!this.C&&f.width<400;f=this.Z.Y("delhi_modern_web_player_horizontal_volume_controls")&&f.width<640;e=B&&!e&&!n&&!f;this.FG(e);this.Z.logVisibility(this.element,e)}onClick(f){this.Z.logClick(this.element);let e=!0;this.X?e=g.mv(f,this.Z):f.preventDefault();e&&(this.C&&this.Z.getPresentingPlayerType()===5?this.Z.publish("ytoprerollinternstitialnext"):this.C?(R_(this.Z.Pt()),this.Z.publish("playlistnextbuttonclicked",this.element),this.Z.nextVideo(!0)):this.J?this.Z.seekTo(0):(R_(this.Z.Pt()), this.Z.publish("playlistprevbuttonclicked",this.element),this.Z.previousVideo(!0)))}K(){const f=oQg(this);f!==this.J&&(this.J=f,Nv(this))}bY(){this.G&&(this.G(),this.G=null);Oq0(this);super.bY()}};var w5e=class extends g.y{constructor(f,e){super({L:"div",B:"ytp-fine-scrubbing",j:[{L:"div",B:"ytp-fine-scrubbing-draggable",j:[{L:"div",B:"ytp-fine-scrubbing-thumbnails",O:{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}}"}}]},{L:"div",O:{"aria-hidden":"true"},B:"ytp-fine-scrubbing-cursor"},{L:"div",B:"ytp-fine-scrubbing-seek-time", O:{"aria-hidden":"true"},Ga:"{{seekTime}}"},{L:"div",B:"ytp-fine-scrubbing-play",j:[f.Y("delhi_modern_web_player_icons")?KS():R5()],O:{title:"Reproduzir desta posi\u00e7\u00e3o",role:"button"}},{L:"div",B:"ytp-fine-scrubbing-dismiss",j:[g.Hl()],O:{title:"Sair da busca precisa",role:"button"}}]});this.api=f;this.W=this.JL("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.JL("ytp-fine-scrubbing-dismiss");this.Cq=this.JL("ytp-fine-scrubbing-draggable");this.playButton=this.JL("ytp-fine-scrubbing-play"); this.thumbnails=[];this.G=[];this.uY=this.C=0;this.WS=void 0;this.N=NaN;this.Z9=this.K=this.J=this.X=0;this.V=[];this.interval=this.frameCount=0;this.U=160;this.scale=1;this.BS=0;this.isEnabled=this.eI=!1;hL(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.tK(e,this.dismissButton));this.addOnDisposeCallback(g.tK(e,this.playButton));this.cS=new g.rI(this.Cq,!0);this.cS.subscribe("dragstart",this.Lq,this);this.cS.subscribe("dragmove",this.PS,this);this.cS.subscribe("dragend",this.Fl,this); this.D(f,"SEEK_COMPLETE",this.kA);f.Y("web_fix_fine_scrubbing_false_play")&&this.D(f,"rootnodemousedown",B=>{this.A=B}); this.W.addEventListener("keydown",()=>{}); g.A(this,this.cS);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.W,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}MC(f){this.Lq(f.pageX);this.PS(f.pageX+f.deltaX);gW(this)}Lq(f){this.N=f-this.uY}PS(f){f-=this.uY;!isNaN(this.N)&&this.thumbnails.length>0&&(this.K=f-this.N,this.thumbnails.length>0&&this.K!==0&&(this.J=this.X+this.K,f=uXO(this,this.J),this.J<=this.C/2&&this.J>=l_5(this)?(this.api.seekTo(f, !1,void 0,void 0,25),g.uc(this.Cq,"transform",`translateX(${this.J-this.C/2}px)`),hL(this,f)):this.J=this.X))}Fl(){this.A&&(this.A.SN=!0);var f=(0,g.T)()-this.BS<300;if(Math.abs(this.K)<5&&!f){this.BS=(0,g.T)();f=this.N+this.K;const e=this.C/2-f;this.Lq(f);this.PS(f+e);gW(this);this.api.logClick(this.W)}gW(this)}kA(){Sz(this,this.api.getCurrentTime())}play(f){this.api.seekTo(uXO(this,this.J),void 0,void 0,void 0,26);this.api.playVideo();f&&this.api.logClick(this.playButton)}onExit(f){this.api.seekTo(this.Z9, void 0,void 0,void 0,63);this.api.playVideo();f&&this.api.logClick(this.dismissButton)}Sf(f,e){this.uY=f;this.C=e;Sz(this,this.api.getCurrentTime())}qC(f){this.scale=f?1.5:1}enable(){this.isEnabled||(this.isEnabled=!0,this.Z9=this.api.getCurrentTime(),hL(this,this.Z9),g.h(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.WS=this.D(this.element,"wheel",this.MC),this.logVisibility(this.isEnabled))}disable(){this.isEnabled=!1;this.hide();g.h(this.api.getRootNode(),"ytp-fine-scrubbing-enable", this.isEnabled);this.WS&&this.uh(this.WS);this.logVisibility(this.isEnabled)}reset(){this.disable();this.V=[];this.eI=!1}logVisibility(f){this.api.logVisibility(this.element,f);this.api.logVisibility(this.W,f);this.api.logVisibility(this.dismissButton,f);this.api.logVisibility(this.playButton,f)}bY(){for(;this.G.length;)this.G.pop()?.dispose();super.bY()}},FuM=class extends g.y{constructor(){super({L:"div",B:"ytp-fine-scrubbing-thumbnail"})}},mKM=class extends g.y{constructor(){super({L:"div",B:"ytp-fine-scrubbing-chapter-title", j:[{L:"div",B:"ytp-fine-scrubbing-chapter-title-content",Ga:"{{chapterTitle}}"}]})}};var QG5=class extends g.y{constructor(f){super({L:"div",B:"ytp-heat-map-chapter",j:[{L:"svg",B:"ytp-heat-map-svg",O:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},j:[{L:"defs",j:[{L:"clipPath",O:{id:"{{id}}"},j:[{L:"path",B:"ytp-heat-map-path",O:{d:"",fill:"white"}}]},{L:"linearGradient",O:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},j:[{L:"stop",O:{offset:"0%","stop-color":"white","stop-opacity":"1"}}, {L:"stop",O:{offset:"100%","stop-color":"white","stop-opacity":"0"}}]}]},{L:"rect",B:"ytp-heat-map-graph",O:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{L:"rect",B:"ytp-heat-map-hover",O:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{L:"rect",B:"ytp-heat-map-play",O:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{L:"path",B:"ytp-modern-heat-map",O:{d:"",fill:"url(#ytp-heat-map-gradient-def)", height:"100%",stroke:"white","stroke-opacity":"1","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=f;this.X=this.JL("ytp-heat-map-svg");this.W=this.JL("ytp-heat-map-path");this.V=this.JL("ytp-heat-map-graph");this.U=this.JL("ytp-heat-map-play");this.C=this.JL("ytp-heat-map-hover");this.J=this.JL("ytp-modern-heat-map");this.H4=!1;this.G=60;f=`${g.od(this)}`;this.update({id:f});f=`url(#${f})`;this.V.setAttribute("clip-path",f);this.U.setAttribute("clip-path",f);this.C.setAttribute("clip-path", f)}N(f){this.U.setAttribute("width",`${(f*100).toFixed(2)}%`)}K(f){this.C.setAttribute("width",`${(f*100).toFixed(2)}%`)}};var Sd6=class extends g.y{constructor(){super({L:"div",B:"ytp-chapter-hover-container",j:[{L:"div",B:"ytp-progress-bar-padding"},{L:"div",B:"ytp-progress-list",j:[{L:"div",y9:["ytp-play-progress","ytp-swatch-background-color"]},{L:"div",B:"ytp-progress-linear-live-buffer"},{L:"div",B:"ytp-load-progress"},{L:"div",B:"ytp-hover-progress"},{L:"div",B:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.G=this.JL("ytp-progress-list");this.W=this.JL("ytp-progress-linear-live-buffer"); this.V=this.JL("ytp-ad-progress-list");this.U=this.JL("ytp-load-progress");this.X=this.JL("ytp-play-progress");this.J=this.JL("ytp-hover-progress");this.C=this.JL("ytp-chapter-hover-container")}V3(f){return f==="PLAY_PROGRESS"?this.X:f==="LOAD_PROGRESS"?this.U:f==="LIVE_BUFFER"?this.W:this.J}};var vgM=class{constructor(){this.G=this.position=this.J=this.C=this.V=this.width=NaN}update(f,e,B=0,n=0){this.width=e;this.V=B;this.C=e-B-n;this.position=g.ch(f,B,B+this.C);this.J=this.position-B;this.G=this.J/this.C}};var Wu5=class extends g.y{constructor(){super({L:"div",B:"ytp-timed-marker"});this.C=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}};g.bwx=class extends g.Sq{constructor(f,e){super({L:"div",B:"ytp-progress-bar-container",O:{"aria-disabled":"true"},j:[{L:"div",y9:["ytp-heat-map-container"],j:[{L:"div",B:"ytp-heat-map-edu"}]},{L:"div",y9:["ytp-progress-bar"],O:{tabindex:"0",role:"slider","aria-label":"Bot\u00e3o deslizante de busca","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},j:[{L:"div",B:"ytp-chapters-container"},{L:"div",B:"ytp-timed-markers-container"}, {L:"div",B:"ytp-clip-start-exclude"},{L:"div",B:"ytp-clip-end-exclude"},{L:"div",B:"ytp-scrubber-container",j:[{L:"div",y9:["ytp-scrubber-button","ytp-swatch-background-color"],j:[{L:"div",B:"ytp-scrubber-pull-indicator"},{L:"img",y9:["ytp-decorated-scrubber-button"]}]}]}]},{L:"div",y9:["ytp-fine-scrubbing-container"],j:[{L:"div",B:"ytp-fine-scrubbing-edu"}]},{L:"div",B:"ytp-bound-time-left",Ga:"{{boundTimeLeft}}"},{L:"div",B:"ytp-bound-time-right",Ga:"{{boundTimeRight}}"},{L:"div",B:"ytp-clip-start", O:{title:"{{clipstarttitle}}"},Ga:"{{clipstarticon}}"},{L:"div",B:"ytp-clip-end",O:{title:"{{clipendtitle}}"},Ga:"{{clipendicon}}"}]});this.api=f;this.Z2=!1;this.y8=this.GJ=this.MC=this.cS=this.X=this.F6=0;this.K5=null;this.zt=!1;this.BS={};this.hE={};this.clipEnd=Infinity;this.Q3=this.JL("ytp-clip-end");this.sE=new g.rI(this.Q3,!0);this.Wd=this.JL("ytp-clip-end-exclude");this.UE=this.JL("ytp-clip-start-exclude");this.clipStart=0;this.uC=this.JL("ytp-clip-start");this.Ys=new g.rI(this.uC,!0);this.A= this.xA=0;this.progressBar=this.JL("ytp-progress-bar");this.Ch={};this.Fl={};this.kA=this.JL("ytp-chapters-container");this.rT=this.JL("ytp-timed-markers-container");this.C=[];this.K=[];this.pz={};this.IR=null;this.PS=-1;this.IA=this.Lq=0;this.Qr=this.N=null;this.E2=this.JL("ytp-scrubber-button");this.eI=this.JL("ytp-decorated-scrubber-button");this.Dk=this.JL("ytp-scrubber-container");this.tL=new g.OE;this.EE=0;this.xI=new vgM;this.J=new $H(0,0);this.PL=null;this.U=this.s3=!1;this.CG=null;this.Cq= this.JL("ytp-heat-map-container");this.P4=this.JL("ytp-heat-map-edu");this.V=[];this.heatMarkersDecorations=[];this.qC=this.JL("ytp-fine-scrubbing-container");this.hF=this.JL("ytp-fine-scrubbing-edu");this.G=void 0;this.uY=this.qj=this.Z9=!1;this.tooltip=e.Fi();this.addOnDisposeCallback(g.tK(this.tooltip,this.Q3));g.A(this,this.sE);this.sE.subscribe("hoverstart",this.KG,this);this.sE.subscribe("hoverend",this.cE,this);this.D(this.Q3,"click",this.lC);this.addOnDisposeCallback(g.tK(this.tooltip,this.uC)); g.A(this,this.Ys);this.Ys.subscribe("hoverstart",this.KG,this);this.Ys.subscribe("hoverend",this.cE,this);this.D(this.uC,"click",this.lC);EQM(this);this.D(f,"resize",this.Sf);this.D(f,"presentingplayerstatechange",this.fp);this.D(f,"videodatachange",this.N9);this.D(f,"videoplayerreset",this.HJ);this.D(f,"cuerangesadded",this.g8);this.D(f,"cuerangesremoved",this.DP);this.D(f,"onLoopRangeChange",this.jX);this.D(f,"innertubeCommand",this.onClickCommand);this.D(f,"onRetroModeChanged",this.KA);this.D(f, g.kk("timedMarkerCueRange"),this.Fo);this.D(f,"updatemarkervisibility",this.gT);this.D(f,f.S().JE().C.jI(I$)?"playbackChange":"serverstitchedvideochange",this.B9);this.updateVideoData(f.getVideoData(),!0);this.jX(f.getLoopRange());TE(this)&&!this.G&&(this.G=new w5e(this.api,this.tooltip),f=g.Tt(this.element).x||0,this.G.Sf(f,this.X),this.G.di(this.qC),g.A(this,this.G),this.D(this.G.dismissButton,"click",this.FY),this.D(this.G.playButton,"click",this.Cc),this.D(this.G.element,"dblclick",this.Cc)); this.api.createClientVe(this.Cq,this,139609,!0);this.api.createClientVe(this.P4,this,140127,!0);this.api.createClientVe(this.hF,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}gT(){var f=!1;const e=this.api.getVideoData();if(!e)return f;this.api.sK("timedMarkerCueRange");DG(this);for(const k of e.PS){var B=this.Fl[k]?.markerType,n=this.Fl[k]?.markers;if(!n)break;if(B==="MARKER_TYPE_TIMESTAMPS"){for(const C of n)f=new Wu5,B=C,f.title=B.title?.simpleText||"",f.timeRangeStartMillis= Number(B.startMillis),f.C=Number(B.durationMillis),f.onActiveCommand=B.onActive?.innertubeCommand??void 0,XwC(this,f);GE(this,this.K);f=this.K;B=this.pz;var r=[],L=null;for(var d=0;dt&&(L.end=t);t=uSw(t,t+H);r.push(t);L=t;B[t.id]=f[d].onActiveCommand}}this.api.AI(r);a:{for(const C of n)if(C.sourceType==="SOURCE_TYPE_SMART_SKIP"){f=!1;break a}f=!0}f&&(this.IR=this.Fl[k]);f=!0}else if(B==="MARKER_TYPE_HEATMAP"){if((n= this.Fl[k])&&n.markers){B=n.markersMetadata?.heatmapMetadata?.minHeightDp??0;r=n.markersMetadata?.heatmapMetadata?.maxHeightDp??60;L=this.C.length;d=null;for(t=0;t=H&&b<=C&&w.push(v)}r>0&&(this.Cq.style.height=`${r}px`);gQk(this.V[t],w,B,r,t===0);w.length>0&&(d=w[w.length-1])}g.JL(this)}B=[];if(n=n.markersDecoration?.timedMarkerDecorations)for(const C of n)B.push({visibleTimeRangeStartMillis:C.visibleTimeRangeStartMillis?? -1,visibleTimeRangeEndMillis:C.visibleTimeRangeEndMillis??-1,decorationTimeMillis:C.decorationTimeMillis??NaN,label:C.label?g.nS(C.label):""});n=B;this.heatMarkersDecorations=n}}e.JA=this.K;g.h(this.element,"ytp-timed-markers-enabled",f);return f}Sf(){g.JL(this);Mv(this);GE(this,this.K);if(this.G){const f=g.Tt(this.element).x||0;this.G.Sf(f,this.X)}}KA(){const f=this.api.getVideoData();f&&e_k(this,f)}onClickCommand(f){if(f=g.u(f,n2)){const e=f.key;f.isVisible&&e&&xH(this,e)}}Fo(f){g.yW(this.api,"innertubeCommand", this.pz[f.id])}ZW(){Mv(this);const f=this.api.getCurrentTime();(fthis.clipEnd)&&this.lC()}uT(f){if(!f.defaultPrevented){let e=!1;switch(f.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);e=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);e=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);e=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);e=!0;break;case 38:this.api.Y("enable_key_press_seek_logging")&&nA(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);e=!0;break;case 40:this.api.Y("enable_key_press_seek_logging")&&nA(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),e=!0}e&&f.preventDefault()}}N9(f,e){this.updateVideoData(e,f==="newdata")}HJ(){this.N9("newdata",this.api.getVideoData())}updateVideoData(f,e=!1){var B= !!f&&f.H4();B&&(f.eI()||Is(this)?this.s3=!1:(this.api.S().JE().C.jI(LVm),this.s3=f.allowLiveDvr),g.h(this.api.getRootNode(),"ytp-enable-live-buffer",!!f?.eI()),e_k(this,f));LA(this,this.api.Xq());if(e){if(B){e=f.clipEnd;this.clipStart=f.clipStart;this.clipEnd=e;ee(this);for(XZ(this,this.A,this.xA);this.V.length>0;)this.V.pop().dispose();this.heatMarkersDecorations=[];this.Ch={};this.G?.reset();dI(this);g.h(this.api.getRootNode(),"ytp-fine-scrubbing-exp",TE(this))}else this.lC();this.W()}if(f){e=this.PL?.type=== "clips";if(B=!f.isLivePlayback){B=this.api.getVideoData();var n=g.hq(B);const d=JtG(B);B=n!=null||d!=null&&d.length>0||B.fA?.length>0}if(B&&!e){e=this.api.getVideoData();n=g.hq(e);B=!1;if(n?.markersMap){B=this.api.getVideoData();B.Bz=n.visibleOnLoad?.key||B.Bz;n=n.markersMap;for(var r of n)r.key&&r.value&&(this.Ch[r.key]=r.value,r.value.onChapterRepeat&&(B.CM=r.value.onChapterRepeat));B.Bz!=null&&xH(this,B.Bz);B=!0}if(e.fA?.length>0){r=g.r7.getState().entities;for(var L of e.fA)if(n=Uh(r,L)?.markersList, n?.markerType==="MARKER_TYPE_TIMESTAMPS"||n?.markerType==="MARKER_TYPE_HEATMAP")this.Fl[L]=n;B=this.gT()||B}!B&&(L=JtG(e))&&(Gu5(this,L),e.lC=this.C,xKl(this));r20(this,null);f.ql&&this.V.length===0&&(f=f.ql,L=f.key,f.isVisible&&L&&xH(this,L))}else EQM(this),DG(this)}Mv(this)}fp(f){this.N&&!f.state.C(32)&&this.api.getPresentingPlayerType()!==3&&this.N.cancel();this.G?.isEnabled&&f.state.C(8)&&this.api.pauseVideo();f=this.api.getPresentingPlayerType()===2||!this.api.Xq()||this.api.getPlayerState()=== -1&&this.api.getCurrentTime()===0;g.h(this.E2,"ytp-hide-scrubber-button",f)}jX(f){const e=!!this.PL!==!!f,B=this.PL;this.PL=f;r20(this,B);f?.type!=="clips"&&f||(f?(this.updateValue("clipstarticon",Mj5()),this.updateValue("clipendicon",Mj5()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",gbC()),this.updateValue("clipendicon",hSl()),this.updateValue("clipstarttitle","Assista o v\u00eddeo completo"),this.updateValue("clipendtitle","Assista o v\u00eddeo completo")), e&&(this.updateVideoData(this.api.getVideoData(),!0),g.JL(this)),ee(this));XZ(this,this.A,this.xA)}YE(){this.api.publish("progressBarHoverStart")}BJ(f,e,B){var n=g.Tt(this.element),r=Pc(this).C;const L=B?B.getAttribute("data-tooltip"):void 0;var d=B?B.getAttribute("data-position"):void 0,t=B?B.getAttribute("data-offset-y"):void 0;t=t?Number(t):0;d&&(f=QQ(this.J,Number(B.getAttribute("data-position")),0)*r+g.Tt(this.progressBar).x);this.tL.x=f-n.x;this.tL.y=e-n.y;f=Pc(this);n=tB(this,f);e=0;this.api.getVideoData()?.eI()&& ((e=this.api.getProgressState().seekableEnd)&&n>e&&(n=e,f.position=QQ(this.J,e)*Pc(this).C),e=this.J.G);Is(this)&&(e=this.J.G);e=L||g.SL(this.s3?n-this.J.C:n-e);B=f.position+this.F6;n-=this.api.gA();if(!this.G?.isEnabled)if(this.api.Pr()){if(this.C.length>1){r=B2(this,this.tL.x,!0);if(!this.PL)for(d=0;d1)for(d=0;d0){r=this.tL.x; for(var H of this.K)d=yI(this,H.timeRangeStartMillis/(this.J.C*1E3),Pc(this)),g.h(H.element,"ytp-timed-marker-hover",d<=r&&d+6>=r)}r=this.tooltip.scale;H=this.api.Y("delhi_modern_web_player")?67:45;t=(isNaN(t)?0:t)-H*r;this.api.Y("web_key_moments_markers")?this.IR?(H=of5(this.K,n*1E3),H=H!=null?this.K[H].title:""):(H=vc(this.C,n*1E3),H=this.C[H].title):(H=vc(this.C,n*1E3),H=this.C[H].title);H||(t+=16*r);this.tooltip.scale===.6&&(g.yQ(this.api.S())?(t=this.api.AL().getPlayerSize().height-225,r=this.api.Y("delhi_modern_web_player")? 70:110,t=H?t+r:t+r+16):t=H?110:126);r=vc(this.C,n*1E3);this.PS=t75(this,n,r)?r:t75(this,n,r+1)?r+1:-1;g.h(this.api.getRootNode(),"ytp-progress-bar-snap",this.PS!==-1&&this.C.length>1);r=!1;for(var k of this.heatMarkersDecorations)d=n*1E3,d>=k.visibleTimeRangeStartMillis&&d<=k.visibleTimeRangeEndMillis&&(H=k.label,e=g.SL(tB(this,f)),r=!0);this.qj!==r&&(this.qj=r,this.api.logVisibility(this.P4,this.qj));g.h(this.api.getRootNode(),"ytp-progress-bar-decoration",r);k=160*this.tooltip.scale*2;r=H.length* (this.U?8.55:5.7);r=r<=k?r:k;d=r<160*this.tooltip.scale;k=3;!d&&r/2>f.position&&(k=1);!d&&r/2>this.X-f.position&&(k=2);this.api.S().X&&(t-=10);this.V.length&&this.V[0].H4&&(t-=14*(this.U?2:1),this.Z9||(this.Z9=!0,this.api.logVisibility(this.Cq,this.Z9)));TE(this)&&(this.G?.isEnabled||this.MC>0)&&(t-=this.G?.isEnabled?(this.U?135:90)-this.cS:this.MC);f=void 0;TE(this)&&!this.api.Y("web_player_hide_fine_scrubbing_edu")&&(f="Puxe para cima para uma busca precisa",this.uY||(this.uY=!0,this.api.logVisibility(this.hF, this.uY)));this.tooltip.vU(B,n,e,!!L,t,H,k,f)}else this.tooltip.vU(B,n,e,!!L,t);g.PW(this.api.getRootNode(),"ytp-progress-bar-hover");iqw(this)}Xo(){this.W();g.$i(this.api.getRootNode(),"ytp-progress-bar-hover");this.Z9&&(this.Z9=!1,this.api.logVisibility(this.Cq,this.Z9));this.uY&&(this.uY=!1,this.api.logVisibility(this.hF,this.uY));this.api.Y("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}Ui(f,e){const B=g.Tt(this.element); this.EE=f-B.x;TE(this)&&this.G&&(this.G.eI?Sz(this.G,this.api.getCurrentTime()):UK0(this.G),this.G.show(),g.h(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.G.isEnabled));this.K5&&(this.K5.dispose(),this.K5=null);this.GJ=e;this.y8=this.api.getCurrentTime();this.C.length>1&&this.PS!==-1?this.api.seekTo(this.C[this.PS].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(tB(this,Pc(this)),!1,void 0,void 0,7);g.PW(this.element,"ytp-drag");(this.Z2=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}fA(){if(TE(this)&&this.G){var f=(this.U?135:90)-this.cS;this.MC>=f*.5?(this.G.enable(),Sz(this.G,this.api.getCurrentTime()),du0(this,f)):dI(this)}if(this.api.getPlayerStateObject().C(32)||this.api.getPresentingPlayerType()===3)if(this.G?.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.C.length>1&&this.PS!==-1)this.api.Y("html5_enable_progress_bar_slide_seek_logging")&&nA(this,this.y8,this.C[this.PS].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.C[this.PS].startTime/1E3,void 0,void 0,void 0,7);else{f=tB(this,Pc(this));this.api.Y("html5_enable_progress_bar_slide_seek_logging")&&nA(this,this.y8,f,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(f,void 0,void 0,void 0,7);for(const e of this.heatMarkersDecorations)f*1E3>=e.visibleTimeRangeStartMillis&&f*1E3<=e.visibleTimeRangeEndMillis&&this.api.logClick(this.P4)}g.$i(this.element, "ytp-drag");this.WS&&(this.eI.src=this.WS);this.Z2&&!this.api.getPlayerStateObject().C(2)&&this.api.playVideo()}}nA(f,e){const B=Pc(this),n=tB(this,B);this.api.AL().Ja||(B.position>this.EE+2?this.Mk&&(this.eI.src=this.Mk):B.position{const r=g.Tt(this.element).x||0;this.EE=f-r},150)); this.api.seekTo(n,!1,void 0,void 0,7);TE(this)&&this.G?.eI&&(Sz(this.G,n),this.G.isEnabled||(this.MC=g.ch(this.GJ-e-10,0,(this.U?135:90)-this.cS),du0(this,this.MC)))}W(){this.tooltip.lO()}KG(){this.PL||(this.updateValue("clipstarticon",NOg()),this.updateValue("clipendicon",NOg()),g.PW(this.element,"ytp-clip-hover"))}cE(){this.PL||(this.updateValue("clipstarticon",gbC()),this.updateValue("clipendicon",hSl()),g.$i(this.element,"ytp-clip-hover"))}lC(){this.clipStart=0;this.clipEnd=Infinity;ee(this); XZ(this,this.A,this.xA)}g8(f){for(const e of f)if(e.visible){if(f=e.getId(),!this.BS[f]){const B=g.BN("DIV");e.tooltip&&B.setAttribute("data-tooltip",e.tooltip);this.BS[f]=e;this.hE[f]=B;g.X3(B,e.style);Bcl(this,f);this.api.S().Y("disable_ad_markers_on_content_progress_bar")||this.C[0].V.appendChild(B)}}else bx5(this,e)}DP(f){for(const e of f)bx5(this,e)}FY(f){this.G&&(this.G.onExit(f!=null),dI(this))}Cc(f){this.G&&(this.G.play(f!=null),dI(this))}B9(){LA(this,this.api.Xq())}bY(){LA(this,!1);super.bY()}Aq(){return this.G}};var ZwL=class extends g.y{constructor(f,e){super({L:"button",y9:["ytp-remote-button","ytp-button"],O:{title:f.Y("player_tooltip_data_title_killswitch")?"Reproduzir na TV":"","data-tooltip-title":"Reproduzir na TV","aria-haspopup":"true","data-priority":"10"},Ga:"{{icon}}"});this.Z=f;this.rA=e;this.C=null;this.D(f,"onMdxReceiversChange",this.gi);this.D(f,"presentingplayerstatechange",this.gi);this.D(f,"appresize",this.gi);f.createClientVe(this.element,this,139118);this.gi();this.listen("click",this.G, this);HF(f,this.element,this)}isActive(){return!!this.Z.getOption("remote","casting")}gi(){var f=!1;this.Z.getOptions().includes("remote")&&(f=this.Z.getOption("remote","receivers").length>1);this.FG(f&&this.Z.AL().getPlayerSize().width>=400);this.Z.logVisibility(this.element,this.ef);let e=1;f&&this.isActive()&&(e=2);if(this.C!==e){this.C=e;f=this.Z.Y("delhi_modern_web_player_icons");switch(e){case 1:this.updateValue("icon",f?{L:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path", O:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",ev:!0,O:{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", f?{L:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.m_Y())}g.h(this.element,"ytp-remote-button-active",this.isActive())}}G(){if(this.Z.getOption("remote","quickCast"))this.Z.setOption("remote","quickCast",!0);else{var f=this.rA,e=this.element;if(f.A3())f.HL();else{f.initialize();a:{for(B of f.Tv.items)if(B.priority===1)break a;var B=null}B&&(B.open(),f.Fx(e));f.Fx(e)}}this.Z.logClick(this.element)}};var RML=class extends g.y{constructor(f,e){super({L:"button",y9:["ytp-button","ytp-settings-button"],O:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":ie(),title:f.Y("player_tooltip_data_title_killswitch")?"Detalhes":"","data-tooltip-title":"Detalhes","data-tooltip-target-id":"ytp-settings-button"},j:[f.Y("delhi_modern_web_player_icons")?{L:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.zT()]});this.Z=f;this.rA=e;this.G=!0;this.listen("click",this.J);this.D(f,"onPlaybackQualityChange",this.updateBadge);this.D(f,"videodatachange",this.updateBadge);this.D(f,"webglsettingschanged",this.updateBadge);this.D(f,"appresize",this.C);HF(f,this.element,this);this.Z.createClientVe(this.element,this,28663);this.updateBadge();this.C(f.AL().getPlayerSize())}C(f){const e=this.Z.S();let B=400;e.U?B=300:e.X&&(B=200);f=this.G&&f.width>=B;this.FG(f);this.Z.logVisibility(this.element, f)}J(){if(this.rA.ef)this.rA.HL();else{const f=g.o_(this.Z.iC());f&&!f.loaded&&(f.gZ("tracklist",{includeAsr:!0}).length||f.load());this.Z.logClick(this.element);this.rA.Fx(this.element)}}updateBadge(){const f=this.Z.isHdr();var e=this.Z.getPresentingPlayerType(),B=e!==2&&e!==3,n=g.K_(this.Z),r=B&&!!g.Ry(this.Z.iC());e=r&&n.displayMode===1;n=r&&n.displayMode===2;B=(r=e||n)||!B?null:this.Z.getPlaybackQuality();g.h(this.element,"ytp-hdr-quality-badge",f);g.h(this.element,"ytp-hd-quality-badge",!f&& (B==="hd1080"||B==="hd1440"));g.h(this.element,"ytp-4k-quality-badge",!f&&B==="hd2160");g.h(this.element,"ytp-5k-quality-badge",!f&&B==="hd2880");g.h(this.element,"ytp-8k-quality-badge",!f&&B==="highres");g.h(this.element,"ytp-3d-badge-grey",!f&&r&&e);g.h(this.element,"ytp-3d-badge",!f&&r&&n)}};var K5B=class extends g.R3{constructor(f,e,B){if(f.Y("web_add_footer_template_to_audio_track")){var n="Edite seus $BEGIN_LINKidiomas preferidos$END_LINK nas configura\u00e7\u00f5es".split(/\$(BEGIN|END)_LINK/);n={L:"div",B:"ytp-panel-footer-content",j:[n[0],{L:"a",B:"ytp-panel-footer-content-link",O:{href:"/account_playback"},Ga:n[2]},n[4]]}}super("Faixa de \u00e1udio",g.X7.AUDIO,f,e,void 0,void 0,n);this.Z=f;this.W=B;this.tracks={};g.PW(this.element,"ytp-audio-menu-item");this.countLabel=new g.y({L:"div", j:[{L:"span",Ga:"Faixa de \u00e1udio"},{L:"span",B:"ytp-menuitem-label-count",Ga:"{{content}}"}]});f.Y("web_settings_menu_icons")&&!this.Z.Y("html5_enable_new_audio_settings_menu")&&(e=f.Y("delhi_modern_web_player_icons")?{L:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:{L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{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"}}]},this.setIcon(e));g.A(this,this.countLabel);g.Or(this,this.countLabel);f.createClientVe(this.element,this,273318);this.listen("click",this.onClick);this.D(f,"videodatachange",this.gi);this.D(f,"onPlaybackAudioChange",this.gi);this.gi()}gi(){var f=this.Z.getAvailableAudioTracks();if(f.length>1){const e=f.filter(n=>n.isAutoDubbed()),B=f.filter(n=>!n.isAutoDubbed()).map(this.U); e.length>0&&(this.Z.ri("ad_grp",{ad_c:e.length,t_c:f.length}),B.push(new BzY),B.push(...e.map(this.U)));nmm(this,B);this.tracks=g.jB(f,this.U,this);this.countLabel.setContent(f.length?` (${f.length})`:"");this.publish("size-change");f=this.U(this.Z.getAudioTrack());this.G(f);this.Z.Y("html5_enable_new_audio_settings_menu")&&this.W?.Rw(f.toString());this.enable(!0)}else this.Z.Y("html5_enable_new_audio_settings_menu")&&this.W?.Rw(""),this.enable(!1)}C(f){super.C(f);f=this.tracks[f];this.Z.setAudioTrack(f); this.rA.Ss();this.Z.ri("ad_sel",{lang:f.Z_.id})}U(f){return f.toString()}X(f){this.Z.Y("html5_enable_new_audio_settings_menu")?this.W&&(f?this.W.jf(this):this.W.ij(this)):super.X(f)}onClick(){this.Z.logClick(this.element)}};var qk2=class extends g.DZ{constructor(f,e){super(g.j5({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.X7.Ip);this.Z=f;this.rA=e;g.PW(this.element,"ytp-audio-settings-menu-item");this.RC=new g.ba(f,void 0,"\u00c1udio");this.countLabel=new g.y({L:"div",j:[{L:"span",Ga:"\u00c1udio"},{L:"span",B:"ytp-menuitem-label-count",Ga:"{{content}}"}]});f.Y("web_settings_menu_icons")&&this.setIcon({L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z", fill:"white"}}]});this.DL=new K5B(f,this.rA,this);g.A(this,this.DL);this.D(f,"settingsMenuInitialized",this.Mq.bind(this));this.D(f,"videodatachange",this.Mq.bind(this));g.A(this,this.countLabel);g.Or(this,this.countLabel);this.rA.jf(this);this.D(f,"onPlaybackAudioChange",this.j6);this.listen("keydown",this.uT);this.listen("click",this.open)}j6(){this.Z.j6()}open(){this.RC.aJ()>0&&g.Th(this.rA,this.RC)}Mq(){this.RC.aJ()>0&&this.Z.getPresentingPlayerType()!==2&&this.Z.getPresentingPlayerType()!==3? this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}uT(f){f.defaultPrevented||(this.open(),f.preventDefault())}jf(f){this.RC.jf(f)}ij(f){this.RC.ij(f)}Rw(f){this.setContent(f)}};var zMe=class extends Ih{constructor(f,e){super("Reprodu\u00e7\u00e3o autom\u00e1tica",g.X7.T0);this.Z=f;this.rA=e;this.G=!1;this.J=[];this.D(f,"presentingplayerstatechange",this.Mq);this.subscribe("select",this.onSelect,this);f.createClientVe(this.element,this,113682);this.Mq()}Mq(){var f=this.Z.getPresentingPlayerType();if(f!==2&&f!==3&&g.zJ(this.Z))this.G||(this.rA.jf(this),this.G=!0,this.J.push(this.D(this.Z,"videodatachange",this.Mq)),this.J.push(this.D(this.Z,"videoplayerreset",this.Mq)),this.J.push(this.D(this.Z, "onPlaylistUpdate",this.Mq)),this.J.push(this.D(this.Z,"autonavchange",this.V)),f=this.Z.getVideoData(),this.V(f.autonavState),this.Z.logVisibility(this.element,this.G));else if(this.G){this.rA.ij(this);this.G=!1;for(const e of this.J)this.uh(e)}}V(f){this.C(f!==1)}onSelect(f){this.Z.Dp(f?2:1);this.G&&(this.Z.logVisibility(this.element,this.G),this.Z.logClick(this.element))}bY(){this.G&&this.rA.ij(this);super.bY()}};var alH=class extends g.DZ{constructor(f,e){super(g.j5({"aria-haspopup":"false"}),0,"Mais op\u00e7\u00f5es");this.Z=f;this.rA=e;this.D(this.element,"click",this.onClick);this.rA.jf(this)}onClick(f){f.preventDefault();g.n_(this.Z)?.iT()?.HL();g.n_(this.Z)?.bS()?.Fx(f.target)}};var p5M=class extends g.R3{constructor(f,e){let B;g.yQ(f.S())&&(B={L:"div",B:"ytp-panel-footer-content",j:[{L:"span",Ga:"Ajuste a qualidade do download em "},{L:"a",B:"ytp-panel-footer-content-link",Ga:"Detalhes",O:{href:"/account_downloads"}}]});super("Qualidade",g.X7.x9,f,e,void 0,void 0,B);this.Z=f;this.Z9={};this.cS={};this.U={};this.BS=new Set;this.W=this.A=!1;this.Cq="unknown";this.eI="";this.Lq=new g.v0;g.A(this,this.Lq);this.A=this.Z.Y("web_player_use_new_api_for_quality_pullback");this.W= this.Z.Y("web_player_enable_premium_hbr_playback_cap");f.Y("web_settings_menu_icons")&&(e=f.Y("delhi_modern_web_player_icons")?{L:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(e));g.PW(this.RC.element,"ytp-quality-menu");this.D(f,"videodatachange",this.Mq);this.D(f,"videoplayerreset",this.Mq);this.D(f,"onPlaybackQualityChange",this.uY);this.Mq();f.createClientVe(this.element,this,137721)}Mq(){var f= this.Z.getPresentingPlayerType();if(f!==2&&f!==3){this.Z9=this.Z.B6();f=this.Z.getAvailableQualityLevels();if(this.W){this.U={};var e=g.$7(this.Z,"getAvailableQualityData",[]);for(var B of e)this.U[B.qualityLabel]=B;e=Object.keys(this.U);f[f.length-1]==="auto"&&e.push("auto");this.BS=new Set(f)}else if(this.A){B=g.$7(this.Z,"getAvailableQualityData",[]);var n=[];for(e of B)this.cS[e.quality]=e,e.quality&&n.push(e.quality);f[f.length-1]==="auto"&&n.push("auto");e=n}else e=f;g.Zhw(this.Z)&&this.Z.qd()&& e.unshift("missing-qualities");{n=this.Z.app.Od();const r=n.getVideoData();!r.G||!r.G.video||r.G.video.qualityOrdinal<1080||r.FR?f=!1:(f=/^qsa/.test(r.clientPlaybackNonce),B="r",r.G.id.indexOf(";")>=0&&(f=/^[a-p]/.test(r.clientPlaybackNonce),B="x"),f?(n.ri("iqss",{trigger:B},!0),f=!0):f=!1)}f&&e.unshift("inline-survey");this.V(e);f=this.Z.getVideoData().cotn?!0:!1;B=this.Lq.rZ();rJO(this,fi0(this.Z.S(),f,B));if(e.length){this.uY();this.enable(!0);return}}this.enable(!1)}uY(){if(this.W){var f=this.Z.getPreferredQuality(); this.BS.has(f)&&(this.Cq=this.Z.getPlaybackQuality(),this.eI=this.Z.getPlaybackQualityLabel(),f==="auto"?(this.G(f),this.setContent(this.J(f))):this.G(this.eI))}else f=this.Z.getPreferredQuality(),this.options[f]&&(this.Cq=this.Z.getPlaybackQuality(),this.G(f),f==="auto"&&this.setContent(this.J(f)))}C(f){if(f!=="missing-qualities"){super.C(f);var e=this.W?this.U[f]:this.cS[f];var B=e?.quality,n=e?.formatId;e=e?.paygatedQualityDetails;var r=e?.endpoint;e&&this.Z.logClick(this.options[f]?.element); if(this.W){if(g.u(r,bGd)?.popup?.notificationActionRenderer)g.yW(this.Z,"innertubeCommand",r);else if(r){g.yW(this.Z,"innertubeCommand",r);return}n?this.Z.setPlaybackQuality(B,n):this.Z.setPlaybackQuality(B)}else{if(this.A)if(g.u(r,bGd)?.popup?.notificationActionRenderer)g.yW(this.Z,"innertubeCommand",r);else if(r){g.yW(this.Z,"innertubeCommand",r);return}this.Z.setPlaybackQuality(f)}this.rA.HL();this.Mq()}}open(){for(const f of Object.values(this.options))this.Z.hasVe(f?.element)&&this.Z.logVisibility(f?.element, !0);super.open();this.Z.logClick(this.element)}N(f,e,B){if(f==="missing-qualities")return new g.DZ({L:"a",y9:["ytp-menuitem"],O:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.Z.S().N,tabindex:"0",role:"menuitemradio"},j:[{L:"div",y9:["ytp-menuitem-label"],Ga:"{{label}}"}]},e,this.J(f));if(f!=="inline-survey"){var n=(this.W?this.U[f]:this.cS[f])?.paygatedQualityDetails,r=n?.veType;n=n?.trackingParams;e=super.N(f,e,B);n?(this.Z.createServerVe(e.element,this,!0),this.Z.setTrackingParams(e.element, n)):r&&this.Z.createClientVe(e.element,this,r,!0);return e}r=[{L:"span",Ga:"Que tal?"}];for(const L of[!0,!1])f=new g.y({L:"span",B:"ytp-menuitem-inline-survey-response",j:[L?JdO():Ebg()],O:{tabindex:"0",role:"button"}}),f.listen("click",()=>{const d=this.Z.app.Od();d.ri("iqsr",{tu:L});d.getVideoData().FR=!0;this.rA.HL();this.Mq()}),r.push(f); return new g.DZ({L:"div",B:"ytp-menuitem",O:{"aria-disabled":"true"},j:[{L:"div",y9:["ytp-menuitem-label"],j:r}]},e)}J(f,e=!1){if(f==="missing-qualities")return{L:"div",Ga:"Faltam op\u00e7\u00f5es?"};if(f==="inline-survey")return"";this.W||g.g2(g.s9d,f);let B;B=this.A||this.W?[CA(this,f,e,!1)]:[R_M(this,f)];const n=this.Z.getPreferredQuality();e||n!=="auto"||f!=="auto"||(B.push(" "),this.W?B.push(CA(this,this.eI,e,!0,["ytp-menu-label-secondary"])):this.A?B.push(CA(this,this.Cq,e,!0,["ytp-menu-label-secondary"])): B.push(R_M(this,this.Cq,["ytp-menu-label-secondary"])));return{L:"div",j:B}}};var Vs=class extends tCG{constructor(f){super(f.getAvailablePlaybackRates()[0],f.getAvailablePlaybackRates()[f.getAvailablePlaybackRates().length-1],.05,f.getPlaybackRate(),{L:"div",B:"ytp-speedslider-indicator-container",j:[{L:"div",B:"ytp-speedslider-badge"},{L:"p",B:"ytp-speedslider-text"}]});this.Z=f;this.A=cN(this.cS,50,this);g.PW(this.G,"ytp-speedslider");this.N=this.JL("ytp-speedslider-text");this.Cq=this.JL("ytp-speedslider-badge");this.Z.Y("web_enable_varispeed_panel")&&g.PW(this.G,"ytp-varispeed-input-slider"); this.lM();this.D(this.G,"change",this.eI)}W(){super.W();this.N&&this.lM()}eI(){this.Z.Y("enable_web_premium_varispeed")&&lI(this,Math.round(this.C/.05)*.05);this.A()}cS(){this.Z.setPlaybackRate(this.C,!0)}lM(){this.N.textContent=`${this.C.toFixed(2)}x`;const f=this.C>2&&this.Z.Y("enable_web_premium_varispeed");this.Cq.classList.toggle("ytp-speedslider-premium-badge",f);this.Cq.setAttribute("aria-label",f?"Premium":"")}X(f){super.X(f);this.A();this.lM();this.Z.Y("web_enable_varispeed_panel")?(f.code=== "ArrowUp"||f.code==="ArrowDown")&&f.preventDefault():f.preventDefault()}};var cYT=class extends g.y{constructor(f,e,B){super({L:"div",B:"ytp-slider-section",O:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},j:[{L:"div",B:"ytp-slider",j:[{L:"div",B:"ytp-slider-handle"}]}]});this.K=.05;this.J=f;this.V=e;this.range=this.V-this.J;this.PS=this.JL("ytp-slider-section");this.W=this.JL("ytp-slider");this.cS=this.JL("ytp-slider-handle");this.X=new g.rI(this.W,!0);this.G=B? B:f;g.A(this,this.X);this.X.subscribe("dragmove",this.A,this);this.D(this.element,"keydown",this.Cq);this.D(this.element,"wheel",this.N);this.init()}init(){this.C(this.G);this.updateValue("minvalue",this.J);this.updateValue("maxvalue",this.V)}Cq(f){if(!f.defaultPrevented){switch(f.keyCode){case 37:case 40:var e=-this.K;break;case 39:case 38:e=this.K;break;default:return}this.C(this.G+e);f.preventDefault()}}N(f){let e=this.G;e+=(f.deltaX||-f.deltaY)<0?-.05:.05;this.C(e);f.preventDefault()}A(f){f=(f- g.Tt(this.W).x)/150*this.range+this.J;this.C(f)}C(f,e=""){f=g.ch(f,this.J,this.V);e===""&&(e=f.toString());this.updateValue("valuenow",f);this.updateValue("valuetext",e);this.cS.style.left=`${(f-this.J)/this.range*130}px`;this.G=f}focus(){this.PS.focus()}};var Yke=class extends cYT{constructor(f){super(f.getAvailablePlaybackRates()[0],f.getAvailablePlaybackRates()[f.getAvailablePlaybackRates().length-1],f.getPlaybackRate());this.Z=f;this.U=g.BN("P");this.WS=cN(this.eI,50,this);g.PW(this.W,"ytp-speedslider");g.PW(this.U,"ytp-speedslider-text");f=this.U;var e=this.W;e.parentNode&&e.parentNode.insertBefore(f,e.nextSibling);this.lM();this.D(this.Z,"onPlaybackRateChange",this.updateValues)}eI(){this.Z.setPlaybackRate(this.G,!0)}lM(){this.U.textContent=`${wI(this, this.G)}x`}C(f){super.C(f,wI(this,f).toString());this.U&&(this.lM(),this.WS())}updateValues(){const f=this.Z.getPlaybackRate();wI(this,this.G)!==f&&(this.C(f),this.lM())}};var AYH=class extends g.Sq{constructor(f){super({L:"div",B:"ytp-speedslider-component"});f.Y("web_settings_use_input_slider")?this.C=new Vs(f):this.C=new Yke(f);g.A(this,this.C);this.element.appendChild(this.C.element)}focus(){this.C.focus()}};var jdH=class extends vH{constructor(f){const e=new AYH(f);super(f,e,"Personalizado");g.A(this,e)}};var Ow2=class extends g.R3{constructor(f,e){const B=new jdH(f);super("Velocidade da reprodu\u00e7\u00e3o",g.X7.Ub,f,e,b8(f)?void 0:"Personalizado",b8(f)?void 0:()=>{g.Th(e,B)}); this.eI=new g.y({L:"div",B:"ytp-menuitem-premium-badge",O:{"aria-label":"Premium"}});this.Cq=!1;this.aX={mqA:()=>this.A}; g.A(this,B);this.v6=new Vs(f);g.A(this,this.v6);if(f.Y("web_settings_menu_icons")){const n=f.Y("delhi_modern_web_player_icons")?saY():{L:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",O:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(n)}this.Z=f;this.Cq=!1;this.Lq=null;b8(f)?(this.W=g.RT("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.Z.getPlaybackRate().toString()}),this.cS=this.Z.getPlaybackRate()):this.cS=this.W=null;g.A(this,this.eI);this.uY=this.Z.getVideoData()?.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.showPlaybackRateUpsellPanelCommand;pxH(f,this.uY)?(this.U=v2(4),this.Z.createClientVe(this.eI.element,this,273508)):this.U=null;this.Z.Y("enable_web_premium_varispeed_upsell")&& this.Z.createClientVe(this.element,this,278479);this.A=this.Z.getAvailablePlaybackRates();this.D(f,"presentingplayerstatechange",this.gi);this.Z.getVideoData()?.q0()&&this.D(f,f.S().JE().C.jI(I$)?"playbackChange":"serverstitchedvideochange",this.gi);this.D(f,"videodatachange",this.onVideoDataChange);this.D(this.v6.G,"change",()=>{this.Cq=!0;this.gi()}); this.gi()}onVideoDataChange(f){f==="dataloaded"&&(f=this.Z.getAvailablePlaybackRates(),g.Ye(this.A,f)||(this.A=f,this.v6.dispose(),this.v6=new Vs(this.Z)),this.gi())}J(f){return f==="1"?"Normal":f.toLocaleString()}gi(){var f=this.Z.getVideoData()?.q0();f=this.Z.getPresentingPlayerType(f);this.enable(f!==2&&f!==3);z_w(this)}V(f){super.V(f);this.v6&&this.v6.G.focus()}X(f){super.X(f);f?(this.Lq=this.D(this.Z,"onPlaybackRateChange",this.onPlaybackRateChange),z_w(this),KSl(this,this.Z.getPlaybackRate()), this.Z.Y("enable_web_premium_varispeed_upsell")&&(this.Z.logVisibility(this.element,!0),this.U&&this.Z.logVisibility(this.eI.element,!0))):(this.uh(this.Lq),this.Lq=null)}onPlaybackRateChange(f){const e=this.Z.getPlaybackRate();!this.Cq&&this.A.includes(e)||qtO(this,e);KSl(this,f)}N(f,e,B){return f===this.W&&Zv(this.Z)?super.N(f,e,B,{L:"div",B:"ytp-speed-slider-menu-footer",j:[this.v6]}):f===this.U&&pxH(this.Z,this.uY)?aZ0(this,f,e,B):super.N(f,e,B)}C(f){super.C(f);f===this.U?(this.Z.logClick(this.eI.element), g.yW(this.Z,"innertubeCommand",this.uY)):f===this.W?this.Z.setPlaybackRate(this.cS,!0):this.Z.setPlaybackRate(Number(f),!0);(!Zv(this.Z)||f!==this.W&&f!==this.U)&&this.rA.Ss()}PS(f){const e=f===this.W;this.Cq=!1;e&&b8(this.Z)&&!Zv(this.Z)?(f=new jdH(this.Z),g.Th(this.rA,f)):super.PS(f)}};var oge=class extends g.R3{constructor(f,e,B,n){const r=new g.ba(e,void 0,"Modifica\u00e7\u00e3o do v\u00eddeo");super(n.text||"",f,e,B,"Modifica\u00e7\u00e3o do v\u00eddeo",()=>{g.Th(B,r)}); g.PW(this.element,"ytp-subtitles-options-menu-item");this.setting=n.option.toString();f=n.options;this.settings=g.jB(f,this.Cq,this);this.A=r;g.A(this,this.A);e=new g.DZ({L:"div",B:"ytp-menuitemtitle",Ga:"Permitir um estilo de legenda diferente se especificado pelo v\u00eddeo."},0);g.A(this,e);this.A.jf(e,!0);this.U=new g.DZ({L:"div",B:"ytp-menuitem",O:{role:"menuitemradio",tabindex:"0"},j:[{L:"div",B:"ytp-menuitem-label",Ga:"Ativ."}]},-1);g.A(this,this.U);this.A.jf(this.U,!0);this.D(this.U.element, "click",()=>{c2C(this,!0)}); this.W=new g.DZ({L:"div",B:"ytp-menuitem",O:{role:"menuitemradio",tabindex:"0"},j:[{L:"div",B:"ytp-menuitem-label",Ga:"Desat"}]},-2);g.A(this,this.W);this.A.jf(this.W,!0);this.D(this.W.element,"click",()=>{c2C(this,!1)}); this.V(g.xg(f,this.Cq))}G(f){super.G(f)}Cq(f){return f.option.toString()}getOption(f){return this.settings[f]}J(f){return this.getOption(f).text||""}C(f){super.C(f);this.publish("settingChange",this.setting,this.settings[f].option)}};var VCe=class extends g.ba{constructor(f,e){super(f,void 0,"Op\u00e7\u00f5es");this.Aj={};for(let B=0;B{this.eh("reset",!0)}); this.jf(f,!0)}GC(f){for(const e of Object.keys(f)){const B=this.Aj[e];if(B){const n=f[e].toString(),r=!!f[`${e}Override`];B.options[n]&&(B.G(n),B.U.element.setAttribute("aria-checked",String(!r)),B.W.element.setAttribute("aria-checked",String(r)))}}}eh(f,e){this.publish("settingChange",f,e)}};var ll2=class extends g.R3{constructor(f,e){super("Traduzir automaticamente",0,f,e);this.Z=f;this.languages={};f.createClientVe(this.element,this,127301);f.logVisibility(this.element,!0)}W(f){return f.languageCode}J(f){return this.languages[f].languageName||""}C(f){this.publish("select",f);this.Z.logClick(this.element);g.QA(this.rA)}};var umF=class extends g.R3{constructor(f,e){const B=new VCe(f,e),n=["Essa configura\u00e7\u00e3o \u00e9 v\u00e1lida apenas para o v\u00eddeo atual. Voc\u00ea pode ajustar as legendas para todos os v\u00eddeos em ","."];let r;g.yQ(f.S())&&(r={L:"div",B:"ytp-panel-footer-content",j:[{L:"span",Ga:n[0]},{L:"a",B:"ytp-panel-footer-content-link",Ga:"Detalhes",O:{href:"/account_playback"}},{L:"span",Ga:n[1]}]});super("Legendas/CC",g.X7.SUBTITLES,f,e,"Op\u00e7\u00f5es",()=>{g.Th(e,B)},r); this.Z=f;this.rA=e;this.tracks={};this.cS=new g.T6(()=>{A26(this,!1)},3E3); g.A(this,this.cS);this.countLabel=new g.y({L:"div",j:[{L:"span",Ga:"Legendas/CC"},{L:"span",B:"ytp-menuitem-label-count",Ga:"{{content}}"}]});g.A(this,this.countLabel);g.Or(this,this.countLabel);f.Y("web_settings_menu_icons")&&this.setIcon(osY(f.Y("delhi_modern_web_player_icons")));this.W=new ll2(f,e);g.A(this,this.W);this.W.subscribe("select",this.eI,this);this.Cq=B;g.A(this,this.Cq);this.Cq.subscribe("settingChange",this.eh,this);e.subscribe("show",this.Lq,this);this.D(f,"videodatachange",this.gi); this.D(f,"onApiChange",this.gi);this.D(f,"onCaptionsTrackListChanged",this.gi);this.D(f,"captionschanged",this.gi);f.createClientVe(this.element,this,127300);this.gi()}U(f){return g.TL(f)?"__off__":f.displayName}J(f){return f==="__off__"?"Desativado":f==="__translate__"?"Traduzir automaticamente":f==="__contribute__"?"Adicionar legendas/CC":f==="__correction__"?"Sugerir corre\u00e7\u00f5es na legenda":(f==="__off__"?{}:this.tracks[f]).displayName}C(f){f==="__translate__"?this.W.open():f==="__contribute__"? (this.Z.pauseVideo(),this.Z.isFullscreen()&&this.Z.toggleFullscreen(),f=g.D2(this.Z.S(),this.Z.getVideoData()),g.I5(f)):f==="__correction__"?(this.Z.pauseVideo(),this.Z.isFullscreen()&&this.Z.toggleFullscreen(),f=Ru(this),KA(this,f),super.C(this.U(f)),f=this.Z.getVideoData().getPlayerResponse()?.captions?.playerCaptionsTracklistRenderer?.openTranscriptCommand,g.yW(this.Z,"innertubeCommand",f),this.rA.Ss(),this.A&&this.Z.logClick(this.A)):(f==="__correction__"?(this.Z.pauseVideo(),this.Z.isFullscreen()&& this.Z.toggleFullscreen(),f=Ru(this),KA(this,f),super.C(this.U(f)),f=this.Z.getVideoData().getPlayerResponse()?.captions?.playerCaptionsTracklistRenderer?.openTranscriptCommand,g.yW(this.Z,"innertubeCommand",f)):(this.Z.logClick(this.element),KA(this,f==="__off__"?{}:this.tracks[f]),super.C(f)),this.rA.Ss())}gi(){var f=this.Z.getOptions();f=f&&f.indexOf("captions")!==-1;var e=this.Z.getVideoData();const B=e&&e.IL;var n=!!this.Z.getVideoData()?.Q3();let r,L={};if(f||B){if(f){r=this.Z.getOption("captions", "track");L=this.Z.getOption("captions","tracklist",{includeAsr:!0});var d=n?[]:this.Z.getOption("captions","translationLanguages");this.tracks=g.jB(L,this.U,this);n=g.xg(L,this.U);Ru(this)&&e.getPlayerResponse()?.captions?.playerCaptionsTracklistRenderer?.openTranscriptCommand&&n.push("__correction__");if(d.length&&!g.TL(r)){if((e=r.translationLanguage)&&e.languageName){const t=e.languageName;e=d.findIndex(H=>H.languageName===t); bwd(d,e)}Yt6(this.W,d);n.push("__translate__")}d=this.U(r)}else this.tracks={},n=[],d="__off__";n.unshift("__off__");this.tracks.__off__={};B&&n.unshift("__contribute__");this.tracks[d]||(this.tracks[d]=r,n.push(d));this.V(n);this.G(d);r&&r.translationLanguage?this.W.G(this.W.W(r.translationLanguage)):eWk(this.W);f&&this.Cq.GC(this.Z.getSubtitlesUserSettings());this.countLabel.setContent(L&&L.length?` (${L.length})`:"");this.publish("size-change");this.Z.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}eI(f){var e= this.Z.getOption("captions","track");e=g.GL(e);e.translationLanguage=this.W.languages[f];KA(this,e)}eh(f,e){if(f==="reset")this.Z.resetSubtitlesUserSettings();else{const B={};B[f]=e;this.Z.updateSubtitlesUserSettings(B)}A26(this,!0);this.cS.start();this.Cq.GC(this.Z.getSubtitlesUserSettings())}Lq(f){f||this.cS.M9()}bY(){this.cS.M9();super.bY()}open(){super.open();this.options.__correction__&&!this.A&&(this.A=this.options.__correction__.element,this.Z.createClientVe(this.A,this,167341),this.Z.logVisibility(this.A, !0))}};var F5u=class extends vH{constructor(f){const e=new Vs(f),B=new g.y({L:"div",B:"ytp-variable-speed-panel-chips"}),n=new g.y({L:"button",y9:["ytp-button","ytp-variable-speed-panel-button","ytp-variable-speed-panel-increment-button"],O:{"aria-label":"Diminuir a velocidade do v\u00eddeo 0.05"},j:[{L:"span",Ga:"-"}]});n.listen("click",()=>{this.Z.setPlaybackRate(Number((this.Z.getPlaybackRate()-.05).toFixed(2)));f.logClick(n.element)}); const r=new g.y({L:"button",y9:["ytp-button","ytp-variable-speed-panel-button","ytp-variable-speed-panel-increment-button"],O:{"aria-label":"Aumentar a velocidade do v\u00eddeo 0.05"},j:[{L:"span",Ga:"+"}]});r.listen("click",()=>{this.Z.setPlaybackRate(Number((this.Z.getPlaybackRate()+.05).toFixed(2)));f.logClick(r.element)}); var L=new g.y({L:"div",B:"ytp-variable-speed-panel-slider-container",j:[n,e,r]}),d=new g.y({L:"div",B:"ytp-variable-speed-panel-premium-badge",O:{tabindex:"-1"},j:[{L:"div",B:"ytp-variable-speed-panel-badge"}]}),t=new g.y({L:"span"});const H=new g.y({L:"div",B:"ytp-variable-speed-panel-display",j:[d,t],O:{"aria-live":"polite"}}),k=new g.y({L:"div",B:"ytp-speed-display-container",j:[H]}),C=new g.Sq({L:"div",B:"ytp-variable-speed-panel-content",O:{tabindex:"0"},j:[k,L,B]});super(f,C,"Velocidade da reprodu\u00e7\u00e3o"); e.listen("click",()=>{f.logClick(e.G)}); this.Z.createClientVe(n.element,this,258237);this.Z.logVisibility(n.element,!0);this.Z.createClientVe(r.element,this,258236);this.Z.logVisibility(r.element,!0);this.Z.createClientVe(C.element,this,225845);this.Z.logVisibility(C.element,!0);this.Z.createClientVe(e.G,this,258235);this.Z.logVisibility(e.G,!0);this.Z.createClientVe(B.element,this,258234);this.Z.logVisibility(B.element,!0);g.A(this,H);this.D5=t;g.A(this,this.D5);this.l9=d;g.A(this,this.l9);this.v6=e;g.A(this,this.v6);g.A(this,n);g.A(this, r);g.A(this,B);g.A(this,L);g.A(this,k);g.A(this,C);L=cN(this.UG,50,this);d=f.getVideoData();const w=d?.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.showPlaybackRateUpsellPanelCommand;if((d=d?.getPlayerResponse()?.playerConfig?.granularVariableSpeedConfig?.defaultPlaybackRateOptions)&&d.length>0)for(const v of d){const b=w&&v.isPremiumUpsell,K=new g.y({L:"button",y9:["ytp-button","ytp-variable-speed-panel-preset-button","ytp-variable-speed-panel-button"],j:b?[{L:"div",B:"ytp-variable-speed-panel-premium-upsell-icon"}, {L:"span",Ga:`${v.label}`}]:[{L:"span",Ga:`${v.label}`}]});b&&(this.Z.createClientVe(K.element,this,273508),this.Z.logVisibility(K.element,!0));g.A(this,K);B.element.appendChild(K.element);K.listen("click",()=>{b?(g.yW(this.Z,"innertubeCommand",w),f.logClick(K.element)):v.value&&this.Z.setPlaybackRate(v.value/100);f.logClick(B.element)}); d=new g.y({L:"div",B:"ytp-variable-speed-panel-preset-button-wrapper",O:{"data-priority":`${v.priority??0}`},j:[K]});g.A(this,d);v.value===100&&(t=new g.y({L:"div",B:"ytp-variable-speed-panel-preset-button-label-text",Ga:"Normal"}),g.A(this,t),d.element.appendChild(t.element));B.element.appendChild(d.element)}this.D(this.v6.G,"input",()=>{this.lM(this.v6.C)}); this.D(f,"onPlaybackRateChange",this.onPlaybackRateChange);this.D(f,"resize",L);this.onPlaybackRateChange(f.getPlaybackRate());this.UG()}onPlaybackRateChange(f){lI(this.v6,f,!0);this.lM(f)}lM(f){f=Math.round(f*20)/20;this.D5.element.textContent=`${f.toFixed(2)}x`;this.l9.element.classList.toggle("ytp-variable-speed-panel-premium-badge-visible",f>2)}UG(){const f=this.Z.getPlayerSize().width;var e=this.element.getElementsByClassName("ytp-variable-speed-panel-preset-button-wrapper");for(const B of e){e= B;const n=Number(e.dataset.priority??0);let r=!0;f<680?r=n>1:f<1900&&(r=n>0);g.sm(e,r);e.setAttribute("aria-hidden",r?"false":"true")}}};var mHV=class extends g.R3{constructor(f,e){super("Velocidade da reprodu\u00e7\u00e3o",g.X7.Ub,f,e);this.Z=f;f.Y("web_settings_menu_icons")&&this.setIcon(saY());this.U(f.getPlaybackRate());this.D(f,"onPlaybackRateChange",this.U);this.D(f,"presentingplayerstatechange",this.W);this.Z.getVideoData()?.q0()&&this.D(f,f.S().JE().C.jI(I$)?"playbackChange":"serverstitchedvideochange",this.W);this.W()}W(){var f=this.Z.getVideoData()?.q0();f=this.Z.getPresentingPlayerType(f);this.enable(f!==2&&f!==3)}U(f){this.setContent(f=== 1?"Normal":f.toString())}open(){g.Th(this.rA,new F5u(this.Z))}};var UHI=class extends g.Zq{constructor(f){super(f,"ytp-settings-menu");this.Tv=new g.ba(this.Z);this.O7=this.WI=this.settingsButton=null;this.isInitialized=this.II=!1;g.A(this,this.Tv);this.hide();g.Th(this,this.Tv);f.createClientVe(this.element,this,108341,!0);this.subscribe("show",e=>{this.p5(e)}); this.D(f,"highlightSettingsMenu",()=>{this.II=!0;this.Fx()}); this.D(f,"openSettingsMenuItem",e=>{e&&(this.II=!0,this.Fx(),e==="menu_item_video_quality_advanced"&&this.WI?.open())}); f.Y("html5_enable_voice_boost")&&(this.D(f,"onPlaybackAudioChange",this.j6),this.D(f,"videodatachange",this.j6));this.Z.S()?.getWebPlayerContextConfig()?.enableFullscreenComponentsFeature&&this.D(this.element,"wheel",e=>{e.stopPropagation()})}initialize(){if(!this.isInitialized){var f=this.Z.S(); this.isInitialized=!0;try{this.WI=new p5M(this.Z,this)}catch(B){g.Yv(Error("QualityMenuItem creation failed"))}g.A(this,this.WI);var e=new umF(this.Z,this);g.A(this,e);f.enableSpeedOptions&&(f.Y("web_enable_varispeed_panel")?(e=new mHV(this.Z,this),g.A(this,e)):(e=new Ow2(this.Z,this),g.A(this,e)));(g.XY(f)||f.U)&&(f.G||f.uY)&&(e=new alH(this.Z,this),g.A(this,e));f.EE&&!f.Y("web_player_move_autonav_toggle")&&(e=new zMe(this.Z,this),g.A(this,e));f.Y("html5_enable_new_audio_settings_menu")?(this.O7= new qk2(this.Z,this),g.A(this,this.O7)):(f=new K5B(this.Z,this),g.A(this,f));this.Z.publish("settingsMenuInitialized");kh(this.settingsButton,this.Tv.aJ())}}jf(f){this.initialize();this.Tv.jf(f);kh(this.settingsButton,this.Tv.aJ())}ij(f){this.HS()||(this.ef&&this.Tv.aJ()<=1&&this.hide(),this.Tv.ij(f),kh(this.settingsButton,this.Tv.aJ()))}Fx(f){this.initialize();this.Tv.aJ()>0&&super.Fx(f)}HL(){this.II?this.II=!1:super.HL()}show(){super.show();g.PW(this.Z.getRootNode(),"ytp-settings-shown")}hide(){super.hide(); g.$i(this.Z.getRootNode(),"ytp-settings-shown")}p5(f){this.Z.logVisibility(this.element,f);this.Z.publish("settingsMenuVisibilityChanged",f)}j6(){this.Z.j6()}};var N6M=class extends g.y{constructor(f,e){super({L:"button",y9:["ytp-subtitles-button","ytp-button"],O:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:f.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},j:[f.Y("delhi_modern_web_player_icons")?{L:"div",B:"ytp-subtitles-button-icon",Ga:"{{icon}}"}:Oh6(f)]});this.Z=f;this.tooltip=e.Fi();f.Y("delhi_modern_web_player_icons")&& this.updateValue("icon",OxO(this));this.D(f,"videodatachange",this.gi);this.D(f,"appresize",this.gi);this.D(f,"promotooltipacceptbuttonclicked",this.C);this.D(f,"onApiChange",this.gi);this.D(f,"onCaptionsTrackListChanged",this.gi);this.D(f,"captionschanged",this.gi);this.Z.createClientVe(this.element,this,127299);this.gi();this.listen("click",this.onClick);this.addOnDisposeCallback(g.tK(e.Fi(),this.element))}onClick(){if(qc(this)&&(this.Z.toggleSubtitles(),this.Z.logClick(this.element),!this.isEnabled())){let f= !1;const e=g.ni().jI(65);g.yQ(this.Z.S())&&e!=null&&(f=!e);f&&this.Z.S().Y("web_player_nitrate_promo_tooltip")&&this.Z.publish("showpromotooltip",this.element)}}C(f){g.n_(this.Z)?.iT()?.Fx(f)}isEnabled(){const f=this.Z.getOption("captions","track");return!(!f||!f.displayName)}gi(){const f=qc(this);let e=300;this.Z.S().X&&(e=480);this.Z.Y("delhi_modern_web_player_icons")&&this.updateValue("icon",OxO(this));var B=this.Z.S();(B.Y("html5_hide_unavailable_subtitles_button")?0:!B.U)?(f?(this.JL("ytp-subtitles-button-icon")?.setAttribute("fill-opacity", "1"),this.Z.S().Y("player_tooltip_data_title_killswitch")?this.updateValue("title",g.kr(this.Z,"Legendas/legendas ocultas","c")):this.update({"tooltip-title":g.kr(this.Z,"Legendas/legendas ocultas","c")}),this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"})):(this.Z.Y("delhi_modern_web_player_icons")?this.JL("ytp-subtitles-button-icon")?.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3"):this.JL("ytp-subtitles-button-icon")?.setAttribute("fill-opacity","0.3"),this.updateValue("title", "N\u00e3o h\u00e1 legendas/legendas descritivas dispon\u00edveis"),this.update({"tooltip-title":"N\u00e3o h\u00e1 legendas/legendas descritivas dispon\u00edveis"}),this.update({"data-title-no-tooltip":"N\u00e3o h\u00e1 legendas/legendas descritivas dispon\u00edveis"})),B=this.Z.Y("player_disable_caption_button_if_captions_not_available")&&this.Z.Y("delhi_modern_web_player")?f:!0):(this.updateValue("title",g.kr(this.Z,"Legendas/legendas ocultas","c")),this.update({"tooltip-title":g.kr(this.Z,"Legendas/legendas ocultas", "c")}),this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"}),B=f);this.tooltip.lR();B=B&&this.Z.AL().getPlayerSize().width>=e;this.FG(B);this.Z.logVisibility(this.element,B);f?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}AE(f){super.AE(f)}};g.hMT=class extends g.y{constructor(f,e,B=350){super({L:"div",y9:["ytp-time-display","notranslate"],j:[{L:"div",B:"ytp-time-wrapper",j:[{L:"div",B:"ytp-time-contents",O:f.Y("delhi_modern_web_player")?{"aria-label":"{{timeDisplayAriaLabel}}",role:"button",tabindex:"0"}:{"aria-label":"{{timeDisplayAriaLabel}}"},j:[{L:"span",B:"ytp-time-clip-icon",Ga:"{{clipicon}}",O:{"aria-label":"Clipe"}},{L:"span",B:"ytp-time-current",Ga:"{{currenttime}}"},{L:"span",B:"ytp-time-separator",Ga:" / "},{L:"span",B:"ytp-time-duration", Ga:"{{duration}}"}]}]},{L:"span",B:"ytp-clip-watch-full-video-button-separator",Ga:"\u2022"},{L:"span",B:"ytp-clip-watch-full-video-button",Ga:"{{watchfullvideo}}"}]});this.api=f;this.N=B;this.liveBadge=new g.y({L:"button",y9:["ytp-live-badge","ytp-button"],O:{disabled:"true"},Ga:"{{content}}"});this.C=null;this.IG=this.G=!1;this.K=this.X=this.U=null;this.isPremiere=!1;this.W=this.V=null;this.J=!1;this.PL=this.liveIndicatorText=null;this.cS=this.JL("ytp-clip-watch-full-video-button");this.liveBadge.setContent("Ao vivo"); g.A(this,this.liveBadge);this.api.Y("web_player_updated_entrypoint")||this.api.Y("delhi_modern_web_player")?this.liveBadge.di(this.JL("ytp-time-wrapper")):this.liveBadge.di(this.element);this.tooltip=e.Fi();this.liveBadge.listen("click",this.onClick.bind(this));this.api.Y("delhi_modern_web_player")&&(e=this.JL("ytp-time-wrapper"),this.D(e,"click",this.A),e.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.D(this.cS,"click",this.Cq);this.D(this.api,this.api.S().JE().C.jI(I$)? "playbackChange":"serverstitchedvideochange",()=>{oVg(this,this.api.getProgressState().isAtLiveHead)}); this.D(f,"presentingplayerstatechange",this.ZW);this.D(f,"appresize",this.ZW);this.D(f,"onLoopRangeChange",this.onLoopRangeChange);this.D(f,"videodatachange",this.onVideoDataChange);(e=f.getVideoData())&&this.updateVideoData(e);this.ZW();V75(this,f.getLoopRange())}canShowCountdown(){return!pA(this)&&!zz(this)}ZW(){var f=this.api.AL().getPlayerSize().width,e=this.N;this.api.S().X&&(e=400);e=f>=e&&(!zz(this)||!this.api.getPlayerStateObject().C(64));this.FG(e);g.h(this.element,"ytp-time-display-allow-autohide", e&&f<400);f=this.api.getProgressState();if(e){var B=this.api.getPresentingPlayerType();e=this.api.getCurrentTime(B,!1);this.G&&(e-=f.airingStart);pA(this)&&(e-=this.PL.startTimeMs/1E3);this.canShowCountdown()&&this.J&&(e-=this.api.getDuration(B,!1));var n=g.SL(e);this.V!==n&&(this.updateValue("currenttime",n),this.V=n);B=pA(this)?(this.PL.endTimeMs-this.PL.startTimeMs)/1E3:this.api.getDuration(B,!1);n=g.SL(B);this.W!==n&&(this.updateValue("duration",n),this.W=n);e=g.RT("$PLAY_PROGRESS de $DURATION", {PLAY_PROGRESS:g.SL(e,!0),DURATION:g.SL(B,!0)});this.updateValue("timeDisplayAriaLabel",e)}oVg(this,f.isAtLiveHead);V75(this,this.api.getLoopRange())}onLoopRangeChange(f){const e=this.PL!==f;this.PL=f;e&&(this.ZW(),au(this))}Cq(){this.api.setLoopRange(null)}A(){this.J=!this.J;this.ZW()}onVideoDataChange(f,e,B){this.updateVideoData((this.api.S().Y("enable_topsoil_wta_for_halftime")||this.api.S().Y("enable_topsoil_wta_for_halftime_live_infra"))&&B===2?this.api.getVideoData({playerType:1}):e);this.ZW(); au(this)}updateVideoData(f){this.IG=f.isLivePlayback&&!f.Tf;this.G=f.eI();this.isPremiere=f.isPremiere;this.liveIndicatorText=(f=f.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.liveIndicatorText)?Ou(f):null;g.h(this.element,"ytp-live",zz(this));this.api.Y("delhi_modern_web_player")&&this.JL("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}onClick(f){f.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}bY(){this.C&& this.C();super.bY()}};var ggV=class extends g.y{constructor(f,e){super({L:"div",B:"ytp-volume-panel",O:{title:f.Y("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},j:[{L:"div",B:"ytp-volume-slider",j:[{L:"div",B:"ytp-volume-slider-handle"}]}]});this.api=f;this.U=e;this.Tb=!1;this.Cq=this.volume=0;this.W=null;this.G=this.C=this.isDragging=!1;this.U=e;this.J= f.E3();this.A=f.Y("web_player_use_screen_width_for_big_mode");this.K=this.JL("ytp-volume-slider");this.PS=this.JL("ytp-volume-slider-handle");this.V=new g.rI(this.K,!0);g.A(this,this.V);this.V.subscribe("dragstart",this.Z9,this);this.V.subscribe("dragmove",this.eI,this);this.V.subscribe("dragend",this.uY,this);this.D(f,"onVolumeChange",this.onVolumeChange);this.D(f,"appresize",this.Lq);this.D(f,"fullscreentoggled",this.BY);this.D(f,"onShowControls",this.N);this.D(f,"onHideControls",this.N);this.D(this.element, "keydown",this.WS);this.D(this.element,"focus",()=>{Yh(this,this.C,this.isDragging,!0,this.api.Tb())}); this.D(this.element,"blur",()=>{Yh(this,this.C,this.isDragging,!1,this.api.Tb())}); lZY(this,f.AL().getPlayerSize());c2(this,f.getVolume(),f.isMuted());HF(f,this.element,this)}BY(){uiG(this)}Lq(f){lZY(this,f);this.A&&uiG(this)}WS(f){if(!f.defaultPrevented){const e=f.keyCode;let B=null;e===37?B=this.volume-5:e===39?B=this.volume+5:e===36?B=0:e===35&&(B=100);B!==null&&(B=g.ch(B,0,100),B===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(B)),f.preventDefault())}}cS(f){const e=f.deltaX||-f.deltaY;f.deltaMode?this.api.setVolume(this.volume+(e<0?-10:10)):this.api.setVolume(this.volume+ g.ch(e/10,-10,10));f.preventDefault();this.api.S()?.getWebPlayerContextConfig()?.enableFullscreenComponentsFeature&&f.stopPropagation()}Z9(){Yh(this,this.C,!0,this.G,this.api.Tb());this.Cq=this.volume;this.api.isMuted()&&this.api.unMute()}eI(f){var e=this.J?78:52,B=this.J?18:12;f-=g.Tt(this.K).x;B=g.ch((f-B/2)/(e-B),0,1);this.A&&(B=g.ch(f/e,0,1));e=B;e=this.api.Y("web_player_non_linear_volume_controls")?e<=.25?e/.25*.1:.1+(e-.25)/.75*.9:e;this.api.setVolume(e*100)}uY(){Yh(this,this.C,!1,this.G,this.api.Tb()); this.volume===0&&(this.api.mute(),this.api.setVolume(this.Cq))}onVolumeChange(f){c2(this,f.volume,f.muted)}N(){Yh(this,this.C,this.isDragging,this.G,this.api.Tb())}X(f){g.h(this.element,"ytp-volume-control-hover",f);Yh(this,f,this.isDragging,this.G,this.api.Tb())}bY(){super.bY();g.$i(this.U,"ytp-volume-slider-active")}};var SkF=class extends g.y{constructor(f,e){const B=f.S(),n=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];B.J&&n.push("no-link");const r={title:f.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:B.N,"data-priority":"6","data-sessionlink":"feature=player-button"};B.J||(r.href="{{url}}");super({L:"a",y9:n,O:r,Ga:"{{logoSvg}}"});this.C=null;this.api=f;this.visible=!1;B.J||(this.C=this.listen("click",this.onClick));this.D(f,"videodatachange", this.onVideoDataChange);this.D(f,"videoplayerreset",this.onVideoDataChange);this.D(f,"onLoopRangeChange",this.onVideoDataChange);this.D(f,"appresize",this.Sf);this.onVideoDataChange();B.J||this.addOnDisposeCallback(g.tK(e.Fi(),this.element));this.Sf()}onVideoDataChange(){var f=this.api.S();this.Sf();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData({playerType:1}).AF;this.FG(this.visible);this.api.logVisibility(this.element,this.visible&&this.Ed);if(this.visible){var e=this.api.getVideoUrl(!0, !1,!1,!0);this.updateValue("url",e)}f.J&&(this.C&&(this.uh(this.C),this.C=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.PW(this.element,"no-link"));e=this.api.S();f=this.api.getVideoData();let B="";e.J||(e=g.IP(e),e.indexOf("www.")===0&&(e=e.substring(4)),B=g.WY(f)?"Assistir no YouTube Music":e==="youtube.com"?"Assistir no YouTube":g.RT("Assista em $WEBSITE",{WEBSITE:e}));this.api.Y("player_tooltip_data_title_killswitch")? this.updateValue("title",B):this.updateValue("tooltip-title",B)}onClick(f){this.api.Y("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);const e=this.api.S();let B=this.api.getVideoUrl(!g.Ef(f),!1,!0,!0);if(g.XY(e)){const n={};g.XY(e)&&g.$7(this.api,"addEmbedsConversionTrackingParams",[n]);B=g.vT(B,n)}g.Ur(B,this.api,f);this.api.Y("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}Sf(){let f={L:"svg",O:{height:"100%", version:"1.1",viewBox:"0 0 67 36",width:"100%"},j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{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 "}}]}, e=28666;const B=this.api.getVideoData();this.api.isEmbedsShortsMode()?f={L:"svg",O:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},j:[{L:"path",O:{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.WY(B)&&(f={L:"svg",O:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},j:[{L:"path",O:{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"}},{L:"path",O:{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"}},{L:"path",O:{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"}},{L:"path",O:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{L:"path",O:{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"}},{L:"path",O:{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"}},{L:"path",O:{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"}},{L:"path",O:{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"}},{L:"path",O:{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"}},{L:"path",O:{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"}},{L:"path",O:{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"}},{L:"path",O:{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"}}]},e=216163);g.WY(B)?g.PW(this.element,"ytp-youtube-music-button"):g.$i(this.element,"ytp-youtube-music-button");f.O={...f.O,"aria-hidden":"true"};this.updateValue("logoSvg",f);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,e,!0)}AE(f){super.AE(f);this.api.logVisibility(this.element,this.visible&&f)}};var EgL=class extends g.ep{constructor(f,e,B){super();this.Z=f;this.cS=e;this.n5=B;this.tL=NaN;this.Cq=this.BS=this.playButton=this.W=this.U=this.uY=this.PS=this.A=this.Ed=this.muteButton=this.K=this.Fl=this.e9=this.qC=null;this.J=new UHI(this.Z);this.progressBar=new g.bwx(this.Z,this.cS);this.yg=new g.hMT(this.Z,this.cS);this.MC=new ngG(this.Z,this.cS);this.N=new g.SV(this.Ch,null,this);B=f.S();this.n5.subscribe("autohideupdate",this.w9,this);var n=!f.getPlayerStateObject().isCued(),r;(this.IA=!f.Y("delhi_modern_web_player")&& f.S().Y("html5_player_dynamic_bottom_gradient"))?this.Fl=r=new $eC(f):r=new g.y({L:"div",B:"ytp-gradient-bottom"});g.A(this,r);g.qX(f,r.element,9);this.WS=new g.Ob(r,250,n,100);g.A(this,this.WS);this.C=new g.y({L:"div",B:"ytp-chrome-bottom",j:[{L:"div",B:"ytp-chrome-controls"}]});g.A(this,this.C);g.qX(f,this.C.element,9);f.Y("frosted_glass_controls_opacity_animation")&&this.C.element.classList.add("ytp-frosted-glass-opacity-animation");this.eI=new g.Ob(this.C,250,n,100);g.A(this,this.eI);this.Lq= this.C.element.children[0];g.A(this,this.J);g.qX(f,this.J.element,6);this.J.subscribe("show",L=>{this.Z.gI(!L);f.jL(this.J,L)}); g.A(this,this.progressBar);AB(this,this.progressBar,this.C.element,void 0,0);n=new B6G(f,e);g.A(this,n);g.qX(f,n.element,4);n=new g.af({L:"div",B:"ytp-left-controls"});g.A(this,n);n.di(this.Lq);f.Y("delhi_modern_web_player")||(r=new g.o3(f,e,!1),g.A(this,r),AB(this,r,n.element));f.Y("web_render_jump_buttons")&&(this.Ed=new rY2(f,-10),g.A(this,this.Ed),AB(this,this.Ed,n.element));B.Lq||(this.playButton=new g.C0H(f,e),g.A(this,this.playButton),AB(this,this.playButton,n.element));f.Y("web_render_jump_buttons")&& (this.A=new rY2(f,10),g.A(this,this.A),AB(this,this.A,n.element));f.Y("delhi_modern_web_player")&&(r=new g.o3(f,e,!1),g.A(this,r),AB(this,r,n.element));r=new g.o3(f,e,!0);g.A(this,r);AB(this,r,n.element);if(!f.Y("delhi_modern_web_player")||f.Y("delhi_modern_web_player_horizontal_volume_controls"))if(r=new g.y({L:"span",B:"ytp-volume-area"}),g.A(this,r),AB(this,r,n.element),!B.uC&&(this.muteButton=new On(f,e),g.A(this,this.muteButton),this.muteButton.di(r.element),B.WS&&!B.X)){const L=new ggV(f,this.C.element); this.BS=L;g.A(this,L);L.di(r.element);r=new g.rI(r.element);g.A(this,r);r.subscribe("hoverstart",()=>{this.BS?.X(!0)}); r=new g.rI(n.element);g.A(this,r);r.subscribe("hoverend",()=>{this.BS?.X(!1)})}f.Y("delhi_modern_web_player_lhs_volume_controls")&&!f.Y("delhi_modern_web_player_horizontal_volume_controls")&&(n.element.classList.add("ytp-left-controls-with-volume"),this.muteButton=new On(f,e),g.A(this,this.muteButton),this.muteButton.di(n.element),this.muteButton.element.classList.add("ytp-standalone-mute-button")); g.A(this,this.yg);AB(this,this.yg,n.element,"ytp-time-wrapper");this.PS=new flg(f,this.progressBar);g.A(this,this.PS);AB(this,this.PS,n.element,"ytp-chapter-title");B.Y("web_key_moments_markers")&&(this.uY=new L5e(f,this.progressBar),g.A(this,this.uY),AB(this,this.uY,n.element,"ytp-chapter-title"));f.Y("delhi_modern_web_player")?this.V=new g.af({L:"div",B:"ytp-right-controls",j:[{L:"div",B:je.RIGHT_CONTROLS_LEFT},{L:"div",B:je.RIGHT_CONTROLS_RIGHT}]}):this.V=new g.af({L:"div",B:"ytp-right-controls"}); g.A(this,this.V);AB(this,this.V,this.Lq);f.Y("delhi_modern_web_player")&&(this.K=new eM2(f),g.A(this,this.K),this.K.di(this.V.JL(je.RIGHT_CONTROLS_LEFT)),f.Y("delhi_modern_web_player_lhs_volume_controls")||f.Y("delhi_modern_web_player_horizontal_volume_controls")||(this.muteButton=new On(f,e),g.A(this,this.muteButton),this.muteButton.di(this.V.JL(je.RIGHT_CONTROLS_LEFT))));this.xA=new N6M(f,e);g.A(this,this.xA);OD(this,this.xA,"RIGHT_CONTROLS_LEFT");this.settingsButton=new RML(f,this.J);g.A(this, this.settingsButton);je0(this.J,this.settingsButton);OD(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");n=f.getVideoData();if(B.zQ||n.AF&&B.controlsType==="1")this.U=new SkF(f,e),g.A(this,this.U),this.U.di(this.V.element);B.showMiniplayerButton&&!f.Y("web_player_miniplayer_in_context_menu")&&(this.W=new dHg(f),g.A(this,this.W),OD(this,this.W,"RIGHT_CONTROLS_RIGHT"));B.showMiniplayerButton&&this.D(f,"minimized",()=>{this.J.hide()}); B.Aq&&(e=new ZwL(f,this.J),g.A(this,e),OD(this,e,"RIGHT_CONTROLS_RIGHT"));B.B9&&(e=new IFk(f),g.A(this,e),OD(this,e,"RIGHT_CONTROLS_RIGHT"));g.A(this,this.MC);OD(this,this.MC,"RIGHT_CONTROLS_RIGHT");g.A(this,this.N);this.D(f,"appresize",this.Sf);this.D(f,"fullscreentoggled",this.Sf);this.K?.subscribe("small-mode-expand-right-bottom-controls",()=>{FSg(this)}); this.K?.subscribe("small-mode-collapse-right-bottom-controls",()=>{FSg(this)}); this.D(f,"presentingplayerstatechange",this.Z9);this.D(f,"videodatachange",this.onVideoDataChange);this.Sf()}onProgress(){if(this.Z.Y("web_player_max_seekable_on_ended")||!this.Z.getPlayerStateObject().C(2))Q9(this.n5),this.progressBar.ZW(),this.yg.ZW()}w9(){this.Z9();if(Q9(this.n5))this.progressBar.W();else this.onProgress()}Ch(){this.onProgress();this.N.start()}Z9(){var f;if(f=!this.Z.S().G){f=this.progressBar;const B=2*g.BS()*f.X;var e=f.J;f=(e.C-e.G)*1E3/f.api.getPlaybackRate()/B<300}f=f&&this.Z.getPlayerStateObject().isPlaying()&& !!window.requestAnimationFrame;e=!f;Q9(this.n5)&&(f=e=!1);e?this.Cq||(this.Cq=this.D(this.Z,"progresssync",this.onProgress)):this.Cq&&(this.uh(this.Cq),this.Cq=null);f?this.N.isActive()||this.N.start():this.N.stop()}Q3(){return this.playButton?(this.playButton.focus(),!0):!1}Sf(){var f=this.Z.E3();const e=this.Z.AL().getPlayerSize();var B=this.Z.AL().Ja;const n=ou(this),r=Uum(this);var L=Math.max(e.width-n*2,100);if(this.tL!==e.width||this.qC!==f||this.Z.Y("web_player_rtr_ctrls")&&this.e9!==B)this.tL= e.width,this.qC=f,this.e9=B,this.C.element.style.width=`${r}px`,this.C.element.style.left=`${n}px`,g.vVg(this.progressBar,n,r,f),this.Z.Fi().IE=r;B=this.J;L=Math.min(570*(f?1.5:1),L);f=Math.min(413*(f?1.5:1),Math.round((e.height-VU(this))*.82));B.maxWidth=L;B.maxHeight=f;B.FD();this.Z9();this.IA&&nQk(this.Fl,e.height)}onVideoDataChange(){const f=this.Z.getVideoData();this.Lq.style.background=f.AF?f.Ou:"";this.A&&Hqm(this.A,f.showSeekingControls);this.Ed&&Hqm(this.Ed,f.showSeekingControls)}V3(){return this.C.element}kA(){return this.progressBar}Yp(f, e){const B=Number(f.element.getAttribute("data-priority"))||0;let n=0,r=this.V.element;e&&this.Z.Y("delhi_modern_web_player")&&(r=this.V.JL(je[e]));for(const L of r.children){if(B<(Number(L.getAttribute("data-priority"))||0))break;n++}f.di(r,n)}};var Qde=class extends w1{constructor(f){super(f,!1);this.suggestedActions={};this.C=null;this.V=!1;this.element.setAttribute("data-overlay-order","7");this.D(this.Z,"videodatachange",this.onVideoDataChange);this.D(this.Z,g.kk("suggested_action_button_visible"),e=>{this.text=e=e.id;Nu(this);this.onClickCommand=this.suggestedActions[e]?.tapCommand;this.enabled=!0;this.p5()}); this.D(this.Z,g.Ca("suggested_action_button_visible"),e=>{this.enabled=!1;this.p5();this.Z.removeCueRange(e.id)}); this.D(f,"presentingplayerstatechange",this.onStateChange)}Lq(f){f.target===this.dismissButton.element?this.C&&fCk(FC(),this.C):(this.onClickCommand&&(this.U(!1),g.yW(this.Z,"innertubeCommand",this.onClickCommand)),this.X())}X(){this.enabled=!1;this.cS.hide()}onVideoDataChange(f,e){f==="dataloaded"&&NcM(this);f=[];if(e=g.u(e.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.suggestedActionsRenderer,G45)?.suggestedActions)for(var B of e)(e=g.u(B,xNw))&&g.u(e.trigger,H0)&&f.push(e);if(f.length!== 0){B=[];for(const n of f){f=g.u(n.trigger,H0);if(!f)continue;e=(e=n.title)?g.nS(e):"View Chapters";const r=f.timeRangeStartMillis,L=f.timeRangeEndMillis;f=f.onlyTriggersOnPlayerPause;n.tapCommand&&(r!=null&&L!=null&&B.push(new g.VD(r,L,{priority:9,namespace:"suggested_action_button_visible",id:e})),r!=null&&L!=null||f)&&(this.suggestedActions[e]=n,n.rendererContext&&!this.J&&(f=g.u(n.rendererContext,pzm))&&(f=f.loggingDirectives?.trackingParams)&&(this.Z.setTrackingParams(this.badge.element,f),this.J= !0),n.dismissButtonClientVeSpec?.uiType&&!this.C&&(this.C=C0(n.dismissButtonClientVeSpec.uiType),Uu(FC(),this.C)))}this.Z.AI(B)}}K(){return this.enabled}p5(){this.enabled?this.xA.start():mS(this);this.G()}onStateChange(f){for(const e of Object.keys(this.suggestedActions))if(g.u(this.suggestedActions[e].trigger,H0)?.onlyTriggersOnPlayerPause){f.state.isPaused()&&!this.V?(this.text=e,Nu(this),this.onClickCommand=this.suggestedActions[e]?.tapCommand,this.enabled=!0,this.p5(),this.V=!0):f.oldState.isPaused()&& (this.enabled=!1,this.p5());break}}bY(){NcM(this);super.bY()}};var la={CHANNEL_NAME:"ytp-title-channel-name",FULLERSCREEN_LINK:"ytp-title-fullerscreen-link",LINK:"ytp-title-link",SESSIONLINK:"yt-uix-sessionlink",SUBTEXT:"ytp-title-subtext",TEXT:"ytp-title-text",TITLE:"ytp-title"},T6V=class extends g.y{constructor(f){super({L:"div",B:la.TITLE,j:[{L:"div",y9:[la.TEXT,f.Y("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],j:[{L:"a",y9:[la.LINK,la.SESSIONLINK],O:{target:f.S().N,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"}, Ga:"{{title}}"},{L:"div",B:la.SUBTEXT,j:["{{subtextElement}}"]}]}]});this.api=f;this.C=null;this.link=this.JL(la.LINK);f.createClientVe(this.element,this,23851);this.D(f,"videodatachange",this.gi);this.D(f,"videoplayerreset",this.gi);this.gi()}onClick(f){this.api.logClick(this.element);var e=this.api.S();let B=this.api.getVideoUrl(!g.Ef(f),!1,!0);g.XY(e)&&(e={},g.$7(this.api,"addEmbedsConversionTrackingParams",[e]),B=g.vT(B,e));g.Ur(B,this.api,f)}gi(){const f=this.api.getVideoData(),e=this.api.S(); this.updateValue("title",f.title);var B={L:"a",B:la.CHANNEL_NAME,O:{href:"{{channelLink}}",target:"_blank"},Ga:"{{channelName}}"};this.api.S().J?B={L:"span",B:la.CHANNEL_NAME,Ga:"{{channelName}}",O:{tabIndex:"{{channelSubtextFocusable}}"}}:f.Oj&&(B={L:"span",B:la.SUBTEXT,Ga:f.Oj});this.updateValue("subtextElement",B);h_0(this);this.api.getPresentingPlayerType()===2&&(B=this.api.getVideoData(),B.videoId&&B.isListed&&B.author&&B.uY&&B.profilePicture?(this.updateValue("channelLink",B.uY),this.updateValue("channelName", B.author),this.updateValue("channelTitleFocusable","0")):h_0(this));B=e.externalFullscreen||!this.api.isFullscreen()&&e.AC;g.h(this.link,la.FULLERSCREEN_LINK,B);e.A||!f.videoId||B||f.AF||e.J?this.C&&(this.updateValue("url",null),this.uh(this.C),this.C=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.C||(this.C=this.D(this.link,"click",this.onClick)));e.J&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.XY(e)?f.expandedTitle:f.author),this.updateValue("channelTitleFocusable", "0"),this.updateValue("channelSubtextFocusable","0"))}};g.DHF=class extends g.y{constructor(f,e){const B={L:"div",B:"ytp-tooltip-progress-bar-pill",j:[{L:"div",B:"ytp-tooltip-progress-bar-pill-time-stamp",Ga:"{{pillTimeStamp}}"},{L:"div",B:"ytp-tooltip-progress-bar-pill-title",Ga:"{{pillTitle}}"}]};super({L:"div",j:[{L:"div",B:"ytp-tooltip-text-wrapper",O:{"aria-hidden":"{{ariaHidden}}"},j:[{L:"div",B:"ytp-tooltip-edu",j:[{L:"svg",O:{height:"100%",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",O:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]}, {L:"span",Ga:"{{eduText}}"}]},{L:"div",B:"ytp-tooltip-image"},{L:"div",B:"ytp-tooltip-title",j:[{L:"span",Ga:"{{title}}"},{L:"div",B:"ytp-tooltip-keyboard-shortcut",Ga:"{{keyBoardShortcutTitle}}"}]},{L:"div",B:"ytp-tooltip-bottom-text",j:[{L:"span",B:"ytp-tooltip-text",Ga:"{{text}}"},{L:"div",B:"ytp-tooltip-keyboard-shortcut",Ga:"{{keyBoardShortcut}}"}]},f.Y("frosted_glass_controls_opacity_animation")?null:B]},{L:"div",B:"ytp-tooltip-bg",j:[{L:"div",B:"ytp-tooltip-duration",Ga:"{{duration}}"}]},f.Y("frosted_glass_controls_opacity_animation")? B:null]});this.api=f;this.uY=e;this.N=n=>{(n=n.relatedTarget)&&g.HN(this.C,n)||this.W()}; this.U=n=>{this.type===3&&this.W();(n=n.currentTarget)&&n.nodeType===1&&!this.type&&(n.removeEventListener("mouseover",this.U),n.addEventListener("mouseout",this.N),n.removeEventListener("focus",this.U),n.addEventListener("blur",this.N),QeH(this,n,2))}; this.A=()=>{this.W()}; this.type=this.C=null;this.K=!1;this.G=null;this.J="";this.X=!0;this.scale=1;this.env=this.api.S();this.eI=this.env.G;this.wrapper=this.JL("ytp-tooltip-text-wrapper");this.bg=this.JL("ytp-tooltip-bg");this.WS=this.JL("ytp-tooltip-edu");this.image=this.JL("ytp-tooltip-image");this.text=this.JL("ytp-tooltip-text");this.bottomText=this.JL("ytp-tooltip-bottom-text");this.title=this.JL("ytp-tooltip-title");this.fade=new g.Ob(this,100);this.V=NaN;this.IE=this.api.AL().getPlayerSize().width;this.Cq=new g.T6(this.Lq, 250,this);this.cS=new g.T6(this.W,5E3,this);g.A(this,this.fade);g.A(this,this.Cq);g.A(this,this.cS);m1&&(f=this.JL("ytp-tooltip-text"),f.setAttribute("role","text"),f.setAttribute("aria-live","polite"));if(this.api.Y("frosted_glass_controls_opacity_animation"))for(const n of this.element.children)g.PW(n,"ytp-frosted-glass-fade-transition")}setEnabled(f){if(this.type!=null)if(f)switch(this.type){case 3:case 2:l8(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.X=f}vU(f, e,B,n,r,L,d,t){if(!this.eI||this.env.X){this.type===3&&this.W();this.type!==1&&(g.X3(this.element,"ytp-tooltip ytp-bottom"),this.api.Y("frosted_glass_controls_opacity_animation")&&g.PW(this.element,"ytp-frosted-glass-fade-transition"),this.type=1,this.X&&this.fade.show(),this.G&&this.G.dispose(),(this.G=this.api.Pr())&&this.G.subscribe("l",this.PS,this));if(t){const H=g.WN(this.bg).height||141;this.WS.style.bottom=`${H+2}px`}else this.WS.style.display="none";this.env.Y("delhi_modern_web_player")? (this.update({pillTimeStamp:B,pillTitle:L??"",eduText:t??""}),g.PW(this.element,"ytp-tooltip-progress-bar-style")):(this.update({text:B,title:L??"",eduText:t??""}),g.h(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!L));this.api.isInline()&&g.PW(this.bottomText,"ytp-modern-tooltip-text");g.h(this.element,"ytp-text-detail",!!n);B=-1;this.G&&(B=Mi(this.G,243*this.scale),this.env.Y("web_l3_storyboard")&&this.G.levels.length===4&&(B=this.G.levels.length-1),B=SI5(this.G,B,e));EVO(this,B);if(d)switch(e= g.WN(this.element).width,d){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=`${e}px`;this.title.style.textAlign="right";break;case 3:this.title.style.right=`${e/2}px`,this.title.style.textAlign="center"}StM(this,!!n,f,r)}}lO(){this.type===1&&this.W()}q2(f,e){if(this.type)if(this.type===3)this.W();else return;QeH(this,f,3,e)}lR(){this.C&&!this.K&&(this.env.Y("player_tooltip_data_title_killswitch")?this.C.hasAttribute("title")&&(this.J=this.C.getAttribute("title")|| "",this.C.removeAttribute("title"),this.X&&l8(this)):this.C.hasAttribute("data-tooltip-title")&&(this.J=this.C.getAttribute("data-tooltip-title")||"",this.C.removeAttribute("data-tooltip-title"),this.X&&l8(this)))}PS(f,e){f<=this.V&&this.V<=e&&(f=this.V,this.V=NaN,EVO(this,f))}Lq(){h9g(this.G,this.V,243*this.scale)}W(){switch(this.type){case 2:const f=this.C;f.removeEventListener("mouseout",this.N);f.addEventListener("mouseover",this.U);f.removeEventListener("blur",this.N);f.addEventListener("focus", this.U);TcY(this);break;case 3:TcY(this);break;case 1:this.G&&(this.G.unsubscribe("l",this.PS,this),this.G=null),this.api.removeEventListener("videoready",this.A),this.Cq.stop()}this.type=null;this.X&&this.fade.hide()}Fg(...f){if(this.C)for(f=0;f{this.Zf(n,L)}); this.VZ.push(n);this.mZ=new DeO(this.api,n);g.A(this,this.mZ);!this.Y0&&(this.Zk&&this.api.Y("delhi_modern_web_player")?this.Zk.vr(this.mZ.element,2):this.mZ.di(this.JC.element));g.A(this,this.channelAvatar);this.channelAvatar.di(this.JC.element);g.A(this,this.title);this.title.di(this.JC.element);this.Y0&&(B=new yeY(this.api),g.A(this,B),B.di(this.JC.element));g.A(this,this.v0);this.Zk?(this.v0.element.setAttribute("data-overlay-order","2"),this.Zk.vr(this.v0.element,2)):this.v0.di(this.JC.element); const r=new sz5(this.api,this);g.A(this,r);g.qX(this.api,r.element,5);r.subscribe("show",L=>{this.Zf(r,L)}); this.VZ.push(r);this.searchButton=new GbY(this.api);g.A(this,this.searchButton);this.searchButton.di(this.v0.element);B=this.api.S().getWebPlayerContextConfig();this.Zv=new JYL(this.api);g.A(this,this.Zv);B?.hideTopWatchNextButton||this.Zv.di(this.v0.element);this.shareButton=new WzO(this.api,this,r);g.A(this,this.shareButton);B?.hideTopShareButton||this.shareButton.di(this.v0.element);this.copyLinkButton=new jz5(this.api,this);g.A(this,this.copyLinkButton);this.copyLinkButton.di(this.v0.element); this.Y0&&this.mZ.di(this.v0.element);g.A(this,this.RM);this.RM.di(this.v0.element);e.o_&&(B=new P7k(this.api),g.A(this,B),g.qX(this.api,B.element,4));e.J||(B=new aFO(this.api,this.RM),g.A(this,B),B.di(this.v0.element));this.zZ=new Eaw(this.api);g.A(this,this.zZ);g.qX(this.api,this.zZ.element,5);this.zZ.subscribe("show",()=>{this.Zf(this.zZ,this.zZ.A3())}); this.VZ.push(this.zZ);this.overflowButton=new SHH(this.api,this.zZ);g.A(this,this.overflowButton);this.overflowButton.di(this.v0.element);this.s2&&g.A(this,this.s2);e.controlsType==="3"&&(B=new MgM(this.api),g.A(this,B),g.qX(this.api,B.element,9));g.A(this,this.contextMenu);this.contextMenu.subscribe("show",this.Xc,this);this.G4.listen("focus",this.eD,this);g.A(this,this.G4);this.cC.listen("focus",this.J8,this);g.A(this,this.cC);(this.vY=e.S6?null:new gag(this.api,f,this.contextMenu,this.n5,this.Zw, this.CL,()=>this.Vc(),this.s2?.kA()))&&g.A(this,this.vY); this.Y0||(this.w0=new oaw(this.api),g.A(this,this.w0),this.Zk?this.Zk.vr(this.w0.element,3):g.qX(this.api,this.w0.element,4),this.If=new XI5(this.api),g.A(this,this.If),this.Zk?this.Zk.vr(this.If.element,3):g.qX(this.api,this.If.element,4));this.yy=new Qde(this.api);g.A(this,this.yy);this.Zk?this.Zk.vr(this.yy.element,3):g.qX(this.api,this.yy.element,4);if(this.Y0){const L=new lFG(this.api,this.api.S().uY);g.A(this,L);g.qX(this.api,L.element,5);L.subscribe("show",d=>{this.Zf(L,d)}); f=new uvM(this.api,L);g.A(this,f);g.qX(this.api,f.element,4)}this.YH.push(this.Zw.element);this.D(this.api,"fullscreentoggled",this.BY);this.D(this.api,"offlineslatestatechange",()=>{this.api.A5()&&Ti(this.n5,128,!1)}); this.D(this.api,"cardstatechange",()=>{this.qw()}); this.D(this.api,"resize",this.G5);this.D(this.api,"videoplayerreset",this.onReset);this.D(this.api,"showpromotooltip",this.s0);super.init()}Fi(){return this.tooltip}d7(){return this.s2}Zf(f,e){e?this.mL=f:this.mL=null;this.qw()}zK(f,e){if(e)this.o5.push(f);else for(e=this.o5.length;e>=0;e--)if(this.o5[e]===f){this.o5.splice(e,1);break}Ti(this.n5,64,this.o5.length>0)}dk(){this.api.O4()&&this.api.fV();return!!this.mL||xuH(this)||super.dk()}qw(){const f=!this.dk(),e=f&&this.api.O4()&&!this.api.getPlayerStateObject().C(2)&& !this.api.getVideoData().AF&&!this.api.S().J&&!this.api.isEmbedsShortsMode(),B=this.Y0&&g.bS(this.api)&&this.api.getPlayerStateObject().C(128);f||B?(this.u1.show(),this.Zg.show()):(this.u1.hide(),this.Zg.hide(),this.api.Fg(this.JC.element));e?this.RM.Fx():this.RM.HL();this.s2&&mud(this.s2,this.a$||!f);this.api.Y("web_player_hide_overflow_button_if_empty_menu")&&u8(this);super.qw()}ke(f,e,B,n,r){f.style.left="";f.style.top="";f.style.bottom="";var L=g.WN(f),d=n||this.s2&&g.HN(this.s2.V3(),e),t=n=null; B!=null&&d||(n=g.WN(e),t=g.Gt(e,this.api.getRootNode()),B==null&&(B=t.x+n.width/2));B-=L.width/2;d?(e=this.s2,n=ou(e),t=Uum(e),d=this.api.AL().getPlayerSize().height,B=g.ch(B,n,n+t-L.width),L=d-VU(e)-L.height):g.HN(this.JC.element,e)?(e=this.api.AL().getPlayerSize().width,B=g.ch(B,12,e-L.width-12),L=this.E3()?this.oh:this.Ts,this.api.S().playerStyle==="gvn"&&(L+=20),this.Y0&&(L-=this.E3()?26:18)):(e=this.api.AL().getPlayerSize(),B=g.ch(B,12,e.width-L.width-12),L=t.y>(e.height-n.height)/2?t.y-L.height- 12:t.y+n.height+12);f.style.top=`${L+(r||0)}px`;f.style.left=`${B}px`}w9(f){f&&(this.api.Fg(this.JC.element),this.s2&&this.api.Fg(this.s2.V3()));this.nx&&(g.h(this.contextMenu.element,"ytp-autohide",f),g.h(this.contextMenu.element,"ytp-autohide-active",!0));super.w9(f)}rK(){super.rK();this.nx&&(g.h(this.contextMenu.element,"ytp-autohide-active",!1),this.nx&&(this.contextMenu.hide(),this.zZ&&this.zZ.hide()))}jh(f,e){var B=this.api.AL().getPlayerSize();B=new g.oY(0,0,B.width,B.height);if(f||!Q9(this.n5)&& !this.dk()){if(this.api.S().HB||e)f=this.E3()?this.oh:this.Ts,B.top+=f,B.height-=f;this.s2&&(B.height-=VU(this.s2))}return B}BY(f){const e=this.api.getRootNode();f?e.parentElement?(e.setAttribute("aria-label","Player de v\u00eddeo do YouTube em tela cheia"),this.api.S().externalFullscreen||(e.parentElement.insertBefore(this.G4.element,e),e.parentElement.insertBefore(this.cC.element,e.nextSibling))):g.J(Error("Player not in DOM.")):(e.setAttribute("aria-label","Player de v\u00eddeo do YouTube"),this.G4.detach(), this.cC.detach());this.Sf();this.Om()}E3(){if(this.api.Y("web_player_use_screen_width_for_big_mode"))return this.api.AL().getPlayerSize().width>=(g.tS(this.api.S().experiments,"web_player_big_mode_screen_width_cutoff")??2E3);const f=this.api.S();return this.api.isFullscreen()&&!f.X||!1}showControls(f){this.v2=!f;this.qw()}Sf(){var f=this.E3();this.tooltip.scale=f?1.5:1;this.contextMenu&&g.h(this.contextMenu.element,"ytp-big-mode",f);this.qw();this.api.Y("web_player_hide_overflow_button_if_empty_menu")|| u8(this);this.Om();const e=this.api.isEmbedsShortsMode();e&&f?(f=(this.api.AL().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.uc(this.JC.element,"padding-left",`${f}px`),g.uc(this.JC.element,"padding-right",`${f}px`)):e&&(g.uc(this.JC.element,"padding-left",""),g.uc(this.JC.element,"padding-right",""));super.Sf()}c_(){if(xuH(this)&&!g.bS(this.api))return!1;var f=this.api.getVideoData();return!g.XY(this.api.S())||this.api.getPresentingPlayerType()===2||!this.LB||((f=this.LB||f.LB)? (f=f.embedPreview)?(f=f.thumbnailPreviewRenderer,f=f.videoDetails&&g.u(f.videoDetails,Dr5)||null):f=null:f=null,f&&f.collapsedRenderer&&f.expandedRenderer)?super.c_():!1}Om(){super.Om();this.api.logVisibility(this.title.element,!!this.qa);this.mZ&&this.mZ.AE(!!this.qa);this.channelAvatar.AE(!!this.qa);this.overflowButton&&this.overflowButton.AE(this.B0()&&!!this.qa);this.shareButton&&this.shareButton.AE(!this.B0()&&!!this.qa);this.Zv&&this.Zv.AE(!this.B0()&&!!this.qa);this.searchButton&&this.searchButton.AE(!this.B0()&& !!this.qa);this.copyLinkButton&&this.copyLinkButton.AE(!this.B0()&&!!this.qa);if(!this.qa){this.api.Fg(this.JC.element);for(let f=0;f5&&e.ri("glrs",{cmt:B});e.seekTo(0,{seekSource:58});e.ri("glrre",{cmt:B})}}bY(){this.C=null;super.bY()}};var IZO=class{constructor(){this.C=this.X=this.J=this.G=this.N=this.U=this.Ed=this.K=this.W=this.V=!1}};g.Se=class extends X35{constructor(f,e,B,n=!1){super();this.mediaElement=f;this.start=e;this.end=B;this.C=n}isView(){return!0}G6(){const f=this.mediaElement.getCurrentTime();if(f{}); this.timeout=new g.T6(()=>{this.Kz("timeout")},1E4); g.A(this,this.timeout);this.eI=isFinite(n)||this.Xx.S().experiments.SI("html5_pseudogapless_shorts")&&vY(e.getVideoData());this.status={status:0,error:null}}A1(){return this.status.status===5}getStatus(){return this.status}J(){var f=this.C.getVideoData(),e=this.G.getVideoData(),B;if((B=f.J)&&!(B=!f.C)){B=f.C;var n=!1;let k=!1;for(var r of Object.values(B.C))r.info.audio&&r.index.isLoaded()&&(n=!0),r.info.video&&r.index.isLoaded()&&(k=!0);B.C["0"]&&(k=!0);B=n&&k}if(B)if(this.C.aC()){r=hB(this.policy, this.C,this.G,this.W6);var {U5:L,HR:d,HX:t,Ev:H}=this.K();this.Cq||(B=this.G.SU()*1E3,n=this.C.SU(),n=(t-L-n)*1E3,r&&r.msg==="in-the-past"&&(n=0),f=f.isAd(),this.G.P3(B,n,f),this.Cq=!0);r?(e=`cannot_apply${r.msg}`,delete r.msg,this.Kz(e,r)):this.status.status===2?BU6(this):(f=this.C.Sw())&&f.U()&&(!fh(f)&&g.Cs()?this.Kz("mse_closed"):e.C&&e.C.V()&&f.G&&!f.G.o9()?this.Kz("encr_upgrade"):(e=this.C.aC(),e.isEnded()?this.Kz("elem_ended"):d<0?this.Kz("next_player_future"):(this.N=t,this.currentVideoDuration= t-L,this.V=z$5(f,L,t,!0),this.W=z$5(f,d,H,!1),f=this.G.getVideoData().clientPlaybackNonce,this.C.ri("gaplessPrep",{cpn:f}),this.C.vP(this.V,!1,this.U===1&&lK(this.C.getVideoData()),this.Xx.S().Y("html5_shorts_gapless_keep_pending_requests")&&vY(this.C.getVideoData())),this.C.setMediaElement(ix6(e,L,t,!this.C.getVideoData().isAd())),gI(this,2),BU6(this))))}else this.Kz("no-elem")}X(f){var {zn:e}=ED(this),B=f===e;e=B?this.V.C:this.V.G;B=B?this.W.C:this.W.G;if(e.isActive&&!B.isActive){var n=this.N,r= this.Xx.S().Y("html5_gapless_disable_on_discontinuous_buffer")&&this.U!==0&&e.Ea().length>1;Wy(f.Ea(),n-.01)&&!r&&(gI(this,4),e.isActive=!1,e.fv=e.fv||e.isActive,(this.U===1?this.C:this.G).ri("sbh",{}),B.isActive=!0,B.fv=B.fv||B.isActive,this.U!==0&&(this.C.getVideoData().VN=!0));f=this.W.G;this.W.C.isActive&&f.isActive&&(gI(this,5),this.U!==0&&(f=this.G.jC(),e=this.C.jC(),this.C.ri("sbs",{citag:e?.itag,nitag:f?.itag}),this.G.ri("gitags",{pitag:e?.itag,citag:f?.itag}),this.G?.YG()))}}cS(){this.Bp()&& this.Kz("player-reload-after-handoff")}Kz(f,e={}){if(!this.HS()&&this.status.status!==6){var B=this.status.status>=4&&f!=="player-reload-after-handoff";this.status={status:Infinity,error:f};if(this.C&&this.G){const n=this.G.getVideoData().clientPlaybackNonce;this.C.rC(new g.WP("dai.transitionfailure",Object.assign(e,{cpn:n,transitionTimeMs:this.W6,msg:f})));this.C.ao(B)}this.nY.reject(f);this.dispose()}}WS(){if(this.getStatus().status!==5)return"niss";if(hB(this.policy,this.C,this.G,this.W6)!=null)return"pge"; const {zn:f,Hi:e}=ED(this),B=g.tS(this.Xx.S().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var n=this.N+B;this.Xx.S().experiments.SI("html5_pseudogapless_shorts")&&(n=this.K().HR+B);const r=Wy(e.Ea(),n);n=Wy(f.Ea(),n);return!(B>0)||r&&n?null:"neb"}Ed(){return this.currentVideoDuration}Bp(){return this.status.status>=4&&this.status.status<6}bY(){eHm(this);this.C.unsubscribe("newelementrequired",this.cS,this);if(this.V){const f=this.V.G;this.V.C.o6.unsubscribe("updateend",this.X,this); f.o6.unsubscribe("updateend",this.X,this)}super.bY()}K(){var f=this.C.aC();f=f.isView()?f.start:0;var e=this.C.getVideoData().isLivePlayback?Infinity:this.C.zJ(!0);e=Math.min(this.W6/1E3,e)+f;var B=this.eI?100:0;B=e-this.G.SU()+B;return{U5:f,HR:B,HX:e,Ev:Infinity}}A(f){f.IC(128)&&this.Kz("player-error-event")}};var W5V=class extends g.$0{constructor(f){super();this.app=f;this.X=this.G=this.C=null;this.Ed=!1;this.N=this.U=this.J=this.V=null;this.W=$um(this.app.S());this.K=()=>{g.Sk(()=>{rW5(this)})}}clearQueue(f=!1,e=!1){Tz(this); this.V&&this.V.reject("Queue cleared");this.app.S().Y("html5_gapless_fallback_on_qoe_restart_v2")||e&&this.G&&this.G.ao(!1);QU(this,f)}uE(){return!this.C}Bp(){return this.J?.Bp()||!1}A1(){return this.J?.A1()||!1}bY(){Tz(this);QU(this);super.bY()}};var sdu=class extends g.$v{constructor(){super();this.fullscreen=0;this.V=this.J=this.pictureInPicture=this.C=this.G=this.inline=!1;this.W=()=>{this.p5()}; xsm(this.W);this.U=this.getVisibilityState(this.oR(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Qi(),this.EC(),this.Ji(),this.dM())}getVisibilityState(f,e,B,n,r,L,d,t){return f?4:r&&Cq?7:sPg&&!(kQ()||document.hasFocus&&document.hasFocus())||kQ()?3:e?2:B?1:n?5:r&&!Cq?7:L?8:d?9:t?10:0}Q4(f){this.fullscreen!==f&&(this.fullscreen=f,this.p5())}setMinimized(f){this.G!==f&&(this.G=f,this.p5())}setInline(f){this.inline!==f&&(this.inline=f,this.p5())}U1(f){this.pictureInPicture!==f&&(this.pictureInPicture= f,this.p5())}setSqueezeback(f){this.J!==f&&(this.J=f,this.p5())}PP(f){this.V!==f&&(this.V=f,this.p5())}oR(){return this.C}CY(){return this.fullscreen!==0}isFullscreen(){return this.fullscreen!==0&&this.fullscreen!==4}Lg(){return this.fullscreen}isMinimized(){return this.G}isInline(){return this.inline}isBackground(){return kQ()}Qi(){return this.pictureInPicture}EC(){return!1}Ji(){return this.J}dM(){return this.V}p5(){this.publish("visibilitychange");const f=this.getVisibilityState(this.oR(),this.isFullscreen(), this.isMinimized(),this.isInline(),this.Qi(),this.EC(),this.Ji(),this.dM());f!==this.U&&this.publish("visibilitystatechange");this.U=f}bY(){Wt6(this.W);super.bY()}};g.ua=class extends g.$0{constructor(f){super();this.Ta=f;this.videoData=this.playerState=null}bY(){this.videoData=this.playerState=null;super.bY()}addCueRange(){}S7(){}Yj(){}Zs(){return!1}Q2(){return!1}B$(){}yV(){}aV(){return[]}j6(){}Yx(){}X3(){return 1}getAudioTrack(){return this.getVideoData().Qr}XK(){return null}getAvailableAudioTracks(){return[]}B6(){return[]}L$(){return[]}gj(){return this.Ta.Y("web_player_misc_bugfix_b")?this.getVideoData().clientPlaybackNonce:""}QD(){return[]}wL(){}SU(){return 0}getCurrentTime(){return 0}Mr(){}jC(){}xp(){return{}}getDuration(){return 0}pG(){return 0}Lc(){return 0}Ty(){return!1}xi(){return 0}l$(){return 0}OX(){return null}q9(){return 0}nF(){return!1}zJ(){return 0}aC(){return null}Sw(){return null}N0(){return 0}Pz(){return 0}async dZ(){}getPlaybackQuality(){return"auto"}getPlaybackRate(){return 1}getPlayerState(){this.playerState|| (this.playerState=new g.ks);return this.playerState}getPlayerType(){return 0}getPlaylistSequenceForTime(){return null}z8(){return()=>{}}F3(){return""}getPreferredQuality(){return"unknown"}yL(){}getProximaLatencyPreference(){return 0}JV(){return Z_}getStartTime(){return NaN}Pr(){return null}getStoryboardFormat(){return null}getStreamTimeOffset(){return 0}IV(){return 0}gA(){return 0}kx(){return{I7:[], b2:[],currentTime:0,tA:"",droppedVideoFrames:0,isGapless:!1,A1:!1,uE:!0,vN:0,Qu:0,s6:0,uG:0,Ze:0,YS:[],Ci:[],Hk:null,gh:"0",kB:null,EG:"",totalVideoFrames:0}}getUserAudio51Preference(){return 0}getUserPlaybackQualityPreference(){return""}getVideoData(){this.videoData||(this.videoData=new g.qk(this.Ta),g.A(this,this.videoData));return this.videoData}uO(){return null}Zj(){return null}uj(){}getVideoLoadedFraction(){return 0}R_(){}handleError(){}ao(){}PM(){}zb(){return!1}hasSupportedAudio51Tracks(){return!1}isAd(){return!1}S2(){return!1}oR(){return!1}isAtLiveHead(){return!1}TV(){return!0}isGapless(){return!1}A1(){return!1}isHdr(){return!1}Dj(){return!1}cN(){return!1}GS(){return!1}isProximaLatencyEligible(){return!1}uE(){return!0}e_(){return!1}eq(){return!1}Ct(){}PY(){}YG(){}C6(){}Xv(){}f_(){}Kt(){}q1(){}pauseVideo(){}prefetchKeyPlay(){}async playVideo(){}rz(){}LZ(){}ri(){}U4(){}ip(){}P3(){}rC(){}fI(){}wp(){}QA(){}xB(){}MY(){}Q5(){}removeCueRange(){}Iv(){}sK(){return[]}dl(){}TC(){}Ai(){}s1(){}ER(){}h_(){}GL(){}seekTo(){}sendAbandonmentPing(){}sendVideoStatsEngageEvent(){}H3(){}setLoop(){}oQ(){}setMediaElement(){}vP(){}setPlaybackRate(){}a6(){}Y1(){}rM(){}setProximaLatencyPreference(){}Ly(){}py(){}BF(){}QY(){}r6(){}setUserAudio51Preference(){}mJ(){}Wt(){return!1}VP(){}Jb(){return!1}Qg(){}HP(){}UM(){}stopVideo(){}subscribe(){return NaN}V_(){}togglePictureInPicture(){}gg(){return 0}yA(){}unsubscribe(){return!1}a5(){}uw(){return!1}k5(){}w6(){}QP(){}}; g.c=g.ua.prototype;g.c.ew=eC(47);g.c.TQ=eC(37);g.c.Bt=eC(30);g.c.Jq=eC(24);g.c.hC=eC(18);g.c.zE=eC(12);var F6=class extends g.$0{constructor(f,e){super();this.data=[];this.J=f||NaN;this.G=e||null;this.C=new g.T6(()=>{JB(this);Mc(this)}); g.A(this,this.C)}get(f){JB(this);const e=this.data.find(B=>B.key===f); return e?e.value:null}set(f,e,B){this.remove(f,!0);JB(this);f={key:f,value:e,expire:Infinity};B&&isFinite(B)&&(B*=1E3,f.expire=(0,g.T)()+B);for(this.data.push(f);this.data.length>this.J;)(B=this.data.shift())&&Dv(this,B,!0);Mc(this)}remove(f,e=!1){const B=this.data.find(n=>n.key===f); B&&(Dv(this,B,e),g.tu(this.data,n=>n.key===f),Mc(this))}removeAll(f=!1){if(f)for(const e of this.data)Dv(this,e,f); this.data=[];Mc(this)}bY(){super.bY();this.data.forEach(f=>{Dv(this,f,!0)}); this.data=[]}};g.mV=class extends g.$0{constructor(f,e){super();this.api=f;this.J={};this.SX=null;this.V={};this.C=null;this.K=new Map;this.X=null;e=new F6(e,B=>{B!==this.rR({playerType:B.getPlayerType()})&&B.dispose()}); g.A(this,e);this.G=this.N=this.U=new g.ua(f.S());this.W=e}bY(){for(const f of Object.values(this.J))f.dispose();vZM(this);this.U.dispose();super.bY()}Jc(f){return f?f===1?this.N:this.G.getVideoData().enableServerStitchedDai&&f===2?this.G.getVideoData().U8?this.J[2]||this.G:this.G:this.J[f]||null:this.G}rR(f){var e=f.cpn;f=f.playerType;if(e)a:{for(const B of Object.values(this.J))if(B.gj()===e){e=B;break a}e=this.V[e]||null}else e=f?this.Jc(f):this.G;return e}cL(){return this.N}A_(f){this.N=f}Od(){return this.G}Vg(f){const e= [f],B=[this.G];this.G=f;Gz(this,e,B)}};g.mV.prototype.sy=eC(45);g.mV.prototype.DB=eC(43);var X5G=class{constructor(){this.values=new Float64Array(176);this.C=new Float64Array(11);this.G=new Float64Array(16)}fB(f,e){for(var B=0;B<10;B++){var n=this.C[B],r=n+(B===0?f:0),L=1*Math.pow(2,B);if(r<=L)break;n=Math.min(1,(r-L*.5)/n);for(r=0;r<16;r++)L=this.values[B*16+r]*n,this.values[(B+1)*16+r]+=L,this.C[B+1]+=L,this.values[B*16+r]-=L,this.C[B]-=L}n=B=0;r=8192;e>8192&&(B=Math.ceil(Math.log(e/8192)/Math.log(2)),n=8192*Math.pow(2,B-1),r=n*2);B+2>16?this.values[15]+=f:(e=(e-n)/(r-n),this.values[B]+= f*(1-e),this.values[B+1]+=f*e);this.C[0]+=f}H0(){const f=this.G;for(var e=0;e<16;e++)f[e]=this.values[e];e=this.C[0];for(var B=1;B<11;B++){var n=this.C[B];if(n===0)break;var r=Math.min(1,(17-e)/n);for(var L=0;L<16;L++)f[L]+=this.values[B*16+L]*r;e+=n*r;if(r<1)break}B=r=0;for(n=0;n<16;n++){L=r+f[n]/e;B+=Math.max(0,Math.min(L,.98)-Math.max(r,.02))*(n>0?8192*Math.pow(2,n-1):0);if(L>.98)break;r=L}return B/.96}};var Un=class{constructor(f,e,B=.5,n=0){this.resolution=e;this.G=0;this.W=!1;this.u2=!0;this.C=Math.round(f*this.resolution);this.values=Array(this.C);for(f=0;f=this.C&&(this.W=!0);for(;f--;)this.values[this.G]=e,this.G=(this.G+1)%this.C;this.u2=!0}percentile(f){if(!this.W&&this.G===0)return 0;this.u2&&(g.cB(this.U, (e,B)=>this.values[e]-this.values[B]),this.u2=!1); return this.values[this.U[Math.round(f*((this.W?this.C:this.G)-1))]]||0}H0(){return this.V?(this.percentile(this.J-this.V)+this.percentile(this.J)+this.percentile(this.J+this.V))/3:this.percentile(this.J)}};var yYV=class extends g.$0{constructor(f,e,B){super();this.policy=f;this.G=e;this.Fl=B;this.Cq=this.Z9=0;this.A=-1;this.cS=this.W=0;this.Ed=!1;this.interruptions=[];this.J=[{stamp:0,net:0,max:0}];this.Lq=0;this.PS=this.U=(0,g.T)();this.K=new Un(4,1,.6,.4);this.eI=new Un(4,1,.6,.4);this.X=new Un(20,1,.5,.4);f.Ed?this.V=new X5G:f.J?this.V=new r1(17):this.V=new Un(17,20,.5,.4);this.WS=new Un(5,1,.25);this.N=new Un(30,1,.5);f=g.IB("yt-player-bandwidth")||{};e=this.policy.C;f.byterate>0?(e=f.byterate, this.Ed=!0):(B=(navigator.connection?.downlink||0)*64*1024,B>0&&(e=B,this.Ed=!0));this.V.fB(this.policy.W,e);f.delay>0&&this.K.fB(1,Math.min(f.delay,2));f.stall>0&&this.X.fB(1,f.stall);f.init>0&&(this.PS=Math.min(f.init,this.PS));f.interruptions&&(this.J=this.J.concat(f.interruptions),this.J.length>16&&this.J.pop());this.A=(0,g.T)();this.policy.U>0&&(this.uY=new g.T6(this.BS,this.policy.U,this),g.A(this,this.uY),this.uY.start())}BS(){this.uY?.start();O3(this)&&this.policy.X&&this.Fl()}};var Uk6=class{constructor(f){this.experiments=f;this.C=13E4;this.W=.5;this.G=this.J=!1;this.Ed=this.Y("html5_use_histogram_for_bandwidth");this.V=g.tS(this.experiments,"html5_auxiliary_estimate_weight");this.N=g.tS(this.experiments,"html5_stall_factor")||1;this.U=g.tS(this.experiments,"html5_check_for_idle_network_interval_ms");this.X=this.experiments.SI("html5_trigger_loader_when_idle_network");this.K=this.experiments.SI("html5_sabr_fetch_on_idle_network_preloaded_players")}Y(f){return this.experiments.SI(f)}};var XOO=class extends g.fm{constructor(f,e,B=0){super(e.uO());this.videoData=f;this.duration=B;this.C=this.startTimeSecs=0;this.G=this.J=!0}V(){}gj(){return this.videoData.clientPlaybackNonce}getVideoData(){return this.videoData}getCurrentTime(f){let e=super.getCurrentTime();this.C===0?f||(e-=this.startTimeSecs,super.getVideoData().Y("html5_ssdai_log_missed_ad_impressions")&&this.G&&this.J&&e>1&&this.ri("sdai-admiss",{cpn:this.gj(),ct:e.toFixed(3),pfs:this.J}),this.G=!1):f&&(e=this.C);return e}getDuration(){return this.duration}getPlayerType(){return 2}getStartTime(){return this.startTimeSecs}P9(f){this.duration= f}};var Lgk,P0F;Lgk=class{constructor(f){this.end=this.start=f}};g.NY=class{constructor(){this.C=new Map;this.J=new Map;this.G=new Map}mC(f,e){if(e===1)return this.C.get(f);if(e===2)return this.J.get(f);if(e===3)return this.G.get(f)}Mo(f,e,B,n){B={f1:n,L0:B};e?this.J.set(f,B):this.C.set(f,B)}clearAll(){this.C.clear();this.J.clear();this.G.clear()}};g.NY.prototype.pv=eC(65);P0F=class{constructor(f){this.Ta=f;this.G=[];this.J=new Map;this.V=new Map;this.C=new Map;this.aX={Gz:()=>this.J, X4S:()=>this.V, cK:()=>this.G}}clear(){this.G=[]; this.J.clear();this.V.clear();this.C.clear()}rR(f){return this.J.get(f)}};g.h1=class extends g.$0{constructor(f,e,B,n){super();this.api=f;this.Ta=e;this.playback=B;this.app=n;this.Ed=new g.NY;this.G=new Map;this.Q3=new Map;this.Cq=new Map;this.WS=null;this.G6=NaN;this.tL=this.Ch=null;this.xA=new g.T6(()=>{GiM(this,this.G6,this.Ch||void 0)}); this.events=new g.ep(this);this.MC=15E3;this.U=new g.T6(()=>{this.X=!0;this.playback.fI(this.MC);HM(this);this.playback.getVideoData().q0()&&this.dA({togab:this.W?.identifier});this.R_(!1)},this.MC); this.X=!1;this.RP=new Map;this.BS=[];this.W=null;this.UE=new Set;this.K=[];this.Lq=[];this.EE=[];this.mS=[];this.uY=new Set;this.cS=0;this.N=!1;this.lC=new Set;this.sE=new Set;this.Wd=new Set;this.qC=new Set;this.Mk=this.YL=0;this.H6=this.hE=!1;this.kf=this.J="";this.A=null;this.logger=new g.or("dai");this.P4="";this.Z9=!0;this.PS=new Map;this.Yp=new Map;this.aX={Rx9:()=>this.G, Gz:()=>this.C.aX.Gz(), DqA:()=>this.J, VyI:r=>{this.onCueRangeEnter(this.G.get(r))}, Q6Y:r=>{this.onCueRangeExit(this.G.get(r))}, IcL:(r,L)=>{this.G.set(r,L)}, TZ9:r=>{this.kf=r}, fF:()=>this.fF(), YK9:r=>this.C.C.get(r), Fk9:()=>this.A, cK:()=>this.C.aX.cK(), LY:(r,L)=>{this.LY(r,L)}, lwS:()=>this.Q3, gy:r=>{this.gy(r)}}; this.playback.getPlayerType();this.C=new P0F(this.Ta);this.playback.r6(this);this.Fl=this.Ta.wA();g.A(this,this.xA);g.A(this,this.events);g.A(this,this.U);this.Qr=this.Ta.Y("html5_use_new_ssdai_transition_detector");this.kA=this.Ta.JE().C.jI(zD5);f=this.playback.getVideoData();f.q0()&&f.latencyClass==="NORMAL"&&(this.kA=this.Ta.JE().C.jI(Xqg));this.uC=this.Ta.JE().C.jI(sh5);this.Cc=this.playback.getVideoData().RU;this.Qr?this.playback.subscribe("playbackstarted",this.LY,this):(this.events.D(this.api, g.kk("serverstitchedcuerange"),this.onCueRangeEnter),this.events.D(this.api,g.Ca("serverstitchedcuerange"),this.onCueRangeExit));this.Ys=this.Ta.Y("html5_ssdai_report_stitch_error_after_skip_ad");xh(this.app.U2(),this.playback,!1)}hF(f,e,B,n,r,L,d,t){var H=xkw(this,r,r+n);this.X&&this.dA({adaftto:1});e||this.dA({missadcon:1,enter:r,len:n,aid:d});this.V&&!this.V.Ym&&(this.V.Ym=d);this.H6&&this.dA({adfbk:1,enter:r,len:n,aid:d});var k=this.playback;r>L&&kz(this,{reason:"enterTime_greater_than_return", Vz:r,i6:L});var C=k.N0()*1E3;rk&&kz(this,{reason:"parent_return_greater_than_content_duration",i6:L,Y2Y:k});(k=TUC(this.C,r))&&k.i6>r&&kz(this,{reason:"overlapping_playbacks",sMA:f.video_id||"",Vz:r,i6:L,WAa:k.cpn,P6Y:k.videoData?.videoId||"",LAS:k.durationMs,p4L:k.Vz,ici:k.i6});if(H&&k)for(C=0;Cw===d)&&(this.dA({rejectAdBreakAttl:d},!0),this.mS.push(d)); BM(this);return}f.cpn||(f.cpn=g.HR(16));H=f.cpn;f=new g.qk(this.Ta,f);f.S5=!0;f.u6=f.clientPlaybackNonce;k=d?d:k?k.mN:H;e={playerType:B,durationMs:n,Vz:r,i6:L,cpn:H,videoData:f,errorCount:0,ssdaiAdsConfig:e,mN:k};B=f.getPlayerResponse()?.playbackTracking;this.uC&&(e.serializedQoeContextData=B?.serializedQoeContextData);this.kA&&(B=vA(B?.serializedPlaybackPingContextData??""),e.serializedPlaybackPingContextLoggingData=g.ON(g.zy({clientPlaybackNonce:H,serializedPlaybackPingContextData:B},YWd),4));EZG(this.C, e);(t=s_g(this,t))&&this.Cc&&this.Q3.set(k,t);yWM(this,f,n);this.dA({attlDone:L-r,acpn:H,et:r,prt:L});this.U.isActive()&&(this.X=!1,this.U.stop(),HM(this),this.R_(!0));d&&this.Qr&&(this.PS.has(d)?this.PS.get(d).add(H):this.PS.set(d,new Set([H])),this.Yp.set(H,d));return f}aV(){const f=this.playback.aV("serverstitchedcuerange",36E5);for(const e of f)this.G.delete(e.getId())}onCueRangeEnter(f){const e=f.getId();this.dA({oncueEnter:1,cpn:e,start:f.start,end:f.end,ct:(this.playback.getCurrentTime()|| 0).toFixed(3),cmt:(this.playback.SU()||0).toFixed(3)});var B=this.C.rR(e);this.dA({enterAdCueRange:1});var n=this.kf||this.fF().cpn;const r=this.C.rR(n)??this.fF();B&&(n=this.playback.getCurrentTime(),B.startTimeSecs=f.start/1E3,B={mq:r,nU:B,KU:n},wi(this,e,f.start/1E3,n),b2(this,B));this.Z9=!1}LY(f,e,B){if(f&&e&&f!==this.app.U2().C?.gj())if((this.app.U2().V[f]||null)===null)this.dA({nocpn:f,active:this.app.U2().C?.gj()});else{this.Z9=B??!1;B=this.app.U2().C?.gj()||this.playback.gj();var n=this.C.rR(B)?? this.fF(),r=this.C.rR(f)??this.fF();r.startTimeSecs=e;r.playerType===2&&(r.MA=r.MA!=null?Math.min(r.MA,e):e);var L=this.playback.getCurrentTime();wi(this,B,e,L);b2(this,{mq:n,nU:r,KU:L});if(this.playback.getVideoData().q0()&&f===this.playback.gj())if(e=this.Yp.get(B)){for(const d of this.PS.get(e)??[]){f=this.app.U2();if(B=f.V[d])f.C===B&&(f.C=null),f.X===B&&(f.X=null),d===f.K.get("")?.gj()&&f.K.delete(""),delete f.V[d];this.Cq.delete(d);this.Yp.delete(d)}this.PS.delete(e)}else this.dA({no_abid:f})}}YD(f, e){if(f===this.playback.gj())xh(this.app.U2(),this.playback,!1);else{const B=this.Cq.get(f);B?(hH5(B,e,!this.Z9),xh(this.app.U2(),B,!0)):this.dA({nop_s:f})}}onCueRangeExit(f){var e=this.playback.getCurrentTime()*1E3,B=f.getId();this.dA({oncueExit:1,cpn:B,start:f.start,end:f.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.SU()||0).toFixed(3)});for(var n of this.G.values())if(n.getId()!==B&&e>=n.start&&e<=n.end)return;if(e=this.C.rR(B))B=this.playback.getPlayerState(),this.Ta.Y("html5_lifa_no_transition_on_ended")&& this.playback.getVideoData().q0()&&B.C(2)||(B=this.playback.getCurrentTime(),n=this.fF(),n.startTimeSecs=f.end/1E3,e={mq:e,nU:n,KU:B},wi(this,this.playback.gj(),f.end/1E3,B),b2(this,e))}fF(){return{cpn:this.playback.gj(),durationMs:0,Vz:0,playerType:1,i6:0,videoData:this.playback.getVideoData(),errorCount:0,mN:""}}IA(){if(this.H6)return!1;let f=void 0;this.kf&&(f=this.C.rR(this.kf));return this.playback.getVideoData().q0()?!!f&&!f.eg:!!f}seekTo(f=0,e={},B=!1,n=null){vM(this,this.kf);if(this.playback.getVideoData().q0()&& f<=this.cS)this.playback.pauseVideo(),this.cS=0,eQG(this,f);else if(this.Z9=this.N=!0,B)GiM(this,f,e);else{B=this.app.Od();const r=B===this.WS?this.tL:null;tN(this,!1);this.G6=f;this.Ch=e;n!=null&&this.xA.start(n);B&&(this.tL=r||B.getPlayerState(),B.UM(e),this.WS=B)}}bY(){tN(this,!1);Rb(this);rLk(this);super.bY()}xa(f,e,B){if(B&&e){var n=this.RP.get(f);if(n){n.locations||(n.locations=new Map);var r=Number(e.split(";")[0]);B=new g.Qv(B);this.dA({hdlredir:1,itag:e,seg:f,hostport:CR(40,B)});n.locations.set(r, B)}}}ya(f){a:{if(!this.H6){var e=KM(this,f);if(!this.playback.getVideoData().q0()||!e?.eg)break a}e=void 0}var B=e;if(!B)return this.dA({gvprp:"ncp",mt:f}),null;e=B.mN;var n=M9O(this,B.ssdaiAdsConfig);B=B.WB&&B.bV&&f>=B.bV?B.WB:void 0;n={Uu:e?LM(this,e):[],adsConfig:n,Za:B};this.dA({gvprpro:"v",mt:f.toFixed(3),acpns:n.Uu?.join("_")||"none",abid:e});return n}zi(f,e,B,n,r,L){const d=Number(B.split(";")[0]);var t=n===3;f=JWH(this,f,e,n,B,L);this.dA({gdu:1,seg:e,itag:d,pb:`${!!f}`});if(!f)return nM(this, e,t),null;f.locations||(f.locations=new Map);if(!f.locations.has(d)){L=f.videoData.getPlayerResponse()?.streamingData?.adaptiveFormats;if(!L)return this.dA({gdu:"noadpfmts",seg:e,itag:d}),nM(this,e,t),null;var H=L.find(C=>C.itag===d); if(!H||!H.url){f=f.videoData.videoId;n=[];for(var k of L)n.push(k.itag);this.dA({gdu:"nofmt",seg:e,vid:f,itag:d,fullitag:B,itags:n.join(",")});nM(this,e,t);return null}f.locations.set(d,new g.Qv(H.url,!0))}k=f.locations.get(d);if(!k)return this.dA({gdu:"nourl",seg:e,itag:d}),nM(this,e,t),null;k=new ef(k);this.hE&&(k.get("dvc")?this.dA({dvc:k.get("dvc")||""}):k.set("dvc","webm"));(n=this.mC(e-1,n,r)?.f1)&&k.set("daistate",n);f.WB&&e>=f.WB&&k.set("skipsq",`${f.WB}`);(n=this.playback.getVideoData().clientPlaybackNonce)&& k.set("cpn",n);n=[];f.mN&&(n=LM(this,f.mN),n.length>0&&k.set("acpns",n.join(",")));t||this.RP.set(e,f);t=null;t=k.get("aids");r=k.Dw();r?.length>2048&&this.dA({urltoolong:1,sq:e,itag:d,len:r.length});this.Fl&&(r&&(L=f.cpn,k=f.mN,dvH(this,L,k),k&&!this.Wd.has(k)&&(L=tzw(this,L,k),H=HpY(this,k),this.dA({iofa:L}),this.dA({noawnzd:H-L}),this.dA({acpns:n.join("."),aids:t?.replace(/,/g,".")}),this.Wd.add(k))),this.dA({gdu:"v",seg:e,itag:B,ast:f.Vz.toFixed(3),alen:f.durationMs.toFixed(3),acpn:f.cpn,avid:f.videoData.videoId})); return r}XF(f,e,B=!1){const n=di(this,f,e);if(n){this.Ys&&(this.eI=n);var r=void 0,L=n.mN;if(L){this.dA({skipadonsq:e,sts:B,abid:L,acpn:n.cpn,avid:n.videoData.videoId});B=this.C.C.get(L);if(!B)return;for(const d of B)d.WB=e,d.bV=f,d.Vz>n.Vz&&(r=d)}vM(this,this.kf);this.J=n.cpn;kEY(this);this.api.Y("html5_ssdai_enable_media_end_cue_range")&&this.playback.yA(this.J);f=this.playback.getCurrentTime();IIO(this,n,r,f,f,!1,!0);fG5(this)}}Y$(){var f=this.C;for(const e of f.G)e.WB=NaN,e.bV=NaN;kEY(this);this.dA({rsac:"resetSkipAd", sac:this.J});this.qC.delete(this.J);this.J="";this.Ys&&(this.eI=void 0)}mC(f,e,B){return this.Ed.mC(f,e,B)}nk(f){const e=f.trackType;for(const H of f.metadata??[])for(const k of H.EH??[]){var B=k.rf,n=k.Am;f=k.cpn;var r=k.loggingMetadata,L=k.jB,d=k.GA;if(!f||f===this.playback.getVideoData().clientPlaybackNonce)continue;var t=this.C.rR(f);if(e===2){if(B&&B.startTicks!==void 0&&B.cz!==void 0&&B.timescale!==void 0&&n&&n.startTicks!==void 0&&n.cz!==void 0&&n.timescale!==void 0&&L!==void 0){const C=B.startTicks/ B.timescale;B=n.startTicks/n.timescale;n=n.cz/n.timescale;t&&(t.MA=t.MA!==void 0?Math.min(t.MA,C):C,r&&(t.sR=g.kq(r)));r=(C-B)*1E3;t=(B+n)*1E3;L=r+(d?t:Math.max(t+1E3,L));(d=this.G.get(f))?(d.start=r,d.end=L,this.playback.f_()):(d=P_Y(r,L,f),this.G.set(f,d),this.playback.addCueRange(d))}this.aV()}else e===1&&t&&r&&(t.Qh=g.kq(r))}}Mo(f,e,B,n,r,L,d,t){B.length>0&&this.dA({onssinfo:1,sq:f,start:e.toFixed(3),cpns:B.join(","),ds:n.join(","),isVideo:L?1:0});if(this.Ys&&this.eI&&this.eI.WB&&B.length>0)for(var H of B)if(H=== this.eI.cpn){this.P4!==H&&(this.dA({skiperror:1,sq:f,acpn:this.eI.cpn,skipsq:this.eI.WB||0}),this.P4=H);break}t&&this.Ed.Mo(f,L,d,t);if(L){if(B.length&&n.length)for(this.qC.has(B[0])&&this.dA({skipfail:1,sq:f,acpn:B[0]}),f=e+this.IV(),L=0;Lthis.V.XA+1){this.dA({cueStChg:f.identifier,oldSt:this.V.XA.toFixed(3),newSt:f.startSecs.toFixed(3),abid:this.V.Ym});if(this.V.Ym){const B=f.startSecs-this.V.XA,n=this.C.C.get(this.V.Ym);if(n)for(const r of n)r.Vz>=0&&(r.Vz+=B*1E3,this.dA({newApEt:r.Vz,newApPrt:r.i6,acpn:r.cpn}))}this.V.XA=f.startSecs}e?this.uY.add(f.identifier):this.uY.has(f.identifier)&&this.uY.delete(f.identifier);return e}uU(f){let e="";f?f.event==="unknown"?e="unknown":this.uY.has(f.identifier)? this.V&&this.V.pm===f.identifier?this.V.pm===f.identifier?e=yG(this.Lq,B=>B.identifier===f.identifier)?"shortad":"pending":yG(this.Lq,B=>B.identifier===f.identifier)||(e="noAdsAdded"):e="wrongAdBreakInfo":e="unscheduled":e="noCuepoint"; return e}R3(f){return this.H6?!1:!!KM(this,f)}Gw(f){if(this.Ta.Y("html5_lifa_ignore_multiple_skips")&&this.A)return this.dA({ufs_ad:this.J,ufs_cur:this.kf,ufs_cont:this.fF().cpn}),!1;vM(this,this.kf);this.playback.pauseVideo();const e=this.playback.getCurrentTime(),B=this.C.rR(this.kf);if(!B)return this.dA({skipFail:e}),!1;this.J=this.kf;this.N=!1;this.api.Y("html5_ssdai_enable_media_end_cue_range")&&this.playback.yA(this.J);this.gy(B.mN);wcd(this,B,this.fF(),f);eQG(this,e,{seekSource:89,wX:"lifa_skip"}); this.A||(this.A=this.events.D(this.api,"progresssync",()=>{ZI(this.api.Pt(),(0,g.T)(),"ad_to_video");this.A&&(this.events.uh(this.A),this.A=null)})); return!0}gy(f){if(this.playback.getVideoData().q0()){var e=this.C.C.get(f);if(e){for(var B of e)e=this.G.get(B.cpn),this.G.delete(B.cpn),e&&this.playback.removeCueRange(e),Dk5(this.C,B);this.RP.clear();B=this.C;e=B.C.get(f)??[];for(const n of e)Dk5(B,n);B.C.delete(f);(f=this.Q3.get(f))&&this.Cc&&this.playback.s1(f)}}}dA(f,e=!1){(e||this.Fl)&&this.playback.ri("sdai",f)}};g.h1.prototype.pv=eC(64);var Ilg=class extends g.$0{constructor(f,e,B,n){super();this.api=f;this.Ta=e;this.C=B;this.app=n;this.W=new Map;this.G=[];this.J=this.X=null;this.Ed=NaN;this.U=this.V=this.N=null;this.K=new g.T6(()=>{bpM(this,this.Ed,this.N||void 0)}); this.A=[];this.Cq=new g.T6(()=>{var r=this.A.pop();if(r){const L=r.u6,d=r.playerVars;r=r.playerType;d&&(d.prefer_gapless=!0,this.api.preloadVideoByPlayerVars(d,r,NaN,"",L),this.A.length&&this.Cq.M0(4500))}}); this.events=new g.ep(this);this.aX={mjq:()=>this.G}; this.C.getPlayerType();g.A(this,this.K);g.A(this,this.Cq);g.A(this,this.events);this.events.D(this.api,g.kk("childplayback"),this.onCueRangeEnter);this.events.D(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.D(this.api,"presentingplayerstatechange",this.lT)}onCueRangeEnter(f){if(this.C===this.app.Od()){var e=this.W.get(f);e?zQ5(this,e.target,e.W6,f):this.rC("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:f.toString()})}else if(e=this.G.find(n=>n.ea.KB===f)){var B= e.ea; const n=B.target;B=B.W6;n?zQ5(this,n,B,f):aGl(this,e.i6,B,f)}}onQueuedVideoLoaded(){const f=this.X;pM(this);f&&(ab(this,f)||this.rC("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:this.app.Od()?.getVideoData().clientPlaybackNonce,ccpn:`${f.playerVars.cpn}`}),this.app.Od().addCueRange(f.ea.KB))}seekTo(f=0,e={},B=!1,n=null){if(B)bpM(this,f,e);else{B=this.app.Od()||null;const r=B===this.V?this.U:null;ql(this,!1);this.Ed=f;this.N=e;n!=null&&this.K.start(n);B&&(this.U=r||B.getPlayerState(), B.UM(),this.V=B)}}lT(f){f.IC(128)&&cLH(this)}isManifestless(){return p2(this.C.getVideoData())}bY(){ql(this,!1);jQ(this);super.bY()}rC(f,e){this.C.rC(new g.WP(f,e))}},Kg0=0;var ALd="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_APPS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");var $HF=class extends g.$0{constructor(){super();this.C=new F6(5,null);g.A(this,this.C);this.G=new F6(15,null);g.A(this,this.G)}AX(f){if(f)return this.G.get(f)}bY(){this.C.removeAll();this.G.removeAll();super.bY()}};g.iwe=aY(()=>{const f=window.AudioContext||window.webkitAudioContext;try{return new f}catch(e){return e.name}});var fVI=class extends g.y{constructor(f){super({L:"div",y9:["html5-video-player"],O:{tabindex:f.S().disableOrganicUi?"":"-1",id:f.webPlayerContextConfig.rootElementId},j:[{L:"div",B:g.y1.VIDEO_CONTAINER,O:{"data-layer":"0"}}]});this.app=f;this.H$=this.JL(g.y1.VIDEO_CONTAINER);this.j_=new g.oY(0,0,0,0);this.z6=null;this.QC=new g.oY(0,0,0,0);this.Rg=this.jk=this.Sk=NaN;this.R9=this.Wh=this.Tn=this.JT=!1;this.eV=NaN;this.Px=!1;this.p_=null;this.hD=new g.T6(()=>{this.app.S().Y("web_enable_smart_zoom")&& this.app.wi.getInternalApi().isAutocropEnabled()||this.resize()},100); this.vc=()=>{this.element.focus({preventScroll:!0})}; this.Sl=()=>{this.app.wi.publish("playerUnderlayVisibilityChange","visible");this.z6.classList.remove(g.y1.VIDEO_CONTAINER_TRANSITIONING);this.z6.removeEventListener(VJ,this.Sl);this.z6.removeEventListener("transitioncancel",this.Sl)}; this.XP=this.Ja=!1;const e=this.element.addEventListener,B=this.element.removeEventListener;this.addEventListener=(r,L,d)=>{e.apply(this.element,[r,L,d])}; this.removeEventListener=(r,L,d)=>{B.apply(this.element,[r,L,d])}; const n=f.S();n.transparentBackground&&this.q6("ytp-transparent");n.controlsType==="0"&&this.q6("ytp-hide-controls");g.PW(this.element,"ytp-exp-bottom-control-flexbox");g.PW(this.element,"ytp-modern-caption");n.Y("enable_new_paid_product_placement")&&!g.L3(n)&&g.PW(this.element,"ytp-exp-ppp-update");g.PW(this.element,"ytp-livebadge-color");OpH(this.element,Wgg(f));this.UR=!1;this.EU=new g.uN(NaN,NaN);Vz5(this);this.D(f.wi,"onMutedAutoplayChange",this.onMutedAutoplayChange);g.A(this,this.hD)}q6(...f){g.I0(this.element, f)}TC(){this.z6&&(this.z6.removeEventListener("focus",this.vc),g.tb(this.z6),this.z6=null)}Zl(){this.HS();const f=this.app.S();f.Ia||this.q6("tag-pool-enabled");f.U&&this.q6(g.y1.HOUSE_BRAND);f.playerStyle==="gvn"&&(this.q6("ytp-gvn"),this.element.style.backgroundColor="transparent");f.G6&&(this.eV=g.IF("yt-dom-content-change",this.resize,this));this.D(window,"orientationchange",this.resize,this);this.D(window,"resize",this.resize,this)}T2(f){g.JF(this.app.S());this.R9=!f;OG(this)}resize(){if(this.z6){var f= this.I8();if(!f.isEmpty()){this.app.wi.isFullscreen()&&kB()&&this.hD.start();var e=!g.Fl(f,this.j_.getSize()),B=FgO(this);e&&(this.j_.width=f.width,this.j_.height=f.height);f=this.app.S();(B||e||this.XP||f.G6)&&this.app.wi.publish("resize",this.getPlayerSize())}}}N9(f,e){this.updateVideoData(e)}updateVideoData(f){if(this.z6){var e=this.app.S();ye&&(this.z6.setAttribute("x-webkit-airplay","allow"),f.title?this.z6.setAttribute("title",f.title):this.z6.removeAttribute("title"));this.z6.setAttribute("controlslist", "nodownload");e.X1&&f.videoId?this.z6.poster=f.iR("default.jpg"):aB()&&(UL??0)>=10&&(this.z6.poster="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}e=g.FQ(f,"yt:bgcolor");this.H$.style.backgroundColor=e?e:"";this.Sk=oB(g.FQ(f,"yt:stretch"));this.jk=oB(g.FQ(f,"yt:crop"),!0);g.h(this.element,"ytp-dni",f.AF);this.resize()}setGlobalCrop(f){this.Rg=oB(f,!0);this.resize()}setCenterCrop(f){this.JT=f;this.resize()}Q4(){}getPlayerSize(){var f=this.app.S();const e=this.app.wi.isFullscreen(); var B=f.externalFullscreen&&g.XY(f);if(e&&kB()&&!B)return new g.uN(window.outerWidth,window.outerHeight);B=!isNaN(this.EU.width)&&!isNaN(this.EU.height);const n=this.app.S().Y("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.S().Y("web_watch_enable_fs_squeezeback_panels");if(e&&!B&&n)return new g.uN(this.element.clientWidth,this.element.clientHeight);if(e||f.Bz){let r;window.matchMedia&&(f="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)",this.p_&&this.p_.media=== f||(this.p_=window.matchMedia(f)),r=this.p_&&this.p_.matches);if(r)return new g.uN(window.innerWidth,window.innerHeight)}else if(B)return this.EU.clone();return new g.uN(this.element.clientWidth,this.element.clientHeight)}I8(){var f=this.app.S().Y("enable_desktop_player_underlay");const e=this.getPlayerSize(),B=g.tS(this.app.S().experiments,"player_underlay_min_player_width");return f&&this.Tn&&e.width>B?(f=g.tS(this.app.S().experiments,"player_underlay_video_width_fraction"),new g.uN(Math.min(e.height* this.getVideoAspectRatio(),e.width*f),Math.min(e.height,e.width*f/this.getVideoAspectRatio()))):e}getVideoAspectRatio(){return isNaN(this.Sk)?uZO(this):this.Sk}getVideoContentRect(f){const e=this.I8();f=lGk(this,e,this.getVideoAspectRatio(),f);return new g.oY((e.width-f.width)/2,(e.height-f.height)/2,f.width,f.height)}Y5(f){this.Tn=f;this.resize()}bv(){return this.Wh}onMutedAutoplayChange(){OG(this)}setInternalSize(f){g.Fl(this.EU,f)||(this.EU=f,this.resize())}bY(){this.eV&&g.$n(this.eV);this.TC(); super.bY()}};var eIF=class{constructor(){this.csn=g.be();this.clientPlaybackNonce=null;this.elements=new Set;this.J=new Set;this.C=new Set;this.G=new Set}click(f,e){this.elements.has(f);this.C.has(f);const B=g.be();B&&f.visualElement&&g.yL(B,f.visualElement,e)}createClientVe(f,e,B,n=!1){this.elements.has(f);this.elements.add(f);B=C0(B);f.visualElement=B;const r=g.be(),L=g.v6();r&&L&&(g.UV("combine_ve_grafts")?Uu(FC(),B,L):g.LN(g.ER)(void 0,r,L,B));e.addOnDisposeCallback(()=>{this.elements.has(f)&&this.destroyVe(f)}); n&&this.G.add(f)}createServerVe(f,e,B=!1){this.elements.has(f);this.elements.add(f);e.addOnDisposeCallback(()=>{this.destroyVe(f)}); B&&this.G.add(f)}destroyVe(f){this.elements.has(f);this.elements.delete(f);this.J.delete(f);this.C.delete(f);this.G.delete(f)}Cq(f,e){this.clientPlaybackNonce!==e&&(this.clientPlaybackNonce=e,mW(FC(),f),mvG(this))}setTrackingParams(f,e){this.elements.has(f);e&&(f.visualElement=g.kv(e))}FG(f,e,B){this.elements.has(f);e?this.C.add(f):this.C.delete(f);const n=g.be(),r=f.visualElement;this.G.has(f)?n&&r&&(e?g.sR(n,[r]):g.Xd(n,[r])):e&&!this.J.has(f)&&(n&&r&&g.W6(n,r,void 0,B),this.J.add(f))}hasVe(f){return this.elements.has(f)}};var B2g={VU:0,ihA:1,Qf:2,Eo:3,jXA:4,tfC:5,0:"ECHO",1:"TRANSFER_MEDIA_SOURCE",2:"BUSY_WAIT",3:"IS_TYPE_SUPPORTED",4:"WASM_INSTANTIATE",5:"WASM_SENTINEL"};var nee=class extends g.$0{constructor(f,e,B,n,r,L){super();this.K=f;this.ri=e;this.U=B;this.X=n;this.W=r;this.intervalMs=L;this.N=Bh;this.V=0;this.J=!1}sendRequest(){const f=Object.values(B2g).filter(e=>typeof e==="number"); switch(f[Math.floor(Math.random()*f.length)]){case 0:NWm(this,this.X);break;case 1:hQ0(this);break;case 2:gHw(this,this.W);break;case 3:SpG(this)}}request(f){this.gR&&this.gR.postMessage(f)}receive(f){if(!(this.V>=5E3)){var e=f.timeStamp,B=performance.now();f=f.data;var n=f[1];this.ri("worker",{type:f[0],t1:(f[2]-performance.timeOrigin-n).toFixed(3),t2:(f[3]-performance.timeOrigin-n).toFixed(3),t3:(e-n).toFixed(3),t4:(B-n).toFixed(3)});this.V++}}bY(){this.G!==void 0&&(clearInterval(this.G),this.G= void 0);this.gR?.terminate();this.C=this.gR=void 0;this.ri("workerDtor",{});super.bY()}};g.S6=class extends g.$0{constructor(f,e,B,n){super();this.logger=new g.or("App");this.Y_=this.WE=!1;this.yC={};this.EM=[];this.AK=!1;this.Tq=null;this.intentionalPlayback=!1;this.cY=!0;this.A4=!1;this.e9=this.iG=this.Ux=null;this.wd=!0;this.mediaElement=this.PL=null;this.Ax=NaN;this.NP=!1;this.wC=this.kF=this.l6=this.screenLayer=this.playlist=null;this.OB=[];this.D4=0;this.jy=new lU6;this.Vu=[];this.aX={U2:()=>this.Bd, bx:()=>this.l6}; if(!B)throw Error("b/179532961");this.XV=e?.args||{};this.webPlayerContextConfig=B;e=this.XV;this.Ta=new q2d(e,B,B.canaryState,n);g.A(this,this.Ta);RHY(this.Ta);n=uUH(this.Ta);this.Ta.wA()&&hS(n,L=>{this.QQ("h5vcc",L)}); this.Ta.experiments.SI("jspb_serialize_with_worker")&&Idg();this.Ta.experiments.SI("gzip_gel_with_worker")&&USm();this.Ta.G&&y2O();this.Y("html5_onesie")&&(this.g9=new Jv5(this.Ta),g.A(this,this.g9));this.Lh=new yYV(NUC(g.IM(this.Ta),this.Ta.Rd,this.Ta.experiments),new VPC(this.Ta.experiments),()=>void this.C6()); g.A(this,this.Lh);this.Bi=YB(xL(this.Ta)&&!0,e.enablesizebutton);this.Ld=YB(!1,e.player_wide);this.visibility=new sdu;g.A(this,this.visibility);this.Y("web_log_theater_mode_visibility")&&this.PP(YB(!1,e.player_wide));this.WE=YB(!1,e.external_list);this.events=new g.ep(this);g.A(this,this.events);this.Y("start_client_gcf")&&(RH(aH(),{cB:rq,dt:ekw()}),this.o3=aH().resolve(rq),tmM(this.o3));this.vD=new xE;g.A(this,this.vD);this.Hp=new eIF;n=new jj0;this.wi=new g.sL(this,n);g.A(this,this.wi);this.template= new fVI(this);g.A(this,this.template);this.appState=1;this.UI=JLk(this);g.A(this,n);this.wN={internalvideodatachange:this.Eh,playbackready:this.T5,playbackstarted:this.oS,statechange:this.C2};this.oO=new LzH(this.wi);this.hI=XcM(this);n=this.Ta.U;!1!==n&&this.QQ("badps",{hbp:n,hostname:window.location.hostname,ps:this.Ta.playerStyle});this.ph=new te5(this.Ta,this.hI);this.wi.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||hW(this.hI))&&yLl(this);n=10;g.IM(this.Ta)&&(n=3);n3(this.Ta)&& (n=g.tS(this.Ta.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Bd=new g.mV(this.wi,n);n=PId(this);this.Bd.A_(n);$vl(this);this.ac={airplayactivechange:this.Bu,airplayavailabilitychange:this.f2,beginseeking:this.n2,sabrCaptionsDataLoaded:this.z5,endseeking:this.Fm,internalAbandon:this.gF,internalaudioformatchange:this.wF,internalvideodatachange:this.Ee,internalvideoformatchange:this.cq,liveviewshift:this.kR,playbackstalledatstart:this.Cf,progresssync:this.jo,onAbnormalityDetected:this.Xm, onSnackbarMessage:this.o$,onLoadProgress:this.O0,SEEK_COMPLETE:this.IS,SEEK_TO:this.Ar,onVideoProgress:this.Gd,onLoadedMetadata:this.l3,onAutoplayBlocked:this.MX,onPlaybackPauseAtStart:this.qX,playbackready:this.So,statechange:this.Li,newelementrequired:this.Wk,heartbeatparams:this.DG,videoelementevent:this.rY,drmoutputrestricted:this.K2,signatureexpired:this.Td,nonfatalerror:this.aS,reloadplayer:this.xR};this.zM=new g.ep(this);g.A(this,this.zM);this.I_=new $HF;g.A(this,this.I_);this.fm=this.hX=-1; this.k8=new g.T6(this.template.resize,16,this.template);g.A(this,this.k8);this.fh=new Ilg(this.wi,this.Ta,this.cL(),this);this.Hr=new W5V(this);g.A(this,this.Hr);this.m2=new xHI(this);g.A(this,this.m2);js5(this.Ta.C.c);this.events.D(this.wi,g.kk("appapi"),this.zW);this.events.D(this.wi,g.Ca("appapi"),this.Il);this.events.D(this.wi,g.kk("appprogressboundary"),this.J2);this.events.D(this.wi,g.Ca("applooprange"),this.t_);this.events.D(this.wi,"presentingplayerstatechange",this.lT);this.events.D(this.wi, "resize",this.dY);this.template.di(Te(document,f));this.events.D(this.wi,"offlineslatestatechange",this.RS);this.events.D(this.wi,"sabrCaptionsTrackChanged",this.Mc);this.events.D(this.wi,"sabrCaptionsBufferedRangesUpdated",this.wY);this.hI.Z.S().Z2&&m_(this.hI,"offline");this.Ta.BS&&g.cO("ux",g.GOL);f=g.tS(this.Ta.experiments,"html5_defer_fetch_att_ms");this.ll=new g.T6(this.QO,f,this);g.A(this,this.ll);this.EK().H4()&&(g.iz()&&this.EK().HE.push("mdx"),Bd(this));this.ph.tick("fs");fvY(this);this.Ta.BS&& m_(this.hI,"ux",!0);g.XY(this.hI.Z.S())&&m_(this.hI,"embed");this.Y("web_player_sentinel_is_uniplayer")||g.Yv(new g.Dj("Player experiment flags missing","web_player_sentinel_is_uniplayer"));f=this.Y("web_player_sentinel_yt_experiments_sync");n=g.UV("web_player_sentinel_yt_experiments_sync");f!==n&&g.Yv(new g.Dj("b/195699950",{yt:f,player:n}));this.u5=ePH(this);if(f=g.tS(this.Ta.experiments,"html5_block_pip_safari_delay"))this.h6=new g.T6(this.E5,f,this),g.A(this,this.h6);B=Xt(B?.trustedEchoWorkerUrl?? null);f=this.Ta.JE().C.jI(nTk);n=this.Ta.JE().C.jI(r16);e=this.Ta.JE().C.jI(B1g);const r=this.Ta.JE().C.jI(eO6);B&&f>0&&n>0&&e>0&&r>0&&(this.Do=new nee(B,(L,d)=>{this.cL().ri(L,d)},e,n,r,f),g.A(this,this.Do),EHm(this.Do)); g.A(this,this.jy);I6=this.Ta.Yp;this.wi.publish("applicationInitialized")}static create(f,e,B,n){try{const r=typeof f==="string"?f:`player${g.od(f)}`,L=g1[r];if(L){try{L.dispose()}catch(t){g.J(t)}g1[r]=null}const d=new g.S6(f,e,B,n);d.addOnDisposeCallback(()=>{g1[r]=null;d.u5&&d.u5()}); return g1[r]=d}catch(r){throw g.J(r),(r&&r instanceof Error?r:Error(String(r))).stack;}}lE(){return this.visibility}A_(f){const e=this.cL();if(f!==e){f.getVideoData().autonavState=e.getVideoData().autonavState;e.a5(this.wN,this);var B=e.getPlaybackRate();e.dispose();this.Bd.A_(f);f.setPlaybackRate(B);f.V_(this.wN,this);Bd(this)}}pB(){this.Tq||(this.Tq=g.nJ(p_(),BQk(),{l8:this.Ta.l8(),clientInterface:mt(this.Ta)}));return this.Tq}TC(f){if(this.mediaElement){this.kF&&(this.events.uh(this.kF),this.kF= null);this.zM.G();this.Od().TC(!0,!1,f);this.template.TC();try{this.Y("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Fl()}catch(e){g.Yv(e)}this.mediaElement=null}}Vg(f,e,B=!1){if(f!==this.Od()){var n=null;B||(B=this.Od(),n=B.getPlayerState(),E5(this.hI,3),Ml(this,"cuerangesremoved",B.QD()),this.Hr&&!f.isGapless()&&B.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),B=f.Wt()&&B.Wt(),this.ph.FF("iv_s"),rB6(this,B));f.getPlayerType()===1&&this.A_(f);B=f.getPlayerType(); const r=this.Bd.J[B]||null;f!==this.cL()&&f!==r&&(r?.dispose(),this.Bd.J[B]=f);this.Bd.Vg(f);this.mediaElement&&f.setMediaElement(this.mediaElement);f.V_(this.ac,this);f.eq()?rX(this,"setPresenting",!1):(this.N9("newdata",f,f.getVideoData()),n&&!g.Rw(n,f.getPlayerState())&&this.Li(new g.aw(f.getPlayerState(),n)),e=e&&f.getPlayerType()===1,f.cN()&&!e&&this.N9("dataloaded",f,f.getVideoData()),(e=(e=f.getVideoData().G)&&e.video)&&g.f_(this.wi,"onPlaybackQualityChange",e.quality),Ml(this,"cuerangesadded", f.QD()),e=f.getPlayerState(),e.C(2)?dcw(this):e.C(8)?f.playVideo():f.Dj()&&f.pauseVideo(),e=this.cL(),f.getPlayerType()===2&&(f.getVideoData().bI=e.getVideoData().clientPlaybackNonce),f.getPlayerType()!==2||this.Nq()||(f=f.getVideoData(),e.rz(f.clientPlaybackNonce,f.xA||"",f.breakType||0,f.Ni,f.videoId||"")))}}zV(){this.cL()!==this.Od()&&this.Vg(this.cL())}U2(){return this.Bd}rR(f){return this.Bd.rR(f)}Jc(f){return this.Bd.Jc(f)}cL(){return this.Bd.cL()}Od(){return this.Bd.Od()}T5(){Hd(this)||this.Um(5)}So(){if(!Hd(this)){QJ(this); var f=this.Od(),e=f.getVideoData();this.Ta.Y("html5_allow_multiview_tile_preload")&&e.sE&&f.seekTo(Infinity);e=f.getPlayerState();f.Dj()?this.pauseVideo():e.isOrWillBePlaying()&&this.playVideo()}}canPlayType(f){return y0(f)}S(){return this.Ta}getVideoData(){return this.Od().getVideoData()}bx(){return this.Od().OX()}EK(){return this.cL().getVideoData()}getVideoLoadedFraction(f){return g.mO(this,{playerType:f}).getVideoLoadedFraction()}AL(){return this.template}iC(){return this.hI}Pt(){return this.ph}WP(f, e=1,B){g.mO(this,{playerType:e}).H3(f,void 0,B)}dS(){const f=this.hI.dS();this.wi.publish("videoStatsPingCreated",f);return f}getVolume(){return Math.round(this.wi.getVolume())}isMuted(){return this.wi.isMuted()}fC(){if(this.cL()===this.Od()&&this.PL)return this.PL.postId}QO(){this.Y("use_rta_for_player")||(g.IM(this.Ta)?g.vS(this.Ta,this.getVideoData().U()).then(f=>{cF(p_(),f);ifd(this.getVideoData(),this.Ta,this.pB())}):ifd(this.getVideoData(),this.Ta,this.pB()))}Zm(f){this.wi.publish("poTokenVideoBindingChange", f)}iW(f){this.wi.publish("d6de4videobindingchange",f)}Op(){this.hd&&this.hd.Op()}Ns(f){this.hd=f}b7(f){if(f===1){this.ph.tick("vr"); var e=this.Od();e.Yj();BM5(this.ph,e.getVideoData(),C8O(this));S9(this.hI)}e=this.Ta;(f3(e)&&e.K||g.DH(e))&&(this.Od().getVideoData()?.enableServerStitchedDai||!this.Nq())&&g.f_(this.wi,"onAdStateChange",f)}setLoopVideo(f){const e=this.Od();e===this.cL()&&e.nF()!==f&&(e.setLoop(f),g.yW(this.wi,"onLoopChange",f))}getLoopVideo(){return this.Od().nF()}setLoopRange(f){var e=!1;!!this.PL!==!!f?e=!0:this.PL&&f&&(e=this.PL.startTimeMs!==f.startTimeMs||this.PL.endTimeMs!==f.endTimeMs||this.PL.postId!==f.postId|| this.PL.type!==f.type);if(e){e=this.Od();vY(e.getVideoData())&&e.ri("slr",{et:f?.endTimeMs||-1});e=this.cL();e.sK("applooprange");if(f){var B=new g.VD(f.startTimeMs,f.endTimeMs,{id:"looprange",namespace:"applooprange"});e.addCueRange(B)}else this.EK().clipConfig=void 0,this.PL?.type!=="repeatChapter"||isNaN(Number(this.PL?.loopCount))||(B={loopCount:String(this.PL.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.t$("repeatChapterLoopEvent",B));this.PL=f;g.yW(this.wi,"onLoopRangeChange",f|| void 0);this.cL()===this.Od()&&(this.t_(),e.B$())}}getLoopRange(){return this.PL}t_(){let f="";const e=this.cL();this.PL?e!==this.Od()?f="pnea":TWg(this,e.getCurrentTime())&&(this.PL.loopCount=0,f="ilr"):f="nlr";const B=this.Od();vY(B.getVideoData())&&(this.Y("html5_gapless_log_loop_range_info")?B.ri("slrre",{rej:f,ct:e.getCurrentTime(),lst:this.PL?.startTimeMs,let:this.PL?.endTimeMs}):B.ri("slrre",{}));f||vhO(this)}setPlaybackRate(f,e){if(!isNaN(f)){f=IGk(this,f);var B=this.cL();B.getPlaybackRate()!== f&&(B.setPlaybackRate(f),e&&!this.Ta.V&&g.yT("yt-player-playback-rate",f),g.f_(this.wi,"onPlaybackRateChange",f))}}getCurrentTime(f={}){const {playerType:e,VV:B=!0}=f;var n=this.Bd.SX;if(n)return n.getCurrentTime();f=(n=e===2&&this.getVideoData().enableServerStitchedDai)?this.Od():g.mO(this,f);return n&&this.l6?(n=this.Bd.X)?n.getCurrentTime(B):f.getCurrentTime():B?(f=t3(this,f),gi(this,f.getCurrentTime(),f)):f.getCurrentTime()}l$(){var f=g.mO(this,{playerType:void 0});f=t3(this,f);return gi(this, f.l$(),f)}getDuration(f,e=!0){var B=this.Bd.SX;if(B)return B.getDuration();B=this.getVideoData();const n=f===2&&B.enableServerStitchedDai;let r;r=n?this.Od():g.mO(this,{playerType:f});if(B.hasProgressBarBoundaries()&&!n){const L=Number(B.progressBarStartPosition?.utcTimeMillis),d=Number(B.progressBarEndPosition?.utcTimeMillis);if(!isNaN(L)&&!isNaN(d))return(d-L)/1E3}if(vY(B)&&!B.isLivePlayback)return SQ(this,f);if(e)return f=hN(this,r),gi(this,f.getDuration(),f);n&&this.l6?(f=this.Bd,f=f.C===f.X? f.C:null,f=(f==null?void 0:f.getDuration())||0):f=r.getDuration();return f}Lc(f){var e=g.mO(this,{playerType:f});return this.Nq(e)?(e=hN(this,e),e.Lc()-e.getCurrentTime()+this.getCurrentTime({playerType:f})):e.Lc()}finishSegmentByCpn(){return[]}Zl(){this.template.Zl();var f=this.wi;f.state.element=this.template.element;const e=f.state.element;let B;for(B in f.state.C)f.state.C.hasOwnProperty(B)&&(e[B]=f.state.C[B]);(f=DZd(this.template.element))&&this.events.D(this.template,f,this.onFullscreenChange)}getDebugText(f){var e= this.cL().xp(f),B=this.Od();if(B!==this.cL()){B=B.xp(f);for(var n of Object.keys(B))e["ad"+n]=B[n];if(f){n=e;B={};var r=Te(document,"movie_player");r&&(B.bounds=r.getBoundingClientRect(),B["class"]=r.className);r={};var L=g.x2("video-ads");L?(p2G(L,r),r.html=L.outerHTML):r.missing=1;L={};const d=g.x2("videoAdUiSkipContainer"),t=g.x2("ytp-ad-skip-button-container"),H=g.x2("ytp-skip-ad-button"),k=d||t||H;k?(p2G(k,L),L.ima=d?1:0,L.bulleit=t?1:0,L.component=H?1:0):L.missing=1;B=JSON.stringify({player:B, videoAds:r,skipButton:L});n.ad_skipBtnDbgInfo=B}}f&&this.mediaElement&&(e["0sz"]=`${+m$(this.mediaElement.getSize())===0}`,e.op=this.mediaElement.Cq("opacity"),n=this.mediaElement.dn().y+this.mediaElement.getSize().height,e.yof=`${+n<=0}`,e.dis=this.mediaElement.Cq("display"));f&&((f=(0,g.hI)())&&(e.gpu=f),(f=this.Ta.playerStyle)&&(e.ps=f),this.Ta.uY&&(e.webview=1),(f=this.webPlayerContextConfig.jsUrl)&&(e.js=f));e.debug_playbackQuality=this.wi.getPlaybackQuality(1);e.debug_date=(new Date).toString(); e.origin=window.origin;e.timestamp=Date.now();delete e.uga;delete e.q;return JSON.stringify(e,null,2)}getFeedbackProductData(){const f={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.S().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20260208_10_RC00"},e=this.getPlayerStateObject().iE;e&&(f.player_error_code=e.errorCode,f.player_error_details=JSON.stringify(e.errorDetail));return f}getPresentingPlayerType(f){return this.appState===1?1:Hd(this)?3:(f&&this.Ta.JE().C.jI(Fk)? this.Bd.C?.isAd()??!1:this.l6?.IA(this.getCurrentTime()))?2:this.Od().getPlayerType()}k6(){return!1}getPlayerStateObject(f){const e=this.Bd.SX;return e?e.getPlayerState():g.mO(this,{playerType:f}).getPlayerState()}getAppState(){return this.appState}rY(f){switch(f.type){case "loadedmetadata":this.k8.start();for(var e of this.EM)MzY(this,e.id,e.Or,e.hS,void 0,!1);this.EM=[];break;case "loadstart":this.ph.FF("gv");break;case "progress":case "timeupdate":XH(f.target.tR())>=2&&this.ph.FF("l2s");break; case "playing":g.tq&&this.k8.start();if(g.IM(this.Ta))f=!1;else{e=g.Ry(this.iC());f=this.mediaElement.Cq("display")==="none"||m$(this.mediaElement.getSize())===0;var B=ob(this.template),n=this.Od().getVideoData(),r=g.TT(this.Ta);n=bd(n);e=!B||e||r||n||this.Ta.MC;f=f&&!e}f&&(f=this.Od(),f.Ct(),this.getVideoData().Fl||(this.getVideoData().Fl=1,this.Wk(),f.playVideo()))}}O0(f){g.id(this.wi,"onLoadProgress",f)}Cf(){this.wi.publish("playbackstalledatstart")}z5(f,e){this.wi.publish("sabrCaptionsDataLoaded", f,e)}Mc(f){this.Od().py(f)}wY(f){this.Od().Ly(f)}Gd(f){f=t3(this,this.Od());f=gi(this,f.getCurrentTime(),f);g.f_(this.wi,"onVideoProgress",f);this.Ta.Fo&&this.visibility.Qi()&&this.Ta.sE&&!this.getVideoData()?.backgroundable&&this.pauseVideo()}MX(){g.f_(this.wi,"onAutoplayBlocked");var f=this.Od().getVideoData();f&&(f.uI=!0);g.XY(this.Ta)&&(f={autoplayBrowserPolicy:PA(),autoplayIntended:IJ(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback}, g.t$("embedsAutoplayStatusChanged",f))}jo(){this.wi.publish("progresssync")}qX(){g.id(this.wi,"onPlaybackPauseAtStart")}C2(f){if(this.getPresentingPlayerType()===1){f.IC(1)&&!f.state.C(64)&&this.EK().isLivePlayback&&this.cL().isAtLiveHead()&&this.wi.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(f.IC(2)){if(this.PL&&this.PL.endTimeMs>=(this.getDuration()-1)*1E3){vhO(this);return}dcw(this)}if(f.state.C(128)){var e=f.state;this.cancelPlayback(5);e=e.iE;JSON.stringify({errorData:e,debugInfo:this.getDebugText(!0)}); g.f_(this.wi,"onError",wu0(e.errorCode));g.id(this.wi,"onDetailedError",{errorCode:e.errorCode,errorDetail:e.errorDetail,message:e.errorMessage,messageKey:e.B2,cpn:e.cpn});(0,g.T)()-this.Ta.Qr>6048E5&&g.id(this.wi,"onReloadRequired")}e={};if(f.state.isPlaying()&&!f.state.isBuffering()&&!SH("pbresume","ad_to_video")&&SH("_start","ad_to_video")){const B=this.getVideoData();e.clientPlaybackNonce=B.clientPlaybackNonce;B.videoId&&(e.videoId=B.videoId);g.hQ(e,"ad_to_video");NJ("pbresume",void 0,"ad_to_video"); S9(this.hI)}this.wi.publish("applicationplayerstatechange",f)}}Li(f){this.Bd.SX||this.wi.publish("presentingplayerstatechange",f)}lT(f){Lm(this,Kh(f.state));f.state.C(1024)&&this.wi.isMutedByMutedAutoplay()&&(Tr(this,{muted:!1,volume:this.UI.volume},!1),EG(this,!1))}onPlayerRequestSent(f){g.yW(this.wi,"onPlayerRequestSent",f)}Eh(f,e){f==="newdata"&&Bd(this);this.wi.publish("applicationvideodatachange",f,e)}wF(f,e){QJ(this);g.id(this.wi,"onPlaybackAudioChange",this.wi.getAudioTrack().Z_.name);this.wi.publish("internalaudioformatchange", this.wi.getAudioTrack().Z_.id,e)}cq(f){const e=this.Od().getVideoData();f===e&&g.f_(this.wi,"onPlaybackQualityChange",f.G.video.quality)}CU(){var f=this.Bd.J[2]||null;f&&(f=f.getVideoData(),this.Od().ri("ssdai",{cleanaply:1,acpn:f?.clientPlaybackNonce,avid:f.videoId,isDai:this.EK().enableServerStitchedDai?1:0}),delete this.Bd.J[2])}Ee(f,e){this.N9(f,this.Od(),e)}N9(f,e,B){this.Ta.wA()&&e.ri("vdc",{type:f,vid:B.videoId||"",cpn:B.clientPlaybackNonce||""});e===this.cL()&&(this.Ta.jX=B.oauthToken);e=== this.cL()&&(this.getVideoData().enableServerStitchedDai&&!this.l6?(this.cL().ri("sdai",{initSstm:1}),this.l6=new g.h1(this.wi,this.Ta,this.cL(),this)):!this.getVideoData().enableServerStitchedDai&&this.l6&&(this.l6.dispose(),this.l6=null));if(f==="newdata")E5(this.hI,2),this.wi.publish("videoplayerreset",e);else{if(!this.mediaElement)return;if(f==="dataloaded")if(this.cL()===this.Od()){if(X5(B.V9,B.Nl),!this.cL().getPlayerState().isError()){var n=Hd(this);this.EK().isLoaded();n&&this.Um(6);kzY(this); gU(this.hI)||nm(this)}}else kzY(this);if(e.getPlayerType()===1&&(this.Ta.WS&&bAd(this),this.getVideoData().isLivePlayback&&!this.Ta.Hl&&this.Kz("html5.unsupportedlive",2,"DEVICE_FALLBACK"),B.isLoaded()&&((a0k(B)||this.getVideoData().Dk)&&this.wi.publish("legacyadtrackingpingchange",this.getVideoData()),B.hasProgressBarBoundaries()&&(n=Number(this.getVideoData().progressBarEndPosition?.utcTimeMillis)/1E3,!isNaN(n))))){var r=this.Lc();r&&(r-=this.getCurrentTime(),n=(n-r)*1E3,r=this.yC.progressEndBoundary, r?.start!==n&&(r&&this.Iv([r]),n=new g.VD(n,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.cL().addCueRange(n),this.yC.progressEndBoundary=n))}this.wi.publish("videodatachange",f,B,e.getPlayerType())}g.f_(this.wi,"onVideoDataChange",{type:f,playertype:e.getPlayerType()});this.t_();(f=B.Xy)?this.Hp.Cq(f,B.clientPlaybackNonce):mvG(this.Hp)}Cm(){JN(this,null);g.id(this.wi,"onPlaylistUpdate")}J2(f){delete this.yC[f.getId()];this.cL().removeCueRange(f);a:{f=this.getVideoData(); var e=f.cS?.contents?.singleColumnWatchNextResults?.autoplay?.autoplay?.sets||f.cS?.contents?.twoColumnWatchNextResults?.autoplay?.autoplay?.sets;if(e)for(B of e){e=B.autoplayVideo||B.autoplayVideoRenderer?.autoplayEndpointRenderer?.endpoint;const n=g.u(e,g.iK);if(e!=null&&n?.videoId===f.videoId&&n?.continuePlayback){var B=e;break a}}B=null}(f=g.u(B,g.iK))&&g.yW(this.wi,"onPlayVideo",{sessionData:{autonav:"1",itct:B?.clickTrackingParams},videoId:f.videoId,watchEndpoint:f})}Um(f){f!==this.appState&& (f===2&&this.getPresentingPlayerType()===1&&(Lm(this,-1),Lm(this,5)),this.appState=f,this.wi.publish("appstatechange",f))}Kz(f,e,B,n,r){this.cL().a6(f,e,B,n,r)}isAtLiveHead(f,e=!1){var B=g.mO(this,{playerType:f});f=hN(this,B);B=t3(this,B);return f!==B?f.isAtLiveHead(gi(this,B.getCurrentTime(),B),!0):f.isAtLiveHead(void 0,e)}xi(){const f=g.mO(this,{playerType:void 0});return hN(this,f).xi()}seekTo(f,e,B,n,r,L){e=e!==!1;n=g.mO(this,{playerType:n});this.appState===2&&$z(this);this.Nq(n)?vd(this)?this.l6.seekTo(f, {seekSource:r},e,B):this.fh.seekTo(f,{seekSource:r},e,B):(this.Y("html5_sabr_csdai_seek_log")||(L=""),n.seekTo(f,{Lv:!e,dQ:B,wX:"application"+(L??""),seekSource:r}))}seekBy(f,e,B,n){this.seekTo(this.getCurrentTime()+f,e,B,n,void 0,"_by")}IS(){g.f_(this.wi,"SEEK_COMPLETE")}Xm(){g.yW(this.wi,"onAbnormalityDetected")}o$(f){g.yW(this.wi,"onSnackbarMessage",f)}Ar(f){const e=this.Od(),B=e.getVideoData();if(this.appState===1||this.appState===2)B.startSeconds=f;this.appState===2?e.getPlayerState().C(512)|| $z(this):g.f_(this.wi,"SEEK_TO",f)}Bu(){this.wi.publish("airplayactivechange")}f2(){this.wi.publish("airplayavailabilitychange")}showAirplayPicker(){this.Od().VP()}n2(){this.wi.publish("beginseeking")}Fm(){this.wi.publish("endseeking")}getStoryboardFormat(f){f=g.mO(this,{playerType:f});return hN(this,f).getStoryboardFormat()}Pr(f){f=g.mO(this,{playerType:f});return hN(this,f).getVideoData().Pr()}Nq(f){f=(f||this.Od()).getVideoData();if(vd(this))var e=f===this.l6.playback.getVideoData();else a:{var B= this.fh;if(f===B.C.getVideoData()&&B.G.length)e=!0;else{for(e of B.G)if(f.u6===e.u6){e=!0;break a}e=!1}}return e}PV(f,e,B,n,r,L,d,t){const H=vd(this);this.Od().ri("appattl",{sstm:this.l6?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:H});H?(B=this.l6.hF(f,e,B,n,r,L,d,t),f=B?.clientPlaybackNonce||"",(this.Y("html5_ssdai_new_decoration_logic")||this.cL().getVideoData().RU)&&this.cL().BF(t||{g$:""},e,B?.clientPlaybackNonce||"")):f=qpd(this.fh,f,B,n,r,L);return f}jn(f,e,B,n,r,L,d,t){vd(this)&& (f=this.l6?.hF(f,e,B,n,r,L,d,t),this.cL().getVideoData().RU&&this.cL().BF(t||{g$:""},e,f?.clientPlaybackNonce||""))}eJ(f){(this.Y("html5_ssdai_new_decoration_logic")||this.cL().getVideoData().RU)&&this.cL().BF(f,"","");this.l6?.eJ(f.g$||"")}Js(f=-1,e=Infinity){vd(this)||jQ(this.fh,f,e)}Pe(f,e,B){if(vd(this)){var n=this.l6,r=B;(B=n.C.rR(f))?(r===void 0&&(r=B.i6),nH0(n,B,e,r)):n.mj(`Invalid_cpn_${f}_specified`)}else{n=this.fh;let L=null;for(r of n.G)if(r.u6===f){L=r;break}L?(B===void 0&&(B=L.i6),Ypk(n, L,e,B)):Yz(n,"InvalidTimelinePlaybackId timelinePlaybackId="+f)}}enqueueVideoByPlayerVars(f,e,B=Infinity,n=""){this.Nq();f=new g.qk(this.Ta,f);n&&(f.u6=n);sG(this,f,e,B)}queueNextVideo(f,e=1,B=NaN,n="",r=""){f=this.preloadVideoByPlayerVars(f,e,B,n,r);e=this.Od();f&&(this.Y("html5_check_queue_on_data_loaded")?this.S().supportsGaplessShorts()&&e.getVideoData().X&&(B=this.m2,n=this.Hr.W,B.V!==f&&(B.G=e,B.V=f,B.J=1,B.C=f.getVideoData(),B.W=n,B.C.isLoaded()?B.U():B.C.subscribe("dataloaded",B.U,B))):(B= PjC(e,f,this.Hr.W),B!=null?(e.ri("sgap",B),e.getVideoData().X&&e.ao(!1)):(f=f.getVideoData(),e=this.m2,e.C!==f&&(e.C=f,e.J=1,f.isLoaded()?e.X():e.C.subscribe("dataloaded",e.X,e)))))}fU(f,e,B=0,n=0){hN(this,this.Od()).oQ();t9m(this.Hr,f,e,B,n).then(()=>{g.id(this.wi,"onQueuedVideoLoaded")},()=>{})}uE(){return this.Hr.uE()}ek(f){const e=this.Hr.C; return e?e.Q2(f):!1}clearQueue(f=!1,e=!1){this.Hr.clearQueue(f,e)}loadVideoByPlayerVars(f,e=1,B,n,r,L){var d=this.cL();if(e===2&&this.EK().enableServerStitchedDai&&d&&!d.S2())return d.ri("lvonss",{vid:f?.videoId||"",ptype:e}),!1;var t=!1;d=new g.qk(this.Ta,f);d.CG=L;g.L3(this.Ta)&&!d.nz&&R_(this.ph);this.ph.timerName=d.Ed??"";this.ph.Dc("pl_i");this.Y("web_player_early_cpn")&&d.clientPlaybackNonce&&this.ph.infoGel({clientPlaybackNonce:d.clientPlaybackNonce});yVw(d).supportsVp9Encoding===!1&&this.Od().ri("noVp9enc", {});if(this.S().supportsGaplessShorts()){L=wO5(this.Hr,d,e);if(L==null){Lm(this,-1);this.Hr.C?.getVideoData().isAd()||eq(this);f=this.Hr;f.app.S().Y("html5_gapless_new_slr")?Gr(f.app,"gaplessshortslooprange"):f.app.setLoopRange(null);f.app.getVideoData().q$=!0;f.C?.h_();f.C?.xB();B={wX:"gapless_to_next_video",seekSource:60,fD:f.W.C};n=f.J?.Ed()||-1;if(f.W.C){const {U5:w,HR:v}=f.J?.K()||{};v!=null&&w!=null&&(n=v-w+.001)}f.app.Od()?.seekTo(n,B);f.app.getPlayerStateObject(e).isPlaying()||f.app.Od()?.playVideo(!0); C_l(f,n);f.app.Od()?.Ai();f.K();return!0}const k=this.Y("html5_shorts_gapless_preload_fallback"),C=this.Hr.C;if(k&&C&&!C.HS()){var H=C.getVideoData();H=Cm(this,e,H);this.Bd.W.set(H,C,3600)}this.Hr.clearQueue(k);this.Od().ri("sgap",{f:L})}if(r){for(;d.oP.length&&d.oP[0].isExpired();)d.oP.shift();t=d.oP.length-1;t=t>0&&r.G(d.oP[t])&&r.G(d.oP[t-1]);d.oP.push(r)}B||(f&&KQ(f)?(iD(this.Ta)&&!this.WE&&(f.fetch=0),JN(this,f)):this.playlist&&JN(this,null),f&&(this.WE=YB(!1,f.external_list)));this.wi.publish("loadvideo"); e=this.Sa(d,e,n);t&&this.Kz("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",`loadvideo.1;emsg.${d.oP.join()}`.replace(/[;:,]/g,"_"));return e}preloadVideoByPlayerVars(f,e=1,B=NaN,n,r=""){n=VT(f);n=ZAm(this,e,n,r,f.autonav==="1"||f.autonav===!0,f.autoplay==="1"||f.autoplay===!0||f.autoplay===1);if(n=this.Bd.W.get(n)||null)return n;f=new g.qk(this.Ta,f);r&&(f.u6=r);{r=Cm(this,e,f);n=this.Od();const L=Cm(this,n.getPlayerType(),n.getVideoData());r===L?(n.Qg(!0),f.dispose(),e=null):(f.UE=!0,n=WM(this, e,f,!0),(e!==1||!n3(this.Ta)||this.Ta.Y("html5_allow_multiview_tile_preload")&&f.sE)&&n.Qg(!0),this.Bd.W.set(r,n,B||3600),e=n)}return e}setMinimized(f){this.visibility.setMinimized(f);(f=bUC(this.hI))&&(this.isMinimized()?f.load():f.unload());this.wi.publish("minimized")}setInline(f){this.visibility.setInline(f)}setInlinePreview(f){this.visibility.setInline(f)}U1(f){K1C(this,f)||this.visibility.U1(f)}setSqueezeback(f){this.visibility.setSqueezeback(f)}E5(){const f=this.mediaElement?.V3();f&&(this.Ta.jJ&& SE(Nw(()=>document.exitFullscreen()),()=>{}),SE(Nw(()=>QT(f)),()=>{}))}nf(){this.mediaElement.V3(); this.mediaElement.V3().webkitPresentationMode==="picture-in-picture"?this.U1(!0):this.U1(!1)}togglePictureInPicture(){this.Od().togglePictureInPicture()}Sa(f,e=1,B){SH("_start",this.ph.timerName)||g.LN(OX)(void 0,this.ph.timerName);let n=!1,r=xz(this,e,f,!1);r?(n=!0,f.dispose(),r.getVideoData().sE&&r.ri("app_lv",{pdl:r.cN()}),this.JE().C.jI(zOk)&&(r.getVideoData().uC=f.uC)):(r=WM(this,e,f,!0,B),(this.Y("html5_onesie")||this.Y("html5_load_before_stop"))&&r.Zs()&&r.Qg(),this.k8.stop(),e===1&&e!==this.getPresentingPlayerType()&& this.cancelPlayback(4),this.cancelPlayback(4,e),this.Vg(r));f.videoId&&this.Vu.includes(f.videoId)&&r.ri("mvt",{});r===this.cL()&&(this.Ta.jX=f.oauthToken);if(!r.Zs())return!1;if(r===this.cL())return this.Um(1),f=$z(this),n&&r.getPlayerType()===1&&r.cN()&&this.N9("dataloaded",r,r.getVideoData()),f;r.HP();return!0}cueVideoByPlayerVars(f,e=1){var B=this.cL();if(this.EK().enableServerStitchedDai&&B&&!B.S2()&&f&&Object.keys(f).length>0)B.ri("qvonss",{vid:f?.videoId||"",ptype:e});else if(f&&KQ(f))if(this.cY= !0,JN(this,f),(f=g.zi(this.playlist))&&f.H4())kw(this,f,e);else this.playlist.onReady(()=>{PM(this)}); else{e||(e=this.getPresentingPlayerType());e===1&&this.Cm();B=new g.qk(this.Ta,f);const n=g.XY(this.Ta)&&!this.Ta.A&&e===1&&!B.isAd()&&!B.xA;this.wi.publish("cuevideo",e);n?(this.Od().getVideoData().loading=!0,k8H(B,f?f:{}).then(r=>{kw(this,r,e)}),B.dispose()):kw(this,B,e)}}P6(f,e,B,n,r,L,d){if(!f&&!B)throw Error("Playback source is invalid"); if(xL(this.Ta)||g.yl(this.Ta))return e=e||{},e.lact=vR(),e.vis=this.wi.getVisibilityState(),g.yW(this.wi,"onPlayVideo",{videoId:f,watchEndpoint:L,sessionData:e,listId:B}),!1;nKH(this.ph);this.ph.reset();f={video_id:f};n&&(f.autoplay="1");n&&(f.autonav="1");L&&(f.player_params=L.playerParams);d&&(f.oauth_token=d);B?(f.list=B,this.loadPlaylist(f)):this.loadVideoByPlayerVars(f,1);return!0}cuePlaylist(f,e,B,n){this.cY=!0;qD5(this,f,e,B,n)}loadPlaylist(f,e,B,n){this.cY=!1;qD5(this,f,e,B,n)}vC(){return this.wi.isMutedByMutedAutoplay()? !1:this.Bd.SX?!0:!(!this.playlist||!this.playlist.hasNext())}nextVideo(f,e){var B=this.cL().getVideoData().N();g.zJ(this.wi)&&B?this.P6(B.videoId,e?B.AA:B.sessionData,B.playlistId,e,void 0,B.tD||void 0):this.WE?g.id(this.wi,"onPlaylistNext"):this.getPresentingPlayerType()===3?vF(this.hI).nextVideo():!this.playlist||iD(this.Ta)&&!this.wi.isFullscreen()||(this.playlist.hasNext(f)&&a_(this.playlist,Lkd(this.playlist)),this.playlist.loaded?(f=e&&this.Ta.Y("html5_player_autonav_logging"),e&&this.wi.publish("playlistautonextvideo"), this.Sa(g.zi(this.playlist,void 0,e,f),1)):this.cY=!1)}previousVideo(f){this.WE?g.id(this.wi,"onPlaylistPrevious"):this.getPresentingPlayerType()===3?vF(this.hI).Ph():!this.playlist||iD(this.Ta)&&!this.wi.isFullscreen()||(this.playlist.hasPrevious(f)&&a_(this.playlist,d1g(this.playlist)),this.playlist.loaded?this.Sa(g.zi(this.playlist),1):this.cY=!1)}playVideoAt(f){this.WE?g.id(this.wi,"onPlaylistIndex",f):this.playlist&&(this.playlist.loaded?this.Sa(g.zi(this.playlist,f),1):this.cY=!1,a_(this.playlist, f))}getPlaylist(){return this.playlist}zX(f){this.EM=g.GO(this.EM,n=>n.id!==f); const e=this.cL(),B=e.QD();for(let n=0;n{i2(this)}):i2(this); this.t_();w2g(this);g.XY(this.Ta)&&(f={autoplayBrowserPolicy:PA(),autoplayIntended:IJ(this.getVideoData()),autoplayStatus:lCC(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.t$("embedsAutoplayStatusChanged",f))}}FU(f){if(this.Ta.Y("mweb_client_log_screen_associated"),!yZ(this.Ta)){var e=this.screenLayer||(this.isMinimized()?3:0);if((e=g.be(e))&&e!=="UNDEFINED_CSN"){var B=this.Ta.Y("web_player_attach_player_response_ve");const n=this.Ta.Y("web_playback_associated_ve"); f={cpn:f,csn:e};this.getVideoData().A&&(B||n)&&(B=g.kv(this.getVideoData().A),g.W6(e,B),n&&(f.playbackVe=B.getAsJson()));this.getVideoData().queueInfo&&(f.queueInfo=this.getVideoData().queueInfo);e={};this.getVideoData().dj&&(e.cttAuthInfo={token:this.getVideoData().dj,videoId:this.getVideoData().videoId});g.t$("playbackAssociated",f,e)}else g.Yv(new g.Dj("CSN Missing or undefined during playback association"))}}gF(){this.wi.publish("internalAbandon");eq(this)}onApiChange(){const f=this.Od();this.Ta.K? g.f_(this.wi,"onApiChange",f.getPlayerType()):g.f_(this.wi,"onApiChange")}u3(){var f=this.mediaElement;f={volume:g.ch(Math.floor(f.getVolume()*100),0,100),muted:f.uY()};f.muted||EG(this,!1);this.UI=g.GL(f);g.f_(this.wi,"onVolumeChange",f)}mutedAutoplay(f){const e=this.getVideoData().videoId;isNaN(this.Ax)&&(this.Ax=this.getVideoData().startSeconds);if(f?.videoId||e)this.loadVideoByPlayerVars({video_id:f?.videoId?f?.videoId:e,playmuted:!0,start:this.Ax,muted_autoplay_duration_mode:f?.durationMode}), g.id(this.wi,"onMutedAutoplayStarts")}onFullscreenChange(){const f=bQ(this);this.Q4(f?1:0);av5(this,!!f)}Q4(f){var e=!!f;const B=!!this.Lg()!==e;this.visibility.Q4(f);this.template.Q4(e);this.Y("html5_media_fullscreen")&&!e&&this.mediaElement&&bQ(this)===this.mediaElement.V3()&&this.mediaElement.A();this.template.resize();B&&this.ph.tick("fsc");B&&(this.wi.publish("fullscreentoggled",e),f=this.EK(),e={fullscreen:e,videoId:f.Nt||f.videoId,time:this.getCurrentTime()},this.wi.getPlaylistId()&&(e.listId= this.wi.getPlaylistId()),g.f_(this.wi,"onFullscreenChange",e))}CY(){return this.visibility.CY()}isFullscreen(){return this.visibility.isFullscreen()}Lg(){return this.visibility.Lg()}ye(){var f=this.Lg();f!==0&&f!==1||this.Q4(bQ(this)?1:0);f=window.screen.width*window.screen.height;const e=window.outerHeight*window.outerWidth;this.Ta.I5?(this.D4=Math.max(this.D4,f,e),f=e/this.D4n.videoId??"").filter(n=> !!n)))}sendVideoStatsEngageEvent(f,e,B){e=g.mO(this,{playerType:e}); BTw(this.Ta,f)?e.sendVideoStatsEngageEvent(f,B):B&&B()}z8(f){const e=g.mO(this,{playerType:void 0});return BTw(this.Ta,f)?e.z8(f):null}updatePlaylist(){!iD(this.Ta)&&g.XY(this.Ta)&&yJ(this);g.id(this.wi,"onPlaylistUpdate")}setSizeStyle(f,e){this.Bi=f;this.Y("web_log_theater_mode_visibility")?this.PP(e):this.Ld=e;this.wi.publish("sizestylechange",f,e);this.template.resize()}PP(f){this.visibility.PP(f)}dM(){return this.Y("web_log_theater_mode_visibility")?this.visibility.dM():this.Ld}isMinimized(){return this.visibility.isMinimized()}isInline(){return this.visibility.isInline()}Qi(){return this.visibility.Qi()}EC(){return this.visibility.EC()}Ji(){return this.visibility.Ji()}VH(){return this.Bi}getAdState(){if(this.getPresentingPlayerType()=== 3)return vF(this.hI).getAdState();if(!this.Nq()){const f=O5(this.iC());if(f)return f.getAdState()}return-1}dY(f){var e=this.template.getVideoContentRect();V_(this.iG,e)||(this.iG=e,this.Od().k5(),(e=this.cL())&&e===this.Od()&&e.k5(),this.Lg()===1&&this.NP&&av5(this,!0));e=this.AL().Ja!==this.e9;this.e9=this.AL().Ja;this.Ux&&g.Fl(this.Ux,f)&&!e||(this.wi.publish("appresize",f),this.Ux=f)}Xq(){return this.wi.Xq()}Td(){this.getPresentingPlayerType()===2&&this.fh.isManifestless()?cLH(this.fh):(this.l6&& (Rb(this.l6),eq(this)),this.Lh.Lq=(0,g.T)(),rX(this,"signature"))}xR(f){f&&rX(this,"reloadPlayerEvent",void 0,f)}Wk(f){this.TC(f);Xk(this)}aS(f){if(f.errorCode==="manifest.net.badstatus"){const e=this.Ta.experiments.SI("html5_use_network_error_code_enums")?401:"401";f.details.rc===e&&g.yW(this.wi,"onPlayerRequestAuthFailed")}}DG(f){this.wi.publish("heartbeatparams",f)}Dp(f){g.yW(this.wi,"onAutonavChangeRequest",f!==1)}aC(){return this.mediaElement}setBlackout(f){if(this.Ta.MC!==f){this.Ta.MC=f;var e= this.Od();e.B$();this.Ta.WS&&bAd(this);e.U4(f)}}RS(){const f=this.Od(),e=!this.wi.A5();f.w6(e)}l3(){g.id(this.wi,"onLoadedMetadata")}K2(){g.id(this.wi,"onDrmOutputRestricted")}d9(){this.intentionalPlayback=!0}bY(){this.hI.dispose();this.oO.dispose();this.fh.dispose();this.l6&&this.l6.dispose();this.cL().dispose();this.TC();this.Bd.dispose();g.II(this.playlist);super.bY()}Y(f){return this.Ta.Y(f)}JE(){return this.Ta.JE()}HC(){return this.Ta.HC()}setScreenLayer(f){this.screenLayer=f}getInternalApi(){return this.wi.getInternalApi()}createSubtitlesModuleIfNeeded(){return this.hI.createSubtitlesModuleIfNeeded()}isOrchestrationLeader(){const f= FU(this.hI);return f?f.isOrchestrationLeader():!1}getVideoUrl(f,e,B,n,r){if(this.PL&&this.PL.postId)return f=this.Ta.getVideoUrl(f),f=qf(f,"v"),f.replace("/watch",`/clip/${this.PL.postId}`);const L=this.wi.isEmbedsShortsMode()||this.Ta.Cq==="shortspage",d=g.WY(this.getVideoData());return this.Ta.getVideoUrl(f,e,B,n,r,L,d)}Bp(){return this.Hr.Bp()}A1(){return this.Hr.A1()}Ko(f,e,B){this.wi.publish("spsumpreject",f,e,B)}C6(){try{for(const f of Object.values(this.Bd.J))f.HS()||f.C6();if(this.Y("html5_sabr_fetch_on_idle_network_preloaded_players"))for(const f of Ra5(this.Bd.W))f.HS()|| f.C6();this.cL().C6()}catch(f){g.Yv(f)}}Gw(){if(this.l6){const f=(0,g.T)();return this.l6.Gw(f)}return!1}xt(f){let e=this.cL();f&&(e=cBH(this,f));if(e){var B=e.getVideoData();f=new Map;for(const [n,r]of B.sabrContextUpdates){B=n;const L=r;L.scope===4&&e?.e_(B)&&f.set(B,L)}return f}this.cL().ri("scuget",{ncpf:"1",ccpn:f})}QQ(f,e){this.OB.push({key:f,value:e})}};g.S6.prototype.DK=eC(41);g.S6.prototype.ZN=eC(16);g.S6.prototype.XO=eC(10);g.S6.prototype.LL=eC(8);var g1={};var ruT={gS:[{bM:/Unable to load player module/,weight:20},{bM:/Failed to fetch/,weight:500},{bM:/XHR API fetch failed/,weight:10},{bM:/JSON parsing failed after XHR fetch/,weight:10},{bM:/Retrying OnePlatform request/,weight:10},{bM:/CSN Missing or undefined during playback association/,weight:100},{bM:/Non-recoverable error. Do not retry./,weight:0},{bM:/Internal Error. Retry with an exponential backoff./,weight:0},{bM:/API disabled by application./,weight:0},{bM:/Unexpected end of JSON input/, weight:0}],eG:[{callback:YD5,weight:500}]};var lEO=/[&\?]action_proxy=1/,Va0=/[&\?]token=([\w-]*)/,ud5=/[&\?]video_id=([\w-]*)/,FjG=/[&\?]index=([\d-]*)/,mG5=/[&\?]m_pos_ms=([\d-]*)/,Evd=/[&\?]vvt=([\w-]*)/,Vek="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(" "),gvk="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(" "),lvk={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"},uBY={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},SRw={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141},LeB=class{constructor(f){this.player=f;this.G=this.C=1}PN(f){this.player.Pt().tick(f)}fetch(f,e){if(!f.match(/\[BISCOTTI_ID\]/g))return Zt(this, f,e);const B=this.C===1;B&&this.PN("a_bid_s");var n=ju5();if(n!==null)return B&&this.PN("a_bid_f"),Zt(this,f,e,n);n=OAG();B&&g.D6(n,()=>{this.PN("a_bid_f")}); return n.then(r=>Zt(this,f,e,r))}reset(){this.G=this.C=1}};var dTH={dCA:"replaceUrlMacros",L9:"onAboutThisAdPopupClosed",FN:"executeCommand"};var mc6=class{constructor(f){this.Ud=f}p$(){return"adPingingEndpoint"}Un(f,e,B){bM6(this.Ud.get(),f,e,B)}};var UcY=class{constructor(f){this.Z=f}p$(){return"changeEngagementPanelVisibilityAction"}Un(f){g.yW(this.Z,"changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:f})}};var NIG=class{constructor(f){this.Ud=f}p$(){return"loggingUrls"}Un(f,e,B){for(const n of f)bM6(this.Ud.get(),n.baseUrl,e,B,n.attributionSrcMode)}};var tB2=class extends g.$0{constructor(f){super();this.C=f;this.G=TIm(this)}};var Dcl=class{constructor(f,e){this.V4=f;this.iY=e}dA(f,e){e={...e,cc:this.V4.N8()};this.V4.Z.ri(f,e)}};var En=class extends g.$0{constructor(f,e,B,n,r){super();this.G=e;this.Q9=B;this.mY=n;this.Mj=r;this.listeners=[];const L=new C1(this);g.A(this,L);L.D(f,"internalAbandon",this.J);this.addOnDisposeCallback(()=>{L.G()})}addListener(f){this.listeners.push(f)}removeListener(f){this.listeners=this.listeners.filter(e=>e!==f)}y7(f,e,B,n,r,L,d,t){if(f==="")NL("Received empty content video CPN in DefaultContentPlaybackLifecycleApi"); else if(f!==this.C||B){this.C=f;this.Q9.get().y7(f,e,B,n,r,L,d,t);this.mY.get().y7(f,e,B,n,r,L,d,t);this.Mj?.get().y7(f,e,B,n,r,L,d,t);this.G.y7(f,e,B,n,r,L,d,t);for(const H of this.listeners)H.y7(f,e,B,n,r,L,d,t)}else NL("Duplicate content video loaded signal")}J(){this.C&&this.CF(this.C)}CF(f){this.C=void 0;for(const e of this.listeners)e.CF(f)}};var Qs=class{constructor(f){this.Z=f;this.adVideoId=this.C=this.videoId=this.adCpn=this.contentCpn=null;this.W=!0;this.G=this.J=!1;this.adFormat=null;this.V="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}aL(f,e,B,n,r){W1Y(this);this.W=!e&&B===0;const L=this.Z.getVideoData({playerType:1}),d=this.Z.getVideoData({playerType:2});L&&(this.contentCpn=L.clientPlaybackNonce,this.videoId=L.videoId,this.C=L.dj);d&&(this.adCpn=d.clientPlaybackNonce,this.adVideoId= d.videoId,this.adFormat=d.adFormat);this.V=f;n<=0?(W1Y(this),this.W=!e&&B===0):(this.actionType=this.W?e?"unknown_type":"video_to_ad":e?"ad_to_video":"ad_to_ad",this.videoStreamType=r?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&&(this.J=!0,SH("_start",this.actionType)&&MeC(this)))}reset(){return new Qs(this.Z)}};var TV=class extends g.$0{constructor(f){super();this.Z=f;this.C=new Map;this.G=new C1(this);g.A(this,this.G);this.G.D(this.Z,g.kk("ad"),this.onCueRangeEnter,this);this.G.D(this.Z,g.Ca("ad"),this.onCueRangeExit,this)}addCueRange(f,e,B,n,r,L=3,d=1,t,H){this.C.has(f)?NL("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:f}):(f=new HFB(f,e,B,n,L,t,H),this.C.set(f.id,{KB:f,listener:r,yP:d}),this.Z.AI([f],d))}removeCueRange(f){const e=this.C.get(f);e?(this.Z.X6([e.KB],e.yP),this.C.delete(e.KB.id)): NL("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:f})}onCueRangeEnter(f){if(this.C.has(f.id))this.C.get(f.id).listener.onCueRangeEnter(f.id)}onCueRangeExit(f){if(this.C.has(f.id))this.C.get(f.id).listener.onCueRangeExit(f.id)}},HFB=class extends g.VD{constructor(f,e,B,n,r,L,d){super(e,B,{id:f,namespace:"ad",priority:r,visible:n,associatedClipId:L,markerPositionMs:d})}};var Dq=class{constructor(f){this.Z=f}addPlayerResponseForAssociation(f){this.Z.addPlayerResponseForAssociation(f)}};var J1=class{constructor(f){this.Z=f}b7(f){this.Z.b7(f)}};var MY=class{constructor(f){this.Z=f}};var aE=null,fMl=class extends g.$v{constructor(){super();this.C={};this.addOnDisposeCallback(()=>{for(const f of Object.keys(this.C))delete this.C[f]})}EN(f){return this.C.hasOwnProperty(f)?this.C[f].EN():{}}}; g.qH("ytads.bulleit.getVideoMetadata",function(f){return pm().EN(f)}); g.qH("ytads.bulleit.triggerExternalActivityEvent",function(f,e,B){var n=pm();B=iAk(B);B!==null&&n.publish(B,{queryId:f,viewabilityString:e})});var GV=class{constructor(f,e,B){this.Q9=f;this.Z=e;this.iY=B;this.G=new Set;this.C=new Map;pm().subscribe("adactiveviewmeasurable",this.UY,this);pm().subscribe("adfullyviewableaudiblehalfdurationimpression",this.HY,this);pm().subscribe("adviewableimpression",this.Ye,this);pm().subscribe("adaudioaudible",this.ZE,this);pm().subscribe("adaudiomeasurable",this.Rv,this)}MM(f,e){if(!this.C.has(f))return{};if(e==="seek")return(f=qa(Qy).N(f,{}))&&lC(f),{};e=nzO(e);if(e===null)return{};var B=this.Z.Zj();if(!B)return{}; const n=this.Z.getPresentingPlayerType(!0);if(!this.Z.getVideoData({playerType:n})?.isAd())return{};B={opt_adElement:B,opt_fullscreen:this.Q9.get().isFullscreen()};return TC(e,f,B)}X(f,e,B,n,r){this.C.has(f)&&(n<=0||r<=0||qa(Qy).X(f,e,B,n,r))}UY({queryId:f}){this.C.get(f)?.UY()}HY({queryId:f}){this.C.get(f)?.HY()}Ye({queryId:f}){this.C.get(f)?.Ye()}ZE({queryId:f}){this.C.get(f)?.ZE()}Rv({queryId:f}){this.C.get(f)?.Rv()}};var kLx=class{send(f,e,B,n=!1){try{wM5(this,f,e,B,n)}catch(r){}}};var CHG=class extends kLx{constructor(f,e,B,n,r){super();this.V=f;this.W=e;this.C=B;this.G=n;this.J=r}};var wBH=class{constructor(f,e){this.C=f;this.iY=e}send(f,e,B,n){let r=!1;try{if(n==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||n==="ATTRIBUTION_SRC_MODE_XHR_OPTION")r=!0,f=vYG(f);n=r;var L=g.fY(f);if(L[1]==="https")var d=f;else L[1]="https",d=iT("https",L[2],L[3],L[4],L[5],L[6],L[7]);const t=zVH(d);L=[];const H=pN(d)&&this.iY.get().Z.S().experiments.SI("add_auth_headers_to_remarketing_google_dot_com_ping");if(a6(d)||H)L.push({headerType:"USER_AUTH"}),L.push({headerType:"PLUS_PAGE_ID"}),L.push({headerType:"VISITOR_ID"}), L.push({headerType:"EOM_VISITOR_ID"}),L.push({headerType:"AUTH_USER"}),L.push({headerType:"DATASYNC_ID"});this.C.send({baseUrl:d,scrubReferrer:t,headers:L},e,B,n)}catch(t){}}};var xT=class{constructor(f,e,B,n,r,L,d=new CHG(()=>{const t=f.S(),H=f.getVideoData({playerType:1});return g.vS(t,H?H.U():"")},()=>f.S().pageId,()=>f.S().cS,()=>f.S().datasyncId??"",()=>f.S().experiments)){this.Z=f; this.G=e;this.UA=B;this.mY=n;this.nh=r;this.iY=L;this.V=d;this.pR=null;this.C=new Map;this.J=new wBH(d,this.iY)}z8(){return this.Z.z8(1)}};var WH=class extends g.$0{constructor(f,e,B){super();this.Z=f;this.pV=e;this.iY=B;this.listeners=[];this.I9=null;this.nw=new Map;e=new g.ep(this);g.A(this,e);e.D(f,"videodatachange",this.Oe);f.S().JE().C.jI(I$)?e.D(f,"playbackChange",this.U0):e.D(f,"serverstitchedvideochange",this.Kf);this.XY=J0(this)}N8(){return this.Z.getVideoData({playerType:1}).clientPlaybackNonce}addListener(f){this.listeners.push(f)}removeListener(f){this.listeners=this.listeners.filter(e=>e!==f)}y7(){this.nw.clear(); this.I9=null;this.pV.get().clear()}CF(){}Oe(f,e,B){e.videoId==="nPpU29QrbiU"&&this.Z.ri("ads_ssm_vdc_s",{pt:B,dvt:f});dd(this.iY.get())&&f!=="dataloaded"||lQ(this,e,B)}U0(f){if(this.Z.getVideoData({playerType:1}).enableServerStitchedDai)for(const e of f.started){f=this.Z.getStartTime({cpn:e.cpn});const B=this.Z.getVideoData({cpn:e.cpn}),n=this.Z.getPlayerType(e.cpn);let r=null;n===2&&(this.I9=e.cpn,f===void 0?NL("Expected ad video start time on SS video changed"):this.nw.set(e.cpn,f),r=lq(this.pV.get(), e.cpn));this.Z.getVideoData({playerType:1}).ri("ads_ssvc",{pt:n,cpn:B?.clientPlaybackNonce,crtt:this.Z.getCurrentTime(1,!1),atlh:this.Z.isAtLiveHead(),adstt:f,pid:e.cpn,slid:r?.layoutId});B&&n?lQ(this,B,n):NL("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.Z.getVideoData({playerType:1}).clientPlaybackNonce,timelinePlaybackId:e.cpn})}}Kf(f,e){f!==void 0&&(this.I9=f,e===void 0||isNaN(e)?NL("Expected ad video start time on SS video changed"):this.nw.set(f,e));const B=this.Z.getPresentingPlayerType(!0), n=this.Z.getVideoData({playerType:B}),r=f===void 0?null:lq(this.pV.get(),f);this.Z.getVideoData({playerType:1}).ri("ads_ssvc",{pt:B,cpn:n?.clientPlaybackNonce,crtt:this.Z.getCurrentTime(1,!1),atlh:this.Z.isAtLiveHead(),adstt:e,pid:f,slid:r?.layoutId});n?lQ(this,n,B):NL("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.Z.getVideoData({playerType:1}).clientPlaybackNonce,timelinePlaybackId:f})}q_(f,e){const B=f.author,n=f.clientPlaybackNonce,r=f.isListed;var L=f.u6;const d= f.title,t=f.Nn,H=f.d8,k=f.isMdxPlayback,C=f.pF,w=f.mdxEnvironment,v=f.isAutonav,b=f.HF,K=f.nz,Y=f.P$,l=f.videoId||"",m=f.profilePicture||"",F=f.UL||"",N=f.aR()||!1,E=f.q0()||!1;f=f.M7||void 0;L=lq(this.pV.get(),L)||{layoutId:null,slotId:null};var Lw=this.Z.getVideoData({playerType:1});const d6=Lw.sA();Lw=Lw.getPlayerResponse();e=1E3*this.Z.getDuration(e);const TO=1E3*this.Z.getDuration(1);return{...L,videoId:l,author:B,clientPlaybackNonce:n,MS:e,Wr:TO,daiEnabled:Lw?.playerConfig?.daiConfig?.enableDai|| !1,XT:Lw?.playerConfig?.daiConfig?.enablePreroll||!1,isListed:r,sA:d6,profilePicture:m,title:d,UL:F,Nn:t,d8:H,M7:f,isMdxPlayback:k,pF:C,mdxEnvironment:w,isAutonav:v,HF:b,nz:K,P$:Y,aR:N,q0:E}}bY(){this.listeners.length=0;this.XY=null;super.bY()}};var sn=class extends g.$0{constructor(f,e){super();this.Z=f;this.mY=e;this.listeners=[];this.F9=[];this.S3=()=>{NL("Called 'doUnlockPreroll' before it's initialized.")}; e=new C1(this);const B=new g.ep(this);g.A(this,B);g.A(this,e);e.D(f,"progresssync",this.G);e.D(f,"presentingplayerstatechange",this.C);e.D(f,"fullscreentoggled",this.onFullscreenToggled);e.D(f,"onVolumeChange",this.onVolumeChange);e.D(f,"minimized",this.tq);e.D(f,"overlayvisibilitychange",this.b$);e.D(f,"shortsadswipe",this.J1);e.D(f,"resize",this.Sf);B.D(f,g.kk("appad"),this.cJ)}y7(){this.S3=pC(()=>{this.Z.HS()||this.Z.rM("ad",1)})}CF(){}addListener(f){this.listeners.push(f)}removeListener(f){this.listeners= this.listeners.filter(e=>e!==f)}GY(){}playVideo(){this.Z.playVideo()}pauseVideo(){this.Z.pauseVideo()}resumeVideo(f){this.tb(f)&&this.Z.playVideo()}tb(f){return this.Z.getPlayerState(f)===2}getCurrentTimeSec(f,e){const B=this.mY.get().I9; return f!==2||e||B===null?this.Z.getCurrentTime(f,e):N4(this,B)}getVolume(){return this.Z.getVolume()}isMuted(){return this.Z.isMuted()}getPresentingPlayerType(){return this.Z.getPresentingPlayerType(!0)}getPlayerState(f){return this.Z.getPlayerState(f)}getGetAdBreakContext(){return this.Z.getGetAdBreakContext()}isFullscreen(){return this.Z.isFullscreen()}isAtLiveHead(){return this.Z.isAtLiveHead()}Y5(f){this.Z.Y5(f)}G(){const f=this.Z.getPresentingPlayerType(!0),e=this.getCurrentTimeSec(f,!1);if(f=== 2)for(const B of this.listeners)B.s4(e);else if(f===1)for(const B of this.F9)B.GY(e)}C(f){for(const e of this.listeners)e.OI(f,this.getPresentingPlayerType())}onFullscreenToggled(f){for(const e of this.listeners)e.onFullscreenToggled(f)}onVolumeChange(){for(const f of this.listeners)f.onVolumeChange()}tq(){const f=this.Z.isMinimized();for(const e of this.listeners)e.tq(f)}b$(f){for(const e of this.listeners)e.b$(f)}Sf(){const f=this.Z.AL().I8();for(const e of this.listeners)e.r8(f)}cJ(f){for(const e of this.listeners)e.cJ(f)}J1(){for(const f of this.listeners)f.J1()}};var hoO=class extends g.$0{constructor(f,e,B,n){super();const r=W(()=>new OL(this.iY)); g.A(this,r);const L=W(()=>new oh(r)); g.A(this,L);const d=W(()=>new Z$); g.A(this,d);const t=W(()=>new vq(f)); g.A(this,t);const H=W(()=>new l$(r,L,this.iY)); g.A(this,H);const k=W(()=>new u$); g.A(this,k);this.y3=W(()=>new GX(n)); g.A(this,this.y3);this.yz=W(()=>new Qs(e)); g.A(this,this.yz);this.JF=W(()=>new TV(e)); g.A(this,this.JF);this.Ke=W(()=>new Dq(e)); g.A(this,this.Ke);this.tF=W(()=>new J1(e)); g.A(this,this.tF);this.iY=W(()=>new MY(e)); g.A(this,this.iY);const C=W(()=>new M5(this.iY)); g.A(this,C);const w=W(()=>new Hq(r,H,L,this.iY,C,null,null,null,null)); g.A(this,w);this.mY=W(()=>new WH(e,k,this.iY)); g.A(this,this.mY);const {nh:v,context:b}=RE({mY:this.mY,iY:this.iY,I6:C});this.nh=v;this.Q9=W(()=>new sn(e,this.mY)); g.A(this,this.Q9);this.UA=W(()=>new GV(this.Q9,e,this.iY)); g.A(this,this.UA);this.Ud=W(()=>new xT(e,d,this.UA,this.mY,this.nh,this.iY)); g.A(this,this.Ud);this.v4=new wa(t,w,B,f,this.mY,this.Q9,this.yz);g.A(this,this.v4);const K=new En(e,this.v4,this.Q9,this.mY);this.W0=W(()=>K); this.XZ=K;this.yW=new b$(t,H,this.JF,this.W0,b);g.A(this,this.yW);this.Vr=new da(this.iY,t,w,this.mY,this.yW,B,this.Ke);g.A(this,this.Vr);this.vt={mF:new Map,Wz:new Map,LF:new Map,B3:new Map,a_:new Map};this.listeners=[];this.Ll={Vr:this.Vr,FX:this.iY.get(),lY:this.y3.get(),qv:this.Q9.get(),v4:this.v4,jr:r.get(),vQ:null,Ab:{B_(){}},Cj:d.get(),V4:this.mY.get()}}};var veT=class extends g.$0{constructor(f){super();this.zN=f;this.zN.get().addListener(this)}bY(){this.zN.HS()||this.zN.get().removeListener(this);super.bY()}};var X6=class{constructor(f){this.C=f}fetch(f){const {lV:e,Qj:B,P2:n,cueProcessedMs:r=0}=f;return this.C.fetch(e,{P2:n,KB:B,cueProcessedMs:r}).then(L=>cNO(L,B))}};var ys=class extends g.$0{constructor(f){super();this.Z=f;this.listeners=[];this.C=new C1(this);g.A(this,this.C);this.C.D(this.Z,"aduxclicked",this.onAdUxClicked);this.C.D(this.Z,"aduxmouseover",this.Co);this.C.D(this.Z,"aduxmouseout",this.oK);this.C.D(this.Z,"muteadaccepted",this.G)}addListener(f){this.listeners.push(f)}removeListener(f){this.listeners=this.listeners.filter(e=>e!==f)}JY(f){ANd(this,f,1)}onAdUxClicked(f,e){h3(this,B=>{B.tG(f,e)})}Co(f){h3(this,e=>{e.Yb(f)})}oK(f){h3(this,e=>{e.UN(f)})}G(f){h3(this, e=>{e.ix(f)})}};var bFg=class{constructor(f,e=!1){this.G=f;this.J=e;this.C={}}reduce(f){switch(f.event){case "unknown":return}var e=f.identifier;var B=this.C[e];B?e=B:(B={hA:null,yu:-Infinity},e=this.C[e]=B);B=f.startSecs+f.C/1E3;if(!(Be!==f)}rg(f){VQ5(this,f); if(this.Z.S().experiments.JE().C.jI(H4w)&&this.Z.getVideoData({playerType:1})?.q0()&&(f.event==="continue"||f.event==="stop")||$c0(this.iY.get())&&this.Z.getCurrentTime(1)===0&&this.Z.getVideoData({playerType:1}).q0())return!1;this.W.reduce(f);f=this.V;this.V=!1;return f}U(f){const e=this.Z.getVideoData({playerType:1}).isDaiEnabled();if(e||!g.yl(this.Z.S()))for(const B of f)VQ5(this,B),H$(this.iY.get())&&this.Z.getCurrentTime(1)===0&&B.event==="start"&&UP(this.Ud.get(),"ocuz",`cpi.${B.identifier};cpe.${B.event};cps.${B.startSecs};cpd.${B.Kc}`), e?$c0(this.iY.get())&&this.Z.getCurrentTime(1)===0&&this.Z.getVideoData({playerType:1}).q0()||this.W.reduce(B):this.Z.getCurrentTime(1)!==0&&B.event==="start"&&(this.iY.get().Z.S().experiments.SI("ignore_overlapping_cue_points_on_endemic_live_html5")&&(this.C==null||this.iY.get().Z.S().experiments.SI("enable_only_drop_overlapping_cuepoints_with_same_identifier")&&this.C.identifier!==B.identifier?0:B.startSecs+B.Kc>=this.C.startSecs&&B.startSecs<=this.C.startSecs+this.C.Kc)?(H$(this.iY.get())&&B.identifier!== this.C?.identifier&&UP(this.Ud.get(),"ocud",`ccpi.${B.identifier};ccpe.${B.event};ccps.${B.startSecs}; ccpd.${B.Kc};pcpi.${this.C?.identifier};pcpe.${this.C?.event}; pcps.${this.C?.startSecs};pcpd.${this.C?.Kc};`),B.identifier!==this.C?.identifier&&NL("Latest Endemic Live Web cue point overlaps with previous cue point")):(this.C=B,OMG(this,B)))}bY(){this.G!=null&&(this.G.unsubscribe("cuepointupdated",this.U,this),this.G=null);this.listeners.length=0;this.MB.length=0;super.bY()}};var I3=class{constructor(f){this.Z=f}};var $T=class{constructor(f){this.Z=f}PV(f,e,B,n,r,L,d,t){return this.Z.PV(f,e,B,n,r,L,d,t!==void 0?{g$:t}:void 0)}Js(f,e){this.Z.Js(f,e)}Pe(f,e,B){this.Z.Pe(f,e,B)}eJ(f){this.Z.eJ({g$:f})}jn(f,e,B,n,r,L,d,t){this.Z.jn(f,e,B,n,r,L,d,t!==void 0?{g$:t}:void 0)}Jb(f){return this.Z.Jb(f)}finishSegmentByCpn(f,e,B){B=lMC(B);this.Z.finishSegmentByCpn(f,e,B)}};var ia=class extends g.$0{constructor(){super(...arguments);this.A2=new Map}};var RII=class{constructor(f){this.Z=f}};var ukm=class extends g.$0{constructor(f,e,B,n,r){super();const L=W(()=>new OL(this.iY)); g.A(this,L);const d=W(()=>new oh(L)); g.A(this,d);const t=W(()=>new Z$); g.A(this,t);const H=W(()=>new vq(f)); g.A(this,H);const k=W(()=>new l$(L,d,this.iY)); g.A(this,k);const C=W(()=>new u$); g.A(this,C);this.rX=W(()=>new ys(e)); g.A(this,this.rX);this.y3=W(()=>new GX(r)); g.A(this,this.y3);this.yz=W(()=>new Qs(e)); g.A(this,this.yz);this.JF=W(()=>new TV(e)); g.A(this,this.JF);this.Ke=W(()=>new Dq(e)); g.A(this,this.Ke);this.tF=W(()=>new J1(e)); g.A(this,this.tF);this.iY=W(()=>new MY(e)); g.A(this,this.iY);const w=W(()=>new X6(n)); g.A(this,w);const v=W(()=>new M5(this.iY)); g.A(this,v);this.dR=W(()=>new I3(e)); g.A(this,this.dR);this.zN=W(()=>new sXk); g.A(this,this.zN);this.mY=W(()=>new WH(e,C,this.iY)); g.A(this,this.mY);const {nh:b,context:K}=RE({mY:this.mY,iY:this.iY,I6:v});this.nh=b;this.Mj=W(()=>new PH(e,this.iY,this.Ud)); g.A(this,this.Mj);this.gX=W(()=>new $T(e)); g.A(this,this.gX);this.Q9=W(()=>new sn(e,this.mY)); g.A(this,this.Q9);this.e6=W(()=>new ia); g.A(this,this.e6);const Y=W(()=>new Hq(L,k,d,this.iY,v,"SLOT_TYPE_ABOVE_FEED",this.Q9,this.pW,this.Bs)); g.A(this,Y);this.wj=W(()=>new xR(this.iY)); this.UA=W(()=>new GV(this.Q9,e,this.iY)); g.A(this,this.UA);this.Ud=W(()=>new xT(e,t,this.UA,this.mY,this.nh,this.iY)); g.A(this,this.Ud);this.WJ=new CZ(C6,(m,F,N,E)=>jt(d.get(),m,F,N,E),H,k,d,v,this.iY,this.mY); g.A(this,this.WJ);this.v4=new wa(H,Y,B,f,this.mY,this.Q9,this.yz);g.A(this,this.v4);const l=new En(e,this.v4,this.Q9,this.mY,this.Mj);this.W0=W(()=>l); this.XZ=l;this.pW=new kE(H,k,this.W0,this.Mj,this.Q9,this.iY,this.Ud,this.gX);g.A(this,this.pW);this.yW=new b$(H,k,this.JF,this.W0,K);g.A(this,this.yW);this.Vr=new da(this.iY,H,Y,this.mY,this.yW,B,this.Ke);g.A(this,this.Vr);this.h3=W(()=>new W0(w,d,v,this.iY,this.Ud,this.Q9,this.gX)); g.A(this,this.h3);this.JG=W(()=>new sb); g.A(this,this.JG);this.O2=new qh(f,this.rX,this.iY);g.A(this,this.O2);this.OA=new z3(f);g.A(this,this.OA);this.Ro=new pCO(f);g.A(this,this.Ro);this.LW=new ah(f,this.W0,K);g.A(this,this.LW);this.FL=new pZ(f,this.JF,this.Q9,this.mY);g.A(this,this.FL);this.Lk=new cy5(f,this.mY);g.A(this,this.Lk);this.Bs=new A9(f,this.Mj,this.Q9,this.Ud,this.W0,this.pW);g.A(this,this.Bs);this.I1=new cq(f);g.A(this,this.I1);this.Q8=new jp;g.A(this,this.Q8);this.vJ=new YE(f);g.A(this,this.vJ);this.sj=new Y95(f);g.A(this, this.sj);this.Q8=new jp;g.A(this,this.Q8);this.C5=W(()=>new Rh); g.A(this,this.C5);this.LA=W(()=>new KZ(this.Q9)); g.A(this,this.LA);this.fK=W(()=>new j9d(this.rX,this.Ud,f,t,this.UA)); g.A(this,this.fK);this.kz=W(()=>new If(this.Vr,H,L)); g.A(this,this.kz);this.Nz=W(()=>new $R(this.iY,this.Ud,this.I1,this.UA)); g.A(this,this.Nz);this.V5=W(()=>new fnG(f,this.Q8,this.I1,this.mY,this.gX,this.Q9,this.e6,this.Ud,C,this.Mj,this.UA,this.wj,this.Ke,this.JF,this.yz,this.tF,this.y3,this.dR,this.iY,t,K)); g.A(this,this.V5);this.zY=W(()=>new Nmw(this.Q9,this.Ud,this.y3,this.iY,this.UA,this.mY)); g.A(this,this.zY);this.nL=W(()=>new Hcw(this.rX,this.Q9,this.Ud,t,this.UA,this.Ro,this.sj,this.y3,this.iY,B)); g.A(this,this.nL);this.Zy=W(()=>new Ood(this.rX,this.Ud,t)); g.A(this,this.Zy);this.Rs=new veT(this.zN);g.A(this,this.Rs);this.vt={mF:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vr],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.pW],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.WJ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.v4],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.yW]]),Wz:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.h3],["SLOT_TYPE_ABOVE_FEED",this.JG],["SLOT_TYPE_FORECASTING",this.JG], ["SLOT_TYPE_IN_PLAYER",this.JG],["SLOT_TYPE_PLAYER_BYTES",this.JG],["SLOT_TYPE_PLAYER_UNDERLAY",this.JG],["SLOT_TYPE_PLAYBACK_TRACKING",this.JG],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.JG]]),LF:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.O2],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.O2],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.OA],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.OA],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.OA],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.OA],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.OA],["TRIGGER_TYPE_SLOT_ID_EXITED",this.OA],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.OA],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.OA],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.OA],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.OA],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.OA],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ro],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.LW],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.FL],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.FL],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.FL],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.FL],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.FL],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.FL],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.FL],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Lk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Lk],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.I1],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.LW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.vJ],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.sj],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Q8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Bs],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Bs],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Bs],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Bs],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Bs]]),B3:new Map([["SLOT_TYPE_ABOVE_FEED",this.C5], ["SLOT_TYPE_AD_BREAK_REQUEST",this.C5],["SLOT_TYPE_FORECASTING",this.C5],["SLOT_TYPE_IN_PLAYER",this.C5],["SLOT_TYPE_PLAYER_BYTES",this.LA],["SLOT_TYPE_PLAYER_UNDERLAY",this.C5],["SLOT_TYPE_PLAYBACK_TRACKING",this.C5],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.C5]]),a_:new Map([["SLOT_TYPE_ABOVE_FEED",this.fK],["SLOT_TYPE_AD_BREAK_REQUEST",this.kz],["SLOT_TYPE_FORECASTING",this.Nz],["SLOT_TYPE_PLAYER_BYTES",this.V5],["SLOT_TYPE_PLAYBACK_TRACKING",this.zY],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.zY],["SLOT_TYPE_IN_PLAYER",this.nL],["SLOT_TYPE_PLAYER_UNDERLAY",this.Zy]])};this.listeners=[t.get()];this.Ll={Vr:this.Vr,FX:this.iY.get(),lY:this.y3.get(),qv:this.Q9.get(),v4:this.v4,jr:L.get(),vQ:this.zN.get(),Ab:this.O2,Cj:t.get(),V4:this.mY.get()}}};var FOw=class extends g.$0{constructor(f,e,B,n,r){super();const L=W(()=>new OL(this.iY)); g.A(this,L);const d=W(()=>new oh(L)); g.A(this,d);const t=W(()=>new Z$); g.A(this,t);const H=W(()=>new vq(f)); g.A(this,H);const k=W(()=>new l$(L,d,this.iY)); g.A(this,k);const C=W(()=>new u$); g.A(this,C);this.rX=W(()=>new ys(e)); g.A(this,this.rX);this.y3=W(()=>new GX(r)); g.A(this,this.y3);this.yz=W(()=>new Qs(e)); g.A(this,this.yz);this.JF=W(()=>new TV(e)); g.A(this,this.JF);this.Ke=W(()=>new Dq(e)); g.A(this,this.Ke);this.tF=W(()=>new J1(e)); g.A(this,this.tF);this.iY=W(()=>new MY(e)); g.A(this,this.iY);const w=W(()=>new X6(n)); g.A(this,w);const v=W(()=>new M5(this.iY)); g.A(this,v);const b=W(()=>new Hq(L,k,d,this.iY,v,null,null,this.pW,this.Bs)); g.A(this,b);this.dR=W(()=>new I3(e)); g.A(this,this.dR);this.zN=W(()=>new sXk); g.A(this,this.zN);this.mY=W(()=>new WH(e,C,this.iY)); g.A(this,this.mY);const {nh:K,context:Y}=RE({mY:this.mY,iY:this.iY,I6:v});this.nh=K;this.Mj=W(()=>new PH(e,this.iY,this.Ud)); this.Q9=W(()=>new sn(e,this.mY)); g.A(this,this.Q9);this.e6=W(()=>new ia); g.A(this,this.e6);this.UA=W(()=>new GV(this.Q9,e,this.iY)); g.A(this,this.UA);this.Ud=W(()=>new xT(e,t,this.UA,this.mY,this.nh,this.iY)); g.A(this,this.Ud);this.wj=W(()=>new xR(this.iY)); g.A(this,this.wj);this.WJ=new CZ(C6,(m,F,N,E)=>jt(d.get(),m,F,N,E),H,k,d,v,this.iY,this.mY); g.A(this,this.WJ);this.v4=new wa(H,b,B,f,this.mY,this.Q9,this.yz);g.A(this,this.v4);const l=new En(e,this.v4,this.Q9,this.mY,this.Mj);this.W0=W(()=>l); this.XZ=l;this.pW=new kE(H,k,this.W0,this.Mj,this.Q9,this.iY,this.Ud);g.A(this,this.pW);this.yW=new b$(H,k,this.JF,this.W0,Y);g.A(this,this.yW);this.Vr=new da(this.iY,H,b,this.mY,this.yW,B,this.Ke);g.A(this,this.Vr);this.h3=W(()=>new W0(w,d,v,this.iY,this.Ud,this.Q9)); g.A(this,this.h3);this.JG=W(()=>new sb); g.A(this,this.JG);this.O2=new qh(f,this.rX,this.iY);g.A(this,this.O2);this.OA=new z3(f);g.A(this,this.OA);this.Ro=new pCO(f);g.A(this,this.Ro);this.LW=new ah(f,this.W0,Y);g.A(this,this.LW);this.FL=new pZ(f,this.JF,this.Q9,this.mY);g.A(this,this.FL);this.I1=new cq(f);g.A(this,this.I1);this.vJ=new YE(f);g.A(this,this.vJ);this.sj=new Y95(f);g.A(this,this.sj);this.gX=W(()=>new $T(e)); g.A(this,this.gX);this.Q8=new jp;g.A(this,this.Q8);this.Bs=new A9(f,this.Mj,this.Q9,this.Ud,this.W0,this.pW);g.A(this,this.Bs);this.C5=W(()=>new Rh); g.A(this,this.C5);this.LA=W(()=>new KZ(this.Q9)); g.A(this,this.LA);this.kz=W(()=>new If(this.Vr,H,L)); g.A(this,this.kz);this.Nz=W(()=>new $R(this.iY,this.Ud,this.I1,this.UA)); g.A(this,this.Nz);this.nL=W(()=>new kA6(this.rX,this.Q9,this.Ud,t,this.UA,this.Ro,this.sj,this.y3,this.iY,B)); g.A(this,this.nL);this.V5=W(()=>new ra(f,this.Q8,this.I1,this.Ud,this.UA,this.wj,this.Ke,this.mY,this.Q9,this.e6,this.JF,this.yz,this.tF,this.y3,this.dR,this.iY,this.gX,Y)); g.A(this,this.V5);this.Rs=new veT(this.zN);g.A(this,this.Rs);this.vt={mF:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vr],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.pW],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.WJ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.v4],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.yW]]),Wz:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.h3],["SLOT_TYPE_FORECASTING",this.JG],["SLOT_TYPE_IN_PLAYER",this.JG], ["SLOT_TYPE_PLAYER_BYTES",this.JG]]),LF:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.O2],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.OA],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.OA],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.OA],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.OA],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.OA],["TRIGGER_TYPE_SLOT_ID_EXITED",this.OA],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.OA],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.OA],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.OA], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.OA],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ro],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.LW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.FL],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.FL],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.FL],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.I1],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.LW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.vJ],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.sj],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Q8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Bs],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Bs],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Bs],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Bs],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Bs]]),B3:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C5],["SLOT_TYPE_FORECASTING",this.C5],["SLOT_TYPE_IN_PLAYER",this.C5],["SLOT_TYPE_PLAYER_BYTES",this.LA]]), a_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kz],["SLOT_TYPE_FORECASTING",this.Nz],["SLOT_TYPE_IN_PLAYER",this.nL],["SLOT_TYPE_PLAYER_BYTES",this.V5]])};this.listeners=[t.get()];this.Ll={Vr:this.Vr,FX:this.iY.get(),lY:this.y3.get(),qv:this.Q9.get(),v4:this.v4,jr:L.get(),vQ:this.zN.get(),Ab:this.O2,Cj:t.get(),V4:this.mY.get()}}};var mlH=class extends g.$0{constructor(f,e,B,n,r){super();const L=W(()=>new OL(this.iY)); g.A(this,L);const d=W(()=>new oh(L)); g.A(this,d);const t=W(()=>new Z$); g.A(this,t);const H=W(()=>new vq(f)); g.A(this,H);const k=W(()=>new l$(L,d,this.iY)); g.A(this,k);const C=W(()=>new u$); g.A(this,C);this.rX=W(()=>new ys(e)); g.A(this,this.rX);this.y3=W(()=>new GX(r)); g.A(this,this.y3);this.yz=W(()=>new Qs(e)); g.A(this,this.yz);this.JF=W(()=>new TV(e)); g.A(this,this.JF);this.Ke=W(()=>new Dq(e)); g.A(this,this.Ke);this.tF=W(()=>new J1(e)); g.A(this,this.tF);this.iY=W(()=>new MY(e)); g.A(this,this.iY);const w=W(()=>new X6(n)); g.A(this,w);const v=W(()=>new M5(this.iY)); g.A(this,v);const b=W(()=>new Hq(L,k,d,this.iY,v,null,null,null,null)); g.A(this,b);this.dR=W(()=>new I3(e)); g.A(this,this.dR);this.mY=W(()=>new WH(e,C,this.iY)); g.A(this,this.mY);const {nh:K,context:Y}=RE({mY:this.mY,iY:this.iY,I6:v});this.nh=K;this.Q9=W(()=>new sn(e,this.mY)); g.A(this,this.Q9);this.e6=W(()=>new ia); g.A(this,this.e6);this.UA=W(()=>new GV(this.Q9,e,this.iY)); g.A(this,this.UA);this.Ud=W(()=>new xT(e,t,this.UA,this.mY,this.nh,this.iY)); g.A(this,this.Ud);this.wj=W(()=>new xR(this.iY)); g.A(this,this.wj);this.WJ=new CZ(C6,(m,F,N,E)=>jt(d.get(),m,F,N,E),H,k,d,v,this.iY,this.mY); g.A(this,this.WJ);this.v4=new wa(H,b,B,f,this.mY,this.Q9,this.yz);g.A(this,this.v4);const l=new En(e,this.v4,this.Q9,this.mY);this.W0=W(()=>l); this.XZ=l;this.yW=new b$(H,k,this.JF,this.W0,Y);g.A(this,this.yW);this.Vr=new da(this.iY,H,b,this.mY,this.yW,B,this.Ke);g.A(this,this.Vr);this.h3=W(()=>new W0(w,d,v,this.iY,this.Ud,this.Q9)); g.A(this,this.h3);this.JG=W(()=>new sb); g.A(this,this.JG);this.O2=new qh(f,this.rX,this.iY);g.A(this,this.O2);this.OA=new z3(f);g.A(this,this.OA);this.LW=new ah(f,this.W0,Y);g.A(this,this.LW);this.FL=new pZ(f,this.JF,this.Q9,this.mY);g.A(this,this.FL);this.I1=new cq(f);g.A(this,this.I1);this.vJ=new YE(f);g.A(this,this.vJ);this.gX=W(()=>new $T(e)); g.A(this,this.gX);this.Q8=new jp;g.A(this,this.Q8);this.C5=W(()=>new Rh); g.A(this,this.C5);this.LA=W(()=>new KZ(this.Q9)); g.A(this,this.LA);this.kz=W(()=>new If(this.Vr,H,L)); g.A(this,this.kz);this.Nz=W(()=>new $R(this.iY,this.Ud,this.I1,this.UA)); g.A(this,this.Nz);this.Uv=W(()=>new mt0(this.rX,this.Q9,this.Ud,t,B,this.iY)); g.A(this,this.Uv);this.V5=W(()=>new ra(f,this.Q8,this.I1,this.Ud,this.UA,this.wj,this.Ke,this.mY,this.Q9,this.e6,this.JF,this.yz,this.tF,this.y3,this.dR,this.iY,this.gX,Y)); g.A(this,this.V5);this.vt={mF:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vr],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.WJ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.v4],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.yW]]),Wz:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.h3],["SLOT_TYPE_FORECASTING",this.JG],["SLOT_TYPE_IN_PLAYER",this.JG],["SLOT_TYPE_PLAYER_BYTES",this.JG]]),LF:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.O2],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.OA],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.OA],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.OA],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.OA],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.OA],["TRIGGER_TYPE_SLOT_ID_EXITED",this.OA],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.OA],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.OA],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.OA],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.LW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.FL],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.FL],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.I1],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.LW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.vJ],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Q8]]),B3:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C5],["SLOT_TYPE_ABOVE_FEED",this.C5],["SLOT_TYPE_FORECASTING",this.C5],["SLOT_TYPE_IN_PLAYER",this.C5],["SLOT_TYPE_PLAYER_BYTES",this.LA]]),a_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kz],["SLOT_TYPE_FORECASTING",this.Nz],["SLOT_TYPE_IN_PLAYER", this.Uv],["SLOT_TYPE_PLAYER_BYTES",this.V5]])};this.listeners=[t.get()];this.Ll={Vr:this.Vr,FX:this.iY.get(),lY:this.y3.get(),qv:this.Q9.get(),v4:this.v4,jr:L.get(),vQ:null,Ab:this.O2,Cj:t.get(),V4:this.mY.get()}}};var Uld=class extends g.$0{constructor(f,e,B,n,r){super();const L=W(()=>new OL(this.iY)); g.A(this,L);const d=W(()=>new oh(L)); g.A(this,d);const t=W(()=>new Z$); g.A(this,t);const H=W(()=>new vq(f)); g.A(this,H);const k=W(()=>new l$(L,d,this.iY)); g.A(this,k);const C=W(()=>new u$); g.A(this,C);this.Q_=W(()=>new RII(e)); g.A(this,this.Q_);this.rX=W(()=>new ys(e)); g.A(this,this.rX);this.y3=W(()=>new GX(r)); g.A(this,this.y3);this.yz=W(()=>new Qs(e)); g.A(this,this.yz);this.JF=W(()=>new TV(e)); g.A(this,this.JF);this.Ke=W(()=>new Dq(e)); g.A(this,this.Ke);this.tF=W(()=>new J1(e)); g.A(this,this.tF);this.iY=W(()=>new MY(e)); g.A(this,this.iY);const w=W(()=>new X6(n)); g.A(this,w);const v=W(()=>new M5(this.iY)); g.A(this,v);const b=W(()=>new Hq(L,k,d,this.iY,v,null,null,null,null)); g.A(this,b);this.dR=W(()=>new I3(e)); g.A(this,this.dR);this.mY=W(()=>new WH(e,C,this.iY)); g.A(this,this.mY);const {nh:K,context:Y}=RE({mY:this.mY,iY:this.iY,I6:v});this.nh=K;this.Q9=W(()=>new sn(e,this.mY)); g.A(this,this.Q9);this.e6=W(()=>new ia); g.A(this,this.e6);this.UA=W(()=>new GV(this.Q9,e,this.iY)); g.A(this,this.UA);this.Ud=W(()=>new xT(e,t,this.UA,this.mY,this.nh,this.iY)); g.A(this,this.Ud);this.wj=W(()=>new xR(this.iY)); g.A(this,this.wj);this.WJ=new CZ(a4G,(m,F,N,E)=>GqM(d.get(),m,F,N,E),H,k,d,v,this.iY,this.mY); g.A(this,this.WJ);this.v4=new wa(H,b,B,f,this.mY,this.Q9,this.yz);g.A(this,this.v4);const l=new En(e,this.v4,this.Q9,this.mY);this.W0=W(()=>l); this.XZ=l;this.yW=new b$(H,k,this.JF,this.W0,Y);g.A(this,this.yW);this.Vr=new da(this.iY,H,b,this.mY,this.yW,B,this.Ke);g.A(this,this.Vr);this.h3=W(()=>new W0(w,d,v,this.iY,this.Ud,this.Q9)); g.A(this,this.h3);this.JG=W(()=>new sb); g.A(this,this.JG);this.O2=new qh(f,this.rX,this.iY);g.A(this,this.O2);this.OA=new z3(f);g.A(this,this.OA);this.LW=new ah(f,this.W0,Y);g.A(this,this.LW);this.FL=new pZ(f,this.JF,this.Q9,this.mY);g.A(this,this.FL);this.I1=new cq(f);g.A(this,this.I1);this.vJ=new YE(f);g.A(this,this.vJ);this.gX=W(()=>new $T(e)); g.A(this,this.gX);this.Q8=new jp;g.A(this,this.Q8);this.C5=W(()=>new Rh); g.A(this,this.C5);this.LA=W(()=>new KZ(this.Q9)); g.A(this,this.LA);this.kz=W(()=>new If(this.Vr,H,L)); g.A(this,this.kz);this.Nz=W(()=>new $R(this.iY,this.Ud,this.I1,this.UA)); g.A(this,this.Nz);this.V5=W(()=>new ra(f,this.Q8,this.I1,this.Ud,this.UA,this.wj,this.Ke,this.mY,this.Q9,this.e6,this.JF,this.yz,this.tF,this.y3,this.dR,this.iY,this.gX,Y)); g.A(this,this.V5);this.mD=W(()=>new wCY(this.rX,this.Q9,this.Ud,t,this.Q_,B,this.mY)); g.A(this,this.mD);this.vt={mF:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vr],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.WJ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.v4],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.yW]]),Wz:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.h3],["SLOT_TYPE_FORECASTING",this.JG],["SLOT_TYPE_IN_PLAYER",this.JG],["SLOT_TYPE_PLAYER_BYTES",this.JG]]),LF:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.O2],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.OA],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.OA],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.OA],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.OA],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.OA],["TRIGGER_TYPE_SLOT_ID_EXITED",this.OA],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.OA],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.OA],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.OA],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.LW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.FL],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.FL],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.I1],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.LW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.vJ],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Q8]]),B3:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C5],["SLOT_TYPE_FORECASTING",this.C5],["SLOT_TYPE_IN_PLAYER",this.C5],["SLOT_TYPE_PLAYER_BYTES",this.LA]]),a_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kz],["SLOT_TYPE_FORECASTING",this.Nz],["SLOT_TYPE_IN_PLAYER",this.mD],["SLOT_TYPE_PLAYER_BYTES", this.V5]])};this.listeners=[t.get()];this.Ll={Vr:this.Vr,FX:this.iY.get(),lY:this.y3.get(),qv:this.Q9.get(),v4:this.v4,jr:L.get(),vQ:null,Ab:this.O2,Cj:t.get(),V4:this.mY.get()}}};var Ni5=class extends g.$0{constructor(f,e,B,n,r){super();const L=W(()=>new OL(this.iY)); g.A(this,L);const d=W(()=>new oh(L)); g.A(this,d);const t=W(()=>new Z$); g.A(this,t);const H=W(()=>new vq(f)); g.A(this,H);const k=W(()=>new l$(L,d,this.iY)); g.A(this,k);const C=W(()=>new u$); g.A(this,C);this.Q_=W(()=>new RII(e)); g.A(this,this.Q_);this.rX=W(()=>new ys(e)); g.A(this,this.rX);this.y3=W(()=>new GX(r)); g.A(this,this.y3);this.yz=W(()=>new Qs(e)); g.A(this,this.yz);this.JF=W(()=>new TV(e)); g.A(this,this.JF);this.Ke=W(()=>new Dq(e)); g.A(this,this.Ke);this.tF=W(()=>new J1(e)); g.A(this,this.tF);this.iY=W(()=>new MY(e)); g.A(this,this.iY);const w=W(()=>new X6(n)); g.A(this,w);const v=W(()=>new M5(this.iY)); g.A(this,v);this.dR=W(()=>new I3(e)); g.A(this,this.dR);this.mY=W(()=>new WH(e,C,this.iY)); g.A(this,this.mY);const {nh:b,context:K}=RE({mY:this.mY,iY:this.iY,I6:v});this.nh=b;this.Mj=W(()=>new PH(e,this.iY,this.Ud)); g.A(this,this.Mj);this.gX=W(()=>new $T(e)); g.A(this,this.gX);this.Q9=W(()=>new sn(e,this.mY)); g.A(this,this.Q9);this.e6=W(()=>new ia); g.A(this,this.e6);const Y=W(()=>new Hq(L,k,d,this.iY,v,null,this.Q9,this.pW,this.Bs,3)); g.A(this,Y);this.wj=W(()=>new xR(this.iY)); this.UA=W(()=>new GV(this.Q9,e,this.iY)); g.A(this,this.UA);this.Ud=W(()=>new xT(e,t,this.UA,this.mY,this.nh,this.iY)); g.A(this,this.Ud);this.v4=new wa(H,Y,B,f,this.mY,this.Q9,this.yz);g.A(this,this.v4);const l=new En(e,this.v4,this.Q9,this.mY,this.Mj);this.W0=W(()=>l); this.XZ=l;this.WJ=new CZ(poH,(m,F,N,E)=>GqM(d.get(),m,F,N,E),H,k,d,v,this.iY,this.mY); g.A(this,this.WJ);this.pW=new kE(H,k,this.W0,this.Mj,this.Q9,this.iY,this.Ud,this.gX);g.A(this,this.pW);this.yW=new b$(H,k,this.JF,this.W0,K);g.A(this,this.yW);this.Vr=new da(this.iY,H,Y,this.mY,this.yW,B,this.Ke);g.A(this,this.Vr);this.h3=W(()=>new W0(w,d,v,this.iY,this.Ud,this.Q9,this.gX)); g.A(this,this.h3);this.JG=W(()=>new sb); g.A(this,this.JG);this.O2=new qh(f,this.rX,this.iY);g.A(this,this.O2);this.OA=new z3(f);g.A(this,this.OA);this.LW=new ah(f,this.W0,K);g.A(this,this.LW);this.FL=new pZ(f,this.JF,this.Q9,this.mY);g.A(this,this.FL);this.Lk=new cy5(f,this.mY);g.A(this,this.Lk);this.Bs=new A9(f,this.Mj,this.Q9,this.Ud,this.W0,this.pW);g.A(this,this.Bs);this.I1=new cq(f);g.A(this,this.I1);this.vJ=new YE(f);g.A(this,this.vJ);this.Q8=new jp;g.A(this,this.Q8);this.C5=W(()=>new Rh); g.A(this,this.C5);this.LA=W(()=>new KZ(this.Q9)); g.A(this,this.LA);this.kz=W(()=>new If(this.Vr,H,L)); g.A(this,this.kz);this.Nz=W(()=>new $R(this.iY,this.Ud,this.I1,this.UA)); g.A(this,this.Nz);this.V5=W(()=>new fnG(f,this.Q8,this.I1,this.mY,this.gX,this.Q9,this.e6,this.Ud,C,this.Mj,this.UA,this.wj,this.Ke,this.JF,this.yz,this.tF,this.y3,this.dR,this.iY,t,K)); g.A(this,this.V5);this.nL=W(()=>new vSw(this.rX,this.Q9,this.Ud,t,this.Q_,B,this.iY,this.mY)); g.A(this,this.nL);this.vt={mF:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vr],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.pW],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.WJ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.v4],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.yW]]),Wz:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.h3],["SLOT_TYPE_FORECASTING",this.JG],["SLOT_TYPE_IN_PLAYER",this.JG],["SLOT_TYPE_PLAYER_BYTES",this.JG]]),LF:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.O2],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.OA],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.OA],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.OA],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.OA],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.OA],["TRIGGER_TYPE_SLOT_ID_EXITED",this.OA],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.OA],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.OA],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.OA],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.LW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.FL],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.FL],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Lk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Lk],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.I1],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.LW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.vJ],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Q8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Bs],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.Bs],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Bs],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Bs],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Bs]]),B3:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C5],["SLOT_TYPE_FORECASTING",this.C5],["SLOT_TYPE_IN_PLAYER",this.C5],["SLOT_TYPE_PLAYER_BYTES",this.LA]]),a_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kz],["SLOT_TYPE_FORECASTING",this.Nz],["SLOT_TYPE_PLAYER_BYTES",this.V5],["SLOT_TYPE_IN_PLAYER",this.nL]])};this.listeners=[t.get()]; this.Ll={Vr:this.Vr,FX:this.iY.get(),lY:this.y3.get(),qv:this.Q9.get(),v4:this.v4,jr:L.get(),vQ:null,Ab:this.O2,Cj:t.get(),V4:this.mY.get()}}};var Kex=class extends g.$0{constructor(f,e,B,n){super();const r=()=>this.G; f.S().experiments.SI("html5_dispose_of_manager_before_dependency")?(this.C=gzM(r,f,e,B,n),this.G=(new WGY(this.C)).J(),g.A(this,this.G),g.A(this,this.C)):(this.C=gzM(r,f,e,B,n),g.A(this,this.C),this.G=(new WGY(this.C)).J(),g.A(this,this.G))}J(){return this.G}};var qMI=class extends oNH{V(f){var e=f.content;if(e.componentType==="shopping-companion")switch(f.actionType){case 1:case 2:f=this.C.getVideoData({playerType:1});g.yW(this.C,"updateKevlarOrC3Companion",{contentVideoId:f&&f.videoId,shoppingCompanionCarouselRenderer:e.renderer,layoutId:e.layoutId,macros:e.macros,onLayoutVisibleCallback:e.C,interactionLoggingClientData:e.interactionLoggingClientData});break;case 3:g.yW(this.C,"updateKevlarOrC3Companion",{})}else if(e.componentType==="action-companion")switch(f.actionType){case 1:case 2:f= this.C.getVideoData({playerType:1});g.yW(this.C,"updateKevlarOrC3Companion",{contentVideoId:f&&f.videoId,actionCompanionAdRenderer:e.renderer,layoutId:e.layoutId,macros:e.macros,onLayoutVisibleCallback:e.C,interactionLoggingClientData:e.interactionLoggingClientData});break;case 3:e.renderer&&(e=this.C.getVideoData({playerType:1}),g.yW(this.C,"updateKevlarOrC3Companion",{contentVideoId:e&&e.videoId})),g.yW(this.C,"updateKevlarOrC3Companion",{})}else if(e.componentType==="image-companion")switch(f.actionType){case 1:case 2:f= this.C.getVideoData({playerType:1});g.yW(this.C,"updateKevlarOrC3Companion",{contentVideoId:f&&f.videoId,imageCompanionAdRenderer:e.renderer,layoutId:e.layoutId,macros:e.macros,onLayoutVisibleCallback:e.C,interactionLoggingClientData:e.interactionLoggingClientData});break;case 3:e=this.C.getVideoData({playerType:1}),g.yW(this.C,"updateKevlarOrC3Companion",{contentVideoId:e&&e.videoId}),g.yW(this.C,"updateKevlarOrC3Companion",{})}else if(e.componentType==="top-banner-image-text-icon-buttoned")switch(f.actionType){case 1:case 2:f= this.C.getVideoData({playerType:1});g.yW(this.C,"updateKevlarOrC3Companion",{contentVideoId:f&&f.videoId,topBannerImageTextIconButtonedLayoutViewModel:e.renderer,layoutId:e.layoutId,macros:e.macros,onLayoutVisibleCallback:e.C,interactionLoggingClientData:e.interactionLoggingClientData});break;case 3:e.renderer&&(e=this.C.getVideoData({playerType:1}),g.yW(this.C,"updateKevlarOrC3Companion",{contentVideoId:e&&e.videoId})),g.yW(this.C,"updateKevlarOrC3Companion",{})}else if(e.componentType==="banner-image")switch(f.actionType){case 1:case 2:f= this.C.getVideoData({playerType:1});g.yW(this.C,"updateKevlarOrC3Companion",{contentVideoId:f&&f.videoId,bannerImageLayoutViewModel:e.renderer,layoutId:e.layoutId,macros:e.macros,onLayoutVisibleCallback:e.C,interactionLoggingClientData:e.interactionLoggingClientData});break;case 3:e=this.C.getVideoData({playerType:1}),g.yW(this.C,"updateKevlarOrC3Companion",{contentVideoId:e&&e.videoId}),g.yW(this.C,"updateKevlarOrC3Companion",{})}else if(e.componentType==="ads-engagement-panel")switch(e=e.renderer, f.actionType){case 1:case 2:g.yW(this.C,"updateEngagementPanelAction",e.addAction);g.yW(this.C,"changeEngagementPanelVisibility",e.expandAction);break;case 3:g.yW(this.C,"changeEngagementPanelVisibility",e.hideAction),g.yW(this.C,"updateEngagementPanelAction",e.removeAction)}else if(e.componentType==="ads-engagement-panel-layout"){const B=e.renderer;switch(f.actionType){case 1:case 2:g.yW(this.C,"updateEngagementPanelAction",{action:Fd(B.addAction),layoutId:e.layoutId,onLayoutVisibleCallback:e.C, interactionLoggingClientData:e.interactionLoggingClientData});g.yW(this.C,"changeEngagementPanelVisibility",Fd(B.expandAction));break;case 3:g.yW(this.C,"changeEngagementPanelVisibility",Fd(B.hideAction)),g.yW(this.C,"updateEngagementPanelAction",{action:Fd(B.removeAction)})}}}};var zIT=class extends jX{constructor(f,e,B,n,r){super(f,{L:"div",B:"ytp-ad-timed-pie-countdown-container",j:[{L:"svg",B:"ytp-ad-timed-pie-countdown",O:{viewBox:"0 0 20 20"},j:[{L:"circle",B:"ytp-ad-timed-pie-countdown-background",O:{r:"10",cx:"10",cy:"10"}},{L:"circle",B:"ytp-ad-timed-pie-countdown-inner",O:{r:"5",cx:"10",cy:"10"}},{L:"circle",B:"ytp-ad-timed-pie-countdown-outer",O:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",e,B,n,r);this.U=this.JL("ytp-ad-timed-pie-countdown-container"); this.V=this.JL("ytp-ad-timed-pie-countdown-inner");this.X=this.JL("ytp-ad-timed-pie-countdown-outer");this.G=Math.ceil(2*Math.PI*5);this.hide()}init(f,e,B){super.init(f,e,B);g.uc(this.V,"stroke-dasharray",`0 ${this.G}`);this.V.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.X.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.U.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}clear(){this.hide()}hide(){FY(this);super.hide()}show(){uA(this);super.show()}W(){this.hide()}J(){if(this.C){var f= this.C.getProgressState();f!=null&&f.current!=null&&g.uc(this.V,"stroke-dasharray",`${f.current/f.seekableEnd*this.G} ${this.G}`)}}};var pdk=class extends p1{constructor(f,e,B,n,r,L){super(f,{L:"div",B:"ytp-ad-action-interstitial",O:{tabindex:"0"},j:[{L:"div",B:"ytp-ad-action-interstitial-background-container"},{L:"div",B:"ytp-ad-action-interstitial-slot",j:[{L:"div",B:"ytp-ad-action-interstitial-instream-info"},{L:"div",B:"ytp-ad-action-interstitial-card",j:[{L:"div",B:"ytp-ad-action-interstitial-image-container"},{L:"div",B:"ytp-ad-action-interstitial-headline-container"},{L:"div",B:"ytp-ad-action-interstitial-description-container"}, {L:"div",B:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",e,B,n);this.oE=r;this.b1=L;this.navigationEndpoint=this.C=this.skipButton=this.G=this.actionButton=null;this.Lq=this.JL("ytp-ad-action-interstitial-instream-info");this.cS=this.JL("ytp-ad-action-interstitial-image-container");this.U=new c0(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,"ytp-ad-action-interstitial-image");g.A(this,this.U);this.U.di(this.cS);this.A=this.JL("ytp-ad-action-interstitial-headline-container"); this.W=new AO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,"ytp-ad-action-interstitial-headline");g.A(this,this.W);this.W.di(this.A);this.X=this.JL("ytp-ad-action-interstitial-description-container");this.J=new AO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,"ytp-ad-action-interstitial-description");g.A(this,this.J);this.J.di(this.X);this.kA=this.JL("ytp-ad-action-interstitial-background-container");this.Z9=new c0(this.api,this.layoutId,this.interactionLoggingClientData, this.lY,"ytp-ad-action-interstitial-background",!0);g.A(this,this.Z9);this.Z9.di(this.kA);this.MC=this.JL("ytp-ad-action-interstitial-action-button-container");this.slot=this.JL("ytp-ad-action-interstitial-slot");this.R1=this.JL("ytp-ad-action-interstitial-card");this.V=new C1;g.A(this,this.V);this.hide()}init(f,e,B){super.init(f,e,B);if(e.image&&e.image.thumbnail)if(e.headline)if(e.description)if(e.backgroundImage&&e.backgroundImage.thumbnail)if(e.actionButton&&g.u(e.actionButton,$u))if(f=e.durationMilliseconds|| 0,typeof f!=="number"||f<=0)g.J(Error("durationMilliseconds was specified incorrectly in "+`AdActionInterstitialRenderer with a value of: ${f}`));else if(e.navigationEndpoint){var n=this.api.getVideoData({playerType:2});if(n!=null){var r=e.image.thumbnail.thumbnails;r!=null&&r.length>0&&g.eU(g.dr(r[0].url))&&(r[0].url=n.profilePicture,g.eU(g.dr(n.profilePicture))&&vUl(6,"VideoPlayer",239976093,"Expected non-empty profile picture."));r=e.backgroundImage.thumbnail.thumbnails;r!=null&&r.length>0&&g.eU(g.dr(r[0].url))&& (r[0].url=n.iR());r=e.headline;r!=null&&g.eU(g.dr(r.text))&&(r.text=n.author)}this.U.init(Io("ad-image"),e.image,B);this.W.init(Io("ad-text"),e.headline,B);this.J.init(Io("ad-text"),e.description,B);this.Z9.init(Io("ad-image"),e.backgroundImage,B);n=["ytp-ad-action-interstitial-action-button","ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.W.element.classList.add("ytp-ad-action-interstitial-headline-light");this.J.element.classList.add("ytp-ad-action-interstitial-description-light"); this.api.S().Y("enable_default_mono_cta_migration_web_client")?n.push("ytp-ad-action-interstitial-action-button-mono-dark"):n.push("ytp-ad-action-interstitial-action-button-dark");this.api.S().G&&(n.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),this.api.S().Y("enable_default_mono_cta_migration_web_client")?n.push("ytp-ad-action-interstitial-action-button-mono-dark"):n.push("ytp-ad-action-interstitial-action-button-dark"));this.api.S().Y("enable_unified_action_endcap_on_web")&& !this.api.S().G&&(this.api.S().Y("enable_default_mono_cta_migration_web_client")?n.push("ytp-ad-action-interstitial-action-button-unified-mono"):n.push("ytp-ad-action-interstitial-action-button-unified"),this.MC.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.U.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.kA.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.R1.classList.add("ytp-ad-action-interstitial-card-unified"), this.X.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.J.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.A.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.W.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.cS.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Lq.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified")); this.actionButton=new VQ(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,n);g.A(this,this.actionButton);this.actionButton.di(this.MC);this.actionButton.init(Io("button"),g.u(e.actionButton,$u),B);UW(this.actionButton.element);n=gA(this.actionButton.element);hg(this.actionButton.element,n+" This link opens in new tab");this.navigationEndpoint=e.navigationEndpoint;this.V.D(this.cS,"click",this.BS,this);this.V.D(this.X,"click",this.BS,this);this.api.S().G||this.V.D(this.A,"click",this.BS, this);this.C=this.oE?new Wd(this.api,f):new mo(f);g.A(this,this.C);if(e.skipButton){(f=g.u(e.skipButton,WV6))&&this.C&&(this.skipButton=new FG0(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,this.C,this.b1),g.A(this,this.skipButton),this.skipButton.di(this.element),this.skipButton.init(Io("skip-button"),f,B));if(B=e.adBadgeRenderer)if(B=g.u(B,xYO))f=new u6(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,!0),f.di(this.Lq),f.init(Io("simple-ad-badge"),B,this.macros), g.A(this,f);if(B=e.adInfoRenderer)if(B=g.u(B,a8))f=new Ts(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,this.element,void 0,!0),f.di(this.Lq),f.init(Io("ad-info-hover-text-button"),B,this.macros),g.A(this,f)}else e.nonskippableOverlayRenderer&&(f=g.u(e.nonskippableOverlayRenderer,pj))&&this.C&&(this.G=new of(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,this.C,!1),g.A(this,this.G),this.G.di(this.element),this.G.init(Io("ad-preview"),f,B));e.countdownRenderer&& (e=e.countdownRenderer,g.u(e,s3w)&&this.C&&(B=new zIT(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,this.C),g.A(this,B),B.di(this.element),B.init(Io("timed-pie-countdown"),g.u(e,s3w),this.macros)));this.show();this.element.focus()}else g.J(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.J(Error("AdActionInterstitialRenderer has no button."));else g.J(Error("AdActionInterstitialRenderer has no background AdImage."));else g.J(Error("AdActionInterstitialRenderer has no description AdText.")); else g.J(Error("AdActionInterstitialRenderer has no headline AdText."));else g.J(Error("AdActionInterstitialRenderer has no image."))}clear(){this.V.G();this.hide()}show(){EzY(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.G&&this.G.show();super.show()}hide(){EzY(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.G&&this.G.hide();super.hide()}BS(){this.navigationEndpoint&&(this.layoutId?this.lY.executeCommand(this.navigationEndpoint, this.layoutId):g.J(Error("Missing layoutId for ad action interstitial.")))}};var EB={iconType:"CLOSE"},M4=new g.uN(320,63),K8k=class extends p1{constructor(f,e,B,n){super(f,{L:"div",B:"ytp-ad-overlay-slot",j:[{L:"div",B:"ytp-ad-overlay-container"}]},"invideo-overlay",e,B,n);this.U=[];this.kA=this.A=this.V=this.MC=this.Z9=null;this.BS=!1;this.W=null;this.X=0;f=this.JL("ytp-ad-overlay-container");this.cS=new Vo(f,45E3,6E3,.3,.4);g.A(this,this.cS);this.J=Qbk(this);g.A(this,this.J);this.J.di(f);this.G=Tig(this);g.A(this,this.G);this.G.di(f);this.C=DlC(this);g.A(this,this.C);this.C.di(f); this.hide()}init(f,e,B){super.init(f,e,B);this.V=e;this.U=g.ke(this.V.onClickCommands||[]);this.Z9=this.V.onErrorCommand||null;if(f=this.V.contentSupportedRenderer)f=this.V.contentSupportedRenderer,e=this.V.adInfoRenderer||null,g.u(f,J15)?(this.W=g.x2("ytp-ad-overlay-ad-info-button-container",this.J.element),Dt(this,e),f=MQk(this,g.u(f,J15))):g.u(f,M6C)?(this.W=g.x2("ytp-ad-overlay-ad-info-button-container",this.G.element),Dt(this,e),f=Grl(this,g.u(f,M6C))):g.u(f,GVH)?(this.W=g.x2("ytp-ad-overlay-ad-info-button-container", this.C.element),Dt(this,e),f=xlM(this,g.u(f,GVH))):(g.J(Error("InvideoOverlayAdRenderer content could not be initialized.")),f=!1);f&&(this.show(),JN0(this,!0))}clear(){JN0(this,!1);this.cS.reset();this.X=0;this.J.hide();this.logVisibility(this.J.element,!1);this.G.hide();this.logVisibility(this.G.element,!1);this.C.hide();this.logVisibility(this.C.element,!1);this.hide();this.dispose()}uC(){this.MC&&(this.layoutId?this.lY.executeCommand(this.MC,this.layoutId):g.J(Error("Missing layoutId for invideo_overlay_ad."))); this.api.pauseVideo()}Lq(){for(const f of WOM(this))this.layoutId?this.lY.executeCommand(f,this.layoutId):g.J(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}IA(){this.BS||this.api.getPlayerState(1)!==2||this.api.playVideo()}uc(){this.BS||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.uc("invideo-overlay")}Q3(f){f.target===this.W&&g.x2("ytp-ad-button",this.kA.element).click()}};var A3G=class extends jX{constructor(f,e,B,n,r){super(f,{L:"div",B:"ytp-ad-message-overlay",j:[{L:"div",B:"ytp-ad-message-slot"}]},"ad-message",e,B,n,r);this.X=-1;this.V=0;this.cS=!1;this.Lq=this.JL("ytp-ad-message-slot");this.G=new g.Sq({L:"span",B:"ytp-ad-message-container"});this.G.di(this.Lq);g.A(this,this.G);this.messageText=new AO(this.api,this.layoutId,this.interactionLoggingClientData,n,"ytp-ad-message-text");g.A(this,this.messageText);this.messageText.di(this.G.element);this.U=new g.Ob(this.G, 400,!1,100,()=>{this.hide()}); g.A(this,this.U);this.hide()}init(f,e,B){super.init(f,e,B);f=e.durationMs;this.V=f==null||f===0?0:f+this.C.getProgressState().current*1E3;let n;e.text?n=e.text.templatedAdText:e.staticMessage&&(n=e.staticMessage);this.messageText.init(Io("ad-text"),n,B);this.messageText.di(this.G.element);this.U.show(100);this.show()}clear(){this.hide()}hide(){sb6(this,!1);super.hide();this.G.hide();this.messageText.hide();FY(this)}show(){sb6(this,!0);super.show();uA(this);this.G.show();this.messageText.show()}W(){this.hide()}J(){if(this.C!= null){var f=this.C.getProgressState();f!=null&&f.current!=null&&(f=1E3*f.current,!this.cS&&f>=this.V?(this.U.hide(),this.cS=!0):this.messageText&&this.messageText.isTemplated()&&(f=Math.max(0,Math.ceil((this.V-f)/1E3)),f!==this.X&&(lA(this.messageText,{TIME_REMAINING:String(f)}),this.X=f)))}}};var jEw=class extends p1{constructor(f,e,B,n){super(f,{L:"div",B:"ytp-ad-underlay-companion",j:[{L:"div",B:"ytp-ad-underlay-side-container",j:[{L:"div",B:"ytp-ad-underlay-image-container"},{L:"div",B:"ytp-ad-underlay-description-container"},{L:"div",B:"ytp-ad-underlay-headline-container"},{L:"div",B:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",e,B,n);this.actionButton=null;this.Lq=this.JL("ytp-ad-underlay-image-container");this.J=new c0(this.api,this.layoutId,this.interactionLoggingClientData, this.lY,"ytp-ad-underlay-image");g.A(this,this.J);this.J.di(this.Lq);this.cS=this.JL("ytp-ad-underlay-headline-container");this.G=new AO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,"ytp-ad-underlay-headline");g.A(this,this.G);this.G.di(this.cS);this.A=this.JL("ytp-ad-underlay-description-container");this.V=new AO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,"ytp-ad-underlay-description");g.A(this,this.V);this.V.di(this.A);this.X=this.JL("ytp-ad-underlay-action-button-container"); this.C=this.JL("ytp-ad-underlay-side-container");this.hide()}init(f,e,B){super.init(f,e,{});e.image&&e.image.thumbnail?e.headline?e.description?e.actionButton&&g.u(e.actionButton,$u)?(this.J.init(Io("ad-image"),e.image,B),this.G.init(Io("ad-text"),e.headline,B),this.V.init(Io("ad-text"),e.description,B),this.actionButton=new VQ(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,["ytp-ad-underlay-action-button"]),e.backgroundColor&&g.uc(this.element,"background-color",g.Dk(e.backgroundColor)), g.A(this,this.actionButton),this.actionButton.di(this.X),this.actionButton.init(Io("button"),g.u(e.actionButton,$u),B),f=g.tS(this.api.S().experiments,"player_underlay_video_width_fraction"),this.api.S().Y("place_shrunken_video_on_left_of_player")?(e=this.C,g.$i(e,"ytp-ad-underlay-left-container"),g.PW(e,"ytp-ad-underlay-right-container"),g.uc(this.C,"margin-left",`${Math.round((f+.02)*100)}%`)):(e=this.C,g.$i(e,"ytp-ad-underlay-right-container"),g.PW(e,"ytp-ad-underlay-left-container")),g.uc(this.C, "width",`${Math.round((1-f-.04)*100)}%`),this.api.bv()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.U.bind(this)),this.api.addEventListener("resize",this.W.bind(this))):g.J(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.J(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.J(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.J(Error("InstreamAdPlayerUnderlayRenderer has no image."))}show(){XMY(!0);this.actionButton&& this.actionButton.show();super.show()}hide(){XMY(!1);this.actionButton&&this.actionButton.hide();super.hide()}clear(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.U.bind(this));this.api.removeEventListener("resize",this.W.bind(this));this.hide()}onClick(f){super.onClick(f);this.actionButton&&g.HN(this.actionButton.element,f.target)&&this.api.pauseVideo()}U(f){f==="transitioning"?(this.C.classList.remove("ytp-ad-underlay-clickable"),this.show()):f==="visible"?this.C.classList.add("ytp-ad-underlay-clickable"): f==="hidden"&&(this.hide(),this.C.classList.remove("ytp-ad-underlay-clickable"))}W(f){f.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):f.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"), this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium"));g.uc(this.G.element,"font-size",`${f.width/40}px`)}};var IMg=class extends p1{constructor(f,e,B,n,r,L=()=>{}){super(f,{L:"div", B:"ytp-ad-survey-answer"},"survey-answer",e,B,n);this.index=r;this.onSelected=L;this.C=null;this.toggledLoggingParams="";this.answer=this.JL("ytp-ad-survey-answer");this.hide()}init(f,e,B){super.init(f,e,B);e.toggledLoggingParams&&(this.toggledLoggingParams=e.toggledLoggingParams);e.answer&&g.u(e.answer,$u)?(f=new VQ(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),f.di(this.answer),f.init(Io("ytp-ad-survey-answer-button"), g.u(e.answer,$u),B),f.show()):e.answer&&g.u(e.answer,tO)&&(this.C=new YR(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,["ytp-ad-survey-answer-toggle-button"]),this.C.di(this.answer),g.A(this,this.C),this.C.init(Io("survey-answer-button"),g.u(e.answer,tO),B));this.show()}eI(f){this.layoutId?e1(this.lY,f,this.layoutId,this.macros):(f=new g.Dj("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.J(f))}onClick(f){super.onClick(f);if(this.api.S().Y("supports_multi_step_on_desktop")&& this.index!==null)this.onSelected(this.index)}clear(){this.hide()}};var BXw=class extends p1{constructor(f,e,B,n){super(f,{L:"div",B:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",e,B,n);this.button=null;this.C=this.JL("ytp-ad-survey-none-of-the-above");this.hide()}init(f,e,B){super.init(f,e,B);e.answer&&g.u(e.answer,tO)&&(this.button=new YR(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.di(this.C),this.button.init(Io("survey-none-of-the-above-button"), g.u(e.answer,tO),B));this.show()}};var aVI=class extends VQ{constructor(f,e,B,n){const r=["ytp-ad-survey-submit-button"];r.push("ytp-ad-survey-submit-button-rounded");super(f,e,B,n,r,"survey-submit")}init(f,e,B){super.init(f,e,B);f=!1;e.text&&(e=g.nS(e.text),f=!g.eU(e));f||g.Yv(Error("No submit text was present in the renderer."))}onClick(f){this.publish("l");super.onClick(f)}};var ft5=class extends p1{constructor(f,e,B,n,r){super(f,{L:"div",B:"ytp-ad-survey-player-overlay",j:[{L:"div",B:"ytp-ad-survey-player-overlay-instream-info"},{L:"div",B:"ytp-ad-survey-player-overlay-skip-preview-submit",j:[{L:"div",B:"ytp-ad-survey-player-overlay-skip-or-preview"},{L:"div",B:"ytp-ad-survey-player-overlay-submit"}]},{L:"div",B:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",e,B,n);this.V=r;this.G=this.C=null;this.J=this.JL("ytp-ad-survey-player-overlay-instream-info"); this.skipOrPreview=this.JL("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.JL("ytp-ad-survey-player-overlay-submit");g.A(this,this.V);this.hide()}init(f,e,B){super.init(f,e,B);if(f=e.skipOrPreviewRenderer)g.u(f,SS)?(f=g.u(f,SS),B=new Gs(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,this.V,!0),B.di(this.skipOrPreview),B.init(Io("skip-button"),f,this.macros),g.A(this,B),this.C=B):g.u(f,pj)&&(f=g.u(f,pj),B=new of(this.api,this.layoutId,this.interactionLoggingClientData, this.lY,this.V,!1),B.di(this.skipOrPreview),B.init(Io("ad-preview"),f,this.macros),B.cS.show(100),B.show(),g.A(this,B),this.C=B);this.C==null&&(f=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly."+`ISAPOR: ${JSON.stringify(e)}`),g.J(f));e.submitButton&&(f=e.submitButton,g.u(f,$u)&&(f=g.u(f,$u),B=new aVI(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),B.di(this.submitButton),B.init(Io("survey-submit"),f,this.macros),g.A(this,B),this.G=B));if(f=e.adBadgeRenderer)f= g.u(f,xYO),B=new u6(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,!0,!0),B.di(this.J),B.init(Io("simple-ad-badge"),f,this.macros),this.adBadge=B.element,g.A(this,B);if(f=e.adDurationRemaining)f=g.u(f,Q3l),B=new Ub(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,this.V,void 0,!0),B.di(this.J),B.init(Io("ad-duration-remaining"),f,this.macros),g.A(this,B);(e=e.adInfoRenderer)&&g.u(e,a8)&&(f=new Ts(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,this.element, void 0,!0),g.A(this,f),this.adBadge!==void 0?this.J.insertBefore(f.element,this.adBadge.nextSibling):f.di(this.J),f.init(Io("ad-info-hover-text-button"),g.u(e,a8),this.macros));this.show()}clear(){this.hide()}};var pBH=class extends p1{constructor(f,e,B,n,r,L=()=>{}){super(f,{L:"div", B:"ytp-ad-survey-question",j:[{L:"div",y9:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{L:"div",y9:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{L:"div",y9:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{L:"div",B:"ytp-ad-survey-question-background"}]},r,e,B,n);this.cS=L;this.J=null;this.G=[];this.C=null;this.U=this.api.S().experiments.SI("a11y_h5_associate_survey_question");this.question=this.JL("ytp-ad-survey-question");this.Z9= this.JL("ytp-ad-survey-question-background");this.questionText=this.JL("ytp-ad-survey-question-text");this.answers=this.JL("ytp-ad-survey-answers");this.playerOverlay=this.JL("ytp-ad-survey-question-player-overlay");this.V=Date.now()}init(f,e,B){super.init(f,e,B);yNC(this)}show(){this.V=Date.now();super.show()}X(){}};var ksH=class extends pBH{constructor(f,e,B,n,r){super(f,e,B,n,"survey-question-multi-select");this.A=r;this.noneOfTheAbove=null;this.submitEndpoints=[];this.W=null;this.hide()}init(f,e,B){super.init(f,e,B);e.questionText&&P2w(this,e.questionText);e.answers&&e.answers.forEach((n,r)=>{g.u(n,rv)&&$lG(this,g.u(n,rv),B,r)}); this.W=new Set(this.G.map(n=>n.C.C)); (f=e.noneOfTheAbove)&&(f=g.u(f,DY6))&&nw6(this,f,B);e.surveyAdQuestionCommon&&esG(this,e.surveyAdQuestionCommon);e.submitEndpoints&&(this.submitEndpoints=e.submitEndpoints);this.D(this.element,"change",this.onChange);this.show()}X(){xw(this.J,XT(this),!1);this.J.G.subscribe("l",this.Lq,this)}onChange(f){f.target===this.noneOfTheAbove.button.C?r35(this):this.W.has(f.target)&&(this.noneOfTheAbove.button.toggleButton(!1),xw(this.J,XT(this),!0))}Lq(){const f=[],e=this.G.reduce((n,r,L)=>{const d=r.toggledLoggingParams; r.C&&r.C.isToggled()&&d&&(n.push(d),f.push(L));return n},[]).join("&"),B=this.submitEndpoints.map(n=>{if(!n.loggingUrls)return n; n=g.xe(n);n.loggingUrls=n.loggingUrls.map(r=>{r.baseUrl&&(r.baseUrl=bU(r.baseUrl,e));return r}); return n}); if(B)for(const n of B)this.layoutId?e1(this.lY,n,this.layoutId,this.macros):g.J(Error("Missing layoutId for multi_select_question."));this.api.S().Y("supports_multi_step_on_desktop")&&this.A(f)}clear(){this.api.S().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()}};var Hm5=class extends pBH{constructor(f,e,B,n,r){super(f,e,B,n,"survey-question-single-select",L=>{this.api.S().Y("supports_multi_step_on_desktop")&&r([L])}); this.hide()}init(f,e,B){super.init(f,e,B);e.questionText&&P2w(this,e.questionText);e.answers&&e.answers.forEach((n,r)=>{g.u(n,rv)&&$lG(this,g.u(n,rv),B,r)}); e.surveyAdQuestionCommon?esG(this,e.surveyAdQuestionCommon):c6(Error("SurveyAdQuestionCommon was not sent."+`SingleSelectQuestionRenderer: ${JSON.stringify(e)}`));this.show()}clear(){this.api.S().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()}};var atw=class extends p1{constructor(f,e,B,n){super(f,{L:"div",B:"ytp-ad-survey",j:[{L:"div",B:"ytp-ad-survey-questions"}]},"survey",e,B,n);this.questions=[];this.G=[];this.conditioningRules=[];this.C=0;this.W=this.JL("ytp-ad-survey-questions");this.api.S().Y("fix_survey_color_contrast_on_destop")&&this.JL("ytp-ad-survey").classList.add("color-contrast-fix");this.api.S().Y("web_enable_speedmaster")&&this.JL("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}init(f,e,B){super.init(f, e,B);this.api.S().Y("supports_multi_step_on_desktop")?(this.conditioningRules=e.conditioningRules??[],this.G=e.questions??[],e.questions?.length&&tqw(this,0)):(e.questions||[]).forEach(n=>{g.u(n,qz)?L8g(this,g.u(n,qz),B):g.u(n,Kj)&&d4m(this,g.u(n,Kj),B)}); this.show()}clear(){this.api.S().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}V(f){if(this.api.S().Y("supports_multi_step_on_desktop"))if(this.conditioningRules?.length){let e;if(f.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(B=>B.questionIndex===this.C)==null)g.J(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(B=>{if(B.questionIndex===this.C)switch(B.condition){case "CONDITION_ALL_OF":B.answerIndices?.every(n=>f.includes(n))&&(e=B.nextQuestionIndex); break;case "CONDITION_ANY_OF":B.answerIndices?.some(n=>f.includes(n))&&(e=B.nextQuestionIndex); break;default:g.J(Error("Expected specified condition in survey conditioning rules."))}}),e!=null)tqw(this,e); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.J(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};var YBH=class extends p1{constructor(f,e,B,n){super(f,{L:"div",B:"ytp-ad-survey-interstitial",j:[{L:"div",B:"ytp-ad-survey-interstitial-contents",j:[{L:"div",B:"ytp-ad-survey-interstitial-logo",j:[{L:"div",B:"ytp-ad-survey-interstitial-logo-image"}]},{L:"div",B:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",e,B,n);this.C=this.actionButton=null;this.interstitial=this.JL("ytp-ad-survey-interstitial");this.G=this.JL("ytp-ad-survey-interstitial-contents");this.text=this.JL("ytp-ad-survey-interstitial-text"); this.logoImage=this.JL("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Ob(this,500,!1,300);g.A(this,this.transition)}init(f,e,B){super.init(f,e,B);f=e.timeoutSeconds||0;if(typeof f!=="number"||f<0)g.J(Error("timeoutSeconds was specified incorrectly in "+`SurveyTextInterstitialRenderer with a value of: ${f}`));else if(e.timeoutCommands)if(e.text)if(e.ctaButton&&g.u(e.ctaButton,$u))if(e.brandImage)if(e.backgroundImage&&g.u(e.backgroundImage,i4)&&g.u(e.backgroundImage,i4).landscape){this.layoutId|| g.J(Error("Missing layoutId for survey interstitial."));CQd(this.interstitial,g.u(e.backgroundImage,i4).landscape);CQd(this.logoImage,e.brandImage);g.kC(this.text,g.nS(e.text));var n=["ytp-ad-survey-interstitial-action-button"];n.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new VQ(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,n);g.A(this,this.actionButton);this.actionButton.di(this.G);this.actionButton.init(Io("button"),g.u(e.ctaButton,$u),B);this.actionButton.show(); this.C=new Wd(this.api,f*1E3);this.C.subscribe("g",()=>{this.transition.hide()}); g.A(this,this.C);this.D(this.element,"click",r=>{const L=r.target===this.interstitial;r=this.actionButton.element.contains(r.target);if(L||r)if(this.transition.hide(),L)this.api.onAdUxClicked(this.componentType,this.layoutId)}); this.transition.show(100)}else g.J(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.J(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.J(Error("SurveyTextInterstitialRenderer has no button."));else g.J(Error("SurveyTextInterstitialRenderer has no text."));else g.J(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}clear(){this.hide()}show(){wdl(!0);super.show()}hide(){wdl(!1);super.hide()}};var cuH=class extends jX{constructor(f,e,B,n,r,L=0){super(f,{L:"div",B:"ytp-preview-ad",j:[{L:"div",B:"ytp-preview-ad__text"}]},"preview-ad",e,B,n,r);this.Z9=L;this.G=0;this.cS=-1;this.V=this.JL("ytp-preview-ad__text");switch(this.Z9){case 1:this.V.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Ob(this,400,!1,100,()=>{this.hide()}); g.A(this,this.transition);this.hide()}init(f,e){super.init(f,e,{});if(e.durationMilliseconds){if(e.durationMilliseconds<0){g.J(Error("DurationMilliseconds was specified incorrectly in "+`AdPreview with a value of: ${e.durationMilliseconds}`));return}this.G=e.durationMilliseconds}else this.G=this.C.Ii();!e.previewText?.text||g.eU(e.previewText.text)?g.J(Error("No text is returned for AdPreview.")):(this.Lq=e.previewText,e.previewText.isTemplated||g.kC(this.V,e.previewText.text),this.api.getVideoData({playerType:1})?.sM&& e.previewImage?(f=Zi(e.previewImage?.sources||[],52,!1)?.url||"")&&f.length?(this.previewImage=new g.Sq({L:"img",B:"ytp-preview-ad__image",O:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",f),g.A(this,this.previewImage),this.previewImage.di(this.element)):g.J(Error("Failed to get imageUrl in AdPreview.")):this.V.classList.add("ytp-preview-ad__text--padding--wide"))}clear(){this.hide()}hide(){FY(this);super.hide()}show(){uA(this);super.show()}W(){this.hide()}J(){if(this.C){var f=this.C.getProgressState(); if(f?.current)if(f=1E3*f.current,f>=this.G)this.U();else if(this.Lq?.isTemplated&&(f=Math.max(0,Math.ceil((this.G-f)/1E3)),f!==this.cS)){const e=this.Lq?.text?.replace("{TIME_REMAINING}",String(f));e&&g.kC(this.V,e);this.cS=f}}}U(){this.transition.hide()}X(){this.transition.show(100);this.show()}};var fG=class extends p1{constructor(f,e,B,n){super(f,{L:"img",B:"ytp-ad-avatar"},"ad-avatar",e,B,n);this.hide()}init(f,e){super.init(f,e,{});var B=Zi(e.image?.sources||[],vwM(e),!0)?.url||"";if(B&&B.length){f=this.JL("ytp-ad-avatar");f.src=B;if(B=e.interaction?.accessibility?.label)f.alt=B;switch(e.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(e.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.J(Error("Failed to get imageUrl in AdAvatar."))}clear(){this.hide()}onClick(f){super.onClick(f)}};var eR=class extends p1{constructor(f,e,B,n,r=!1){super(f,{L:"button",B:"ytp-ad-button-vm"},"ad-button",e,B,n);this.buttonText=this.buttonIcon=null;this.hide();this.forceDarkTheme=r}init(f,e){super.init(f,e,{});var B=e.label?.content;if((f=B!=null&&!g.eU(B))||e.iconImage){f&&(this.buttonText=new g.Sq({L:"span",B:"ytp-ad-button-vm__text",Ga:B}),g.A(this,this.buttonText),this.buttonText.di(this.element));(B=e.interaction?.accessibility?.label||f?B:"")&&hg(this.element,`${B} ${"This link opens in new tab"}`); UW(this.element);if(e.iconImage){B=void 0;if(e.iconImage){a:{var n=e.iconImage;if(n.sources)for(r of n.sources)if(r.clientResource?.imageName||r.customImageSource&&g.u(r.customImageSource,RNO)?.clientResource?.icon)break a;var r=void 0}r&&(B={iconType:r.clientResource?.imageName})}r=cl(B,!1,!1);r!=null&&(this.buttonIcon=new g.Sq({L:"span",B:"ytp-ad-button-vm__icon",j:[r]}),g.A(this,this.buttonIcon),e.iconLeading?(dw(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")): f?(this.buttonIcon.di(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")):(this.buttonIcon.di(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(e.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_MONO_FILLED":this.element.classList.add("ytp-ad-button-vm--style-mono-filled"); break;case "AD_BUTTON_STYLE_FILLED":this.api.Y("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.forceDarkTheme?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(e.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.Yv(Error("AdButton does not have label or an icon."))}clear(){this.hide()}onClick(f){super.onClick(f)}};var YMH=class extends jX{constructor(f,e,B,n,r){super(f,{L:"div",y9:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],j:[{L:"div",B:"ytp-ad-avatar-lockup-card__avatar_and_text_container",j:[{L:"div",B:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",e,B,n,r);this.startMilliseconds=0;this.adAvatar=new fG(this.api,this.layoutId,this.interactionLoggingClientData,this.lY);g.A(this,this.adAvatar);dw(this.element,this.adAvatar.element,0);this.headline=new hO(this.api, this.layoutId,this.interactionLoggingClientData,this.lY);g.A(this,this.headline);this.headline.di(this.JL("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new hO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY);g.A(this,this.description);this.description.di(this.JL("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton= new eR(this.api,this.layoutId,this.interactionLoggingClientData,this.lY);g.A(this,this.adButton);this.adButton.di(this.element);this.hide()}init(f,e){super.init(f,e,{});if(f=g.u(e.avatar,yH)){var B=e.headline;if(B){var n=e.description;if(n){var r=g.u(e.button,IE);r?(this.adAvatar.init(Io("ad-avatar"),f),this.headline.init(Io("ad-simple-attributed-string"),new N5(B)),this.description.init(Io("ad-simple-attributed-string"),new N5(n)),B.content&&B.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(Io("ad-button"),r),this.startMilliseconds=e.startMs||0,this.api.bv()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.G.bind(this)),uA(this)):g.J(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.J(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.J(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.J(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}J(){if(this.C){var f= this.C.getProgressState();f&&f.current&&1E3*f.current>=this.startMilliseconds&&(FY(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}W(){this.clear()}onClick(f){this.api.pauseVideo();super.onClick(f)}clear(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.G.bind(this))}show(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();super.show()}hide(){this.adAvatar.hide();this.headline.hide();this.description.hide(); this.adButton.hide();super.hide()}G(f){f==="hidden"?this.show():this.hide()}};var Aue=class extends p1{constructor(f,e,B,n){super(f,{L:"button",B:"ytp-skip-ad-button",j:[{L:"div",B:"ytp-skip-ad-button__text"}]},"skip-button",e,B,n);this.G=!1;this.W=this.JL("ytp-skip-ad-button__text");this.transition=new g.Ob(this,500,!1,100,()=>{this.hide()}); g.A(this,this.transition);this.C=new Vo(this.element,15E3,5E3,.5,.5,!0);g.A(this,this.C);this.hide()}init(f,e){super.init(f,e,{});if(!e.label||g.eU(e.label))g.J(Error("No label is returned for SkipAdButton."));else if(g.kC(this.W,e.label),f=cl({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.Y("delhi_modern_web_player_icons")),f==null)g.J(Error("Unable to retrieve icon for SkipAdButton"));else if(this.J=new g.Sq({L:"span",B:"ytp-skip-ad-button__icon",j:[f]}),g.A(this,this.J),this.J.di(this.element),this.api.S().experiments.SI("enable_skip_to_next_messaging")&& (e=g.dr(e.targetId)))this.G=!0,this.element.setAttribute("data-tooltip-target-id",e),this.element.setAttribute("data-tooltip-target-fixed","")}onClick(f){f&&f.preventDefault();ugM(f,{contentCpn:this.api.getVideoData({playerType:1})?.clientPlaybackNonce??""})===0?g.yW(this.api,"onAbnormalityDetected"):(super.onClick(f),g.yW(this.api,"onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}clear(){this.C.reset();this.hide()}hide(){super.hide()}show(){this.C.start();super.show();this.G&& this.api.S().experiments.SI("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)}V(){this.transition.show();this.show()}};var jxe=class extends jX{constructor(f,e,B,n,r){super(f,{L:"div",B:"ytp-skip-ad"},"skip-ad",e,B,n,r);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.V=new Aue(this.api,this.layoutId,this.interactionLoggingClientData,this.lY);g.A(this,this.V);this.V.di(this.element);this.hide()}init(f,e){super.init(f,e,{});f=g.u(e.preskipState,fNg);if(this.api.getVideoData()?.isDaiEnabled()){if(!f){g.J(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.G=new cuH(this.api,this.layoutId, this.interactionLoggingClientData,this.lY,this.C);g.A(this,this.G);this.G.di(this.element);this.G?.init(Io("preview-ad"),f);this.G?.X()}(f=g.u(e.skippableState,B4C))?(e.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=e.skipOffsetMilliseconds:(g.Yv(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.V.init(Io("skip-button"),f),this.show()):g.J(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}show(){uA(this);super.show()}hide(){!this.isSkippable&& this.G?this.G.hide():this.V&&this.V.hide();FY(this);super.hide()}clear(){this.G?.clear();this.V&&this.V.clear();FY(this);super.hide()}W(){this.hide()}J(){1E3*this.C.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable&&(this.isSkippable=!0,this.G?.U(),this.V?.V())}};var OFx=class extends p1{constructor(f,e,B,n){super(f,{L:"div",B:"ytp-visit-advertiser-link"},"visit-advertiser-link",e,B,n);this.hide()}init(f,e){super.init(f,e,{});e.label?(e.label?.content&&!g.eU(e.label.content)&&(this.linkText=new g.Sq({L:"span",B:"ytp-visit-advertiser-link__text",Ga:e.label.content}),g.A(this,this.linkText),this.linkText.di(this.element)),e.interaction?.accessibility?.label?hg(this.element,`${e.interaction.accessibility.label} ${"This link opens in new tab"}`):e.label?.content&& !g.eU(e.label.content)&&hg(this.element,`${e.label.content} ${"This link opens in new tab"}`),UW(this.element),this.element.setAttribute("tabindex","0"),this.show()):g.J(Error("No label found in VisitAdvertiserLink."))}onClick(f){super.onClick(f);this.api.onAdUxClicked(this.componentType,this.layoutId)}clear(){this.hide()}};var zsl=class extends p1{constructor(f,e,B,n,r){super(f,{L:"div",B:"ytp-ad-player-overlay-layout",j:[{L:"div",B:"ytp-ad-player-overlay-layout__player-card-container"},{L:"div",B:"ytp-ad-player-overlay-layout__ad-info-container"},{L:"div",B:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{L:"div",B:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",e,B,n);this.G=r;this.A=this.JL("ytp-ad-player-overlay-layout__player-card-container");this.C=this.JL("ytp-ad-player-overlay-layout__ad-info-container"); this.U=this.JL("ytp-ad-player-overlay-layout__skip-or-preview-container");this.X=this.JL("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}init(f,e,B,n){super.init(f,e,{});let r;e.skipOrPreview&&(B=e.skipOrPreview,f=g.u(B,ndM),B=g.u(B,fNg),f?(this.XF=new jxe(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,this.G),g.A(this,this.XF),this.XF.di(this.U),this.XF.init(Io("skip-ad"),f)):B&&this.api.getVideoData()?.isDaiEnabled()&&(this.V=new cuH(this.api,this.layoutId, this.interactionLoggingClientData,this.lY,this.G,1),g.A(this,this.V),this.V.di(this.U),this.V.init(Io("ad-preview"),B),this.V.X()),f=g.u(e.skipOrPreview,ndM))&&(r=f.skipOffsetMilliseconds);e.playerAdCard&&(f=g.u(e.playerAdCard,eNw))&&(this.playerAdCard=new YMH(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,this.G),g.A(this,this.playerAdCard),this.playerAdCard.di(this.A),this.playerAdCard.init(Io("ad-avatar-lockup-card"),f));e.adBadgeRenderer&&((f=g.u(e.adBadgeRenderer,Pd))?(this.J= new gv(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,!0),g.A(this,this.J),this.J.di(this.C),this.J.init(Io("ad-badge"),f)):g.J(Error("AdBadgeViewModel is not found in player overlay layout.")));e.adPodIndex&&(f=g.u(e.adPodIndex,Pa0))&&(this.adPodIndex=new N9d(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),g.A(this,this.adPodIndex),this.adPodIndex.di(this.C),this.adPodIndex.init(Io("ad-pod-index"),f));e.adInfoRenderer&&((f=g.u(e.adInfoRenderer,a8))?(this.adInfoButton= new Ts(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,this.element,void 0,!0),g.A(this,this.adInfoButton),this.J!==void 0?this.C.insertBefore(this.adInfoButton.element,this.J.element.nextSibling):this.adInfoButton.di(this.C),this.adInfoButton.init(Io("ad-info-hover-text-button"),f,this.macros)):g.Yv(Error("AdInfoRenderer is not found in player overlay layout.")));f=this.api.getVideoData()?.isDaiEnabled();e.adDurationRemaining&&f&&(f=g.u(e.adDurationRemaining,Q3l))&&(this.adDurationRemaining= new Ub(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,this.G,n.videoAdDurationSeconds,!0),g.A(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.C.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.di(this.C),this.adDurationRemaining.init(Io("ad-duration-remaining"),f,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));e.visitAdvertiserLink&&(n=g.u(e.visitAdvertiserLink, LH6))&&(this.visitAdvertiserLink=new OFx(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),g.A(this,this.visitAdvertiserLink),this.visitAdvertiserLink.di(this.C),this.visitAdvertiserLink.init(Io("visit-advertiser-link"),n));e.adDisclosureBanner&&(e=g.u(e.adDisclosureBanner,y1m))&&(this.adDisclosureBanner=new hwk(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),g.A(this,this.adDisclosureBanner),this.adDisclosureBanner.di(this.X),this.adDisclosureBanner.init(Io("ad-disclosure-banner"), e));this.W=new sB(this.api,this.G,r,!0);g.A(this,this.W);g.qX(this.api,this.W.element,4);this.show()}clear(){this.hide()}};var oeF=class extends p1{constructor(f,e,B,n){super(f,{L:"div",B:"ytp-ad-grid-card-text",j:[{L:"div",B:"ytp-ad-grid-card-text__metadata",j:[{L:"div",B:"ytp-ad-grid-card-text__metadata__headline"},{L:"div",B:"ytp-ad-grid-card-text__metadata__description",j:[{L:"div",B:"ytp-ad-grid-card-text__metadata__description__line"},{L:"div",B:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{L:"div",B:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",e,B,n);this.headline=new hO(this.api,this.layoutId, this.interactionLoggingClientData,this.lY);g.A(this,this.headline);this.headline.di(this.JL("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new eR(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,!0);g.A(this,this.moreInfoButton);this.moreInfoButton.di(this.JL("ytp-ad-grid-card-text__button"))}init(f,e){super.init(f,e,{});if(e?.title)if(f=e.title)if(this.headline.init(Io("ad-simple-attributed-string"),new N5(f)),f=g.u(e.moreInfoButton,IE)){if(this.moreInfoButton.init(Io("ad-button"), f),e.descriptions)e.descriptions.length>0&&(f=e.descriptions[0])&&(this.C=new hO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),g.A(this,this.C),this.C.di(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.C.init(Io("ad-simple-attributed-string"),new N5(f))),e.descriptions.length>1&&(e=e.descriptions[1])&&(this.G=new hO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),g.A(this,this.G),this.G.di(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]), this.G.init(Io("ad-simple-attributed-string"),new N5(e)))}else g.J(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.J(Error("No headline found in AdGridCardText."));else g.J(Error("No headline found in AdGridCardText."))}onClick(f){super.onClick(f);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}clear(){this.hide();this.headline.clear();this.moreInfoButton.clear();this.C?.clear();this.G?.clear()}hide(){this.headline.hide();this.moreInfoButton.hide(); this.C?.hide();this.G?.hide();super.hide()}show(){super.show();this.headline.show();this.moreInfoButton.show();this.C?.show();this.G?.show()}};var VBg=class extends p1{constructor(f,e,B,n){super(f,{L:"div",B:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",e,B,n);this.C=[]}init(f,e){super.init(f,e,{});if(e?.gridCards)if(e.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.J(Error("Only single column style is currently supported in AdGridCardCollection."));else for(const B of e.gridCards){if(e=g.u(B,i4C))f=new oeF(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),g.A(this,f),f.di(this.element),f.init(Io("ad-grid-card-text"), e),this.C.push(f)}else g.J(Error("No grid cards found in AdGridCardCollection."))}show(){for(const f of this.C)f.show();super.show()}clear(){this.hide();for(const f of this.C)f.clear()}hide(){for(const f of this.C)f.hide();super.hide()}};var lVM=class extends jX{constructor(f,e,B,n,r){super(f,{L:"div",B:"ytp-display-underlay-text-grid-cards",j:[{L:"div",B:"ytp-display-underlay-text-grid-cards__content_container",j:[{L:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header",j:[{L:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{L:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{L:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {L:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards",e,B,n,r);this.playerProgressOffsetMs=0;this.G=!1}init(f,e,B,n,r=0){super.init(f,e,B,n);this.playerProgressOffsetMs=r;uA(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.X.bind(this));this.api.addEventListener("resize",this.U.bind(this));this.api.bv()?(this.G=!0,this.api.Y5(!0),this.show()):this.hide()}J(){if(this.C){var f=this.C.getProgressState();f&&f.current&& !this.G&&1E3*f.current>=this.playerProgressOffsetMs&&(this.G=!0,this.api.Y5(!0),this.show())}}W(){this.G&&this.api.Y5(!1);this.hide()}clear(){this.api.Y5(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.X.bind(this));this.api.removeEventListener("resize",this.U.bind(this));FY(this);this.hide()}hide(){bmm(!1);super.hide()}show(){bmm(!0);super.show()}};var Omg=class extends lVM{constructor(f,e,B,n,r){super(f,e,B,n,r);this.adGridCardCollection=new VBg(this.api,this.layoutId,this.interactionLoggingClientData,this.lY);g.A(this,this.adGridCardCollection);this.adGridCardCollection.di(this.JL("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new eR(this.api,this.layoutId,this.interactionLoggingClientData,this.lY);g.A(this,this.adButton);this.adButton.di(this.JL("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.V=this.JL("ytp-display-underlay-text-grid-cards__content_container");this.cS=this.JL("ytp-display-underlay-text-grid-cards__content_container__header")}init(f,e,B,n){if(e?.adGridCardCollection)if(e?.adButton){var r=Number(e.playerProgressOffsetMs||"0");isNaN(r)?super.init(f,e,B,n):super.init(f,e,B,n,r);f=e.headline;B=g.u(e.adAvatar,yH);f&&B?(this.headline=new hO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),g.A(this,this.headline),this.headline.di(this.JL("ytp-display-underlay-text-grid-cards__content_container__header__headline")), this.headline.init(Io("ad-simple-attributed-string"),new N5(f)),this.adAvatar=new fG(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),g.A(this,this.adAvatar),this.adAvatar.di(this.JL("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(Io("ad-avatar"),B)):this.cS.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");f=g.u(e.adGridCardCollection,$YG);this.adGridCardCollection.init(Io("ad-grid-card-collection"), f);e=g.u(e.adButton,IE);this.adButton.init(Io("ad-button"),e);this.hide()}else g.J(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.J(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}onClick(f){(this.adButton&&g.HN(this.adButton.element,f.target)||this.adAvatar&&g.HN(this.adAvatar.element,f.target))&&this.api.pauseVideo();super.onClick(f);this.api.onAdUxClicked(this.componentType,this.layoutId)}U(){}clear(){this.hide();this.headline?.clear();this.adAvatar?.clear(); this.adGridCardCollection.clear();this.adButton.clear();super.clear()}show(){this.headline?.show();this.adAvatar?.show();this.adGridCardCollection.show();this.adButton.show();super.show()}hide(){this.headline?.hide();this.adAvatar?.hide();this.adGridCardCollection.hide();this.adButton.hide();super.hide()}X(f){f==="transitioning"?(this.V.classList.remove("ytp-ad-underlay-clickable"),this.show()):f==="visible"?this.V.classList.add("ytp-ad-underlay-clickable"):f==="hidden"&&(this.hide(),this.V.classList.remove("ytp-ad-underlay-clickable"))}};var uGL=class extends p1{constructor(f,e,B,n){super(f,{L:"div",B:"ytp-ad-details-line"},"ad-details-line",e,B,n);this.C=[];this.hide()}init(f,e){super.init(f,e,{});if(e.attributes===void 0)g.J(Error("No attributes found in AdDetailsLineViewModel."));else if(e.style===void 0)g.J(Error("No style found in AdDetailsLineViewModel."));else{for(const n of e.attributes)if(n.text!==void 0){f=n.text;var B=e.style;const r=new hO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY);g.A(this,r);r.di(this.element); a:switch(B){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":B="ytp-ad-details-line__text--style-responsive";break a;default:B="ytp-ad-details-line__text--style-standard"}r.element.classList.add(B);r.init(Io("ad-simple-attributed-string"),new N5(f));this.C.push(r)}this.show()}}show(){this.C.forEach(f=>{f.show()}); super.show()}clear(){this.hide()}hide(){this.C.forEach(f=>{f.hide()}); super.hide()}};var FeH=class extends p1{constructor(f,e,B,n){super(f,{L:"div",B:"ytp-image-background",j:[{L:"img",B:"ytp-image-background-image"}]},"image-background",e,B,n);this.hide()}init(f,e){super.init(f,e,{});if((f=Zi(e.image?.sources||[])?.url||"")&&f.length){var B=this.JL("ytp-image-background-image");g.uc(B,"backgroundImage",`url(${f})`);e.blurLevel!==void 0&&g.uc(B,"filter",`blur(${e.blurLevel}px)`);e.gradient!==void 0&&(e=new g.y({L:"div",y9:["ytp-image-background--gradient-vertical"]}),g.A(this,e), e.di(this.element));this.show()}else g.J(Error("Failed to get imageUrl in ImageBackground."))}clear(){this.hide()}};var mTx=class extends jX{constructor(f,e,B,n,r){super(f,{L:"svg",B:"ytp-timed-pie-countdown",O:{viewBox:"0 0 20 20"},j:[{L:"circle",B:"ytp-timed-pie-countdown__background",O:{r:"10",cx:"10",cy:"10"}},{L:"circle",B:"ytp-timed-pie-countdown__inner",O:{r:"5",cx:"10",cy:"10"}},{L:"circle",B:"ytp-timed-pie-countdown__outer",O:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",e,B,n,r);this.V=this.JL("ytp-timed-pie-countdown__inner");this.G=Math.ceil(2*Math.PI*5);this.hide()}init(f,e){super.init(f,e,{}); g.uc(this.V,"stroke-dasharray",`0 ${this.G}`);this.show()}clear(){this.hide()}hide(){FY(this);super.hide()}show(){uA(this);super.show()}W(){this.hide()}J(){if(this.C){var f=this.C.getProgressState();f!=null&&f.current!=null&&g.uc(this.V,"stroke-dasharray",`${f.current/f.seekableEnd*this.G} ${this.G}`)}}};var c3m=class extends p1{constructor(f,e,B,n){super(f,{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout",O:{tabindex:"0"},j:[{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content",j:[{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",j:[{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",e,B,n);this.G=null;this.V=this.JL("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.J=new C1;g.A(this,this.J);this.hide()}init(f, e){super.init(f,e,{});if(Rs0(e)){this.adAvatar=new fG(this.api,this.layoutId,this.interactionLoggingClientData,this.lY);g.A(this,this.adAvatar);this.adAvatar.di(this.JL("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(Io("ad-avatar"),g.u(e.adAvatar,yH));this.headline=new hO(this.api,this.layoutId,this.interactionLoggingClientData,this.lY);g.A(this,this.headline);this.headline.di(this.JL("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(Io("ad-simple-attributed-string"),new N5(e.headline));if(f=g.u(e.adDetailsLine,XHk))this.detailsLine=new uGL(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),g.A(this,this.detailsLine),this.detailsLine.di(this.JL("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(Io("ad-details-line"),f); this.adButton=new eR(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,!0);g.A(this,this.adButton);this.adButton.di(this.JL("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(Io("ad-button"),g.u(e.adButton,IE));this.adBadge=new gv(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,!0);g.A(this,this.adBadge);this.adBadge.di(this.V);this.adBadge.init(Io("ad-badge"),g.u(e.adBadge,Pd));this.adInfoButton=new Ts(this.api, this.layoutId,this.interactionLoggingClientData,this.lY,this.element,void 0,!0);g.A(this,this.adInfoButton);this.adInfoButton.di(this.V);this.adInfoButton.init(Io("ad-info-hover-text-button"),g.u(e.adInfoRenderer,a8),this.macros);if(f=g.u(e.skipAdButton,B4C))this.skipAdButton=new Aue(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),g.A(this,this.skipAdButton),this.skipAdButton.di(this.element),this.skipAdButton.init(Io("skip-button"),f);this.G=new mo(e.durationMilliseconds);g.A(this, this.G);if(f=g.u(e.countdownViewModel,rC5))this.C=new mTx(this.api,this.layoutId,this.interactionLoggingClientData,this.lY,this.G),g.A(this,this.C),this.C.di(this.JL("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.C.init(Io("timed-pie-countdown"),f);if(e=g.u(e.imageBackground,IqG))this.imageBackground=new FeH(this.api,this.layoutId,this.interactionLoggingClientData,this.lY),g.A(this,this.imageBackground),this.imageBackground.di(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"), this.imageBackground.init(Io("image-background"),e);this.show();this.element.focus()}}clear(){this.J.G();this.hide()}show(){Zmm(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();super.show()}hide(){Zmm(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&& this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.C&&this.C.hide();this.imageBackground&&this.imageBackground.hide();super.hide()}};var $w=class extends g.$v{constructor(f,e=2){super();this.api=f;this.C=null;this.handler=new C1(this);g.A(this,this.handler);this.G=ViO;this.handler.D(this.api,"presentingplayerstatechange",this.J);this.C=this.handler.D(this.api,"progresssync",this.ZW);this.yP=e;this.yP===1&&this.ZW()}Ii(){return 1E3*this.api.getDuration(this.yP,!1)}stop(){this.C&&this.handler.uh(this.C)}ZW(){const f=this.api.getProgressState(this.yP);this.G={seekableStart:f.seekableStart,seekableEnd:f.seekableEnd,current:this.api.getCurrentTime(this.yP, !1)};this.publish("h")}getProgressState(){return this.G}J(f){f.IC(2)&&this.publish("g")}};var UTM="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(" ")),N2e=class extends oNH{constructor(f,e,B){super(f);this.api=f;this.lY=e;this.components={};f=new g.y({L:"div",y9:["video-ads","ytp-ad-module"]});g.A(this,f);bD&&g.PW(f.element,"ytp-ads-tiny-mode");this.W=new ZT(f.element); g.A(this,this.W);g.qX(this.api,f.element,4);O$(B)&&(B=new g.y({L:"div",y9:["ytp-ad-underlay"]}),g.A(this,B),this.J=new ZT(B.element),g.A(this,this.J),g.qX(this.api,B.element,0));g.A(this,twM())}V(f){var e=f.id,B=f.content;const n=B.componentType;if(!UTM.includes(n))switch(f.actionType){case 1:f=owG(n,this.api,this.lY,B.layoutId,B.interactionLoggingClientData,B instanceof P0?B.oE:!1,B instanceof P0||B instanceof FM?B.b1:!1);if(!f){g.Yv(Error("No UI component returned from ComponentFactory for type: "+ n));break}g.hu(this.components,e)?g.Yv(Error("Ad UI component already registered: "+e)):this.components[e]=f;f.bind(B);B instanceof a8g?this.J?this.J.append(f.nP):g.Yv(Error("Underlay view was not created but UnderlayRenderer was created")):this.W.append(f.nP);break;case 2:e=VqM(this,f);if(e==null)break;e.bind(B);break;case 3:B=VqM(this,f),B!=null&&(g.PT(B),g.hu(this.components,e)?(B=this.components,e in B&&delete B[e]):g.Yv(Error("Ad UI component does not exist: "+e)))}}bY(){g.II(Object.values(this.components)); this.components={};super.bY()}};var hIH=class extends g.zV{constructor(f){super(f);this.G=null;this.created=!1;this.J=new LeB(this.player);this.V=()=>this.G!=null?this.G:this.G=(new tB2({Ab:gX(this.C).Ab,V4:gX(this.C).V4,Z:this.player,FX:gX(this.C).FX,Ud:this.C.C.Ud,Cj:gX(this.C).Cj,tF:this.C.C.tF})).G; this.C=new Kex(this.player,this,this.J,this.V);g.A(this,this.C);const e=f.S();!PK(e)||g.DH(e)||yZ(e)||(g.A(this,new N2e(f,gX(this.C).lY,gX(this.C).FX)),g.A(this,new qMI(f)))}create(){try{m45(this),this.load(),this.created=!0,m45(this)}catch(f){NL(f instanceof Error?f:String(f))}}load(){this.W()}W(){super.load();var f=gX(this.C).FX;try{this.player.getRootNode().classList.add("ad-created")}catch(d){NL(d instanceof Error?d:String(d))}var e=this.player.getVideoData({playerType:1});const B=e&&e.videoId|| "";var n=e&&e.getPlayerResponse()||{},r=(n&&n.adPlacements||[]).map(d=>d.adPlacementRenderer),L=(n?.adSlots||[]).map(d=>g.u(d,R8)); n=n.playerConfig&&n.playerConfig.daiConfig&&n.playerConfig.daiConfig.enableDai||!1;e&&e.sA();f=ltO(r,L,f,gX(this.C).jr);r=e&&e.clientPlaybackNonce||"";e=e&&e.P$||!1;L=1E3*this.player.getDuration(1);this.player.getVideoData({playerType:1})?.P$||SGl(this.player)&&BVC(this.player.getInternalApi());this.C.C.XZ.y7(r,L,e,f.AQ,f.g2,f.AQ,n,B)}destroy(){const f=this.player.getVideoData({playerType:1});this.C.C.XZ.CF(f&&f.clientPlaybackNonce||"");this.unload();this.created=!1}unload(){super.unload();try{this.player.getRootNode().classList.remove("ad-created")}catch(f){NL(f instanceof Error?f:String(f))}if(this.G!=null){const f=this.G;this.G=null;f.dispose()}this.J.reset()}Ls(){return!1}getAdState(){return-1}getOptions(){return Object.values(dTH)}gZ(f,e={}){switch(f){case "replaceUrlMacros":return e.url?(f=tQY(this.player),Object.assign(f,e.Fuj),e=g.pX(e.url,f)):e=null,e;case "onAboutThisAdPopupClosed":this.Jt(e);break;case "executeCommand":e.command&&e.layoutId&&this.executeCommand(e);break;default:return null}}rg(f){return!!this.C.C.Mj?.get().rg(f)}Jt(f){f.isMuted&&b$d(gX(this.C).Cj, gX(this.C).Ab,f.layoutId);this.hv&&this.hv.Jt()}executeCommand(f){gX(this.C).lY.executeCommand(f.command,f.layoutId)}};g.qH("yt.player.Application.create",g.S6.create);g.qH("yt.player.Application.createAlternate",g.S6.create);frd(qG(),ruT);var geG=g.zO("ytcsi.tick");geG&&geG("pe");g.cO("ad",hIH);g.SMe=class extends g.$0{constructor(f){super();this.callback=f;this.C=new ZL(0,0,.4,0,.2,1,1,1);this.delay=new g.SV(this.next,window,this);g.A(this,this.delay)}start(f,e,B){this.config={from:f,to:e,duration:B,startTime:(0,g.T)()};this.next()}stop(){this.delay.stop();this.config=void 0}next(){if(this.config){var f=this.config.from,e=this.config.to,B=this.config.duration,n=this.config.startTime;n=(0,g.T)()-n;var r=this.C;B=g.ch(KP(r,q9(r,n/B)),0,1);this.callback(f+(e-f)*B);B<1&&this.delay.start()}}};g.Eeu=class extends g.y{constructor(f){super({L:"div",B:"ytp-more-videos-view",O:{tabIndex:"-1"}});this.api=f;this.G=!0;this.J=new g.ep(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.X=this.V=this.scrollPosition=0;this.title=new g.y({L:"h2",B:"ytp-related-title",Ga:"{{title}}"});this.previous=new g.y({L:"button",y9:["ytp-button","ytp-previous"],O:{"aria-label":"Mostrar v\u00eddeos sugeridos anteriores"},j:[g.d_()]});this.U=new g.SMe(e=>{this.suggestions.element.scrollLeft= -e}); this.next=new g.y({L:"button",y9:["ytp-button","ytp-next"],O:{"aria-label":"Mostrar mais v\u00eddeos sugeridos"},j:[g.tX()]});g.A(this,this.J);this.W=f.S().V;g.A(this,this.title);this.title.di(this.element);this.suggestions=new g.y({L:"div",B:"ytp-suggestions"});g.A(this,this.suggestions);this.suggestions.di(this.element);g.A(this,this.previous);this.previous.di(this.element);this.previous.listen("click",this.N,this);g.A(this,this.U);NXm(this);g.A(this,this.next);this.next.di(this.element);this.next.listen("click", this.K,this);this.J.D(this.api,"appresize",this.Sf);this.J.D(this.api,"fullscreentoggled",this.BY);this.J.D(this.api,"videodatachange",this.onVideoDataChange);this.Sf(this.api.AL().getPlayerSize());this.onVideoDataChange()}hasSuggestions(){return this.suggestionData.length>0}K(){this.G&&this.scrollTo(this.scrollPosition-this.containerWidth)}show(){super.show();hsk(this)}N(){this.G&&this.scrollTo(this.scrollPosition+this.containerWidth)}BY(){this.Sf(this.api.AL().getPlayerSize())}Sf(f){var e=this.api.isEmbedsShortsMode()? .5625:16/9,B=this.api.E3();f=f.width-(B?112:58);B=Math.ceil(f/(B?320:192));const n=(f-B*8)/B;e=Math.floor(n/e);for(const r of this.C){const L=r.JL("ytp-suggestion-image");L.style.width=`${n}px`;L.style.height=`${e}px`}this.suggestions.element.style.height=`${e}px`;this.V=n;this.X=e;this.containerWidth=f;this.columns=B;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.B4(this)}onVideoDataChange(){const f=this.api.S(),e=this.api.getVideoData();this.W=e.AF?!1:f.V;this.suggestionData=e.suggestions? g.GO(e.suggestions,B=>B&&!B.playlistId):[]; SBg(this);e.AF?this.title.update({title:g.RT("Mais v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:e.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"Mais Shorts":"Mais v\u00eddeos"})}scrollTo(f){f=g.ch(f,this.containerWidth-this.suggestionData.length*(this.V+8),0);this.U.start(this.scrollPosition,f,1E3);this.scrollPosition=f;g.B4(this);hsk(this)}};})(_yt_player);